re PR tree-optimization/92891 (ice in decompose, at wide-int.h:984)
[gcc.git] / gcc / ChangeLog
1 2019-12-10 Jakub Jelinek <jakub@redhat.com>
2
3 PR tree-optimization/92891
4 * builtins.c (gimple_call_alloc_size): Convert size to sizetype
5 before returning it.
6
7 2019-12-10 Vladimir Makarov <vmakarov@redhat.com>
8
9 PR rtl-optimization/92796
10 * lra-int.h (lra_risky_transformations_p): Rename to
11 check_and_force_assignment_correctness_p.
12 * lra-assigns.c: Ditto.
13 (lra_assign): Reset check_and_force_assignment_correctness_p.
14 * lra-constraints.c (lra_risky_transformations_p): Rename to
15 check_and_force_assignment_correctness_p.
16 (lra_constraints): Set up check_and_force_assignment_correctness_p
17 only for the 1st sub-pass.
18 * lra-eliminations.c (process_insn_for_elimination): Set up
19 check_and_force_assignment_correctness_p if the insn chnaged its
20 code.
21
22 2019-12-10 Jakub Jelinek <jakub@redhat.com>
23
24 PR rtl-optimization/92882
25 * regstat.c (regstat_bb_compute_calls_crossed): Don't check
26 INSN_UID against DF_INSN_SIZE or use DF_INSN_INFO_GET unless
27 NONDEBUG_INSN_P.
28
29 PR ipa/92883
30 * ipa-cp.c (propagate_vr_across_jump_function): Pass jvr rather
31 than *jfunc->m_vr to intersect. Formatting fix.
32
33 PR middle-end/92825
34 * cfgexpand.c (add_stack_protection_conflicts): Change return type
35 from void to bool, return true if at least one stack_vars[i].decl
36 is addressable.
37 (record_or_union_type_has_array_p, stack_protect_decl_p): Remove.
38 (expand_used_vars): Don't call stack_protect_decl_p, instead for
39 -fstack-protector-strong set gen_stack_protect_signal to true
40 if add_stack_protection_conflicts returned true. Formatting fixes.
41 * doc/invoke.texi (-fstack-protector-strong): Clarify that optimized
42 out variables or variables not living on the stack don't count.
43 (-fstack-protector): Likewise. Clarify it affects >= 8 byte arrays
44 rather than > 8 byte.
45
46 * ipa-param-manipulation.c
47 (ipa_param_body_adjustments::register_replacement): Fix comment typo
48 - accross -> across.
49 * ipa-sra.c (propagate_used_across_scc_edge, ipa_sra_analysis):
50 Likewise.
51 (param_splitting_across_edge): Fix typo in dump message - accross
52 -> across.
53
54 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
55
56 * cgraph.c (cgraph_node::verify_node): Verify tp_first_run.
57 * cgraph.h (cgrpah_node): Turn tp_first_run back to int.
58 * cgraphunit.c (tp_first_run_node_cmp): Do not watch for overflows.
59 (expand_all_functions): First expand ordered section and then
60 unordered.
61 * profile.c (compute_value_histograms): Error on out of range
62 tp_first_runs.
63
64 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
65
66 * predict.c (compute_function_frequency): Check for presence of IPA
67 profile.
68
69 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
70
71 * varasm.c (default_function_section): Fix confused tests for
72 tp_first_run reordering.
73
74 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
75
76 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Don't
77 allow SVE modes in GPRs.
78
79 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
80
81 * config/aarch64/iterators.md (vccore): New iterator.
82 * config/aarch64/aarch64-sve.md (vec_series<mode>): Use it instead
83 of vwcore.
84 (*vec_series<mode>_plus): Likewise.
85
86 2019-12-10 Frederik Harwath <frederik@codesourcery.com>
87
88 * omp-low.c (scan_omp_for): Use clause location in warning.
89
90 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
91
92 * dwarf2out.c (loc_descriptor): Punt for MODE_VECTOR_BOOL.
93 (add_const_value_attribute): Likewise.
94
95 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
96
97 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
98 handling direct_slp_reduc, allow the PHI arguments to have
99 a different type from the vector elements.
100
101 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
102
103 * tree-vect-stmts.c (vectorizable_condition): Record the loop
104 masks required for extract-last reductions.
105
106 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
107
108 * tree-vect-stmts.c (vect_finish_replace_stmt): Always use the
109 original scalar statement rather than a pattern statement.
110 (vectorizable_condition): Likewise, in the handling of extract-last
111 reductions.
112
113 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
114
115 * tree-vect-loop.c (vectorizable_reduction): Don't use
116 EXTRACT_LAST_REDUCTION for chained reductions.
117
118 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
119
120 * ipa-utils.h (get_odr_name_for_type): Check for a TYPE_DECL.
121 * ipa-devirt.c (warn_types_mismatch): Don't call xstrdup for the
122 second demangled name.
123
124 2019-12-10 Jakub Jelinek <jakub@redhat.com>
125
126 * config/i386/i386.c (IX86_LEA_PRIORITY): Fix comment typos.
127
128 2019-12-10 Martin Liska <mliska@suse.cz>
129
130 PR tree-optimization/92862
131 * predict.c (predict_paths_leading_to_edge): Fix typo from e to e2.
132 * tree-ssa-loop-niter.c (loop_only_exit_p): Return false
133 instead of true;
134
135 2019-12-09 David Malcolm <dmalcolm@redhat.com>
136
137 * gcc-rich-location.c
138 (maybe_range_label_for_tree_type_mismatch::get_text): Replace
139 label_text ctor call with label_text::borrow.
140 * gcc-rich-location.h (text_range_label::get_text): Replace
141 label_text ctor called with false with label_text::borrow.
142
143 2019-12-09 David Malcolm <dmalcolm@redhat.com>
144
145 * diagnostic-show-locus.c (diagnostic_show_locus): Remove initial
146 newline.
147 (selftest::test_diagnostic_show_locus_unknown_location): Remove
148 initial newline from expected outputs.
149 (selftest::test_one_liner_simple_caret): Likewise.
150 (selftest::test_one_liner_caret_and_range): Likewise.
151 (selftest::test_one_liner_multiple_carets_and_ranges): Likewise.
152 (selftest::test_one_liner_fixit_insert_before): Likewise.
153 (selftest::test_one_liner_fixit_insert_after): Likewise.
154 (selftest::test_one_liner_fixit_remove): Likewise.
155 (selftest::test_one_liner_fixit_replace): Likewise.
156 (selftest::test_one_liner_fixit_replace_non_equal_range):
157 Likewise.
158 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
159 Likewise.
160 (selftest::test_one_liner_fixit_validation_adhoc_locations):
161 Likewise.
162 (selftest::test_one_liner_many_fixits_1): Likewise.
163 (selftest::test_one_liner_many_fixits_2): Likewise.
164 (selftest::test_one_liner_labels): Likewise.
165 (selftest::test_one_liner_simple_caret_utf8): Likewise.
166 (selftest::test_one_liner_caret_and_range_utf8): Likewise.
167 (selftest::test_one_liner_multiple_carets_and_ranges_utf8):
168 Likewise.
169 (selftest::test_one_liner_fixit_insert_before_utf8): Likewise.
170 (selftest::test_one_liner_fixit_insert_after_utf8): Likewise.
171 (selftest::test_one_liner_fixit_remove_utf8): Likewise.
172 (selftest::test_one_liner_fixit_replace_utf8): Likewise.
173 (selftest::test_one_liner_fixit_replace_non_equal_range_utf8):
174 Likewise.
175 (selftest::test_one_liner_fixit_replace_equal_secondary_range_utf8):
176 Likewise.
177 (selftest::test_one_liner_fixit_validation_adhoc_locations_utf8):
178 Likewise.
179 (selftest::test_one_liner_many_fixits_1_utf8): Likewise.
180 (selftest::test_one_liner_many_fixits_2_utf8): Likewise.
181 (selftest::test_one_liner_labels_utf8): Likewise.
182 (selftest::test_add_location_if_nearby): Likewise.
183 (selftest::test_diagnostic_show_locus_fixit_lines): Likewise.
184 (selftest::test_overlapped_fixit_printing): Likewise.
185 (selftest::test_overlapped_fixit_printing_utf8): Likewise.
186 (selftest::test_overlapped_fixit_printing_2): Likewise.
187 (selftest::test_fixit_insert_containing_newline): Likewise.
188 (selftest::test_fixit_insert_containing_newline_2): Likewise.
189 (selftest::test_fixit_replace_containing_newline): Likewise.
190 (selftest::test_fixit_deletion_affecting_newline): Likewise.
191 (selftest::test_line_numbers_multiline_range): Likewise.
192 * diagnostic.c (default_diagnostic_finalizer): Add pp_newline call
193 before call to diagnostic_show_locus.
194 (diagnostic_append_note): Likewise.
195
196 2019-12-09 Martin Sebor <msebor@redhat.com>
197
198 PR middle-end/92761
199 PR middle-end/92762
200 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Tighten
201 up tests.
202 * hash-table.h (hash_table::expand): Use placement new to copy
203 construct objects in uninitialized storage.
204 (hash_table::empty_slow): Avoid invoking copy assignment on
205 uninitialized objects.
206
207 2019-12-09 Lewis Hyatt <lhyatt@gmail.com>
208
209 PR preprocessor/49973
210 * input.c (location_compute_display_column): New function to help with
211 multibyte awareness in diagnostics.
212 (test_cpp_utf8): New self-test.
213 (input_c_tests): Call the new test.
214 * input.h (location_compute_display_column): Declare.
215 * diagnostic-show-locus.c: Pervasive changes to add multibyte awareness
216 to all classes and functions.
217 (enum column_unit): New enum.
218 (class exploc_with_display_col): New class.
219 (class layout_point): Convert m_column member to array m_columns[2].
220 (layout_range::contains_point): Add col_unit argument.
221 (test_layout_range_for_single_point): Pass new argument.
222 (test_layout_range_for_single_line): Likewise.
223 (test_layout_range_for_multiple_lines): Likewise.
224 (line_bounds::convert_to_display_cols): New function.
225 (layout::get_state_at_point): Add col_unit argument.
226 (make_range): Use empty filename rather than dummy filename.
227 (get_line_width_without_trailing_whitespace): Rename to...
228 (get_line_bytes_without_trailing_whitespace): ...this.
229 (test_get_line_width_without_trailing_whitespace): Rename to...
230 (test_get_line_bytes_without_trailing_whitespace): ...this.
231 (class layout): m_exploc changed to exploc_with_display_col from
232 plain expanded_location.
233 (layout::get_linenum_width): New accessor member function.
234 (layout::get_x_offset_display): Likewise.
235 (layout::calculate_linenum_width): New subroutine for the constuctor.
236 (layout::calculate_x_offset_display): Likewise.
237 (layout::layout): Use the new subroutines. Add multibyte awareness.
238 (layout::print_source_line): Add multibyte awareness.
239 (layout::print_line): Likewise.
240 (layout::print_annotation_line): Likewise.
241 (line_label::line_label): Likewise.
242 (layout::print_any_labels): Likewise.
243 (layout::annotation_line_showed_range_p): Likewise.
244 (get_printed_columns): Likewise.
245 (class line_label): Rename m_length to m_display_width.
246 (get_affected_columns): Rename to...
247 (get_affected_range): ...this; add col_unit argument and multibyte
248 awareness.
249 (class correction): Add m_affected_bytes and m_display_cols
250 members. Rename m_len to m_byte_length for clarity. Add multibyte
251 awareness throughout.
252 (correction::insertion_p): Add multibyte awareness.
253 (correction::compute_display_cols): New function.
254 (correction::ensure_terminated): Use new member name m_byte_length.
255 (line_corrections::add_hint): Add multibyte awareness.
256 (layout::print_trailing_fixits): Likewise.
257 (layout::get_x_bound_for_row): Likewise.
258 (test_one_liner_simple_caret_utf8): New self-test analogous to the one
259 with _utf8 suffix removed, testing multibyte awareness.
260 (test_one_liner_caret_and_range_utf8): Likewise.
261 (test_one_liner_multiple_carets_and_ranges_utf8): Likewise.
262 (test_one_liner_fixit_insert_before_utf8): Likewise.
263 (test_one_liner_fixit_insert_after_utf8): Likewise.
264 (test_one_liner_fixit_remove_utf8): Likewise.
265 (test_one_liner_fixit_replace_utf8): Likewise.
266 (test_one_liner_fixit_replace_non_equal_range_utf8): Likewise.
267 (test_one_liner_fixit_replace_equal_secondary_range_utf8): Likewise.
268 (test_one_liner_fixit_validation_adhoc_locations_utf8): Likewise.
269 (test_one_liner_many_fixits_1_utf8): Likewise.
270 (test_one_liner_many_fixits_2_utf8): Likewise.
271 (test_one_liner_labels_utf8): Likewise.
272 (test_diagnostic_show_locus_one_liner_utf8): Likewise.
273 (test_overlapped_fixit_printing_utf8): Likewise.
274 (test_overlapped_fixit_printing): Adapt for changes to
275 get_affected_columns, get_printed_columns and class corrections.
276 (test_overlapped_fixit_printing_2): Likewise.
277 (test_linenum_sep): New constant.
278 (test_left_margin): Likewise.
279 (test_offset_impl): Helper function for new test.
280 (test_layout_x_offset_display_utf8): New test.
281 (diagnostic_show_locus_c_tests): Call new tests.
282
283 2019-12-09 Eric Botcazou <ebotcazou@adacore.com>
284
285 * tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute
286 TYPE_CANONICAL from the element type only if it is true. Remove a few
287 obsolete lines and adjust recursive call.
288 (fld_process_array_type): Adjust call to build_array_type_1.
289 (build_array_type): Likewise.
290 (build_nonshared_array_type): Likewise.
291
292 2019-12-09 Andrew Stubbs <ams@codesourcery.com>
293
294 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Change
295 %s to %o in asm output.
296 (gather<mode>_insn_2offsets<exec>): Likewise.
297
298 2019-12-09 Richard Earnshaw <rearnsha@arm.com>
299
300 * config/arm/t-multilib: Use arm->thumb multilib reuse rules
301 on a-profile.
302
303 2019-12-09 Segher Boessenkool <segher@kernel.crashing.org>
304
305 * config/rs6000/rs6000.md (unnamed mfcr define_insn): Name this
306 set<mode>_cc.
307 (unnamed define_insn_and_split): Delete.
308 (unnamed define_insn): Delete.
309 (unnamed define_insn): Delete.
310 (unnamed define_split): Delete.
311
312 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
313
314 * regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
315 avoid a warning.
316
317 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
318
319 PR middle-end/92410
320 * bb-reorder.c (pass_reorder_blocks::execute): Recompute
321 dataflow luids once basic blocks have been reordered.
322 * haifa-sched.c (reemit_notes): Create df insn record for each
323 new note.
324 * regstat.c (regstat_bb_compute_calls_crossed): Assert every
325 insn has an insn record before trying to use it.
326
327 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
328
329 * common/config/i386/i386-common.c
330 (OPTION_MASK_ISA_AVX5124FMAPS_SET): Rename to
331 OPTION_MASK_ISA2_AVX5124FMAPS_SET.
332 (OPTION_MASK_ISA_AVX5124VNNIW_SET, OPTION_MASK_ISA_AVX512BF16_SET,
333 OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
334 OPTION_MASK_ISA_PCONFIG_SET, OPTION_MASK_ISA_WBNOINVD_SET,
335 OPTION_MASK_ISA_SGX_SET, OPTION_MASK_ISA_CX16_SET,
336 OPTION_MASK_ISA_MOVBE_SET, OPTION_MASK_ISA_PTWRITE_SET,
337 OPTION_MASK_ISA_MWAITX_SET, OPTION_MASK_ISA_CLZERO_SET,
338 OPTION_MASK_ISA_RDPID_SET, OPTION_MASK_ISA_VAES_SET,
339 OPTION_MASK_ISA_MOVDIR64B_SET, OPTION_MASK_ISA_WAITPKG_SET,
340 OPTION_MASK_ISA_CLDEMOTE_SET, OPTION_MASK_ISA_ENQCMD_SET,
341 OPTION_MASK_ISA_AVX5124FMAPS_UNSET,
342 OPTION_MASK_ISA_AVX5124VNNIW_UNSET,
343 OPTION_MASK_ISA_AVX512BF16_UNSET,
344 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET,
345 OPTION_MASK_ISA_PCONFIG_UNSET, OPTION_MASK_ISA_WBNOINVD_UNSET,
346 OPTION_MASK_ISA_SGX_UNSET, OPTION_MASK_ISA_CX16_UNSET,
347 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_PTWRITE_UNSET,
348 OPTION_MASK_ISA_MWAITX_UNSET, OPTION_MASK_ISA_CLZERO_UNSET,
349 OPTION_MASK_ISA_RDPID_UNSET, OPTION_MASK_ISA_VAES_UNSET,
350 OPTION_MASK_ISA_MOVDIR64B_UNSET, OPTION_MASK_ISA_WAITPKG_UNSET,
351 OPTION_MASK_ISA_CLDEMOTE_UNSET, OPTION_MASK_ISA_ENQCMD_UNSET,
352 OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
353 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
354 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
355 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
356 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
357 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
358 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
359 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
360 OPTION_MASK_ISA_ENQCMD): Ditto.
361 * config/i386/i386-builtin.def
362 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
363 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
364 OPTION_MASK_ISA_WBNOINVD, OPTION_MASK_ISA_PTWRITE,
365 OPTION_MASK_ISA_RDPID, OPTION_MASK_ISA_VAES,
366 OPTION_MASK_ISA_MOVDIR64B, OPTION_MASK_ISA_ENQCMD): Ditto.
367 * config/i386/i386-builtins.c (OPTION_MASK_ISA_MWAITX,
368 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_WAITPKG,
369 OPTION_MASK_ISA_CLDEMOTE, OPTION_MASK_ISA_WBNOINVD): Ditto.
370 * config/i386/i386-c.c
371 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
372 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
373 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
374 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
375 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
376 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
377 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
378 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
379 OPTION_MASK_ISA_ENQCMD): Ditto.
380 * config/i386/i386-option.c: Ditto
381 * config/i386/i386.opt: Ditto..
382 * config/i386/i386.h: (TARGET_ISA_AVX5124FMAPS,
383 TARGET_ISA_AVX5124VNNIW, TARGET_ISA_AVX512BF16,
384 TARGET_ISA_AVX512VP2INTERSECT, TARGET_ISA_PCONFIG,
385 TARGET_ISA_WBNOINVD, TARGET_ISA_SGX, TARGET_ISA_CX16,
386 TARGET_ISA_MOVBE, TARGET_ISA_PTWRITE, TARGET_ISA_MWAITX,
387 TARGET_ISA_CLZERO, TARGET_ISA_RDPID, TARGET_ISA_VAES,
388 TARGET_ISA_MOVDIR64B, TARGET_ISA_WAITPKG, TARGET_ISA_CLDEMOTE)
389 TARGET_ISA_ENQCMD): Ditto.
390
391 2019-12-09 Sudakshina Das <sudi.das@arm.com>
392 Richard Sandiford <richard.sandiford@arm.com>
393
394 * tree-vect-stmt.c (vectorizable_shift): Condition ndts for
395 vect_model_simple_cost call on scalar_shift_arg.
396
397 2019-12-09 Jakub Jelinek <jakub@redhat.com>
398
399 PR tree-optimization/92834
400 * match.pd (A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
401 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): New simplifications.
402
403 2019-12-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
404
405 PR tree-optimization/89007
406 * tree-vect-patterns.c (vect_recog_average_pattern): If there is no
407 target support available, generate code to distribute rshift over plus
408 and add a carry.
409
410 2019-12-09 Martin Liska <mliska@suse.cz>
411
412 PR ipa/92737
413 * cgraph.c (symbol_table_test::symbol_table_test): Fix
414 coding style.
415 * cgraph.h (symtab_node::symtab_node): New constructor.
416 (cgraph_node::cgraph_node): Likewise.
417 (varpool_node::varpool_node): Likewise.
418 (symbol_table::allocate_cgraph_symbol): Use newly
419 created constructor.
420 (symbol_table::allocate_cgraph_symbol): Remove.
421 * cgraphunit.c (symtab_terminator): Likewise.
422 * varpool.c (varpool_node::create_empty): Use newly
423 created constructor.
424
425 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
426
427 PR target/92686
428 * config/i386/sse.md
429 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
430 *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
431 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
432 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
433 * config/i386/i386.c (ix86_print_operand): New operand substitution.
434 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
435 New function.
436 (ix86_expand_sse_cmp): Relax condition for integer mask from
437 512-bit vector to all 128/256/512-bit vector. Delete code gen
438 for avx512f compare patterns since we have generic pattern now.
439 (ix86_expand_sse_movcc): Adjust condition and codegen for
440 maskcmp.
441 (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
442 when corresponding vector compare is available.
443
444 2019-12-08 Sandra Loosemore <sandra@codesourcery.com>
445
446 Revert:
447 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
448
449 * config/nios2/linux.h (LINK_EH_SPEC): Define.
450
451 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
452
453 * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
454 * cgraph.h (cgrpah_node): Likewise.
455 (tp_first_run_node_cmp): Deeclare.
456 * cgraphunit.c (node_cmp): Rename to ...
457 (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
458 clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
459 (expand_all_functions): Collect tp_first_run and normal functions to
460 two vectors so the other functions remain sorted. Do not check for
461 flag_profile_reorder_functions it is function local flag.
462 * profile.c (compute_value_histograms): Update tp_first_run printing.
463
464 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
465
466 * opts.c (common_handle_option): Do not clear ipa_reference for
467 -fprofile-use.
468
469 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
470
471 * ipa-split.c (split_function): Preserve 0 tp_first_run.
472
473 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
474
475 * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
476 sanity check.
477
478 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
479
480 PR tree-optimization/92860
481 * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
482 Optimization flag.
483
484 2019-12-07 Marek Polacek <polacek@redhat.com>
485
486 PR c++/91678 - wrong error with decltype and location wrapper.
487 * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
488
489 2019-12-07 Eric Botcazou <ebotcazou@adacore.com>
490
491 PR middle-end/90840
492 * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
493 sure to pass a valid inner mode in calls to simplify_gen_subreg.
494
495 2019-12-07 Tobias Burnus <tobias@codesourcery.com>
496 David Malcolm <dmalcolm@redhat.com>
497 Jakub Jelinek <jakub@redhat.com>
498
499 PR c/87488
500 * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
501 instead of ST sequence to terminate OSC 8 strings.
502
503 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com>
504 Vladimir Makarov <vmakarov@redhat.com>
505
506 PR rtl-optimization/92176
507 * lra.c (simplify_subreg_regno): Don't permit unconditional
508 changing mode for LRA too.
509
510 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
511
512 * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
513 (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
514 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
515 Handle them.
516
517 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
518
519 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
520 in the asm output.
521
522 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
523
524 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
525 (VEC_1REG_ALT): Likewise.
526 (VEC_ALL1REG_MODE): New mode iterator.
527 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
528 (VEC_1REG_INT_ALT): Likewise.
529 (VEC_ALL1REG_INT_MODE): New mode interator.
530 (VEC_ALL1REG_INT_ALT): Likewise.
531 (VEC_REG_MODE): Remove V64QI and V64HI.
532 (VEC_ALLREG_MODE): New mode interator.
533 (vec_merge): Change to VEC_ALLREG_MODE.
534 (vec_merge_with_clobber): Likewise.
535 (vec_merge_with_vcc): Likewise.
536 (mov<mode>): Likewise.
537 (mov<mode>_unspec): Likewise.
538 (*mov<mode>): Change to VEC_ALL1REG_MODE.
539 (mov<mode>_exec): Likewise.
540 (*mov<mode>_exec_match): Likewise.
541 (mov<mode>_sgprbase): Likewise.
542 (reload_in<mode>): Change to VEC_ALLREG_MODE.
543 (reload_out<mode>): Likewise.
544 (scalar address splits): Likewise.
545 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
546 (vec_set<mode>): Change to VEC_ALLREG_MODE.
547 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
548 (vec_duplicate<mode><exec>): Likewise.
549 (vec_extract<mode><scalar_mode>): Likewise.
550 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
551 (gather_load<mode>): Likewise.
552 (gather<mode>_exec): Likewise.
553 (gather<mode>_expr<exec>): Likewise.
554 (gather<mode>_insn_1offset<exec>): Likewise.
555 (gather<mode>_insn_1offset_ds<exec>): Likewise.
556 (gather<mode>_insn_2offsets<exec>): Likewise.
557 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
558 (VEC_INT_MODE): Remove V64QI and V64HI.
559 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
560 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
561 VEC_ALL1REG_MODE.
562 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
563 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
564 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
565 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
566 (maskstore<mode>di): Likewise.
567 (mask_gather_load<mode>): Likewise.
568 (mov_from_lane63_<mode>): Likewise.
569 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
570 and V64HImode vectorization.
571 (gcn_related_vector_mode): New function.
572 (TARGET_VECTORIZE_RELATED_MODE): New define.
573
574 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
575 Kwok Cheung Yeung <kcy@codesourcery.com>
576
577 * omp-low.c (lower_omp_target): For optional arguments, deref once
578 more to obtain the type.
579
580 2019-12-06 Richard Biener <rguenther@suse.de>
581
582 * match.pd (nop_convert): Remove empty match. Use nop_convert?
583 everywhere.
584
585 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
586
587 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
588 for empty vectors. Avoid using ordered_remove and instead
589 shuffle the vector as we go.
590
591 2019-12-06 Richard Biener <rguenther@suse.de>
592
593 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
594 VIEW_CONVERT{0,1,2}.
595 (expr::opt_grp): Add and initialize.
596 (lower_opt_convert): Rename to ...
597 (lower_opt): ... and work on opt_grp, simply switching operations
598 from being optional to being present or not.
599 (has_opt_convert): Rename to ...
600 (has_opt): ... and adjust.
601 (parser::parse_operation): Return the optional opt_grp,
602 remove special-casing of conditional operations and more generally
603 parse [digit]'?'.
604 (parser::parse_expr): Stick on the parsed opt_grp and perform
605 rough verification.
606 (parser::parse_for): Remove now unnecessary code.
607 (main): Likewise.
608 * doc/match-and-simplify.texi: Mention ? now works on all
609 unary operations and also match predicates.
610
611 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
612
613 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
614 functions, not inline clones.
615
616 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
617
618 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
619
620 2019-12-06 Richard Biener <rguenther@suse.de>
621
622 * genmatch.c (c_expr::gen_transform): Emit newlines from line
623 number changes rather than after every semicolon.
624
625 2019-12-06 Richard Biener <rguenther@suse.de>
626
627 PR tree-optimization/92819
628 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
629 into the last lane. For two-element vectors try inserting
630 into the last lane when inserting into the first fails.
631
632 2019-12-06 Jakub Jelinek <jakub@redhat.com>
633
634 * common.opt (fprofile-partial-training): Terminate description with
635 full stop.
636
637 2019-12-05 Martin Sebor <msebor@redhat.com>
638
639 PR middle-end/92622
640 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
641 left uninitialized by get_addr_base_and_unit_offset on failure.
642
643 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
644
645 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
646 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
647 (detect_type_change): Likewise.
648 (detect_type_change_ssa): Likewise.
649 (ipa_analyze_virtual_call_uses): Update.
650
651 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
652
653 * config/nios2/linux.h (LINK_EH_SPEC): Define.
654
655 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
656
657 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
658
659 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
660
661 * cgraphclones.c (localize_profile): New function.
662 (cgraph_node::create_clone): Use it for partial profiles.
663 * common.opt (fprofile-partial-training): New flag.
664 * doc/invoke.texi (-fprofile-partial-training): Document.
665 * ipa-cp.c (update_profiling_info): For partial profiles do not
666 set function profile to zero.
667 * profile.c (compute_branch_probabilities): With partial profile
668 watch if edge count is zero and turn all probabilities to guessed.
669 (compute_branch_probabilities): For partial profiles do not apply
670 profile when entry count is zero.
671 * tree-profile.c (tree_profiling): Only do value_profile_transformations
672 when profile is read.
673
674 2019-12-05 Sudakshina Das <sudi.das@arm.com>
675
676 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
677 check from if condition.
678
679 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
680
681 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
682 and Fortran's optional arguments, unconditionally add the is-present
683 condition before the libgomp call.
684
685 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
686
687 PR middle-end/92768
688 * tree-core.h (OEP_BITWISE): New flag.
689 * fold-const.c (operand_compare::operand_equal_p): Handle it.
690 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
691
692 2019-12-05 Richard Biener <rguenther@suse.de>
693
694 PR middle-end/92818
695 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
696 heuristics on what don't care element to choose.
697 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
698
699 2019-12-05 Martin Liska <mliska@suse.cz>
700
701 PR gcov-profile/92817
702 * coverage.c (build_gcov_exit_decl): Remove superfluous
703 void_type_node.
704
705 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
706
707 * config/msp430/msp430.md (cbranch<mode>4): Use
708 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
709 dest operand of CMP instruction.
710 (cbranchpsi4_real): Likewise.
711 (cbranchqi4_real): Likewise.
712 (cbranchhi4_real): Likewise.
713 (cbranchpsi4_reversed): Likewise.
714 (cbranchqi4_reversed): Likewise.
715 (cbranchhi4_reversed): Likewise.
716
717 2019-12-05 Richard Biener <rguenther@suse.de>
718
719 PR tree-optimization/92803
720 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
721 invariant vector construction.
722
723 2019-12-05 Martin Liska <mliska@suse.cz>
724
725 PR gcov-profile/91971
726 * coverage.c (coverage_init): Mangle full path
727 only when -fprofile-dir is used.
728
729 2019-12-05 Jakub Jelinek <jakub@redhat.com>
730
731 PR target/92791
732 * config/i386/i386.md (movstrict<mode>): Move test for
733 TARGET_PARTIAL_REG_STALL and not optimizing for size from
734 expander's condition to the body - FAIL; in that case.
735
736 2019-12-03 Martin Sebor <msebor@redhat.com>
737
738 PR middle-end/91582
739 * builtins.c (gimple_call_alloc_size): New function.
740 (compute_objsize): Add argument. Call gimple_call_alloc_size.
741 Handle variable offsets and indices.
742 * builtins.h (gimple_call_alloc_size): Declare.
743 (compute_objsize): Add argument.
744 * gimple-ssa-warn-restrict.c: Remove assertions.
745 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
746
747 2019-12-04 Julian Brown <julian@codesourcery.com>
748
749 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
750
751 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
752
753 PR bootstrap/92661
754 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
755 rs6000.h.
756 (altivec_overloaded_builtins): Move to rs6000-call.c.
757 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
758 rs6000-c.c.
759 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
760 (altivec_overloaded_builtins): Moved from rs6000-c.c.
761 (rs6000_common_init_builtins): Do no define builtins that overload
762 builtins that have been disabled.
763
764 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
765
766 * config/arm/arm.c (arm_option_override_internal):
767 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
768
769 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
770
771 * config/aarch64/aarch64.c
772 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
773 (thunderx_tunings): Likewise.
774 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
775 (thunderx2t99_tunings): Likewise.
776 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
777 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
778
779 2019-12-04 Richard Biener <rguenther@suse.de>
780
781 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
782 empty CTOR and memset partial-def registering. Take advantage
783 of fancy offset analysis in memset handling.
784
785 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
786
787 * fold-const.c (native_encode_vector_part): Handle
788 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
789 (native_decode_vector_tree): Delete, moving the bulk of the code to...
790 (native_interpret_vector_part): ...this new function. Use a pointer
791 and length instead of a vec<> and start index.
792 (native_interpret_vector): Use native_interpret_vector_part.
793 (fold_view_convert_vector_encoding): Likewise.
794
795 2019-12-04 Richard Biener <rguenther@suse.de>
796
797 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
798 non-constant defs in the most trivial way.
799 (vn_reference_lookup_3): Also push down SSA partial defs.
800
801 2019-12-04 Martin Liska <mliska@suse.cz>
802
803 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
804 Initialize count of newly created BB.
805
806 2019-12-04 Jakub Jelinek <jakub@redhat.com>
807
808 PR tree-optimization/92734
809 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
810 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
811
812 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
813
814 PR target/92760
815 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
816 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
817
818 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
819
820 * ipa-fnsummary.c: Include tree-into-ssa.h.
821 (compute_fn_summary): Call update_ssa.
822
823 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
824
825 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
826 is set only for symbol in comdat group.
827 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
828
829 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
830
831 * cgraph.c: Include tree-into-ssa.h
832 (cgraph_node::get_body): Call update_ssa.
833 * cgraphunit.c (cgraph_node::expand): Likewise.
834 * lto-streamer-in.c (input_function): Do not call update_ssa.
835
836 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
837
838 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
839 an array element size if array_element_size is already an invariant.
840 Similarly don't gimplify and install a field offset if
841 component_ref_field_offset is already an invariant.
842
843 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
844
845 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
846 with POLY_INT_CST size is made to a fixed-size object, force the
847 object to live in memory.
848
849 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
850
851 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
852 for the data mode.
853
854 2019-12-03 Richard Biener <rguenther@suse.de>
855
856 PR tree-optimization/92758
857 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
858 operation on uniform vectors.
859
860 2019-12-03 Richard Biener <rguenther@suse.de>
861
862 PR tree-optimization/92645
863 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
864 from or to a properly aligned register variable.
865
866 2019-12-03 Matthias Klose <doko@ubuntu.com>
867
868 * Makefile.in (SOURCES): Add doc/lto-dump.1.
869 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
870 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
871
872 2019-12-03 Richard Biener <rguenther@suse.de>
873
874 PR tree-optimization/92751
875 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
876 when a clobber ends up in the partial-def vector.
877 (vn_reference_lookup_3): Let clobbers be handled by the
878 assignment from CTOR handling.
879
880 2019-12-03 Jakub Jelinek <jakub@redhat.com>
881
882 PR tree-optimization/92734
883 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
884 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
885 inner subtraction.
886
887 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
888 Jakub Jelinek <jakub@redhat.com>
889
890 PR target/92744
891 * config/i386/i386.md (peephole2 for *swap<mode>): Use
892 general_reg_operand predicates instead of register_operand.
893
894 2019-12-03 Richard Biener <rguenther@suse.de>
895
896 PR tree-optimization/92645
897 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
898 a full def of a vector via a BIT_INSERT_EXPR.
899
900 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
901
902 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
903 static.
904 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
905 decl.
906
907 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
908
909 PR middle-end/92741
910 * fold-const.c (fold_convertible_p): Check vector types more
911 thoroughly.
912
913 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
914
915 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
916 (aarch64_expand_mov_immediate): Use it when attempting to measure
917 the length of an SVE vector.
918 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
919 SVE is enabled.
920
921 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
922
923 * config/aarch64/aarch64-sve-builtins.h
924 (gimple_folder::force_vector): Declare.
925 * config/aarch64/aarch64-sve-builtins.cc
926 (gimple_folder::force_vector): New function.
927 * config/aarch64/aarch64-sve-builtins-base.cc
928 (svcmp_impl::fold): Likewise.
929 (svdup_impl::fold): Handle svdup_z too.
930
931 2019-12-02 Martin Liska <mliska@suse.cz>
932
933 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
934 function.
935 (debug_tree_odr_name): New.
936 * ipa-utils.h (get_odr_name_for_type): New.
937
938 2019-12-02 Richard Biener <rguenther@suse.de>
939
940 PR tree-optimization/92742
941 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
942 touch the def-type but verify it is consistent with the
943 original stmts.
944
945 2019-12-02 Jakub Jelinek <jakub@redhat.com>
946
947 PR tree-optimization/92712
948 * match.pd ((A * B) +- A -> (B +- 1) * A,
949 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
950 even when we don't know anything about range of A, but do know
951 something about range of B and the simplification won't introduce
952 new UB.
953
954 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
955
956 PR ipa/92133
957 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
958 (ipa-cp-min-recursive-probability): Likewise.
959 * params.opt (ipa-cp-max-recursive-depth): New.
960 (ipa-cp-min-recursive-probability): Likewise.
961 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
962 val_p and unlimited.
963 (self_recursively_generated_p): New function.
964 (get_val_across_arith_op): Likewise.
965 (propagate_vals_across_arith_jfunc): Add constant propagation for
966 self-recursive function.
967 (incorporate_penalties): Do not penalize pure self-recursive function.
968 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
969 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
970 (get_info_about_necessary_edges): Relax hotness check for edge to
971 self-recursive function.
972 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
973
974 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
975
976 PR target/92499
977
978 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
979 objects of flexible types to be small if they have internal linkage
980 or are declared extern.
981 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
982 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
983 instead of the size of the object initializer.
984 * tree.c (flexible_array_type_p): Move from C front end, and
985 generalize to handle fields in non-C structures.
986 * tree.h (flexible_array_type_p): Declare.
987
988 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
989
990 * profile-count.h (profile_count::operator<): Use IPA value for
991 comparsion.
992 (profile_count::operator>): Likewise.
993 (profile_count::operator<=): Likewise.
994 (profile_count::operator>=): Likewise.
995 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
996
997 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
998
999 * ipa-inline.c (compute_max_insns): Return int64_t.
1000 (inline_small_functions): Simplify.
1001
1002 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1003
1004 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
1005 scaling happen.
1006
1007 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1008
1009 * cgraph.h (symtab_node): Add symver flag.
1010 * cgraphunit.c (process_symver_attribute): New.
1011 (process_common_attributes): Use process_symver_attribute.
1012 * lto-cgraph.c (lto_output_node): Stream symver.
1013 (lto_output_varpool_node): Stream symver.
1014 (input_overwrite_node): Stream symver.
1015 (input_varpool_node): Stream symver.
1016 * output.h (do_assemble_symver): Decalre.
1017 * symtab.c (symtab_node::dump_base): Dump symver.
1018 (symtab_node::verify_base): Verify symver.
1019 (symtab_node::resolve_alias): Handle symver.
1020 * varasm.c (do_assemble_symver): New function.
1021 * varpool.c (varpool_node::assemble_aliases): Use it.
1022 * doc/extend.texi: (symver attribute): Document.
1023 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
1024
1025 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
1026
1027 * target.h (type_context_kind): New enum.
1028 (verify_type_context): Declare.
1029 * target.def (verify_type_context): New target hook.
1030 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
1031 * doc/tm.texi: Regenerate.
1032 * tree.c (verify_type_context): New function.
1033 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
1034 Declare.
1035 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
1036 New function.
1037 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
1038 (TARGET_VERIFY_TYPE_CONTEXT): Define.
1039
1040 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1041
1042 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
1043 * cgraph.h (cgraph_node): Add unit_id and
1044 merged_extern_inline.
1045 (symbol_table): Add max_unit.
1046 (symbol_table::symbol_table): Initialize it.
1047 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
1048 merged_comdat, merged_extern_inline.
1049 (cgraph_node::create_clone): Likewise.
1050 (cgraph_node::create_version_clone): Likewise.
1051 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
1052 calls.
1053 * ipa-fnsummary.h (cross_module_call_p): New inline function.
1054 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
1055 * ipa-inline.c (inline_small_functions): Likewise.
1056 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
1057 copy merged_comdat and merged_extern_inline.
1058 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
1059 merged_extern_inline and unit_id.
1060 (input_overwrite_node): Stream in these.
1061 (input_cgraph_1): Set unit_base.
1062 * lto-streamer.h (lto_file_decl_data): Add unit_base.
1063 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
1064
1065 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
1066
1067 * gcc.c (process_command): Only warn about an ineffective `-x'
1068 option if any input files have actually been supplied.
1069
1070 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
1071
1072 * doc/install.texi (Options specification): Remove the list of
1073 target library subdirectories supporting
1074 `--enable-version-specific-runtime-libs'. Document defaults for
1075 the option.
1076
1077 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
1078
1079 PR rtl-optimization/92283
1080 * lra.c (lra): Update reg notes after inheritance sub-pass and
1081 before constraint sub-pass.
1082
1083 2019-11-29 Richard Biener <rguenther@suse.de>
1084
1085 PR tree-optimization/91003
1086 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
1087 operand number, avoid handling the non-condition operands of
1088 COND_EXPRs as comparisons.
1089 (vect_get_constant_vectors): Pass down the operand number.
1090 (vect_get_slp_defs): Likewise.
1091
1092 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
1093
1094 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
1095 generic_expr_could_trap_p to check if the condition of COND_EXPR or
1096 VEC_COND_EXPR can trap.
1097
1098 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1099
1100 PR tree-optimization/92677
1101 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
1102 to zero when dissolving a group of strided accesses.
1103
1104 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1105
1106 PR tree-optimization/92596
1107 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
1108 operations.
1109 (vectorizable_operation): Likewise, instead of relying on
1110 vect_get_mask_type_for_stmt to do this.
1111 (vect_get_vector_types_for_stmt): Always return a vector type
1112 immediately, rather than deferring the choice for boolean results.
1113 Use a vector mask type instead of a normal vector if
1114 vect_use_mask_type_p.
1115 (vect_get_mask_type_for_stmt): Delete.
1116 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
1117 mask_producers argument and special boolean_type_node handling.
1118 (vect_determine_vf_for_stmt): Remove mask_producers argument and
1119 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
1120 (vect_determine_vectorization_factor): Update call accordingly.
1121 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
1122 boolean_type_node handling.
1123 (vect_slp_analyze_node_operations_1): Likewise.
1124
1125 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1126
1127 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
1128 (vect_use_mask_type_p): New function.
1129 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
1130 mask precision to the pattern statement.
1131 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
1132 and use it to initialize the new stmt's mask precision.
1133 (search_type_for_mask_1): Delete.
1134 (search_type_for_mask): Replace with...
1135 (integer_type_for_mask): ...this new function. Use the information
1136 cached in the stmt_vec_info.
1137 (vect_recog_bool_pattern): Update accordingly.
1138 (build_mask_conversion): Pass the scalar type associated with the
1139 mask type to append_pattern_def_seq.
1140 (vect_recog_mask_conversion_pattern): Likewise. Call
1141 integer_type_for_mask instead of search_type_for_mask.
1142 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
1143 of search_type_for_mask.
1144 (possible_vector_mask_operation_p): New function.
1145 (vect_determine_mask_precision): Likewise.
1146 (vect_determine_stmt_precisions): Call it.
1147
1148 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1149
1150 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
1151 the slp_tree parameter with a group size parameter.
1152 (vect_get_mask_type_for_stmt): Likewise.
1153 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
1154 (vect_get_mask_type_for_stmt): Likewise.
1155 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
1156 call accordingly.
1157
1158 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1159
1160 * tree-vect-stmts.c (vectorizable_operation): Punt early
1161 on codes that are handled elsewhere.
1162
1163 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1164
1165 * doc/sourcebuild.texi (vect_bool_cmp): Document.
1166 * tree-vect-patterns.c (search_type_for_mask_1): If neither
1167 operand to a boolean comparison is a natural vector mask,
1168 handle both operands like normal integers instead.
1169
1170 2019-11-29 Richard Biener <rguenther@suse.de>
1171
1172 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
1173 out early for too large objects.
1174
1175 2019-11-29 Martin Jambor <mjambor@suse.cz>
1176
1177 PR ipa/92476
1178 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
1179 the summary only if the summary exists.
1180 (find_more_scalar_values_for_callers_subset): Check node_dead in
1181 the summary only if the summary exists.
1182 (ipcp_store_bits_results): Ignore nodes without lattices.
1183 (ipcp_store_vr_results): Likewise.
1184 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
1185 header files required by them.
1186 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
1187
1188 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1189
1190 PR tree-optimization/92710
1191 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
1192 vector mask arguments.
1193
1194 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
1195
1196 * profile-count.c (profile_count::to_cgraph_frequency,
1197 profile_count::to_sreal_scale): Check for compaibility of counts.
1198 * profile-count.h (compatible_p): Make public; add checking for
1199 global0 versus global types.
1200 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
1201
1202 2019-11-29 Richard Biener <rguenther@suse.de>
1203
1204 PR tree-optimization/92715
1205 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
1206 out for uniform vectors and source vectors with less elements
1207 than the destination.
1208
1209 2019-11-29 Martin Liska <mliska@suse.cz>
1210
1211 PR lto/91574
1212 * ipa-devirt.c (types_same_for_odr): Check for existence
1213 of TYPE_NAMEs first.
1214
1215 2019-11-29 Richard Biener <rguenther@suse.de>
1216
1217 PR tree-optimization/92704
1218 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
1219 in loops performing only loads.
1220
1221 2019-11-29 Julian Brown <julian@codesourcery.com>
1222
1223 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
1224 BT_DFLOAT128_PTR) Remove.
1225 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
1226 TI_DFLOAT128_PTR_TYPE): Remove.
1227 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
1228 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
1229 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
1230 dfloat128_ptr_type_node): Remove macros.
1231
1232 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1233
1234 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
1235 formatting.
1236 (*movdi_internal64): Ditto.
1237
1238 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1239
1240 PR target/92602
1241 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
1242 indexed_or_indirect_operand to be memory_operand.
1243 (bswap<mode>2_store for HSI): Ditto.
1244 (bswapdi2_load): Ditto.
1245 (bswapdi2_store): Ditto.
1246
1247 2019-11-28 Martin Liska <mliska@suse.cz>
1248
1249 PR debug/46558
1250 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
1251 headers for translation.
1252
1253 2019-11-28 Martin Liska <mliska@suse.cz>
1254
1255 PR lto/92609
1256 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
1257 consistently.
1258
1259 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1260
1261 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
1262 checks.
1263
1264 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1265
1266 * profile-count.c (profile_count::combine_with_ipa_count): Return
1267 uninitialized count if called on ininitialized count.
1268
1269 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1270
1271 * ipa-inline-transform.c (inline_transform): Scale profile before
1272 redirecting.
1273
1274 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1275
1276 * profile-count.h (profile_count::max): Work on profiles of different
1277 type.
1278 (profile_count::apply_scale): Be sure that ret is not local or global0
1279 type if num is global.
1280
1281 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1282
1283 * profile-count.h (profile_count::max): Work on profiles of different
1284 type.
1285 (profile_count::apply_scale): Be sure that ret is not local or global0
1286 type if num is global.
1287
1288 2019-11-28 Martin Jambor <mjambor@suse.cz>
1289
1290 PR ipa/92697
1291 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
1292 ifunc_resolvers.
1293 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
1294 Removed trailig whitespace.
1295
1296 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1297
1298 * profile-count.h (profile_count::combine_with_ipa_count_within):
1299 Declare.
1300 * profile-count.c (profile_count::combine_with_ipa_count_within):
1301 New.
1302 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
1303 it.
1304
1305 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1306
1307 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
1308 of counters are done same way.
1309
1310 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1311
1312 * ipa-cp.c (update_profiling_info): Fix scaling.
1313
1314 2019-11-28 Richard Biener <rguenther@suse.de>
1315
1316 PR tree-optimization/92645
1317 * tree-inline.c (remap_gimple_stmt): When the return value
1318 is not wanted, elide GIMPLE_RETURN.
1319
1320 2019-11-28 Richard Biener <rguenther@suse.de>
1321
1322 PR tree-optimization/92645
1323 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
1324 conversions inside a mode class. Remove restriction on
1325 preserving the element size.
1326 (simplify_vector_constructor): Deal with the above and for
1327 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
1328 and VEC_PACK_TRUNC_EXPR.
1329
1330 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
1331
1332 Must use push insn to pass varargs arguments of DFmode because
1333 otherwise the middle-end generates wrong code.
1334
1335 PR target/92055
1336 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
1337
1338 2019-11-28 Jakub Jelinek <jakub@redhat.com>
1339
1340 PR tree-optimization/92691
1341 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
1342 in function comment.
1343 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
1344 calls, return !handle_printf_call rather than always returning true.
1345 (check_and_optimize_stmt): Describe return value meaning in function
1346 comment. Formatting fix.
1347
1348 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1349
1350 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
1351 combination of globa0 and global counters..
1352
1353 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
1354
1355 PR target/92566
1356 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
1357 by VECTOR_UNIT_NONE_P instead.
1358
1359 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
1360
1361 * config/i386/sse.md (avx512f_maskcmp<mode>3):
1362 Refine VF to VF_AVX512VL.
1363
1364 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
1365
1366 * config/rs6000/rs6000.md (movsi_internal): Reformat.
1367 (movdi_internal64): Reformat.
1368
1369 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
1370
1371 PR bootstrap/92661
1372 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
1373 builtin if we don't have an actual type.
1374 (builtin_function_type): If the builtin function uses a DFP type
1375 and decimal float has been disabled, then return NULL_TREE.
1376
1377 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1378
1379 PR rtl-optimization/92510
1380 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
1381 of comparison into a comparison with different mode if both imode and
1382 omode are scalar integral modes.
1383
1384 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
1385
1386 PR rtl-optimization/90007
1387 * recog.c (constrain_operands): Permit hard registers too for
1388 memory when LRA is used.
1389
1390 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1391
1392 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
1393 between Coldfire and regular m68k.
1394 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
1395
1396 2019-11-27 Richard Biener <rguenther@suse.de>
1397
1398 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1399 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
1400 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
1401 * optabs-tree.c (supportable_convert_operation): Do not call
1402 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
1403 * optabs-tree.h (supportable_convert_operation): Adjust.
1404 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1405 * doc/tm.texi: Regenerate.
1406 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
1407 * tree-vect-generic.c (expand_vector_conversion): Likewise.
1408 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
1409 unused decl parameter and adjust.
1410 (vect_create_vectorized_promotion_stmts): Likewise.
1411 (vectorizable_conversion): Adjust.
1412
1413 2019-11-27 Richard Biener <rguenther@suse.de>
1414
1415 PR tree-optimization/92690
1416 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
1417 converting elements not originally converted.
1418
1419 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
1420
1421 PR middle-end/92463
1422 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
1423 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
1424 mpfr_rnd_t instead of mp_rnd_t.
1425 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
1426 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
1427 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
1428 Use mpfr_exp_t instead of mp_exp_t.
1429 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
1430 MPFR_RNDx instead of GMP_RNDx.
1431 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
1432 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
1433 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
1434 of mp_rnd_t and remove MPFR_RNDx poisoning.
1435 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
1436
1437 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
1438
1439 PR tree-optimization/91790
1440 * tree-vect-stmts.c (vectorizable_load): Use the adjusted
1441 DR for vect_setup_realignment when first_stmt_info is different
1442 from first_stmt_info_for_drptr.
1443
1444 2019-11-27 Richard Biener <rguenther@suse.de>
1445
1446 PR tree-optimization/92645
1447 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1448 CTORs with just a subset of the original vectors.
1449
1450 2019-11-27 Richard Biener <rguenther@suse.de>
1451
1452 PR middle-end/92674
1453 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
1454 edges and instead record blocks in bitmap.
1455 (gimple_expand_calls_inline): Adjust.
1456 (fold_marked_statements): Delay EH cleanup until all folding is
1457 done.
1458 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
1459 inlining finished.
1460
1461 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1462
1463 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
1464 LRA is enabled.
1465 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
1466 disabled.
1467
1468 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1469
1470 PR debug/92664
1471 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
1472
1473 2019-11-26 Martin Sebor <msebor@redhat.com>
1474
1475 PR tree-optimization/92683
1476 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
1477 inadvertently removed in a previous change. Rename local variable
1478 for clarity.
1479
1480 2019-11-26 Richard Biener <rguenther@suse.de>
1481
1482 PR middle-end/92669
1483 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
1484 NULL pre_order.
1485
1486 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
1487
1488 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
1489
1490 2019-11-26 Jakub Jelinek <jakub@redhat.com>
1491
1492 PR tree-optimization/92644
1493 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1494 next to INTEGER_CST checks.
1495
1496 2019-11-26 Richard Biener <rguenther@suse.de>
1497
1498 PR tree-optimization/92645
1499 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1500 do not build the operation from scalars if the operand is.
1501
1502 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1503
1504 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1505 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1506 definitions.
1507
1508 2019-11-25 Martin Liska <mliska@suse.cz>
1509
1510 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1511 up used dump message.
1512
1513 2019-11-25 Martin Liska <mliska@suse.cz>
1514
1515 PR bootstrap/92653
1516 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1517 too strict checking assert.
1518
1519 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1520
1521 PR c/91985
1522 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1523 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1524 error_mark_node if corresponding global tree node is NULL.
1525 * tree.c (build_common_tree_nodes): Do not initialize
1526 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1527 decimal floating-point not supported.
1528
1529 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1530
1531 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1532 types.
1533
1534 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
1535
1536 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1537 Replace code for non-CONST_INT constants with gcc_unreachable.
1538 * config/m68k/m68k.md (cbranchdi): Don't generate individual
1539 compare and test.
1540 (CMPMODE): New mode_iterator.
1541 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1542 cbranch<mode>4.
1543 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1544 cstore<mode>4.
1545 (cmp<mode>_68881): Remove 'F' constraint from first comparison
1546 operand.
1547 (bit test insns patterns): Use nonimmediate_operand, not
1548 register_operand, for source operands that allow memory in
1549 their constraints.
1550 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1551 Use register_operand, not nonimmediate_operand, for the
1552 destinations.
1553 (DBCC): New mode_iterator.
1554 (dbcc peepholes): Use it to reduce duplication.
1555 (trap): Use const_true_rtx, not const1_rtx.
1556 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1557 from m68k_subword_comparison_operand and changed to handle
1558 SImode.
1559
1560 PR target/91851
1561 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1562 declaration.
1563 (m68k_init_cc): New declaration.
1564 (m68k_output_compare_di, m68k_output_compare_si)
1565 (m68k_output_compare_hi, m68k_output_compare_qi)
1566 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1567 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1568 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1569 m68k_output_branch_float, m68k_output_branch_float_rev):
1570 Likewise.
1571 (valid_dbcc_comparison_p_2, flags_in_68881)
1572 (output_btst): Remove declaration.
1573 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1574 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1575 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1576 (flags_compare_op0, flags_compare_op1, flags_operand1,
1577 flags_operand2, flags_valid): New static variables.
1578 (m68k_find_flags_value, m68k_init_cc): New functions.
1579 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1580 remember_compare_flags): New static functions.
1581 (output_dbcc_and_branch): New argument CODE. Use it, and add
1582 PLUS and MINUS to the possible codes. All callers changed.
1583 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1584 and INSN arguments, add CODE arg. Return the comparison code
1585 to use. All callers changed. Use CODE instead of
1586 next_insn_tests_no_inequality, and replace cc_status management
1587 with changing the return code.
1588 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1589 RTX_COMPARE or RTX_COMM_COMPARE.
1590 (output_move_simode, output_move_qimode): Call
1591 handle_flags_for_move.
1592 (notice_update_cc): Delete function.
1593 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1594 m68k_output_compare_hi, m68k_output_compare_qi,
1595 m68k_output_compare_fp, m68k_output_branch_integer,
1596 m68k_output_branch_integer_rev, m68k_output_scc,
1597 m68k_output_branch_float, m68k_output_branch_float_rev,
1598 m68k_output_scc_float): New functions.
1599 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1600 once at the start, and set flags_valid and flags_operand1 if the
1601 flags are usable.
1602 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1603 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1604 definitions.
1605 (CC_STATUS_INIT): Define.
1606 * config/m68k/m68k.md (flags_valid): New define_attr.
1607 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1608 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1609 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1610 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1611 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1612 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1613 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1614 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1615 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1616 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1617 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1618 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1619 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1620 ctrapqi4, conditional_trap): Delete patterns.
1621 (cbranchdi4_insn): New pattern.
1622 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1623 test high part only. When testing EQ or NE, generate beq0_di
1624 and bne0_di patterns directly.
1625 (cstoredi4): When testing LT or GE, test high part only.
1626 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1627 patterns.
1628 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1629 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1630 cmp2_cf_predicate): New define_mode_attrs.
1631 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1632 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1633 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1634 New patterns.
1635 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1636 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1637 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1638 New patterns.
1639 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1640 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1641 Likewise.
1642 (BTST): New define_mode_iterator.
1643 (btst_predicate, btst_constraint, btst_range): New
1644 define_mode_attrs.
1645 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1646 patterns.
1647 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1648 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1649 patterns): Set attr "flags_valid".
1650 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1651 management. Set attr "flags_valid".
1652 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1653 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1654 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1655 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1656 manual CC_STATUS management.
1657 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1658 unnamed strict_lowpart subhi and subqi patterns): Set attr
1659 "flags_valid".
1660 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1661 Remove code to operate on address regs and assert the case
1662 does not occur.
1663 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1664 manual CC_STATUS_INIT.
1665 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1666 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1667 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1668 one_cmplqi2, unnamed strict_lowpart patterns
1669 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1670 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1671 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1672 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1673 CC_STATUS_INIT.
1674 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1675 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1676 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1677 unnamed strict_low_part patterns for HI and
1678 QI versions): Set attr "flags_valid".
1679 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1680 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1681 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1682 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1683 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1684 (various unnamed peepholes): Adjust compare/branch sequences
1685 for new cbranch patterns.
1686 (dbcc peepholes): Likewise, and output the comparison here
1687 as well.
1688 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1689 (fp_src_operand): Allow constant zero.
1690 (address_reg_operand): New predicate.
1691
1692 * rtl.h (inequality_comparisons_p): Remove declaration.
1693 * recog.h (next_insn_tests_no_inequality): Likewise.
1694 * rtlanal.c (inequality_comparisons_p): Delete function.
1695 * recog.c (next_insn_tests_no_inequality): Likewise.
1696
1697 2019-11-25 Richard Biener <rguenther@suse.de>
1698
1699 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1700 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1701 properly re-building the visited hash-map for each lane.
1702
1703 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1704
1705 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1706 gcn_md_reorg): Remove unused variables.
1707 (gcn_emutls_var_init): Add missing (but unreachable) return
1708 to silence warning.
1709 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1710 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1711 an uninitialized variable.
1712
1713 2019-11-25 Martin Jambor <mjambor@suse.cz>
1714
1715 PR ipa/92109
1716 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1717 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1718 (cgraph_materialize_clone): Move removel from clone tree to the
1719 the new method and use it instead.
1720 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1721 bodies of clones, also remove it from the clone tree.
1722
1723 2019-11-25 Martin Jambor <mjambor@suse.cz>
1724
1725 PR ipa/91956
1726 * ipa-sra.c (process_isra_node_results): Put the new node to the
1727 same comdat group as the original node.
1728
1729 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1730
1731 Build double32 / long-double32 multilibs if needed.
1732
1733 PR target/92055
1734 * config/avr/t-avr:
1735 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1736 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1737 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1738 tm_defines and pass to genmultilib.awk.
1739 * config/avr/genmultilib.awk: Use these variables to add double32
1740 and / or long-double32 multilib(s) as needed.
1741 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1742
1743 2019-11-25 Richard Biener <rguenther@suse.de>
1744
1745 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1746 loop body, defaulted to NULL.
1747 (single_likely_exit): Add exit vector argument
1748 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1749 (number_of_iterations_exit): Likewise.
1750 (number_of_iterations_exit_assumptions): Likewise.
1751 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1752 if not NULL.
1753 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1754 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1755 Compute exit vector around call to single_likely_exit.
1756 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1757 loop body to loop_only_exit_p.
1758 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1759 caller.
1760 (number_of_iterations_exit_assumptions): Get loop body from caller
1761 if not NULL.
1762 (number_of_iterations_exit): Pass through new loop body arg.
1763 (infer_loop_bounds_from_undefined): Get loop body from caller.
1764 (estimate_numbers_of_iterations): Compute loop body once.
1765
1766 2019-11-25 Richard Biener <rguenther@suse.de>
1767
1768 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1769 auto_bb_flag instead of an sbitmap for visited handling.
1770
1771 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1772
1773 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1774 iterator.
1775 (vector_fp_comparison_complex): Likewise.
1776 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1777 define_and_split.
1778 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1779 Likewise.
1780 (vector_lt<mode> for VEC_F): Refactor with
1781 vector_fp_comparison_simple.
1782 (vector_le<mode> for VEC_F): Likewise.
1783 (vector_unge<mode> for VEC_F): Likewise.
1784 (vector_unle<mode> for VEC_F): Likewise.
1785 (vector_ne<mode> for VEC_F): Likewise.
1786 (vector_ungt<mode> for VEC_F): Likewise.
1787 (vector_unlt<mode> for VEC_F): Likewise.
1788 (vector_ltgt<mode> for VEC_F): Refactor with
1789 vector_fp_comparison_complex.
1790 (vector_ordered<mode> for VEC_F): Likewise.
1791 (vector_uneq<mode> for VEC_F): Likewise.
1792 (vector_unordered<mode> for VEC_F): Likewise.
1793
1794 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1795
1796 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1797 COMPARE, representing an overflow detection.
1798
1799 * combine.c (combine_instructions): Record costs for jumps.
1800
1801 * combine.c (can_combine_p): Allow autoinc in jumps.
1802
1803 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1804
1805 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1806 * doc/invoke.texi (max-inline-insns-single-O2,
1807 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1808 early-inlining-insns-O2): Remove documentation.
1809 * ipa-fnsummary.c (analyze_function_body,
1810 compute_fn_summary): Use opt_for_fn when accessing parameters.
1811 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1812 inline_insns_auto, can_inline_edge_by_limits_p,
1813 want_early_inline_function_p, big_speedup_p,
1814 want_inline_small_function_p, want_inline_self_recursive_call_p,
1815 recursive_inlining, compute_max_insns, inline_small_functions):
1816 Likewise.
1817 * opts.c (default_options): Add -O3 defaults for
1818 OPT__param_early_inlining_insns_,
1819 OPT__param_inline_heuristics_hint_percent_,
1820 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1821 * params.opt (-param=early-inlining-insns-O2=,
1822 -param=inline-heuristics-hint-percent-O2=,
1823 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1824 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1825 -param=inline-min-speedup=, -param=inline-unit-growth=,
1826 -param=large-function-growth=, -param=large-stack-frame=,
1827 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1828 -param=max-inline-insns-recursive=,
1829 -param=max-inline-insns-recursive-auto=,
1830 -param=max-inline-insns-single=,
1831 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1832 -param=max-inline-recursive-depth=,
1833 -param=max-inline-recursive-depth-auto=,
1834 -param=min-inline-recursive-probability=,
1835 -param=partial-inlining-entry-probability=,
1836 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1837 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1838 Optimization.
1839
1840 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1841
1842 * ipa-fnsummary.c: Fix comment typos.
1843 * ipa-ref.h: Likewise.
1844 * ipa-predicate.h: Likewise.
1845 * ipa-split.c: Likewise.
1846 * ipa-inline-analysis.c: Likewise.
1847 * ipa-predicate.c: Likewise.
1848 * ipa-devirt.c: Likewise.
1849 * ipa-icf.h: Likewise.
1850 * profile-count.c: Likewise.
1851 * ipa-icf.c: Likewise.
1852 (sem_function::equals_wpa): Fix typos in dump messages.
1853 * ipa-icf-gimple.h: Fix comment typos.
1854 * ipa-inline-transform.c: Likewise.
1855 * ipa-polymorphic-call.c: Likewise.
1856 * ipa-fnsummary.h: Likewise.
1857 * ipa-inline.c: Likewise.
1858 (dump_inline_stats): Fix typo in debug dump message.
1859 * profile-count.h: Fix comment typos.
1860
1861 PR target/92615
1862 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1863 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1864 register_operand, force x into register before storing it into dest.
1865 Formatting fix.
1866
1867 PR middle-end/83859
1868 * doc/extend.texi (attribute access): Fix a typo.
1869
1870 PR rtl-optimization/92610
1871 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1872 cse_cfg_altered is set, even when tem is 0.
1873 (rest_of_handle_cse_after_global_opts): Likewise.
1874
1875 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1876
1877 PR c++/92458
1878 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1879 tree_hash): Move to ...
1880 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1881 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1882 types.
1883 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1884
1885 PR tree-optimization/92618
1886 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1887 containing the auto_vec and a tree.
1888 (undistribute_bitref_for_vector): Handle the case when element type
1889 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1890 fixes.
1891
1892 2019-11-22 Martin Sebor <msebor@redhat.com>
1893
1894 PR middle-end/83859
1895 * attribs.h (struct attr_access): New.
1896 * attribs.c (decl_attributes): Add an informational note.
1897 * builtins.c (check_access): Make extern. Consistently set no-warning
1898 after issuing a warning. Handle calls through function pointers. Set
1899 no-warning.
1900 * builtins.h (check_access): Declare.
1901 * calls.c (rdwr_access_hash): New type.
1902 (rdwr_map): Same.
1903 (init_attr_rdwr_indices): New function.
1904 (maybe_warn_rdwr_sizes): Same.
1905 (initialize_argument_information): Call init_attr_rdwr_indices.
1906 Call maybe_warn_rdwr_sizes.
1907 (get_size_range): Avoid null argument.
1908 * doc/extend.texi (attribute access): Document new attribute.
1909
1910 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1911
1912 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1913 (ACC_LDS_SIZE): Define.
1914 (OTHER_LDS_SIZE): Define.
1915 (LDS_SIZE): Redefine using above.
1916 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1917
1918 2019-11-22 Martin Sebor <msebor@redhat.com>
1919
1920 PR middle-end/88226
1921 * builtins.c (check_nul_terminated_array): New function.
1922 (fold_builtin_0): Remove declaration.
1923 (fold_builtin_1): Same.
1924 (fold_builtin_2): Same.
1925 (fold_builtin_3): Same.
1926 (fold_builtin_strpbrk): Add argument.
1927 (fold_builtin_strspn): Same.
1928 (fold_builtin_strcspn): Same.
1929 (expand_builtin_strcat): Call it. Remove unused argument.
1930 (expand_builtin_stpncpy): Same.
1931 (expand_builtin_strncat): Same.
1932 (expand_builtin_strncpy): Same. Adjust indentation.
1933 (expand_builtin_strcmp): Same.
1934 (expand_builtin_strncmp): Same.
1935 (expand_builtin_fork_or_exec): Same.
1936 (expand_builtin): Handle more built-ins.
1937 (fold_builtin_2): Add argument.
1938 (fold_builtin_n): Make static. Add argument.
1939 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1940 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1941 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1942 (fold_call_stmt): Pass new argument to fold_builtin_n.
1943 * builtins.h: Correct a comment.
1944 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1945 check_nul_terminated_array.
1946 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1947 check_nul_terminated_array.
1948 (handle_builtin_strchr): Same.
1949 (handle_builtin_string_cmp): Same.
1950
1951 2019-11-22 Martin Sebor <msebor@redhat.com>
1952
1953 PR tree-optimization/92501
1954 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1955 handle unterminated arrays. Rename local variables for clarity.
1956
1957 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1958
1959 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1960 granulated_sgprs according to architecture.
1961
1962 2019-11-22 Jan Hubicka <jh@suse.cz>
1963
1964 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1965 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1966 (memory_block_pool::reduce_free_list): ... this one.
1967 (memory_block_pool::trim): New static function.
1968 * memory-block.h (memory_block_pool::freelist_size): New constant
1969 (memory_block_pool::clear_free_list): Rename to ...
1970 (memory_block_pool::reduce_free_list): ... this one.
1971 (memory_block_pool::trim): Declare.
1972
1973 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1974
1975 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1976 vect_cost_for_stmt.
1977 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1978 here rather than...
1979 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1980
1981 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1982
1983 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1984 (bic_cmp0_noout): New pattern.
1985 (bic_cmp0): Likewise.
1986 (neg_scc_insn): Remove pattern.
1987 (not_scc_insn): Likewise.
1988
1989 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1990
1991 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1992
1993 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1994
1995 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1996 pedwarn instead of warning_at for fallthrough not preceding a case
1997 or default label.
1998
1999 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2000
2001 PR tree-optimization/92608
2002 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
2003 of dyn_cast.
2004
2005 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
2006
2007 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
2008 New predicate.
2009 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
2010 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
2011 special for FP comparisons that need a cror instruction eventually.
2012 (rs6000_emit_fp_cror): New function.
2013 (rs6000_emit_sCOND): Expand all floating point comparisons to one
2014 instruction, for normal FP modes, with HONOR_NANS.
2015 (rs6000_emit_cbranch): Reformat.
2016 * config/rs6000/rs6000.md (fp_rev): New iterator.
2017 (fp_two): New iterator.
2018 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
2019 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
2020 *cbranch_2insn: New define_insn_and_split.
2021
2022 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
2023
2024 PR tree-optimization/92526
2025 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
2026 versioning for alignment if the accesses do not have a consistent
2027 mask, rather than asserting that the masks are consistent.
2028
2029 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
2030
2031 PR tree-optimization/92595
2032 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
2033 check.
2034 (vectorizable_store, vectorizable_load): Likewise.
2035
2036 2019-11-21 Jan Hubicka <jh@suse.cz>
2037
2038 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
2039 (resolve_noninline_speculation, inline_small_functions): Avoid
2040 redundant updates.
2041
2042 2019-11-21 Richard Biener <rguenther@suse.de>
2043
2044 * lra.c (lra_insn_recog_data_pool): New.
2045 (free_insn_recog_data): Adjust.
2046 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
2047 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
2048
2049 2019-11-21 Richard Biener <rguenther@suse.de>
2050
2051 PR tree-optimization/92596
2052 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
2053
2054 2019-11-21 Jan Hubicka <jh@suse.cz>
2055
2056 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
2057 ready for some vectors to not be allocated.
2058 (evaluate_properties_for_edge): Document better; make
2059 known_vals and known_aggs caller allocated; avoid determining
2060 values of parameters which are not used.
2061 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
2062 known_aggs.
2063 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
2064 (do_estimate_edge_size): Likewise.
2065 (do_estimate_edge_hints): Likewise.
2066 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
2067 values are not known.
2068 (ipa_release_agg_values): Add option to not release vector itself.
2069 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
2070
2071 2019-11-21 Richard Biener <rguenther@suse.de>
2072
2073 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
2074 (loop_iterator::to_visit): Use an auto_vec with internal storage.
2075 (loop_iterator::loop_iterator): Adjust.
2076 * cfganal.c (compute_dominance_frontiers_1): Fold into...
2077 (compute_dominance_frontiers): ... this. Hoist invariant
2078 get_immediate_dominator call.
2079 (compute_idf): Use a work-set instead of a work-list for more
2080 optimal iteration order and duplicate avoidance.
2081 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
2082 the vector all the time, instead pre-allocate the vector only
2083 once.
2084 (delete_update_ssa): Simplify.
2085 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
2086
2087 2019-11-21 Jakub Jelinek <jakub@redhat.com>
2088
2089 PR tree-optimization/91355
2090 * tree-ssa-sink.c (select_best_block): Use >= rather than >
2091 for early_bb scaled count with best_bb count comparison.
2092
2093 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
2094 preffer -> prefer.
2095 * ipa-inline.c (edge_badness): Likewise.
2096 * lto-streamer.h (class lto_location_cache): Likewise.
2097 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
2098 gratutious -> gratuitous.
2099
2100 2019-11-21 Richard Biener <rguenther@suse.de>
2101
2102 Revert
2103 2019-09-17 Richard Biener <rguenther@suse.de>
2104
2105 PR tree-optimization/91790
2106 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2107 use the correct DR for setting up realignment.
2108
2109 2019-11-21 Richard Biener <rguenther@suse.de>
2110
2111 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
2112 (equiv_class_obstack): New.
2113 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
2114 (perform_var_substitution): Initialize equiv_class_obstack.
2115 (free_var_substitution_info): Free equiv_class_obstack.
2116
2117 2019-11-20 Jan Hubicka <jh@suse.cz>
2118
2119 * ipa-inline.c (want_early_inline_function_p): Do not estimate
2120 edge growth when callee function is very large.
2121 * ipa-inline.h (estimate_min_edge_growth): New.
2122
2123 2019-11-20 Jan Hubicka <jh@suse.cz>
2124
2125 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
2126 negative time in calls summary; correct roundoff errors
2127 leading to negative times.
2128 (ipa_merge_fn_summary_after_inlining): Update calls size time table
2129 if present.
2130 (ipa_update_overall_fn_summary): Add RESET parameter.
2131 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
2132 * ipa-inline-transform.c (inline_call): Enable incremental updates.
2133
2134 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2135
2136 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
2137 def types for two-operation SLP.
2138
2139 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2140
2141 PR testsuite/92366
2142 * doc/sourcebuild.texi (vect_char_add): Document.
2143
2144 2019-11-20 Alexandre Oliva <oliva@adacore.com>
2145
2146 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
2147 * function.c (record_final_call): Record even calls that might
2148 have been in the cgraph.
2149 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
2150 callees.
2151
2152 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
2153
2154 * configure.ac: Use https for gcc.gnu.org
2155 * configure: Regenerated.
2156 * doc/install.texi: Use https for gcc.gnu.org.
2157 * doc/sourcebuild.texi: Likewise.
2158
2159 2019-11-20 Julian Brown <julian@codesourcery.com>
2160
2161 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
2162
2163 2019-11-20 Jan Hubicka <jh@suse.cz>
2164
2165 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
2166 parameter and update call_size_time_table.
2167 (ipa_fn_summary::max_size_time_table_size): New constant.
2168 (estimate_calls_size_and_time_1): Break out from ...
2169 (estimate_calls_size_and_time): ... here; implement summary production.
2170 (summarize_calls_size_and_time): New function.
2171 (ipa_call_context::estimate_size_and_time): Bypass
2172 estimate_calls_size_and_time for leaf functions.
2173 (ipa_update_overall_fn_summary): Likewise.
2174 * ipa-fnsummary.h (call_size_time_table): New.
2175 (ipa_fn_summary::account_size_time): Update prototype.
2176
2177 2019-11-20 Joseph Myers <joseph@codesourcery.com>
2178
2179 * doc/invoke.texi (-Wc11-c2x-compat): Document.
2180
2181 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
2182
2183 PR85678
2184 * common.opt (fcommon): Change init to 1.
2185 * doc/invoke.texi (-fcommon): Update documentation.
2186
2187 2019-11-20 Jan Hubicka <jh@suse.cz>
2188
2189 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
2190 to ordinary array.
2191
2192 2019-11-20 Jan Hubicka <jh@suse.cz>
2193
2194 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
2195 Add allocator parameter.
2196 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
2197 (fibonacci_heap<K,V>::m_allocator): New.
2198 (fibonacci_heap<K,V>::m_own_allocator): New.
2199 (fibonacci_heap<K,V>::insert): Use allocator.
2200 (fibonacci_heap<K,V>::extract_min): Likewise.
2201 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
2202 allocator.
2203 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
2204 on stack.
2205 * fibonacci_heap.c: Include alloc-pool
2206 (test_empty_heap): Initialize allocator.
2207 (test_union): Likewise.
2208 * bb-reorder.c: Include alloc-pool.h.
2209 * tracer.c: Inlclude alloc-pool.h.
2210
2211 2019-11-20 Jan Hubicka <jh@suse.cz>
2212
2213 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
2214 Preallocate for 32 entries.
2215 (DFS::worklist): Likewise.
2216 (DFS::DFS): Do not initialize sccstack and worklist.
2217 (DFS::~DFS): Do not release sccstack.
2218
2219 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
2220
2221 PR target/92573
2222 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
2223 Handle UNORDERED if !HONOR_NANS.
2224
2225 2019-11-20 Jan Hubicka <jh@suse.cz>
2226
2227 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
2228 (edge_badness): ... here.
2229 (inline_small_functions): Use monotonicity of badness calculation
2230 to avoid redundant updates.
2231
2232 2019-11-20 Richard Biener <rguenther@suse.de>
2233
2234 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
2235 constructors we are actually analyzing.
2236 (vect_slp_check_for_constructors): Do not vectorize uniform
2237 constuctors, do not dump here.
2238
2239 2019-11-20 Richard Biener <rguenther@suse.de>
2240
2241 PR tree-optimization/92537
2242 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
2243 vectorization validity check...
2244 (vect_slp_analyze_operations): ... here.
2245
2246 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
2247
2248 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
2249 (make_pass_arc_predicate_delay_insns): Likewise.
2250 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
2251 method, remove clone.
2252 (class pass_arc_predicate_delay_insns): Likewise.
2253 (arc_init): Remove registering of ARC specific passes.
2254 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
2255 * config/arc/arc-passes.def: New file.
2256
2257 2019-11-20 Jakub Jelinek <jakub@redhat.com>
2258
2259 PR middle-end/90840
2260 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
2261 and has a mode that doesn't have corresponding integral type.
2262
2263 PR target/90867
2264 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
2265 clear opts->x_ix86_isa_flags{,2} here...
2266 (ix86_valid_target_attribute_inner_p): ... but here when seeing
2267 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
2268
2269 PR c/90898
2270 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
2271 assertion.
2272 (insert_clobbers_for_var): Fix a typo in function comment.
2273
2274 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
2275 Jakub Jelinek <jakub@redhat.com>
2276
2277 PR middle-end/91195
2278 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
2279 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
2280 load.
2281
2282 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
2283
2284 Make 0-series device specs work with older versions of avr-gcc.
2285
2286 PR target/92545
2287 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
2288 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2289 <*link_pm_base_address>: Don't write spec.
2290 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
2291
2292 2019-11-20 Richard Biener <rguenther@suse.de>
2293
2294 PR c/92088
2295 * builtins.c (compute_objsize): Deal with VLAs.
2296
2297 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
2298
2299 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
2300 from common code.
2301 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
2302 call new function.
2303 (power9_sched_reorder2): Call new function.
2304 (rs6000_sched_reorder2): Likewise.
2305
2306 2019-11-18 Jan Hubicka <jh@suse.cz>
2307
2308 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
2309 (estimate_calls_size_and_time): Update.
2310
2311 2019-11-18 Jan Hubicka <jh@suse.cz>
2312
2313 * ipa-inline.c (inlining_speedup): New function.
2314 (edge_badness): Use it.
2315
2316 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
2317 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2318
2319 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
2320 Mark as not having "likely" version.
2321 * config/mips/mips.md (insn_count): The simd_div instruction with
2322 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
2323 (can_delay): Exclude simd_branch.
2324 (defile_delay *): Add simd_branch instructions.
2325 They have one regular delay slot.
2326
2327 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
2328
2329 Revert:
2330 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2331
2332 * cse.c (cse_insn): Delete no-op register moves too.
2333 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2334 Take a second comparison to control the value for NE.
2335 (mask_to_comparison): Handle unsigned comparisons.
2336 (simplify_logical_relational_operation): Likewise. Update call
2337 to comparison_to_mask. Handle AND if !HONOR_NANs.
2338 (simplify_binary_operation_1): Call the above for AND too.
2339
2340 2019-11-19 Martin Liska <mliska@suse.cz>
2341
2342 * toplev.c (general_init): Move the call...
2343 (toplev::main): ... here as we need init_options_struct
2344 being called.
2345
2346 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2347
2348 PR target/79262
2349 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
2350 vec_to_scalar_cost.
2351
2352 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2353
2354 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
2355 (armv7-a): Likewise.
2356 (armv7ve): Likewise.
2357
2358 2019-11-19 Richard Biener <rguenther@suse.de>
2359
2360 PR tree-optimization/92581
2361 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
2362 condition reduction chains gather all conditions involved
2363 for computing the index reduction vector.
2364
2365 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
2366
2367 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2368 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
2369 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
2370 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
2371 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
2372 (aarch64_init_memtag_builtins): New.
2373 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
2374 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
2375 (aarch64_expand_builtin_memtag): New.
2376 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
2377 (AARCH64_BUILTIN_SUBCODE): New macro.
2378 (aarch64_resolve_overloaded_memtag): New.
2379 (aarch64_resolve_overloaded_builtin_general): New. Call
2380 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
2381 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2382 __ARM_FEATURE_MEMORY_TAGGING when enabled.
2383 (aarch64_resolve_overloaded_builtin): Call
2384 aarch64_resolve_overloaded_builtin_general.
2385 * config/aarch64/aarch64-protos.h
2386 (aarch64_resolve_overloaded_builtin_general): New declaration.
2387 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
2388 (TARGET_MEMTAG): Likewise.
2389 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
2390 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
2391 (irg, gmi, subp, addg, ldg, stg): New instructions.
2392 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
2393 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
2394 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
2395 (__arm_mte_get_tag): Likewise.
2396 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
2397 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
2398 * config/arm/types.md (memtag): New.
2399 * doc/invoke.texi (-memtag): Update description.
2400
2401 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
2402
2403 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2404 to define __GCC_ASM_FLAG_OUTPUTS__.
2405 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
2406 (arm_option_params_internal): Swap out targetm.md_asm_adjust
2407 depending on TARGET_THUMB1.
2408 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
2409
2410 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2411
2412 PR target/92549
2413 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
2414
2415 PR middle-end/91450
2416 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
2417 operand is negative and one non-negative, compare the non-negative
2418 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
2419 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
2420 and s2 == 0, unless one of them is known to be negative. Remove
2421 tem2 variable, use tem where tem2 has been used before.
2422
2423 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
2424
2425 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
2426
2427 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2428
2429 PR tree-optimization/92557
2430 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
2431 vmode rather than asserting it always is.
2432
2433 2019-11-19 Richard Biener <rguenther@suse.de>
2434
2435 PR tree-optimization/92554
2436 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
2437 for the actual condition stmt and deal with sign-changes.
2438
2439 2019-11-19 Richard Biener <rguenther@suse.de>
2440
2441 PR tree-optimization/92555
2442 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
2443 for non-SLP stmts.
2444
2445 2019-11-19 Martin Liska <mliska@suse.cz>
2446
2447 PR bootstrap/92540
2448 * config/riscv/riscv.c (riscv_address_insns): Initialize
2449 addr in order to remove boostrap -Wmaybe-uninitialized
2450 error.
2451
2452 2019-11-18 Martin Sebor <msebor@redhat.com>
2453
2454 PR tree-optimization/92493
2455 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
2456 assignment.
2457
2458 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
2459
2460 * cfgloop.c (get_loop_body_in_custom_order): New.
2461 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
2462 * tree-loop-distribution.c (class loop_distribution): New.
2463 (bb_top_order_cmp): Remove.
2464 (bb_top_order_cmp_r): New.
2465 (create_rdg_vertices): Move into class loop_distribution.
2466 (stmts_from_loop): Same as above.
2467 (update_for_merge): Same as above.
2468 (partition_merge_into): Same as above.
2469 (get_data_dependence): Same as above.
2470 (data_dep_in_cycle_p): Same as above.
2471 (update_type_for_merge): Same as above.
2472 (build_rdg_partition_for-vertex): Same as above.
2473 (classify_builtin_ldst): Same as above.
2474 (classify_partition): Same as above.
2475 (share_memory_accesses): Same as above.
2476 (rdg_build_partitions): Same as above.
2477 (pg_add_dependence_edges): Same as above.
2478 (build_partition_graph): Same as above.
2479 (merge_dep_scc_partitions): Same as above.
2480 (break_alias_scc_partitions): Same as above.
2481 (finalize_partitions): Same as above.
2482 (distribute_loop): Same as above.
2483 (bb_top_order_init): New method
2484 (bb_top_order_destroy): New method.
2485 (get_bb_top_order_index_size): New method.
2486 (get_bb_top_order_index_index): New method.
2487 (get_bb_top_order_index_index): New method.
2488 (loop_distribution::execute): New method.
2489 (pass_loop_distribution::execute): Instantiate loop_distribution.
2490
2491 2019-11-18 Jan Hubicka <jh@suse.cz>
2492
2493 PR ipa/92508
2494 * ipa-inline.c (inline_small_functions): Add new edges after reseting
2495 caches.
2496 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2497
2498 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2499
2500 * doc/sourcebuild.texi (vect_check_ptrs): Document.
2501 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2502 * doc/md.texi: Document them.
2503 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2504 internal functions.
2505 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2506 * internal-fn.c (check_ptrs_direct): New macro.
2507 (expand_check_ptrs_optab_fn): Likewise.
2508 (direct_check_ptrs_optab_supported_p): Likewise.
2509 (internal_check_ptrs_fn_supported_p): New fuction.
2510 * tree-data-ref.c: Include internal-fn.h.
2511 (create_ifn_alias_checks): New function.
2512 (create_intersect_range_checks): Use it.
2513 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2514 (optab, cmp_op): Handle it.
2515 (raw_war, unspec): New int attributes.
2516 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2517 constants.
2518 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2519 New predicate.
2520 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2521 expander.
2522 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2523 pattern.
2524
2525 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2526
2527 * tree.c (build_vector_from_ctor): Directly return a zero vector for
2528 empty constructors.
2529
2530 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2531
2532 * cse.c (cse_insn): Delete no-op register moves too.
2533 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2534 Take a second comparison to control the value for NE.
2535 (mask_to_comparison): Handle unsigned comparisons.
2536 (simplify_logical_relational_operation): Likewise. Update call
2537 to comparison_to_mask. Handle AND if !HONOR_NANs.
2538 (simplify_binary_operation_1): Call the above for AND too.
2539
2540 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2541
2542 * fold-const.c (native_encode_vector): Turn into a wrapper function,
2543 splitting the main code out into...
2544 (native_encode_vector_part): ...this new function.
2545 (native_decode_vector_tree): New function.
2546 (fold_view_convert_vector_encoding): Likewise.
2547 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2548 to VECTOR_TYPEs.
2549
2550 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2551
2552 * tree-data-ref.c (create_intersect_range_checks_index): If the
2553 alias pair describes simple WAW and WAR dependencies, just check
2554 whether the first B access overlaps later A accesses.
2555 (create_waw_or_war_checks): New function that performs the same
2556 optimization on addresses.
2557 (create_intersect_range_checks): Call it.
2558
2559 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2560
2561 * lra-constraints.c (valid_address_p): Take the operand and a
2562 constraint as argument. If the operand is a MEM and the constraint
2563 is a memory constraint, check whether the eliminated form of the
2564 MEM already satisfies the constraint.
2565 (process_address_1): Update calls accordingly.
2566
2567 2019-11-18 Tom Tromey <tromey@adacore.com>
2568
2569 * doc/tm.texi: Rebuild.
2570 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2571 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2572
2573 2019-11-18 Richard Biener <rguenther@suse.de>
2574
2575 PR tree-optimization/92516
2576 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2577 argument, hoist bst_map creation/destruction to ...
2578 (vect_analyze_slp): ... here, forming a true graph with
2579 SLP instances being the entries.
2580 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2581 (vect_detect_hybrid_slp): Use one visited set for all
2582 graph entries.
2583 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2584 to hash-sets of slp_tree.
2585 (vect_slp_analyze_operations): Likewise.
2586 (vect_bb_slp_scalar_cost): Remove wrapper.
2587 (vect_bb_vectorization_profitable_p): Use one visited set for
2588 all graph entries.
2589 (vect_schedule_slp_instance): Elide bst_map use.
2590 (vect_schedule_slp): Likewise.
2591
2592 2019-11-18 Richard Biener <rguenther@suse.de>
2593
2594 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2595 was vectorized with just external refs fail.
2596
2597 2019-11-18 Martin Liska <mliska@suse.cz>
2598
2599 PR ipa/92525
2600 * ipa-icf.c (sem_function::init): Unset m_checker
2601 at the end of the function.
2602
2603 2019-11-18 Richard Biener <rguenther@suse.de>
2604
2605 PR tree-optimization/92558
2606 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2607 reducting the width of a reduction vector def update new_phis.
2608
2609 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2610
2611 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2612 and s390*-*-linux-musl* targets.
2613 * configure: Regenerate.
2614
2615 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2616
2617 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2618 (MUSL_DYNAMIC_LINKER64): Define.
2619
2620 2019-11-18 Martin Liska <mliska@suse.cz>
2621
2622 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2623 message for an unknown counter.
2624 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2625 (dbg_cnt_process_opt): Remove unreachable code.
2626
2627 2019-11-18 Martin Liska <mliska@suse.cz>
2628
2629 PR ipa/92529
2630 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2631 Compare LHS types of NOP_EXPR.
2632
2633 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2634
2635 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2636 "initial_pass_name" argument -- by running "*clean_state" pass.
2637 Also free the "initial_pass_name" when done.
2638
2639 2019-11-18 Richard Biener <rguenther@suse.de>
2640
2641 PR rtl-optimization/92462
2642 * alias.c (find_base_term): Restrict the look through ANDs.
2643 (find_base_value): Likewise.
2644
2645 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2646
2647 Add support for AVR devices from the 0-series.
2648
2649 PR target/92545
2650 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2651 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2652 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2653 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2654 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2655 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2656 for spec definitions.
2657 * doc/avr-mmcu.texi: Regenerate.
2658
2659 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2660
2661 PR target/92448
2662 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2663 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2664 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2665 (ix86_reassociation_width): Ditto.
2666 * config/i386/i386-options.c (ix86_option_override_internal):
2667 Replace TARGET_AVX128_OPTIAML with
2668 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2669 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2670 (TARGET_AVX128_OPTIMAL): Deleted.
2671 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2672 DEF_TUNE.
2673
2674 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2675
2676 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2677 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2678 just SI.
2679 (cceq_rev_compare): Rename to...
2680 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2681 just SI.
2682 (define_split for <bd>tf_<mode>): Add SImode first argument to
2683 gen_cceq_ior_compare.
2684
2685 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2686
2687 * common/config/powerpcspe: Delete.
2688
2689 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2690
2691 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2692 output in UNSPEC_WRFFR.
2693
2694 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2695
2696 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2697 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2698
2699 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2700
2701 * tree-data-ref.c (create_intersect_range_checks_index)
2702 (create_intersect_range_checks): Print dump messages.
2703
2704 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2705
2706 * tree-data-ref.c (dump_alias_pair): New function.
2707 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2708
2709 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2710
2711 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2712 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2713 merging data references with different steps.
2714 (create_intersect_range_checks_index): Take a
2715 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2716 Bail out if DR_ALIAS_MIXED_STEPS is set.
2717 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2718 instead of two dr_with_seg_lens. Update call to
2719 create_intersect_range_checks_index.
2720 (create_runtime_alias_checks): Update call accordingly.
2721
2722 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2723
2724 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2725 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2726 (dr_with_seg_len_pair_t::sequencing): New enum.
2727 (dr_with_seg_len_pair_t::flags): New member variable.
2728 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2729 parameter and initialize the flags member variable.
2730 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2731 call accordingly.
2732 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2733 Ensure the two data references in an alias pair are in statement
2734 order, if there is a defined order.
2735 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2736 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2737 swapped the references in a dr_with_seg_len_pair_t. OR together
2738 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2739 try to restore the original dr_with_seg_len order, updating the
2740 flags if that fails.
2741
2742 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2743
2744 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2745 swapping the dr_as based on init values until we've decided
2746 whether to merge them.
2747
2748 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2749
2750 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2751 two accesses in each dr_with_seg_len_pair_t before trying to
2752 combine separate dr_with_seg_len_pair_ts.
2753 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2754 that here.
2755 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2756
2757 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2758
2759 * config/aarch64/aarch64-sve.md
2760 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2761 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2762 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2763 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2764 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2765 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2766 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2767 pattern.
2768 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2769 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2770 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2771 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2772
2773 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2774
2775 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2776 (SVE_4HSI): New mode iterators.
2777 (ANY_EXTEND2): New code iterator.
2778 * config/aarch64/aarch64-sve.md
2779 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2780 Extend to...
2781 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2782 ...this, handling extension to partial modes as well as full modes.
2783 Describe the extension as a predicated rather than unpredicated
2784 extension.
2785 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2786 Likewise extend to...
2787 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2788 ...this, making the same adjustments.
2789 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2790 Likewise extend to...
2791 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2792 ...this, making the same adjustments.
2793 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2794 Likewise extend to...
2795 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2796 ...this, making the same adjustments.
2797 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2798 New pattern.
2799 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2800 extension predicate.
2801 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2802 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2803 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2804 Describe the extension as a predicated rather than unpredicated
2805 extension.
2806 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2807 Likewise. Canonicalize to a constant extension predicate.
2808 * config/aarch64/aarch64-sve-builtins-base.cc
2809 (svld1_gather_extend_impl::expand): Add an extra predicate for
2810 the extension.
2811 (svldff1_gather_extend_impl::expand): Likewise.
2812
2813 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2814
2815 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2816 iterators.
2817 * config/aarch64/aarch64-sve.md
2818 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2819 (gather_load<SVE_24:mode><v_int_container>): ...this.
2820 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2821 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2822 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2823 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2824 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2825 New pattern.
2826 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2827 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2828 Allow the nominal extension predicate to be different from the
2829 load predicate.
2830 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2831 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2832
2833 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2834
2835 * config/aarch64/aarch64-sve.md
2836 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2837 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2838 function.
2839 (aarch64_sve_adjust_stmt_cost): Call it.
2840
2841 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2842
2843 * config/aarch64/aarch64-sve.md
2844 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2845 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2846 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2847 Combine into...
2848 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2849 ...this new pattern, handling extension to partial modes as well
2850 as full modes. Describe the extension as a predicated rather than
2851 unpredicated extension.
2852 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2853 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2854 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2855 Combine into...
2856 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2857 ...this new pattern, handling extension to partial modes as well
2858 as full modes. Describe the extension as a predicated rather than
2859 unpredicated extension.
2860 * config/aarch64/aarch64-sve-builtins.cc
2861 (function_expander::use_contiguous_load_insn): Add an extra
2862 predicate for extending loads.
2863 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2864 (aarch64_sve_adjust_stmt_cost): Likewise.
2865 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2866 the cost of SVE vector stmts.
2867
2868 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2869
2870 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2871 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2872 * config/aarch64/aarch64-sve.md
2873 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2874 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2875 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2876 comment. Avoid new narrower_mask ambiguity.
2877 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2878 (*cond_uxt<mode>_2): Update comment.
2879 (*cond_uxt<mode>_any): Likewise.
2880
2881 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2882
2883 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2884 float modes.
2885 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2886 function.
2887 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2888 new vector float modes.
2889 (aarch64_sve_container_bits): New function.
2890 (aarch64_sve_pred_mode): Likewise.
2891 (aarch64_get_mask_mode): Use it.
2892 (aarch64_sve_element_int_mode): Handle structure modes and partial
2893 modes.
2894 (aarch64_sve_container_int_mode): New function.
2895 (aarch64_vectorize_related_mode): Return SVE modes when given
2896 SVE modes. Handle partial modes, taking the preferred number
2897 of units from the size of the given mode.
2898 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2899 in registers.
2900 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2901 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2902 (aarch64_split_sve_subreg_move): Use the mode form of
2903 aarch64_sve_pred_mode.
2904 (aarch64_secondary_reload): Handle partial modes in the same way
2905 as full big-endian vectors.
2906 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2907 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2908 merging with the Advanced SIMD modes. If two modes have the
2909 same size, try the Advanced SIMD mode first.
2910 (aarch64_simd_valid_immediate): Use the container rather than
2911 the element mode for INDEX constants.
2912 (aarch64_simd_vector_alignment): Make the alignment of partial
2913 SVE vector modes the same as their minimum size.
2914 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2915 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2916 (mov<SVE_ALL:mode>): ...this.
2917 (movmisalign<SVE_FULL:mode>): Extend to...
2918 (movmisalign<SVE_ALL:mode>): ...this.
2919 (*aarch64_sve_mov<mode>_le): Rename to...
2920 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2921 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2922 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2923 partial modes regardless of endianness.
2924 (aarch64_sve_reload_be): Rename to...
2925 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2926 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2927 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2928 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2929 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2930 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2931 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2932 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2933 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2934 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2935 (maskload<SVE_FULL:mode><vpred>): Extend to...
2936 (maskload<SVE_ALL:mode><vpred>): ...this.
2937 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2938 (maskstore<SVE_ALL:mode><vpred>): ...this.
2939 (vec_duplicate<SVE_FULL:mode>): Extend to...
2940 (vec_duplicate<SVE_ALL:mode>): ...this.
2941 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2942 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2943 (sve_ld1r<SVE_FULL:mode>): Extend to...
2944 (sve_ld1r<SVE_ALL:mode>): ...this.
2945 (vec_series<SVE_FULL_I:mode>): Extend to...
2946 (vec_series<SVE_I:mode>): ...this.
2947 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2948 (*vec_series<SVE_I:mode>_plus): ...this.
2949 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2950 new VPRED ambiguity.
2951 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2952 (add<SVE_FULL_I:mode>3): Extend to...
2953 (add<SVE_I:mode>3): ...this.
2954 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2955 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2956 (VPRED, vpred): Likewise.
2957 (Vctype): New iterator.
2958 (vw): Remove SVE modes.
2959
2960 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2961
2962 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2963 (SVE_PARTIAL_I): ...this.
2964 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2965
2966 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2967
2968 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2969 (SVE_FULL): ...this.
2970 (SVE_I): Rename to...
2971 (SVE_FULL_I): ...this.
2972 (SVE_F): Rename to...
2973 (SVE_FULL_F): ...this.
2974 (SVE_BHSI): Rename to...
2975 (SVE_FULL_BHSI): ...this.
2976 (SVE_HSD): Rename to...
2977 (SVE_FULL_HSD): ...this.
2978 (SVE_HSDI): Rename to...
2979 (SVE_FULL_HSDI): ...this.
2980 (SVE_HSF): Rename to...
2981 (SVE_FULL_HSF): ...this.
2982 (SVE_SD): Rename to...
2983 (SVE_FULL_SD): ...this.
2984 (SVE_SDI): Rename to...
2985 (SVE_FULL_SDI): ...this.
2986 (SVE_SDF): Rename to...
2987 (SVE_FULL_SDF): ...this.
2988 (SVE_S): Rename to...
2989 (SVE_FULL_S): ...this.
2990 (SVE_D): Rename to...
2991 (SVE_FULL_D): ...this.
2992 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2993 * config/aarch64/aarch64-sve2.md: Likewise.
2994
2995 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2996
2997 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2998 New option.
2999 * doc/invoke.texi: Document it.
3000 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
3001 By default, return VECT_COMPARE_COSTS for SVE.
3002
3003 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3004
3005 * target.h (VECT_COMPARE_COSTS): New constant.
3006 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
3007 * doc/tm.texi: Regenerate.
3008 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
3009 * targhooks.c (default_autovectorize_vector_modes): Likewise.
3010 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
3011 Likewise.
3012 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
3013 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
3014 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
3015 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
3016 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
3017 (_loop_vec_info::vec_inside_cost): New member variables.
3018 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
3019 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
3020 (vect_analyze_loop): When autovectorize_vector_modes returns
3021 VECT_COMPARE_COSTS, try vectorizing the loop with each available
3022 vector mode and picking the one with the lowest cost.
3023 (vect_estimate_min_profitable_iters): Record the computed costs
3024 in the loop_vec_info.
3025
3026 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3027
3028 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
3029 element type rather than an element mode.
3030 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3031 Use get_vectype_for_scalar_type to query the natural types
3032 for a given element type rather than basing everything on
3033 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
3034 query to MAX_FIXED_MODE_SIZE.
3035 (duplicate_and_interleave): Update call accordingly.
3036 * tree-vect-loop.c (vectorizable_reduction): Likewise.
3037
3038 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3039
3040 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
3041 optional maximum nunits.
3042 (get_vectype_for_scalar_type): Likewise. Also declare a form that
3043 takes an slp_tree.
3044 (get_mask_type_for_scalar_type): Take an optional slp_tree.
3045 (vect_get_mask_type_for_stmt): Likewise.
3046 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
3047 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
3048 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
3049 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
3050 to get an assumed vector type for data references.
3051 * tree-vect-slp.c (vect_update_shared_vectype): New function.
3052 (vect_update_all_shared_vectypes): Likewise.
3053 (vect_build_slp_tree_1): Pass the group size to
3054 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
3055 for BB vectorization.
3056 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
3057 before building the vectof from scalars.
3058 (vect_analyze_slp_instance): Pass the group size to
3059 get_vectype_for_scalar_type.
3060 (vect_slp_analyze_node_operations_1): Don't recompute the vector
3061 types for BB vectorization here; just handle the case in which
3062 we deferred the choice for booleans.
3063 (vect_get_constant_vectors): Pass the slp_tree to
3064 get_vectype_for_scalar_type.
3065 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
3066 (vectorizable_call): Likewise.
3067 (vectorizable_simd_clone_call): Likewise.
3068 (vectorizable_conversion): Likewise.
3069 (vectorizable_shift): Likewise.
3070 (vectorizable_operation): Likewise.
3071 (vectorizable_comparison): Likewise.
3072 (vect_is_simple_cond): Take the slp_tree as argument and
3073 pass it to get_vectype_for_scalar_type.
3074 (vectorizable_condition): Update call accordingly.
3075 (get_vectype_for_scalar_type): Take a group_size argument.
3076 For BB vectorization, limit the the vector to that number
3077 of elements. Also define an overload that takes an slp_tree.
3078 (get_mask_type_for_scalar_type): Add an slp_tree argument and
3079 pass it to get_vectype_for_scalar_type.
3080 (vect_get_vector_types_for_stmt): Add a group_size argument
3081 and pass it to get_vectype_for_scalar_type. Don't use the
3082 cached vector type for BB vectorization if a group size is given.
3083 Handle data references in that case.
3084 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
3085 pass it to get_mask_type_for_scalar_type.
3086
3087 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
3088
3089 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
3090 parameter.
3091 (estimate_edge_time): Use it.
3092 * ipa-inline-analysis.c (do_estimate_edge_time): Add
3093 ret_nonspec_time parameter.
3094
3095 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
3096
3097 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
3098
3099 2019-11-15 Nick Clifton <nickc@redhat.com>
3100 Szabolcs Nagy <szabolcs.nagy@arm.com>
3101
3102 PR target/65649
3103 * config/microblaze/microblaze.c (print_operand): Print value as long.
3104
3105 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
3106
3107 * ipa-inline.c (edge_badness, inline_small_functions): Revert
3108 accidental commit.
3109
3110 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3111
3112 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
3113 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
3114
3115 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3116
3117 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
3118 (gcn_conditional_register_usage): Use constants in place of hard-coded
3119 values.
3120 (gcn_hsa_declare_function_name): Set lower bound for number of
3121 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
3122 MAX_NORMAL_VGPR_COUNT.
3123
3124 2019-11-15 Martin Jambor <mjambor@suse.cz>
3125
3126 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
3127 declaration.
3128
3129 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3130
3131 * config/gcn/gcn.c (default_requested_args): New.
3132 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
3133 set with default_requested_args.
3134 (gcn_conditional_register_usage): Limit register usage of non-kernel
3135 functions. Reassign fixed registers if a non-standard set of args is
3136 requested.
3137 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
3138
3139 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
3140
3141 PR ipa/92528
3142 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
3143 aggregate jump function when inlined-to caller has no edge summary.
3144
3145 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3146
3147 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
3148
3149 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3150
3151 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
3152 prologue use of v0.
3153 (print_operand_address): Use v1 for zero vector offset.
3154
3155 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3156
3157 PR tree-optimization/92515
3158 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
3159 types when converting a vector/scalar shift into a vector/vector one,
3160 using tree_nop_conversion_p instead of useless_type_conversion_p.
3161 Move the conversion code to the transform block.
3162
3163 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3164
3165 * read-rtl-function.c
3166 (function_reader::add_fixup_source_location): Take additional
3167 parameter of a column.
3168 (function_reader::maybe_read_location): Optionally parse column
3169 information and pass to add_fixup_source_location.
3170
3171 2019-11-15 Richard Biener <rguenther@suse.de>
3172
3173 PR tree-optimization/92512
3174 * tree-vect-loop.c (check_reduction_path): Fix operand index
3175 computability check. Add check for second use in COND_EXPRs.
3176
3177 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3178
3179 PR target/92515
3180 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
3181 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
3182
3183 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3184
3185 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
3186 register class for VCC_LO and VCC_HI.
3187 (gcn_spill_class): Use SGPR_REGS to spill registers in
3188 VCC_CONDITIONAL_REG.
3189
3190 2019-11-15 Richard Biener <rguenther@suse.de>
3191
3192 PR tree-optimization/92324
3193 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3194 singedness of SLP reduction epilouge operations. Also reduce
3195 the vector width for SLP reductions before doing elementwise
3196 operations if possible.
3197
3198 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3199
3200 * passes.c (skip_pass): Set epilogue_completed if skipping the
3201 pro_and_epilogue pass.
3202
3203 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3204
3205 * passes.c (should_skip_pass_p): Always run "dfinish".
3206
3207 2019-11-15 Richard Biener <rguenther@suse.de>
3208
3209 * ipa-inline.c (inline_small_functions): Move assignment
3210 to next before call destroying edge.
3211
3212 2019-11-15 Richard Biener <rguenther@suse.de>
3213
3214 PR tree-optimization/92039
3215 PR tree-optimization/91975
3216 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
3217 previous change, treat invariants consistently as non-constant.
3218 (tree_estimate_loop_size): Ternary ops with just the first op
3219 constant are not optimized away.
3220
3221 2019-11-15 Jakub Jelinek <jakub@redhat.com>
3222
3223 * gimplify.c (gimplify_call_expr): Don't call
3224 omp_resolve_declare_variant after gimplification.
3225 * omp-general.c (omp_context_selector_matches): For isa that might
3226 match in some other function, defer if in declare simd function.
3227 (omp_context_compute_score): Don't look for " score" in construct
3228 trait set. Set *score to -1 if it can't ever match.
3229 (omp_resolve_declare_variant): If any variants need to be deferred,
3230 don't punt immediately, but compute scores of all variants and if
3231 ther eis a score winner that doesn't need to be deferred, return that.
3232
3233 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
3234
3235 * ipa-comdats.c: Fix comments typo.
3236 * ipa-profile.c: Fix comments typo.
3237 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
3238 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
3239 (gimple_gen_ic_func_profiler): Likewise.
3240 (pass_ipa_tree_profile::gate): Fix comments typo.
3241
3242 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
3243
3244 * ipa-inline.c (inline_small_functions): Update iterator of next.
3245
3246 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3247
3248 * lra-spills.c (assign_spill_hard_regs): Check that the spill
3249 register is suitable for the mode.
3250
3251 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3252
3253 * range-op.h (range_operator::fold_range): Return a bool.
3254 * range-op.cc (range_operator::wi_fold): Assert supported type.
3255 (range_operator::fold_range): Assert supported type and return true.
3256 (operator_equal::fold_range): Return true.
3257 (operator_not_equal::fold_range): Same.
3258 (operator_lt::fold_range): Same.
3259 (operator_le::fold_range): Same.
3260 (operator_gt::fold_range): Same.
3261 (operator_ge::fold_range): Same.
3262 (operator_plus::op1_range): Adjust call to fold_range.
3263 (operator_plus::op2_range): Same.
3264 (operator_minus::op1_range): Same.
3265 (operator_minus::op2_range): Same.
3266 (operator_exact_divide::op1_range): Same.
3267 (operator_lshift::fold_range): Return true and adjust fold_range call.
3268 (operator_rshift::fold_range): Same.
3269 (operator_cast::fold_range): Return true.
3270 (operator_logical_and::fold_range): Same.
3271 (operator_logical_or::fold_range): Same.
3272 (operator_logical_not::fold_range): Same.
3273 (operator_bitwise_not::fold_range): Adjust call to fold_range.
3274 (operator_bitwise_not::op1_range): Same.
3275 (operator_cst::fold_range): Return true.
3276 (operator_identity::fold_range): Return true.
3277 (operator_negate::fold_range): Return true and adjust fold_range call.
3278 (operator_addr_expr::fold_range): Return true.
3279 (operator_addr_expr::op1_range): Adjust call to fold_range.
3280 (range_cast): Same.
3281 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
3282 (range_fold_unary_symbolics_p): Same.
3283
3284 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3285
3286 PR tree-optimization/92506
3287 * range-op.cc (range_operator::fold_range): Start with range undefined.
3288 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
3289 overflow is varying.
3290
3291 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3292
3293 * range-op.cc (*operator*::*range): Remove calls to
3294 range_intersect, range_invert, and range_union in favor of calling
3295 the in-place API methods.
3296 (range_tests): Same.
3297 * range.cc (range_intersect): Remove.
3298 (range_union): Remove.
3299 (range_invert): Remove.
3300 * range.h (range_intersect): Remove.
3301 (range_union): Remove.
3302 (range_intersect): Remove.
3303
3304 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
3305
3306 PR rtl-optimization/92430
3307 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
3308 (pass_jump_after_combine::execute): Perform jump threading
3309 unconditionally.
3310
3311 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3312 Doug Rupp <rupp@adacore.com>
3313 Olivier Hainque <hainque@adacore.com>
3314
3315 * config.gcc: Collapse the arm-vxworks entries into
3316 a single arm-wrs-vxworks7* one, bpabi based. Update
3317 the default cpu from arm8 to armv7-a
3318 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
3319 we always use ARM_UNWIND_INFO.
3320 (DWARF2_UNWIND_INFO): Remove redefinition.
3321 (ARM_TARGET2_DWARF_FORMAT): Likewise.
3322 (VXWORKS_PERSONALITY): Define, to "llvm".
3323 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
3324
3325 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3326
3327 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
3328 _VX_CPU instead of CPU and handle arm_arch8.
3329
3330 2019-11-14 Doug Rupp <rupp@adacore.com>
3331 Olivier Hainque <hainque@adacore.com>
3332 Jerome Lambourg <lambourg@adacore.com>
3333
3334 * config.gcc: Handle aarch64*-wrs-vxworks7*.
3335 * config/aarch64/aarch64-vxworks.h: New file.
3336 * config/aarch64/t-aarch64-vxworks: New file.
3337
3338 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
3339 Olivier Hainque <hainque@adacore.com>
3340
3341 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
3342 definition, pointless with a VxWorks specific version
3343 of crtstuff.
3344 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
3345 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
3346 New local macros, controlling the addition of vxworks specific
3347 crtstuff objects depending on the EH mechanism and kind of
3348 module being linked.
3349 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
3350
3351 2019-11-06 Pat Bernardi <bernardi@adacore.com>
3352 Jerome Lambourg <lambourg@adacore.com>
3353 Olivier Hainque <hainque@adacore.com>
3354
3355 * config.gcc: Add comment to introduce the TARGET_VXWORKS
3356 common macro definitions, conveying VXWORKS7 or 64bit general
3357 variations. Add a block to set gcc_cv_initfini_array
3358 unconditionally to "yes" for VxWorks7.
3359 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
3360 by default. Update some comments.
3361 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
3362 default, to be added the end of VXWORKS_LIBS_RTP.
3363 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
3364 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
3365 redefine.
3366 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
3367 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
3368 to account for the now available TLS abilities.
3369 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
3370 (VXWORKS_HAVE_TLS): Likewise.
3371
3372 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3373
3374 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
3375 (vect_slp_convert_to_external): Likewise.
3376 (vect_slp_analyze_node_operations): If analysis fails, try building
3377 the node from scalars instead.
3378
3379 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3380
3381 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
3382 between vector types.
3383 * tree-vect-stmts.c (vectorizable_conversion): Extend the
3384 non-widening and non-narrowing path to handle standard
3385 conversion codes, if the target supports them.
3386 * expr.c (convert_move): Try using the extend and truncate optabs
3387 for vectors.
3388 * optabs-tree.c (supportable_convert_operation): Likewise.
3389 * config/aarch64/iterators.md (Vnarroqw): New iterator.
3390 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
3391 (trunc<mode><Vnarrowq>2): New patterns.
3392
3393 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3394
3395 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
3396 require vectype and nunits_vectype to have the same size;
3397 instead assert that nunits_vectype has at least as many
3398 elements as vectype. Don't compute a separate nunits_vectype
3399 if the scalar type is obviously the same as vectype's.
3400 Tweak dump messages.
3401
3402 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3403
3404 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
3405 function.
3406 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
3407 (TARGET_VECTORIZE_RELATED_MODE): Define.
3408
3409 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3410
3411 * tree-vectorizer.h (vec_info::mode_set): New typedef.
3412 (vec_info::used_vector_mode): New member variable.
3413 (vect_chooses_same_modes_p): Declare.
3414 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
3415 chosen vector mode in vec_info::used_vector_mode.
3416 (vect_chooses_same_modes_p): New function.
3417 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
3418 the same vector statements multiple times.
3419 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3420
3421 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3422
3423 * machmode.h (opt_machine_mode::operator==): New function.
3424 (opt_machine_mode::operator!=): Likewise.
3425 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
3426 (get_related_vectype_for_scalar_type): Delete.
3427 (get_vectype_for_scalar_type_and_size): Declare.
3428 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
3429 whether analysis passed or failed, and with what vector modes.
3430 Use related_vector_mode to check whether trying a particular
3431 vector mode would be redundant with the autodetected mode,
3432 and print a dump message if we decide to skip it.
3433 * tree-vect-loop.c (vect_analyze_loop): Likewise.
3434 (vect_create_epilog_for_reduction): Use
3435 get_related_vectype_for_scalar_type instead of
3436 get_vectype_for_scalar_type_and_size.
3437 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
3438 with...
3439 (get_related_vectype_for_scalar_type): ...this new function.
3440 Take a starting/"prevailing" vector mode rather than a vector size.
3441 Take an optional nunits argument, with the same meaning as for
3442 related_vector_mode. Use related_vector_mode when not
3443 auto-detecting a mode, falling back to mode_for_vector if no
3444 target mode exists.
3445 (get_vectype_for_scalar_type): Update accordingly.
3446 (get_same_sized_vectype): Likewise.
3447 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
3448
3449 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3450
3451 * tree-vect-stmts.c (vectorizable_call): Require the types
3452 to have the same size.
3453
3454 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3455
3456 * tree-vect-stmts.c (vectorizable_call): If an operand is
3457 constant or external, use get_vectype_for_scalar_type
3458 rather than get_same_sized_vectype to get its vector type.
3459 (vectorizable_conversion, vectorizable_shift): Likewise.
3460 (vectorizable_operation): Likewise.
3461
3462 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3463
3464 * tree-vectorizer.h (vec_info::vector_size): Replace with...
3465 (vec_info::vector_mode): ...this new field.
3466 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
3467 (vect_analyze_loop, vect_transform_loop): Likewise.
3468 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
3469 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3470 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3471 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3472 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3473
3474 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3475
3476 * target.h (vector_sizes, auto_vector_sizes): Delete.
3477 (vector_modes, auto_vector_modes): New typedefs.
3478 * target.def (autovectorize_vector_sizes): Replace with...
3479 (autovectorize_vector_modes): ...this new hook.
3480 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3481 Replace with...
3482 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
3483 * doc/tm.texi: Regenerate.
3484 * targhooks.h (default_autovectorize_vector_sizes): Delete.
3485 (default_autovectorize_vector_modes): New function.
3486 * targhooks.c (default_autovectorize_vector_sizes): Delete.
3487 (default_autovectorize_vector_modes): New function.
3488 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
3489 of autovectorize_vector_sizes. Use the number of units in the mode
3490 to calculate the maximum VF.
3491 * omp-low.c (omp_clause_aligned_alignment): Use
3492 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3493 Use a loop based on related_mode to iterate through all supported
3494 vector modes for a given scalar mode.
3495 * optabs-query.c (can_vec_mask_load_store_p): Use
3496 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3497 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3498 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3499 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3500 Replace with...
3501 (aarch64_autovectorize_vector_modes): ...this new function.
3502 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3503 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3504 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3505 (arc_autovectorize_vector_modes): ...this new function.
3506 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3507 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3508 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3509 (arm_autovectorize_vector_modes): ...this new function.
3510 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3511 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3512 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3513 (ix86_autovectorize_vector_modes): ...this new function.
3514 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3515 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3516 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3517 (mips_autovectorize_vector_modes): ...this new function.
3518 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3519 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3520
3521 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3522
3523 * tree-vect-stmts.c (vectorizable_shift): Check the number
3524 of vector elements as well as the type mode when deciding
3525 whether an op1_vectype is compatible. Reuse the result of
3526 this check when generating vector statements.
3527
3528 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3529
3530 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3531 targetm.vectorize.preferred_simd_mode returns an integer mode,
3532 use mode_for_vector to decide what the vector type's mode
3533 should actually be. Use build_vector_type_for_mode instead
3534 of build_vector_type.
3535
3536 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3537
3538 * target.def (get_mask_mode): Take a vector mode itself as argument,
3539 instead of properties about the vector mode.
3540 * doc/tm.texi: Regenerate.
3541 * targhooks.h (default_get_mask_mode): Update to reflect new
3542 get_mode_mask interface.
3543 * targhooks.c (default_get_mask_mode): Likewise. Use
3544 related_int_vector_mode.
3545 * optabs-query.c (can_vec_mask_load_store_p): Update call
3546 to get_mask_mode.
3547 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3548 first that the original mode really is a vector.
3549 * tree.c (build_truth_vector_type_for): Likewise.
3550 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3551 get_mode_mask interface.
3552 (aarch64_expand_sve_vcond): Update call accordingly.
3553 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3554 get_mode_mask interface.
3555 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3556
3557 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3558
3559 * tree.h (build_truth_vector_type): Delete.
3560 (build_same_sized_truth_vector_type): Likewise.
3561 * tree.c (build_truth_vector_type): Rename to...
3562 (build_truth_vector_type_for): ...this. Make static and take
3563 a vector type as argument.
3564 (truth_type_for): Update accordingly.
3565 (build_same_sized_truth_vector_type): Delete.
3566 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3567 instead of build_same_sized_truth_vector_type.
3568 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3569 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3570 * tree-vect-patterns.c (build_mask_conversion): Likeise.
3571 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3572 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3573 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3574 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3575 (vectorizable_store, vectorizable_condition): Likewise.
3576 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3577 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3578 build_truth_vector_type.
3579 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3580 Use truth_type_for instead of build_same_sized_truth_vector_type.
3581 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3582
3583 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3584
3585 * tree.h (build_truth_vector_type_for_mode): Declare.
3586 * tree.c (build_truth_vector_type_for_mode): New function,
3587 split out from...
3588 (build_truth_vector_type): ...here.
3589 (build_opaque_vector_type): Fix head comment.
3590 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3591 vec_info parameter.
3592 (vect_halve_mask_nunits): Replace vec_info parameter with the
3593 mode of the new vector.
3594 (vect_double_mask_nunits): Likewise.
3595 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3596 (vect_double_mask_nunits): Likewise.
3597 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3598 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3599 to vect_halve_mask_nunits, getting the required mode from the unpack
3600 patterns.
3601 (vect_set_loop_condition_masked): Update call accordingly.
3602 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3603 parameter and update call to vect_double_mask_nunits.
3604 (vectorizable_conversion): Update call accordingly.
3605 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3606 (vectorizable_call): Update call accordingly.
3607 (supportable_widening_operation): Update call to
3608 vect_halve_mask_nunits.
3609 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3610 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3611
3612 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3613
3614 * machmode.h (mode_for_int_vector): Delete.
3615 (related_int_vector_mode): Declare.
3616 * stor-layout.c (mode_for_int_vector): Delete.
3617 (related_int_vector_mode): New function.
3618 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3619 instead of mode_for_int_vector.
3620 (expand_vec_perm_const): Likewise.
3621 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3622 (aarch64_evpc_sve_tbl): Likewise.
3623 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3624 (s390_expand_vcond): Likewise.
3625
3626 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3627
3628 * target.def (related_mode): New hook.
3629 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3630 * doc/tm.texi: Regenerate.
3631 * targhooks.h (default_vectorize_related_mode): Declare.
3632 * targhooks.c (default_vectorize_related_mode): New function.
3633 * machmode.h (related_vector_mode): Declare.
3634 * stor-layout.c (related_vector_mode): New function.
3635 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3636 * optabs-query.c (qimode_for_vec_perm): Likewise.
3637 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3638 (vectorizable_store, vectorizable_load): Likewise
3639
3640 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3641
3642 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3643 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3644 * config/arm/arm-c.c (arm_cpu_builtins): Define
3645 __GCC_ASM_FLAG_OUTPUTS__.
3646 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3647 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3648 Define __GCC_ASM_FLAG_OUTPUTS__.
3649 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3650 * doc/extend.texi (FlagOutputOperands): Add documentation
3651 for ARM and AArch64.
3652
3653 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3654 * config/arm/predicates.md (nz_comparison_operator): Rename
3655 from noov_comparison_operator.
3656 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3657 (arm_gen_dicompare_reg): Likewise.
3658 (maybe_get_arm_condition_code): Likewise.
3659 (thumb1_final_prescan_insn): Likewise.
3660 (arm_emit_coreregs_64bit_shift): Likewise.
3661 * config/arm/arm.md (addsi3_compare0): Likewise.
3662 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3663 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3664 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3665 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3666 (*mulsi3addsi_compare0_scratch): Likewise.
3667 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3668 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3669 (*zeroextractsi_compare0_scratch): Likewise.
3670 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3671 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3672 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3673 (andsi_not_shiftsi_si_scc): Likewise.
3674 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3675 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3676 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3677 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3678 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3679 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3680 (return_addr_mask, *check_arch2): Likewise.
3681 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3682 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3683 (compare_scc splitters): Likewise.
3684 (movcond_addsi): Likewise.
3685 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3686 (*thumb2_addsi3_compare0_scratch): Likewise.
3687 (*thumb2_mulsi_short_compare0): Likewise.
3688 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3689 (compare peephole2s): Likewise.
3690 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3691 nz_comparison_operator names.
3692 (cbranchsi4_insn): Likewise.
3693
3694 * config/arm/constraints.md (c): Use cc_register predicate.
3695
3696 * config/aarch64/constraints.md (c): New constraint.
3697
3698 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3699
3700 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3701 ipa_merge_fn_summary_after_inlining): Micro optimize.
3702
3703 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3704
3705 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3706
3707 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3708
3709 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3710 (ipa_value_range_from_jfunc): New function.
3711 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3712 known_value_ranges parameter; use it to evalulate conditions.
3713 (evaluate_properties_for_edge): Compute known value ranges.
3714 (ipa_fn_summary_t::duplicate): Update use of
3715 evaluate_conditions_for_known_args.
3716 (estimate_ipcp_clone_size_and_time): Likewise.
3717 (ipa_merge_fn_summary_after_inlining): Likewise.
3718 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3719
3720 2019-11-14 Martin Liska <mliska@suse.cz>
3721
3722 * ipa-inline.c (want_inline_small_function_p): Use
3723 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3724 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3725
3726 2019-11-14 Martin Liska <mliska@suse.cz>
3727
3728 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3729 of a callee to get value of the param.
3730 * ipa-inline.c (inline_insns_auto): Use proper
3731 opt_for_fn.
3732 * opts.c (maybe_default_option): Do not overwrite param
3733 value if optimization level does not match. Note that
3734 params usually have default value set via Init() keyword.
3735 * params.opt: Remove -param=max-inline-insns-auto-O2.
3736 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3737 * doc/invoke.texi: Remove documentation of
3738 max-inline-insns-auto-O2.
3739
3740 2019-11-14 Martin Liska <mliska@suse.cz>
3741
3742 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3743 Do not initialize m_other_count.
3744 (switch_conversion::collect): Do not count m_default_count and
3745 m_other_count as we use frequencies for edges.
3746 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3747
3748 2019-11-14 Martin Liska <mliska@suse.cz>
3749
3750 PR other/92329
3751 * doc/invoke.texi: Document -fallocation-dce.
3752
3753 2019-11-14 Martin Liska <mliska@suse.cz>
3754
3755 PR target/92389
3756 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3757 PTA_ICELAKE_CLIENT which is later interited by
3758 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3759
3760 2019-11-14 Martin Liska <mliska@suse.cz>
3761
3762 * ipa-icf.c (sem_item_optimizer::execute): Save
3763 loaded_symbols.
3764 (sem_item_optimizer::parse_nonsingleton_classes):
3765 Return number of loaded symbols.
3766 (sem_item_optimizer::merge_classes): Print
3767 statistics about totally needed symbols.
3768 * ipa-icf.h (parse_nonsingleton_classes): Change return
3769 type.
3770 (merge_classes): Add one argument.
3771
3772 2019-11-14 Martin Liska <mliska@suse.cz>
3773
3774 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3775 func_checker::hash_operand by handling of FIELD_DECLs.
3776
3777 2019-11-14 Martin Liska <mliska@suse.cz>
3778
3779 * ipa-icf-gimple.h (func_checker::func_checker): Add
3780 default constructor.
3781 * ipa-icf.c (sem_function::init): Make operand_equal_p
3782 and hash_operand public.
3783 (sem_item::add_expr): Remove.
3784 (sem_item::add_type): Remove.
3785 (sem_function::hash_stmt): Use m_checker for hashing
3786 of GIMPLE statements.
3787 (sem_function::parse): Init with checker.
3788 (sem_variable::parse): Pass NULL as checker.
3789 (sem_item_optimizer::parse_funcs_and_vars):
3790 Pass checker to ::parse function.
3791 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3792 (sem_variable::parse): New function.
3793 (sem_variable::get_hash): Only return computed hash value.
3794 (sem_variable::init): Initialize hash of a variable.
3795 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3796 to couple of functions as a new argument.
3797
3798 2019-11-14 Martin Liska <mliska@suse.cz>
3799
3800 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3801 bail out reason.
3802 (func_checker::compare_gimple_assign): Likewise.
3803
3804 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3805
3806 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3807 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3808 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3809
3810 * omp-general.c (omp_context_name_list_prop): New function.
3811 (omp_context_selector_matches): Use it. Return 0 if it returns
3812 NULL.
3813 (omp_context_selector_props_compare): Allow equivalency of an
3814 identifier and a string literal containing no embedded zeros.
3815
3816 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3817
3818 * range-op.cc (RANGE3): Remove.
3819 (range_tests): Remove all selftest that check for multi-ranges.
3820 Put tests in namespace selftest.
3821 * selftest.h: Move range_tests into namespace selftest.
3822 * value-range.h (class value_range): Unfriend range_tests.
3823
3824 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3825
3826 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3827 normalize_symbolics and normalize_addresses working in place.
3828 (range_fold_unary_symbolics_p): Same.
3829 (range_fold_unary_symbolics_p): Same.
3830 * value-range.cc (num_pairs): Same.
3831 (lower_bound): Same.
3832 (upper_bound): Same.
3833 (contains_p): Same.
3834 (normalize_addresses): Same.
3835 (normalize_symbolics): Same.
3836 * value-range.h (normalize_symbolics): Same.
3837 (normalize_addresses): Same.
3838
3839 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3840
3841 PR ipa/91682
3842 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3843 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3844 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3845 (ipa_agg_jump_function): Remove member function equal_to.
3846 (ipa_agg_jump_function_p): Remove typedef.
3847 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3848 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3849 information for aggregate jump function.
3850 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3851 record last definition statement.
3852 (load_from_unmodified_param_or_agg): New function.
3853 (ipa_known_agg_contents_list): Add new field type and value, remove
3854 field constant.
3855 (build_agg_jump_func_from_list): Rename parameter const_count to
3856 value_count, build aggregate jump function from ipa_load_agg_data.
3857 (analyze_agg_content_value): New function.
3858 (extract_mem_content): Analyze memory store assignment to prepare
3859 information for aggregate jump function generation.
3860 (determine_known_aggregate_parts): Add new parameter fbi, remove
3861 parameter aa_walk_budeget_p.
3862 (update_jump_functions_after_inlining): Update aggregate jump function.
3863 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3864 (try_make_edge_direct_simple_call): Add new parameter new_root.
3865 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3866 new_root_info.
3867 (update_indirect_edges_after_inlining): Pass new argument to
3868 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3869 (ipa_write_jump_function): Write aggregate jump function to file.
3870 (ipa_read_jump_function): Read aggregate jump function from file.
3871 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3872 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3873 (ipa_agg_value_from_node): Likewise.
3874 (ipa_agg_value_set_from_jfunc): Likewise.
3875 (propagate_vals_across_arith_jfunc): Likewise.
3876 (propagate_aggregate_lattice): Likewise.
3877 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3878 (propagate_vals_across_pass_through): Call
3879 propagate_vals_across_arith_jfunc.
3880 (get_clone_agg_value): Move forward.
3881 (propagate_aggs_across_jump_function): Handle value propagation for
3882 aggregate jump function.
3883 (agg_jmp_p_vec_for_t_vec): Remove.
3884 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3885 with vec<ipa_agg_value>.
3886 (copy_plats_to_inter, intersect_with_plats): Likewise.
3887 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3888 (intersect_aggregate_with_edge): Likewise.
3889 (find_aggregate_values_for_callers_subset): Likewise.
3890 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3891 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3892 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3893 (gather_context_independent_values): Likewise.
3894 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3895 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3896 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3897 (evaluate_properties_for_edge): Likewise.
3898 (estimate_edge_devirt_benefit): Likewise.
3899 (estimate_edge_size_and_time): Likewise.
3900 (estimate_calls_size_and_time): Likewise.
3901 (ipa_call_context::ipa_call_context): Likewise.
3902 (estimate_ipcp_clone_size_and_time): Likewise.
3903 * ipa-fnsummary.h (ipa_call_context): Replace
3904 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3905 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3906 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3907 (do_estimate_edge_size): Likewise.
3908 (do_estimate_edge_hints): Likewise.
3909
3910 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3911
3912 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3913 binary operations.
3914
3915 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3916
3917 * ipa-profile.c (check_argument_count): Check properly that e_info
3918 is non-NULL; do not check descriptors.
3919
3920 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3921
3922 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3923 check for ipa profiles.
3924
3925 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3926
3927 PR c++/92421
3928 * ipa-prop.c (update_indirect_edges_after_inlining):
3929 Mark parameter as used.
3930 * ipa-inline.c (recursive_inlining): Reset node cache
3931 after inlining.
3932 (inline_small_functions): Remove checking ifdef.
3933 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3934 cache consistency.
3935
3936 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3937
3938 PR ipa/92498
3939 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3940 is NULL.
3941 (ipa_profile): Fix reversed test.
3942
3943 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3944
3945 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3946 (propagate_constants_topo): Fix typo.
3947
3948 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3949
3950 * Makefile.in (OBJS): Add value-range.o.
3951 (GTFILES): Add value-range.h.
3952 * gengtype.c (open_base_files): Add value-range.h to list of
3953 header files.
3954 * tree-vrp.c: Move the following value_range related functions:
3955 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3956 constant_p, set_undefined, set_varying, may_contain_p,
3957 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3958 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3959 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3960 value_inside_range, ranges_from_anti_range, union_ranges,
3961 intersect_ranges, intersect_helper, union_helper, union_,
3962 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3963 upper_bound, contains_p, invert, intersect...
3964 * value-range.cc: ...to here.
3965 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3966 associated inline methods from here...
3967 * value-range.h: ...to here.
3968
3969 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3970
3971 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3972 instead of asserting its value.
3973
3974 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3975
3976 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3977 constructors and set methods so value_range_kind is the last
3978 argument and defaults to VR_RANGE.
3979 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3980 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3981 * ipa-prop.c (ipa_get_value_range): Same.
3982 (ipa_compute_jump_functions_for_edge): Same.
3983 * range-op.cc (value_range_from_overflowed_bounds): Same.
3984 (operator_cast::op1_range): Same.
3985 (range_tests): Same.
3986 * range.cc (range_nonzero): Same.
3987 * tree-ssanames.c (get_range_info): Same.
3988 * tree-vrp.c (value_range_equiv::set): Same.
3989 (value_range::value_range): Same.
3990 (value_range_equiv::value_range_equiv): Same.
3991 (value_range_equiv::update): Same.
3992 (value_range_equiv::deep_copy): Same.
3993 (value_range_equiv::move): Same.
3994 (value_range_equiv::set_undefined): Same.
3995 (value_range::set): Same.
3996 (value_range::set_nonzero): Same.
3997 (ranges_from_anti_range): Same.
3998 (extract_range_from_plus_minus_expr): Same.
3999 (value_range::intersect_helper): Same.
4000 (value_range_equiv::intersect): Same.
4001 (value_range::union_helper): Same.
4002 (value_range_equiv::union_): Same.
4003 (value_range::normalize_symbolics): Same.
4004 (value_range::invert): Same.
4005 (determine_value_range_1): Same.
4006 * tree-vrp.h (class value_range): Same.
4007 (class value_range_equiv): Same.
4008 * vr-values.c (set_value_range_to_nonnegative): Same.
4009 (set_value_range_to_truthvalue): Same.
4010 (vr_values::update_value_range): Same.
4011 (vr_values::extract_range_for_var_from_comparison_expr): Same.
4012 (vr_values::extract_range_from_binary_expr): Same.
4013 (vr_values::extract_range_from_comparison): Same.
4014 (vr_values::extract_range_basic): Same.
4015 (vr_values::adjust_range_with_scev): Same.
4016 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
4017 (vr_values::extract_range_from_phi_node): Same.
4018
4019 2019-11-13 Ulrich Drepper <drepper@redhat.com>
4020
4021 * tree-dump.c (dequeue_and_dump): Print first tree operand
4022 for VIEW_CONVERT_EXPR.
4023
4024 2019-11-13 Joseph Myers <joseph@codesourcery.com>
4025
4026 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
4027 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
4028 * real.c (get_max_float): Add norm_max argument.
4029 * real.h (get_max_float): Update prototype.
4030 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
4031 get_max_float.
4032
4033 2019-11-13 Martin Liska <mliska@suse.cz>
4034
4035 * dbgcnt.c (test_sorted_dbg_counters): New.
4036 (dbgcnt_c_tests): Likewise.
4037 * selftest-run-tests.c (selftest::run_tests): Likewise.
4038 * selftest.h (dbgcnt_c_tests): Likewise.
4039
4040 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4041 Martin Jambor <mjambor@suse.cz>
4042
4043 PR ipa/92454
4044 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
4045 (identify_dead_nodes): Likewise.
4046
4047 2019-11-13 Martin Liska <mliska@suse.cz>
4048
4049 * ipa-icf.c (sem_function::equals_private): Do not overuse
4050 push/pop_cfun functions.
4051
4052 2019-11-13 Martin Liska <mliska@suse.cz>
4053
4054 * common.opt: Document change of -fdbg-cnt option.
4055 * dbgcnt.c (DEBUG_COUNTER): Remove.
4056 (dbg_cnt_is_enabled): Remove.
4057 (dbg_cnt): Work with new intervals.
4058 (dbg_cnt_set_limit_by_index): Set to new
4059 list of intervals.
4060 (dbg_cnt_set_limit_by_name): Likewise.
4061 (dbg_cnt_process_single_pair): Process new format.
4062 (dbg_cnt_process_opt): Likewise.
4063 (dbg_cnt_list_all_counters): Likewise.
4064 * doc/invoke.texi: Document change of -fdbg-cnt option.
4065 (cmp_tuples): New.
4066
4067 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4068
4069 * ipa-inline.c (ipa_inline): Check that function is defined before
4070 flattening.
4071
4072 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4073 Julian Brown <julian@codesourcery.com>
4074
4075 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
4076 flag_worker_partitioning is not set.
4077 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
4078 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
4079
4080 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4081
4082 * config/gcn/gcn-run.c (heap_region): New global variable.
4083 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
4084 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
4085 (get_kernarg_region): Move contents to ....
4086 (get_memory_region): .... here.
4087 (get_heap_region): New function.
4088 (init_device): Initialize the heap_region.
4089 (device_malloc): Add region parameter.
4090 (struct kernargs): Move heap ....
4091 (heap): ... to global scope.
4092 (main): Allocate heap separate to kernargs.
4093
4094 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4095
4096 * ipa-prop.c (ipa_print_node_jump_functions,
4097 ipa_print_node_params): Print info about missing summaries.
4098
4099 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4100
4101 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
4102 the cost of generating loop masks.
4103
4104 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4105
4106 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
4107 New function.
4108 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
4109 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4110 (vect_transform_loop): Likewise.
4111 (vect_analyze_loop_costing): Don't take the cost of versioning
4112 into account for the static profitability threshold if it turns
4113 out that no versioning is needed.
4114
4115 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4116
4117 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
4118 and target_option_default_node to get -fprofile-generate ctors working
4119 right with LTO.
4120
4121 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4122
4123 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
4124 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
4125 (vectorizable_assignment): Don't add a cost for nop conversions.
4126 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
4127 Likewise.
4128 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
4129
4130 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4131
4132 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
4133 number of ncopies as an additional argument.
4134 (vectorizable_conversion): Update call accordingly. Use "modifier"
4135 to check whether a conversion is between vectors with the same
4136 numbers of units.
4137
4138 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4139
4140 * config/aarch64/aarch64-sve-builtins-functions.h
4141 (unary_count::expand): Use aarch64_sve_int_mode instead of
4142 mode_for_int_vector.
4143
4144 2019-11-13 Martin Liska <mliska@suse.cz>
4145
4146 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
4147
4148 2019-11-13 Martin Liska <mliska@suse.cz>
4149
4150 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4151 Remove call to finalize_options_struct.
4152
4153 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
4154
4155 PR target/92055
4156 * config/avr/t-avr (avr-mcus): Do not depend on
4157 $(srcdir)/config/avr/t-multilib.
4158
4159 2019-11-13 Richard Biener <rguenther@suse.de>
4160
4161 PR tree-optimization/92473
4162 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
4163 direct optab reduction in the correct type.
4164
4165 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4166
4167 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
4168 hexadecimal literal.
4169
4170 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4171
4172 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
4173 UNORDERED if !HONOR_NANS (DFmode).
4174 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
4175 if !HONOR_NANS (<MODE>mode).
4176
4177 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4178
4179 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
4180 (ipcp_verify_propagated_values): Likewise.
4181 (propagate_constants_across_call): Likewise.
4182 (propagate_constants_topo): Likewise.
4183 (ipcp_propagate_stage): Likewise.
4184
4185 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4186
4187 PR ipa/92471
4188 * ipa-profile.c (check_argument_count): Break out from ...;
4189 watch for missing summaries.
4190 (ipa_profile): Here.
4191
4192 2019-11-12 Martin Sebor <msebor@redhat.com>
4193
4194 PR tree-optimization/92412
4195 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
4196 extern variables.
4197
4198 2019-11-12 Martin Sebor <msebor@redhat.com>
4199
4200 PR middle-end/83688
4201 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
4202 (directive::argno): New member.
4203 (format_result::aliases, format_result::alias_count): New data members.
4204 (format_result::append_alias): New member function.
4205 (fmtresult::dst_offset): New data member.
4206 (pass_sprintf_length::call_info::dst_origin): New data member.
4207 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
4208 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
4209 (get_origin_and_offset): Same.
4210 (format_string): Call it.
4211 (format_directive): Call append_alias and set directive argument
4212 number.
4213 (maybe_warn_overlap): New function.
4214 (pass_sprintf_length::compute_format_length): Call it.
4215 (pass_sprintf_length::handle_gimple_call): Initialize new members.
4216 * tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
4217
4218 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
4219
4220 PR rtl-optimization/92430
4221 * cfgcleanup.c (pass_jump_after_combine::execute): Free
4222 dominance info at the beginning.
4223
4224 2019-11-12 Richard Biener <rguenther@suse.de>
4225
4226 PR tree-optimization/92460
4227 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
4228 expression before gimplifying.
4229
4230 2019-11-12 Richard Biener <rguenther@suse.de>
4231
4232 PR tree-optimization/92461
4233 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
4234 stmt after propagation.
4235
4236 2019-11-12 Martin Liska <mliska@suse.cz>
4237
4238 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
4239 Use SET_OPTION_IF_UNSET.
4240 (ix86_option_override_internal): Likewise.
4241 * opts.c (default_options_optimization): Likewise.
4242 (finish_options): Likewise.
4243 (enable_fdo_optimizations): Likewise.
4244 (common_handle_option): Likewise.
4245
4246 2019-11-12 Martin Liska <mliska@suse.cz>
4247
4248 * common/common-target.def: Remove option_validate_param and
4249 option_default_params.
4250 * common/common-targhooks.c (default_option_validate_param):
4251 Remove.
4252 * common/common-targhooks.h (default_option_validate_param):
4253 Remove.
4254 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
4255 Remove usage of this.
4256 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
4257 (aarch64_option_validate_param): Likewise.
4258 (aarch64_option_default_params): Likewise
4259 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
4260 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4261 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4262 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4263 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4264 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4265 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4266 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4267 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4268 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4269 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
4270 guard_size here.
4271 * doc/tm.texi: Remove option_default_params and option_validate_param.
4272 * doc/tm.texi.in: Likewise.
4273
4274 2019-11-12 Martin Liska <mliska@suse.cz>
4275
4276 * common/common-target.def:
4277 Do not mention set_default_param_value
4278 and set_param_value.
4279 * doc/tm.texi: Likewise.
4280
4281 2019-11-12 Martin Liska <mliska@suse.cz>
4282
4283 * common.opt: Remove param_values.
4284 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
4285 Remove finalize_options_struct.
4286 * gcc.c (driver::decode_argv): Do not call global_init_params
4287 and finish_params.
4288 (driver::finalize): Do not call params_c_finalize
4289 and finalize_options_struct.
4290 * opt-suggestions.c (option_proposer::get_completions): Remove
4291 special casing of params.
4292 (option_proposer::find_param_completions): Remove.
4293 (test_completion_partial_match): Update expected output.
4294 * opt-suggestions.h: Remove find_param_completions.
4295 * opts-common.c (add_misspelling_candidates): Add
4296 --param with a space.
4297 * opts.c (handle_param): Remove.
4298 (init_options_struct):. Remove init_options_struct and
4299 similar calls.
4300 (finalize_options_struct): Remove.
4301 (common_handle_option): Use SET_OPTION_IF_UNSET.
4302 * opts.h (finalize_options_struct): Remove.
4303 * toplev.c (general_init): Do not call global_init_params.
4304 (toplev::finalize): Do not call params_c_finalize and
4305 finalize_options_struct.
4306
4307 2019-11-12 Martin Liska <mliska@suse.cz>
4308
4309 * Makefile.in: Remove PARAMS_H and params.list
4310 and params.options.
4311 * params-enum.h: Remove.
4312 * params-list.h: Remove.
4313 * params-options.h: Remove.
4314 * params.c: Remove.
4315 * params.def: Remove.
4316 * params.h: Remove.
4317 * asan.c: Do not include params.h.
4318 * auto-profile.c: Likewise.
4319 * bb-reorder.c: Likewise.
4320 * builtins.c: Likewise.
4321 * cfgcleanup.c: Likewise.
4322 * cfgexpand.c: Likewise.
4323 * cfgloopanal.c: Likewise.
4324 * cgraph.c: Likewise.
4325 * combine.c: Likewise.
4326 * common/config/aarch64/aarch64-common.c: Likewise.
4327 * common/config/gcn/gcn-common.c: Likewise.
4328 * common/config/ia64/ia64-common.c: Likewise.
4329 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
4330 * common/config/rs6000/rs6000-common.c: Likewise.
4331 * common/config/sh/sh-common.c: Likewise.
4332 * config/aarch64/aarch64.c: Likewise.
4333 * config/alpha/alpha.c: Likewise.
4334 * config/arm/arm.c: Likewise.
4335 * config/avr/avr.c: Likewise.
4336 * config/csky/csky.c: Likewise.
4337 * config/i386/i386-builtins.c: Likewise.
4338 * config/i386/i386-expand.c: Likewise.
4339 * config/i386/i386-features.c: Likewise.
4340 * config/i386/i386-options.c: Likewise.
4341 * config/i386/i386.c: Likewise.
4342 * config/ia64/ia64.c: Likewise.
4343 * config/rs6000/rs6000-logue.c: Likewise.
4344 * config/rs6000/rs6000.c: Likewise.
4345 * config/s390/s390.c: Likewise.
4346 * config/sparc/sparc.c: Likewise.
4347 * config/visium/visium.c: Likewise.
4348 * coverage.c: Likewise.
4349 * cprop.c: Likewise.
4350 * cse.c: Likewise.
4351 * cselib.c: Likewise.
4352 * dse.c: Likewise.
4353 * emit-rtl.c: Likewise.
4354 * explow.c: Likewise.
4355 * final.c: Likewise.
4356 * fold-const.c: Likewise.
4357 * gcc.c: Likewise.
4358 * gcse.c: Likewise.
4359 * ggc-common.c: Likewise.
4360 * ggc-page.c: Likewise.
4361 * gimple-loop-interchange.cc: Likewise.
4362 * gimple-loop-jam.c: Likewise.
4363 * gimple-loop-versioning.cc: Likewise.
4364 * gimple-ssa-split-paths.c: Likewise.
4365 * gimple-ssa-sprintf.c: Likewise.
4366 * gimple-ssa-store-merging.c: Likewise.
4367 * gimple-ssa-strength-reduction.c: Likewise.
4368 * gimple-ssa-warn-alloca.c: Likewise.
4369 * gimple-ssa-warn-restrict.c: Likewise.
4370 * graphite-isl-ast-to-gimple.c: Likewise.
4371 * graphite-optimize-isl.c: Likewise.
4372 * graphite-scop-detection.c: Likewise.
4373 * graphite-sese-to-poly.c: Likewise.
4374 * graphite.c: Likewise.
4375 * haifa-sched.c: Likewise.
4376 * hsa-gen.c: Likewise.
4377 * ifcvt.c: Likewise.
4378 * ipa-cp.c: Likewise.
4379 * ipa-fnsummary.c: Likewise.
4380 * ipa-inline-analysis.c: Likewise.
4381 * ipa-inline.c: Likewise.
4382 * ipa-polymorphic-call.c: Likewise.
4383 * ipa-profile.c: Likewise.
4384 * ipa-prop.c: Likewise.
4385 * ipa-split.c: Likewise.
4386 * ipa-sra.c: Likewise.
4387 * ira-build.c: Likewise.
4388 * ira-conflicts.c: Likewise.
4389 * loop-doloop.c: Likewise.
4390 * loop-invariant.c: Likewise.
4391 * loop-unroll.c: Likewise.
4392 * lra-assigns.c: Likewise.
4393 * lra-constraints.c: Likewise.
4394 * modulo-sched.c: Likewise.
4395 * opt-suggestions.c: Likewise.
4396 * opts.c: Likewise.
4397 * postreload-gcse.c: Likewise.
4398 * predict.c: Likewise.
4399 * reload.c: Likewise.
4400 * reorg.c: Likewise.
4401 * resource.c: Likewise.
4402 * sanopt.c: Likewise.
4403 * sched-deps.c: Likewise.
4404 * sched-ebb.c: Likewise.
4405 * sched-rgn.c: Likewise.
4406 * sel-sched-ir.c: Likewise.
4407 * sel-sched.c: Likewise.
4408 * shrink-wrap.c: Likewise.
4409 * stmt.c: Likewise.
4410 * targhooks.c: Likewise.
4411 * toplev.c: Likewise.
4412 * tracer.c: Likewise.
4413 * trans-mem.c: Likewise.
4414 * tree-chrec.c: Likewise.
4415 * tree-data-ref.c: Likewise.
4416 * tree-if-conv.c: Likewise.
4417 * tree-inline.c: Likewise.
4418 * tree-loop-distribution.c: Likewise.
4419 * tree-parloops.c: Likewise.
4420 * tree-predcom.c: Likewise.
4421 * tree-profile.c: Likewise.
4422 * tree-scalar-evolution.c: Likewise.
4423 * tree-sra.c: Likewise.
4424 * tree-ssa-ccp.c: Likewise.
4425 * tree-ssa-dom.c: Likewise.
4426 * tree-ssa-dse.c: Likewise.
4427 * tree-ssa-ifcombine.c: Likewise.
4428 * tree-ssa-loop-ch.c: Likewise.
4429 * tree-ssa-loop-im.c: Likewise.
4430 * tree-ssa-loop-ivcanon.c: Likewise.
4431 * tree-ssa-loop-ivopts.c: Likewise.
4432 * tree-ssa-loop-manip.c: Likewise.
4433 * tree-ssa-loop-niter.c: Likewise.
4434 * tree-ssa-loop-prefetch.c: Likewise.
4435 * tree-ssa-loop-unswitch.c: Likewise.
4436 * tree-ssa-math-opts.c: Likewise.
4437 * tree-ssa-phiopt.c: Likewise.
4438 * tree-ssa-pre.c: Likewise.
4439 * tree-ssa-reassoc.c: Likewise.
4440 * tree-ssa-sccvn.c: Likewise.
4441 * tree-ssa-scopedtables.c: Likewise.
4442 * tree-ssa-sink.c: Likewise.
4443 * tree-ssa-strlen.c: Likewise.
4444 * tree-ssa-structalias.c: Likewise.
4445 * tree-ssa-tail-merge.c: Likewise.
4446 * tree-ssa-threadbackward.c: Likewise.
4447 * tree-ssa-threadedge.c: Likewise.
4448 * tree-ssa-uninit.c: Likewise.
4449 * tree-switch-conversion.c: Likewise.
4450 * tree-vect-data-refs.c: Likewise.
4451 * tree-vect-loop.c: Likewise.
4452 * tree-vect-slp.c: Likewise.
4453 * tree-vrp.c: Likewise.
4454 * tree.c: Likewise.
4455 * value-prof.c: Likewise.
4456 * var-tracking.c: Likewise.
4457
4458 2019-11-12 Martin Liska <mliska@suse.cz>
4459
4460 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
4461 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
4462 macro.
4463 (asan_sanitize_allocas_p): Likewise.
4464 (asan_emit_stack_protection): Likewise.
4465 (asan_protect_global): Likewise.
4466 (instrument_derefs): Likewise.
4467 (instrument_builtin_call): Likewise.
4468 (asan_expand_mark_ifn): Likewise.
4469 * auto-profile.c (auto_profile): Likewise.
4470 * bb-reorder.c (copy_bb_p): Likewise.
4471 (duplicate_computed_gotos): Likewise.
4472 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
4473 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
4474 (try_crossjump_bb): Likewise.
4475 * cfgexpand.c (defer_stack_allocation): Likewise.
4476 (stack_protect_classify_type): Likewise.
4477 (pass_expand::execute): Likewise.
4478 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4479 (estimate_reg_pressure_cost): Likewise.
4480 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
4481 * combine.c (combine_instructions): Likewise.
4482 (record_value_for_reg): Likewise.
4483 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
4484 (aarch64_option_default_params): Likewise.
4485 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4486 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4487 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4488 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4489 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
4490 (aarch64_allocate_and_probe_stack_space): Likewise.
4491 (aarch64_expand_epilogue): Likewise.
4492 (aarch64_override_options_internal): Likewise.
4493 * config/alpha/alpha.c (alpha_option_override): Likewise.
4494 * config/arm/arm.c (arm_option_override): Likewise.
4495 (arm_valid_target_attribute_p): Likewise.
4496 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4497 * config/i386/i386.c (get_probe_interval): Likewise.
4498 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4499 (ix86_max_noce_ifcvt_seq_cost): Likewise.
4500 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4501 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4502 (get_stack_clash_protection_guard_size): Likewise.
4503 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4504 * config/s390/s390.c (allocate_stack_space): Likewise.
4505 (s390_emit_prologue): Likewise.
4506 (s390_option_override_internal): Likewise.
4507 * config/sparc/sparc.c (sparc_option_override): Likewise.
4508 * config/visium/visium.c (visium_option_override): Likewise.
4509 * coverage.c (get_coverage_counts): Likewise.
4510 (coverage_compute_profile_id): Likewise.
4511 (coverage_begin_function): Likewise.
4512 (coverage_end_function): Likewise.
4513 * cse.c (cse_find_path): Likewise.
4514 (cse_extended_basic_block): Likewise.
4515 (cse_main): Likewise.
4516 * cselib.c (cselib_invalidate_mem): Likewise.
4517 * dse.c (dse_step1): Likewise.
4518 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4519 (get_max_insn_count): Likewise.
4520 (make_debug_insn_raw): Likewise.
4521 (init_emit): Likewise.
4522 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4523 * final.c (compute_alignments): Likewise.
4524 * fold-const.c (fold_range_test): Likewise.
4525 (fold_truth_andor): Likewise.
4526 (tree_single_nonnegative_warnv_p): Likewise.
4527 (integer_valued_real_single_p): Likewise.
4528 * gcse.c (want_to_gcse_p): Likewise.
4529 (prune_insertions_deletions): Likewise.
4530 (hoist_code): Likewise.
4531 (gcse_or_cprop_is_too_expensive): Likewise.
4532 * ggc-common.c: Likewise.
4533 * ggc-page.c (ggc_collect): Likewise.
4534 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4535 (MAX_DATAREFS): Likewise.
4536 (OUTER_STRIDE_RATIO): Likewise.
4537 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4538 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4539 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4540 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4541 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4542 (imm_store_chain_info::output_merged_store): Likewise.
4543 (pass_store_merging::process_store): Likewise.
4544 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4545 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4546 (scop_to_isl_ast): Likewise.
4547 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4548 (optimize_isl): Likewise.
4549 * graphite-scop-detection.c (build_scops): Likewise.
4550 * haifa-sched.c (set_modulo_params): Likewise.
4551 (rank_for_schedule): Likewise.
4552 (model_add_to_worklist): Likewise.
4553 (model_promote_insn): Likewise.
4554 (model_choose_insn): Likewise.
4555 (queue_to_ready): Likewise.
4556 (autopref_multipass_dfa_lookahead_guard): Likewise.
4557 (schedule_block): Likewise.
4558 (sched_init): Likewise.
4559 * hsa-gen.c (init_prologue): Likewise.
4560 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4561 (cond_move_process_if_block): Likewise.
4562 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4563 (merge_agg_lats_step): Likewise.
4564 (devirtualization_time_bonus): Likewise.
4565 (hint_time_bonus): Likewise.
4566 (incorporate_penalties): Likewise.
4567 (good_cloning_opportunity_p): Likewise.
4568 (ipcp_propagate_stage): Likewise.
4569 * ipa-fnsummary.c (decompose_param_expr): Likewise.
4570 (set_switch_stmt_execution_predicate): Likewise.
4571 (analyze_function_body): Likewise.
4572 (compute_fn_summary): Likewise.
4573 * ipa-inline-analysis.c (estimate_growth): Likewise.
4574 * ipa-inline.c (caller_growth_limits): Likewise.
4575 (inline_insns_single): Likewise.
4576 (inline_insns_auto): Likewise.
4577 (can_inline_edge_by_limits_p): Likewise.
4578 (want_early_inline_function_p): Likewise.
4579 (big_speedup_p): Likewise.
4580 (want_inline_small_function_p): Likewise.
4581 (want_inline_self_recursive_call_p): Likewise.
4582 (edge_badness): Likewise.
4583 (recursive_inlining): Likewise.
4584 (compute_max_insns): Likewise.
4585 (early_inliner): Likewise.
4586 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4587 * ipa-profile.c (ipa_profile): Likewise.
4588 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4589 (ipa_analyze_node): Likewise.
4590 (ipcp_transform_function): Likewise.
4591 * ipa-split.c (consider_split): Likewise.
4592 * ipa-sra.c (allocate_access): Likewise.
4593 (process_scan_results): Likewise.
4594 (ipa_sra_summarize_function): Likewise.
4595 (pull_accesses_from_callee): Likewise.
4596 * ira-build.c (loop_compare_func): Likewise.
4597 (mark_loops_for_removal): Likewise.
4598 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4599 * loop-doloop.c (doloop_optimize): Likewise.
4600 * loop-invariant.c (gain_for_invariant): Likewise.
4601 (move_loop_invariants): Likewise.
4602 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4603 (decide_unroll_runtime_iterations): Likewise.
4604 (decide_unroll_stupid): Likewise.
4605 (expand_var_during_unrolling): Likewise.
4606 * lra-assigns.c (spill_for): Likewise.
4607 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4608 * modulo-sched.c (sms_schedule): Likewise.
4609 (DFA_HISTORY): Likewise.
4610 * opts.c (default_options_optimization): Likewise.
4611 (finish_options): Likewise.
4612 (common_handle_option): Likewise.
4613 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4614 (if): Likewise.
4615 * predict.c (get_hot_bb_threshold): Likewise.
4616 (maybe_hot_count_p): Likewise.
4617 (probably_never_executed): Likewise.
4618 (predictable_edge_p): Likewise.
4619 (predict_loops): Likewise.
4620 (expr_expected_value_1): Likewise.
4621 (tree_predict_by_opcode): Likewise.
4622 (handle_missing_profiles): Likewise.
4623 * reload.c (find_equiv_reg): Likewise.
4624 * reorg.c (redundant_insn): Likewise.
4625 * resource.c (mark_target_live_regs): Likewise.
4626 (incr_ticks_for_insn): Likewise.
4627 * sanopt.c (pass_sanopt::execute): Likewise.
4628 * sched-deps.c (sched_analyze_1): Likewise.
4629 (sched_analyze_2): Likewise.
4630 (sched_analyze_insn): Likewise.
4631 (deps_analyze_insn): Likewise.
4632 * sched-ebb.c (schedule_ebbs): Likewise.
4633 * sched-rgn.c (find_single_block_region): Likewise.
4634 (too_large): Likewise.
4635 (haifa_find_rgns): Likewise.
4636 (extend_rgns): Likewise.
4637 (new_ready): Likewise.
4638 (schedule_region): Likewise.
4639 (sched_rgn_init): Likewise.
4640 * sel-sched-ir.c (make_region_from_loop): Likewise.
4641 * sel-sched-ir.h (MAX_WS): Likewise.
4642 * sel-sched.c (process_pipelined_exprs): Likewise.
4643 (sel_setup_region_sched_flags): Likewise.
4644 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4645 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4646 * toplev.c (print_version): Likewise.
4647 (process_options): Likewise.
4648 * tracer.c (tail_duplicate): Likewise.
4649 * trans-mem.c (tm_log_add): Likewise.
4650 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4651 * tree-data-ref.c (split_constant_offset): Likewise.
4652 (compute_all_dependences): Likewise.
4653 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4654 * tree-inline.c (remap_gimple_stmt): Likewise.
4655 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4656 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4657 (create_parallel_loop): Likewise.
4658 * tree-predcom.c (determine_unroll_factor): Likewise.
4659 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4660 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4661 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4662 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4663 (dse_optimize_redundant_stores): Likewise.
4664 (dse_classify_store): Likewise.
4665 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4666 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4667 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4668 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4669 (try_peel_loop): Likewise.
4670 (tree_unroll_loops_completely): Likewise.
4671 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4672 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4673 (MAX_CONSIDERED_GROUPS): Likewise.
4674 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4675 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4676 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4677 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4678 (L1_CACHE_SIZE_BYTES): Likewise.
4679 (L2_CACHE_SIZE_BYTES): Likewise.
4680 (should_issue_prefetch_p): Likewise.
4681 (schedule_prefetches): Likewise.
4682 (determine_unroll_factor): Likewise.
4683 (volume_of_references): Likewise.
4684 (add_subscript_strides): Likewise.
4685 (self_reuse_distance): Likewise.
4686 (mem_ref_count_reasonable_p): Likewise.
4687 (insn_to_prefetch_ratio_too_small_p): Likewise.
4688 (loop_prefetch_arrays): Likewise.
4689 (tree_ssa_prefetch_arrays): Likewise.
4690 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4691 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4692 (convert_mult_to_fma): Likewise.
4693 (math_opts_dom_walker::after_dom_children): Likewise.
4694 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4695 (hoist_adjacent_loads): Likewise.
4696 (gate_hoist_loads): Likewise.
4697 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4698 (compute_partial_antic_aux): Likewise.
4699 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4700 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4701 (vn_reference_lookup): Likewise.
4702 (do_rpo_vn): Likewise.
4703 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4704 * tree-ssa-sink.c (select_best_block): Likewise.
4705 * tree-ssa-strlen.c (new_stridx): Likewise.
4706 (new_addr_stridx): Likewise.
4707 (get_range_strlen_dynamic): Likewise.
4708 (class ssa_name_limit_t): Likewise.
4709 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4710 (create_variable_info_for_1): Likewise.
4711 (init_alias_vars): Likewise.
4712 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4713 (tail_merge_optimize): Likewise.
4714 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4715 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4716 (thread_jumps::find_jump_threads_backwards): Likewise.
4717 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4718 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4719 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4720 (jump_table_cluster::can_be_handled): Likewise.
4721 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4722 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4723 (param_switch_conversion_branch_ratio): Likewise.
4724 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4725 (vect_enhance_data_refs_alignment): Likewise.
4726 (vect_prune_runtime_alias_test_list): Likewise.
4727 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4728 (vect_get_datarefs_in_loop): Likewise.
4729 (vect_analyze_loop): Likewise.
4730 * tree-vect-slp.c (vect_slp_bb): Likewise.
4731 * tree-vectorizer.h: Likewise.
4732 * tree-vrp.c (find_switch_asserts): Likewise.
4733 (vrp_prop::check_mem_ref): Likewise.
4734 * tree.c (wide_int_to_tree_1): Likewise.
4735 (cache_integer_cst): Likewise.
4736 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4737 (reverse_op): Likewise.
4738 (vt_find_locations): Likewise.
4739
4740 2019-11-12 Martin Liska <mliska@suse.cz>
4741
4742 * Makefile.in: Include params.opt.
4743 * flag-types.h (enum parloops_schedule_type): Add
4744 parloops_schedule_type used in params.opt.
4745 * params.opt: New file.
4746
4747 2019-11-12 Martin Liska <mliska@suse.cz>
4748
4749 * common.opt: Remove --param and --param= options.
4750 * opt-functions.awk: Mark CL_PARAMS for options
4751 that have Param keyword.
4752 * opts-common.c (decode_cmdline_options_to_array):
4753 Replace --param key=value with --param=key=value.
4754 * opts.c (print_filtered_help): Remove special
4755 printing of params.
4756 (print_specific_help): Update title for params.
4757 (common_handle_option): Do not handle OPT__param.
4758 opts.h (SET_OPTION_IF_UNSET): New macro.
4759 * doc/options.texi: Document Param keyword.
4760
4761 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4762 Frederik Harwath <frederik@codesourcery.com>
4763 Thomas Schwinge <thomas@codesourcery.com>
4764
4765 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4766 enumeration constant.
4767 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4768 (is_gimple_omp_offloaded): Likewise.
4769 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4770 constant. Adjust the value of ORT_NONE accordingly.
4771 (is_gimple_stmt): Handle OACC_SERIAL.
4772 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4773 (gomp_needs_data_present): Likewise.
4774 (gimplify_adjust_omp_clauses): Likewise.
4775 (gimplify_omp_workshare): Handle OACC_SERIAL.
4776 (gimplify_expr): Likewise.
4777 * omp-expand.c (expand_omp_target):
4778 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4779 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4780 * omp-low.c (is_oacc_parallel): Rename function to...
4781 (is_oacc_parallel_or_serial): ... this.
4782 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4783 (scan_sharing_clauses): Adjust accordingly.
4784 (scan_omp_for): Likewise.
4785 (lower_oacc_head_mark): Likewise.
4786 (convert_from_firstprivate_int): Likewise.
4787 (lower_omp_target): Likewise.
4788 (check_omp_nesting_restrictions): Handle
4789 GF_OMP_TARGET_KIND_OACC_SERIAL.
4790 (lower_oacc_reductions): Likewise.
4791 (lower_omp_target): Likewise.
4792 * tree.def (OACC_SERIAL): New tree code.
4793 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4794
4795 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4796
4797 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4798
4799 PR target/92449
4800 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4801 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4802
4803 PR tree-optimization/92452
4804 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4805 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4806 MINUS_EXPR on it.
4807
4808 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4809
4810 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4811 safelen with 0.
4812
4813 2019-11-12 Alan Modra <amodra@gmail.com>
4814
4815 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4816 element of unspec vec.
4817 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4818 PC-relative TLS.
4819 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4820 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4821 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4822 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4823
4824 2019-11-12 Alan Modra <amodra@gmail.com>
4825
4826 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4827 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4828 (IS_NOMARK_TLSGETADDR): Likewise.
4829 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4830 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4831 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4832 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4833 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4834 (rs6000_indirect_call_template_1): Likewise.
4835 (rs6000_pltseq_template): Likewise.
4836 (rs6000_opt_vars): Remove "tls-markers" entry.
4837 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4838 with TARGET_ELF.
4839 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4840 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4841 (pltseq_plt_pcrel<mode>): Likewise.
4842 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4843 (call_value_local64): Likewise.
4844 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4845 output and length attribute sub-expression.
4846 (call_value_nonlocal_sysv<mode>),
4847 (call_value_nonlocal_sysv_secure<mode>),
4848 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4849 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4850 (call_value_indirect_pcrel<mode>): Likewise.
4851 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4852 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4853 * configure: Regenerate.
4854 * config.in: Regenerate.
4855
4856 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4857
4858 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4859 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4860 address being a prefixed load/store.
4861 (stack_protect_testdi): Deal with either address being a prefixed
4862 load.
4863
4864 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4865
4866 PR bootstrap/92433
4867 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4868 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4869 std::swap.
4870
4871 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4872
4873 PR tree-optimization/92420
4874 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4875 up file.
4876 (get_group_load_store_type): Use it for reversed SLP accesses.
4877
4878 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4879
4880 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4881 summary.
4882 (ipcp_transformation_t::duplicate): Break out from ...
4883 (ipa_node_params_t::duplicate): ... here; add copying of agg
4884 replacements.
4885 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4886 (ipcp_transformation_t): Add duplicate.
4887
4888 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4889
4890 PR fortran/91828
4891 * doc/install.texi: Document that the minimum MPFR version is
4892 3.1.0.
4893
4894 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4895
4896 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4897 use new register constraint letters.
4898
4899 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4900
4901 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4902 as well, if interesting recover the symbol and re-legitimize the
4903 pic address.
4904
4905 2019-11-11 Martin Liska <mliska@suse.cz>
4906
4907 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4908 alphabetically.
4909
4910 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4911
4912 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4913 account when checking if there are enough iterations to vectorize
4914 epilogue.
4915
4916 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4917 Kwok Cheung Yeung <kcy@codesourcery.com>
4918
4919 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4920 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4921 (LANG_HOOKS_DECLS): Rename also here.
4922 * langhooks.h (lang_hooks_for_decls): Rename
4923 omp_is_optional_argument to omp_check_optional_argument; take
4924 additional bool argument.
4925 * omp-general.h (omp_check_optional_argument): Likewise.
4926 * omp-general.h (omp_check_optional_argument): Likewise.
4927 * omp-low.c (lower_omp_target): Update calls; handle absent
4928 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4929
4930 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4931
4932 PR target/87833
4933 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4934 -fPIC and -shared the last to create offload image.
4935
4936 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4937
4938 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4939 of 'offset'.
4940
4941 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4942 (config.status): Use/depend on it.
4943 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4944 * configure: Regenerate.
4945
4946 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4947
4948 PR tree-optimization/88760
4949 * config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4950 * common/config/rs6000/rs6000-common.c
4951 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4952 Turn on -funroll-loops and -munroll-only-small-loops.
4953 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4954 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4955 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4956 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4957 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4958 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4959
4960 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4961
4962 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4963 Make scalar_load, vector_load, unaligned_load and
4964 vector_gather_load cost more to conform hardware latency and
4965 insn cost settings.
4966
4967 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4968
4969 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4970 (MACHO_SYMBOL_LINKER_VIS_P): New.
4971
4972 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4973
4974 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4975 registers in eliminable_regset.
4976
4977 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4978
4979 * ipa-inline.c (compute_uninlined_call_time,
4980 compute_inlined_call_time): Take edge frequency as
4981 parameter rather than computing it by itself.
4982 (big_speedup_p, edge_badness): Manually CSE sreal
4983 frequency calculations.
4984
4985 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4986
4987 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4988 case where profiles are same.
4989
4990 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4991
4992 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4993
4994 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4995
4996 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4997 args summaries of inlined edge unless it holds info about
4998 described reference.
4999
5000 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5001
5002 * config/rs6000/rs6000.md (CC_any): New mode iterator.
5003 (*movcc_internal1): Rename to...
5004 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
5005
5006 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5007
5008 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
5009 (cgraph_node::create_virtual_clone): Copy it.
5010 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
5011 summaries.
5012 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
5013 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
5014 is disabled.
5015 (propagate_constants_across_call): If callee is not analyzed, give up.
5016 (propagate_constants_topo): Lower to bottom latties of all callees of
5017 functions with ipa-cp disabled.
5018 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
5019 (cgraph_edge_brings_value_p): Check for availability first.
5020 (create_specialized_node): Set ipcp_clone.
5021 (ipcp_store_bits_results): Check that info is present.
5022 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
5023 thunks.
5024 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
5025 conservative when callee summary is missing.
5026 (remap_edge_summaries): Lookup call summary only when needed.
5027 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
5028 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
5029 Use get_create.
5030 (ipa_analyze_node): Use get_create.
5031 (propagate_controlled_uses): Do not propagate when function is not
5032 analyzed.
5033 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
5034 (ipa_read_node_info): Use get_create.
5035 * ipa-prop.h (IPA_NODE_REF): Use get.
5036 (IPA_NODE_REF_GET_CREATE): New.
5037
5038 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5039
5040 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
5041 on function symbol.
5042
5043 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5044
5045 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
5046 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5047 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
5048 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5049
5050 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5051
5052 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
5053 capping the growth cumulated.
5054 (offline_size): Break out from ...
5055 (estimate_growth): ... here.
5056 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
5057 parameters.
5058 (growth_likely_positive): Turn to ...
5059 (growth_positive_p): Re-implement.
5060 * ipa-inline.h (growth_likely_positive): Remove.
5061 (growth_positive_p): Declare.
5062 * ipa-inline.c (want_inline_small_function_p): Use
5063 growth_positive_p.
5064 (want_inline_function_to_all_callers_p): Likewise.
5065
5066 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5067
5068 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
5069 calculation of min_size.
5070 (ipa_update_overall_fn_summary): Likewise.
5071
5072 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5073
5074 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
5075 estimate_edge_devirt_benefit when not computing hints;
5076 do not compute time when not asked for.
5077 (estimate_calls_size_and_time): Pass NULL hints and time when
5078 these are not computed; do not evaluate hint predicates when these are
5079 not computed.
5080 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
5081 frequency.
5082
5083 2019-11-09 Jakub Jelinek <jakub@redhat.com>
5084
5085 PR tree-optimization/92401
5086 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
5087 if res_op->code is an expression with code length 1.
5088 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
5089 if res_op->code is an expression with code length 2.
5090 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
5091 if res_op->code is an expression with code length 3.
5092
5093 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
5094
5095 * config/darwin.c (machopic_mcount_stub_name): Validate the
5096 symbol stub name when it is created.
5097 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
5098 stub validation.
5099
5100 2019-11-09 Jakub Jelinek <jakub@redhat.com>
5101
5102 * symtab.c: Fix comment typos.
5103 * cgraphunit.c: Likewise.
5104 * cgraph.h: Likewise.
5105 * cgraphclones.c: Likewise.
5106 * cgraph.c: Likewise.
5107 * varpool.c: Likewise.
5108 * tree-ssa-strlen.c: Likewise.
5109 * ipa-sra.c: Likewise.
5110 (scan_expr_access, check_all_callers_for_issues): Fix typo
5111 in a dump message.
5112
5113 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
5114
5115 * config/darwin-protos.h: Add include quard.
5116
5117 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
5118
5119 * range-op.h (range_operator::fold_range): Return result in a
5120 reference parameter instead of by value.
5121 (range_operator::wi_fold): Same.
5122 * range-op.cc (range_operator::wi_fold): Return result in a reference
5123 parameter instead of by value.
5124 (range_operator::fold_range): Same.
5125 (value_range_from_overflowed_bounds): Same.
5126 (value_range_with_overflow): Same
5127 (create_possibly_reversed_range): Same.
5128 (operator_equal::fold_range): Same.
5129 (operator_not_equal::fold_range): Same.
5130 (operator_lt::fold_range): Same.
5131 (operator_le::fold_range): Same.
5132 (operator_gt::fold_range): Same.
5133 (operator_ge::fold_range): Same.
5134 (operator_plus::wi_fold): Same.
5135 (operator_plus::op1_range): Change call to fold_range.
5136 (operator_plus::op2_range): Change call to fold_range.
5137 (operator_minus::wi_fold): Return result via reference parameter.
5138 (operator_minus::op1_range): Change call to fold_range.
5139 (operator_minus::op2_range): Change call to fold_range.
5140 (operator_min::wi_fold): Return result via reference parameter.
5141 (operator_max::wi_fold): Same.
5142 (cross_product_operator::wi_cross_product): Same.
5143 (operator_mult::wi_fold): Same.
5144 (operator_div::wi_fold): Same.
5145 (operator_div op_floor_div): Fix whitespace.
5146 (operator_exact_divide::op1_range): Change call to fold_range.
5147 (operator_lshift::fold_range): Return result via reference parameter.
5148 (operator_lshift::wi_fold): Same.
5149 (operator_rshift::fold_range): Same.
5150 (operator_rshift::wi_fold): Same.
5151 (operator_cast::fold_range): Same.
5152 (operator_cast::op1_range): Change calls to fold_range.
5153 (operator_logical_and::fold_range): Return result via reference.
5154 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
5155 (operator_bitwise_and::wi_fold): Return result via reference.
5156 (operator_logical_or::fold_range): Same.
5157 (operator_bitwise_or::wi_fold): Same.
5158 (operator_bitwise_xor::wi_fold): Same.
5159 (operator_trunc_mod::wi_fold): Same.
5160 (operator_logical_not::fold_range): Same.
5161 (operator_bitwise_not::fold_range): Same.
5162 (operator_bitwise_not::op1_range): Change call to fold_range.
5163 (operator_cst::fold_range): Return result via reference.
5164 (operator_identity::fold_range): Same.
5165 (operator_abs::wi_fold): Same.
5166 (operator_absu::wi_fold): Same.
5167 (operator_negate::fold_range): Same.
5168 (operator_negate::op1_range): Change call to fold_range.
5169 (operator_addr_expr::fold_range): Return result via reference.
5170 (operator_addr_expr::op1_range): Change call to fold_range.
5171 (operator_pointer_plus::wi_fold): Return result via reference.
5172 (operator_pointer_min_max::wi_fold): Same.
5173 (operator_pointer_and::wi_fold): Same.
5174 (operator_pointer_or::wi_fold): Same.
5175 (range_op_handler): Change call to fold_range.
5176 (range_cast): Same.
5177 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
5178 fold_range.
5179 (range_fold_unary_symbolics_p): Same.
5180 (range_fold_binary_expr): Same.
5181 (range_fold_unary_expr): Same.
5182
5183 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5184
5185 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
5186 vector type as an argument rather than reading it from the
5187 stmt_vec_info.
5188 (vect_create_epilog_for_reduction): Update accordingly.
5189 (vectorizable_reduction): Likewise.
5190 (vect_transform_cycle_phi): Likewise.
5191
5192 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
5193
5194 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
5195 the comparison codes that make sense for the mode used, and only the
5196 codes that can be done with a single branch instruction.
5197
5198 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5199
5200 PR tree-optimization/92351
5201 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
5202 peeling the main loop for alignment, make sure to set the misalignment
5203 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
5204
5205 2019-11-08 Richard Biener <rguenther@suse.de>
5206
5207 * dbgcnt.def (ivopts_loop): Add.
5208 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
5209 ivopts_loop before optimizing a loop.
5210
5211 2019-11-08 Richard Biener <rguenther@suse.de>
5212
5213 PR ipa/92409
5214 * tree-inline.c (declare_return_variable): Properly handle
5215 type mismatches for the return slot.
5216
5217 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
5218
5219 PR target/92095
5220 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
5221 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
5222 change.
5223 (got_helper_needed): New static variable.
5224 (output_load_pcrel_sym): New function.
5225 (get_pc_thunk_name): Remove after inlining...
5226 (load_got_register): ...here. Rework the initialization of the GOT
5227 register and of the GOT helper.
5228 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
5229 (sparc_file_end): Test got_helper_needed to decide whether the GOT
5230 helper must be emitted. Use output_asm_insn instead of fprintf.
5231 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
5232 if optimization is enabled.
5233 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
5234 by calling output_load_pcrel_sym.
5235
5236 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5237
5238 * tree-sra.c (create_access): Delay disqualifying the base
5239 for poly_int values until we know we have a base.
5240
5241 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5242
5243 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
5244 for loops with SIMDUID set. Enable epilogue vectorization for loops
5245 with SIMDLEN set after finding a main loop with a VF that matches it.
5246
5247 2019-11-08 Jakub Jelinek <jakub@redhat.com>
5248
5249 PR target/92038
5250 * gimple-ssa-store-merging.c (find_constituent_stores): For return
5251 value only, return non-NULL if there is a single non-clobber
5252 constituent store even if there are constituent clobbers and return
5253 one of clobber constituent stores if all constituent stores are
5254 clobbers.
5255 (split_group): Handle clobbers.
5256 (imm_store_chain_info::output_merged_store): When computing
5257 bzero_first, look after all clobbers at the start. Don't count
5258 clobber stmts in orig_num_stmts, except if the first orig store is
5259 a clobber covering the whole area and split_stores cover the whole
5260 area, consider equal number of stmts ok. Punt if split_stores
5261 contains only ->orig stores and their number plus number of original
5262 clobbers is equal to original number of stmts. For ->orig, look past
5263 clobbers in the constituent stores.
5264 (imm_store_chain_info::output_merged_stores): Don't remove clobber
5265 stmts.
5266 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
5267 rhs.
5268 (store_valid_for_store_merging_p): Allow clobber stmts.
5269 (verify_clear_bit_region_be): Fix up a thinko in function comment.
5270
5271 PR c++/92384
5272 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
5273 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
5274 slot.
5275 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
5276 force creation of a unique data.stack_parm slot.
5277
5278 2019-11-08 Richard Biener <rguenther@suse.de>
5279
5280 * genmatch.c (expr::gen_transform): Use the resimplify
5281 member function instead of hard-coding the gimple_resimplifyN variant.
5282 (dt_simplify::gen_1): Likewise.
5283
5284 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5285
5286 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5287 POLY_INT_CST.
5288
5289 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5290
5291 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
5292 instead of INTEGER_CST.
5293
5294 2019-11-08 Richard Biener <rguenther@suse.de>
5295
5296 PR tree-optimization/92324
5297 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5298 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
5299 sign-conversions as necessary.
5300 (vectorizable_reduction): Reject conversions in the chain
5301 that are not sign-conversions, base analysis on a non-converting
5302 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
5303 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
5304 for debug stmts.
5305 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
5306 (STMT_VINFO_REDUC_VECTYPE): Likewise.
5307
5308 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
5309
5310 PR target/92055
5311 * config/avr/avr.opt (-mdouble=, -mlong-double=):
5312 Fix a missing '-' when displaying these options in the
5313 help screen.
5314
5315 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5316
5317 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
5318
5319 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5320
5321 * config/aarch64/aarch64-builtins.c
5322 (aarch64_builtin_vectorized_function): Remove bswap handling.
5323
5324 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5325
5326 * tree-core.h (tree_type_common::indivisible_p): New member variable.
5327 * tree.h (TYPE_INDIVISIBLE_P): New macro.
5328 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5329 Treat the vector types as indivisible.
5330
5331 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5332
5333 * optabs.def (gather_load_optab, mask_gather_load_optab)
5334 (scatter_store_optab, mask_scatter_store_optab): Turn into
5335 conversion optabs, with the offset mode given explicitly.
5336 * doc/md.texi: Update accordingly.
5337 * config/aarch64/aarch64-sve-builtins-base.cc
5338 (svld1_gather_impl::expand): Likewise.
5339 (svst1_scatter_impl::expand): Likewise.
5340 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
5341 (expand_scatter_store_optab_fn): Likewise.
5342 (direct_gather_load_optab_supported_p): Likewise.
5343 (direct_scatter_store_optab_supported_p): Likewise.
5344 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
5345 to be argument 4.
5346 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
5347 (internal_gather_scatter_fn_supported_p): Replace the offset sign
5348 argument with the offset vector type. Require the two vector
5349 types to have the same number of elements but allow their element
5350 sizes to be different. Treat the optabs as conversion optabs.
5351 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
5352 prototype accordingly.
5353 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
5354 (supports_vec_convert_optab_p): ...this new function.
5355 (supports_vec_gather_load_p): Update accordingly.
5356 (supports_vec_scatter_store_p): Likewise.
5357 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
5358 Replace the offset sign and bits parameters with a scalar type tree.
5359 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
5360 Pass back the offset vector type instead of the scalar element type.
5361 Allow the offset to be wider than the memory elements. Search for
5362 an offset type that the target supports, stopping once we've
5363 reached the maximum of the element size and pointer size.
5364 Update call to internal_gather_scatter_fn_supported_p.
5365 (vect_check_gather_scatter): Update calls accordingly.
5366 When testing a new scale before knowing the final offset type,
5367 check whether the scale is supported for any signed or unsigned
5368 offset type. Check whether the target supports the source and
5369 target types of a conversion before deciding whether to look
5370 through the conversion. Record the chosen offset_vectype.
5371 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
5372 (vect_recog_gather_scatter_pattern): Get the scalar offset type
5373 directly from the gs_info's offset_vectype instead. Pass a zero
5374 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
5375 * tree-vect-stmts.c (check_load_store_masking): Update call to
5376 internal_gather_scatter_fn_supported_p, passing the offset vector
5377 type recorded in the gs_info.
5378 (vect_truncate_gather_scatter_offset): Update call to
5379 vect_check_gather_scatter, leaving it to search for a valid
5380 offset vector type.
5381 (vect_use_strided_gather_scatters_p): Convert the offset to the
5382 element type of the gs_info's offset_vectype.
5383 (vect_get_gather_scatter_ops): Get the offset vector type directly
5384 from the gs_info.
5385 (vect_get_strided_load_store_ops): Likewise.
5386 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
5387 and IFN_MASK_GATHER_LOAD.
5388 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
5389 (gather_load<mode><v_int_equiv>): ...this.
5390 (mask_gather_load<mode>): Rename to...
5391 (mask_gather_load<mode><v_int_equiv>): ...this.
5392 (scatter_store<mode>): Rename to...
5393 (scatter_store<mode><v_int_equiv>): ...this.
5394 (mask_scatter_store<mode>): Rename to...
5395 (mask_scatter_store<mode><v_int_equiv>): ...this.
5396
5397 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
5398
5399 PR target/92132
5400 * config/rs6000/predicates.md
5401 (signed_or_equality_comparison_operator): New predicate.
5402 (unsigned_or_equality_comparison_operator): Likewise.
5403 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
5404 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
5405 * config/rs6000/vector.md
5406 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
5407 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
5408 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
5409 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
5410 vector modes and same-size integer vector modes.
5411 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
5412 (vector_lt<mode> for VEC_F): New expand.
5413 (vector_le<mode> for VEC_F): Likewise.
5414 (vector_ne<mode> for VEC_F): Likewise.
5415 (vector_unge<mode> for VEC_F): Likewise.
5416 (vector_ungt<mode> for VEC_F): Likewise.
5417 (vector_unle<mode> for VEC_F): Likewise.
5418 (vector_unlt<mode> for VEC_F): Likewise.
5419 (vector_uneq<mode>): Expose name.
5420 (vector_ltgt<mode>): Likewise.
5421 (vector_unordered<mode>): Likewise.
5422 (vector_ordered<mode>): Likewise.
5423
5424 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
5425
5426 PR target/92295
5427 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
5428 Enhance ix86_expand_vector_init_concat.
5429
5430 2019-11-08 Joseph Myers <joseph@codesourcery.com>
5431
5432 * doc/invoke.texi (-Wold-style-definition): Document () not being
5433 considered an old-style definition for C2x.
5434
5435 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
5436
5437 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
5438 Enhance comment.
5439 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
5440 insn patterns using ldcw instruction.
5441 (memory_barrier): Remove insn pattern using sync instruction.
5442 * config/pa/pa.opt (coherent-ldcw): New option.
5443 (ordered): New option.
5444
5445 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5446
5447 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
5448 valid conditions.
5449
5450 2019-11-07 Jakub Jelinek <jakub@redhat.com>
5451
5452 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
5453 typo - mistmatch -> mismatch.
5454 * ipa-profile.c (ipa_profile): Likewise.
5455 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
5456 - mistmatch -> mismatch.
5457
5458 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5459
5460 * simplify-rtx.c (comparison_to_mask): New function.
5461 (mask_to_comparison): New function.
5462 (simplify_logical_relational_operation): New function.
5463 (simplify_binary_operation_1): Call
5464 simplify_logical_relational_operation.
5465
5466 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
5467
5468 PR other/92090
5469 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
5470 modes for integer constants.
5471
5472 2019-11-07 Jan Hubicka <jh@suse.cz>
5473
5474 PR ipa/92406
5475 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
5476 summary.
5477
5478 2019-11-07 Jan Hubicka <jh@suse.cz>
5479
5480 * optc-save-gen.awk: Generate cl_target_option_free
5481 and cl_optimization_option_free.
5482 * opth-en.awk: Declare cl_target_option_free
5483 and cl_optimization_option_free.
5484 * tree.c (free_node): Use it.
5485
5486 2019-11-06 Jan Hubicka <jh@suse.cz>
5487
5488 * lto-streamer-in.c: Include alloc-pool.h.
5489 (freeing_string_slot_hasher): Remove.
5490 (string_slot_allocator): New object allocator.
5491 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
5492 (file_name_obstack): New obstack.
5493 (canon_file_name): Allocate in obstack and allocator.
5494 (lto_reader_init): Initialize obstack and allocator.
5495 (lto_free_file_name_hash): New function.
5496 * lto-streamer.h (lto_free_file_name_hash): New.
5497
5498 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
5499
5500 PR tree-optimization/89134
5501 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5502 * params.def: Add min-loop-cond-split-prob.
5503 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5504 outside checks on loop into the function.
5505 (split_info): New class.
5506 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5507 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5508 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5509 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5510 (stmt_semi_invariant_p, branch_removable_p): Likewise.
5511 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5512 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5513 (split_loop_on_cond): Likewise.
5514 (tree_ssa_split_loops): Add loop split on conditional statement.
5515
5516 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
5517
5518 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5519 pattern.
5520
5521 2019-11-07 Richard Biener <rguenther@suse.de>
5522
5523 PR tree-optimization/92405
5524 * tree-vect-loop.c (vectorizable_reduction): Appropriately
5525 restrict lane-reducing ops to single stmt chains.
5526
5527 2019-11-07 Martin Jambor <mjambor@suse.cz>
5528
5529 PR lto/70929
5530 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5531 * cgraph.h (gimple_check_call_matching_types): Remove
5532 * cgraph.c (gimple_check_call_args): Likewise.
5533 (gimple_check_call_matching_types): Likewise.
5534 (symbol_table::create_edge): Do not call
5535 gimple_check_call_matching_types.
5536 (cgraph_edge::make_direct): Likewise.
5537 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5538 * value-prof.h (check_ic_target): Remove.
5539 * value-prof.c (check_ic_target): Remove.
5540 (gimple_ic_transform): Do nat call check_ic_target.
5541 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5542 (afdo_indirect_call): Likewise.
5543 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5544 gimple_check_call_matching_types.
5545 * ipa-inline.c (early_inliner): Likewise.
5546
5547 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5548
5549 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5550 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5551 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5552 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5553 * config/arm/iterators.md (USSAT16): New int_iterator.
5554 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5555 (sup): Likewise.
5556 * config/arm/predicates.md (ssat16_imm): New predicate.
5557 (usat16_imm): Likewise.
5558 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5559
5560 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5561
5562 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5563 New define_insns.
5564 (arm_<simd32_op>): New define_expands.
5565 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5566 __smuad, __smuadx): Define.
5567 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5568 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5569 (SIMD32_BINOP_Q): Likewise.
5570 (simd32_op): Handle the above.
5571 * config/arm/unspecs.md: Define unspecs for the above.
5572
5573 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5574
5575 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5576 * config/arm/arm.md (APSRGE_REGNUM): Define.
5577 (arm_<simd32_op>): New define_insn.
5578 (arm_sel): Likewise.
5579 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5580 (CALL_USED_REGISTERS): Likewise.
5581 (REG_ALLOC_ORDER): Likewise.
5582 (FIRST_PSEUDO_REGISTER): Update value.
5583 (ARM_GE_BITS_READ): Define.
5584 * config/arm/arm.c (arm_conditional_register_usage): Clear
5585 APSRGE_REGNUM from operand_reg_set.
5586 (arm_ge_bits_access): Define.
5587 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5588 ARM_BUIILTIN_sel.
5589 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5590 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5591 FAIL if ARM_GE_BITS_READ.
5592 (*arm_add<mode>3): New define_insn.
5593 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5594 (*arm_sub<mode>3): New define_insn.
5595 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5596 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5597 __usub16): Define.
5598 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5599 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5600 (simd32_op): Handle the above.
5601 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5602 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5603 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5604 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5605
5606 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5607
5608 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5609 (arm_smlabb): New define_expand.
5610 (*maddhisi4tb): Rename to...
5611 (maddhisi4tb): ... This.
5612 (*maddhisi4tt): Rename to...
5613 (maddhisi4tt): ... This.
5614 (arm_smlatb_setq): New define_insn.
5615 (arm_smlatb): New define_expand.
5616 (arm_smlatt_setq): New define_insn.
5617 (arm_smlatt): New define_expand.
5618 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5619 (arm_<smlaw_op>): New define_expand.
5620 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5621 __smlawb, __smlawt): Define.
5622 * config/arm_acle_builtins.def: Define builtins for the above.
5623 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5624 (slaw_op): New int_attribute.
5625 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5626
5627 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5628
5629 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5630 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5631 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5632 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5633 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5634 (ss_op): New code_attr.
5635
5636 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5637
5638 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5639 * config/arm/arm.md (APSRQ_REGNUM): Define.
5640 (add_setq): New define_subst.
5641 (add_clobber_q_name): New define_subst_attr.
5642 (add_clobber_q_pred): Likewise.
5643 (maddhisi4): Change to define_expand. Split into mult and add if
5644 ARM_Q_BIT_READ.
5645 (arm_maddhisi4): New define_insn.
5646 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5647 (*maddhisi4tt): Likewise.
5648 (arm_ssat): New define_expand.
5649 (arm_usat): Likewise.
5650 (arm_get_apsr): New define_insn.
5651 (arm_set_apsr): Likewise.
5652 (arm_saturation_occurred): New define_expand.
5653 (arm_set_saturation): Likewise.
5654 (*satsi_<SAT:code>): Rename to...
5655 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5656 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5657 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5658 (CALL_USED_REGISTERS): Mark apsrq.
5659 (FIRST_PSEUDO_REGISTER): Update value.
5660 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5661 (machine_function): Add q_bit_access.
5662 (ARM_Q_BIT_READ): Define.
5663 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5664 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5665 operand_reg_set.
5666 (arm_q_bit_access): Define.
5667 * config/arm/arm-builtins.c: Include stringpool.h.
5668 (arm_sat_binop_imm_qualifiers,
5669 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5670 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5671 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5672 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5673 SET_SAT_QUALIFIERS): Likewise.
5674 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5675 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5676 Handle 0 argument expander.
5677 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5678 (arm_check_builtin_call): Define.
5679 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5680 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5681 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5682 (arm_q_bit_access): Likewise.
5683 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5684 __saturation_occurred, __set_saturation_occurred): Define.
5685 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5686 saturation_occurred, set_saturation_occurred.
5687 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5688 (UNSPEC_APSR_READ): Likewise.
5689 (VUNSPEC_APSR_WRITE): Likewise.
5690 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5691 (*arm_ssadd<mode>3): New define_insn.
5692 (sssub<mode>3): Convert to define_expand.
5693 (*arm_sssub<mode>3): New define_insn.
5694 (ssmulsa3): Convert to define_expand.
5695 (*arm_ssmulsa3): New define_insn.
5696 (usmulusa3): Convert to define_expand.
5697 (*arm_usmulusa3): New define_insn.
5698 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5699 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5700 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5701
5702 2019-11-07 Martin Liska <mliska@suse.cz>
5703
5704 PR c++/92354
5705 * cgraph.c (delete_function_version): Clear global
5706 variable version_info_node if equal to deleted
5707 function.
5708
5709 2019-11-07 Martin Liska <mliska@suse.cz>
5710
5711 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5712 of CONSTRUCTOR_NO_CLEARING.
5713 (operand_compare::hash_operand): Likewise.
5714
5715 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5716
5717 Support 64-bit double and 64-bit long double configurations.
5718
5719 PR target/92055
5720 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5721 --with-long-double=.
5722 * config/avr/t-multilib: Remove.
5723 * config/avr/t-avr: Output of genmultilib.awk is now fully
5724 dynamically generated and no more part of the repo.
5725 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5726 Pass them down to...
5727 * config/avr/genmultilib.awk: ...here and handle them.
5728 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5729 (-mlong-double=, avr_long_double). New option and var.
5730 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5731 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5732 Set default as requested by --with-double=
5733 (TARGET_HANDLE_OPTION): Define to this...
5734 (avr_handle_option): ...new hook worker.
5735 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5736 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5737 (avr_double_lib): New proto for spec function.
5738 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5739 (DRIVER_SELF_SPECS): Call %:double-lib.
5740 * config/avr/avr.c (avr_option_override): Assert
5741 sizeof(long double) >= sizeof(double) for the target.
5742 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5743 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5744 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5745 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5746 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5747 New built-in define depending on --with-double=, --with-long-double=.
5748 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5749 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5750 * doc/install.texi (Cross-Compiler-Specific Options)
5751 <--with-double=, --with-long-double=>: Doc.
5752
5753 2019-11-07 Richard Biener <rguenther@suse.de>
5754
5755 * dbgcnt.def (gimple_unroll): New.
5756 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5757 gimple_unroll debug counter before applying transform.
5758 (try_peel_loop): Likewise.
5759
5760 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5761
5762 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5763 frame pointer in multiple registers.
5764 (ira_setup_eliminable_regset): Setup eliminable_regset,
5765 ira_no_alloc_regs and regs_ever_live for frame pointer in
5766 multiple registers.
5767
5768 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5769
5770 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5771 V2DI modes.
5772
5773 2019-11-06 Jan Hubicka <jh@suse.cz>
5774
5775 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5776 allocations.
5777 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5778 Do not silently ignore summary corruptions.
5779
5780 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5781
5782 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5783 the epilogue if there are peeled iterations for it to handle.
5784
5785 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5786
5787 * config/arc/arc.c (arc_split_ior): Add asserts.
5788 (arc_split_mov_const): Likewise.
5789 (arc_check_ior_const): Do not match known short immediate values.
5790 * config/arc/arc.md (movsi): Don't split predicated instructions
5791 (iorsi): Likewise.
5792
5793 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5794
5795 * config/arc/arc.opt (mea): Update help string.
5796 * doc/invoke.texi(ARC): Update mea option info.
5797
5798 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5799
5800 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5801 (zero_extendqisi2_ac): Likewise.
5802 (zero_extendhisi2_i): Likewise.
5803 (extendqihi2_i): Likewise.
5804 (extendqisi2_ac): Likewise.
5805 (extendhisi2_i): Likewise.
5806
5807 2019-11-06 Richard Biener <rguenther@suse.de>
5808
5809 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5810 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5811 Simplify single_defuse_cycle condition.
5812
5813 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5814
5815 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5816 epilogue loop, make sure that the VF is small enough or that
5817 the epilogue loop can be fully-masked.
5818
5819 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5820
5821 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5822 loop when we've finished, rather than returning directly from
5823 the loop. Use a local variable to track whether we're still
5824 searching for the preferred simdlen. Make vect_epilogues
5825 record whether the next iteration should try to treat the
5826 loop as an epilogue.
5827
5828 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5829
5830 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5831 __arc_hard_float__, __ARC_HARD_FLOAT__,
5832 __arc_soft_float__, __ARC_SOFT_FLOAT__
5833
5834 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5835
5836 PR tree-optimization/92317
5837 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5838 update phi's with constant phi arguments.
5839
5840 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5841 Alexandre Oliva <oliva@adacore.com>
5842
5843 * common.opt (-fcallgraph-info[=]): New option.
5844 * doc/invoke.texi (Developer options): Document it.
5845 * opts.c (common_handle_option): Handle it.
5846 * builtins.c (expand_builtin_alloca): Record allocation if
5847 -fcallgraph-info=da.
5848 * calls.c (expand_call): If -fcallgraph-info, record the call.
5849 (emit_library_call_value_1): Likewise.
5850 * flag-types.h (enum callgraph_info_type): New type.
5851 * explow.c: Include stringpool.h.
5852 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5853 * function.c (allocate_stack_usage_info): New.
5854 (allocate_struct_function): Call it for -fcallgraph-info.
5855 (prepare_function_start): Call it otherwise.
5856 (record_final_call, record_dynamic_alloc): New.
5857 * function.h (struct callinfo_callee): New.
5858 (CALLEE_FROM_CGRAPH_P): New.
5859 (struct callinfo_dalloc): New.
5860 (struct stack_usage): Add callees and dallocs.
5861 (record_final_call, record_dynamic_alloc): Declare.
5862 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5863 object if -fcallgraph-info=da.
5864 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5865 * print-tree.h (print_decl_identifier): Declare.
5866 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5867 * print-tree.c: Include print-tree.h.
5868 (print_decl_identifier): New function.
5869 * toplev.c: Include print-tree.h.
5870 (callgraph_info_file): New global variable.
5871 (callgraph_info_external_printed): Likewise.
5872 (output_stack_usage): Rename to...
5873 (output_stack_usage_1): ... this. Make it static, add cf
5874 parameter. If -fcallgraph-info=su, print stack usage to cf.
5875 If -fstack-usage, use print_decl_identifier for
5876 pretty-printing.
5877 (INDIRECT_CALL_NAME): New.
5878 (dump_final_node_vcg_start): New.
5879 (dump_final_callee_vcg, dump_final_node_vcg): New.
5880 (output_stack_usage): New.
5881 (lang_dependent_init): Open and start file if
5882 -fcallgraph-info. Allocated callgraph_info_external_printed.
5883 (finalize): If callgraph_info_file is not null, finish it,
5884 close it, and release callgraph_info_external_printed.
5885
5886 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5887 Frederik Harwath <frederik@codesourcery.com>
5888 Thomas Schwinge <thomas@codesourcery.com>
5889
5890 * omp-low.c (struct omp_context): New fields
5891 local_reduction_clauses, outer_reduction_clauses.
5892 (new_omp_context): Initialize these.
5893 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5894 (scan_omp_for): Check reduction clauses for incorrect nesting.
5895
5896 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5897
5898 PR inline-asm/92352
5899 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5900 operands with non-memory constraints.
5901
5902 2019-11-05 Martin Sebor <msebor@redhat.com>
5903
5904 PR tree-optimization/92373
5905 * tree.c (component_ref_size): Only consider initializers of objects
5906 of matching struct types.
5907 Return null for instances of interior zero-length arrays.
5908
5909 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5910
5911 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5912
5913 2019-11-05 Jason Merrill <jason@redhat.com>
5914
5915 PR tree-optimization/91825
5916 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5917
5918 2019-11-05 Jim Wilson <jimw@sifive.com>
5919
5920 PR middle-end/92263
5921 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5922 optimize_insn_for_speed_p is true.
5923
5924 2019-11-05 Martin Sebor <msebor@redhat.com>
5925
5926 PR middle-end/92333
5927 PR middle-end/82608
5928 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5929 size.
5930 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5931 name and location for a temporary variable.
5932
5933 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5934
5935 * tree-vrp.c (value_range::value_range): Fix whitespace.
5936 (defined_ranges_p): Same.
5937 (range_fold_binary_symbolics_p): Same.
5938 (value_range::intersect_helper): Same.
5939 (value_range::union_helper): Same.
5940 * tree-vrp.h (range_fold_binary_expr): Same.
5941
5942 2019-11-04 Martin Sebor <msebor@redhat.com>
5943
5944 PR middle-end/92341
5945 PR middle-end/82612
5946 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5947 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5948 of message printed in a warning for empty arrays.
5949 (vrp_prop::check_mem_ref): Also handle function parameters and
5950 empty arrays.
5951
5952 2019-11-05 Richard Biener <rguenther@suse.de>
5953
5954 PR tree-optimization/92371
5955 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5956 on the original stmt of live stmts in the chain.
5957 (vectorizable_live_operation): Look at the original stmt when
5958 checking STMT_VINFO_REDUC_DEF.
5959
5960 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5961
5962 * gimple-fold.c, gimple-loop-versioning.cc,
5963 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5964 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5965 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5966 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5967 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5968 value_range_equiv, and value_range_base to value_range.
5969
5970 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5971
5972 * expr.c (build_personality_function): Fix generated type to
5973 match actual personality functions.
5974
5975 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5976
5977 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5978 enough bytes for the NULL character.
5979
5980 2019-11-05 Richard Biener <rguenther@suse.de>
5981
5982 PR tree-optimization/92280
5983 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5984 had a single use do not create a new CTOR.
5985 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5986 BIT_FIELD_REF of a CTOR via GENERIC.
5987
5988 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5989
5990 * config/s390/s390.c (s390_vector_alignment): Check if the value
5991 fits into uhwi before using it.
5992
5993 2019-11-05 Martin Liska <mliska@suse.cz>
5994
5995 * symbol-summary.h: Use ggc_delete.
5996
5997 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5998
5999 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
6000 Change vec_perm field to 10.
6001
6002 2019-11-05 Arnaud Charlet <charlet@adacore.com>
6003
6004 * doc/install.texi: Further fix syntax for html generation.
6005
6006 2019-11-05 Martin Liska <mliska@suse.cz>
6007
6008 * symbol-summary.h: Rename allocator to m_allocator and
6009 add comment.
6010
6011 2019-11-05 Richard Biener <rguenther@suse.de>
6012
6013 PR tree-optimization/92324
6014 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
6015 all signed or unsigned operations.
6016
6017 2019-11-05 Jan Hubicka <jh@suse.cz>
6018
6019 * hsa-brig.c: Include alloc-pool.h
6020 * hsa-dump.c: Likewise.
6021 * hsa-gen.c: Likewise.
6022 * hse-regalloc.c: Likewise.
6023 * ipa-hsa.c: Likewise.
6024 * ipa-predicate.c: Likewise.
6025 * ipa-reference.c: Likewise.
6026 * ipa-sra.c: Likewise.
6027 * omp-expand.c: Likewise.
6028 * omp-general.c: Likewise.
6029 * omp-low.c: Likewise.
6030 * sumbol-summary.h (function_summary_base): Add allocator.
6031 (function_summary<T *>::function_summary): Update construction.
6032 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
6033 (call_summary_base): Add allcator.
6034 (call_summary<T *>::call_summary): Update construction.
6035 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
6036
6037 2019-11-05 Jakub Jelinek <jakub@redhat.com>
6038
6039 PR tree-optimization/91945
6040 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
6041 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
6042 Formatting fix.
6043
6044 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6045
6046 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
6047 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
6048 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
6049 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
6050 (vrp_set_zero_nonzero_bits): Move to...
6051 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
6052 (vr_values::simplify_bit_ops_using_ranges): Rename
6053 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
6054
6055 2019-11-05 Martin Liska <mliska@suse.cz>
6056
6057 PR c++/92339
6058 * fold-const.c (operand_compare::hash_operand): Remove
6059 FIELD_DECL handling.
6060
6061 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6062
6063 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
6064 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
6065 static.
6066
6067 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6068
6069 * tree-vrp.c (value_range_base::operator==): Use equal_p to
6070 properly handle symbolics.
6071 (range_compatible_p): Remove.
6072
6073 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
6074
6075 * common.opt (-fabi-version): Document =14.
6076 * doc/invoke.texi (C++ Dialect Options): Likewise.
6077
6078 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6079
6080 * tree-vrp.c (value_range_base::set): Do not special case pointers.
6081
6082 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
6083
6084 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
6085 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6086 gcn_omp_device_kind_arch_isa.
6087 * config/gcn/t-omp-device: New file.
6088 * configure.ac: Support gcn for omp_device_property.
6089 * configure: Regenerate.
6090
6091 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6092
6093 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
6094 (vrp_val_max): Same.
6095 (vrp_val_is_min): Same.
6096 (vrp_val_is_max): Same.
6097 (value_range_base::nonzero_p): Remove last argument to
6098 vrp_val_is_max.
6099 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
6100 (vrp_val_max): Same.
6101 (vrp_val_is_min): Same.
6102 (vrp_val_is_max): Same.
6103 (value_range_base::set_varying): Remove last argument to vrp_val*.
6104 (value_range_base::dump): Same.
6105 (value_range_base::set): Same.
6106 (value_range_base::normalize_symbolics): Same.
6107 (value_range_base::num_pairs): Same.
6108 (value_range_base::lower_bound): Same.
6109 (value_range_base::upper_bound): Same.
6110 (ranges_from_anti_range): Remove handle_pointers argument.
6111 (value_range_base::singleton_p): Remove last argument to
6112 ranges_from_anti_range.
6113
6114 2019-11-04 Jan Hubicka <jh@suse.cz>
6115
6116 * ipa-reference.c (init_function_info): Initialize
6117 info->global.statics_read.
6118
6119 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6120
6121 * tree-vrp.c (value_range_base::invert): Use constructors to build
6122 range.
6123
6124 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6125
6126 * tree-vrp.c (range_int_cst_singleton_p): Remove.
6127 * tree-vrp.h (range_int_cst_singleton_p): Remove.
6128
6129 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6130
6131 * tree-vrp.c (value_range_base::normalize_addresses): Handle
6132 VR_UNDEFINED.
6133
6134 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6135
6136 * tree-vrp.c (dump_assert_info): New.
6137 (dump_asserts_info): New.
6138
6139 2019-11-04 Jan Hubicka <jh@suse.cz>
6140
6141 * ipa-inline-transform.c: Include ipa-utils.h
6142 (inline_call): Set thunk_expansion flag.
6143 * ipa-utils.h (thunk_expansion): Declare.
6144 * ipa-devirt.c (thunk_expansion): New global var.
6145 (devirt_node_removal_hook): Do not invalidate cache while
6146 doing thunk expansion.
6147
6148 2019-11-04 Tamar Christina <tamar.christina@arm.com>
6149
6150 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
6151
6152 2019-11-04 Martin Sebor <msebor@redhat.com>
6153
6154 PR tree-optimization/92349
6155 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
6156 memebers have constant sizes.
6157
6158 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
6159
6160 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
6161 parameter.
6162 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
6163 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
6164 vect_analyze_loop.
6165
6166 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
6167
6168 * expr.c (store_constructor): Modify to handle single element vectors.
6169 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
6170 constructors.
6171 (vect_slp_check_for_constructors): New function.
6172 (vect_slp_analyze_bb_1): Call new function to check for vector
6173 constructors.
6174 (vectorize_slp_instance_root_stmt): New function.
6175 (vect_schedule_slp): Call new function to vectorize root stmt of vector
6176 constructors.
6177 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
6178
6179 2019-11-04 Richard Biener <rguenther@suse.de>
6180
6181 PR tree-optimization/92345
6182 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
6183 we produced a reduction chain.
6184 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
6185 LOOP_VINFO_REDUCTIONS.
6186
6187 2019-11-04 Jan Hubicka <jh@suse.cz>
6188
6189 * cgraphclones.c (cgraph_node::create_version_clone): Do not
6190 duplicate summaries.
6191 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
6192 first.
6193 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
6194 access call summaries.
6195 (dump_ipa_call_summary): Be ready for missing edge summaries.
6196 (analyze_function_body): Use get instead of get_create to access
6197 edge summary.
6198 (estimate_calls_size_and_time): Do not access summaries of
6199 inlined edges; sanity check they are missing.
6200 (ipa_call_context::estimate_size_and_time): Use get instead
6201 of get_create to access node summary.
6202 (inline_update_callee_summaries): Do not update depth of
6203 inlined edge.
6204 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
6205 growth caches.
6206 (ipa_merge_fn_summary_after_inlining): Use get instead
6207 of get_create.
6208 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
6209 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
6210 fast summary.
6211 (initialize_growth_caches): Update.
6212 (do_estimate_edge_time): Remove redundant copy of context.
6213 (ipa_remove_from_growth_caches): New function.
6214 * ipa-inline.c (flatten_function): Update overall summary
6215 only when optimizing.
6216 (inline_to_all_callers): Update overall summary of function
6217 inlined to.
6218 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
6219 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
6220 to false.
6221
6222 2019-11-04 Richard Biener <rguenther@suse.de>
6223
6224 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
6225 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
6226
6227 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
6228
6229 * ggc-common.c: Include system.h before malloc.h.
6230
6231 2019-11-04 Alexandre Oliva <oliva@adacore.com>
6232
6233 * configure.ac: Pass --enable-obsolete=* and
6234 --enable-option-checking=* down to build configure, and fail
6235 if it fails. AC_SUBST HAVE_AUTO_BUILD.
6236 * configure: Rebuild.
6237 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
6238 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
6239
6240 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6241
6242 * config.in: Regenerate.
6243 * config/msp430/msp430.c (msp430_option_override): Emit an error if
6244 -mtiny-printf is used without GCC being configured with
6245 --enable-newlib-nano-formatted-io.
6246 * config/msp430/msp430.h (LINK_SPEC): Pass
6247 "--wrap puts --wrap printf" when -mtiny-printf is used.
6248 * config/msp430/msp430.opt: Document -mtiny-printf.
6249 * configure: Regenerate.
6250 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
6251 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
6252 --enable-newlib-nano-formatted-io is passed.
6253 * doc/invoke.texi: Document -mtiny-printf.
6254
6255 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6256
6257 * configure: Regenerate.
6258
6259 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6260
6261 * config/msp430/driver-msp430.c
6262 (msp430_get_linker_devices_include_path): New spec function.
6263 * config/msp430/msp430-devices.c (msp430_dirname): New function.
6264 (extract_devices_dir_from_exec_prefix): New function.
6265 (extract_devices_dir_from_collect_gcc): New function.
6266 (msp430_check_env_var_for_devices): New function.
6267 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
6268 (parse_devices_csv): Call msp430_check_env_var_for_devices if
6269 devices.csv was not found using other methods.
6270 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
6271 New prototype.
6272 (msp430_dirname): Likewise.
6273 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
6274 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
6275 msp430_get_linker_devices_include_path.
6276 (TARGET_EXTRA_PRE_INCLUDES): Define.
6277 * doc/invoke.texi: Document new ways of searching for support files.
6278
6279 2019-11-04 Richard Biener <rguenther@suse.de>
6280
6281 PR tree-optimization/92301
6282 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
6283 as required by epilogue generation
6284
6285 2019-11-04 Martin Liska <mliska@suse.cz>
6286
6287 PR ipa/92304
6288 * fold-const.c (operand_compare::hash_operand): Fix field
6289 hashing of CONSTRUCTOR.
6290
6291 2019-11-04 Martin Liska <mliska@suse.cz>
6292
6293 * ggc.h (ggc_delete): New function.
6294 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
6295 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
6296 (ipa_free_all_node_params): Likewise.
6297 * ipa-sra.c (ipa_sra_analysis): Likewise.
6298
6299 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6300
6301 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
6302 set_switch_stmt_execution_predicate, compute_bb_predicates,
6303 will_be_nonconstant_expr_predicate,
6304 phi_result_unknown_predicate,
6305 analyze_function_body): Pass arround params summary.
6306 (ipa_call_context::duplicate_from): New comment;
6307 only duplicate useful values.
6308 (ipa_call_context::equal_to): Only compare useful values.
6309 (remap_edge_summaries): Pass params_summary.
6310 (remap_hint_predicate): Likewise.
6311 (ipa_merge_fn_summary_after_inlining): Likewise.
6312 (inline_read_section): Initialize params summary used flags.
6313 * ipa-predicate.c (predicate::remap_after_inlining): Pass
6314 around param_summary.
6315 (add_condition): Initialized used params summary flags.
6316 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
6317 (inline_param_summary::useless_p): New predicate.
6318 (remap_after_inlining, add_condition): Update prototype
6319 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
6320 move_cost.
6321 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
6322 summaries.
6323 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
6324 (ipa_analyze_virtual_call_uses): Likewise.
6325 (update_indirect_edges_after_inlining): Update param summaries.
6326 (ipa_print_node_params): Print used flags.
6327 (ipa_read_indirect_edge_info): Update param summareis.
6328 * ipa-prop.h (ipa_param_descriptor): Add
6329 used_by_ipa_predicates, used_by_indirect_call
6330 and used_by_polymorphic_call.
6331 (ipa_set_param_used_by_ipa_predicates,
6332 ipa_set_param_used_by_indirect_call,
6333 ipa_set_param_used_by_polymorphic_call,
6334 ipa_is_param_used_by_ipa_predicates,
6335 ipa_is_param_used_by_indirect_call,
6336 ipa_is_param_used_by_polymorphic_call): New inline functions.
6337
6338 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6339
6340 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
6341 member function.
6342 (ipa_call_context::release): Add ALL parameter.
6343 (ipa_call_context::equal_to): New member function.
6344 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
6345 duplicate_form, release, equal_to and exists_p member functoins.
6346 * ipa-inline-analysis.c (node_context_cache_entry): New
6347 class.
6348 (node_context_summary): Likewise.
6349 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
6350 node_context_clear): New static vars.
6351 (initialize_growth_caches): New function.
6352 (free_growth_caches): Also delete node_context_cache; output stats.
6353 (do_estimate_edge_time): Cache contexts.
6354 (reset_node_cache): New function.
6355 * ipa-inline.c (reset_edge_caches): Reset also node cache.
6356 (inline_small_functions): Initialize growth caches.
6357 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
6358 Declare.
6359 * ipa-predicate.h (inline_param_summary::equal_to): New.
6360 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
6361 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
6362 (ipa_agg_jump_function): Implement equal_to member function.
6363
6364 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6365
6366 * ipa-fnsummary.c (inline_read_section): Set vector size
6367 ahead of time.
6368
6369 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6370
6371 * ipa-fnsummary.c (ipa_call_context): New constructor.
6372 (estimate_node_size_and_time): Turn to ...
6373 (ipa_call_context::estimate_size_and_time): ... this one.
6374 (ipa_call_context::release): New.
6375 * ipa-fnsummary.h (ipa_call_context): New class.
6376 (estimate_node_size_and_time): Remove.
6377 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
6378 do_estimate_edge_hints): Update.
6379
6380 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6381
6382 * config.in: Regenerate.
6383 * configure: Regenerate.
6384 * configure.ac: Check for mallinfo.
6385 * ggc-common.c: Include malloc.h if available;
6386 include options.h
6387 (report_heap_memory_use): New functoin.
6388 * ggc-page.c (ggc_grow): Do not print "start".
6389 * ggc.h (report_heap_memory_use): Declare.
6390 * pases.c (execute_one_pass): Report memory after IPA passes.
6391 (ipa_read_summaries_1): Likewise.
6392 (ipa_read_optimization_summaries_1): Likewise.
6393
6394 2019-11-02 Jakub Jelinek <jakub@redhat.com>
6395
6396 * gimplify.h (omp_construct_selector_matches): Change return
6397 type to int, add a new SCORES argument.
6398 * gimplify.c (omp_construct_selector_matches): Likewise. If
6399 SCORES is non-NULL, compute scores of each construct.
6400 * omp-general.h (omp_get_context_selector): Declare.
6401 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
6402 Adjust omp_construct_selector_matches callers.
6403 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
6404 (omp_context_compute_score): New function.
6405 (omp_resolve_declare_variant): Compute scores and decide based on
6406 that.
6407
6408 PR bootstrap/92314
6409 * configure.ac: Don't look for omp-device-properties files from
6410 installed offloading compilers. Instead add tmake_file snippets
6411 for configured offloading targets and use files they generate.
6412 * Makefile.in (install): Don't depend on
6413 install-omp-device-properties.
6414 (install-omp-device-properties): Remove goal.
6415 * config/i386/t-omp-device: New file.
6416 * config/i386/t-intelmic (omp-device-properties): Remove goal.
6417 * config/nvptx/t-omp-device: New file.
6418 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
6419 * configure: Regenerated.
6420
6421 * omp-general.h (omp_context_selector_set_compare): Declare.
6422 * omp-general.c (omp_construct_simd_compare,
6423 omp_context_selector_props_compare, omp_context_selector_set_compare,
6424 omp_context_selector_compare): New functions.
6425 (omp_resolve_declare_variant): Prune variants that are strict subset
6426 of another variant.
6427
6428 2019-11-01 Martin Sebor <msebor@redhat.com>
6429
6430 PR middle-end/91679
6431 PR middle-end/91647
6432 PR middle-end/91463
6433 PR middle-end/92312
6434 * doc/invoke.texi (-Wzero-length-bounds): Document.
6435 * gimple-match-head.c (try_conditional_simplification): Use memcpy
6436 instead of a hand-rolled loop to avoid PR 92323.
6437 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
6438 with initializers.
6439 (vrp_prop::check_mem_ref): Handle declared struct objects.
6440 * tree.c (last_field): New function.
6441 (array_at_struct_end_p): Handle MEM_REF.
6442 (get_initializer_for): New helper.
6443 (component_ref_size): Add argument. Rename locals. Call
6444 get_initializer_for instead of fold_ctor_reference. Correct handling
6445 of flexible array members.
6446 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
6447
6448 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6449
6450 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
6451 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
6452 UNSPEC_VSX_CVSPUXDS): Remove.
6453 (vsx_xvcvspdp): New define_expand, old define_insn split to...
6454 (vsx_xvcvspdp_be): ... this. New. And...
6455 (vsx_xvcvspdp_le): ... this. New.
6456 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
6457 (vsx_xvcv<su>xwdp_be): ... this. New. And...
6458 (vsx_xvcv<su>xwdp_le): ... this. New.
6459 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
6460 (vsx_xvcvsp<su>xds_be): ... this. New. And...
6461 (vsx_xvcvsp<su>xds_le): ... this. New.
6462
6463 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6464
6465 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
6466 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
6467 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
6468 UNSPEC_VSX_XVCVSPSXWS): Remove.
6469 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
6470 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
6471
6472 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6473
6474 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
6475 (UNSPEC_VSX_XVCDPSP): Remove.
6476 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
6477 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
6478
6479 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6480
6481 * hooks.c (hook_tree_tree_bool_null): New.
6482 * hooks.h (hook_tree_tree_bool_null): Declare.
6483 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
6484 (LANG_HOOKS_DECLS): Add it.
6485 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
6486 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
6487 (lower_omp_target): Handle Fortran array with descriptor in
6488 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
6489
6490 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
6491
6492 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6493 Assert that the type we store in abi_vector_types is its own
6494 main variant.
6495 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6496
6497 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6498
6499 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6500 from a CONST_INT address when TARGET_THUMB2.
6501
6502 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6503
6504 * config/arm/arm.md (add_not_cin): New insn.
6505 (add_not_shift_cin): Likewise.
6506
6507 2019-10-31 Martin Liska <mliska@suse.cz>
6508
6509 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6510 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6511 and compare_memory_operand.
6512
6513 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6514
6515 * configure.ac: Compute and substitute omp_device_properties and
6516 omp_device_property_deps.
6517 * Makefile.in (generated_files): Add omp-device-properties.h.
6518 (omp-general.o): Depend on omp-device-properties.h.
6519 (omp_device_properties): New make variable.
6520 (omp-device-properties.h, s-omp-device-properties-h,
6521 install-omp-device-properties): New goals.
6522 (install): Depend on install-omp-device-properties for accelerators.
6523 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6524 * target.h (enum omp_device_kind_arch_isa): New enum.
6525 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6526 documentation.
6527 * omp-general.c: Include omp-device-properties.h.
6528 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6529 colon instead of comma.
6530 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6531 functions.
6532 (omp_context_selector_matches): Implement device set arch/isa
6533 selectors, improve device set kind selector handling.
6534 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6535 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6536 TARGET_SIMD_CLONE_USABLE): Formatting fix.
6537 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6538 ix86_omp_device_kind_arch_isa.
6539 * config/i386/i386-options.c (struct ix86_target_opts): Move type
6540 definition from ix86_target_string to file scope.
6541 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6542 to file scope.
6543 (ix86_omp_device_kind_arch_isa): New function.
6544 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6545 isa_opts definitions to file scope.
6546 * config/i386/t-intelmic (omp-device-properties): New goal.
6547 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6548 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6549 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6550 nvptx_omp_device_kind_arch_isa.
6551 * configure: Regenerate.
6552 * doc/tm.texi: Regenerate.
6553
6554 PR middle-end/92231
6555 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6556 DECL_BUILT_IN in comment. Remove redundant ()s around return
6557 argument.
6558 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6559 before calling fndecl_built_in_p.
6560 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6561 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6562 fndecl_built_in_p on it.
6563
6564 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6565
6566 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6567
6568 2019-10-31 Martin Liska <mliska@suse.cz>
6569
6570 * config/arm/arm.c (arm_get_pcs_model): Remove usage
6571 of cgraph_local_info and use local_info_node instead.
6572 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6573 (bfin_function_ok_for_sibcall): Likewise.
6574 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6575 (must_reload_pic_reg_p): Likewise.
6576
6577 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6578
6579 PR c++/90947
6580 * tree.h (type_initializer_zero_p): Remove.
6581 * tree.c (type_initializer_zero_p): Remove.
6582
6583 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6584
6585 * doc/invoke.texi (-Wshadow, -Wshadow=global
6586 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6587
6588 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6589
6590 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6591 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6592 and 'target exit data'.
6593
6594 2019-10-30 Martin Jambor <mjambor@suse.cz>
6595
6596 ipa/92278
6597 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6598 availability comparison.
6599
6600 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6601
6602 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6603 calls to __mspabi_mpy* functions.
6604 * config/msp430/msp430.md (mulhisi3): New define_expand.
6605 (umulhisi3): New define_expand.
6606 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6607 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6608
6609 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6610
6611 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6612 (msp430_check_plus_not_high_mem): New.
6613 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6614 might be in low memory.
6615 Indicate that a 16-bit absolute address is in lower memory.
6616
6617 2019-10-30 Martin Jambor <mjambor@suse.cz>
6618
6619 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6620 ultimate_alias_target.
6621
6622 2019-10-30 Richard Biener <rguenther@suse.de>
6623
6624 PR tree-optimization/92275
6625 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6626 Copy all loop-closed PHIs.
6627
6628 2019-10-30 Martin Liska <mliska@suse.cz>
6629
6630 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6631 const_tree as function argument.
6632 (func_checker::compare_decl): Likewise.
6633 (func_checker::operand_equal_p): Likewise.
6634 (func_checker::compare_variable_decl): Likewise.
6635 (func_checker::parse_labels): Likewise.
6636 * ipa-icf-gimple.h: Likewise.
6637
6638 2019-10-30 Martin Liska <mliska@suse.cz>
6639
6640 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6641 Do not compare alias sets. It's handled by operand_equal_p.
6642
6643 2019-10-30 Martin Liska <mliska@suse.cz>
6644
6645 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6646 initialize m_compare_polymorphic.
6647 (func_checker::compare_decl): Do not compare polymorphic types.
6648 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6649 * ipa-icf.c (sem_function::equals_private): Do not call
6650 compare_polymorphic_p.
6651
6652 2019-10-30 Martin Liska <mliska@suse.cz>
6653
6654 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6655 compare_operand.
6656 (func_checker::compare_memory_operand): Remove.
6657 (func_checker::compare_cst_or_decl): Remove.
6658 (func_checker::operand_equal_valueize): Do not handle
6659 FIELD_DECL.
6660 (func_checker::compare_gimple_call): Call compare_operand.
6661 (func_checker::compare_gimple_assign): Likewise.
6662 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6663 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6664 * ipa-icf.h (icf_handled_component_p): Remove.
6665
6666 2019-10-30 Martin Liska <mliska@suse.cz>
6667
6668 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6669 (func_checker::compare_cst_or_decl): Remove handling
6670 of FIELD_DECL.
6671 (func_checker::compare_operand): Transform to ...
6672 (func_checker::operand_equal_p): ... this.
6673 * ipa-icf-gimple.h (class func_checker): Add
6674 operand_equal_p and hash_operand.
6675 * ipa-icf.c (sem_function::equals_private): Fix
6676 pushing and popping of cfun.
6677
6678 2019-10-30 Martin Liska <mliska@suse.cz>
6679
6680 * fold-const.c (operand_equal_p): Move to ...
6681 (operand_compare::operand_equal_p): ... here.
6682 (operand_compare::verify_hash_value): New.
6683 (add_expr): Move to ...
6684 (operand_compare::hash_operand): ... here.
6685 * fold-const.h (operand_equal_p): Move to the class.
6686 (class operand_compare): New.
6687 * tree.c (add_expr): Remove.
6688
6689 2019-10-30 Martin Liska <mliska@suse.cz>
6690
6691 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6692 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6693
6694 2019-10-30 Martin Liska <mliska@suse.cz>
6695
6696 PR lto/91393
6697 PR lto/88220
6698 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6699 from a first_clone in order to get proper LTO section
6700 in LTO stream.
6701 (cgraph_node::get_untransformed_body):
6702 Use lto_get_section_data where symtab_node::order
6703 must be provided.
6704 * cgraphclones.c (cgraph_node::find_replacement):
6705 Update also symbol order.
6706 * ipa-fnsummary.c (ipa_fn_summary_read):
6707 Use new function lto_get_summary_section_data.
6708 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6709 * ipa-icf.c (sem_item_optimizer::read_summary):
6710 Likewise.
6711 * ipa-prop.c (ipa_prop_read_jump_functions):
6712 Likewise.
6713 (ipcp_read_transformation_summaries): Likewise.
6714 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6715 * lto-cgraph.c (input_node): Add also order_base.
6716 (input_varpool_node): Likewise.
6717 (input_cgraph_1): Assign the order_base.
6718 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6719 * lto-opts.c (lto_write_options): Pass new argument.
6720 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6721 (lto_get_summary_section_data): New.
6722 (lto_get_raw_section_data): Add order argument.
6723 (lto_create_simple_input_block): Likewise.
6724 * lto-section-out.c (lto_destroy_simple_output_block):
6725 Likewise.
6726 * lto-streamer-in.c (lto_input_toplevel_asms):
6727 Use lto_get_summary_section_data.
6728 (lto_input_mode_table): Likewise.
6729 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6730 (lto_output_toplevel_asms): Pass new argument.
6731 (copy_function_or_variable): Likewise.
6732 (produce_lto_section):Likewise.
6733 (produce_symtab): Likewise.
6734 (lto_write_mode_table): Likewise.
6735 (produce_asm_for_decls): Likewise.
6736 * lto-streamer.c (lto_get_section_name): Concat symbol name
6737 and symbol order.
6738 * lto-streamer.h (lto_get_section_data): Add order argument.
6739 (lto_get_summary_section_data): New.
6740 (lto_get_raw_section_data): Add order argument.
6741 (lto_get_section_name): Likewise.
6742 * varpool.c (varpool_node::get_constructor): Pass order argument.
6743
6744 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6745
6746 PR tree-optimization/92262
6747 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6748 ubase or cbase here.
6749 (remove_unused_ivs): Unshare comp before using it.
6750
6751 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6752
6753 * ipa-prop.c (update_jump_functions_after_inlining):
6754 Watch for missing summaries.
6755
6756 2019-10-30 Richard Biener <rguenther@suse.de>
6757
6758 PR tree-optimization/65930
6759 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6760 chains also allow a leading and trailing conversion.
6761 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6762 intermediate reduction chains.
6763 (vect_analyze_slp_instance): Likewise. Build a SLP
6764 node for a trailing conversion manually.
6765
6766 2019-10-30 Martin Liska <mliska@suse.cz>
6767
6768 * cgraph.c (cgraph_node::local_info): Transform to ...
6769 (cgraph_node::local_info_node): ... this.
6770 (cgraph_node::dump): Remove cgraph_local_info and
6771 put its fields directly into cgraph_node.
6772 (cgraph_node::get_availability): Likewise.
6773 (cgraph_node::make_local): Likewise.
6774 (cgraph_node::verify_node): Likewise.
6775 * cgraph.h (struct GTY): Likewise.
6776 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6777 (duplicate_thunk_for_node): Likewise.
6778 (cgraph_node::create_clone): Likewise.
6779 (cgraph_node::create_virtual_clone): Likewise.
6780 (cgraph_node::create_version_clone): Likewise.
6781 * cgraphunit.c (cgraph_node::reset): Likewise.
6782 (cgraph_node::finalize_function): Likewise.
6783 (cgraph_node::add_new_function): Likewise.
6784 (analyze_functions): Likewise.
6785 * combine.c (setup_incoming_promotions): Likewise.
6786 * config/i386/i386.c (ix86_function_regparm): Likewise.
6787 (ix86_function_sseregparm): Likewise.
6788 (init_cumulative_args): Likewise.
6789 * ipa-cp.c (determine_versionability): Likewise.
6790 (count_callers): Likewise.
6791 (set_single_call_flag): Likewise.
6792 (initialize_node_lattices): Likewise.
6793 (estimate_local_effects): Likewise.
6794 (create_specialized_node): Likewise.
6795 (identify_dead_nodes): Likewise.
6796 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6797 (ipa_fn_summary_generate): Likewise.
6798 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6799 (process_hsa_functions): Likewise.
6800 * ipa-icf.c (set_local): Likewise.
6801 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6802 * ipa-inline.c (speculation_useful_p): Likewise.
6803 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6804 (ipa_profile): Likewise.
6805 * ipa-split.c (split_function): Likewise.
6806 (execute_split_functions): Likewise.
6807 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6808 (ipa_sra_ipa_function_checks): Likewise.
6809 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6810 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6811 * lto-cgraph.c (lto_output_node): Likewise.
6812 (input_overwrite_node): Likewise.
6813 * multiple_target.c (expand_target_clones): Likewise.
6814 * omp-simd-clone.c (simd_clone_create): Likewise.
6815 * trans-mem.c (expand_call_tm): Likewise.
6816 (ipa_tm_mayenterirr_function): Likewise.
6817 (ipa_tm_diagnose_tm_safe): Likewise.
6818 (ipa_tm_diagnose_transaction): Likewise.
6819 (ipa_tm_create_version): Likewise.
6820 (ipa_tm_transform_calls_redirect): Likewise.
6821 (ipa_tm_execute): Likewise.
6822 * tree-inline.c (expand_call_inline): Likewise.
6823
6824 2019-10-29 Martin Liska <mliska@suse.cz>
6825
6826 * symbol-summary.h (function_summary): Pass memory location
6827 to underlaying hash_map (or vec).
6828 (V>::fast_function_summary): Likewise.
6829
6830 2019-10-29 Martin Liska <mliska@suse.cz>
6831
6832 * ggc.h (ggc_alloc_no_dtor): New function.
6833 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6834 destructor and ggc_free.
6835 (ipa_free_size_summary): Call delete instead
6836 of release.
6837 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6838 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6839 (ipa_free_all_edge_args): Call destructor and ggc_free.
6840 (ipa_free_all_node_params): Likewise.
6841 (ipcp_free_transformation_sum): Likewise.
6842 * ipa-prop.h (ipa_check_create_node_params):
6843 Call new ggc_alloc_no_dtor.
6844 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6845 (ipa_sra_analysis): Call destructor and ggc_free.
6846 Replace release with delete operator.
6847 * symbol-summary.h (release): Remove ..
6848 (V>::~fast_function_summary): and move logic here.
6849 Likewise for other classes.
6850
6851 2019-10-29 Richard Biener <rguenther@suse.de>
6852
6853 PR tree-optimization/92260
6854 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6855 lane-reducing ops.
6856
6857 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6858
6859 PR tree-optimization/88915
6860 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6861 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6862 and make the valueize function pointer also take a void pointer.
6863 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6864 around vn_valueize, to call it without a context.
6865 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6866 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6867 (~_loop_vec_info): Release epilogue_vinfos.
6868 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6869 number of iterations of epilogue.
6870 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6871 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6872 versioning threshold needed for main loop.
6873 (vect_analyze_loop): Likewise.
6874 (find_in_mapping): New helper function.
6875 (update_epilogue_loop_vinfo): New function.
6876 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6877 on main loop and call update_epilogue_loop_vinfo to update it.
6878 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6879 stmts on loop preheader edge.
6880 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6881 we decided to vectorize epilogues. Update epilogues NITERS and
6882 construct ADVANCE to update epilogues data references where needed.
6883 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6884 (vect_do_peeling, vect_update_inits_of_drs,
6885 determine_peel_for_niter, vect_analyze_loop): Add or update
6886 declarations.
6887 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6888 created loop_vec_info's for epilogues when available. Otherwise analyse
6889 epilogue separately.
6890
6891 2019-10-29 Richard Biener <rguenther@suse.de>
6892
6893 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6894 example.
6895
6896 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6897
6898 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6899 index for the COND_EXPR from stmt_info rather than reduc_info.
6900
6901 2019-10-29 Richard Biener <rguenther@suse.de>
6902
6903 PR tree-optimization/65930
6904 * tree-vect-loop.c (check_reduction_path): Relax single-use
6905 check allowing out-of-loop uses.
6906 (vect_is_simple_reduction): SLP reduction chains cannot have
6907 intermediate stmts used outside of the loop.
6908 (vect_create_epilog_for_reduction): The adjustment might need
6909 to be converted.
6910 (vectorizable_reduction): Annotate live stmts of the reduction
6911 chain with STMT_VINFO_REDUC_DEF.
6912 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6913
6914 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6915
6916 * calls.c (pass_by_reference): Leave the target to decide whether
6917 POLY_INT_CST-sized arguments should be passed by value or reference,
6918 rather than forcing them to be passed by reference.
6919 (must_pass_in_stack_var_size): Likewise.
6920 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6921 V31_REGNUM to P15_REGNUM.
6922 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6923 Take an extra "silent_p" parameter, defaulting to false.
6924 (aarch64_sve::svbool_type_p): Declare.
6925 (aarch64_sve::nvectors_if_data_type): Likewise.
6926 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6927 (aarch64_frame::reg_offset): Turn into poly_int64s.
6928 (aarch64_frame::save_regs_size): Likewise.
6929 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6930 (aarch64_frame::sve_callee_adjust): Likewise.
6931 (aarch64_frame::spare_reg_reg): Likewise.
6932 (ARM_PCS_SVE): New arm_pcs value.
6933 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6934 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6935 (CUMULATIVE_ARGS::silent_p): Likewise.
6936 (BITS_PER_SVE_PRED): New macro.
6937 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6938 function. Reject aarch64_vector_pcs attributes on SVE functions.
6939 (aarch64_attribute_table): Use the above handler.
6940 (aarch64_sve_abi): New function.
6941 (aarch64_sve_argument_p): Likewise.
6942 (aarch64_returns_value_in_sve_regs_p): Likewise.
6943 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6944 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6945 descriptor for them.
6946 (aarch64_simd_decl_p): Delete.
6947 (aarch64_emit_cfi_for_reg_p): New function.
6948 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6949 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6950 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6951 as partly clobbered for the SVE PCS.
6952 (aarch64_function_ok_for_sibcall): Check whether the two functions
6953 use the same ABI, rather than checking specifically for whether
6954 they're aarch64_vector_pcs functions.
6955 (aarch64_pass_by_reference): Raise an error for attempts to pass
6956 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6957 if there are not enough free registers left, or if the argument is
6958 variadic.
6959 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6960 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6961 tuples in memory.
6962 (aarch64_layout_arg): Take a function_arg_info rather than
6963 individual properties. Handle SVE predicates, vectors and tuples.
6964 Raise an error if they are passed to unprototyped functions.
6965 (aarch64_function_arg): If the silent_p flag is set, suppress the
6966 usual error about using float registers without TARGET_FLOAT.
6967 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6968 it in the cumulative_args structure. Initialize aapcs_nprn and
6969 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6970 error about using float registers without TARGET_FLOAT.
6971 If the silent_p flag is not set, also raise an error about
6972 using SVE functions when SVE is disabled.
6973 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6974 and call it for SVE functions too. Update aapcs_nprn similarly
6975 to the other register counts.
6976 (aarch64_layout_frame): If a big-endian function needs to save
6977 and restore Z8-Z15, search for a spare predicate that it can use.
6978 Store SVE predicates at the bottom of the register save area,
6979 followed by SVE vectors, then followed by the normal slots.
6980 Keep pointing the hard frame pointer at the base of the normal slots,
6981 above the SVE vectors. Update the various frame creation and
6982 tear-down strategies for the new layout, initializing the new
6983 sve_callee_adjust field. Add an additional layout for frames
6984 whose saved registers are all SVE registers.
6985 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6986 (aarch64_return_address_signing_enabled): Likewise.
6987 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6988 aarch64_reg_save_mode.
6989 (aarch64_adjust_sve_callee_save_base): New function.
6990 (aarch64_add_cfa_expression): Move earlier in file. Take the
6991 saved register as an rtx rather than a register number and use
6992 its mode for the MEM slot.
6993 (aarch64_save_callee_saves): Remove the mode argument and instead
6994 use aarch64_reg_save_mode to get the mode of each save slot.
6995 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6996 offsets. Allow GP offsets to be saved at a VL-based offset from
6997 the stack, handling this case using the frame pointer if available
6998 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6999 big-endian SVE functions; use normal moves for other SVE saves.
7000 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
7001 returns true. Add explicit CFA notes when not storing via the
7002 stack pointer. Do not try to pair SVE saves.
7003 (aarch64_restore_callee_saves): Cope with poly_int64 register
7004 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
7005 use normal moves for other SVE restores. Only add CFA restore notes
7006 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
7007 SVE restores.
7008 (aarch64_get_separate_components): Always keep the first SVE save
7009 in the prologue if we need to use it as a stack probe. Don't allow
7010 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
7011 Likewise the spare predicate register that they need. Update the
7012 offset calculation to account for the SVE save area. Use the
7013 appropriate range check for SVE LDR and STR instructions.
7014 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
7015 (aarch64_process_components): Likewise. Update the offset
7016 calculation to account for the SVE save area. Only mark the
7017 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
7018 Do not try to pair SVE saves.
7019 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
7020 reg_offsets. When handling the final allocation, expect the
7021 first SVE register save to be part of the initial allocation
7022 and for it to act as a probe at SP. Account for the SVE callee
7023 save area in the dump information.
7024 (aarch64_expand_prologue): Update the frame diagram. Fold the
7025 SVE callee allocation into the initial allocation if stack clash
7026 protection is enabled. Use new variables to track the offset
7027 of the frame chain (and hard frame pointer) from the current
7028 stack pointer, and likewise the offset of the bottom of the
7029 register save area. Update calls to aarch64_save_callee_saves
7030 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
7031 saving the FP&SIMD registers. Save the predicate registers.
7032 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
7033 into account when setting the stack pointer from the frame pointer,
7034 and when deciding whether we can inherit the initial adjustment
7035 amount from the prologue. Restore the predicate registers after
7036 the vector registers, then apply sve_callee_adjust, then restore
7037 the general registers.
7038 (aarch64_secondary_reload): Don't use secondary SVE reloads
7039 for VNx16BImode.
7040 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
7041 (aarch64_short_vector_p): Return false for SVE types.
7042 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
7043 at the start of the function. Return false for SVE types.
7044 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
7045 functions too.
7046 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
7047 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
7048 to big-endian targets for bytewise moves.
7049 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
7050
7051 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7052 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7053 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7054
7055 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
7056 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
7057 aarch64-sve-builtins-base.o to extra_objs. Add
7058 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
7059 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
7060 (aarch64-sve-builtins-shapes.o): Likewise.
7061 (aarch64-sve-builtins-base.o): New rules.
7062 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
7063 (aarch64_resolve_overloaded_builtin): Likewise.
7064 (aarch64_check_builtin_call): Likewise.
7065 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
7066 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
7067 pragma.
7068 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
7069 (aarch64_svprfop): New enum.
7070 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
7071 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
7072 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
7073 (aarch64_output_sve_cnt_pat_immediate): Likewise.
7074 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
7075 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
7076 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
7077 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
7078 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
7079 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
7080 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
7081 (aarch64_sve::mangle_builtin_type): Likewise.
7082 (aarch64_sve::resolve_overloaded_builtin): Likewise.
7083 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
7084 (aarch64_sve::expand_builtin): Likewise.
7085 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
7086 (aarch64_sve_int_mode): Likewise.
7087 (aarch64_ptrue_all_mode): New function.
7088 (aarch64_convert_sve_data_to_pred): Make public.
7089 (svprfop_token): New function.
7090 (aarch64_output_sve_prefetch): Likewise.
7091 (aarch64_fold_sve_cnt_pat): Likewise.
7092 (aarch64_output_sve_cnt_pat_immediate): Likewise.
7093 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
7094 instead of gen_while_ult.
7095 (aarch64_replace_reg_mode): Make public.
7096 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
7097 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
7098 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
7099 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
7100 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
7101 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
7102 (aarch64_sve_ptrue_svpattern_p): Likewise.
7103 (aarch64_sve_pred_valid_immediate): Check
7104 aarch64_sve_ptrue_svpattern_p.
7105 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
7106 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
7107 functions.
7108 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
7109 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
7110 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
7111 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
7112 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
7113 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
7114 New unspecs.
7115 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
7116 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
7117 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
7118 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
7119 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
7120 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
7121 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
7122 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
7123 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
7124 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
7125 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
7126 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
7127 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
7128 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
7129 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
7130 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
7131 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
7132 (Vesize): Handle partial vector modes.
7133 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
7134 mode attributes.
7135 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
7136 iterators.
7137 (s, paired_extend, inc_dec): New code attributes.
7138 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
7139 (SVE_INT_UNARY): Add UNSPEC_RBIT.
7140 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
7141 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
7142 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
7143 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7144 UNSPEC_COND_FMULX.
7145 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
7146 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
7147 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7148 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
7149 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
7150 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
7151 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
7152 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
7153 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
7154 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
7155 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
7156 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
7157 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
7158 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
7159 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
7160 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
7161 UNSPEC_COND_FSCALE.
7162 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7163 (binqops_op, binqops_op_rev, last_op): New int attributes.
7164 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
7165 (fn, ab): New int attributes.
7166 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
7167 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
7168 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
7169 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
7170 UNSPEC_RBIT.
7171 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
7172 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
7173 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
7174 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
7175 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7176 UNSPEC_COND_FMULX.
7177 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
7178 (brk_reg_con, brk_reg_opno): New int attributes.
7179 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
7180 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
7181 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
7182 UNSPEC_COND_FMIN.
7183 (max_elem_bits): New int attribute.
7184 (min_elem_bits): Handle UNSPEC_RBIT.
7185 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
7186 TRUNCATE as well as SUBREG.
7187 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
7188 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
7189 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
7190 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
7191 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
7192 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
7193 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
7194 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
7195 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
7196 (aarch64_gather_scale_operand_h): New predicates.
7197 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
7198 (vgd, vgh, vgw, vsQ, vsS): New constraints.
7199 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
7200 (*aarch64_sve_reinterpret<mode>): Allow any source register
7201 instead of requiring an exact match.
7202 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
7203 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
7204 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
7205 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
7206 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
7207 (aarch64_update_ffrt): New patterns.
7208 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7209 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7210 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7211 (@aarch64_ld<fn>f1<mode>): New patterns.
7212 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7213 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7214 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7215 (@aarch64_ldnt1<mode>): New patterns.
7216 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7217 the scalar part of the address.
7218 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
7219 scalar part of the addresse and add an alternative for handling
7220 nonzero offsets.
7221 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7222 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
7223 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7224 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7225 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7226 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7227 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
7228 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
7229 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7230 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7231 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7232 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7233 (@aarch64_sve_prefetch<mode>): New patterns.
7234 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
7235 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
7236 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
7237 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
7238 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
7239 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7240 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7241 (@aarch64_stnt1<mode>): New patterns.
7242 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7243 the scalar part of the address.
7244 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
7245 the scalar part of the addresse and add an alternative for handling
7246 nonzero offsets.
7247 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7248 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
7249 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7250 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7251 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
7252 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
7253 New patterns.
7254 (vec_duplicate<mode>): Use QI as the mode of the input operand.
7255 (extract_last_<mode>): Generalize to...
7256 (@extract_<LAST:last_op>_<mode>): ...this.
7257 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
7258 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
7259 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
7260 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
7261 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
7262 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
7263 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
7264 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
7265 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
7266 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
7267 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
7268 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
7269 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
7270 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
7271 (*aarch64_adr_uxtw_unspec): Likewise.
7272 (*aarch64_adr_uxtw): Rename to...
7273 (*aarch64_adr_uxtw_and): ...this.
7274 (@aarch64_adr<mode>_shift): New expander.
7275 (*aarch64_adr_shift_sxtw): New pattern.
7276 (aarch64_<su>abd<mode>_3): Rename to...
7277 (@aarch64_pred_<su>abd<mode>): ...this.
7278 (<su>abd<mode>_3): Update accordingly.
7279 (@aarch64_cond_<su>abd<mode>): New expander.
7280 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
7281 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
7282 (*<su>mul<mode>3_highpart): Rename to...
7283 (@aarch64_pred_<optab><mode>): ...this.
7284 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
7285 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
7286 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
7287 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
7288 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
7289 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
7290 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
7291 (*v<ASHIFT:optab><mode>3): Rename to...
7292 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
7293 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
7294 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
7295 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
7296 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
7297 (@cond_asrd<mode>): New expander.
7298 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
7299 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
7300 (*sdiv_pow2<mode>3): Delete.
7301 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
7302 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
7303 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
7304 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
7305 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
7306 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
7307 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
7308 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
7309 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
7310 (*add<SVE_F:mode>3): Rename to...
7311 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
7312 for SVE_STRICT_GP.
7313 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
7314 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
7315 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
7316 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
7317 (*sub<SVE_F:mode>3): Rename to...
7318 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
7319 for SVE_STRICT_GP.
7320 (@aarch64_pred_abd<SVE_F:mode>): New expander.
7321 (*fabd<SVE_F:mode>3): Rename to...
7322 (*aarch64_pred_abd<SVE_F:mode>): ...this.
7323 (@aarch64_cond_abd<SVE_F:mode>): New expander.
7324 (*mul<SVE_F:mode>3): Rename to...
7325 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
7326 for SVE_STRICT_GP.
7327 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
7328 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
7329 to...
7330 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
7331 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
7332 (*<nlogical><PRED_ALL:mode>3): Rename to...
7333 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
7334 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
7335 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
7336 (*<logical_nn><PRED_ALL:mode>3): Rename to...
7337 (aarch64_pred_<logical_nn><mode>_z): ...this.
7338 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
7339 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
7340 (*fma<SVE_I:mode>4): Rename to...
7341 (@aarch64_pred_fma<SVE_I:mode>): ...this.
7342 (*fnma<SVE_I:mode>4): Rename to...
7343 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
7344 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
7345 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
7346 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
7347 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
7348 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
7349 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
7350 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
7351 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
7352 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
7353 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
7354 (@aarch64_sve_tmad<mode>): Likewise.
7355 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
7356 (*aarch64_sel_dup<mode>): Rename to...
7357 (@aarch64_sel_dup<mode>): ...this.
7358 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
7359 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
7360 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
7361 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
7362 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
7363 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
7364 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
7365 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
7366 (*fcm<cmp_op><mode>): Rename to...
7367 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
7368 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7369 (*fcmuo<mode>): Rename to...
7370 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
7371 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7372 (@aarch64_pred_fac<cmp_op><mode>): New expander.
7373 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
7374 (fold_extract_last_<mode>): Generalize to...
7375 (@fold_extract_<last_op>_<mode>): ...this.
7376 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
7377 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
7378 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
7379 DImode result explicit.
7380 (reduc_plus_scal_<mode>): Update accordingly.
7381 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
7382 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
7383 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
7384 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
7385 (*aarch64_sve_tbl<mode>): Rename to...
7386 (@aarch64_sve_tbl<mode>): ...this.
7387 (@aarch64_sve_compact<mode>): New pattern.
7388 (*aarch64_sve_dup_lane<mode>): Rename to...
7389 (@aarch64_sve_dup_lane<mode>): ...this.
7390 (@aarch64_sve_dupq_lane<mode>): New pattern.
7391 (@aarch64_sve_splice<mode>): Likewise.
7392 (aarch64_sve_<perm_insn><mode>): Rename to...
7393 (@aarch64_sve_<perm_insn><mode>): ...this.
7394 (*aarch64_sve_ext<mode>): Rename to...
7395 (@aarch64_sve_ext<mode>): ...this.
7396 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
7397 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
7398 to...
7399 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
7400 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7401 Rename to...
7402 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7403 ...this.
7404 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
7405 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
7406 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
7407 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
7408 to...
7409 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
7410 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
7411 a "@" marker.
7412 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
7413 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
7414 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
7415 pattern.
7416 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
7417 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
7418 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
7419 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
7420 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
7421 "@" marker.
7422 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
7423 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
7424 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
7425 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
7426 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
7427 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
7428 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
7429 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
7430 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
7431 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
7432 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
7433 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
7434 (aarch64_sve_cnt_pat): Likewise.
7435 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7436 (*aarch64_sve_incsi_pat): Likewise.
7437 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7438 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7439 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7440 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7441 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7442 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7443 (*aarch64_sve_decsi_pat): Likewise.
7444 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7445 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7446 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7447 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7448 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7449 (@aarch64_pred_cntp<mode>): Likewise.
7450 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7451 New expander.
7452 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7453 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7454 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7455 New expander.
7456 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7457 New pattern.
7458 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
7459 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7460 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
7461 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7462 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
7463 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7464 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7465 New expander.
7466 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7467 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7468 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7469 New expander.
7470 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7471 New pattern.
7472 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
7473 expander.
7474 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7475 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
7476 expander.
7477 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7478 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
7479 expander.
7480 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7481 * config/aarch64/arm_sve.h: New file.
7482 * config/aarch64/aarch64-sve-builtins.h: Likewise.
7483 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
7484 * config/aarch64/aarch64-sve-builtins.def: Likewise.
7485 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
7486 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
7487 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
7488 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
7489 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
7490 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
7491
7492 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7493
7494 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7495 New pattern.
7496 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7497 SVE modes.
7498
7499 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7500
7501 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7502 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7503 FFRT_REGNUM + 1.
7504 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7505 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7506 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7507 (aarch64_hard_regno_nregs): Handle the new register classes.
7508 (aarch64_hard_regno_mode_ok): Likewise.
7509 (aarch64_regno_regclass): Likewise.
7510 (aarch64_class_max_nregs): Likewise.
7511 (aarch64_register_move_cost): Likewise.
7512 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7513 as general register_operands.
7514
7515 2019-10-29 Martin Liska <mliska@suse.cz>
7516
7517 * ggc-common.c: One can't subtract unsigned types
7518 in compare function.
7519
7520 2019-10-29 Martin Liska <mliska@suse.cz>
7521
7522 * cgraphunit.c (symbol_table::compile): Pass
7523 title as dump_memory_report argument.
7524 * toplev.c (dump_memory_report): New argument.
7525 (finalize): Pass new argument.
7526 * toplev.h (dump_memory_report): Add argument.
7527
7528 2019-10-29 Martin Liska <mliska@suse.cz>
7529
7530 * ggc-common.c: Move Leak to the first column.
7531
7532 2019-10-29 Martin Liska <mliska@suse.cz>
7533
7534 * cgraphunit.c (symbol_table::compile): Remove argument
7535 for dump_memory_report.
7536 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7537 (compare_final): Remove in order to make report
7538 better readable.
7539 * ggc.h (dump_ggc_loc_statistics): Remove argument.
7540 * mem-stats.h (mem_alloc_description::get_list):
7541 Do not pass cmp.
7542 (mem_alloc_description::dump): Likewise here.
7543 * toplev.c (dump_memory_report): Remove final
7544 argument.
7545 (finalize): Likewise.
7546 * toplev.h (dump_memory_report): Remove argument.
7547
7548 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7549
7550 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7551 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7552 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7553 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7554 accept "const".
7555
7556 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7557
7558 * coretypes.h (string_int_pair): New typedef.
7559 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7560 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7561 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7562
7563 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7564
7565 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7566 (simulate_builtin_function_decl): Declare.
7567 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7568 (LANG_HOOKS_INITIALIZER): Include it.
7569 * langhooks.c (add_builtin_function_common): Rename to...
7570 (build_builtin_function): ...this. Add a location parameter and use
7571 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7572 the decl instead.
7573 (add_builtin_function): Update accordingly, passing the returned
7574 decl to the lang hook.
7575 (add_builtin_function_ext_scope): Likewise
7576 (simulate_builtin_function_decl): New function.
7577
7578 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7579
7580 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7581 example, use actual names of supported offload targets.
7582
7583 PR target/92258
7584 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7585
7586 2019-10-28 Martin Sebor <msebor@redhat.com>
7587
7588 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7589 (handle_store): Pass argument to get_addr_stridx.
7590
7591 2019-10-28 Martin Sebor <msebor@redhat.com>
7592
7593 PR tree-optimization/92226
7594 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7595 the offset is in the open range outlined by SI's length.
7596
7597 2019-10-28 Martin Sebor <msebor@redhat.com>
7598
7599 PR c/66970
7600 * doc/cpp.texi (__has_builtin): Document.
7601 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7602
7603 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7604
7605 PR target/82981
7606 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7607 doubleword and low doubleword result of multiplication on
7608 MIPS64R6.
7609
7610 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7611 pure qualifier to the built-in.
7612 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7613 built-ins.
7614 (struct mips_builtin_description): Add is_pure flag.
7615 (mips_init_builtins): Mark built-in as pure if the flag in the
7616 corresponding mips_builtin_description struct is set.
7617
7618 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7619 alternative which covers the floating-point input value. Also
7620 forbid the split of insert.d pattern for floating-point values.
7621
7622 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7623
7624 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7625 * config/riscv/riscv-sr.c: New file.
7626 * config/riscv/riscv.c (riscv_reorg): New function.
7627 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7628 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7629 (riscv_remove_unneeded_save_restore_calls): Declare.
7630 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7631
7632 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7633
7634 PR tree-optimization/92163
7635 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7636 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7637 before calling bitmap_set_bit.
7638 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7639 delete_dead_or_redundant_assignment.
7640 (dse_dom_walker::dse_optimize_stmt): Likewise.
7641 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7642
7643 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7644
7645 PR middle-end/91272
7646 * tree-vect-stmts.c (vectorizable_condition): Support
7647 EXTRACT_LAST_REDUCTION with fully-masked loops.
7648
7649 2019-10-28 Richard Biener <rguenther@suse.de>
7650
7651 PR tree-optimization/92252
7652 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7653 STMT_VINFO_REDUC_IDX when swapping operands.
7654
7655 2019-10-28 Richard Biener <rguenther@suse.de>
7656
7657 PR tree-optimization/92241
7658 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7659 we failed to update the reduction index do not use the pattern
7660 stmts for the reduction chain.
7661 (vectorizable_reduction): When the reduction chain is corrupt,
7662 fail.
7663 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7664 fail to update the reduction chain.
7665
7666 2019-10-28 Richard Biener <rguenther@suse.de>
7667
7668 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7669 STMT_VINFO_REDUC_IDX from the actual stmt.
7670 (vect_transform_reduction): Likewise.
7671 (vectorizable_reduction): Compute the reduction chain length,
7672 do not recompute the reduction operand index. Remove no longer
7673 necessary restriction for condition reduction chains.
7674
7675 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7676
7677 PR target/92225
7678 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7679 condition for V2DImode.
7680
7681 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7682
7683 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7684 Remove %k operand modifier.
7685 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7686
7687 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7688
7689 PR rtl-optimization/92007
7690 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7691 call it after reload if hot/cold partitioning has been done.
7692 (class pass_postreload_jump): Rename to
7693 pass_jump_after_combine.
7694 (make_pass_postreload_jump): Rename to
7695 make_pass_jump_after_combine.
7696 * passes.def(pass_postreload_jump): Move before reload, rename
7697 to pass_jump_after_combine.
7698 * tree-pass.h (make_pass_postreload_jump): Rename to
7699 make_pass_jump_after_combine.
7700
7701 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7702
7703 PR ipa/92242
7704 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7705 for missing EDGE_REF
7706 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7707
7708 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7709
7710 PR tree-optimization/88760
7711 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7712 Enable -funroll-loops for -O2 and above.
7713 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7714 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7715 do not turn on web and rngreg implicitly, if the unroller is not
7716 explicitly enabled.
7717
7718 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7719
7720 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7721 jump functions.
7722
7723 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7724
7725 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7726 * cgraph.h (cgraph_node::rtl_info): Likewise.
7727
7728 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7729
7730 * ipa-cp.c (propagate_constants_across_call): If args are not available
7731 just drop everything to varying.
7732 (find_aggregate_values_for_callers_subset): Watch for missing
7733 edge summary.
7734 (find_more_scalar_values_for_callers_subs): Likewise.
7735 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7736 update_jump_functions_after_inlining, propagate_controlled_uses):
7737 Watch for missing summaries.
7738 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7739 is finished.
7740 (ipa_write_node_info): Watch for missing summaries.
7741 (ipa_read_edge_info): Create new ref.
7742 (ipa_edge_args_sum_t): Add remove.
7743 (IPA_EDGE_REF_GET_CREATE): New macro.
7744 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7745 edge summary.
7746 (remap_edge_change_prob): Likewise.
7747
7748 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7749
7750 * ipa-inline-transform.c (inline_call): update function summaries
7751 after expanidng thunk.
7752
7753 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7754
7755 * ipa-icf.c (sem_function::merge): Update function summaries.
7756 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7757
7758 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7759
7760 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7761 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7762 operand already has scalar mode.
7763 (iptr): Remove SF/DF.
7764
7765 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7766
7767 PR target/91289
7768 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7769 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7770 this.
7771
7772 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7773
7774 * config/i386/sse.md
7775 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7776 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7777 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7778 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7779 <sse>_vmmaskcmp<mode>3):
7780 Change predicates from vector_operand to nonimmediate_operand,
7781 constraints xBm to xm, since scalar operations don't need
7782 memory address alignment.
7783 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7784 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7785 round_saeonly_nimm_predicate with
7786 round_saeonly_nimm_scalar_predicate.
7787 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7788 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7789 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7790 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7791 avx512f_vmfmadd_<mode>_mask3<round_name>,
7792 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7793 *avx512f_vmfmsub_<mode>_mask<round_name>,
7794 avx512f_vmfmsub_<mode>_mask3<round_name>,
7795 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7796 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7797 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7798 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7799 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7800 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7801 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7802 cvtusi2<ssescalarmodesuffix>32<round_name>,
7803 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7804 round_nimm_predicate with round_nimm_scalr_predicate.
7805 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7806 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7807 avx512er_vmrcp28<mode><round_saeonly_name>,
7808 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7809 ): Replace round_saeonly_nimm_predicate with
7810 round_saeonly_nimm_scalar_predicate.
7811 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7812 vector_operand with nonimmediate_operand.
7813 * config/i386/subst.md (round_scalar_nimm_predicate,
7814 round_saeonly_scalar_nimm_predicate): Replace
7815 vector_operand with nonimmediate_operand.
7816
7817 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7818
7819 PR target/89071
7820 * config/i386/i386.md (*rcpsf2_sse): Add
7821 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7822 (*rsqrtsf2_sse): Ditto.
7823 (*sqrt<mode>2_sse): Ditto.
7824 (sse4_1_round<mode>2): separate constraint vm, add
7825 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7826 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7827 by pass rpad.
7828 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7829 Ditto.
7830 (*sse_vmrsqrtv4sf2): Ditto.
7831 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7832 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7833 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7834 <iptr> pointer size modifier since vround support memory operand.
7835
7836 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7837
7838 PR target/85969
7839 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7840 static function.
7841
7842 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7843 Tobias Burnus <tobias@codesourcery.com>
7844
7845 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7846 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7847 common block decls.
7848
7849 2019-10-25 Richard Biener <rguenther@suse.de>
7850
7851 PR tree-optimization/92222
7852 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7853 (_slp_oprnd_info::second_pattern): Likewise.
7854 (_slp_oprnd_info::any_pattern): New.
7855 (vect_create_oprnd_info): Adjust.
7856 (vect_get_and_check_slp_defs): Compute whether any stmt is
7857 in a pattern.
7858 (vect_build_slp_tree_2): Avoid building up a node from scalars
7859 if any of the operand defs, not just the first, is in a pattern.
7860
7861 2019-10-25 Richard Biener <rguenther@suse.de>
7862
7863 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7864 swapping if we actually have to modify the IL on a shared stmt.
7865 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7866 because we no longer modify the IL.
7867
7868 2019-10-25 Martin Liska <mliska@suse.cz>
7869
7870 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7871
7872 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7873
7874 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7875 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7876 handled by vect_transform_reduction. Allow fully-masked loops
7877 to be used with reduction chains.
7878 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7879 operations in fully-masked loops.
7880 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7881 operations in fully-masked loops.
7882
7883 2019-10-25 Richard Biener <rguenther@suse.de>
7884
7885 * tree-vect-loop.c (vectorizable_reduction): Verify
7886 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7887 correctly.
7888 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7889 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7890 stmts.
7891
7892 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7893
7894 * gimplify.h (omp_construct_selector_matches): Declare.
7895 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7896 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7897 called function if needed for flag_openmp.
7898 (gimplify_scan_omp_clauses): Set ctx->code.
7899 (omp_construct_selector_matches): New function.
7900 * omp-general.h (omp_constructor_traits_to_codes,
7901 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7902 * omp-general.c (omp_constructor_traits_to_codes,
7903 omp_context_selector_matches, omp_resolve_declare_variant): New
7904 functions.
7905
7906 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7907 literal.
7908 * config/rx/rx.c (rx_print_operand): Likewise.
7909 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7910 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7911 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7912 Likewise.
7913 * genemit.c (emit_c_code): Likewise.
7914 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7915
7916 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7917
7918 * symbols-summary.h (fast_function_summary<T *, V>::release,
7919 fast_call_summary<T *, V>::release): Free m_vector.
7920
7921 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7922
7923 * cgraphunit.c (symbol_table::process_new_functions): Call
7924 ipa_free_size_summary.
7925 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7926 (devirtualization_time_bonus): Update.
7927 (ipcp_propagate_stage): Update.
7928 * ipa-fnsummary.c (ipa_size_summaries): New.
7929 (ipa_fn_summary_alloc): Alloc size summary.
7930 (dump_ipa_call_summary): Update.
7931 (ipa_dump_fn_summary): Update.
7932 (analyze_function_body): Update.
7933 (compute_fn_summary): Likewise.
7934 (ipa_get_stack_frame_offset): New function.
7935 (inline_update_callee_summaries): Do not update frame offsets.
7936 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7937 remove call and function summary.
7938 (ipa_update_overall_fn_summary): Update.
7939 (inline_read_section): Update.
7940 (ipa_fn_summary_write): Update.
7941 (ipa_free_fn_summary): Do not remove summaries.
7942 (ipa_free_size_summary): New.
7943 (release summary pass): Also run at WPA.
7944 * ipa-fnsummary.h (ipa_size_summary): Declare.
7945 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7946 estimated_self_stack_size.
7947 (ipa_size_summary_t): New type.
7948 (ipa_size_summaries): Declare.
7949 (ipa_free_size_summary): Declare.
7950 (ipa_get_stack_frame_offset): Declare.
7951 * ipa-icf.c (sem_function::merge): Update.
7952 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7953 (estimate_growth): Update.
7954 (growth_likely_positive): Update.
7955 (clone_inlined_nodes): Update.
7956 (inline_call): Update.
7957 * ipa-inline.c (caller_growth_limits): Update.
7958 (edge_badness): Update.
7959 (recursive_inlining): Update.
7960 (inline_small_functions): Update.
7961 (inline_to_all_callers_1): Update.
7962 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7963
7964 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7965
7966 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7967 (uavg<mode>3_ceil): ... This.
7968 (altivec_vavgs<VI_char>): Rename to...
7969 (avg<mode>3_ceil): ... This.
7970 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7971 VAVGUW, VAVGSW): Adjust.
7972
7973 2019-10-24 Nathan Sidwell <nathan@acm.org>
7974
7975 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7976
7977 2019-10-24 Martin Liska <mliska@suse.cz>
7978
7979 * symbol-summary.h (gt_pch_nx): Mark all functions
7980 with gcc_unreachable as we do not expect to be called.
7981
7982 2019-10-24 Richard Biener <rguenther@suse.de>
7983
7984 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7985 chains try harder with operand swapping and instead of
7986 putting a shifted chain into the reduction operands put
7987 a repetition of the final reduction op there as if we'd
7988 reassociate the expression.
7989
7990 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7991
7992 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7993 statics_not_read and statics_not_written to statics_read and
7994 statics_written respectively.
7995 (no_module_statics): New static var.
7996 (ipa_reference_get_not_read_global): Rename to ...
7997 (ipa_reference_get_read_global): ... this.
7998 (ipa_reference_get_not_written_global): Rename to ...
7999 (ipa_reference_get_written_global): ... this.
8000 (dump_static_vars_set_to_file): Dump no_module_statics.
8001 (copy_static_var_set): Add for propagation parameter.
8002 (ipa_init): Initialize no_module_statics.
8003 (ipa_ref_opt_summary_t::duplicate): Update.
8004 (ipa_ref_opt_summary_t::remove): Update.
8005 (propagate): Update.
8006 (write_node_summary_p): Look correctly for bitmap differences.
8007 (ipa_reference_write_optimization_summary): Update.
8008 (ipa_reference_read_optimization_summary): Update.
8009 * ipa-reference.h
8010 (ipa_reference_get_not_read_global): Rename to ...
8011 (ipa_reference_get_read_global): ... this.
8012 (ipa_reference_get_not_written_global): Rename to ...
8013 (ipa_reference_get_written_global): ... this.
8014 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
8015 (call_may_clobber_ref_p_1): Update.
8016
8017 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8018
8019 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
8020 and add comment.
8021 (msp430_hard_regno_nregs_with_padding): Remove.
8022
8023 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8024
8025 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
8026 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
8027 shift amount is between 1 and 4.
8028 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
8029 is between 1 and 4.
8030
8031 2019-10-24 Richard Biener <rguenther@suse.de>
8032
8033 PR tree-optimization/92205
8034 * tree-vect-loop.c (vectorizable_reduction): Restrict
8035 search for alternate vectype_in to lane-reducing patterns
8036 we support.
8037
8038 2019-10-24 Richard Biener <rguenther@suse.de>
8039
8040 PR tree-optimization/92203
8041 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
8042 Skip eliminating conversion stmts inserted by insertion.
8043
8044 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
8045
8046 * config/s390/s390.c (s390_get_thread_pointer): Use
8047 gen_get_thread_pointer.
8048 (s390_expand_split_stack_prologue): Likewise.
8049 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
8050 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
8051 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
8052 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
8053 parameterized name.
8054
8055 2019-10-24 Richard Biener <rguenther@suse.de>
8056
8057 * tree-vect-slp.c (vect_analyze_slp): When reduction group
8058 SLP discovery fails try to handle the reduction as part
8059 of SLP reduction discovery.
8060
8061 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
8062
8063 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
8064 declaration.
8065 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
8066 attribute if it exists, rather than the insn size. If we use the
8067 insn size, adjust the size to remove the extra size that prefixed
8068 instructions take.
8069 (rs6000_adjust_insn_length): New function.
8070 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
8071 update the instruction sized if prefixed instructions are used.
8072 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
8073 (non_prefixed_length attribute): Delete.
8074 (num_insns attribute): New insn attribute to return the number of
8075 instructions.
8076 (max_prefixed_insns attribute): New insn attribute to return the
8077 maximum number of prefixed instructions in an insn.
8078 (length attribute): Do not adjust for prefix instructions here,
8079 punt to ADJUST_INSN_LENGTH.
8080 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
8081 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
8082 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
8083 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
8084 max_prefixed_insns and num_insns.
8085
8086 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
8087 (movtd_64bit_nodm): Reformat.
8088 (mov<mode>_32bit): Reformat.
8089 (mov<mode>_softfloat): Reformat.
8090 (FMOVE128_GPR splitter): Reformat.
8091 (DIFD splitter): Reformat.
8092 (TI2 splitter): Reformat.
8093 * config/rs6000/predicates.md (lwa_operand): If the bottom two
8094 bits of the offset for the memory address are non-zero, use PLWA
8095 if prefixed instructions are available.
8096
8097 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8098
8099 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
8100
8101 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8102
8103 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
8104 previous patch.
8105
8106 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8107
8108 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
8109 (cmp_symbol_files): New.
8110 (lto_output): Copy sections in file order.
8111 * lto-streamer.h (lto_file_decl_data): Add field order.
8112
8113 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8114
8115 * ipa-reference.h (ipa_reference_var_uid): Move offline.
8116 * ipa-reference.c (reference_vars_map_t): new type.
8117 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
8118 (ipa_reference_var_uid): Implement.
8119 (varpool_node_hooks): New static var.
8120 (varpool_removal_hook): New function.
8121 (is_improper): Do not check bitmap for id==-1
8122 (get_static_name): Update.
8123 (ipa_init): Initialize new datastructures.
8124 (analyze_function): Do not recompute ids.
8125 (propagate): Free reference_vars_to_consider.
8126 (stream_out_bitmap): Update.
8127 (ipa_reference_read_optimization_summary): Update.
8128
8129 2019-10-23 qing zhao <qing.zhao@oracle.com>
8130
8131 PR gcov-profile/91971
8132 * coverage.c (coverage_init): Mangle the full path of filename when
8133 filename is a absolute path.
8134
8135 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8136
8137 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
8138 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
8139 (msp430_has_hwmult): New.
8140 (msp430_output_labelref):
8141 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
8142 * config/msp430/msp430.md (mulhisi3): Likewise.
8143 (umulhisi3): Likewise.
8144 (mulsidi3): Likewise.
8145 (umulsidi3): Likewise.
8146
8147 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8148
8149 PR ipa/92074
8150 * params.def (inline-heuristics-hint-percent): Set to 600.
8151
8152 2019-10-23 Richard Biener <rguenther@suse.de>
8153
8154 PR tree-optimization/65930
8155 * tree-vect-loop.c (check_reduction_path): Allow conversions
8156 that only change the sign.
8157 (vectorizable_reduction): Relax latch def stmts we handle further.
8158
8159 2019-10-23 Jakub Jelinek <jakub@redhat.com>
8160
8161 PR debug/90231
8162 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
8163 (remove_unused_ivs): Use it instead of get_computation_at. When
8164 choosing best candidate, only consider candidates where
8165 get_debug_computation_at actually returns non-NULL.
8166
8167 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
8168
8169 PR tree-optimization/92131
8170 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
8171 range would be symbolic, drop to varying for any explicit overflow
8172 in the constant part or if neither range is a singleton.
8173
8174 2019-10-23 Martin Liska <mliska@suse.cz>
8175
8176 PR middle-end/81669
8177 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
8178 Initialize m_data.
8179
8180 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
8181
8182 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
8183 int_mode_for_mode rather than mode_for_int_vector for scalars.
8184
8185 2019-10-23 Richard Biener <rguenther@suse.de>
8186
8187 PR tree-optimization/92179
8188 * tree-vect-stmts.c (vectorizable_shift): For shift args
8189 that are all the same remove type restriction in the SLP case.
8190 Adjust SLP code to handle converting of the shift arg to
8191 only apply in case the modes are different.
8192
8193 2019-10-23 Martin Liska <mliska@suse.cz>
8194
8195 PR ipa/91969
8196 * ipa-inline.c (recursive_inlining): Do not print
8197 when curr->count is not initialized.
8198
8199 2019-10-23 Richard Biener <rguenther@suse.de>
8200
8201 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
8202 op from scalars in case there's a constant operand in its
8203 definition.
8204
8205 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
8206
8207 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
8208 against out of range max skip or log values.
8209
8210 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
8211
8212 * cgraph.c (dump_graphviz): Change name to dump_name
8213
8214 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8215
8216 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
8217 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8218 subtraction from a carry operation.
8219
8220 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8221
8222 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
8223
8224 2019-10-22 Richard Biener <rguenther@suse.de>
8225
8226 PR tree-optimization/92173
8227 * tree-vect-loop.c (vectorizable_reduction): If
8228 vect_transform_reduction cannot handle code-generation try without
8229 the single-def-use-cycle optimization. Pass optab_vector to
8230 optab_for_tree_code to get vector shifts as that's what we'd
8231 generate.
8232
8233 2019-10-22 Michael Matz <matz@suse.de>
8234
8235 PR middle-end/90796
8236 * gimple-loop-jam.c (any_access_function_variant_p): New function.
8237 (adjust_unroll_factor): Use it to constrain safety, new parameter.
8238 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
8239
8240 2019-10-22 Richard Biener <rguenther@suse.de>
8241
8242 PR tree-optimization/92173
8243 * tree-vect-loop.c (vectorizable_reduction): If
8244 vect_transform_reduction cannot handle code-generation try without
8245 the single-def-use-cycle optimization. Pass optab_vector to
8246 optab_for_tree_code to get vector shifts as that's what we'd
8247 generate.
8248
8249 2019-10-22 Martin Liska <mliska@suse.cz>
8250
8251 * diagnostic-format-json.cc (json_from_expanded_location):
8252 Use json::integer_number.
8253 * gcov.c (output_intermediate_json_line): Use new
8254 json::integer_number.
8255 (output_json_intermediate_file): Likewise.
8256 * json.cc (number::print): Move to ...
8257 (float_number::print): ... this.
8258 (integer_number::print): New.
8259 (test_writing_numbers): Move to ...
8260 (test_writing_float_numbers): ... this.
8261 (test_writing_integer_numbers): New.
8262 (json_cc_tests): Register test_writing_integer_numbers.
8263 * json.h (class value): Add forward declaration
8264 for float_number and integer_number.
8265 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
8266 (class number): Move to ...
8267 (class float_number): ... this.
8268 (class integer_number): New.
8269 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
8270 Use json::integer_number.
8271 (optrecord_json_writer::location_to_json): Likewise.
8272 (optrecord_json_writer::profile_count_to_json): Likewise.
8273 (optrecord_json_writer::pass_to_json): Likewise.
8274
8275 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
8276
8277 * tree-vect-slp.c (vect_slp_bb_region): Check whether
8278 autodetected_vector_size rather than vector_size is zero.
8279 * tree-vect-loop.c (vect_analyze_loop): Likewise.
8280 Set autodetected_vector_size immediately after calling
8281 vect_analyze_loop_2. Check for a fatal error before advancing
8282 next_size.
8283
8284 2019-10-21 Jason Merrill <jason@redhat.com>
8285
8286 * lock-and-run.sh: Check for process existence rather than timeout.
8287
8288 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8289
8290 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
8291 widening multiplication.
8292
8293 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
8294
8295 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
8296 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
8297 type attribute.
8298 (subsi3_carryin_shift): Separate into register and constant controlled
8299 alternatives. Use shift_amount_operand for operand 4. Set shift
8300 attribute and simplify type attribute.
8301 (subsi3_carryin_shift_alt): Likewise.
8302 (rsbsi3_carryin_shift): Likewise.
8303 (rsbsi3_carryin_shift_alt): Likewise.
8304 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
8305 and register controlled shifts into distinct alternatives.
8306 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
8307 (andsi_not_shiftsi_si_scc): Likewise.
8308 (arm_cmpsi_negshiftsi_si): Likewise.
8309 (not_shiftsi): Remove redundant M constraint from alternative 1.
8310 (not_shiftsi_compare0): Likewise.
8311 (arm_cmpsi_insn): Remove redundant alternative 2.
8312 (cmpsi_shift_swp): Likewise.
8313 (sub_shiftsi): Likewise.
8314 (sub_shiftsi_compare0_scratch): Likewise.
8315 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
8316 (thumb2_cmpsi_neg_shiftsi): Likewise.
8317
8318 2019-10-21 Richard Biener <rguenther@suse.de>
8319
8320 PR tree-optimization/92162
8321 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
8322 STMT_VINFO_REDUC_IDX in reduc_info.
8323 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8324
8325 2019-10-21 Richard Biener <rguenther@suse.de>
8326
8327 * tree-vectorizer.h (_slp_tree::ops): New member.
8328 (SLP_TREE_SCALAR_OPS): New.
8329 (vect_get_slp_defs): Adjust prototype.
8330 * tree-vect-slp.c (vect_free_slp_tree): Release
8331 SLP_TREE_SCALAR_OPS.
8332 (vect_create_new_slp_node): Initialize it. New overload for
8333 initializing by an operands array.
8334 (_slp_oprnd_info::ops): New member.
8335 (vect_create_oprnd_info): Initialize it.
8336 (vect_free_oprnd_info): Release it.
8337 (vect_get_and_check_slp_defs): Populate the operands array.
8338 Do not swap operands in the IL when not necessary.
8339 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
8340 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
8341 swap operands in the operands array. Do not swap operands in
8342 the IL.
8343 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
8344 (vect_gather_slp_loads): Fix.
8345 (vect_detect_hybrid_slp_stmts): Likewise.
8346 (vect_slp_analyze_node_operations_1): Search for a internal
8347 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
8348 (vect_slp_analyze_node_operations): Skip ops-only stmts for
8349 the def-type push/pop dance.
8350 (vect_get_constant_vectors): Compute number_of_vectors here.
8351 Use SLP_TREE_SCALAR_OPS and simplify greatly.
8352 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
8353 (vect_get_slp_defs): Simplify greatly.
8354 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
8355 (vect_transform_reduction): Likewise.
8356 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
8357 (vectorizable_call): Likewise.
8358 (vectorizable_operation): Likewise.
8359 (vectorizable_load): Likewise.
8360 (vectorizable_condition): Likewise.
8361 (vectorizable_comparison): Likewise.
8362
8363 2019-10-21 Richard Biener <rguenther@suse.de>
8364
8365 PR tree-optimization/92161
8366 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
8367 for reductions.
8368
8369 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8370
8371 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
8372 (aarch64_rndr): New define_insn.
8373 (aarch64_rndrrs): Likewise.
8374 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
8375 (TARGET_RNG): Likewise.
8376 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
8377 argument.
8378 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
8379 Add fourth argument in prototype.
8380 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
8381 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
8382 (aarch64_init_rng_builtins): Define.
8383 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
8384 (aarch64_expand_rng_builtin): Define.
8385 (aarch64_general_expand_builtin): Use IGNORE argument, handle
8386 RNG builtins.
8387 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8388 __ARM_FEATURE_RNG when TARGET_RNG.
8389 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
8390
8391 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
8392
8393 * tree-vect-stmts (ensure_base_align): Only change alignment if new
8394 alignment is more restrictive.
8395
8396 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8397
8398 * tree-vectorizer.h (vec_info::vector_size): New member variable.
8399 (vect_update_max_nunits): Update comment.
8400 (current_vector_size): Delete.
8401 * tree-vect-stmts.c (current_vector_size): Likewise.
8402 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
8403 of current_vector_size.
8404 (get_mask_type_for_scalar_type): Likewise.
8405 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
8406 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
8407 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
8408 (vect_double_mask_nunits, vect_transform_loop): Likewise.
8409 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8410 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
8411
8412 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8413
8414 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
8415 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
8416 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
8417 accordingly.
8418
8419 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8420
8421 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
8422 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
8423 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
8424 call accordingly.
8425 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8426
8427 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8428
8429 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
8430 a loop_vec_info.
8431 (vect_set_loop_condition_masked): Update call accordingly.
8432
8433 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8434
8435 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
8436 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
8437 (simple_integer_narrowing): Update call accordingly.
8438 (vectorizable_conversion): Likewise.
8439
8440 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8441
8442 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
8443 (vectorizable_call): Update call accordingly.
8444
8445 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8446
8447 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
8448 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8449 (duplicate_and_interleave): Update call accordingly.
8450 * tree-vect-loop.c (vectorizable_reduction): Likewise.
8451
8452 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8453
8454 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
8455 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
8456 (vect_get_constant_vectors): Update call accordingly.
8457 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
8458
8459 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8460
8461 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
8462 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
8463 (vect_prologue_cost_for_slp_op): Update call accordingly.
8464 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
8465 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
8466 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
8467 (get_mask_type_for_scalar_type): Likewise.
8468 (vect_get_vector_types_for_stmt): Likewise.
8469 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8470 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8471 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
8472 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
8473 (vect_split_statement, vect_convert_input): Likewise.
8474 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
8475 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
8476 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
8477 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
8478 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
8479 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
8480 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
8481 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
8482 (vect_recog_mask_conversion_pattern): Likewise.
8483 (vect_add_conversion_to_pattern): Likewise.
8484 (vect_recog_gather_scatter_pattern): Likewise.
8485 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
8486 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
8487
8488 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8489
8490 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
8491 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
8492 (vect_check_load_store_mask): Update call accordingly.
8493 (vect_get_mask_type_for_stmt): Likewise.
8494 * tree-vect-patterns.c (check_bool_pattern): Likewise.
8495 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8496 (vect_convert_mask_for_vectype): Likewise.
8497
8498 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8499
8500 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8501 a vec_info.
8502 (vect_recog_dot_prod_pattern): Update call accordingly.
8503 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8504 (vect_recog_widen_sum_pattern): Likewise.
8505
8506 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8507
8508 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8509 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8510 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8511 accordingly.
8512
8513 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8514
8515 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8516 get_vectype_for_scalar_type_and_size instead of
8517 get_vectype_for_scalar_type.
8518
8519 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8520
8521 * common.opt (-fcommon): Fix description.
8522
8523 2019-10-20 Jakub Jelinek <jakub@redhat.com>
8524
8525 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8526 * config/i386/i386.c (ix86_pre_reload_split): New function.
8527 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8528 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8529 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8530 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8531 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8532 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8533 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8534 *<shift_insn><dwi>3_doubleword_mask,
8535 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8536 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8537 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8538 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8539 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8540 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8541 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8542 *avx2_<code>v8qiv8si2<mask_name>_2,
8543 *sse4_1_<code>v4qiv4si2<mask_name>_2,
8544 *sse4_1_<code>v4hiv4si2<mask_name>_2,
8545 *avx512f_<code>v8qiv8di2<mask_name>_2,
8546 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8547 *sse4_1_<code>v2hiv2di2<mask_name>_2,
8548 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8549 sse4_2_pcmpistr): Likewise.
8550
8551 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
8552
8553 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8554 now defaults to https.
8555
8556 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
8557
8558 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8559 skip non-zero array accesses.
8560
8561 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8562
8563 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8564 and return a boolean success value. Move the allocation and
8565 initialization of the bb_vec_info to...
8566 (vect_slp_bb_region): ...here. Update call accordingly.
8567 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8568 than in vect_slp_analyze_bb_1.
8569
8570 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8571
8572 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8573 when processing the given datarefs for the first time and
8574 check_datarefs subsequently.
8575 (vect_slp_bb_region): New function, split out of...
8576 (vect_slp_bb): ...here. Don't recompute the region bounds and
8577 dataref sets when retrying with a different vector size.
8578
8579 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8580 Uroš Bizjak <ubizjak@gmail.com>
8581
8582 PR target/92140
8583 * config/i386/predicates.md (int_nonimmediate_operand): New special
8584 predicate.
8585 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8586 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8587 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8588 define_insn_and_split patterns.
8589
8590 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8591
8592 * config/rs6000/rs6000.md: Delete out--of-date comment about
8593 special-casing integer loads.
8594
8595 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8596
8597 * escaped_string.h (escaped_string): New header.
8598 * tree.c (escaped_string): Remove escaped_string class.
8599
8600 2019-10-18 Martin Sebor <msebor@redhat.com>
8601
8602 PR tree-optimization/92157
8603 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8604 compute_string_length to return a negative result.
8605
8606 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8607
8608 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8609 (negvsi3, negvdi3): Delete.
8610 (negdi2_compare): Delete.
8611
8612 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8613
8614 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8615 operations.
8616 (subdi3_compare1): Delete pattern.
8617 (subvsi3_borrow): New insn pattern.
8618 (subvsi3_borrow_imm): Likewise.
8619
8620 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8621
8622 * config/arm/arm.md (subv<mode>4): Delete.
8623 (subvdi4): New expander pattern.
8624 (subvsi4): Likewise. Handle some immediate values.
8625 (subvsi3_intmin): New insn pattern.
8626 (subvsi3): Likewise.
8627 (subvsi3_imm1): Likewise.
8628 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8629 idioms.
8630
8631 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8632
8633 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8634 incoming operands. Early split the calculation into SImode
8635 operations.
8636 (usubvsi3_borrow): New insn pattern.
8637 (usubvsi3_borrow_imm): Likewise.
8638
8639 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8640
8641 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8642 (usubvsi4): New pattern. Allow some immediate values for inputs.
8643 (usubvdi4): New pattern.
8644
8645 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8646
8647 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8648 or second operand of the PLUS inside a DImode equality test to be
8649 sign-extend when selecting CC_Vmode.
8650 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8651 instructions.
8652 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8653 expand patterns.
8654 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8655 (addsi3_cin_vout_0): Likewise.
8656 (adddi3_compareV): Delete.
8657
8658 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8659
8660 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8661 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8662 to transform this back into the summation version when that leads
8663 to smaller code.
8664
8665 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8666
8667 * config/arm/arm.md (addv<mode>4): Delete.
8668 (addvsi4): New pattern. Handle immediate values that the architecture
8669 supports.
8670 (addvdi4): New pattern.
8671 (addsi3_compareV): Rename to ...
8672 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8673 and use COMPARE rather than NE.
8674 (addsi3_compareV_imm): New pattern.
8675 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8676 a signed-overflow check.
8677
8678 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8679
8680 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8681 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8682 CC_ADCmode.
8683 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8684 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8685 with overflow.
8686 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8687 expand patterns.
8688 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8689 (addsi3_cin_cout_imm_insn): Likewise.
8690 (adddi3_compareC): Delete insn.
8691 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8692
8693 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8694
8695 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8696 * (uaddv<mode>4): Delete expansion pattern.
8697 (uaddvsi4): New pattern.
8698 (uaddvdi4): Likewise.
8699 (addsi3_compareC): Delete pattern, change callers to use
8700 addsi3_compare_op1.
8701 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8702 reduce the number of alternatives and re-work type attribute handling.
8703 (addsi3_compare_op2): Clean up constraints to reduce the number of
8704 alternatives and re-work type attribute handling.
8705 (compare_addsi2_op0): Likewise.
8706 (compare_addsi2_op1): Likewise.
8707
8708 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8709
8710 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8711 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8712 for DImode operands.
8713 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8714 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8715 CC_NCVmode.
8716 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8717 (arm_cmpdi_unsigned): Delete.
8718
8719 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8720
8721 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8722 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8723 unchanged only if that will be cheaper.
8724 (arm_select_cc_mode): Recognize a swapped comparison that will
8725 be regenerated using RSBS or RSCS. Relax restriction on selecting
8726 CC_RSBmode.
8727 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8728 a constant.
8729 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8730 is CC_RSBmode.
8731 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8732 as CCmode.
8733 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8734 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8735
8736 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8737
8738 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8739 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8740 need these modes.
8741 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8742 of EQ, NE, LT, GE, LTU and GEU.
8743 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8744 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8745 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8746 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8747 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8748
8749 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8750
8751 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8752 operand 2.
8753 (cstoredi4): Similarly, but for operand 3.
8754 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8755 canonicalization of unsigned compares with a constant on Arm.
8756 Prefer using const+1 and adjusting the comparison over swapping the
8757 operands whenever the original constant was not valid.
8758 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8759 register here.
8760 (arm_validize_comparison): Do not force invalid DImode operands to
8761 registers here.
8762
8763 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8764
8765 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8766 return CC_Zmode if comparing against a constant where one word is
8767 zero.
8768 (arm_gen_compare_reg): Split DImode handling to ...
8769 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8770 against simple constants.
8771 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8772
8773 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8774
8775 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8776 (rsbsi3_carryin_shift_alt): Likewise.
8777
8778 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8779
8780 * config/arm/arm.md (negscc_borrow): New pattern.
8781 (mov_negscc): Don't split if the insn would match negscc_borrow.
8782 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8783 (thumb2_mov_negscc_strict_it): Likewise.
8784
8785 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8786
8787 * config/arm/arm.c (arm_insn_cost): New function.
8788 (TARGET_INSN_COST): Override default definition.
8789
8790 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8791
8792 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8793 borrow operations.
8794
8795 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8796
8797 * config/arm/arm.c (strip_carry_operation): New function.
8798 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8799 for SImode.
8800
8801 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8802
8803 * config/arm/predicates.md (arm_carry_operation): New special
8804 predicate.
8805 * config/arm/iterators.md (LTUGEU): Delete iterator.
8806 (cnb): Delete code attribute.
8807 (optab): Delete ltu and geu elements.
8808 * config/arm/arm.md (addsi3_carryin): Renamed from
8809 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8810 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8811 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8812 (addsi3_carryin_clobercc): Similarly.
8813 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8814 Thumb2 state.
8815
8816 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8817
8818 * config/arm/arm.md (arm_subdi3): Delete insn.
8819 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8820
8821 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8822
8823 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8824 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8825 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8826 return CC_RSBmode.
8827 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8828 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8829 expand.
8830 (subdi3): Rewrite to early-expand the sub-operations.
8831 (rsb_im_compare): New pattern.
8832 (negdi2): Delete.
8833 (negdi2_insn): Delete.
8834 (arm_negsi2): Correct type attribute to alu_imm.
8835 (negsi2_0compare): New insn pattern.
8836 (negsi2_carryin): New insn pattern.
8837
8838 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8839
8840 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8841 operand 2.
8842
8843 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8844
8845 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8846 to match canonical form.
8847
8848 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8849
8850 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8851 (extend<mode>di2): Likewise.
8852
8853 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8854
8855 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8856 * config/arm/arm.c (arm_decompose_di_binop): New function.
8857 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8858 If not generating Thumb-1 code, decompose the operation into 32-bit
8859 pieces.
8860 * add0si_carryin_<optab>: New pattern.
8861
8862 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8863
8864 * arm.md (adddi3): Only accept register operands.
8865 (arm_adddi3): Convert to simple insn with no split. Do not accept
8866 constants.
8867 (adddi_sesidi_di): Delete patern.
8868 (adddi_zesidi_di): Likewise.
8869 (uaddv<mode>4): Use LTU as condition for branch.
8870 (adddi3_compareV): Convert to simple insn with no split.
8871 (addsi3_compareV_upper): Delete pattern.
8872 (adddi3_compareC): Convert to simple insn with no split. Correct
8873 flags setting expression.
8874 (addsi3_compareC_upper): Delete pattern.
8875 (addsi3_compareC): Correct flags setting expression.
8876 (subdi3_compare1): Convert to simple insn with no split.
8877 (subsi3_carryin_compare): Delete pattern.
8878 (arm_subdi3): Convert to simple insn with no split.
8879 (subdi_zesidi): Delete pattern.
8880 (subdi_di_sesidi): Delete pattern.
8881 (subdi_zesidi_di): Delete pattern.
8882 (subdi_sesidi_di): Delete pattern.
8883 (subdi_zesidi_zesidi): Delete pattern.
8884 (negvdi3): Use s_register_operand.
8885 (negdi2_compare): Convert to simple insn with no split.
8886 (negdi2_insn): Likewise.
8887 (negsi2_carryin_compare): Delete pattern.
8888 (negdi_zero_extendsidi): Delete pattern.
8889 (arm_cmpdi_insn): Convert to simple insn with no split.
8890 (negdi2): Don't call gen_negdi2_neon.
8891 * config/arm/neon.md (adddi3_neon): Delete pattern.
8892 (subdi3_neon): Delete pattern.
8893 (negdi2_neon): Delete pattern.
8894 (splits for negdi2_neon): Delete splits.
8895
8896 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8897
8898 PR middle-end/92153
8899 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8900 than after it.
8901
8902 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8903
8904 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8905 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8906 new multilib variants and new mappings.
8907
8908 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8909
8910 PR target/86040
8911 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8912
8913 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8914 Richard Sandiford <richard.sandiford@arm.com>
8915
8916 PR target/86753
8917 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8918 and define hashmap traits for it.
8919 (loop_vec_info::scalar_cond_masked_set): New member.
8920 (vect_record_loop_mask): Adjust prototype.
8921 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8922 Implement method.
8923 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8924 vect_record_loop_mask.
8925 (vectorizable_live_operation): Likewise.
8926 (vect_record_loop_mask): New param scalar_mask. Add entry
8927 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8928 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8929 Pass it as last arg to vect_record_loop_mask.
8930 (vectorizable_call): Pass scalar_mask as last arg to
8931 vect_record_loop_mask.
8932 (vectorizable_store): Likewise.
8933 (vectorizable_load): Likewise.
8934 (vectorizable_condition): Check if another part of vectorized code
8935 applies loop_mask to condition or to it's inverse, and if yes,
8936 apply loop_mask to result of vector comparison.
8937
8938 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8939
8940 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8941
8942 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8943
8944 PR tree-optimization/92056
8945 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8946 before calling compute_builtin_object_size.
8947
8948 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8949
8950 PR target/65342
8951 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8952 (movdi_low_st): Delete.
8953 * config/rs6000/rs6000.c
8954 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8955 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8956 * config/rs6000/rs6000.md (movsi_low): Delete.
8957
8958 2019-10-17 Jason Merrill <jason@redhat.com>
8959
8960 * gimplify.h (get_initialized_tmp_var): Add default argument to
8961 post_p.
8962 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8963 NULL post_p argument.
8964 * targhooks (std_gimplify_va_arg_expr): Likewise.
8965
8966 2019-10-17 Richard Biener <rguenther@suse.de>
8967
8968 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8969 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8970 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8971 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8972 * tree-vect-loop.c (vect_is_simple_reduction): Set
8973 STMT_VINFO_REDUC_CODE.
8974 (vectorizable_reduction): Remove dead and redundant code, use
8975 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8976
8977 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8978
8979 Fix breakage introduced by r276985.
8980
8981 * config/avr/avr.c (avr_option_override): Remove set of
8982 PARAM_ALLOW_STORE_DATA_RACES.
8983 * common/config/avr/avr-common.c (avr_option_optimization_table)
8984 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8985
8986 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8987
8988 * config/i386/i386.h (processor_costs): Add clear_ratio.
8989 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8990 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8991 of 6 and move_ratio in all cost models.
8992
8993 2019-10-17 Richard Biener <rguenther@suse.de>
8994
8995 * tree-vect-loop.c (check_reduction_path): Compute reduction
8996 operation here.
8997 (vect_is_simple_reduction): Remove special-case of single-stmt
8998 reduction path detection.
8999
9000 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
9001
9002 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
9003
9004 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
9005
9006 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
9007 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
9008 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
9009 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
9010 New combine patterns.
9011 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
9012 above.
9013 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
9014
9015 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
9016
9017 * tree-vrp.c (value_range_base::dump): Display +INF for both
9018 pointers and integers when appropriate.
9019
9020 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9021
9022 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
9023 when to use versioning threshold.
9024
9025 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9026
9027 * tree-vect-loop.c (determine_peel_for_niter): New function contained
9028 outlined code from ...
9029 (vect_analyze_loop_2): ... here.
9030
9031 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9032
9033 * tree-vect-loop.c (vect_transform_loop): Move code from here...
9034 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
9035 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
9036
9037 2019-10-17 Richard Biener <rguenther@suse.de>
9038
9039 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
9040 (vect_is_simple_reduction): Move all validity checks ...
9041 (vectorizable_reduction): ... here. Compute whether we
9042 need a fold-left reduction here.
9043 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
9044 both overloads, check needs_fold_left_reduction_p directly.
9045 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
9046
9047 2019-10-17 Richard Biener <rguenther@suse.de>
9048
9049 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
9050 TARGET_MEM_REF creation.
9051
9052 2019-10-17 Richard Biener <rguenther@suse.de>
9053
9054 PR tree-optimization/92129
9055 * tree-vect-loop.c (vectorizable_reduction): Also fail
9056 on GIMPLE_SINGLE_RHS.
9057
9058 2019-10-17 Jakub Jelinek <jakub@redhat.com>
9059
9060 PR tree-optimization/92056
9061 * tree-object-size.c (cond_expr_object_size): Return early if then_
9062 processing resulted in unknown size.
9063
9064 PR tree-optimization/92115
9065 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
9066 temporary if it could trap.
9067
9068 2019-10-17 Richard Biener <rguenther@suse.de>
9069
9070 PR debug/91887
9071 * dwarf2out.c (gen_formal_parameter_die): Also try to match
9072 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
9073
9074 2019-10-16 Jakub Jelinek <jakub@redhat.com>
9075
9076 * tree-ssa-strlen.c (maybe_invalidate): Use
9077 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
9078
9079 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
9080 Jim Wilson <jimw@sifive.com>
9081
9082 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
9083 regs to SIBCALL_REGS.
9084 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
9085 passing regs to SIBCALL_REGS.
9086
9087 2019-10-16 Martin Sebor <msebor@redhat.com>
9088
9089 PR tree-optimization/83821
9090 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
9091 the length of a string when available.
9092 (handle_builtin_memset) Add argument.
9093 (handle_store, strlen_check_and_optimize_call): Same.
9094 (check_and_optimize_stmt): Same. Pass it to callees.
9095
9096 2019-10-16 Martin Sebor <msebor@redhat.com>
9097
9098 PR tree-optimization/91996
9099 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
9100 information.
9101 (compare_nonzero_chars): Add an overload.
9102 (count_nonzero_bytes): Add an argument. Call overload above.
9103 Handle non-constant lengths in some range.
9104 (handle_store): Add an argument.
9105 (check_and_optimize_stmt): Pass an argument to handle_store.
9106
9107 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
9108
9109 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
9110
9111 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9112
9113 * config/mips/mips.c (mips_expand_builtin_insn): Force the
9114 operands which correspond to the same input-output register to
9115 have the same pseudo assigned to them.
9116
9117 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
9118
9119 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
9120
9121 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
9122
9123 * config/aarch64/aarch64.c (aarch64_classify_symbol):
9124 Apply reasonable limit to symbol offsets.
9125
9126 2019-10-16 Richard Biener <rguenther@suse.de>
9127
9128 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
9129 (vect_is_simple_reduction): Delay checking to
9130 vectorizable_reduction and relax the checking.
9131 (vectorizable_reduction): Check we have a simple use. Check
9132 for bogus condition reductions.
9133 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
9134 are looking at the last stmt in a pattern sequence when
9135 filling in backedge PHI values.
9136
9137 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
9138 Jiufu Guo <guojiufu@linux.ibm.com>
9139
9140 PR target/70010
9141 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
9142 the callee explicitly disables some isa_flags the caller is using.
9143
9144 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9145
9146 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
9147
9148 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9149
9150 * genmodes.c (mode_data::order): New field.
9151 (blank_mode): Update accordingly.
9152 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
9153 (make_vector_modes): Likewise.
9154 (VECTOR_MODES): Update use accordingly.
9155 (cmp_modes): Sort by the new order field ahead of sorting by size.
9156 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
9157 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
9158 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
9159 (aarch64_classify_vector_mode): Handle the new partial modes.
9160 (aarch64_vl_bytes): New function.
9161 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
9162 when counting the number of registers in an SVE mode.
9163 (aarch64_class_max_nregs): Likewise.
9164 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
9165 in registers yet.
9166 (aarch64_classify_address): Treat partial vectors analogously
9167 to full vectors.
9168 (aarch64_print_address_internal): Consolidate the printing of
9169 MUL VL addresses, using aarch64_vl_bytes as the number of
9170 bytes represented by "VL".
9171 (aarch64_vector_mode_supported_p): Reject partial vector modes.
9172
9173 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9174
9175 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
9176 rather than known_lt when choosing frame layouts.
9177
9178 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9179
9180 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
9181 that all the adjustments add up to the full frame size.
9182 Use crtl->outgoing_args_size directly as the final adjustment
9183 where appropriate.
9184
9185 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9186
9187 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
9188 "frame" reference instead of always referring directly to
9189 "cfun->machine->frame".
9190
9191 2019-10-16 Richard Biener <rguenther@suse.de>
9192
9193 PR tree-optimization/92119
9194 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
9195 against missing bswap lhs.
9196
9197 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9198
9199 PR middle-end/92033
9200 * poly-int.h (constant_lower_bound_with_limit): New function.
9201 (constant_upper_bound_with_limit): Likewise.
9202 * doc/poly-int.texi: Document them.
9203 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
9204 into the worst-case INTEGER_CST bounds.
9205
9206 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
9207
9208 PR ipa/91088
9209 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
9210 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
9211 * ipa-predicat.h (struct expr_eval_op): New struct.
9212 (expr_eval_ops): New typedef.
9213 (struct condition): Add type and param_ops fields, remove size field.
9214 (add_condition): Replace size parameter with type parameter, add
9215 param_ops parameter.
9216 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
9217 (predicate::add_clause): Add comparisons on type and param_ops.
9218 (dump_condition): Add debug dump for param_ops.
9219 (remap_after_inlining): Adjust call arguments to add_condition.
9220 (add_condition): Replace size parameter with type parameter, add
9221 param_ops parameter. Unshare constant value used in conditions.
9222 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
9223 parameter expressions using param_ops.
9224 (decompose_param_expr): New function.
9225 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
9226 to replace call to unmodified_parm_or_parm_agg_item.
9227 (set_switch_stmt_execution_predicate): Likewise.
9228 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
9229 with type.
9230 (inline_read_section): Read param_ops from summary stream.
9231 (ipa_fn_summary_write): Write param_ops to summary stream.
9232
9233 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9234
9235 PR rtl-optimization/92107
9236 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
9237 expression written.
9238
9239 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9240
9241 * config/darwin.c: Update description of fix and continue.
9242
9243 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9244
9245 * config/darwin.c (darwin_binds_local_p): Update to call
9246 default_binds_local_p_3 () directly. amend comments.
9247
9248 2019-10-15 Richard Biener <rguenther@suse.de>
9249
9250 * lto-streamer-out.c (lto_variably_modified_type_p): New.
9251 (tree_is_indexable): Use it.
9252 * tree-streamer-out.c (pack_ts_type_common_value_fields):
9253 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
9254 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
9255
9256 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9257
9258 * config/msp430/msp430.md (zero_extendqipsi2): New.
9259 (zero_extendqisi2): Optimize case where src register and base dst
9260 register are the same.
9261 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
9262 (zero_extendpsisi2): Optimize r->m case.
9263 Add unnamed insn patterns to catch insns combine searches for when
9264 optimizing pointer manipulation.
9265
9266 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9267
9268 * config/msp430/msp430.md: Group zero_extend* insns together.
9269
9270 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9271
9272 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
9273 constraint.
9274 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
9275 POST_INC.
9276 (msp430_subreg): Likewise.
9277 (msp430_split_addsi): Likewise.
9278 (msp430_print_operand_addr): Likewise.
9279 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
9280 (USE_STORE_POST_INCREMENT): Define.
9281 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
9282 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
9283 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
9284 (msp430_general_dst_operand): New.
9285 (msp430_general_dst_nonv_operand): New.
9286 (msp430_nonsubreg_operand): Remove.
9287 (msp430_nonsubreg_dst_operand): New.
9288 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
9289 of defunct msp430_nonsubreg_operand.
9290 (msp430_nonsubregnonpostinc_or_imm_operand): New.
9291
9292 2019-10-15 Richard Biener <rguenther@suse.de>
9293
9294 PR tree-optimization/91929
9295 * tree-ssa-pre.c (pre_expr_d::loc): New member.
9296 (get_or_alloc_expr_for_name): Initialize it.
9297 (get_or_alloc_expr_for_constant): Likewise.
9298 (phi_translate_1): Copy it.
9299 (create_expression_by_pieces): Use the original location
9300 of the expression for the inserted stmt.
9301 (compute_avail): Record the location of the stmt for the
9302 expressions created.
9303
9304 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
9305
9306 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
9307 before using tree_to_uhwi.
9308
9309 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
9310
9311 * config/s390/s390.md: Run %a0:DI splitters only after reload.
9312
9313 2019-10-15 Richard Biener <rguenther@suse.de>
9314
9315 PR tree-optimization/92094
9316 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
9317 do not adjust the reduction definition def type.
9318 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
9319 defines the latch argument of the PHI.
9320
9321 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
9322
9323 PR target/92035
9324 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
9325 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
9326 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
9327 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
9328 _mm_maskz_roundscale_round_sd): New intrinsics.
9329 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
9330 __builtin_ia32_rndscales?_mask_round builtins instead of
9331 __builtin_ia32_rndscales?_round.
9332 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
9333 __builtin_ia32_rndscalesd_round): Remove.
9334 (__builtin_ia32_rndscaless_mask_round,
9335 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
9336 * config/i386/sse.md
9337 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
9338 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
9339 ... this, adjust and add subst atrributes to make it maskable.
9340
9341 2019-10-15 Richard Biener <rguenther@suse.de>
9342
9343 PR middle-end/92046
9344 * common.opt (fallow-store-data-races): New.
9345 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
9346 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
9347 * doc/invoke.texi (fallow-store-data-races): Document.
9348 (--param allow-store-data-races): Remove docs.
9349 * opts.c (default_options_table): Enable -fallow-store-data-races
9350 at -Ofast.
9351 (default_options_optimization): Do not enable --param
9352 allow-store-data-races at -Ofast.
9353 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
9354 instead of PARAM_ALLOW_STORE_DATA_RACES.
9355 * tree-ssa-loop-im.c (execute_sm): Likewise.
9356
9357 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9358
9359 PR tree-optimization/92085
9360 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
9361 instead of calling it unconditionally after
9362 delete_dead_or_redundant_assignment and fix indentation.
9363
9364 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9365
9366 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
9367 TARGET_VFP_DOUBLE.
9368 (*fmsub<SDF:mode>4): Likewise.
9369 *fnmsub<SDF:mode>4): Likewise.
9370 (*fnmadd<SDF:mode>4): Likewise.
9371
9372 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
9373
9374 * doc/tree-ssa.texi: Update renamed macro name.
9375
9376 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9377
9378 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
9379 vector constants.
9380
9381 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
9382
9383 * config/darwin.c: Use unsigned ints for the picbase label
9384 counters, initialise the vars explicitly.
9385 (update_pic_label_number_if_needed): Move a variable declaration
9386 to where it's needed.
9387 (machopic_output_function_base_name): Use a more strict checking
9388 assert, and and unsigned int for the picbase label counter.
9389 (machopic_get_function_picbase): Likewise.
9390
9391 2019-10-14 Richard Biener <rguenther@suse.de>
9392
9393 PR middle-end/92046
9394 * dse.c (scan_insn): Use param max_active_local_stores.
9395 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
9396 based on optimization level.
9397 * loop-invariant.c (move_loop_invariants): Adjust
9398 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
9399 * opts.c (default_options_optimization): Do not adjust
9400 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
9401 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
9402
9403 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9404
9405 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
9406
9407 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9408
9409 * config/arm/arm.c (arm_option_override): Don't override sched
9410 pressure algorithm.
9411
9412 2019-10-14 Richard Biener <rguenther@suse.de>
9413
9414 PR tree-optimization/92069
9415 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
9416 cycles do not set vect_nested_cycle on the latch definition.
9417
9418 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
9419
9420 * function-abi.h (expr_callee_abi): Declare.
9421 * function-abi.cc (expr_callee_abi): New function.
9422
9423 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
9424
9425 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
9426 into [1,MAX].
9427 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
9428 non-zero being represented as [1,MAX].
9429
9430 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
9431
9432 * tree-sra.c (dump_access): Add missing braces.
9433
9434 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9435
9436 * config/darwin.c (machopic_indirection_name): Rework the
9437 function to emit linker-visible symbols only for indirections
9438 in the data section. Clean up the code and update comments.
9439
9440 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9441
9442 * config/darwin.c (machopic_indirect_data_reference): Remove
9443 redundant code.
9444
9445 2019-10-13 Nathan Sidwell <nathan@acm.org>
9446
9447 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
9448
9449 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9450
9451 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
9452 c99_runtime.
9453
9454 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
9455
9456 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
9457 so non-virutal are before virutals.
9458 (output_function): Avoid body modifications.
9459
9460 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9461
9462 * config/pa/pa.c (pa_output_call): Load descriptor address to register
9463 %r22. Load function address before global pointer.
9464 (pa_attr_length_indirect_call): Adjust length of inline versions of
9465 $$dyncall.
9466 (pa_output_indirect_call): Remove fast inline version of $$dyncall
9467 before normal cases. Update inline $$dyncall sequences to preserve
9468 function descriptor address in register %r22.
9469 (TRAMPOLINE_CODE_SIZE): Adjust.
9470 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
9471 register %r22 contains trampoline address.
9472 (pa_trampoline_init): Adjust offsets.
9473 (pa_trampoline_adjust_address): Likewise.
9474 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
9475
9476 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9477
9478 PR target/67183
9479 * config/darwin.c (machopic_indirection): New field to flag
9480 non-lazy-symbol-pointers in the data section.
9481 (machopic_indirection_name): Compute if an indirection should
9482 appear in the data section.
9483 (machopic_output_data_section_indirection): New callback split
9484 from machopic_output_indirection.
9485 (machopic_output_stub_indirection): Likewise.
9486 (machopic_output_indirection): Retain the code for non-lazy
9487 symbol pointers in their regular section.
9488 (machopic_finish): Use the new callbacks to order the indirection
9489 output.
9490
9491 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9492
9493 * config/darwin-protos.h (machopic_finish): Delete.
9494 * config/darwin.c (machopic_finish): Make static.
9495
9496 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9497
9498 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9499 sections when building kernel extension code.
9500
9501 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
9502
9503 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9504 later standard."
9505
9506 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9507
9508 * config/pa/pa.c (pa_option_override): Remove trailing comma
9509 from warning.
9510
9511 2019-10-12 Jakub Jelinek <jakub@redhat.com>
9512
9513 PR middle-end/92063
9514 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9515 <case VEC_COND_EXPR>: Return false with *handled = false.
9516 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9517 recursing on the first operand.
9518 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9519 instead of tree_could_trap_p.
9520 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9521
9522 2019-10-11 Jim Wilson <jimw@sifive.com>
9523
9524 PR rtl-optimization/91860
9525 * combine.c (subst): If new_rtx is a constant, also check for
9526 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9527
9528 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
9529
9530 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9531 INTVAL when calling store_bit_field.
9532
9533 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
9534
9535 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9536 size.
9537
9538 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9539
9540 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9541 vectorizable_live_operation.
9542 (vectorizable_live_operation): Adjust parameters.
9543 * tree-vect-stmts.c (vect_init_vector,
9544 vect_gen_widened_results_half): Fix typo in function comment.
9545 (can_vectorize_live_stmts): Adjust function comment.
9546 Adjust parameters. Adjust call to vectorizable_live_operation.
9547 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9548 (vect_transform_stmt): Adjust function comment. Adjust call to
9549 can_vectorize_live_stmts.
9550 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9551
9552 2019-10-11 Richard Biener <rguenther@suse.de>
9553
9554 PR tree-optimization/90883
9555 PR tree-optimization/91091
9556 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9557 alias-sets both for recording VN table entries and continuing
9558 walking after translating through copies. Handle same-sized
9559 reads from SSA names by returning the plain SSA name.
9560 (eliminate_dom_walker::eliminate_stmt): Properly handle
9561 non-size precision stores in redundant store elimination.
9562
9563 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9564
9565 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9566 (ggc_collect): Dump later to not interfere with release_page dump.
9567 (ggc_trim): New function.
9568 * ggc-none.c (ggc_trim): New.
9569 * ggc.h (ggc_trim): Declare.
9570
9571 2019-10-11 Richard Biener <rguenther@suse.de>
9572
9573 PR tree-optimization/92066
9574 PR tree-optimization/92046
9575 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9576 Fix bogus cost model check.
9577
9578 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9579
9580 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9581 (LANG_HOOKS_DECLS): Add it.
9582 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9583 update comment for omp_is_optional_argument.
9584 * omp-general.c (omp_is_allocatable_or_ptr): New.
9585 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9586 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9587 Fortran's optional arguments and allocatable/pointer scalars
9588 with use_device_addr.
9589
9590 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9591
9592 PR target/77918
9593 * config/s390/2827.md: Add new opcodes.
9594 * config/s390/2964.md: Likewise.
9595 * config/s390/3906.md: Likewise.
9596 * config/s390/8561.md: Likewise.
9597 * config/s390/s390-builtins.def (s390_vfchesb): Use
9598 the new vec_cmpgev4sf_quiet_nocc.
9599 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9600 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9601 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9602 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9603 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9604 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9605 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9606 * config/s390/s390-modes.def (CCSFPS): New mode.
9607 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9608 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9609 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9610 (s390_expand_vec_compare): Use non-signaling patterns where
9611 necessary.
9612 (s390_reverse_condition): Support CCSFPS.
9613 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9614 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9615 (asm_fcmp_op): Likewise.
9616 (*smaxv2df3_vx): Use pattern for quiet comparison.
9617 (*sminv2df3_vx): Likewise.
9618 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9619 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9620 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9621 (vec_cmplt<mode>_quiet_nocc): New expander.
9622 (vec_cmpge<mode>_quiet_nocc): New pattern.
9623 (vec_cmple<mode>_quiet_nocc): New expander.
9624 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9625 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9626 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9627 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9628 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9629 (vec_cmpungt<mode>): New expander.
9630 (vec_cmpunge<mode>): Likewise.
9631 (vec_cmpuneq<mode>): Use quiet patterns.
9632 (vec_cmpltgt<mode>): Allow only on z14+.
9633 (vec_cmpordered<mode>): Use quiet patterns.
9634 (vec_cmpunordered<mode>): Likewise.
9635 (VEC_CMP_EXPAND): Add ungt and unge.
9636
9637 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9638
9639 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9640 parameter.
9641 * lto-streamer-out.c: Include tree-dfa.h.
9642 (output_cfg): Do not use cfun.
9643 (lto_prepare_function_for_streaming): New.
9644 (output_function): Do not push cfun; do not initialize loop optimizer.
9645 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9646 * passes.c (ipa_write_summaries): Use it.
9647 (ipa_write_optimization_summaries): Do not modify bodies.
9648 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9649 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9650 * tree-ssa-dse.c (pass_dse::execute): Update use of
9651 renumber_gimple_stmt_uids.
9652 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9653
9654 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9655
9656 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9657 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9658
9659 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9660
9661 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9662 macros.
9663 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9664 Also define DFP macros for these conditions.
9665 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9666 DEC128_SUBNORMAL_MIN): Do not define.
9667 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9668 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9669
9670 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9671 Sandra Loosemore <sandra@codesourcery.com>
9672
9673 PR middle-end/26241
9674 * doc/lto.texi (IPA): Reference to the IPA passes.
9675 * doc/passes.texi (Pass manager): Add node IPA passes and
9676 description for each IPA pass.
9677
9678 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9679
9680 * ipa-reference.c: Do not include splay-tree.h
9681 (reference_vars_to_consider): Turn to hash map.
9682 (get_static_name, ipa_init, analyze_function, propagate,
9683 stream_out_bitmap, ipa_reference_write_optimization_summary,
9684 ipa_reference_write_optimization_summary): Update.
9685
9686 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9687
9688 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9689
9690 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9691
9692 * config/darwin.c: Lookup Objective C metadata and force indirection
9693 for IVAR refs.
9694
9695 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9696
9697 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9698 addresses.
9699 (mem_operand_gpr): Add check for prefixed addresses.
9700 (mem_operand_ds_form): Add check for prefixed addresses.
9701 (rs6000_legitimate_offset_address_p): If we support prefixed
9702 addresses, check for a 34-bit offset instead of 16-bit.
9703 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9704 Do not allow load/store with update if the address is prefixed.
9705 (rs6000_mode_dependent_address): If we support prefixed
9706 addresses, check for a 34-bit offset instead of 16-bit.
9707
9708 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9709
9710 PR target/77918
9711 * config/s390/vector.md (vcond_comparison_operator): New
9712 predicate.
9713 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9714
9715 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9716
9717 PR 87488
9718 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9719 -D.
9720 * configure.ac (--with-documentation-root-url): New option.
9721 * configure: Regenerate.
9722 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9723 option URL, add it as a new string field of the diagnostic option.
9724 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9725 (print_option_information): If get_option_url is non-NULL, call
9726 it, and if the result is non-NULL, potentially emit an escape
9727 sequence to markup the option text with the resulting URL.
9728 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9729 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9730 example of JSON output.
9731 * opts-diagnostic.h (get_option_url): New decl.
9732 * opts.c (get_option_url): New function.
9733 * toplev.c (general_init): Initialize the get_option_url callback.
9734
9735 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9736
9737 PR 87488
9738 * common.opt (fdiagnostics-urls=): New option.
9739 (diagnostic-url.h): Add SourceInclude.
9740 (diagnostic_url_rule): New enum.
9741 * diagnostic-color.c: Include "diagnostic-url.h".
9742 (diagnostic_urls_enabled_p): New function.
9743 * diagnostic-url.h: New file.
9744 * diagnostic.c: Include "diagnostic-url.h".
9745 (diagnostic_urls_init): New function.
9746 * diagnostic.h (diagnostic_urls_init): New decl.
9747 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9748 -fdiagnostics-urls to the list.
9749 (-fdiagnostics-urls): New option.
9750 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9751 (driver::global_initializations): Call diagnostic_urls_init.
9752 * opts-global.c (init_options_once): Likewise.
9753 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9754 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9755 show_urls.
9756 (pp_begin_url): New function.
9757 (pp_end_url): New function.
9758 (selftest::test_urls): New selftest.
9759 (selftest::pretty_print_c_tests): Call it.
9760 * pretty-print.h (pretty_printer::show_urls): New field.
9761 (pp_begin_url): New decl.
9762 (pp_end_url): New decl.
9763
9764 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9765
9766 PR target/92022
9767 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9768
9769 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9770
9771 PR target/88630
9772 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9773 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9774 also for TARGET_FPU_SH4_300.
9775 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9776 TARGET_SH4_300.
9777 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9778 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9779 (*negsf2_i): Split into ...
9780 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9781 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9782 (**abssf2_i): Split into ...
9783 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9784 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9785 (*negdf2_i): Split into ...
9786 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9787 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9788 (**abssf2_i): Split into ...
9789 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9790
9791 2019-10-10 Richard Biener <rguenther@suse.de>
9792
9793 PR middle-end/92046
9794 * opts.c (finish_options): Do not influence global --params
9795 from options that are adjustable per function.
9796 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9797 Apply --param adjustment based on active cost-model.
9798 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9799 further store-sinking when vectorization or if-conversion
9800 are not enabled.
9801
9802 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9803
9804 PR middle-end/92037
9805 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9806 rather than ggc_alloc_cleared to alloc symbol table.
9807 * toplev.c (general_init): Likewise.
9808 * cgraph.h (symbol_table): Explicitly construct every field.
9809
9810 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9811
9812 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9813 (PF_Z15): ... this.
9814 * config.gcc: Add z15 as option for --with-arch and --with-tune
9815 configure switches.
9816 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9817 error reporting for unsupported builtins.
9818 * config/s390/s390-opts.h (enum processor_type): Rename
9819 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9820 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9821 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9822 Likewise.
9823 * config/s390/s390-builtins.def: Likewise.
9824 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9825 (s390_expand_builtin): Add missing check for unsupported builtins.
9826 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9827 (s390_rtx_costs): Likewise.
9828 (s390_get_sched_attrmask): Rename arch13 to z15.
9829 (s390_get_unit_mask): Likewise.
9830 (s390_is_fpd): Likewise.
9831 (s390_is_fxd): Likewise.
9832 * config/s390/s390.h (enum processor_flags): Likewise.
9833 * config/s390/s390.md: Likewise.
9834 * config/s390/vector.md: Likewise.
9835 * config/s390/vx-builtins.md: Likewise.
9836 * config/s390/s390.opt: Add z15 to processor_type value.
9837
9838 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9839
9840 PR target/91035
9841 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9842 prototype.
9843 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9844 ("split_stack_data", "split_stack_call")
9845 ("split_stack_call_<mode>", "split_stack_cond_call")
9846 ("split_stack_cond_call_<mode>"): Remove.
9847 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9848 insn definition.
9849 * config/s390/s390.c (s390_output_split_stack_data): New function.
9850 (s390_expand_split_stack_prologue): Use the merged expander.
9851
9852 2019-10-09 Martin Sebor <msebor@redhat.com>
9853
9854 PR tree-optimization/90879
9855 * builtins.c (check_access): Avoid using maxbound when null.
9856 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9857 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9858 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9859 conditional.
9860 (get_range_strlen): Overwrite initial maxbound when non-null.
9861 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9862 changes.
9863 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9864 (used_only_for_zero_equality): New function.
9865 (handle_builtin_memcmp): Call it.
9866 (determine_min_objsize): Return an integer instead of tree.
9867 (get_len_or_size, strxcmp_eqz_result): New functions.
9868 (maybe_warn_pointless_strcmp): New function.
9869 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9870 between a longer string and a smaller array.
9871 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9872
9873 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9874
9875 * config/darwin.c (darwin_override_options): Make the check for
9876 Objective-C ABI version more specific for 64bit code.
9877
9878 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9879
9880 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9881 indicate that the new symbol is an indirection.
9882 (machopic_indirect_call_target): Likewise.
9883 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9884 (MACHO_SYMBOL_INDIRECTION_P): New.
9885 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9886
9887 2019-10-08 Jason Merrill <jason@redhat.com>
9888
9889 * doc/invoke.texi: Document -fconcepts-ts.
9890
9891 2019-10-09 Richard Biener <rguenther@suse.de>
9892
9893 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9894 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9895
9896 2019-10-08 Richard Biener <rguenther@suse.de>
9897
9898 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9899 (_stmt_vec_info::force_single_cycle): Likewise.
9900 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9901 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9902 * tree-vect-loop.c (vectorizable_reduction): Set
9903 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9904 (vect_transform_reduction): Use them to remove redundant code.
9905 (vect_transform_cycle_phi): Likewise.
9906
9907 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9908
9909 PR tree-optimization/90836
9910 * match.pd (popcount): New pattern.
9911
9912 2019-10-08 Martin Sebor <msebor@redhat.com>
9913
9914 PR middle-end/92026
9915 PR middle-end/92014
9916 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9917 again once nbytes has been set. Set the access size when not yet set.
9918
9919 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9920
9921 * config/darwin.c (machopic_select_section): Remove dead code for
9922 old Objective-C section selection method, replace with unreachable.
9923
9924 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9925
9926 * config/darwin.c (machopic_indirect_data_reference): Check for
9927 required indirections before making direct access to defined
9928 values.
9929 (machopic_output_indirection): Place the indirected pointes for
9930 required indirections into the non-lazy symbol pointers section.
9931 (darwin_encode_section_info):
9932 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9933 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9934
9935 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9936
9937 PR target/91994
9938 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9939 instead of ALL_SSE_REG to check if function call preserves some
9940 256-bit SSE registers.
9941
9942 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9943
9944 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9945 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9946 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9947
9948 2019-10-08 Richard Biener <rguenther@suse.de>
9949
9950 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9951 (_stmt_vec_info::is_reduc_info): Add.
9952 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9953 (vectorizable_condition): Remove.
9954 (vectorizable_shift): Likewise.
9955 (vectorizable_reduction): Adjust.
9956 (info_for_reduction): New.
9957 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9958 (vect_analyze_scalar_cycles_1): ... here.
9959 (vect_analyze_loop_operations): Adjust.
9960 (needs_fold_left_reduction_p): Simplify for single caller.
9961 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9962 for nested cycles not part of double reductions.
9963 (vect_model_reduction_cost): Pass in the reduction type.
9964 (info_for_reduction): New function.
9965 (vect_create_epilog_for_reduction): Use it, access reduction
9966 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9967 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9968 (vectorize_fold_left_reduction): Remove pointless assert.
9969 (vectorizable_reduction): Analyze the full reduction when
9970 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9971 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9972 stmt code-generation to vectorizable_* in most cases. Verify
9973 code-generation only for cases handled by
9974 vect_transform_reductuon.
9975 (vect_transform_reduction): Use info_for_reduction to get at
9976 reduction meta. Simplify.
9977 (vect_transform_cycle_phi): Likewise.
9978 (vectorizable_live_operation): Likewise.
9979 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9980 at the PHI node for STMT_VINFO_REDUC_TYPE.
9981 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9982 longer necessary code.
9983 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9984 (vectorizable_condition): Likewise. Get at reduction related
9985 info via info_for_reduction.
9986 (vect_analyze_stmt): Adjust.
9987 (vect_transform_stmt): Likewise.
9988 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9989 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9990
9991 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9992
9993 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9994 -fno-fp-int-builtin-inexact default for C2X.
9995
9996 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9997 Richard Biener <rguenther@suse.de>
9998
9999 PR tree-optimization/91532
10000 * tree-if-conv.c: Include tree-ssa-dse.h.
10001 (ifcvt_local_dce): Change param from bb to loop,
10002 and call dse_classify_store.
10003 (tree_if_conversion): Pass loop instead of loop->header as arg
10004 to ifcvt_local_dce.
10005 * tree-ssa-dse.c: Include tree-ssa-dse.h.
10006 (delete_dead_or_redundant_assignment): Remove static qualifier from
10007 declaration, and add prototype in tree-ssa-dse.h.
10008 (dse_store_status): Move to tree-ssa-dse.h.
10009 (dse_classify_store): Remove static qualifier and add new tree param
10010 stop_at_vuse, and add prototype in tree-ssa-dse.h.
10011 * tree-ssa-dse.h: New header.
10012
10013 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
10014
10015 * config/darwin.c (machopic_output_indirection): Don't put
10016 hidden symbol indirections into the .data section, use the
10017 non-lazy symbol pointers section as normal.
10018 (darwin_encode_section_info): Record if a symbol is hidden.
10019 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
10020 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
10021
10022 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
10023
10024 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
10025 predicates instead of accessing bits directly.
10026 (machopic_indirect_call_target): Likewise.
10027 (machopic_output_indirection): Likewise.
10028 (darwin_encode_section_info): Improve description. Use renamed
10029 symbol flags. Use predicate macros for variables and functions.
10030 * config/darwin.h:
10031 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
10032 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
10033 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
10034 (MACHO_SYMBOL_VARIABLE_P): New.
10035 (MACHO_SYMBOL_DEFINED_P):New.
10036 (MACHO_SYMBOL_STATIC_P): New.
10037 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
10038 (SYMBOL_FLAG_SUBT_DEP): New.
10039 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
10040
10041 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10042
10043 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
10044 (msp430_expand_epilogue): Likewise.
10045 * config/msp430/predicates.md: Likewise.
10046 * config/msp430/msp430.md: Likewise.
10047 Replace blocks of 8 spaces with tabs.
10048
10049 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10050
10051 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
10052 * config/msp430/msp430.c (msp430_split_addsi): New.
10053 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
10054 a block of C code for splitting addsi.
10055
10056 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
10057
10058 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
10059 ix86_expand_rounddf_32): Reorder functions.
10060 * config/i386/i386-protos.h: Update.
10061
10062 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10063
10064 * config.in: Regenerate.
10065 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
10066 Add new "Yx" constraint.
10067 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
10068 function.
10069 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
10070 prototype.
10071 * config/msp430/msp430.c (msp430_option_override): Allow the lower
10072 code/data region to be selected in the small memory model.
10073 (msp430_section_attr): Don't warn if the "section" and "lower"
10074 attributes are used together.
10075 (msp430_handle_generic_attribute): Likewise.
10076 (msp430_var_in_low_mem): New function.
10077 (TARGET_ENCODE_SECTION_INFO): Define.
10078 (msp430_encode_section_info): New function.
10079 (gen_prefix): Return early in the small memory model.
10080 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
10081 ".lower" prefix if -m{code,data}-region=lower have been passed.
10082 (msp430_output_aligned_decl_common): Emit common symbols when
10083 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
10084 set.
10085 (TARGET_ASM_FILE_END): Define.
10086 (msp430_file_end): New function.
10087 (msp430_do_not_relax_short_jumps): Allow relaxation when
10088 function will be in the lower region.
10089 (msp430_op_not_in_high_mem): New function.
10090 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
10091 the 'X' operand selector.
10092 Clarify comment for 'x' operand selector.
10093 * config/msp430/msp430.h (LINK_SPEC): Propagate
10094 -m{code,data}-region to the linker via spec function
10095 msp430_propagate_region_opt.
10096 (msp430_propagate_region_opt): New prototype.
10097 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
10098 (SYMBOL_FLAG_LOW_MEM): Define.
10099 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
10100 selector.
10101 (zero_extendqihi2): Fix operand number used by "%X" selector.
10102 (zero_extendqisi2): Likewise.
10103 (zero_extendhisi2): Likewise.
10104 (movqi): Use "Yx" constraint in place of "%X" operand selector.
10105 (movhi): Likewise.
10106 (addqi3): Likewise.
10107 (addhi3): Likewise.
10108 (addsi3): Likewise.
10109 (addhi3_cy): Likewise.
10110 (addchi4_cy): Likewise.
10111 (subqi3): Likewise.
10112 (subhi3): Likewise.
10113 (subsi3): Likewise.
10114 (bic<mode>3): Likewise.
10115 (and<mode>3): Likewise.
10116 (ior<mode>3): Likewise.
10117 (xor<mode>3): Likewise.
10118 (slli_1): Add missing "%X" operand selector.
10119 (slll_1): Likewise.
10120 (slll_2): Likewise.
10121 (srai_1): Likewise.
10122 (sral_1): Likewise.
10123 (sral_2): Likewise.
10124 (srli_1): Likewise.
10125 (srll_1): Likewise.
10126 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
10127 selector.
10128 (cbranchhi4_real): Likewise.
10129 (cbranchqi4_reversed): Likewise.
10130 (cbranchhi4_reversed): Likewise.
10131 (*bitbranch<mode>4): Likewise.
10132 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
10133 * config/msp430/msp430.opt (mcode-region=): Set default to
10134 MSP430_REGION_LOWER. Improve docstring.
10135 (mdata-region=): Likewise.
10136 (muse-lower-region-prefix): New option.
10137 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
10138 mdata-region=none multilib.
10139 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
10140 mdata-region=none multilib.
10141 MULTILIB_EXCEPTIONS: Remove.
10142 MULTILIB_REQUIRED: Define.
10143 * configure: Regenerate.
10144 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
10145 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
10146 * doc/extend.texi: Clarify comment for {upper,lower,either}
10147 function attributes.
10148 Add separate description for "lower" variable attribute.
10149
10150 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10151
10152 PR target/77918
10153 * optabs-tree.c (vcond_icode_p): New function.
10154 (vcond_eq_icode_p): Likewise.
10155 (expand_vec_cond_expr_p): Use vcond_icode_p and
10156 vcond_eq_icode_p.
10157 * optabs.c (can_vcond_compare_p): New function.
10158 * optabs.h (can_vcond_compare_p): Likewise.
10159
10160 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10161
10162 PR target/77918
10163 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
10164 caller passes a non-trapping condition.
10165 (is_gimple_condexpr): Allow trapping conditions.
10166 (is_gimple_condexpr_1): New helper function.
10167 (is_gimple_condexpr_for_cond): New function, acts like old
10168 is_gimple_condexpr.
10169 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
10170 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
10171 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
10172 * gimplify.c (gimplify_cond_expr): Use
10173 is_gimple_condexpr_for_cond.
10174 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
10175 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
10176 VEC_COND_EXPR.
10177 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
10178 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
10179 is_gimple_condexpr_for_cond, remove pointless tmp check
10180 (forward_propagate_into_cond): Remove pointless tmp check.
10181
10182 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10183
10184 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
10185 match that of other gsi_next_* functions. Adjust the comment.
10186 (gsi_start_nonvirtual_phis): New function.
10187 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
10188 gsi_next_nonvirtual_phi accordingly. (No functional change.)
10189
10190 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10191
10192 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
10193 setjmp situation here. Fix a verb's ending: "the exact variables or
10194 elements for which there are warnings depends" -> "... depend".
10195
10196 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10197
10198 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
10199
10200 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10201
10202 * ipa-prop.c (ipa_vr::nonzero_p): New.
10203 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
10204 non-zero range.
10205 * ipa-prop.h (class ipa_vr): Add nonzero_p.
10206 * tree-vrp.c (range_has_numeric_bounds_p): New.
10207 (range_int_cst_p): Use range_has_numeric_bounds_p.
10208 (get_range_op_handler): New.
10209 (supported_types_p): New.
10210 (defined_ranges_p): New.
10211 (drop_undefines_to_varying): New.
10212 (range_fold_binary_symbolics_p): New.
10213 (range_fold_unary_symbolics_p): New.
10214 (range_fold_unary_expr): Extract out into above functions.
10215 (range_fold_binary_expr): Same.
10216 (value_range_base::normalize_addresses): New.
10217 (value_range_base::normalize_symbolics): Normalize addresses.
10218 * tree-vrp.h (class value_range_base): Add normalize_addresses.
10219
10220 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10221
10222 * tree-vrp.c (value_range_base::singleton_p): Use
10223 value_range_base::num_pairs instead of vrp_val_is* to check
10224 if a range has one sub-range.
10225
10226 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10227
10228 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
10229 DEF is not a true earlyclobber but is tied to a specific input
10230 operand, and so is effectively earlyclobber wrt inputs that have
10231 different values.
10232 (make_early_clobber_and_input_conflicts): Pass this case to the above.
10233
10234 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10235
10236 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
10237 (pod_mode): Mark operators likewise.
10238 (scalar_int_mode): Mark non-default constructors and
10239 operators with CONSTEXPR.
10240 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
10241 (fixed_size_mode): Likewise.
10242
10243 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10244
10245 PR target/91994
10246 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
10247 and wrap the unspec_volatile in a parallel.
10248 (*avx_vzeroupper): New define_insn. Use a match_parallel around
10249 the unspec_volatile.
10250 * config/i386/predicates.md (vzeroupper_pattern): Expect the
10251 unspec_volatile to be wrapped in a parallel.
10252 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
10253 (ix86_add_reg_usage_to_vzerouppers): New functions.
10254 (rest_of_handle_insert_vzeroupper): Use them to add register
10255 usage information to the vzeroupper instructions.
10256
10257 2019-10-07 Richard Biener <rguenther@suse.de>
10258
10259 PR tree-optimization/91975
10260 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
10261 handle invariants.
10262
10263 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
10264
10265 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
10266 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
10267
10268 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
10269
10270 * config/darwin.c (darwin_override_options): Adjust objective-c
10271 ABI version error messages to avoid punctuation and contracted
10272 negations.
10273
10274 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
10275
10276 * ipa-inline.c: Fix type; compute size rather than self_size
10277 for size of caller function.
10278
10279 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
10280
10281 PR target/59888
10282 * config/darwin.c (darwin_rodata_section): Add relocation flag,
10283 choose const_data section for constants with relocations.
10284 (machopic_select_section): Pass relocation flag to
10285 darwin_rodata_section ().
10286
10287 2019-10-05 Jakub Jelinek <jakub@redhat.com>
10288
10289 PR tree-optimization/91734
10290 * generic-match-head.c: Include fold-const-call.h.
10291 * match.pd (sqrt(x) cmp c): Check the boundary value and
10292 in case inexact computation of c*c affects comparison of the boundary,
10293 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
10294 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
10295 for -frounding-math. For c2, try the next smaller or larger floating
10296 point constant depending on comparison code and if it has the same
10297 sqrt as c2, use it instead of c2.
10298
10299 2019-10-04 Martin Sebor <msebor@redhat.com>
10300
10301 PR middle-end/91977
10302 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
10303 MEM_REF right operand. Avoid failing for MEM_REF assignments from
10304 uninitialized objects.
10305
10306 2019-10-04 Martin Sebor <msebor@redhat.com>
10307
10308 * builtins.c (compute_objsize): Add an argument.
10309 * tree-object-size.c (addr_object_size): Same.
10310 (compute_builtin_object_size): Same.
10311 * tree-object-size.h (compute_builtin_object): Same.
10312
10313 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
10314
10315 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
10316
10317 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
10318
10319 * match.pd (sinh (x) / cosh (x)): New simplification rule.
10320
10321 2019-10-04 Martin Jambor <mjambor@suse.cz>
10322
10323 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
10324 fntype when switching to calling memcpy instead of memset.
10325
10326 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10327
10328 * hash-table.h (hash_table::empty_slow): Don't assign
10329 size_t values to int variables.
10330
10331 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10332
10333 * expr.c (convert_mode_scalar): Remove shadowing local var.
10334 (emit_block_move): Rename local vars.
10335 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
10336 (emit_push_insn): Rename local vars.
10337 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
10338 shadowing local vars.
10339 (store_constructor): Remove shadowing local vars. Rename local var.
10340 (store_field, expand_cond_expr_using_cmove,
10341 expand_expr_real_2): Remove shadowing local vars.
10342 (expand_expr_real_1,
10343 do_store_flag): Remove shadowing local vars. Rename local vars.
10344
10345 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10346
10347 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
10348
10349 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10350
10351 * genmatch.c (commutate): Rename local var.
10352 (lower_cond): Reuse local var.
10353 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
10354 dt_operand::gen, dt_operand::gen_gimple_expr,
10355 dt_simplify::gen): Add a param. Rename generated vars.
10356 (decision_tree::insert_operand,
10357 (capture_info::walk_match, capture_info::walk_result,
10358 capture_info::walk_c_expr): Rename local vars.
10359 (expr::gen_transform): Rename generated vars.
10360 Use snprintf. Rename local vars.
10361 (capture::gen_transform, dt_operand::get_name,
10362 dt_operand::gen_opname): Rename generated vars.
10363 (write_predicate): Adjust call to gen_kids.
10364 (parser::get_internal_capture_id): Rename generated vars.
10365 (parser::parse_expr): Rename local vars.
10366 (parser::parse_if): Remove local var.
10367 (parser::parse_pattern, add_operator): Rename local vars.
10368
10369 2019-10-04 Joseph Myers <joseph@codesourcery.com>
10370
10371 * builtins.def (DEF_C2X_BUILTIN): New macro.
10372 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
10373 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
10374 (strndup): Use DEF_C2X_BUILTIN.
10375 * coretypes.h (enum function_class): Add function_c2x_misc.
10376
10377 2019-10-04 Maya Rashish <coypu@sdf.org>
10378
10379 * ira-color.c (update_costs_from_allocno): Call
10380 ira_init_register_move_cost_if_necessary.
10381
10382 2019-10-04 Jeff Law <law@redhat.com>
10383
10384 * config/h8300/h8300.md (cpymemsi): Disable.
10385 (movmd, movmd_internal_<mode>, movstr, movsd):
10386 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
10387 (movmd splitter, movsd splitter): Likewise.
10388
10389 * range-op.cc (range_tests): Avoid two tests when ints and
10390 shorts are the same size.
10391
10392 2019-10-04 Richard Biener <rguenther@suse.de>
10393
10394 PR lto/91968
10395 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
10396 BLOCK_VARS.
10397
10398 2019-10-04 Richard Biener <rguenther@suse.de>
10399
10400 PR tree-optimization/91982
10401 * tree-vect-loop.c (vectorizable_live_operation): Also guard
10402 against EXTRACT_LAST_REDUCTION.
10403 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
10404
10405 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
10406
10407 * range-op.o (value_range_from_overflowed_bounds): Rename from
10408 adjust_overflow_bound.
10409 (value_range_with_overflow): Rename from
10410 create_range_with_overflow.
10411 (create_possibly_reversed_range): Adjusted for above renames.
10412 (operator_*::wi_fold): Same.
10413 (cross_product_operator::wi_cross_productor): Same.
10414
10415 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10416
10417 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
10418 -Wshadow=compatible-local): Fix description.
10419 Add an example where -Wshadow=compatible-local does not
10420 warn.
10421
10422 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
10423
10424 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
10425
10426 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
10427 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
10428
10429 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10430
10431 * expr.c (emit_block_move_hints): Slightly cleaner fix to
10432 can_move_by_pieces issue.
10433
10434 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
10435
10436 PR target/87243
10437 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
10438 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
10439 is available and the user has not set one on the command line.
10440
10441 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10442
10443 PR target/91769
10444 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
10445 instead of REGNO equality check on addr.reg.
10446
10447 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
10448
10449 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
10450 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
10451 * doc/invoke.texi (inline-heuristics-hint-percent,
10452 inline-heuristics-hint-percent-O2): Document.
10453 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
10454 hint attribute.
10455 (can_inline_edge_by_limits_p): Use it.
10456
10457 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
10458
10459 * config/arm/arm.c (arm_print_value): Use real_to_decimal
10460 to print CONST_DOUBLEs.
10461
10462 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
10463
10464 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
10465 * ipa-prop.c (ipcp_free_transformation_sum): New function.
10466 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
10467
10468 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
10469
10470 * Makefile.in (OBJS): Add range.o and range-op.o.
10471 Remove wide-int-range.o.
10472 * function-tests.c (test_ranges): New.
10473 (function_tests_c_tests): Call test_ranges.
10474 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
10475 range_fold_unary_expr instead of extract_range_from_unary_expr.
10476 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10477 * range-op.cc: New file.
10478 * range-op.h: New file.
10479 * range.cc: New file.
10480 * range.h: New file.
10481 * selftest.h (range_tests): New prototype.
10482 * ssa.h: Include range.h.
10483 * tree-vrp.c (value_range_base::value_range_base): New
10484 constructors.
10485 (value_range_base::singleton_p): Do not call
10486 ranges_from_anti_range until sure we will need to.
10487 (value_range_base::type): Rename gcc_assert to
10488 gcc_checking_assert.
10489 (vrp_val_is_max): New argument.
10490 (vrp_val_is_min): Same.
10491 (wide_int_range_set_zero_nonzero_bits): Move from
10492 wide-int-range.cc.
10493 (extract_range_into_wide_ints): Remove.
10494 (extract_range_from_multiplicative_op): Remove.
10495 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10496 from extract_range_from_binary_expr.
10497 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10498 from extract_range_from_binary_expr.
10499 (extract_range_from_binary_expr): Remove.
10500 (normalize_for_range_ops): New.
10501 (range_fold_binary_expr): New.
10502 (range_fold_unary_expr): New.
10503 (value_range_base::num_pairs): New.
10504 (value_range_base::lower_bound): New.
10505 (value_range_base::upper_bound): New.
10506 (value_range_base::upper_bound): New.
10507 (value_range_base::contains_p): New.
10508 (value_range_base::invert): New.
10509 (value_range_base::union_): New.
10510 (value_range_base::intersect): New.
10511 (range_compatible_p): New.
10512 (value_range_base::operator==): New.
10513 (determine_value_range_1): Call range_fold_*expr instead of
10514 extract_range_from_*expr.
10515 * tree-vrp.h (class value_range_base): Add new constructors.
10516 Add methods for union_, intersect, operator==, contains_p,
10517 num_pairs, lower_bound, upper_bound, invert.
10518 (vrp_val_is_min): Add handle_pointers argument.
10519 (vrp_val_is_max): Same.
10520 (extract_range_from_unary_expr): Remove.
10521 (extract_range_from_binary_expr): Remove.
10522 (range_fold_unary_expr): New.
10523 (range_fold_binary_expr): New.
10524 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10525 range_fold_binary_expr instead of extract_range_from_binary_expr.
10526 (vr_values::extract_range_basic): Same.
10527 (vr_values::extract_range_from_unary_expr): Call
10528 range_fold_unary_expr instead of extract_range_from_unary_expr.
10529 * wide-int-range.cc: Remove.
10530 * wide-int-range.h: Remove.
10531
10532 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
10533
10534 * config/rs6000/rs6000.c (mem_operand_gpr): Use
10535 SIGNED_16BIT_OFFSET_EXTRA_P macro.
10536 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10537 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10538 macro.
10539
10540 2019-10-02 Joseph Myers <joseph@codesourcery.com>
10541
10542 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10543 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10544 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10545 * glimits.h: Likewise.
10546
10547 2019-10-03 Jakub Jelinek <jakub@redhat.com>
10548
10549 PR rtl-optimization/91976
10550 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10551 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
10552 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
10553
10554 2019-10-02 Martin Sebor <msebor@redhat.com>
10555
10556 PR tree-optimization/80936
10557 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10558
10559 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10560
10561 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10562 instead of reg_class_contents[ALL_REGS].
10563
10564 2019-09-30 Jason Merrill <jason@redhat.com>
10565
10566 Add some hash_map_safe_* functions like vec_safe_*.
10567 * hash-map.h (default_hash_map_size): New variable.
10568 (create_ggc): Use it as default argument.
10569 (hash_map_maybe_create, hash_map_safe_get)
10570 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10571
10572 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10573
10574 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10575 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10576 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10577 (can_inline_edge_by_limits_p): Use it.
10578 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10579 (want_inline_small_function_p): Use O2 bounds.
10580 (edge_badness): LIkewise.
10581 * opts.c (default_options): Add OPT_finline_functions.
10582 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10583 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10584 New parameters.
10585 * doc/invoke.texi (-finline-functions): Update documentation.
10586 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10587 inline-min-speedup-O2): Document.
10588 (early-inlining-insns-O2): Simplify docs.
10589
10590 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10591
10592 PR rtl-optimization/87047
10593 * ifcvt.c (average_cost): New static function. Use it...
10594 (noce_process_if_block): ... here.
10595
10596 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10597
10598 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10599 * config/rs6000/rs6000-string.c (expand_block_move): Add
10600 might_overlap parm.
10601 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10602 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10603
10604 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10605
10606 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10607 (expand_builtin_memcpy): Use might_overlap parm.
10608 (expand_builtin_mempcpy_args): Use might_overlap parm.
10609 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10610 (expand_builtin_memory_copy_args): Add might_overlap parm.
10611 * expr.c (emit_block_move_via_cpymem): Rename to
10612 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10613 or movmem optab as appropriate.
10614 (emit_block_move_hints): Add might_overlap parm, do the right
10615 thing for might_overlap==true.
10616 * expr.h (emit_block_move_hints): Update prototype.
10617
10618 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10619
10620 * tree-eh.h (unsplit_eh_edges): Declare.
10621 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10622 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10623 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10624 (struct store_immediate_info): Add lp_nr field.
10625 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10626 initialize lp_nr with it.
10627 (struct merged_store_group): Add lp_nr and only_constants fields.
10628 (merged_store_group::merged_store_group): Initialize them.
10629 (merged_store_group::can_be_merged_into): Deal with them.
10630 (pass_store_merging): Rename terminate_and_release_chain into
10631 terminate_and_process_chain.
10632 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10633 renaming and remove useless assertions.
10634 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10635 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10636 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10637 instead of always recomputing it and compare lp_nr.
10638 (imm_store_chain_info::output_merged_store): If the group is in an
10639 active EH region, register new stores if they can throw. Moreover,
10640 if the insertion has created new basic blocks, adjust the PHI nodes
10641 of the post landing pad.
10642 (imm_store_chain_info::output_merged_stores): If the original stores
10643 are in an active EH region, deregister them.
10644 (lhs_valid_for_store_merging_p): Prettify.
10645 (adjust_bit_pos): New function extracted from...
10646 (mem_valid_for_store_merging): ...here. Use it for the base address
10647 and also for the offset if it is the addition of a constant.
10648 (lp_nr_for_store): New function.
10649 (pass_store_merging::process_store): Change return type to bool.
10650 Call lp_nr_for_store to initialize the store info. Propagate the
10651 return status of various called functions to the return value.
10652 (store_valid_for_store_merging_p): New predicate.
10653 (enum basic_block_status): New enumeration.
10654 (get_status_for_store_merging): New function.
10655 (pass_store_merging::execute): If the function can throw and catch
10656 non-call exceptions, unsplit the EH edges on entry and clean up the
10657 CFG on exit if something changed. Call get_status_for_store_merging
10658 for every basic block and keep the chains open across basic blocks
10659 when possible. Terminate and process open chains at the end, if any.
10660
10661 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10662
10663 * reginfo.c (globalize_reg): Fix shadowed variable in
10664 function_abis walk.
10665
10666 2019-10-02 Martin Jambor <mjambor@suse.cz>
10667
10668 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10669 do not compute some stuff when set.
10670 (cgraph_node::create_edge): Likewise.
10671 (cgraph_node::create_indirect_edge): Renamed last parameter to
10672 coning_p and flipped its meaning, don't even calculate
10673 inline_failed when set.
10674 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10675 (symbol_table::::create_edge): Likewise.
10676 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10677 the default value.
10678 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10679 call graph edge creating functions.
10680
10681 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10682
10683 PR c++/91222
10684 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10685 namespace types.
10686
10687 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10688
10689 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10690
10691 2019-10-02 Richard Biener <rguenther@suse.de>
10692
10693 * tree-vectorizer.h (vect_transform_reduction): Declare.
10694 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10695 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10696 stmt transform to ...
10697 (vect_transform_reduction): ... this.
10698
10699 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10700
10701 * omp-low.c (lower_omp_target): Dereference optional argument
10702 to work with the right pointer.
10703
10704 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10705
10706 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10707 false.
10708 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10709 * langhooks.h (omp_is_optional_argument): New hook.
10710 * omp-general.c (omp_is_optional_argument): New.
10711 * omp-general.h (omp_is_optional_argument): New declaration.
10712 * omp-low.c (lower_omp_target): Create temporary for received value
10713 and take the address for new_var if the original variable was a
10714 DECL_BY_REFERENCE. Use size of referenced object when a
10715 pass-by-reference optional argument used as argument to firstprivate.
10716
10717 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10718
10719 PR tree-optimization/91940
10720 * tree-vect-patterns.c: Include tree-vector-builder.h and
10721 vec-perm-indices.h.
10722 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10723 unpromoting the argument back to uint16_t, or by converting into a
10724 rotate, or into shifts plus ior.
10725
10726 2019-10-02 Richard Biener <rguenther@suse.de>
10727
10728 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10729 New.
10730 (vect_transform_cycle_phi): Declare.
10731 * tree-vect-stmts.c (vect_transform_stmt): Call
10732 vect_transform_cycle_phi.
10733 * tree-vect-loop.c (vectorizable_reduction): Split out
10734 PHI transformation stage to ...
10735 (vect_transform_cycle_phi): ... here.
10736
10737 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10738
10739 PR middle-end/91957
10740 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10741 eliminable registers.
10742 (make_hard_regno_live): Likewise, and don't make them live.
10743
10744 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10745
10746 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10747 Call pp_emit_prefix.
10748 (layout::print_source_line): Likewise.
10749 (layout::start_annotation_line): Likewise.
10750 (diagnostic_show_locus): Remove call to temporarily clear the
10751 prefix.
10752 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10753 interaction of pp_set_prefix with rulers and fix-it hints.
10754 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10755 prefix when calling diagnostic_show_locus, rather than destroying
10756 it afterwards.
10757 (print_parseable_fixits): Temporarily clear prefix.
10758 * pretty-print.c (pp_format): Save and restore line_length, rather
10759 than assuming it is zero.
10760 (pp_output_formatted_text): Remove assertion that line_length is
10761 zero.
10762
10763 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10764
10765 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10766 Rename to ...
10767 (nonoverlapping_refs_since_match_p): ... this; handle also
10768 ARRAY_REFs.
10769 (alias_stats): Update stats.
10770 (dump_alias_stats): Likewise.
10771 (cheap_array_ref_low_bound): New function.
10772 (aliasing_matching_component_refs_p): Add partial_overlap
10773 argument;
10774 pass it to nonoverlapping_refs_since_match_p.
10775 (aliasing_component_refs_walk): Update call of
10776 aliasing_matching_component_refs_p
10777 (nonoverlapping_array_refs_p): New function.
10778 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10779 indirect_refs_may_alias_p): Update calls of
10780 nonoverlapping_refs_since_match_p.
10781
10782 2019-10-01 Maya Rashish <coypu@sdf.org>
10783
10784 PR target/85401
10785 * ira-color.c (allocno_copy_cost_saving): Call
10786 ira_init_register_move_cost_if_necessary.
10787
10788 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10789
10790 * Makefile.in (gnat_install_lib): New variable.
10791 * configure.ac: Substitute it.
10792 * configure: Regenerate.
10793
10794 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10795
10796 PR lto/91222
10797 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10798 is matched with non-C++ type
10799
10800 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10801
10802 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10803 after local CSE.
10804
10805 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10806
10807 * doc/invoke.texi (early-inlining-insns-O2): Document.
10808 (early-inlining-insns): Update.
10809 * params.def (early-inlining-insns-O2): New bound.
10810 (early-inlining-insns): Update docs.
10811 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10812
10813 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10814
10815 PR target/88562
10816 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10817 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10818 a memory access insn.
10819
10820 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10821
10822 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10823 vpmsumd.
10824
10825 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10826
10827 PR target/77918
10828 * config/s390/s390.c (s390_expand_vec_compare): Use
10829 gen_vec_cmpordered and gen_vec_cmpunordered.
10830 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10831 vec_unordered): Delete.
10832 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10833 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10834 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10835 (vec_cmp<code>): Generic dispatcher.
10836
10837 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10838
10839 PR target/77918
10840 * config/s390/vector.md (V_HW): Add V1TI in order to make
10841 vcond$a$b generate vcondv1tiv1tf.
10842
10843 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10844
10845 PR rtl-optimization/91948
10846 * ira-build.c (ira_create_allocno): Initialize
10847 ALLOCNO_CROSSED_CALLS_ABIS.
10848 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10849 than regno to ira_need_caller_save_p.
10850
10851 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10852
10853 * config/i386/i386-options.c
10854 (ix86_recompute_optlev_based_flags): New, moved out of...
10855 (ix86_option_override_internal): ... this. Call it.
10856 (ix86_override_options_after_change): Call it here too.
10857
10858 PR debug/91507
10859 * dwarf2out.c (override_type_for_decl_p): New.
10860 (gen_variable_die): Use it.
10861
10862 2019-10-01 Richard Biener <rguenther@suse.de>
10863
10864 * tree-vect-loop.c (vectorizable_reduction): Move variables
10865 to where they are used.
10866
10867 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10868
10869 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10870 (build_def_use): Use PC instead of CC0 in a comment.
10871
10872 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10873
10874 * rtl.def (CLOBBER_HIGH): Delete.
10875 * doc/rtl.texi (clobber_high): Remove documentation.
10876 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10877 (reg_is_clobbered_by_clobber_high): Delete.
10878 (gen_hard_reg_clobber_high): Likewise.
10879 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10880 * cfgexpand.c (expand_gimple_stmt): Likewise.
10881 * combine-stack-adj.c (single_set_for_csa): Likewise.
10882 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10883 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10884 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10885 * cse.c (invalidate_reg): Remove clobber_high parameter.
10886 (invalidate): Update call accordingly.
10887 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10888 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10889 (count_reg_usage, insn_live_p): Likewise.
10890 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10891 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10892 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10893 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10894 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10895 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10896 (mark_nonreg_stores_2): Likewise.
10897 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10898 (df_get_call_refs): Likewise.
10899 * dwarf2out.c (mem_loc_descriptor): Likewise.
10900 * emit-rtl.c (verify_rtx_sharing): Likewise.
10901 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10902 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10903 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10904 * genemit.c (gen_exp, gen_insn): Likewise.
10905 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10906 * haifa-sched.c (haifa_classify_rtx): Likewise.
10907 * ira-build.c (create_insn_allocnos): Likewise.
10908 * ira-costs.c (scan_one_insn): Likewise.
10909 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10910 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10911 * jump.c (mark_jump_label_1): Likewise.
10912 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10913 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10914 handling.
10915 (mark_not_eliminable): Likewise.
10916 * lra-lives.c (process_bb_lives): Likewise.
10917 * lra.c (new_insn_reg): Remove clobber_high parameter.
10918 (collect_non_operand_hard_regs): Likewise. Update call to new
10919 insn_reg. Remove CLOBBER_HIGH handling.
10920 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10921 to collect_non_operand_hard_regs.
10922 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10923 Update call to new_insn_reg.
10924 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10925 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10926 (move2add_note_store): Likewise.
10927 * print-rtl.c (print_pattern): Likewise.
10928 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10929 (if_test_bypass_p): Likewise.
10930 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10931 * reginfo.c (reg_scan_mark_refs): Likewise.
10932 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10933 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10934 (forget_old_reloads_1): Likewise.
10935 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10936 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10937 (dbr_schedule): Likewise.
10938 * resource.c (update_live_status, mark_referenced_resources)
10939 (mark_set_resources): Likewise.
10940 * rtl.c (copy_rtx): Likewise.
10941 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10942 (note_pattern_stores): Likewise.
10943 (reg_is_clobbered_by_clobber_high): Delete.
10944 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10945 CLOBBER_HIGH handling.
10946
10947 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10948
10949 PR target/91452
10950 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10951 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10952 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10953 Handle ARM_PCS_TLSDESC.
10954 (aarch64_tlsdesc_abi_id): New function.
10955 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10956 rtx instead of a list of clobbers and clobber_highs.
10957 (tlsdesc_small_<mode>): Update accordingly.
10958
10959 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10960
10961 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10962 extra callee_abi argument.
10963 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10964 Insert a CALLEE_ABI unspec into the call pattern as the second
10965 element in the PARALLEL.
10966 (aarch64_simd_call_p): Delete.
10967 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10968 the new CALLEE_ABI element of the PARALLEL.
10969 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10970 from the function type, if given.
10971 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10972 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10973 when passed the function_arg_info end marker.
10974 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10975 final argument of gen_sibcall.
10976 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10977 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10978 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10979 pattern.
10980 (call_value): Likewise operand 3.
10981 (sibcall): Likewise operand 2. Place the unspec before rather than
10982 after the return.
10983 (sibcall_value): Likewise operand 3.
10984 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10985 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10986 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10987 constraint strings.
10988 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10989
10990 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10991
10992 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10993 choose_hard_reg_mode.
10994 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10995
10996 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10997
10998 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10999 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
11000 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
11001
11002 2019-09-30 David Malcolm <dmalcolm@redhat.com>
11003
11004 * diagnostic-show-locus.c (line_label::line_label): Initialize
11005 m_has_vbar.
11006 (line_label::comparator): Reverse the sort order by m_state_idx,
11007 so that when the list is walked backwards the labels appear in
11008 order of insertion into the rich_location.
11009 (line_label::m_has_vbar): New field.
11010 (layout::print_any_labels): When dealing with multiple labels at
11011 the same line and column, only print vertical bars for the one
11012 with the highest label_line.
11013 (selftest::test_one_liner_labels): Update test for multiple labels
11014 to expect the labels to be in the order of insertion into the
11015 rich_location. Add a test for many such labels, where the column
11016 numbers are out-of-order relative to the insertion order.
11017
11018 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11019
11020 * config/i386/i386.h (ix86_frame::expensive_p): New field.
11021 (ix86_frame::expensive_count): Likewise.
11022 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
11023 of use_fast_prologue_epilogue robust against incidental changes
11024 in function size.
11025
11026 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11027
11028 PR target/77918
11029 * config/s390/vector.md (vec_unordered<mode>): Call
11030 gen_vec_ordered<mode>.
11031
11032 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
11033
11034 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
11035 New pattern for ASRD.
11036 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
11037 * internal-fn.def (IFN_DIV_POW2): New internal function.
11038 * optabs.def (sdiv_pow2_optab): New optab.
11039 * tree-vect-patterns.c (vect_recog_divmod_pattern):
11040 Modify pattern to support new operation.
11041 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
11042 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
11043 Document new target selector.
11044
11045 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11046
11047 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
11048 to test whether we're compiling a vector PCS function and to test
11049 whether the function needs to save a particular register.
11050 Remove the vector PCS handling of df_set_regs_ever_live.
11051 (aarch64_components_for_bb): Use crtl->abi to test whether
11052 the function needs to save a particular register.
11053 (aarch64_process_components): Use crtl->abi to test whether
11054 we're compiling a vector PCS function.
11055 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
11056 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
11057
11058 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11059
11060 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
11061 Delete.
11062 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
11063 whether the block calls a function that clobbers more registers
11064 than the current function is allowed to.
11065 (aarch64_use_simple_return_insn_p): Delete.
11066 * config/aarch64/aarch64.md (simple_return): Remove condition.
11067
11068 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11069
11070 * function-abi.h (function_abi_aggregator): New class.
11071 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
11072 function.
11073 * ira.c (update_equiv_regs_prescan): New function. Call
11074 set_paradoxical_subreg here rather than...
11075 (update_equiv_regs): ...here.
11076 (ira): Call update_equiv_regs_prescan.
11077
11078 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11079
11080 * hard-reg-set.h (regs_invalidated_by_call): Only define if
11081 IN_TARGET_CODE.
11082 (call_used_or_fixed_regs): Likewise.
11083 (call_used_or_fixed_reg_p): Likewise.
11084 * reginfo.c (regs_invalidated_by_call): New macro.
11085
11086 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11087
11088 * shrink-wrap.c: Include function-abi.h.
11089 (requires_stack_frame_p): Use crtl->abi to test whether the
11090 current function can use a register without saving it first.
11091
11092 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11093
11094 * sel-sched-ir.h (_def::crosses_call): Replace with...
11095 (_def::crossed_call_abis): ..this new field.
11096 (def_list_add): Take a mask of ABIs instead of a crosses_call
11097 boolean.
11098 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
11099 of _def accordingly.
11100 * sel-sched.c: Include function-abi.h.
11101 (hard_regs_data::regs_for_call_clobbered): Delete.
11102 (reg_rename::crosses_call): Replace with...
11103 (reg_rename::crossed_call_abis): ...this new field.
11104 (fur_static_params::crosses_call): Replace with...
11105 (fur_static_params::crossed_call_abis): ...this new field.
11106 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
11107 (init_hard_regs_data): Use crtl->abi to test which registers the
11108 current function would need to save before it uses them.
11109 (mark_unavailable_hard_regs): Update handling of call-clobbered
11110 registers, using call_clobbers_in_region to find out which registers
11111 might be call-clobbered (but without taking -fipa-ra into account
11112 for now). Remove separate handling of partially call-clobbered
11113 registers.
11114 (verify_target_availability): Use crossed_call_abis instead of
11115 crosses_call.
11116 (get_spec_check_type_for_insn, find_used_regs): Likewise.
11117 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
11118
11119 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11120
11121 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
11122 function to test whether a register is fully or partly clobbered.
11123
11124 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11125
11126 * rtlanal.c: Include function-abi.h.
11127 (reg_set_p): Use insn_callee_abi to get the ABI of the called
11128 function and clobbers_reg_p to test whether the register
11129 is call-clobbered.
11130 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
11131 to get the ABI of the called function and full_reg_clobbers to
11132 get the set of fully call-clobbered registers. Warn about the
11133 pitfalls of using this mode.
11134
11135 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11136
11137 * reload.c: Include function-abi.h.
11138 (find_equiv_reg): Use clobbers_reg_p to test whether either
11139 of the equivalent registers is clobbered by a call.
11140 * reload1.c: Include function-abi.h.
11141 (reg_reloaded_call_part_clobbered): Delete.
11142 (reload): Use crtl->abi to test which registers would need
11143 saving in the prologue before use.
11144 (find_reg): Likewise.
11145 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
11146 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
11147 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
11148
11149 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11150
11151 * regrename.h (du_head::call_clobber_mask): New field.
11152 (du_head::need_caller_save_reg): Replace with...
11153 (du_head::call_abis): ...this new field.
11154 * regrename.c: Include function-abi.h.
11155 (call_clobbered_in_chain_p): New function.
11156 (check_new_reg_p): Use crtl->abi when deciding whether a register
11157 is free for use after RA. Use call_clobbered_in_chain_p to test
11158 whether a candidate register would be clobbered by a call.
11159 (find_rename_reg): Don't add call-clobber conflicts here.
11160 (rename_chains): Check call_abis instead of need_caller_save_reg.
11161 (merge_chains): Update for changes to du_head.
11162 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
11163 target. Record the ABI identifier in call_abis and the set of
11164 fully or partially clobbered registers in call_clobber_mask.
11165 Add fully-clobbered registers to hard_conflicts here rather
11166 than in find_rename_reg.
11167 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
11168 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
11169 * config/aarch64/falkor-tag-collision-avoidance.c: Include
11170 function-abi.h.
11171 * config/c6x/c6x.c: Likewise.
11172
11173 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11174
11175 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
11176 mode of the register when deciding whether it is no longer
11177 available after a call.
11178
11179 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11180
11181 * recog.c: Include function-abi.h.
11182 (peep2_find_free_register): Use crtl->abi when deciding whether
11183 a register is free for use after RA.
11184
11185 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11186
11187 * postreload-gcse.c: Include regs.h and function-abi.h.
11188 (record_opr_changes): Use insn_callee_abi to get the ABI of the
11189 call insn target. Conservatively assume that partially-clobbered
11190 registers are altered.
11191
11192 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11193
11194 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
11195 when deciding whether a register is free for use after RA.
11196 (reload_combine): Remove unnecessary use of fixed_reg_set.
11197 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
11198 call insn target. Use reg_mode when testing whether a register
11199 is no longer available.
11200
11201 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11202
11203 * target.def (return_call_with_max_clobbers): Delete.
11204 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11205 * doc/tm.texi: Regenerate.
11206 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
11207 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11208 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
11209 (lra_reg::call_insn): Delete.
11210 * lra.c: Include function-abi.h.
11211 (initialize_lra_reg_info_element): Don't initialize the fields above.
11212 (lra): Use crtl->abi to test whether the current function needs to
11213 save a register in the prologue. Remove special pre-inheritance
11214 lra_create_live_ranges pass for flag_ipa_ra.
11215 * lra-assigns.c: Include function-abi.h
11216 (find_hard_regno_for_1): Use crtl->abi to test whether the current
11217 function needs to save a register in the prologue.
11218 (lra_assign): Assert that registers aren't allocated to a
11219 conflicting register, rather than checking only for overlaps
11220 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
11221 and for registers that are not live across a call.
11222 * lra-constraints.c (last_call_for_abi): New variable.
11223 (full_and_partial_call_clobbers): Likewise.
11224 (setup_next_usage_insn): Remove the register from
11225 full_and_partial_call_clobbers.
11226 (need_for_call_save_p): Use call_clobbered_in_region_p to test
11227 whether the register needs a caller save.
11228 (need_for_split_p): Use full_and_partial_reg_clobbers instead
11229 of call_used_or_fixed_regs.
11230 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
11231 full_and_partial_call_clobbers.
11232 * lra-lives.c (check_pseudos_live_through_calls): Replace
11233 last_call_used_reg_set and call_insn arguments with an abi argument.
11234 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
11235 as the set of conflicting registers.
11236 (calls_have_same_clobbers_p): Delete.
11237 (process_bb_lives): Track the ABI of the last call instead of an
11238 insn/HARD_REG_SET pair. Update calls to
11239 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
11240 the set of registers that could be clobbered by an EH edge.
11241 Include partially-clobbered as well as fully-clobbered registers.
11242 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
11243 * lra-remat.c: Include function-abi.h.
11244 (call_used_regs_arr_len, call_used_regs_arr): Delete.
11245 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
11246 registers and bitmap_view to combine them into dead_regs.
11247 (call_used_input_regno_present_p): Take a function_abi argument
11248 and use it to test whether a register is call-clobbered.
11249 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
11250 call insn target. Update tje call to call_used_input_regno_present_p.
11251 (do_remat): Likewise.
11252 (lra_remat): Remove the initialization of call_used_regs_arr_len
11253 and call_used_regs_arr.
11254
11255 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11256
11257 * loop-iv.c: Include regs.h and function-abi.h.
11258 (simplify_using_initial_values): Use insn_callee_abi to get the
11259 ABI of the call insn target. Conservatively assume that
11260 partially-clobbered registers are altered.
11261
11262 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11263
11264 * function-abi.h (call_clobbers_in_region): Declare.
11265 (call_clobbered_in_region_p): New function.
11266 * function-abi.cc (call_clobbers_in_region): Likewise.
11267 * ira-int.h: Include function-abi.h.
11268 (ira_allocno::crossed_calls_abis): New field.
11269 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
11270 (ira_need_caller_save_regs): New function.
11271 (ira_need_caller_save_p): Likewise.
11272 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
11273 of call_used_or_fixed_regs.
11274 (do_reload): Use crtl->abi to test whether the current function
11275 needs to save a register in the prologue. Count registers that
11276 need to be saved rather than registers that don't.
11277 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
11278 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11279 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
11280 (propagate_some_info_from_allocno): Likewise.
11281 (copy_info_to_removed_store_destinations): Likewise.
11282 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
11283 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
11284 (ira_build): Use ira_need_caller_save_regs instead of
11285 call_used_or_fixed_regs.
11286 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
11287 whether the current function would need to save a register
11288 before using it.
11289 (calculate_spill_cost): Likewise.
11290 (allocno_reload_assign): Use ira_need_caller_save_regs and
11291 ira_need_caller_save_p instead of call_used_or_fixed_regs.
11292 * ira-conflicts.c (ira_build_conflicts): Use
11293 ira_need_caller_save_regs rather than call_used_or_fixed_regs
11294 as the set of call-clobbered registers. Remove the
11295 call_used_or_fixed_regs mask from the calculation of
11296 temp_hard_reg_set and mask its use instead. Remove special
11297 handling of partially-clobbered registers.
11298 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
11299 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
11300 calculate the set of conflicting registers for calls that
11301 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
11302 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
11303 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11304 Use eh_edge_abi to calculate the set of registers that could
11305 be clobbered by an EH edge. Include partially-clobbered as
11306 well as fully-clobbered registers.
11307
11308 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11309
11310 * haifa-sched.c: Include function-abi.h.
11311 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
11312 the function would need to save a register before using it.
11313
11314 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11315
11316 * gcse.c: Include function-abi.h.
11317 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
11318 the call insn target. Invalidate partially call-clobbered
11319 registers as well as fully call-clobbered ones.
11320
11321 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11322
11323 * function.c (aggregate_value_p): Work out which ABI the
11324 function is using before testing which registers are at least
11325 partly preserved by a call.
11326
11327 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11328
11329 * early-remat.c: Include regs.h and function-abi.h.
11330 (early_remat::maybe_add_candidate): Don't check for call-clobbered
11331 registers here.
11332 (early_remat::restrict_remat_for_unavail_regs): New function.
11333 (early_remat::restrict_remat_for_call): Likewise.
11334 (early_remat::process_block): Before calling emit_remat_insns
11335 for a previous call in the block, invalidate any candidates
11336 that would clobber call-preserved registers.
11337 (early_remat::emit_remat_insns_for_block): Likewise for the
11338 final call in a block. Do the same thing for live-in registers
11339 when calling emit_remat_insns at the head of a block.
11340
11341 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11342
11343 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
11344 whether the current function needs to save at least part of a
11345 register before using it.
11346 (df_get_exit_block_use_set): Likewise for epilogue restores.
11347
11348 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11349
11350 * df-problems.c: Include regs.h and function-abi.h.
11351 (df_rd_problem_data): Rename sparse_invalidated_by_call to
11352 sparse_invalidated_by_eh and dense_invalidated_by_call to
11353 dense_invalidated_by_eh.
11354 (df_print_bb_index): Update accordingly.
11355 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
11356 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
11357 that are clobbered by an EH edge. Clobber partially-clobbered
11358 registers as well as fully-clobbered ones.
11359 (df_md_confluence_n): Likewise.
11360 (df_rd_local_compute): Likewise. Update for changes to
11361 df_rd_problem_data.
11362 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
11363 of registers that are clobbered by an EH edge. Includde partially-
11364 clobbered registers as well as fully-clobbered ones.
11365
11366 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11367
11368 * cselib.c (cselib_process_insn): If we know what mode a
11369 register was set in, check whether it is clobbered in that
11370 mode by a call. Only fall back to reg_raw_mode if that fails.
11371
11372 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11373
11374 * cse.c: Include regs.h and function-abi.h.
11375 (invalidate_for_call): Take the call insn as an argument.
11376 Use insn_callee_abi to get the ABI of the call and invalidate
11377 partially clobbered registers as well as fully clobbered ones.
11378 (cse_insn): Update call accordingly.
11379
11380 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11381
11382 * combine.c: Include function-abi.h.
11383 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
11384 of the target of call insns. Invalidate partially-clobbered
11385 registers as well as fully-clobbered ones.
11386
11387 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11388
11389 * cfgloopanal.c: Include regs.h and function-abi.h.
11390 (init_set_costs): Use default_function_abi to test whether
11391 a general register is call-clobbered.
11392
11393 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11394
11395 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
11396 instead of the call-clobbered sets.
11397
11398 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11399
11400 * caller-save.c (setup_save_areas): Remove redundant |s of
11401 fixed_reg_set.
11402 (save_call_clobbered_regs): Likewise. Use the call ABI rather
11403 than call_used_or_fixed_regs to decide whether a REG_RETURNED
11404 value is useful.
11405
11406 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11407
11408 * rtl.h (predefined_function_abi): Declare.
11409 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11410 instead of a boolean call_save flag.
11411 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
11412 accordingly.
11413 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11414 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11415 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
11416 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11417 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11418 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
11419 * reginfo.c (init_reg_modes_target): Likewise.
11420 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11421 instead of a boolean call_save flag.
11422 * targhooks.c: Include function-abi.h.
11423 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
11424 using eh_edge_abi to choose the mode.
11425
11426 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11427
11428 * target.def (hard_regno_call_part_clobbered): Take an ABI
11429 identifier instead of an rtx_insn.
11430 * doc/tm.texi: Regenerate.
11431 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
11432 (hook_bool_uint_uint_mode_false): New function.
11433 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
11434 (hook_bool_uint_uint_mode_false): New function.
11435 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11436 Take an ABI identifier instead of an rtx_insn.
11437 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
11438 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
11439 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
11440 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
11441 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
11442 Likewise.
11443 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
11444 * cselib.c: Include function-abi.h.
11445 (cselib_process_insn): Update call to
11446 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11447 to get the appropriate ABI identifier.
11448 * function-abi.cc (predefined_function_abi::initialize): Update call
11449 to targetm.hard_regno_call_part_clobbered.
11450 * ira-conflicts.c (ira_build_conflicts): Likewise.
11451 * ira-costs.c (ira_tune_allocno_costs): Likewise.
11452 * lra-constraints.c: Include function-abi.h.
11453 (need_for_call_save_p): Update call to
11454 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11455 to get the appropriate ABI identifier.
11456 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
11457 * regcprop.c (copyprop_hardreg_forward_1): Update call
11458 to targetm.hard_regno_call_part_clobbered.
11459 * reginfo.c (choose_hard_reg_mode): Likewise.
11460 * regrename.c (check_new_reg_p): Likewise.
11461 * reload.c (find_equiv_reg): Likewise.
11462 * reload1.c (emit_reload_insns): Likewise.
11463 * sched-deps.c: Include function-abi.h.
11464 (deps_analyze_insn): Update call to
11465 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11466 to get the appropriate ABI identifier.
11467 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
11468 call to targetm.hard_regno_call_part_clobbered.
11469 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
11470
11471 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11472
11473 * config/i386/i386.c: Include function-abi.h.
11474 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
11475 if they preserve some 256-bit or 512-bit SSE registers.
11476
11477 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11478
11479 * target.def (insn_callee_abi): New hook.
11480 (remove_extra_call_preserved_regs): Delete.
11481 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
11482 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11483 * doc/tm.texi: Regenerate.
11484 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
11485 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
11486 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
11487 insn argument.
11488 (aarch64_remove_extra_call_preserved_regs): Delete.
11489 (aarch64_insn_callee_abi): New function.
11490 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11491 (TARGET_INSN_CALLEE_ABI): New macro.
11492 * rtl.h (get_call_fndecl): Declare.
11493 (cgraph_rtl_info): Fix formatting. Tweak comment for
11494 function_used_regs. Remove function_used_regs_valid.
11495 * rtlanal.c (get_call_fndecl): Moved from final.c
11496 * function-abi.h (insn_callee_abi): Declare.
11497 (target_function_abi_info): Mention insn_callee_abi.
11498 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11499 way to get_call_reg_set_usage did.
11500 (insn_callee_abi): New function.
11501 * regs.h (get_call_reg_set_usage): Delete.
11502 * final.c: Include function-abi.h.
11503 (collect_fn_hard_reg_usage): Add fixed and stack registers to
11504 function_used_regs before the main loop rather than afterwards.
11505 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
11506 if function_used_regs ends up not being useful.
11507 (get_call_fndecl): Move to rtlanal.c
11508 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11509 * caller-save.c: Include function-abi.h.
11510 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11511 instead of get_call_reg_set_usage.
11512 * cfgcleanup.c: Include function-abi.h.
11513 (old_insns_match_p): Use insn_callee_abi instead of
11514 get_call_reg_set_usage.
11515 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11516 a tree.
11517 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
11518 function_used_regs.
11519 * df-scan.c: Include function-abi.h.
11520 (df_get_call_refs): Use insn_callee_abi instead of
11521 get_call_reg_set_usage.
11522 * ira-lives.c: Include function-abi.h.
11523 (process_bb_node_lives): Use insn_callee_abi instead of
11524 get_call_reg_set_usage.
11525 * lra-lives.c: Include function-abi.h.
11526 (process_bb_lives): Use insn_callee_abi instead of
11527 get_call_reg_set_usage.
11528 * postreload.c: Include function-abi.h.
11529 (reload_combine): Use insn_callee_abi instead of
11530 get_call_reg_set_usage.
11531 * regcprop.c: Include function-abi.h.
11532 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11533 get_call_reg_set_usage.
11534 * resource.c: Include function-abi.h.
11535 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11536 instead of get_call_reg_set_usage.
11537 * var-tracking.c: Include function-abi.h.
11538 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11539 get_call_reg_set_usage.
11540
11541 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11542
11543 * target.def (fntype_abi): New target hook.
11544 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11545 * doc/tm.texi: Regenerate.
11546 * target.h (predefined_function_abi): Declare.
11547 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11548 if defined.
11549 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11550 * config/aarch64/aarch64.c: Include function-abi.h.
11551 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11552 (TARGET_FNTYPE_ABI): Define.
11553
11554 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11555
11556 * Makefile.in (OBJS): Add function-abi.o.
11557 (GTFILES): Add function-abi.h.
11558 * function-abi.cc: New file.
11559 * function-abi.h: Likewise.
11560 * emit-rtl.h (rtl_data::abi): New field.
11561 * function.c: Include function-abi.h.
11562 (prepare_function_start): Initialize crtl->abi.
11563 * read-rtl-function.c: Include regs.h and function-abi.h.
11564 (read_rtl_function_body): Initialize crtl->abi.
11565 (read_rtl_function_body_from_file_range): Likewise.
11566 * reginfo.c: Include function-abi.h.
11567 (init_reg_sets_1): Initialize default_function_abi.
11568 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11569 when making a register global.
11570 * target-globals.h (this_target_function_abi_info): Declare.
11571 (target_globals::function_abi_info): New field.
11572 (restore_target_globals): Copy it.
11573 * target-globals.c: Include function-abi.h.
11574 (default_target_globals): Initialize the function_abi_info field.
11575 (target_globals): Allocate it.
11576 (save_target_globals): Free it.
11577
11578 2019-09-30 Nick Clifton <nickc@redhat.com>
11579
11580 PR target/85978
11581 * config/frv/frv.c (frv_register_move_cost): Add break statements
11582 to avoid falling through to the wrong cases. Tidy code.
11583
11584 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11585
11586 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11587 For multi-registers modes, test how big each register part is.
11588
11589 2019-09-30 Nick Clifton <nickc@redhat.com>
11590
11591 PR target/59205
11592 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11593 (TARGET_ASM_SELECT_SECTION): Remove definition.
11594 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11595
11596 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11597
11598 * emit-rtl.c (init_raw_REG): New function.
11599 (gen_raw_REG): Use init_raw_REG.
11600 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11601 macros.
11602 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11603 * rtl.h (rtx_init): New function.
11604 (rtx_alloca): New function.
11605 (init_raw_REG): New function.
11606 (alloca_raw_REG): New macro.
11607
11608 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11609
11610 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11611 (pcrel_local_address): Replace pcrel_address predicate, use the
11612 new function address_to_insn_form.
11613 (pcrel_external_address): Replace with new implementation using
11614 address_to_insn_form..
11615 (prefixed_mem_operand): Delete predicate which is now unused.
11616 (pcrel_external_mem_operand): Delete predicate which is now
11617 unused.
11618 * config/rs6000/rs6000-protos.h (enum insn_form): New
11619 enumeration.
11620 (enum non_prefixed_form): New enumeration.
11621 (address_to_insn_form): New declaration.
11622 (prefixed_load_p): New declaration.
11623 (prefixed_store_p): New declaration.
11624 (prefixed_paddi_p): New declaration.
11625 (rs6000_asm_output_opcode): New declaration.
11626 (rs6000_final_prescan_insn): Move declaration and update calling
11627 signature.
11628 (address_is_prefixed): New helper inline function.
11629 * config/rs6000/rs6000.c(print_operand_address): Check for either
11630 PC-relative local symbols or PC-relative external symbols.
11631 (rs6000_emit_move): Support loading PC-relative addresses.
11632 (mode_supports_prefixed_address_p): Delete, no longer used.
11633 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11634 (address_to_insn_form): New function to decode an address format.
11635 (reg_to_non_prefixed): New function to identify what the
11636 non-prefixed memory instruction format is for a register.
11637 (prefixed_load_p): New function to identify prefixed loads.
11638 (prefixed_store_p): New function to identify prefixed stores.
11639 (prefixed_paddi_p): New function to identify prefixed load
11640 immediates.
11641 (next_insn_prefixed_p): New static state variable.
11642 (rs6000_final_prescan_insn): New function to determine if an insn
11643 uses a prefixed instruction.
11644 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11645 prefixed instruction.
11646 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11647 (ASM_OUTPUT_OPCODE): New target hook.
11648 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11649 prefixed instructions.
11650 (prefixed_length): New insn attribute for the size of prefixed
11651 instructions.
11652 (non_prefixed_length): New insn attribute for the size of
11653 non-prefixed instructions.
11654 (pcrel_local_addr): New insn to load up a local PC-relative
11655 address.
11656 (pcrel_extern_addr): New insn to load up an external PC-relative
11657 address.
11658 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11659 GPR and loading a 128-bit floating point type to a GPR.
11660
11661 2019-09-30 Richard Biener <rguenther@suse.de>
11662
11663 * gimple.c (gimple_get_lhs): For PHIs return the result.
11664 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11665 SLP instance as argument.
11666 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11667 double-reduction PHIs with vectorizable_lc_phi.
11668 (vect_analyze_loop_operations): Adjust.
11669 (vect_create_epilog_for_reduction): Remove all code not dealing
11670 with reduction LC PHI or epilogue generation.
11671 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11672 for live stmts of reductions.
11673 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11674 do not handle defs that are not vect_internal_def.
11675 (can_vectorize_live_stmts): Adjust.
11676 (vect_analyze_stmt): When the vectorized stmt defined a value
11677 used on backedges adjust the backedge uses of vectorized PHIs.
11678
11679 2019-09-30 Martin Jambor <mjambor@suse.cz>
11680
11681 PR ipa/91853
11682 * tree-inline.c (force_value_to_type): New function.
11683 (setup_one_parameter): Use force_value_to_type to convert type.
11684 * tree-inline.c (force_value_to_type): Declare.
11685 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11686 with register type mismatches.
11687
11688 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11689
11690 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11691 32-bit PowerPC.
11692 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11693 * config/rs6000/t-freebsd64: Make use of the above define and build
11694 the 32-bit libraries with secure-plt.
11695
11696 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11697
11698 PR target/91931
11699 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11700 gen_int_mode instead of GEN_INT.
11701
11702 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11703
11704 * config/darwin.c (gen_macho_low): Amend to include the mode
11705 argument.
11706 (machopic_indirect_data_reference): Amend gen_macho_low call
11707 to include mode argument
11708 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11709 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11710 the macho_high expander and two define_insn entries.
11711
11712 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11713
11714 PR bootstrap/90543
11715 * optc-save-gen.awk: Fix up printing string option differences.
11716
11717 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11718
11719 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11720 vec_perm cost to 1 for non-Power7 VSX architectures.
11721
11722 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11723
11724 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11725 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11726 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11727
11728 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11729
11730 * config/darwin.c (gen_macho_high): Amend to include the mode
11731 argument.
11732 (machopic_indirect_data_reference): Amend gen_macho_high call
11733 to include mode argument.
11734 (machopic_legitimize_pic_address): Likewise.
11735 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11736 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11737 the macho_high expander and two define_insn entries.
11738
11739 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11740
11741 PR target/86805
11742 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11743
11744 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11745
11746 PR target/80672
11747 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11748 std::string::compare instead of std::string::find.
11749
11750 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11751
11752 * configure: Regenerate.
11753
11754 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11755
11756 PR middle-end/91920
11757 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11758 variables as shared.
11759
11760 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11761
11762 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11763 replaces the expander and two define_insn entries.
11764 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11765 call.
11766 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11767
11768 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11769
11770 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11771 (fibonacci_heap::nodes): Likewise.
11772 (fibonacci_heap::min_key): Likewise.
11773 (fibonacci_heap::min): Likewise.
11774
11775 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11776
11777 * cgraph.c (cgraph_node::get_fun): Make const.
11778 * cgraph.h (cgraph_node::get_fun): Likewise.
11779
11780 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11781
11782 PR target/91919
11783 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11784 of SImode MULT.
11785
11786 2019-09-27 Richard Biener <rguenther@suse.de>
11787
11788 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11789 (STMT_VINFO_REDUC_FN): Likewise.
11790 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11791 STMT_VINFO_REDUC_FN.
11792 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11793 for condition reductions.
11794 (vect_create_epilog_for_reduction): Compute all required state
11795 from the stmt to be vectorized.
11796 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11797 invocation and remove then dead code. For single def-use chains
11798 record only a single vector stmt.
11799
11800 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11801
11802 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11803 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11804 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11805 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11806 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11807 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11808 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11809 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11810 (aarch64_general_builtin_rsqrt): Declare.
11811 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11812 New function.
11813 (aarch64_mangle_builtin_type): Rename to...
11814 (aarch64_general_mangle_builtin_type): ...this.
11815 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11816 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11817 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11818 aarch64_general_add_builtin instead of add_builtin_function.
11819 (aarch64_init_builtins): Rename to...
11820 (aarch64_general_init_builtins): ...this. Use
11821 aarch64_general_add_builtin instead of add_builtin_function.
11822 (aarch64_builtin_decl): Rename to...
11823 (aarch64_general_builtin_decl): ...this and remove the unused
11824 arguments.
11825 (aarch64_expand_builtin): Rename to...
11826 (aarch64_general_expand_builtin): ...this and remove the unused
11827 arguments.
11828 (aarch64_builtin_rsqrt): Rename to...
11829 (aarch64_general_builtin_rsqrt): ...this.
11830 (aarch64_fold_builtin): Rename to...
11831 (aarch64_general_fold_builtin): ...this. Take the function subcode
11832 and return type as arguments. Remove the "ignored" argument.
11833 (aarch64_gimple_fold_builtin): Rename to...
11834 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11835 subcode and gcall as arguments, and return the new function call.
11836 * config/aarch64/aarch64.c (aarch64_init_builtins)
11837 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11838 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11839 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11840 instead of aarch64_builtin_rsqrt.
11841 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11842 instead of aarch64_mangle_builtin_type.
11843
11844 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11845
11846 * target.def (check_builtin_call): New target hook.
11847 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11848 * doc/tm.texi: Regenerate.
11849
11850 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11851
11852 PR tree-optimization/91909
11853 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11854 reduc_index parameter. When handling COND_REDUCTION, make sure
11855 that the reduction phi operand is in the correct arm of the
11856 VEC_COND_EXPR.
11857 (vectorizable_reduction): Pass reduc_index to the above.
11858
11859 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11860
11861 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11862 New combine pattern.
11863
11864 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11865
11866 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11867 loop instruction into new basic block before the loop when basic
11868 block that precedes the loop is empty.
11869
11870 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11871
11872 * function.c (gimplify_parameters): Use build_clobber function.
11873 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11874 * tree-inline.c (expand_call_inline): Likewise.
11875 * tree-sra.c (clobber_subtree): Likewise.
11876 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11877 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11878 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11879 lower_omp_target): Likewise.
11880 * omp-expand.c (expand_omp_for_generic): Likewise.
11881 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11882
11883 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11884
11885 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11886 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11887 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11888 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11889 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11890 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11891 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11892 LD_ELEMREV_V16QI): Use the PURE attribute.
11893
11894 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11895
11896 * config/rs6000/darwin.md: Replace the expanders for
11897 load_macho_picbase and reload_macho_picbase with use of '@'
11898 and <mode> in their respective define_insns.
11899 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11900 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11901 Pmode to gen_load_macho_picbase.
11902 * config/rs6000/rs6000.md: Likewise.
11903
11904 2019-09-25 Richard Biener <rguenther@suse.de>
11905
11906 PR tree-optimization/91896
11907 * tree-vect-loop.c (vectorizable_reduction): The single
11908 def-use cycle optimization cannot apply when there's more
11909 than one pattern stmt involved.
11910
11911 2019-09-26 Richard Biener <rguenther@suse.de>
11912
11913 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11914 loop-closed PHIs that are vect_internal_def.
11915 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11916 Simplify.
11917 (vectorizable_lc_phi): New.
11918 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11919 (vect_transform_stmt): Likewise.
11920 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11921 (vectorizable_lc_phi): Declare.
11922
11923 2019-09-26 Richard Biener <rguenther@suse.de>
11924
11925 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11926 vectorizable_reduction for vect_double_reduction_def.
11927 (vect_transform_loop): Likewise.
11928 (vect_create_epilog_for_reduction): Move double-reduction
11929 PHI creation and preheader argument setting of PHIs ...
11930 (vectorizable_reduction): ... here. Also process
11931 vect_double_reduction_def PHIs, creating the vectorized
11932 PHI nodes, remembering the scalar adjustment computed for
11933 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11934 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11935 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11936 Initialize STMT_VINFO_REDUC_CODE.
11937 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11938 (_stmt_vec_info::reduc_code): Likewise.
11939 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11940 (STMT_VINFO_REDUC_CODE): Likewise.
11941
11942 2019-09-26 Matt Turner <mattst88@gmail.com>
11943
11944 PR driver/69471
11945 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11946 (mtune=): Add Negative(mtune=).
11947 (mcpu=): Add Negative(mcpu=).
11948 * config/arm/arm.opt: Likewise.
11949
11950 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11951
11952 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11953 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11954 Define.
11955 * config/arm/arm_acle.h: Define builtins for the above.
11956 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11957 (simd32_op): Handle the above.
11958 * config/arm/unspecs.md: Define unspecs for the above.
11959
11960 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11961
11962 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11963 (arm_<sup>xtb16): Likewise.
11964 (arm_usada8): Likewise.
11965 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11966 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11967 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11968 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11969 __sxtb16, __uxtab16, __uxtb16): Define.
11970 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11971 * config/arm/unspecs.md: Define unspecs for the above.
11972 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11973 (USXTB16): Likewise.
11974 (simd32_op): New int_attribute.
11975 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11976 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11977
11978 2019-09-26 Martin Jambor <mjambor@suse.cz>
11979
11980 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11981 internal_error.
11982
11983 2019-09-26 Martin Jambor <mjambor@suse.cz>
11984
11985 * ipa-sra.c (process_scan_results): Fix continue condition.
11986
11987 2019-09-26 Martin Liska <mliska@suse.cz>
11988
11989 PR tree-optimization/91885
11990 * tree-vectorizer.c (try_vectorize_loop_1): Add
11991 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11992
11993 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11994
11995 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11996 aarch64_plus_immediate rather than aarch64_uimm12_shift
11997 to test for valid PLUS immediates.
11998
11999 2019-09-25 Martin Jambor <mjambor@suse.cz>
12000
12001 * tree-sra.c (no_accesses_p): Remove.
12002 (no_accesses_representant): Likewise.
12003
12004 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12005
12006 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
12007 consistenly.
12008 (vaba_s16): Likewise.
12009 (vaba_s32): Likewise.
12010 (vaba_u8): Likewise.
12011 (vaba_u16): Likewise.
12012 (vaba_u32): Likewise.
12013 (vabal_high_s8): Likewise.
12014 (vabal_high_s16): Likewise.
12015 (vabal_high_s32): Likewise.
12016 (vabal_high_u8): Likewise.
12017 (vabal_high_u16): Likewise.
12018 (vabal_high_u32): Likewise.
12019 (vabal_s8): Likewise.
12020 (vabal_s16): Likewise.
12021 (vabal_s32): Likewise.
12022 (vabal_u8): Likewise.
12023 (vabal_u16): Likewise.
12024 (vabal_u32): Likewise.
12025 (vabaq_s8): Likewise.
12026 (vabaq_s16): Likewise.
12027 (vabaq_s32): Likewise.
12028 (vabaq_u8): Likewise.
12029 (vabaq_u16): Likewise.
12030 (vabaq_u32): Likewise.
12031 (vabd_s8): Likewise.
12032 (vabd_s16): Likewise.
12033 (vabd_s32): Likewise.
12034 (vabd_u8): Likewise.
12035 (vabd_u16): Likewise.
12036 (vabd_u32): Likewise.
12037 (vabdl_high_s8): Likewise.
12038 (vabdl_high_s16): Likewise.
12039 (vabdl_high_s32): Likewise.
12040 (vabdl_high_u8): Likewise.
12041 (vabdl_high_u16): Likewise.
12042 (vabdl_high_u32): Likewise.
12043 (vabdl_s8): Likewise.
12044 (vabdl_s16): Likewise.
12045 (vabdl_s32): Likewise.
12046 (vabdl_u8): Likewise.
12047 (vabdl_u16): Likewise.
12048 (vabdl_u32): Likewise.
12049 (vabdq_s8): Likewise.
12050 (vabdq_s16): Likewise.
12051 (vabdq_s32): Likewise.
12052 (vabdq_u8): Likewise.
12053 (vabdq_u16): Likewise.
12054 (vabdq_u32): Likewise.
12055 (vaddlv_s8): Likewise.
12056 (vaddlv_s16): Likewise.
12057 (vaddlv_u8): Likewise.
12058 (vaddlv_u16): Likewise.
12059 (vaddlvq_s8): Likewise.
12060 (vaddlvq_s16): Likewise.
12061 (vaddlvq_s32): Likewise.
12062 (vaddlvq_u8): Likewise.
12063 (vaddlvq_u16): Likewise.
12064 (vaddlvq_u32): Likewise.
12065 (vcvtx_f32_f64): Likewise.
12066 (vcvtx_high_f32_f64): Likewise.
12067 (vcvtxd_f32_f64): Likewise.
12068 (vmla_n_f32): Likewise.
12069 (vmla_n_s16): Likewise.
12070 (vmla_n_s32): Likewise.
12071 (vmla_n_u16): Likewise.
12072 (vmla_n_u32): Likewise.
12073 (vmla_s8): Likewise.
12074 (vmla_s16): Likewise.
12075 (vmla_s32): Likewise.
12076 (vmla_u8): Likewise.
12077 (vmla_u16): Likewise.
12078 (vmla_u32): Likewise.
12079 (vmlal_high_n_s16): Likewise.
12080 (vmlal_high_n_s32): Likewise.
12081 (vmlal_high_n_u16): Likewise.
12082 (vmlal_high_n_u32): Likewise.
12083 (vmlal_high_s8): Likewise.
12084 (vmlal_high_s16): Likewise.
12085 (vmlal_high_s32): Likewise.
12086 (vmlal_high_u8): Likewise.
12087 (vmlal_high_u16): Likewise.
12088 (vmlal_high_u32): Likewise.
12089 (vmlal_n_s16): Likewise.
12090 (vmlal_n_s32): Likewise.
12091 (vmlal_n_u16): Likewise.
12092 (vmlal_n_u32): Likewise.
12093 (vmlal_s8): Likewise.
12094 (vmlal_s16): Likewise.
12095 (vmlal_s32): Likewise.
12096 (vmlal_u8): Likewise.
12097 (vmlal_u16): Likewise.
12098 (vmlal_u32): Likewise.
12099 (vmlaq_n_f32): Likewise.
12100 (vmlaq_n_s16): Likewise.
12101 (vmlaq_n_s32): Likewise.
12102 (vmlaq_n_u16): Likewise.
12103 (vmlaq_n_u32): Likewise.
12104 (vmlaq_s8): Likewise.
12105 (vmlaq_s16): Likewise.
12106 (vmlaq_s32): Likewise.
12107 (vmlaq_u8): Likewise.
12108 (vmlaq_u16): Likewise.
12109 (vmlaq_u32): Likewise.
12110 (vmls_n_f32): Likewise.
12111 (vmls_n_s16): Likewise.
12112 (vmls_n_s32): Likewise.
12113 (vmls_n_u16): Likewise.
12114 (vmls_n_u32): Likewise.
12115 (vmls_s8): Likewise.
12116 (vmls_s16): Likewise.
12117 (vmls_s32): Likewise.
12118 (vmls_u8): Likewise.
12119 (vmls_u16): Likewise.
12120 (vmls_u32): Likewise.
12121 (vmlsl_high_n_s16): Likewise.
12122 (vmlsl_high_n_s32): Likewise.
12123 (vmlsl_high_n_u16): Likewise.
12124 (vmlsl_high_n_u32): Likewise.
12125 (vmlsl_high_s8): Likewise.
12126 (vmlsl_high_s16): Likewise.
12127 (vmlsl_high_s32): Likewise.
12128 (vmlsl_high_u8): Likewise.
12129 (vmlsl_high_u16): Likewise.
12130 (vmlsl_high_u32): Likewise.
12131 (vmlsl_n_s16): Likewise.
12132 (vmlsl_n_s32): Likewise.
12133 (vmlsl_n_u16): Likewise.
12134 (vmlsl_n_u32): Likewise.
12135 (vmlsl_s8): Likewise.
12136 (vmlsl_s16): Likewise.
12137 (vmlsl_s32): Likewise.
12138 (vmlsl_u8): Likewise.
12139 (vmlsl_u16): Likewise.
12140 (vmlsl_u32): Likewise.
12141 (vmlsq_n_f32): Likewise.
12142 (vmlsq_n_s16): Likewise.
12143 (vmlsq_n_s32): Likewise.
12144 (vmlsq_n_u16): Likewise.
12145 (vmlsq_n_u32): Likewise.
12146 (vmlsq_s8): Likewise.
12147 (vmlsq_s16): Likewise.
12148 (vmlsq_s32): Likewise.
12149 (vmlsq_u8): Likewise.
12150 (vmlsq_u16): Likewise.
12151 (vmlsq_u32): Likewise.
12152 (vmovl_high_s8): Likewise.
12153 (vmovl_high_s16): Likewise.
12154 (vmovl_high_s32): Likewise.
12155 (vmovl_high_u8): Likewise.
12156 (vmovl_high_u16): Likewise.
12157 (vmovl_high_u32): Likewise.
12158 (vmovl_s8): Likewise.
12159 (vmovl_s16): Likewise.
12160 (vmovl_s32): Likewise.
12161 (vmovl_u8): Likewise.
12162 (vmovl_u16): Likewise.
12163 (vmovl_u32): Likewise.
12164 (vmovn_high_s16): Likewise.
12165 (vmovn_high_s32): Likewise.
12166 (vmovn_high_s64): Likewise.
12167 (vmovn_high_u16): Likewise.
12168 (vmovn_high_u32): Likewise.
12169 (vmovn_high_u64): Likewise.
12170 (vmovn_s16): Likewise.
12171 (vmovn_s32): Likewise.
12172 (vmovn_s64): Likewise.
12173 (vmovn_u16): Likewise.
12174 (vmovn_u32): Likewise.
12175 (vmovn_u64): Likewise.
12176 (vmull_high_n_s16): Likewise.
12177 (vmull_high_n_s32): Likewise.
12178 (vmull_high_n_u16): Likewise.
12179 (vmull_high_n_u32): Likewise.
12180 (vmull_high_p8): Likewise.
12181 (vmull_high_s8): Likewise.
12182 (vmull_high_s16): Likewise.
12183 (vmull_high_s32): Likewise.
12184 (vmull_high_u8): Likewise.
12185 (vmull_high_u16): Likewise.
12186 (vmull_high_u32): Likewise.
12187 (vmull_n_s16): Likewise.
12188 (vmull_n_s32): Likewise.
12189 (vmull_n_u16): Likewise.
12190 (vmull_n_u32): Likewise.
12191 (vmull_p8): Likewise.
12192 (vmull_s8): Likewise.
12193 (vmull_s16): Likewise.
12194 (vmull_s32): Likewise.
12195 (vmull_u8): Likewise.
12196 (vmull_u16): Likewise.
12197 (vmull_u32): Likewise.
12198 (vpadal_s8): Likewise.
12199 (vpadal_s16): Likewise.
12200 (vpadal_s32): Likewise.
12201 (vpadal_u8): Likewise.
12202 (vpadal_u16): Likewise.
12203 (vpadal_u32): Likewise.
12204 (vpadalq_s8): Likewise.
12205 (vpadalq_s16): Likewise.
12206 (vpadalq_s32): Likewise.
12207 (vpadalq_u8): Likewise.
12208 (vpadalq_u16): Likewise.
12209 (vpadalq_u32): Likewise.
12210 (vpaddl_s8): Likewise.
12211 (vpaddl_s16): Likewise.
12212 (vpaddl_s32): Likewise.
12213 (vpaddl_u8): Likewise.
12214 (vpaddl_u16): Likewise.
12215 (vpaddl_u32): Likewise.
12216 (vpaddlq_s8): Likewise.
12217 (vpaddlq_s16): Likewise.
12218 (vpaddlq_s32): Likewise.
12219 (vpaddlq_u8): Likewise.
12220 (vpaddlq_u16): Likewise.
12221 (vpaddlq_u32): Likewise.
12222 (vpaddq_s8): Likewise.
12223 (vpaddq_s16): Likewise.
12224 (vpaddq_s32): Likewise.
12225 (vpaddq_s64): Likewise.
12226 (vpaddq_u8): Likewise.
12227 (vpaddq_u16): Likewise.
12228 (vpaddq_u32): Likewise.
12229 (vpaddq_u64): Likewise.
12230 (vqdmulh_n_s16): Likewise.
12231 (vqdmulh_n_s32): Likewise.
12232 (vqdmulhq_n_s16): Likewise.
12233 (vqdmulhq_n_s32): Likewise.
12234 (vqmovn_high_s16): Likewise.
12235 (vqmovn_high_s32): Likewise.
12236 (vqmovn_high_s64): Likewise.
12237 (vqmovn_high_u16): Likewise.
12238 (vqmovn_high_u32): Likewise.
12239 (vqmovn_high_u64): Likewise.
12240 (vqmovun_high_s16): Likewise.
12241 (vqmovun_high_s32): Likewise.
12242 (vqmovun_high_s64): Likewise.
12243 (vqrdmulh_n_s16): Likewise.
12244 (vqrdmulh_n_s32): Likewise.
12245 (vqrdmulhq_n_s16): Likewise.
12246 (vqrdmulhq_n_s32): Likewise.
12247 (vrsqrte_u32): Likewise.
12248 (vrsqrteq_u32): Likewise.
12249 (vtst_p8): Likewise.
12250 (vtst_p16): Likewise.
12251 (vtst_p64): Likewise.
12252 (vtstq_p8): Likewise.
12253 (vtstq_p16): Likewise.
12254 (vtstq_p64): Likewise.
12255 (vaddlv_s32): Likewise.
12256 (vaddlv_u32): Likewise.
12257 (vqtbl1_p8): Likewise.
12258 (vqtbl1_s8): Likewise.
12259 (vqtbl1_u8): Likewise.
12260 (vqtbl1q_p8): Likewise.
12261 (vqtbl1q_s8): Likewise.
12262 (vqtbl1q_u8): Likewise.
12263 (vqtbx1_s8): Likewise.
12264 (vqtbx1_u8): Likewise.
12265 (vqtbx1_p8): Likewise.
12266 (vqtbx1q_s8): Likewise.
12267 (vqtbx1q_u8): Likewise.
12268 (vqtbx1q_p8): Likewise.
12269 (vtbl1_s8): Likewise.
12270 (vtbl1_u8): Likewise.
12271 (vtbl1_p8): Likewise.
12272 (vtbl2_s8): Likewise.
12273 (vtbl2_u8): Likewise.
12274 (vtbl2_p8): Likewise.
12275 (vtbl3_s8): Likewise.
12276 (vtbl3_u8): Likewise.
12277 (vtbl3_p8): Likewise.
12278 (vtbl4_s8): Likewise.
12279 (vtbl4_u8): Likewise.
12280 (vtbl4_p8): Likewise.
12281 (vtbx2_s8): Likewise.
12282 (vtbx2_u8): Likewise.
12283 (vtbx2_p8): Likewise.
12284 (vld1_f32): Likewise.
12285 (vld1_f64): Likewise.
12286 (vld1_p8): Likewise.
12287 (vld1_p16): Likewise.
12288 (vld1_p64): Likewise.
12289 (vld1_s8): Likewise.
12290 (vld1_s16): Likewise.
12291 (vld1_s32): Likewise.
12292 (vld1_s64): Likewise.
12293 (vld1_u8): Likewise.
12294 (vld1_u16): Likewise.
12295 (vld1_u32): Likewise.
12296 (vld1_u64): Likewise.
12297 (vld1q_f32): Likewise.
12298 (vld1q_f64): Likewise.
12299 (vld1q_p8): Likewise.
12300 (vld1q_p16): Likewise.
12301 (vld1q_p64): Likewise.
12302 (vld1q_s8): Likewise.
12303 (vld1q_s16): Likewise.
12304 (vld1q_s32): Likewise.
12305 (vld1q_s64): Likewise.
12306 (vld1q_u8): Likewise.
12307 (vld1q_u16): Likewise.
12308 (vld1q_u32): Likewise.
12309 (vld1q_u64): Likewise.
12310 (vpmax_s8): Likewise.
12311 (vpmax_s16): Likewise.
12312 (vpmax_s32): Likewise.
12313 (vpmax_u8): Likewise.
12314 (vpmax_u16): Likewise.
12315 (vpmax_u32): Likewise.
12316 (vpmaxq_s8): Likewise.
12317 (vpmaxq_s16): Likewise.
12318 (vpmaxq_s32): Likewise.
12319 (vpmaxq_u8): Likewise.
12320 (vpmaxq_u16): Likewise.
12321 (vpmaxq_u32): Likewise.
12322 (vpmax_f32): Likewise.
12323 (vpmaxq_f32): Likewise.
12324 (vpmaxq_f64): Likewise.
12325 (vpmaxqd_f64): Likewise.
12326 (vpmaxs_f32): Likewise.
12327 (vpmaxnm_f32): Likewise.
12328 (vpmaxnmq_f32): Likewise.
12329 (vpmaxnmq_f64): Likewise.
12330 (vpmaxnmqd_f64): Likewise.
12331 (vpmaxnms_f32): Likewise.
12332 (vpmin_s8): Likewise.
12333 (vpmin_s16): Likewise.
12334 (vpmin_s32): Likewise.
12335 (vpmin_u8): Likewise.
12336 (vpmin_u16): Likewise.
12337 (vpmin_u32): Likewise.
12338 (vpminq_s8): Likewise.
12339 (vpminq_s16): Likewise.
12340 (vpminq_s32): Likewise.
12341 (vpminq_u8): Likewise.
12342 (vpminq_u16): Likewise.
12343 (vpminq_u32): Likewise.
12344 (vpmin_f32): Likewise.
12345 (vpminq_f32): Likewise.
12346 (vpminq_f64): Likewise.
12347 (vpminqd_f64): Likewise.
12348 (vpmins_f32): Likewise.
12349 (vpminnm_f32): Likewise.
12350 (vpminnmq_f32): Likewise.
12351 (vpminnmq_f64): Likewise.
12352 (vpminnmqd_f64): Likewise.
12353 (vpminnms_f32): Likewise.
12354 (vmla_f32): Likewise.
12355 (vmlaq_f32): Likewise.
12356 (vmlaq_f64): Likewise.
12357 (vmls_f32): Likewise.
12358 (vmlsq_f32): Likewise.
12359 (vmlsq_f64): Likewise.
12360 (vqtbl2_s8): Likewise.
12361 (vqtbl2_u8): Likewise.
12362 (vqtbl2_p8): Likewise.
12363 (vqtbl2q_s8): Likewise.
12364 (vqtbl2q_u8): Likewise.
12365 (vqtbl2q_p8): Likewise.
12366 (vqtbl3_s8): Likewise.
12367 (vqtbl3_u8): Likewise.
12368 (vqtbl3_p8): Likewise.
12369 (vqtbl3q_s8): Likewise.
12370 (vqtbl3q_u8): Likewise.
12371 (vqtbl3q_p8): Likewise.
12372 (vqtbl4_s8): Likewise.
12373 (vqtbl4_u8): Likewise.
12374 (vqtbl4_p8): Likewise.
12375 (vqtbl4q_s8): Likewise.
12376 (vqtbl4q_u8): Likewise.
12377 (vqtbl4q_p8): Likewise.
12378 (vqtbx2_s8): Likewise.
12379 (vqtbx2_u8): Likewise.
12380 (vqtbx2_p8): Likewise.
12381 (vqtbx2q_s8): Likewise.
12382 (vqtbx2q_u8): Likewise.
12383 (vqtbx2q_p8): Likewise.
12384 (vqtbx3_s8): Likewise.
12385 (vqtbx3_u8): Likewise.
12386 (vqtbx3_p8): Likewise.
12387 (vqtbx3q_s8): Likewise.
12388 (vqtbx3q_u8): Likewise.
12389 (vqtbx3q_p8): Likewise.
12390 (vqtbx4_s8): Likewise.
12391 (vqtbx4_u8): Likewise.
12392 (vqtbx4_p8): Likewise.
12393 (vqtbx4q_s8): Likewise.
12394 (vqtbx4q_u8): Likewise.
12395 (vqtbx4q_p8): Likewise.
12396 (vrev16_p8): Likewise.
12397 (vrev16_s8): Likewise.
12398 (vrev16_u8): Likewise.
12399 (vrev16q_p8): Likewise.
12400 (vrev16q_s8): Likewise.
12401 (vrev16q_u8): Likewise.
12402 (vrev32_p8): Likewise.
12403 (vrev32_p16): Likewise.
12404 (vrev32_s8): Likewise.
12405 (vrev32_s16): Likewise.
12406 (vrev32_u8): Likewise.
12407 (vrev32_u16): Likewise.
12408 (vrev32q_p8): Likewise.
12409 (vrev32q_p16): Likewise.
12410 (vrev32q_s8): Likewise.
12411 (vrev32q_s16): Likewise.
12412 (vrev32q_u8): Likewise.
12413 (vrev32q_u16): Likewise.
12414 (vrev64_f32): Likewise.
12415 (vrev64_p8): Likewise.
12416 (vrev64_p16): Likewise.
12417 (vrev64_s8): Likewise.
12418 (vrev64_s16): Likewise.
12419 (vrev64_s32): Likewise.
12420 (vrev64_u8): Likewise.
12421 (vrev64_u16): Likewise.
12422 (vrev64_u32): Likewise.
12423 (vrev64q_f32): Likewise.
12424 (vrev64q_p8): Likewise.
12425 (vrev64q_p16): Likewise.
12426 (vrev64q_s8): Likewise.
12427 (vrev64q_s16): Likewise.
12428 (vrev64q_s32): Likewise.
12429 (vrev64q_u8): Likewise.
12430 (vrev64q_u16): Likewise.
12431 (vrev64q_u32): Likewise.
12432 (vsha1cq_u32): Likewise.
12433 (vsha1mq_u32): Likewise.
12434 (vsha1pq_u32): Likewise.
12435 (vsha1h_u32): Likewise.
12436 (vsha1su0q_u32): Likewise.
12437 (vsha1su1q_u32): Likewise.
12438 (vsha256hq_u32): Likewise.
12439 (vsha256h2q_u32): Likewise.
12440 (vsha256su0q_u32): Likewise.
12441 (vsha256su1q_u32): Likewise.
12442 (vmull_p64): Likewise.
12443 (vmull_high_p64): Likewise.
12444 (vsqrt_f32): Likewise.
12445 (vsqrtq_f32): Likewise.
12446 (vsqrt_f64): Likewise.
12447 (vsqrtq_f64): Likewise.
12448 (vst1_f32): Likewise.
12449 (vst1_f64): Likewise.
12450 (vst1_p8): Likewise.
12451 (vst1_p16): Likewise.
12452 (vst1_p64): Likewise.
12453 (vst1_s8): Likewise.
12454 (vst1_s16): Likewise.
12455 (vst1_s32): Likewise.
12456 (vst1_s64): Likewise.
12457 (vst1_u8): Likewise.
12458 (vst1_u16): Likewise.
12459 (vst1_u32): Likewise.
12460 (vst1_u64): Likewise.
12461 (vst1q_f32): Likewise.
12462 (vst1q_f64): Likewise.
12463 (vst1q_p8): Likewise.
12464 (vst1q_p16): Likewise.
12465 (vst1q_p64): Likewise.
12466 (vst1q_s8): Likewise.
12467 (vst1q_s16): Likewise.
12468 (vst1q_s32): Likewise.
12469 (vst1q_s64): Likewise.
12470 (vst1q_u8): Likewise.
12471 (vst1q_u16): Likewise.
12472 (vst1q_u32): Likewise.
12473 (vst1q_u64): Likewise.
12474 (vst1_s64_x2): Likewise.
12475 (vst1_u64_x2): Likewise.
12476 (vst1_f64_x2): Likewise.
12477 (vst1_s8_x2): Likewise.
12478 (vst1_p8_x2): Likewise.
12479 (vst1_s16_x2): Likewise.
12480 (vst1_p16_x2): Likewise.
12481 (vst1_s32_x2): Likewise.
12482 (vst1_u8_x2): Likewise.
12483 (vst1_u16_x2): Likewise.
12484 (vst1_u32_x2): Likewise.
12485 (vst1_f16_x2): Likewise.
12486 (vst1_f32_x2): Likewise.
12487 (vst1_p64_x2): Likewise.
12488 (vst1q_s8_x2): Likewise.
12489 (vst1q_p8_x2): Likewise.
12490 (vst1q_s16_x2): Likewise.
12491 (vst1q_p16_x2): Likewise.
12492 (vst1q_s32_x2): Likewise.
12493 (vst1q_s64_x2): Likewise.
12494 (vst1q_u8_x2): Likewise.
12495 (vst1q_u16_x2): Likewise.
12496 (vst1q_u32_x2): Likewise.
12497 (vst1q_u64_x2): Likewise.
12498 (vst1q_f16_x2): Likewise.
12499 (vst1q_f32_x2): Likewise.
12500 (vst1q_f64_x2): Likewise.
12501 (vst1q_p64_x2): Likewise.
12502 (vst1_s64_x3): Likewise.
12503 (vst1_u64_x3): Likewise.
12504 (vst1_f64_x3): Likewise.
12505 (vst1_s8_x3): Likewise.
12506 (vst1_p8_x3): Likewise.
12507 (vst1_s16_x3): Likewise.
12508 (vst1_p16_x3): Likewise.
12509 (vst1_s32_x3): Likewise.
12510 (vst1_u8_x3): Likewise.
12511 (vst1_u16_x3): Likewise.
12512 (vst1_u32_x3): Likewise.
12513 (vst1_f16_x3): Likewise.
12514 (vst1_f32_x3): Likewise.
12515 (vst1_p64_x3): Likewise.
12516 (vst1q_s8_x3): Likewise.
12517 (vst1q_p8_x3): Likewise.
12518 (vst1q_s16_x3): Likewise.
12519 (vst1q_p16_x3): Likewise.
12520 (vst1q_s32_x3): Likewise.
12521 (vst1q_s64_x3): Likewise.
12522 (vst1q_u8_x3): Likewise.
12523 (vst1q_u16_x3): Likewise.
12524 (vst1q_u32_x3): Likewise.
12525 (vst1q_u64_x3): Likewise.
12526 (vst1q_f16_x3): Likewise.
12527 (vst1q_f32_x3): Likewise.
12528 (vst1q_f64_x3): Likewise.
12529 (vst1q_p64_x3): Likewise.
12530 (vst2_s64): Likewise.
12531 (vst2_u64): Likewise.
12532 (vst2_f64): Likewise.
12533 (vst2_s8): Likewise.
12534 (vst2_p8): Likewise.
12535 (vst2_s16): Likewise.
12536 (vst2_p16): Likewise.
12537 (vst2_s32): Likewise.
12538 (vst2_u8): Likewise.
12539 (vst2_u16): Likewise.
12540 (vst2_u32): Likewise.
12541 (vst2_f16): Likewise.
12542 (vst2_f32): Likewise.
12543 (vst2_p64): Likewise.
12544 (vst2q_s8): Likewise.
12545 (vst2q_p8): Likewise.
12546 (vst2q_s16): Likewise.
12547 (vst2q_p16): Likewise.
12548 (vst2q_s32): Likewise.
12549 (vst2q_s64): Likewise.
12550 (vst2q_u8): Likewise.
12551 (vst2q_u16): Likewise.
12552 (vst2q_u32): Likewise.
12553 (vst2q_u64): Likewise.
12554 (vst2q_f16): Likewise.
12555 (vst2q_f32): Likewise.
12556 (vst2q_f64): Likewise.
12557 (vst2q_p64): Likewise.
12558 (vst3_s64): Likewise.
12559 (vst3_u64): Likewise.
12560 (vst3_f64): Likewise.
12561 (vst3_s8): Likewise.
12562 (vst3_p8): Likewise.
12563 (vst3_s16): Likewise.
12564 (vst3_p16): Likewise.
12565 (vst3_s32): Likewise.
12566 (vst3_u8): Likewise.
12567 (vst3_u16): Likewise.
12568 (vst3_u32): Likewise.
12569 (vst3_f16): Likewise.
12570 (vst3_f32): Likewise.
12571 (vst3_p64): Likewise.
12572 (vst3q_s8): Likewise.
12573 (vst3q_p8): Likewise.
12574 (vst3q_s16): Likewise.
12575 (vst3q_p16): Likewise.
12576 (vst3q_s32): Likewise.
12577 (vst3q_s64): Likewise.
12578 (vst3q_u8): Likewise.
12579 (vst3q_u16): Likewise.
12580 (vst3q_u32): Likewise.
12581 (vst3q_u64): Likewise.
12582 (vst3q_f16): Likewise.
12583 (vst3q_f32): Likewise.
12584 (vst3q_f64): Likewise.
12585 (vst3q_p64): Likewise.
12586 (vst4_s64): Likewise.
12587 (vst4_u64): Likewise.
12588 (vst4_f64): Likewise.
12589 (vst4_s8): Likewise.
12590 (vst4_p8): Likewise.
12591 (vst4_s16): Likewise.
12592 (vst4_p16): Likewise.
12593 (vst4_s32): Likewise.
12594 (vst4_u8): Likewise.
12595 (vst4_u16): Likewise.
12596 (vst4_u32): Likewise.
12597 (vst4_f16): Likewise.
12598 (vst4_f32): Likewise.
12599 (vst4_p64): Likewise.
12600 (vst4q_s8): Likewise.
12601 (vst4q_p8): Likewise.
12602 (vst4q_s16): Likewise.
12603 (vst4q_p16): Likewise.
12604 (vst4q_s32): Likewise.
12605 (vst4q_s64): Likewise.
12606 (vst4q_u8): Likewise.
12607 (vst4q_u16): Likewise.
12608 (vst4q_u32): Likewise.
12609 (vst4q_u64): Likewise.
12610 (vst4q_f16): Likewise.
12611 (vst4q_f32): Likewise.
12612 (vst4q_f64): Likewise.
12613 (vst4q_p64): Likewise.
12614 (vtbx4_s8): Likewise.
12615 (vtbx4_u8): Likewise.
12616 (vtbx4_p8): Likewise.
12617 (vtrn_f32): Likewise.
12618 (vtrn_p8): Likewise.
12619 (vtrn_p16): Likewise.
12620 (vtrn_s8): Likewise.
12621 (vtrn_s16): Likewise.
12622 (vtrn_s32): Likewise.
12623 (vtrn_u8): Likewise.
12624 (vtrn_u16): Likewise.
12625 (vtrn_u32): Likewise.
12626 (vtrnq_f32): Likewise.
12627 (vtrnq_p8): Likewise.
12628 (vtrnq_p16): Likewise.
12629 (vtrnq_s8): Likewise.
12630 (vtrnq_s16): Likewise.
12631 (vtrnq_s32): Likewise.
12632 (vtrnq_u8): Likewise.
12633 (vtrnq_u16): Likewise.
12634 (vtrnq_u32): Likewise.
12635 (vrsqrte_f16): Likewise.
12636 (vrsqrteq_f16): Likewise.
12637 (vsqrt_f16): Likewise.
12638 (vsqrtq_f16): Likewise.
12639 (vabd_f16): Likewise.
12640 (vabdq_f16): Likewise.
12641 (vpadd_f16): Likewise.
12642 (vpaddq_f16): Likewise.
12643 (vpmax_f16): Likewise.
12644 (vpmaxq_f16): Likewise.
12645 (vpmaxnm_f16): Likewise.
12646 (vpmaxnmq_f16): Likewise.
12647 (vpmin_f16): Likewise.
12648 (vpminq_f16): Likewise.
12649 (vpminnm_f16): Likewise.
12650 (vpminnmq_f16): Likewise.
12651 (vrsqrts_f16): Likewise.
12652 (vrsqrtsq_f16): Likewise.
12653
12654 2019-09-25 Richard Biener <rguenther@suse.de>
12655
12656 PR tree-optimization/91896
12657 * tree-vect-loop.c (vectorizable_reduction): The single
12658 def-use cycle optimization cannot apply when there's more
12659 than one pattern stmt involved.
12660
12661 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12662
12663 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12664 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12665 (reload_macho_picbase_<mode>): Likewise.
12666
12667 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12668
12669 * config/rs6000/rs6000.md: Move darwin.md include until
12670 after the definition of the mode iterators.
12671
12672 2019-09-23 Martin Sebor <msebor@redhat.com>
12673
12674 PR tree-optimization/91570
12675 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12676 non-constant minlen, maxlen and maxbound.
12677
12678 2019-09-24 Richard Biener <rguenther@suse.de>
12679
12680 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12681 Rename to...
12682 (_stmt_vec_info::cond_reduc_code): ... this.
12683 (_stmt_vec_info::induc_cond_initial_val): Add.
12684 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12685 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12686 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12687 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12688 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12689 the reduction code.
12690 (vect_create_epilog_for_reduction): Drop special
12691 induction condition reduction params, pass in reduction code
12692 and simplify.
12693 (vectorizable_reduction): Perform condition reduction kind
12694 selection only at analysis time. Adjust passing on state.
12695
12696 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12697
12698 * config/aarch64/aarch64.md (mov<mode>): Don't call
12699 aarch64_split_dimode_const_store on volatile MEM.
12700
12701 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12702
12703 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12704 Update hwcap string for fp16fml.
12705
12706 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12707
12708 PR middle-end/91866
12709 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12710 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12711
12712 2019-09-24 Martin Liska <mliska@suse.cz>
12713
12714 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12715 instead of if-elseif-elseif-...
12716 * gimple-expr.c (extract_ops_from_tree): Likewise.
12717 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12718 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12719
12720 2019-09-24 Martin Jambor <mjambor@suse.cz>
12721
12722 PR ipa/91831
12723 * ipa-param-manipulation.c (carry_over_param): Make a method of
12724 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12725 in case of a context mismatch.
12726 (ipa_param_body_adjustments::common_initialization): Adjust call to
12727 carry_over_param.
12728 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12729 private method carry_over_param.
12730
12731 2019-09-24 Martin Jambor <mjambor@suse.cz>
12732
12733 PR ipa/91832
12734 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12735
12736 2019-09-24 Richard Biener <rguenther@suse.de>
12737
12738 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12739 base.
12740
12741 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12742
12743 * config/arm/t-arm (arm-builtins.o): Add dependency on
12744 arm_acle_builtins.def.
12745
12746 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12747
12748 PR target/91823
12749 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12750 canonical CONST_INTs. Use gen_rtvec.
12751
12752 2019-09-23 Richard Biener <rguenther@suse.de>
12753
12754 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12755 avoid adjusting by + 0 or * 1.
12756 (vect_create_epilog_for_reduction): Get reduction code only
12757 when necessary. Deal with adjustment_def only when necessary.
12758
12759 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12760
12761 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12762 memmodel index.
12763
12764 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12765
12766 PR ipa/91835
12767 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12768 "ipa-sra".
12769
12770 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12771
12772 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12773 code. Merge code blocks with common conditionals. Use declared
12774 macro instead of a magic number for PIC level.
12775
12776 2019-09-21 Martin Sebor <msebor@redhat.com>
12777
12778 PR middle-end/91830
12779 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12780 Simplify computation of the offset of the referenced subobject.
12781
12782 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12783
12784 * config/darwin.c (machopic_legitimize_pic_address): Check
12785 for lra not reload.
12786
12787 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12788
12789 * ira-conflicts.c (can_use_same_reg_p): New function.
12790 (process_reg_shuffles): Take an insn parameter. Ignore cases
12791 in which input operand op_num could seemingly never be allocated
12792 to the same register as the destination.
12793 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12794
12795 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12796
12797 * simplify-rtx.c (neg_const_int): Replace with...
12798 (neg_poly_int_rtx): ...this new function.
12799 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12800 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12801 (simplify_plus_minus): Likewise for constant terms here.
12802
12803 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12804
12805 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12806 HOST_WIDE_PRINT_UNSIGNED.
12807
12808 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12809
12810 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12811 character.
12812
12813 2019-09-20 Maya Rashish <coypu@sdf.org>
12814
12815 PR target/86811
12816 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12817 Define to speculation_safe_value_not_needed.
12818
12819 2019-09-20 Richard Biener <rguenther@suse.de>
12820 Uros Bizjak <ubizjak@gmail.com>
12821
12822 PR target/91814
12823 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12824 previous change.
12825 (general_scalar_chain::convert_op): Force not suitable memory
12826 operands to a register.
12827
12828 2019-09-20 Richard Biener <rguenther@suse.de>
12829
12830 PR tree-optimization/91821
12831 * tree-vect-loop.c (check_reduction_path): Check we can compute
12832 reduc_idx.
12833 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12834 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12835 operands in canonical order.
12836 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12837 STMT_VINFO_REDUC_IDX.
12838 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12839 (STMT_VINFO_REDUC_IDX): Likewise.
12840
12841 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12842
12843 PR target/91269
12844 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12845
12846 2019-09-20 Richard Biener <rguenther@suse.de>
12847
12848 PR tree-optimization/91822
12849 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12850 parameter.
12851 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12852 for reduc_index in nested cycles, adjust vectorizable_condition
12853 calls.
12854 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12855 parameter.
12856 (vect_analyze_stmt): Adjust.
12857 (vect_transform_stmt): Likewise.
12858
12859 2019-09-20 Richard Biener <rguenther@suse.de>
12860
12861 PR target/91767
12862 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12863 Ensure there's a sequence point between allocating the new register
12864 and passing a reference to a reg via regno_reg_rtx.
12865
12866 2019-09-20 Martin Jambor <mjambor@suse.cz>
12867
12868 * coretypes.h (cgraph_edge): Declare.
12869 * ipa-param-manipulation.c: Rewrite.
12870 * ipa-param-manipulation.h: Likewise.
12871 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12872 (OBJS): Added ipa-sra.o.
12873 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12874 and ref_p, added fields param_adjustments and performed_splits.
12875 (struct cgraph_clone_info): Remove ags_to_skip and
12876 combined_args_to_skip, new field param_adjustments.
12877 (cgraph_node::create_clone): Changed parameters to use
12878 ipa_param_adjustments.
12879 (cgraph_node::create_virtual_clone): Likewise.
12880 (cgraph_node::create_virtual_clone_with_body): Likewise.
12881 (tree_function_versioning): Likewise.
12882 (cgraph_build_function_type_skip_args): Removed.
12883 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12884 using ipa_param_adjustments.
12885 (clone_of_p): Likewise.
12886 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12887 (build_function_decl_skip_args): Likewise.
12888 (duplicate_thunk_for_node): Adjust parameters using
12889 ipa_param_body_adjustments, copy param_adjustments instead of
12890 args_to_skip.
12891 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12892 (cgraph_node::create_virtual_clone): Likewise.
12893 (cgraph_node::create_version_clone_with_body): Likewise.
12894 (cgraph_materialize_clone): Likewise.
12895 (symbol_table::materialize_all_clones): Likewise.
12896 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12897 ipa_replace_map check.
12898 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12899 (initialize_node_lattices): Make aware that some parameters might have
12900 already been removed.
12901 (want_remove_some_param_p): New function.
12902 (create_specialized_node): Convert to using ipa_param_adjustments and
12903 deal with possibly pre-existing adjustments.
12904 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12905 (output_node_opt_summary): Do not stream removed fields. Stream
12906 parameter adjustments instead of argumetns to skip.
12907 (input_node_opt_summary): Likewise.
12908 (input_node_opt_summary): Likewise.
12909 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12910 * lto-streamer.h (lto_section_type): Likewise.
12911 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12912 param_body_adjs.
12913 (copy_decl_to_var): Declare.
12914 * tree-inline.c (update_clone_info): Do not remap old_tree.
12915 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12916 statements, walk all extra generated statements and remap their
12917 operands.
12918 (redirect_all_calls): Add killed SSA names to a hash set.
12919 (remap_ssa_name): Do not remap killed SSA names.
12920 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12921 half of functionality moved to ipa_param_body_adjustments.
12922 (copy_decl_to_var): Make exported.
12923 (copy_body): Destroy killed_new_ssa_names hash set.
12924 (expand_call_inline): Remap performed splits.
12925 (update_clone_info): Likewise.
12926 (tree_function_versioning): Simplify tree_map processing. Updated to
12927 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12928 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12929 for the new interface.
12930 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12931 (simd_clone_compute_base_data_type): Likewise.
12932 (simd_clone_init_simd_arrays): Adjust for the new interface.
12933 (simd_clone_adjust_argument_types): Likewise.
12934 (struct modify_stmt_info): Likewise.
12935 (ipa_simd_modify_stmt_ops): Likewise.
12936 (ipa_simd_modify_function_body): Likewise.
12937 (simd_clone_adjust): Likewise.
12938 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12939 (type_internals_preclude_sra_p): Make public.
12940 * tree-sra.h: New file.
12941 * ipa-inline-transform.c (save_inline_function_body): Update to
12942 refelct new tree_function_versioning signature.
12943 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12944 ipa_param_adjustments to get current parameter indices.
12945 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12946 (ipcp_update_bits): Likewise.
12947 (ipcp_update_vr): Likewise.
12948 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12949 * ipa-sra.c: New file.
12950 * multiple_target.c (create_target_clone): Update to reflet new type
12951 of create_version_clone_with_body.
12952 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12953 tree_function_versioning.
12954 (modify_function): Update to reflect new type of
12955 tree_function_versioning.
12956 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12957 * passes.def: Remove old IPA-SRA and add new one.
12958 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12959 (make_pass_ipa_sra): Declare.
12960 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12961 ipa_sra_retvalues.
12962 * doc/invoke.texi (ipa-sra-max-replacements): New.
12963
12964 2019-09-19 Martin Sebor <msebor@redhat.com>
12965
12966 PR middle-end/91631
12967 * builtins.c (component_size): Correct trailing array computation,
12968 rename to component_ref_size and move...
12969 (compute_objsize): Adjust.
12970 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12971 (builtin_access::strict): Do not consider memmove.
12972 (builtin_access::write_off): New function.
12973 (builtin_memref::builtin_memref): Initialize refsize.
12974 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12975 refsize.
12976 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12977 Handle refsize.
12978 (builtin_access::builtin_access): Initialize dstoff to destination
12979 refeence offset here instead of in maybe_diag_overlap. Adjust
12980 referencess even to unrelated objects. Adjust sizrange of bounded
12981 string functions to reflect bound. For strcat, adjust destination
12982 sizrange by that of source.
12983 (builtin_access::strcat_overlap): Adjust offsets and sizes
12984 to reflect the increase in destination sizrange above.
12985 (builtin_access::overlap): Do not set dstoff here but instead
12986 in builtin_access::builtin_access.
12987 (check_bounds_or_overlap): Use builtin_access::write_off.
12988 (maybe_diag_access_bounds): Add argument. Add informational notes.
12989 (dump_builtin_memref, dump_builtin_access): New functions.
12990 * tree.c (component_ref_size): ...to here.
12991 * tree.h (component_ref_size): Declare.
12992 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12993 nul in the size of the source string.
12994
12995 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12996
12997 PR c/67224
12998 * doc/cpp.texi: Document support for extended characters in
12999 identifiers.
13000 * doc/cppopts.texi: Likewise.
13001
13002 2019-09-19 Richard Biener <rguenther@suse.de>
13003
13004 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
13005 (check_reduction_path): New overload having the path as result.
13006 (vect_is_simple_reduction): From the detected reduction
13007 path build a SLP reduction chain if possible.
13008
13009 2019-09-19 Richard Biener <rguenther@suse.de>
13010
13011 PR target/91814
13012 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
13013 Force operand to a register if it isn't nonimmediate_operand.
13014
13015 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
13016
13017 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
13018 * config/arm/iterators.md (optab): Add and, ior, xor entries.
13019 (logical_op): Remove code attribute.
13020 (logical_OP): Likewise.
13021
13022 2019-09-19 Martin Liska <mliska@suse.cz>
13023
13024 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
13025 Use proper casting.
13026
13027 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
13028
13029 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
13030 registers with %R.
13031
13032 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
13033 for NE comparison of TImode values.
13034 (aarch64_emit_load_exclusive): Add support for TImode.
13035 (aarch64_emit_store_exclusive): Likewise.
13036 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
13037 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
13038 Change iterator from ALLI to ALLI_TI.
13039 (@atomic_compare_and_swap<JUST_TI>): New.
13040 (@atomic_compare_and_swap<JUST_TI>_lse): New.
13041 (aarch64_load_exclusive_pair): New.
13042 (aarch64_store_exclusive_pair): New.
13043 * config/aarch64/iterators.md (JUST_TI): New.
13044
13045 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
13046 strong_zero_p for aarch64_track_speculation; unify some code paths;
13047 use aarch64_gen_compare_reg instead of open-coding.
13048
13049 * config/aarch64/aarch64.opt (-moutline-atomics): New.
13050 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
13051 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
13052 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
13053 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
13054 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
13055 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
13056 (atomic_<atomic_op><ALLI>): Likewise.
13057 (atomic_fetch_<atomic_op><ALLI>): Likewise.
13058 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
13059 * doc/invoke.texi: Document -moutline-atomics.
13060
13061 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
13062
13063 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
13064 trivial predicate for condition branch.
13065 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
13066 for switch case.
13067 (compute_bb_predicates): Update predicate based on post-dominating
13068 relationship.
13069 (analyze_function_body): Calculate post-dominating information.
13070
13071 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
13072
13073 * tree-vectorizer.h (vectorizable_condition): Take an int
13074 reduction index instead of a boolean flag.
13075 * tree-vect-stmts.c (vectorizable_condition): Likewise.
13076 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
13077 reductions if the reduction accumulator is the "then" rather
13078 than the "else" value.
13079 (vect_analyze_stmt): Update call accordingly.
13080 (vect_transform_stmt): Likewise.
13081 * tree-vect-loop.c (vectorizable_reduction): Likewise,
13082 asserting that the index is > 0.
13083
13084 2019-09-19 Martin Liska <mliska@suse.cz>
13085
13086 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
13087 (sort_congruence_classes_by_decl_uid): Likewise.
13088 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
13089 easier sorting.
13090 (sem_item_optimizer::merge_classes): Likewise.
13091
13092 2019-09-19 Richard Biener <rguenther@suse.de>
13093
13094 PR tree-optimization/91812
13095 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
13096 volatile loads.
13097
13098 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
13099
13100 * defaults.h (TARGET_UNIT): New macro.
13101 (target_unit): New type.
13102 * rtl.h (native_encode_rtx, native_decode_rtx)
13103 (native_decode_vector_rtx, subreg_size_lsb): Declare.
13104 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
13105 * rtlanal.c (subreg_lsb_1): Delete.
13106 (subreg_size_lsb): New function.
13107 * simplify-rtx.c: Include rtx-vector-builder.h
13108 (simplify_immed_subreg): Delete.
13109 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
13110 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
13111 functions.
13112 (simplify_subreg): Use them.
13113 (test_vector_subregs_modes, test_vector_subregs_repeating)
13114 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
13115 (test_vector_subregs): New functions.
13116 (test_vector_ops): Call test_vector_subregs for integer vector
13117 modes with at least 2 elements.
13118
13119 2019-09-19 Richard Biener <rguenther@suse.de>
13120
13121 * tree-parloops.c (parloops_is_slp_reduction): Do not set
13122 LOOP_VINFO_OPERANDS_SWAPPED.
13123 (parloops_is_simple_reduction): Likewise.
13124 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
13125 initialize operands_swapped.
13126 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
13127 (vect_is_slp_reduction): Do not swap operands.
13128 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
13129 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
13130
13131 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
13132
13133 PR target/87007
13134 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
13135 Add avx_partial_xmm_update.
13136
13137 2019-09-18 Jim Wilson <jimw@sifive.com>
13138
13139 PR target/91683
13140 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
13141 (riscv_move_integer): Likewise.
13142 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
13143 riscv_move_integer arg.
13144 (riscv_legitimize_move): Likewise.
13145 (riscv_force_temporary): New parameter in_splitter. Don't call
13146 force_reg if true.
13147 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
13148 arg.
13149 (riscv_add_offset): Likewise.
13150 (riscv_split_symbol): New parameter in_splitter. Pass to
13151 riscv_force_temporary.
13152 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
13153 arg.
13154 (riscv_move_integer): New parameter in_splitter. New local
13155 can_create_psuedo. Don't call riscv_split_integer or force_reg when
13156 in_splitter TRUE.
13157 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
13158 riscv_split_symbol, and riscv_force_temporary args.
13159 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
13160 riscv_move_integer arg.
13161 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
13162
13163 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13164
13165 PR target/90878
13166 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
13167 hard register store cost to 6.
13168
13169 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13170
13171 PR target/91446
13172 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
13173 pseudo register store cost from 3 to 6 to make it the same as
13174 QImode and HImode.
13175
13176 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13177
13178 PR target/91738
13179 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
13180 (one_cmpldi2): Likewise.
13181 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
13182 of the constant parts is simple.
13183 * config/arm/iterators.md (LOGICAL): Add new code iterator.
13184 (logical_op): Add new code attribute.
13185 (logical_OP): Likewise.
13186 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
13187 (arm_iordi_operand): Add predicate.
13188 (arm_xordi_operand): Add predicate.
13189
13190 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13191
13192 * config/arm/arm.md (maddsidi4): Remove expander.
13193 (mulsidi3adddi): Remove pattern.
13194 (mulsidi3adddi_v6): Likewise.
13195 (mulsidi3_nov6): Likewise.
13196 (mulsidi3_v6): Likewise.
13197 (umulsidi3): Remove expander.
13198 (umulsidi3_nov6): Remove pattern.
13199 (umulsidi3_v6): Likewise.
13200 (umulsidi3adddi): Likewise.
13201 (umulsidi3adddi_v6): Likewise.
13202 (<Us>mulsidi3): Add combined expander.
13203 (<Us>maddsidi4): Likewise.
13204 (<US>mull): Add combined umull and smull pattern.
13205 (<US>mlal): Likewise.
13206 * config/arm/iterators.md (Us): Add new iterator.
13207
13208 2019-09-18 Richard Biener <rguenther@suse.de>
13209
13210 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
13211 swapping.
13212 (vectorize_fold_left_reduction): Remove assert.
13213 (vectorizable_reduction): Also expect COND_EXPR non-reduction
13214 operand in position 2. Remove assert.
13215
13216 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13217
13218 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
13219 (smulsi3_highpart_nov6): Remove pattern.
13220 (smulsi3_highpart_v6): Likewise.
13221 (umulsi3_highpart): Likewise.
13222 (umulsi3_highpart_nov6): Likewise.
13223 (umulsi3_highpart_v6): Likewise.
13224 (<US>mull_high): Add new combined multiply pattern.
13225
13226 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13227
13228 * config/arm/arm.md (arm_mulsi3): Remove pattern.
13229 (arm_mulsi3_v6): Likewise.
13230 (mulsi3addsi_v6): Likewise.
13231 (mulsi3subsi): Likewise.
13232 (mul): Add new multiply pattern.
13233 (mla): Likewise.
13234 (mls): Likewise.
13235
13236 2019-09-18 Richard Biener <rguenther@suse.de>
13237
13238 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
13239 (parloops_valid_reduction_input_p): Copy from
13240 valid_reduction_input_p.
13241 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
13242 (parloops_needs_fold_left_reduction_p): Copy from
13243 needs_fold_left_reduction_p.
13244 (parloops_is_simple_reduction): Copy from
13245 vect_is_simple_reduction.
13246 (parloops_force_simple_reduction): Copy from
13247 vect_force_simple_reduction.
13248 (gather_scalar_reductions): Adjust.
13249 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
13250 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
13251
13252 2019-09-18 Richard Biener <rguenther@suse.de>
13253
13254 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
13255 * tree-vect-loop.c (get_initial_def_for_reduction): Make
13256 static.
13257 (vect_create_epilog_for_reduction): Remove dead code.
13258
13259 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13260
13261 * varasm.c (assemble_real): Generate canonical const_ints.
13262
13263 2019-09-18 Richard Biener <rguenther@suse.de>
13264
13265 PR lto/91763
13266 * lto-streamer-in.c (input_eh_regions): Move EH init to
13267 lto_materialize_function.
13268 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
13269 Likewise.
13270
13271 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13272
13273 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
13274 are INTEGER_CSTs.
13275
13276 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13277
13278 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
13279 of checking specifically for INTEGER_CST.
13280
13281 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13282
13283 * stor-layout.c (compute_record_mode): Operate on poly_uint64
13284 sizes instead of uhwi sizes.
13285
13286 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13287
13288 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
13289 (add_const_value_attribute): Handle CONST_POLY_INT.
13290
13291 2019-09-18 Martin Liska <mliska@suse.cz>
13292
13293 * dbgcnt.def (store_merging): New counter.
13294 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
13295 Use it in store merging.
13296
13297 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13298
13299 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
13300 function.
13301 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13302 * config/arm/arm.c (arm_sched_variable_issue): New function.
13303 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13304
13305 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13306
13307 * config/arm/types.md (no_reservation): New reservation.
13308 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
13309 no_insn here.
13310 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
13311 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
13312 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
13313 * config/arm/arm1020e.md (1020alu_op): Likewise.
13314 * config/arm/arm1026ejs.md (alu_op): Likewise.
13315 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13316 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13317 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13318 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
13319 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13320 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13321 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
13322 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
13323 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13324 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13325 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13326 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
13327 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
13328 * config/arm/fa526.md (526_alu_op): Likewise.
13329 * config/arm/fa606te.md (606te_alu_op): Likewise.
13330 * config/arm/fa626te.md (626te_alu_op): Likewise.
13331 * config/arm/fa726te.md (726te_alu_op): Likewise.
13332 * config/arm/xgene1.md (xgene1_nop): Likewise.
13333
13334 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13335
13336 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
13337 "no_insn" to "branch".
13338
13339 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13340
13341 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
13342
13343 2019-09-17 Richard Biener <rguenther@suse.de>
13344
13345 PR debug/91772
13346 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
13347 was missing generate locations only once.
13348
13349 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
13350
13351 PR ipa/91089
13352 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
13353 option.
13354 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
13355 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
13356 for switch default case using range analysis information.
13357
13358 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
13359
13360 PR target/91749
13361 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
13362 mode attributed is supported by FDPIC.
13363
13364 2019-09-17 Richard Biener <rguenther@suse.de>
13365
13366 PR tree-optimization/91790
13367 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
13368 use the correct DR for setting up realignment.
13369
13370 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
13371
13372 PR target/91719
13373 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
13374 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
13375 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
13376 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
13377
13378 2019-09-16 Jason Merrill <jason@redhat.com>
13379
13380 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
13381
13382 2019-09-16 Martin Liska <mliska@suse.cz>
13383
13384 * gimple-fold.c (or_comparisons_1): Remove rules moved
13385 to ...
13386 * match.pd: ... here.
13387
13388 2019-09-16 Martin Liska <mliska@suse.cz>
13389
13390 * gimple-fold.c (or_comparisons_1): Remove rules
13391 moved to ...
13392 * match.pd: ... here.
13393
13394 2019-09-16 Martin Liska <mliska@suse.cz>
13395
13396 * genmatch.c (dt_node::append_simplify): Do not print
13397 warning when we have duplicate patterns belonging
13398 to a same simplify rule.
13399 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
13400 (maybe_fold_comparisons_from_match_pd): Handle
13401 tcc_comparison as a results.
13402 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
13403
13404 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13405 Qi Feng <ffengqi@linux.ibm.com>
13406
13407 PR middle-end/88784
13408 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
13409 (x > y && x == XXX_MIN): Optimize into 'false'.
13410 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
13411 (x < y && x != XXX_MAX): Optimize into 'x < y'.
13412 (x < y && x == XXX_MAX): Optimize into 'false'.
13413 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
13414 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
13415 (x <= y || x != XXX_MIN): Optimize into 'true'.
13416 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
13417 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
13418 (x >= y || x != XXX_MAX): Optimize into 'true'.
13419 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
13420
13421 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13422 Martin Liska <mliska@suse.cz>
13423
13424 * gimple-fold.c (and_comparisons_1): Add type as first
13425 argument.
13426 (and_var_with_comparison): Likewise.
13427 (and_var_with_comparison_1): Likewise.
13428 (or_comparisons_1): Likewise.
13429 (or_var_with_comparison): Likewise.
13430 (or_var_with_comparison_1): Likewise.
13431 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
13432 (maybe_fold_or_comparisons): Likewise.
13433 (maybe_fold_comparisons_from_match_pd): New.
13434 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
13435 (maybe_fold_or_comparisons): Likewise.
13436 * gimple.c (gimple_size): Make it public and add num_ops argument.
13437 (gimple_init): New function.
13438 (gimple_alloc): Call gimple_init.
13439 * gimple.h (gimple_size): New.
13440 (gimple_init): Likewise.
13441 * tree-if-conv.c (fold_or_predicates): Pass type.
13442 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13443 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
13444 (optimize_vec_cond_expr): Likewise.
13445 (ovce_extract_ops): Return type of conditional expression.
13446 * tree-ssanames.c (init_ssa_name_imm_use): New.
13447 (make_ssa_name_fn): Use init_ssa_name_imm_use.
13448 * tree-ssanames.h (init_ssa_name_imm_use): New.
13449
13450 2019-09-16 Richard Biener <rguenther@suse.de>
13451
13452 PR tree-optimization/91756
13453 PR tree-optimization/87132
13454 * tree-ssa-alias.h (enum translate_flags): New.
13455 (get_continuation_for_phi): Use it instead of simple bool flag.
13456 (walk_non_aliased_vuses): Likewise.
13457 * tree-ssa-alias.c (maybe_skip_until): Adjust.
13458 (get_continuation_for_phi): When looking across backedges only
13459 disallow valueization.
13460 (walk_non_aliased_vuses): Adjust.
13461 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
13462 if requested.
13463
13464 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
13465
13466 PR middle-end/80791
13467 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
13468 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13469 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13470 * target.def (have_count_reg_decr_p): New hook.
13471 (doloop_cost_for_generic): Likewise.
13472 (doloop_cost_for_address): Likewise.
13473 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
13474 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13475 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13476 * doc/tm.texi: Regenerate.
13477 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
13478 addend.
13479 (record_group): Init doloop_p.
13480 (add_candidate_1): Add optional argument doloop, change the handlings
13481 accordingly.
13482 (add_candidate): Likewise.
13483 (generic_predict_doloop_p): Update attribute.
13484 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
13485 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
13486 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
13487 MIN_EXPR.
13488 (get_computation_cost): Update for doloop IV cand extra cost.
13489 (determine_group_iv_cost_cond): Update for doloop IV cand.
13490 (determine_iv_cost): Likewise.
13491 (ivopts_estimate_reg_pressure): Likewise.
13492 (may_eliminate_iv): Update handlings for doloop IV cand.
13493 (add_iv_candidate_for_doloop): New function.
13494 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13495 (iv_ca_set_no_cp): Update for doloop IV cand.
13496 (iv_ca_set_cp): Likewise.
13497 (iv_ca_dump): Dump register cost.
13498 (find_doloop_use): New function.
13499 (analyze_and_mark_doloop_use): Likewise.
13500 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13501
13502 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13503
13504 PR middle-end/91708
13505 * cse.c (cse_insn): Do not replace anything with a
13506 MEM.
13507
13508 2019-09-13 Ian Lance Taylor <iant@golang.org>
13509
13510 * doc/invoke.texi (Optimize Options): Fix typo.
13511
13512 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
13513
13514 PR tree-optimization/89386
13515 * config/i386/sse.md (smulhrs<mode>3): New expander.
13516 (smulhrsv4hi3): Ditto.
13517
13518 2019-09-12 Richard Biener <rguenther@suse.de>
13519
13520 PR tree-optimization/91750
13521 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13522 in the type of the evolution.
13523
13524 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
13525
13526 PR tree-optimization/89386
13527 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13528 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13529 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13530 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13531 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13532 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13533 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13534 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13535 (su, r): Handle the unspecs above.
13536 (bt): New int attribute.
13537 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13538 * internal-fn.c (first_commutative_argument): Commutativity info for
13539 above.
13540 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13541 (umulhrs_optab): New optabs.
13542 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13543 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13544 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13545 function.
13546 (vect_vect_recog_func_ptrs): Add it.
13547
13548 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
13549
13550 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13551 code.
13552
13553 2019-09-11 Nathan Sidwell <nathan@acm.org>
13554
13555 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13556 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13557
13558 2019-09-11 Richard Biener <rguenther@suse.de>
13559
13560 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13561 * lto-wrapper.c (merge_and_complain): Pick up -g.
13562 (append_compiler_options): Likewise.
13563 (run_gcc): Re-instantiate handling -g0 at link-time.
13564 * doc/invoke.texi (flto): Document debug info generation.
13565
13566 2019-09-11 Richard Biener <rguenther@suse.de>
13567
13568 PR tree-optimization/90387
13569 * vr-values.c (vr_values::extract_range_basic): After inlining
13570 simplify non-constant __builtin_constant_p to false.
13571
13572 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13573
13574 PR rtl-optimization/89795
13575 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13576 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13577
13578 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13579
13580 PR tree-optimization/91723
13581 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13582 instead of pointer equality when checking if argument vectypes are
13583 the same.
13584
13585 PR middle-end/91725
13586 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13587 of get_nonzero_bits, only call it for integral types.
13588
13589 2019-09-11 Richard Biener <rguenther@suse.de>
13590
13591 Revert
13592 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13593
13594 * match.pd: Add flag_unsafe_math_optimizations check
13595 before deciding on the widest type in a binary math operation.
13596
13597 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13598
13599 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13600 and CALL_REALLY_USED_REGISTERS must be defined, and that
13601 CALL_REALLY_USED_REGISTERS is preferred.
13602 * doc/tm.texi: Regenerate.
13603 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13604 (call_really_used_regs): Likewise.
13605 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13606 CALL_REALLY_USED_REGISTERS are defined.
13607 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13608 initial value if defined.
13609 (initial_call_really_used_regs): Delete.
13610 (saved_call_really_used_regs): Likewise.
13611 (CALL_REALLY_USED_REGNO_P): Likewise.
13612 (init_reg_sets): Remove handling of call_really_used_regs.
13613 (save_register_info, restore_register_info, globalize_reg): Likewise.
13614 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13615 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13616 outside operand_reg_set.
13617 (fix_register): Don't change call_used_regs if
13618 CALL_REALLY_USED_REGISTERS is defined.
13619 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13620 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13621 instead of call_really_used_regs.
13622 (csky_conditional_register_usage): Remove the old handling of
13623 call_used_regs and change the handling of call_really_used_regs
13624 to use call_used_regs instead.
13625 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13626 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13627 making a register fixed.
13628 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13629 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13630 instead of call_really_used_regs.
13631 (m32r_conditional_register_usage): Don't set call_used_regs when
13632 making a register fixed.
13633 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13634 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13635 instead of call_really_used_regs.
13636 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13637 (mips_cfun_call_saved_reg_p): Likewise.
13638 (mips_swap_registers): Remove the old handling of call_used_regs
13639 and change the handling of call_really_used_regs to use call_used_regs
13640 instead.
13641 (mips_conditional_register_usage): Likewise.
13642 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13643 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13644 instead of call_really_used_regs.
13645 (mn10300_get_live_callee_saved_regs): Likewise.
13646 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13647 (mn10300_conditional_register_usage): Don't set call_used_regs when
13648 making a register fixed.
13649 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13650 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13651 Remove the old handling of call_used_regs and change the handling
13652 of call_really_used_regs to use call_used_regs instead.
13653 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13654 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13655 instead of call_really_used_regs.
13656 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13657 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13658 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13659 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13660 (s390_conditional_register_usage): Remove the old handling of
13661 call_used_regs and change the handling of call_really_used_regs
13662 to use call_used_regs instead.
13663 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13664 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13665 (sh_fix_range, reg_unused_after): Likewise.
13666 (sh_conditional_register_usage): Remove the old handling of
13667 call_used_regs and change the handling of call_really_used_regs
13668 to use call_used_regs instead.
13669 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13670 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13671 call_used_regs when making a register fixed.
13672 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13673 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13674 call_used_regs when making a register fixed.
13675 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13676 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13677 set call_used_regs when making a register fixed.
13678 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13679 * config/visium/visium.c (visium_conditional_register_usage): Remove
13680 the old handling of call_used_regs and change the handling of
13681 call_really_used_regs to use call_used_regs instead.
13682
13683 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13684
13685 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13686 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13687 * reginfo.c (call_used_regs): New macro.
13688
13689 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13690
13691 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13692 fixed_regs test.
13693 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13694 (bpf_expand_epilogue): Likewise.
13695 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13696 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13697 (ft32_expand_epilogue): Likewise.
13698 * config/i386/i386.c (ix86_save_reg): Likewise.
13699 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13700 (moxie_expand_epilogue): Likewise.
13701 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13702 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13703 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13704
13705 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13706
13707 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13708 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13709 instead of testing call_used_regs directly.
13710 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13711 (aarch64_components_for_bb): Likewise.
13712 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13713 * config/arc/arc.c (arc_must_save_register): Likewise.
13714 (arc_epilogue_uses): Likewise.
13715 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13716 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13717 (arm_compute_save_reg0_reg12_mask): Likewise.
13718 (arm_compute_save_core_reg_mask): Likewise.
13719 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13720 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13721 (cmse_nonsecure_entry_clear_before_return): Likewise.
13722 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13723 (arm_expand_epilogue): Likewise.
13724 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13725 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13726 (_reg_unused_after): Likewise.
13727 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13728 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13729 (add_to_reg, hwloop_optimize): Likewise.
13730 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13731 (bpf_expand_epilogue): Likewise.
13732 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13733 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13734 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13735 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13736 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13737 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13738 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13739 * config/frv/frv.c (frv_stack_info): Likewise.
13740 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13741 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13742 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13743 (move_callee_saved_registers): Likewise.
13744 * config/h8300/h8300.c (byte_reg): Likewise.
13745 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13746 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13747 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13748 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13749 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13750 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13751 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13752 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13753 * config/m32c/m32c.c (need_to_save): Likewise.
13754 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13755 * config/mcore/mcore.c (calc_live_regs): Likewise.
13756 * config/microblaze/microblaze.c (microblaze_must_save_register):
13757 Likewise.
13758 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13759 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13760 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13761 (mmix_expand_epilogue): Likewise.
13762 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13763 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13764 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13765 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13766 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13767 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13768 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13769 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13770 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13771 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13772 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13773 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13774 * config/rl78/rl78.c (need_to_save): Likewise.
13775 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13776 (rs6000_stack_info, generate_set_vrsave): Likewise.
13777 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13778 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13779 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13780 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13781 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13782 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13783 (save_local_or_in_reg_p): Likewise.
13784 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13785 (xstormy16_epilogue_uses): Likewise.
13786 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13787 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13788 * config/v850/v850.c (compute_register_save_size): Likewise.
13789 * config/vax/vax.c (vax_expand_prologue): Likewise.
13790 * config/visium/visium.c (visium_save_reg_p): Likewise.
13791 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13792 * cselib.c (cselib_process_insn): Likewise.
13793 * df-scan.c (df_get_entry_block_def_set): Likewise.
13794 * function.c (aggregate_value_p): Likewise.
13795 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13796 * ira-lives.c (process_bb_node_lives): Likewise.
13797 * ira.c (do_reload): Likewise.
13798 * lra-lives.c (process_bb_lives): Likewise.
13799 * lra-remat.c (lra_remat): Likewise.
13800 * lra.c (lra): Likewise.
13801 * postreload.c (reload_combine_recognize_pattern): Likewise.
13802 (reload_cse_move2add): Likewise.
13803 * recog.c (peep2_find_free_register): Likewise.
13804 * regrename.c (check_new_reg_p): Likewise.
13805 * reload.c (find_equiv_reg): Likewise.
13806 * reload1.c (reload, find_reg): Likewise.
13807 * sel-sched.c (init_hard_regs_data): Likewise.
13808
13809 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13810
13811 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13812 regs_invalidated_by_call & ~fixed_reg_set instead of
13813 call_used_or_fixed_regs & ~fixed_reg_set.
13814 * config/sh/sh.c (output_stack_adjust): Likewise.
13815
13816 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13817
13818 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13819 (call_used_reg_set): Delete.
13820 (call_used_or_fixed_regs): New macro.
13821 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13822 of call_used_reg_set.
13823 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13824 instead of call_used_regs.
13825 (save_call_clobbered_regs): Likewise.
13826 * cfgcleanup.c (old_insns_match_p): Likewise.
13827 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13828 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13829 Likewise.
13830 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13831 * config/sh/sh.c (output_stack_adjust): Likewise.
13832 * final.c (collect_fn_hard_reg_usage): Likewise.
13833 * ira-build.c (ira_build): Likewise.
13834 * ira-color.c (calculate_saved_nregs): Likewise.
13835 (allocno_reload_assign, calculate_spill_cost): Likewise.
13836 * ira-conflicts.c (ira_build_conflicts): Likewise.
13837 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13838 * ira-lives.c (process_bb_node_lives): Likewise.
13839 * ira.c (setup_reg_renumber): Likewise.
13840 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13841 * lra-constraints.c (need_for_call_save_p): Likewise.
13842 (need_for_split_p, inherit_in_ebb): Likewise.
13843 * lra-lives.c (process_bb_lives): Likewise.
13844 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13845 * postreload.c (reload_combine): Likewise.
13846 * regrename.c (find_rename_reg): Likewise.
13847 * reload1.c (reload_as_needed): Likewise.
13848 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13849 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13850 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13851
13852 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13853
13854 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13855 (no_caller_save_reg_set): Delete.
13856 * caller-save.c (init_caller_save): Don't initialize it.
13857 * ira-conflicts.c (ira_build_conflicts): Calculate
13858 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13859
13860 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13861
13862 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13863 (target_hard_regs::x_savable_regs): New field.
13864 (call_fixed_reg_set): Delete.
13865 (savable_regs): New macro,
13866 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13867 (init_reg_sets_1): Likewise. Initialize savable_regs.
13868 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13869 for all registers. Set savable_regs instead of call_fixed_reg_set.
13870 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13871 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13872 * config/sh/sh.c (output_stack_adjust): Likewise.
13873
13874 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13875
13876 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13877 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13878 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13879
13880 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13881
13882 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13883 * rtlanal.c (get_call_rtx_from): Likewise.
13884 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13885 than the pattern to get_call_rtx_from.
13886 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13887 an rtx_insn * instead of an rtx.
13888 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13889
13890 2019-09-10 Martin Liska <mliska@suse.cz>
13891
13892 * common.opt: Use newly added WarnRemoved.
13893 * config/aarch64/aarch64.opt: Likewise.
13894 * config/arm/arm.opt: Likewise.
13895 * config/i386/i386.opt: Likewise.
13896 * config/ia64/ia64.opt: Likewise.
13897 * config/rs6000/rs6000.opt: Likewise.
13898 * doc/options.texi: Document WarnRemoved properly.
13899 * dwarf2out.c (gen_producer_string): Handle renamed
13900 OPT_SPECIAL_warn_removed.
13901 * lto-opts.c (lto_write_options): Likewise.
13902 * lto-wrapper.c (merge_and_complain): Likewise.
13903 * opts-common.c (decode_cmdline_option): Likewise.
13904 (prune_options): Likewise.
13905 (read_cmdline_option): Likewise.
13906 (control_warning_option): Likewise.
13907 * opts.c (print_filtered_help): Likewise.
13908 * optc-gen.awk: Parse for WarnRemoved and make usage
13909 of Deprecated an error.
13910 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13911
13912 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13913
13914 * doc/install.texi: Fix syntax for html generation.
13915
13916 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13917
13918 PR middle-end/91680
13919 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13920 the shift type to type.
13921
13922 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13923
13924 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13925 FDPIC mode.
13926 (stack_protect_combined_test_insn): Likewise.
13927
13928 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13929 Mickaël Guêné <mickael.guene@st.com>
13930
13931 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13932 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13933 (load_tp_soft_fdpic): New pattern.
13934 (load_tp_soft): Disable in FDPIC mode.
13935
13936 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13937 Mickaël Guêné <mickael.guene@st.com>
13938
13939 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13940 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13941 (arm_call_tls_get_addr): Add FDPIC support.
13942 (legitimize_tls_address): Likewise.
13943 (arm_emit_tls_decoration): Likewise.
13944
13945 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13946 Mickaël Guêné <mickael.guene@st.com>
13947
13948 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13949 support.
13950 (arm_trampoline_init): Likewise.
13951 (arm_trampoline_adjust_address): Likewise.
13952 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13953
13954 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13955 Mickaël Guêné <mickael.guene@st.com>
13956
13957 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13958 (legitimize_pic_address): Enforce binding rules on function
13959 pointers in FDPIC mode.
13960 (arm_assemble_integer): Likewise.
13961
13962 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13963 Mickaël Guêné <mickael.guene@st.com>
13964
13965 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13966 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13967 FDPIC.
13968
13969 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13970 Mickaël Guêné <mickael.guene@st.com>
13971
13972 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13973 field.
13974
13975 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13976 Mickaël Guêné <mickael.guene@st.com>
13977
13978 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13979 in FDPIC mode.
13980 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13981 new function.
13982 * config/arm/arm.c (arm_option_override): Define pic register to
13983 FDPIC_REGNUM.
13984 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13985 have no decl or go through PLT.
13986 (calculate_pic_address_constant): New function.
13987 (legitimize_pic_address): Call calculate_pic_address_constant.
13988 (arm_load_pic_register): Handle TARGET_FDPIC.
13989 (arm_is_segment_info_known): New function.
13990 (arm_pic_static_addr): Add support for FDPIC.
13991 (arm_load_function_descriptor): New function.
13992 (arm_emit_call_insn): Add support for FDPIC.
13993 (arm_assemble_integer): Add support for FDPIC.
13994 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13995 Define. (FDPIC_REGNUM): New define.
13996 * config/arm/arm.md (call): Add support for FDPIC.
13997 (call_value): Likewise.
13998 (restore_pic_register_after_call): New pattern.
13999 (untyped_call): Disable if FDPIC.
14000 (untyped_return): Likewise.
14001 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
14002
14003 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14004 Mickaël Guêné <mickael.guene@st.com>
14005
14006 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
14007 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
14008 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
14009 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
14010 (CC1_SPEC): Use FDPIC_CC1_SPEC.
14011 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
14012 * config/arm/uclinuxfdpiceabi.h: New file.
14013
14014 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14015
14016 * config.gcc: Handle *-*-uclinuxfdpiceabi.
14017
14018 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14019 Mickaël Guêné <mickael.guene@st.com>
14020
14021 * config/arm/arm.opt: Add -mfdpic option.
14022 * doc/invoke.texi: Add documentation for -mfdpic.
14023
14024 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
14025
14026 * expmed.c (extract_bit_field): Update function comment
14027 regarding alt_rtl.
14028 * expr.c (expand_expr_real): Update function comment
14029 regarding alt_rtl.
14030 (expand_misaligned_mem_ref): New helper function.
14031 (expand_expr_real_2): Use expand_misaligned_mem_ref.
14032 Remove duplicate assignment to "base" at case MEM_REF.
14033 Remove a shadowed variable "unsignedp" at case VCE.
14034
14035 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14036
14037 * regset.h (regs_invalidated_by_call_regset): Delete.
14038 (fixed_reg_set_regset): Likewise.
14039 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
14040 (fixed_reg_set_regset, persistent_obstack): Likewise.
14041 (init_reg_sets_1, globalize_reg): Update accordingly.
14042 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
14043 instead of a bitmap.
14044 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
14045 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
14046 instead of regs_invalidated_by_call_regset.
14047 (df_lr_confluence_n, df_md_confluence_n): Likewise.
14048 * df-scan.c (df_scan_start_dump): Likewise.
14049 * dse.c (copy_fixed_regs): Likewise.
14050 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
14051
14052 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14053
14054 * array-traits.h: New file.
14055 * coretypes.h (array_traits, bitmap_view): New types.
14056 * bitmap.h: Include "array-traits.h"
14057 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14058 (base_bitmap_view, bitmap_view): New classes.
14059 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14060 * hard-reg-set.h: Include array-traits.h.
14061 (array_traits<HARD_REG_SET>): New struct.
14062 * regset.h (IOR_REG_SET_HRS): New macro.
14063 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
14064 rather than iterating over each hard register.
14065 * sched-deps.c (sched_analyze_insn): Likewise.
14066 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
14067
14068 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14069
14070 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
14071 instead of a HARD_REG_SET *.
14072 * ira-build.c (ior_hard_reg_conflicts): Likewise.
14073 (ira_build): Update call accordingly.
14074 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
14075
14076 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14077
14078 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
14079 (HARD_REG_SET::operator!=): Likewise.
14080 (hard_reg_set_equal_p): Delete.
14081 * cfgcleanup.c (old_insns_match_p): Use == instead of
14082 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
14083 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
14084 (add_allocno_hard_regs_to_forest): Likewise.
14085 (setup_allocno_available_regs_num): Likewise.
14086 * ira.c (setup_pressure_classes): Likewise.
14087 (setup_allocno_and_important_classes): Likewise.
14088 (setup_reg_class_relations): Likewise.
14089 * lra-lives.c (process_bb_lives): Likewise.
14090 * reg-stack.c (change_stack, convert_regs_1): Likewise.
14091
14092 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14093
14094 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
14095 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
14096 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
14097 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
14098 Likewise.
14099 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
14100 * ira.c (setup_reg_renumber): Likewise.
14101 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14102 * regrename.c (regrename_find_superclass): Likewise.
14103 * reload1.c (find_reg): Likewise.
14104
14105 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14106
14107 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
14108 * caller-save.c (setup_save_areas): Use "&~" instead of
14109 AND_COMPL_HARD_REG_SET.
14110 (save_call_clobbered_regs): Likewise.
14111 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
14112 Likewise.
14113 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14114 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14115 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
14116 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14117 (mips_conditional_register_usage): Likewise.
14118 * config/sh/sh.c (output_stack_adjust): Likewise.
14119 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
14120 (setup_profitable_hard_regs): Likewise.
14121 (get_conflict_and_start_profitable_regs): Likewise.
14122 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14123 (ira_build_conflicts): Likewise.
14124 * ira-costs.c (restrict_cost_classes): Likewise.
14125 (setup_regno_cost_classes_by_aclass): Likewise.
14126 * ira-lives.c (process_bb_node_lives): Likewise.
14127 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
14128 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
14129 (setup_allocno_and_important_classes, setup_class_translate_array)
14130 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
14131 Likewise.
14132 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14133 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14134 (process_alt_operands, inherit_in_ebb): Likewise.
14135 * lra-eliminations.c (update_reg_eliminate): Likewise.
14136 * lra-lives.c (process_bb_lives): Likewise.
14137 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
14138 * resource.c (find_dead_or_set_registers): Likewise.
14139 (mark_target_live_regs): Likewise.
14140 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
14141 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14142 (implicit_clobber_conflict_p): Likewise.
14143 * shrink-wrap.c (requires_stack_frame_p): Likewise.
14144 (try_shrink_wrapping): Likewise.
14145
14146 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14147
14148 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
14149 (HARD_REG_SET::operator|=): Likewise.
14150 (IOR_HARD_REG_SET): Delete.
14151 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
14152 IOR_HARD_REG_SET.
14153 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14154 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
14155 * final.c (collect_fn_hard_reg_usage): Likewise.
14156 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
14157 * ira-build.c (merge_hard_reg_conflicts): Likewise.
14158 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
14159 (propagate_some_info_from_allocno): Likewise.
14160 (copy_info_to_removed_store_destinations): Likewise.
14161 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
14162 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
14163 (fast_allocation): Likewise.
14164 * ira-conflicts.c (ira_build_conflicts): Likewise.
14165 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
14166 (process_bb_node_lives): Likewise.
14167 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
14168 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14169 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14170 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
14171 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
14172 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
14173 (process_bb_lives): Likewise.
14174 * lra-spills.c (assign_spill_hard_regs): Likewise.
14175 * postreload.c (reload_combine): Likewise.
14176 * reginfo.c (init_reg_sets_1): Likewise.
14177 * regrename.c (merge_overlapping_regs, find_rename_reg)
14178 (merge_chains): Likewise.
14179 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
14180 (find_reload_regs, finish_spills, choose_reload_regs_init)
14181 (emit_reload_insns): Likewise.
14182 * reorg.c (redundant_insn): Likewise.
14183 * resource.c (find_dead_or_set_registers, mark_set_resources)
14184 (mark_target_live_regs): Likewise.
14185 * rtlanal.c (find_all_hard_reg_sets): Likewise.
14186 * sched-deps.c (sched_analyze_insn): Likewise.
14187 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14188 (find_best_reg_for_expr): Likewise.
14189 * shrink-wrap.c (try_shrink_wrapping): Likewise.
14190
14191 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14192
14193 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
14194 (HARD_REG_SET::operator&): Likewise.
14195 (AND_HARD_REG_SET): Delete.
14196 * caller-save.c (setup_save_areas): Use "&" instead of
14197 AND_HARD_REG_SET.
14198 (save_call_clobbered_regs): Likewise.
14199 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14200 * config/m32c/m32c.c (reduce_class): Likewise.
14201 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14202 * final.c (get_call_reg_set_usage): Likewise.
14203 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
14204 (setup_left_conflict_sizes_p): Likewise.
14205 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14206 (ira_build_conflicts): Likewise.
14207 * ira-costs.c (restrict_cost_classes): Likewise.
14208 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
14209 (setup_reg_class_relations): Likewise.
14210 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
14211 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
14212 * resource.c (find_dead_or_set_registers): Likewise.
14213 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14214
14215 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14216
14217 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
14218 (COMPL_HARD_REG_SET): Delete.
14219 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
14220 of COMPL_HARD_REG_SET.
14221 (try_rename_operands): Likewise.
14222 * config/sh/sh.c (push_regs): Likewise.
14223 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14224 * lra-constraints.c (contains_reg_p): Likewise.
14225 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
14226
14227 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14228
14229 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
14230 * caller-save.c (save_call_clobbered_regs): Use assignment instead
14231 of COPY_HARD_REG_SET.
14232 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
14233 (epiphany_conditional_register_usage): Likewise.
14234 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14235 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14236 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14237 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14238 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
14239 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14240 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
14241 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14242 * config/sh/sh.c (output_stack_adjust): Likewise.
14243 * final.c (collect_fn_hard_reg_usage): Likewise.
14244 (get_call_reg_set_usage): Likewise.
14245 * ira-build.c (ira_create_object, remove_low_level_allocnos)
14246 (ira_flattening): Likewise.
14247 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
14248 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
14249 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
14250 (ira_reassign_pseudos): Likewise.
14251 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14252 (ira_build_conflicts): Likewise.
14253 * ira-costs.c (restrict_cost_classes): Likewise.
14254 (setup_regno_cost_classes_by_aclass): Likewise.
14255 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
14256 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
14257 (setup_stack_reg_pressure_class, setup_pressure_classes)
14258 (setup_allocno_and_important_classes, setup_class_translate_array)
14259 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
14260 (ira_setup_eliminable_regset): Likewise.
14261 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14262 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14263 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14264 (process_alt_operands, inherit_in_ebb): Likewise.
14265 * lra-lives.c (process_bb_lives): Likewise.
14266 * lra-spills.c (assign_spill_hard_regs): Likewise.
14267 * lra.c (lra): Likewise.
14268 * mode-switching.c (new_seginfo): Likewise.
14269 * postreload.c (reload_combine): Likewise.
14270 * reg-stack.c (straighten_stack): Likewise.
14271 * reginfo.c (save_register_info, restore_register_info): Likewise.
14272 (init_reg_sets_1, record_subregs_of_mode): Likewise
14273 * regrename.c (create_new_chain, rename_chains): Likewise.
14274 * reload1.c (order_regs_for_reload, find_reg): Likewise.
14275 (find_reload_regs): Likewise.
14276 * resource.c (find_dead_or_set_registers): Likewise.
14277 (mark_target_live_regs): Likewise.
14278 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14279
14280 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14281
14282 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
14283 (note_pattern_stores): Declare.
14284 (note_stores): Take an rtx_insn *.
14285 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
14286 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
14287 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
14288 (note_stores): Take an rtx_insn * as argument and process
14289 CALL_INSN_FUNCTION_USAGE. Rename old function to...
14290 (note_pattern_stores): ...this.
14291 (find_first_parameter_load): Pass the insn rather than
14292 its pattern to note_stores.
14293 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
14294 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
14295 (insert_one_insn): Likewise.
14296 * combine.c (combine_instructions): Likewise.
14297 (likely_spilled_retval_p): Likewise.
14298 (try_combine): Use note_pattern_stores instead of note_stores.
14299 (record_dead_and_set_regs): Pass the insn rather than its pattern
14300 to note_stores.
14301 (reg_dead_at_p): Likewise.
14302 * config/bfin/bfin.c (workaround_speculation): Likewise.
14303 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
14304 rather than an rtx.
14305 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
14306 instead of note_stores.
14307 (frv_optimize_membar_local): Pass the insn rather than its pattern
14308 to note_stores.
14309 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14310 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
14311 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
14312 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
14313 (mips_reorg_process_insns): Likewise.
14314 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
14315 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
14316 rather than rtxes.
14317 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
14318 its pattern to note_stores.
14319 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
14320 of note_stores.
14321 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
14322 the insn to note_stores.
14323 (prescan_insns_for_dce): Update call accordingly.
14324 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
14325 to note_stores.
14326 * df-problems.c (can_move_insns_across): Likewise.
14327 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
14328 * function.c (assign_parm_setup_reg): Likewise.
14329 * gcse-common.c (record_last_mem_set_info_common): Likewise.
14330 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
14331 (single_set_gcse): Likewise.
14332 * ira.c (validate_equiv_mem): Likewise.
14333 (update_equiv_regs): Use note_pattern_stores rather than note_stores
14334 for no_equiv.
14335 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
14336 pattern to note_stores.
14337 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14338 * loop-iv.c (simplify_using_initial_values): Likewise.
14339 * mode-switching.c (optimize_mode_switching): Likewise.
14340 * optabs.c (emit_libcall_block_1): Likewise.
14341 (expand_atomic_compare_and_swap): Likewise.
14342 * postreload-gcse.c (load_killed_in_block_p): Likewise.
14343 (record_opr_changes): Likewise. Remove explicit handling of
14344 CALL_INSN_FUNCTION_USAGE.
14345 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
14346 * regcprop.c (kill_clobbered_values): Likewise.
14347 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
14348 to note_stores.
14349 * regrename.c (build_def_use): Likewise.
14350 * reload1.c (reload): Use note_pattern_stores instead of note_stores
14351 for mark_not_eliminable.
14352 (reload_as_needed): Pass the insn rather than its pattern
14353 to note_stores.
14354 (emit_output_reload_insns): Likewise.
14355 * resource.c (mark_target_live_regs): Likewise.
14356 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14357 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
14358 instead of note_stores.
14359 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
14360 its pattern to note_stores.
14361 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
14362 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
14363
14364 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14365
14366 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
14367 than a #define. Use a structure rather than an array as the
14368 fallback definition. Remove special cases for low array sizes.
14369 (const_hard_reg_set): New typedef.
14370 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
14371 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
14372 (hard_reg_set_empty_p): Likewise.
14373 (SET_HARD_REG_BIT): Use a function rather than a macro to
14374 handle the case in which HARD_REG_SET is a structure.
14375 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
14376 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
14377 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
14378 (IOR_COMPL_HARD_REG_SET): Likewise.
14379 (hard_reg_set_iterator::pset): Constify the pointer target.
14380 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
14381 of a "const HARD_REG_SET". Update the handling of non-integer
14382 HARD_REG_SETs.
14383 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
14384 * reload.h: Likewise.
14385 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
14386 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
14387 of a "const HARD_REG_SET".
14388 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
14389 (range_in_hard_reg_set_p): Likewise.
14390 * ira-costs.c (restrict_cost_classes): Likewise.
14391 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
14392 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14393 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
14394 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
14395 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
14396 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
14397 take an unsigned int and open-code the HARD_REG_SET operations.
14398
14399 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14400
14401 * Makefile.in (OBJS): Remove bt-load.o.
14402 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
14403 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14404 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
14405 document that the option no longer does anything.
14406 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14407 * target.def (branch_target_register_class): Delete.
14408 (branch_target_register_callee_saved): Likewise.
14409 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14410 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
14411 * doc/tm.texi: Regenerate.
14412 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
14413 (make_pass_branch_target_load_optimize2): Likewise.
14414 * passes.def (pass_branch_target_load_optimize1): Likewise.
14415 (pass_branch_target_load_optimize2): Likewise.
14416 * targhooks.h (default_branch_target_register_class): Likewise.
14417 * targhooks.c (default_branch_target_register_class): Likewise.
14418 * opt-suggestions.c (test_completion_valid_options): Remove
14419 -fbtr-bb-exclusive from the list of test options.
14420 * bt-load.c: Remove.
14421
14422 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
14423
14424 * match.pd: Add flag_unsafe_math_optimizations check
14425 before deciding on the widest type in a binary math operation.
14426
14427 2019-09-09 Martin Liska <mliska@suse.cz>
14428
14429 * config/i386/i386.opt: Update comment of removed
14430 options that are preserved only for backward
14431 compatibility.
14432
14433 2019-09-09 Jakub Jelinek <jakub@redhat.com>
14434
14435 PR target/87853
14436 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
14437 instead of __v16qs.
14438
14439 PR target/91704
14440 * config/i386/avxintrin.h (__v32qs): New typedef.
14441 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
14442 instead of __v32qi.
14443
14444 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14445
14446 * doc/invoke.texi (Option Summary): Cover eBPF.
14447 (eBPF Options): New section.
14448 * doc/extend.texi (BPF Built-in Functions): Likewise.
14449 (BPF Kernel Helpers): Likewise.
14450
14451 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14452
14453 * config.gcc: Support for bpf-*-* targets.
14454 * common/config/bpf/bpf-common.c: New file.
14455 * config/bpf/t-bpf: Likewise.
14456 * config/bpf/predicates.md: Likewise.
14457 * config/bpf/constraints.md: Likewise.
14458 * config/bpf/bpf.opt: Likewise.
14459 * config/bpf/bpf.md: Likewise.
14460 * config/bpf/bpf.h: Likewise.
14461 * config/bpf/bpf.c: Likewise.
14462 * config/bpf/bpf-protos.h: Likewise.
14463 * config/bpf/bpf-opts.h: Likewise.
14464 * config/bpf/bpf-helpers.h: Likewise.
14465 * config/bpf/bpf-helpers.def: Likewise.
14466
14467 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14468
14469 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14470 indirect_calls.
14471
14472 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14473
14474 * opt-functions.awk (integer_range_info): Make sure values are in
14475 numeric context before operating with them.
14476
14477 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
14478
14479 * genemit.c (gen_split): Print the filename and line number where the
14480 splitter (or peephole2) was defined, to the dump file.
14481
14482 2019-09-07 Jakub Jelinek <jakub@redhat.com>
14483
14484 PR tree-optimization/91665
14485 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
14486 incompatible with the type of PHI result.
14487
14488 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14489
14490 PR target/91684
14491 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
14492 gen_unaligned_storedi for 4-byte aligned addresses.
14493
14494 2019-09-06 Jim Wilson <jimw@sifive.com>
14495
14496 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14497 change.
14498
14499 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14500
14501 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14502
14503 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14504
14505 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14506 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14507
14508 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
14509
14510 PR target/91654
14511 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14512 cost of SSE->integer and integer->SSE moves from 2 to 6.
14513 (core_cost): Ditto.
14514
14515 2019-09-06 Jakub Jelinek <jakub@redhat.com>
14516
14517 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14518 before testing TYPE_TRANSPARENT_AGGR.
14519 * calls.c (initialize_argument_information, load_register_parameters):
14520 Likewise.
14521
14522 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
14523
14524 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14525 high regs.
14526 (cmp_ior): Likewise.
14527
14528 2019-09-06 Martin Liska <mliska@suse.cz>
14529
14530 * doc/match-and-simplify.texi: Separate tuples with ;.
14531
14532 2019-09-06 Martin Liska <mliska@suse.cz>
14533
14534 PR c++/91125
14535 * Makefile.in: Remove tlink.o.
14536 * collect2.c (do_link): New function isolated
14537 from do_tlink.
14538 (main): Use.
14539 * collect2.h (do_tlink): Remove declaration of do_tlink.
14540 * doc/extend.texi: Remove documentation of -frepo.
14541 * doc/invoke.texi: Likewise.
14542 * doc/sourcebuild.texi: Remove cleanup-repo-files.
14543 * tlink.c: Remove.
14544
14545 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14546 Jim Wilson <jimw@sifive.com>
14547
14548 PR target/91635
14549 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14550 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14551 paradoxical_subreg_p (operands[0]).
14552 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14553 use as intermediate value.
14554
14555 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
14556
14557 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14558 (sync_compare_and_swap<mode>_insn): Likewise.
14559
14560 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14561
14562 PR middle-end/91615
14563 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14564 without movmisalign optab.
14565
14566 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14567
14568 PR middle-end/91001
14569 PR middle-end/91105
14570 PR middle-end/91106
14571 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14572 types, use type of their first field instead of type of
14573 args[i].tree_value.
14574
14575 2019-09-05 Richard Biener <rguenther@suse.de>
14576
14577 PR rtl-optimization/91656
14578 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14579 of early out.
14580
14581 2019-09-05 Richard Biener <rguenther@suse.de>
14582
14583 PR middle-end/90501
14584 * tree-inline.c (declare_return_variable): Mark the return
14585 slot as addressable after building an address of it.
14586
14587 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14588
14589 * doc/install.texi: Update and clarify requirements to build GNAT.
14590
14591 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14592
14593 PR middle-end/91577
14594 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14595 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14596 call to be in memory.
14597 (pass_expand::execute): Call discover_nonconstant_array_refs before
14598 setting currently_expanding_to_rtl.
14599
14600 2019-09-04 Caroline Tice <cmtice@google.com>
14601
14602 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14603 specified together.
14604
14605 2019-09-04 Marek Polacek <polacek@redhat.com>
14606
14607 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14608
14609 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14610
14611 PR target/32413
14612 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14613 for QI and HImode moves between SSE and general registers.
14614
14615 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14616
14617 PR c/78736
14618 * doc/invoke.texi: Document -Wenum-conversion.
14619
14620 2019-09-04 Richard Biener <rguenther@suse.de>
14621
14622 PR rtl-optimization/36262
14623 * postreload-gcse.c: Include intl.h and gcse.h.
14624 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14625 to avoid linear list walk.
14626 (record_last_mem_set_info): Gate off if not computing transparentness.
14627 (get_bb_avail_insn): If transparentness isn't computed give up
14628 early.
14629 (gcse_after_reload_main): Skip compute_transp and extended PRE
14630 if gcse_or_cprop_is_too_expensive says so.
14631
14632 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14633
14634 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14635 noinit section.
14636 (msp430_select_section): Handle decls with the "noinit" attribute with
14637 default_elf_select_section.
14638 Handle SECCAT_RODATA_MERGE_* section types with
14639 default_elf_select_section.
14640 Add comments about handling of unsupported section types.
14641 (msp430_section_type_flags): Remove handling of the noinit section.
14642
14643 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14644
14645 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14646 conflicting msp430-specific attributes.
14647 (msp430_section_attr): Likewise.
14648 Add warnings about conflicts with generic "noinit" and "section"
14649 attributes.
14650 Fix grammar in -mlarge error message.
14651 (msp430_data_attr): Rename to msp430_persist_attr.
14652 Add warnings about conflicts with generic "noinit" and "section"
14653 attributes.
14654 Add warning for when variable is not initialized.
14655 Chain conditionals which prevent the attribute being added.
14656 (ATTR_EXCL): New helper.
14657 (attr_reent_exclusions): New exclusion table.
14658 (attr_naked_exclusions): Likewise.
14659 (attr_crit_exclusions): Likewise.
14660 (attr_lower_exclusions): Likewise.
14661 (attr_upper_exclusions): Likewise.
14662 (attr_either_exclusions): Likewise.
14663 (attr_persist_exclusions): Likewise.
14664 (msp430_attribute_table): Update with exclusion rules.
14665 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14666 has a section.
14667
14668 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14669
14670 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14671 (msp430_handle_generic_attribute): New function.
14672 * doc/tm.texi: Regenerate.
14673 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14674 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14675 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14676 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14677
14678 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14679
14680 PR tree-optimization/91504
14681 * match.pd: Add ((~a & b) ^a) --> (a | b).
14682
14683 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14684
14685 PR target/91604
14686 * config/i386/i386-expand.c (split_double_mode): If there is more than
14687 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14688 already split matching MEM operand instead of calling adjust_address
14689 again.
14690
14691 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14692
14693 * config.gcc: Obsolete spu target. Remove references to spu.
14694 * configure.ac: Remove references to spu.
14695 * configure: Regenerate.
14696 * config/spu/: Remove directory.
14697 * common/config/spu/: Remove directory.
14698
14699 * doc/extend.texi: Remove references to spu.
14700 * doc/invoke.texi: Likewise.
14701 * doc/md.texi: Likewise.
14702 * doc/sourcebuild.texi: Likewise.
14703
14704 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14705
14706 PR middle-end/91603
14707 PR middle-end/91612
14708 PR middle-end/91613
14709 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14710 and SSA_NAME referring to CONSTANT_P correctly.
14711
14712 2019-09-03 Richard Biener <rguenther@suse.de>
14713
14714 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14715 (vn_nary_op_insert): Likewise.
14716 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14717 (vn_nary_op_lookup): Likewise.
14718 (vn_nary_op_insert): Likewise.
14719
14720 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14721
14722 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14723 (*op0, 1) instead of XEXP (*op1, 0).
14724
14725 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14726
14727 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14728 (aarch64_fjcvtzs): New define_insn.
14729 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14730 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14731 Add AARCH64_JSCVT.
14732 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14733 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14734 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14735 __ARM_FEATURE_JCVT where appropriate.
14736 * config/aarch64/arm_acle.h (__jcvt): Define.
14737
14738 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14739
14740 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14741 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14742 (aarch64_<frintnzs_op><mode>): New define_insn.
14743 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14744 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14745 __ARM_FEATURE_FRINT when appropriate.
14746 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14747 frint32x, frint64z, frint64x.
14748 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14749 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14750 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14751 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14752 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14753 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14754 * config/aarch64/iterators.md (VSFDF): Define.
14755 (FRINTNZX): Likewise.
14756 (frintnzs_op): Likewise.
14757
14758 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14759
14760 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14761 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14762 Cortex-A34.
14763 * config/aarch64/aarch64-tune.md: Regenerated.
14764 * doc/invoke.texi: Document the new processors.
14765
14766 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14767
14768 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14769 string.
14770 (ssbs): Likewise.
14771 (sve2): Likewise.
14772 (sve2-sm4): Likewise.
14773 (sveaes): Likewise.
14774 (svesha3): Likewise.
14775 (svebitperm): Likewise.
14776
14777 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14778 Richard Biener <rguenther@suse.de>
14779
14780 PR tree-optimization/91597
14781 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14782 BIT_AND_EXPR optimization for pointers, even if both operand
14783 ranges don't include NULL, the result can be NULL.
14784
14785 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14786
14787 PR middle-end/91605
14788 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14789 (non_mem_decl_p): ...this.
14790 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14791 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14792 unconditionally as before.
14793
14794 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14795
14796 PR target/91323
14797 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14798 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14799 * tree.def (LTGT_EXPR): Likewise.
14800 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14801
14802 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14803
14804 PR go/91617
14805 * fold-const.c (range_check_type): For enumeral and boolean
14806 type, pass 1 to type_for_size langhook instead of
14807 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14808 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14809 (build_range_check): Don't call unsigned_type_for for pointer types.
14810 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14811 range_check_type result.
14812
14813 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14814
14815 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14816 (replace_ref): Do not replace a chain of only two candidates which are
14817 valid memory references.
14818
14819 2019-09-02 Martin Liska <mliska@suse.cz>
14820
14821 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14822 Bail out when we'll end up with the same number of clusters as
14823 at the beginning.
14824 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14825 (jump_table_cluster::can_be_handled): Remove the guard
14826 as it's already handled in ::is_enabled. Allocate output
14827 after early bail out.
14828
14829 2019-09-02 Martin Liska <mliska@suse.cz>
14830
14831 PR gcov-profile/91601
14832 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14833 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14834 also negative edges.
14835 (circuit): Handle also negative edges as they can happen
14836 in some situations.
14837
14838 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14839
14840 PR target/91472
14841 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14842 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14843 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14844
14845 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14846
14847 PR middle-end/91623
14848 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14849 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14850 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14851 zero vector.
14852
14853 PR lto/91572
14854 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14855 GIMPLE_ASM TREE_LIST operands.
14856
14857 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14858
14859 * doc/generic.texi (Unary and Binary Expressions): Mark up
14860 an instance of TYPE_MIN.
14861
14862 2019-08-31 Stafford Horne <shorne@gmail.com>
14863
14864 * config/or1k/constraints.md (t): New constraint.
14865 * config/or1k/or1k.h (GOT_REGS): New register class.
14866 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14867
14868 2019-08-30 Jim Wilson <jimw@sifive.com>
14869
14870 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14871 and -fpic and -mplt then disable -msave-restore and warn.
14872
14873 2019-08-30 Martin Sebor <msebor@redhat.com>
14874
14875 PR middle-end/91599
14876 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14877 the statement doesn't have one.
14878 * gimple-pretty-print.c (percent_G_format): Same.
14879
14880 PR middle-end/91584
14881 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14882 before using them to validate MEM_REF offset.
14883
14884 2019-08-30 Marek Polacek <polacek@redhat.com>
14885
14886 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14887
14888 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14889
14890 * config/arm/arm.md (unaligned_loaddi,
14891 unaligned_storedi): New unspec insn patterns.
14892 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14893 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14894 and unaligned_storedi for 4-byte aligned memory.
14895 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14896 4-byte aligned memory.
14897
14898 2019-08-30 Martin Jambor <mjambor@suse.cz>
14899
14900 tree-optimization/91579
14901 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14902 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14903 appropriate.
14904 (arg_needs_copy_p): Removed.
14905 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14906 arg_needs_copy_p.
14907 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14908
14909 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14910
14911 * config/i386/i386-features.c
14912 (general_scalar_chain::compute_convert_gain):
14913 Correct cost for double-word shifts.
14914 (general_scalar_to_vector_candidate_p): Reject count operands
14915 greater or equal to mode bitsize.
14916
14917 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14918
14919 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14920 for moves between SSE and non-general registers and between
14921 mask and non-general registers.
14922 (ix86_register_move_cost): Remove stalled comment.
14923
14924 2019-08-29 Richard Biener <rguenther@suse.de>
14925
14926 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14927 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14928
14929 2019-08-29 Richard Biener <rguenther@suse.de>
14930
14931 PR bootstrap/91580
14932 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14933 Do not emit scalar copies for debug-insns, instead replace
14934 their uses with the reg copy used in the chain or reset them
14935 if there is a reaching definition outside of the chain as well.
14936
14937 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14938
14939 PR target/91560
14940 * config/i386/i386-expand.c (expand_vec_perm_movs,
14941 expand_vec_perm_blend, expand_vec_perm_vpermil,
14942 expand_vec_perm_pshufb, expand_vec_perm_1,
14943 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14944 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14945 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14946 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14947 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14948 comments - replace ix86_expand_vec_perm_builtin_1 with
14949 ix86_expand_vec_perm_const_1.
14950 (expand_vec_perm2_vperm2f128_vblend): New function.
14951 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14952 expand_vec_perm2_vperm2f128_vblend as last resort.
14953 (canonicalize_perm): Formatting fix.
14954
14955 PR tree-optimization/91351
14956 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14957 unsigned_type_for.
14958 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14959 range_check_type returns NULL.
14960 * tree-switch-conversion.c (switch_conversion::build_one_array):
14961 Use range_check_type instead of unsigned_type_for, don't perform
14962 linear opt if it returns NULL.
14963 (bit_test_cluster::find_bit_tests): Formatting fix.
14964 (bit_test_cluster::emit): Use range_check_type instead of
14965 unsigned_type_for.
14966 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14967 returns NULL.
14968
14969 2019-08-29 Richard Biener <rguenther@suse.de>
14970
14971 PR tree-optimization/91568
14972 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14973 (vect_update_max_nunits): Add overload for poly_uint64.
14974 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14975 (vect_build_slp_tree): Record max_nunits into the subtree
14976 and merge it upwards.
14977 (vect_print_slp_tree): Print max_nunits.
14978
14979 2019-08-28 Marek Polacek <polacek@redhat.com>
14980
14981 Implement P1152R4: Deprecating some uses of volatile.
14982 PR c++/91361
14983 * doc/invoke.texi: Document -Wvolatile.
14984
14985 2019-08-28 Marek Polacek <polacek@redhat.com>
14986
14987 PR c++/91360 - Implement C++20 P1143R2: constinit.
14988 * doc/invoke.texi: Document -Wc++20-compat.
14989
14990 2019-08-28 Martin Sebor <msebor@redhat.com>
14991
14992 PR tree-optimization/91457
14993 * builtins.c (component_size): New function.
14994 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14995 * builtins.h (compute_objsize): Add argument.
14996 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14997 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14998 (vrp_prop::check_mem_ref): Same.
14999 (vrp_prop::search_for_addr_array): Set no-warning bit.
15000 (check_array_bounds): Same.
15001
15002 2019-08-28 Martin Sebor <msebor@redhat.com>
15003
15004 PR driver/80545
15005 * opts-common.c (option_enabled): Correct checking for language
15006 options.
15007
15008 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
15009
15010 * config/i386/i386.c (ix86_register_move_cost): Do not
15011 limit the cost of moves to/from XMM register to minimum 8.
15012
15013 2019-08-28 Martin Jambor <mjambor@suse.cz>
15014
15015 PR ipa/91468
15016 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
15017 checking assert a normal assert to test it really is redundant.
15018 * ipa-prop.c (compute_complex_assign_jump_func): Removed
15019 redundant test.
15020 (update_jump_functions_after_inlining): Removed combining unary
15021 arithmetic operations with an ancestor jump function.
15022 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
15023 instead of t.
15024
15025 2019-08-28 Richard Biener <rguenther@suse.de>
15026
15027 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
15028 add the MD problem.
15029
15030 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
15031 Richard Biener <rguenther@suse.de>
15032
15033 * expr.c (expand_assignment): Handle misaligned DECLs.
15034 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
15035 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
15036 too.
15037 (assign_parm_setup_stack): Allocate properly aligned stack slots.
15038 * varasm.c (build_constant_desc): Align constants of misaligned types.
15039 * config/arm/predicates.md (aligned_operand): New predicate.
15040 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
15041 aligned_operand to check restrictions on memory addresses.
15042 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
15043 * config/arm/vec-common.md (mov<VALL>): Likewise.
15044
15045 2019-08-28 Jakub Jelinek <jakub@redhat.com>
15046
15047 PR libgomp/91530
15048 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
15049 V_128 iterator instead of VI_128.
15050
15051 2019-08-28 Martin Liska <mliska@suse.cz>
15052
15053 PR tree-optimization/90970
15054 * builtins.c (check_access): Remove assignment to maxread
15055 as it hasn't been used since when it was introduced in r255755.
15056
15057 2019-08-27 Martin Sebor <msebor@redhat.com>
15058
15059 PR tree-optimization/91567
15060 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
15061 of unknown strings.
15062 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
15063 to PTRDIFF_MAX - 2.
15064
15065 2019-08-27 Jeff Law <law@redhat.com>
15066
15067 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
15068 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
15069
15070 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
15071
15072 PR target/91528
15073 * config/i386/i386-features.c (convert_scalars_to_vector):
15074 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
15075 crtl->stack_realign_processed. Update crtl->drap_reg by calling
15076 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
15077 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
15078
15079 2019-08-27 Richard Biener <rguenther@suse.de>
15080
15081 * config/i386/i386-features.h
15082 (general_scalar_chain::~general_scalar_chain): Add.
15083 (general_scalar_chain::insns_conv): New bitmap.
15084 (general_scalar_chain::n_sse_to_integer): New.
15085 (general_scalar_chain::n_integer_to_sse): Likewise.
15086 (general_scalar_chain::make_vector_copies): Adjust signature.
15087 * config/i386/i386-features.c
15088 (general_scalar_chain::general_scalar_chain): Outline,
15089 initialize new members.
15090 (general_scalar_chain::~general_scalar_chain): New.
15091 (general_scalar_chain::mark_dual_mode_def): Record insns
15092 we need to insert conversions at and count them.
15093 (general_scalar_chain::compute_convert_gain): Account
15094 for conversion instructions at chain boundary.
15095 (general_scalar_chain::make_vector_copies): Generate a single
15096 copy for a def by a specific insn.
15097 (general_scalar_chain::convert_registers): First populate
15098 defs_map, then make copies at out-of chain insns.
15099
15100 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
15101
15102 * config/arm/arm.md (stack_protect_set_insn): Add security-related
15103 comment.
15104 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
15105
15106 2019-08-27 Martin Liska <mliska@suse.cz>
15107
15108 * cgraph.c (cgraph_node::remove): Remove dead assignment before
15109 loop.
15110 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
15111 Enclose in anonymous namespace.
15112 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
15113 hard_register initialization in braces.
15114 * tree-vrp.h (value_range_base::supports_type_p): Return false
15115 for function with boolean return type.
15116
15117 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
15118
15119 * config/i386/i386.c (emit_i387_cw_initialization)
15120 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
15121
15122 2019-08-26 Martin Sebor <msebor@redhat.com>
15123
15124 PR c++/83431
15125 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
15126 (sprintf_dom_walker): Remove class.
15127 (get_int_range): Make argument const.
15128 (directive::fmtfunc, directive::set_precision): Same.
15129 (format_none): Same.
15130 (build_intmax_type_nodes): Same.
15131 (adjust_range_for_overflow): Same.
15132 (format_floating): Same.
15133 (format_character): Same.
15134 (format_string): Same.
15135 (format_plain): Same.
15136 (get_int_range): Cast away constness.
15137 (format_integer): Same.
15138 (get_string_length): Call get_range_strlen_dynamic. Handle
15139 null lendata.maxbound.
15140 (should_warn_p): Adjust argument scope qualifier.
15141 (maybe_warn): Same.
15142 (format_directive): Same.
15143 (parse_directive): Same.
15144 (is_call_safe): Same.
15145 (try_substitute_return_value): Same.
15146 (sprintf_dom_walker::handle_printf_call): Rename...
15147 (handle_printf_call): ...to this. Initialize target to host charmap
15148 here instead of in pass_sprintf_length::execute.
15149 (struct call_info): Make global.
15150 (sprintf_dom_walker::compute_format_length): Make global.
15151 (sprintf_dom_walker::handle_gimple_call): Same.
15152 * passes.def (pass_sprintf_length): Replace with pass_strlen.
15153 * print-rtl.c (print_pattern): Reduce the number of spaces to
15154 avoid -Wformat-truncation.
15155 * tree-pass.h (make_pass_warn_printf): New function.
15156 * tree-ssa-strlen.c (strlen_optimize): New variable.
15157 (get_string_length): Add comments.
15158 (get_range_strlen_dynamic): New function.
15159 (check_and_optimize_call): New function.
15160 (handle_integral_assign): New function.
15161 (strlen_check_and_optimize_stmt): Factor code out into
15162 strlen_check_and_optimize_call and handle_integral_assign.
15163 (strlen_dom_walker::evrp): New member.
15164 (strlen_dom_walker::before_dom_children): Use evrp member.
15165 (strlen_dom_walker::after_dom_children): Use evrp member.
15166 (printf_strlen_execute): New function.
15167 (pass_strlen::gate): Update to handle printf calls.
15168 (dump_strlen_info): New function.
15169 (pass_data_warn_printf): New variable.
15170 (pass_warn_printf): New class.
15171 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
15172 (handle_printf_call): Same.
15173 * tree-vrp.c (value_range_base::type): Adjust assertion.
15174 * vr-values.c (vr_values::update_value_range): Use type of the first
15175 argument rather than the second.
15176
15177 2019-08-26 Richard Biener <rguenther@suse.de>
15178
15179 * config/i386/i386-features.c (general_remove_non_convertible_regs):
15180 Remove.
15181 (convert_scalars_to_vector): Do not call it.
15182
15183 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15184 Uros Bizjak <ubizjak@gmail.com>
15185
15186 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
15187 CASE_MATHFN_FLOATN for roundeven.
15188 * config/i386/i386.c (ix86_i387_mode_needed): Add case
15189 I387_ROUNDEVEN.
15190 (ix86_mode_needed): Likewise.
15191 (ix86_mode_after): Likewise.
15192 (ix86_mode_entry): Likewise.
15193 (ix86_mode_exit): Likewise.
15194 (ix86_emit_mode_set): Likewise.
15195 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
15196 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
15197 (ix86_entity): Add I387_ROUNDEVEN.
15198 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
15199 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
15200 (define_int_iterator): Likewise.
15201 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
15202 (define_constant): Define ROUND_ROUNDEVEN mode.
15203 (define_attr): Add roundeven mode for i387_cw.
15204 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
15205 * internal-fn.def (ROUNDEVEN): New builtin function.
15206 * optabs.def (roundeven_optab): New optab.
15207
15208 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15209
15210 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
15211 for ROUNDEVEN.
15212 * builtins.def: Added function definitions for roundeven function
15213 variants.
15214 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
15215 function call. Adjust condition for floor, ceil, trunc and round.
15216 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
15217 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
15218 (integer_valued_real_call_p): Added case for roundeven function.
15219 * real.c (is_even): New function. Returns true if real number is even,
15220 otherwise returns false.
15221 (is_halfway_below): New function. Returns true if real number is
15222 halfway between two integers, else return false.
15223 (real_roundeven): New function. Round real number to nearest integer,
15224 rounding halfway cases towards even.
15225 * real.h (real_value): Added descriptive comments. Added function
15226 declaration for roundeven function.
15227 * doc/extend.texi (Other Builtins): List roundeven variants among
15228 functions which can be handled as builtins.
15229
15230 2019-08-26 Richard Biener <rguenther@suse.de>
15231
15232 PR target/91522
15233 PR target/91527
15234 * config/i386/i386-features.h (general_scalar_chain::defs_map):
15235 New member.
15236 (general_scalar_chain::replace_with_subreg): Remove.
15237 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15238 (general_scalar_chain::convert_reg): Adjust signature.
15239 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
15240 iterate over all defs of a reg.
15241 (general_scalar_chain::replace_with_subreg): Remove.
15242 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15243 (general_scalar_chain::make_vector_copies): Populate defs_map,
15244 place copy only after defs that are used as vectors in the chain.
15245 (general_scalar_chain::convert_reg): Emit a copy for a specific
15246 def in a specific instruction.
15247 (general_scalar_chain::convert_op): All reg uses are converted here.
15248 (general_scalar_chain::convert_insn): Emit copies for scalar
15249 uses of defs here. Replace uses with the copies we created.
15250 Replace and convert the def. Adjust REG_DEAD notes, remove
15251 REG_EQUIV/EQUAL notes.
15252 (general_scalar_chain::convert_registers): Only handle copies
15253 into the chain here.
15254
15255 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15256
15257 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
15258
15259 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15260
15261 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
15262 Add nop_convert case.
15263 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
15264 Fold all statements if requested.
15265 * tree-ssa-propagate.h (class substitute_and_fold_engine):
15266 Allow to fold all statements.
15267 * tree-vrp.c (class vrp_folder):
15268 Let substitute_and_fold_engine fold all statements.
15269
15270 2019-08-26 Richard Biener <rguenther@suse.de>
15271
15272 PR tree-optimization/91526
15273 * passes.def: Note that after late FRE we do TODO_update_address_taken.
15274 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
15275 TODO_update_address_taken.
15276
15277 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
15278
15279 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
15280 __STDC_HOSTED__.
15281
15282 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
15283
15284 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
15285 machine mode for unspec_volatile operand.
15286
15287 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
15288
15289 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
15290 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
15291 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
15292 (prefer_neon_for_64bits): Remove.
15293 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
15294 (tune_params): Remove PREF_NEON_64_FALSE uses.
15295 (arm_option_override): Remove prefer_neon selection code.
15296 (arm_print_tune_info): Remove prefer_neon_for_64bits.
15297 * config/arm/arm-protos.h (tune_params): Remove
15298 prefer_neon_for_64bits.
15299 (prefer_neon_for_64bits): Remove.
15300
15301 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
15302
15303 PR pch/61250
15304 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
15305 and issue any diagnostics needed before collecting the pre-PCH
15306 state.
15307
15308 2019-08-23 Jakub Jelinek <jakub@redhat.com>
15309
15310 PR middle-end/91283
15311 * common.opt (fexcess-precision=): Add Optimization flag. Use
15312 flag_excess_precision variable instead of
15313 flag_excess_precision_cmdline.
15314 * flags.h (class target_flag_state): Remove x_flag_excess_precision
15315 member.
15316 (flag_excess_precision): Don't define.
15317 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
15318 flag_excess_precision_cmdline. Remove comment.
15319 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
15320 and x_flag_excess_precision instead of
15321 frontend_set_flag_excess_precision_cmdline and
15322 x_flag_excess_precision_cmdline.
15323 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
15324 x_flag_excess_precision_cmdline.
15325 * toplev.c (init_excess_precision): Remove.
15326 (lang_dependent_init_target): Don't call it.
15327
15328 2019-08-23 Martin Liska <mliska@suse.cz>
15329
15330 * lto-wrapper.c (run_gcc): When setting jobserver
15331 set also parallel to 1. This was done so before r273908.
15332
15333 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
15334
15335 * config/arm/arm-cpus.in (cortex-m35p): New entry.
15336 (cortex-a76ae): Likewise.
15337 (cortex-a77): Likewise
15338 * config/arm/arm-tables.opt: Regenerate.
15339 * config/arm/arm-tune.md: Likewise.
15340 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
15341 cortex-a77 CPU options.
15342
15343 2019-08-23 Martin Liska <mliska@suse.cz>
15344
15345 * profile.c (instrument_values): Do not set
15346 0 as last argument.
15347 * tree-profile.c (gimple_gen_interval_profiler): Remove
15348 last argument.
15349 (gimple_gen_pow2_profiler): Likewise.
15350 (gimple_gen_topn_values_profiler): Likewise.
15351 (gimple_gen_ic_profiler): Likewise.
15352 (gimple_gen_time_profiler): Likewise.
15353 (gimple_gen_average_profiler): Likewise.
15354 (gimple_gen_ior_profiler): Likewise.
15355 * value-prof.c (dump_histogram_value): Use default
15356 in switch statement instead of HIST_TYPE_MAX.
15357 (stream_in_histogram_value): Likewise.
15358 (gimple_duplicate_stmt_histograms): Do not
15359 use NULL for implicitly set arguments.
15360 (gimple_divmod_values_to_profile): Do not use
15361 reserve+quick_push.
15362 (gimple_indirect_call_to_profile): Likewise.
15363 (gimple_find_values_to_profile): Use implicit
15364 function call arguments.
15365 * value-prof.h (gimple_alloc_histogram_value):
15366 Set default values.
15367 (gimple_gen_interval_profiler): Remove last argument.
15368 (gimple_gen_pow2_profiler): Likewise.
15369 (gimple_gen_topn_values_profiler): Likewise.
15370 (gimple_gen_ic_profiler): Likewise.
15371 (gimple_gen_time_profiler): Likewise.
15372 (gimple_gen_average_profiler): Likewise.
15373 (gimple_gen_ior_profiler): Likewise.
15374
15375 2019-08-22 Martin Sebor <msebor@redhat.com>
15376
15377 PR middle-end/91490
15378 * builtins.c (c_strlen): Rename argument and introduce new local.
15379 Set no-warning bit on original argument.
15380 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
15381 Fold empty and zero constructors into empty strings.
15382 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
15383 for missing initializers.
15384 * tree.c (build_string_literal): Handle optional argument.
15385 * tree.h (build_string_literal): Add defaulted argument.
15386 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
15387 no-warning bit on original expression.
15388
15389 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15390
15391 PR target/91481
15392 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15393 and UNSPEC_DARN_RAW.
15394 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
15395 UNSPECV_DARN_RAW.
15396 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
15397 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
15398 (darn): Use an unspec_volatile, and UNSPECV_DARN.
15399
15400 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15401
15402 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15403 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
15404 * config/rs6000/rs6000.md (unspec): ... here.
15405 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
15406 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15407 cmpeqb, *cmpeqb_internal): Delete, move to...
15408 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
15409 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15410 cmpeqb, *cmpeqb_internal): ... here.
15411
15412 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15413
15414 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
15415 intrinsics if __ARM_FP.
15416 Use __ARM_FEATURE_CRC32 ifdef guard.
15417
15418 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15419
15420 * config/arm/arm.md (neon_for_64bits): Remove.
15421 (avoid_neon_for_64bits): Remove.
15422 (arm_adddi3): Always split early.
15423 (arm_subdi3): Always split early.
15424 (negdi2): Remove Neon expansion.
15425 (split zero_extend): Split before reload.
15426 (split sign_extend): Split before reload.
15427
15428 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15429
15430 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
15431 (qhs_extenddi_cstr): Likewise.
15432 * config/arm/arm.md (ashldi3): Always expand early.
15433 (ashlsi3): Likewise.
15434 (ashrsi3): Likewise.
15435 (zero_extend<mode>di2): Remove Neon variants.
15436 (extend<mode>di2): Likewise.
15437 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
15438 (signed_shift_di3_neon): Likewise.
15439 (unsigned_shift_di3_neon): Likewise.
15440 (ashrdi3_neon_imm_noclobber): Likewise.
15441 (lshrdi3_neon_imm_noclobber): Likewise.
15442 (<shift>di3_neon): Likewise.
15443 (split extend): Remove DI extend split patterns.
15444
15445 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15446
15447 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
15448 (split not): Add DImode not splitter.
15449 (anddi3): Remove pattern.
15450 (anddi3_insn): Likewise.
15451 (anddi_zesidi_di): Likewise.
15452 (anddi_sesdi_di): Likewise.
15453 (anddi_notdi_di): Likewise.
15454 (anddi_notzesidi_di): Likewise.
15455 (anddi_notsesidi_di): Likewise.
15456 (iordi3): Likewise.
15457 (iordi3_insn): Likewise.
15458 (iordi_zesidi_di): Likewise.
15459 (iordi_sesidi_di): Likewise.
15460 (xordi3): Likewise.
15461 (xordi3_insn): Likewise.
15462 (xordi_sesidi_di): Likewise.
15463 (xordi_zesidi_di): Likewise.
15464 (one_cmpldi2): Likewise.
15465 (one_cmpldi2_insn): Likewise.
15466 * config/arm/constraints.md: Remove De, Df, Dg constraints.
15467 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
15468 alternative.
15469 (iwmmxt_xordi3): Likewise.
15470 (iwmmxt_anddi3): Likewise.
15471 * config/arm/neon.md (orndi3_neon): Remove pattern.
15472 (anddi_notdi_di): Likewise.
15473 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
15474 (arm_iordi_operand_neon): Likewise.
15475 (arm_xordi_operand_neon): Likewise.
15476 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
15477 (iordi_notzesidi_di): Likewise.
15478 (iordi_notdi_zesidi): Likewise.
15479 (iordi_notsesidi_di): Likewise.
15480
15481 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
15482
15483 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
15484 insn.
15485 (iorsi3_compare0_scratch): Likewise.
15486
15487 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
15488
15489 * config/aarch64/aarch64-simd-builtins.def:
15490 (ld1x4): New.
15491 (st1x4): Likewise.
15492 * config/aarch64/aarch64-simd.md:
15493 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15494 (aarch64_st1x4<VALLDIF:mode>): Likewise.
15495 (aarch64_ld1_x4_<mode>): Likewise.
15496 (aarch64_st1_x4_<mode>): Likewise.
15497 * config/aarch64/arm_neon.h:
15498 (vld1_s8_x4): New function.
15499 (vld1q_s8_x4): Likewise.
15500 (vld1_s16_x4): Likewise.
15501 (vld1q_s16_x4): Likewise.
15502 (vld1_s32_x4): Likewise.
15503 (vld1q_s32_x4): Likewise.
15504 (vld1_u8_x4): Likewise.
15505 (vld1q_u8_x4): Likewise.
15506 (vld1_u16_x4): Likewise.
15507 (vld1q_u16_x4): Likewise.
15508 (vld1_u32_x4): Likewise.
15509 (vld1q_u32_x4): Likewise.
15510 (vld1_f16_x4): Likewise.
15511 (vld1q_f16_x4): Likewise.
15512 (vld1_f32_x4): Likewise.
15513 (vld1q_f32_x4): Likewise.
15514 (vld1_p8_x4): Likewise.
15515 (vld1q_p8_x4): Likewise.
15516 (vld1_p16_x4): Likewise.
15517 (vld1q_p16_x4): Likewise.
15518 (vld1_s64_x4): Likewise.
15519 (vld1_u64_x4): Likewise.
15520 (vld1_p64_x4): Likewise.
15521 (vld1q_s64_x4): Likewise.
15522 (vld1q_u64_x4): Likewise.
15523 (vld1q_p64_x4): Likewise.
15524 (vld1_f64_x4): Likewise.
15525 (vld1q_f64_x4): Likewise.
15526 (vst1_s8_x4): Likewise.
15527 (vst1q_s8_x4): Likewise.
15528 (vst1_s16_x4): Likewise.
15529 (vst1q_s16_x4): Likewise.
15530 (vst1_s32_x4): Likewise.
15531 (vst1q_s32_x4): Likewise.
15532 (vst1_u8_x4): Likewise.
15533 (vst1q_u8_x4): Likewise.
15534 (vst1_u16_x4): Likewise.
15535 (vst1q_u16_x4): Likewise.
15536 (vst1_u32_x4): Likewise.
15537 (vst1q_u32_x4): Likewise.
15538 (vst1_f16_x4): Likewise.
15539 (vst1q_f16_x4): Likewise.
15540 (vst1_f32_x4): Likewise.
15541 (vst1q_f32_x4): Likewise.
15542 (vst1_p8_x4): Likewise.
15543 (vst1q_p8_x4): Likewise.
15544 (vst1_p16_x4): Likewise.
15545 (vst1q_p16_x4): Likewise.
15546 (vst1_s64_x4): Likewise.
15547 (vst1_u64_x4): Likewise.
15548 (vst1_p64_x4): Likewise.
15549 (vst1q_s64_x4): Likewise.
15550 (vst1q_u64_x4): Likewise.
15551 (vst1q_p64_x4): Likewise.
15552 (vst1_f64_x4): Likewise.
15553 (vst1q_f64_x4): Likewise.
15554
15555 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15556
15557 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15558
15559 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15560 Richard Sandiford <richard.sandiford@arm.com>
15561
15562 PR target/88839
15563 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15564 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15565
15566 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15567
15568 PR target/90724
15569 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15570 in reg if it fails aarch64_plus_operand predicate.
15571
15572 2019-08-21 Richard Biener <rguenther@suse.de>
15573
15574 PR tree-optimization/91482
15575 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15576 BUILT_IN_ASSUME_ALIGNED calls.
15577
15578 2019-08-21 Richard Biener <rguenther@suse.de>
15579
15580 PR target/91498
15581 PR target/91503
15582 * config/i386/i386-features.c
15583 (general_scalar_chain::make_vector_copies): Copy stack temporary
15584 rtx when using it multiple times.
15585 (general_scalar_chain::convert_reg): Likewise.
15586
15587 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15588
15589 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15590
15591 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15592
15593 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15594 catch more redundant zero initialization cases.
15595 (dse_dom_walker::dse_optimize_stmt): Likewise.
15596
15597 2019-08-20 Richard Biener <rguenther@suse.de>
15598
15599 PR lto/91307
15600 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15601 by collect2 when targetm.have_ctors_dtors which avoids dragging
15602 in temporary filenames from LTO input objects.
15603
15604 2019-08-20 Richard Biener <rguenther@suse.de>
15605
15606 PR tree-optimization/37242
15607 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15608 to (T)a + (T)b if we know that a + b does not overflow.
15609
15610 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15611
15612 PR rtl-optimization/91347
15613 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15614 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15615
15616 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15617
15618 * calls.h (function_arg_info): Add a pass_by_reference field,
15619 defaulting to false.
15620 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15621 when applying pass-by-reference semantics.
15622 (initialize_argument_information): Likewise.
15623 (emit_library_call_value_1): Likewise.
15624 * function.c (assign_parm_data_one): Remove passed_pointer field.
15625 (assign_parm_find_data_types): Don't set it.
15626 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15627 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15628 arg.pass_by_reference instead of passed_pointer.
15629
15630 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15631
15632 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15633 into a single function_arg_info, updating its fields when we
15634 apply pass-by-reference and promotion semantics. Use the
15635 function_arg_info to track the mode rather than keeping it in
15636 a separate local variable.
15637 (initialize_argument_information): Likewise. Base the final
15638 arg_to_skip on this new function_arg_info rather than creating
15639 a new one from scratch.
15640
15641 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15642
15643 * function.c (assign_parm_data_one): Replace passed_type,
15644 promoted_mode and named_arg with a function_arg_info field.
15645 (assign_parm_find_data_types): Remove local variables and
15646 assign directly to "data". Make data->passed_mode shadow
15647 data->arg.mode until promotion, then assign the promoted
15648 mode to data->arg.mode.
15649 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15650 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15651 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15652 (assign_parm_setup_block, assign_parm_setup_reg)
15653 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15654 arg.mode instead of promoted_mode, arg.type instead of passed_type
15655 and arg.named instead of named_arg. Use data->arg for
15656 function_arg_info structures that had the field values passed_type,
15657 promoted_mode and named_arg. Base other function_arg_infos on
15658 data->arg, changing the necessary properties.
15659
15660 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15661
15662 * calls.h (apply_pass_by_reference_rules): Declare.
15663 * calls.c (apply_pass_by_reference_rules): New function.
15664 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15665 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15666 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15667 * function.c (assign_parm_find_data_types): Likewise.
15668 * var-tracking.c (prepare_call_arguments): Likewise.
15669
15670 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15671
15672 * target.def (must_pass_in_stack): Take a function_arg_info instead
15673 of a mode and a type.
15674 * doc/tm.texi: Regenerate.
15675 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15676 instead of a mode and a type.
15677 (must_pass_in_stack_var_size_or_pad): Likewise.
15678 * calls.c (must_pass_in_stack_var_size): Likewise.
15679 (must_pass_in_stack_var_size_or_pad): Likewise.
15680 (initialize_argument_information): Update call to
15681 targetm.calls.must_pass_in_stack.
15682 (must_pass_va_arg_on_stack): Likewise.
15683 * function.c (assign_parm_find_entry_rtl): Likewise.
15684 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15685 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15686 (alpha_function_arg_advance): Likewise.
15687 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15688 (cr16_function_arg_advance): Likewise.
15689 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15690 (cris_arg_partial_bytes): Likewise.
15691 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15692 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15693 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15694 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15695 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15696 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15697 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15698 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15699 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15700 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15701 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15702 instead of a mode and a type.
15703 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15704 (fr30_num_arg_regs): Likewise.
15705 (fr30_setup_incoming_varargs): Update calls accordingly.
15706 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15707 (fr30_function_arg_advance): Likewise.
15708 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15709 instead of a mode and a type.
15710 * config/gcn/gcn.c (num_arg_regs): Likewise.
15711 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15712 num_arg_regs and targetm.calls.must_pass_in_stack.
15713 (gcn_arg_partial_bytes): Likewise.
15714 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15715 function_arg_info instead of a mode and a type.
15716 (classify_argument): Update call accordingly.
15717 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15718 function_arg_info instead of a mode and a type.
15719 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15720 Likewise.
15721 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15722 (rs6000_parm_needs_stack): Update call accordingly.
15723 (setup_incoming_varargs): Likewise.
15724
15725 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15726
15727 * target.def (callee_copies): Take a function_arg_info instead
15728 of a mode, type and named flag.
15729 * doc/tm.texi: Regenerate.
15730 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15731 instead of a mode, type and named flag.
15732 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15733 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15734 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15735 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15736 instead of a mode, type and named flag.
15737 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15738 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15739 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15740 * calls.h (reference_callee_copied): Take a function_arg_info
15741 instead of a mode, type and named flag.
15742 * calls.c (reference_callee_copied): Likewise.
15743 (initialize_argument_information): Update call accordingly.
15744 (emit_library_call_value_1): Likewise.
15745 * function.c (gimplify_parameters): Likewise.
15746 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15747 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15748 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15749 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15750 (TARGET_CALLEE_COPIES): Define to
15751 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15752 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15753 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15754 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15755 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15756 instead of a mode, type and named flag.
15757 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15758 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15759 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15760 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15761 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15762 (TARGET_CALLEE_COPIES): Define to
15763 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15764 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15765 instead of a mode, type and named flag.
15766 * config/sh/sh.c (sh_callee_copies): Likewise.
15767 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15768 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15769 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15770
15771 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15772
15773 * target.def (function_arg_advance): Take a function_arg_info instead
15774 of a mode, type and named flag.
15775 * doc/tm.texi: Regenerate.
15776 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15777 instead of a mode, type and named flag.
15778 * targhooks.c (default_function_arg_advance): Likewise.
15779 * calls.c (initialize_argument_information): Update call to
15780 targetm.calls.function_arg_advance.
15781 (emit_library_call_value_1): Likewise.
15782 * dse.c (get_call_args): Likewise.
15783 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15784 * function.c (assign_parms, gimplify_parameters): Likewise.
15785 * var-tracking.c (prepare_call_arguments): Likewise.
15786 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15787 function_arg_info instead of a mode, type and named flag.
15788 (aarch64_setup_incoming_varargs): Update call accordingly.
15789 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15790 function_arg_info instead of a mode, type and named flag.
15791 (alpha_setup_incoming_varargs): Update call accordingly.
15792 * config/arc/arc.c (arc_function_arg_advance): Take a
15793 function_arg_info instead of a mode, type and named flag.
15794 (arc_setup_incoming_varargs): Update call accordingly.
15795 * config/arm/arm.c (arm_function_arg_advance): Take a
15796 function_arg_info instead of a mode, type and named flag.
15797 (cmse_func_args_or_return_in_stack): Update call accordingly.
15798 (arm_function_ok_for_sibcall): Likewise.
15799 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15800 * config/avr/avr.c (avr_function_arg_advance): Take a
15801 function_arg_info instead of a mode, type and named flag.
15802 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15803 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15804 (c6x_call_saved_register_used): Update call accordingly.
15805 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15806 function_arg_info instead of a mode, type and named flag.
15807 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15808 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15809 (csky_setup_incoming_varargs): Update call accordingly.
15810 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15811 function_arg_info instead of a mode, type and named flag.
15812 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15813 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15814 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15815 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15816 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15817 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15818 (ix86_setup_incoming_varargs): Update call accordingly.
15819 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15820 function_arg_info instead of a mode, type and named flag.
15821 (ia64_setup_incoming_varargs): Update call accordingly.
15822 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15823 function_arg_info instead of a mode, type and named flag.
15824 (iq2000_expand_prologue): Update call accordingly.
15825 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15826 function_arg_info instead of a mode, type and named flag.
15827 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15828 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15829 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15830 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15831 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15832 Likewise.
15833 (microblaze_expand_prologue): Update call accordingly.
15834 * config/mips/mips.c (mips_function_arg_advance): Take a
15835 function_arg_info instead of a mode, type and named flag.
15836 (mips_setup_incoming_varargs): Update call accordingly.
15837 (mips_output_args_xfer): Likewise.
15838 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15839 function_arg_info instead of a mode, type and named flag.
15840 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15841 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15842 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15843 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15844 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15845 (nios2_setup_incoming_varargs): Update call accordingly.
15846 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15847 function_arg_info instead of a mode, type and named flag.
15848 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15849 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15850 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15851 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15852 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15853 (riscv_setup_incoming_varargs): Update call accordingly.
15854 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15855 function_arg_info instead of a mode, type and named flag.
15856 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15857 Likewise.
15858 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15859 (rs6000_parm_needs_stack): Update call accordingly.
15860 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15861 instead of a mode, type and named flag.
15862 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15863 (s390_call_saved_register_used): Update call accordingly.
15864 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15865 instead of a mode, type and named flag.
15866 (sh_output_mi_thunk): Update call accordingly.
15867 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15868 function_arg_info instead of a mode, type and named flag.
15869 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15870 (spu_setup_incoming_varargs): Update call accordingly.
15871 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15872 function_arg_info instead of a mode, type and named flag.
15873 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15874 (tilegx_setup_incoming_varargs): Update call accordingly.
15875 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15876 function_arg_info instead of a mode, type and named flag.
15877 (tilegx_setup_incoming_varargs): Update call accordingly.
15878 * config/v850/v850.c (v850_function_arg_advance): Take a
15879 function_arg_info instead of a mode, type and named flag.
15880 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15881 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15882 (visium_setup_incoming_varargs): Update call accordingly.
15883 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15884 function_arg_info instead of a mode, type and named flag.
15885
15886 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15887
15888 * target.def (function_arg, function_incoming_arg): Take a
15889 function_arg_info instead of a mode, tree and named flag.
15890 * doc/tm.texi: Regenerate.
15891 * targhooks.h (default_function_arg): Take a function_arg_info
15892 instead of a mode, tree and named flag.
15893 (default_function_incoming_arg): Likewise.
15894 * targhooks.c (default_function_arg): Likewise.
15895 (default_function_incoming_arg): Likewise.
15896 * calls.h (function_arg_info::end_marker_p): New function.
15897 (function_arg_info::end_marker): Likewise.
15898 * calls.c (prepare_call_address, initialize_argument_information)
15899 (expand_call, emit_library_call_value_1): Update calls to
15900 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15901 * dse.c: Include calls.h.
15902 (get_call_args): Update call to targetm.calls.function_arg.
15903 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15904 * var-tracking.c (prepare_call_arguments): Likewise.
15905 * function.c (assign_parm_find_entry_rtl): Update call to
15906 targetm.calls.function_incoming_arg.
15907 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15908 function_arg_info instead of a mode, tree and named flag.
15909 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15910 * config/arc/arc.c (arc_function_arg): Likewise.
15911 * config/arm/arm.c (arm_function_arg): Likewise.
15912 (cmse_func_args_or_return_in_stack): Update call accordingly.
15913 (arm_function_ok_for_sibcall): Likewise.
15914 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15915 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15916 instead of a mode, tree and named flag.
15917 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15918 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15919 (c6x_call_saved_register_used): Update call accordingly.
15920 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15921 instead of a mode, tree and named flag.
15922 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15923 (cris_function_arg_1): Likewise.
15924 * config/csky/csky.c (csky_function_arg): Likewise.
15925 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15926 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15927 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15928 (frv_function_arg_1): Likewise.
15929 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15930 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15931 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15932 * config/i386/i386.c (ix86_function_arg): Likewise.
15933 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15934 (ia64_function_arg_1): Likewise.
15935 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15936 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15937 accordingly.
15938 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15939 instead of a mode, tree and named flag.
15940 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15941 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15942 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15943 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15944 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15945 (microblaze_expand_prologue): Update call accordingly.
15946 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15947 instead of a mode, tree and named flag.
15948 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15949 (mmix_function_arg_1): Likewise.
15950 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15951 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15952 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15953 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15954 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15955 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15956 (nvptx_function_incoming_arg): Likewise.
15957 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15958 * config/pa/pa.c (pa_function_arg): Likewise.
15959 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15960 * config/pru/pru.c (pru_function_arg): Likewise.
15961 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15962 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15963 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15964 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15965 (rs6000_parm_needs_stack): Update call accordingly.
15966 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15967 instead of a mode, tree and named flag.
15968 * config/s390/s390.c (s390_function_arg): Likewise.
15969 (s390_call_saved_register_used): Update call accordingly.
15970 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15971 instead of a mode, tree and named flag.
15972 (sh_output_mi_thunk): Update call accordingly.
15973 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15974 (sparc_function_incoming_arg): Take a function_arg_info instead of
15975 a mode, tree and named flag.
15976 * config/spu/spu.c (spu_function_arg): Likewise.
15977 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15978 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15979 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15980 * config/v850/v850.c (v850_function_arg): Likewise.
15981 * config/vax/vax.c (vax_function_arg): Likewise.
15982 * config/visium/visium.c (visium_function_arg): Likewise.
15983 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15984 (xtensa_function_incoming_arg): Likewise.
15985
15986 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15987
15988 * target.def (setup_incoming_varargs): Take a function_arg_info
15989 instead of a mode and tree.
15990 * doc/tm.texi: Regenerate.
15991 * targhooks.h (default_setup_incoming_varargs): Take a
15992 function_arg_info instead of a mode and tree.
15993 * targhooks.c (default_setup_incoming_varargs): Likewise.
15994 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15995 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15996 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15997 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15998 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15999 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
16000 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
16001 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
16002 Likewise.
16003 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
16004 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
16005 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
16006 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
16007 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
16008 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
16009 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
16010 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
16011 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
16012 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
16013 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
16014 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
16015 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
16016 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
16017 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
16018 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
16019 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
16020 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
16021 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
16022 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
16023 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
16024 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
16025 * function.c (assign_parms_setup_varargs): Update call to
16026 targetm.calls.setup_incoming_varargs.
16027
16028 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16029
16030 * target.def (pass_by_reference): Take a function_arg_info instead
16031 of a mode, type and named flag.
16032 * doc/tm.texi: Regenerate.
16033 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
16034 accordingly.
16035 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
16036 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
16037 function_arg_info instead of a mode, type and named flag.
16038 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
16039 * calls.h (pass_by_reference): Take a function_arg_info instead of a
16040 mode, type and named flag.
16041 * calls.c (pass_by_reference): Likewise.
16042 (pass_va_arg_by_reference): Update call accordingly.
16043 (initialize_argument_information): Likewise.
16044 (emit_library_call_value_1): Likewise.
16045 * function.c (assign_parm_find_data_types): Likewise.
16046 * var-tracking.c (prepare_call_arguments): Likewise.
16047 * stor-layout.c: Include calls.h.
16048 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
16049 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
16050 function_arg_info instead of a mode, type and named flag.
16051 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
16052 * config/arc/arc.c (arc_pass_by_reference): Likewise.
16053 * config/arm/arm.c (arm_pass_by_reference): Likewise.
16054 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
16055 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
16056 (c6x_call_saved_register_used): Update call to pass_by_reference.
16057 * config/cris/cris.c (cris_pass_by_reference): Take a
16058 function_arg_info instead of a mode, type and named flag.
16059 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
16060 function_arg_info instead of a mode, type and named flag.
16061 (epiphany_arg_partial_bytes): Update call accordingly.
16062 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
16063 function_arg_info instead of a mode, type and named flag.
16064 (ft32_arg_partial_bytes): Update call accordingly.
16065 * config/i386/i386.c (ix86_pass_by_reference): Take a
16066 function_arg_info instead of a mode, type and named flag.
16067 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
16068 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
16069 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
16070 (m32r_return_in_memory): Update call accordingly.
16071 * config/mips/mips.c (mips_pass_by_reference): Take a
16072 function_arg_info instead of a mode, type and named flag.
16073 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
16074 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
16075 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
16076 (moxie_arg_partial_bytes): Update call accordingly.
16077 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
16078 function_arg_info instead of a mode, type and named flag.
16079 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
16080 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
16081 * config/pa/pa.c (pa_pass_by_reference): Likewise.
16082 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
16083 (riscv_return_in_memory): Update call accordingly.
16084 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
16085 function_arg_info instead of a mode, type and named flag.
16086 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
16087 (rs6000_parm_needs_stack): Update call to pass_by_reference.
16088 * config/s390/s390.c (s390_pass_by_reference): Take a
16089 function_arg_info instead of a mode, type and named flag.
16090 (s390_call_saved_register_used): Update call accordingly.
16091 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
16092 instead of a mode, type and named flag.
16093 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
16094 * config/spu/spu.c (spu_pass_by_reference): Likewise.
16095 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
16096 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
16097 * config/v850/v850.c (v850_pass_by_reference): Likewise.
16098 * config/visium/visium.c (visium_pass_by_reference): Likewise.
16099
16100 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16101
16102 * target.def (arg_partial_bytes): Take a function_arg_info instead
16103 of a mode, type and named flag.
16104 * doc/tm.texi: Regenerate.
16105 * target.h (function_arg_info): Declare.
16106 * calls.h (function_arg_info): New class.
16107 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16108 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
16109 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16110 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
16111 * calls.c (initialize_argument_information): Update call to
16112 targetm.calls.partial_bytes.
16113 (emit_library_call_value_1): Likewise.
16114 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16115 * function.c (assign_parm_find_entry_rtl): Likewise.
16116 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
16117 function_arg_info instead of a mode, type and named flag.
16118 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
16119 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
16120 (cmse_func_args_or_return_in_stack): Update accordingly.
16121 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
16122 function_arg_info instead of a mode, type and named flag.
16123 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
16124 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
16125 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
16126 * config/fr30/fr30.c: Include calls.h.
16127 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
16128 type and named flag.
16129 * config/frv/frv.c: Include calls.h.
16130 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
16131 type and named flag.
16132 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
16133 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
16134 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
16135 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
16136 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
16137 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
16138 * config/microblaze/microblaze.c (function_arg_partial_bytes):
16139 Likewise.
16140 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
16141 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
16142 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
16143 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
16144 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
16145 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
16146 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
16147 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
16148 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
16149 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
16150 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
16151 (rs6000_parm_needs_stack): Update call accordingly.
16152 * config/sh/sh.c (sh_arg_partial_bytes): Take a
16153 function_arg_info instead of a mode, type and named flag.
16154 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
16155 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
16156
16157 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16158
16159 * calls.h (must_pass_va_arg_in_stack): Declare.
16160 * calls.c (must_pass_va_arg_in_stack): New function.
16161 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
16162 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
16163 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
16164 Likewise.
16165 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16166
16167 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16168
16169 * calls.h (pass_va_arg_by_reference): Declare.
16170 * calls.c (pass_va_arg_by_reference): New function.
16171 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
16172 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
16173 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
16174 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
16175 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
16176 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
16177 (mips_gimplify_va_arg_expr): Likewise.
16178 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
16179 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
16180 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
16181 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
16182 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
16183 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
16184 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
16185 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
16186 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
16187 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16188 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
16189
16190 2019-08-20 Richard Biener <rguenther@suse.de>
16191
16192 PR target/91498
16193 * config/i386/i386-features.c (general_scalar_chain::convert_op):
16194 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
16195 (convert_scalars_to_vector): Add timode_p parameter and use it
16196 to guard TImode-only operation.
16197 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
16198 (pass_stv::execute): Pass down timode_p.
16199
16200 2019-08-20 Lili Cui <lili.cui@intel.com>
16201
16202 * common/config/i386/i386-common.c
16203 (processor_names): Add tigerlake and cooperlake.
16204 (processor_alias_table): Add tigerlake and cooperlake.
16205 * config.gcc: Add -march=tigerlake and cooperlake.
16206 * config/i386/driver-i386.c
16207 (host_detect_local_cpu): Detect tigerlake and cooperlake.
16208 Add "has_avx" to classify processor.
16209 * config/i386/i386-builtins.c (processor_model) :
16210 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
16211 (arch_names_table): Add tigerlake and cooperlake.
16212 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
16213 and PROCESSOR_COOPERLAKE.
16214 * config/i386/i386-c.c
16215 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
16216 * config/i386/i386-options.c
16217 (m_TIGERLAKE): Define.
16218 (m_COOPERLAKE): Ditto.
16219 (m_CORE_AVX512): Ditto.
16220 (processor_cost_table): Add cascadelake.
16221 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
16222 * config/i386/i386.h
16223 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
16224 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16225 (PTA_MOVDIRI): Ditto.
16226 (PTA_MOVDIR64B): Ditto.
16227 (PTA_COOPERLAKE): Ditto.
16228 (PTA_TIGERLAKE): Ditto.
16229 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16230 * doc/extend.texi: Add tigerlake and cooperlake.
16231 * doc/invoke.texi: Add tigerlake and cooperlake.
16232
16233 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
16234
16235 * doc/install.texi (Specific, alpha): Remove note to use
16236 binutils 2.11.2 or later.
16237
16238 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16239
16240 PR middle-end/89544
16241 * function.c (assign_parm_find_stack_rtl): Use larger alignment
16242 when possible.
16243
16244 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
16245
16246 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
16247 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
16248 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
16249 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
16250 * config/aarch64/constraints.md (Dt): New constraint
16251 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
16252
16253 2019-08-19 Richard Biener <rguenther@suse.de>
16254
16255 PR tree-optimization/91403
16256 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
16257 cases we can handle with tail-recursion...
16258 (follow_ssa_edge_expr): ... here. Do so.
16259
16260 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
16261
16262 PR target/91441
16263 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
16264 implemented for -fsanitize=kernel-address, and merge check logic
16265 with -fsanitize=address.
16266
16267 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
16268
16269 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
16270 for cpu and machine. Factor 64/32b builtins.
16271
16272 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
16273
16274 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
16275 gone, point to sourceforge.net.
16276
16277 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16278
16279 * doc/ux.texi (User Experience Guidelines): Update reference.
16280
16281 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16282
16283 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
16284 not LGPL".
16285
16286 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
16287
16288 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
16289 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
16290
16291 2019-08-16 Martin Sebor <msebor@redhat.com>
16292
16293 * tree.def (TYPE_SIZE): Clarify.
16294 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
16295
16296 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16297
16298 PR tree-optimization/91109
16299 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
16300 * lra.c (lra): Use lra_need_for_scratch_reg_p.
16301 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
16302
16303 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
16304
16305 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
16306 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
16307 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
16308 (uavg<mode>3_ceil): New expander.
16309 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
16310 mode iterator when creating CONST1_RTX.
16311 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
16312 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
16313 mode iterator for const1_operand predicate.
16314
16315 2019-08-16 Richard Biener <rguenther@suse.de>
16316
16317 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
16318 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
16319 follow_ssa_edge.
16320 (follow_ssa_edge_in_condition_phi_branch): Likewise.
16321 (analyze_evolution_in_loop): Likewise.
16322 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
16323 (follow_ssa_edge_expr): ... here. Refactor code.
16324
16325 2019-08-16 Richard Biener <rguenther@suse.de>
16326
16327 PR target/91469
16328 * config/i386/i386-features.c
16329 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
16330
16331 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16332
16333 PR other/91255
16334 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
16335 only if subst_name matches curr_attr string.
16336
16337 2019-08-16 Richard Biener <rguenther@suse.de>
16338
16339 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
16340 stmt at gsi_p, instead replace it with a NOP removed later.
16341 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
16342 that became dead because of that.
16343
16344 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
16345
16346 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
16347 for which we can't represent a range.
16348 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
16349 set_varying.
16350 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
16351 Set VR_UNDEFINED if type is not supported.
16352 * tree-ssanames.c (get_range_info): Pass type to set_varying.
16353 * tree-vrp.c (value_range_base::check): Assert that a varying has
16354 min/max set.
16355 (value_range_base::equal_p): Early bail for undefines.
16356 (value_range_base::set_varying): Accept a type.
16357 (value_range::set_varying): Same.
16358 (value_range_base::type): VARYING can have a type, while UNDEFINE
16359 is typeless.
16360 (value_range_base::dump): Print type for VARYING nodes.
16361 (value_range_base::set): Add type to VARYING.
16362 (extract_range_from_multiplicative_op): Pass type to set_varying.
16363 (extract_range_from_binary_expr): Same.
16364 (value_range_base::intersect_helper): Same.
16365 (value_range_base::union_helper): Same.
16366 (value_range_base::normalize_symbolics): Same.
16367 (determine_value_range_1): Same.
16368 * tree-vrp.h (class value_range_base): Add type to set_varying.
16369 Add prototype for dump(void).
16370 Add prototype for supports_type_p.
16371 (class value_range): Add type to set_varying.
16372 Add prototype for dump(void).
16373 * vr-values.c (set_value_range_to_truthvalue): Pass type to
16374 set_varying.
16375 (vr_values::get_lattice_entry): Set varying even if propagation
16376 finished.
16377 Pass type to set_varying.
16378 (vr_values::get_value_range): Remove vr_const_varying.
16379 Reallocate the lattice if needed.
16380 (vr_values::update_value_range): Pass type to set_varying.
16381 (vr_values::extract_range_for_var_from_comparison_expr): Same.
16382 (vr_values::extract_range_from_binary_expr): Same.
16383 (vr_values::extract_range_from_unary_expr): Same.
16384 (vr_values::extract_range_from_cond_expr): Same.
16385 (vr_values::check_for_binary_op_overflow): Same.
16386 (vr_values::extract_range_basic): Same.
16387 (vr_values::extract_range_from_assignment): Same.
16388 (vr_values::vr_values): Increase size of num_vr_values.
16389 (vr_values::extract_range_from_phi_node): Pass type to
16390 set_varying.
16391
16392 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
16393
16394 PR target/90878
16395 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
16396 for costs of hard register moves.
16397 (ix86_register_move_cost): Likewise.
16398 * config/i386/i386.h (processor_costs): Move costs of hard
16399 register moves to hard_register. Add int_load, int_store,
16400 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16401 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
16402 for costs of RTL expressions.
16403 * config/i386/x86-tune-costs.h: Move costs of hard register
16404 moves to hard_register. Duplicate int_load, int_store,
16405 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16406 sse_load, sse_store for costs of RTL expressions.
16407
16408 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16409
16410 * target.def (setup_incoming_vararg_bounds): Remove.
16411 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
16412 * doc/tm.texi: Regenerate.
16413 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
16414 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
16415 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
16416 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
16417
16418 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16419
16420 MSP430: Fix lines over 80 characters long in
16421 config/msp430/*.{c,h} files
16422
16423 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
16424 specifier in string.
16425 (msp430_select_hwmult_lib): Split line more than 80 characters long.
16426 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
16427 redundant old comment.
16428 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16429 Split line more than 80 characters long.
16430 * config/msp430/msp430.c (msp430_option_override): Likewise.
16431 (msp430_return_in_memory): Likewise.
16432 (msp430_gimplify_va_arg_expr): Likewise.
16433 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
16434 (msp430_legitimate_constant): Likewise.
16435 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
16436 (msp430_attr): Likewise.
16437 (msp430_data_attr): Likewise.
16438 (msp430_start_function): Likewise.
16439 (gen_prefix): Likewise.
16440 (msp430_init_sections): Likewise.
16441 (msp430_select_section): Likewise.
16442 (msp430_function_section): Likewise.
16443 (msp430_unique_section): Likewise.
16444 (msp430_output_aligned_decl_common): Likewise.
16445 (msp430_do_not_relax_short_jumps): Likewise.
16446 (msp430_init_builtins): Likewise.
16447 (msp430_expand_delay_cycles): Likewise.
16448 (msp430_expand_prologue): Likewise.
16449 (msp430_expand_epilogue): Likewise.
16450 (msp430_expand_helper): Likewise.
16451 (msp430_split_movsi): Likewise.
16452 (msp430_print_operand): Likewise.
16453 (msp430_return_addr_rtx): Likewise.
16454 (msp430x_extendhisi): Likewise.
16455 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
16456 (ASM_SPEC): Likewise.
16457 Remove very obvious comments.
16458 (LIB_SPEC): Split line more than 80 characters long.
16459 (EH_RETURN_HANDLER_RTX): Likewise.
16460 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16461
16462 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16463
16464 MSP430: Fix whitespace errors and incorrect indentation in
16465 config/msp430/*.{c,h} files
16466
16467 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
16468 (msp430_select_hwmult_lib): Likewise.
16469 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
16470 (msp430_extract_mcu_data): Likewise.
16471 (struct t_msp430_mcu_data): Likewise.
16472 * config/msp430/msp430.c (struct machine_function): Remove whitespace
16473 before left square bracket.
16474 (msp430_option_override): Fix indentation.
16475 (msp430_hard_regno_nregs_with_padding): Likewise.
16476 (msp430_initial_elimination_offset): Likewise.
16477 (msp430_special_register_convention_p): Remove whitespace before left
16478 square bracket and after exclamation mark.
16479 (msp430_evaluate_arg): Likewise.
16480 (msp430_callee_copies): Fix indentation.
16481 (msp430_gimplify_va_arg_expr): Likewise.
16482 (msp430_function_arg_advance): Remove whitespace before left square
16483 bracket.
16484 (reg_ok_for_addr): Likewise.
16485 (msp430_preserve_reg_p): Likewise.
16486 (msp430_compute_frame_info): Likewise.
16487 (msp430_asm_output_addr_const_extra): Add space between function name
16488 and open parenthesis.
16489 (has_section_name): Fix indentation.
16490 (msp430_attr): Remove trailing whitespace.
16491 (msp430_section_attr): Likewise.
16492 (msp430_data_attr): Likewise.
16493 (struct msp430_attribute_table): Fix comment and whitespace.
16494 (msp430_start_function): Remove whitespace before left square bracket.
16495 Add space between function name and open parenthesis.
16496 (msp430_select_section): Remove trailing whitespace.
16497 (msp430_section_type_flags): Remove trailing whitespace.
16498 (msp430_unique_section): Remove space before closing parenthesis.
16499 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16500 (msp430_builtins): Remove whitespace before left square bracket.
16501 (msp430_init_builtins): Fix indentation.
16502 (msp430_expand_prologue): Remove whitespace before left square bracket.
16503 Remove space before closing parenthesis.
16504 (msp430_expand_epilogue): Remove whitespace before left square bracket.
16505 (msp430_split_movsi): Remove space before closing parenthesis.
16506 (helper_function_name_mappings): Fix indentation.
16507 (msp430_use_f5_series_hwmult): Fix whitespace.
16508 (use_32bit_hwmult): Likewise.
16509 (msp430_no_hwmult): Likewise.
16510 (msp430_output_labelref): Remove whitespace before left square bracket.
16511 (msp430_print_operand_raw): Likewise.
16512 (msp430_print_operand_addr): Likewise.
16513 (msp430_print_operand): Add two spaces after '.' in comment.
16514 Fix trailing whitespace.
16515 (msp430x_extendhisi): Fix indentation.
16516 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16517 tab.
16518 (PC_REGNUM): Likewise.
16519 (STACK_POINTER_REGNUM): Likewise.
16520 (CC_REGNUM): Likewise.
16521
16522 2019-08-15 Richard Biener <rguenther@suse.de>
16523
16524 PR target/91454
16525 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16526 helper.
16527 (general_scalar_chain::make_vector_copies): Use it.
16528
16529 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16530
16531 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16532
16533 2019-08-15 Martin Liska <mliska@suse.cz>
16534
16535 * tree-ssa-dce.c (propagate_necessity): We can't reach now
16536 operators with no arguments.
16537 (eliminate_unnecessary_stmts): Likewise here.
16538
16539 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
16540
16541 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16542 <case COMPARE>: Revert 2019-08-14 change.
16543 (convertible_comparison_p): Revert 2019-08-14 change. Return false
16544 for (TARGET_64BIT || mode != DImode).
16545
16546 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
16547
16548 * tree-vrp.c (value_range_base::set): Merge in code from
16549 value_range_base::set_and_canonicalize.
16550 Enforce canonicalization at set time.
16551 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16552 (value_range_base::set_undefined): Inline call to set().
16553 (value_range_base::set_varying): Same.
16554 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16555 (vrp_val_max): New argument handle_pointers.
16556 (vrp_val_min): Same.
16557 (ranges_from_anti_range): Same.
16558 (extract_range_into_wide_ints): Use tree argument instead of sign
16559 and precision.
16560 (extract_range_from_multiplicative_op): Take in tree type instead
16561 of precision and sign. Adapt function for canonicalized ranges.
16562 (extract_range_from_binary_expr): Pass type to
16563 extract_range_from_multiplicative_op.
16564 Adapt for canonicalized ranges.
16565 (extract_range_from_unary_expr): Same.
16566 (value_range_base::intersect_helper): Adjust for canonicalized
16567 ranges.
16568 (value_range_base::union_helper): Same.
16569 (value_range_base::normalize_symbolics): New.
16570 * tree-vrp.h (class value_range_base): Remove
16571 set_and_canonicalize.
16572 New prototype for normalize_symbolics.
16573 (class value_range): Remove set_and_canonicalize.
16574 (vrp_val_min): Adjust prototype.
16575 (vrp_val_max): Same.
16576 * vr-values.c
16577 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16578 instead of set_and_canonicalize.
16579
16580 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16581
16582 PR middle-end/91444
16583 * tree-vect-stmts.c (vectorizable_call): Check that the function
16584 is a BUILT_IN_MD function before passing it to
16585 targetm.vectorize.builtin_md_vectorized_function.
16586
16587 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16588
16589 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16590 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16591 (aarch64_select_early_remat_modes): Use it.
16592
16593 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16594
16595 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16596 16 for SVE predicates even if they are fixed-length.
16597
16598 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16599
16600 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16601 operand order match the MOV /Z alias.
16602
16603 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16604
16605 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16606 the vector pattern as an aarch64_svpattern argument. Update the
16607 overloaded caller accordingly.
16608 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16609 (aarch64_output_sve_vector_inc_dec): Likewise.
16610
16611 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16612
16613 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16614 multiplication case, try to compute VG * (lowest set bit) directly
16615 rather than always basing the multiplication on VG. Use
16616 expand_mult for the multiplication if we can.
16617
16618 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16619
16620 * config/aarch64/aarch64-protos.h
16621 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16622 (aarch64_sve_inc_dec_immediate_p): Rename to...
16623 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16624 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16625 (aarch64_output_sve_scalar_inc_dec): Declare.
16626 (aarch64_output_sve_inc_dec_immediate): Rename to...
16627 (aarch64_output_sve_vector_inc_dec): ...this.
16628 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16629 (aarch64_output_sve_scalar_inc_dec): New functions.
16630 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16631 arguments. Only handle true ADDVL and ADDPL instructions;
16632 don't emit an INC or DEC.
16633 (aarch64_sve_inc_dec_immediate_p): Rename to...
16634 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16635 (aarch64_output_sve_inc_dec_immediate): Rename to...
16636 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16637 aarch64_sve_vector_inc_dec_immediate_p.
16638 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16639 (aarch64_sve_plus_immediate): New predicates.
16640 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16641 rather than aarch64_sve_addvl_addpl_immediate.
16642 (aarch64_sve_inc_dec_immediate): Rename to...
16643 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16644 aarch64_sve_vector_inc_dec_immediate_p.
16645 (aarch64_sve_add_operand): Update accordingly.
16646 * config/aarch64/constraints.md (Uai): New constraint.
16647 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16648 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16649 operand into a register if it satisfies aarch64_sve_plus_immediate.
16650 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16651 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16652 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16653 aarch64_output_sve_vector_inc_dec instead of
16654 aarch64_output_sve_inc_dec_immediate.
16655
16656 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16657
16658 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16659 (UNSPEC_REVW): New constants.
16660 (elem_bits): New mode attribute.
16661 (SVE_INT_UNARY): New int iterator.
16662 (optab): Handle UNSPEC_REV[BHW].
16663 (sve_int_op): New int attribute.
16664 (min_elem_bits): Handle VNx16QI and the predicate modes.
16665 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16666 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16667 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16668 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16669 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16670 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16671 unspecs based on the total width of the reversed data.
16672 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16673 reinterpret followed by a subreg on big-endian targets.
16674
16675 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16676 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16677
16678 * config/aarch64/aarch64-sve.md
16679 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16680 alternatives in which one of the inputs is in the same register
16681 as the output.
16682
16683 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16684
16685 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16686 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16687
16688 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16689
16690 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16691 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16692
16693 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16694 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16695
16696 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16697 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16698 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16699
16700 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16701 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16702
16703 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16704 Add an alternative that uses reversed shifts.
16705
16706 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16707
16708 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16709 struct.
16710
16711 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16712
16713 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16714 a commutativity marker.
16715
16716 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16717 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16718
16719 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16720 (aarch64_prepare_sve_cond_int_fma): Declare.
16721 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16722 (aarch64_prepare_sve_int_fma): New functions.
16723 (aarch64_prepare_sve_cond_int_fma): Likewise.
16724 * config/aarch64/aarch64-sve.md
16725 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16726 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16727 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16728 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16729 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16730 (*madd<mode>): Rename to...
16731 (*fma<mode>4): ...this.
16732 (*msub<mode>): Rename to...
16733 (*fnma<mode>4): ...this.
16734
16735 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16736 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16737
16738 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16739 Print 2.0 naturally.
16740 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16741 * config/aarch64/predicates.md
16742 (aarch64_sve_float_negated_arith_immediate): New predicate,
16743 renamed from aarch64_sve_float_arith_with_sub_immediate.
16744 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16745 positive and negative constants.
16746 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16747 or an aarch64_sve_float_arith_with_sub_immediate.
16748 * config/aarch64/constraints.md (vsN): Use
16749 aarch64_sve_float_negated_arith_immediate.
16750 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16751 iterator.
16752 (sve_pred_fp_rhs2_immediate): New int attribute.
16753 * config/aarch64/aarch64-sve.md
16754 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16755 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16756 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16757 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16758 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16759 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16760
16761 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16762 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16763
16764 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16765 (*aarch64_cond_abd<SVE_F:mode>_3)
16766 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16767
16768 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16769 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16770
16771 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16772 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16773
16774 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16775 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16776
16777 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16778 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16779 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16780 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16781 optabs.
16782 * optabs.h (create_convert_operand_from): Expand comment.
16783 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16784 when mapping scalar rtxes to vector operands.
16785 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16786 ashiftrt and lshiftrt.
16787 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16788 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16789 (*cond_<optab><mode>_any_const): New patterns.
16790
16791 2019-08-15 Martin Liska <mliska@suse.cz>
16792
16793 PR ipa/91438
16794 * cgraph.c (cgraph_node::remove): When setting
16795 n->origin = NULL for all nested functions, reset
16796 also next_nested.
16797
16798 2019-08-15 Martin Liska <mliska@suse.cz>
16799
16800 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16801 and next_nested.
16802
16803 2019-08-15 Martin Liska <mliska@suse.cz>
16804
16805 PR ipa/91404
16806 * passes.c (order): Remove.
16807 (uid_hash_t): Likewise).
16808 (remove_cgraph_node_from_order): Remove from set
16809 of pointers (cgraph_node *).
16810 (insert_cgraph_node_to_order): New.
16811 (duplicate_cgraph_node_to_order): New.
16812 (do_per_function_toporder): Register all 3 cgraph hooks.
16813 Skip removed_nodes now as we know about all of them.
16814
16815 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16816
16817 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16818 <case E_V8QImode>: Use vector_set path for
16819 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16820 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16821 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16822
16823 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16824
16825 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16826
16827 2019-08-14 Martin Sebor <msebor@redhat.com>
16828
16829 PR tree-optimization/91294
16830 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16831 source length as exact.
16832
16833 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16834
16835 * doc/extend.texi: Add "noinit" attribute documentation.
16836 * doc/sourcebuild.texi: Add noinit effective target documentation.
16837 * varasm.c (default_section_type_flags): Add support for "noinit"
16838 section.
16839 (default_elf_select_section): Add support for "noinit" attribute.
16840 * config/msp430/msp430.c (msp430_attribute_table): Remove
16841 "noinit" entry.
16842
16843 2019-08-14 Richard Biener <rguenther@suse.de>
16844 Uroš Bizjak <ubizjak@gmail.com>
16845
16846 PR target/91154
16847 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16848 mode arguments.
16849 (scalar_chain::smode): New member.
16850 (scalar_chain::vmode): Likewise.
16851 (dimode_scalar_chain): Rename to...
16852 (general_scalar_chain): ... this.
16853 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16854 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16855 base with TImode and V1TImode.
16856 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16857 (general_scalar_chain::vector_const_cost): Adjust for SImode
16858 chains.
16859 (general_scalar_chain::compute_convert_gain): Likewise. Add
16860 {S,U}{MIN,MAX} support.
16861 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16862 (general_scalar_chain::make_vector_copies): Likewise. Handle
16863 non-DImode chains appropriately.
16864 (general_scalar_chain::convert_reg): Likewise.
16865 (general_scalar_chain::convert_op): Likewise.
16866 (general_scalar_chain::convert_insn): Likewise. Add
16867 fatal_insn_not_found if the result is not recognized.
16868 (convertible_comparison_p): Pass in the scalar mode and use that.
16869 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16870 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16871 (scalar_to_vector_candidate_p): Remove by inlining into single
16872 caller.
16873 (general_remove_non_convertible_regs): Rename from
16874 dimode_remove_non_convertible_regs.
16875 (remove_non_convertible_regs): Remove by inlining into single caller.
16876 (convert_scalars_to_vector): Handle SImode and DImode chains
16877 in addition to TImode chains.
16878 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16879 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16880 (*<maxmin>di3_doubleword): Likewise.
16881
16882 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16883 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16884
16885 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16886 (*cond_bic<mode>_any): New patterns.
16887
16888 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16889
16890 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16891 take the equivalent mask, as well as a bit count.
16892 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16893 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16894 (aarch64_sve_pred_and_operand): New predicates.
16895 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16896 code attribute.
16897 * config/aarch64/aarch64-sve.md
16898 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16899 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16900
16901 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16902
16903 * config/aarch64/aarch64-sve.md
16904 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16905 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16906 New patterns.
16907
16908 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16909 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16910
16911 * config/aarch64/aarch64-sve.md
16912 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16913 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16914
16915 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16916 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16917
16918 * config/aarch64/aarch64-sve.md
16919 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16920 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16921
16922 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16923
16924 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16925 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16926 New pattern.
16927
16928 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16929 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16930
16931 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16932
16933 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16934 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16935
16936 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16937 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16938 (aarch64_print_operand): Add support for %I.
16939 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16940 Bitcast floating-point constants to the corresponding integer constant.
16941 (aarch64_float_const_representable_p): Handle vectors as well
16942 as scalars.
16943 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16944 for the new vcond_mask_<mode><vpred> expander.
16945 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16946 test aarch64_float_const_representable_p.
16947 (aarch64_sve_reg_or_dup_imm): New predicate.
16948 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16949 gen_vcond_mask_<mode><vpred> instead of
16950 gen_aarch64_sve_dup<mode>_const.
16951 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16952 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16953 for operands 1 and 2 respectively. Force operand 2 into a
16954 register if operand 1 is a register. Fold old define_insn...
16955 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16956 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16957 floating-point constants that can be moved as integers. Add
16958 alternatives for MOV /M and FMOV /M.
16959 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16960 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16961 1 and 2 respectively.
16962 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16963 as scalars.
16964 (vss): New constraint.
16965
16966 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16967
16968 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16969 (aarch64_sve_float_maxmin_operand): New predicates.
16970 * config/aarch64/constraints.md (vsB): New constraint.
16971 (vsM): Fix typo.
16972 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16973 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16974 UNSPEC_COND_FMINNM.
16975 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16976 Use aarch64_sve_float_maxmin_operand for operand 2.
16977 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16978 Add alternatives for the constant forms.
16979
16980 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16981
16982 * config/aarch64/constraints.md (vsb): New constraint.
16983 (vsm): Generalize description.
16984 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16985 iterator.
16986 (sve_imm_con): Handle smax, smin, umax and umin.
16987 (sve_imm_prefix): New code attribute.
16988 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16989 (aarch64_sve_vsb_operand): New predicates.
16990 (aarch64_sve_mul_immediate): Rename to...
16991 (aarch64_sve_vsm_immediate): ...this.
16992 (aarch64_sve_mul_operand): Rename to...
16993 (aarch64_sve_vsm_operand): ...this.
16994 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16995 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16996 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16997 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16998 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16999 add movprfx support for the immediate alternatives.
17000 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
17001 of the above.
17002 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
17003 for operand 3.
17004
17005 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17006
17007 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
17008 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
17009 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
17010
17011 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17012
17013 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
17014 (optab, sve_int_op): Handle them.
17015 * config/aarch64/aarch64-sve.md: Expand comment.
17016
17017 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17018
17019 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
17020 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
17021 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
17022
17023 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17024
17025 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
17026 (aarch64_expand_sve_const_pred_trn): New functions.
17027 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
17028 use the above functions when the parameter is true.
17029 (aarch64_expand_sve_const_pred): Update call accordingly.
17030 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
17031 Rename to...
17032 (@aarch64_sve_<perm_insn><mode>): ...this.
17033
17034 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17035
17036 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
17037 Declare.
17038 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
17039 (aarch64_sve_emit_int_cmp): New functions.
17040 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
17041 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
17042 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
17043 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
17044 (UNSPEC_PRED_Z): New unspec.
17045 (set_clobber_cc_nzc): Delete.
17046 * config/aarch64/aarch64-sve.md: Add a block comment about
17047 UNSPEC_PRED_Z.
17048 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
17049 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
17050 the old pattern with that name. Use UNSPEC_PRED_Z instead of
17051 UNSPEC_MERGE_PTRUE.
17052 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
17053 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
17054 check for compatible predicates.
17055 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
17056 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
17057 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
17058 comparisons above.
17059
17060 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17061
17062 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
17063 * config/aarch64/aarch64-sve.md: Add a section describing it.
17064 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
17065 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
17066 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
17067 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
17068 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
17069 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
17070 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
17071 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
17072 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
17073 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
17074 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
17075 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
17076 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
17077 (aarch64_evpc_rev_local): Update accordingly.
17078
17079 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17080
17081 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
17082 iterators.
17083 (SVE_BHSI, SVE_SDI): Tweak comment.
17084 (SVE_HSDI): Likewise. Fix definition.
17085 (SVE_SDF): New mode iterator.
17086 (elem_bits): New mode attribute.
17087 (SVE_COND_FCVT): New int iterator.
17088 * config/aarch64/aarch64-sve.md
17089 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
17090 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
17091 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
17092 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
17093 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
17094 ...these new patterns.
17095 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
17096 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
17097 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
17098 Merge into...
17099 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
17100 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
17101 ...these new patterns.
17102 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
17103 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
17104 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
17105 ...this new pattern.
17106 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
17107 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
17108 ...this new pattern.
17109 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
17110
17111 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17112
17113 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
17114 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
17115 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
17116 unspecs.
17117 (optab, su): Handle them.
17118 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
17119 * config/aarch64/aarch64-sve.md
17120 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
17121 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
17122 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
17123 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
17124 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
17125 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
17126 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
17127 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
17128 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
17129 FIXUORS.
17130 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
17131 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
17132 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
17133 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
17134 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
17135 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
17136 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
17137 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
17138 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
17139 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
17140 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
17141 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
17142 of UNSPEC_FLOAT_CONVERT.
17143 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
17144 aarch64_sve_extend<mode><Vwide>2.
17145
17146 2019-08-14 Richard Biener <rguenther@suse.de>
17147
17148 PR target/91154
17149 * config/i386/i386-features.c
17150 (dimode_scalar_chain::compute_convert_gain): Compute and dump
17151 individual instruction gain. Fix reg-reg copy GRP cost. Use
17152 ix86_cost->sse_op for vector instruction costs.
17153
17154 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17155
17156 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
17157 (cmp_op): Handle it.
17158 (SVE_COND_FP_CMP): Rename to...
17159 (SVE_COND_FP_CMP_I0): ...this.
17160 (SVE_FP_CMP): Remove.
17161 * config/aarch64/aarch64-sve.md
17162 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
17163 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
17164 using unspecs to represent the comparison.
17165 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
17166 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
17167 accordingly.
17168 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
17169 (aarch64_unspec_cond_code): Move after integer code. Handle
17170 UNORDERED.
17171 (aarch64_emit_sve_predicated_cond): Replace with...
17172 (aarch64_emit_sve_fp_cond): ...this new function.
17173 (aarch64_emit_sve_or_conds): Replace with...
17174 (aarch64_emit_sve_or_fp_conds): ...this new function.
17175 (aarch64_emit_sve_inverted_cond): Replace with...
17176 (aarch64_emit_sve_invert_fp_cond): ...this new function.
17177 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
17178
17179 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17180
17181 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
17182 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
17183 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
17184 SVE_HSD instead of SVE_SD.
17185
17186 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17187 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17188
17189 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
17190 iterator.
17191 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
17192 attributes.
17193 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
17194 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
17195 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
17196 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
17197 (*div<SVE_F:mode>3): Generalize to...
17198 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
17199
17200 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17201 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17202
17203 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
17204 constants.
17205 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
17206 predicate.
17207 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
17208 Declare.
17209 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
17210 function.
17211 * config/aarch64/aarch64-sve.md: Add a block comment about the
17212 handling of predicated FP operations.
17213 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
17214 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
17215 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17216 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
17217 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
17218 operand.
17219 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
17220 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
17221 operand.
17222 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
17223 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
17224 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
17225 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
17226 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
17227 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17228 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17229 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
17230 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
17231 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
17232 strictness operands. Use aarch64_sve_pred_dominates_p to check
17233 whether the predicate on the conditional operation is suitable
17234 for merging. Split patterns into the canonical equal-predicate form.
17235 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
17236 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
17237
17238 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17239 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17240
17241 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
17242 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
17243 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
17244 rtx codes.
17245 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
17246 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
17247 unspecs.
17248
17249 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17250 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17251
17252 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
17253 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
17254 actually has, rather than relying on REG_EQUAL notes.
17255 Make the insn operand order match the SVE operand order.
17256 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
17257 the SVE operand order.
17258
17259 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17260
17261 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
17262 (aarch64_emit_set_immediate): Likewise.
17263 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
17264 (aarch64_pfalse_reg): Likewise.
17265 (aarch64_convert_sve_data_to_pred): New function.
17266 (aarch64_sve_move_pred_via_while): Take an optional target register
17267 and the required register mode.
17268 (aarch64_expand_sve_const_pred_1): New function.
17269 (aarch64_expand_sve_const_pred): Likewise.
17270 (aarch64_expand_mov_immediate): Build an all-true predicate
17271 if the significant bits of the immediate are all true. Use
17272 aarch64_expand_sve_const_pred for all compile-time predicate constants.
17273 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
17274 before register allocation.
17275 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
17276 a VNx16BI PTRUE when splitting the memory alternative.
17277 (vec_duplicate<mode>): Update accordingly.
17278 (*pred_cmp<cmp_op><mode>): Rename to...
17279 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
17280
17281 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17282
17283 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
17284 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
17285 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
17286 (UNSPEC_PTEST): New unspec.
17287 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
17288 * config/aarch64/iterators.md (data_bytes): New mode attribute.
17289 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
17290 * config/aarch64/aarch64-sve.md: Add a new section describing the
17291 handling of UNSPEC_PTEST.
17292 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
17293 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
17294 (ptest_ptrue<mode>): Replace with...
17295 (aarch64_ptest<mode>): ...this new pattern.
17296 (cbranch<mode>4): Update after above changes.
17297 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
17298 UNSPEC_PTEST_PTRUE.
17299 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
17300 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
17301 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
17302
17303 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
17304
17305 PR lto/91287
17306 * builtins.c (builtin_with_linkage_p): New function.
17307 * builtins.h (builtin_with_linkage_p): New function.
17308 * symtab.c (write_symbol): Remove redundant assert.
17309 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
17310 Remove FIXME and use builtin_with_linkage_p.
17311
17312 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17313
17314 PR middle-end/91421
17315 * tree-core.h (function_decl::function_code): Change type to
17316 unsigned int.
17317 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
17318 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
17319 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
17320 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
17321 is BUILT_IN_NORMAL.
17322 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
17323 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
17324 (fndecl_built_in_p): Change the type of the "name" argument to
17325 unsigned int.
17326 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
17327 after check for DECL_BUILT_IN_CLASS.
17328 * cgraphclones.c (build_function_decl_skip_args): Use
17329 set_decl_built_in_function.
17330 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
17331 * ipa-split.c (split_function): Likewise.
17332 * langhooks.c (add_builtin_function_common): Likewise.
17333 * omp-simd-clone.c (simd_clone_create): Likewise.
17334 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17335 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
17336 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
17337 DECL_FUNCTION_CODE.
17338 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
17339 instead of DECL_FUNCTION_CODE.
17340 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
17341 instead of DECL_FUNCTION_CODE.
17342 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17343 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
17344 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
17345 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
17346 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
17347 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
17348 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
17349 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
17350 (alpha_gimple_fold_builtin): Likewise.
17351 * config/arc/arc.c (arc_expand_builtin): Likewise.
17352 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
17353 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
17354 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
17355 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
17356 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
17357 * config/frv/frv.c (frv_expand_builtin): Likewise.
17358 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
17359 (gcn_expand_builtin): Likewise.
17360 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
17361 (fold_builtin_cpu): Likewise.
17362 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
17363 * config/i386/i386.c (ix86_fold_builtin): Likewise.
17364 (ix86_gimple_fold_builtin): Likewise.
17365 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
17366 (ia64_expand_builtin): Likewise.
17367 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
17368 * config/mips/mips.c (mips_expand_builtin): Likewise.
17369 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
17370 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17371 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
17372 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
17373 * config/pa/pa.c (pa_expand_builtin): Likewise.
17374 * config/pru/pru.c (pru_expand_builtin): Likewise.
17375 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
17376 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17377 Likewise.
17378 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
17379 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
17380 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
17381 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
17382 (rs6000_builtin_reciprocal): Likewise.
17383 * config/rx/rx.c (rx_expand_builtin): Likewise.
17384 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17385 * config/s390/s390.c (s390_expand_builtin): Likewise.
17386 * config/sh/sh.c (sh_expand_builtin): Likewise.
17387 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
17388 (sparc_fold_builtin): Likewise.
17389 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
17390 * config/spu/spu.c (spu_expand_builtin): Likewise.
17391 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
17392 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
17393 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
17394 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
17395 (xtensa_expand_builtin): Likewise.
17396
17397 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17398
17399 PR middle-end/91421
17400 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
17401 before the DECL_FUNCTION_CODE.
17402 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
17403 to check for a BUILT_IN_ALLOCA call.
17404 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
17405 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
17406 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
17407 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17408 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
17409 for BUILT_IN_NORMAL functions.
17410 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
17411 test for BUILT_IN_TM_ABORT.
17412 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
17413 to check for a BUILT_IN_STACK_RESTORE call.
17414 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
17415 * tree-ssa-threadedge.c
17416 (record_temporary_equivalences_from_stmts_at_dest): Check for a
17417 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
17418 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
17419 test for a BUILT_IN_NORMAL call instead of a negative test for
17420 an internal function call.
17421
17422 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17423
17424 * tree.h (build_vector_a_then_b): Declare.
17425 * tree.c (build_vector_a_then_b): New function.
17426 * fold-const-call.c (fold_while_ult): Likewise.
17427 (fold_const_call): Use it to handle IFN_WHILE_ULT.
17428 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
17429 (aarch64_svpattern): New enum.
17430 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
17431 constants through aarch64_expand_mov_immediate.
17432 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
17433 than general_operand as the predicate for operand 1.
17434 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
17435 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
17436 insn_type.
17437 (simd_immediate_info::simd_immediate_info): New overload that
17438 takes a scalar_int_mode and an svpattern.
17439 (simd_immediate_info::u): Add a "pattern" field.
17440 (svpattern_token): New function.
17441 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
17442 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
17443 (aarch64_sve_move_pred_via_while): New functions.
17444 (aarch64_expand_mov_immediate): Try using
17445 aarch64_sve_move_pred_via_while for predicates that contain N ones
17446 followed by M zeros but that do not correspond to a VLnnn pattern.
17447 (aarch64_sve_pred_valid_immediate): New function.
17448 (aarch64_simd_valid_immediate): Use it instead of dealing directly
17449 with PTRUE and PFALSE.
17450 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
17451 forms.
17452
17453 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
17454
17455 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
17456 flag.
17457 (darwin_override_options): Likewise.
17458 * config/darwin.h: Likewise.
17459 * config/darwin.opt: Likewise.
17460 * config/i386/i386.c (output_pic_addr_const): Likewise.
17461 * config/rs6000/darwin.h: Likewise.
17462 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
17463 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
17464 ... this TARGET_MACHO_SYMBOL_STUBS.
17465 (FUNCTION_PROFILER):Likewise.
17466 * config/i386/i386.h: Likewise.
17467
17468 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17469
17470 * config/i386/i386-expand.c (ix86_expand_vector_extract)
17471 <case E_V2SImode>: Use vec_extr path for
17472 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17473 <case E_V8QImode>: Ditto.
17474 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
17475 Use SWI48 mode iterator. Use %k to output operand 0.
17476 (*mmx_pextrw): New insn pattern.
17477 (*mmx_pextrb): Ditto.
17478 (*mmx_pextrb_zext): Ditto.
17479
17480 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
17481
17482 * target.def (libc_has_function, libc_has_fast_function): Improve
17483 documentation strings.
17484 * doc/tm.texi: Regenerate.
17485
17486 2019-08-13 Caroline Tice <cmtice@google.com>
17487
17488 PR other/91396
17489 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
17490 vtv_end.o or vtv_end_preinit.o files if !static.
17491
17492 2019-08-13 Olivier Hainque <hainque@adacore.com>
17493
17494 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17495
17496 2019-08-13 Olivier Hainque <hainque@adacore.com>
17497
17498 * rtlanal.c (tablejump_casesi_pattern): New function, to
17499 determine if a tablejump insn is a casesi dispatcher. Extracted
17500 from patch_jump_insn.
17501 * rtl.h (tablejump_casesi_pattern): Declare.
17502 * cfgrtl.c (patch_jump_insn): Use it.
17503 * dwarf2cfi.c (create_trace_edges): Use it.
17504
17505 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17506
17507 PR target/81800
17508 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17509 operand is larger than a long int.
17510
17511 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17512
17513 * machmode.h (opt_mode::else_mode): New function.
17514 (opt_mode::else_blk): Use it.
17515 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17516 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17517 (aarch64_gen_stepped_int_parallel): Likewise.
17518 (aarch64_stepped_int_parallel_p): Likewise.
17519 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17520 argument.
17521 * config/aarch64/aarch64.c
17522 (aarch64_expand_sve_widened_duplicate): Delete.
17523 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17524 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17525 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17526 argument. Use early returns in the !CONST_INT_P handling.
17527 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17528 than handling some inline.
17529 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17530 from...
17531 (aarch64_simd_container_mode): ...here.
17532 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17533 (aarch64_sve_ld1rq_operand_p): New functions.
17534 * config/aarch64/predicates.md (descending_int_parallel)
17535 (aarch64_sve_ld1rq_operand): New predicates.
17536 * config/aarch64/constraints.md (UtQ): New constraint.
17537 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17538 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17539 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17540 (@aarch64_sve_reinterpret<mode>): New expander.
17541 (*aarch64_sve_reinterpret<mode>): New pattern.
17542 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17543 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17544 (*sve_ld1rq<Vesize>): Replace with...
17545 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17546
17547 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17548
17549 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17550 16:12.
17551
17552 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17553
17554 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17555 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17556 (msp430_check_path_for_devices): New.
17557 (parse_devices_csv_1): New.
17558 (parse_devices_csv): New.
17559 (msp430_extract_mcu_data): Try to find devices.csv and search for the
17560 MCU data in devices.csv before using the hard-coded data.
17561 Warn if devices.csv isn't found and the MCU wasn't found in the
17562 hard-coded data either.
17563 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17564 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17565 Search for devices.csv on -I and -L paths.
17566 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17567 msp430_set_driver_var.
17568 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17569 -mdevices-csv-loc=.
17570 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17571 searched for devices.csv.
17572 (mwarn-devices-csv): Document option.
17573
17574 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17575
17576 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17577 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17578 Use a single Dn alternative instead of separate Dz and Dm
17579 alternatives. Use aarch64_output_sve_move_immediate.
17580 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17581 function.
17582 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17583 for predicates too.
17584 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17585 (aarch64_output_ptrue): Delete.
17586
17587 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17588
17589 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17590 INDEX.
17591 (simd_immediate_info::value, simd_immediate_info::step)
17592 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17593 with...
17594 (simd_immediate_info::u): ...this new union.
17595 (simd_immediate_info::simd_immediate_info): Update accordingly.
17596 (aarch64_output_simd_mov_immediate): Likewise.
17597 (aarch64_output_sve_mov_immediate): Likewise.
17598
17599 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17600
17601 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17602 extra_gcc_objs.
17603 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17604 (msp430_select_cpu): New spec function.
17605 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17606 MCU data.
17607 * config/msp430/msp430-devices.c: New file.
17608 * config/msp430/msp430-devices.h: New file.
17609 * config/msp430/msp430.c: Remove msp430_mcu_data.
17610 (msp430_option_override): Use msp430_extract_mcu_data to extract
17611 MCU data.
17612 (msp430_use_f5_series_hwmult): Likewise.
17613 (use_32bit_hwmult): Likewise.
17614 (msp430_no_hwmult): Likewise.
17615 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17616 assembler.
17617 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17618 and -mcpu option.
17619 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17620 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17621 Remove hard-coded MCU multilib data.
17622
17623 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17624
17625 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17626 based on the mode instead of testing properties of it.
17627
17628 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17629
17630 * doc/md.texi: Document the x and y constraints for AArch64.
17631 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17632 (FP_LO8_REGS): New reg_class.
17633 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17634 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17635 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17636 * config/aarch64/predicates.md (aarch64_simd_register): Use
17637 FP_REGNUM_P instead of checking the classes manually.
17638 * config/aarch64/constraints.md (y): New constraint.
17639
17640 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17641
17642 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17643 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17644 * config/aarch64/aarch64-simd.md
17645 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17646 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17647 from the asm template.
17648 * config/aarch64/aarch64-sve.md
17649 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17650 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17651 from the asm template.
17652 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17653 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17654 from the asm template.
17655 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17656
17657 2019-08-13 Martin Liska <mliska@suse.cz>
17658
17659 * value-prof.c (gimple_ic_transform): Add new line.
17660 Print details with MSG_NOTE.
17661
17662 2019-08-13 Martin Liska <mliska@suse.cz>
17663
17664 * doc/invoke.texi: Document automatic detection of jobserver.
17665 * lto-wrapper.c (run_gcc): Detect jobserver always.
17666
17667 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17668
17669 * config/i386/i386-expand.c (ix86_expand_vector_set)
17670 <case E_V2SImode>: Use vec_merge path for
17671 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17672 <case E_V8QImode>: Ditto.
17673 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17674 (*mmx_pinsrb): Ditto.
17675
17676 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17677
17678 PR target/83250
17679 PR target/91340
17680 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17681 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17682 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17683 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17684 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17685
17686 2019-08-12 Richard Biener <rguenther@suse.de>
17687
17688 PR lto/91375
17689 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17690 flag_devirtualize.
17691
17692 2019-08-12 Richard Biener <rguenther@suse.de>
17693
17694 PR driver/91130
17695 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17696 lang_mask option, always use CL_DRIVER.
17697 (get_options_from_collect_gcc_options): Adjust.
17698 (find_and_merge_options): Likewise.
17699 (run_gcc): Likewise.
17700
17701 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17702
17703 * ipa-predicate.c (add_condition): Restore inverted test.
17704
17705 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17706
17707 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17708 (enum omp_clause_device_type_kind): New enum.
17709 (struct tree_omp_clause): Add subcode.device_type_kind.
17710 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17711 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17712 for device_type clause.
17713 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17714 * tree-pretty-print.c (dump_omp_clause): Likewise.
17715
17716 PR target/91408
17717 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17718 vector_operand.
17719
17720 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17721
17722 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17723 handling spilled pseudos.
17724
17725 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17726
17727 PR target/91386
17728 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17729 to preserve the contents of the original insns.
17730
17731 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17732
17733 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17734 (addsi3_compare_op2): Likewise.
17735
17736 2019-08-09 Martin Liska <mliska@suse.cz>
17737
17738 * alias.c (alias_ptr_types_compatible_p): Strengten
17739 type comparison in LTO mode.
17740
17741 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17742
17743 PR middle-end/90313
17744 * tree-tailcall.c (find_tail_calls): Reject calls that might
17745 read from an escaped RESULT_DECL.
17746
17747 2019-08-09 Martin Liska <mliska@suse.cz>
17748
17749 * doc/invoke.texi: Document the option value.
17750 * lto-wrapper.c (run_gcc): Set auto_parallel
17751 only with -flto=auto.
17752
17753 2019-08-09 Martin Liska <mliska@suse.cz>
17754
17755 * opts.c (common_handle_option): Error for an invalid argument
17756 to -flto=.
17757
17758 2019-08-09 Martin Liska <mliska@suse.cz>
17759
17760 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17761 use dump_printf to report optimization.
17762 (sem_variable::merge): Likwise.
17763 (sem_item_optimizer::merge_classes): Use dump_printf to report
17764 ICF hits.
17765
17766 2019-08-09 Martin Liska <mliska@suse.cz>
17767
17768 * value-prof.c (gimple_divmod_fixed_value_transform):
17769 Use dump_printf_loc.
17770 (gimple_mod_pow2_value_transform): Likewise.
17771 (gimple_mod_subtract_transform): Likewise.
17772 (init_node_map): Likewise.
17773 (gimple_ic_transform): Likewise.
17774 (gimple_stringops_transform): Likewise.
17775
17776 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17777
17778 * doc/extend.texi: Add const qualifier to ld intrinsics.
17779
17780 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17781
17782 * config/rs6000/dfp.md (D64_D128): Rename to ...
17783 (DDTD): ... this, throughout.
17784 (dfp_suffix): Rename to ...
17785 (q): ... this, throughout.
17786
17787 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17788
17789 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17790 (dfp_suffix): Ditto.
17791 (adddd3, addtd3): Merge to ...
17792 (add<mode>3 for D64_D128): ... this.
17793 (subdd3, subtd3): Merge to ...
17794 (sub<mode>3 for D64_D128): ... this.
17795 (muldd3, multd3): Merge to ...
17796 (mul<mode>3 for D64_D128): ... this.
17797 (divdd3, divtd3): Merge to ...
17798 (div<mode>3 for D64_D128): ... this.
17799 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17800 (*cmp<mode>_internal1 for D64_D128): ... this.
17801 (ftruncdd2, ftrunctd2): Merge to ...
17802 (ftrunc<mode>2 for D64_D128): ... this.
17803 (fixdddi2, fixtddi2): Merge to ...
17804 (fix<mode>di2 for D64_D128): ... this.
17805
17806 2019-08-08 Jim Wilson <jimw@sifive.com>
17807
17808 PR target/91229
17809 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17810 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17811 Pass into recursive call.
17812 (riscv_flatten_aggregate_argument): New arg. Pass to
17813 riscv_flatten_aggregate_field.
17814 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17815 riscv_flatten_aggregate_argument twice, with false and true as last
17816 arg. Process result twice. Compare results and warn if different.
17817 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17818
17819 2019-08-08 Martin Liska <mliska@suse.cz>
17820
17821 PR bootstrap/91352
17822 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17823 * lto-wrapper.c (jobserver_active_p): Likewise.
17824
17825 2019-08-08 Martin Liska <mliska@suse.cz>
17826
17827 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17828 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17829 (create_version_clone_with_body): Likewise.
17830
17831 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17832
17833 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17834 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17835 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17836 GOVD_EXPLICIT flags.
17837 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17838 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17839 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17840 call install_var_field with mask 11 instead of 3.
17841 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17842 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17843
17844 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17845
17846 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17847 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17848
17849 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17850
17851 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17852 MOVPRFX alternatives. Make the GPR alternatives more expensive
17853 than the FPR ones.
17854
17855 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17856
17857 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17858 Disparage the GPR alternative relative to the FPR one.
17859 Fix handling of 8-bit and 16-bit FPR values.
17860
17861 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17862
17863 * config/aarch64/iterators.md (BITWISEV): Delete.
17864 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17865 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17866 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17867 UNSPEC_FMINNMV, UNSPEC_FMINV.
17868 (bit_reduc_op): Delete.
17869 (sve_int_op): New int attribute.
17870 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17871 UNSPEC_FMINNMV, UNSPEC_FMINV.
17872 * config/aarch64/aarch64-sve.md
17873 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17874 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17875 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17876 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17877 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17878 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17879 new patterns.
17880 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17881 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17882 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17883 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17884 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17885 new patterns.
17886
17887 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17888
17889 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17890 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17891 (fms<mode>4, *fms<mode>4): Replace with...
17892 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17893 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17894 Use unspecs instead of rtx codes.
17895 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17896 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17897
17898 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17899
17900 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17901 int iterator.
17902 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17903 * config/aarch64/aarch64-sve.md
17904 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17905 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17906 use a single unspec for the rhs.
17907 (*<su><maxmin><mode>3): Delete.
17908 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17909
17910 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17911
17912 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17913 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17914 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17915 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17916 (optab, sve_fp_op): Handle them.
17917 (SVE_FP_UNARY): Delete.
17918 (optab): Remove sqrt entry.
17919 (sve_fp_op): Remove neg, abs and sqrt entries.
17920 (SVE_COND_FP_UNARY): New int iterator.
17921 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17922 (*<frint_pattern><mode>2): Delete.
17923 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17924 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17925 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17926 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17927
17928 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17929
17930 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17931
17932 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17933
17934 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17935 (UNSPEC_COND_FADD): ...this.
17936 (UNSPEC_COND_SUB): Rename to...
17937 (UNSPEC_COND_FSUB): ...this.
17938 (UNSPEC_COND_MUL): Rename to...
17939 (UNSPEC_COND_FMUL): ...this.
17940 (UNSPEC_COND_DIV): Rename to...
17941 (UNSPEC_COND_FDIV): ...this.
17942 (UNSPEC_COND_MAX): Rename to...
17943 (UNSPEC_COND_FMAXNM): ...this.
17944 (UNSPEC_COND_MIN): Rename to...
17945 (UNSPEC_COND_FMINNM): ...this.
17946 (UNSPEC_COND_LT): Rename to...
17947 (UNSPEC_COND_FCMLT): ...this.
17948 (UNSPEC_COND_LE): Rename to...
17949 (UNSPEC_COND_FCMLE): ...this.
17950 (UNSPEC_COND_EQ): Rename to...
17951 (UNSPEC_COND_FCMEQ): ...this.
17952 (UNSPEC_COND_NE): Rename to...
17953 (UNSPEC_COND_FCMNE): ...this.
17954 (UNSPEC_COND_GE): Rename to...
17955 (UNSPEC_COND_FCMGE): ...this.
17956 (UNSPEC_COND_GT): Rename to...
17957 (UNSPEC_COND_FCMGT): ...this.
17958 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17959 (sve_fp_op_rev): Update accordingly.
17960 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17961
17962 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17963
17964 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17965 banner comments.
17966 * config/aarch64/check-sve-md.awk: New file.
17967 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17968 (insn-conditions.md): Depend on it.
17969
17970 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17971
17972 PR target/91385
17973 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17974 (*negsi2_cmpz_zext): Ditto.
17975
17976 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17977
17978 * config/aarch64/iterators.md (commutative): Remove.
17979
17980 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17981
17982 PR driver/91130
17983 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17984 processing COLLECT_GCC_OPTIONS.
17985 (run_gcc): Likewise.
17986
17987 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17988
17989 PR tree-optimization/91109
17990 * lra-remat.c (update_scratch_ops): Remove assignment of the
17991 hard register.
17992
17993 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17994
17995 * data-streamer.h (streamer_write_poly_uint64): Declare.
17996 (streamer_read_poly_uint64): Likewise.
17997 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17998 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17999 * ipa-predicate.h (condition::size): Turn into a poly_int64.
18000 (add_condition): Take a poly_int64 size.
18001 * ipa-predicate.c (add_condition): Likewise.
18002 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
18003 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
18004 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
18005 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
18006 condition::size as a poly_int64.
18007 (unmodified_parm_1): Take a poly_int64 size pointer.
18008 (unmodified_parm): Likewise.
18009 (unmodified_parm_or_parm_agg_item): Likewise.
18010 (set_cond_stmt_execution_predicate): Update accordingly.
18011 (set_switch_stmt_execution_predicate): Likewise.
18012 (will_be_nonconstant_expr_predicate): Likewise.
18013 (will_be_nonconstant_predicate): Likewise.
18014 (inline_read_section): Stream condition::size as a poly_int.
18015 (ipa_fn_summary_write): Likewise.
18016
18017 2019-08-07 Martin Liska <mliska@suse.cz>
18018
18019 * fold-const.c (twoval_comparison_p): Replace int
18020 with bool as a return type.
18021 (simple_operand_p): Likewise.
18022 (operand_equal_p): Replace int with bool as a return type.
18023 * fold-const.h (operand_equal_p): Likewise.
18024
18025 2019-08-07 Jakub Jelinek <jakub@redhat.com>
18026
18027 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
18028 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
18029 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
18030 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
18031 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
18032 * tree-pretty-print.c (dump_omp_clause): Likewise.
18033 * tree-nested.c (convert_nonlocal_omp_clauses,
18034 convert_local_omp_clauses): Likewise.
18035 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
18036 Likewise.
18037 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
18038 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
18039 clause with array or reference to array types, no matter what type
18040 except for reference it has.
18041
18042 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
18043
18044 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
18045
18046 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
18047
18048 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
18049 (arch_canonicalize): Support rv32g and rv64g and fix error
18050 handling.
18051
18052 2019-08-06 Martin Liska <mliska@suse.cz>
18053
18054 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
18055 and DECL_IS_OPERATOR_DELETE_P.
18056
18057 2019-08-06 Jakub Jelinek <jakub@redhat.com>
18058
18059 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
18060 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
18061 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
18062 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
18063 (gimplify_omp_for): Don't do C++ random access iterator clause
18064 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
18065 don't predetermine the artificial iterator in case of C++ random
18066 access iterators as lastprivate, but private. For OMP_LOOP, force
18067 bind expr around simd body and force for_pre_body before the
18068 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
18069 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
18070 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
18071 diff var of C++ random access iterators. Handle
18072 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
18073 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
18074 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
18075 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
18076 * omp-low.c (lower_rec_input_clauses): For
18077 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
18078 variables instead of default constructing them.
18079 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
18080 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
18081 is_taskloop_ctx check from the assert to the guarding condition.
18082
18083 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
18084
18085 * config/riscv/multilib-generator: (canonical_order): New.
18086 (arch_canonicalize): Dito.
18087 Apply arch_canonicalize for alts.
18088
18089 2019-08-05 Martin Sebor <msebor@redhat.com>
18090
18091 * doc/extend.texi (Common Variable Attributes): Document alias
18092 attribute.
18093
18094 2019-08-05 Marek Polacek <polacek@redhat.com>
18095
18096 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
18097 * doc/invoke.texi: Document -Wcomma-subscript.
18098
18099 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18100
18101 * tree-core.h (tree_function_decl): Make function_code an
18102 independent field. Group the remaining bitfields into bytes
18103 and move decl_type so that it contines to be at a byte boundary.
18104 Leave 12 bits for future expansion.
18105
18106 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18107
18108 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
18109 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
18110 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
18111 IFN_MASK_STORE.
18112
18113 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18114
18115 * gimple.h (gimple_move_vops): Declare.
18116 * gimple.c (gimple_move_vops): New function
18117 * gimple-fold.c (replace_call_with_call_and_fold)
18118 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
18119 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
18120 (gimple_fold_call): Use it.
18121 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
18122 * tree-call-cdce.c (use_internal_fn): Likewise.
18123 * tree-if-conv.c (predicate_load_or_store): Likewise.
18124 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
18125 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
18126 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
18127 (update_call_from_tree): Likewise.
18128 * tree-vect-stmts.c (vectorizable_load): Likewise.
18129 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
18130
18131 2019-08-05 Martin Liska <mliska@suse.cz>
18132
18133 PR c++/91334
18134 * tree-ssa-dce.c (propagate_necessity): Handle new operators
18135 with not arguments.
18136 (eliminate_unnecessary_stmts): Likewise.
18137
18138 2019-08-05 Richard Biener <rguenther@suse.de>
18139
18140 PR middle-end/91169
18141 * fold-const.c (get_array_ctor_element_at_index): Create
18142 offset_ints according to the sign of the index type and treat
18143 that as signed if it is obviously so.
18144
18145 2019-08-05 Jakub Jelinek <jakub@redhat.com>
18146
18147 PR target/91341
18148 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
18149 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
18150 _mm256_storeu2_m128i): New function.
18151
18152 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
18153
18154 * config/riscv/riscv.c (riscv_promote_function_mode): New.
18155 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
18156
18157 2019-08-05 Alan Modra <amodra@gmail.com>
18158
18159 PR target/91349
18160 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
18161 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
18162
18163 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
18164
18165 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
18166 bug that was fixed in Tcl 8.6.1.
18167
18168 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
18169
18170 * config/rs6000/future.md: New file.
18171 * config/rs6000/rs6000.md: Include future.md.
18172 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
18173
18174 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
18175
18176 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
18177 check to use targetm.slow_unaligned_access instead.
18178
18179 * function.c (assign_param_data_one): Remove unused data members.
18180
18181 2019-08-02 Steve Ellcey <sellcey@marvell.com>
18182
18183 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
18184 build_distinct_type_copy.
18185 (simd_clone_adjust_argument_types): Ditto.
18186 (simd_clone_adjust): Call build_distinct_type_copy here.
18187 (expand_simd_clones): Ditto.
18188
18189 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18190
18191 PR target/91201
18192 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
18193
18194 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
18195
18196 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
18197 from 'const void *'.
18198 (sort_locs_in_loop_postorder_cmp): Likewise.
18199
18200 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
18201
18202 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
18203 (hot-bb-count-ws-permille): Likewise.
18204 (hot-bb-frequency-fraction): Likewise.
18205 (unlikely-bb-count-fraction): Likewise.
18206 * params.def (hot-bb-count-fraction): Rework description.
18207 (hot-bb-count-ws-permille): Likewise.
18208 (hot-bb-frequency-fraction): Likewise.
18209 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
18210 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
18211
18212 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18213
18214 PR target/91323
18215 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
18216 Return false.
18217
18218 2019-08-02 Richard Biener <rguenther@suse.de>
18219
18220 * vec.h (vec::sort): Add gcc_qsort_r support.
18221 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
18222 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
18223 to gcc_qsort_r style callback.
18224 (sort_locs_in_loop_postorder_cmp): Likewise.
18225 (analyze_memory_references): Use gcc_sort_r interfaces.
18226 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
18227
18228 2019-08-02 Martin Liska <mliska@suse.cz>
18229
18230 PR lto/91313
18231 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
18232 to detect working job server.
18233 (driver::detect_jobserver): Test whether jobserver
18234 is active from GCC driver. That will prevent situation where
18235 GCC is invoked from a LD plugin and the linker already uses
18236 file descriptors suggested by make. That leads to a wrong
18237 detection.
18238 * gcc.h (driver): Add detect_jobserver.
18239 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
18240 not scanning for --jobserver-auth prefix.
18241
18242 2019-08-02 Jakub Jelinek <jakub@redhat.com>
18243
18244 PR tree-optimization/91201
18245 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
18246 V16QImode extraction without sse4.1 try to use V4SImode lowpart
18247 extraction.
18248
18249 2019-08-01 Martin Sebor <msebor@redhat.com>
18250
18251 PR c++/90947
18252 * tree.c (type_initializer_zero_p): Define.
18253 * tree.h (type_initializer_zero_p): New function.
18254
18255 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18256
18257 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
18258
18259 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18260
18261 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
18262 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
18263 * predict.c (maybe_hot_count_p): Likewise.
18264 (maybe_hot_bb_p): Tweak comment.
18265 (maybe_hot_edge_p): Likewise.
18266 (probably_never_executed): Likewise. Minor tweak.
18267 (probably_never_executed_bb_p): Likewise.
18268 (unlikely_executed_edge_p): Likewise.
18269 (probably_never_executed_edge_p): Likewise.
18270 (optimize_function_for_size_p): Likewise.
18271 (optimize_function_for_speed_p): Likewise.
18272 (function_optimization_type): Likewise.
18273 (optimize_bb_for_size_p): Likewise.
18274 (optimize_bb_for_speed_p): Likewise.
18275 (bb_optimization_type): Likewise.
18276 (optimize_edge_for_size_p): Likewise.
18277 (optimize_edge_for_speed_p): Likewise.
18278 (optimize_insn_for_size_p): Likewise.
18279 (optimize_insn_for_speed_p): Likewise.
18280 (optimize_loop_for_size_p): Likewise.
18281 (optimize_loop_for_speed_p): Likewise.
18282 (optimize_loop_nest_for_speed_p): Likewise.
18283 (optimize_loop_nest_for_size_p): Likewise.
18284 (predictable_edge_p): Likewise.
18285 (handle_missing_profiles): Minor tweak.
18286
18287 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
18288
18289 * config/rs6000/predicates.md (pcrel_external_address): Update
18290 comment.
18291
18292 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18293
18294 PR target/85693
18295 * config/i386/mmx.md (usadv8qi): New expander.
18296
18297 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
18298
18299 PR c++/90590
18300 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
18301 with reserved names that are in a system header.
18302
18303 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18304
18305 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
18306 (*vec_extractv2si_0_zext_sse4): New insn pattern.
18307 (*vec_extractv2si_0_zext): Ditto.
18308 (*vec_extractv2si_1): Add (rm,x) alternative.
18309 (*vec_extractv2si_1_zext): New insn pattern.
18310 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
18311 insn constraint.
18312
18313 2019-08-01 Richard Biener <rguenther@suse.de>
18314
18315 * domwalk.c (bb_postorder): Remove static variable.
18316 (cmp_bb_postorder): Adjust.
18317 (sort_bbs_postorder): Adjust and use gcc_sort_r.
18318 (dom_walker::walk): Adjust.
18319
18320 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
18321
18322 * sort.cc (sort_r_ctx): New struct.
18323 (reorder23): Make templated on context type.
18324 (reorder45): Ditto.
18325 (cmp1): Ditto. Adjust signature.
18326 (netsort): Ditto.
18327 (mergesort): Ditto.
18328 [CHECKING_P] (cmp2to3): New static function. Use it...
18329 (gcc_qsort) [CHECKING_P]: ...here.
18330 (gcc_sort_r): New function.
18331 * system.h (sort_r_cmp_fn): New function typedef.
18332 (qsort_chk): Adjust signature.
18333 (gcc_sort_r): Declare.
18334 * vec.c (qsort_chk_error): Adjust.
18335 (qsort_chk): Adjust.
18336
18337 2019-08-01 Richard Biener <rguenther@suse.de>
18338
18339 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
18340 (compute_antic): Localize it here.
18341
18342 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
18343
18344 * common/config/riscv/riscv-common.c: Check -march string ends
18345 with null.
18346
18347 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
18348
18349 * ipa-devirt.c (type_warning_cmp): Make static.
18350 (decl_warning_cmp): Ditto.
18351
18352 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
18353
18354 PR target/91050
18355 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
18356 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
18357 use of deleted rs6000_dejagnu_cpu_index variable.
18358 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
18359 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18360 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
18361 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
18362 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
18363 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18364
18365 2019-07-31 Richard Biener <rguenther@suse.de>
18366
18367 PR tree-optimization/91280
18368 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18369 Decompose MEM_REF manually for offset handling.
18370
18371 2019-07-31 Richard Biener <rguenther@suse.de>
18372
18373 PR tree-optimization/91293
18374 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
18375 of reduction stmts.
18376
18377 2019-07-31 Matt Thomas <matt@3am-software.com>
18378 Nick Hudson <nick@nthcliff.demon.co.uk>
18379 Matthew Green <mrg@eterna.com.au>
18380 Maya Rashish <coypu@sdf.org>
18381
18382 * config.gcc (hppa*-*-netbsd*): New target.
18383 * config/pa/pa-netbsd.h: New file.
18384 * config/pa/pa32-netbsd.h: New file.
18385
18386 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18387
18388 PR tree-optimization/91201
18389 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
18390
18391 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
18392
18393 * config/gcn/gcn-valu.md
18394 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
18395 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
18396 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
18397 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
18398 struct ilist. Add nops for delayeduse insns.
18399 * config/gcn/gcn.md (delayeduse): New attribute.
18400 (*movbi): Remove s_waitcnt from stores.
18401 (*mov<mode>_insn): Likewise.
18402 (*movti_insn): Likewise. Add delayeduse attribute.
18403 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
18404 (atomic_store<mode>): Remove or adjust s_waitcnt.
18405
18406 2019-07-31 Richard Biener <rguenther@suse.de>
18407
18408 * vr-values.h (vr_values::swap_vr_value): New.
18409 (vr_values::free_value_range): likewise.
18410 * vr-values.c (vr_values::swap_vr_value): Implement.
18411 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
18412 Do not return a range or take a var.
18413 (evrp_range_analyzer::stack): Change back to recording a non-const
18414 value_range *.
18415 * gimple-ssa-evrp-analyze.c
18416 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
18417 value-range.
18418 (evrp_range_analyzer::pop_to_marker): Adjust.
18419 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
18420 (evrp_range_analyzer::pop_value_range): Likewise. Free the
18421 no longer needed value-range.
18422
18423 2019-07-31 Martin Liska <mliska@suse.cz>
18424
18425 * tree-ssa-dce.c (propagate_necessity): Delete operator can
18426 have size and (or) alignment as 2nd and later arguments.
18427 Mark all of them as necessary.
18428
18429 2019-07-31 Richard Biener <rguenther@suse.de>
18430
18431 PR tree-optimization/91178
18432 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18433 Use tail-recursion.
18434
18435 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18436
18437 PR tree-optimization/91201
18438 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
18439 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
18440 TARGET_AVX512F.
18441 (reduc_plus_scal_<mode>): Improve formatting by introducing
18442 a temporary.
18443
18444 2019-07-31 Sudakshina Das <sudi.das@arm.com>
18445
18446 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
18447 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
18448 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
18449 (aarch64_init_tme_builtins): New.
18450 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
18451 (aarch64_expand_builtin_tme): New.
18452 (aarch64_expand_builtin): Handle TME builtins.
18453 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
18454 __ARM_FEATURE_TME when enabled.
18455 * config/aarch64/aarch64-option-extensions.def: Add "tme".
18456 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
18457 (TARGET_TME): New.
18458 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
18459 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
18460 UNSPECV_TCANCEL.
18461 (tstart, ttest, tcommit, tcancel): New instructions.
18462 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
18463 (__tcancel, __ttest): New.
18464 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
18465 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
18466 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
18467 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
18468 * config/arm/types.md: Add new tme type attr.
18469 * doc/invoke.texi: Document "tme".
18470
18471 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
18472
18473 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
18474 warn_unused_result attribute.
18475 (cmse_check_address_range): Add warn_unused_result attribute.
18476
18477 2019-07-31 Richard Biener <rguenther@suse.de>
18478
18479 PR tree-optimization/91257
18480 * tree-vrp.c (union_ranges): Unify equality and less tests
18481 by using compare_values. Re-order cheap tests first.
18482
18483 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18484
18485 PR middle-end/91301
18486 * gimplify.c (gimplify_omp_for): If for class iterator on
18487 distribute parallel for there is no data sharing clause
18488 on inner_for_stmt, look for private clause on combined
18489 parallel too and if found, move it to inner_for_stmt.
18490
18491 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
18492
18493 * lra-int.h (lra_operand_data): Remove early_clobber field.
18494 (lra_insn_reg): Likewise.
18495 * lra.c (debug_operand_data): Update accordingly.
18496 (setup_operand_alternative): Likewise.
18497 (new_insn_reg): Likewise. Remove early_clobber parameter.
18498 (collect_non_operand_hard_regs): Update call accordingly.
18499 Don't assign to lra_insn_reg::early_clobber.
18500 (add_regs_to_insn_regno_info): Remove early_clobber parameter
18501 and update calls to new_insn_reg.
18502 (lra_update_insn_regno_info): Update calls accordingly.
18503 * lra-constraints.c (update_and_check_small_class_inputs): Take the
18504 alternative number as a parameter and test whether the operand
18505 is earlyclobbered in that particular alternative.
18506 (process_alt_operands): Update call accordingly. Use per-alternative
18507 checks for earyclobber here too.
18508 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18509 against zero for IRA_UNKNOWN_ALT.
18510
18511 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18512
18513 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18514
18515 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
18516
18517 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18518 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18519
18520 2019-07-30 Martin Liska <mliska@suse.cz>
18521
18522 PR ipa/89330
18523 * cgraph.c (cgraph_edge::make_direct): Use
18524 edge->indirect_unknown_callee as edge->resolve_speculation can
18525 deallocate edge which is this pointer.
18526
18527 2019-07-30 Richard Biener <rguenther@suse.de>
18528
18529 PR tree-optimization/91257
18530 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18531
18532 2019-07-30 Martin Liska <mliska@suse.cz>
18533
18534 * doc/invoke.texi: Document new behavior.
18535 * lto-wrapper.c (cpuset_popcount): New function
18536 is a copy of libgomp/config/linux/proc.c.
18537 (init_num_threads): Likewise.
18538 (run_gcc): Automatically detect core count for -flto.
18539 (jobserver_active_p): New function.
18540
18541 2019-07-30 Richard Biener <rguenther@suse.de>
18542
18543 PR tree-optimization/91257
18544 * bitmap.h (bitmap_ior_into_and_free): Declare.
18545 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18546 whether to add the unliked element to the freelist.
18547 (bitmap_list_insert_element_after): Add defaulted param for
18548 an already allocated element.
18549 (bitmap_ior_into_and_free): New function.
18550 * tree-ssa-structalias.c (condense_visit): Reduce the
18551 ponts-to and edge bitmaps of the SCC members in a
18552 logarithmic fashion rather than all to one.
18553
18554 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
18555
18556 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18557 parameter. When nonnull, make sure that the addition or subtraction
18558 has the same condition.
18559 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18560 for CFN_COND_MUL too.
18561
18562 2019-07-30 Richard Biener <rguenther@suse.de>
18563
18564 PR tree-optimization/91291
18565 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18566 constant values.
18567
18568 2019-07-30 Jakub Jelinek <jakub@redhat.com>
18569
18570 PR middle-end/91216
18571 * omp-low.c (global_nonaddressable_vars): New variable.
18572 (use_pointer_for_field): For global decls, if they are non-addressable,
18573 remember it in the global_nonaddressable_vars bitmap, if they are
18574 addressable and in the global_nonaddressable_vars bitmap, ignore their
18575 TREE_ADDRESSABLE bit.
18576 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18577 vars in global_nonaddressable_vars bitmap.
18578 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18579
18580 PR target/91150
18581 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18582 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18583 comparison to unsigned HOST_WIDE_INT before shifting it left.
18584
18585 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18586
18587 * config/i386/i386.md (movstrict<mode>): Use register_operand
18588 predicate for operand 0. Add expander condition. Assert that
18589 operand 0 is a SUBREG RTX.
18590 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18591 Update operand constraints and insn condition.
18592 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18593 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18594 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18595 Update operand 0 constraints.
18596 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18597
18598 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18599
18600 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18601 when -m{code,data}-region are used without -mlarge.
18602 * config/msp430/msp430.c (msp430_option_override): Error when a
18603 non-default code or data region is used without -mlarge.
18604 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18605 attributes when they are used without -mlarge.
18606
18607 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18608
18609 PR target/70320
18610 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18611
18612 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18613
18614 PR middle-end/91242
18615 * wide-int.h (generic_wide_int::sext_elt): New function.
18616 * inchash.h (hash::add_wide_int): Use it instead of elt.
18617
18618 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18619
18620 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18621 CODE_FOR_arm_##.
18622 * config/arm/arm.md (<crc_variant>): Rename to...
18623 (arm_<crc_variant>): ... This.
18624 (<cdp>): Rename to...
18625 (arm_<cdp>): ... This.
18626 (<ldc>): Rename to...
18627 (arm_<ldc>): ... This.
18628 (<stc>): Rename to...
18629 (arm_<stc>): ... This.
18630 (<mcr>): Rename to...
18631 (arm_<mcr>): ... This.
18632 (<mrc>): Rename to...
18633 (arm_<mrc>): ... This.
18634 (<mcrr>): Rename to...
18635 (arm_<mcrr>): ... This.
18636 (<mrrc>): Rename to...
18637 (arm_<mrrc>): ... This.
18638
18639 2019-07-29 Richard Biener <rguenther@suse.de>
18640
18641 PR tree-optimization/91257
18642 * tree-ssa-sccvn.h (struct vn_avail): New.
18643 (struct vn_ssa_aux): Add avail member.
18644 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18645 member, add m_avail_freelist one.
18646 (rpo_elim::~rpo_elim): Remove.
18647 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18648 data structure.
18649 (rpo_elim::eliminate_push_avail): Likewise.
18650 (do_unwind): Likewise.
18651 (do_rpo_vn): Likewise.
18652
18653 2019-07-29 Richard Biener <rguenther@suse.de>
18654
18655 PR tree-optimization/91257
18656 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18657 most cases, instead call compare_values which handles the
18658 symbolic ranges we handle specially.
18659 (compare_values_warnv): Do not call operand_less_p but open-code
18660 the effective fold calls. Avoid converting so much.
18661
18662 2019-07-29 Martin Liska <mliska@suse.cz>
18663
18664 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18665 remove LHS of operator new call. It's handled latter.
18666
18667 2019-07-29 Richard Biener <rguenther@suse.de>
18668
18669 PR tree-optimization/91267
18670 * vr-values.c (vr_values::update_value_range): Add early return
18671 for effectively VARYING lattice entry.
18672
18673 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18674
18675 PR debug/86638
18676 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18677 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18678 necessary if keep_all_vdefs_p is true.
18679 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18680 that keep_all_vdefs_p is false.
18681 (mark_all_reaching_defs_necessary): Likewise.
18682 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18683
18684 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18685
18686 * common.opt (Og): Change the initial value of flag_dse to 0.
18687 * opts.c (default_options_table): Move OPT_ftree_dse from
18688 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18689 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18690 entry before the OPT_ftree_sra entry.
18691 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18692 of flags disabled by Og.
18693
18694 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18695
18696 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18697 variables for -Og.
18698
18699 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18700
18701 * doc/sourcebuild.texi (check-function-bodies): Document.
18702
18703 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18704
18705 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18706 VEC_DUPLICATE of a fixed-length vector even if the result
18707 is variable-length. Likewise fold a duplicate of a
18708 variable-length vector if the variable-length vector is
18709 itself a duplicate of a fixed-length sequence.
18710 (test_vector_ops_duplicate): Test more cases.
18711
18712 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18713
18714 * vector-builder.h (vector_builder): Add a shape template parameter.
18715 (vector_builder::new_unary_operation): New function, generalizing
18716 the old tree_vector_builder function.
18717 (vector_builder::new_binary_operation): Likewise.
18718 (vector_builder::binary_encoded_nelts): Likewise.
18719 * int-vector-builder.h (int_vector_builder): Update template
18720 parameters to vector_builder.
18721 (int_vector_builder::shape_nelts): New function.
18722 * rtx-vector-builder.h (rtx_vector_builder): Update template
18723 parameters to vector_builder.
18724 (rtx_vector_builder::shape_nelts): New function.
18725 (rtx_vector_builder::nelts_of): Likewise.
18726 (rtx_vector_builder::npatterns_of): Likewise.
18727 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18728 * tree-vector-builder.h (tree_vector_builder): Update template
18729 parameters to vector_builder.
18730 (tree_vector_builder::shape_nelts): New function.
18731 (tree_vector_builder::nelts_of): Likewise.
18732 (tree_vector_builder::npatterns_of): Likewise.
18733 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18734 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18735 (tree_vector_builder::new_binary_operation): Delete.
18736 (tree_vector_builder::binary_encoded_nelts): Likewise.
18737 * simplify-rtx.c: Include rtx-vector-builder.h.
18738 (distributes_over_addition_p): New function.
18739 (simplify_const_unary_operation)
18740 (simplify_const_binary_operation): Generalize handling of vector
18741 constants to include variable-length vectors.
18742 (test_vector_ops_series): Add more tests.
18743
18744 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18745
18746 PR lto/91222
18747 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18748 than INDENTIFIER_POINTER.
18749
18750 2019-07-28 Martin Liska <mliska@suse.cz>
18751
18752 PR ipa/89330
18753 * cgraph.c (symbol_table::create_edge): Always allocate
18754 a cgraph_edge.
18755 (symbol_table::free_edge): Store summary_id to
18756 edge_released_summary_ids if != -1;
18757 * cgraph.h (NEXT_FREE_NODE): Remove.
18758 (SET_NEXT_FREE_NODE): Likewise.
18759 (NEXT_FREE_EDGE): Likewise.
18760 (symbol_table::release_symbol): Store summary_id to
18761 cgraph_released_summary_ids if != -1;
18762 (symbol_table::allocate_cgraph_symbol): Always allocate
18763 a cgraph_node.
18764
18765 2019-07-28 Alan Modra <amodra@gmail.com>
18766
18767 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18768 gen_sibcall.
18769
18770 2019-07-28 Alan Modra <amodra@gmail.com>
18771
18772 PR target/91135
18773 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18774 define.
18775 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18776 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18777 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18778
18779 2019-07-28 Alan Modra <amodra@gmail.com>
18780
18781 PR target/91050
18782 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18783 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18784 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18785 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18786 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18787 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18788 in asm_default spec.
18789 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18790 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18791
18792 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18793
18794 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18795
18796 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18797
18798 PR target/89517
18799 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18800 * config/aarch64/aarch64-option-extensions.def: Add new comments
18801 and restore easier to read options.
18802
18803 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18804
18805 * convert.c (convert_to_real_1): Move part of conversion code...
18806 * match.pd: ...To here.
18807
18808 2019-07-26 Martin Jambor <mjambor@suse.cz>
18809
18810 PR ipa/89330
18811 * ipa-inline-transform.c (check_speculations_1): New function.
18812 (push_all_edges_in_set_to_vec): Likewise.
18813 (check_speculations): Use check_speculations_1, new parameter
18814 new_edges.
18815 (inline_call): Pass new_edges to check_speculations.
18816 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18817 NULL.
18818 (speculation_useful_p): Early return true if edge is inlined, remove
18819 later checks for inline_failed.
18820
18821 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18822
18823 PR rtl-optimization/91223
18824 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18825 matching with INOUT operand.
18826
18827 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18828
18829 * stmt.c (expand_case): Try to narrow the index type if it's larger
18830 than a word. Tidy up.
18831
18832 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18833
18834 * cif-code.def (NEVER_CALL): New code.
18835 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18836 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18837
18838 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18839
18840 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18841 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18842
18843 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18844
18845 * ipa-devirt.c (add_type_duplicate): Fix return value.
18846
18847 2019-07-25 Richard Biener <rguenther@suse.de>
18848
18849 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18850 type parameter and use it instead of guessing expression
18851 type from the first operand.
18852 (extract_range_from_binary_expr): Pass expr_type down.
18853
18854 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18855
18856 * config/arm/arm.md (SATrev): Change to code attribute.
18857 (*satsi_<SAT:code>): Adjust for the above.
18858 (*satsi_<SAT:code>_shift): Likewise.
18859
18860 2019-07-25 Richard Biener <rguenther@suse.de>
18861
18862 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18863 Make value_range * temporary const.
18864 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18865 Likewise.
18866 (evrp_range_analyzer::record_ranges_from_): Likewise.
18867 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18868 deal with having recorded a const one.
18869 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18870 Return a const value_range *.
18871 (evrp_range_analyzer::pop_value_range): Likewise.
18872 (evrp_range_analyzer::stack): Record const value_range *s.
18873 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18874 Adjust.
18875 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18876 (format_integer): Likewise.
18877 (sprintf_dom_walker::handle_gimple_call): Likewise.
18878 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18879 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18880 (vrp_prop::get_value_range): Adjust.
18881 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18882 modifying the lattice in-place.
18883 (vrp_prop::visit_stmt): Likewise.
18884 * vr-values.c (vr_values::get_lattice_entry): New private method.
18885 (vr_values::get_value_range): Wrap it and return a const
18886 value_range *.
18887 (vr_values::set_def_to_varying): New.
18888 (vr_values::set_defs_to_varying): Use it.
18889 (vr_values::update_value_range): Likewise.
18890 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18891 (values::op_with_constant_singleton_va): Likewise.
18892 (vr_values::extract_range_for_var_from_co): Likewise.
18893 (vr_values::extract_range_from_ssa_name): Likewise.
18894 (vr_values::extract_range_from_cond_expr): Likewise.
18895 (vr_values::extract_range_basic): Likewise.
18896 (compare_ranges): Take const value_range *, adjust.
18897 (compare_range_with_value): Likewise.
18898 (vrp_valueize): Adjust.
18899 (vrp_valueize_1): Likewise.
18900 (vr_values::get_vr_for_comparison): Return a const value_range *.
18901 (vr_values::compare_name_with_value): Adjust.
18902 (vr_values::compare_names): Likewise.
18903 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18904 Likewise.
18905 (vr_values::vrp_evaluate_conditional): Likewise.
18906 (find_case_label_ranges): Take a const value_range *.
18907 (vr_values::vrp_visit_switch_stmt): Adjust.
18908 (vr_values::extract_range_from_phi_node): Likewise.
18909 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18910 (vr_values::simplify_abs_using_ranges): Likewise.
18911 (test_for_singularity): Take a const value_range *.
18912 (range_fits_type_p): Likewise.
18913 (vr_values::simplify_cond_using_ranges_1): Adjust.
18914 (vr_values::simplify_cond_using_ranges_2): Likewise.
18915 (vr_values::simplify_switch_using_ranges): Likewise.
18916 (vr_values::simplify_float_conversion_usi): Likewise.
18917 (vr_values::two_valued_val_range_p): Likewise.
18918 * vr-values.h (vr_values::get_value_range): Return a const
18919 value_range *.
18920 (vr_values::set_def_to_varying): New.
18921 (vr_values::get_lattice_entry): New private method.
18922 (vr_values::get_vr_for_comparison): Return a const value_range *.
18923
18924 2019-07-25 Martin Liska <mliska@suse.cz>
18925 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18926
18927 PR c++/23383
18928 * common.opt: Add -fallocation-dce
18929 * gimple.c (gimple_call_operator_delete_p): New.
18930 * gimple.h (gimple_call_operator_delete_p): Likewise.
18931 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18932 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18933 DECL_IS_OPERATOR_DELETE_P.
18934 (mark_all_reaching_defs_necessary_1): Likewise.
18935 (propagate_necessity): Likewise.
18936 (eliminate_unnecessary_stmts): Handle
18937 gimple_call_operator_delete_p.
18938 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18939 Add packing of OPERATOR_DELETE.
18940 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18941 Similarly here.
18942 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18943 (DECL_SET_IS_OPERATOR_DELETE): New.
18944 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18945
18946 2019-07-25 Martin Liska <mliska@suse.cz>
18947
18948 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18949 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18950 * coverage.c (coverage_begin_function): Likewise.
18951 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18952 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18953 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18954 (sem_item::hash_referenced_symbol_properties): Likewise.
18955 * lto-streamer-out.c (hash_tree): Likewise.
18956 * predict.c (expr_expected_value_1): Likewise.
18957 * tree-inline.c (expand_call_inline): Likewise.
18958 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18959 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18960 * tree-core.h (enum function_decl_type): New enum.
18961 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18962 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18963 (set_function_decl_type): Likewise.
18964 (DECL_IS_OPERATOR_NEW_P): New.
18965 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18966 (DECL_LAMBDA_FUNCTION): Likewise.
18967 (DECL_LAMBDA_FUNCTION_P): Likewise.
18968 (DECL_IS_OPERATOR_NEW): Remove.
18969 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18970
18971 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18972
18973 * ipa-profile.c (get_most_common_single_value): Use
18974 get_nth_most_common_value.
18975 * profile.c (sort_hist_value): New function.
18976 (compute_value_histograms): Call sort_hist_value to sort the
18977 values after loading from disk.
18978 * value-prof.c (get_most_common_single_value): Rename to ...
18979 get_nth_most_common_value. Add input params n, return
18980 the n_th value and count.
18981 (gimple_divmod_fixed_value_transform): Use
18982 get_nth_most_common_value.
18983 (gimple_ic_transform): Likewise.
18984 (gimple_stringops_transform): Likewise.
18985 * value-prof.h (get_most_common_single_value): Add input params
18986 n, default to 0.
18987
18988 2019-07-25 Richard Biener <rguenther@suse.de>
18989
18990 PR tree-optimization/91236
18991 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18992 size of CONSTRUCTOR write. Fix buffer size we pass to
18993 native_encode_expr.
18994
18995 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18996
18997 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18998 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18999 r273773.
19000
19001 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19002
19003 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
19004 explicitly disabled with --disable-initfini-array.
19005
19006 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19007
19008 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
19009 if-exists.
19010
19011 2019-07-24 Martin Sebor <msebor@redhat.com>
19012
19013 PR tree-optimization/91183
19014 PR tree-optimization/86688
19015 * builtins.c (compute_objsize): Handle MEM_REF.
19016 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
19017 (get_min_string_length): Remove.
19018 (count_nonzero_bytes): New function.
19019 (handle_char_store): Rename...
19020 (handle_store): to this. Handle multibyte stores via integer types.
19021 (strlen_check_and_optimize_stmt): Adjust conditional and the called
19022 function name.
19023
19024 2019-07-24 Martin Sebor <msebor@redhat.com>
19025
19026 PR driver/80545
19027 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
19028 (diagnostic_report_diagnostic): Same.
19029 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
19030 (diagnostic_context::lang_mask): New data member.
19031 * ipa-pure-const.c (suggest_attribute): Use
19032 lang_hooks.option_lang_mask ().
19033 * opts-common.c (option_enabled): Handle new argument.
19034 (get_option_state): Pass an additional argument.
19035 * opts.c (print_filtered_help): Print supported languages for
19036 unsupported options. Adjust printing of current state.
19037 * opts.h (option_enabled): Add argument.
19038 * toplev.c (print_switch_values): Use lang_mask.
19039 (general_init): Set global_dc->lang_mask.
19040
19041 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19042
19043 PR bootstrap/87030
19044 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
19045
19046 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
19047
19048 * cgraphunit.c (symbol_table::compile): Start and stop
19049 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
19050 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
19051
19052 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
19053
19054 * gimplify.c (flag_instrument_functions_exclude_p): Include
19055 namespace/class information in the printable name.
19056 * opts.c (add_comma_separated_to_vector): Add NUL terminator
19057 to tokens entered into the vector.
19058
19059 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
19060
19061 * tree-nested.c (build_simple_mem_ref_notrap): New function.
19062 (get_static_chain): Call it instead of build_simple_mem_ref.
19063 (get_frame_field): Likewise.
19064 (get_nonlocal_debug_decl): Likewise.
19065 (convert_nonlocal_reference_op): Likewise.
19066
19067 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
19068
19069 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
19070 declaration.
19071 (arc_compute_frame_size): Millicode is disabled when compiling
19072 ISR.
19073 (arc_return_address_register): Likewise.
19074 (arc_compute_function_type): Likewise.
19075 (arc_compute_frame_size): Likewise.
19076 (secondary_reload_info): Likewise.
19077 (arc_get_unalign): Likewise.
19078 (arc_can_use_return_insn): Declare.
19079 * config/arc/arc.c (AUX_LP_START): Define
19080 (AUX_LP_END): Likewise.
19081 (arc_frame_info): Update gmask member to 64-bit datum.
19082 (GMASK_LEN): Update.
19083 (arc_compute_function_type): Make it static, move it forward.
19084 (arc_must_save_register): Update, consider the extra regs.
19085 (arc_compute_millicode_save_restore_regs): Update to use the 64
19086 bit gmask.
19087 (arc_compute_frame_size): Likewise.
19088 (arc_enter_leave_p): Likewise.
19089 (arc_save_callee_saves): Likewise.
19090 (arc_restore_callee_saves): Likewise.
19091 (arc_save_callee_enter): Likewise.
19092 (arc_restore_callee_leave): Likewise.
19093 (arc_save_callee_milli): Likewise.
19094 (arc_restore_callee_milli): Likewise.
19095 (arc_expand_prologue): Add new interrupt handling.
19096 (arc_return_address_register): Make it static, move it forward.
19097 (arc_expand_epilogue): Add new interrupt handling.
19098 (arc_get_unalign): Delete.
19099 (arc_epilogue_uses): Make sure we do not remove the extra
19100 saved/restored registers when interrupt.
19101 (arc_can_use_return_insn): New function.
19102 (push_reg): Likewise.
19103 (pop_reg): Likewise.
19104 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
19105 procedures.
19106 (arc_restore_callee_saves): Likewise, but restoring.
19107 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
19108 (R33_REG): Likewise.
19109 (R34_REG): Likewise.
19110 (R35_REG): Likewise.
19111 (R36_REG): Likewise.
19112 (R37_REG): Likewise.
19113 (R38_REG): Likewise.
19114 (R39_REG): Likewise.
19115 (R45_REG): Likewise.
19116 (R46_REG): Likewise.
19117 (R47_REG): Likewise.
19118 (R48_REG): Likewise.
19119 (R49_REG): Likewise.
19120 (R50_REG): Likewise.
19121 (R51_REG): Likewise.
19122 (R52_REG): Likewise.
19123 (R53_REG): Likewise.
19124 (R54_REG): Likewise.
19125 (R55_REG): Likewise.
19126 (R56_REG): Likewise.
19127 (R58_REG): Likewise.
19128 (type): Add rtie attribute.
19129 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
19130 (movsi_insn): Accept moves to lp_count.
19131 (rtie): Update pattern.
19132 (simple_return): Simplify it, don't use this pattern as a return
19133 from an interrupt.
19134 (arc600_rtie): New pattern.
19135 (p_return_i): Clean up.
19136 (return): Likewise.
19137 * config/arc/builtins.def (rtie): Only available for non ARC6xx
19138 family CPUs.
19139 * config/arc/predicates.md (move_src_operand): Consider lp_count
19140 as a register.
19141
19142 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
19143
19144 * config/s390/predicates.md (addv_const_operand): New predicate.
19145 * config/s390/s390-modes.def (CCO): New condition code mode.
19146 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
19147 (s390_branch_condition_mask): Likewise.
19148 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
19149 ("mulv<mode>4"): New expanders.
19150 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
19151 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
19152 pattern definitions.
19153
19154 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19155
19156 PR middle-end/91166
19157 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
19158 (define_predicates): Add entry for uniform_vector_p.
19159 (vec_same_elem_p): New match pattern.
19160
19161 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19162
19163 PR bootstrap/87030
19164 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
19165 * config/i386/darwin32-biarch.h .. to here.
19166 * config/i386/darwin64-biarch.h: Adjust comments.
19167 * config/rs6000/darwin32-biarch.h: Likewise.
19168 * config/rs6000/darwin64-biarch.h: Likewise.
19169 * config.gcc: Missed commit from r273746
19170 (*-*-darwin*): Don't include CPU t-darwin here.
19171 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19172 an error message if i686-darwin configuration is attempted for
19173 Darwin >= 18.
19174
19175 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
19176
19177 PR bootstrap/87030
19178 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
19179 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19180 an error message if i686-darwin configuration is attempted for
19181 Darwin >= 18.
19182 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
19183 (powerpc-*-darwin*): Use biarch files where needed.
19184 (powerpc64-*-darwin*): Likewise.
19185 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
19186 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19187 arch case.
19188 * config/i386/darwin32-biarch.h: New.
19189 * config/i386/darwin64.h: Rename.
19190 * config/i386/darwin64-biarch.h: To this.
19191 * config/i386/t-darwin: Rename.
19192 * config/i386/t-darwin32-biarch: To this.
19193 * config/i386/t-darwin64: Rename.
19194 * config/i386/t-darwin64-biarch: To this.
19195 * config/rs6000/darwin32-biarch.h: New.
19196 * config/rs6000/darwin64.h: Rename.
19197 * config/rs6000/darwin64-biarch.h: To this.
19198 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19199 arch case.
19200 * config/rs6000/t-darwin8: Rename.
19201 * config/rs6000/t-darwin32-biarch: To this.
19202 * config/rs6000/t-darwin64 Rename.
19203 * config/rs6000/t-darwin64-biarch: To this.
19204
19205 2019-07-23 Martin Sebor <msebor@redhat.com>
19206
19207 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
19208
19209 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19210
19211 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
19212 (rh): New alias for it.
19213
19214 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19215
19216 * gdbhooks.py: Pass replace=True to
19217 gdb.printing.register_pretty_printer.
19218
19219 2019-07-23 Richard Biener <rguenther@suse.de>
19220
19221 PR debug/91231
19222 * lto-streamer-in.c (input_function): Drop inline-entry markers
19223 that ended up with an unknown location block.
19224
19225 2019-07-23 Richard Biener <rguenther@suse.de>
19226
19227 PR tree-optimization/83518
19228 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
19229 init from a constant even when partial defs are already recorded.
19230
19231 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19232
19233 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
19234 * config/i386/znver1.md: Enable patterns for znver2 and add store
19235 variants which use extra AGU unit.
19236
19237 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19238
19239 * config/i386/i386-options.c (ix86_option_override_internal): Default
19240 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
19241 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
19242 for ZNVER2.
19243
19244 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19245
19246 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
19247 (znver2_costs): Update 256 bit SSE costs and multiplication.
19248
19249 2019-07-23 Jan Beulich <jbeulich@suse.com>
19250
19251 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
19252 Require only AVX512F.
19253 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
19254 alternative expanding to vpternlog.
19255
19256 2019-07-23 Martin Liska <mliska@suse.cz>
19257
19258 * dwarf2out.c (gen_producer_string): Canonize -flto=N
19259 to -flto in dwarf producer string.
19260
19261 2019-07-23 Richard Biener <rguenther@suse.de>
19262
19263 * tree-cfg.c (label_for_bb): Remove global var.
19264 (main_block_label): Take label_for_bb as argument.
19265 (cleanup_dead_labels_eh): Likewise, adjust.
19266 (cleanup_dead_labels): Adjust.
19267
19268 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19269
19270 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
19271 Configurations): Add documentation for __builtin_mtfsf.
19272
19273 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
19274
19275 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
19276 * config/riscv/riscv.c (riscv_constant_alignment): Use
19277 riscv_align_data_type.
19278 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
19279 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19280 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19281 * config/riscv/riscv.opt (malign-data): New.
19282 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
19283
19284 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
19285
19286 * cgraph.c (dump_graphviz): New function.
19287 * cgraph.h (dump_graphviz): New function.
19288 * symtab.c (dump_graphviz): New function.
19289
19290 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
19291
19292 * config/aarch64/aarch64-simd.md
19293 (*aarch64_simd_sra<mode>): New.
19294 * config/aarch64/iterators.md
19295 (SHIFTRT): New iterator.
19296 (sra_op): New attribute.
19297
19298 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19299
19300 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
19301 callee-saved regs R4->R10 in an interrupt function that calls another
19302 function.
19303
19304 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19305
19306 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
19307 (_mm_blendv_epi8): New.
19308
19309 2019-07-22 Richard Biener <rguenther@suse.de>
19310
19311 PR tree-optimization/91221
19312 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
19313 restrict partial-def handling of empty constructors and
19314 memset to refs with known offset.
19315
19316 2019-07-22 Jan Beulich <jbeulich@suse.com>
19317
19318 * config/i386/sse.md (ternlogsuffix): New.
19319 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
19320 AVX512F is in use.
19321 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
19322
19323 2019-07-22 Martin Liska <mliska@suse.cz>
19324
19325 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
19326 comment.
19327 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
19328
19329 2019-07-22 Martin Liska <mliska@suse.cz>
19330
19331 * lto-section-in.c (lto_get_section_data):
19332 Use new function get_compression.
19333 * lto-streamer-out.c (produce_lto_section): Use
19334 set_compression to encode compression algorithm.
19335 * lto-streamer.h (struct lto_section): Do not
19336 use bitfields in the format.
19337
19338 2019-07-22 Martin Liska <mliska@suse.cz>
19339
19340 PR driver/91172
19341 * opts-common.c (decode_cmdline_option): Decode
19342 argument of -Werror and check it for a wrong language.
19343 * opts-global.c (complain_wrong_lang): Remove such case.
19344
19345 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
19346
19347 * config/arc/arc.c (prepare_move_operands): Always use an
19348 intermediate register when storing a TLS symbols.
19349
19350 2019-07-22 Stafford Horne <shorne@gmail.com>
19351
19352 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
19353 force_reg.
19354
19355 2019-07-22 Stafford Horne <shorne@gmail.com>
19356
19357 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
19358 and munordered-float validations.
19359 * config/or1k/constraints.md (d): New register constraint.
19360 * config/or1k/predicates.md (fp_comparison_operator): New.
19361 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
19362 operands.
19363 (or1k_expand_compare): Normalize unordered comparisons.
19364 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
19365 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
19366 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
19367 * config/or1k/or1k.md (type): Add fpu.
19368 (fpu): New instruction reservation.
19369 (F, f, fr, fi, FI, FOP, fop): New.
19370 (<fop><F:mode>3): New ALU instruction definition.
19371 (float<fi><F:mode>2): New conversion instruction definition.
19372 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
19373 (fpcmpcc): New code iterator.
19374 (*sf_fp_insn): New instruction definition.
19375 (cstore<F:mode>4): New expand definition.
19376 (cbranch<F:mode>4): New expand definition.
19377 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
19378 munordered-float): New options.
19379 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
19380 munordered-float.
19381
19382 2019-07-22 Stafford Horne <shorne@gmail.com>
19383
19384 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
19385 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
19386 documenation to be more clear.
19387 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
19388 more clear.
19389 * config/or1k/or1k.opt (mrori): New option.
19390 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
19391 msfimm, mshftimm): Rewrite documentation to be more clear.
19392 * config/or1k/or1k.md (insn_support): Add ror and rori.
19393 (enabled): Add conditions for ror and rori.
19394 (rotrsi3): Replace condition for shftimm with ror and rori.
19395
19396 2019-07-22 Stafford Horne <shorne@gmail.com>
19397
19398 PR target/90363
19399 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
19400 (extend<mode>si2): Update predicate.
19401 * config/or1k/predicates.md (volatile_mem_operand): New.
19402 (reg_or_mem_operand): New.
19403
19404 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
19405
19406 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
19407 * config/rs6000/rs6000-call.c: ... to here.
19408
19409 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19410
19411 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
19412 memory.
19413
19414 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19415
19416 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
19417
19418 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19419
19420 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
19421
19422 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19423
19424 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
19425 (any_memory_operand): New predicate.
19426 (reg_or_mem_operand): Use it.
19427
19428 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19429
19430 PR target/91204
19431 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
19432
19433 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
19434
19435 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
19436 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
19437
19438 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19439
19440 * tree.def (OMP_LOOP): New tree code.
19441 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
19442 (enum omp_clause_bind_kind): New enum.
19443 (struct tree_omp_clause): Add subcode.bind_kind.
19444 * tree.h (OMP_LOOP_CHECK): Rename to ...
19445 (OMP_LOOPING_CHECK): ... this.
19446 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
19447 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
19448 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
19449 (OMP_CLAUSE_BIND_KIND): Define.
19450 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19451 bind clause entries.
19452 (walk_tree_1): Handle OMP_CLAUSE_BIND.
19453 * tree-pretty-print.c (dump_omp_clause): Likewise.
19454 (dump_generic_node): Handle OMP_LOOP.
19455 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
19456 (in_omp_construct): New variable.
19457 (is_gimple_stmt): Handle OMP_LOOP.
19458 (gimplify_scan_omp_clauses): For lastprivate don't set
19459 check_non_private if code == OMP_LOOP. For reduction clause
19460 on OMP_LOOP combined with parallel or teams propagate as shared
19461 on the combined construct. Handle OMP_CLAUSE_BIND.
19462 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
19463 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
19464 for constructs from a loop construct to gimplify_scan_omp_clauses.
19465 Don't predetermine iterator linear on OMP_SIMD from loop construct.
19466 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
19467 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
19468 to match the implicit ORT_TARGET construct around whole body.
19469 Temporarily clear in_omp_construct when processing body.
19470 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
19471 etc. temporarily set in_omp_construct when processing body.
19472 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
19473 * omp-low.c (struct omp_context): Add loop_p.
19474 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
19475 in that the original var might be private.
19476 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
19477 (check_omp_nesting_restrictions): Adjust nesting restrictions for
19478 addition of loop construct.
19479 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
19480
19481 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
19482 lastprivate non-addressable iterator of a collapse(1) simd.
19483
19484 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
19485
19486 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
19487 as in rs6000.c.
19488
19489 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
19490
19491 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
19492 refer to default conditions. Warn for the 'y' spec which is ignored
19493 by current linkers.
19494
19495 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
19496
19497 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19498 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19499 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19500 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19501 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19502 init_cumulative_args, rs6000_promote_function_mode,
19503 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19504 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19505 rs6000_function_arg_boundary, rs6000_parm_offset,
19506 rs6000_parm_start, rs6000_arg_size,
19507 rs6000_darwin64_record_arg_advance_flush,
19508 rs6000_darwin64_record_arg_advance_recurse,
19509 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19510 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19511 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19512 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19513 rs6000_finish_function_arg, rs6000_function_arg,
19514 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19515 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19516 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19517 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19518 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19519 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19520 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19521 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19522 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19523 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19524 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19525 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19526 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19527 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19528 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19529 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19530 get_element_number, altivec_expand_vec_set_builtin,
19531 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19532 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19533 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19534 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19535 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19536 rs6000_expand_builtin, rs6000_vector_type,
19537 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19538 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19539 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19540 to rs6000-call.c.
19541 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19542 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19543 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19544 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19545 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19546 init_cumulative_args, rs6000_promote_function_mode,
19547 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19548 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19549 rs6000_function_arg_boundary, rs6000_parm_offset,
19550 rs6000_parm_start, rs6000_arg_size,
19551 rs6000_darwin64_record_arg_advance_flush,
19552 rs6000_darwin64_record_arg_advance_recurse,
19553 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19554 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19555 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19556 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19557 rs6000_finish_function_arg, rs6000_function_arg,
19558 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19559 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19560 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19561 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19562 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19563 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19564 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19565 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19566 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19567 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19568 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19569 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19570 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19571 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19572 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19573 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19574 get_element_number, altivec_expand_vec_set_builtin,
19575 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19576 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19577 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19578 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19579 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19580 rs6000_expand_builtin, rs6000_vector_type,
19581 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19582 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19583 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19584 to here from rs6000.c.
19585 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19586 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19587 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19588 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19589 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19590 rs6000_return_in_memory, rs6000_return_in_msb,
19591 rs6000_pass_by_reference, setup_incoming_varargs,
19592 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19593 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19594 rs6000_function_arg_padding, rs6000_function_arg,
19595 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19596 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19597 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19598 rs6000_passes_long_double, rs6000_passes_vector,
19599 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19600 altivec_builtin_mask_for_load) Add declarations.
19601 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19602 * config/config.gcc: Add new source file rs6000-call.c to garbage
19603 collector and extra_objs.
19604
19605 2019-07-19 Jeff Law <law@redhat.com>
19606
19607 PR tree-optimization/86061
19608 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19609 strncpy. Drop some trivial dead code.
19610 (maybe_trim_memstar_call): Handle strncpy.
19611
19612 2019-07-19 Richard Biener <rguenther@suse.de>
19613
19614 PR tree-optimization/91211
19615 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19616 memset encoding size.
19617
19618 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19619
19620 PR target/91204
19621 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19622
19623 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19624
19625 PR ipa/91194
19626 * ipa-inline.c (recursive_inlining): Fix limits check.
19627
19628 2019-07-19 Richard Biener <rguenther@suse.de>
19629
19630 PR tree-optimization/91200
19631 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19632 no PHI nodes in middle-bb.
19633
19634 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19635
19636 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19637 to +sve-bitperm.
19638 * config/aarch64/aarch64-option-extensions.def: Likewise.
19639
19640 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19641
19642 PR middle-end/91190
19643 * function.c (insert_temp_slot_address): Store into the hash table
19644 a copy of address to avoid RTL sharing issues.
19645
19646 2019-07-19 Richard Biener <rguenther@suse.de>
19647
19648 PR tree-optimization/91207
19649 Revert
19650 2019-07-17 Richard Biener <rguenther@suse.de>
19651
19652 PR tree-optimization/91178
19653 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19654 loads with a gap larger than the vector size always use
19655 VMAT_STRIDED_SLP.
19656 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19657 avoid loading vectors that are only contained in the gap
19658 and thus are not needed.
19659
19660 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19661
19662 * config/i386/i386.md (*addqi_2_slp): Remove.
19663 (*<code>qi_2_slp): Ditto.
19664
19665 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19666
19667 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19668 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19669 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19670 Rename function from rs6000_prefixed_address.
19671 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19672 TARGET_HAS_TOC.
19673 (TARGET_TOC): Likewise.
19674 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19675 rs6000.h.
19676 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19677 TARGET_HAS_TOC.
19678 (TARGET_TOC): Likewise.
19679 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19680 rs6000.h.
19681 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19682 TARGET_HAS_TOC.
19683 (TARGET_TOC): Likewise.
19684 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19685 check to require -mcmodel=medium for pc-relative addressing.
19686 (create_TOC_reference): Add assertion for TARGET_TOC.
19687 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19688 TARGET_NO_TOC.
19689 (rs6000_emit_move): Likewise.
19690 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19691 to 'TOC_alias_set'.
19692 (get_TOC_alias_set): Likewise.
19693 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19694 TARGET_NO_TOC.
19695 (rs6000_can_eliminate): Likewise.
19696 (rs6000_prefixed_address_mode_p): Rename function from
19697 rs6000_prefixed_address.
19698 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19699 TARGET_HAS_TOC and not pc-relative.
19700 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19701 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19702 TARGET_HAS_TOC.
19703 (TARGET_TOC): Likewise.
19704 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19705 rs6000.h.
19706
19707 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19708
19709 PR target/91188
19710 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19711 for operand 0. Do not use (match_dup) to match operand 1 with
19712 operand 0. Add check in insn constraint that either input operand
19713 matches operand 0. Use SWI12 mode iterator to also handle
19714 HImode operands.
19715 (*and<mode>_1_slp): Ditto.
19716 (*<code>qi_1_slp): Ditto.
19717 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19718 Do not use (match_dup) to match operand 1 with operand 0. Add
19719 check in insn constraint that operand 1 matches operand 0.
19720 Use SWI12 mode iterator to also handle HImode operands.
19721 (*ashl<mode>3_1_slp): Ditto.
19722 (*<shift_insn><mode>3_1_slp): Ditto.
19723 (*<rotate_insn><mode>3_1_slp): Ditto.
19724
19725 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19726
19727 * config/arm/arm-builtins.c
19728 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19729 (arm_expand_unop_builtin): Likewise.
19730 * config/arm/crypto.md
19731 (crypto_sha1h): Convert from define_insn to define_expand.
19732 (crypto_<crypto_pattern>): Likewise.
19733 (crypto_sha1h_lb): New define_insn.
19734 (crypto_<crypto_pattern>_lb): Likewise.
19735
19736 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19737
19738 PR target/90317
19739 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19740 (vsha1cq_u32): Likewise.
19741 (vsha1pq_u32): Likewise.
19742 (vsha1mq_u32): Likewise.
19743 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19744 vec select.
19745 (crypto_sha1c): Correct vec select.
19746 (crypto_sha1m): Likewise.
19747 (crypto_sha1p): Likewise.
19748
19749 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19750
19751 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19752 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19753 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19754 (subdi_zesidi_zesidi): Likewise.
19755 (negdi2_compare, negdi2_insn): Likewise.
19756 (negdi_extensidi): Likewise.
19757 (negdi_zero_extendsidi): Likewise.
19758 (arm_cmpdi_insn): Likewise.
19759 (subsi3_carryin): Use arm_borrow_operation.
19760 (subsi3_carryin_const): Likewise.
19761 (subsi3_carryin_const0): Likewise.
19762 (subsi3_carryin_compare): Likewise.
19763 (subsi3_carryin_compare_const): Likewise.
19764 (subsi3_carryin_compare_const0): Likewise.
19765 (subsi3_carryin_shift): Likewise.
19766 (rsbsi3_carryin_shift): Likewise.
19767 (negsi2_carryin_compare): Likewise.
19768
19769 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19770
19771 PR tree-optimization/91137
19772 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19773 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19774 Init, use and fini the above new field.
19775 (determine_base_object_1): New function.
19776 (determine_base_object): Reimplement using walk_tree.
19777
19778 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19779
19780 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19781 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19782 CLEANUP_FORCE_FAST_DCE is set.
19783 * ifcvt.c (rest_of_handle_if_conversion): Pass
19784 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19785 if-conversion succeeded.
19786
19787 2019-07-18 Richard Biener <rguenther@suse.de>
19788
19789 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19790 branches to make code less indented.
19791
19792 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19793
19794 PR middle-end/81824
19795 * attribs.c (decls_mismatched_attributes): Simplify the logic
19796 that avoids duplicates and false positives.
19797
19798 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19799
19800 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19801 data into data section when generating PIC code.
19802 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19803 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19804 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19805 return 2 for SOM and 0 for other targets.
19806
19807 2019-07-17 Jeff Law <law@redhat.com>
19808
19809 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19810 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19811 avoid unexpected switch statement fallthru.
19812
19813 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19814
19815 * config/i386/i386.md (*add<dwi>3_doubleword):
19816 Remove redundant constraints.
19817 (*add<mode>_1): Ditto.
19818 (*addhi_1): Ditto.
19819 (*addqi_1): Ditto.
19820 (*addqi_1_slp): Ditto.
19821 (*add<mode>_2): Ditto.
19822 (*addv<mode>4): Ditto.
19823 (*sub<dwi>3_doubleword): Ditto.
19824 (*sub<mode>_1): Ditto.
19825 (*subqi_1_slp): Ditto.
19826 (*sub<mode>_2): Ditto.
19827 (*subv<mode>4): Ditto.
19828 (*sub<mode>_3): Ditto.
19829 (@add<mode>3_carry): Ditto.
19830 (@sub<mode>3_carry): Ditto.
19831 (*add<mode>3_cc_overflow_1): Ditto.
19832 (*add<mode>3_zext_cc_overflow_2): Ditto.
19833 (*anddi_1): Ditto.
19834 (*and<mode>_1): Ditto.
19835 (*andqi_1): Ditto.
19836 (*andqi_1_slp): Ditto.
19837 (*anddi_2): Ditto.
19838 (*andqi_2_maybe_si): Ditto.
19839 (*and<mode>_2): Ditto.
19840 (*andqi_2_slp): Ditto.
19841 (*<code><mode>_1): Ditto.
19842 (*<code>qi_1): Ditto.
19843 (*<code>qi_1_slp): Ditto.
19844 (*<code><mode>_2): Ditto.
19845 (*<code>qi_2_slp): Ditto.
19846
19847 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19848
19849 * alias.c (record_component_aliases): Do not simplify pointed-to
19850 types of ODR types.
19851
19852 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19853
19854 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19855 partial reg stall on alternative 2.
19856
19857 2019-07-17 Richard Biener <rguenther@suse.de>
19858
19859 PR tree-optimization/91178
19860 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19861 lower SSA names to avoid quadratic behavior in the common case.
19862 * tree-data-ref.c (split_constant_offset): Add limit argument
19863 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19864 (split_constant_offset_1): Add limit argument and use it to
19865 limit SSA def walking. Optimize the common plus/minus case.
19866
19867 2019-07-17 Richard Biener <rguenther@suse.de>
19868
19869 PR tree-optimization/91178
19870 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19871 loads with a gap larger than the vector size always use
19872 VMAT_STRIDED_SLP.
19873 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19874 avoid loading vectors that are only contained in the gap
19875 and thus are not needed.
19876
19877 2019-07-17 Richard Biener <rguenther@suse.de>
19878
19879 PR tree-optimization/91180
19880 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19881 computation for memset partial defs.
19882
19883 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19884
19885 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19886 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19887 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19888 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19889 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19890 * omp-grid.c (grid_process_grid_body,
19891 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19892 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19893 == GF_OMP_FOR_KIND_SIMD.
19894 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19895 check_omp_nesting_restrictions, scan_omp_1_stmt,
19896 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19897 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19898 omp_find_scan): Likewise.
19899 * omp-expand.c (expand_omp_for): Likewise.
19900 * omp-general.c (omp_extract_for_data): Likewise.
19901
19902 PR tree-optimization/91157
19903 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19904 a vector boolean with scalar mode.
19905 (expand_vector_condition): Handle first operand being a vector boolean
19906 with scalar mode.
19907 (expand_vector_operations_1): For comparisons, don't bail out early
19908 if the return type is vector boolean with scalar mode, but comparison
19909 operand type is not.
19910
19911 2019-07-17 Richard Biener <rguenther@suse.de>
19912
19913 PR tree-optimization/91181
19914 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19915 IFN_LOADs as calls.
19916
19917 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19918
19919 * config/i386/i386.md (*testdi_1): Match CCZmode for
19920 constants that might have the SImode sign bit set.
19921 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19922 Use correct constraints for pentium pairing.
19923 (*test<mode>_1): Ditto.
19924
19925 2019-07-16 Jeff Law <law@redhat.com>
19926
19927 PR rtl-optimization/91173
19928 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19929 SSA_NAME with a constant value, fold its value into the offset
19930 and clear the base before calling gen_addr_rtx.
19931
19932 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19933
19934 PR rtl-optimization/91164
19935 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19936 invalidate dominance info.
19937
19938 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19939
19940 * read-md.h (md_reader::record_potential_iterator_use): Add a
19941 file_location parameter.
19942 * read-rtl.c (attribute_use::loc): New field.
19943 (map_attr_string): Take a file_location parameter. Report cases
19944 in which attributes map to multiple distinct values.
19945 (apply_attribute_uses): Update call accordingly.
19946 (md_reader::handle_overloaded_name): Likewise.
19947 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19948 nonnull strings.
19949 (record_attribute_use): Take a file_location parameter.
19950 Initialize attribute_use::loc.
19951 (md_reader::record_potential_iterator_use): Take a file_location
19952 parameter. Update call to record_attribute_use.
19953 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19954 (rtx_reader::read_rtx_code): Likewise.
19955 (rtx_reader::read_rtx_operand): Likewise. Record a location
19956 for implicitly-expanded empty strings.
19957
19958 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19959
19960 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19961 Use file_location instead of separate fields.
19962 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19963 separate filename and line number.
19964 * read-md.c (ptr_loc): As above.
19965 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19966 (md_reader::fprint_md_ptr_loc): Likewise.
19967 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19968 instead of a separate filename and line number.
19969 (md_reader::read_string): Update call accordingly.
19970
19971 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19972
19973 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19974 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19975 leaving the choice between SFDF and P implicit.
19976 (*mov<mode>_update2): Likewise.
19977 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19978 rather than leaving the choice betweem IBM128 and GPR implicit.
19979 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19980 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19981 QHSI implicit.
19982 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19983 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19984 * config/rs6000/vsx.md
19985 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19986 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19987 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19988 and VSX_EXTRACT_I implicit.
19989
19990 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19991
19992 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19993 Explicitly use <MOVEP1:MODE> for the mode attribute.
19994
19995 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19996
19997 PR bootstrap/91176
19998 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19999
20000 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
20001
20002 PR target/91050
20003 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
20004 .machine directive.
20005
20006 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
20007
20008 * config/i386/i386.md (@test<mode>_ccno_1):
20009 Rename from test<mode>_ccno_1.
20010 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
20011 (*testqi_1_maybe_si): Remove modrm attribute.
20012 (*test<mode>_1): Ditto.
20013 * config/i386/i386-expand.c (ix86_split_idivmod): Use
20014 gen_test_ccno_1 and gen_extend_insn.
20015
20016 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
20017
20018 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
20019 to 0.
20020
20021 2019-07-15 Richard Biener <rguenther@suse.de>
20022
20023 PR middle-end/91162
20024 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
20025 node make sure to replace all uses with something valid.
20026
20027 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
20028
20029 PR tree-optimization/88497
20030 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
20031 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
20032 function undistribute_bitref_for_vector.
20033 (undistribute_bitref_for_vector): New function.
20034 (cleanup_vinfo_map): Likewise.
20035 (sort_by_mach_mode): Likewise.
20036
20037 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
20038
20039 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
20040 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
20041 and testdi_ccno_1 using SWI48 mode attribute.
20042 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
20043 x86_64_szext_general_operand.
20044 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
20045 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
20046 instead of genera_operand mode attribute.
20047
20048 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
20049
20050 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
20051 fopen and fclose to their respective types.
20052 (DotFn.invoke): Ditto.
20053
20054 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
20055
20056 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
20057 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
20058 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
20059 (array_index_predicate): Remove.
20060 (analyze_function_body): Account cost for variable ofsetted array
20061 indexing.
20062 (estimate_node_size_and_time): Do not compute array index hint.
20063 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
20064 (inline_read_section): Do not read array index hint.
20065 (ipa_fn_summary_write): Do not write array index hint.
20066 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
20067 * ipa-cp.c (hint_time_bonus): Remove.
20068 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
20069 (ipa_fnsummary): Remove array_index.
20070 * ipa-inline.c (want_inline_small_function_p): Do not use
20071 array_index.
20072 (edge_badness): Likewise.
20073 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
20074
20075 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
20076
20077 PR target/91148
20078 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
20079 superfluous "builtin function" phrasing.
20080
20081 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
20082
20083 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
20084 Break out from ...
20085 (aliasing_component_refs_walk): Break out from ...
20086 (aliasing_component_refs_p): ... here.
20087
20088 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
20089
20090 PR target/91148
20091 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
20092 "builtin function" phrasing.
20093
20094 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20095
20096 PR target/90723
20097 * recog.h (temporary_volatile_ok): New class.
20098 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
20099 volatile_ok temporarily to true using temporary_volatile_ok.
20100 * expr.c (emit_block_move_via_cpymem): Likewise.
20101 * optabs.c (maybe_legitimize_operand): Likewise.
20102
20103 2019-07-13 Jakub Jelinek <jakub@redhat.com>
20104
20105 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
20106 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
20107 uses inside of order(concurrent) constructs.
20108 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
20109 OMP_CLAUSE_ORDER is seen.
20110 * omp-low.c (struct omp_context): Add order_concurrent member.
20111 (scan_sharing_clauses): Set ctx->order_concurrent if
20112 OMP_CLAUSE_ORDER is seen.
20113 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
20114 of simd order(concurrent). Diagnose constructs not allowed inside of
20115 for order(concurrent).
20116 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
20117 complaining about static double setjmp (double); or class static
20118 methods or non-global namespace setjmps.
20119 (omp_runtime_api_call): New function.
20120 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
20121 order(concurrent) loops.
20122
20123 2019-07-12 Martin Sebor <msebor@redhat.com>
20124
20125 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
20126 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
20127 * tree-vrp.c (vrp_prop::check_mem_ref): Use
20128 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
20129
20130 2019-07-12 Jan Hubicka <jh@suse.cz>
20131
20132 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
20133 (indirect_refs_may_alias_p): ... here.
20134 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
20135 mem refs in the access paths.
20136
20137 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
20138
20139 PR tree-optimization/89430
20140 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
20141 store elimination for local variable without address escape.
20142
20143 2019-07-12 Jeff Law <law@redhat.com>
20144
20145 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
20146 for the ".far" section.
20147
20148 2019-07-12 Richard Biener <rguenther@suse.de>
20149
20150 PR tree-optimization/91145
20151 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
20152 chain check.
20153
20154 2019-07-12 Alexandre Oliva <oliva@adacore.com>
20155
20156 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
20157 rather than this_state as the lowering context for the ELSE
20158 seq in a GIMPLE_EH_ELSE.
20159
20160 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20161
20162 * vector-builder.h (vector_builder::elt): Allow already-supplied
20163 elements to be read back before building is complete.
20164
20165 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20166
20167 PR rtl-optimization/91136
20168 * df-core.c (ACCESSING REFS): Fix typos in comment.
20169 * resource.c (mark_target_live_reg): Add artificial defs that occur at
20170 the beginning of the block to the initial set of live registers.
20171
20172 2019-07-12 Richard Biener <rguenther@suse.de>
20173
20174 * fold-const.h (get_array_ctor_element_at_index): Adjust.
20175 * fold-const.c (get_array_ctor_element_at_index): Add
20176 ctor_idx output parameter informing the caller where in
20177 the constructor the element was (not) found. Add early exit
20178 for when the ctor is sorted.
20179 * gimple-fold.c (fold_array_ctor_reference): Support constant
20180 folding across multiple array elements.
20181
20182 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20183
20184 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
20185 doesn't have location, set the current location to the function's end.
20186
20187 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20188
20189 * config/aarch64/aarch64.md (*compare_condjump<mode>)
20190 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
20191 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
20192 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
20193 * config/aarch64/aarch64-simd.md
20194 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
20195 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
20196 * config/aarch64/aarch64-sve.md
20197 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
20198 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
20199
20200 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20201
20202 * doc/md.texi: Document that @ patterns can have different
20203 numbers of operands.
20204 * genemit.c (handle_overloaded_gen): Handle this case.
20205 * genopinit.c (handle_overloaded_gen): Likewise.
20206 * gensupport.c (replace_operands_with_dups): Iterate over
20207 the new rtx's format rather than the old one's.
20208
20209 2019-07-12 Jakub Jelinek <jakub@redhat.com>
20210
20211 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
20212 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
20213 order clause entries.
20214 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
20215 * tree-pretty-print.c (dump_omp_clause): Likewise.
20216 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
20217 Likewise.
20218 * omp-low.c (scan_sharing_clauses): Likewise.
20219 * tree-nested.c (convert_nonlocal_omp_clauses,
20220 convert_local_omp_clauses): Likewise.
20221
20222 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
20223
20224 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
20225 fallthrough target of current basic block isn't the placed
20226 right next.
20227
20228 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
20229
20230 PR target/90980
20231 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
20232 (_mm512_storeu_epi64): Likewise.
20233 (_mm512_loadu_epi32): Likewise.
20234 (_mm512_storeu_epi32): Likewise.
20235 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
20236 (_mm_storeu_epi64): Likewise.
20237 (_mm256_storeu_epi32): Likewise.
20238 (_mm_storeu_epi32): Likewise.
20239
20240 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20241
20242 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
20243
20244 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20245
20246 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
20247 Handle Modula-2.
20248
20249 2019-07-11 Jakub Jelinek <jakub@redhat.com>
20250
20251 PR target/91124
20252 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
20253 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20254 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
20255 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
20256 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
20257 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
20258 define_insns.
20259 (ufix_truncv2dfv2si2<mask_name>): Change into ...
20260 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
20261 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
20262 define_insns.
20263 (sse2_cvttpd2dq<mask_name>): Change into ...
20264 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
20265 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
20266 (*sse2_cvtpd2dq<mask_name>): Change into ...
20267 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20268 Add "C" constraint to const0_operand.
20269 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
20270 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
20271 changes.
20272
20273 PR target/91124
20274 * config/i386/i386-builtin-types.def
20275 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
20276 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
20277 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
20278 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
20279 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
20280 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
20281 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
20282 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
20283 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
20284 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
20285 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
20286 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
20287 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
20288 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
20289 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
20290 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
20291 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
20292 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
20293 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
20294 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
20295 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
20296 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
20297 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
20298 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
20299 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
20300 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
20301 __builtin_ia32_vpdpbusd_v4si_maskz,
20302 __builtin_ia32_vpdpbusds_v16si_mask,
20303 __builtin_ia32_vpdpbusds_v16si_maskz,
20304 __builtin_ia32_vpdpbusds_v8si_mask,
20305 __builtin_ia32_vpdpbusds_v8si_maskz,
20306 __builtin_ia32_vpdpbusds_v4si_mask,
20307 __builtin_ia32_vpdpbusds_v4si_maskz,
20308 __builtin_ia32_vpdpwssd_v16si_mask,
20309 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
20310 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
20311 __builtin_ia32_vpdpwssd_v4si_maskz,
20312 __builtin_ia32_vpdpwssds_v16si_mask,
20313 __builtin_ia32_vpdpwssds_v16si_maskz,
20314 __builtin_ia32_vpdpwssds_v8si_mask,
20315 __builtin_ia32_vpdpwssds_v8si_maskz,
20316 __builtin_ia32_vpdpwssds_v4si_mask,
20317 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
20318 suffixed types rather than *_INT.
20319 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
20320 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
20321 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
20322 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
20323 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
20324 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
20325
20326 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
20327
20328 * tree-vrp.c (intersect_ranges): If we know the intersection is
20329 empty, there is no need to conservatively add anything else to
20330 the set.
20331
20332 2019-07-11 Richard Biener <rguenther@suse.de>
20333
20334 PR middle-end/91131
20335 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
20336 when the object is volatile and we have not cleared it even though
20337 there are no nonzero elements.
20338
20339 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
20340
20341 * config/rs6000/predicates.md (cint34_operand): Update
20342 SIGNED_34BIT_OFFSET_P call.
20343 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
20344 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
20345 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
20346 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
20347 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
20348 argument.
20349 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
20350 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
20351 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
20352 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
20353 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
20354
20355 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
20356
20357 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
20358 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
20359 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
20360 (DEF_MIN_OSX_VERSION): New.
20361
20362 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20363
20364 * fold-const.c (fold_relational_const): Fix folding of
20365 vector-to-scalar NE_EXPRs.
20366 (test_vector_folding): Add more tests.
20367
20368 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20369
20370 PR target/91060
20371 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
20372 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
20373 (vec_setv2di_internal): Reexpress as...
20374 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
20375 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
20376 rather than gen_neon_vset_lane<mode>.
20377
20378 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
20379
20380 PR target/91102
20381 * lra-constraints.c (process_alt_operands): Don't match user
20382 defined regs only if they are early clobbers.
20383
20384 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
20385
20386 * wide-int.h (wi::lshift): Reject negative values for the fast path.
20387
20388 2019-07-10 Richard Biener <rguenther@suse.de>
20389
20390 PR tree-optimization/91126
20391 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
20392 native encoding offset for BYTES_BIG_ENDIAN.
20393 (vn_reference_lookup_3): Likewise.
20394
20395 2019-07-10 Richard Biener <rguenther@suse.de>
20396
20397 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
20398 LHS whenever possible.
20399
20400 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
20401
20402 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
20403 from ...; work also on duplicated types.
20404 (nonoverlapping_component_refs_since_match): ... here
20405 (ncr_type_uid): Break out from ...
20406 (ncr_compar): ... here; look for TYPE_UID of canonical type if
20407 available.
20408 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
20409 the types and nonoverlapping_component_refs_p_1 to disambiguate.
20410
20411 2019-07-09 Martin Sebor <msebor@redhat.com>
20412
20413 PR tree-optimization/90989
20414 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
20415 optimization to just single character stores.
20416
20417 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
20418
20419 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
20420 Swap operands only once.
20421
20422 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
20423
20424 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
20425 for both call instructions.
20426
20427 2019-07-09 John Darrington <john@darrington.wattle.id.au>
20428
20429 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
20430 rather than GET_MODE_BITSIZE to better handle partial integer modes.
20431
20432 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
20433
20434 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
20435 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
20436 function from rs6000-logue.c back to rs6000.c.
20437 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
20438
20439 2019-07-09 Martin Sebor <msebor@redhat.com>
20440
20441 PR c++/61339
20442 * auto-profile.c: Change class-key of PODs to struct and others
20443 to class.
20444 * basic-block.h: Same.
20445 * bitmap.c (bitmap_alloc): Same.
20446 * bitmap.h: Same.
20447 * builtins.c (expand_builtin_prefetch): Same.
20448 (expand_builtin_interclass_mathfn): Same.
20449 (expand_builtin_strlen): Same.
20450 (expand_builtin_mempcpy_args): Same.
20451 (expand_cmpstr): Same.
20452 (expand_builtin___clear_cache): Same.
20453 (expand_ifn_atomic_bit_test_and): Same.
20454 (expand_builtin_thread_pointer): Same.
20455 (expand_builtin_set_thread_pointer): Same.
20456 * caller-save.c (setup_save_areas): Same.
20457 (replace_reg_with_saved_mem): Same.
20458 (insert_restore): Same.
20459 (insert_save): Same.
20460 (add_used_regs): Same.
20461 * cfg.c (get_bb_copy): Same.
20462 (set_loop_copy): Same.
20463 * cfg.h: Same.
20464 * cfganal.h: Same.
20465 * cfgexpand.c (alloc_stack_frame_space): Same.
20466 (add_stack_var): Same.
20467 (add_stack_var_conflict): Same.
20468 (add_scope_conflicts_1): Same.
20469 (update_alias_info_with_stack_vars): Same.
20470 (expand_used_vars): Same.
20471 * cfghooks.c (redirect_edge_and_branch_force): Same.
20472 (delete_basic_block): Same.
20473 (split_edge): Same.
20474 (make_forwarder_block): Same.
20475 (force_nonfallthru): Same.
20476 (duplicate_block): Same.
20477 (lv_flush_pending_stmts): Same.
20478 * cfghooks.h: Same.
20479 * cfgloop.c (flow_loops_cfg_dump): Same.
20480 (flow_loop_nested_p): Same.
20481 (superloop_at_depth): Same.
20482 (get_loop_latch_edges): Same.
20483 (flow_loop_dump): Same.
20484 (flow_loops_dump): Same.
20485 (flow_loops_free): Same.
20486 (flow_loop_nodes_find): Same.
20487 (establish_preds): Same.
20488 (flow_loop_tree_node_add): Same.
20489 (flow_loop_tree_node_remove): Same.
20490 (flow_loops_find): Same.
20491 (find_subloop_latch_edge_by_profile): Same.
20492 (find_subloop_latch_edge_by_ivs): Same.
20493 (mfb_redirect_edges_in_set): Same.
20494 (form_subloop): Same.
20495 (merge_latch_edges): Same.
20496 (disambiguate_multiple_latches): Same.
20497 (disambiguate_loops_with_multiple_latches): Same.
20498 (flow_bb_inside_loop_p): Same.
20499 (glb_enum_p): Same.
20500 (get_loop_body_with_size): Same.
20501 (get_loop_body): Same.
20502 (fill_sons_in_loop): Same.
20503 (get_loop_body_in_dom_order): Same.
20504 (get_loop_body_in_custom_order): Same.
20505 (release_recorded_exits): Same.
20506 (get_loop_exit_edges): Same.
20507 (num_loop_branches): Same.
20508 (remove_bb_from_loops): Same.
20509 (find_common_loop): Same.
20510 (delete_loop): Same.
20511 (cancel_loop): Same.
20512 (verify_loop_structure): Same.
20513 (loop_preheader_edge): Same.
20514 (loop_exit_edge_p): Same.
20515 (single_exit): Same.
20516 (loop_exits_to_bb_p): Same.
20517 (loop_exits_from_bb_p): Same.
20518 (get_loop_location): Same.
20519 (record_niter_bound): Same.
20520 (get_estimated_loop_iterations_int): Same.
20521 (max_stmt_executions_int): Same.
20522 (likely_max_stmt_executions_int): Same.
20523 (get_estimated_loop_iterations): Same.
20524 (get_max_loop_iterations): Same.
20525 (get_max_loop_iterations_int): Same.
20526 (get_likely_max_loop_iterations): Same.
20527 * cfgloop.h (simple_loop_desc): Same.
20528 (get_loop): Same.
20529 (loop_depth): Same.
20530 (loop_outer): Same.
20531 (loop_iterator::next): Same.
20532 (loop_outermost): Same.
20533 * cfgloopanal.c (mark_irreducible_loops): Same.
20534 (num_loop_insns): Same.
20535 (average_num_loop_insns): Same.
20536 (expected_loop_iterations_unbounded): Same.
20537 (expected_loop_iterations): Same.
20538 (mark_loop_exit_edges): Same.
20539 (single_likely_exit): Same.
20540 * cfgloopmanip.c (fix_bb_placement): Same.
20541 (fix_bb_placements): Same.
20542 (remove_path): Same.
20543 (place_new_loop): Same.
20544 (add_loop): Same.
20545 (scale_loop_frequencies): Same.
20546 (scale_loop_profile): Same.
20547 (create_empty_if_region_on_edge): Same.
20548 (create_empty_loop_on_edge): Same.
20549 (loopify): Same.
20550 (unloop): Same.
20551 (fix_loop_placements): Same.
20552 (copy_loop_info): Same.
20553 (duplicate_loop): Same.
20554 (duplicate_subloops): Same.
20555 (loop_redirect_edge): Same.
20556 (can_duplicate_loop_p): Same.
20557 (duplicate_loop_to_header_edge): Same.
20558 (mfb_keep_just): Same.
20559 (has_preds_from_loop): Same.
20560 (create_preheader): Same.
20561 (create_preheaders): Same.
20562 (lv_adjust_loop_entry_edge): Same.
20563 (loop_version): Same.
20564 * cfgloopmanip.h: Same.
20565 * cgraph.h: Same.
20566 * cgraphbuild.c: Same.
20567 * combine.c (make_extraction): Same.
20568 * config/i386/i386-features.c: Same.
20569 * config/i386/i386-features.h: Same.
20570 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20571 (ix86_emit_outlined_ms2sysv_restore): Same.
20572 (ix86_noce_conversion_profitable_p): Same.
20573 (ix86_init_cost): Same.
20574 (ix86_simd_clone_usable): Same.
20575 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20576 Wstruct-not-pod.
20577 * coretypes.h: Same.
20578 * data-streamer-in.c (string_for_index): Change class-key of PODs
20579 to struct and others to class.
20580 (streamer_read_indexed_string): Same.
20581 (streamer_read_string): Same.
20582 (bp_unpack_indexed_string): Same.
20583 (bp_unpack_string): Same.
20584 (streamer_read_uhwi): Same.
20585 (streamer_read_hwi): Same.
20586 (streamer_read_gcov_count): Same.
20587 (streamer_read_wide_int): Same.
20588 * data-streamer.h (streamer_write_bitpack): Same.
20589 (bp_unpack_value): Same.
20590 (streamer_write_char_stream): Same.
20591 (streamer_write_hwi_in_range): Same.
20592 (streamer_write_record_start): Same.
20593 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20594 (add_cross_iteration_register_deps): Same.
20595 (build_intra_loop_deps): Same.
20596 * df-core.c (df_analyze): Same.
20597 (loop_post_order_compute): Same.
20598 (loop_inverted_post_order_compute): Same.
20599 * df-problems.c (df_rd_alloc): Same.
20600 (df_rd_simulate_one_insn): Same.
20601 (df_rd_local_compute): Same.
20602 (df_rd_init_solution): Same.
20603 (df_rd_confluence_n): Same.
20604 (df_rd_transfer_function): Same.
20605 (df_rd_free): Same.
20606 (df_rd_dump_defs_set): Same.
20607 (df_rd_top_dump): Same.
20608 (df_lr_alloc): Same.
20609 (df_lr_reset): Same.
20610 (df_lr_local_compute): Same.
20611 (df_lr_init): Same.
20612 (df_lr_confluence_n): Same.
20613 (df_lr_free): Same.
20614 (df_lr_top_dump): Same.
20615 (df_lr_verify_transfer_functions): Same.
20616 (df_live_alloc): Same.
20617 (df_live_reset): Same.
20618 (df_live_init): Same.
20619 (df_live_confluence_n): Same.
20620 (df_live_finalize): Same.
20621 (df_live_free): Same.
20622 (df_live_top_dump): Same.
20623 (df_live_verify_transfer_functions): Same.
20624 (df_mir_alloc): Same.
20625 (df_mir_reset): Same.
20626 (df_mir_init): Same.
20627 (df_mir_confluence_n): Same.
20628 (df_mir_free): Same.
20629 (df_mir_top_dump): Same.
20630 (df_word_lr_alloc): Same.
20631 (df_word_lr_reset): Same.
20632 (df_word_lr_init): Same.
20633 (df_word_lr_confluence_n): Same.
20634 (df_word_lr_free): Same.
20635 (df_word_lr_top_dump): Same.
20636 (df_md_alloc): Same.
20637 (df_md_simulate_one_insn): Same.
20638 (df_md_reset): Same.
20639 (df_md_init): Same.
20640 (df_md_free): Same.
20641 (df_md_top_dump): Same.
20642 * df-scan.c (df_insn_delete): Same.
20643 (df_insn_rescan): Same.
20644 (df_notes_rescan): Same.
20645 (df_sort_and_compress_mws): Same.
20646 (df_install_mws): Same.
20647 (df_refs_add_to_chains): Same.
20648 (df_ref_create_structure): Same.
20649 (df_ref_record): Same.
20650 (df_def_record_1): Same.
20651 (df_find_hard_reg_defs): Same.
20652 (df_uses_record): Same.
20653 (df_get_conditional_uses): Same.
20654 (df_get_call_refs): Same.
20655 (df_recompute_luids): Same.
20656 (df_get_entry_block_def_set): Same.
20657 (df_entry_block_defs_collect): Same.
20658 (df_get_exit_block_use_set): Same.
20659 (df_exit_block_uses_collect): Same.
20660 (df_mws_verify): Same.
20661 (df_bb_verify): Same.
20662 * df.h (df_scan_get_bb_info): Same.
20663 * doc/tm.texi: Same.
20664 * dse.c (record_store): Same.
20665 * dumpfile.h: Same.
20666 * emit-rtl.c (const_fixed_hasher::equal): Same.
20667 (set_mem_attributes_minus_bitpos): Same.
20668 (change_address): Same.
20669 (adjust_address_1): Same.
20670 (offset_address): Same.
20671 * emit-rtl.h: Same.
20672 * except.c (dw2_build_landing_pads): Same.
20673 (sjlj_emit_dispatch_table): Same.
20674 * explow.c (allocate_dynamic_stack_space): Same.
20675 (emit_stack_probe): Same.
20676 (probe_stack_range): Same.
20677 * expmed.c (store_bit_field_using_insv): Same.
20678 (store_bit_field_1): Same.
20679 (store_integral_bit_field): Same.
20680 (extract_bit_field_using_extv): Same.
20681 (extract_bit_field_1): Same.
20682 (emit_cstore): Same.
20683 * expr.c (emit_block_move_via_cpymem): Same.
20684 (expand_cmpstrn_or_cmpmem): Same.
20685 (set_storage_via_setmem): Same.
20686 (emit_single_push_insn_1): Same.
20687 (expand_assignment): Same.
20688 (store_constructor): Same.
20689 (expand_expr_real_2): Same.
20690 (expand_expr_real_1): Same.
20691 (try_casesi): Same.
20692 * flags.h: Same.
20693 * function.c (try_fit_stack_local): Same.
20694 (assign_stack_local_1): Same.
20695 (assign_stack_local): Same.
20696 (cut_slot_from_list): Same.
20697 (insert_slot_to_list): Same.
20698 (max_slot_level): Same.
20699 (move_slot_to_level): Same.
20700 (temp_address_hasher::equal): Same.
20701 (remove_unused_temp_slot_addresses): Same.
20702 (assign_temp): Same.
20703 (combine_temp_slots): Same.
20704 (update_temp_slot_address): Same.
20705 (preserve_temp_slots): Same.
20706 * function.h: Same.
20707 * fwprop.c: Same.
20708 * gcc-rich-location.h: Same.
20709 * gcov.c: Same.
20710 * genattrtab.c (check_attr_test): Same.
20711 (check_attr_value): Same.
20712 (convert_set_attr_alternative): Same.
20713 (convert_set_attr): Same.
20714 (check_defs): Same.
20715 (copy_boolean): Same.
20716 (get_attr_value): Same.
20717 (expand_delays): Same.
20718 (make_length_attrs): Same.
20719 (min_fn): Same.
20720 (make_alternative_compare): Same.
20721 (simplify_test_exp): Same.
20722 (tests_attr_p): Same.
20723 (get_attr_order): Same.
20724 (clear_struct_flag): Same.
20725 (gen_attr): Same.
20726 (compares_alternatives_p): Same.
20727 (gen_insn): Same.
20728 (gen_delay): Same.
20729 (find_attrs_to_cache): Same.
20730 (write_test_expr): Same.
20731 (walk_attr_value): Same.
20732 (write_attr_get): Same.
20733 (eliminate_known_true): Same.
20734 (write_insn_cases): Same.
20735 (write_attr_case): Same.
20736 (write_attr_valueq): Same.
20737 (write_attr_value): Same.
20738 (write_dummy_eligible_delay): Same.
20739 (next_comma_elt): Same.
20740 (find_attr): Same.
20741 (make_internal_attr): Same.
20742 (copy_rtx_unchanging): Same.
20743 (gen_insn_reserv): Same.
20744 (check_tune_attr): Same.
20745 (make_automaton_attrs): Same.
20746 (handle_arg): Same.
20747 * genextract.c (gen_insn): Same.
20748 (VEC_char_to_string): Same.
20749 * genmatch.c (print_operand): Same.
20750 (lower): Same.
20751 (parser::parse_operation): Same.
20752 (parser::parse_capture): Same.
20753 (parser::parse_c_expr): Same.
20754 (parser::parse_simplify): Same.
20755 (main): Same.
20756 * genoutput.c (output_operand_data): Same.
20757 (output_get_insn_name): Same.
20758 (compare_operands): Same.
20759 (place_operands): Same.
20760 (process_template): Same.
20761 (validate_insn_alternatives): Same.
20762 (validate_insn_operands): Same.
20763 (gen_expand): Same.
20764 (note_constraint): Same.
20765 * genpreds.c (write_one_predicate_function): Same.
20766 (add_constraint): Same.
20767 (process_define_register_constraint): Same.
20768 (write_lookup_constraint_1): Same.
20769 (write_lookup_constraint_array): Same.
20770 (write_insn_constraint_len): Same.
20771 (write_reg_class_for_constraint_1): Same.
20772 (write_constraint_satisfied_p_array): Same.
20773 * genrecog.c (optimize_subroutine_group): Same.
20774 * gensupport.c (process_define_predicate): Same.
20775 (queue_pattern): Same.
20776 (remove_from_queue): Same.
20777 (process_rtx): Same.
20778 (is_predicable): Same.
20779 (change_subst_attribute): Same.
20780 (subst_pattern_match): Same.
20781 (alter_constraints): Same.
20782 (alter_attrs_for_insn): Same.
20783 (shift_output_template): Same.
20784 (alter_output_for_subst_insn): Same.
20785 (process_one_cond_exec): Same.
20786 (subst_dup): Same.
20787 (process_define_cond_exec): Same.
20788 (mnemonic_htab_callback): Same.
20789 (gen_mnemonic_attr): Same.
20790 (read_md_rtx): Same.
20791 * ggc-page.c: Same.
20792 * gimple-loop-interchange.cc (dump_reduction): Same.
20793 (dump_induction): Same.
20794 (loop_cand::~loop_cand): Same.
20795 (free_data_refs_with_aux): Same.
20796 (tree_loop_interchange::interchange_loops): Same.
20797 (tree_loop_interchange::map_inductions_to_loop): Same.
20798 (tree_loop_interchange::move_code_to_inner_loop): Same.
20799 (compute_access_stride): Same.
20800 (compute_access_strides): Same.
20801 (proper_loop_form_for_interchange): Same.
20802 (tree_loop_interchange_compute_ddrs): Same.
20803 (prune_datarefs_not_in_loop): Same.
20804 (prepare_data_references): Same.
20805 (pass_linterchange::execute): Same.
20806 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20807 (unroll_jam_possible_p): Same.
20808 (fuse_loops): Same.
20809 (adjust_unroll_factor): Same.
20810 (tree_loop_unroll_and_jam): Same.
20811 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20812 (loop_versioning::expensive_stmt_p): Same.
20813 (loop_versioning::version_for_unity): Same.
20814 (loop_versioning::dump_inner_likelihood): Same.
20815 (loop_versioning::find_per_loop_multiplication): Same.
20816 (loop_versioning::analyze_term_using_scevs): Same.
20817 (loop_versioning::record_address_fragment): Same.
20818 (loop_versioning::analyze_expr): Same.
20819 (loop_versioning::analyze_blocks): Same.
20820 (loop_versioning::prune_conditions): Same.
20821 (loop_versioning::merge_loop_info): Same.
20822 (loop_versioning::add_loop_to_queue): Same.
20823 (loop_versioning::decide_whether_loop_is_versionable): Same.
20824 (loop_versioning::make_versioning_decisions): Same.
20825 (loop_versioning::implement_versioning_decisions): Same.
20826 * gimple-ssa-evrp-analyze.c
20827 (evrp_range_analyzer::record_ranges_from_phis): Same.
20828 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20829 (count_multiple_uses): Same.
20830 (split_group): Same.
20831 (imm_store_chain_info::output_merged_store): Same.
20832 (pass_store_merging::process_store): Same.
20833 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20834 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20835 (is_max): Same.
20836 (alloca_call_type): Same.
20837 (pass_walloca::execute): Same.
20838 * gimple-streamer-in.c (input_phi): Same.
20839 (input_gimple_stmt): Same.
20840 * gimple-streamer.h: Same.
20841 * godump.c (go_force_record_alignment): Same.
20842 (go_format_type): Same.
20843 (go_output_type): Same.
20844 (go_output_fndecl): Same.
20845 (go_output_typedef): Same.
20846 (keyword_hash_init): Same.
20847 (find_dummy_types): Same.
20848 * graph.c (draw_cfg_nodes_no_loops): Same.
20849 (draw_cfg_nodes_for_loop): Same.
20850 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20851 * hsa-brig.c: Same.
20852 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20853 * hsa-dump.c (dump_hsa_cfun): Same.
20854 * hsa-gen.c (gen_function_def_parameters): Same.
20855 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20856 * input.c (dump_line_table_statistics): Same.
20857 (test_lexer): Same.
20858 * input.h: Same.
20859 * internal-fn.c (get_multi_vector_move): Same.
20860 (expand_load_lanes_optab_fn): Same.
20861 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20862 (expand_GOMP_SIMT_EXIT): Same.
20863 (expand_GOMP_SIMT_LAST_LANE): Same.
20864 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20865 (expand_GOMP_SIMT_VOTE_ANY): Same.
20866 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20867 (expand_GOMP_SIMT_XCHG_IDX): Same.
20868 (expand_addsub_overflow): Same.
20869 (expand_neg_overflow): Same.
20870 (expand_mul_overflow): Same.
20871 (expand_call_mem_ref): Same.
20872 (expand_mask_load_optab_fn): Same.
20873 (expand_scatter_store_optab_fn): Same.
20874 (expand_gather_load_optab_fn): Same.
20875 * ipa-cp.c (ipa_get_parm_lattices): Same.
20876 (print_all_lattices): Same.
20877 (ignore_edge_p): Same.
20878 (build_toporder_info): Same.
20879 (free_toporder_info): Same.
20880 (push_node_to_stack): Same.
20881 (ipcp_lattice<valtype>::set_contains_variable): Same.
20882 (set_agg_lats_to_bottom): Same.
20883 (ipcp_bits_lattice::meet_with): Same.
20884 (set_single_call_flag): Same.
20885 (initialize_node_lattices): Same.
20886 (ipa_get_jf_ancestor_result): Same.
20887 (ipcp_verify_propagated_values): Same.
20888 (propagate_scalar_across_jump_function): Same.
20889 (propagate_context_across_jump_function): Same.
20890 (propagate_bits_across_jump_function): Same.
20891 (ipa_vr_operation_and_type_effects): Same.
20892 (propagate_vr_across_jump_function): Same.
20893 (set_check_aggs_by_ref): Same.
20894 (set_chain_of_aglats_contains_variable): Same.
20895 (merge_aggregate_lattices): Same.
20896 (agg_pass_through_permissible_p): Same.
20897 (propagate_aggs_across_jump_function): Same.
20898 (call_passes_through_thunk_p): Same.
20899 (propagate_constants_across_call): Same.
20900 (devirtualization_time_bonus): Same.
20901 (good_cloning_opportunity_p): Same.
20902 (context_independent_aggregate_values): Same.
20903 (gather_context_independent_values): Same.
20904 (perform_estimation_of_a_value): Same.
20905 (estimate_local_effects): Same.
20906 (value_topo_info<valtype>::add_val): Same.
20907 (add_all_node_vals_to_toposort): Same.
20908 (value_topo_info<valtype>::propagate_effects): Same.
20909 (ipcp_propagate_stage): Same.
20910 (ipcp_discover_new_direct_edges): Same.
20911 (same_node_or_its_all_contexts_clone_p): Same.
20912 (cgraph_edge_brings_value_p): Same.
20913 (gather_edges_for_value): Same.
20914 (create_specialized_node): Same.
20915 (find_more_scalar_values_for_callers_subset): Same.
20916 (find_more_contexts_for_caller_subset): Same.
20917 (copy_plats_to_inter): Same.
20918 (intersect_aggregates_with_edge): Same.
20919 (find_aggregate_values_for_callers_subset): Same.
20920 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20921 (decide_about_value): Same.
20922 (decide_whether_version_node): Same.
20923 (spread_undeadness): Same.
20924 (identify_dead_nodes): Same.
20925 (ipcp_store_vr_results): Same.
20926 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20927 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20928 (redirect_to_unreachable): Same.
20929 (edge_set_predicate): Same.
20930 (evaluate_conditions_for_known_args): Same.
20931 (evaluate_properties_for_edge): Same.
20932 (ipa_fn_summary_t::duplicate): Same.
20933 (ipa_call_summary_t::duplicate): Same.
20934 (dump_ipa_call_summary): Same.
20935 (ipa_dump_fn_summary): Same.
20936 (eliminated_by_inlining_prob): Same.
20937 (set_cond_stmt_execution_predicate): Same.
20938 (set_switch_stmt_execution_predicate): Same.
20939 (compute_bb_predicates): Same.
20940 (will_be_nonconstant_expr_predicate): Same.
20941 (phi_result_unknown_predicate): Same.
20942 (analyze_function_body): Same.
20943 (compute_fn_summary): Same.
20944 (estimate_edge_devirt_benefit): Same.
20945 (estimate_edge_size_and_time): Same.
20946 (estimate_calls_size_and_time): Same.
20947 (estimate_node_size_and_time): Same.
20948 (remap_edge_change_prob): Same.
20949 (remap_edge_summaries): Same.
20950 (ipa_merge_fn_summary_after_inlining): Same.
20951 (ipa_fn_summary_generate): Same.
20952 (inline_read_section): Same.
20953 (ipa_fn_summary_read): Same.
20954 (ipa_fn_summary_write): Same.
20955 * ipa-fnsummary.h: Same.
20956 * ipa-hsa.c (ipa_hsa_read_section): Same.
20957 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20958 * ipa-icf.c (sem_function::param_used_p): Same.
20959 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20960 * ipa-inline.c (edge_badness): Same.
20961 (inline_small_functions): Same.
20962 * ipa-polymorphic-call.c
20963 (ipa_polymorphic_call_context::stream_out): Same.
20964 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20965 (predicate::remap_after_inlining): Same.
20966 (predicate::stream_out): Same.
20967 * ipa-predicate.h: Same.
20968 * ipa-profile.c (ipa_profile_read_summary): Same.
20969 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20970 (count_formal_params): Same.
20971 (ipa_dump_param): Same.
20972 (ipa_alloc_node_params): Same.
20973 (ipa_print_node_jump_functions_for_edge): Same.
20974 (ipa_print_node_jump_functions): Same.
20975 (ipa_load_from_parm_agg): Same.
20976 (get_ancestor_addr_info): Same.
20977 (ipa_compute_jump_functions_for_edge): Same.
20978 (ipa_analyze_virtual_call_uses): Same.
20979 (ipa_analyze_stmt_uses): Same.
20980 (ipa_analyze_params_uses_in_bb): Same.
20981 (update_jump_functions_after_inlining): Same.
20982 (try_decrement_rdesc_refcount): Same.
20983 (ipa_impossible_devirt_target): Same.
20984 (update_indirect_edges_after_inlining): Same.
20985 (combine_controlled_uses_counters): Same.
20986 (ipa_edge_args_sum_t::duplicate): Same.
20987 (ipa_write_jump_function): Same.
20988 (ipa_write_indirect_edge_info): Same.
20989 (ipa_write_node_info): Same.
20990 (ipa_read_edge_info): Same.
20991 (ipa_prop_read_section): Same.
20992 (read_replacements_section): Same.
20993 * ipa-prop.h (ipa_get_param_count): Same.
20994 (ipa_get_param): Same.
20995 (ipa_get_type): Same.
20996 (ipa_get_param_move_cost): Same.
20997 (ipa_set_param_used): Same.
20998 (ipa_get_controlled_uses): Same.
20999 (ipa_set_controlled_uses): Same.
21000 (ipa_get_cs_argument_count): Same.
21001 * ipa-pure-const.c (analyze_function): Same.
21002 (pure_const_read_summary): Same.
21003 * ipa-ref.h: Same.
21004 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
21005 * ipa-split.c (test_nonssa_use): Same.
21006 (dump_split_point): Same.
21007 (dominated_by_forbidden): Same.
21008 (split_part_set_ssa_name_p): Same.
21009 (find_split_points): Same.
21010 * ira-build.c (finish_loop_tree_nodes): Same.
21011 (low_pressure_loop_node_p): Same.
21012 * ira-color.c (ira_reuse_stack_slot): Same.
21013 * ira-int.h: Same.
21014 * ira.c (setup_reg_equiv): Same.
21015 (print_insn_chain): Same.
21016 (ira): Same.
21017 * loop-doloop.c (doloop_condition_get): Same.
21018 (add_test): Same.
21019 (record_reg_sets): Same.
21020 (doloop_optimize): Same.
21021 * loop-init.c (loop_optimizer_init): Same.
21022 (fix_loop_structure): Same.
21023 * loop-invariant.c (merge_identical_invariants): Same.
21024 (compute_always_reached): Same.
21025 (find_exits): Same.
21026 (may_assign_reg_p): Same.
21027 (find_invariants_bb): Same.
21028 (find_invariants_body): Same.
21029 (replace_uses): Same.
21030 (can_move_invariant_reg): Same.
21031 (free_inv_motion_data): Same.
21032 (move_single_loop_invariants): Same.
21033 (change_pressure): Same.
21034 (mark_ref_regs): Same.
21035 (calculate_loop_reg_pressure): Same.
21036 * loop-iv.c (biv_entry_hasher::equal): Same.
21037 (iv_extend_to_rtx_code): Same.
21038 (check_iv_ref_table_size): Same.
21039 (clear_iv_info): Same.
21040 (latch_dominating_def): Same.
21041 (iv_get_reaching_def): Same.
21042 (iv_constant): Same.
21043 (iv_subreg): Same.
21044 (iv_extend): Same.
21045 (iv_neg): Same.
21046 (iv_add): Same.
21047 (iv_mult): Same.
21048 (get_biv_step): Same.
21049 (record_iv): Same.
21050 (analyzed_for_bivness_p): Same.
21051 (record_biv): Same.
21052 (iv_analyze_biv): Same.
21053 (iv_analyze_expr): Same.
21054 (iv_analyze_def): Same.
21055 (iv_analyze_op): Same.
21056 (iv_analyze): Same.
21057 (iv_analyze_result): Same.
21058 (biv_p): Same.
21059 (eliminate_implied_conditions): Same.
21060 (simplify_using_initial_values): Same.
21061 (shorten_into_mode): Same.
21062 (canonicalize_iv_subregs): Same.
21063 (determine_max_iter): Same.
21064 (check_simple_exit): Same.
21065 (find_simple_exit): Same.
21066 (get_simple_loop_desc): Same.
21067 * loop-unroll.c (report_unroll): Same.
21068 (decide_unrolling): Same.
21069 (unroll_loops): Same.
21070 (loop_exit_at_end_p): Same.
21071 (decide_unroll_constant_iterations): Same.
21072 (unroll_loop_constant_iterations): Same.
21073 (compare_and_jump_seq): Same.
21074 (unroll_loop_runtime_iterations): Same.
21075 (decide_unroll_stupid): Same.
21076 (unroll_loop_stupid): Same.
21077 (referenced_in_one_insn_in_loop_p): Same.
21078 (reset_debug_uses_in_loop): Same.
21079 (analyze_iv_to_split_insn): Same.
21080 * lra-eliminations.c (lra_debug_elim_table): Same.
21081 (setup_can_eliminate): Same.
21082 (form_sum): Same.
21083 (lra_get_elimination_hard_regno): Same.
21084 (lra_eliminate_regs_1): Same.
21085 (eliminate_regs_in_insn): Same.
21086 (update_reg_eliminate): Same.
21087 (init_elimination): Same.
21088 (lra_eliminate): Same.
21089 * lra-int.h: Same.
21090 * lra-lives.c (initiate_live_solver): Same.
21091 * lra-remat.c (create_remat_bb_data): Same.
21092 * lra-spills.c (lra_spill): Same.
21093 * lra.c (lra_set_insn_recog_data): Same.
21094 (lra_set_used_insn_alternative_by_uid): Same.
21095 (init_reg_info): Same.
21096 (expand_reg_info): Same.
21097 * lto-cgraph.c (output_symtab): Same.
21098 (read_identifier): Same.
21099 (get_alias_symbol): Same.
21100 (input_node): Same.
21101 (input_varpool_node): Same.
21102 (input_ref): Same.
21103 (input_edge): Same.
21104 (input_cgraph_1): Same.
21105 (input_refs): Same.
21106 (input_symtab): Same.
21107 (input_offload_tables): Same.
21108 (output_cgraph_opt_summary): Same.
21109 (input_edge_opt_summary): Same.
21110 (input_cgraph_opt_section): Same.
21111 * lto-section-in.c (lto_free_raw_section_data): Same.
21112 (lto_create_simple_input_block): Same.
21113 (lto_free_function_in_decl_state_for_node): Same.
21114 * lto-streamer-in.c (lto_tag_check_set): Same.
21115 (lto_location_cache::revert_location_cache): Same.
21116 (lto_location_cache::input_location): Same.
21117 (lto_input_location): Same.
21118 (stream_input_location_now): Same.
21119 (lto_input_tree_ref): Same.
21120 (lto_input_eh_catch_list): Same.
21121 (input_eh_region): Same.
21122 (lto_init_eh): Same.
21123 (make_new_block): Same.
21124 (input_cfg): Same.
21125 (fixup_call_stmt_edges): Same.
21126 (input_struct_function_base): Same.
21127 (input_function): Same.
21128 (lto_read_body_or_constructor): Same.
21129 (lto_read_tree_1): Same.
21130 (lto_read_tree): Same.
21131 (lto_input_scc): Same.
21132 (lto_input_tree_1): Same.
21133 (lto_input_toplevel_asms): Same.
21134 (lto_input_mode_table): Same.
21135 (lto_reader_init): Same.
21136 (lto_data_in_create): Same.
21137 * lto-streamer-out.c (output_cfg): Same.
21138 * lto-streamer.h: Same.
21139 * modulo-sched.c (duplicate_insns_of_cycles): Same.
21140 (generate_prolog_epilog): Same.
21141 (mark_loop_unsched): Same.
21142 (dump_insn_location): Same.
21143 (loop_canon_p): Same.
21144 (sms_schedule): Same.
21145 * omp-expand.c (expand_omp_for_ordered_loops): Same.
21146 (expand_omp_for_generic): Same.
21147 (expand_omp_for_static_nochunk): Same.
21148 (expand_omp_for_static_chunk): Same.
21149 (expand_omp_simd): Same.
21150 (expand_omp_taskloop_for_inner): Same.
21151 (expand_oacc_for): Same.
21152 (expand_omp_atomic_pipeline): Same.
21153 (mark_loops_in_oacc_kernels_region): Same.
21154 * omp-offload.c (oacc_xform_loop): Same.
21155 * omp-simd-clone.c (simd_clone_adjust): Same.
21156 * optabs-query.c (get_traditional_extraction_insn): Same.
21157 * optabs.c (expand_vector_broadcast): Same.
21158 (expand_binop_directly): Same.
21159 (expand_twoval_unop): Same.
21160 (expand_twoval_binop): Same.
21161 (expand_unop_direct): Same.
21162 (emit_indirect_jump): Same.
21163 (emit_conditional_move): Same.
21164 (emit_conditional_neg_or_complement): Same.
21165 (emit_conditional_add): Same.
21166 (vector_compare_rtx): Same.
21167 (expand_vec_perm_1): Same.
21168 (expand_vec_perm_const): Same.
21169 (expand_vec_cond_expr): Same.
21170 (expand_vec_series_expr): Same.
21171 (maybe_emit_atomic_exchange): Same.
21172 (maybe_emit_sync_lock_test_and_set): Same.
21173 (expand_atomic_compare_and_swap): Same.
21174 (expand_atomic_load): Same.
21175 (expand_atomic_store): Same.
21176 (maybe_emit_op): Same.
21177 (valid_multiword_target_p): Same.
21178 (create_integer_operand): Same.
21179 (maybe_legitimize_operand_same_code): Same.
21180 (maybe_legitimize_operand): Same.
21181 (create_convert_operand_from_type): Same.
21182 (can_reuse_operands_p): Same.
21183 (maybe_legitimize_operands): Same.
21184 (maybe_gen_insn): Same.
21185 (maybe_expand_insn): Same.
21186 (maybe_expand_jump_insn): Same.
21187 (expand_insn): Same.
21188 * optabs.h (create_expand_operand): Same.
21189 (create_fixed_operand): Same.
21190 (create_output_operand): Same.
21191 (create_input_operand): Same.
21192 (create_convert_operand_to): Same.
21193 (create_convert_operand_from): Same.
21194 * optinfo.h: Same.
21195 * poly-int.h: Same.
21196 * predict.c (optimize_insn_for_speed_p): Same.
21197 (optimize_loop_for_size_p): Same.
21198 (optimize_loop_for_speed_p): Same.
21199 (optimize_loop_nest_for_speed_p): Same.
21200 (get_base_value): Same.
21201 (predicted_by_loop_heuristics_p): Same.
21202 (predict_extra_loop_exits): Same.
21203 (predict_loops): Same.
21204 (predict_paths_for_bb): Same.
21205 (predict_paths_leading_to): Same.
21206 (propagate_freq): Same.
21207 (pass_profile::execute): Same.
21208 * predict.h: Same.
21209 * profile-count.c (profile_count::differs_from_p): Same.
21210 (profile_probability::differs_lot_from_p): Same.
21211 * profile-count.h: Same.
21212 * profile.c (branch_prob): Same.
21213 * regrename.c (free_chain_data): Same.
21214 (mark_conflict): Same.
21215 (create_new_chain): Same.
21216 (merge_overlapping_regs): Same.
21217 (init_rename_info): Same.
21218 (merge_chains): Same.
21219 (regrename_analyze): Same.
21220 (regrename_do_replace): Same.
21221 (scan_rtx_reg): Same.
21222 (record_out_operands): Same.
21223 (build_def_use): Same.
21224 * regrename.h: Same.
21225 * reload.h: Same.
21226 * reload1.c (init_reload): Same.
21227 (maybe_fix_stack_asms): Same.
21228 (copy_reloads): Same.
21229 (count_pseudo): Same.
21230 (count_spilled_pseudo): Same.
21231 (find_reg): Same.
21232 (find_reload_regs): Same.
21233 (select_reload_regs): Same.
21234 (spill_hard_reg): Same.
21235 (fixup_eh_region_note): Same.
21236 (set_reload_reg): Same.
21237 (allocate_reload_reg): Same.
21238 (compute_reload_subreg_offset): Same.
21239 (reload_adjust_reg_for_icode): Same.
21240 (emit_input_reload_insns): Same.
21241 (emit_output_reload_insns): Same.
21242 (do_input_reload): Same.
21243 (inherit_piecemeal_p): Same.
21244 * rtl.h: Same.
21245 * sanopt.c (maybe_get_dominating_check): Same.
21246 (maybe_optimize_ubsan_ptr_ifn): Same.
21247 (can_remove_asan_check): Same.
21248 (maybe_optimize_asan_check_ifn): Same.
21249 (sanopt_optimize_walker): Same.
21250 * sched-deps.c (add_dependence_list): Same.
21251 (chain_to_prev_insn): Same.
21252 (add_insn_mem_dependence): Same.
21253 (create_insn_reg_set): Same.
21254 (maybe_extend_reg_info_p): Same.
21255 (sched_analyze_reg): Same.
21256 (sched_analyze_1): Same.
21257 (get_implicit_reg_pending_clobbers): Same.
21258 (chain_to_prev_insn_p): Same.
21259 (deps_analyze_insn): Same.
21260 (deps_start_bb): Same.
21261 (sched_free_deps): Same.
21262 (init_deps): Same.
21263 (init_deps_reg_last): Same.
21264 (free_deps): Same.
21265 * sched-ebb.c: Same.
21266 * sched-int.h: Same.
21267 * sched-rgn.c (add_branch_dependences): Same.
21268 (concat_insn_mem_list): Same.
21269 (deps_join): Same.
21270 (sched_rgn_compute_dependencies): Same.
21271 * sel-sched-ir.c (reset_target_context): Same.
21272 (copy_deps_context): Same.
21273 (init_id_from_df): Same.
21274 (has_dependence_p): Same.
21275 (change_loops_latches): Same.
21276 (bb_top_order_comparator): Same.
21277 (make_region_from_loop_preheader): Same.
21278 (sel_init_pipelining): Same.
21279 (get_loop_nest_for_rgn): Same.
21280 (make_regions_from_the_rest): Same.
21281 (sel_is_loop_preheader_p): Same.
21282 * sel-sched-ir.h (inner_loop_header_p): Same.
21283 (get_all_loop_exits): Same.
21284 * selftest.h: Same.
21285 * sese.c (sese_build_liveouts): Same.
21286 (sese_insert_phis_for_liveouts): Same.
21287 * sese.h (defined_in_sese_p): Same.
21288 * sreal.c (sreal::stream_out): Same.
21289 * sreal.h: Same.
21290 * streamer-hooks.h: Same.
21291 * target-globals.c (save_target_globals): Same.
21292 * target-globals.h: Same.
21293 * target.def: Same.
21294 * target.h: Same.
21295 * targhooks.c (default_has_ifunc_p): Same.
21296 (default_empty_mask_is_expensive): Same.
21297 (default_init_cost): Same.
21298 * targhooks.h: Same.
21299 * toplev.c: Same.
21300 * tree-affine.c (aff_combination_mult): Same.
21301 (aff_combination_expand): Same.
21302 (aff_combination_constant_multiple_p): Same.
21303 * tree-affine.h: Same.
21304 * tree-cfg.c (build_gimple_cfg): Same.
21305 (replace_loop_annotate_in_block): Same.
21306 (replace_uses_by): Same.
21307 (remove_bb): Same.
21308 (dump_cfg_stats): Same.
21309 (gimple_duplicate_sese_region): Same.
21310 (gimple_duplicate_sese_tail): Same.
21311 (move_block_to_fn): Same.
21312 (replace_block_vars_by_duplicates): Same.
21313 (move_sese_region_to_fn): Same.
21314 (print_loops_bb): Same.
21315 (print_loop): Same.
21316 (print_loops): Same.
21317 (debug): Same.
21318 (debug_loops): Same.
21319 * tree-cfg.h: Same.
21320 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
21321 (chrec_fold_multiply_poly_poly): Same.
21322 (chrec_evaluate): Same.
21323 (chrec_component_in_loop_num): Same.
21324 (reset_evolution_in_loop): Same.
21325 (is_multivariate_chrec): Same.
21326 (chrec_contains_symbols): Same.
21327 (nb_vars_in_chrec): Same.
21328 (chrec_convert_1): Same.
21329 (chrec_convert_aggressive): Same.
21330 * tree-chrec.h: Same.
21331 * tree-core.h: Same.
21332 * tree-data-ref.c (dump_data_dependence_relation): Same.
21333 (canonicalize_base_object_address): Same.
21334 (data_ref_compare_tree): Same.
21335 (prune_runtime_alias_test_list): Same.
21336 (get_segment_min_max): Same.
21337 (create_intersect_range_checks): Same.
21338 (conflict_fn_no_dependence): Same.
21339 (object_address_invariant_in_loop_p): Same.
21340 (analyze_ziv_subscript): Same.
21341 (analyze_siv_subscript_cst_affine): Same.
21342 (analyze_miv_subscript): Same.
21343 (analyze_overlapping_iterations): Same.
21344 (build_classic_dist_vector_1): Same.
21345 (add_other_self_distances): Same.
21346 (same_access_functions): Same.
21347 (build_classic_dir_vector): Same.
21348 (subscript_dependence_tester_1): Same.
21349 (subscript_dependence_tester): Same.
21350 (access_functions_are_affine_or_constant_p): Same.
21351 (get_references_in_stmt): Same.
21352 (loop_nest_has_data_refs): Same.
21353 (graphite_find_data_references_in_stmt): Same.
21354 (find_data_references_in_bb): Same.
21355 (get_base_for_alignment): Same.
21356 (find_loop_nest_1): Same.
21357 (find_loop_nest): Same.
21358 * tree-data-ref.h (dr_alignment): Same.
21359 (ddr_dependence_level): Same.
21360 * tree-if-conv.c (fold_build_cond_expr): Same.
21361 (add_to_predicate_list): Same.
21362 (add_to_dst_predicate_list): Same.
21363 (phi_convertible_by_degenerating_args): Same.
21364 (idx_within_array_bound): Same.
21365 (all_preds_critical_p): Same.
21366 (pred_blocks_visited_p): Same.
21367 (predicate_bbs): Same.
21368 (build_region): Same.
21369 (if_convertible_loop_p_1): Same.
21370 (is_cond_scalar_reduction): Same.
21371 (predicate_scalar_phi): Same.
21372 (remove_conditions_and_labels): Same.
21373 (combine_blocks): Same.
21374 (version_loop_for_if_conversion): Same.
21375 (versionable_outer_loop_p): Same.
21376 (ifcvt_local_dce): Same.
21377 (tree_if_conversion): Same.
21378 (pass_if_conversion::gate): Same.
21379 * tree-if-conv.h: Same.
21380 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
21381 * tree-loop-distribution.c (bb_top_order_cmp): Same.
21382 (free_rdg): Same.
21383 (stmt_has_scalar_dependences_outside_loop): Same.
21384 (copy_loop_before): Same.
21385 (create_bb_after_loop): Same.
21386 (const_with_all_bytes_same): Same.
21387 (generate_memset_builtin): Same.
21388 (generate_memcpy_builtin): Same.
21389 (destroy_loop): Same.
21390 (build_rdg_partition_for_vertex): Same.
21391 (compute_access_range): Same.
21392 (data_ref_segment_size): Same.
21393 (latch_dominated_by_data_ref): Same.
21394 (compute_alias_check_pairs): Same.
21395 (fuse_memset_builtins): Same.
21396 (finalize_partitions): Same.
21397 (find_seed_stmts_for_distribution): Same.
21398 (prepare_perfect_loop_nest): Same.
21399 * tree-parloops.c (lambda_transform_legal_p): Same.
21400 (loop_parallel_p): Same.
21401 (reduc_stmt_res): Same.
21402 (add_field_for_name): Same.
21403 (create_call_for_reduction_1): Same.
21404 (replace_uses_in_bb_by): Same.
21405 (transform_to_exit_first_loop_alt): Same.
21406 (try_transform_to_exit_first_loop_alt): Same.
21407 (transform_to_exit_first_loop): Same.
21408 (num_phis): Same.
21409 (gen_parallel_loop): Same.
21410 (gather_scalar_reductions): Same.
21411 (get_omp_data_i_param): Same.
21412 (try_create_reduction_list): Same.
21413 (oacc_entry_exit_single_gang): Same.
21414 (parallelize_loops): Same.
21415 * tree-pass.h: Same.
21416 * tree-predcom.c (determine_offset): Same.
21417 (last_always_executed_block): Same.
21418 (split_data_refs_to_components): Same.
21419 (suitable_component_p): Same.
21420 (valid_initializer_p): Same.
21421 (find_looparound_phi): Same.
21422 (insert_looparound_copy): Same.
21423 (add_looparound_copies): Same.
21424 (determine_roots_comp): Same.
21425 (predcom_tmp_var): Same.
21426 (initialize_root_vars): Same.
21427 (initialize_root_vars_store_elim_1): Same.
21428 (initialize_root_vars_store_elim_2): Same.
21429 (finalize_eliminated_stores): Same.
21430 (initialize_root_vars_lm): Same.
21431 (remove_stmt): Same.
21432 (determine_unroll_factor): Same.
21433 (execute_pred_commoning_cbck): Same.
21434 (base_names_in_chain_on): Same.
21435 (combine_chains): Same.
21436 (pcom_stmt_dominates_stmt_p): Same.
21437 (try_combine_chains): Same.
21438 (prepare_initializers_chain_store_elim): Same.
21439 (prepare_initializers_chain): Same.
21440 (prepare_initializers): Same.
21441 (prepare_finalizers_chain): Same.
21442 (prepare_finalizers): Same.
21443 (insert_init_seqs): Same.
21444 * tree-scalar-evolution.c (loop_phi_node_p): Same.
21445 (compute_overall_effect_of_inner_loop): Same.
21446 (add_to_evolution_1): Same.
21447 (add_to_evolution): Same.
21448 (follow_ssa_edge_binary): Same.
21449 (follow_ssa_edge_expr): Same.
21450 (backedge_phi_arg_p): Same.
21451 (follow_ssa_edge_in_condition_phi_branch): Same.
21452 (follow_ssa_edge_in_condition_phi): Same.
21453 (follow_ssa_edge_inner_loop_phi): Same.
21454 (follow_ssa_edge): Same.
21455 (analyze_evolution_in_loop): Same.
21456 (analyze_initial_condition): Same.
21457 (interpret_loop_phi): Same.
21458 (interpret_condition_phi): Same.
21459 (interpret_rhs_expr): Same.
21460 (interpret_expr): Same.
21461 (interpret_gimple_assign): Same.
21462 (analyze_scalar_evolution_1): Same.
21463 (analyze_scalar_evolution): Same.
21464 (analyze_scalar_evolution_for_address_of): Same.
21465 (get_instantiated_value_entry): Same.
21466 (loop_closed_phi_def): Same.
21467 (instantiate_scev_name): Same.
21468 (instantiate_scev_poly): Same.
21469 (instantiate_scev_binary): Same.
21470 (instantiate_scev_convert): Same.
21471 (instantiate_scev_not): Same.
21472 (instantiate_scev_r): Same.
21473 (instantiate_scev): Same.
21474 (resolve_mixers): Same.
21475 (initialize_scalar_evolutions_analyzer): Same.
21476 (scev_reset_htab): Same.
21477 (scev_reset): Same.
21478 (derive_simple_iv_with_niters): Same.
21479 (simple_iv_with_niters): Same.
21480 (expression_expensive_p): Same.
21481 (final_value_replacement_loop): Same.
21482 * tree-scalar-evolution.h (block_before_loop): Same.
21483 * tree-ssa-address.h: Same.
21484 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
21485 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
21486 (record_edge_info): Same.
21487 * tree-ssa-live.c (var_map_base_fini): Same.
21488 (remove_unused_locals): Same.
21489 * tree-ssa-live.h: Same.
21490 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
21491 (pass_ch_vect::execute): Same.
21492 (pass_ch::process_loop_p): Same.
21493 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21494 (movement_possibility): Same.
21495 (outermost_invariant_loop): Same.
21496 (stmt_cost): Same.
21497 (determine_max_movement): Same.
21498 (invariantness_dom_walker::before_dom_children): Same.
21499 (move_computations): Same.
21500 (may_move_till): Same.
21501 (force_move_till_op): Same.
21502 (force_move_till): Same.
21503 (memref_free): Same.
21504 (record_mem_ref_loc): Same.
21505 (set_ref_stored_in_loop): Same.
21506 (mark_ref_stored): Same.
21507 (sort_bbs_in_loop_postorder_cmp): Same.
21508 (sort_locs_in_loop_postorder_cmp): Same.
21509 (analyze_memory_references): Same.
21510 (mem_refs_may_alias_p): Same.
21511 (find_ref_loc_in_loop_cmp): Same.
21512 (rewrite_mem_ref_loc::operator): Same.
21513 (first_mem_ref_loc_1::operator): Same.
21514 (sm_set_flag_if_changed::operator): Same.
21515 (execute_sm_if_changed_flag_set): Same.
21516 (execute_sm): Same.
21517 (hoist_memory_references): Same.
21518 (ref_always_accessed::operator): Same.
21519 (refs_independent_p): Same.
21520 (record_dep_loop): Same.
21521 (ref_indep_loop_p_1): Same.
21522 (ref_indep_loop_p): Same.
21523 (can_sm_ref_p): Same.
21524 (find_refs_for_sm): Same.
21525 (loop_suitable_for_sm): Same.
21526 (store_motion_loop): Same.
21527 (store_motion): Same.
21528 (fill_always_executed_in): Same.
21529 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21530 (estimated_unrolled_size): Same.
21531 (loop_edge_to_cancel): Same.
21532 (remove_exits_and_undefined_stmts): Same.
21533 (remove_redundant_iv_tests): Same.
21534 (unloop_loops): Same.
21535 (estimated_peeled_sequence_size): Same.
21536 (try_peel_loop): Same.
21537 (canonicalize_loop_induction_variables): Same.
21538 (canonicalize_induction_variables): Same.
21539 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21540 (name_info): Same.
21541 (stmt_after_inc_pos): Same.
21542 (contains_abnormal_ssa_name_p): Same.
21543 (niter_for_exit): Same.
21544 (find_bivs): Same.
21545 (mark_bivs): Same.
21546 (find_givs_in_bb): Same.
21547 (find_induction_variables): Same.
21548 (find_interesting_uses_cond): Same.
21549 (outermost_invariant_loop_for_expr): Same.
21550 (idx_find_step): Same.
21551 (add_candidate_1): Same.
21552 (add_iv_candidate_derived_from_uses): Same.
21553 (alloc_use_cost_map): Same.
21554 (prepare_decl_rtl): Same.
21555 (generic_predict_doloop_p): Same.
21556 (computation_cost): Same.
21557 (determine_common_wider_type): Same.
21558 (get_computation_aff_1): Same.
21559 (get_use_type): Same.
21560 (determine_group_iv_cost_address): Same.
21561 (iv_period): Same.
21562 (difference_cannot_overflow_p): Same.
21563 (may_eliminate_iv): Same.
21564 (determine_set_costs): Same.
21565 (cheaper_cost_pair): Same.
21566 (compare_cost_pair): Same.
21567 (iv_ca_cand_for_group): Same.
21568 (iv_ca_recount_cost): Same.
21569 (iv_ca_set_remove_invs): Same.
21570 (iv_ca_set_no_cp): Same.
21571 (iv_ca_set_add_invs): Same.
21572 (iv_ca_set_cp): Same.
21573 (iv_ca_add_group): Same.
21574 (iv_ca_cost): Same.
21575 (iv_ca_compare_deps): Same.
21576 (iv_ca_delta_reverse): Same.
21577 (iv_ca_delta_commit): Same.
21578 (iv_ca_cand_used_p): Same.
21579 (iv_ca_delta_free): Same.
21580 (iv_ca_new): Same.
21581 (iv_ca_free): Same.
21582 (iv_ca_dump): Same.
21583 (iv_ca_extend): Same.
21584 (iv_ca_narrow): Same.
21585 (iv_ca_prune): Same.
21586 (cheaper_cost_with_cand): Same.
21587 (iv_ca_replace): Same.
21588 (try_add_cand_for): Same.
21589 (get_initial_solution): Same.
21590 (try_improve_iv_set): Same.
21591 (find_optimal_iv_set_1): Same.
21592 (create_new_iv): Same.
21593 (rewrite_use_compare): Same.
21594 (remove_unused_ivs): Same.
21595 (determine_scaling_factor): Same.
21596 * tree-ssa-loop-ivopts.h: Same.
21597 * tree-ssa-loop-manip.c (create_iv): Same.
21598 (compute_live_loop_exits): Same.
21599 (add_exit_phi): Same.
21600 (add_exit_phis): Same.
21601 (find_uses_to_rename_use): Same.
21602 (find_uses_to_rename_def): Same.
21603 (find_uses_to_rename_in_loop): Same.
21604 (rewrite_into_loop_closed_ssa): Same.
21605 (check_loop_closed_ssa_bb): Same.
21606 (split_loop_exit_edge): Same.
21607 (ip_end_pos): Same.
21608 (ip_normal_pos): Same.
21609 (copy_phi_node_args): Same.
21610 (gimple_duplicate_loop_to_header_edge): Same.
21611 (can_unroll_loop_p): Same.
21612 (determine_exit_conditions): Same.
21613 (scale_dominated_blocks_in_loop): Same.
21614 (niter_for_unrolled_loop): Same.
21615 (tree_transform_and_unroll_loop): Same.
21616 (rewrite_all_phi_nodes_with_iv): Same.
21617 * tree-ssa-loop-manip.h: Same.
21618 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21619 (number_of_iterations_ne): Same.
21620 (assert_no_overflow_lt): Same.
21621 (assert_loop_rolls_lt): Same.
21622 (number_of_iterations_lt): Same.
21623 (adjust_cond_for_loop_until_wrap): Same.
21624 (tree_simplify_using_condition): Same.
21625 (simplify_using_initial_conditions): Same.
21626 (simplify_using_outer_evolutions): Same.
21627 (loop_only_exit_p): Same.
21628 (ssa_defined_by_minus_one_stmt_p): Same.
21629 (number_of_iterations_popcount): Same.
21630 (number_of_iterations_exit): Same.
21631 (find_loop_niter): Same.
21632 (finite_loop_p): Same.
21633 (chain_of_csts_start): Same.
21634 (get_val_for): Same.
21635 (loop_niter_by_eval): Same.
21636 (derive_constant_upper_bound_ops): Same.
21637 (do_warn_aggressive_loop_optimizations): Same.
21638 (record_estimate): Same.
21639 (get_cst_init_from_scev): Same.
21640 (record_nonwrapping_iv): Same.
21641 (idx_infer_loop_bounds): Same.
21642 (infer_loop_bounds_from_ref): Same.
21643 (infer_loop_bounds_from_array): Same.
21644 (infer_loop_bounds_from_pointer_arith): Same.
21645 (infer_loop_bounds_from_signedness): Same.
21646 (bound_index): Same.
21647 (discover_iteration_bound_by_body_walk): Same.
21648 (maybe_lower_iteration_bound): Same.
21649 (estimate_numbers_of_iterations): Same.
21650 (estimated_loop_iterations): Same.
21651 (estimated_loop_iterations_int): Same.
21652 (max_loop_iterations): Same.
21653 (max_loop_iterations_int): Same.
21654 (likely_max_loop_iterations): Same.
21655 (likely_max_loop_iterations_int): Same.
21656 (estimated_stmt_executions_int): Same.
21657 (max_stmt_executions): Same.
21658 (likely_max_stmt_executions): Same.
21659 (estimated_stmt_executions): Same.
21660 (stmt_dominates_stmt_p): Same.
21661 (nowrap_type_p): Same.
21662 (loop_exits_before_overflow): Same.
21663 (scev_var_range_cant_overflow): Same.
21664 (scev_probably_wraps_p): Same.
21665 (free_numbers_of_iterations_estimates): Same.
21666 * tree-ssa-loop-niter.h: Same.
21667 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21668 (idx_analyze_ref): Same.
21669 (analyze_ref): Same.
21670 (gather_memory_references_ref): Same.
21671 (mark_nontemporal_store): Same.
21672 (emit_mfence_after_loop): Same.
21673 (may_use_storent_in_loop_p): Same.
21674 (mark_nontemporal_stores): Same.
21675 (should_unroll_loop_p): Same.
21676 (volume_of_dist_vector): Same.
21677 (add_subscript_strides): Same.
21678 (self_reuse_distance): Same.
21679 (insn_to_prefetch_ratio_too_small_p): Same.
21680 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21681 (patch_loop_exit): Same.
21682 (find_or_create_guard_phi): Same.
21683 (easy_exit_values): Same.
21684 (connect_loop_phis): Same.
21685 (connect_loops): Same.
21686 (compute_new_first_bound): Same.
21687 (split_loop): Same.
21688 (tree_ssa_split_loops): Same.
21689 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21690 (is_maybe_undefined): Same.
21691 (tree_may_unswitch_on): Same.
21692 (simplify_using_entry_checks): Same.
21693 (tree_unswitch_single_loop): Same.
21694 (tree_unswitch_loop): Same.
21695 (tree_unswitch_outer_loop): Same.
21696 (empty_bb_without_guard_p): Same.
21697 (used_outside_loop_p): Same.
21698 (get_vop_from_header): Same.
21699 (hoist_guard): Same.
21700 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21701 (get_lsm_tmp_name): Same.
21702 * tree-ssa-loop.h: Same.
21703 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21704 (build_and_add_sum): Same.
21705 (no_side_effect_bb): Same.
21706 (get_ops): Same.
21707 (linearize_expr): Same.
21708 (should_break_up_subtract): Same.
21709 (linearize_expr_tree): Same.
21710 * tree-ssa-scopedtables.c: Same.
21711 * tree-ssa-scopedtables.h: Same.
21712 * tree-ssa-structalias.c (condense_visit): Same.
21713 (label_visit): Same.
21714 (dump_pred_graph): Same.
21715 (perform_var_substitution): Same.
21716 (move_complex_constraints): Same.
21717 (remove_preds_and_fake_succs): Same.
21718 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21719 (determine_bb_domination_status): Same.
21720 (duplicate_thread_path): Same.
21721 (thread_through_all_blocks): Same.
21722 * tree-ssa-threadupdate.h: Same.
21723 * tree-streamer-in.c (streamer_read_string_cst): Same.
21724 (input_identifier): Same.
21725 (unpack_ts_type_common_value_fields): Same.
21726 (unpack_ts_block_value_fields): Same.
21727 (unpack_ts_translation_unit_decl_value_fields): Same.
21728 (unpack_ts_omp_clause_value_fields): Same.
21729 (streamer_read_tree_bitfields): Same.
21730 (streamer_alloc_tree): Same.
21731 (lto_input_ts_common_tree_pointers): Same.
21732 (lto_input_ts_vector_tree_pointers): Same.
21733 (lto_input_ts_poly_tree_pointers): Same.
21734 (lto_input_ts_complex_tree_pointers): Same.
21735 (lto_input_ts_decl_minimal_tree_pointers): Same.
21736 (lto_input_ts_decl_common_tree_pointers): Same.
21737 (lto_input_ts_decl_non_common_tree_pointers): Same.
21738 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21739 (lto_input_ts_field_decl_tree_pointers): Same.
21740 (lto_input_ts_function_decl_tree_pointers): Same.
21741 (lto_input_ts_type_common_tree_pointers): Same.
21742 (lto_input_ts_type_non_common_tree_pointers): Same.
21743 (lto_input_ts_list_tree_pointers): Same.
21744 (lto_input_ts_vec_tree_pointers): Same.
21745 (lto_input_ts_exp_tree_pointers): Same.
21746 (lto_input_ts_block_tree_pointers): Same.
21747 (lto_input_ts_binfo_tree_pointers): Same.
21748 (lto_input_ts_constructor_tree_pointers): Same.
21749 (lto_input_ts_omp_clause_tree_pointers): Same.
21750 (streamer_read_tree_body): Same.
21751 * tree-streamer.h: Same.
21752 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21753 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21754 (vect_analyze_possibly_independent_ddr): Same.
21755 (vect_analyze_data_ref_dependence): Same.
21756 (vect_compute_data_ref_alignment): Same.
21757 (vect_enhance_data_refs_alignment): Same.
21758 (vect_analyze_data_ref_access): Same.
21759 (vect_check_gather_scatter): Same.
21760 (vect_find_stmt_data_reference): Same.
21761 (vect_create_addr_base_for_vector_ref): Same.
21762 (vect_setup_realignment): Same.
21763 (vect_supportable_dr_alignment): Same.
21764 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21765 (adjust_phi_and_debug_stmts): Same.
21766 (vect_set_loop_mask): Same.
21767 (add_preheader_seq): Same.
21768 (vect_maybe_permute_loop_masks): Same.
21769 (vect_set_loop_masks_directly): Same.
21770 (vect_set_loop_condition_masked): Same.
21771 (vect_set_loop_condition_unmasked): Same.
21772 (slpeel_duplicate_current_defs_from_edges): Same.
21773 (slpeel_add_loop_guard): Same.
21774 (slpeel_can_duplicate_loop_p): Same.
21775 (create_lcssa_for_virtual_phi): Same.
21776 (iv_phi_p): Same.
21777 (vect_update_ivs_after_vectorizer): Same.
21778 (vect_gen_vector_loop_niters_mult_vf): Same.
21779 (slpeel_update_phi_nodes_for_loops): Same.
21780 (slpeel_update_phi_nodes_for_guard1): Same.
21781 (find_guard_arg): Same.
21782 (slpeel_update_phi_nodes_for_guard2): Same.
21783 (slpeel_update_phi_nodes_for_lcssa): Same.
21784 (vect_do_peeling): Same.
21785 (vect_create_cond_for_alias_checks): Same.
21786 (vect_loop_versioning): Same.
21787 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21788 (vect_inner_phi_in_double_reduction_p): Same.
21789 (vect_analyze_scalar_cycles_1): Same.
21790 (vect_fixup_scalar_cycles_with_patterns): Same.
21791 (vect_get_loop_niters): Same.
21792 (bb_in_loop_p): Same.
21793 (vect_get_max_nscalars_per_iter): Same.
21794 (vect_verify_full_masking): Same.
21795 (vect_compute_single_scalar_iteration_cost): Same.
21796 (vect_analyze_loop_form_1): Same.
21797 (vect_analyze_loop_form): Same.
21798 (vect_active_double_reduction_p): Same.
21799 (vect_analyze_loop_operations): Same.
21800 (neutral_op_for_slp_reduction): Same.
21801 (vect_is_simple_reduction): Same.
21802 (vect_model_reduction_cost): Same.
21803 (get_initial_def_for_reduction): Same.
21804 (get_initial_defs_for_reduction): Same.
21805 (vect_create_epilog_for_reduction): Same.
21806 (vectorize_fold_left_reduction): Same.
21807 (vectorizable_reduction): Same.
21808 (vectorizable_induction): Same.
21809 (vectorizable_live_operation): Same.
21810 (loop_niters_no_overflow): Same.
21811 (vect_get_loop_mask): Same.
21812 (vect_transform_loop_stmt): Same.
21813 (vect_transform_loop): Same.
21814 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21815 (vect_determine_precisions): Same.
21816 (vect_pattern_recog_1): Same.
21817 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21818 * tree-vect-stmts.c (stmt_vectype): Same.
21819 (process_use): Same.
21820 (vect_init_vector_1): Same.
21821 (vect_truncate_gather_scatter_offset): Same.
21822 (get_group_load_store_type): Same.
21823 (vect_build_gather_load_calls): Same.
21824 (vect_get_strided_load_store_ops): Same.
21825 (vectorizable_simd_clone_call): Same.
21826 (vectorizable_store): Same.
21827 (permute_vec_elements): Same.
21828 (vectorizable_load): Same.
21829 (vect_transform_stmt): Same.
21830 (supportable_widening_operation): Same.
21831 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21832 (vec_info::free_stmt_vec_info): Same.
21833 (vect_free_loop_info_assumptions): Same.
21834 (vect_loop_vectorized_call): Same.
21835 (set_uid_loop_bbs): Same.
21836 (vectorize_loops): Same.
21837 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21838 * tree.c (add_tree_to_fld_list): Same.
21839 (fld_type_variant_equal_p): Same.
21840 (fld_decl_context): Same.
21841 (fld_incomplete_type_of): Same.
21842 (free_lang_data_in_binfo): Same.
21843 (need_assembler_name_p): Same.
21844 (find_decls_types_r): Same.
21845 (get_eh_types_for_runtime): Same.
21846 (find_decls_types_in_eh_region): Same.
21847 (find_decls_types_in_node): Same.
21848 (assign_assembler_name_if_needed): Same.
21849 * value-prof.c (stream_out_histogram_value): Same.
21850 * value-prof.h: Same.
21851 * var-tracking.c (use_narrower_mode): Same.
21852 (prepare_call_arguments): Same.
21853 (vt_expand_loc_callback): Same.
21854 (resolve_expansions_pending_recursion): Same.
21855 (vt_expand_loc): Same.
21856 * varasm.c (const_hash_1): Same.
21857 (compare_constant): Same.
21858 (tree_output_constant_def): Same.
21859 (simplify_subtraction): Same.
21860 (get_pool_constant): Same.
21861 (output_constant_pool_2): Same.
21862 (output_constant_pool_1): Same.
21863 (mark_constants_in_pattern): Same.
21864 (mark_constant_pool): Same.
21865 (get_section_anchor): Same.
21866 * vr-values.c (compare_range_with_value): Same.
21867 (vr_values::extract_range_from_phi_node): Same.
21868 * vr-values.h: Same.
21869 * web.c (unionfind_union): Same.
21870 * wide-int.h: Same.
21871
21872 2019-07-09 Martin Sebor <msebor@redhat.com>
21873
21874 PR c++/61339
21875 * align.h: Change class-key from class to struct and vice versa
21876 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21877 * alloc-pool.h: Same.
21878 * asan.c (shadow_mem_size): Same.
21879 * auto-profile.c: Same.
21880 * basic-block.h: Same.
21881 * bitmap.h: Same.
21882 * cfgexpand.c (set_rtl): Same.
21883 (expand_one_stack_var_at): Same.
21884 * cfghooks.h: Same.
21885 * cfgloop.h: Same.
21886 * cgraph.h: Same.
21887 * config/i386/i386.h: Same.
21888 * df-problems.c (df_print_bb_index): Same.
21889 * df-scan.c: Same.
21890 * df.h (df_single_use): Same.
21891 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21892 (layout::annotation_line_showed_range_p): Same.
21893 (get_printed_columns): Same.
21894 (correction::ensure_terminated): Same.
21895 (line_corrections::~line_corrections): Same.
21896 * dojump.h: Same.
21897 * dse.c: Same.
21898 * dump-context.h: Same.
21899 * dumpfile.h: Same.
21900 * dwarf2out.c: Same.
21901 * edit-context.c: Same.
21902 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21903 * flags.h: Same.
21904 * function.c (assign_stack_local): Same.
21905 * function.h: Same.
21906 * gcc.c: Same.
21907 * gcov.c (block_info::block_info): Same.
21908 * genattrtab.c: Same.
21909 * genextract.c: Same.
21910 * genmatch.c (comparison_code_p): Same.
21911 (id_base::id_base): Same.
21912 (decision_tree::print): Same.
21913 * genoutput.c: Same.
21914 * genpreds.c (write_one_predicate_function): Same.
21915 * genrecog.c (validate_pattern): Same.
21916 (find_operand_positions): Same.
21917 (optimize_subroutine_group): Same.
21918 (merge_pattern_transition::merge_pattern_transition): Same.
21919 (merge_pattern_info::merge_pattern_info): Same.
21920 (merge_state_result::merge_state_result): Same.
21921 (merge_into_state): Same.
21922 * gensupport.c: Same.
21923 * gensupport.h: Same.
21924 * ggc-common.c (init_ggc_heuristics): Same.
21925 * ggc-tests.c (test_union): Same.
21926 * gimple-loop-interchange.cc (dump_induction): Same.
21927 * gimple-loop-versioning.cc: Same.
21928 * gimple-match.h (gimple_match_cond::any_else): Same.
21929 * gimple-ssa-backprop.c: Same.
21930 * gimple-ssa-sprintf.c: Same.
21931 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21932 Same.
21933 (store_immediate_info::store_immediate_info): Same.
21934 (merged_store_group::apply_stores): Same.
21935 (get_location_for_stmts): Same.
21936 * gimple-ssa-strength-reduction.c: Same.
21937 * gimple-ssa-warn-alloca.c: Same.
21938 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21939 * godump.c (go_type_decl): Same.
21940 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21941 * hash-map.h: Same.
21942 * hash-set-tests.c (test_set_of_strings): Same.
21943 * hsa-brig.c: Same.
21944 * hsa-common.h: Same.
21945 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21946 * input.c (assert_loceq): Same.
21947 * input.h: Same.
21948 * ipa-cp.c: Same.
21949 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21950 * ipa-fnsummary.h: Same.
21951 * ipa-inline.h: Same.
21952 * ipa-prop.h: Same.
21953 * ipa-split.c (visit_bb): Same.
21954 * ira-int.h (minmax_set_iter_next): Same.
21955 * loop-invariant.c: Same.
21956 * loop-iv.c: Same.
21957 * lra-eliminations.c: Same.
21958 * lra-int.h: Same.
21959 * lra-lives.c (mark_regno_dead): Same.
21960 * lra-remat.c: Same.
21961 * lra-spills.c: Same.
21962 * lto-streamer.h: Same.
21963 * mem-stats.h: Same.
21964 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21965 * omp-low.c (omp_clause_aligned_alignment): Same.
21966 * optabs-query.h (get_vcond_eq_icode): Same.
21967 * optabs.h: Same.
21968 * opts.c (wrap_help): Same.
21969 * poly-int.h: Same.
21970 * predict.c (predict_paths_leading_to_edge): Same.
21971 * pretty-print.h: Same.
21972 * profile-count.h: Same.
21973 * read-md.h: Same.
21974 * read-rtl-function.c: Same.
21975 * ree.c: Same.
21976 * reginfo.c: Same.
21977 * regrename.c: Same.
21978 * regrename.h: Same.
21979 * reload.h: Same.
21980 * rtl-iter.h: Same.
21981 * rtl.h (costs_add_n_insns): Same.
21982 * sanopt.c: Same.
21983 * sched-int.h: Same.
21984 * sel-sched-ir.h: Same.
21985 * selftest.h: Same.
21986 * sese.h (vec_find): Same.
21987 * stmt.c: Same.
21988 * target-globals.h: Same.
21989 * tree-affine.c (aff_combination_find_elt): Same.
21990 * tree-affine.h: Same.
21991 * tree-data-ref.h: Same.
21992 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21993 * tree-predcom.c: Same.
21994 * tree-scalar-evolution.c (find_var_scev_info): Same.
21995 * tree-ssa-alias.h: Same.
21996 * tree-ssa-ccp.c: Same.
21997 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21998 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21999 (rewrite_mem_refs): Same.
22000 (execute_sm_if_changed): Same.
22001 (hoist_memory_references): Same.
22002 * tree-ssa-loop-ivopts.c (operator<=): Same.
22003 * tree-ssa-loop.h: Same.
22004 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
22005 * tree-ssa-structalias.c: Same.
22006 * tree-switch-conversion.h (cluster::cluster): Same.
22007 (simple_cluster::simple_cluster): Same.
22008 * tree-vect-patterns.c (type_conversion_p): Same.
22009 * tree-vectorizer.c (dump_stmt_cost): Same.
22010 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
22011 * tree.c (protected_set_expr_location): Same.
22012 * tree.h (desired_pro_or_demotion_p): Same.
22013 (fndecl_built_in_p): Same.
22014 * unique-ptr-tests.cc: Same.
22015 * var-tracking.c (delete_variable_part): Same.
22016 * varasm.c (assemble_real): Same.
22017 (tree_output_constant_def): Same.
22018 * vec.c: Same.
22019 * wide-int-bitmask.h: Same.
22020 * wide-int.h (decompose): Same.
22021
22022 2019-07-09 Richard Biener <rguenther@suse.de>
22023
22024 PR tree-optimization/91114
22025 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
22026 find a vector type isn't fatal.
22027
22028 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
22029
22030 * config/aarch64/aarch64-simd.md
22031 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
22032 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
22033 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
22034 (*aarch64_crypto_aese_fused,
22035 *aarch64_crypto_aesd_fused): Update to new definition.
22036 * config/aarch64/aarch64.c
22037 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
22038
22039 2019-07-09 Richard Biener <rguenther@suse.de>
22040
22041 * gimple-match.h (gimple_match_op::resimplify): New.
22042 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
22043 gimple_resimplify4, gimple_resimplify5): Remove.
22044 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
22045 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
22046 Make static.
22047 (gimple_match_op::resimplify): New.
22048 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
22049 according to availability. Use gimple_match_op::resimplify.
22050
22051 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
22052
22053 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
22054
22055 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
22056
22057 * config/arm/crypto.md:
22058 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
22059 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
22060 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
22061 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
22062 * config/arm/arm.c
22063 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
22064 * config/arm/aarch-common-protos.h
22065 (aarch_crypto_can_dual_issue): Remove.
22066 * config/arm/aarch-common.c
22067 (aarch_crypto_can_dual_issue): Likewise.
22068 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
22069 * config/arm/cortex-a53.md: Likewise.
22070 * config/arm/cortex-a57.md: Likewise.
22071 * config/arm/iterators.md:
22072 (CRYPTO_BINARY): Redefine.
22073 (CRYPTO_UNARY): Removed.
22074 (CRYPTO_AES, CRYPTO_AESMC): New.
22075
22076 2019-07-09 Richard Biener <rguenther@suse.de>
22077
22078 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
22079 (vn_reference_lookup_3): If the main ref has no access path recorded
22080 but orig_ref has use it to do access-path based disambiguation.
22081 (vn_reference_lookup_pieces): Adjust.
22082 (vn_reference_lookup): Pass down original ref if we valueized.
22083
22084 2019-07-09 Martin Liska <mliska@suse.cz>
22085
22086 * doc/extend.texi: Document influence on loop
22087 optimizers.
22088
22089 2019-07-09 Martin Liska <mliska@suse.cz>
22090
22091 * lto-compress.c (lto_normalized_zstd_level): Do not use
22092 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
22093 of libzstd. One can use 0 as a default compression level.
22094
22095 2019-07-09 Martin Liska <mliska@suse.cz>
22096
22097 * doc/invoke.texi: Add link from -fprofile-dir option.
22098 Use better wording for 'gcno filename'.
22099
22100 2019-07-08 Martin Sebor <msebor@redhat.com>
22101
22102 PR middle-end/71924
22103 PR middle-end/90549
22104 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
22105 comment.
22106 (args_loc_t): New type.
22107 (args_loc_t, locmap_t): same.
22108 (diag_returned_locals): New function.
22109 (is_addr_local): Same.
22110 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
22111 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
22112 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
22113
22114 2019-07-08 Jakub Jelinek <jakub@redhat.com>
22115
22116 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
22117 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
22118 and casts in offset when different, both through gimple stmts
22119 and through trees. Rewritten using loops to minimize code duplication
22120 for each operand.
22121
22122 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
22123
22124 * emit-rtl.c (set_insn_locations): New function moved from...
22125 * function.c (set_insn_locations): ...here.
22126 * ira-emit.c (emit_moves): Propagate location of the first instruction
22127 to the inserted move instructions.
22128 * reg-stack.c (compensate_edge): Set the location if the sequence is
22129 inserted on the edge.
22130 * rtl.h (set_insn_locations): Declare.
22131
22132 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22133
22134 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
22135 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
22136 .machine string.
22137
22138 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22139
22140 PR rtl-optimization/88233
22141 * common.opt (fsplit-wide-types-early): New option.
22142 * common/config/rs6000/rs6000-common.c
22143 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
22144 OPT_LEVELS_ALL.
22145 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
22146 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
22147 flag_split_wide_types_early.
22148 (pass_data_lower_subreg3): New.
22149 (pass_lower_subreg3): New.
22150 (make_pass_lower_subreg3): New.
22151 * passes.def (pass_lower_subreg2): Move after the loop passes.
22152 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
22153 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
22154 the pass pipeline; its previous place is taken by ...
22155 (make_pass_lower_subreg3): ... this.
22156
22157 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22158
22159 * config/s390/s390.c (s390_shift_truncation_mask): Define.
22160 (TARGET_SHIFT_TRUNCATION_MASK): Define.
22161
22162 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22163
22164 * config/s390/constraints.md: Add new jsc constraint.
22165 * config/s390/predicates.md: New predicates.
22166 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
22167 * config/s390/s390.c (s390_valid_shift_count): New function.
22168 (print_shift_count_operand): Use s390_valid_shift_count.
22169 (print_operand): Likewise.
22170 * config/s390/s390.md: Use new predicate.
22171 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
22172 * config/s390/vector.md: Use new predicate.
22173
22174 2019-07-08 Andrew Waterman <andrew@sifive.com>
22175 Jim Wilson <jimw@sifive.com>
22176
22177 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
22178 bitsize instead of BITS_PER_WORD.
22179
22180 2019-07-08 Martin Liska <mliska@suse.cz>
22181
22182 * collect2.c (defined): Revert to before r254460.
22183 (scan_prog_file): Revert to before r254460.
22184
22185 2019-07-08 Richard Biener <rguenther@suse.de>
22186
22187 PR tree-optimization/83518
22188 * tree-ssa-sccvn.c: Include splay-tree.h.
22189 (struct pd_range, struct pd_data): New.
22190 (struct vn_walk_cb_data): Add data to track partial definitions.
22191 (vn_walk_cb_data::~vn_walk_cb_data): New.
22192 (vn_walk_cb_data::push_partial_def): New.
22193 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
22194 (vn_reference_lookup_2): When partial defs are registered give up.
22195 (vn_reference_lookup_3): Track partial defs for memset and
22196 constructor zeroing and for defs from constants.
22197
22198 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22199
22200 * doc/install.texi (bootstrap-Og): Document.
22201
22202 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22203
22204 * config/riscv/pic.md (*local_pic_load_s<mode>)
22205 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
22206 referenced by <mode>, giving...
22207 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
22208 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
22209 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
22210 use <X:MODE> for the mode attribute.
22211
22212 2019-07-07 Jeff Law <law@redhat.com>
22213
22214 PR tree-optimization/91090
22215 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
22216 in handling of ranges to simplify switch statements.
22217
22218 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22219
22220 * config/darwin.c (darwin_override_options): Make a final check on PIC
22221 options.
22222
22223 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22224
22225 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
22226 on for kernel code.
22227
22228 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22229
22230 PR target/91068
22231 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
22232 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
22233 instead of matching them to "l" output operands.
22234
22235 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22236
22237 * config/mips/mips.c (mips_split_move): Zero-initialize addr
22238 and check whether addr.reg is nonnull before using it.
22239
22240 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22241
22242 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
22243 ctx->for_simd_scan_phase simd copy the outer var to the privatized
22244 variable(s). For conditional lastprivate look through outer
22245 GIMPLE_OMP_SCAN context.
22246 (lower_omp_1): For conditional lastprivate look through outer
22247 GIMPLE_OMP_SCAN context.
22248
22249 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
22250 member to combined_into_simd_safelen1.
22251 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
22252 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
22253 clauses if ctx->combined_into_simd_safelen1 put statements after the
22254 predicate conditionalized block rather than into it.
22255
22256 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22257
22258 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
22259 operand 1.
22260 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
22261 Make the choice of <mode> explicit, giving...
22262 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
22263
22264 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22265
22266 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
22267 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
22268 of .md attributes.
22269 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
22270 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
22271 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
22272 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
22273 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
22274 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
22275 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
22276 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
22277 (*avx512f_scatterdi<mode>): Likewise.
22278 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
22279
22280 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22281
22282 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
22283 specify the mode iterator referenced by <mode>, giving...
22284 (*push1_h8300hs_<QHI:mode>): ...this.
22285
22286 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22287
22288 * config/gcn/gcn-valu.md
22289 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
22290 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
22291 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
22292 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
22293 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
22294 but using the _exec comparison patterns.
22295 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
22296 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
22297 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
22298 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
22299 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
22300 but using the _exec comparison patterns.
22301
22302 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22303
22304 * config/arm/sync.md
22305 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
22306 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
22307 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
22308 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
22309 <SIDI:cas_cmp_str>.
22310
22311 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22312
22313 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
22314 (maybe_lookup_ctx): Add forward declaration.
22315 (omp_find_scan): Likewise. Walk into body of simd if composited
22316 with worksharing loop.
22317 (scan_omp_simd_scan): New function.
22318 (scan_omp_1_stmt): Call it.
22319 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
22320 ctx->for_simd_scan_phase.
22321 (lower_rec_input_clauses): Do much less work for inscan reductions
22322 in ctx->for_simd_scan_phase is_simd regions.
22323 (lower_omp_scan): Set is_simd also on simd constructs composited
22324 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
22325 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
22326 emit their body after in simd constructs composited with worksharing
22327 loop.
22328 (lower_omp_for_scan): Handle worksharing loop composited with simd.
22329
22330 * omp-low.c (omp_find_scan): Make static.
22331 (lower_omp_for_scan): Fix order of merge arguments in input phase of
22332 the second loop, var2 represents the first partial sum and so needs
22333 to go before rprivb[ivar].
22334
22335 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
22336
22337 * config/rs6000/rs6000-logue.c: Remove unused code.
22338
22339 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22340
22341 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
22342
22343 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
22344
22345 PR target/90712
22346 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
22347 check with a frame laid out check.
22348
22349 2019-07-05 Richard Biener <rguenther@suse.de>
22350
22351 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
22352 when comparing against a store with possibly the same value.
22353
22354 2019-07-05 Richard Biener <rguenther@suse.de>
22355
22356 PR tree-optimization/91091
22357 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
22358 (walk_non_aliased_vuses): Likewise.
22359 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
22360 (get_continuation_for_phi): New tbaa_p parameter and pass
22361 it down.
22362 (walk_non_aliased_vuses): Likewise.
22363 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
22364 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
22365 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
22366 Likewise.
22367 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
22368 (adjust_offsets_for_equal_base_address): New function.
22369 (vn_reference_lookup_3): Use it to catch more base equivalences.
22370 Handle and pass down tbaa_p flag.
22371 (vn_reference_lookup_pieces): Adjust.
22372 (vn_reference_lookup): Remove alias-set altering, instead pass
22373 down false as tbaa_p.
22374
22375 2019-07-05 Richard Biener <rguenther@suse.de>
22376
22377 PR tree-optimization/91091
22378 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
22379 accesses can happen with -fno-strict-aliasing.
22380
22381 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
22382
22383 * tree-ssa-alias.c (alias_stats): Add
22384 nonoverlapping_component_refs_since_match_p_must_overlap.
22385 (dump_alias_stats): Print it.
22386 (nonoverlapping_component_refs_since_match_p): Add early exit.
22387 (nonoverlapping_component_refs_p): Do not account early exit.
22388
22389 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22390
22391 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
22392 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
22393 (emit_eh_dispatch): Delete.
22394 (lower_catch): Emit the eh_dispatch manually and set the location of
22395 the first catch statement onto it.
22396 (lower_eh_filter): Emit the eh_dispatch manually and set location.
22397 (lower_eh_dispatch): Propagate location.
22398 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
22399 (eliminate_build): Likewise.
22400
22401 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22402
22403 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
22404 phi nodes if possible.
22405 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
22406 location info on the newly created statement.
22407 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
22408 newly created increment if needed.
22409
22410 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22411
22412 PR middle-end/78884
22413 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
22414 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
22415 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
22416 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
22417 ctx->add_safelen1 is set.
22418
22419 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
22420 GOMP_loop_start at the start of second worksharing loop in a scan.
22421 For nowait, don't emit GOMP_loop_end_nowait at the end of first
22422 worksharing loop in a scan even if there are conditional lastprivates,
22423 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
22424
22425 2019-07-04 Jan Hubicka <jh@suse.cz>
22426
22427 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
22428 Fix check for match in the ref walk.
22429
22430 2019-07-04 Martin Liska <mliska@suse.cz>
22431
22432 * tree-ssa-loop-niter.c
22433 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
22434 (estimate_numbers_of_iterations):
22435 Support __builtin_expect_with_probability for analysis
22436 of # of loop iterations.
22437
22438 2019-07-04 Alexandre Oliva <oliva@adacore.com>
22439
22440 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
22441 * except.c: Likewise.
22442 * expr.c (expand_expr_real_1): Reject it.
22443 * gimplify.c (gimplify_expr): Gimplify it, within
22444 TRY_FINALLY_EXPR.
22445 * tree-dump.c (dequeue_and_dump): Dump it.
22446 * tree-pretty-print.c (dump_generic_node): Likewise.
22447 * tree.c (block_may_fallthru): Handle it.
22448 * tree.def (EH_ELSE_EXPR): Introduce it.
22449 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
22450 with GIMPLE_EH_ELSE as try/finally/else.
22451
22452 2019-07-04 Richard Biener <rguenther@suse.de>
22453
22454 PR ipa/91062
22455 * tree-pass.h (execute_all_ipa_transforms): Add a flag
22456 parameter whether to disable GC collection.
22457 * passes.c (execute_one_ipa_transform_pass): Likewise, and
22458 honor it.
22459 (execute_all_ipa_transforms): Likewise and pass it down.
22460 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
22461 collection from applying IPA transforms.
22462 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
22463 from applying IPA transforms.
22464
22465 2019-07-04 Richard Biener <rguenther@suse.de>
22466
22467 PR tree-optimization/90911
22468 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
22469 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
22470 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22471 scalar_loop_scaling.
22472 (vect_transform_loop): Scale scalar loop profile if needed.
22473 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
22474 the loop copy from if-conversion adjust edge probabilities
22475 and scale the vectorized loop body profile, queue the scalar
22476 profile for updating after peeling.
22477
22478 2019-07-04 Jan Hubicka <jh@suse.cz>
22479
22480 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
22481 parameters; return early for must-alias.
22482 (indirect_ref_may_alias_decl_p): Likewise; when establishing
22483 outer types match, try nonoverlapping_component_refs
22484 if must-alias is not obvious.
22485 (indirect_refs_may_alias_p): Likewise.
22486 (refs_may_alias_p_2): Likewise.
22487
22488 2019-07-04 Richard Biener <rguenther@suse.de>
22489
22490 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
22491 argument.
22492 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22493 globals into...
22494 (struct vn_walk_cb_data): New callback data struct.
22495 (vn_reference_lookup_2): Adjust.
22496 (vn_reference_lookup_3): Likewise.
22497 (vn_reference_lookup_pieces): Likewise.
22498 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22499 (visit_reference_op_load): Adjust.
22500
22501 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22502
22503 PR tree-optimization/91063
22504 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22505 stmt from stmts sequence before calling vect_init_vector_1.
22506 Formatting fix.
22507
22508 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22509
22510 PR target/88833
22511 * fwprop.c (reg_single_def_p): New function.
22512 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22513 (forward_propagate_into): New parameter reg_prop_only
22514 with default value false.
22515 Propagate def's src into loop only if SET_SRC and SET_DEST
22516 of def_set have single definitions.
22517 Likewise if reg_prop_only is set to true.
22518 (fwprop): New param fwprop_addr_p.
22519 Integrate fwprop_addr into fwprop.
22520 (fwprop_addr): Remove.
22521 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22522 to true.
22523 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22524 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22525 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22526
22527 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22528
22529 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22530 in worksharing loop scans.
22531
22532 PR tree-optimization/91074
22533 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22534 temporary.
22535
22536 PR rtl-optimization/90756
22537 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22538 for VECTOR_TYPE_P.
22539
22540 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
22541
22542 * config/aarch64/aarch64.md: Remove redundant constraints from
22543 define_expand but keep some patterns untouched if they are
22544 specially selected by TARGET_SECONDARY_RELOAD hook.
22545 * config/aarch64/aarch64-sve.md: Likewise.
22546 * config/aarch64/atomics.md: Remove redundant constraints from
22547 define_expand.
22548 * config/aarch64/aarch64-simd.md: Likewise.
22549
22550 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22551
22552 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22553 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22554 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22555 clauses.
22556 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22557 DARWIN_NOPIE_SPEC.
22558
22559 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22560
22561 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22562 (STARTFILE_SPEC): Split crt3 into a separate spec.
22563 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22564 (DARWIN_CRT2_SPEC): New.
22565 (DARWIN_CRT3_SPEC): New.
22566 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22567 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22568 (DARWIN_CRT3_SPEC): New.
22569
22570 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22571
22572 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22573 Change the RTL attribute "length" from "4" to "*" to allow the
22574 length attribute to be adjusted automatically for prefixed load,
22575 store, and add immediate instructions.
22576 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22577 Likewise.
22578 (extendsi<mode>2, EXTSI iterator): Likewise.
22579 (movsi_internal1): Likewise.
22580 (movsi_from_sf): Likewise.
22581 (movdi_from_sf_zero_ext): Likewise.
22582 (mov<mode>_internal): Likewise.
22583 (movcc_internal1, QHI iterator): Likewise.
22584 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22585 (movsf_from_si): Likewise.
22586 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22587 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22588 (mov<mode>, FMOVE128 iterator): Likewise.
22589 (movdi_internal64): Likewise.
22590 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22591 Likewise.
22592 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22593 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22594 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22595 (vsx_splat_v4sf): Likewise.
22596
22597 2019-07-03 Mark Wielaard <mark@klomp.org>
22598
22599 PR debug/90981
22600 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22601 DW_AT_addr_base if there is actually a .debug_addr section with
22602 addresses.
22603 (output_addr_table): Add DWARF5 table header generation here after
22604 checking there are actually any addresses from...
22605 (dwarf2out_finish): ...here.
22606
22607 2019-07-03 Richard Biener <rguenther@suse.de>
22608
22609 PR middle-end/91069
22610 * match.pd (vec_perm -> bit_insert): Fix element read from
22611 first vector.
22612
22613 2019-07-03 Martin Liska <mliska@suse.cz>
22614
22615 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22616 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22617 condition.
22618 * generic-match-head.c: Include dbgcnt.h.
22619 * gimple-match-head.c: Likewise.
22620
22621 2019-07-03 Martin Liska <mliska@suse.cz>
22622
22623 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22624 (GCOV_COUNTER_V_TOPN): New.
22625 (GCOV_COUNTER_V_INDIR): Use _topn.
22626 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22627 (GCOV_TOPN_VALUES): New.
22628 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22629 (GCOV_TOPN_VALUES_COUNTERS): New.
22630 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22631 * tree-profile.c:
22632 (gimple_init_gcov_profiler): Rename variables from one_value
22633 to topn_values.
22634 (gimple_gen_one_value_profiler): Remove.
22635 (gimple_gen_topn_values_profiler): New function.
22636 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22637 names instead of SINGLE_VALUE.
22638 (stream_out_histogram_value): Likewise.
22639 (stream_in_histogram_value): Likewise.
22640 (get_most_common_single_value): Likewise.
22641 (gimple_divmod_fixed_value_transform): Likewise.
22642 (gimple_stringops_transform): Likewise.
22643 (gimple_divmod_values_to_profile): Likewise.
22644 (gimple_stringops_values_to_profile): Likewise.
22645 (gimple_find_values_to_profile): Likewise.
22646 * value-prof.h (enum hist_type): Rename to TOPN.
22647 (gimple_gen_one_value_profiler): Remove.
22648 (gimple_gen_topn_values_profiler): New.
22649
22650 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22651
22652 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22653 if it has the DW_AT_data_member_location attribute.
22654
22655 2019-07-03 Richard Biener <rguenther@suse.de>
22656
22657 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22658 dumping.
22659
22660 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22661
22662 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22663 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22664 (tlsdesc_small_sve_<mode>): Likewise.
22665
22666 2019-07-03 Martin Liska <mliska@suse.cz>
22667
22668 * Makefile.in: Define ZSTD_LIB.
22669 * common.opt: Adjust compression level
22670 to support also zstd levels.
22671 * config.in: Regenerate.
22672 * configure: Likewise.
22673 * configure.ac: Add --with-zstd and --with-zstd-include options
22674 and detect ZSTD.
22675 * doc/install.texi: Mention zstd dependency.
22676 * gcc.c: Print supported LTO compression algorithms.
22677 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22678 (lto_compression_zstd): Likewise.
22679 (lto_uncompression_zstd): Likewise.
22680 (lto_end_compression): Dispatch in between zlib and zstd.
22681 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22682 (lto_uncompression_zlib): Make it static.
22683 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22684 * lto-section-in.c (lto_get_section_data): Pass info
22685 about used compression.
22686 * lto-streamer-out.c: By default use zstd when possible.
22687 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22688 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22689
22690 2019-07-03 Martin Liska <mliska@suse.cz>
22691
22692 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22693 * lto-section-out.c (lto_destroy_simple_output_block): Never
22694 compress LTO_section_lto section.
22695 * lto-streamer-out.c (produce_asm): Do not set major_version
22696 and minor_version.
22697 (lto_output_toplevel_asms): Likewise.
22698 (produce_lto_section): New function.
22699 (lto_output): Call produce_lto_section.
22700 (lto_write_mode_table): Do not set major_version and
22701 minor_version.
22702 (produce_asm_for_decls): Likewise.
22703 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22704 type.
22705 (struct lto_header): Remove.
22706 (struct lto_section): New struct.
22707 (struct lto_simple_header): Do not inherit from lto_header.
22708 (struct lto_file_decl_data): Add lto_section_header field.
22709
22710 2019-07-03 Martin Liska <mliska@suse.cz>
22711
22712 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22713 dead assignemts.
22714 * reg-stack.c (check_asm_stack_operands): Likewise.
22715 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22716 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22717 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22718 force_expand_binop.
22719
22720 2019-07-03 Martin Liska <mliska@suse.cz>
22721
22722 PR tree-optimization/90892
22723 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22724 in string constants.
22725
22726 2019-07-03 Martin Liska <mliska@suse.cz>
22727
22728 PR middle-end/90899
22729 * multiple_target.c (create_dispatcher_calls): Add to comdat
22730 group only if set for ifunc.
22731
22732 2019-07-03 Martin Liska <mliska@suse.cz>
22733
22734 PR target/88056
22735 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22736 Define local_object_name in outer scope in order to handle
22737 use-after-scope issue.
22738
22739 2019-07-03 Martin Liska <mliska@suse.cz>
22740
22741 * common.opt: Add fprofile-note.
22742 * coverage.c (coverage_init): Append the option
22743 to bbg_file_name.
22744 * doc/invoke.texi: Document -fprofile-note.
22745
22746 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22747
22748 PR tree-optimization/91033
22749 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22750 vect_analyze_data_refs): Add bool * arguments.
22751 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22752 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22753 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22754 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22755 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22756 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22757 vect_analyze_data_refs caller.
22758
22759 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22760 clause.
22761 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22762 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22763 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22764 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22765 OMP_CLAUSE__SCANTEMP_ entry.
22766 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22767 * tree-pretty-print.c (dump_omp_clause): Likewise.
22768 * tree-nested.c (convert_nonlocal_omp_clauses,
22769 convert_local_omp_clauses): Likewise.
22770 * omp-general.h (struct omp_for_data): Add have_scantemp and
22771 have_nonctrl_scantemp members.
22772 * omp-general.c (omp_extract_for_data): Initialize them.
22773 * omp-low.c (struct omp_context): Add scan_exclusive member.
22774 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22775 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22776 ctx->scan_exclusive.
22777 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22778 of !ctx->scan_inclusive.
22779 (lower_rec_input_clauses): Simplify gimplification of dtors using
22780 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22781 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22782 loops. Don't add barrier for reduction_omp_orig_ref if
22783 ctx->scan_??xclusive.
22784 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22785 (lower_omp_scan): Use ctx->scan_exclusive instead
22786 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22787 reductions. Use new_vard != new_var instead of repeated
22788 omp_is_reference calls.
22789 (omp_find_scan, lower_omp_for_scan): New functions.
22790 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22791 inscan reductions.
22792 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22793 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22794 and fd->have_scantemp.
22795
22796 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22797 on worksharing loop propagate it as shared clause to containing
22798 combined parallel.
22799
22800 * omp-expand.c (expand_omp_for_static_nochunk,
22801 expand_omp_for_static_chunk): For nowait worksharing loop with
22802 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22803 at the end.
22804
22805 2019-07-02 qing zhao <qing.zhao@oracle.com>
22806
22807 PR preprocessor/90581
22808 * doc/cppopts.texi: Add document for -fmax-include-depth.
22809 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22810
22811 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22812
22813 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22814 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22815 (mmx_packssdw): Ditto.
22816 (mmx_punpckhbw): Ditto.
22817 (mmx_punpcklbw): Ditto.
22818 (mmx_punpckhwd): Ditto.
22819 (mmx_punpcklwd): Ditto.
22820 (mmx_punpckhdq): Ditto.
22821 (mmx_punpckldq): Ditto.
22822 (*vec_dupv4hi): Ditto.
22823 (*vec_dupv2si): Ditto.
22824 (mmx_pmovmskb): Ditto.
22825 * config/i386/sse.md (sse_cvtpi2ps): Use
22826 TARGET_SSE2 && SSE_REG_P in split condition.
22827 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22828 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22829 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22830 (ssse3_pshufbv8qi3): Ditto.
22831 (ssse3_palignrdi): Ditto.
22832
22833 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22834
22835 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22836 with inlined save and restore.
22837
22838 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22839
22840 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22841 to be inserted on single successor edge of the entry block. Then call
22842 commit_edge_insertions instead of inserting the instructions manually.
22843 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22844 RTL expansion and rebuild jump labels chain.
22845
22846 2019-07-02 Richard Biener <rguenther@suse.de>
22847
22848 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22849 TI_CHREC_KNOWN.
22850 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22851 Define here.
22852 * tree.c (build_common_tree_nodes): Initialize them.
22853 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22854 Make declarations comments.
22855 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22856 chrec_known): Remove definitions.
22857 (initialize_scalar_evolutions_analyzer): Remove.
22858 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22859 * tree-streamer.c (preload_common_nodes): Do not preload
22860 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22861
22862 2019-07-02 Jan Hubicka <jh@suse.cz>
22863
22864 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22865 sanity check.
22866
22867 2019-07-02 Jan Hubicka <jh@suse.cz>
22868
22869 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22870 to ..
22871 (nonoverlapping_component_refs_since_match_p): ... this one;
22872 handle also non-decl bases; return -1 if search gave up.
22873 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22874 nonoverlapping_component_refs_of_decl_p_no_alias to
22875 nonoverlapping_component_refs_since_match_p_may_alias,
22876 nonoverlapping_component_refs_since_match_p_no_alias.
22877 (dump_alias_stats): Update dumping.
22878 (aliasing_matching_component_refs_p): Break out from ...;
22879 dispatch to nonoverlapping_component_refs_for_decl_p
22880 and nonoverlapping_component_refs_since_match_p.
22881 (aliasing_component_refs_p): ... here; call
22882 nonoverlapping_component_refs_p in scenarios where we can not
22883 precisely determine base match.
22884 (decl_refs_may_alias_p): Use
22885 nonoverlapping_component_refs_since_match_p.
22886 (indirect_ref_may_alias_decl_p): Do not call
22887 nonoverlapping_component_refs_p.
22888 (indirect_refs_may_alias_p): Likewise.
22889
22890 2019-07-02 Jan Hubicka <jh@suse.cz>
22891
22892 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22893 to clobber of return value.
22894
22895 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22896
22897 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22898 for is_neon_type instructions that have not already been categorized.
22899
22900 2019-07-02 Richard Biener <rguenther@suse.de>
22901
22902 PR tree-optimization/58483
22903 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22904 for MEM_REF base hashing.
22905 (equal_mem_array_ref_p): Likewise for base comparison.
22906
22907 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22908
22909 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22910 parameterized name.
22911 (signbit<mode>2): Use that name. Simplify.
22912
22913 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22914
22915 PR middle-end/66726
22916 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22917 Tune heuristic from PR71016 to allow MIN / MAX.
22918
22919 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22920
22921 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22922 parameterized name.
22923 (abs<mode>2): Use that name. Simplify.
22924
22925 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22926
22927 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22928 parameterized name.
22929 (neg<mode>2): Use that name. Simplify.
22930
22931 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22932
22933 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22934 name.
22935 (abs<mode>2): Use that name. Simplify.
22936
22937 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22938
22939 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22940 name.
22941 (neg<mode>2): Use that name. Simplify.
22942
22943 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22944
22945 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22946 ("enabled" attribute): Handle sse_noavx isa attribute.
22947 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22948 Use TARGET_SSE && SSE_REGNO_P in split condition.
22949 (*vec_dupv2sf): Ditto.
22950
22951 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22952
22953 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22954 name.
22955 (floatsi<mode>2): Use that name. Simplify.
22956
22957 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22958
22959 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22960 parameterized name.
22961 (extenddf<mode>2_vsx): Make this a parameterized name.
22962 (extenddf<mode>2): Use those names. Simplify.
22963
22964 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22965
22966 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22967 name.
22968 (eh_return): Use that name. Simplify.
22969
22970 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22971
22972 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22973 (doloop_end): Use that name. Simplify.
22974
22975 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22976
22977 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22978 parameterized name.
22979 (indirect_jump): Use that name. Simplify.
22980
22981 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22982
22983 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22984 parameterized name.
22985 (abs<mode>2): Use that name. Simplify.
22986
22987 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22988
22989 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22990 parameterized name.
22991 (fix_trunc<mode>si2): Use that name. Simplify.
22992
22993 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22994
22995 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22996 (allocate_stack): Use that name. Simplify.
22997
22998 2019-07-01 Martin Sebor <msebor@redhat.com>
22999
23000 PR middle-end/90923
23001 * hash-map.h (hash_map::put): On insertion invoke element ctor.
23002 (hash_map::get_or_insert): Same. Reformat comment.
23003 * hash-set.h (hash_set::add): On insertion invoke element ctor.
23004 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
23005 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
23006 * hash-table.h (hash_table::operator=): Prevent copy assignment.
23007 (hash_table::hash_table (const hash_table&)): Use copy ctor
23008 instead of assignment to copy elements.
23009
23010 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
23011 John David Anglin <danglin@gcc.gnu.org>
23012
23013 PR target/90963
23014 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
23015 using saved frame pointer.
23016
23017 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
23018
23019 PR middle-end/64242
23020 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
23021 Add frame clobber and schedule blockage.
23022
23023 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
23024
23025 * doc/invoke.texi (Link Options): Further editorial changes to
23026 -flinker-output docs.
23027
23028 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23029
23030 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
23031 Load both operands of a PLUS into registers separately.
23032
23033 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
23034
23035 * config/s390/vector.md: Fix shift count operand printing.
23036
23037 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23038
23039 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
23040
23041 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23042
23043 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
23044 Use recog_data to test for an output operand.
23045
23046 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23047
23048 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
23049 exclude any others that are disparaged or that are bound to need
23050 a reload or spill.
23051 (ira_get_dup_out_num): Expand comment.
23052
23053 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23054
23055 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
23056 constraint string for each operand/alternative combo. Only handle
23057 '%' at the start of constraint strings, and look for it outside
23058 the main loop.
23059
23060 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23061
23062 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
23063 alternative_mask instead of HARD_REG_SET to represent a
23064 bitmask of alternatives.
23065 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
23066 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
23067
23068 2019-07-01 Martin Liska <mliska@suse.cz>
23069
23070 * edit-context.c (test_applying_fixits_unreadable_file): Do not
23071 use () for a constructor call.
23072 (test_applying_fixits_line_out_of_range): Likewise.
23073 * ggc-page.c (alloc_page): Use (void *) for %p printf format
23074 argument.
23075 (free_page): Likewise.
23076
23077 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
23078
23079 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
23080 parameter names to match usage (no functional change).
23081 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
23082
23083 2019-07-01 Richard Biener <rguenther@suse.de>
23084
23085 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
23086 pass parameter.
23087 (pass_fre::execute): Honor it.
23088 * passes.def: Adjust pass_fre invocations to allow iterating,
23089 add non-iterating pass_fre before late threading/dom.
23090
23091 2019-07-01 Richard Biener <rguenther@suse.de>
23092
23093 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
23094 TARGET_MEM_REF handling to also handle address-taken ones.
23095
23096 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
23097
23098 * doc/sourcebuild.texi (Effective-Target Keywords, Other
23099 hardware attributes): Document avx512vp2intersect.
23100
23101 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23102
23103 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
23104 (abs<mode>2): New expander.
23105 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
23106 Use CODE_FOR_ssse3_absv8qi2.
23107 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
23108 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
23109
23110 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23111
23112 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
23113 to sse, sse_noavx and avx. Update all uses.
23114
23115 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23116
23117 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
23118 (*mmx_<plusminus_insn><mode>3): Ditto.
23119 (*mmx_mulv4hi3"): Ditto.
23120 (*mmx_smulv4hi3_highpart): Ditto.
23121 (*mmx_umulv4hi3_highpart): Ditto.
23122 (*mmx_pmaddwd): Ditto.
23123 (*sse2_umulv1siv1di3): Ditto.
23124 (*mmx_<code>v4hi3): Ditto.
23125 (*mmx_<code>v8qi3): Ditto.
23126 (mmx_ashr<mode>3): Ditto.
23127 ("mmx_<shift_insn><mode>3): Ditto.
23128 (*mmx_eq<mode>3): Ditto.
23129 (mmx_gt<mode>3): Ditto.
23130 (mmx_andnot<mode>3): Ditto.
23131 (*mmx_<code><mode>3): Ditto.
23132 (*mmx_pinsrw): Ditto.
23133 (*mmx_pextrw): Ditto.
23134 (mmx_pshufw_1): Ditto.
23135 (*mmx_uavgv8qi3): Ditto.
23136 (*mmx_uavgv4hi3): Ditto.
23137 ("mmx_psadbw): Ditto.
23138 * config/i386/sse.md (sse_cvtps2pi): Ditto.
23139 (sse_cvttps2pi): Ditto.
23140 (ssse3_pmaddubsw): Ditto.
23141 (*ssse3_pmulhrswv4hi3): Ditto.
23142 (ssse3_psign<mode>3): Ditto.
23143
23144 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
23145
23146 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
23147 adjustment for bit-fields to all aggregate types.
23148
23149 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
23150
23151 * config/rs6000/predicates.md (pcrel_address): Use
23152 SYMBOL_REF_LOCAL_P to determine if a label is local.
23153 (pcrel_external_address): New predicate.
23154 (non_prefixed_mem_operand): Delete, predicate not used.
23155 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
23156 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
23157 addressing.
23158 (SYMBOL_REF_PCREL_P): Likewise.
23159
23160 PR target/91009
23161 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
23162 alternative.
23163 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
23164 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
23165 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
23166
23167 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23168
23169 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
23170 override on extra_headers.
23171
23172 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23173
23174 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
23175 * config/darwin-driver.c (darwin_default_min_version): Remove newline
23176 from warning.
23177 (darwin_driver_init): Likewise.
23178
23179 2019-06-28 Jan Beulich <jbeulich@suse.com>
23180
23181 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23182 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
23183 Eliminate redundant alternative.
23184
23185 2019-06-28 Jan Beulich <jbeulich@suse.com>
23186
23187 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23188 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
23189 Use vector_operand.
23190
23191 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
23192
23193 * config/arc/arc.c (arc_rtx_costs): All short instructions are
23194 having a lower cost regardless of the speed option.
23195
23196 2019-06-28 Jan Beulich <jbeulich@suse.com>
23197
23198 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
23199 vector_operand plus, on both alternatives, "Bm" constraint.
23200
23201 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
23202
23203 * config/arm/arm.md: Remove redundant constraints from
23204 define_expand but leave reload_inm and reload_outm patterns
23205 untouched since they need special constraints to work.
23206 * config/arm/arm-fixed.md: Remove redundant constraints from
23207 define_expand.
23208 * config/arm/iwmmxt.md: Likewise.
23209 * config/arm/neon.md: Likewise.
23210 * config/arm/sync.md: Likewise.
23211 * config/arm/thumb1.md: Likewise.
23212 * config/arm/vec-common.md: Likewise.
23213
23214 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
23215
23216 * doc/install.texi: Document --disable-tm-clone-registry.
23217
23218 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23219
23220 PR c++/91024
23221 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
23222 statements.
23223
23224 PR tree-optimization/91010
23225 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
23226 return true. Otherwise, don't call operand_equal_p if offset1 or
23227 offset2 is NULL and just return false.
23228
23229 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23230
23231 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
23232 user-specified float mode choice for kernel mode code.
23233
23234 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23235
23236 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
23237 spec.
23238
23239 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23240
23241 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
23242 use longcall for 64b code.
23243
23244 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
23245
23246 * builtins.c (get_memory_rtx): Fix comment.
23247 * optabs.def (movmem_optab): Change to cpymem_optab.
23248 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
23249 (emit_block_move_hints): Change movmem to cpymem.
23250 * defaults.h: Change movmem to cpymem.
23251 * targhooks.c (get_move_ratio): Change movmem to cpymem.
23252 (default_use_by_pieces_infrastructure_p): Ditto.
23253 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
23254 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
23255 to cpymem.
23256 * config/aarch64/aarch64.h: Change movmem to cpymem.
23257 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
23258 * config/alpha/alpha.h: Change movmem to cpymem in comment.
23259 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
23260 movmem to cpymem.
23261 * config/arc/arc-protos.h: Change movmem to cpymem.
23262 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
23263 * config/arc/arc.h: Change movmem to cpymem in comment.
23264 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
23265 * config/arm/arm-protos.h: Change movmem to cpymem in names.
23266 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
23267 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
23268 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
23269 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
23270 * config/avr/avr-protos.h: Change movmem to cpymem.
23271 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
23272 avr_out_movmem): Change movmem to cpymem.
23273 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
23274 Change movmem to cpymem.
23275 * config/bfin/bfin-protos.h: Change movmem to cpymem.
23276 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
23277 Change movmem to cpymem.
23278 * config/bfin/bfin.h: Change movmem to cpymem in comment.
23279 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
23280 * config/c6x/c6x-protos.h: Change movmem to cpymem.
23281 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
23282 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
23283 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
23284 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
23285 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
23286 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
23287 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
23288 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
23289 expand_small_cpymem_or_setmem,
23290 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
23291 expand_set_or_cpymem_constant_prologue,
23292 ix86_expand_set_or_cpymem): Change movmem to cpymem.
23293 * config/i386/i386-protos.h: Change movmem to cpymem.
23294 * config/i386/i386.h: Change movmem to cpymem in comment.
23295 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
23296 (setmem<mode>): Change expansion function name.
23297 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
23298 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
23299 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
23300 * config/m32c/m32c-protos.h: Change movmem to cpymem.
23301 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
23302 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
23303 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
23304 to cpymem.
23305 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
23306 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
23307 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
23308 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
23309 Change movmem to cpymem.
23310 * config/mips/mips.h: Change movmem to cpymem.
23311 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
23312 * config/nds32/nds32-memory-manipulation.c
23313 (nds32_expand_movmemsi_loop_unknown_size,
23314 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
23315 nds32_expand_movmemsi_unroll,
23316 nds32_expand_movmemsi): Change movmem to cpymem.
23317 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
23318 * config/nds32/nds32-protos.h: Change movmem to cpymem.
23319 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
23320 (pa_adjust_insn_length): Change call to compute_movmem_length.
23321 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
23322 movmemdi, movmemdi_prereload,
23323 movmemdi_postreload): Change movmem to cpymem.
23324 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
23325 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
23326 * config/riscv/riscv.c: Change movmem to cpymem in comment.
23327 * config/riscv/riscv.h: Change movmem to cpymem.
23328 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
23329 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
23330 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
23331 movmem to cpymem.
23332 * config/s390/s390-protos.h: Change movmem to cpymem.
23333 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
23334 s390_expand_insv): Change movmem to cpymem.
23335 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
23336 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
23337 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
23338 * config/sparc/sparc.h: Change movmem to cpymem in comment.
23339 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
23340 for nonexistent function.
23341 * config/vax/vax.h: Change movmem to cpymem in comment.
23342 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
23343 * config/visium/visium.h: Change movmem to cpymem in comment.
23344 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
23345 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
23346 * doc/md.texi: Change movmem to cpymem and update description to match.
23347 * doc/rtl.texi: Change movmem to cpymem.
23348 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
23349 * doc/tm.texi: Regenerate.
23350
23351 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
23352
23353 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
23354 -fvariable-expansion-in-unroller by default.
23355 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
23356 default for Power.
23357
23358 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
23359
23360 Revert
23361 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23362 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23363
23364 * config.gcc(rs6000-*-*): Define target_gtfiles.
23365
23366 2019-06-27 Jan Hubicka <jh@suse.cz>
23367
23368 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
23369 (add_type_duplicate): When odr hash is not allocated, to nothing.
23370 (odr_based_tbaa_p): New function.
23371 (set_type_canonical_for_odr_type): New function.
23372 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
23373 set_type_canonical_for_odr_type): New.
23374 * tree.c (gimple_canonical_types_compatible_p): ODR types with
23375 ODR based TBAA are not equivalent to non-ODR types.
23376
23377 2019-06-27 Martin Liska <mliska@suse.cz>
23378
23379 PR tree-optimization/90974
23380 PR rtl-optimization/90975
23381 PR rtl-optimization/90976
23382 PR target/91016
23383 PR tree-optimization/91017
23384 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
23385 unused tmp.
23386 * lra.c (lra_set_insn_recog_data): Remove a leftover from
23387 initial commit of IRA.
23388 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
23389 of op0 and op1.
23390 * tree-vect-loop.c (vect_create_epilog_for_reduction):
23391 Remove unused mode1.
23392 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
23393 to new_stmt_info.
23394
23395 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23396
23397 PR target/90991
23398 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
23399 instead of register_operand for operands[1], add m to its constraints
23400 if operands[2] uses "C" constraint. Ensure in condition that if
23401 operands[2] is not 0, then operands[1] is not a MEM. For last two
23402 alternatives, use unaligned loads instead of aligned if operands[1] is
23403 misaligned_operand.
23404
23405 2019-06-27 Martin Liska <mliska@suse.cz>
23406
23407 * asan.c (asan_emit_allocas_unpoison): Remove obviously
23408 dead assignments.
23409 * bt-load.c (move_btr_def): Likewise.
23410 * builtins.c (expand_builtin_apply_args_1): Likewise.
23411 (expand_builtin_apply): Likewise.
23412 * cfgexpand.c (expand_asm_stmt): Likewise.
23413 (construct_init_block): Likewise.
23414 * cfghooks.c (verify_flow_info): Likewise.
23415 * cfgloopmanip.c (remove_path): Likewise.
23416 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
23417 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
23418 * combine.c (simplify_if_then_else): Likewise.
23419 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
23420 (choose_basereg): Likewise.
23421 (ix86_expand_prologue): Likewise.
23422 (ix86_preferred_output_reload_class): Likewise.
23423 * cselib.c (cselib_record_sets): Likewise.
23424 * df-scan.c (df_scan_alloc): Likewise.
23425 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
23426 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
23427 * emit-rtl.c (try_split): Likewise.
23428 * graphite-scop-detection.c (assign_parameter_index_in_region):
23429 Likewise.
23430 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
23431 * ira-color.c (setup_profitable_hard_regs): Likewise.
23432 * ira.c (rtx_moveable_p): Likewise.
23433 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23434 * read-rtl.c (read_subst_mapping): Likewise.
23435 * regrename.c (scan_rtx): Likewise.
23436 * reorg.c (fill_slots_from_thread): Likewise.
23437 * tree-inline.c (tree_function_versioning): Likewise.
23438 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
23439 * tree-ssa-sink.c (statement_sink_location): Likewise.
23440 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
23441 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
23442 (vect_create_epilog_for_reduction): Likewise.
23443 * tree.c (build_nonstandard_integer_type): Likewise.
23444
23445 2019-06-27 Richard Biener <rguenther@suse.de>
23446
23447 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
23448
23449 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
23450
23451 PR tree-optimization/89772
23452 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
23453 out-of-bound accesses checking.
23454
23455 2019-06-27 Martin Liska <mliska@suse.cz>
23456
23457 PR tree-optimization/91014
23458 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
23459 when LHS is NULL_TREE.
23460
23461 2019-06-27 Martin Liska <mliska@suse.cz>
23462
23463 * symbol-summary.h (traverse): Pass
23464 argument a to the call of callback.
23465 (gt_ggc_mx): Mark arguments as unused.
23466 (gt_pch_nx): Likewise.
23467
23468 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
23469
23470 PR target/62147
23471 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
23472 finiteness.
23473
23474 2019-06-26 Jeff Law <law@redhat.com>
23475
23476 PR tree-optimization/90883
23477 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
23478 (delete_dead_or_redundant_assignment): Likewise.
23479
23480 PR tree-optimization/90883
23481 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
23482 * tree-ssa-dse.c: Update various comments to distinguish between
23483 dead and redundant stores.
23484 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
23485 (dse_optimize_redundant_stores): New function.
23486 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
23487 Distinguish between dead and redundant calls in dump output. All
23488 callers updated.
23489 (delete_dead_or_redundant_assignment): Similarly for assignments.
23490 (dse_optimize_stmt): Handle _CHK variants. For statements which
23491 store 0 into multiple memory locations, try to prove a subsequent
23492 store is redundant.
23493
23494 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
23495
23496 PR target/89021
23497 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23498 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23499
23500 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23501
23502 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23503 (branch_islands): New extern.
23504 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23505 * config/rs6000/rs6000.c: .. here.
23506
23507 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23508
23509 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23510 (powerpc*-*-*) ... to here.
23511
23512 2019-06-26 Jeff Law <law@redhat.com>
23513
23514 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23515 memcpy, memmove and memset builtins.
23516 (maybe_trim_memstar_call): Likewise.
23517
23518 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23519
23520 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23521
23522 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23523
23524 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23525
23526 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23527
23528 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23529 declaration.
23530 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23531 "static".
23532 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23533 declaration.
23534
23535 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23536
23537 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23538
23539 2019-06-26 Richard Biener <rguenther@suse.de>
23540
23541 PR ipa/90982
23542 * tree-inline.c (remap_ssa_name): Copy SSA range info.
23543
23544 2019-06-26 Richard Biener <rguenther@suse.de>
23545
23546 * lto-streamer.h (lto_bitmap_alloc): Remove.
23547 (lto_bitmap_free): Likewise.
23548 * lto-streamer.c (lto_bitmap_alloc): Remove.
23549 (lto_bitmap_free): Likewise.
23550 (lto_obstack): Likewise.
23551 (lto_obstack_initialized): Likewise.
23552 * lto-streamer-out.c (lto_output): Use own obstack for local
23553 bitmap, free it consistently.
23554
23555 2019-06-26 Jakub Jelinek <jakub@redhat.com>
23556
23557 PR target/90991
23558 * config/i386/sse.md
23559 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23560 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23561 insns if operands[2] is misaligned_operand.
23562
23563 2019-06-26 Li Jia He <helijia@linux.ibm.com>
23564
23565 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23566 TARGET_POWERPC64.
23567 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23568 to GPR.
23569
23570 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23571
23572 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23573
23574 2019-06-26 Martin Liska <mliska@suse.cz>
23575
23576 PR tree-optimization/90973
23577 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23578 epilogue_cost_vec instead of prologue_cost_vec for
23579 a epilogue cost.
23580
23581 2019-06-26 Martin Liska <mliska@suse.cz>
23582
23583 * bb-reorder.c (connect_better_edge_p): Add missing else
23584 statement in the middle of if-else statements.
23585
23586 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23587 H.J. Lu <hongjiu.lu@intel.com>
23588 Olga Makhotina <olga.makhotina@intel.com>
23589
23590 * common/config/i386/i386-common.c
23591 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23592 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23593 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23594 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23595 (ix86_handle_option): Handle -mavx512vp2intersect.
23596 * config/i386/avx512vp2intersectintrin.h: New.
23597 * config/i386/avx512vp2intersectvlintrin.h: New.
23598 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23599 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23600 AVX512VP2INTERSECT.
23601 * config/i386/i386-builtin-types.def: Add new types.
23602 * config/i386/i386-builtin.def: Add new builtins.
23603 * config/i386/i386-builtins.c: (enum processor_features): Add
23604 F_AVX512VP2INTERSECT.
23605 (static const _isa_names_table isa_names_table): Ditto.
23606 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23607 __AVX512VP2INTERSECT__.
23608 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23609 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23610 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23611 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23612 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23613 * config/i386/i386-options.c (ix86_target_string): Add
23614 -mavx512vp2intersect.
23615 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23616 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23617 P2HImode and P2QImode.
23618 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23619 number for P2QImode and P2HImode.
23620 (ix86_regmode_natural_size): New function.
23621 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23622 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23623 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23624 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23625 * config/i386/i386.opt: Add -mavx512vp2intersect.
23626 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23627 avx512vp2intersectvlintrin.h.
23628 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23629 (define_mode_iterator VI48_AVX512VP2VL): New.
23630 (avx512vp2intersect_2intersect<mode>,
23631 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23632 * config.gcc: Add avx512vp2intersectvlintrin.h and
23633 avx512vp2intersectintrin.h to extra_headers.
23634 * doc/invoke.texi: Document -mavx512vp2intersect.
23635
23636 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23637
23638 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23639
23640 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23641
23642 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23643 savres_routine_syms, savres_routine_name, morestack_ref,
23644 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23645 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23646 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23647 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23648 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23649 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23650 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23651 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23652 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23653 get_stack_clash_protection_probe_interval,
23654 get_stack_clash_protection_guard_size,
23655 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23656 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23657 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23658 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23659 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23660 gen_frame_mem_offset, rs6000_savres_routine_name,
23661 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23662 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23663 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23664 rs6000_global_entry_point_prologue_needed_p,
23665 rs6000_get_separate_components, rs6000_components_for_bb,
23666 rs6000_disqualify_components, rs6000_emit_prologue_components,
23667 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23668 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23669 rs6000_output_savres_externs, rs6000_output_function_prologue,
23670 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23671 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23672 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23673 rs6000_output_function_epilogue, gen_add3_const,
23674 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23675 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23676 to rs6000-logue.c.
23677 (machine_function): Moved to rs6000.h.
23678 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23679 rs6000-internal.h.
23680 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23681 savres_routine_syms, savres_routine_name, morestack_ref,
23682 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23683 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23684 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23685 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23686 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23687 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23688 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23689 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23690 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23691 get_stack_clash_protection_probe_interval,
23692 get_stack_clash_protection_guard_size,
23693 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23694 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23695 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23696 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23697 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23698 gen_frame_mem_offset, rs6000_savres_routine_name,
23699 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23700 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23701 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23702 rs6000_global_entry_point_prologue_needed_p,
23703 rs6000_get_separate_components, rs6000_components_for_bb,
23704 rs6000_disqualify_components, rs6000_emit_prologue_components,
23705 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23706 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23707 rs6000_output_savres_externs, rs6000_output_function_prologue,
23708 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23709 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23710 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23711 rs6000_output_function_epilogue, gen_add3_const,
23712 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23713 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23714 to here from rs6000.c.
23715 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23716 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23717 quad_address_offset_p) Moved to here from rs6000.c.
23718 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23719 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23720 collector.
23721
23722 2019-06-25 Martin Liska <mliska@suse.cz>
23723
23724 * hash-table.c (hashtab_chk_error): Move here from ...
23725 * hash-table.h (hashtab_chk_error): ... here.
23726
23727 2019-06-25 Martin Liska <mliska@suse.cz>
23728
23729 PR tree-optimization/90978
23730 * df-scan.c (df_update_entry_block_defs): Remove dead else
23731 branch.
23732 (df_update_exit_block_uses): Likewise.
23733
23734 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23735 Andrew Stubbs <ams@codesourcery.com>
23736
23737 * config.gcc (thread_file): Set to gcn for AMD GCN.
23738 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23739 (TARGET_EMUTLS_VAR_INIT): New hook.
23740
23741 2019-06-25 Martin Jambor <mjambor@suse.cz>
23742
23743 PR ipa/90939
23744 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23745
23746 2019-06-25 Richard Biener <rguenther@suse.de>
23747
23748 PR tree-optimization/90930
23749 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23750 into parallel form in the last pass instance.
23751
23752 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23753
23754 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23755 (arc_legitimize_pic_address): Simplify and cleanup the function.
23756 (SYMBOLIC_CONST): Remove.
23757 (prepare_pic_move): Likewise.
23758 (prepare_move_operands): Handle complex mov cases here.
23759 (arc_legitimize_address_0): Remove call to
23760 arc_legitimize_pic_address.
23761 (arc_legitimize_address): Remove call to
23762 arc_legitimize_tls_address.
23763 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23764 (movhi_insn): Likewise.
23765
23766 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23767
23768 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23769 PTRDIFF_TYPE.
23770 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23771 format of "__intN" types for UINTMAX_TYPE.
23772 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23773 format of "__intN" types for SIZETYPE.
23774 * tree.c (build_common_tree_nodes): Accept "__intN__"
23775 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23776 * doc/invoke.texi: Document that __intN__ disables pedantic
23777 warnings.
23778
23779 2019-06-25 Jan Hubicka <jh@suse.cz>
23780
23781 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23782 base2_alias_set is non-zero before doing TBAA based disambiguation.
23783
23784 2019-06-25 Martin Liska <mliska@suse.cz>
23785
23786 PR tree-optimization/90973
23787 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23788 of prologue and epilogue.
23789
23790 2019-06-24 Jan Hubicka <jh@suse.cz>
23791
23792 * ipa-utils.h (type_with_linkage_p): Verify that type is
23793 CXX_ODR_P.
23794 (odr_type_p): Remove extra return.
23795 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23796 hash STRING_FLAG only for arrays and integers.
23797 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23798 Update analogously.
23799 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23800 Likewise.
23801 * print-tree.c (print_node): Print cxx-odr-p
23802 and string-flag.
23803 * tree.c (need_assembler_name_p): Also check that type
23804 is CXX_ODR_TYPE_P
23805 (verify_type_variant): Update verification of SRING_FLAG;
23806 also check CXX_ODR_P.
23807 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23808 (TYPE_STRING_FLAG): Use it.
23809 (TYPE_CXX_ODR_P): New macro.
23810 * dwarf2out.c (gen_array_type_die): First check that type
23811 is an array and then test string flag.
23812
23813 2019-06-24 Richard Biener <rguenther@suse.de>
23814
23815 PR tree-optimization/90972
23816 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23817 in common code, dealing with STRING_CST properly.
23818
23819 2019-06-24 Richard Biener <rguenther@suse.de>
23820
23821 PR tree-optimization/90930
23822 PR tree-optimization/90316
23823 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23824 decrement of limit.
23825
23826 2019-06-24 Martin Sebor <msebor@redhat.com>
23827
23828 * tree-pretty-print.h: Remove unnecessary punctuation characters
23829 from a diagnostic.
23830 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23831
23832 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23833
23834 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23835 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23836 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23837
23838 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23839
23840 * config/rs6000/darwin.h: Handle GCC target pragma.
23841
23842 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23843
23844 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23845
23846 2019-06-22 Jeff Law <law@redhat.com>
23847
23848 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23849
23850 2019-06-22 Jan Hubicka <jh@suse.cz>
23851
23852 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23853 give up on bitfields; continue searching for different refs
23854 appearing later.
23855
23856 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23857
23858 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23859 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23860 containing the offset as possible simd lane access. Look through
23861 widening conversion. Move the
23862 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23863
23864 2019-06-21 Richard Biener <rguenther@suse.de>
23865
23866 PR tree-optimization/90930
23867 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23868 flag on new stmts to avoid re-processing them.
23869
23870 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23871
23872 PR c++/90875 - added -Wswitch-outside-range option
23873 * doc/invoke.texi (Wswitch-outside-range): Document.
23874
23875 2019-06-21 Jeff Law <law@redhat.com>
23876
23877 PR tree-optimization/90949
23878 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23879 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23880
23881 2019-06-21 Richard Biener <rguenther@suse.de>
23882
23883 PR debug/90914
23884 * dwarf2out.c (prune_unused_types_walk): Always consider
23885 function-local extern declarations as used.
23886
23887 2019-06-21 Richard Biener <rguenther@suse.de>
23888
23889 PR tree-optimization/90913
23890 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23891 the scalar variant of if-conversion versioning.
23892
23893 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23894
23895 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23896 create another "omp scan inscan exclusive" array if
23897 !ctx->scan_inclusive.
23898 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23899 (lower_omp_scan): Likewise.
23900 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23901 2-bit bitfield for simd_lane_access_p member.
23902 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23903 aux == (void *)-4 as simd lane access.
23904 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23905 comment with permutations to show the canonical permutation order.
23906 (vectorizable_scan_store): Handle exclusive scan.
23907 (vectorizable_store): Call vectorizable_scan_store even for
23908 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23909
23910 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23911 "omp simd array" arrays with one byte elements.
23912
23913 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23914
23915 * config/alpha/alpha.md (@unaligned_store<mode>):
23916 Rename from unaligned_store<mode>.
23917 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23918 * config/alpha/sync.md (@load_locked_<mode>): Rename
23919 from load_locked_<mode>.
23920 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23921 (@atomic_compare_and_swap<mode>_1): Rename
23922 from atomic_compare_and_swap<mode>_1.
23923 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23924 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23925 Use gen_reload_in_aligned and gen_unaligned_store.
23926 (emit_load_locked): Remove.
23927 (emit_store_conditional): Ditto.
23928 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23929 (alpha_split_compare_and_swap): Ditto.
23930 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23931 (alpha_split_compare_and_swap_12): Use gen_load_locked
23932 and gen_store_conditional.
23933 (alpha_split_atomic_exchange): Ditto.
23934 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23935 (alpha_split_atomic_exchange_12): Use gen_load_locked
23936 and gen_store_conditional.
23937
23938 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23939
23940 * config/aarch64/aarch64-errata.h: New file.
23941 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23942 (CA53_ERR_843419_SPEC): Delete.
23943 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23944 * config/aarch64/aarch64-linux.h: Likewise.
23945 * config/aarch64/aarch64-netbsd.h: Likewise.
23946 * config/aarch64/aarch64-freebsd.h: Likewise.
23947
23948 2019-06-20 Marek Polacek <polacek@redhat.com>
23949
23950 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23951
23952 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23953
23954 * config/rs6000/rs6000.md (isa attribute): Add support for
23955 for a future processor.
23956
23957 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23958
23959 PR target/54855
23960 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23961 standard scalar operation pattern for V2DF.
23962 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23963 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23964 (*ieee_<ieee_maxmin><mode>3): Likewise.
23965 (vec_setv2df_0): Likewise.
23966
23967 2019-06-20 Jan Hubicka <jh@suse.cz>
23968
23969 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23970 parameter; it has no use in gimple memory model.
23971 (indirect_ref_may_alias_decl_p): Update.
23972
23973 2019-06-20 Martin Liska <mliska@suse.cz>
23974
23975 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23976 to 10.
23977
23978 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23979
23980 * tree-vect-stmts.c (enum scan_store_kind): New type.
23981 (scan_store_can_perm_p): Change last argument from int * to
23982 vec<enum scan_store_kind> *, record precisely which permutations
23983 need whole vector left shift or that plus VEC_COND_EXPR.
23984 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23985 and additional VEC_COND_EXPR only for those iterations that need it.
23986
23987 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23988
23989 * config.gcc: Fix ARM --with-fpu checking and error message.
23990
23991 2019-06-19 Marek Polacek <polacek@redhat.com>
23992
23993 PR c++/60364 - noreturn after first decl not diagnosed.
23994 * attribs.c (get_attribute_namespace): No longer static.
23995 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23996 attributes.
23997 (attr_noreturn_exclusions): Make it extern.
23998 * attribs.h (get_attribute_namespace): Declare.
23999 * tree-inline.c (function_attribute_inlinable_p): Use
24000 get_attribute_name.
24001
24002 2019-06-19 Martin Sebor <msebor@redhat.com>
24003
24004 PR tree-optimization/90626
24005 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
24006
24007 PR tree-optimization/90626
24008 * tree-ssa-strlen.c (strxcmp_unequal): New function.
24009 (handle_builtin_string_cmp): Call it.
24010
24011 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
24012
24013 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
24014 and DARWIN_NOPIE_SPEC.
24015 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
24016 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
24017 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
24018 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
24019 (DARWIN_EXPORT_DYNAMIC): Delete.
24020 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
24021 and pie options processing to darwin.h.
24022 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
24023
24024 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
24025
24026 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
24027 in computing the number of options to be moved.
24028
24029 2019-06-19 Maya Rashish <coypu@sdf.org>
24030
24031 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
24032 (CLEAR_INSN_CACHE) Use it.
24033
24034 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
24035
24036 * config/i386/i386.md (cmpstrnsi): Remove dead code.
24037
24038 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
24039
24040 PR middle-end/84521
24041 * builtins.c (expand_builtin_setjmp_setup): Save
24042 hard_frame_pointer_rtx.
24043 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
24044 restore fp.
24045 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
24046 non-local goto.
24047 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
24048 elimination code.
24049 (remove_reg_equal_offset_note): Remove unused function.
24050 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
24051 code.
24052 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24053 (arc_builtin_setjmp_frame_value): Remove function.
24054 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24055 (avr_builtin_setjmp_frame_value): Remove function.
24056 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24057 (ix86_builtin_setjmp_frame_value): Remove function.
24058 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
24059 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24060 (sparc_builtin_setjmp_frame_value): Remove function.
24061 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24062 (vax_builtin_setjmp_frame_value): Remove function.
24063 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
24064 pointer if has_nonlocal_label.
24065
24066 2019-06-19 Jakub Jelinek <jakub@redhat.com>
24067
24068 * doc/md.texi: Document vec_shl_<mode> pattern.
24069 * optabs.def (vec_shl_optab): New optab.
24070 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
24071 argument, if == vec_shl_optab, check for left whole vector shift
24072 pattern rather than right shift.
24073 (expand_vec_perm_const): Add vec_shl_optab support.
24074 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
24075 in the comment.
24076 * tree-vect-generic.c (lower_vec_perm): Support permutations which
24077 can be handled by vec_shl_optab.
24078 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
24079 (check_scan_store): Use it.
24080 (vectorizable_scan_store): If target can't do normal permutations,
24081 try to use whole vector left shifts and if needed a VEC_COND_EXPR
24082 after it.
24083 * config/i386/sse.md (vec_shl_<mode>): New expander.
24084
24085 * omp-low.c (lower_rec_input_clauses): Handle references properly
24086 in inscan clauses.
24087 (lower_omp_scan): Likewise.
24088
24089 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24090
24091 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
24092 mem_mode is BLKmode.
24093
24094 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
24095
24096 PR target/90922
24097 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
24098 pointer adjustment for the case of no callee-saved registers and
24099 stack frame bigger than 128 bytes.
24100
24101 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
24102
24103 PR middle-end/90862
24104 * omp-low.c (check_omp_nesting_restrictions): Handle
24105 GF_OMP_TARGET_KIND_OACC_DECLARE.
24106
24107 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
24108
24109 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
24110 (@add<mode>3_carry): Rename from add<mode>3_carry.
24111 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
24112 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
24113 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
24114 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
24115 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
24116 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
24117 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
24118 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
24119 (cmpstrnsi): Use gen_cmp_1.
24120 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
24121 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
24122 (@umonitor_<mode>): Rename from umonitor_<mode>.
24123 * config/i386/i386-expand.c (ix86_expand_copysign):
24124 Use gen_copysign3_const and gen_copysign3_var.
24125 (ix86_expand_xorsign): Use gen_xorsign3_1.
24126 (ix86_expand_branch): Use gen_sub3_carry_ccc,
24127 gen_sub3_carry_ccgz and gen_cmp1.
24128 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
24129 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
24130 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
24131 (ix86_split_lshr): Ditto.
24132 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
24133
24134 2019-06-18 Jason Merrill <jason@redhat.com>
24135
24136 * tree.c (build_constructor): Add MEM_STAT_DECL.
24137
24138 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24139
24140 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
24141 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
24142 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
24143 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
24144 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
24145 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
24146 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
24147 Use CC_NZC instead of CC.
24148 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
24149 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
24150 (aarch64_print_operand): Handle E_CC_NZCmode.
24151 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
24152 of gen_set_clobber_cc.
24153
24154 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24155
24156 * config/aarch64/aarch64-sve.md: Tabify file.
24157
24158 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24159
24160 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
24161 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
24162 * config/aarch64/aarch64-sve.md: Use it.
24163
24164 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24165
24166 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
24167 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
24168 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
24169 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
24170 (aarch64_expand_sve_vec_cmp_int): Use it.
24171 (aarch64_expand_sve_vec_cmp_float): Likewise.
24172 * config/aarch64/aarch64-sve.md: Likewise throughout.
24173
24174 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24175 Kugan Vivekanandarajah <kuganv@linaro.org>
24176
24177 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
24178 (*cond_<optab><mode>_z): Fold into...
24179 (*cond_<optab><mode>_any): ...here. Also handle cases in which
24180 operand 4 can be tied to operand 0 (either inherently or via RA).
24181
24182 2019-06-18 Richard Biener <rguenther@suse.de>
24183
24184 PR debug/90900
24185 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
24186 as if optimized away.
24187
24188 2019-06-18 Tom de Vries <tdevries@suse.de>
24189
24190 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
24191 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
24192 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
24193 Rename to ...
24194 (define_insn "@set_softstack_<mode>"): ... this.
24195 (define_insn "omp_simt_enter_<mode>"): Rename to ...
24196 (define_insn "@omp_simt_enter_<mode>"): ... this.
24197 (define_insn "omp_simt_exit_<mode>"): Rename to ...
24198 (define_insn "@omp_simt_exit_<mode>"): ... this.
24199
24200 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24201
24202 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
24203 vf parameter. Restore the previous iv step of nscalars_step,
24204 but give it iv_type rather than compare_type. Tweak code order
24205 to match the comments.
24206 (vect_set_loop_condition_masked): Update accordingly.
24207 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
24208 for iv_precision. Tweak comment formatting.
24209
24210 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24211
24212 * config/darwin.c: Strip trailing whitespace.
24213
24214 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24215
24216 * config/darwin.c (darwin_emit_unwind_label): New default to false.
24217 (darwin_override_options): Set darwin_emit_unwind_label as needed.
24218
24219 2019-06-18 Martin Jambor <mjambor@suse.cz>
24220
24221 PR ipa/90889
24222 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
24223 caller does not have flag_ipa_cp set.
24224
24225 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24226
24227 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
24228 from "*fold_left_plus_<mode>", updated operands order.
24229 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
24230 * internal-fn.c (mask_fold_left_direct): New define.
24231 (expand_mask_fold_left_optab_fn): Likewise.
24232 (direct_mask_fold_left_optab_supported_p): Likewise.
24233 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
24234 * optabs.def (mask_fold_left_plus_optab): New optab.
24235 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
24236 masked internal_fn for a reduction ifn.
24237 (vectorize_fold_left_reduction): Add support for masking reductions.
24238
24239 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
24240
24241 PR middle-end/80791
24242 * target.def (predict_doloop_p): New hook.
24243 * targhooks.h (default_predict_doloop_p): New declaration.
24244 * targhooks.c (default_predict_doloop_p): New function.
24245 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
24246 * doc/tm.texi: Regenerate.
24247 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
24248 (TARGET_PREDICT_DOLOOP_P): New macro.
24249 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
24250
24251 2019-06-17 Jakub Jelinek <jakub@redhat.com>
24252
24253 * omp-low.c (struct omp_context): Add scan_inclusive field.
24254 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
24255 if inclusive scan.
24256 (struct omplow_simd_context): Add lastlane member.
24257 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
24258 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
24259 1 or 2 argument.
24260 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
24261 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
24262 (lower_omp_scan): New function.
24263 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
24264 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
24265 check 3rd argument if present rather than 2nd.
24266 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
24267 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
24268 2-bit bitfield.
24269 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
24270 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
24271 than 2nd.
24272 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
24273 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
24274 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
24275 init.
24276 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
24277 IFN_GOMP_SIMD_LANE argument.
24278 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
24279 encoded ->aux value.
24280 * tree-vect-stmts.c: Include attribs.h.
24281 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
24282 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
24283 functions.
24284 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
24285 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
24286
24287 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
24288
24289 PR target/62055
24290 * config/i386/i386.md (*nabstf2_1): New insn pattern.
24291 (*nabs<mode>2_1): Ditto.
24292 (nabs sse-reg splitter): New splitter.
24293 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
24294
24295 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24296
24297 PR bootstrap/90873.
24298 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
24299 TMR index check.
24300
24301 2019-06-17 Tom de Vries <tdevries@suse.de>
24302
24303 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
24304 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
24305 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
24306 ...
24307 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
24308 match_operand 0.
24309 (define_insn "omp_simt_enter_insn"): Rename to ...
24310 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
24311 match_operand 0, 1 and 2, as well as the unspec_volatile result.
24312 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
24313 gen_omp_simt_enter_si.
24314 (define_expand "omp_simt_exit"): New.
24315 (define_insn "omp_simt_exit"): Rename to ...
24316 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
24317 match_operand 0.
24318
24319 2019-06-17 Matthew Green <mrg@eterna.com.au>
24320 Maya Rashish <coypu@sdf.org>
24321
24322 * config.gcc (aarch64*-*-netbsd*): New target.
24323 * config/aarch64/aarch64-netbsd.h: New file.
24324 * config/aarch64/t-aarch64-netbsd: Likewise.
24325
24326 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24327
24328 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
24329 the access path from base to first VIEW_CONVERT_EXPR or
24330 BIT_FIELD_REF.
24331
24332 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24333
24334 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
24335 access path on BIT_FIELD_REFs.
24336
24337 2019-06-17 Martin Liska <mliska@suse.cz>
24338
24339 PR ipa/90874
24340 * ipa-utils.h (odr_type_p): Remove dead code.
24341
24342 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24343
24344 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
24345 alternative Solaris 11.4 format.
24346 * configure: Regenerate.
24347
24348 2019-06-17 Tom de Vries <tdevries@suse.de>
24349
24350 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
24351 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
24352 match_operand 0.
24353 (define_insn "call_value_insn"): Rename to ...
24354 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
24355 match_operand 0.
24356 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
24357 DI.
24358
24359 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
24360
24361 PR middle-end/64242
24362 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
24363 frame clobbers and schedule block.
24364 (builtin_longjmp): Likewise.
24365
24366 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24367
24368 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
24369 describe how to perform MSPABI compliant 64-bit shift.
24370 * config/msp430/msp430.md (ashldi3): New define_expand.
24371 (ashrdi3): New define_expand.
24372 (lshrdi3): New define_expand.
24373
24374 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24375
24376 * doc/sourcebuild.texi: Document new effective target keyword
24377 longlong64.
24378
24379 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24380
24381 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
24382 indirect_refs_may_alias_p): Revert accidental commits.
24383
24384 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
24385 at the end of structures.
24386
24387 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24388
24389 * config/darwin.c (machopic_indirect_call_target): Use renamed
24390 darwin_picsymbol_stubs to decide on output.
24391 (darwin_override_options): Handle darwin_picsymbol_stubs.
24392 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
24393 (LD64_VERSION): Revise default.
24394 * config/darwin.opt: (mpic-symbol-stubs): New option.
24395 (darwin_picsymbol_stubs): New variable.
24396 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
24397 rename to TARGET_MACHO_PICSYM_STUBS.
24398 * config/i386/i386.c (output_pic_addr_const): Likewise.
24399 * config/i386/i386.h Likewise.
24400 * config/rs6000/darwin.h: Likewise.
24401 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
24402 darwin_picsymbol_stubs.
24403
24404 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24405
24406 * config/darwin.opt (prebind, noprebind, seglinkedit,
24407 noseglinkedit): Add RejectNegative.
24408
24409 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24410
24411 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
24412 in my previous patch.
24413
24414 2019-06-16 Tom de Vries <tdevries@suse.de>
24415
24416 PR tree-optimization/89376
24417 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
24418
24419 2019-06-15 Maya Rashish <coypu@sdf.org>
24420
24421 * doc/invoke.texi (Spec Files): Update location of the
24422 Fortran spec file.
24423
24424 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
24425
24426 * doc/extend.texi (Common Function Attributes): Clarify
24427 no_sanitize. Fix grammar.
24428
24429 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
24430
24431 * tree-ssa-alias.c (alias_stats): Add
24432 nonoverlapping_component_refs_p_may_alias,
24433 nonoverlapping_component_refs_p_no_alias,
24434 nonoverlapping_component_refs_of_decl_p_may_alias,
24435 nonoverlapping_component_refs_of_decl_p_no_alias.
24436 (dump_alias_stats): Dump them.
24437 (nonoverlapping_component_refs_of_decl_p): Add stats.
24438 (nonoverlapping_component_refs_p): Add stats; do not stop on first
24439 ARRAY_REF.
24440
24441 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
24442
24443 * config/i386/i386.md (and<mode>3): Generate zero-extends for
24444 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
24445 only.
24446 (*anddi3_doubleword): Split before reload. Merge with
24447 anddi->zext pre-reload splitter.
24448 (*andndi3_doubleword): Split before reload.
24449 (*<code>di3_doubleword): Ditto.
24450 (*one_cmpldi2_doubleword): Ditto.
24451
24452 2019-06-15 Jakub Jelinek <jakub@redhat.com>
24453
24454 PR middle-end/90779
24455 * gimplify.c: Include omp-offload.h and context.h.
24456 (gimplify_bind_expr): Add "omp declare target" attributes
24457 to static block scope variables inside of target region or target
24458 functions.
24459
24460 2019-06-15 Tom de Vries <tdevries@suse.de>
24461
24462 PR tree-optimization/90009
24463 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
24464 Return NULL if bb contains IFN_UNIQUE.
24465
24466 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
24467
24468 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
24469 (un): New define_mode_attr.
24470 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
24471 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
24472 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
24473 merge into ...
24474 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
24475
24476 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
24477
24478 * config/darwin.opt: Add RejectNegative where needed, reorder
24479 and add minimal functional descriptions.
24480
24481 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24482
24483 PR rtl-optimization/90765
24484 * calls.c (update_stack_alignment_for_call): New function.
24485 (expand_call): Call update_stack_alignment_for_call when
24486 outgoing parameter is passed in the stack.
24487 (emit_library_call_value_1): Likewise.
24488 * function.c (locate_and_pad_parm): Don't update
24489 stack_alignment_needed and preferred_stack_boundary.
24490
24491 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24492
24493 PR target/90877
24494 * config/i386/i386-features.c
24495 (dimode_scalar_chain::compute_convert_gain): Replace
24496 mmxsse_to_integer with sse_to_integer.
24497 * config/i386/i386.c (ix86_register_move_cost): Verify that
24498 moves between MMX and non-MMX units require secondary memory.
24499 Correct costs of moves between SSE and integer units.
24500 * config/i386/i386.h (processor_costs): Rename cost of moving
24501 SSE register to integer to sse_to_integer. Rename cost of
24502
24503 2019-06-14 Matt Thomas <matt@3am-software.com>
24504 Matthew Green <mrg@eterna.com.au>
24505 Nick Hudson <skrll@netbsd.org>
24506 Maya Rashish <coypu@sdf.org>
24507 Richard Earnshaw <rearnsha@arm.com>
24508
24509 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24510 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24511 * config/arm/netbsd-eabi.h: New file.
24512 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24513 redefining.
24514 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24515 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24516 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24517 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24518
24519 2019-06-14 Richard Biener <rguenther@suse.de>
24520
24521 * tree-loop-distribution.c (classify_partition): Return
24522 whether a reduction appeared in all partitions and do not
24523 stop builtin detection because of this.
24524 (distribute_loop): Sort a non-builtin partition last if
24525 there's a reduction in all partitions and make sure the
24526 partition prevailing as last is not a builtin.
24527
24528 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
24529
24530 PR ipa/90401
24531 * ipa-prop.c (add_to_agg_contents_list): New function.
24532 (clobber_by_agg_contents_list_p): Likewise.
24533 (extract_mem_content): Likewise.
24534 (get_place_in_agg_contents_list): Delete.
24535 (determine_known_aggregate_parts): Renamed from
24536 determine_locally_known_aggregate_parts. New parameter
24537 aa_walk_budget_p.
24538
24539 2019-06-13 Martin Sebor <msebor@redhat.com>
24540
24541 PR tree-optimization/90662
24542 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24543 to the same type.
24544
24545 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24546
24547 PR bootstrap/90873
24548 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24549 dbase is not TARGET_MEM_REF.
24550
24551 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24552
24553 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24554 Update all uses.
24555 (and<mode>3): Use gen_extend_insn instead of indirect functions.
24556 Do not generate DImode extends for 32bit targets.
24557 (and->zext post-reload splitter): Use gen_extend_insn
24558 instead of indirect functions.
24559 (anddi->zext pre-reload splitter): New.
24560 (*zext<mode>_doubleword_and): Remove.
24561 (*zext<mode>_doubleword): Ditto.
24562 (*zextsi_doubleword): Dittto.
24563
24564 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24565
24566 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24567 Use gen_sub3_insn instead of indirect function.
24568 (ix86_expand_ashl_const): Use gen_add2_insn instead of
24569 indirect function.
24570 (ix86_adjust_counter): Ditto.
24571
24572 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24573 Lijia He <helijia@linux.ibm.com>
24574
24575 PR tree-optimization/77820
24576 * tree-ssa-threadedge.c
24577 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24578 function.
24579 (thread_across_edge): Add call to
24580 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24581
24582 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24583
24584 * config/darwin-driver.c (validate_macosx_version_min): New.
24585 (darwin_default_min_version): Cleanup and validate supplied version.
24586 (darwin_driver_init): Likewise and push cleaned version into opts.
24587
24588 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24589
24590 PR tree-optimization/90869
24591 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24592 converts in MEM_REF referencing decl rather than view converts
24593 from decl type to MEM_REF type.
24594
24595 2019-06-13 Richard Biener <rguenther@suse.de>
24596
24597 PR tree-optimization/90856
24598 * tree-sra.c (build_ref_for_model): Only use
24599 build_reconstructed_reference when address-spaces are the same.
24600
24601 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24602
24603 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24604 wrap ei variable name in the declaration in ()s.
24605 (nvptx_single): Actually use mode_label variable. Formatting fix.
24606
24607 2019-06-13 Richard Biener <rguenther@suse.de>
24608
24609 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24610 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24611 also return the condition stmt.
24612 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24613 loop we can version and version that, reusing the loop version
24614 created by if-conversion instead of versioning again.
24615
24616 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24617
24618 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24619 may_contain_p.
24620 * tree-vrp (value_range_base::may_contain_p): Call into
24621 value_inside_range.
24622 (value_inside_range): Make private inside value_range_base class.
24623 Take min/max from *this.
24624 (range_includes_p): Remove.
24625 * tree-vrp.h (value_range_base): Add value_inside_range.
24626 (range_includes_p): Remove.
24627 (range_includes_zero_p): Call may_contain_p.
24628 * vr-values.c (compare_range_with_value): Same.
24629
24630 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24631
24632 * doc/extend.texi (ARC Function Attributes): Update info.
24633
24634 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24635
24636 PR tree-optimization/89713
24637 * doc/invoke.texi (-ffinite-loops): Document new option.
24638 * common.opt (-ffinite-loops): New option.
24639 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24640 IFN_GOACC_LOOP calls as necessary.
24641 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24642 is finite.
24643 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24644 IFN_GOACC_LOOP call is not used.
24645 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24646
24647 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24648
24649 PR target/88838
24650 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24651 compare_type is not with Pmode size, we will create an IV with
24652 Pmode size with truncated use (i.e. converted to the correct type).
24653 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24654 (vect_iv_limit_for_full_masking): New. Factored out of
24655 vect_set_loop_condition_masked.
24656 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24657 (vect_iv_limit_for_full_masking): Declare.
24658
24659 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24660
24661 PR target/88834
24662 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24663 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24664 (get_alias_ptr_type_for_ptr_address): Likewise.
24665 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24666 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24667 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24668 allow_reg_index_p.
24669
24670 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24671
24672 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24673
24674 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24675
24676 * common/config/pru/pru-common.c: New file.
24677 * config.gcc: Add PRU target.
24678 * config/pru/alu-zext.md: New file.
24679 * config/pru/constraints.md: New file.
24680 * config/pru/predicates.md: New file.
24681 * config/pru/pru-opts.h: New file.
24682 * config/pru/pru-passes.c: New file.
24683 * config/pru/pru-pragma.c: New file.
24684 * config/pru/pru-protos.h: New file.
24685 * config/pru/pru.c: New file.
24686 * config/pru/pru.h: New file.
24687 * config/pru/pru.md: New file.
24688 * config/pru/pru.opt: New file.
24689 * config/pru/t-pru: New file.
24690 * doc/extend.texi: Document PRU pragmas.
24691 * doc/invoke.texi: Document PRU-specific options.
24692 * doc/md.texi: Document PRU asm constraints.
24693
24694 2019-06-12 Martin Sebor <msebor@redhat.com>
24695
24696 PR middle-end/90676
24697 * tree-pretty-print.c (dump_mem_ref): New function. Include
24698 MEM_REF type in output when different size than operand.
24699 (dump_generic_node): Move code to dump_mem_ref and call it.
24700
24701 2019-06-12 Martin Sebor <msebor@redhat.com>
24702
24703 PR tree-optimization/90662
24704 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24705 to arrays.
24706
24707 2019-06-12 Tom de Vries <tdevries@suse.de>
24708
24709 PR tree-optimization/90009
24710 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24711
24712 2019-06-12 Martin Liska <mliska@suse.cz>
24713
24714 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24715 the created map.
24716 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24717 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24718 Do not sanitize created maps.
24719
24720 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24721
24722 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24723 value_range::singleton_p.
24724 * tree-vrp.c (value_range_constant_singleton): Remove.
24725 * tree-vrp.h (value_range_constant_singleton): Remove.
24726 * vr-values.c (vr_values::singleton): Use
24727 value_range::singleton_p.
24728
24729 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24730
24731 PR target/90811
24732 * cfgexpand.c (align_local_variable): Add really_expand argument,
24733 don't SET_DECL_ALIGN if it is false.
24734 (add_stack_var): Add really_expand argument, pass it through to
24735 align_local_variable.
24736 (expand_one_stack_var_1): Pass true as really_expand to
24737 align_local_variable.
24738 (expand_one_ssa_partition): Pass true as really_expand to
24739 add_stack_var.
24740 (expand_one_var): Pass really_expand through to add_stack_var.
24741
24742 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24743
24744 * config/arm/iterators.md (VABAL): New int iterator.
24745 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24746 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24747 UNSPEC_VABAL_U values.
24748
24749 2019-06-12 Martin Liska <mliska@suse.cz>
24750
24751 * value-prof.c (stream_out_histogram_value): Only first value
24752 can't be negative.
24753
24754 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24755
24756 PR c/90760
24757 * symtab.c (symtab_node::set_section): Allow being called on aliases
24758 as long as they aren't analyzed yet.
24759
24760 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24761
24762 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24763 to `mips_set_text_contents_type' to indicate whether a
24764 non-debug insn follows.
24765
24766 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24767
24768 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24769 enabling -mpcrel by default.
24770 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24771 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24772 that the test against -mcpu=future is done first. Then test if
24773 -mprefixed-addr is on for -mpcrel.
24774 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24775
24776 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24777
24778 PR target/90811
24779 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24780 instead of and.u%d.
24781
24782 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24783
24784 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24785
24786 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24787
24788 PR c++/90449 - add -Winaccessible-base option.
24789 * doc/invoke.texi (Winaccessible-base): Document.
24790
24791 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24792
24793 PR tree-optimization/62041
24794 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24795
24796 2019-06-11 Jason Merrill <jason@redhat.com>
24797
24798 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24799 * tree.c (get_tree_code_name): Likewise.
24800 * print-tree.c (print_node): Only briefly print a node with an
24801 invalid code.
24802
24803 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24804
24805 PR bootstrap/90819
24806 * trans-mem.c (tm_memopt_compute_available): Add assertion
24807 that blocks is not empty. Formatting fix.
24808
24809 2019-06-11 Martin Liska <mliska@suse.cz>
24810
24811 PR c++/87847
24812 * hash-table.h: Extend create_gcc, add one parameter
24813 that is passed into hash_table::hash_table.
24814
24815 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24816
24817 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24818 New prototype.
24819 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24820 Emit clobber also for non-sse operations.
24821 (ix86_split_fp_absneg_operator): New function.
24822 * config/i386/i386.md (SSEMODEF): New mode iterator.
24823 (ssevecmodef): New mode attribute.
24824 (<code>tf2): Use absneg code iterator.
24825 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24826 Add three-operand AVX alternatives.
24827 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24828 Use absneg code iterator and X87MODEF mode iterator.
24829 (absneg fp_reg non-sse splitter): Call absneg code iterator
24830 and X87MODEF mode iterator.
24831 (absneg general_reg non-sse splitter): Use absneg code iterator
24832 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24833 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24834 code iterator. Add three-operand AVX alternative.
24835 (absneg sse_reg splitter): Use absneg code iterator
24836 and SSEMODEF mode iterator. Handle AVX operands.
24837 (absneg fp_reg splitter): Use absneg code iterator
24838 and MODEF mode iterator.
24839 (absneg general_reg splitter): Merge splitters using MODEF mode
24840 iterator. Use absneg code iterator. Call
24841 ix86_split_fp_absneg_operator.
24842 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24843 Do not enable for non-sse modes before reload.
24844 (CSGNMODE): Remove.
24845 (CSGNVMODE): Ditto.
24846 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24847 ssevecmodef mode attribute instaed of CSGNVMODE.
24848 (copysign<mode>3_const): Ditto.
24849 (copysign<mode>3_var): Ditto.
24850 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24851 Use absneg code iterator. Simplify code using std::swap.
24852 * config/i386/predicates.md (absneg_operator): Remove.
24853
24854 2019-06-10 Martin Sebor <msebor@redhat.com>
24855
24856 * gimple-fold.c (get_range_strlen): Update comment that didn't
24857 make it into r267503 or related commits.
24858
24859 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24860
24861 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24862 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24863
24864 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24865
24866 * tree.def (OMP_SCAN): New tree code.
24867 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24868 OMP_CLAUSE_EXCLUSIVE.
24869 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24870 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24871 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24872 OMP_CLAUSE_{IN,EX}CLUSIVE.
24873 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24874 * tree-nested.c (convert_nonlocal_reference_stmt,
24875 convert_local_reference_stmt, convert_gimple_call): Handle
24876 GIMPLE_OMP_SCAN.
24877 * tree-pretty-print.c (dump_omp_clause): Handle
24878 OMP_CLAUSE_{IN,EX}CLUSIVE.
24879 (dump_generic_node): Handle OMP_SCAN.
24880 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24881 * gimple.h (gomp_scan): New type.
24882 (is_a_helper <gomp_scan *>::test,
24883 is_a_helper <const gomp_scan *>::test): New templates.
24884 (gimple_build_omp_scan): Declare.
24885 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24886 gimple_omp_scan_set_clauses): New inline functions.
24887 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24888 * gimple.c (gimple_build_omp_scan): New function.
24889 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24890 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24891 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24892 GIMPLE_OMP_TASKGROUP.
24893 (dump_gimple_omp_scan): New function.
24894 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24895 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24896 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24897 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24898 (is_gimple_stmt): Handle OMP_SCAN.
24899 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24900 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24901 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24902 mentioned in nested #pragma omp scan. Handle
24903 OMP_CLAUSE_{IN,EX}CLUSIVE.
24904 (gimplify_expr): Handle OMP_SCAN.
24905 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24906 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24907 simd constructs.
24908 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24909 GIMPLE_OMP_SCAN.
24910
24911 2019-06-10 Martin Liska <mliska@suse.cz>
24912
24913 * ipa-cp.c (ignore_edge_p): New function.
24914 (build_toporder_info): Use it.
24915 * ipa-inline.c (ignore_edge_p): New function.
24916 (inline_small_functions): Use it.
24917 * ipa-pure-const.c (ignore_edge_for_nothrow):
24918 Verify opt_for_fn for caller and callee.
24919 (ignore_edge_for_pure_const): Likewise.
24920 * ipa-reference.c (ignore_edge_p): Extend to check
24921 for opt_for_fn.
24922 * ipa-utils.c (searchc): Refactor.
24923 * ipa-utils.h: Fix coding style.
24924
24925 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24926
24927 * config/arc/arc.c (arc_rtx_costs): Update costs.
24928
24929 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24930
24931 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24932 (arc_split_ior): Likewise.
24933 (arc_check_mov_const): Likewise.
24934 (arc_split_mov_const): Likewise.
24935 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24936 (arc_rtx_costs): Replace check Crr with Cax constraint.
24937 (prepare_move_operands): Cleanup, remove unused code.
24938 (arc_split_ior): New function.
24939 (arc_check_ior_const): Likewise.
24940 (arc_split_mov_const): Likewise.
24941 (arc_check_mov_const): Likewise.
24942 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24943 in define_insn_and_split pattern.
24944 (iorsi3): Likewise.
24945 (mulsi3_v2): Add new matching variant.
24946 (andsi3_i): Cleanup pattern.
24947 (rotrsi3_cnt1): Update pattern.
24948 (rotrsi3_cnt8): New pattern.
24949 (ashlsi2_cnt8): Likewise.
24950 (ashlsi2_cnt16): Likewise.
24951 * config/arc/constraints.md (C0p): Update constraint.
24952 (Crr): Remove it.
24953 (C0x): New pattern.
24954 (Cax): New pattern.
24955
24956 2019-06-10 Martin Liska <mliska@suse.cz>
24957
24958 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24959 Update coding style.
24960 (sem_item_optimizer::dump_cong_classes):
24961 Print how many items are in a non-singular class. Improve
24962 coding style.
24963
24964 2019-06-10 Martin Liska <mliska@suse.cz>
24965
24966 * value-prof.c (dump_histogram_value): Change dump format.
24967 (gimple_mod_subtract_transform): Remove legacy comment.
24968
24969 2019-06-10 Martin Liska <mliska@suse.cz>
24970
24971 * value-prof.c (dump_histogram_value): Print histogram values
24972 only if present.
24973
24974 2019-06-10 Martin Liska <mliska@suse.cz>
24975
24976 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24977 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24978 * ipa-profile.c (ipa_profile_generate_summary):
24979 Use get_most_common_single_value.
24980 * tree-profile.c (gimple_init_gcov_profiler):
24981 Instrument with __gcov_one_value_profiler_v2
24982 and __gcov_indirect_call_profiler_v4.
24983 * value-prof.c (dump_histogram_value):
24984 Print all values for HIST_TYPE_SINGLE_VALUE.
24985 (stream_out_histogram_value): Update assert for
24986 N values.
24987 (stream_in_histogram_value): Set number of
24988 counters for HIST_TYPE_SINGLE_VALUE.
24989 (get_most_common_single_value): New.
24990 (gimple_divmod_fixed_value_transform):
24991 Use get_most_common_single_value.
24992 (gimple_ic_transform): Likewise.
24993 (gimple_stringops_transform): Likewise.
24994 (gimple_find_values_to_profile): Set number
24995 of counters for HIST_TYPE_SINGLE_VALUE.
24996 * value-prof.h (get_most_common_single_value): New.
24997
24998 2019-06-10 Martin Liska <mliska@suse.cz>
24999
25000 * hash-map.h: Pass default value to hash_table ctor.
25001 * hash-table.h: Add default value to call of a ctor.
25002
25003 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
25004
25005 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
25006 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
25007
25008 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
25009
25010 PR target/90751
25011 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
25012 Call pa_output_function_label.
25013 (TARGET_ASM_FUNCTION_PROLOGUE): define.
25014 * config/pa/pa-protos.h (pa_output_function_label): Declare.
25015 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
25016 to declaration.
25017 (pa_linux_output_function_prologue): Declare.
25018 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
25019 (pa_output_function_label): New.
25020 (pa_output_function_prologue): Revise to use pa_output_function_label.
25021 (pa_linux_output_function_prologue): New.
25022 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
25023
25024 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
25025
25026 * tree-vrp.h (value_range_base::intersect): New.
25027 (value_range::intersect_helper): Move from here...
25028 (value_range_base::intersect_helper): ...to here.
25029 * tree-vrp.c (value_range::intersect_helper): Rename to...
25030 (value_range_base::intersect_helper): ...this, and rewrite to
25031 return a value instead of modifying THIS in place.
25032 Also, move equivalence handling...
25033 (value_range::intersect): ...here, while calling intersect_helper.
25034 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
25035 calling intersect.
25036 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
25037 Same.
25038 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
25039
25040 2019-06-07 Jakub Jelinek <jakub@redhat.com>
25041
25042 * Makefile.in (genprogerr): Add condmd.
25043 (genprog): Remove it here.
25044
25045 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
25046
25047 * doc/invoke.texi (AMD GCN Options): Add gfx906.
25048
25049 2019-06-07 Richard Biener <rguenther@suse.de>
25050
25051 PR debug/90574
25052 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
25053 that appear after user labels.
25054
25055 2019-06-07 Martin Liska <mliska@suse.cz>
25056
25057 * cselib.c (cselib_init): Disable hash table
25058 sanitization.
25059 * hash-set.h: Pass new default argument to m_table.
25060 * hash-table.c: Add global variable with hash table
25061 sanitization limit.
25062 * hash-table.h (Allocator>::hash_table): Add new argument
25063 to ctor.
25064 (hashtab_chk_error): New.
25065 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
25066 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
25067 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
25068
25069 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
25070
25071 * common.opt (flto-odr-type-merging): Ignore.
25072 * invoke.texi (-flto-odr-type-merging): Remove.
25073 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
25074 (can_be_vtable_hashed_p): Remove.
25075 (hash_odr_vtable): Remove.
25076 (odr_vtable_hasher::hash): Remove.
25077 (types_same_for_odr): Remove.
25078 (types_odr_comparable): Remove.
25079 (odr_vtable_hasher::equal): Remove.
25080 (odr_vtable_hash_type, odr_vtable_hash): Remove.
25081 (add_type_duplicate): Do not synchronize vtable and name hashtables.
25082 (get_odr_type): Do not use vtable hash.
25083 (dump_odr_type): Remove commented out code.
25084 (build_type_inheritance_graph): Do not allocate vtable hash.
25085 (rebuild_type_inheritance_graph): Do not delete vtable hash.
25086 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
25087 (odr_type_p): Likewise.
25088 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
25089 test.
25090
25091 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
25092
25093 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
25094 immediately after same_types_for_tbaa_p returns -1 and continue
25095 looking for possible exact match; if matching types are arrays
25096 watch for partial overlaps.
25097 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
25098 (indirect_refs_may_alias_p): Do type based disambiguation first;
25099 update comment.
25100
25101 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
25102
25103 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
25104
25105 2019-06-07 Martin Liska <mliska@suse.cz>
25106
25107 * doc/invoke.texi: Remove param.
25108 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
25109 Remove.
25110 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
25111 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
25112 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
25113 * profile.c (instrument_values): Remove
25114 HIST_TYPE_INDIR_CALL_TOPN.
25115 * tree-profile.c (init_ic_make_global_vars):
25116 Always build __gcov_indirect_call only.
25117 (gimple_init_gcov_profiler): Remove usage
25118 of PARAM_INDIR_CALL_TOPN_PROFILE.
25119 (gimple_gen_ic_profiler): Likewise.
25120 * value-prof.c (dump_histogram_value): Likewise.
25121 (stream_in_histogram_value): Likewise.
25122 (gimple_indirect_call_to_profile): Likewise.
25123 (gimple_find_values_to_profile): Likewise.
25124 * value-prof.h (enum hist_type): Likewise.
25125
25126 2019-06-07 Martin Liska <mliska@suse.cz>
25127
25128 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
25129 function.
25130
25131 2019-06-07 Martin Liska <mliska@suse.cz>
25132
25133 PR tree-optimization/78902
25134 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
25135 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
25136 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25137 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25138 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
25139 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25140 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
25141 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
25142 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25143 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25144 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25145 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
25146 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
25147 New.
25148 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
25149 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
25150 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
25151 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25152 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25153 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
25154 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25155 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25156 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
25157 warn_unused_result attribute.
25158 (BUILT_IN_STRDUP): Likewise.
25159 (BUILT_IN_STRNDUP): Likewise.
25160 (BUILT_IN_ALLOCA): Likewise.
25161 (BUILT_IN_CALLOC): Likewise.
25162 (BUILT_IN_MALLOC): Likewise.
25163 (BUILT_IN_REALLOC): Likewise.
25164
25165 2019-06-06 Jim Wilson <jimw@sifive.com>
25166
25167 PR target/89955
25168 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
25169 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
25170 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
25171
25172 2019-06-06 Martin Sebor <msebor@redhat.com>
25173
25174 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
25175 (handle_builtin_malloc): Remove trailing spaces.
25176 (handle_builtin_memset): Same.
25177 (handle_builtin_memcmp): Same.
25178 (compute_string_length): Same.
25179 (determine_min_objsize): Same.
25180 (handle_builtin_string_cmp): Same.
25181 (handle_char_store): Same. Break up excessively long line.
25182
25183 2019-06-06 Martin Jambor <mjambor@suse.cz>
25184
25185 * tree-sra.c (build_reconstructed_reference): Drop the alignment
25186 check.
25187
25188 2019-06-06 Martin Jambor <mjambor@suse.cz>
25189
25190 * tree-sra.c (struct access): New field grp_same_access_path.
25191 (dump_access): Dump it.
25192 (build_reconstructed_reference): New function.
25193 (build_ref_for_model): Use it if possible.
25194 (path_comparable_for_same_access): New function.
25195 (same_access_path_p): Likewise.
25196 (sort_and_splice_var_accesses): Set the new flag.
25197 (analyze_access_subtree): Likewise.
25198 (propagate_subaccesses_across_link): Propagate zero value of the new
25199 flag down the access tree.
25200
25201 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
25202
25203 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
25204 * config/gcn/gcn.opt (gpu_type): Add gfx906.
25205 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
25206 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
25207 Add gfx906.
25208
25209 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25210
25211 PR tree-optimization/90332
25212 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
25213 Handle VALS containing two vectors.
25214 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
25215 to...
25216 (@aarch64_combinez<mode>): ... This.
25217 (*aarch64_combinez_be<mode>): Rename to...
25218 (@aarch64_combinez_be<mode>): ... This.
25219 (vec_init<mode><Vhalf>): New define_expand.
25220 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
25221
25222 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25223
25224 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
25225 library functions only when not optimizing for size.
25226 (ashlsi3): Likewise.
25227 (ashrhi3): Likewise.
25228 (ashrsi3): Likewise.
25229 (lshrhi3): Likewise.
25230 (lshrsi3): Likewise.
25231
25232 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
25233
25234 PR rtl-optimization/88751
25235 * ira.c (ira): Use the number of the actually referenced registers
25236 when calculating the threshold.
25237
25238 2019-06-06 Jakub Jelinek <jakub@redhat.com>
25239
25240 * configure: Regenerate.
25241
25242 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25243
25244 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
25245 register if it is in memory, so the shift can be emulated with a rotate
25246 instruction.
25247 (ashrhi3): Likewise.
25248 (lshrhi3): Likewise.
25249
25250 2019-06-06 Martin Liska <mliska@suse.cz>
25251
25252 PR tree-optimization/87954
25253 * match.pd: Simplify mult where both arguments are 0 or 1.
25254
25255 2019-06-06 Richard Biener <rguenther@suse.de>
25256
25257 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
25258 put equivalences on UNDEFINED ranges.
25259 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
25260 Make sure to drop defs of stmts added during simplification
25261 to VARYING.
25262
25263 2019-06-06 Richard Biener <rguenther@suse.de>
25264
25265 * tree-ssa-structalias.c: Include tree-cfg.h.
25266 (make_heapvar): Do not make heap vars artificial.
25267 (find_func_aliases_for_builtin_call): Handle stack allocation
25268 functions.
25269 (find_func_aliases): Delay processing of simple enough returns
25270 in non-IPA mode.
25271 (set_uids_in_ptset): Adjust.
25272 (find_what_var_points_to): Likewise.
25273 (solve_constraints): Do not dump points-to sets here.
25274 (compute_points_to_sets): Post-process return statements,
25275 amending the escaped solution. Dump points-to sets afterwards.
25276 (ipa_pta_execute): Dump points-to sets.
25277
25278 2019-06-06 Martin Liska <mliska@suse.cz>
25279
25280 PR web/87933
25281 * doc/install.texi: Fix HTML headers and
25282 titles for 'Installing GCC' pages.
25283
25284 2019-06-06 Martin Liska <mliska@suse.cz>
25285
25286 * ipa-icf-gimple.h (dump_message_1): Remove.
25287 (dump_message): Likewise.
25288 (return_false_with_message_1): Print also file.
25289 (return_false_with_msg): Likewise.
25290 (return_with_result): Likewise.
25291 (return_with_debug): Likewise.
25292 * ipa-icf.c (sem_function::equals_private): Remove call
25293 to dump_message.
25294
25295 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25296
25297 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
25298 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
25299 memory operand for it.
25300 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
25301
25302 2019-06-05 Martin Sebor <msebor@redhat.com>
25303
25304 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
25305 Adjust quoting and hyphenation.
25306 * convert.c (convert_to_real_1): Same.
25307 * gcc.c (driver_wrong_lang_callback): Same.
25308 (driver::handle_unrecognized_options): Same.
25309 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
25310 * opts-common.c (cmdline_handle_error): Same.
25311 (read_cmdline_option): Same.
25312 * opts-global.c (complain_wrong_lang): Same.
25313 (print_ignored_options): Same.
25314 (handle_common_deferred_options): Same.
25315 * pretty-print.h: Same.
25316 * print-rtl.c (debug_bb_n_slim): Same.
25317 * sched-rgn.c (make_pass_sched_fusion): Same.
25318 * tree-cfg.c (verify_gimple_assign_unary): Same.
25319 (verify_gimple_label): Same.
25320 * tree-ssa-operands.c (verify_ssa_operands): Same.
25321 * varasm.c (do_assemble_alias): Same.
25322 (assemble_alias): Same.
25323
25324 2019-06-05 Richard Henderson <rth@twiddle.net>
25325
25326 * config/alpha/alpha.c (direct_return): Move down after
25327 struct machine_function definition; use saved frame_size;
25328 return bool.
25329 (struct machine_function): Add sa_mask, sa_size, frame_size.
25330 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
25331 (alpha_compute_frame_layout): ... new function.
25332 (TARGET_COMPUTE_FRAME_LAYOUT): New.
25333 (alpha_initial_elimination_offset): Use saved sa_size.
25334 (alpha_vms_initial_elimination_offset): Likewise.
25335 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
25336 (alpha_expand_prologue): Use saved frame data. Merge integer
25337 and fp register save loops.
25338 (alpha_expand_epilogue): Likewise.
25339 (alpha_start_function): Use saved frame data.
25340 * config/alpha/alpha-protos.h (direct_return): Update.
25341 (alpha_sa_size): Remove.
25342
25343 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
25344
25345 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
25346 multiplication by a power-of-two value.
25347 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
25348 and turn the modulo operation into a masking operation.
25349
25350 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25351
25352 PR debug/90733
25353 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
25354 with VOIDmode inner operands.
25355
25356 2019-06-05 Richard Biener <rguenther@suse.de>
25357
25358 PR middle-end/90726
25359 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
25360 turn an expression graph into a tree.
25361
25362 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25363
25364 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
25365 member.
25366 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
25367 treat it like explicit monotonic schedule modifier.
25368 (expand_omp_for): Initialize has_lastprivate_conditional.
25369 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
25370 schedule modifier.
25371
25372 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
25373 references, lookup in in hash map MEM_REF operand instead of the
25374 MEM_REF itself.
25375 (lower_omp_1): When looking for lastprivate conditional assignments,
25376 handle MEM_REFs with REFERENCE_TYPE operands.
25377
25378 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
25379 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
25380 and references a VLA. Handle references to non-VLAs if is_simd
25381 all privatization clauses like reductions.
25382 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
25383 If omp_is_reference, use always omp simd arrays and set
25384 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
25385 fails, emit reference initialization.
25386
25387 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25388
25389 PR target/89803
25390 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
25391 _mm_mask_fpclass_sd_mask): New intrinsics.
25392 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
25393 * config/i386/i386-builtin.def
25394 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
25395 New builtins.
25396 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
25397 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
25398 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
25399 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
25400 case QI_FTYPE_V2SF_INT): Ditto.
25401 * config/i386/sse.md
25402 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
25403 Extended to insnstructions with mask operands.
25404
25405 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25406
25407 * config/rs6000/constraints.md (define_register_constraint "wp"):
25408 Delete.
25409 (define_register_constraint "wq"): Delete.
25410 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25411 (rs6000_init_hard_regno_mode_ok): Adjust.
25412 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25413 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
25414 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
25415 (define_mode_attr VSa): Delete.
25416 (define_mode_attr VSisa): New.
25417 (rest of file): Adjust.
25418 * doc/md.texi (Machine Constraints): Adjust.
25419
25420 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25421
25422 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
25423 (define_attr "enabled"): Handle those new isa values.
25424
25425 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25426
25427 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
25428 (define_mode_attr VSr5): Delete.
25429 (define_mode_attr VStype_sqrt): Delete.
25430 (define_mode_iterator VSX_SPDP): Delete.
25431 (define_mode_attr VS_spdp_res): Delete.
25432 (define_mode_attr VS_spdp_insn): Delete.
25433 (define_mode_attr VS_spdp_type): Delete.
25434 (*vsx_sqrt<mode>2): Adjust.
25435 (vsx_<VS_spdp_insn>): Delete, split to...
25436 (vsx_xscvdpsp): ... this. New. And...
25437 (vsx_xvcvspdp): ... this. New. And...
25438 (vsx_xvcvdpsp): ... this. New.
25439
25440 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25441
25442 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
25443 and V2DF.
25444 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
25445 (rest of file): Adjust.
25446
25447 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25448
25449 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
25450 (vsx_extract_<mode>_var): Ditto.
25451
25452 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25453
25454 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
25455 with just "wa".
25456
25457 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25458
25459 * config/rs6000/constraints.md (define_register_constraint "ww"):
25460 Delete.
25461 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25462 (rs6000_init_hard_regno_mode_ok): Adjust.
25463 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25464 RS6000_CONSTRAINT_ww.
25465 * config/rs6000/rs6000.md: Adjust.
25466 * config/rs6000/vsx.md: Adjust.
25467 * doc/md.texi (Machine Constraints): Adjust.
25468
25469 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25470
25471 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
25472 (define_mode_attr sd): New.
25473 (define_mode_attr s): New.
25474 (define_mode_attr Ftrad): Delete.
25475 (define_mode_attr Fvsx): Delete.
25476 (define_mode_attr Fs): Delete.
25477 (rest of file): Use the new mode attributes.
25478 * config.rs6000/vsx.md: Use the new mode attributes.
25479
25480 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25481
25482 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
25483 with just "wa".
25484
25485 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25486
25487 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
25488 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
25489 used with VSX_B, VSX_D, or VSX_F, with just "wa".
25490
25491 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
25492
25493 PR target/78263
25494 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25495 C++ with strict ANSI requirements.
25496
25497 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
25498
25499 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25500 computations when step is 1.
25501
25502 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25503
25504 * config/rs6000/constraints.md (define_register_constraint "wf"):
25505 Delete.
25506 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25507 (rs6000_init_hard_regno_mode_ok): Adjust.
25508 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25509 RS6000_CONSTRAINT_wf.
25510 * config/rs6000/rs6000.md: Adjust.
25511 * config/rs6000/vsx.md: Adjust.
25512 * doc/md.texi (Machine Constraints): Adjust.
25513
25514 2019-06-04 Andrew Pinski <apinski@marvell.com>
25515
25516 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25517 Fix ILP32 value.
25518
25519 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25520
25521 * config/rs6000/constraints.md (define_register_constraint "wd"):
25522 Delete.
25523 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25524 (rs6000_init_hard_regno_mode_ok): Adjust.
25525 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25526 RS6000_CONSTRAINT_wd.
25527 * config/rs6000/rs6000.md: Adjust.
25528 * config/rs6000/vsx.md: Adjust.
25529 * doc/md.texi (Machine Constraints): Adjust.
25530
25531 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25532
25533 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25534 (rest of file): Adjust.
25535
25536 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25537
25538 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25539 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25540 (vsx_splat_<mode>_reg): Adjust.
25541
25542 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25543
25544 * config/rs6000/constraints.md (define_register_constraint "ws"):
25545 Delete.
25546 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25547 (rs6000_init_hard_regno_mode_ok): Adjust.
25548 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25549 RS6000_CONSTRAINT_ws.
25550 * config/rs6000/rs6000.md: Adjust.
25551 * config/rs6000/vsx.md: Adjust.
25552 * doc/md.texi (Machine Constraints): Adjust.
25553
25554 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25555
25556 * config/rs6000/constraints.md (define_register_constraint "wv"):
25557 Delete.
25558 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25559 (rs6000_init_hard_regno_mode_ok): Adjust.
25560 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25561 RS6000_CONSTRAINT_wv.
25562 * config/rs6000/rs6000.md: Adjust.
25563 * config/rs6000/vsx.md: Adjust.
25564 * doc/md.texi (Machine Constraints): Adjust.
25565
25566 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25567
25568 * config/rs6000/constraints.md (define_register_constraint "wi"):
25569 Delete.
25570 (define_register_constraint "wt"): Delete.
25571 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25572 (rs6000_init_hard_regno_mode_ok): Adjust.
25573 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25574 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25575 * config/rs6000/rs6000.md: Adjust.
25576 * config/rs6000/vsx.md: Adjust.
25577 * doc/md.texi (Machine Constraints): Adjust.
25578
25579 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25580
25581 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25582 const.
25583 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25584 default_elf_asm_output_external.
25585
25586 2019-06-04 Martin Liska <mliska@suse.cz>
25587
25588 * ipa-icf.c (INCLUDE_LIST): Remove.
25589 (sem_item_optimizer::execute): Remove call to init_wpa.
25590 * ipa-icf.h (init_wpa): Remove.
25591
25592 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25593
25594 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25595 conditional on combined for simd.
25596 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25597 member.
25598 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25599 constructs, don't remove lastprivate_conditional_map, but instead set
25600 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25601 to parent construct temporaries.
25602 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25603 like !ctx->lastprivate_conditional_map.
25604 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25605 use up->outer context instead of up.
25606 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25607 gimple_omp_for_combined_p.
25608 (expand_omp_for_static_nochunk): Likewise.
25609 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25610 probably moved over into expand_omp_for_generic rather than being copied
25611 there.
25612
25613 2019-06-04 Martin Liska <mliska@suse.cz>
25614
25615 * value-prof.c (dump_histogram_value): Fix typo.
25616 (gimple_mod_subtract_transform): Likewise.
25617
25618 2019-06-04 Richard Biener <rguenther@suse.de>
25619
25620 PR middle-end/90726
25621 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25622 (tree_contains_chrecs): Likewise.
25623 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25624 exponential behaivor from ...
25625 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25626 ... here.
25627 (expression_expensive_p): Avoid exponential behavior and compute
25628 expanded size, rejecting any expansion.
25629 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25630 (idx_contains_abnormal_ssa_name_p): Likewise.
25631 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25632 (contains_abnormal_ssa_name_p): Simplify and use
25633 walk_tree_without_duplicates.
25634
25635 2019-06-04 Richard Biener <rguenther@suse.de>
25636
25637 PR tree-optimization/90738
25638 Revert
25639 2019-06-03 Richard Biener <rguenther@suse.de>
25640
25641 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25642 full reference tree and record in ref->ref.
25643 (vn_reference_lookup_3): Pass in original ref to
25644 ao_ref_init_from_vn_reference.
25645 (vn_reference_lookup): Likewise.
25646 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25647 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25648 Handle non-decl bases in the original reference.
25649
25650 2019-06-04 Martin Liska <mliska@suse.cz>
25651
25652 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25653 number of references.
25654 (sem_item_optimizer::do_congruence_step):
25655 (sem_item_optimizer::worklist_push): Dump how references
25656 a class has.
25657 (sem_item_optimizer::worklist_pop): Use heap.
25658 (sem_item_optimizer::process_cong_reduction): Likewise.
25659 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25660
25661 2019-06-04 Martin Liska <mliska@suse.cz>
25662
25663 * ipa-icf.h (struct sem_usage_pair_hash): New.
25664 (sem_usage_pair_hash::hash): Likewise.
25665 (sem_usage_pair_hash::equal): Likewise.
25666 (struct sem_usage_hash): Likewise.
25667 * ipa-icf.c (sem_item::sem_item): Initialize
25668 referenced_by_count.
25669 (sem_item::add_reference): Register a reference
25670 in ref_map and not in target->usages.
25671 (sem_item::setup): Remove initialization of
25672 dead vectors.
25673 (sem_item::~sem_item): Remove usage of dead vectors.
25674 (sem_item::dump): Remove dump of references.
25675 (sem_item_optimizer::sem_item_optimizer): Initialize
25676 m_references.
25677 (sem_item_optimizer::read_section): Remove useless
25678 dump.
25679 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25680 (sem_item_optimizer::build_graph): Pass m_references
25681 to ::add_reference.
25682 (sem_item_optimizer::verify_classes): Remove usage of dead
25683 vectors.
25684 (sem_item_optimizer::traverse_congruence_split): Return true
25685 when a class is split.
25686 (sem_item_optimizer::do_congruence_step_for_index): Use
25687 hash_map for look up of (sem_item *, index). That brings
25688 significant speed up.
25689 (sem_item_optimizer::do_congruence_step): Return true
25690 when a split is done.
25691 (congruence_class::is_class_used): Use referenced_by_count.
25692
25693 2019-06-04 Alan Modra <amodra@gmail.com>
25694
25695 PR target/90689
25696 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25697 error.
25698
25699 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25700
25701 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25702 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25703 (rs6000_secondary_reload_simple_move): Adjust.
25704 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25705 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25706 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25707 comment.
25708 (power6x): Adjust.
25709 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25710 (floatunssi<mode>2_lfiwzx): Adjust.
25711 (fix_trunc<mode>si2_stfiwx): Adjust.
25712 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25713 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25714 (mfpgpr): Mark as deprecated.
25715 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25716 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25717 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25718
25719 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25720
25721 * config/rs6000/constraints.md (define_register_constraint "wg"):
25722 Delete.
25723 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25724 RS6000_CONSTRAINT_wg.
25725 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25726 (rs6000_init_hard_regno_mode_ok): Adjust.
25727 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25728 Delete "wg" alternatives.
25729 * doc/md.texi (Machine Constraints): Adjust.
25730
25731 2019-06-03 Alan Modra <amodra@gmail.com>
25732
25733 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25734 (get_uncond_jump_length): Assert length less than INT_MAX and
25735 non-negative.
25736
25737 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25738
25739 PR middle-end/64242
25740 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25741 block.
25742 (expand_builtin_nonlocal_goto): Likewise.
25743
25744 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25745
25746 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25747 (aarch64_asm_output_external): Declare.
25748 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25749 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25750 (aarch64_asm_output_alias): New.
25751 (aarch64_asm_output_external): New.
25752 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25753 (ASM_OUTPUT_EXTERNAL): Define.
25754
25755 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25756 * tree-vrp.h (value_range_base::nonzero_p): New.
25757 (value_range_base::set_nonnull): Rename to...
25758 (value_range_base::set_nonzero): ...this.
25759 (value_range_base::set_null): Rename to...
25760 (value_range_base::set_zero): ...this.
25761 (value_range::set_nonnull): Remove.
25762 (value_range::set_null): Remove.
25763 * tree-vrp.c (range_is_null): Remove.
25764 (range_is_nonnull): Remove.
25765 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25766 instead of range_is_*null.
25767 (extract_range_from_unary_expr): Same.
25768 (value_range_base::set_nonnull): Rename to...
25769 (value_range_base::set_nonzero): ...this.
25770 (value_range::set_nonnull): Remove.
25771 (value_range_base::set_null): Rename to...
25772 (value_range_base::set_zero): ...this.
25773 (value_range::set_null): Remove.
25774 (extract_range_from_binary_expr): Rename set_*null uses to
25775 set_*zero.
25776 (extract_range_from_unary_expr): Same.
25777 (union_helper): Same.
25778 * vr-values.c (get_value_range): Use set_*zero instead of
25779 set_*null.
25780 (vr_values::extract_range_from_binary_expr): Same.
25781 (vr_values::extract_range_basic): Same.
25782
25783 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25784
25785 PR driver/90684
25786 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25787
25788 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25789
25790 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25791 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25792 Rename to...
25793 (aarch64_<su>abd<mode>_3): ... This.
25794 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25795
25796 2019-06-03 Richard Biener <rguenther@suse.de>
25797
25798 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25799 full reference tree and record in ref->ref.
25800 (vn_reference_lookup_3): Pass in original ref to
25801 ao_ref_init_from_vn_reference.
25802 (vn_reference_lookup): Likewise.
25803 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25804 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25805 Handle non-decl bases in the original reference.
25806
25807 2019-06-03 Martin Liska <mliska@suse.cz>
25808
25809 * doc/generic.texi: Remove Java Trees.
25810
25811 2019-06-03 Martin Liska <mliska@suse.cz>
25812
25813 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25814 returns 0 when operands are equal.
25815
25816 2019-06-03 Richard Biener <rguenther@suse.de>
25817
25818 PR tree-optimization/90716
25819 * tree-loop-distribution.c (destroy_loop): Process blocks in
25820 correct order.
25821
25822 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25823
25824 PR target/88837
25825 * vector-builder.h (vector_builder::count_dups): New method.
25826 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25827 Declare prototype.
25828 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25829 (vec_init<mode><Vel>): New pattern.
25830 * config/aarch64/aarch64.c (emit_insr): New function.
25831 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25832 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25833 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25834 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25835
25836 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25837
25838 PR tree-optimization/90681
25839 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25840 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25841 special case for SLP, but fail on non-groupped loads.
25842
25843 2019-06-03 Martin Liska <mliska@suse.cz>
25844
25845 * cfg.c (debug): Use TDF_DETAILS for debug and
25846 print edge info only once.
25847
25848 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25849
25850 PR fortran/90539
25851 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25852
25853 2019-06-01 Martin Sebor <msebor@redhat.com>
25854
25855 PR middle-end/90694
25856 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25857
25858 2019-05-31 Jan Hubicka <jh@suse.cz>
25859
25860 * alias.c: Include ipa-utils.h.
25861 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25862 * ipa-devirt.c (prevailing_odr_type): New.
25863 * ipa-utils.h (previaling_odr_type): Declare.
25864
25865 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25866 Hongtao Liu <hongtao.liu@intel.com>
25867
25868 PR target/89355
25869 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25870 NOTE_INSN_DELETED_LABEL check.
25871
25872 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25873 Robert Suchanek <robert.suchanek@mips.com>
25874
25875 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25876 and 3rd operands of the fmadd/fmsub/maddv builtin.
25877
25878 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25879
25880 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25881 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25882 on OMP_SIMD if not nested inside of worksharing loop that also has
25883 lastprivate conditional clause for the same decl.
25884 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25885 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25886 on simd.
25887 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25888 on simd construct.
25889 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25890 on simd construct.
25891 (lower_lastprivate_clauses): Likewise.
25892 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25893 calling lower_rec_input_clauses.
25894 (lower_omp_for): Likewise.
25895 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25896 clause on simd construct.
25897 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25898 OMP_CLAUSE__CONDTEMP_ clause is present.
25899
25900 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25901 ivar and lvar.
25902
25903 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25904
25905 PR c/43673
25906 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25907 TEX_D32, TEX_D64 or TEX_D128.
25908
25909 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25910
25911 * match.pd (~(vec?cst1:cst2)): New transformation.
25912
25913 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25914
25915 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25916 ((size_t)(A /[ex] B) CMP C): New transformation.
25917
25918 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25919
25920 * doc/md.texi: Document define_insn_and_rewrite.
25921 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25922 * gensupport.c (queue_elem): Update comment.
25923 (replace_operands_with_dups): New function.
25924 (gen_rewrite_sequence): Likewise.
25925 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25926 * read-rtl.c (apply_subst_iterator): Likewise.
25927 (add_condition_to_rtx, named_rtx_p): Likewise.
25928 (rtx_reader::read_rtx_operand): Likewise.
25929 * config/aarch64/aarch64-sve.md
25930 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25931 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25932 define_insn_and_rewrite.
25933 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25934 Remove separate define_split.
25935
25936 2019-05-31 Jan Hubicka <jh@suse.cz>
25937
25938 * tree-ssa-alias.c (type_has_components_p): New function.
25939 (aliasing_component_refs_p): Use it.
25940
25941 2019-05-31 Martin Liska <mliska@suse.cz>
25942
25943 * gdbhooks.py: Add const_tree to TreePrinter.
25944
25945 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25946
25947 PR debug/86964
25948 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25949 * doc/invoke.texi (Debugging Options): Document new default of
25950 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25951
25952 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25953
25954 PR tree-optimization/90671
25955 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25956 template_block used to be empty on the first call, don't use
25957 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25958 seq with bb_seq and set it with set_bb_seq.
25959
25960 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25961
25962 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25963
25964 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25965 Michael Meissner <meissner@linux.ibm.com>
25966
25967 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25968 (prefixed_mem_operand): Likewise.
25969 (non_prefixed_mem_operand): Likewise.
25970 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25971 prototype.
25972 * config/rs6000/rs6000.c (print_operand_address): Handle
25973 PC-relative addresses.
25974 (mode_supports_prefixed_address_p): New function.
25975 (rs6000_prefixed_address): New function.
25976 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25977 (SYMBOL_REF_PCREL_P): Likewise.
25978
25979 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25980
25981 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25982 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25983 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25984 is nested inside of parallel region, add _condtemp_ clause to both.
25985 * tree-nested.c (convert_nonlocal_omp_clauses,
25986 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25987 assertion failure.
25988 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25989 member.
25990 * omp-general.c (omp_extract_for_data): Compute it.
25991 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25992 (lower_rec_input_clauses): Likewise.
25993 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25994 clause is already present, just add one further one after it.
25995 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25996 (lower_send_shared_vars): Clear _condtemp_ vars.
25997 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25998 or section or taskgroup.
25999 * omp-expand.c (determine_parallel_type): Disallow combining only if
26000 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
26001 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
26002 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26003 expand_omp_for_static_chunk, expand_omp_for): Use
26004 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
26005 determine if a special set of API routines are needed and if condtemp
26006 needs to be initialized, while always initialize cond_var if
26007 fd->lastprivate_conditional is non-zero.
26008
26009 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
26010 Michael Meissner <meissner@linux.ibm.com>
26011
26012 * config/rs6000/constraints.md (eI): New constraint.
26013 * config/rs6000/predicates.md (cint34_operand): New predicate.
26014 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
26015 (SIGNED_34BIT_OFFSET_P): Likewise.
26016 * doc/md.texi (eI): Document constraint.
26017
26018 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
26019
26020 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
26021
26022 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
26023 Michael Meissner <meissner@linux.ibm.com>
26024
26025 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
26026 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
26027 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
26028 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
26029 (OTHER_FUTURE_MASKS): Likewise.
26030 (POWERPC_MASKS): Likewise.
26031 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
26032 specified without -mprefixed-addr or -mcpu=future. Error if
26033 -mprefixed-addr is specified without -mcpu=future.
26034 (rs6000_opt_masks): Add entry for prefixed-addr.
26035 * rs6000.opt (mprefixed-addr): New option.
26036
26037 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
26038
26039 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
26040 cfun->is_thunk check.
26041
26042 2019-05-30 Jakub Jelinek <jakub@redhat.com>
26043
26044 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
26045 to length.
26046
26047 2019-05-30 Martin Liska <mliska@suse.cz>
26048
26049 * gdbinit.in: Fix 'ptc' command. Add trt
26050 that prints TREE_TYPE($).
26051
26052 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
26053 Alan Modra <amodra@gmail.com>
26054
26055 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
26056 calls here...
26057 (rs6000_indirect_call_template_1): ...and here.
26058 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
26059 plt16_ha, plt16_lo, mtctr indirect calls. Use
26060 rs6000_pltseq_enum.
26061 (rs6000_decl_ok_for_sibcall): New function.
26062 (rs6000_function_ok_for_sibcall): Refactor.
26063 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
26064 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
26065 when pcrel. Reorganize.
26066 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
26067 * rs6000.h (rs6000_pltseq_enum): New enum.
26068 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
26069 (*pltseq_tocsave): Use rs6000_pltseq_enum.
26070 (*pltseq_plt16_ha): Likewise.
26071 (*pltseq_plt16_lo): Likewise.
26072 (*pltseq_mtctr): Likewise.
26073 (*pltseq_plt_pcrel): New insn.
26074 (*call_local_aix): Handle @notoc calls.
26075 (*call_value_local_aix): Likewise.
26076 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
26077 (*call_value_nonlocal_aix): Likewise.
26078 (*call_indirect_pcrel): New insn.
26079 (*call_value_indirect_pcrel): Likewise.
26080
26081 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
26082
26083 * config/i386/sse.md (*save_multiple<mode>): Rename from
26084 save_multiple<mode>.
26085 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
26086 (*restore_multiple_and_return<mode>): Rename from
26087 restore_multiple_and_return<mode>.
26088 (*restore_multiple_leave_return<mode>): Rename from
26089 restore_multiple_leave_return<mode>.
26090
26091 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
26092
26093 * config.gcc (rx-*-linux*): New target.
26094 * config/rx/elf.opt: New file.
26095 * config/rx/linux.h: Likewise.
26096 * config/rx/t-linux: Likewise.
26097 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
26098 make it zero.
26099 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
26100 (ASM_APP_OFF): Likewise.
26101 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
26102 moved elsewhere.
26103
26104 2019-05-29 Jan Hubicka <jh@suse.cz>
26105
26106 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
26107 variants are pointer equivalent.
26108
26109 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26110
26111 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
26112 * config/aarch64/aarch64-sve2.md: New file.
26113 (<u>avg<mode>3_floor): New pattern.
26114 (<u>avg<mode>3_ceil): Likewise.
26115 (*<sur>h<addsub><mode>): Likewise.
26116 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
26117 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
26118
26119 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26120
26121 PR bootstrap/90543
26122 * optc-save-gen.awk: In cl_optimization_print, use correct condition
26123 for var_opt_string printing. In cl_optimization_print_diff, print
26124 (null) instead of invoking undefined behavior if one of the
26125 var_opt_string pointers is NULL and use && instead of first || in the
26126 guarding condition. For var_target_other options, handle const char *
26127 target variables similarly to const char * optimize node variables.
26128
26129 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
26130
26131 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
26132 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
26133 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
26134 Add autib1716 and pacib1716 initialisation.
26135 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
26136 for autib1716 and pacib1716.
26137 * config/aarch64/aarch64-protos.h (aarch64_key_type,
26138 aarch64_post_cfi_startproc): Define.
26139 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
26140 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
26141 aarch64_handle_pac_ret_protection): Set default sign key to A.
26142 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
26143 aarch64_expand_prologue): Add check for b-key.
26144 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
26145 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
26146 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
26147 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
26148 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
26149 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
26150 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26151 * config/aarch64/aarch64.md (do_return): Add check for b-key.
26152 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
26153 pauth_hint_num_a with pauth_hint_num.
26154 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
26155 pauth_hint_num_a with pauth_hint_num.
26156 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
26157 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
26158 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26159 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
26160 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
26161 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
26162 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
26163 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26164 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
26165 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
26166 UNSPEC_AUTIA1716 respectively.
26167 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
26168 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
26169 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
26170 * doc/invoke.texi (-mbranch-protection): Add b-key type.
26171 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
26172 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
26173
26174 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26175
26176 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
26177 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
26178 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
26179 explicit clause on combined parallel into implicit shared clause.
26180 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
26181 and firstprivate if the decl has one too from combined parallel to
26182 the worksharing construct.
26183
26184 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
26185 Michael Meissner <meissner@linux.ibm.com>
26186
26187 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
26188
26189 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
26190
26191 * rtl.h (LABEL_REF_P): New #define.
26192
26193 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
26194
26195 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
26196
26197 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26198
26199 * internal-fn.c: Marked mask_load_direct as vectorizable.
26200 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
26201 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
26202 combined even if masks different with allow_slp_p param.
26203 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
26204 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
26205 dissolve SLP-only vectorizable groups when SLP has been discarded.
26206 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
26207 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
26208 masks.
26209 (vect_build_slp_tree_1): Fixed comment typo.
26210 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
26211 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
26212 loads for SLP only.
26213 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
26214 vectorizable.
26215 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
26216
26217 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26218
26219 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
26220 Remove obsolete use_thunk reference.
26221 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26222 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26223 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26224 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26225 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26226 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26227 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26228 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26229 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26230
26231 2019-05-28 Nathan Sidwell <nathan@acm.org>
26232
26233 * tree.h (IDENTIFIER_ANON_P): New.
26234 (anon_aggrname_format, anon_aggname_p): Don't declare.
26235 (make_anon_name): Declare.
26236 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
26237 (hash_tree): Likewise.
26238 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
26239 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
26240 (anon_cnt, make_anon_name): New.
26241
26242 2019-05-28 Martin Liska <mliska@suse.cz>
26243
26244 PR other/90315
26245 * opts-global.c (decode_options): Print help for all
26246 help_option_arguments.
26247 * opts.c (print_help): Add new argument.
26248 (common_handle_option): Remember all values into
26249 help_option_arguments.
26250 * opts.h (print_help): Add new argument.
26251
26252 2019-05-28 Martin Liska <mliska@suse.cz>
26253
26254 PR ipa/90555
26255 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
26256 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
26257 (func_checker::compare_bb): Call compare_loops.
26258
26259 2019-05-27 Jakub Jelinek <jakub@redhat.com>
26260
26261 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26262 on sections construct.
26263 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
26264 construct.
26265 (lower_omp_sections): Handle lastprivate conditional.
26266 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
26267 lastprivate_conditional_map.
26268 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
26269
26270 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
26271 critical, taskgroup and section regions when looking for a region
26272 with non-NULL lastprivate_conditional_map.
26273
26274 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26275
26276 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
26277 (*ix86_gen_sub3): Ditto.
26278 (*ix86_gen_sub3_carry): Ditto.
26279 (*ix86_gen_one_cmpl2): Ditto.
26280 (*ix86_gen_andsp): Ditto.
26281 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
26282 (gen_and2_insn): New static function.
26283 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
26284 Use gen_add3_insn instead of ix86_gen_add3.
26285 (ix86_expand_split_stack_prologue): Use gen_add2_insn
26286 instead of ix86_gen_add3.
26287 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
26288 Use gen_sub3_insn instead of ix86_gen_sub3.
26289 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
26290 instead of ix86_gen_add3.
26291 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
26292 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
26293 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
26294 * config/i386/i386-options.c (ix86_option_override_internal):
26295 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
26296 ix86_gen_one_cmpl2 and ix86_gen_andsp.
26297
26298 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
26299
26300 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
26301 and DW_OP_GNU_const_index opcodes.
26302
26303 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26304
26305 * config/i386/i386.h (STACK_SIZE_MODE): Define.
26306
26307 2019-05-27 Richard Biener <rguenther@suse.de>
26308
26309 PR tree-optimization/90637
26310 * tree-ssa-sink.c (statement_sink_location): Honor the
26311 computed sink location for single-uses.
26312
26313 2019-05-27 Richard Biener <rguenther@suse.de>
26314
26315 PR middle-end/90610
26316 * match.pd (vec_perm): Avoid clobbering op0 when not generating
26317 a bit-insert.
26318
26319 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26320
26321 * config/i386/i386.md (@sub<mode>3_carry): Rename
26322 from sub<mode>3_carry.
26323 (@leave_<mode>): New expander.
26324 (*leave): Rename from leave.
26325 (*leave_rex64): Rename from leave_rex64.
26326 (@monitorx_<mode>): Rename from monitorx_<mode>.
26327 (@clzero_<mode>): Rename from clzero_<mode>.
26328 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
26329 from sse3_monitor_<mode>.
26330 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
26331 (*ix86_gen_leave): Ditto.
26332 (*ix86_gen_monitor): Ditto.
26333 (*ix86_gen_monitorx): Ditto.
26334 (*ix86_gen_clzero): Ditto.
26335 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
26336 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
26337 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
26338 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
26339 Use gen_sse3_monitor instead of ix86_gen_monitor.
26340 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
26341 instead of ix86_gen_monitorx.
26342 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
26343 instead of ix86_gen_clzero.
26344 * config/i386/i386-options.c (ix86_option_override_internal):
26345 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
26346 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
26347
26348 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26349
26350 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
26351 Rename from tls_global_dynamic_64_<mode>.
26352 (@tls_local_dynamic_base_64_<mode>): Rename from
26353 tls_local_dynamic_base_64_<mode>.
26354 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
26355 Remove indirect function.
26356 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
26357 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
26358 instead of ix86_gen_tls_global_dynamic_64.
26359 Use gen_tls_local_dynamic_base_64 instead of
26360 ix86_gen_tls_local_dynamic_base_64.
26361 * config/i386/i386-options.c (ix86_option_override_internal):
26362 Do not initialize ix86_gen_tls_global_dynamic_64 and
26363 ix86_gen_tls_local_dynamic_base_64.
26364
26365 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26366
26367 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
26368 Rename from pro_epilogue_adjust_stack_<mode>_add.
26369 (@pro_epilogue_adjust_stack_sub_<mode>)
26370 Rename from pro_epilogue_adjust_stack_<mode>_sub.
26371 (@allocate_stack_worker_probe_<mode>):
26372 Rename from allocate_stack_worker_probe_<mode>.
26373 (allocate_stack): Use gen_allocate_stack_worker_probe.
26374 (probe_stack): Use gen_probe_stack_1.
26375 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
26376 (@adjust_stack_and_probe_<mode>): Rename from
26377 adjust_stack_and_probe<mode>.
26378 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
26379 (stack_protect_set): Use gen_stack_protect_set_1.
26380 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
26381 (stack_protect_test): Use gen_stack_protect_test_1.
26382 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
26383 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
26384 Remove indirect function.
26385 (*ix86_gen_adjust_stack_and_probe): Ditto.
26386 (*ix86_gen_probe_stack_range): Ditto.
26387 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
26388 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
26389 (ix86_adjust_stack_and_probe_stack_clash): Use
26390 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
26391 (ix86_adjust_stack_and_probe): Ditto.
26392 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
26393 of ix86_gen_probe_stack_range.
26394 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
26395 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
26396 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
26397 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
26398 CODE_FOR_stack_protect_test_{si,di}.
26399 * config/i386/i386-options.c (ix86_option_override_internal):
26400 Do not initialize ix86_gen_allocate_stack_worker,
26401 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
26402
26403 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
26404
26405 * doc/invoke.texi (Link Options): Many editorial changes around
26406 -flinker-output.
26407
26408 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26409
26410 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
26411 pre-Solaris 11 referene and most Studio compiler details.
26412
26413 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
26414
26415 PR target/90530
26416 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
26417 DImode to SImode in floating-point registers on 64-bit target.
26418 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
26419 register_operand in xmpyu patterns.
26420
26421 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26422
26423 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
26424 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
26425 OMP_CLAUSE__REDUCTEMP_.
26426 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
26427 OMP_CLAUSE__CONDTEMP_.
26428 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
26429 * tree-pretty-print.c (dump_omp_clause): Likewise.
26430 * tree-nested.c (convert_nonlocal_omp_clauses,
26431 convert_local_omp_clauses): Likewise.
26432 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
26433 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
26434 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
26435 on OMP_FOR.
26436 (gimplify_omp_for): Warn and disable conditional modifier from
26437 lastprivate on loop iterators.
26438 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
26439 member.
26440 * omp-general.c (omp_extract_for_data): Initialize it.
26441 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
26442 member.
26443 (delete_omp_context): Delete it.
26444 (lower_lastprivate_conditional_clauses): New function.
26445 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
26446 handle lastprivate conditional clauses.
26447 (lower_reduction_clauses): Add CLIST argument, emit it into
26448 the critical section if any.
26449 (lower_omp_sections): Adjust lower_lastprivate_clauses and
26450 lower_reduction_clauses callers.
26451 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
26452 to lower_lastprivate_clauses.
26453 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
26454 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
26455 clist into a critical section if not emitted there already by
26456 lower_reduction_clauses.
26457 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
26458 callers.
26459 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
26460 conditional variables.
26461 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
26462 clause is present.
26463 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26464 expand_omp_for_static_chunk): Handle lastprivate conditional.
26465 (expand_omp_for): Handle fd.lastprivate_conditional like
26466 fd.have_reductemp.
26467
26468 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26469
26470 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
26471 kernel does not exit cleanly.
26472 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
26473
26474 2019-05-24 Jason Merrill <jason@redhat.com>
26475
26476 Revert:
26477 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26478
26479 2019-05-24 Richard Biener <rguenther@suse.de>
26480
26481 PR testsuite/90607
26482 * tree-loop-distribution.c (struct partition): Add location
26483 member.
26484 (partition_alloc): Initialize all fields.
26485 (generate_memset_builtin): Use the location recorded in the
26486 partition for the generated call.
26487 (generate_memcpy_builtin): Likewise.
26488 (classify_partition): Record the location of a single store
26489 as location for the partition.
26490
26491 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26492
26493 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26494 for lo-part.
26495
26496 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
26497
26498 PR target/90588
26499 * common/config/aarch64/aarch64-common.c
26500 (aarch64_rewrite_selected_cpu): Change local temporary variable
26501 type from unsigned long to uint64_t.
26502 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26503 aarch64_get_extension_string_for_isa_flags): Change declaration to
26504 match new definition by replacing unsigned long with uint64_t.
26505
26506 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26507
26508 PR target/90568
26509 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26510 gen_attr_type just once instead of 4-7 times. Formatting fixes.
26511 Handle stack_protect_test_<mode> codegen similarly to corresponding
26512 sub instruction.
26513
26514 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
26515
26516 * config/i386/darwin.h: Reject -mfentry*.
26517 * doc/sourcebuild.texi: Document mfentry target support.
26518
26519 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26520
26521 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26522 Rename to rs6000_global_entry_point_prologue_needed_p. Return
26523 false for PC-relative functions.
26524 (rs6000_output_function_prologue): Change called function name to
26525 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
26526 name,1" for PC-relative functions.
26527 (rs6000_elf_declare_function_name): Change called function name to
26528 rs6000_global_entry_point_prologue_needed_p.
26529
26530 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
26531
26532 PR target/90552
26533 * config/i386/i386.c (gen_rtx_cost):
26534 Use ix86_tune_cost instead of ix86_cost.
26535
26536 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26537 Michael Meissner <meissner@linux.ibm.com>
26538 Segher Boessenkool <segher@kernel.crashing.org>
26539
26540 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26541 OPTION_MASK_PCREL.
26542 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26543 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26544 (rs6000_fndecl_pcrel_p): Likewise.
26545 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26546 error if -mpcrel is requested without -mcpu=future.
26547 (rs6000_opt_masks): Add entry for pcrel.
26548 (rs6000_fndecl_pcrel_p): New function.
26549 (rs6000_pcrel_p): Likewise.
26550 * config/rs6000/rs6000.opt (mpcrel): New option.
26551 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26552
26553 2019-05-23 Jan Hubicka <jh@suse.cz>
26554 Martin Liska <mliska@suse.cz>
26555
26556 PR tree-optimization/90576
26557 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26558 poly_int_tree_p.
26559 (aliasing_component_refs_p): Fix three way size compare conditional;
26560 give up earlier in case we can not decide on equivalence.
26561
26562 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26563 Michael Meissner <meissner@linux.ibm.com>
26564 Segher Boessenkool <segher@kernel.crashing.org>
26565
26566 * config.gcc: Add future cpu.
26567 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26568 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26569 #define.
26570 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26571 (RS6000_CPU): New instantiation for future cpu.
26572 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26573 PROCESSOR_FUTURE.
26574 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26575 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26576 * config/rs6000/rs6000-tables.opt: Regenerate.
26577 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26578 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26579 (rs6000_machine_from_flags): Handle future cpu.
26580 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26581 PROCESSOR_POWER9 for now.
26582 (rs6000_adjust_cost): Likewise.
26583 (rs6000_issue_rate): Likewise.
26584 (rs6000_register_move_cost): Likewise.
26585 (rs6000_opt_masks): Add entry for future.
26586 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26587 (MASK_FUTURE): New #define.
26588 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26589 * config/rs6000/rs6000.opt (mfuture): New target option.
26590 * doc/invoke.texi (mcpu): Add future cpu.
26591
26592 2019-05-23 Martin Liska <mliska@suse.cz>
26593
26594 PR c++/90587
26595 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26596 operation points to a temporary (pointed via tree_to_wide_ref)
26597 that is out of scope after the &.
26598
26599 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26600
26601 PR c++/90592
26602 * doc/extend.texi (Function Names): Add missing word.
26603
26604 2019-05-23 Richard Biener <rguenther@suse.de>
26605
26606 PR tree-optimization/88440
26607 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26608 at -O[2s]+.
26609 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26610 generated call.
26611 (generate_memcpy_builtin): Likewise.
26612 (distribute_loop): Pass in whether to only distribute patterns.
26613 (prepare_perfect_loop_nest): Also allow size optimization.
26614 (pass_loop_distribution::execute): When optimizing a loop
26615 nest for size allow pattern replacement.
26616
26617 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26618
26619 PR target/90568
26620 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26621 of xor.
26622
26623 2019-05-23 Martin Liska <mliska@suse.cz>
26624
26625 PR sanitizer/90570
26626 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26627 expression similarly to gimplify_decl_expr.
26628
26629 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26630
26631 * cse.c (cse_dump_path): s/dump_file/f.
26632
26633 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26634
26635 PR c++/90462
26636 * diagnostic-format-json.cc: Include "selftest.h".
26637 (json_from_expanded_location): Only add "file" key for non-NULL
26638 file strings.
26639 (json_from_location_range): Don't add "start" and "finish"
26640 children if they are UNKNOWN_LOCATION.
26641 (selftest::test_unknown_location): New selftest.
26642 (selftest::test_bad_endpoints): New selftest.
26643 (selftest::diagnostic_format_json_cc_tests): New function.
26644 * json.cc (json::object::get): New function.
26645 (selftest::test_object_get): New selftest.
26646 (selftest::json_cc_tests): Call it.
26647 * json.h (json::object::get): New decl.
26648 * selftest-run-tests.c (selftest::run_tests): Call
26649 selftest::diagnostic_format_json_cc_tests.
26650 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26651 decl.
26652
26653 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26654 Andrew Stubbs <amd@codesourcery.com>
26655
26656 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26657 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26658 (kernel): Rename to...
26659 (main_kernel): ... this.
26660 (load_image): Load _init_array and _fini_array kernels.
26661 (run): Add argument for kernel to run.
26662 (main): Run init_array_kernel before main_kernel, and
26663 fini_array_kernel after.
26664 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26665 amdgpu_hsa_kernel attribute on functions.
26666 (gcn_disable_constructors): Delete.
26667 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26668 * config/gcn/crt0.c (size_t): Define.
26669 (_init_array, _fini_array): New.
26670 (__preinit_array_start, __preinit_array_end,
26671 __init_array_start, __init_array_end,
26672 __fini_array_start, __fini_array_end): Declare weak references.
26673
26674 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26675
26676 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26677
26678 2019-05-22 Jason Merrill <jason@redhat.com>
26679
26680 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26681
26682 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26683
26684 PR target/88483
26685 * config/i386/i386-options.c (ix86_init_machine_status): Set
26686 stack_frame_required to true.
26687 * config/i386/i386.c (ix86_get_frame_size): New function.
26688 (ix86_frame_pointer_required): Replace get_frame_size with
26689 ix86_get_frame_size.
26690 (ix86_compute_frame_layout): Likewise.
26691 (ix86_find_max_used_stack_alignment): Changed to void. Set
26692 stack_frame_required.
26693 (ix86_finalize_stack_frame_flags): Always call
26694 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26695 ix86_get_frame_size.
26696 * config/i386/i386.h (machine_function): Add stack_frame_required.
26697
26698 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26699
26700 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26701
26702 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26703
26704 * common/config/aarch64/aarch64-common.c
26705 (struct aarch64_option_extension, struct processor_name_to_arch,
26706 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26707 aarch64_contains_opt,
26708 aarch64_get_extension_string_for_isa_flags): Change type of
26709 variables storing flags to uint64_t.
26710 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26711 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26712 * config/aarch64/aarch64.c (struct processor,
26713 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26714 aarch64_validate_march, aarch64_override_options,
26715 aarch64_option_print, aarch64_handle_attr_isa_flags,
26716 aarch64_declare_function_name, aarch64_start_file): Make flag
26717 variables uint64_t.
26718 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26719 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26720 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26721 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26722 * config/aarch64/driver-aarch64.c
26723 (struct aarch64_arch_extension, struct aarch64_core_data,
26724 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26725 flag variables uint64_t.
26726 * doc/invoke.texi: Add documentation for new arguments.
26727
26728 2019-05-22 Richard Biener <rguenther@suse.de>
26729
26730 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26731 rewrite ...
26732 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26733
26734 2019-05-22 Martin Liska <mliska@suse.cz>
26735
26736 PR lto/90500
26737 * doc/extend.texi: Document the change.
26738
26739 2019-05-22 Richard Biener <rguenther@suse.de>
26740
26741 PR tree-optimization/90450
26742 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26743 (mem_ref_hasher::equal): Check it.
26744 (mem_ref_alloc): Initialize it.
26745 (gather_mem_refs_stmt): Set it.
26746
26747 2019-05-22 Richard Biener <rguenther@suse.de>
26748
26749 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26750 Add ABS_EXPR.
26751 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26752 as ABSU_EXPR.
26753
26754 2019-05-22 Alan Modra <amodra@gmail.com>
26755
26756 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26757 (ASM_CPU_SPEC): Conditionally add -many.
26758 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26759 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26760 (rs6000_file_start): ..extracted from here, and modified to
26761 test all ISA bits.
26762 (rs6000_output_function_prologue): Emit .machine as necessary.
26763
26764 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26765
26766 PR middle-end/90553
26767 * ira-lives.c (process_bb_node_lives): Consider defs
26768 for a call insn to be die before the call, not after.
26769
26770 * function.c (assign_parm_setup_block): Raise alignment of
26771 stacked parameter only for STRICT_ALIGNMENT targets.
26772
26773 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26774
26775 * config/rs6000/constraints.md (define_register_constraint "wz"):
26776 Delete.
26777 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26778 RS6000_CONSTRAINT_wz.
26779 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26780 (rs6000_init_hard_regno_mode_ok): Adjust.
26781 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26782 * doc/md.texi (Machine Constraints): Adjust.
26783
26784 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26785
26786 * config/rs6000/constraints.md (define_register_constraint "wl"):
26787 Delete.
26788 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26789 RS6000_CONSTRAINT_wl.
26790 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26791 (rs6000_init_hard_regno_mode_ok): Adjust.
26792 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26793 * doc/md.texi (Machine Constraints): Adjust.
26794
26795 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26796
26797 * config/rs6000/constraints.md (define_register_constraint "wm"):
26798 Delete.
26799 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26800 RS6000_CONSTRAINT_wm.
26801 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26802 (rs6000_init_hard_regno_mode_ok): Adjust.
26803 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26804 * doc/md.texi (Machine Constraints): Adjust.
26805
26806 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26807
26808 * config/rs6000/constraints.md (define_register_constraint "wk"):
26809 Delete.
26810 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26811 RS6000_CONSTRAINT_wk.
26812 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26813 (rs6000_init_hard_regno_mode_ok): Adjust.
26814 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26815 * doc/md.texi (Machine Constraints): Adjust.
26816
26817 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26818
26819 * config/rs6000/constraints.md (define_register_constraint "wj"):
26820 Delete.
26821 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26822 RS6000_CONSTRAINT_wj.
26823 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26824 (rs6000_init_hard_regno_mode_ok): Adjust.
26825 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26826 (VS_64dm): Delete.
26827 * config/rs6000/vsx.md: Ditto.
26828 * doc/md.texi (Machine Constraints): Adjust.
26829
26830 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26831
26832 * config/rs6000/constraints.md (define_register_constraint "wh"):
26833 Delete.
26834 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26835 RS6000_CONSTRAINT_wh.
26836 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26837 (rs6000_init_hard_regno_mode_ok): Adjust.
26838 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26839 * doc/md.texi (Machine Constraints): Adjust.
26840
26841 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26842
26843 PR target/90547
26844 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26845 Avoid calling gen_lowpart with CONST operand.
26846
26847 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26848
26849 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26850 field template_last_to_copy.
26851 (ssa_create_duplicates): Set it, and use it. Attempt to
26852 preserve more debug stmts.
26853
26854 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26855
26856 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26857 (signbit<mode>2): New expander
26858
26859 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26860
26861 PR bootstrap/87338
26862 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26863 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26864
26865 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26866
26867 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26868 %ebx and %ecx bafore calling cpuid with leaf 1 or
26869 non-constant leaf argument.
26870
26871 2019-05-21 Alan Modra <amodra@gmail.com>
26872
26873 PR target/90545
26874 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26875 power9 direct move cost.
26876
26877 2019-05-21 Richard Biener <rguenther@suse.de>
26878
26879 PR middle-end/90510
26880 * fold-const.c (fold_read_from_vector): New function.
26881 * fold-const.h (fold_read_from_vector): Declare.
26882 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26883 single-element insert permutations. Canonicalize selector
26884 further and fix issue with last commit.
26885
26886 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26887
26888 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26889 parameter with default value false to declaration.
26890 (split_edges_for_insertion): New inline function. Wrapper for
26891 split_critical_edges with for_edge_insertion_p = true.
26892 * tree-cfg.c (split_critical_edges): Don't split non-critical
26893 edges if for_edge_insertion_p is false. Fix whitespace.
26894 * tree-ssa-pre.c (pass_pre::execute): Call
26895 split_edges_for_insertion instead of split_critical_edges.
26896 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26897 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26898 (pass_data_sink_code): Update function name in the comment.
26899
26900 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26901
26902 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26903 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26904 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26905 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26906 positives.
26907
26908 2019-05-21 Martin Liska <mliska@suse.cz>
26909
26910 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26911 an extra newline.
26912 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26913 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26914 vec_lvsr.
26915 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26916 Quote a C type.
26917 (rs6000_function_arg): Likewise.
26918 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26919 (rs6000_expand_ternop_builtin): Use interval syntax.
26920 (get_element_number): Likewise.
26921 (altivec_expand_builtin): Likewise.
26922 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26923
26924 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26925
26926 PR c++/59813
26927 PR target/90418
26928 * function.h (struct function): Add calls_eh_return member.
26929 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26930 gimplifying __builtin_eh_return call.
26931 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26932 to cfun.
26933 (expand_call_inline): Or in src_cfun->calls_eh_return into
26934 dst_cfun->calls_eh_return.
26935 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26936 cfun->calls_eh_return.
26937 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26938 * lto-streamer-out.c (output_struct_function_base): Write
26939 calls_eh_return.
26940
26941 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26942
26943 PR rtl-optimization/43147
26944 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26945 IX86_BUILTIN_SHUFPD.
26946
26947 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26948
26949 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26950 (refs_may_alias_p_1): ... here; update stats.
26951 (refs_may_alias_p): Do not update stats here.
26952
26953 2019-05-20 Richard Biener <rguenther@suse.de>
26954
26955 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26956 doesn't produce pointers.
26957 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26958 the first operand points to.
26959
26960 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26961
26962 * tree-ssa-alias.c (compare_sizes): New function.
26963 (sompare_type_sizes): New function
26964 (aliasing_component_refs_p): Use it.
26965 (indirect_ref_may_alias_decl_p): Likewise.
26966
26967 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26968
26969 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26970
26971 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26972
26973 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26974 (LIBLSAN_EARLY_SPEC): Likewise.
26975 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26976
26977 2019-05-20 Martin Liska <mliska@suse.cz>
26978
26979 * config/i386/i386.c (ix86_libc_has_fast_function):
26980 Add ATTRIBUTE_UNUSED for the argument.
26981
26982 2019-05-20 Richard Biener <rguenther@suse.de>
26983
26984 * gimple-match-head.c: Include vec-perm-indices.h.
26985 * generic-match-head.c: Likewise.
26986 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26987 is included.
26988 * fold-const.c (fold_vec_perm): Export.
26989 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26990 (match.pd): ...here.
26991
26992 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26993
26994 * cfgloop.h (struct loop): Add simdlen member.
26995 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26996 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26997 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26998 as new argument to autovectorize_vector_sizes target hook. If
26999 loop->simdlen, pick up vector size where the vectorization factor
27000 is equal to loop->simd, and if there is none, fall back to the first
27001 successful one.
27002 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
27003 caller.
27004 * omp-low.c (omp_clause_aligned_alignment): Likewise.
27005 * omp-general.c (omp_max_vf): Likewise.
27006 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
27007 * tree-vect-slp.c (vect_slp_bb): Likewise.
27008 * target.def (autovectorize_vector_sizes): Add ALL argument and
27009 document it.
27010 * doc/tm.texi: Adjust documentation.
27011 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
27012 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
27013 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
27014 bool argument.
27015 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
27016 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
27017 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
27018 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
27019 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
27020 preferred vector size is not 512-bit or 256-bit, just put those
27021 unpreferred ones last.
27022
27023 2019-05-20 Martin Liska <mliska@suse.cz>
27024
27025 * targhooks.c (default_libc_has_fast_function): New function.
27026 * targhooks.h (default_libc_has_fast_function): Likewise.
27027
27028 2019-05-20 Martin Liska <mliska@suse.cz>
27029
27030 PR middle-end/90263
27031 * builtins.c (expand_builtin_memory_copy_args): When having a
27032 target with fast mempcpy implementation do now use memcpy.
27033 * config/i386/i386.c (ix86_libc_has_fast_function): New.
27034 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
27035 * doc/tm.texi: Likewise.
27036 * doc/tm.texi.in: Likewise.
27037 * target.def:
27038 * expr.c (emit_block_move_hints): Add 2 new arguments.
27039 * expr.h (emit_block_move_hints): Bail out when libcall
27040 to memcpy would be used.
27041
27042 2019-05-20 Martin Liska <mliska@suse.cz>
27043
27044 * profile-count.c: Add vertical spacing in order
27045 to separate functions.
27046 * profile-count.h: Likewise.
27047
27048 2019-05-20 Martin Liska <mliska@suse.cz>
27049
27050 * profile-count.h: Do not use full qualified
27051 names if possible.
27052 * profile-count.c (profile_count::to_frequency): Likewise.
27053
27054 2019-05-20 Martin Liska <mliska@suse.cz>
27055
27056 * profile-count.h (enum profile_quality): Use capital letters
27057 for enum value names. Use the adjusted names.
27058 * profile-count.c: Use the adjusted names.
27059
27060 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27061
27062 * config/rs6000/constraints.md (define_register_constraint "wH"):
27063 Delete.
27064 (define_register_constraint "wI"): Delete.
27065 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27066 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
27067 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27068 (rs6000_init_hard_regno_mode_ok): Adjust.
27069 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
27070 resp. "d", or with "wa" as appropriate, all with "p8v".
27071 * config/rs6000/vsx.md: Ditto.
27072 * doc/md.texi (Machine Constraints): Adjust.
27073
27074 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27075
27076 * config/rs6000/constraints.md (define_register_constraint "wy"):
27077 Delete.
27078 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27079 RS6000_CONSTRAINT_wy.
27080 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27081 (rs6000_init_hard_regno_mode_ok): Adjust.
27082 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
27083 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
27084 (define_mode_attr Fisa): New.
27085 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
27086 * doc/md.texi (Machine Constraints): Adjust.
27087
27088 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27089
27090 * config/rs6000/constraints.md (define_register_constraint "wu"):
27091 Delete.
27092 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27093 RS6000_CONSTRAINT_wu.
27094 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27095 (rs6000_init_hard_regno_mode_ok): Adjust.
27096 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
27097 both with "p8v".
27098 (define_mode_attr Fa): Delete.
27099 * config/rs6000/vsx.md: Ditto.
27100 * doc/md.texi (Machine Constraints): Adjust.
27101
27102 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27103
27104 * config/rs6000/constraints.md (define_register_constraint "wJ"):
27105 Delete.
27106 (define_register_constraint "wK"): Delete.
27107 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27108 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
27109 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27110 (rs6000_init_hard_regno_mode_ok): Adjust.
27111 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
27112 Replace "wK" constraint by "wH" with "p9v".
27113 * config/rs6000/vsx.md: Ditto.
27114 * doc/md.texi (Machine Constraints): Adjust.
27115
27116 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27117
27118 * config/rs6000/constraints.md (define_register_constraint "wb"):
27119 Delete.
27120 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27121 RS6000_CONSTRAINT_wb.
27122 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27123 (rs6000_init_hard_regno_mode_ok): Adjust.
27124 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
27125 * config/rs6000/vsx.md: Ditto.
27126 * doc/md.texi (Machine Constraints): Adjust.
27127
27128 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27129
27130 * config/rs6000/constraints.md (define_register_constraint "wo"):
27131 Delete.
27132 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27133 RS6000_CONSTRAINT_wo.
27134 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27135 (rs6000_init_hard_regno_mode_ok): Adjust.
27136 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
27137 * config/rs6000/altivec.md: Ditto.
27138 * doc/md.texi (Machine Constraints): Adjust.
27139
27140 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27141
27142 * config/darwin-c.c (darwin_register_objc_includes): Do not
27143 prepend the sysroot when building gnu-runtime header search
27144 paths.
27145
27146 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27147
27148 * config/darwin.c (darwin_file_end): Use switch_to_section ()
27149 instead of direct output of the asm.
27150
27151 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27152
27153 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
27154 argument to be type bool (was int before).
27155 (rs6000_emit_epilogue): Simplify some code. Declare some variables
27156 at first use. Use type bool for some variables. Fix a theoretical
27157 eh_return bug for svr4.
27158
27159 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27160
27161 * config/rs6000/rs6000.md (isa): New attribute.
27162 (enabled): New attribute.
27163
27164 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
27165
27166 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
27167 assemble_start_function and assemble_end_function.
27168
27169 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
27170
27171 PR middle-end/89433
27172 * omp-general.c (oacc_verify_routine_clauses): Change formal
27173 parameters. Add checking if already marked with an OpenACC
27174 'routine' directive. Adjust all users.
27175
27176 PR middle-end/89433
27177 * omp-general.c (oacc_build_routine_dims): Move some of its
27178 processing into...
27179 (oacc_verify_routine_clauses): ... this new function.
27180 * omp-general.h (oacc_verify_routine_clauses): New prototype.
27181
27182 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27183
27184 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
27185 formating of picbase labels to match other ports.
27186
27187 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27188
27189 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
27190 in the generated code.
27191
27192 2019-05-16 Martin Sebor <msebor@redhat.com>
27193
27194 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
27195 identifiers, keywords, operators, and types in diagnostics. Correct
27196 quoting, spelling, and sentence capitalization issues.
27197 (expand_builtin_atomic_is_lock_free): Same.
27198 (fold_builtin_next_arg): Same.
27199 * cfgexpand.c (expand_one_var): Same.
27200 (tree_conflicts_with_clobbers_p): Same.
27201 (expand_asm_stmt): Same.
27202 (verify_loop_structure): Same.
27203 * cgraphunit.c (process_function_and_variable_attributes): Same.
27204 * collect-utils.c (collect_execute): Same.
27205 * collect2.c (maybe_run_lto_and_relink): Same.
27206 (is_lto_object_file): Same.
27207 (scan_prog_file): Same.
27208 * convert.c (convert_to_real_1): Same.
27209 * dwarf2out.c (dwarf2out_begin_prologue): Same.
27210 * except.c (verify_eh_tree): Same.
27211 * gcc.c (execute): Same.
27212 (eval_spec_function): Same.
27213 (run_attempt): Same.
27214 (driver::set_up_specs): Same.
27215 (compare_debug_auxbase_opt_spec_function): Same.
27216 * gcov-tool.c (unlink_gcda_file): Same.
27217 (do_merge): Same.
27218 (do_rewrite): Same.
27219 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
27220 * gimplify.c (gimplify_asm_expr): Same.
27221 (gimplify_adjust_omp_clauses): Same.
27222 * hsa-gen.c (gen_hsa_addr_insns): Same.
27223 (gen_hsa_insns_for_load): Same.
27224 (gen_hsa_cmp_insn_from_gimple): Same.
27225 (gen_hsa_insns_for_operation_assignment): Same.
27226 (gen_get_level): Same.
27227 (gen_hsa_alloca): Same.
27228 (omp_simple_builtin::generate): Same.
27229 (gen_hsa_atomic_for_builtin): Same.
27230 (gen_hsa_insns_for_call): Same.
27231 * input.c (dump_location_info): Same.
27232 * ipa-devirt.c (compare_virtual_tables): Same.
27233 * ira.c (ira_setup_eliminable_regset): Same.
27234 * lra-assigns.c (lra_assign): Same.
27235 * lra-constraints.c (lra_constraints): Same.
27236 * lto-streamer-in.c (lto_input_mode_table): Same.
27237 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
27238 (merge_and_complain): Same.
27239 (compile_offload_image): Same.
27240 (compile_images_for_offload_targets): Same.
27241 (debug_objcopy): Same.
27242 (run_gcc): Same.
27243 (main): Same.
27244 * opts.c (print_specific_help): Same.
27245 (parse_no_sanitize_attribute): Same.
27246 (print_help): Same.
27247 (handle_param): Same.
27248 * plugin.c (add_new_plugin): Same.
27249 (parse_plugin_arg_opt): Same.
27250 (try_init_one_plugin): Same.
27251 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
27252 operators, and types in diagnostics. Correct quoting and spelling
27253 issues.
27254 * read-rtl-function.c (parse_edge_flag_token): Same.
27255 (function_reader::parse_enum_value): Same.
27256 * reg-stack.c (check_asm_stack_operands): Same.
27257 * regcprop.c (validate_value_data): Same.
27258 * sched-rgn.c (make_pass_sched_fusion): Same.
27259 * stmt.c (check_unique_operand_names): Same.
27260 * targhooks.c (default_target_option_pragma_parse): Same.
27261 * tlink.c (recompile_files): Same.
27262 * toplev.c (process_options): Same.
27263 (do_compile): Same.
27264 * trans-mem.c (diagnose_tm_1): Same.
27265 (ipa_tm_scan_irr_block): Same.
27266 (ipa_tm_diagnose_transaction): Same.
27267 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
27268 format a tree code name in a diagnostic.
27269 (verify_types_in_gimple_min_lval): Same.
27270 (verify_types_in_gimple_reference): Same.
27271 (verify_gimple_call): Same.
27272 (verify_gimple_assign_unary): Same.
27273 (verify_gimple_assign_binary): Same.
27274 (verify_gimple_assign_ternary): Same.
27275 (verify_gimple_assign_single): Same.
27276 (verify_gimple_switch): Same.
27277 (verify_gimple_label): Same.
27278 (verify_gimple_phi): Same.
27279 (verify_gimple_in_seq): Same.
27280 (verify_eh_throw_stmt_node): Same.
27281 (collect_subblocks): Same.
27282 (gimple_verify_flow_info): Same.
27283 (do_warn_unused_result): Same.
27284 * tree-inline.c (expand_call_inline): Same.
27285 * tree-into-ssa.c (update_ssa): Same.
27286 * tree.c (tree_int_cst_elt_check_failed): Same.
27287 (tree_vec_elt_check_failed): Same.
27288 (omp_clause_operand_check_failed): Same.
27289 (verify_type_variant): Same.
27290 (verify_type): Same.
27291 * value-prof.c (verify_histograms): Same.
27292 * varasm.c (assemble_start_function): Same.
27293
27294 2019-05-16 Martin Sebor <msebor@redhat.com>
27295
27296 * config/i386/i386-expand.c (get_element_number): Quote keywords
27297 and other internal names in diagnostics. Adjust other diagnostic
27298 formatting issues noted by -Wformat-diag.
27299 * config/i386/i386-features.c
27300 (ix86_mangle_function_version_assembler_name): Same.
27301 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
27302 * config/i386/i386.c (ix86_function_type_abi): Same.
27303 (ix86_function_ms_hook_prologue): Same.
27304 (classify_argument): Same.
27305 (ix86_expand_prologue): Same.
27306 (ix86_md_asm_adjust): Same.
27307 (ix86_memmodel_check): Same.
27308
27309 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
27310
27311 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
27312 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
27313 and fpxx modes.
27314
27315 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
27316
27317 PR target/90497
27318 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
27319 intrinsics without SSE/SSE2/SSSE3.
27320 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
27321 check.
27322 (*mmx_uavgv8qi3): Likewise.
27323
27324 2019-05-17 Richard Biener <rguenther@suse.de>
27325
27326 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
27327 VEC_PERM_EXPR as __VEC_PERM with -gimple.
27328
27329 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
27330
27331 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
27332 vec_sldw insn pattern.
27333
27334 2019-05-17 Richard Biener <rguenther@suse.de>
27335
27336 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
27337
27338 2019-05-17 Martin Liska <mliska@suse.cz>
27339
27340 PR driver/90496
27341 * toplev.c (output_stack_usage): With LTO and sanitizer it
27342 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
27343 has no file location.
27344
27345 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27346
27347 PR c++/90484
27348 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
27349 sz0 is equal to sz1, instead return false in that case.
27350
27351 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
27352 has non-constant expression, force sctx.lane and use two
27353 argument IFN_GOMP_SIMD_LANE instead of single argument.
27354 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
27355 two argument IFN_GOMP_SIMD_LANE without lhs.
27356 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
27357 member.
27358 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
27359 Define.
27360 (LOOP_REQUIRES_VERSIONING): Or in
27361 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
27362 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
27363 simd_if_cond.
27364 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
27365 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
27366 from simd if clause if needed.
27367
27368 2019-05-16 Richard Biener <rguenther@suse.de>
27369
27370 * tree-affine.c (expr_to_aff_combination): New function split
27371 out from...
27372 (tree_to_aff_combination): ... here.
27373 (aff_combination_expand): Avoid building a GENERIC tree.
27374
27375 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
27376
27377 * cgraphunit.c (cgraph_node::expand_thunk): Remove
27378 assemble_start_function and assemble_end_function calls.
27379 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
27380 assemble_start_function and assemble_end_function.
27381 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
27382 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
27383 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
27384 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
27385 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
27386 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
27387 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
27388 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
27389 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
27390 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
27391 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
27392 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
27393 Likewise.
27394 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
27395 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
27396 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
27397 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
27398 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
27399 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
27400 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
27401 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
27402 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
27403 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27404 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
27405 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
27406 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
27407 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
27408 Likewise.
27409 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
27410 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
27411 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
27412
27413 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
27414
27415 * tree-ssa-alias.c (alias_stats): Add
27416 aliasing_component_refs_p_may_alias and
27417 aliasing_component_refs_p_no_alias.
27418 (dump_alias_stats): Print aliasing_component_refs_p stats.
27419 (aliasing_component_refs_p): Update stats.
27420
27421 2019-05-16 Martin Liska <mliska@suse.cz>
27422
27423 PR lto/90500
27424 * multiple_target.c (expand_target_clones): Do not allow
27425 target_clones being used with a symbol that is an alias.
27426
27427 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
27428
27429 PR tree-optimization/90394
27430 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
27431 positives rather than ICE for cases where (code2 == NE_EXPR
27432 && code1 == BIT_AND_EXPR).
27433
27434 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27435
27436 PR fortran/90329
27437 * tree-core.h (struct tree_decl_common): Document
27438 decl_nonshareable_flag for PARM_DECLs.
27439 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
27440 * calls.c (expand_call): Don't try tail call if caller
27441 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
27442 passed on the stack and callee needs to pass any arguments on the
27443 stack.
27444 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27445 else if instead of series of mutually exclusive ifs. Handle
27446 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
27447 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27448
27449 * lto-streamer.h (LTO_major_version): Bump to 9.
27450
27451 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
27452
27453 PR tree-optimization/90106
27454 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
27455 new parameter as new internal function call, also move it to new
27456 basic block.
27457 (use_internal_fn): Pass internal function call to
27458 shrink_wrap_one_built_in_call_with_conds.
27459
27460 2019-05-15 Jakub Jelinek <jakub@redhat.com>
27461
27462 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
27463 max_vf to 1.
27464 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
27465 safelen_int and set loop->dont_vectorize.
27466
27467 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27468
27469 PR target/89021
27470 * config/i386/i386-builtin.def: Enable MMX intrinsics with
27471 SSE/SSE2/SSSE3.
27472 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27473 Likewise.
27474 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
27475 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
27476 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
27477 is defined.
27478
27479 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27480
27481 PR target/89021
27482 * config/i386/mmx.md (*vec_dupv2sf): Changed to
27483 define_insn_and_split to support SSE emulation.
27484 (*vec_extractv2sf_0): Likewise.
27485 (*vec_extractv2sf_1): Likewise.
27486 (*vec_extractv2si_0): Likewise.
27487 (*vec_extractv2si_1): Likewise.
27488 (*vec_extractv2si_zext_mem): Likewise.
27489 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
27490 (vec_extractv2sf_1 splitter): Likewise.
27491 (vec_extractv2sfsf): Likewise.
27492 (vec_setv2si): Likewise.
27493 (vec_extractv2si_1 splitter): Likewise.
27494 (vec_extractv2sisi): Likewise.
27495 (vec_setv4hi): Likewise.
27496 (vec_extractv4hihi): Likewise.
27497 (vec_setv8qi): Likewise.
27498 (vec_extractv8qiqi): Likewise.
27499 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27500 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27501 (vec_extractv2sisi): Likewise.
27502 (vec_extractv4hihi): Likewise.
27503 (vec_extractv8qiqi): Likewise.
27504 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27505 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27506 (vec_initv2sisi): Likewise.
27507 (vec_initv4hihi): Likewise.
27508 (vec_initv8qiqi): Likewise.
27509 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
27510 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27511 (vec_setv4hi): Likewise.
27512 (vec_setv8qi): Likewise.
27513
27514 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27515
27516 PR target/89021
27517 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27518 TARGET_MMX_WITH_SSE.
27519 (MMXMODE:*mov<mode>_internal): Likewise.
27520 (MMXMODE:movmisalign<mode>): Likewise.
27521
27522 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
27523
27524 PR target/89021
27525 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27526 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27527 (sse2_cvtpd2pi): Ditto.
27528 (sse2_cvttpd2pi): Ditto.
27529 (*vec_concatv2sf_sse4_1): Ditto.
27530 (*vec_concatv2sf_sse): Ditto.
27531 (*vec_concatv2si_sse4_1): Ditto.
27532 (*vec_concatv2si): Ditto.
27533 (*vec_concatv4si_0): Ditto.
27534 (*vec_concatv2di_0): Ditto.
27535
27536 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27537
27538 PR target/89021
27539 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27540
27541 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27542
27543 PR target/89021
27544 * config/i386/sse.md (ssse3_palignrdi): Changed to
27545 define_insn_and_split to support SSE emulation.
27546
27547 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27548
27549 PR target/89021
27550 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27551
27552 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27553
27554 PR target/89021
27555 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27556 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27557 SSE emulation.
27558
27559 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27560
27561 PR target/89021
27562 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27563 or TARGET_MMX_WITH_SSE.
27564 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27565
27566 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27567
27568 PR target/89021
27569 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27570
27571 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27572
27573 PR target/89021
27574 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27575 Changed to define_insn_and_split to support SSE emulation.
27576
27577 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27578
27579 PR target/89021
27580 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27581 Changed to define_insn_and_split to support SSE emulation.
27582
27583 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27584
27585 PR target/89021
27586 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27587 (*mmx_<emms>): This.
27588 (mmx_<emms>): New expander.
27589
27590 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27591
27592 PR target/89021
27593 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27594 support.
27595 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27596
27597 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27598
27599 PR target/89021
27600 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27601
27602 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27603
27604 PR target/89021
27605 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27606
27607 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27608
27609 PR target/89021
27610 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27611 TARGET_MMX_WITH_SSE.
27612 (*mmx_uavgv4hi3): Add SSE emulation.
27613
27614 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27615
27616 PR target/89021
27617 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27618 and TARGET_MMX_WITH_SSE.
27619 (*mmx_uavgv8qi3): Add SSE emulation.
27620
27621 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27622
27623 PR target/89021
27624 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27625 maskmovdqu for __MMX_WITH_SSE__.
27626
27627 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27628
27629 PR target/89021
27630 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27631 TARGET_MMX and TARGET_MMX_WITH_SSE.
27632 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27633
27634 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27635
27636 PR target/89021
27637 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27638 define_insn_and_split to support SSE emulation.
27639
27640 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27641
27642 PR target/89021
27643 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27644 and TARGET_MMX_WITH_SSE.
27645 (mmx_<code>v8qi3): Likewise.
27646 (smaxmin:<code>v4hi3): New.
27647 (umaxmin:<code>v8qi3): Likewise.
27648 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27649 (umaxmin:*mmx_<code>v8qi3): Likewise.
27650
27651 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27652
27653 PR target/89021
27654 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27655 TARGET_MMX_WITH_SSE.
27656 (*mmx_pinsrw): Add SSE emulation.
27657
27658 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27659
27660 PR target/89021
27661 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27662
27663 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27664
27665 PR target/89021
27666 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27667 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27668 SSE emulation.
27669
27670 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27671
27672 PR target/89021
27673 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27674 (sse_cvttps2pi): Likewise.
27675
27676 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27677
27678 PR target/89021
27679 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27680 TARGET_MMX_WITH_SSE.
27681 (mmx_pshufw_1): Add SSE emulation.
27682 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27683 TARGET_MMX_WITH_SSE to support SSE emulation.
27684
27685 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27686
27687 PR target/89021
27688 * config/i386/constraints.md (Yw): New constraint.
27689 * config/i386/mmx.md (*vec_dupv2si): Changed to
27690 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27691 support SSE emulation.
27692
27693 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27694
27695 PR target/89021
27696 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27697 TARGET_MMX_WITH_SSE.
27698 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27699 support.
27700 (mmx_gt<mode>3): Likewise.
27701
27702 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27703
27704 PR target/89021
27705 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27706 TARGET_MMX_WITH_SSE. Add SSE support.
27707
27708 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27709
27710 PR target/89021
27711 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27712 TARGET_MMX_WITH_SSE.
27713 (any_logic:<code><mode>3): New.
27714 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27715 Add SSE support.
27716
27717 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27718
27719 PR target/89021
27720 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27721 TARGET_MMX_WITH_SSE. Add SSE emulation.
27722 (mmx_<shift_insn><mode>3): Likewise.
27723 (ashr<mode>3): New.
27724 (<shift_insn><mode>3): Likewise.
27725
27726 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27727
27728 PR target/89021
27729 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27730 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27731
27732 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27733
27734 PR target/89021
27735 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27736 TARGET_MMX_WITH_SSE.
27737 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27738 SSE support.
27739
27740 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27741
27742 PR target/89021
27743 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27744 TARGET_MMX_WITH_SSE.
27745 (mulv4hi3): New.
27746 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27747 support.
27748
27749 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27750
27751 PR target/89021
27752 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27753 (plusminus:mmx_<plusminus_insn><mode>3): Check
27754 TARGET_MMX_WITH_SSE.
27755 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27756 (<plusminus_insn><mode>3): New.
27757 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27758 (*mmx_<plusminus_insn><mode>3): Likewise.
27759
27760 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27761
27762 PR target/89021
27763 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27764 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27765 prototype.
27766 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27767 define_insn_and_split to support SSE emulation.
27768 (mmx_punpcklbw): Likewise.
27769 (mmx_punpckhwd): Likewise.
27770 (mmx_punpcklwd): Likewise.
27771 (mmx_punpckhdq): Likewise.
27772 (mmx_punpckldq): Likewise.
27773
27774 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27775 Uros Bizjak <ubizjak@gmail.com>
27776
27777 PR target/89021
27778 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27779 New function.
27780 (ix86_split_mmx_pack): Likewise.
27781 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27782 New prototype.
27783 (ix86_split_mmx_pack): Likewise.
27784 * config/i386/i386.md (mmx_isa): New.
27785 (enabled): Also check mmx_isa.
27786 * config/i386/mmx.md (any_s_truncate): New code iterator.
27787 (s_trunsuffix): New code attr.
27788 (mmx_packsswb): Removed.
27789 (mmx_packssdw): Likewise.
27790 (mmx_packuswb): Likewise.
27791 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27792 MMX packsswb/packuswb with SSE2.
27793 (mmx_packssdw): Likewise.
27794 * config/i386/predicates.md (register_mmxmem_operand): New.
27795
27796 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27797
27798 PR target/89021
27799 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27800 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27801 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27802 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27803 (ix86_vector_mode_supported_p): Likewise.
27804 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27805
27806 2019-05-15 Martin Liska <mliska@suse.cz>
27807
27808 PR middle-end/90478
27809 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27810 Check for overflow.
27811
27812 2019-05-15 Richard Biener <rguenther@suse.de>
27813
27814 * tree-into-ssa.c (pass_build_ssa::execute): Run
27815 update_address_taken before going into SSA.
27816
27817 2019-05-15 Richard Biener <rguenther@suse.de>
27818
27819 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27820 as __BIT_FIELD_REF with type with -gimple.
27821
27822 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27823
27824 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27825 semantically equivalent branches (left over after prior refactorings).
27826
27827 2019-05-15 Richard Biener <rguenther@suse.de>
27828
27829 PR tree-optimization/88828
27830 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27831 bogus check.
27832
27833 2019-05-14 Richard Biener <rguenther@suse.de>
27834
27835 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27836 as __VIEW_CONVERT with -gimple.
27837
27838 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27839
27840 PR target/82920
27841 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27842 Darwin.
27843
27844 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27845
27846 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27847 define_split to become a define_insn_and_split.
27848
27849 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27850
27851 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27852 arguments.
27853 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27854 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27855 (sibcall_epilogue): Adjust.
27856 (epilogue): Adjust.
27857
27858 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27859
27860 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27861 to unsupported ones.
27862 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27863 * config.host: Likewise.
27864 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27865 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27866 __svr4__]: Remove "brand" fallback.
27867 [!KSTAT_DATA_STRING]: Remove.
27868 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27869 to *-*-solaris2*.
27870 (comdat_group): Likewise.
27871 (set_have_as_tls): Likewise.
27872 (gcc_cv_target_dl_iterate_phdr): Likewise.
27873 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27874 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27875 * configure: Regenerate.
27876 * doc/install.texi: Simplify Solaris target triplets.
27877 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27878 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27879 Remove Solaris 10 references.
27880 Remove obsolete Solaris bug reference.
27881 (Specific, sparc-sun-solaris2.10): Remove.
27882
27883 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27884
27885 * config/i386/i386.md (any_div): New code iterator.
27886 (paired_mod): New code attribute.
27887 (sgnprefix): Handle DIV and UDIV RTXes.
27888 (u): Ditto.
27889 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27890 and udivmod<mode>4 patterns using any_div code iterator.
27891 (divmod splitters): Macroize splitters using any_div code iterator.
27892 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27893 (*udivmodsi4_pow2_zext_2): Ditto.
27894 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27895 and *udivmod<mode>4_noext patterns using any_div code iterator.
27896 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27897 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27898 patterns using any_div code iterator.
27899 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27900 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27901 patterns using any_div code iterator.
27902 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27903 udivmodhiqi3 patterns using any_extend code iterator.
27904
27905 2019-05-14 Richard Biener <rguenther@suse.de>
27906 H.J. Lu <hongjiu.lu@intel.com>
27907
27908 PR tree-optimization/88828
27909 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27910 permuting in a single non-constant element not extracted
27911 from a vector.
27912
27913 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27914
27915 * internal-fn.def (SIGNBIT): New.
27916 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27917 defined.
27918 (signbitv4sf2): Likewise.
27919
27920 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27921
27922 PR target/90357
27923 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27924 next insn when the SRC reg is dead.
27925
27926 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27927
27928 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27929 (alloc_cand_and_find_basis): Ditto.
27930 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27931 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27932 (create_add_imm_cand, slsr_process_cast): Ditto.
27933 (slsr_process_copy, replace_mult_candidate): Ditto.
27934 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27935 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27936 (pass_strength_reduction::execute): Init the first NULL element.
27937
27938 2019-05-13 Nathan Sidwell <nathan@acm.org>
27939
27940 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27941 (run_attempt): Reformat line break.
27942
27943 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27944
27945 PR target/90418
27946 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27947 data registers in sibcall epilogues.
27948 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27949
27950 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27951
27952 PR target/89221
27953 * configure.ac (--enable-frame-pointer):
27954 Disable by default for cygwin and mingw.
27955 * configure: Regenerate.
27956
27957 2019-05-13 Nathan Sidwell <nathan@acm.org>
27958
27959 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27960 piece of code.
27961 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27962 (gen_member_die): Move abstract origin check earlier. Only VARs
27963 can be static_inline_p. Simplify splicing control flow.
27964
27965 2019-05-13 Richard Biener <rguenther@suse.de>
27966
27967 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27968 VIEW_CONVERT_EXPR.
27969 (vect_build_slp_tree_1): Likewise.
27970
27971 2019-05-13 Richard Biener <rguenther@suse.de>
27972
27973 PR tree-optimization/90402
27974 * tree-if-conv.c (tree_if_conversion): Value number only
27975 the loop body by making the latch an exit of the region
27976 as well.
27977 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27978 processing PHIs.
27979 (do_rpo_vn): Deal with multiple edges into the entry block
27980 that are not backedges inside the region by skipping PHIs
27981 of the entry block.
27982
27983 2019-05-13 Richard Biener <rguenther@suse.de>
27984
27985 PR tree-optimization/90316
27986 * tree-ssa-pre.c (insert_aux): Fold into ...
27987 (insert): ... this function. Use a RPO walk to reduce the
27988 number of required iterations.
27989
27990 2019-05-13 Martin Liska <mliska@suse.cz>
27991
27992 PR tree-optimization/90416
27993 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27994 string instead of passing the second part as va_arg argument.
27995
27996 2019-05-13 Martin Liska <mliska@suse.cz>
27997
27998 PR gcov-profile/90380
27999 * gcov.c (handle_cycle): Do not support zero cycle count,
28000 it should not be possible.
28001 (path_contains_zero_cycle_arc): New function.
28002 (circuit): Ignore zero cycle arc counts.
28003
28004 2019-05-13 Martin Liska <mliska@suse.cz>
28005
28006 PR gcov-profile/90380
28007 * gcov.c (enum loop_type): Remove the enum and
28008 the operator.
28009 (handle_cycle): Assert that we should not reach
28010 a negative count.
28011 (circuit): Use loop_found instead of a tri-state loop_type.
28012 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
28013 happen.
28014
28015 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
28016
28017 PR target/82920
28018 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
28019 (ix86_output_indirect_branch_via_reg): Use output mechanism
28020 accounting for __USER_LABEL_PREFIX__.
28021 (ix86_output_indirect_branch_via_push): Likewise.
28022 (ix86_output_function_return): Likewise.
28023 (ix86_output_indirect_function_return): Likewise.
28024
28025 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
28026
28027 * doc/md.texi: Document use of code attributes in rtx patterns.
28028 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
28029 * read-rtl.c (find_code): Split out search loops into...
28030 (maybe_find_code): ...this new function.
28031 (check_code_iterator): Make the error message more informative.
28032 (check_code_attribute): New function.
28033 (rtx_reader::rtx_alloc_for_name): Likewise.
28034 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
28035 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
28036 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
28037 <max_opp> directly as an rtx code instead of via a match_operator.
28038 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
28039 (<su>abd<mode>_3): Update accordingly.
28040
28041 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
28042
28043 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
28044 is given, print the state of the EH "save world" computation for
28045 Darwin.
28046
28047 2019-05-11 Jakub Jelinek <jakub@redhat.com>
28048
28049 PR c++/59813
28050 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
28051 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
28052
28053 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
28054
28055 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
28056 Use pinsrd for TARGET_SSE4_1.
28057 * config/i386/sse.md (movdi_to_sse): Ditto.
28058
28059 2019-05-10 Richard Biener <rguenther@suse.de>
28060
28061 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
28062 (do_rpo_vn): Initialize next_value_id.
28063
28064 2019-05-10 Martin Liska <mliska@suse.cz>
28065
28066 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28067 Fix plural form.
28068
28069 2019-05-10 Jakub Jelinek <jakub@redhat.com>
28070
28071 PR tree-optimization/90385
28072 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
28073 arguments of the exit phis.
28074
28075 PR c++/90383
28076 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
28077 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
28078 id->do_not_fold.
28079 (copy_tree_body_r): Likewise.
28080 (copy_fn): Set id.do_not_fold to true.
28081
28082 2019-05-10 Martin Liska <mliska@suse.cz>
28083
28084 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
28085 Reapply changes from r269790.
28086
28087 2019-05-10 Martin Liska <mliska@suse.cz>
28088
28089 PR middle-end/90340
28090 * doc/invoke.texi: New params.
28091 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
28092 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
28093 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
28094 Use it.
28095 * tree-switch-conversion.h (struct jump_table_cluster):
28096 Likewise.
28097
28098 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
28099
28100 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
28101
28102 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
28103
28104 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
28105
28106 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
28107
28108 PR rtl-optimization/88879
28109 * sel-sched.c (sel_target_adjust_priority): Remove assert.
28110
28111 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
28112
28113 PR target/90405
28114 * config/arm/arm.c (callee_saved_reg_p): Move before
28115 thumb_find_work_register.
28116 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
28117 thumb_find_work_register. Only call df_get_live_out once.
28118 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
28119 (thumb_find_work_register): Use
28120 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
28121 algorithms to locate a spare call clobbered reg.
28122
28123 2019-05-09 Martin Liska <mliska@suse.cz>
28124
28125 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
28126 and MAX_EXPR in GIMPLE FE format.
28127
28128 2019-05-09 Martin Liska <mliska@suse.cz>
28129
28130 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
28131 * gimple-pretty-print.c (dump_gimple_bb_header):
28132 Dump BB count.
28133 (pp_cfg_jump): Dump edge probability.
28134 * profile-count.c (profile_quality_as_string): Simplify
28135 with a static array.
28136 (parse_profile_quality): New function.
28137 (profile_count::dump): Simplify with a static array.
28138 (profile_count::from_gcov_type): Add new argument.
28139 * profile-count.h (parse_profile_quality): Likewise.
28140 * predict.h (set_hot_bb_threshold): New.
28141 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28142 New param.
28143 * predict.c (get_hot_bb_threshold): Set from the new param.
28144 (set_hot_bb_threshold): New.
28145
28146 2019-05-09 Richard Biener <rguenther@suse.de>
28147
28148 PR tree-optimization/90395
28149 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
28150 rewrite vector stores that throw internally.
28151
28152 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
28153
28154 * cif-code.def (CHKP): Remove.
28155
28156 PR target/89221
28157 * configure.ac (--enable-frame-pointer): Disable by default for
28158 GNU systems.
28159 * configure: Regenerate.
28160
28161 2019-05-09 Alan Modra <amodra@gmail.com>
28162
28163 PR target/89271
28164 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
28165 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
28166 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
28167 cost for general <-> vsx when direct moves are available.
28168 Cost union classes at minimal cost for any reg in the class.
28169 Correct calculation for moves between vsx, float, and altivec.
28170 Don't return a low cost for moves between special regs. Don't
28171 use hard coded register numbers.
28172 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
28173 (rs6000_ira_change_pseudo_allocno_class): New function.
28174 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
28175 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
28176 alternatives.
28177 (movsi_internal1): Don't disparage vector alternatives.
28178 (mov<mode>_internal): Likewise, excepting alternative that
28179 will be split.
28180 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
28181 we <- b alternative.
28182
28183 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28184
28185 PR c++/59813
28186 PR tree-optimization/89060
28187 * tree-ssa-live.h (live_vars_map): New typedef.
28188 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
28189 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
28190 (struct compute_live_vars_data): New type.
28191 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
28192 live_vars_at_stmt, destroy_live_vars): New functions.
28193 * tree-tailcall.c: Include tree-ssa-live.h.
28194 (live_vars, live_vars_vec): New global variables.
28195 (find_tail_calls): Perform variable life analysis before punting.
28196 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
28197 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
28198 member.
28199 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
28200 Perform variable life analysis to select variables that really need
28201 clobbers added.
28202 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
28203 instead set id->eh_landing_pad_dest and assert it is the same.
28204 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
28205
28206 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
28207 Richard Earnshaw <rearnsha@arm.com>
28208
28209 PR target/88167
28210 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
28211 function.
28212 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
28213 (thumb1_compute_save_core_reg_mask): Don't force a spare work
28214 register if both the epilogue and prologue can use call-clobbered
28215 regs.
28216 (thumb1_unexpanded_epilogue): Use
28217 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
28218 picking temporaries for restoring high regs to match that of the
28219 prologue where possible.
28220 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
28221 the list of work registers. Detect if the return address is still live
28222 at the end of the prologue and avoid using it for a work register if so.
28223 If the return address is not live, add LR to the list of pushable regs
28224 after the first pass.
28225
28226 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28227
28228 PR tree-optimization/90078
28229 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
28230 (INFTY): Increase the value for infinite cost.
28231 (struct comp_cost): Promote type of members to int64_t.
28232 (infinite_cost): Don't set complexity in initialization.
28233 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
28234 overflows to infinite_cost.
28235 (adjust_setup_cost): Promote type of parameter and cost computation
28236 to int64_t.
28237 (struct ainc_cost_data, struct iv_ca): Promote type of member to
28238 int64_t.
28239 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
28240 cost computation to int64_t.
28241 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
28242 int64_t's format specifier in dump.
28243
28244 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28245
28246 PR tree-optimization/90240
28247 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
28248 with respect to scaling factor pre-computed for each basic block.
28249 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
28250 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
28251 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
28252 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
28253 live range for array of loop's basic blocks. Cleanup aux field of
28254 loop's basic blocks.
28255
28256 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28257
28258 PR tree-optimization/90356
28259 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
28260
28261 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
28262
28263 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
28264 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
28265 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
28266 (ix86_handle_option): Handle -mavx512bf16.
28267 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
28268 to extra_headers.
28269 * config/i386/avx512bf16vlintrin.h: New.
28270 * config/i386/avx512bf16intrin.h: New.
28271 * config/i386/cpuid.h (bit_AVX512BF16): New.
28272 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
28273 * config/i386/i386-builtin-types.def: Add new types.
28274 * config/i386/i386-builtin.def: Add new builtins.
28275 * config/i386/i386-c.c (ix86_target_macros_internal): Define
28276 __AVX512BF16__.
28277 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
28278 (ix86_option_override_internal): Handle BF16.
28279 (ix86_valid_target_attribute_inner_p): Ditto.
28280 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
28281 * config/i386/i386-builtin.c (enum processor_features): Add
28282 F_AVX512BF16.
28283 (static const _isa_names_table isa_names_table): Ditto.
28284 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
28285 (PTA_AVX512BF16): Ditto.
28286 * config/i386/i386.opt: Add -mavx512bf16.
28287 * config/i386/immintrin.h: Include avx512bf16intrin.h
28288 and avx512bf16vlintrin.h.
28289 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
28290 avx512f_cvtneps2bf16_<mode><mask_name>,
28291 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
28292 * config/i386/subst.md (mask_half): Add new subst.
28293 * doc/invoke.texi: Document -mavx512bf16.
28294
28295 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
28296
28297 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
28298 Delete declaration.
28299 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
28300 (rs6000_debug_legitimize_reload_address): Delete.
28301 (rs6000_legitimize_reload_address_ptr): Delete.
28302 (rs6000_option_override_internal): Adjust.
28303 (mem_operand_gpr): Adjust comment.
28304 (legitimate_lo_sum_address_p): Ditto.
28305 (rs6000_legitimize_reload_address): Delete.
28306 (rs6000_debug_legitimize_reload_address): Delete.
28307 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
28308
28309 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
28310
28311 PR target/89765
28312 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28313 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
28314 to compute vector element selector for both constant and variable
28315 operands.
28316
28317 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28318
28319 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
28320 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
28321 ashrdi3_cvt using SWI48 mode iterator.
28322
28323 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28324
28325 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
28326 (aarch64_<su>abd<mode>_3): Likewise.
28327 (*aarch64_<su>abd<mode>_3): New define_insn.
28328 (<sur>sad<vsi2qi>): New define_expand.
28329 * config/aarch64/iterators.md: Added MAX_OPP attribute.
28330 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
28331 (build_vect_cond_expr): Likewise.
28332
28333 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28334
28335 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
28336 clobbers outside of accessible_reg_set.
28337 * config/i386/i386.c (ix86_conditional_register_usage):
28338 Disable register sets by clearing corresponding bits in
28339 accessible_reg_set. Do not set corresponding bits in fixed_regs,
28340 call_used_regs and don't clear corresponding reg_names array members.
28341
28342 2019-05-07 Richard Biener <rguenther@suse.de>
28343
28344 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
28345 not specified still compute a comp_vectype for invariant
28346 compares.
28347
28348 2019-05-07 Richard Biener <rguenther@suse.de>
28349
28350 PR tree-optimization/90316
28351 * tree-ssa-pre.c (translate_vuse_through_block): When
28352 same_valid is NULL do not bother to search for a virtual
28353 PHI continuation.
28354 (phi_translate_1): When operands changed we cannot keep
28355 the same value-number so do not bother to ask whether
28356 that's possible from translate_vuse_through_block.
28357
28358 2019-05-07 Martin Liska <mliska@suse.cz>
28359
28360 * bitmap.c (bitmap_register): Come up with
28361 alloc_descriptor_max_uid and assign it for
28362 a new bitmap.
28363 (register_overhead): Use get_descriptor as
28364 a descriptor.
28365 (release_overhead): New.
28366 (bitmap_elem_to_freelist): Call it.
28367 (bitmap_elt_clear_from): Likewise.
28368 (bitmap_obstack_free): Likewise.
28369 (bitmap_move): Sensitively release memory.
28370 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
28371 (bitmap_initialize): Initialize alloc_descriptor to zero.
28372 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
28373
28374 2019-05-07 Richard Biener <rguenther@suse.de>
28375
28376 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
28377 we build a SLP node. Remove max_size and limiting.
28378 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
28379
28380 2019-05-07 Richard Biener <rguenther@suse.de>
28381
28382 PR tree-optimization/90316
28383 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
28384 limit by reference.
28385 (walk_non_aliased_vuses): Take walking limit argument.
28386 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
28387 walking if it is reached instead of just counting.
28388 (get_continuation_for_phi): Likewise.
28389 (walk_non_aliased_vuses): Likewise, instead of leaving counter
28390 limiting to the callback.
28391 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
28392 (vn_reference_lookup_3): Likewise.
28393 (vn_reference_lookup_pieces): Likewise.
28394 (vn_reference_lookup): Likewise.
28395 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
28396 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
28397 (avail_exprs_stack::lookup_avail_expr): Likewise.
28398
28399 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
28400
28401 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
28402 for comparaible types in the second direction even if first one
28403 hits incomparable type.
28404
28405 2019-05-07 Richard Biener <rguenther@suse.de>
28406
28407 PR lto/90369
28408 * lto-wrapper.c (debug_objcopy): Use the original filename
28409 including archive offset for the filename used for -save-temps.
28410
28411 2019-05-07 Li Jia He <helijia@linux.ibm.com>
28412
28413 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
28414 detection.
28415
28416 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
28417 Hongtao Liu <hongtao.liu@intel.com>
28418
28419 PR target/89750
28420 PR target/86444
28421 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
28422 Modified, original implementation isn't correct.
28423
28424 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28425
28426 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
28427 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
28428 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
28429 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
28430 (FRAME_POINTER_REGNUM): Change numbering.
28431 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
28432 (alt_reg_names): Adjust.
28433 (rs6000_conditional_register_usage): Don't mark hard register 64 as
28434 fixed.
28435 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28436 (DWARF_FRAME_REGISTERS): Delete.
28437 (DWARF2_FRAME_REG_OUT): Fix whitespace.
28438 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28439 Adjust.
28440 (REG_ALLOC_ORDER): Adjust.
28441 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
28442 (REG_CLASS_CONTENTS): Adjust.
28443 (RETURN_ADDR_RTX): Change comment.
28444 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
28445 instead of 67.
28446 (REGISTER_NAMES): Adjust.
28447 (ADDITIONAL_REGISTER_NAMES): Adjust.
28448 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28449
28450 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28451
28452 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
28453 Delete.
28454 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28455 (DWARF_FRAME_REGISTERS): Adjust.
28456 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28457 Adjust.
28458 (REG_ALLOC_ORDER): Adjust.
28459 (enum reg_class): Delete SPR_REGS.
28460 (REG_CLASS_NAMES): Delete SPR_REGS.
28461 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
28462 (REGISTER_NAMES): Adjust.
28463 (ADDITIONAL_REGISTER_NAMES): Adjust.
28464 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28465 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
28466 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
28467 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
28468 (htm_spr_regno): Delete.
28469 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
28470 argument.
28471 (rs6000_dbx_register_number): Adjust.
28472
28473 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28474
28475 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
28476
28477 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28478
28479 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
28480 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
28481
28482 2019-05-06 Jakub Jelinek <jakub@redhat.com>
28483
28484 PR tree-optimization/88709
28485 PR tree-optimization/90271
28486 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
28487 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
28488 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
28489 variable.
28490 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
28491 of the store merging group is larger than
28492 PARAM_STORE_MERGING_MAX_SIZE parameter.
28493 (split_group): Add bzero_first argument. If set, always emit first
28494 the first store which must be = {} of the whole area and then for the
28495 rest of the stores consider all zero bytes as paddings.
28496 (imm_store_chain_info::output_merged_store): Check if first store
28497 is = {} of the whole area and if yes, determine which setting of
28498 bzero_first for split_group gives smaller number of stores. Adjust
28499 split_group callers.
28500 (lhs_valid_for_store_merging_p): Allow decls.
28501 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28502 no elts.
28503 (pass_store_merging::process_store): Likewise.
28504
28505 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
28506
28507 PR target/89424
28508 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28509 handling of V1TImode.
28510
28511 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
28512
28513 PR target/89221
28514 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28515 and enable_frame_pointer ...
28516 * configure.ac: ... here. Update help strings for
28517 --enable-frame-pointer.
28518 * configure: Regenerate.
28519 * config/i386/i386-options.c (ix86_option_override_internal): Remove
28520 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28521 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28522 (USE_X86_64_FRAME_POINTER): Ditto.
28523
28524 2019-05-06 Martin Liska <mliska@suse.cz>
28525
28526 * config.gcc: Append to target_gtfiles and fix indentation.
28527
28528 2019-05-06 Richard Biener <rguenther@suse.de>
28529
28530 PR tree-optimization/90358
28531 * tree-vect-stmts.c (get_group_load_store_type): Properly
28532 detect unused upper half of load.
28533 (vectorizable_load): Likewise.
28534
28535 2019-05-06 Richard Biener <rguenther@suse.de>
28536
28537 PR tree-optimization/88828
28538 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28539 (simplify_vector_constructor): ...here. Handle constants in
28540 the constructor.
28541
28542 2019-05-06 Richard Biener <rguenther@suse.de>
28543
28544 PR tree-optimization/90328
28545 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28546 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28547 is valid in the loop nest before using it.
28548 (initialize_data_dependence_relation): Adjust.
28549 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28550 loop as loop-nest to dr_may_alias_p.
28551
28552 2019-05-06 Richard Biener <rguenther@suse.de>
28553
28554 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28555
28556 2019-05-06 Richard Biener <rguenther@suse.de>
28557
28558 PR tree-optimization/90316
28559 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28560 compute target on demand.
28561 (get_continuation_for_phi): Remove code walking stmts to
28562 get to a target virtual operand which could end up being
28563 quadratic.
28564
28565 2019-05-06 Martin Liska <mliska@suse.cz>
28566
28567 PR sanitizer/90312
28568 * config/i386/i386-options.c (ix86_option_override_internal): Error only
28569 when -mabi is selected to a non-default version.
28570
28571 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28572 Martin Liska <mliska@suse.cz>
28573
28574 * Makefile.in: Add lto-dump.texi.
28575 * cgraph.h: Add new functions get_visibility_string and
28576 get_symtab_type_string.
28577 * doc/gcc.texi: Include lto-dump section.
28578 * doc/lto-dump.texi: New file.
28579 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28580 (parse_dump_option): Factor out this function.
28581 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28582 (parse_dump_option): Export the function.
28583 * symtab.c (symtab_node::get_visibility_string): New function.
28584 (symtab_node::get_symtab_type_string): Likewise.
28585
28586 2019-05-06 Martin Liska <mliska@suse.cz>
28587
28588 * config/i386/i386-builtins.c: New file.
28589 * config/i386/i386-builtins.h: New file.
28590 * config/i386/i386-expand.c: New file.
28591 * config/i386/i386-expand.h: New file.
28592 * config/i386/i386-features.c: New file.
28593 * config/i386/i386-features.h: New file.
28594 * config/i386/i386-options.c: New file.
28595 * config/i386/i386-options.h: New file.
28596 * config.gcc: Add new files into extra_objs and
28597 target_gtfiles.
28598 * config/i386/i386.c: Split content of the file
28599 into newly introduced files.
28600 * config/i386/i386.h: Declare common variables
28601 and macros.
28602 * config/i386/t-i386: Define dependencies for new files.
28603
28604 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28605
28606 PR target/89400
28607 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28608 Restrict 'all' variant to 32-bit configurations.
28609 (unaligned_loadhiu): Likewise.
28610 (unaligned_storehi): Likewise.
28611 (unaligned_storesi): Likewise.
28612 (unaligned_loadhis): Disable when compiling for thumb1.
28613
28614 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28615
28616 PR tree-optimization/90269
28617 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28618 Ignore clobbers.
28619
28620 2019-05-03 Martin Liska <mliska@suse.cz>
28621
28622 * hash-map.h: Add is_empty function.
28623 * hash-set.h: Likewise.
28624 * hash-table.h: Likewise.
28625 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28626 elements () == 0 (and similar usages).
28627 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28628 * gimplify.c (gimplify_bind_expr): Likewise.
28629 (gimplify_switch_expr): Likewise.
28630 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28631 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28632 * postreload-gcse.c (dump_hash_table): Likewise.
28633 (gcse_after_reload_main): Likewise.
28634 * predict.c (combine_predictions_for_bb): Likewise.
28635 * tree-parloops.c (reduction_phi): Likewise.
28636 (separate_decls_in_region): Likewise.
28637 (transform_to_exit_first_loop): Likewise.
28638 (gen_parallel_loop): Likewise.
28639 (gather_scalar_reductions): Likewise.
28640 (try_create_reduction_list): Likewise.
28641 * var-tracking.c (dump_vars): Likewise.
28642 (emit_notes_for_changes): Likewise.
28643 (vt_emit_notes): Likewise.
28644
28645 2019-05-03 Richard Biener <rguenther@suse.de>
28646
28647 PR tree-optimization/90316
28648 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28649 before running VN.
28650
28651 2019-05-03 Richard Biener <rguenther@suse.de>
28652
28653 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28654 peeling for gaps by loading only lower halves of vectors
28655 if possible.
28656 (vectorizable_load): Likewise.
28657
28658 2019-05-03 Richard Biener <rguenther@suse.de>
28659
28660 PR middle-end/89518
28661 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28662
28663 2019-05-03 Richard Biener <rguenther@suse.de>
28664
28665 PR middle-end/87314
28666 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28667 Handle STRING_CST vs DECL or STRING_CST.
28668
28669 2019-05-03 Richard Biener <rguenther@suse.de>
28670
28671 PR tree-optimization/88963
28672 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28673 vector loads feeding only BIT_FIELD_REFs to component
28674 loads. Rewrite stores fed by CONSTRUCTORs to component
28675 stores.
28676
28677 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28678
28679 * opts.h (finish_options): Remove lang_mask argument.
28680 (print_help, help_option_argument): Declare.
28681 * opts.c (print_help): Remove forward declaration, no longer static.
28682 (finish_options): Remove lang_mask argument, don't call print_help
28683 here.
28684 * opts-global.c (decode_options): Adjust finish_option caller, call
28685 print_help here.
28686
28687 PR tree-optimization/90303
28688 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28689 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28690
28691 2019-05-03 Richard Biener <rguenther@suse.de>
28692
28693 PR tree-optimization/89698
28694 * gimple-fold.c (canonicalize_constructor_val): Early out
28695 for constants, handle unfolded INTEGER_CSTs as they appear in
28696 C++ virtual table ctors.
28697
28698 2019-05-03 Richard Biener <rguenther@suse.de>
28699
28700 * passes.c (execute_function_todo): Remove dead code.
28701
28702 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28703
28704 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28705 the internal register number, for any "real" register.
28706
28707 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28708
28709 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28710 correct numbers for TFHAR, TFIAR, TEXASR.
28711
28712 2019-05-02 Richard Biener <rguenther@suse.de>
28713
28714 PR tree-optimization/89653
28715 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28716 update-address-taken before the pass.
28717 * passes.def (pass_tree_loop_init): Put comment before it.
28718
28719 2019-05-02 Richard Biener <rguenther@suse.de>
28720
28721 PR tree-optimization/89509
28722 * tree-ssa-structalias.c (compute_dependence_clique): Look
28723 at the first subvar when determining whether it is restrict.
28724
28725 2019-05-02 Richard Biener <rguenther@suse.de>
28726
28727 PR tree-optimization/90273
28728 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28729 useless debug stmts.
28730
28731 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28732
28733 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28734 ACLE branch.
28735 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28736 SVE ACLE branch.
28737 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28738 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28739 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28740 (vectorizable_reduction): Use the functions above to vectorize in a
28741 fully masked loop codes that don't have a conditional internal
28742 function.
28743
28744 2019-05-02 Martin Liska <mliska@suse.cz>
28745
28746 * cgraphclones.c: Call valid_attribute_p with 1 for
28747 target_clone.
28748 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28749 it's for target attribute.
28750 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28751 Add new boolean argument.
28752 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28753 Likewise.
28754 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28755 to ix86_valid_target_attribute_inner_p.
28756 (ix86_valid_target_attribute_p): Pass flags argument to
28757 ix86_valid_target_attribute_inner_p.
28758 (get_builtin_code_for_version): Use 0 as it's target attribute.
28759
28760 2019-05-02 Martin Liska <mliska@suse.cz>
28761
28762 * gcc.c (process_command): Add dummy file only
28763 if n_infiles == 0.
28764 * opts-global.c (decode_options): Pass lang_mask.
28765 * opts.c (print_help): New function.
28766 (finish_options): Print --help if help_option_argument
28767 is set.
28768 (common_handle_option): Factor out content of OPT__help_
28769 into print_help.
28770 * opts.h (finish_options): Add new argument.
28771
28772 2019-05-02 Martin Liska <mliska@suse.cz>
28773
28774 PR target/88809
28775 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28776 With -minline-all-stringops use inline expansion using 4B loop.
28777 * doc/invoke.texi: Document the change of
28778 -minline-all-stringops.
28779
28780 2019-05-01 Jeff Law <law@redhat.com>
28781
28782 PR tree-optimization/88797
28783 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28784 PHI feeds a conditional on the RHS of an assignment.
28785
28786 2019-04-30 Andrew Waterman <andrew@sifive.com>
28787 Jim Wilson <jimw@sifive.com>
28788
28789 * config/riscv/constraints.md (L): New.
28790 * config/riscv/predicates.md (lui_operand): New.
28791 (sfb_alu_operand): New.
28792 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28793 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28794 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28795 * config/riscv/risc.md (type): Add sfb_alu.
28796 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28797 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28798 (branch_zero<mode>): Delete.
28799 (mov<mode>cc): New.
28800 (mov<GPR:mode><X:mode>cc): Likewise.
28801 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28802
28803 2019-04-30 Nathan Sidwell <nathan@acm.org>
28804
28805 * tree.h (MARK_TS_EXP): New.
28806
28807 2019-04-30 Martin Liska <mliska@suse.cz>
28808
28809 * opts.c (enable_warning_as_error): Provide hints
28810 for unknown options.
28811
28812 2019-04-30 Martin Liska <mliska@suse.cz>
28813
28814 PR debug/90288
28815 * doc/invoke.texi: Add missing dash for gas-locview-support
28816 and gno-as-locview-support.
28817
28818 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28819
28820 PR target/89093
28821 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28822 whitespace at the start of target attribute string.
28823
28824 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28825
28826 PR target/86538
28827 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28828 Define __ARM_FEATURE_ATOMICS.
28829
28830 2019-04-30 Martin Liska <mliska@suse.cz>
28831
28832 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28833 into built_in_function enum. Remove code for endp == 2 and
28834 use BUILT_IN_* constants.
28835 (gimple_fold_builtin): Call the function with fcode.
28836
28837 2019-04-30 Martin Liska <mliska@suse.cz>
28838
28839 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28840 DECL_FUNCTION_CODE into ix86_builtins enum before
28841 the switch statement.
28842
28843 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28844
28845 PR tree-optimization/89475
28846 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28847 calls.
28848
28849 2019-04-30 Martin Liska <mliska@suse.cz>
28850
28851 PR translation/90274
28852 * opts.c (print_filtered_help): Wrap string in _(...).
28853
28854 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28855
28856 PR tree-optimization/90240
28857 Revert:
28858 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28859
28860 PR tree-optimization/90078
28861 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28862 checks for infinite_cost overflow.
28863
28864 2019-04-29 Jeff Law <law@redhat.com>
28865
28866 * passes.def: Move -Wrestrict pass after copy propagation.
28867
28868 2019-04-29 Maya Rashish <coypu@sdf.org>
28869
28870 * config.gcc (default_gnu_indirect_function): Default to yes
28871 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28872 sparc*-*-netbsd*, x86_64-*-netbsd*.
28873
28874 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28875
28876 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28877 where cond2 is NE_EXPR.
28878 (is_value_included_in): Update comment.
28879
28880 2019-04-29 Richard Biener <rguenther@suse.de>
28881
28882 PR tree-optimization/90278
28883 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28884 EH on comparison simplification.
28885
28886 2019-04-29 Jason Merrill <jason@redhat.com>
28887
28888 PR c++/82081 - tail call optimization breaks noexcept
28889 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28890 nothrow function to a might-throw function into a tail call.
28891
28892 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28893
28894 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28895 (DDR_INNER_LOOP): Likewise.
28896 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28897 (initialize_data_dependence_relation): Likewise.
28898 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28899
28900 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28901
28902 PR rtl-optimization/90257
28903 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28904 return value.
28905
28906 Revert the revert:
28907 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28908
28909 PR target/90178
28910 Revert:
28911 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28912
28913 Revert the revert:
28914 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28915
28916 Revert:
28917 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28918
28919 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28920
28921 2019-04-29 Richard Biener <rguenther@suse.de>
28922
28923 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28924 rhs issue a reset.
28925
28926 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28927
28928 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28929 varasm.h, and netbsd-protos.h.
28930
28931 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28932
28933 PR target/89261
28934 * config/i386/i386-protos.h (ix86_data_alignment): Change
28935 the second argument type to unsigned int.
28936 * config/i386/i386.c (ix86_data_alignment): Change "align"
28937 argument type to unsigned int.
28938
28939 2019-04-27 Martin Liska <mliska@suse.cz>
28940
28941 PR middle-end/90258
28942 * opt-suggestions.c (option_proposer::build_option_suggestions):
28943 When get_valid_option_values returns empty values, add the
28944 misspelling candidate.
28945
28946 2019-04-26 Jim Wilson <jimw@sifive.com>
28947
28948 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28949 parameter.
28950 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28951 Pass orig_mode to riscv_build_integer.
28952 (riscv_split_integer): Pass mode to riscv_move_integer.
28953 (riscv_legitimize_const_move): Likewise.
28954 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28955 promoted_mode. Replace force_reg call with code to load constant into
28956 promoted reg and then subreg it for the store.
28957 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28958 riscv_move_integer.
28959
28960 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28961
28962 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28963 corrupt codes.
28964
28965 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28966
28967 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28968 commentary about the encoding of precision.
28969
28970 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28971
28972 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28973 * config/i386/t-freebsd64: New file.
28974 * config.gcc: Add the t-freebsd64 for multilib support.
28975
28976 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28977
28978 * doc/extend.texi (vector_size): Add missing comma after @xref.
28979
28980 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28981
28982 * BASE-VER: Set to 10.0.0.
28983
28984 2019-04-25 Richard Biener <rguenther@suse.de>
28985
28986 PR middle-end/89765
28987 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28988 VIEW_CONVERT_EXPR into one operating on an rvalue.
28989
28990 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28991
28992 PR target/89929
28993 * config/i386/i386.c (feature_priority): Moved to file scope.
28994 (processor_features): Likewise.
28995 (processor_model): Likewise.
28996 (_arch_names_table): Likewise.
28997 (arch_names_table): Likewise.
28998 (_feature_list): Removed.
28999 (feature_list): Likewise.
29000 (_isa_names_table): Moved to file scope. Add priority.
29001 (isa_names_table): Likewise.
29002 (get_builtin_code_for_version): Replace feature_list with
29003 isa_names_table. Update error message for P_ZERO priority.
29004
29005 2019-04-25 Richard Biener <rguenther@suse.de>
29006
29007 * tree-pass.h (make_pass_phi_only_cprop): Remove.
29008 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
29009
29010 2019-04-24 Jeff Law <law@redhat.com>
29011
29012 PR tree-optimization/90037
29013 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
29014 * passes.def: Replace all instance of phi-only cprop with the
29015 lattice propagator. Move propagation pass from after erroneous
29016 path isolation to before erroneous path isolation.
29017 * tree-ssa-phionlycprop.c: Remove.
29018
29019 2019-04-24 Richard Biener <rguenther@suse.de>
29020
29021 PR middle-end/90213
29022 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
29023 by size and BITS_PER_UNIT on poly-wide-ints.
29024
29025 2019-04-25 Richard Biener <rguenther@suse.de>
29026
29027 PR middle-end/90194
29028 * match.pd: Add pattern to simplify view-conversion of an
29029 empty constructor.
29030
29031 2019-04-24 Clement Chigot <clement.chigot@atos.net>
29032
29033 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
29034 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
29035 for Go on 32 bit AIX.
29036 * config/rs6000/aix72.h: Likewise.
29037
29038 2019-04-24 Jakub Jelinek <jakub@redhat.com>
29039
29040 PR target/90193
29041 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
29042 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
29043
29044 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
29045
29046 PR target/89952
29047 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
29048 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
29049 for restored hard frame pointer.
29050 (s390_sched_dependencies_evaluation): Implement new target hook.
29051 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
29052
29053 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
29054
29055 * config/arc/arc-options.def: Fix typos and spelling mistakes.
29056 * config/arc/arc.c (arc_init): Cleanup warning message.
29057 (arc_override_options): Likewise.
29058
29059 2019-04-24 Jakub Jelinek <jakub@redhat.com>
29060
29061 PR target/90187
29062 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
29063 a register if both if_true and if_false are MEMs.
29064
29065 PR tree-optimization/90208
29066 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
29067 after labels of new_bb, not before them.
29068
29069 PR tree-optimization/90211
29070 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
29071 which are not SSA_NAMEs.
29072
29073 2018-04-23 Sudakshina Das <sudi.das@arm.com>
29074
29075 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
29076 AArch64.
29077 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
29078
29079 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
29080
29081 PR rtl-optimization/87979
29082 * modulo-sched.c (sms_schedule): Start ii value "mii" should
29083 not equal zero.
29084
29085 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
29086
29087 PR rtl-optimization/84032
29088 * modulo-sched.c (ps_insn_find_column): Change condition so that
29089 branch will always be the last insn in a row inside partial
29090 schedule.
29091
29092 2019-04-23 Richard Biener <rguenther@suse.de>
29093
29094 PR debug/90131
29095 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
29096 dest_single_pred_p argument.
29097 (remove_forwarder_block): Adjust.
29098 (remove_forwarder_block_with_phi): Likewise.
29099
29100 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29101 Bernd Edlinger <bernd.edlinger@hotmail.de>
29102 Jakub Jelinek <jakub@redhat.com>
29103
29104 PR target/89093
29105 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
29106 if used with general-regs-only.
29107 (arm_conditional_register_usage): Don't add non-general regs if
29108 general-regs-only.
29109 (arm_valid_target_attribute_rec): Handle general-regs-only.
29110 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
29111 general-regs-only.
29112 (TARGET_HARD_FLOAT_SUB): Define.
29113 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
29114 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
29115 (TARGET_REALLY_IWMMXT2): Likewise.
29116 * config/arm/arm.opt: Add -mgeneral-regs-only.
29117 * doc/extend.texi: Document ARM general-regs-only target.
29118 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
29119
29120 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29121
29122 PR tree-optimization/90078
29123 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
29124 checks for infinite_cost overflow.
29125
29126 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29127
29128 PR tree-optimization/90021
29129 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
29130 and check univariate against it.
29131 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
29132 * tree-data-ref.c (add_other_self_distances): Pass new argument.
29133
29134 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
29135
29136 PR target/90178
29137 Revert:
29138 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
29139
29140 Revert the revert:
29141 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
29142
29143 Revert:
29144 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
29145
29146 * lra-spills.c (lra_final_code_change): Remove useless move insns.
29147
29148 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
29149
29150 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
29151 names using operand format, rather than hard-wired.
29152 (speculation_barrier): Likewise.
29153
29154 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
29155
29156 PR tree-optimization/88055
29157 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
29158 (gen_one_condition): Use it if !HONOR_NANS.
29159
29160 2019-04-19 Jakub Jelinek <jakub@redhat.com>
29161
29162 PR middle-end/90139
29163 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
29164 assign_temp instead of gen_reg_rtx.
29165
29166 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
29167
29168 PR translation/90118
29169 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29170 Add missing space before %<.
29171
29172 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
29173
29174 PR rtl-optimization/87871
29175 * ira-lives.c (make_object_dead): Don't add conflicts to
29176 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
29177
29178 2019-04-18 Martin Sebor <msebor@redhat.com>
29179
29180 PR middle-end/89797
29181 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
29182 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
29183 assuming type size fits in SHWI.
29184
29185 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
29186
29187 PR ipa/85051
29188 * ipa-inline.c (flatten_function): New parameter UPDATE.
29189 (ipa_inline, early_inliner): Use it.
29190
29191 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29192
29193 * fold-const.c (int_const_binop): Return early on failure.
29194
29195 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29196
29197 PR middle-end/85164
29198 * combine.c (force_int_to_mode): Cast the argument rather than
29199 the result of known_alignment.
29200 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
29201
29202 2019-04-18 Richard Biener <rguenther@suse.de>
29203
29204 PR debug/90131
29205 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
29206 out from ...
29207 (remove_forwarder_block): ... here.
29208 (remove_forwarder_block_with_phi): Also move debug stmts here.
29209
29210 2019-04-18 Jakub Jelinek <jakub@redhat.com>
29211
29212 PR translation/79183
29213 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
29214 inform where appropriate.
29215
29216 2019-04-18 Richard Biener <rguenther@suse.de>
29217
29218 * tree.c (get_qualified_type): Put found type variants at the
29219 head of the variant list.
29220
29221 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29222
29223 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
29224
29225 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
29226
29227 PR target/90125
29228 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
29229 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
29230 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
29231 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
29232 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
29233
29234 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
29235
29236 * ira-conflicts.c (print_allocno_conflicts): Always print something,
29237 even for allocno's with no conflicts.
29238 (print_conflicts): Print an extra newline.
29239
29240 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29241
29242 * auto-inc-dec.c (attempt_change): Set the alignment of the
29243 temporary memory to that of the original.
29244
29245 2019-04-17 Joao Moreira <jmoreira@suse.de>
29246
29247 * targhooks.c (default_print_patchable_function_entry): Emit
29248 __patchable_function_entries section with writable flags to allow
29249 relocation resolution.
29250
29251 2019-04-17 Jonny Grant <jg@jguk.org>
29252
29253 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
29254
29255 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29256
29257 PR middle-end/90095
29258 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
29259 on lowpart SUBREGs.
29260
29261 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
29262
29263 * config/arc/arc.c (arc_init): Format diagnostic string.
29264 (arc_override_options): Likewise.
29265 (check_if_valid_regno_const): Likewise.
29266 (arc_reorg): Likewise.
29267
29268 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29269
29270 PR target/17108
29271 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
29272 name.
29273 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
29274 name.
29275 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
29276 (*movdi_update1): Use Pmode.
29277 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
29278 (movdi_<mode>_update_stack): Rename to ...
29279 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
29280 use Pmode.
29281 (*movsi_update1): Use Pmode.
29282 (*movsi_update2): Use Pmode.
29283 (movsi_update): Rename to ...
29284 (movsi_<mode>_update): ... this. Use Pmode.
29285 (movsi_update_stack): Fix condition.
29286 (*movhi_update1): Use Pmode. Fix argument to
29287 avoiding_indexed_address_p.
29288 (*movhi_update2): Ditto.
29289 (*movhi_update3): Ditto.
29290 (*movhi_update4): Ditto.
29291 (*movqi_update1): Ditto.
29292 (*movqi_update2): Ditto.
29293 (*movqi_update3): Ditto.
29294 (*movsf_update1, *movdf_update1): Merge, rename to...
29295 (*mov<mode>_update1): This. Use Pmode. Fix argument to
29296 avoiding_indexed_address_p. Add "size" attribute.
29297 (*movsf_update2, *movdf_update2): Merge, rename to...
29298 (*mov<mode>_update2): This. Ditto.
29299 (*movsf_update3): Use Pmode. Fix argument to
29300 avoiding_indexed_address_p.
29301 (*movsf_update4): Ditto.
29302 (allocate_stack): Simplify condition. Adjust pattern names.
29303
29304 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29305
29306 PR target/89093
29307 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
29308 whitespace at the start of target attribute string.
29309
29310 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
29311
29312 PR target/84369
29313 * config/rs6000/power9.md: Add store forwarding bypass.
29314
29315 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
29316
29317 PR debug/89528
29318 * valtrack.c (dead_debug_insert_temp): Reset debug references
29319 to the return value of a call being removed.
29320
29321 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29322
29323 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
29324 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
29325 implement target hook.
29326 (arc_memory_move_cost): New function.
29327 (TARGET_REGISTER_MOVE_COST): Define.
29328 (TARGET_MEMORY_MOVE_COST): Likewise.
29329 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
29330 (MEMORY_MOVE_COST): Likewise.
29331
29332 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29333
29334 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
29335 (sibcall_value_insn): Likewise.
29336 * config/arc/constraints.md (Rs5): Remove.
29337
29338 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29339
29340 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
29341 for last two fake registers.
29342 (arc_conditional_register_usage): Make sure fake frame and arg
29343 pointer regs are in general regs class.
29344 (FRAME_POINTER_MASK): Remove.
29345 (RETURN_ADDR_MASK): Remove.
29346 (arc_must_save_register): Use hard frame regnum.
29347 (frame_restore_reg): Use hard_frame_pointer_rtx.
29348 (arc_save_callee_saves): Likewise.
29349 (arc_restore_callee_saves): Likewise.
29350 (arc_save_callee_enter): Likewise.
29351 (arc_restore_callee_leave): Likewise.
29352 (arc_save_callee_milli): Likewise.
29353 (arc_eh_return_address_location): Likewise.
29354 (arc_check_multi): Use hard frame regnum.
29355 (arc_can_eliminate): Likewise.
29356 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
29357 for register allocator.
29358 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
29359 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
29360 (FRAME_POINTER_REGNUM): Change it to a fake register.
29361 (HARD_FRAME_POINTER_REGNUM): Defined.
29362 (ARG_POINTER_REGNUM): Change it to a new fake register.
29363 (ELIMINABLE_REGS): Update.
29364 (REGISTER_NAMES): Update names.
29365 * config/arc/arc.md (LP_START): Remove.
29366 (LP_END): Likewise.
29367 (shift_si3_loop): Update pattern.
29368
29369 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29370
29371 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
29372 to avoid delay slot scheduling.
29373 (arc_must_save_register): Don't save SP.
29374 * config/arc/arc.md (stack_tie): Remove.
29375 (UNSPEC_ARC_STKTIE): Likewise.
29376
29377 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
29378 Shiva Chen <shiva0217@gmail.com>
29379
29380 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
29381 code gen with large shift amount.
29382
29383 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
29384
29385 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
29386 subreg.
29387
29388 2019-04-16 Jakub Jelinek <jakub@redhat.com>
29389
29390 PR target/90096
29391 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
29392 print -m64/-mx32/-m32 if it is true.
29393 (ix86_debug_options, ix86_function_specific_print): Pass true as
29394 ADD_ABI_P to ix86_target_string.
29395 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
29396 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
29397 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
29398
29399 PR rtl-optimization/90082
29400 * dce.c (can_delete_call): New function.
29401 (deletable_insn_p, mark_insn): Use it.
29402
29403 PR tree-optimization/90090
29404 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
29405 throw internally.
29406 (is_division_by_square): Likewise. Formatting fix.
29407
29408 2019-04-16 Richard Biener <rguenther@suse.de>
29409
29410 PR tree-optimization/56049
29411 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
29412 equality check if alias-set zero will prevail.
29413
29414 2019-04-15 Jeff Law <law@redhat.com>
29415
29416 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
29417 size and alignment as unsigned.
29418
29419 2019-04-15 Richard Biener <rguenther@suse.de>
29420
29421 PR debug/90074
29422 * tree-loop-distribution.c (destroy_loop): Preserve correct
29423 debug info.
29424
29425 2019-04-15 Richard Biener <rguenther@suse.de>
29426
29427 PR tree-optimization/90071
29428 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
29429 abnormal operands from def stmts.
29430
29431 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
29432
29433 PR rtl-optimization/89794
29434 * combine.c (count_auto_inc): New function.
29435 (try_combine): Count how many auto_inc expressions there were in the
29436 original instructions. Ensure we have the same number in the new
29437 instructions. Remove the code that tried to ensure auto_inc side
29438 effects on i1 and i0 are not lost.
29439
29440 2019-04-15 Richard Biener <rguenther@suse.de>
29441
29442 PR ipa/88936
29443 * tree.h (auto_var_p): Declare.
29444 * tree.c (auto_var_p): New function, split out from ...
29445 (auto_var_in_fn_p): ... here.
29446 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
29447 member.
29448 (new_var_info): Initialize it.
29449 (set_uids_in_ptset): Also set the shadow variable uid if required.
29450 (ipa_pta_execute): Postprocess points-to solutions assigning
29451 shadow variable uids for locals that may reach their containing
29452 function recursively.
29453 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
29454 assert but instead check whether the points-to solution is
29455 a singleton.
29456
29457 2019-04-15 Martin Jambor <mjambor@suse.cz>
29458
29459 PR ipa/pr89693
29460 * cgraph.c (clone_of_p): Loop over clone chain for each step in
29461 the thunk chain.
29462
29463 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29464
29465 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
29466
29467 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29468 Kito Cheng <kito.cheng@gmail.com>
29469 Shiva Chen <shiva0217@gmail.com>
29470
29471 * config/nds32/nds32-md-auxiliary.c
29472 (nds32_legitimize_pic_address): Use new PIC pattern.
29473 (nds32_legitimize_tls_address): Use new TLS pattern.
29474 (nds32_output_symrel): New.
29475 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
29476 (nds32_alloc_relax_group_id): Ditto.
29477 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
29478 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
29479 relax_group_id.
29480 (nds32_group_tls_insn): Ditto.
29481 (nds32_group_float_insns): Ditto.
29482 * config/nds32/nds32.md (tls_le): New.
29483 (sym_got): Ditto.
29484
29485 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
29486
29487 * configure: Add nds32 target for dwarf2 debug_line checking.
29488 * configure.ac: Regenerated.
29489
29490 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
29491
29492 PR lto/89358
29493 * ipa-devirt.c (skip_in_fields_list_p): New.
29494 (odr_types_equivalent_p): Use it.
29495
29496 2019-04-13 Jakub Jelinek <jakub@redhat.com>
29497
29498 PR target/89093
29499 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29500 instead of strncmp when checking for thumb and arm. Formatting fixes.
29501
29502 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
29503
29504 * doc/install.texi: Document --with-target-system-zlib.
29505
29506 2019-04-12 Martin Sebor <msebor@redhat.com>
29507
29508 PR c/88383
29509 PR c/89288
29510 PR c/89798
29511 PR c/89797
29512 * targhooks.c (default_vector_alignment): Avoid assuming
29513 argument fits in SHWI.
29514 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29515 a shift expression.
29516 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29517
29518 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29519
29520 PR rtl-optimization/89965
29521 * dce.c: Include rtl-iter.h.
29522 (struct check_argument_load_data): New type.
29523 (check_argument_load): New function.
29524 (find_call_stack_args): Check for loads from stack slots still tracked
29525 in sp_bytes and punt if any is found.
29526
29527 * config/mips/loongson-mmiintrin.h: Fix up #error message.
29528
29529 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
29530
29531 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29532 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29533
29534 2019-04-12 Martin Liska <mliska@suse.cz>
29535
29536 PR middle-end/89970
29537 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29538 in error message.
29539 (separate_attrs): Handle multiple 'default's.
29540 (expand_target_clones): Rework error handling code.
29541
29542 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
29543
29544 PR target/87532
29545 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29546 mode of vector rather than mode of destination for move instruction.
29547 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29548 Use QI inner mode with V16QI vector mode.
29549
29550 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29551
29552 PR target/52726
29553 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29554 "invalid %%t operand" in output_operand_lossage message.
29555
29556 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
29557
29558 * config/s390/predicates.md (permute_pattern_operand): New
29559 predicate.
29560 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29561 operand for the permute pattern.
29562 ("*vec_perm<mode>"): New insn definition.
29563 ("bswap<mode>"): Generate the permute pattern operand in the
29564 expander and perform the operand reloads for pre arch13 level
29565 already.
29566 ("*bswap<mode>_emu"): Rename to ...
29567 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29568 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29569 Add the USE operand for the permute pattern.
29570 ("*vec_set_bswap_vec<mode>"): Likewise.
29571
29572 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29573
29574 PR c/89946
29575 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29576 and gcc_unreachable if it fails, just call tree_to_uhwi which
29577 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29578 Start warning message with a lower-case letter. Formatting fixes.
29579
29580 PR rtl-optimization/90026
29581 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29582 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29583 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29584 in cfglayout mode, use emit_barrier_after_bb.
29585
29586 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29587
29588 PR rtl-optimization/87763
29589 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29590 New Instruction.
29591
29592 2019-04-11 Tom de Vries <tdevries@suse.de>
29593
29594 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29595 max macro using statement expression.
29596
29597 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29598
29599 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29600 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29601 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29602 read_only_private_data_section using xcoff_private_rodata_section_name.
29603 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29604
29605 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29606
29607 PR target/90016
29608 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29609
29610 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29611
29612 PR rtl-optimization/89965
29613 * dce.c (sp_based_mem_offset): New function.
29614 (find_call_stack_args): Use sp_based_mem_offset.
29615
29616 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29617
29618 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29619
29620 2019-04-11 Richard Biener <rguenther@suse.de>
29621
29622 PR tree-optimization/90020
29623 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29624 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29625 * tree-ssa-pre.c (compute_avail): Use it to not put
29626 possibly trapping references after a call that might not
29627 return into EXP_GEN.
29628 * gcse.c (compute_hash_table_work): Do not elide
29629 marking a block containing a call if the call might not
29630 return.
29631
29632 2019-04-11 Richard Biener <rguenther@suse.de>
29633
29634 PR tree-optimization/90018
29635 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29636 Test both SLP and interleaving variants.
29637
29638 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29639
29640 * config/s390/8561.md: New file.
29641 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29642 Add arch13 cpu model.
29643 * config/s390/s390-opts.h (enum processor_type): Likewise.
29644 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29645 (s390_get_unit_mask): Likewise.
29646 (s390_is_fpd): Likewise.
29647 (s390_is_fxd): Likewise.
29648 * config/s390/s390.h (s390_tune_attr): Likewise.
29649 * config/s390/s390.md: Include arch13 pipeline description.
29650 * config/s390/s390.opt: Add arch13.
29651
29652 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29653
29654 PR rtl-optimization/87763
29655 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29656 New prototype.
29657 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29658 New function.
29659 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29660 New instruction.
29661 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29662 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29663 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29664 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29665
29666 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29667
29668 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29669 "Although" in -fipa-icf documentation.
29670
29671 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29672 of using multiple -g options.
29673
29674 2019-04-10 Martin Liska <mliska@suse.cz>
29675
29676 PR gcov-profile/89959
29677 * doc/gcov.texi: Make documentation of -x option
29678 more precise.
29679
29680 2019-04-10 Richard Biener <rguenther@suse.de>
29681
29682 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29683 member.
29684 (DR_GROUP_SAME_DR_STMT): Remove.
29685 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29686 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29687 replace with assert.
29688 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29689 (vect_record_grouped_load_vectors): Remove unreachable code.
29690
29691 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29692
29693 PR target/90016
29694 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29695 obsolete reference to N.
29696
29697 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29698
29699 PR middle-end/90025
29700 * expr.c (store_expr): Set properly size on the MEM passed to
29701 clear_storage.
29702
29703 PR c++/90010
29704 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29705 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29706 translation is needed, and when translation is needed, only append
29707 ... if the string length is hostsz or more bytes long. Avoid using
29708 strncpy or strcat.
29709
29710 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29711
29712 PR target/90024
29713 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29714 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29715 into three.
29716 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29717 differences directly.
29718 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29719
29720 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29721
29722 PR translation/90011
29723 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29724 from diagnostics.
29725 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29726 diagnostics.
29727 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29728 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29729 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29730 trailing space from -gsplit-dwarf diagnostics.
29731
29732 PR tree-optimization/89998
29733 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29734 instead of integer_type_node if possible, don't add ranges if return
29735 type is not compatible with int.
29736 * gimple-fold.c (gimple_fold_builtin_sprintf,
29737 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29738 integer_type_node.
29739
29740 2019-04-09 Martin Liska <mliska@suse.cz>
29741
29742 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29743 * doc/install.texi: Document the new config.
29744
29745 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29746
29747 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29748 use gimple_expr_type for load and store calls. Skip over the
29749 condition argument in a conditional internal function.
29750 Protect use of TREE_INT_CST_LOW.
29751
29752 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29753
29754 PR target/90015
29755 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29756 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29757 trailing period from it too.
29758
29759 2019-04-08 wu yuan <wuyuan5@huawei.com>
29760
29761 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29762 * config/aarch64/aarch64.md: Add "tsv110.md".
29763 * config/aarch64/tsv110.md: New file.
29764
29765 2019-04-08 Richard Biener <rguenther@suse.de>
29766
29767 PR tree-optimization/90006
29768 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29769 calls like lrint.
29770
29771 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29772
29773 PR target/83033
29774 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29775 construction.
29776 (fma_root_node): Likewise.
29777 (func_fma_steering): Likewise.
29778
29779 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29780
29781 PR rtl-optimization/89865
29782 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29783
29784 PR rtl-optimization/89865
29785 * config/i386/i386.md
29786 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29787 numbers not to clash with the additional operands[4].
29788 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29789 with extra register copy in the middle.
29790
29791 2019-04-08 Martin Liska <mliska@suse.cz>
29792
29793 PR gcov-profile/89961
29794 * doc/gcov.texi: Document data_file.
29795 * gcov.c (generate_results): Add data_info into JSON output.
29796
29797 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29798
29799 PR tree-optimization/89725
29800 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29801 loop's chrec as invariant symbol.
29802 * tree-chrec.h (chrec_contains_symbols): New parameter.
29803 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29804 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29805 function of loops not in DDR's loop_nest.
29806 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29807
29808 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29809
29810 PR target/89623
29811 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29812 Mask.
29813
29814 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29815
29816 PR target/89945
29817 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29818 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29819
29820 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29821
29822 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29823 targetm.fixed_condition_code_regs.
29824
29825 2019-04-05 Richard Biener <rguenther@suse.de>
29826
29827 PR debug/89892
29828 PR debug/89905
29829 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29830 debug bind stmts but reset them if they are not valid at the
29831 destination.
29832
29833 2019-04-05 Martin Liska <mliska@suse.cz>
29834
29835 PR translation/89936
29836 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29837 order to wrap keywords or arguments.
29838 * collect2.c (main): Likewise.
29839 (scan_prog_file): Likewise.
29840 (scan_libraries): Likewise.
29841 * common/config/riscv/riscv-common.c
29842 (riscv_subset_list::parsing_subset_version): Likewise.
29843 (riscv_subset_list::parse_std_ext): Likewise.
29844 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29845 Likewise.
29846 * config/arm/arm.c (arm_option_override): Likewise.
29847 * config/cris/cris.c (cris_print_operand): Likewise.
29848 * config/darwin-c.c (darwin_pragma_options): Likewise.
29849 (darwin_pragma_unused): Likewise.
29850 (darwin_pragma_ms_struct): Likewise.
29851 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29852 * config/i386/i386.c (print_reg): Likewise.
29853 (ix86_print_operand): Likewise.
29854 * config/i386/xm-djgpp.h: Likewise.
29855 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29856 * config/m32c/m32c.c (m32c_option_override): Likewise.
29857 * config/msp430/msp430.c (msp430_option_override): Likewise.
29858 * config/nds32/nds32.c (nds32_option_override): Likewise.
29859 * config/nvptx/mkoffload.c (main): Likewise.
29860 * config/rx/rx.c (rx_print_operand): Likewise.
29861 (valid_psw_flag): Likewise.
29862 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29863 (vms_pragma_nomember_alignment): Likewise.
29864 (vms_pragma_extern_model): Likewise.
29865 * lto-wrapper.c (compile_offload_image): Likewise.
29866 * omp-offload.c (oacc_parse_default_dims): Likewise.
29867 * symtab.c (symtab_node::verify_base): Likewise.
29868 * tlink.c (recompile_files): Likewise.
29869 (start_tweaking): Likewise.
29870 * tree-profile.c (parse_profile_filter): Likewise.
29871
29872 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29873
29874 PR tree-optimization/89956
29875 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29876 multiple negates of the same value.
29877
29878 2019-04-04 Martin Sebor <msebor@redhat.com>
29879
29880 PR middle-end/89957
29881 PR middle-end/89911
29882 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29883 have the same precision since the function crashes otherwise.
29884 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29885 has non-zero arguments.
29886
29887 2019-04-04 Martin Sebor <msebor@redhat.com>
29888
29889 PR middle-end/89934
29890 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29891 out if the number of arguments is less than expected.
29892
29893 2019-04-04 Jeff Law <law@redhat.com>
29894
29895 PR rtl-optimization/89399
29896 * ree.c (combine_set_extension): Use single_set rather than
29897 digging into PATTERN for items on the candidate list.
29898 (combine_reaching_defs): Likewise.
29899
29900 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29901
29902 PR rtl-optimization/46590
29903 * loop-invariant.c (find_defs): Move df_remove_problem and
29904 df_process_deferred_rescans to move_invariants.
29905 Move df_live_add_problem and df_live_set_all_dirty calls
29906 to move_invariants.
29907 (move_invariants): Likewise.
29908 (move_loop_invariants): Likewise, making the df_live calls
29909 conditional on -O. Remove the problem again if we added it
29910 locally.
29911
29912 2019-04-03 qing zhao <qing.zhao@oracle.com>
29913
29914 PR tree-optimization/89730
29915 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29916 -flive-patching=inline-only-static.
29917 (can_inline_edge_by_limits_p): Add the checking for
29918 -flive-patching=inline-only-static and grant always_inline
29919 even when -flive-patching=inline-only-static is specified.
29920
29921 2019-04-03 Jeff Law <law@redhat.com>
29922
29923 PR rtl-optimization/81025
29924 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29925
29926 2019-04-03 Richard Biener <rguenther@suse.de>
29927
29928 PR tree-optimization/84101
29929 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29930 regs.h for hard_regno_nregs.
29931 (cfun_returns): New helper.
29932 (vect_model_store_cost): When vectorizing a store to a decl
29933 we return and the function ABI returns in a multi-reg location
29934 account for the possible spilling that will happen.
29935
29936 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29937
29938 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29939 displacement addresses for vector mode operands.
29940
29941 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29942
29943 * config/arc/arc.c (GMASK_LEN): Define.
29944 (arc_restore_callee_saves): Restore first blink when
29945 !optimize_size.
29946
29947 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29948
29949 * doc/extend.texi: Add deprecated comment on sign-return-address
29950 function attribute and add mbranch-protection.
29951 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29952
29953 2019-04-03 Richard Biener <rguenther@suse.de>
29954
29955 PR lto/89896
29956 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29957 the all target phony.
29958
29959 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29960
29961 PR target/89902
29962 PR target/89903
29963 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29964 Return false for variable DImode shifts.
29965 (dimode_scalar_chain::compute_convert_gain): Do not handle
29966 register count operand in variable DImode shifts.
29967 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29968 count argument of a variable shift instruction to a vector register.
29969 (dimode_scalar_chain::convert_reg): Remove support to convert
29970 count argument of a variable shift instruction.
29971
29972 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29973
29974 PR rtl-optimization/84206
29975 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29976 iterating over loop headers.
29977
29978 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29979
29980 PR rtl-optimization/85876
29981 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29982 beyond the original fence.
29983
29984 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29985
29986 * config.gcc: Mark spu* targets as deprecated/obsolete.
29987
29988 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29989
29990 * config/s390/s390-builtin-types.def: New builtin function type
29991 definitions. Remove unused types.
29992 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29993 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29994 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29995 overloaded builtins.
29996 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29997 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29998 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29999 (vec_double, vec_signed, vec_unsigned): Define to use the new
30000 overloaded builtins.
30001 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
30002 Remove expanders.
30003
30004 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30005
30006 * config/s390/s390-builtin-types.def: New builtin function type
30007 definitions.
30008 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
30009 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
30010 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
30011 (s390_vstrszh, s390_vstrszf): New low-level builtins.
30012 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
30013 constant definitions.
30014 * config/s390/vecintrin.h (vec_search_string_cc)
30015 (vec_search_string_until_zero_cc): New builtin name definitions.
30016 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
30017 expanders.
30018 ("vec_vstrs<mode>"): New insn definition.
30019
30020 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30021
30022 * config/s390/s390-builtin-types.def: Add new builtin function
30023 types.
30024 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
30025 New overloaded builtins.
30026 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
30027 s390_vsrd.
30028 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
30029 (UNSPEC_VEC_SLDBYTE): ... this.
30030 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
30031 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
30032 definitions.
30033 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
30034 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
30035 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
30036
30037 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30038
30039 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
30040 New insn definition.
30041 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
30042 * config/s390/vector.md (V_HW_HSD): ... here.
30043
30044 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30045
30046 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
30047 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
30048 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
30049 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
30050 New insn definitions.
30051
30052 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30053
30054 * config/s390/s390-builtin-types.def: Add new builtin function type.
30055 * config/s390/s390-builtins.def: Add overloaded builtin
30056 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
30057 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
30058 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
30059 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
30060 ("eltswap<mode>"): New expander.
30061 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
30062 insn definitions.
30063
30064 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30065
30066 * config/s390/s390-builtin-types.def: Add new builtin function types.
30067 * config/s390/s390-builtins.def: Add overloaded builtin
30068 s390_vec_revb. Add low-level builtins for vlbr and vstbr
30069 instructions.
30070 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
30071 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
30072 ("bswap<mode>"): New expander.
30073 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
30074
30075 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30076
30077 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
30078 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
30079 vector builtin version number in __VEC__.
30080
30081 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30082
30083 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
30084 iterators.
30085 (SFSI): New mode attribute.
30086 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
30087 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
30088 rename to ...
30089 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
30090 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
30091 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
30092 ("floatsi<mode>2"): Add wcefb instruction.
30093
30094 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30095
30096 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
30097 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
30098 mode iterators.
30099 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
30100 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
30101 support 32 bit fp-int conversions. Rename to ...
30102 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30103 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30104 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
30105 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
30106 ... to these.
30107
30108 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30109
30110 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
30111 if-then-else constructs if we can use the select instruction.
30112 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
30113
30114 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30115
30116 * config/s390/s390.md ("*popcountdi_arch13_cc")
30117 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
30118 definition.
30119 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
30120 Append _z196 to make it ...
30121 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
30122 ("popcounthi2_z196"): ... this.
30123 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
30124 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
30125
30126 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30127
30128 * config/s390/s390.c (s390_canonicalize_comparison): Convert
30129 certain compares for arch13 in order to make use of the condition
30130 code result produced by the new instructions.
30131 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
30132 nxrk, and nxgrk instruction patterns.
30133 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
30134 (inv_no): Add new code iterator together with some attributes.
30135 ("*andc_split_<mode>"): Disable splitter for arch13.
30136 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
30137 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
30138 ("*<ANDOR:bitops_name>c<GPR:mode>")
30139 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
30140 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
30141 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
30142 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
30143
30144 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30145
30146 * common/config/s390/s390-common.c (processor_flags_table): New
30147 entry for arch13.
30148 * config.gcc: Support arch13 with the --with-arch= configure flag.
30149 * config/s390/driver-native.c (s390_host_detect_local_cpu):
30150 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
30151 * config/s390/s390.c (s390_get_sched_attrmask)
30152 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
30153 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
30154 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
30155 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
30156 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
30157 definitions.
30158 * config/s390/s390.opt: Support arch13 as processor type in
30159 command line options.
30160
30161 2019-04-02 Martin Liska <mliska@suse.cz>
30162
30163 PR translation/89912
30164 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
30165 Fix param description of graphite-max-arrays-per-scop.
30166
30167 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
30168
30169 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
30170 (ASAN_CC1_SPEC): Use it in 64-bit mode.
30171 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
30172
30173 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30174
30175 PR rtl-optimization/85412
30176 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
30177 sel_sched_region_1, not after.
30178
30179 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30180
30181 PR rtl-optimization/86928
30182 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
30183 compute_live if necessary.
30184 (sel_redirect_edge_and_branch): Likewise.
30185
30186 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
30187
30188 PR rtl-optimization/89865
30189 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
30190 register if it is a part of small class.
30191
30192 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30193
30194 PR rtl-optimization/87273
30195 * sel-sched-ir.c (merge_fences): Remove assert.
30196
30197 2019-04-01 Richard Biener <rguenther@suse.de>
30198
30199 PR tree-optimization/46590
30200 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
30201 (dom_walker::m_reachability): Add in place of...
30202 (dom_walker::m_skip_unreachable_blocks): ...this.
30203 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
30204 Move complex initialization ...
30205 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
30206 lazily and initialize edge flags on each invocation.
30207 (dom_walker::bb_reachable): Use m_reachability.
30208
30209 2019-04-01 Martin Liska <mliska@suse.cz>
30210
30211 PR driver/89861
30212 * opt-suggestions.c (option_proposer::build_option_suggestions):
30213 Add variant without any argument in order to provide better
30214 hints.
30215
30216 2019-04-01 Richard Biener <rguenther@suse.de>
30217
30218 PR c/71598
30219 * gimple.c: Include langhooks.h.
30220 (gimple_get_alias_set): Treat enumeral types as the underlying
30221 integer type.
30222
30223 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
30224 Eric Botcazou <ebotcazou@adacore.com>
30225
30226 PR rtl-optimization/89862
30227 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
30228 that operates on the full registers for WORD_REGISTER_OPERATIONS
30229 architectures.
30230
30231 2019-03-29 Jim Wilson <jimw@sifive.com>
30232
30233 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
30234 Clear MASK_RVC and then set if C subset supported.
30235
30236 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30237
30238 PR c/89872
30239 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
30240 non-addressable complit into its initializer if it is volatile.
30241
30242 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
30243
30244 * opts-common.c (integral_argument): Set errno properly in one case.
30245
30246 2019-03-29 Martin Liska <mliska@suse.cz>
30247
30248 * doc/invoke.texi: Remove -Wchkp from documentation.
30249
30250 2019-03-29 Martin Liska <mliska@suse.cz>
30251
30252 * dbgcnt.c (print_limit_reach): New function.
30253 (dbg_cnt): Use it.
30254
30255 2019-03-29 Martin Liska <mliska@suse.cz>
30256
30257 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
30258 (dbg_cnt_process_opt): Parse first tokens aas
30259 dbg_cnt_process_single_pair is also using strtok.
30260
30261 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30262
30263 PR rtl-optimization/87485
30264 * function.c (expand_function_end): Move stack_protect_epilogue
30265 before loading of return value into hard register(s).
30266
30267 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30268
30269 PR middle-end/89621
30270 * tree-inline.h (struct copy_body_data): Add
30271 dont_remap_vla_if_no_change flag.
30272 * tree-inline.c (remap_type_3, remap_type_2): New functions.
30273 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
30274 and remap_type_2 returns false.
30275 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
30276 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
30277 only from where it is copied to nested contexts.
30278
30279 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30280
30281 PR target/89865
30282 * config/i386/i386.md (RMW operation with LEA peephole):
30283 Use LEAMODE mode attribute instead of SWI mode iterator for
30284 LEA pattern.
30285
30286 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30287
30288 PR target/89848
30289 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
30290 Also process XEXP (src, 0) of a shift insn.
30291
30292 2019-03-28 David Malcolm <dmalcolm@redhat.com>
30293
30294 PR middle-end/89725
30295 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
30296 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
30297
30298 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30299
30300 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
30301 test.
30302 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
30303 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
30304 immediately after first one with df_analyze in between, but rather
30305 process all bbs, queueing ones that need second pass in a worklist,
30306 df_analyze, process queued debug insn changes and if second pass is
30307 needed, process bbs from worklist, df_analyze, process queued debug
30308 insns again.
30309
30310 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
30311 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
30312 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
30313
30314 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
30315
30316 PR c/79022
30317 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
30318 definition.
30319
30320 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
30321
30322 PR target/85667
30323 * config/i386/i386.c (ix86_function_value_1): Call the newly added
30324 function for 32-bit MS_ABI.
30325 (function_value_ms_32): New function.
30326
30327 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
30328
30329 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
30330 (movdi): Call gen_movdi_symbol_save_scc.
30331 (gen_movdi_symbol_save_scc): New insn and split.
30332
30333 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
30334
30335 PR rtl-optimization/89313
30336 * function.c (matching_constraint_num): New static function.
30337 (match_asm_constraints_1): Use it. Fixup white space and comment.
30338 Don't replace inputs with non-matching constraints which conflict
30339 with early clobber outputs.
30340
30341 2019-03-27 Jeff Law <law@redhat.com>
30342
30343 PR rtl-optimization/87761
30344 PR rtl-optimization/89826
30345 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
30346 slightly later.
30347 (pass_cprop_hardreg::execute): Call df_analyze after adding the
30348 note problem to get REG_DEAD/REG_UNUSED notes updated.
30349
30350 2019-03-27 Richard Biener <rguenther@suse.de>
30351
30352 PR tree-optimization/89463
30353 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
30354 queue edges to remove.
30355 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
30356 dead stmts. Delay edge removal until PHIs are removed to
30357 make debug-stmt creation not confused by seemingly degenerate
30358 PHIs.
30359
30360 2019-03-27 Alan Modra <amodra@gmail.com>
30361
30362 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
30363 throughout file.
30364 * config/rs6000/darwin.h: Likewise.
30365 * config/rs6000/rs6000.c: Likewise.
30366
30367 2019-03-27 Alan Modra <amodra@gmail.com>
30368
30369 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
30370 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
30371
30372 2019-03-26 Andrew Waterman <andrew@sifive.com>
30373 Jim Wilson <jimw@sifive.com>
30374
30375 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
30376 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
30377 (generic_idivdi, generic_fmul_single, generic_fmul_double)
30378 (generic_fdiv, generic_fsqrt): Add check for generic tune.
30379 (generic_alu): Add auipc to type list.
30380 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
30381 (riscv_microarchitecture): Declare.
30382 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
30383 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
30384 field.
30385 (riscv_microarchitecture): New.
30386 (sifive_7_tune_info): New.
30387 (riscv_cpu_info_table): Add microarchitecture value for rocket and
30388 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
30389 entries.
30390 (riscv_store_data_bypass_p): New.
30391 (riscv_option_override): Set riscv_microarchitecture from
30392 cpu->microarchitecture.
30393 * config/riscv/riscv.md: Include sifive-7.md.
30394 (type): Add auipc.
30395 (tune): New.
30396 (auipc<mode>): Change type to auipc.
30397 (restore_stack_nonlocal): New.
30398 * config/riscv/sifive-7.md: New.
30399 * doc/invoke.texi (RISC-V Options): Update mtune docs.
30400
30401 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
30402
30403 PR target/89827
30404 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
30405 Also process XEXP (src, 0) of a shift insn.
30406
30407 2019-03-26 Richard Biener <rguenther@suse.de>
30408
30409 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
30410 (copy_debug_stmt): Likewise.
30411 (expand_call_inline): Likewise.
30412 (copy_bb): Avoid redundant lookup & set of gimple_block.
30413 * gimple-low.c (lower_gimple_return): Likewise.
30414 (lower_builtin_setjmp): Likewise.
30415
30416 2019-03-26 Jakub Jelinek <jakub@redhat.com>
30417
30418 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
30419 is constant 0, turn into static const data member initialized to false.
30420 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
30421 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
30422
30423 2019-03-26 Jason Merrill <jason@redhat.com>
30424 Jakub Jelinek <jakub@redhat.com>
30425
30426 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
30427 method.
30428 (mem_alloc_description::release_object_overhead): Fix comment typos.
30429 * hash-table.h (hash_table::~hash_table): Call
30430 release_instance_overhead only if m_entries is non-NULL, otherwise
30431 call unregister_descriptor.
30432
30433 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
30434
30435 PR tree-optimization/81740
30436 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30437 In case of outer loop vectorization, check for backward dependence
30438 at the inner loop if outer loop dependence is reversed.
30439
30440 2019-03-26 Alan Modra <amodra@gmail.com>
30441
30442 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
30443 rs6000_vector_mem init. Correct wI and wJ comment.
30444
30445 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
30446
30447 PR rtl-optimization/88347
30448 PR rtl-optimization/88423
30449 * sched-deps.c (sched_analyze_insn): Take into account that for
30450 tablejumps the barrier appears after a label and a jump_table_data.
30451
30452 2019-03-25 Martin Sebor <msebor@redhat.com>
30453
30454 PR c/89812
30455 * c-common.c (check_user_alignment): Rename local. Correct maximum
30456 alignment in diagnostic. Avoid assuming argument fits in SHWI,
30457 convert it to UHWI when it fits.
30458
30459 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
30460
30461 PR debug/86964
30462 * dwarf2out.c (premark_used_variables): New function.
30463 (prune_unused_types_walk): Do not mark not premarked external
30464 variables.
30465 (prune_unused_types): Call premark_used_variables.
30466
30467 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
30468
30469 PR rtl-optimization/89676
30470 * lra-constraints.c (curr_insn_transform): Do match reload for
30471 early clobbers when the match was successful only for different
30472 registers.
30473
30474 2019-03-25 Martin Sebor <msebor@redhat.com>
30475
30476 * doc/extend.texi (Common Type Attributes): Document vector_size.
30477 (Common Variable Attributes): Mention size constraint. Correct
30478 quoting and typos.
30479 (Vector Extensions): Use @dfn when defining bas type. Clarify
30480 base type and size constraints.
30481
30482 2019-03-25 Richard Biener <rguenther@suse.de>
30483
30484 PR tree-optimization/89789
30485 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
30486 changes from non-undefined back to undefined.
30487
30488 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
30489
30490 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
30491 heap string and a gc string, but since this variable is unknown to
30492 ggc the gc string might get reused and corrupted. Fixed by always
30493 using a heap string.
30494
30495 2019-03-25 Richard Biener <rguenther@suse.de>
30496
30497 PR tree-optimization/89779
30498 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30499 to remove IV defs, delay actual removal.
30500 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
30501 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30502 very end, properly also reset loop control IV information.
30503
30504 2019-03-25 Richard Biener <rguenther@suse.de>
30505
30506 PR tree-optimization/89802
30507 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30508 move EH data to folded stmt.
30509
30510 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30511
30512 * config/s390/s390-builtin-types.def: Remove few unused types and
30513 fix sort order for others.
30514
30515 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30516
30517 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30518 expected and found types with -mdebug during builtin matching.
30519
30520 2019-03-25 Richard Biener <rguenther@suse.de>
30521
30522 PR middle-end/89790
30523 * fold-const.c (operand_equal_p): Revert last change with
30524 updated comment.
30525
30526 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
30527
30528 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30529 notes for the result of the __tls_get_addr calls.
30530 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30531
30532 2019-03-24 Jeff Law <law@redhat.com>
30533
30534 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30535
30536 PR rtl-optimization/87761
30537 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30538 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
30539 as needed.
30540 (pass_cprop_hardreg::execute): Add df note problem and defer insn
30541 rescans. Reprocess blocks as needed, calling df_analyze before
30542 reprocessing. Always call df_analyze before fixing up debug bind
30543 insns.
30544
30545 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
30546
30547 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30548 big endian.
30549
30550 2019-03-22 Andrew Pinski <apinski@marvell.com>
30551
30552 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30553 attrribute for uxtw.
30554
30555 2019-03-26 Jeff Law <law@redhat.com>
30556
30557 PR rtl-optimization/87761
30558 * config/mips/mips-protos.h (mips_split_move): Add new argument.
30559 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30560 (mips_split_move): Accept new INSN argument. Try to forward SRC
30561 into the next instruction.
30562 (mips_split_move_insn): Pass INSN through to mips_split_move.
30563
30564 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
30565
30566 PR rtl-optimization/89676
30567 * lra-constraints.c (curr_insn_transform): Do match reload for
30568 early clobbers even if the match was successful.
30569
30570 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30571
30572 PR c++/87481
30573 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30574
30575 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30576
30577 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30578
30579 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30580
30581 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30582 <avx512>_fmsub_<mode>_mask3<round_name>,
30583 <avx512>_fnmadd_<mode>_mask3<round_name>,
30584 <avx512>_fnmsub_<mode>_mask3<round_name>,
30585 avx512f_vmfmadd_<mode>_mask3<round_name>,
30586 avx512f_vmfmsub_<mode>_mask3<round_name>,
30587 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30588 instead of register_operand and %v instead of v for match_operand 1.
30589 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30590 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30591 <round_nimm_predicate> instead of register_operand and %v instead of v
30592 for match_operand 1.
30593
30594 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30595 <avx512>_fmadd_<mode>_mask3<round_name>,
30596 <avx512>_fmsub_<mode>_mask<round_name>,
30597 <avx512>_fmsub_<mode>_mask3<round_name>,
30598 <avx512>_fnmadd_<mode>_mask<round_name>,
30599 <avx512>_fnmadd_<mode>_mask3<round_name>,
30600 <avx512>_fnmsub_<mode>_mask<round_name>,
30601 <avx512>_fnmsub_<mode>_mask3<round_name>,
30602 <avx512>_fmaddsub_<mode>_mask<round_name>,
30603 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30604 <avx512>_fmsubadd_<mode>_mask<round_name>,
30605 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30606 <round_nimm_predicate> instead of nonimmediate_operand.
30607 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30608 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30609 Use register_operand instead of <round_nimm_predicate> for the
30610 operand that needs to match output.
30611 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30612 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30613 Likewise. Formatting fixes.
30614
30615 PR target/89784
30616 * config/i386/i386.c (enum ix86_builtins): Remove
30617 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30618 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30619 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30620 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30621 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30622 __builtin_ia32_vfmsubss3_mask3): New builtins.
30623 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30624 avx512f_vmfmadd_<mode>_mask3<round_name>,
30625 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30626 *avx512f_vmfmsub_<mode>_mask<round_name>,
30627 avx512f_vmfmsub_<mode>_mask3<round_name>,
30628 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30629 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30630 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30631 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30632 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30633 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30634 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30635 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30636 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30637 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30638 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30639 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30640 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30641 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30642 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30643 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30644 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30645 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30646 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30647 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30648 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30649 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30650 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30651 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30652 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30653 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30654 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30655 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30656
30657 2019-03-21 Martin Sebor <msebor@redhat.com>
30658
30659 PR tree-optimization/89350
30660 * builtins.c (compute_objsize): Also ignore offsets whose upper
30661 bound is negative.
30662 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30663 (builtin_memref::builtin_memref): Initialize new member.
30664 Allow EXPR to be null.
30665 (builtin_memref::extend_offset_range): Replace local with a member.
30666 Avoid assuming pointer offsets are unsigned.
30667 (builtin_memref::set_base_and_offset): Determine base object
30668 before computing offset range.
30669 (builtin_access::builtin_access): Handle memset.
30670 (builtin_access::generic_overlap): Replace local with a member.
30671 (builtin_access::strcat_overlap): Same.
30672 (builtin_access::overlap): Same.
30673 (maybe_diag_overlap): Same.
30674 (maybe_diag_access_bounds): Same.
30675 (wrestrict_dom_walker::check_call): Handle memset.
30676 (check_bounds_or_overlap): Same.
30677
30678 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30679 Jakub Jelinek <jakub@redhat.com>
30680
30681 PR lto/89692
30682 * tree.c (fld_type_variant, fld_incomplete_type_of,
30683 fld_process_array_type): Call fld->pset.add and don't call
30684 add_tree_to_fld_list if it returns true.
30685 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30686 non-marked types from TYPE_NEXT_VARIANT list.
30687 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30688
30689 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30690
30691 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30692 to false, if true, don't alloc_entries during construction, but defer
30693 it to the first method that needs m_entries allocated.
30694 (hash_table::hash_table, hash_table::~hash_table,
30695 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30696 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30697 hash_table::clear_slot, hash_table::traverse_noresize,
30698 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30699 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30700 false.
30701 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30702 NO_INSERT instead of find_with_hash.
30703 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30704 hash_set::m_table): Add Lazy to template params of hash_table.
30705 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30706 * attribs.c (test_attribute_exclusions): Likewise.
30707 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30708 hash_set. Add tests for hash_set with Lazy = true.
30709
30710 2019-03-21 Richard Biener <rguenther@suse.de>
30711
30712 PR tree-optimization/89779
30713 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30714 checks with respect to released SSA names now having error_mark_node
30715 type.
30716 * fold-const.c (operand_equal_p): Likewise.
30717
30718 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30719
30720 PR target/89775
30721 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30722 available to ...
30723 (s390_optimize_register_info): Use global_not_special_regno_p to
30724 check for global regs.
30725
30726 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30727
30728 PR target/89752
30729 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30730 update this_alternative nor this_alternative_set.
30731
30732 2019-03-19 Jim Wilson <jimw@sifive.com>
30733
30734 PR target/89411
30735 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30736 align, size, offset. Use them to handle a BLKmode reference. Update
30737 comment.
30738 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30739
30740 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30741
30742 PR rtl-optimization/89768
30743 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30744 instead of GEN_INT.
30745 (unroll_loop_runtime_iterations): Likewise.
30746
30747 2019-03-19 Martin Sebor <msebor@redhat.com>
30748
30749 PR tree-optimization/89644
30750 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30751 rather than endptr as an indicator of nul-termination.
30752
30753 PR tree-optimization/89644
30754 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30755 arrays in determining sequence sizes in strncpy and stpncpy.
30756
30757 2019-03-19 Martin Liska <mliska@suse.cz>
30758
30759 PR middle-end/89737
30760 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30761 unlikely_edges if there's an edge that belongs to both these sets.
30762
30763 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30764
30765 PR target/89746
30766 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30767 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30768 go via a stack temporary.
30769
30770 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30771
30772 PR target/89378
30773 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30774 instead of gen_rtx_SUBREG.
30775 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30776
30777 2019-03-19 Richard Biener <rguenther@suse.de>
30778
30779 PR debug/88389
30780 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30781
30782 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30783
30784 PR lto/87809
30785 PR lto/89335
30786 * tree.c (free_lang_data_in_decl): Do not free context of C++
30787 destrutors.
30788
30789 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30790
30791 PR target/89506
30792 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30793 subs for the first alternative except when operands[3] is 1.
30794
30795 PR target/89752
30796 * gimplify.c (gimplify_asm_expr): For output argument with
30797 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30798 diagnose error.
30799
30800 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30801
30802 PR rtl-optimization/89753
30803 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30804 explicit unrolling factor even more robust.
30805
30806 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30807
30808 PR target/89726
30809 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30810 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30811 signed zeros, do another copysign after the compensation.
30812
30813 2019-03-18 Martin Sebor <msebor@redhat.com>
30814
30815 PR tree-optimization/89720
30816 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30817 more conservatively, the same as anti-range.
30818
30819 2019-03-18 Richard Biener <rguenther@suse.de>
30820
30821 PR middle-end/88945
30822 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30823 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30824 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30825 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30826
30827 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30828
30829 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30830 Extend queue to 1024 entries.
30831 Add "consumed" field.
30832 (gomp_print_output): Remove print_index parameter.
30833 Add final parameter.
30834 Change limit to unsigned.
30835 Use consumed field to implement circular buffer.
30836 Detect interrupted print in final pass.
30837 Flush output at the end.
30838 (run): Update gomp_print_output usage.
30839 (main): Initialize kernargs->output_data.consumed.
30840
30841 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30842
30843 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30844 calculation of the minimum number of scalar iterations for
30845 fully-predicated loops.
30846
30847 2019-03-18 Martin Jambor <mjambor@suse.cz>
30848
30849 PR tree-optimization/89546
30850 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30851 any propagation to its children took place.
30852
30853 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30854
30855 PR target/89627
30856 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30857 parameter, and make use of it.
30858 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30859
30860 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30861
30862 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30863 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30864 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30865 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30866 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30867 match what the ops is doing.
30868 (push_multi_fp_blink): Likewise.
30869 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30870 compiling for size and elf target.
30871 (arc_save_callee_enter): Adjust note to match what enter/leave
30872 operation does.
30873
30874 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30875
30876 * config/arc/arc.md (tst_movb): Fix constraint.
30877
30878 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30879
30880 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30881
30882 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30883
30884 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30885 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30886 reg_alloc_order references.
30887 (size_alloc_order): Define.
30888 (arc_adjust_reg_alloc_order): New function.
30889 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30890 order.
30891 (ADJUST_REG_ALLOC_ORDER): Define.
30892 (HONOR_REG_ALLOC_ORDER): Likewise.
30893
30894 2019-03-18 Richard Biener <rguenther@suse.de>
30895
30896 PR target/87561
30897 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30898 loads and stores a bit more.
30899
30900 2019-03-18 Richard Biener <rguenther@suse.de>
30901
30902 PR target/87561
30903 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30904 load pessimization to stores as well.
30905
30906 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30907
30908 PR middle-end/86979
30909 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30910 successor, use NULL as its av set.
30911
30912 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30913
30914 PR rtl-optimization/89721
30915 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30916
30917 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30918
30919 PR target/87532
30920 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30921 When handling vec_extract, use modular arithmetic to allow
30922 constant selectors greater than vector length.
30923 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30924 V1TImode vectors to have constant selector values greater than 0.
30925 Use modular arithmetic to compute vector index.
30926 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30927 index for in-memory vectors. Correct code generation for
30928 in-register vectors.
30929 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30930 compute index.
30931
30932 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30933
30934 PR c++/88534
30935 PR c++/88537
30936 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30937 VAR_DECL args.
30938
30939 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30940
30941 PR c++/89709
30942 * tree.c (inchash::add_expr): Strip any location wrappers.
30943 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30944 after hash verification.
30945
30946 PR debug/89704
30947 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30948 SIGN_EXTEND and ZERO_EXTEND.
30949
30950 2019-03-14 Jason Merrill <jason@redhat.com>
30951 Jakub Jelinek <jakub@redhat.com>
30952
30953 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30954 than if is_empty (*slot).
30955 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30956 existing elt and for elt removal.
30957 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30958 of already removed elt.
30959
30960 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30961
30962 PR target/89650
30963 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30964 REG_EH_REGION note.
30965
30966 2019-03-14 Martin Liska <mliska@suse.cz>
30967
30968 PR other/89712
30969 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30970
30971 2019-03-14 Richard Biener <rguenther@suse.de>
30972
30973 PR target/89711
30974 * config/i386/i386.c (make_resolver_func): Properly set
30975 DECL_CONTEXT on the RESULT_DECL.
30976 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30977
30978 2019-03-14 Richard Biener <rguenther@suse.de>
30979
30980 * gimple-pretty-print.c: Include cfgloop.h.
30981 (dump_gimple_phi): Adjust.
30982 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30983 (pp_cfg_jump): Adjust.
30984 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30985 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30986 (lower_phi_internal_fn): Remove.
30987 (verify_gimple_call): Remove IFN_PHI special-casing.
30988 (dump_function_to_file): Dump IL state.
30989 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30990 done to deal with PHI nodes being present in non-SSA state.
30991
30992 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30993
30994 PR ipa/89684
30995 * multiple_target.c (create_dispatcher_calls): Change
30996 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30997 In the node->iterate_referring loop, push *ref rather than ref, call
30998 ref->remove_reference () and always pass 0 to iterate_referring.
30999
31000 PR rtl-optimization/89679
31001 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
31002 would contain a paradoxical SUBREG.
31003
31004 2019-03-14 Richard Biener <rguenther@suse.de>
31005
31006 PR tree-optimization/89710
31007 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
31008 safe_dyn_cast.
31009
31010 2019-03-14 Martin Liska <mliska@suse.cz>
31011
31012 * coverage.c (coverage_begin_function): Stream also
31013 end_column.
31014 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
31015 documentation about function declaration location.
31016 * gcov-dump.c (tag_function): Print whole range
31017 of function declaration.
31018 * gcov.c (struct function_info): Add end_column field.
31019 (function_info::function_info): Initialize it.
31020 (output_json_intermediate_file): Output {start,end}_column
31021 fields.
31022 (read_graph_file): Read end_column.
31023
31024 2019-03-14 Richard Biener <rguenther@suse.de>
31025
31026 PR middle-end/89698
31027 * fold-const.c (operand_equal_p): For INDIRECT_REF check
31028 that the access types are similar.
31029
31030 2019-03-14 Jakub Jelinek <jakub@redhat.com>
31031
31032 PR tree-optimization/89703
31033 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
31034 aren't compatible also with builtin_decl_explicit. Check pure
31035 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
31036 and BUILT_IN_STPNCPY{,_CHK}.
31037
31038 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
31039
31040 PR target/89523
31041 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
31042 addr32 prefix to VSIB address for X32.
31043 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
31044 "%M2" to opcode.
31045 (*avx512pf_gatherpf<mode>df_mask): Likewise.
31046 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
31047 (*avx512pf_scatterpf<mode>df_mask): Likewise.
31048 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
31049 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
31050 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
31051 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
31052 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
31053 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
31054 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
31055 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
31056 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
31057 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
31058 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
31059 (*avx512f_scatterdi<mode>): Likewise.
31060
31061 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
31062
31063 PR target/85860
31064 * lra-constraints.c (inherit_in_ebb): Update
31065 potential_reload_hard_regs along with live_hard_regs.
31066
31067 2019-03-13 Jakub Jelinek <jakub@redhat.com>
31068
31069 PR debug/89498
31070 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
31071 DWARF_OFFSET_SIZE.
31072 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
31073
31074 2019-03-13 Martin Sebor <msebor@redhat.com>
31075
31076 PR tree-optimization/89662
31077 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
31078 has a size.
31079
31080 2019-03-13 Richard Biener <rguenther@suse.de>
31081
31082 PR middle-end/89677
31083 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
31084 throw FP expressions at tree-affine.
31085
31086 2019-03-14 Richard Biener <rguenther@suse.de>
31087
31088 * tree-pretty-print.c (dump_generic_node): For -gimple properly
31089 dump negative integer constants using _Literal (type) -num.
31090
31091 2019-03-13 Jakub Jelinek <jakub@redhat.com>
31092
31093 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
31094 nonlocal_value member.
31095
31096 PR middle-end/88588
31097 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
31098 (ipa_simd_modify_function_body): Handle PHIs.
31099
31100 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31101
31102 * config/s390/s390.c (s390_option_override_internal): Use more
31103 aggressive inlining parameters.
31104
31105 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31106
31107 * config/s390/3906.md: New file.
31108 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31109 (LONGRUNNING_THRESHOLD): Remove.
31110 (MAX_SCHED_MIX_SCORE): Decrease.
31111 (MAX_SCHED_MIX_DISTANCE): Decrease.
31112 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
31113 (struct s390_sched_state): New struct to hold scheduling state.
31114 (S390_SCHED_STATE_NORMAL): Remove.
31115 (S390_SCHED_STATE_CRACKED): Remove.
31116 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
31117 (s390_get_sched_attrmask): Use new attribute.
31118 (s390_get_unit_mask): Use new units.
31119 (s390_is_fpd): New function.
31120 (s390_is_fxd): New function.
31121 (s390_is_longrunning): New function.
31122 (s390_sched_score): Use new functions.
31123 (s390_sched_reorder): Likewise.
31124 (s390_sched_variable_issue): Rework and use new functions.
31125 (s390_sched_init): Use new functions.
31126 * config/s390/s390.h (s390_tune_attr): Add z14.
31127 * config/s390/s390.md: Add z14.
31128
31129 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31130
31131 * config/s390/2964.md: Update pipeline description.
31132 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31133 (LONGRUNNING_THRESHOLD): Remove.
31134 (LATENCY_FACTOR): Remove.
31135 (s390_get_unit_mask): Add unit.
31136 (s390_sched_score): Use fxd/fpd.
31137 (s390_sched_variable_issue): Use fxd/fpd.
31138
31139 2019-03-12 Martin Liska <mliska@suse.cz>
31140
31141 * config/i386/i386.c: Reword an error message.
31142
31143 2019-03-12 Martin Jambor <mjambor@suse.cz>
31144
31145 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
31146 terminate with newline.
31147
31148 2019-03-12 Jakub Jelinek <jakub@redhat.com>
31149
31150 PR target/52726
31151 * config/s390/s390.md (tabort): Use %wd instead of
31152 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
31153 letters and periods.
31154 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
31155 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
31156 's with %< and %>.
31157
31158 PR middle-end/89663
31159 * builtins.c (expand_builtin_int_roundingfn,
31160 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
31161 gcc_unreachable if validate_arglist fails.
31162
31163 2019-03-12 Richard Biener <rguenther@suse.de>
31164
31165 PR tree-optimization/89664
31166 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
31167 free the occurance tree after the early out.
31168
31169 2019-03-11 Jakub Jelinek <jakub@redhat.com>
31170
31171 PR middle-end/89655
31172 PR bootstrap/89656
31173 * vr-values.c (vr_values::update_value_range): If
31174 old_vr->varying_p (), don't update it, make new_vr also VARYING
31175 and return false.
31176
31177 2019-03-11 Martin Liska <mliska@suse.cz>
31178
31179 * config/aarch64/aarch64.c (aarch64_override_options_internal):
31180 Fix double string quoting.
31181
31182 2019-03-11 Martin Liska <mliska@suse.cz>
31183
31184 * collect-utils.c (collect_wait): Wrap apostrophes
31185 in gcc internal format with %'.
31186 * collect2.c (main): Likewise.
31187 (scan_prog_file): Likewise.
31188 (scan_libraries): Likewise.
31189 * config/i386/i386.c (ix86_expand_call): Likewise.
31190 (ix86_handle_interrupt_attribute): Likewise.
31191 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
31192 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
31193 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
31194 * lto-wrapper.c (find_crtoffloadtable): Likewise.
31195 * symtab.c (symtab_node::verify_base): Likewise.
31196 * tree-cfg.c (verify_gimple_label): Likewise.
31197 * tree.c (verify_type_variant): Likewise.
31198
31199 2019-03-11 Martin Liska <mliska@suse.cz>
31200
31201 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
31202 in a string format message and fix GNU coding style.
31203 (expand_builtin_set_thread_pointer): Likewise.
31204 * common/config/aarch64/aarch64-common.c
31205 (aarch64_rewrite_selected_cpu): Likewise.
31206 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
31207 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
31208 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
31209 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
31210 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
31211 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
31212 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
31213 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
31214 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
31215 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
31216 Likewise.
31217 * common/config/riscv/riscv-common.c
31218 (riscv_subset_list::parsing_subset_version): Likewise.
31219 (riscv_subset_list::parse_std_ext): Likewise.
31220 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31221 (riscv_subset_list::parse): Likewise.
31222 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
31223 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
31224 (aarch64_override_options_internal): Likewise.
31225 (aarch64_validate_mcpu): Likewise.
31226 (aarch64_validate_march): Likewise.
31227 (aarch64_validate_mtune): Likewise.
31228 (aarch64_override_options): Likewise.
31229 * config/alpha/alpha.c (alpha_option_override): Likewise.
31230 * config/arc/arc.c (arc_init): Likewise.
31231 (parse_mrgf_banked_regs_option): Likewise.
31232 (arc_override_options): Likewise.
31233 (arc_expand_builtin_aligned): Likewise.
31234 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
31235 (arm_expand_builtin): Likewise.
31236 * config/arm/arm.c (arm_option_check_internal): Likewise.
31237 (arm_configure_build_target): Likewise.
31238 (arm_option_override): Likewise.
31239 (arm_options_perform_arch_sanity_checks): Likewise.
31240 (arm_handle_cmse_nonsecure_entry): Likewise.
31241 (arm_handle_cmse_nonsecure_call): Likewise.
31242 (arm_tls_referenced_p): Likewise.
31243 (thumb1_expand_prologue): Likewise.
31244 * config/avr/avr.c (avr_option_override): Likewise.
31245 * config/bfin/bfin.c (bfin_option_override): Likewise.
31246 * config/c6x/c6x.c (c6x_option_override): Likewise.
31247 * config/cr16/cr16.c (cr16_override_options): Likewise.
31248 * config/cris/cris.c (cris_option_override): Likewise.
31249 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
31250 * config/darwin-c.c (macosx_version_as_macro): Likewise.
31251 * config/darwin.c (darwin_override_options): Likewise.
31252 * config/frv/frv.c (frv_expand_builtin): Likewise.
31253 * config/h8300/h8300.c (h8300_option_override): Likewise.
31254 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
31255 (ix86_option_override_internal): Likewise.
31256 (warn_once_call_ms2sysv_xlogues): Likewise.
31257 (ix86_expand_prologue): Likewise.
31258 (split_stack_prologue_scratch_regno): Likewise.
31259 (ix86_warn_parameter_passing_abi): Likewise.
31260 * config/ia64/ia64.c (fix_range): Likewise.
31261 * config/m68k/m68k.c (m68k_option_override): Likewise.
31262 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
31263 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
31264 (mips_set_compression_mode): Likewise.
31265 * config/mmix/mmix.c (mmix_option_override): Likewise.
31266 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
31267 * config/msp430/msp430.c (msp430_option_override): Likewise.
31268 * config/nds32/nds32.c (nds32_option_override): Likewise.
31269 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
31270 (nios2_option_override): Likewise.
31271 (nios2_expand_custom_builtin): Likewise.
31272 * config/nvptx/mkoffload.c (main): Likewise.
31273 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
31274 * config/pa/pa.c (fix_range): Likewise.
31275 (pa_option_override): Likewise.
31276 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
31277 (riscv_option_override): Likewise.
31278 * config/rl78/rl78.c (rl78_option_override): Likewise.
31279 * config/rs6000/aix61.h: Likewise.
31280 * config/rs6000/aix71.h: Likewise.
31281 * config/rs6000/aix72.h: Likewise.
31282 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
31283 * config/rs6000/freebsd64.h: Likewise.
31284 * config/rs6000/linux64.h: Likewise.
31285 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
31286 (rs6000_expand_zeroop_builtin): Likewise.
31287 (rs6000_expand_mtfsb_builtin): Likewise.
31288 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
31289 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
31290 (rs6000_invalid_builtin): Likewise.
31291 (rs6000_expand_split_stack_prologue): Likewise.
31292 * config/rs6000/rtems.h: Likewise.
31293 * config/rx/rx.c (valid_psw_flag): Likewise.
31294 (rx_expand_builtin): Likewise.
31295 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
31296 * config/s390/s390.c (s390_expand_builtin): Likewise.
31297 (s390_function_profiler): Likewise.
31298 (s390_option_override_internal): Likewise.
31299 (s390_option_override): Likewise.
31300 * config/sh/sh.c (sh_option_override): Likewise.
31301 (sh_builtin_saveregs): Likewise.
31302 (sh_fix_range): Likewise.
31303 * config/sh/vxworks.h: Likewise.
31304 * config/sparc/sparc.c (sparc_option_override): Likewise.
31305 * config/spu/spu.c (spu_option_override): Likewise.
31306 (fix_range): Likewise.
31307 * config/visium/visium.c (visium_option_override): Likewise.
31308 (visium_handle_interrupt_attr): Likewise.
31309 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
31310 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
31311 (dbg_cnt_process_opt): Likewise.
31312 * dwarf2out.c (output_dwarf_version): Likewise.
31313 * except.c (expand_eh_return): Likewise.
31314 * gcc.c (defined): Likewise.
31315 (driver_handle_option): Likewise.
31316 (process_command): Likewise.
31317 (compare_files): Likewise.
31318 (driver::prepare_infiles): Likewise.
31319 (driver::do_spec_on_infiles): Likewise.
31320 (driver::maybe_run_linker): Likewise.
31321 * omp-offload.c (oacc_parse_default_dims): Likewise.
31322 * opts-global.c (handle_common_deferred_options): Likewise.
31323 * opts.c (parse_sanitizer_options): Likewise.
31324 (common_handle_option): Likewise.
31325 (enable_warning_as_error): Likewise.
31326 * passes.c (enable_disable_pass): Likewise.
31327 * plugin.c (parse_plugin_arg_opt): Likewise.
31328 (default_plugin_dir_name): Likewise.
31329 * targhooks.c (default_expand_builtin_saveregs): Likewise.
31330 (default_pch_valid_p): Likewise.
31331 * toplev.c (init_asm_output): Likewise.
31332 (process_options): Likewise.
31333 (toplev::run_self_tests): Likewise.
31334 * tree-cfg.c (verify_gimple_call): Likewise.
31335 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
31336 (tree_inlinable_function_p): Likewise.
31337 * var-tracking.c (vt_find_locations): Likewise.
31338
31339 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
31340
31341 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
31342 only on the else branch.
31343
31344 2019-03-11 Martin Liska <mliska@suse.cz>
31345
31346 * gcov.c (output_intermediate_json_line): Print function
31347 name of each line.
31348 (output_json_intermediate_file): Add new argument.
31349 * doc/gcov.texi: Document the change.
31350
31351 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
31352
31353 PR rtl-optimization/89588
31354 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31355 explicit unrolling factor more robust.
31356
31357 2019-03-11 Richard Biener <rguenther@suse.de>
31358
31359 PR tree-optimization/89649
31360 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
31361 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
31362 on the prolog and epilog loops.
31363 (vect_loop_versioning): Return copy of loop.
31364 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
31365 on the non-vectorized version of the loop.
31366
31367 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
31368
31369 PR target/68924
31370 * config/i386/sse.md (*vec_extractv2di_0_sse):
31371 Add (=r,x) alternative and corresponding splitter.
31372
31373 2019-03-10 Martin Jambor <mjambor@suse.cz>
31374
31375 PR tree-optimization/85762
31376 PR tree-optimization/87008
31377 PR tree-optimization/85459
31378 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
31379 it points to if there is a type changing MEM_REF. Adjust all callers.
31380 (build_accesses_from_assign): Disable total scalarization if
31381 contains_vce_or_bfcref_p returns true through the new parameter, for
31382 both rhs and lhs.
31383
31384 2019-03-09 Jakub Jelinek <jakub@redhat.com>
31385
31386 PR c/88568
31387 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
31388 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
31389
31390 PR target/79645
31391 * common.opt (fdiagnostics-show-labels,
31392 fdiagnostics-show-line-numbers, fdiagnostics-format=,
31393 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
31394 gas-locview-support, ginline-points, ginternal-reset-location-views):
31395 Terminate description text with a dot.
31396 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
31397 * config/mcore/mcore.opt (m210, m340): Likewise.
31398 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
31399 mnops=): Start description text with a capital letter.
31400 * config/arc/arc.opt (msize-level=): Likewise.
31401 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
31402 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
31403 mnewlib): Likewise.
31404 * config/ft32/ft32.opt (msim): Likewise.
31405 (mft32b, mcompress): Likewise. Terminate description text with a dot.
31406 (mnodiv, mnopm): Terminate description text with a dot.
31407 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
31408 a colon.
31409 * config/i386/i386.opt (prefer_vector_width, instrument_return):
31410 Likewise.
31411 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
31412 text.
31413
31414 PR rtl-optimization/89634
31415 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
31416 are modified in BB_END (e->src) instruction.
31417
31418 2019-03-08 David Malcolm <dmalcolm@redhat.com>
31419
31420 PR target/79926
31421 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
31422 messages more amenable to translation, and improve wording.
31423
31424 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
31425
31426 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
31427 ud- and du-chains between phases.
31428
31429 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
31430
31431 PR debug/89631
31432 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
31433 instead of POLY_INT_CST.
31434
31435 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
31436
31437 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
31438 requirement.
31439
31440 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
31441
31442 PR target/68924
31443 PR target/78782
31444 PR target/87558
31445 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
31446 (_mm_storeu_si64): Ditto.
31447
31448 2019-03-08 Martin Liska <mliska@suse.cz>
31449
31450 PR target/86952
31451 * config/i386/i386.c (ix86_option_override_internal): Disable
31452 jump tables when retpolines are used.
31453
31454 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
31455
31456 PR go/63560
31457 * ipa-split.c (execute_split_functions): Do not split
31458 'noinline' or 'section' function.
31459
31460 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31461
31462 PR target/79846
31463 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
31464 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
31465 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
31466
31467 PR ipa/80000
31468 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
31469 from diagnostics. Formatting fixes.
31470
31471 PR target/85665
31472 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
31473 warn_odr diagnostics.
31474
31475 PR other/80058
31476 * lra-constraints.c (process_alt_operands): Avoid one space before
31477 " at the end of line and another after " on another line in a string
31478 literal.
31479 * attribs.c (handle_dll_attribute): Likewise.
31480 * config/avr/avr-devices.c (avr_texinfo): Likewise.
31481
31482 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
31483 warning_at or inform messages in G_() if there is no ?:.
31484
31485 PR tree-optimization/89550
31486 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
31487 returned true. Formatting fixes.
31488 (expand_builtin_strnlen): Formatting fixes.
31489 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
31490 if warning_at returned true.
31491 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
31492
31493 2019-03-08 Richard Biener <rguenther@suse.de>
31494
31495 PR middle-end/89578
31496 * cfgloop.h (struct loop): Add owned_clique field.
31497 * cfgloopmanip.c (copy_loop_info): Copy it.
31498 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31499 cliques.
31500 * tree-inline.c (copy_loops): Remap owned_clique.
31501 * lto-streamer-in.c (input_cfg): Stream owned_clique.
31502 * lto-streamer-out.c (output_cfg): Likewise.
31503
31504 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31505
31506 PR target/80190
31507 * config/darwin.c: Include intl.h.
31508 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31509 composing the message out of two separate parts.
31510
31511 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31512
31513 PR target/80003
31514 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31515 doesn't start with a capital letter and doesn't end with a dot.
31516 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31517 with a capital letter.
31518 (ix86_mangle_function_version_assembler_name): Likewise.
31519 (ix86_generate_version_dispatcher_body): Likewise.
31520 (fold_builtin_cpu): Likewise.
31521 (get_builtin_code_for_version): Likewise. Remove extraneous space.
31522 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31523 translators, wrap full type name in %qs.
31524
31525 PR translation/79999
31526 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31527 depend clause with source (or sink) modifier.
31528 * omp-expand.c (expand_omp_ordered_sink): Likewise.
31529
31530 PR target/89602
31531 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31532 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31533 (avx512f_load<mode>_mask): New define_expand.
31534 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31535 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31536 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31537 __builtin_ia32_movess_mask): New builtins.
31538 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31539 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31540 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31541 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31542
31543 2019-03-07 Martin Jambor <mjambor@suse.cz>
31544
31545 PR lto/87525
31546 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31547 for extern inline functions.
31548
31549 2019-03-07 Martin Jambor <mjambor@suse.cz>
31550
31551 PR ipa/88235
31552 * cgraph.h (cgraph_node): New inline method former_thunk_p.
31553 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31554 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31555 have multiple callees. At the end check if declarations match as
31556 opposed to cgraph_nodes.
31557
31558 2019-03-07 Martin Liska <mliska@suse.cz>
31559
31560 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31561 which is equivalent to searching for this in clones chain.
31562 * symtab.c (symtab_node::verify_base): Similarly compare ASM
31563 names with a neighbour and special case first node in a chain.
31564
31565 2019-01-25 Jason Merrill <jason@redhat.com>
31566
31567 PR c++/80916 - spurious "static but not defined" warning.
31568 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31569 for an internal symbol with DECL_EXTERNAL.
31570
31571 2019-04-07 Richard Biener <rguenther@suse.de>
31572
31573 PR middle-end/89618
31574 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31575 * tree-inline.c (copy_loops): Simplify.
31576
31577 2019-03-07 Martin Liska <mliska@suse.cz>
31578
31579 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31580
31581 2019-03-07 Richard Biener <rguenther@suse.de>
31582
31583 PR tree-optimization/89595
31584 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31585 stmt iterator as reference, take boolean output parameter to
31586 indicate whether the stmt was removed and thus the iterator
31587 already advanced.
31588 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31589 stmts created by folding.
31590
31591 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31592
31593 PR c++/89585
31594 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31595 at toplevel.
31596
31597 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31598
31599 PR rtl-optimization/88845
31600 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31601 LRA.
31602 * lra.c (remove_scratches_1): New function.
31603 (remove_scratches): Use it.
31604 (lra_emit_move): Likewise.
31605
31606 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31607
31608 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31609 unaligned_access variable.
31610 * config/arc/arc.c (arc_override_options): Set unaligned access
31611 default on for HS CPUs.
31612 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31613
31614 2019-03-06 Martin Liska <mliska@suse.cz>
31615
31616 PR gcov-profile/89577
31617 * doc/gcov.texi: Prefer to use --coverage.
31618 * doc/sourcebuild.texi: Likewise.
31619
31620 2019-03-02 Jason Merrill <jason@redhat.com>
31621
31622 PR c++/86485 - -Wmaybe-unused with empty class ?:
31623 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31624
31625 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31626
31627 PR target/89587
31628 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31629 if_multiarch.
31630
31631 PR middle-end/89590
31632 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31633 exactly one argument.
31634
31635 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31636 Richard Sandiford <richard.sandiford@arm.com>
31637
31638 PR tree-optimization/89570
31639 * match.pd (vec_cond into cond_op simplification): Don't use
31640 get_conditional_internal_fn, use as_internal_fn (cond_op).
31641
31642 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31643
31644 PR target/89222
31645 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31646 to decide when to split off a non-zero offset from a symbol.
31647 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31648 in function symbols.
31649
31650 2019-03-05 Richard Biener <rguenther@suse.de>
31651
31652 PR tree-optimization/89594
31653 * tree-if-conv.c (pass_if_conversion::execute): Handle
31654 case where .LOOP_VECTORIZED_FUNCTION was removed.
31655
31656 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31657
31658 PR bootstrap/89560
31659 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31660 instead alloca it only when needed with the needed size.
31661
31662 PR tree-optimization/89570
31663 * match.pd (vec_cond into cond_op simplification): Guard with
31664 vectorized_internal_fn_supported_p test and #if GIMPLE.
31665
31666 PR tree-optimization/89566
31667 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31668 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31669 Punt if get_user_idx_format succeeds, but idx_format argument is
31670 not provided or doesn't have pointer type, or if idx_args is above
31671 number of provided arguments.
31672
31673 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31674
31675 PR tree-optimization/89437
31676 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31677
31678 2019-03-04 Richard Biener <rguenther@suse.de>
31679
31680 PR middle-end/89572
31681 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31682 safe_dyn_cast.
31683
31684 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31685
31686 PR tree-optimization/89487
31687 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31688 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31689 (distribute_loop): Don't do runtime alias check if there is non-
31690 addressable data reference.
31691 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31692 is a register variable.
31693
31694 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31695
31696 PR target/89506
31697 * config/arm/arm.md (cmpsi2_addneg): Use
31698 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31699 If operands[2] is 0 or INT_MIN, force use of subs.
31700 (*compare_scc splitter): Use gen_int_mode.
31701 (*negscc): Likewise.
31702 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31703
31704 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31705 Monk Chiang <sh.chiang04@gmail.com>
31706
31707 * common/config/riscv/riscv-common.c: Include sstream.
31708 (riscv_subset_list::to_string): New.
31709 (riscv_arch_str): Likewise.
31710 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31711 * config.in: Regen.
31712 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31713 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31714 (riscv_emit_attribute): New.
31715 (riscv_file_start): Emit attribute if needed.
31716 (riscv_option_override): Init riscv_emit_attribute_p.
31717 * config/riscv/riscv.opt (mriscv-attribute): New option.
31718 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31719 * configure: Regen.
31720 * doc/install.texi: Document --with-riscv-attribute.
31721 * doc/invoke.texi: Document -mriscv-attribute.
31722
31723 * common/config/riscv/riscv-common.c:
31724 Include config/riscv/riscv-protos.h.
31725 (INCLUDE_STRING): Defined.
31726 (RISCV_DONT_CARE_VERSION): Defined.
31727 (riscv_subset_t): Declare.
31728 (riscv_subset_t::riscv_subset_t): New.
31729 (riscv_subset_list): Declare.
31730 (riscv_subset_list::riscv_subset_list): New.
31731 (riscv_subset_list::~riscv_subset_list): Likewise.
31732 (riscv_subset_list::parsing_subset_version): Likewise.
31733 (riscv_subset_list::parse_std_ext): Likewise.
31734 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31735 (riscv_subset_list::add): Likewise.
31736 (riscv_subset_list::lookup): Likewise.
31737 (riscv_subset_list::xlen): Likewise.
31738 (riscv_subset_list::parse): Likewise.
31739 (riscv_supported_std_ext): Likewise.
31740 (current_subset_list): Likewise.
31741 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31742 parse.
31743
31744 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31745
31746 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31747 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31748 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31749
31750 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31751
31752 PR rtl-optimization/85899
31753 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31754 fallthru edges leading to the exit block.
31755
31756 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31757
31758 PR target/89517
31759 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31760 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31761
31762 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31763
31764 PR tree-optimization/89535
31765 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31766 for each operand. Calculate the fallback choice for mask operands
31767 and pass it to vect_get_vec_def_for_operand.
31768
31769 2019-03-01 Richard Biener <rguenther@suse.de>
31770
31771 PR middle-end/89541
31772 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31773 get virtual operands.
31774 (get_expr_operands): Handle CONST_DECL like other decls.
31775
31776 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31777
31778 PR middle-end/89503
31779 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31780 on DECL_P and EXPR_P.
31781
31782 2019-03-01 Richard Biener <rguenther@suse.de>
31783
31784 PR middle-end/89497
31785 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31786 argument, defaulted to zero.
31787 * passes.c (execute_function_todo): Pass down SSA update flags
31788 to cleanup_tree_cfg.
31789 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31790 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31791 form if requested.
31792 (cleanup_tree_cfg): Get and pass down SSA update flags.
31793
31794 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31795
31796 PR bootstrap/89539
31797 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31798 early_lto_debug argument.
31799
31800 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31801
31802 PR tree-optimization/89536
31803 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31804 only whether bit #0 of the value is 0 instead of the entire value.
31805
31806 2019-02-28 Marek Polacek <polacek@redhat.com>
31807
31808 PR c++/87068 - missing diagnostic with fallthrough statement.
31809 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31810 at the end of a seq, save its location to walk_stmt_info.
31811 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31812 a switch.
31813
31814 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31815
31816 PR lto/88585
31817 * tree.c (find_atomic_core_type): Move ahead in file.
31818 (check_base_type): Correctly compare alignments of atomic types.
31819
31820 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31821
31822 PR target/89455
31823 * config/i386/i386.c (get_builtin_code_for_version): Identify
31824 Westmere from PCLMUL, instead of AES.
31825
31826 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31827
31828 PR target/89434
31829 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31830 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31831 -UINTVAL (...).
31832
31833 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31834
31835 PR target/88530
31836 * config/aarch64/aarch64-option-extensions.def: Document it.
31837 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31838 if empty hwcaps.
31839
31840 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31841
31842 PR c/89520
31843 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31844 builtins if they don't have a single scalar floating point argument.
31845 Formatting fixes.
31846
31847 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31848
31849 PR rtl-optimization/89490
31850 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31851 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31852 block section is not mergeable.
31853
31854 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31855
31856 PR target/70341
31857 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31858 old define_insn to ...
31859 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31860 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31861 Rename old define_insn to ...
31862 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31863 (thumb2_casesi_internal_pic): New define_expand. Rename old
31864 define_insn to ...
31865 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31866 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31867 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31868
31869 2019-02-27 Richard Biener <rguenther@suse.de>
31870
31871 PR debug/88878
31872 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31873
31874 2019-02-27 Richard Biener <rguenther@suse.de>
31875
31876 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31877 building.
31878
31879 2019-02-27 Richard Biener <rguenther@suse.de>
31880
31881 PR debug/88878
31882 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31883 parameter, prefix section name with .gnu.debuglto_ if true.
31884 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31885 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31886
31887 2019-02-27 Richard Biener <rguenther@suse.de>
31888
31889 PR debug/89514
31890 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31891 rather than on use_debug_types, doing what output_die does.
31892 (value_format): Likewise.
31893
31894 2019-02-27 Martin Jambor <mjambor@suse.cz>
31895 Martin Sebor <msebor@redhat.com>
31896
31897 * doc/invoke.texi (Warning Options): Reword description of
31898 -Wno-absolute-value.
31899
31900 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31901
31902 PR tree-optimization/89280
31903 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31904 builtin_setjmp_setup_bb): New functions.
31905 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31906 When visiting __builtin_setjmp_setup block, queue in special
31907 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31908 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31909 from visited after the loop if they don't have any visited successor
31910 blocks.
31911
31912 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31913
31914 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31915 New function.
31916 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31917
31918 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31919
31920 PR c++/89507
31921 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31922 with types other than sizetype/ssizetype.
31923
31924 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31925
31926 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31927 (enum sparc_processor_type): ...this.
31928 (enum sparc_code_model_type): New enumeration type.
31929 (enum sparc_memory_model_type): Tweak comments.
31930 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31931 (mtune): Likewise.
31932 (mcmodel): Use sparc_code_model enumeration and variable.
31933 (sparc_code_model): New enumeration.
31934 (mdebug): Add Undocumented marker.
31935 * config/sparc/sparc.h (enum cmodel): Delete.
31936 (sparc_cmodel): Likewise.
31937 (TARGET_CM_MEDLOW): Adjust to above renaming.
31938 (TARGET_CM_MEDMID): Likewise.
31939 (TARGET_CM_MEDANY): Likewise.
31940 (TARGET_CM_EMBMEDANY): Likewise.
31941 * config/sparc/sparc.c (sparc_cmodel): Delete.
31942 (sparc_option_override): Remove string/value mapping support for the
31943 code model. Move code and memory model support to after the handling
31944 of target flags. Do private machine setup last.
31945 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31946 (sparc_legitimize_reload_address): Likewise.
31947 (sparc_output_mi_thunk): Likewise.
31948 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31949
31950 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31951
31952 PR tree-optimization/89500
31953 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31954 (handle_builtin_strlen): Remove noncst_bound variable. Always
31955 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31956 cst if the first cst bytes starting at x are known to be non-zero,
31957 even if the string is not zero terminated. Don't try to modify
31958 *si for strnlen. Update strlen_to_stridx only for strlen or if
31959 we can prove strnlen returns the same value as strlen would.
31960
31961 2019-02-26 Martin Liska <mliska@suse.cz>
31962
31963 * alloc-pool.h (struct pool_usage): Remove extra
31964 print_dash_line.
31965 * bitmap.h (struct bitmap_usage): Likewise.
31966 * ggc-common.c (struct ggc_usage): Likewise.
31967 * mem-stats.h (struct mem_usage): Likewise.
31968 (mem_alloc_description::dump): Print dash lines
31969 here and repeat header at the end of a table report.
31970 It's then more readable.
31971 * tree-phinodes.c (phinodes_print_statistics): Make
31972 horizontal alignment.
31973 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31974 * vec.c (struct vec_usage): Remove extra print_dash_line.
31975 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31976
31977 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31978
31979 * doc/extend.texi (__builtin_object_size):
31980 Use @pxref instead of @xref inside parenthesis.
31981 (__builtin_has_attribute): Add missing comma after @xref.
31982 (__builtin_object_size): Ditto.
31983 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31984
31985 2019-02-26 Jeff Law <law@redhat.com>
31986
31987 PR rtl-optimization/87761
31988 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31989 detect obviously dead insns and delete them.
31990
31991 2019-02-26 Richard Biener <rguenther@suse.de>
31992
31993 PR tree-optimization/89505
31994 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31995 to handle restrict pointed-to vars with multiple subvars
31996 correctly.
31997
31998 2019-02-26 Richard Biener <rguenther@suse.de>
31999
32000 PR tree-optimization/89489
32001 * tree-parloops.c (create_loop_fn): Copy over last_clique.
32002
32003 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
32004
32005 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
32006 and move around comment.
32007 <BIT_AND_EXPR>: Likewise.
32008 <BIT_NOT_EXPR>: Add specific handling for boolean types.
32009
32010 2019-02-26 Jakub Jelinek <jakub@redhat.com>
32011
32012 PR target/89474
32013 * config/i386/i386.c (remove_partial_avx_dependency): Call
32014 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
32015 after changing possibly many instructions to use that pseudo. Fix up
32016 insertion of v4sf_const0 setter at the start of bb.
32017
32018 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
32019
32020 PR c/80409
32021 * doc/extend.texi (Variadic Pointer Args): New section.
32022
32023 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
32024 Martin Sebor <msebor@gmail.com>
32025
32026 * common.opt (Wattribute-alias): Likewise.
32027 * doc/invoke.texi (Option Summary): List general form of
32028 -Wattribute-alias=. List positive form of -Wmissing-attributes.
32029 (-Wmissing-attributes): Invert entry, rewrite and correct default.
32030 Add cross-references.
32031 (-Wattribute-alias): Rewrite and correct default. Mention
32032 considered attributes (same as for -Wmissing-attributes).
32033
32034 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
32035
32036 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
32037 (_mm_cvtpd_ps): Likewise.
32038 (_mm_cvttpd_epi32): Likewise.
32039
32040 PR target/89338
32041 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
32042 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
32043
32044 PR target/89339
32045 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
32046
32047 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32048
32049 PR target/88530
32050 * common/config/aarch64/aarch64-common.c
32051 (struct aarch64_option_extension): Add is_synthetic.
32052 (all_extensions): Use it.
32053 (TARGET_OPTION_INIT_STRUCT): Define hook.
32054 (struct gcc_targetm_common): Moved to end.
32055 (all_extensions_by_on): New.
32056 (opt_ext_cmp, typedef opt_ext): New.
32057 (aarch64_option_init_struct): New.
32058 (aarch64_contains_opt): New.
32059 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
32060 * config/aarch64/aarch64-option-extensions.def
32061 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
32062 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
32063 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
32064 Set is_synthetic to false.
32065 (crypto): Set is_synthetic to true.
32066 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
32067 SYNTHETIC.
32068
32069 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32070
32071 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32072 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
32073 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32074 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
32075 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
32076 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
32077 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
32078 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
32079 Rename ...
32080 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
32081 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32082 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
32083 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
32084 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
32085 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
32086 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
32087 vfmlsl_laneq_high_f16): ... To this.
32088 * config/arm/neon.md: Update comments.
32089
32090 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32091
32092 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32093 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
32094 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32095 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
32096 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
32097 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
32098 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
32099 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
32100 Rename ...
32101 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
32102 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32103 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
32104 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
32105 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
32106 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
32107 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
32108 vfmlslq_laneq_high_f16): ... To this.
32109
32110 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
32111
32112 PR rtl-optimization/86096
32113 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
32114 comparing mw_order values.
32115
32116 2019-02-25 Jakub Jelinek <jakub@redhat.com>
32117
32118 PR target/89434
32119 * config/arm/arm.md (*subsi3_carryin_const): Use
32120 arm_neg_immediate_operand predicate instead of
32121 arm_not_immediate_operand, "L" constraint instead of "K" and
32122 print it using %n2 instead of %B2.
32123 (*subsi3_carryin_const0): New define_insn.
32124 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
32125 instead of arm_not_operand and "I" constraint instead of "K" and
32126 print it using %n3 instead of %B2. Instead of using match_dup 2 add
32127 another match_operand and in the condition check that it is negation
32128 of operands[2].
32129 (*subsi3_carryin_compare_const0): New define_ins.
32130 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
32131 *subsi3_carryin_const.
32132 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
32133 split into *subsi3_carryin_compare_const0 if the highpart is zero.
32134
32135 PR target/89438
32136 * config/arm.vfp.md (*negdf2_vfp): Use
32137 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
32138 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
32139
32140 2019-02-24 Jakub Jelinek <jakub@redhat.com>
32141
32142 PR rtl-optimization/89445
32143 * simplify-rtx.c (simplify_ternary_operation): Don't use
32144 simplify_merge_mask on operands that may trap.
32145 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
32146 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
32147 second operand is CONST_VECTOR, check if any element could be zero.
32148 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
32149 their operands can trap.
32150
32151 2019-02-23 Martin Sebor <msebor@redhat.com>
32152
32153 * gimple-ssa-sprintf.c (target_strtol): Rename...
32154 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
32155 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
32156 check for range error.
32157
32158 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
32159
32160 PR driver/69471
32161 * opts-common.c (prune_options): Also prune joined switches
32162 with Negative and RejectNegative.
32163 * config/i386/i386.opt (march=): Add Negative(march=).
32164 (mtune=): Add Negative(mtune=).
32165 * doc/options.texi: Document Negative used together with Joined
32166 and RejectNegative.
32167
32168 2019-02-22 Martin Sebor <msebor@redhat.com>
32169
32170 * doc/extend.texi (Other Builtins): Add
32171 __builtin_is_constant_evaluated.
32172
32173 2019-02-22 Richard Biener <rguenther@suse.de>
32174
32175 PR tree-optimization/87609
32176 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
32177
32178 2019-02-22 Jeff Law <law@redhat.com>
32179
32180 PR rtl-optimization/87761
32181 * config/mips/mips.md: Add new combiner pattern to recognize
32182 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
32183
32184 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
32185
32186 PR target/89324
32187 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
32188 destination register in peepholes generating patterns for ADDS/SUBS.
32189 (add<mode>3_compare0,
32190 *addsi3_compare0_uxtw, add<mode>3_compareC,
32191 add<mode>3_compareV_imm, add<mode>3_compareV,
32192 *adds_<optab><ALLX:mode>_<GPI:mode>,
32193 *subs_<optab><ALLX:mode>_<GPI:mode>,
32194 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
32195 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
32196 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
32197 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
32198 sub<mode>3_compare1): Allow stack pointer for source register.
32199 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
32200
32201 2019-02-22 Martin Sebor <msebor@redhat.com>
32202
32203 PR tree-optimization/88993
32204 PR tree-optimization/88853
32205 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
32206 New helper.
32207 (sprintf_dom_walker::call_info::is_string_func): New helper.
32208 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
32209 for formatted string functions.
32210 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
32211
32212 2019-02-22 Martin Sebor <msebor@redhat.com>
32213
32214 PR c/89425
32215 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
32216 unreachable subexpressions.
32217
32218 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
32219 Hongtao Liu <hongtao.liu@intel.com>
32220 Sunil K Pandey <sunil.k.pandey@intel.com>
32221
32222 PR target/87007
32223 * config/i386/i386-passes.def: Add
32224 pass_remove_partial_avx_dependency.
32225 * config/i386/i386-protos.h
32226 (make_pass_remove_partial_avx_dependency): New.
32227 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
32228 New function.
32229 (pass_data_remove_partial_avx_dependency): New.
32230 (pass_remove_partial_avx_dependency): Likewise.
32231 (make_pass_remove_partial_avx_dependency): Likewise.
32232 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
32233 (*extendsfdf2): Add avx_partial_xmm_update.
32234 (truncdfsf2): Likewise.
32235 (*float<SWI48:mode><MODEF:mode>2): Likewise.
32236 (SF/DF conversion splitters): Disabled for TARGET_AVX.
32237
32238 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
32239
32240 PR middle-end/85598
32241 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
32242 analysis for pass.
32243
32244 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
32245
32246 PR target/89444
32247 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
32248 (PTA_SKYLAKE): Add PTA_AES.
32249 (PTA_GOLDMONT): Likewise.
32250
32251 2019-02-22 Sudakshina Das <sudi.das@arm.com>
32252
32253 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
32254 instruction if enabled.
32255 (aarch64_override_options): Remove reference to return address key.
32256
32257 2019-02-22 Richard Biener <rguenther@suse.de>
32258
32259 PR tree-optimization/89440
32260 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
32261 not necessary assert.
32262
32263 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
32264
32265 PR fortran/72741
32266 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
32267 (oacc_replace_fn_attrib_attr): ... this new function.
32268 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
32269 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
32270
32271 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32272
32273 * config/arm/arm-cpus.in (ares): Rename to...
32274 (neoverse-n1): ... This. Add ares as alias.
32275 * config/arm/arm-tables.opt: Regenerate.
32276 * config/arm/arm-tune.md: Likewise.
32277 * doc/invoke.txt (ARM Options): Document neoverse-n1.
32278
32279 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32280
32281 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
32282 * config/aarch64/aarch64-tune.md: Regenerate.
32283 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
32284
32285 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32286
32287 * config/aarch64/aarch64.c (ares_tunings): Rename to...
32288 (neoversen1_tunings): ... This.
32289 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
32290 (neoverse-n1): New CPU.
32291 * config/aarch64/aarch64-tune.md: Regenerate.
32292 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
32293
32294 2019-02-22 Richard Biener <rguenther@suse.de>
32295
32296 PR middle-end/87609
32297 * cfghooks.h (dependence_hash): New typedef.
32298 (struct copy_bb_data): New type.
32299 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
32300 (duplicate_block): Likewise.
32301 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
32302 (copy_bbs): Create and pass down copy_bb_data.
32303 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
32304 (rtl_duplicate_bb): Likewise.
32305 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
32306 remap dependence info.
32307
32308 2019-02-22 Richard Biener <rguenther@suse.de>
32309
32310 PR tree-optimization/87609
32311 * tree-core.h (tree_base): Document special clique values.
32312 * tree-inline.c (remap_dependence_clique): Do not use the
32313 special clique value of one.
32314 (maybe_set_dependence_info): Use clique one.
32315 (clear_dependence_clique): New callback.
32316 (compute_dependence_clique): Clear clique one from all refs
32317 before assigning it (again).
32318
32319 2019-02-21 Martin Sebor <msebor@redhat.com>
32320
32321 * doc/extend.texi (__clear_cache): Correct signature.
32322
32323 2019-02-21 Ian Lance Taylor <iant@golang.org>
32324
32325 PR go/89170
32326 * varasm.c (decode_addr_const): Call lookup_constant_def rather
32327 than output_constant_def.
32328 (add_constant_to_table): New static function.
32329 (output_constant_def): Call add_constant_to_table.
32330 (tree_output_constant_def): Likewise.
32331
32332 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32333
32334 PR c++/89285
32335 * builtins.c (fold_builtin_arith_overflow): If first two args are
32336 INTEGER_CSTs, set intres and ovfres to constants rather than calls
32337 to ifn.
32338
32339 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
32340
32341 PR target/87412
32342 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
32343 error for -mindirect-branch/-mfunction-return with incompatible
32344 -fcf-protection.
32345
32346 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32347
32348 PR bootstrap/88714
32349 * constraints.md (q): Remove.
32350 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
32351 instead of q.
32352
32353 2019-02-21 Martin Jambor <mjambor@suse.cz>
32354
32355 PR hsa/89302
32356 * omp-general.c (omp_extract_for_data): Removed a duplicate call
32357 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
32358 (omp_adjust_for_condition): ...here. Added necessary parameters.
32359 * omp-general.h (omp_adjust_for_condition): Updated declaration.
32360 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
32361 proper values to new parameters of omp_adjust_for_condition.
32362
32363 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32364
32365 PR middle-end/89412
32366 * expr.c (expand_assignment): If result is a MEM, use change_address
32367 instead of simplify_gen_subreg.
32368
32369 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32370 David Malcolm <dmalcolm@redhat.com>
32371
32372 PR middle-end/89091
32373 * fold-const.c (decode_field_reference): Return NULL_TREE if
32374 lang_hooks.types.type_for_size returns NULL. Check it before
32375 overwriting *exp_. Use return NULL_TREE instead of return 0.
32376
32377 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32378
32379 PR middle-end/88074
32380 PR middle-end/89415
32381 * toplev.c (do_compile): Double the emin/emax exponents to workaround
32382 buggy mpc_norm.
32383
32384 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
32385
32386 PR target/89397
32387 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
32388 TARGET_SSE in addition to TARGET_SSE_MATH.
32389
32390 (ix86_excess_precision): Ditto.
32391 (ix86_float_exceptions_rounding_supported_p): Ditto.
32392 (use_rsqrt_p): Ditto.
32393 * config/i386/sse.md (rsqrt<mode>2): Ditto.
32394
32395 2019-02-20 David Malcolm <dmalcolm@redhat.com>
32396
32397 PR c/89410
32398 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
32399 linenum_arith_t when determining if two adjacent line spans are
32400 close enough to merge.
32401 (diagnostic_show_locus): Use linenum_arith_t when iterating over
32402 lines within each line_span.
32403
32404 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
32405
32406 PR target/86487
32407 * lra-constraints.c(uses_hard_regs_p): Fix handling of
32408 paradoxical SUBREGS.
32409
32410 2019-02-20 Li Jia He <helijia@linux.ibm.com>
32411
32412 PR target/88100
32413 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
32414 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
32415 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
32416 range checking it.
32417
32418 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
32419
32420 * config/gcn/gcn.c (print_operand): Fix typo.
32421
32422 2019-02-19 Richard Biener <rguenther@suse.de>
32423
32424 PR middle-end/88074
32425 * toplev.c (do_compile): Initialize mpfr's exponent range
32426 based on available float modes.
32427
32428 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
32429
32430 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
32431 as long as the epilogue isn't completed.
32432
32433 2019-02-18 Martin Sebor <msebor@redhat.com>
32434
32435 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
32436 __has_cpp_attribute, and __has_include.
32437
32438 2019-02-18 Martin Sebor <msebor@redhat.com>
32439
32440 * doc/invoke.texi (-Wreturn-type): Correct and expand.
32441
32442 2019-02-18 Martin Sebor <msebor@redhat.com>
32443
32444 PR middle-end/89294
32445 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
32446 expression.
32447 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
32448
32449 2019-02-18 Richard Biener <rguenther@suse.de>
32450
32451 PR tree-optimization/89296
32452 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
32453 of no-warning flag to cases that might emit the bogus warning.
32454
32455 2019-02-18 Jakub Jelinek <jakub@redhat.com>
32456
32457 PR bootstrap/88714
32458 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
32459 "q" constraint.
32460 * config/arm/vfp.md (*movdi_vfp): Likewise.
32461 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
32462 "q" constraint for operands[0].
32463
32464 PR target/89369
32465 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
32466 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
32467 pattern in a temporary buffer.
32468 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
32469 than 64-operands[2].
32470
32471 PR target/89361
32472 * config/s390/s390.c (s390_indirect_branch_attrvalue,
32473 s390_indirect_branch_settings): Define unconditionally.
32474 (s390_set_current_function): Likewise, but guard the whole body except
32475 the s390_indirect_branch_settings call with
32476 #if S390_USE_TARGET_ATTRIBUTE.
32477 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
32478
32479 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
32480 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
32481 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
32482 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
32483 HOST_WIDE_INT_1U instead of 1ULL.
32484 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
32485 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
32486 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
32487 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
32488 instead of 1UL.
32489 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
32490 instead of 1ul.
32491
32492 2019-02-18 Martin Jambor <mjambor@suse.cz>
32493
32494 PR tree-optimization/89209
32495 * tree-sra.c (create_access_replacement): New optional parameter
32496 reg_tree. Use it as a type if non-NULL and access type is not of
32497 a register type.
32498 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32499 to create_access_replacement.
32500 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32501 Check lacc is non-NULL before attempting to re-create it on the RHS.
32502
32503 2019-02-18 Martin Liska <mliska@suse.cz>
32504
32505 PR ipa/89306
32506 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32507 by default.
32508 (symbol_table::free_edge): Recycle m_summary_id.
32509 * cgraph.h (get_summary_id): New.
32510 (symbol_table::release_symbol): Set m_summary_id to -1
32511 by default.
32512 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32513 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32514 function_summary to fast_function_summary.
32515 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32516 * ipa-pure-const.c (class funct_state_summary_t):
32517 Switch from function_summary to fast_function_summary.
32518 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32519 (class ipa_ref_opt_summary_t): Switch from function_summary
32520 to fast_function_summary.
32521 * symbol-summary.h (class function_summary_base): New class
32522 that is created from base of former function_summary.
32523 (function_summary_base::unregister_hooks): New.
32524 (class function_summary): Inherit from function_summary_base.
32525 (class call_summary_base): New class
32526 that is created from base of former call_summary.
32527 (class call_summary): Inherit from call_summary_base.
32528 (struct is_same): New.
32529 (class fast_function_summary): New summary class.
32530 (class fast_call_summary): New summary class.
32531 * vec.h (vec_safe_grow_cleared): New function.
32532
32533 2019-02-18 Martin Liska <mliska@suse.cz>
32534
32535 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32536 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32537 * doc/tm.texi: Document new target hook.
32538 * doc/tm.texi.in: Likewise.
32539 * target.def: Add new target macro.
32540 * gcc.c (find_fortran_preinclude_file): Do not search multilib
32541 suffixes.
32542
32543 2019-02-17 Alan Modra <amodra@gmail.com>
32544
32545 PR target/89271
32546 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32547 output reg on add insn.
32548 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
32549
32550 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32551
32552 PR target/89372
32553 * config/i386/sse.md (ssedoublemode): Remove V4HI.
32554 (PMULHRSW): Likewise.
32555 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32556 TARGET_AVX2.
32557 (ssse3_pmulhrswv4hi3): New expander.
32558
32559 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32560
32561 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32562 MMX. Add isa attribute.
32563
32564 2019-02-16 Jakub Jelinek <jakub@redhat.com>
32565
32566 PR rtl-optimization/66152
32567 * builtins.h (c_readstr): Declare.
32568 * builtins.c (c_readstr): Remove forward declaration. Add
32569 null_terminated_p argument, if false, read all bytes from the
32570 string instead of stopping after '\0'.
32571 * expr.c (string_cst_read_str): New function.
32572 (store_expr): Use string_cst_read_str instead of
32573 builtin_strncpy_read_str. Try to store by pieces the whole
32574 exp_len first, and only if that fails, split it up into
32575 store by pieces followed by clear_storage. Formatting fix.
32576
32577 * config/i386/i386.md (*movqi_internal): Remove static from
32578 buf variable. Use output_asm_insn (buf, operands); return "";
32579 instead of return buf;.
32580 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32581 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32582 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32583
32584 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32585
32586 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32587 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32588 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32589 (CC1_SPEC): Likewise.
32590 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32591
32592 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32593
32594 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32595 the base address on 64-bit strict-alignment platforms.
32596
32597 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32598
32599 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32600
32601 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32602
32603 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32604
32605 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32606
32607 PR rtl-optimization/88308
32608 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32609 on copied instruction.
32610
32611 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32612
32613 * final.c (insn_current_reference_address): Replace test on JUMP_P
32614 with test on jump_to_label_p.
32615 * config/visium/visium-passes.def: New file.
32616 * config/visium/t-visium (PASSES_EXTRA): Define.
32617 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32618 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32619 (TRAMPOLINE_ALIGNMENT): Define.
32620 * config/visium/visium.c (visium_option_override): Do not register
32621 the machine-specific reorg pass here.
32622 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32623 for the GR6.
32624 (output_branch): Adjust threshold for long branch instruction.
32625 * config/visium/visium.md (cpu): Move around.
32626 (length): Adjust for the GR6.
32627
32628 2019-02-15 Richard Biener <rguenther@suse.de>
32629 Jakub Jelinek <jakub@redhat.com>
32630
32631 PR tree-optimization/89278
32632 * tree-loop-distribution.c: Include tree-eh.h.
32633 (generate_memset_builtin, generate_memcpy_builtin): Call
32634 rewrite_to_non_trapping_overflow on builtin->size before passing it
32635 to force_gimple_operand_gsi.
32636
32637 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32638
32639 PR other/89342
32640 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32641 optimize_debug.
32642 * opth-gen.awk: Likewise.
32643
32644 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32645
32646 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32647 Enable MMX, SSE and SSE2 by default.
32648 * config/i386/i386.c (ix86_option_override_internal): Do not
32649 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32650
32651 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32652
32653 PR rtl-optimization/89354
32654 * combine.c (make_extraction): Punt if extraction_mode is narrower
32655 than len bits.
32656
32657 2019-02-14 Maya Rashish <coypu@sdf.org>
32658
32659 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32660 * config/netbsd-d.c: New file.
32661 * config/t-netbsd: Add netbsd-d.o
32662
32663 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32664
32665 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32666 affects_type_identity to true for aarch64_vector_pcs.
32667 (aarch64_comp_type_attributes): New function.
32668 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32669
32670 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32671
32672 PR target/88850
32673 * config/arm/iterators.md (ANY64): Add V4HF.
32674
32675 2019-02-14 Martin Liska <mliska@suse.cz>
32676
32677 PR rtl-optimization/89242
32678 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32679 process a transformation.
32680
32681 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32682
32683 PR tree-optimization/89314
32684 * fold-const.c (fold_binary_loc): Cast strlen argument to
32685 const char * before dereferencing it. Formatting fixes.
32686
32687 PR middle-end/89284
32688 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32689
32690 2019-02-13 Ian Lance Taylor <iant@golang.org>
32691
32692 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32693 and set current index for other optimizations.
32694
32695 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32696
32697 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32698 nonimmediate_operand as operand 2 predicate.
32699 (vec_set<VF2_512_256:mode>_0): Ditto.
32700 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32701 (*vec_concatv2si): Remove alternative 2.
32702 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32703 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32704 (vec_concatv2di): Split alternatives 4,5,6 to ...
32705 (*vec_concatv2di_0) ... new pattern.
32706
32707 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32708
32709 PR target/89190
32710 * config/arm/arm.c (ldm_stm_operation_p) Set
32711 addr_reg_in_reglist correctly for first register.
32712 (load_multiple_sequence): Remove dead base check.
32713 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32714
32715 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32716
32717 PR target/88847
32718 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32719 Expose as @aarch64_pred_mov.
32720 * config/aarch64/aarch64.c (aarch64_classify_address):
32721 Use expand_insn which legitimizes operands.
32722
32723 2019-02-13 Martin Liska <mliska@suse.cz>
32724
32725 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32726 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32727 and pointer_offset fields.
32728 (initialize_argument_information): Remove usage of dead
32729 fields.
32730 * cgraph.h (struct cgraph_thunk_info): Remove
32731 add_pointer_bounds_args.
32732 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32733 fields.
32734 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32735 fields.
32736 * config/i386/i386.c (ix86_function_arg_advance): Remove
32737 unrelated comment.
32738 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32739 (def_builtin): Remove usage of dead fields.
32740 (ix86_add_new_builtins): Likewise.
32741 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32742 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32743 (sem_function::init): Likewise.
32744 (sem_variable::merge): Likewise.
32745 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32746 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32747 * lto-cgraph.c (lto_output_node): Likewise.
32748 (lto_output_varpool_node): Likewise.
32749 (input_node): Likewise.
32750 (input_varpool_node): Likewise.
32751 * lto-streamer-out.c (lto_output): Likewise.
32752 * tree-inline.c (expand_call_inline): Remove usage of
32753 assign_stmts.
32754 * tree-inline.h (struct copy_body_data): Likewise.
32755 * varpool.c (varpool_node::dump): Likewise.
32756
32757 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32758
32759 PR middle-end/89303
32760 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32761 into pt->vars_contains_escaped_heap instead of setting
32762 pt->vars_contains_escaped_heap to it.
32763
32764 PR middle-end/89281
32765 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32766 INTVAL (size), compare it to GET_MODE_MASK instead of
32767 1 << GET_MODE_BITSIZE.
32768
32769 PR target/89290
32770 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32771 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32772 -mcmodel=large.
32773
32774 2019-02-13 Martin Liska <mliska@suse.cz>
32775
32776 PR lto/88858
32777 * cfgrtl.c (remove_barriers_from_footer): New function.
32778 (try_redirect_by_replacing_jump): Use it.
32779 (cfg_layout_redirect_edge_and_branch): Likewise.
32780
32781 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32782
32783 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32784 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32785 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32786 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32787 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32788 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32789 New BU_CRYPTO_2.
32790 * config/rs6000/rs6000.c (builtin_function_type)
32791 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32792 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32793 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32794 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32795 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32796
32797 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32798
32799 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32800 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32801
32802 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32803
32804 PR target/89229
32805 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32806 268678 and revision 268657.
32807 (*movti_internal): Likewise.
32808
32809 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32810
32811 PR target/89233
32812 * config/s390/s390.c (s390_decompose_address): Update comment.
32813 (s390_check_qrst_address): Reject invalid address forms after
32814 LRA.
32815
32816 2019-02-12 Martin Liska <mliska@suse.cz>
32817
32818 PR lto/88876
32819 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32820 we need default values of funct_state for a function that
32821 is not optimized.
32822
32823 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32824
32825 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32826 the object to pick the size of stores on strict-alignment platforms.
32827
32828 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32829 (*movdi_insn_sp32): Likewise.
32830 (*movdi_insn_sp64): Likewise.
32831
32832 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32833
32834 PR lto/88677
32835 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32836 types that needs constructiong.
32837 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32838
32839 2019-02-12 Richard Biener <rguenther@suse.de>
32840
32841 PR tree-optimization/89253
32842 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32843 duplicate the loop.
32844
32845 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32846
32847 PR lto/88147
32848 * input.c (selftest::test_line_offset_overflow): New selftest.
32849 (selftest::input_c_tests): Call it.
32850
32851 2019-02-11 Martin Sebor <msebor@redhat.com>
32852
32853 PR tree-optimization/88771
32854 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32855 when -Wstringop-overflow is set.
32856 (builtin_memref::builtin_memref): Adjust excessive upper bound
32857 only when lower bound is not excessive.
32858 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32859 -Wstringop-ovefflow.
32860 (maybe_diag_offset_bounds): Rename...
32861 (maybe_diag_access_bounds): ...to this.
32862 (check_bounds_or_overlap): Adjust for name change above.
32863
32864 2019-02-11 Martin Sebor <msebor@redhat.com>
32865
32866 PR c++/87996
32867 * builtins.c (max_object_size): Move from here...
32868 * builtins.h (max_object_size): ...and here...
32869 * tree.c (max_object_size): ...to here...
32870 * tree.h (max_object_size): ...and here.
32871
32872 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32873
32874 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32875 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32876 for correct semantics.
32877
32878 2019-02-11 Alan Modra <amodra@gmail.com>
32879
32880 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32881 -mlongcall and -mpltseq.
32882 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32883 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32884 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32885 * config/rs6000/sysv4.opt (mpltseq): New option.
32886 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32887 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32888 support is lacking. Don't allow -mpltseq with -mbss-plt.
32889 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32890 -mpltseq given for ELFv1.
32891 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32892 Only use UNSPEC_PLTSEQ for inline PLT calls.
32893 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32894 use UNSPEC_PLTSEQ for inline PLT calls.
32895 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32896 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32897 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32898 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32899 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32900 (pltseq_mtctr_<mode>): Likewise.
32901
32902 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32903
32904 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32905 Solaris ld.
32906 * configure: Regenerate.
32907
32908 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32909
32910 PR bootstrap/88714
32911 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32912 instead of r.
32913
32914 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32915
32916 * function.c (assign_parm_setup_block): Use the stored
32917 size, not the passed size, when allocating stack-space,
32918 also for a parameter with alignment larger than
32919 MAX_SUPPORTED_STACK_ALIGNMENT.
32920
32921 2019-02-11 Martin Liska <mliska@suse.cz>
32922
32923 PR ipa/89009
32924 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32925 * ipa-inline.c (inline_small_functions): Likewise.
32926 * ipa-pure-const.c (propagate_pure_const): Likewise.
32927 (propagate_nothrow): Likewise.
32928 * ipa-reference.c (propagate): Likewise.
32929 * ipa-utils.c (struct searchc_env): Remove unused field.
32930 (searchc): Always search across AVAIL_INTERPOSABLE.
32931 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32932 the only called IPA pure const can properly not propagate
32933 across interposable boundary.
32934 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32935
32936 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32937
32938 * config/nds32/nds32.md (call_internal, call_value_internal,
32939 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32940
32941 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32942
32943 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32944 typo.
32945
32946 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32947
32948 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32949 in comments
32950
32951 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32952
32953 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32954
32955 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32956
32957 PR tree-optimization/89268
32958 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32959 if preds is non-NULL.
32960
32961 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32962
32963 PR lto/89272
32964 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32965 polymorphic types.
32966
32967 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32968
32969 * config/nds32/nds32.md (trap): New pattern.
32970
32971 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32972
32973 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32974 dwarf span.
32975
32976 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32977
32978 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32979 to split POST_INC.
32980
32981 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32982
32983 * ipa-visibility.c (localize_node): Also do not localize
32984 LDPR_PREVAILING_DEF_IRONLY_EXP.
32985
32986 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32987
32988 PR lto/87957
32989 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32990 instead of type_with_linkage.
32991
32992 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32993
32994 PR ipa/88755
32995 * params.def (uninlined-function-insns, uninlined-function-time,
32996 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32997 bound so we don't get overflows.
32998
32999 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
33000
33001 * config/rs6000/rs6000-string.c (expand_compare_loop,
33002 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
33003 memcmp/strncmp.
33004
33005 2019-02-09 Jakub Jelinek <jakub@redhat.com>
33006
33007 PR middle-end/89246
33008 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33009 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
33010 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
33011
33012 2019-02-09 Alan Modra <amodra@gmail.com>
33013
33014 PR target/88343
33015 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
33016 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
33017 setup.
33018
33019 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
33020
33021 PR middle-end/88560
33022 * lra-constraints.c (process_alt_operands): Don't increase reject
33023 for memory when offset memory is required.
33024
33025 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
33026
33027 * config/s390/vector.md: Implement vector copysign.
33028
33029 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
33030
33031 * expr.c (expand_constructor): Correct indentations.
33032
33033 2019-02-08 Richard Biener <rguenther@suse.de>
33034
33035 PR tree-optimization/89247
33036 * tree-if-conv.c: Include tree-cfgcleanup.h.
33037 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
33038 (tree_if_conversion): Pass through predicate vector.
33039 (pass_if_conversion::execute): Do CFG cleanup and SSA update
33040 inline, see if any if-converted loops we refrece in
33041 LOOP_VECTORIZED calls vanished and fixup.
33042 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
33043
33044 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
33045
33046 * config/s390/constraints.md (jdd): New constraint.
33047
33048 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
33049
33050 PR target/89229
33051 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
33052 upper 16 vector registers without TARGET_AVX512VL.
33053 (*movti_internal): Likewise.
33054
33055 2019-02-08 Jakub Jelinek <jakub@redhat.com>
33056
33057 PR rtl-optimization/89234
33058 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
33059 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
33060 (copy_reg_eh_region_note_backward): Likewise.
33061
33062 2019-02-08 Richard Biener <rguenther@suse.de>
33063
33064 PR middle-end/89223
33065 * tree-data-ref.c (initialize_matrix_A): Fail if constant
33066 doesn't fit in HWI.
33067 (analyze_subscript_affine_affine): Handle failure from
33068 initialize_matrix_A.
33069
33070 2019-02-08 Jakub Jelinek <jakub@redhat.com>
33071
33072 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
33073 cfun everywhere.
33074
33075 2019-02-07 David Malcolm <dmalcolm@redhat.com>
33076
33077 PR tree-optimization/86637
33078 PR tree-optimization/89235
33079 * tree-vect-loop.c (optimize_mask_stores): Add an
33080 auto_purge_vect_location sentinel to ensure that vect_location is
33081 purged on exit.
33082 * tree-vectorizer.c
33083 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
33084 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
33085 to ensure that vect_location is purged on exit.
33086 (pass_slp_vectorize::execute): Likewise, replacing the manual
33087 reset.
33088 * tree-vectorizer.h (class auto_purge_vect_location): New class.
33089
33090 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33091
33092 * config/aarch64/iterators.md (max_opp): New code_attr.
33093 (USMAX): New code iterator.
33094 * config/aarch64/predicates.md (aarch64_smin): New predicate.
33095 (aarch64_smax): Likewise.
33096 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
33097 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
33098 MINUS (MAX MIN).
33099
33100 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
33101
33102 PR target/89229
33103 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
33104 for TARGET_AVX512VL.
33105 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
33106
33107 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
33108
33109 * config/s390/s390-builtin-types.def: Add new types.
33110 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
33111 (s390_vec_xlw4): Make the memory operand into a const pointer.
33112 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
33113 float.
33114 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
33115 a new vector type with the alignment of the scalar memory operand.
33116
33117 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
33118 Jakub Jelinek <jakub@redhat.com>
33119
33120 PR bootstrap/88714
33121 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
33122 arm_count_ldrdstrd_insns): New declarations.
33123 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
33124 MINUS.
33125 (valid_operands_ldrd_strd): New function.
33126 (arm_count_ldrdstrd_insns): New function.
33127 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
33128 sets instead of single DImode set and define new insns to match this.
33129
33130 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33131
33132 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
33133 Make it a C initializer.
33134
33135 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33136
33137 PR/target 88850
33138 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
33139
33140 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33141
33142 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
33143 Use neon_dot<q> for type.
33144 (neon_<sup>dot_lane<vsi2qi>): Likewise.
33145
33146 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33147
33148 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
33149 Use neon_dot<q> for type.
33150 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
33151 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
33152
33153 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
33154
33155 PR rtl-optimization/89225
33156 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
33157 sizes check.
33158
33159 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
33160
33161 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
33162 after restoring registers saved to allocate the frame on Windows.
33163
33164 2019-02-06 Richard Biener <rguenther@suse.de>
33165
33166 PR tree-optimization/89182
33167 * graphite.h (cached_scalar_evolution_in_region): Declare.
33168 * graphite.c (struct seir_cache_key): New.
33169 (struct sese_scev_hash): Likewise.
33170 (seir_cache): New global.
33171 (cached_scalar_evolution_in_region): New function.
33172 (graphite_transform_loops): Allocate and release seir_cache.
33173 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
33174 cached_scalar_evolution_in_region.
33175 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33176 Simplify.
33177 (scop_detection::graphite_can_represent_expr: Use
33178 cached_scalar_evolution_in_region.
33179 (scop_detection::stmt_simple_for_scop_p): Likewise.
33180 (find_params_in_bb): Likewise.
33181 (gather_bbs::before_dom_children): Likewise.
33182 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
33183 (add_loop_constraints): Likewise.
33184
33185 2019-02-06 Jakub Jelinek <jakub@redhat.com>
33186
33187 PR middle-end/89210
33188 * fold-const-call.c (fold_const_vec_convert): Pass true as last
33189 operand to new_unary_operation only if both element types are integral
33190 and it isn't a widening conversion. Return NULL_TREE if
33191 new_unary_operation failed.
33192
33193 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
33194
33195 PR target/88856
33196 * config/s390/s390.md: Remove load and test FP splitter.
33197
33198 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33199
33200 PR target/89112
33201 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
33202 expand_compare_loop, expand_block_compare_gpr,
33203 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
33204 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
33205 #include "profile-count.h" and "predict.h" for types and functions
33206 needed to work with REG_BR_PROB notes.
33207
33208 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33209
33210 PR target/89112
33211 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
33212 for the long branch case.
33213
33214 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33215
33216 PR target/89188
33217 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
33218 can throw, non-call exceptions are enabled and we can't delete
33219 dead exceptions or alter cfg. Set must_clean if
33220 delete_insn_and_edges returns true, don't set it blindly for calls.
33221 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
33222
33223 PR rtl-optimization/89195
33224 * combine.c (make_extraction): For MEMs, don't extract bytes outside
33225 of the original MEM.
33226
33227 2019-02-05 Martin Liska <mliska@suse.cz>
33228
33229 PR gcov-profile/89000
33230 * gcov.c (function_summary): Remove argument.
33231 (file_summary): New function.
33232 (print_usage): Replace tabs with spaces.
33233 (generate_results): Use new function file_summary.
33234
33235 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33236
33237 PR target/89186
33238 * optabs.c (prepare_cmp_insn): Pass x and y to
33239 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
33240
33241 2019-02-05 Richard Biener <rguenther@suse.de>
33242
33243 PR middle-end/89150
33244 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
33245 (struct bitmap_element): Drop chain_prev so we properly recurse on
33246 the prev member, supporting tree views.
33247 (struct bitmap_head): GTY skip the obstack member.
33248
33249 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
33250
33251 PR c/88698
33252 * doc/extend.texi (Vector Extensions): Add an example of using vector
33253 types together with x86 intrinsics.
33254
33255 2019-02-04 Alan Modra <amodra@gmail.com>
33256
33257 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
33258 str[] size to 160, and comment.
33259
33260 2019-02-04 Alan Modra <amodra@gmail.com>
33261
33262 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
33263 (rs6000_pltseq_template): Guard output of TLS markers with
33264 TARGET_TLS_MARKERS.
33265 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
33266 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
33267 to use inline PLT sequences.
33268 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33269 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33270 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
33271
33272 2019-02-04 Martin Liska <mliska@suse.cz>
33273
33274 PR ipa/88985
33275 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
33276 out when ipa_fn_summaries does not contain entry for callee.
33277
33278 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
33279
33280 * config/sparc/sparc.h: Remove superfluous blank lines.
33281 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
33282 (got_register_rtx): ...this.
33283 (sparc_got): Adjust to above renaming.
33284 (sparc_tls_got): Likewise.
33285 (sparc_delegitimize_address): Likewise.
33286 (sparc_output_mi_thunk): Likewise.
33287 (sparc_init_pic_reg): Likewise.
33288 (save_local_or_in_reg_p): Fix test on the GOT register.
33289 (USE_HIDDEN_LINKONCE): Move around.
33290 (get_pc_thunk_name): Likewise.
33291 (gen_load_pcrel_sym): Likewise.
33292 (load_got_register): Likewise.
33293
33294 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
33295
33296 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
33297 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
33298
33299 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33300
33301 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
33302 into consideration.
33303
33304 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33305
33306 * config.gcc (with_nds32_lib, glibc):
33307 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
33308 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
33309 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
33310
33311 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
33312
33313 PR target/89071
33314 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
33315 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
33316 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
33317 (*rcpsf2_sse): Ditto.
33318 (*rsqrtsf2_sse): Ditto.
33319 (sse4_1_round<mode<2): Ditto.
33320
33321 2019-02-03 Richard Biener <rguenther@suse.de>
33322
33323 PR debug/87295
33324 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
33325 orig.
33326
33327 2019-02-02 Jakub Jelinek <jakub@redhat.com>
33328
33329 PR middle-end/87887
33330 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33331 Punt with warning on aggregate return or argument types. Ignore
33332 type/mode checking for uniform arguments.
33333
33334 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
33335
33336 * combine.c (try_combine): Do not print "Can't combine" messages unless
33337 printing failed combination attempts.
33338
33339 2019-02-01 Martin Jambor <mjambor@suse.cz>
33340
33341 PR hsa/87863
33342 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
33343 segment and global segment variables before making them static.
33344
33345 2019-02-01 Martin Jambor <mjambor@suse.cz>
33346
33347 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
33348 missed optimization dump with dump_enabled_p.
33349
33350 2019-02-01 Richard Biener <rguenther@suse.de>
33351
33352 PR middle-end/88597
33353 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
33354 the instantiate cache.
33355 (instantiate_scev_binary): Elide second operand procesing
33356 if equal to the first.
33357 * tree-chrec.c (chrec_contains_symbols): Add visited set.
33358 (chrec_contains_undetermined): Likewise.
33359 (tree_contains_chrecs): Likewise.
33360
33361 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
33362
33363 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
33364
33365 2019-02-01 Jakub Jelinek <jakub@redhat.com>
33366
33367 PR tree-optimization/89143
33368 * wide-int-range.h (wide_int_range_absu): Declare.
33369 * wide-int-range.cc (wide_int_range_absu): New function.
33370 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
33371
33372 PR tree-optimization/88107
33373 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
33374 instead of assertion that eh_region_outermost is non-NULL, if it
33375 is NULL, set *ALL to true and return NULL.
33376 (move_sese_region_to_fn): Adjust caller, if all is set, call
33377 duplicate_eh_regions with NULL region.
33378
33379 2019-02-01 Richard Biener <rguenth@suse.de>
33380
33381 PR rtl-optimization/88593
33382 * mode-switching.c (optimize_mode_switching): Free dominators before
33383 calling cleanup_cfg.
33384
33385 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
33386
33387 PR tree-optimization/88932
33388 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
33389
33390 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33391
33392 PR middle-end/89137
33393 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
33394 bogus clang warning.
33395
33396 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
33397
33398 PR target/89071
33399 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
33400 alternative to avoid partial SSE register stall for TARGET_AVX.
33401 (truncdfsf2): Ditto.
33402 (sse4_1_round<mode>2): Ditto.
33403
33404 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
33405
33406 PR tree-optimization/89008
33407 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
33408 process anything of the form X * 0.
33409
33410 2019-01-31 Richard Biener <rguenther@suse.de>
33411
33412 PR tree-optimization/89135
33413 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
33414 with abnormal preds.
33415
33416 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33417
33418 PR sanitizer/89124
33419 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
33420 always_inline callees into no_sanitize_address callers.
33421
33422 2019-01-31 Richard Biener <rguenther@suse.de>
33423
33424 PR rtl-optimization/89115
33425 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
33426
33427 2019-01-30 Martin Sebor <msebor@redhat.com>
33428
33429 PR other/89106
33430 * doc/extend.texi (cast to a union): Correct and expand.
33431
33432 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
33433
33434 PR rtl-optimization/87246
33435 * lra-constraints.c (simplify_operand_subreg): Reload memory
33436 in subreg if the address became invalid.
33437
33438 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
33439
33440 PR target/87064
33441 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
33442 Disable for little-endian.
33443
33444 2019-01-30 Richard Biener <rguenther@suse.de>
33445
33446 PR rtl-optimization/89115
33447 * opts.c (default_options_optimization): Reduce
33448 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
33449 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
33450 to the default.
33451
33452 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
33453
33454 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
33455 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
33456 type of vector element when vec_extract is implemented by direct
33457 move.
33458
33459 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
33460
33461 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
33462
33463 2019-01-30 Richard Biener <rguenther@suse.de>
33464
33465 PR tree-optimization/89111
33466 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
33467 canonicalization to appropriately sized access types.
33468
33469 2019-01-30 Jakub Jelinek <jakub@redhat.com>
33470
33471 PR c++/89105
33472 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
33473 for arguments to functions that are TU-local and shouldn't be
33474 referenced by assembly.
33475
33476 2019-01-30 Ulrich Drepper <drepper@redhat.com>
33477
33478 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
33479 after '='.
33480
33481 2019-01-29 Martin Sebor <msebor@redhat.com>
33482
33483 PR c/88956
33484 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
33485
33486 2019-01-29 Jakub Jelinek <jakub@redhat.com>
33487
33488 PR c++/66676
33489 PR ipa/89104
33490 * omp-simd-clone.c (simd_clone_clauses_extract)
33491 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
33492 OMP_CLAUSE_ALIGNED_ALIGNMENT.
33493
33494 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
33495
33496 * config.gcc: Force .init_array for ARC.
33497
33498 2019-01-29 Richard Biener <rguenther@suse.de>
33499
33500 PR debug/87295
33501 * dwarf2out.c (collect_skeleton_dies): New helper.
33502 (copy_decls_for_unworthy_types): Call it.
33503 (build_abbrev_table): Assert we do not try to replace
33504 DW_AT_signature refs with local refs.
33505
33506 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33507
33508 PR middle-end/89002
33509 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33510 for lastprivate/linear IV, push gimplify context around gimplify_assign
33511 and, if it needed any temporaries, pop it into a gimple bind around the
33512 sequence.
33513
33514 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33515
33516 * common.opt (-Wattribute-alias): Remove "no-" from name.
33517 Make -Wattribute-alias command line option and
33518 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33519
33520 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33521
33522 PR target/89073
33523 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33524 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33525 x86 ISA options.
33526 (bmi2): Add missing @opindex.
33527 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33528 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
33529 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33530 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33531 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33532 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33533 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33534 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33535 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33536 xsavec, xsaveopt and xsaves options.
33537
33538 2019-01-28 Richard Biener <rguenther@suse.de>
33539
33540 PR debug/89076
33541 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33542 support removal.
33543
33544 2019-01-28 Richard Biener <rguenther@suse.de>
33545
33546 PR tree-optimization/88739
33547 * tree-cfg.c (verify_types_in_gimple_reference): Verify
33548 BIT_FIELD_REFs only are applied to mode-precision operands
33549 when they are integral.
33550 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33551 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33552 BIT_FIELD_REFs of non-mode-precision integral operands.
33553
33554 2019-01-27 Jakub Jelinek <jakub@redhat.com>
33555
33556 PR target/87214
33557 * config/i386/sse.md
33558 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33559 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33560 first constants in pairs are multiples of 2. Formatting fixes.
33561 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33562 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33563 first constants in each quadruple are multiples of 4. Formatting fixes.
33564
33565 2019-01-26 Martin Jambor <mjambor@suse.cz>
33566
33567 PR ipa/88933
33568 * tree-inline.c: Include tree-cfgcleanup.h.
33569 (delete_unreachable_blocks_update_callgraph): Move...
33570 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33571 ...here, make externally visible, make second argument bool, adjust
33572 all callers.
33573 * tree-cfgcleanup.c: Include cgraph.h.
33574 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33575 Declare.
33576 * ipa-prop.c: Include tree-cfgcleanup.h.
33577 (ipcp_transform_function): Call
33578 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33579
33580 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33581
33582 PR rtl-optimization/88846
33583 * ira.c (process_set_for_memref_referenced_p): New.
33584 (memref_referenced_p): Add new param. Use
33585 process_set_for_memref_referenced_p. Add new switch cases.
33586 (memref_used_between_p): Pass new arg to memref_referenced_p.
33587
33588 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33589
33590 PR target/88469
33591 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33592 argument ABI_BREAK. Set to true if the calculated alignment has
33593 changed in gcc-9. Check bit-fields for their base type alignment.
33594 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33595 (aarch64_function_arg_boundary): Likewise.
33596 (aarch64_gimplify_va_arg_expr): Likewise.
33597
33598 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33599
33600 PR middle-end/89037
33601 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33602 instead of accessing TREE_INT_CST_ELT directly.
33603
33604 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33605
33606 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33607 fenv_exceptions description.
33608
33609 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33610
33611 PR rtl-optimization/87763
33612 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33613 Allow SUBREG when matching CC_NZmode compare.
33614
33615 2019-01-25 Richard Biener <rguenther@suse.de>
33616
33617 PR tree-optimization/89049
33618 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33619 Look at the pattern stmt to determine if the stmt is vectorized.
33620
33621 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33622
33623 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33624 (pred_mov<mode>): Handle all-register forms using both a new
33625 alternative and a split.
33626
33627 2019-01-25 Richard Biener <rguenther@suse.de>
33628
33629 PR tree-optimization/86865
33630 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33631 Reject non-do-while loops.
33632
33633 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33634
33635 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33636 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33637 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33638 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33639 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33640 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33641 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33642 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33643 vlogical_operand, gpc_reg_operand, int_reg_operand,
33644 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33645 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33646 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33647 (save_world_operation, restore_world_operation, lmw_operation,
33648 stmw_operation): Use MEM_P and REG_P.
33649 (tie_operand): Use MEM_P.
33650 (vrsave_operation, crsave_operation): Use REG_P.
33651 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33652 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33653 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33654 (call_operand): Use HARD_REGISTER_P.
33655 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33656 Use CONST_INT_P.
33657 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33658 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33659 quad_aligned_load_p, replace_swapped_aligned_store,
33660 recombine_lvx_pattern, replace_swapped_aligned_load,
33661 recombine_stvx_pattern): Use MEM_P.
33662 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33663 Use MEM_P and SYMBOL_REF_P.
33664 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33665 (insn_is_swappable_p): Use REG_P and MEM_P.
33666 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33667 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33668 Use CONST_INT_P.
33669 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33670 Use CONST_DOUBLE_P.
33671 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33672 CONST_WIDE_INT_P.
33673 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33674 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33675 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33676 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33677 reg_or_subregno:
33678 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33679 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33680 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33681 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33682 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33683 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33684 rs6000_split_logical_di): Use CONST_INT_P.
33685 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33686 REG_P and SYMBOL_REF_P.
33687 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33688 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33689 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33690 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33691 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33692 (small_data_operand, print_operand_address): Use CONST_INT_P and
33693 SYMBOL_REF_P.
33694 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33695 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33696 Use HARD_REGISTER_NUM_P.
33697 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33698 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33699 SUBREG_P and SYMBOL_REF_P.
33700 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33701 and HARD_REGISTER_NUM_P.
33702 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33703 reg_or_subregno.
33704 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33705 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33706 MEM_P and REG_P.
33707 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33708 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33709 find_addr_reg): Use REG_P.
33710 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33711 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33712 (offsettable_ok_by_alignment, constant_pool_expr_p,
33713 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33714 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33715 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33716 rs6000_assemble_integer, create_TOC_reference,
33717 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33718 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33719 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33720 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33721 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33722 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33723 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33724 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33725 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33726 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33727 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33728 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33729 and cbranch<mode>4): Use CONST_INT_P.
33730 (multiple define_splits): Use REG_P and SUBREG_P.
33731 (define_expands call, call_value): Use MEM_P.
33732 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33733 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33734 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33735 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33736 and HARD_REGISTER_NUM_P.
33737 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33738
33739 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33740
33741 PR rtl-optimization/88948
33742 * rtl.h (prepare_copy_insn): New prototype.
33743 * gcse.c (prepare_copy_insn): New function, split out from
33744 process_insert_insn.
33745 (process_insert_insn): Use prepare_copy_insn.
33746 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33747 instead of gen_move_insn.
33748
33749 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33750
33751 PR debug/89006
33752 * config/i386/i386.c (ix86_pic_register_p): Return true for
33753 UNSPEC_SET_GOT too.
33754
33755 PR tree-optimization/88964
33756 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33757 punt if HONOR_SNANS (chrec).
33758
33759 PR middle-end/89015
33760 * tree-nested.c (convert_nonlocal_reference_stmt,
33761 convert_local_reference_stmt, convert_tramp_reference_stmt,
33762 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33763 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33764 or GIMPLE_OMP_TASK.
33765
33766 PR tree-optimization/89027
33767 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33768 for "omp simd array" variables.
33769
33770 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33771
33772 PR target/88469
33773 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33774 force the alignment of m_val.
33775
33776 2019-01-24 Richard Biener <rguenther@suse.de>
33777
33778 PR lto/87187
33779 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33780 When in "legacy" debug mode make sure to reset self-origins.
33781
33782 2019-01-24 Martin Liska <mliska@suse.cz>
33783
33784 PR gcov-profile/88994
33785 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33786 result will be always smaller or equal to the original.
33787 * gcov.c (mangle_name): Fix else branch where we should
33788 also copy to PTR and shift the pointer.
33789
33790 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33791
33792 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33793 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33794
33795 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33796
33797 * common/config/i386/i386-common.c
33798 (OPTION_MASK_ISA_ENQCMD_SET,
33799 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33800 (ix86_handle_option): Handle -menqcmd.
33801 * config.gcc (enqcmdintrin.h): New header file.
33802 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33803 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33804 -menqcmd.
33805 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33806 function type.
33807 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33808 __builtin_ia32_enqcmds): New builtins.
33809 * config/i386/i386-c.c (__ENQCMD__): New macro.
33810 * config/i386/i386-option.c (ix86_target_string): Add
33811 -menqcmd.
33812 (ix86_valid_target_attribute_inner_p): Likewise.
33813 * config/i386/i386-expand.c
33814 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33815 IX86_BUILTIN_ENQCMDS.
33816 * config/i386/i386.h (TARGET_ENQCMD): New.
33817 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33818 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33819 (movdir64b_<mode>): Parameterize to enable share expansion code
33820 with ENQCMD in function ix86_expand_builtin.
33821 * config/i386/i386.opt: Add -menqcmd.
33822 * config/i386/immintrin.h: Include enqcmdintrin.h.
33823 * config/i386/enqcmdintrin.h: New intrinsic file.
33824 * doc/invoke.texi: Add -menqcmd.
33825
33826 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33827 Steve Ellcey <sellcey@marvell.com>
33828
33829 PR target/85711
33830 * recog.c (address_operand): Return false on wrong mode for address.
33831 (constrain_operands): Check for mode with 'p' constraint.
33832
33833 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33834
33835 PR target/88998
33836 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33837 Disparage MMX alternative.
33838 (sse2_cvtpd2pi): Ditto.
33839 (sse2_cvttpd2pi): Ditto.
33840
33841 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33842
33843 PR driver/89014
33844 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33845 use-after-free of the result of
33846 aarch64_get_extension_string_for_isa_flags.
33847
33848 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33849
33850 PR c/44715
33851 * doc/extend.texi: Document break and continue behavior in
33852 statement expressions.
33853
33854 2019-01-23 Richard Biener <rguenther@suse.de>
33855
33856 PR tree-optimization/89008
33857 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33858 not leave another stray operand.
33859
33860 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33861
33862 * BASE-VER: Bump to 9.0.1.
33863
33864 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33865
33866 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33867 thunk that returns by reference, use the type of the return object
33868 of the thunk instead of that of the alias to build the dereference.
33869
33870 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33871
33872 * config/arc/atomic.md: Add operand to DMB instruction.
33873
33874 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33875
33876 PR tree-optimization/88964
33877 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33878 build_zero_cst instead of build_int_cst. Return false for loop
33879 invariants which honor signed zeros.
33880
33881 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33882
33883 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33884
33885 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33886
33887 PR target/88965
33888 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33889 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33890 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33891
33892 PR middle-end/88968
33893 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33894 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33895
33896 PR target/87064
33897 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33898 Disable for little endian.
33899
33900 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33901
33902 PR target/88469
33903 * config/arm/arm.c (arm_needs_double_word_align): Check
33904 DECL_BIT_FIELD_TYPE.
33905
33906 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33907 H.J. Lu <hongjiu.lu@intel.com>
33908
33909 PR target/88909
33910 * config/i386/i386-builtin.def: Add mask2 to all builtin
33911 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33912 SPECIAL_ARGS.
33913 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33914 (BDESC_FIRST): Likewise.
33915 (define_builtin): Add an argument for mask2. Updated to handle
33916 both ix86_isa_flags and ix86_isa_flags2.
33917 (define_builtin_const): Likewise.
33918 (define_builtin_pure): Likewise.
33919 (define_builtin2): Deleted.
33920 (define_builtin_const2): Likewise.
33921 (builtin_description): Add a member, mask2.
33922 (bdesc_*): Add mask2 to builtin initializations.
33923 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33924 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33925 support.
33926 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33927
33928 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33929
33930 PR target/88954
33931 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33932 noplt attribute.
33933
33934 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33935
33936 PR target/88469
33937 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33938 alignment is dominated by a bitfield with 64-bit aligned base type.
33939 (arm_function_arg): Emit a warning if the alignment has changed since
33940 earlier GCC releases.
33941 (arm_function_arg_boundary): Likewise.
33942 (arm_setup_incoming_varargs): Likewise.
33943
33944 2019-01-22 Richard Biener <rguenther@suse.de>
33945
33946 PR tree-optimization/88862
33947 * graphite-scop-detection.c
33948 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33949
33950 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33951
33952 * doc/extend.tex (AMD GCN Function Attributes): New section.
33953 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33954 * doc/invoke.texi (AMD GCN Options): New section.
33955 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33956
33957 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33958
33959 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33960 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33961
33962 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33963
33964 PR tree-optimization/88044
33965 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33966 is false in the first iteration, but !every_iteration, return false
33967 instead of true with niter->niter zero.
33968
33969 PR rtl-optimization/88904
33970 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33971 any nonequal registers before processing BB_END (b).
33972
33973 PR target/88905
33974 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33975 GET_MODE (op0).
33976 (expand_binop_directly, expand_doubleword_clz,
33977 expand_doubleword_popcount, expand_ctz, expand_ffs,
33978 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33979
33980 PR rtl-optimization/49429
33981 PR target/49454
33982 PR rtl-optimization/86334
33983 PR target/88906
33984 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33985 addressable from here...
33986 (emit_block_op_via_libcall): ... to here.
33987
33988 2019-01-22 Richard Biener <rguenther@suse.de>
33989
33990 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33991 auto_vec for cost vector to fix memleak.
33992 (vectorize_fold_left_reduction): Properly gather SLP defs.
33993 (vectorizable_comparison): Do not swap operands to properly
33994 gather SLP defs.
33995
33996 2019-01-22 Alan Modra <amodra@gmail.com>
33997
33998 PR target/88614
33999 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
34000 stays a reg. Allow a const_int.
34001 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
34002 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
34003 (IS_NOMARK_TLSGETADDR): Define.
34004 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
34005 (rs6000_output_tlsargs): New function.
34006 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
34007 __tls_get_addr call takes an arg.
34008 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
34009 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
34010 delete split..
34011 (call_value_nonlocal_sysv): ..or here, delete split.
34012 (tls_gdld_nomark): Delete.
34013 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
34014 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
34015 (call_value_nonlocal_sysv): Likewise.
34016 (call_value_nonlocal_sysv_secure): Likewise.
34017 (call_value_nonlocal_aix): Likewise.
34018 (call_value_indirect_aix): Likewise.
34019 (call_value_indirect_elfv2): Likewise.
34020 (call_value_local32, call_value_local64): Disable for no-mark tls.
34021 (call_value_local_aix): Likewise.
34022
34023 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
34024
34025 PR target/88938
34026 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
34027 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
34028
34029 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
34030
34031 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
34032 string contents as hash_map keys.
34033
34034 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
34035
34036 PR c/88928
34037 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
34038 for rvalue context. Handle rvalues correctly. Use min_align_of_type
34039 instead of TYPE_ALIGN.
34040 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
34041 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
34042 pointer from TYPE_STUB_DECL.
34043
34044 2019-01-21 Richard Biener <rguenther@suse.de>
34045
34046 PR tree-optimization/88934
34047 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
34048 at the possibly non-constant operand.
34049 (vect_get_constant_vectors): Adjust.
34050
34051 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
34052
34053 PR target/71659
34054 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
34055 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
34056 instead of _X86INTRIN_H_INCLUDED.
34057 * onfig/i386/clwbintrin.h: Likewise.
34058 * config/i386/pkuintrin.h: Likewise.
34059 * config/i386/prfchwintrin.h: Likewise.
34060 * config/i386/rdseedintrin.h: Likewise.
34061 * config/i386/wbnoinvdintrin.h: Likewise.
34062 * config/i386/xsavecintrin.h: Likewise.
34063 * config/i386/xsavesintrin.h: Likewise.
34064 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
34065 * config/i386/xsaveintrin.h: Likewise.
34066 * config/i386/xsaveoptintrin.h: Likewise.
34067 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
34068 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
34069 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
34070 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
34071 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
34072 * config/i386/immintrin.h: Here.
34073
34074 2019-01-20 Martin Jambor <mjambor@suse.cz>
34075
34076 PR ipa/87615
34077 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
34078 with aa_walk_budget.
34079 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
34080 aa_walk_budget_p parameter.
34081 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
34082 walk. Updated all callers.
34083 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
34084 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
34085 unmodified_parm.
34086 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
34087 parameter info. Extract info from fbi. Pass fbi to recursive calls
34088 and to unmodified_parm.
34089 (phi_result_unknown_predicate): New parameter fbi, removed parameter
34090 info, updated call to will_be_nonconstant_expr_predicate.
34091 (param_change_prob): New parameter fbi, limit AA walking.
34092 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
34093 calls to various above functions.
34094 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
34095 parameter. Use it to limit AA walking.
34096 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
34097 fbi, limit AA walk.
34098 (detect_type_change): New parameter fbi, pass it on to
34099 detect_type_change_from_memory_writes.
34100 (detect_type_change_ssa): Likewise.
34101 (aa_overwalked): Removed.
34102 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
34103 accordingly, adjust to the neew AA limiting scheme.
34104 (parm_ref_data_preserved_p): Likewise.
34105 (ipa_compute_jump_functions_for_edge): Adjust call to
34106 get_dynamic_type.
34107 (ipa_analyze_call_uses): Likewise.
34108 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
34109 (ipa_analyze_node): Initialize aa_walk_budget.
34110 (ipcp_transform_function): Likewise.
34111 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
34112 to get_dynamic_type.
34113
34114 2019-01-19 Jakub Jelinek <jakub@redhat.com>
34115
34116 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
34117 outside of #if CHECKING_P code.
34118
34119 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
34120
34121 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
34122 New function, split out from...
34123 (loop_versioning::analyze_stride): ...here.
34124 (loop_versioning::find_per_loop_multiplication): Use gassign.
34125 (loop_versioning::analyze_term_using_scevs): Return a success code.
34126 (loop_versioning::analyze_arbitrary_term): New function.
34127 (loop_versioning::analyze_address_fragment): Use
34128 analyze_arbitrary_term if all else fails.
34129
34130 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
34131
34132 PR target/88892
34133 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
34134 operands.
34135
34136 2019-01-18 Richard Biener <rguenther@suse.de>
34137
34138 PR tree-optimization/88903
34139 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
34140 scalar stmts a SLP shift amount is composed of when detecting
34141 shifts by scalars.
34142
34143 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
34144
34145 PR target/88799
34146 * config/arm/arm-cpus.in (mp): New feature.
34147 (sec): New feature.
34148 (fgroup ARMv7ve): Add mp and sec features.
34149 (arch armv7-a): Add options to allow mp and sec extensions.
34150 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
34151 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
34152 extenstions to the base architecture.
34153 (cpu cortex-a8): Add sec extension to the base architecture.
34154 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
34155 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
34156 variants down to the base v7-a varaint.
34157 * config/arm/t-multilib (v7_a_arch_variants): New variable.
34158 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
34159 of permitted extensions for -march=armv7-a and for
34160 -mcpu=generic-armv7-a.
34161
34162 2019-01-18 Martin Liska <mliska@suse.cz>
34163
34164 * params.def: Fix comment.
34165 * tree-profile.c (gimple_init_gcov_profiler): Bump function
34166 name.
34167 (gimple_gen_ic_func_profiler): Likewise.
34168
34169 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34170
34171 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
34172 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
34173 and put in error checks for stack protector guard options.
34174 (aarch64_stack_protect_guard): New.
34175 (TARGET_STACK_PROTECT_GUARD): Define.
34176 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
34177 (reg_stack_protect_address<mode>): New.
34178 (stack_protect_set): Adjust for SSP_GLOBAL.
34179 (stack_protect_test): Likewise.
34180 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
34181 (-mstack-protector-guard): Likewise.
34182 (-mstack-protector-guard-offset): Likewise.
34183
34184 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34185
34186 PR tree-optimization/86214
34187 * tree-inline.h (struct copy_body_data): Add
34188 add_clobbers_to_eh_landing_pads member.
34189 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
34190 (copy_edges_for_bb): Call it if EH edge destination is <
34191 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
34192 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
34193 if flag_stack_reuse != SR_NONE and clear it afterwards.
34194
34195 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
34196
34197 PR target/85596
34198 * doc/install.texi (with-multilib-list): Document for aarch64.
34199
34200 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34201
34202 PR target/88734
34203 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
34204 (("..."))) with ("...").
34205
34206 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
34207
34208 * doc/extend.texi (Built-in Functions for Memory Model Aware
34209 Atomic Operations): Document atomic fetch and nand.
34210
34211 2019-01-18 Martin Liska <mliska@suse.cz>
34212 Richard Biener <rguenther@suse.de>
34213
34214 PR middle-end/88587
34215 * cgraph.h (create_version_clone_with_body): Add new argument
34216 with attributes.
34217 * cgraphclones.c (cgraph_node::create_version_clone): Add
34218 DECL_ATTRIBUTES to a newly created decl. And call
34219 valid_attribute_p so that proper cl_target_optimization_node
34220 is set for the newly created declaration.
34221 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
34222 for declaration.
34223 (expand_target_clones): Do not call valid_attribute_p, it must
34224 be already done.
34225 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
34226 vector types.
34227
34228 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34229
34230 PR target/88734
34231 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
34232 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
34233 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
34234
34235 2019-01-17 Martin Sebor <msebor@redhat.com>
34236
34237 PR middle-end/88273
34238 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
34239 Handle anti-ranges the same as no range at all.
34240
34241 2018-01-17 Steve Ellcey <sellcey@cavium.com>
34242
34243 * config/aarch64/aarch64.c (cgraph.h): New include.
34244 (intl.h): New include.
34245 (supported_simd_type): New function.
34246 (currently_supported_simd_type): Ditto.
34247 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
34248 (aarch64_simd_clone_adjust): Ditto.
34249 (aarch64_simd_clone_usable): Ditto.
34250 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
34251 (TARGET_SIMD_CLONE_ADJUST): Ditto.
34252 (TARGET_SIMD_CLONE_USABLE): Ditto.
34253 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
34254 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
34255 call.
34256
34257 2019-01-17 Martin Sebor <msebor@redhat.com>
34258
34259 PR tree-optimization/88800
34260 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
34261 NO_WARNING bit here. Avoid folding out-of-bounds calls.
34262 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
34263 redundant argument. Add new argument and issue diagnostics under
34264 its control. Detect out-of-bounds access even with warnings
34265 disabled.
34266 (check_bounds_or_overlap): Change return type. Add argument.
34267 (wrestrict_dom_walker::check_call): Adjust.
34268 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
34269 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
34270 check_bounds_or_overlap's return value.
34271 (handle_builtin_stxncpy): Same.
34272 (handle_builtin_strcat): Same.
34273
34274 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34275 Kwok Cheung Yeung <kcy@codesourcery.com>
34276 Julian Brown <julian@codesourcery.com>
34277 Tom de Vries <tom@codesourcery.com>
34278
34279 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
34280
34281 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34282
34283 * doc/sourcebuild.texi: Document dg-require-effective-target
34284 llvm_binutils and offload_gcn.
34285
34286 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34287 Kwok Cheung Yeung <kcy@codesourcery.com>
34288 Julian Brown <julian@codesourcery.com>
34289 Tom de Vries <tom@codesourcery.com>
34290
34291 * doc/sourcebuild.texi: Document dg-required-effective-target
34292 exceptions.
34293
34294 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34295 Kwok Cheung Yeung <kcy@codesourcery.com>
34296 Julian Brown <julian@codesourcery.com>
34297 Tom de Vries <tom@codesourcery.com>
34298 Jan Hubicka <hubicka@ucw.cz>
34299 Martin Jambor <mjambor@suse.cz>
34300
34301 * config.gcc: Add amdgcn*-*-amdhsa configuration.
34302 * configure.ac: Check for dlopen.
34303 * configure: Regenerate.
34304
34305 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34306 Kwok Cheung Yeung <kcy@codesourcery.com>
34307 Julian Brown <julian@codesourcery.com>
34308 Tom de Vries <tom@codesourcery.com>
34309 Jan Hubicka <hubicka@ucw.cz>
34310 Martin Jambor <mjambor@suse.cz>
34311
34312 * common/config/gcn/gcn-common.c: New file.
34313 * config/gcn/driver-gcn.c: New file.
34314 * config/gcn/gcn-builtins.def: New file.
34315 * config/gcn/gcn-hsa.h: New file.
34316 * config/gcn/gcn-modes.def: New file.
34317 * config/gcn/gcn-opts.h: New file.
34318 * config/gcn/gcn-passes.def: New file.
34319 * config/gcn/gcn-protos.h: New file.
34320 * config/gcn/gcn-run.c: New file.
34321 * config/gcn/gcn-tree.c: New file.
34322 * config/gcn/gcn.c: New file.
34323 * config/gcn/gcn.h: New file.
34324 * config/gcn/gcn.opt: New file.
34325 * config/gcn/t-gcn-hsa: New file.
34326
34327 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34328 Kwok Cheung Yeung <kcy@codesourcery.com>
34329 Julian Brown <julian@codesourcery.com>
34330 Tom de Vries <tom@codesourcery.com>
34331 Jan Hubicka <hubicka@ucw.cz>
34332 Martin Jambor <mjambor@suse.cz>
34333
34334 * config/gcn/constraints.md: New file.
34335 * config/gcn/gcn-valu.md: New file.
34336 * config/gcn/gcn.md: New file.
34337 * config/gcn/predicates.md: New file.
34338
34339 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
34340
34341 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
34342 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
34343 (stmt_uses_0_or_null_in_undefined_way): Likewise.
34344 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
34345
34346 2019-01-17 Tamar Christina <tamar.christina@arm.com>
34347
34348 PR target/88851
34349 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
34350 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
34351 it and document registers.
34352
34353 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34354
34355 * config/aarch64/aarch64.c (ares_tunings): Define.
34356 * config/aarch64/aarch64-cores.def (ares): Use the above.
34357
34358 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34359
34360 PR target/88794
34361 Revert:
34362 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
34363
34364 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
34365 (_mm512_fixupimm_round_pd): Update parameters and builtin.
34366 (_mm512_maskz_fixupimm_round_pd): Ditto.
34367 (_mm512_fixupimm_round_ps): Ditto.
34368 (_mm512_maskz_fixupimm_round_ps): Ditto.
34369 (_mm_fixupimm_round_sd): Ditto.
34370 (_mm_maskz_fixupimm_round_sd): Ditto.
34371 (_mm_fixupimm_round_ss): Ditto.
34372 (_mm_maskz_fixupimm_round_ss): Ditto.
34373 (_mm512_fixupimm_pd): Ditto.
34374 (_mm512_maskz_fixupimm_pd): Ditto.
34375 (_mm512_fixupimm_ps): Ditto.
34376 (_mm512_maskz_fixupimm_ps): Ditto.
34377 (_mm_fixupimm_sd): Ditto.
34378 (_mm_maskz_fixupimm_sd): Ditto.
34379 (_mm_fixupimm_ss): Ditto.
34380 (_mm_maskz_fixupimm_ss): Ditto.
34381 (_mm512_mask_fixupimm_round_pd): Update builtin.
34382 (_mm512_mask_fixupimm_round_ps): Ditto.
34383 (_mm_mask_fixupimm_round_sd): Ditto.
34384 (_mm_mask_fixupimm_round_ss): Ditto.
34385 (_mm512_mask_fixupimm_pd): Ditto.
34386 (_mm512_mask_fixupimm_ps): Ditto.
34387 (_mm_mask_fixupimm_sd): Ditto.
34388 (_mm_mask_fixupimm_ss): Ditto.
34389 * config/i386/avx512vlintrin.h:
34390 (_mm256_fixupimm_pd): Update parameters and builtin.
34391 (_mm256_maskz_fixupimm_pd): Ditto.
34392 (_mm256_fixupimm_ps): Ditto.
34393 (_mm256_maskz_fixupimm_ps): Ditto.
34394 (_mm_fixupimm_pd): Ditto.
34395 (_mm_maskz_fixupimm_pd): Ditto.
34396 (_mm_fixupimm_ps): Ditto.
34397 (_mm_maskz_fixupimm_ps): Ditto.
34398 (_mm256_mask_fixupimm_pd): Update builtin.
34399 (_mm256_mask_fixupimm_ps): Ditto.
34400 (_mm_mask_fixupimm_pd): Ditto.
34401 (_mm_mask_fixupimm_ps): Ditto.
34402 * config/i386/i386-builtin-types.def: Add new types and remove
34403 useless ones.
34404 * config/i386/i386-builtin.def: Update builtin definitions.
34405 * config/i386/i386.c: Handle new builtin types and remove useless ones.
34406 * config/i386/sse.md: Update VFIXUPIMM* patterns.
34407 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34408 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34409 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
34410 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34411 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34412 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
34413 * config/i386/subst.md:
34414 (round_saeonly_sd_mask_operand4): Add new subst_attr.
34415 (round_saeonly_sd_mask_op4): Ditto.
34416 (round_saeonly_expand_operand5): Ditto.
34417 (round_saeonly_expand): Update.
34418
34419 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34420
34421 PR target/88794
34422 Revert:
34423 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
34424
34425 * config/i386/sse.md: Combine VFIXUPIMM* patterns
34426 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34427 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34428 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
34429 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34430 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34431 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
34432
34433 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34434
34435 PR target/88794
34436 Revert:
34437 2018-12-15 Jakub Jelinek <jakub@redhat.com>
34438
34439 PR target/88489
34440 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
34441 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
34442 instead of UNSPEC_FIXUPIMM.
34443
34444 2019-01-17 Richard Biener <rguenther@suse.de>
34445
34446 PR lto/86736
34447 * dwarf2out.c (want_pubnames): Never generate pubnames sections
34448 and friends for the LTO part of debug info.
34449
34450 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34451
34452 PR tree-optimization/86214
34453 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
34454 if x == y.
34455
34456 PR rtl-optimization/88870
34457 * dce.c (deletable_insn_p): Never delete const/pure calls that can
34458 throw if we can't alter the cfg or delete dead exceptions.
34459 (mark_insn): Don't call find_call_stack_args for such calls.
34460
34461 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
34462
34463 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
34464 prototypes for vec_st.
34465 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
34466 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
34467 mainly on signed/unsigned long long and double.
34468
34469 2019-01-16 David Malcolm <dmalcolm@redhat.com>
34470
34471 PR target/88861
34472 * combine.c (delete_noop_moves): Convert to "bool" return,
34473 returning true if any edges are eliminated.
34474 (combine_instructions): Also return true if delete_noop_moves
34475 returns true.
34476
34477 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34478
34479 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
34480 correct max nunits for endian swap.
34481 (aarch64_expand_fcmla_builtin): Correct subreg code.
34482 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34483 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
34484 lane endianness.
34485
34486 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
34487
34488 * config/alpha/alpha.c (alpha_gimplify_va_arg):
34489 Handle split indirect COMPLEX_TYPE arguments.
34490
34491 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
34492
34493 PR target/86891
34494 * config/aarch64/aarch64-modes.def: Add comment about how the carry
34495 bit is set by add and compare.
34496 (CC_ADC): New CC_MODE.
34497 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34498 to cache the code and mode of X. Adjust the shape of a CC_Cmode
34499 comparison. Add detection for CC_ADCmode.
34500 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
34501 CC_ADCmode.
34502 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34503 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34504 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
34505 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
34506 to eliminate the need for zero-extending the operands.
34507 (add<mode>3_compareC_imm): Delete. Merge into ...
34508 (add<mode>3_compareC): ... this. Restructure the comparison to
34509 eliminate the need for zero-extending the operands.
34510 (add<mode>3_carryin): Use LTU for the overflow detection.
34511 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34512 Reexpress comparison for overflow.
34513 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34514 (add<mode>3_carryinC): Likewise.
34515 (add<mode>3_carryinV): Use LTU for carry between partials.
34516 * config/aarch64/predicates.md (aarch64_carry_operation): Update
34517 handling of CC_Cmode and add CC_ADCmode.
34518 (aarch64_borrow_operation): Likewise.
34519
34520 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34521
34522 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34523 Remove patternmode.
34524 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34525 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34526 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34527 Remove endianness conversion.
34528
34529 2019-01-16 Martin Liska <mliska@suse.cz>
34530
34531 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34532 for GCC driver.
34533 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34534 a new argument.
34535 * gcc.c (add_sysrooted_hdrs_prefix): New function.
34536 (path_prefix_reset): Move up in the source file.
34537 (find_fortran_preinclude_file): Make complex search for the
34538 fortran header files.
34539
34540 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
34541
34542 * godump.c (go_output_typedef): When outputting a typedef, refer
34543 to the underlying type by its name and not its structure.
34544
34545 2019-01-15 David Malcolm <dmalcolm@redhat.com>
34546
34547 PR c++/88795
34548 * tree.c (build_function_type): Assert that arg_types is not
34549 error_mark_node.
34550
34551 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
34552
34553 PR inline-asm/52813
34554 * doc/extend.texi: Document that listing the stack pointer in the
34555 clobber list of an asm is a deprecated feature.
34556 * common.opt (Wdeprecated): Moved from c-family/c.opt.
34557 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34558 warning instead of an error for clobbers of the stack pointer.
34559 Add a note explaining why.
34560
34561 2019-01-15 Richard Biener <rguenther@suse.de>
34562
34563 PR debug/88046
34564 * dwarf2out.c (gen_member_die): Do not generate inheritance
34565 DIEs late.
34566
34567 2019-01-15 Richard Biener <rguenther@suse.de>
34568
34569 PR tree-optimization/88855
34570 * tree-if-conv.c (combine_blocks): Collect
34571 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34572
34573 2019-01-15 Tom de Vries <tdevries@suse.de>
34574
34575 PR target/80547
34576 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34577 lhs == NULL_TREE for gang-level reduction.
34578
34579 2019-01-15 Richard Biener <rguenther@suse.de>
34580 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34581
34582 PR ipa/88788
34583 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34584 return true if SSA_NAME is already marked in visited bitmap.
34585 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34586
34587 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34588
34589 PR tree-optimization/88775
34590 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34591 equal == 0 equality pointer comparisons some more if compared in
34592 integral types and either one points to an automatic var and the
34593 other to a global, or we can prove at least one points to the middle
34594 or both point to start or both point to end.
34595
34596 2019-01-14 Andi Kleen <ak@linux.intel.com>
34597
34598 * Makefile.in: Lower autofdo sampling rate by 10x.
34599 * Makefile.tpl: Dito.
34600
34601 2019-01-14 Tom Honermann <tom@honermann.net>
34602
34603 * defaults.h: Define CHAR8_TYPE.
34604
34605 2019-01-14 Martin Sebor <msebor@redhat.com>
34606
34607 PR target/88638
34608 * doc/extend.texi (Darwin Format Checks): Clarify.
34609
34610 2019-01-14 Richard Biener <rguenther@suse.de>
34611
34612 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34613 whether we are in (simplify ...) or (match ...) context.
34614
34615 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34616
34617 PR rtl-optimization/88796
34618 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34619 * cfgexpand.c (stack_protect_prologue): Initialize
34620 crtl->stack_protect_guard_decl.
34621 * function.c (stack_protect_epilogue): Use it instead of calling
34622 targetm.stack_protect_guard again.
34623 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34624 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34625 crtl->stack_protect_guard_decl.
34626 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34627 on the returned MEM_EXPR.
34628
34629 2019-01-12 Tom de Vries <tdevries@suse.de>
34630
34631 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34632 vector length using -fopenacc-dim.
34633
34634 2019-01-12 Tom de Vries <tdevries@suse.de>
34635
34636 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34637 lengths into account.
34638
34639 2019-01-12 Svante Signell <svante.signell@gmail.com>
34640
34641 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34642 (TARGET_CAN_SPLIT_STACK): Define.
34643 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34644
34645 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34646
34647 * params.def (inline-unit-growth): Set to 40.
34648
34649 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34650
34651 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34652
34653 2019-01-12 Tom de Vries <tdevries@suse.de>
34654
34655 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34656 region calling vector-partitionable routine, set default_vector_length
34657 to WARP_SIZE.
34658
34659 2019-01-12 Tom de Vries <tdevries@suse.de>
34660
34661 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34662 variable default_vector_length.
34663
34664 2019-01-12 Tom de Vries <tdevries@suse.de>
34665
34666 PR middle-end/88703
34667 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34668 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34669 dimensions limits.
34670
34671 2019-01-12 Tom de Vries <tdevries@suse.de>
34672
34673 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34674 (nvptx_goacc_validate_dims): Add used parameter.
34675 * doc/tm.texi: Regenerate.
34676 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34677 argument to call to targetm.goacc.validate_dims.
34678 (default_goacc_validate_dims): Add used
34679 parameter.
34680 * target.def (validate_dims): Add used parameter in DEFHOOK.
34681 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34682
34683 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34684
34685 PR middle-end/85956
34686 PR lto/88733
34687 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34688 field.
34689 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34690 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34691 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34692 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34693
34694 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34695
34696 PR rtl-optimization/87305
34697 * lra-assigns.c
34698 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34699 for little endian pseudos used as paradoxical subreg.
34700
34701 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34702
34703 PR tree-optimization/88693
34704 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34705 for STRING_CSTs that don't contain any NUL characters in the first
34706 TREE_STRING_LENGTH bytes.
34707
34708 2019-01-11 Alan Modra <amodra@gmail.com>
34709
34710 PR 88777
34711 PR 88614
34712 * genattrtab.c (min_fn): Don't translate values.
34713 (min_attr_value): Return INT_MAX when the value can't be calculated.
34714 Return minimum among any values that can be calculated.
34715 (max_attr_value): Adjust.
34716
34717 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34718
34719 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34720
34721 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34722
34723 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34724 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34725 (aarch64_return_call_with_max_clobbers): New function.
34726 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34727 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34728 argument.
34729 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34730 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34731 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34732 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34733 * cselib.c (cselib_process_insn): Add argument to
34734 targetm.hard_regno_call_part_clobbered call.
34735 * ira-conflicts.c (ira_build_conflicts): Ditto.
34736 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34737 * lra-constraints.c (inherit_reload_reg): Ditto.
34738 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34739 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34740 argument. Call targetm.return_call_with_max_clobbers.
34741 Add argument to targetm.hard_regno_call_part_clobbered call.
34742 (calls_have_same_clobbers_p): New function.
34743 (process_bb_lives): Add call_insn and last_call_insn variables.
34744 Pass call_insn to check_pseudos_live_through_calls.
34745 Modify if stmt to check targetm.return_call_with_max_clobbers.
34746 Update setting of flush variable.
34747 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34748 to false.
34749 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34750 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34751 targetm.hard_regno_call_part_clobbered call.
34752 * reginfo.c (choose_hard_reg_mode): Ditto.
34753 * regrename.c (check_new_reg_p): Ditto.
34754 * reload.c (find_equiv_reg): Ditto.
34755 * reload1.c (emit_reload_insns): Ditto.
34756 * sched-deps.c (deps_analyze_insn): Ditto.
34757 * sel-sched.c (init_regs_for_mode): Ditto.
34758 (mark_unavailable_hard_regs): Ditto.
34759 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34760 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34761 (return_call_with_max_clobbers): New target function.
34762 * doc/tm.texi: Regenerate.
34763 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34764 * hooks.c (hook_bool_uint_mode_false): Change to
34765 hook_bool_insn_uint_mode_false.
34766 * hooks.h (hook_bool_uint_mode_false): Ditto.
34767
34768 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34769
34770 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34771 (aarch64_remove_extra_call_preserved_regs): New function.
34772 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34773 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34774 * doc/tm.texi: Regenerate.
34775 * final.c (get_call_reg_set_usage): Call new hook.
34776 * target.def (remove_extra_call_preserved_regs): New hook.
34777 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34778 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34779
34780 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34781
34782 PR bootstrap/88714
34783 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34784 inside of pass_combine_1 dump rather than pass_profile_1.
34785
34786 2019-01-11 Tom de Vries <tdevries@suse.de>
34787
34788 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34789 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34790 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34791 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34792 num_workers 16.
34793
34794 2019-01-11 Tom de Vries <tdevries@suse.de>
34795
34796 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34797
34798 2019-01-11 Jan Beulich <jbeulich@suse.com>
34799
34800 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34801 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34802 sse2_cvtsi2sd): Add {l}.
34803 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34804 syntax.
34805
34806 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34807
34808 PR target/88785
34809 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34810 define_expand.
34811 (*float<floatunssuffix>v2div2sf2): New define_insn.
34812 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34813 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34814 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34815 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34816 match_operands with "const0_operand" "C".
34817
34818 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34819
34820 * config/aarch64/aarch64-builtins.c
34821 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34822 (aarch64_init_simd_builtins): ...Here
34823
34824 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34825
34826 PR rtl-optimization/87305
34827 * lra-assigns.c
34828 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34829 allocation for big endian pseudos used as paradoxical subregs and
34830 spill them if it is wrong.
34831 * lra-constraints.c (lra_constraints): Add a comment.
34832
34833 2019-01-10 Richard Biener <rguenther@suse.de>
34834
34835 PR tree-optimization/88792
34836 * tree-ssa-pre.c (get_representative_for): Do not return a
34837 value-number here.
34838
34839 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34840
34841 PR middle-end/84877
34842 PR bootstrap/88450
34843 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34844 (assign_parm_setup_block): Do the argument slot realignment here
34845 instead.
34846
34847 2019-01-10 Stefan Agner <stefan@agner.ch>
34848
34849 PR target/88648
34850 * config/arm/arm.c (arm_option_override_internal): Force
34851 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34852
34853 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34854
34855 PR c/88568
34856 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34857 DECL_EXTERNAL.
34858
34859 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34860
34861 * config/arm/arm-builtins.c
34862 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34863 (MAC_LANE_PAIR_QUALIFIERS): New.
34864 (arm_expand_builtin_args): Use it.
34865 (arm_expand_builtin_1): Likewise.
34866 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34867 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34868 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34869 * config/arm/arm_neon.h:
34870 (vcadd_rot90_f16): New.
34871 (vcaddq_rot90_f16): New.
34872 (vcadd_rot270_f16): New.
34873 (vcaddq_rot270_f16): New.
34874 (vcmla_f16): New.
34875 (vcmlaq_f16): New.
34876 (vcmla_lane_f16): New.
34877 (vcmla_laneq_f16): New.
34878 (vcmlaq_lane_f16): New.
34879 (vcmlaq_laneq_f16): New.
34880 (vcmla_rot90_f16): New.
34881 (vcmlaq_rot90_f16): New.
34882 (vcmla_rot90_lane_f16): New.
34883 (vcmla_rot90_laneq_f16): New.
34884 (vcmlaq_rot90_lane_f16): New.
34885 (vcmlaq_rot90_laneq_f16): New.
34886 (vcmla_rot180_f16): New.
34887 (vcmlaq_rot180_f16): New.
34888 (vcmla_rot180_lane_f16): New.
34889 (vcmla_rot180_laneq_f16): New.
34890 (vcmlaq_rot180_lane_f16): New.
34891 (vcmlaq_rot180_laneq_f16): New.
34892 (vcmla_rot270_f16): New.
34893 (vcmlaq_rot270_f16): New.
34894 (vcmla_rot270_lane_f16): New.
34895 (vcmla_rot270_laneq_f16): New.
34896 (vcmlaq_rot270_lane_f16): New.
34897 (vcmlaq_rot270_laneq_f16): New.
34898 (vcadd_rot90_f32): New.
34899 (vcaddq_rot90_f32): New.
34900 (vcadd_rot270_f32): New.
34901 (vcaddq_rot270_f32): New.
34902 (vcmla_f32): New.
34903 (vcmlaq_f32): New.
34904 (vcmla_lane_f32): New.
34905 (vcmla_laneq_f32): New.
34906 (vcmlaq_lane_f32): New.
34907 (vcmlaq_laneq_f32): New.
34908 (vcmla_rot90_f32): New.
34909 (vcmlaq_rot90_f32): New.
34910 (vcmla_rot90_lane_f32): New.
34911 (vcmla_rot90_laneq_f32): New.
34912 (vcmlaq_rot90_lane_f32): New.
34913 (vcmlaq_rot90_laneq_f32): New.
34914 (vcmla_rot180_f32): New.
34915 (vcmlaq_rot180_f32): New.
34916 (vcmla_rot180_lane_f32): New.
34917 (vcmla_rot180_laneq_f32): New.
34918 (vcmlaq_rot180_lane_f32): New.
34919 (vcmlaq_rot180_laneq_f32): New.
34920 (vcmla_rot270_f32): New.
34921 (vcmlaq_rot270_f32): New.
34922 (vcmla_rot270_lane_f32): New.
34923 (vcmla_rot270_laneq_f32): New.
34924 (vcmlaq_rot270_lane_f32): New.
34925 (vcmlaq_rot270_laneq_f32): New.
34926 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34927 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34928 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34929 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34930 vcmlaq_lane270): New.
34931 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34932 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34933 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34934 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34935 (arm_option_reconfigure_globals): Use them.
34936 * config/arm/iterators.md (VDF, VQ_HSF): New.
34937 (VCADD, VCMLA): New.
34938 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34939 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34940 New.
34941 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34942 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34943
34944 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34945
34946 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34947 Add qualifier_lane_pair_index.
34948 (emit-rtl.h): Include.
34949 (TYPES_QUADOP_LANE_PAIR): New.
34950 (aarch64_simd_expand_args): Use it.
34951 (aarch64_simd_expand_builtin): Likewise.
34952 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34953 New.
34954 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34955 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34956 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34957 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34958 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34959 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34960 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34961 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34962 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34963 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34964 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34965 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34966 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34967 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34968 Add __ARM_FEATURE_COMPLEX.
34969 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34970 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34971 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34972 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34973 fcmlaq_lane270): New.
34974 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34975 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34976 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34977 * config/aarch64/arm_neon.h:
34978 (vcadd_rot90_f16): New.
34979 (vcaddq_rot90_f16): New.
34980 (vcadd_rot270_f16): New.
34981 (vcaddq_rot270_f16): New.
34982 (vcmla_f16): New.
34983 (vcmlaq_f16): New.
34984 (vcmla_lane_f16): New.
34985 (vcmla_laneq_f16): New.
34986 (vcmlaq_lane_f16): New.
34987 (vcmlaq_rot90_lane_f16): New.
34988 (vcmla_rot90_laneq_f16): New.
34989 (vcmla_rot90_lane_f16): New.
34990 (vcmlaq_rot90_f16): New.
34991 (vcmla_rot90_f16): New.
34992 (vcmlaq_laneq_f16): New.
34993 (vcmla_rot180_laneq_f16): New.
34994 (vcmla_rot180_lane_f16): New.
34995 (vcmlaq_rot180_f16): New.
34996 (vcmla_rot180_f16): New.
34997 (vcmlaq_rot90_laneq_f16): New.
34998 (vcmlaq_rot270_laneq_f16): New.
34999 (vcmlaq_rot270_lane_f16): New.
35000 (vcmla_rot270_laneq_f16): New.
35001 (vcmlaq_rot270_f16): New.
35002 (vcmla_rot270_f16): New.
35003 (vcmlaq_rot180_laneq_f16): New.
35004 (vcmlaq_rot180_lane_f16): New.
35005 (vcmla_rot270_lane_f16): New.
35006 (vcadd_rot90_f32): New.
35007 (vcaddq_rot90_f32): New.
35008 (vcaddq_rot90_f64): New.
35009 (vcadd_rot270_f32): New.
35010 (vcaddq_rot270_f32): New.
35011 (vcaddq_rot270_f64): New.
35012 (vcmla_f32): New.
35013 (vcmlaq_f32): New.
35014 (vcmlaq_f64): New.
35015 (vcmla_lane_f32): New.
35016 (vcmla_laneq_f32): New.
35017 (vcmlaq_lane_f32): New.
35018 (vcmlaq_laneq_f32): New.
35019 (vcmla_rot90_f32): New.
35020 (vcmlaq_rot90_f32): New.
35021 (vcmlaq_rot90_f64): New.
35022 (vcmla_rot90_lane_f32): New.
35023 (vcmla_rot90_laneq_f32): New.
35024 (vcmlaq_rot90_lane_f32): New.
35025 (vcmlaq_rot90_laneq_f32): New.
35026 (vcmla_rot180_f32): New.
35027 (vcmlaq_rot180_f32): New.
35028 (vcmlaq_rot180_f64): New.
35029 (vcmla_rot180_lane_f32): New.
35030 (vcmla_rot180_laneq_f32): New.
35031 (vcmlaq_rot180_lane_f32): New.
35032 (vcmlaq_rot180_laneq_f32): New.
35033 (vcmla_rot270_f32): New.
35034 (vcmlaq_rot270_f32): New.
35035 (vcmlaq_rot270_f64): New.
35036 (vcmla_rot270_lane_f32): New.
35037 (vcmla_rot270_laneq_f32): New.
35038 (vcmlaq_rot270_lane_f32): New.
35039 (vcmlaq_rot270_laneq_f32): New.
35040 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
35041 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
35042 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
35043 (FCADD, FCMLA): New.
35044 (rot): New.
35045 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
35046
35047 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
35048
35049 PR other/16615
35050
35051 * config/pa/pa.c: Change "can not" to "cannot".
35052 * gimple-ssa-evrp-analyze.c: Likewise.
35053 * ipa-icf.c: Likewise.
35054 * ipa-polymorphic-call.c: Likewise.
35055 * ipa-pure-const.c: Likewise.
35056 * lra-constraints.c: Likewise.
35057 * lra-remat.c: Likewise.
35058 * reload1.c: Likewise.
35059 * reorg.c: Likewise.
35060 * tree-ssa-uninit.c: Likewise.
35061
35062 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
35063
35064 PR other/16615
35065
35066 * Makefile.in: Mechanically replace "can not" with "cannot".
35067 * alias.c: Likewise.
35068 * builtins.c: Likewise.
35069 * calls.c: Likewise.
35070 * cgraph.c: Likewise.
35071 * cgraph.h: Likewise.
35072 * cgraphclones.c: Likewise.
35073 * cgraphunit.c: Likewise.
35074 * combine-stack-adj.c: Likewise.
35075 * combine.c: Likewise.
35076 * common/config/i386/i386-common.c: Likewise.
35077 * config/aarch64/aarch64.c: Likewise.
35078 * config/alpha/sync.md: Likewise.
35079 * config/arc/arc.c: Likewise.
35080 * config/arc/predicates.md: Likewise.
35081 * config/arm/arm-c.c: Likewise.
35082 * config/arm/arm.c: Likewise.
35083 * config/arm/arm.h: Likewise.
35084 * config/arm/arm.md: Likewise.
35085 * config/arm/cortex-r4f.md: Likewise.
35086 * config/csky/csky.c: Likewise.
35087 * config/csky/csky.h: Likewise.
35088 * config/darwin-f.c: Likewise.
35089 * config/epiphany/epiphany.md: Likewise.
35090 * config/i386/i386.c: Likewise.
35091 * config/i386/sol2.h: Likewise.
35092 * config/m68k/m68k.c: Likewise.
35093 * config/mcore/mcore.h: Likewise.
35094 * config/microblaze/microblaze.md: Likewise.
35095 * config/mips/20kc.md: Likewise.
35096 * config/mips/sb1.md: Likewise.
35097 * config/nds32/nds32.c: Likewise.
35098 * config/nds32/predicates.md: Likewise.
35099 * config/pa/pa.c: Likewise.
35100 * config/rs6000/e300c2c3.md: Likewise.
35101 * config/rs6000/rs6000.c: Likewise.
35102 * config/s390/s390.h: Likewise.
35103 * config/sh/sh.c: Likewise.
35104 * config/sh/sh.md: Likewise.
35105 * config/spu/vmx2spu.h: Likewise.
35106 * cprop.c: Likewise.
35107 * dbxout.c: Likewise.
35108 * df-scan.c: Likewise.
35109 * doc/cfg.texi: Likewise.
35110 * doc/extend.texi: Likewise.
35111 * doc/fragments.texi: Likewise.
35112 * doc/gty.texi: Likewise.
35113 * doc/invoke.texi: Likewise.
35114 * doc/lto.texi: Likewise.
35115 * doc/md.texi: Likewise.
35116 * doc/objc.texi: Likewise.
35117 * doc/rtl.texi: Likewise.
35118 * doc/tm.texi: Likewise.
35119 * dse.c: Likewise.
35120 * emit-rtl.c: Likewise.
35121 * emit-rtl.h: Likewise.
35122 * except.c: Likewise.
35123 * expmed.c: Likewise.
35124 * expr.c: Likewise.
35125 * fold-const.c: Likewise.
35126 * genautomata.c: Likewise.
35127 * gimple-fold.c: Likewise.
35128 * hard-reg-set.h: Likewise.
35129 * ifcvt.c: Likewise.
35130 * ipa-comdats.c: Likewise.
35131 * ipa-cp.c: Likewise.
35132 * ipa-devirt.c: Likewise.
35133 * ipa-fnsummary.c: Likewise.
35134 * ipa-icf.c: Likewise.
35135 * ipa-inline-transform.c: Likewise.
35136 * ipa-inline.c: Likewise.
35137 * ipa-polymorphic-call.c: Likewise.
35138 * ipa-profile.c: Likewise.
35139 * ipa-prop.c: Likewise.
35140 * ipa-pure-const.c: Likewise.
35141 * ipa-reference.c: Likewise.
35142 * ipa-split.c: Likewise.
35143 * ipa-visibility.c: Likewise.
35144 * ipa.c: Likewise.
35145 * ira-build.c: Likewise.
35146 * ira-color.c: Likewise.
35147 * ira-conflicts.c: Likewise.
35148 * ira-costs.c: Likewise.
35149 * ira-int.h: Likewise.
35150 * ira-lives.c: Likewise.
35151 * ira.c: Likewise.
35152 * ira.h: Likewise.
35153 * loop-invariant.c: Likewise.
35154 * loop-unroll.c: Likewise.
35155 * lower-subreg.c: Likewise.
35156 * lra-assigns.c: Likewise.
35157 * lra-constraints.c: Likewise.
35158 * lra-eliminations.c: Likewise.
35159 * lra-lives.c: Likewise.
35160 * lra-remat.c: Likewise.
35161 * lra-spills.c: Likewise.
35162 * lra.c: Likewise.
35163 * lto-cgraph.c: Likewise.
35164 * lto-streamer-out.c: Likewise.
35165 * postreload-gcse.c: Likewise.
35166 * predict.c: Likewise.
35167 * profile-count.h: Likewise.
35168 * profile.c: Likewise.
35169 * recog.c: Likewise.
35170 * ree.c: Likewise.
35171 * reload.c: Likewise.
35172 * reload1.c: Likewise.
35173 * reorg.c: Likewise.
35174 * resource.c: Likewise.
35175 * rtl.def: Likewise.
35176 * rtl.h: Likewise.
35177 * rtlanal.c: Likewise.
35178 * sched-deps.c: Likewise.
35179 * sched-ebb.c: Likewise.
35180 * sched-rgn.c: Likewise.
35181 * sel-sched-ir.c: Likewise.
35182 * sel-sched.c: Likewise.
35183 * shrink-wrap.c: Likewise.
35184 * simplify-rtx.c: Likewise.
35185 * symtab.c: Likewise.
35186 * target.def: Likewise.
35187 * toplev.c: Likewise.
35188 * tree-call-cdce.c: Likewise.
35189 * tree-cfg.c: Likewise.
35190 * tree-complex.c: Likewise.
35191 * tree-core.h: Likewise.
35192 * tree-eh.c: Likewise.
35193 * tree-inline.c: Likewise.
35194 * tree-loop-distribution.c: Likewise.
35195 * tree-nrv.c: Likewise.
35196 * tree-profile.c: Likewise.
35197 * tree-sra.c: Likewise.
35198 * tree-ssa-alias.c: Likewise.
35199 * tree-ssa-dce.c: Likewise.
35200 * tree-ssa-dom.c: Likewise.
35201 * tree-ssa-forwprop.c: Likewise.
35202 * tree-ssa-loop-im.c: Likewise.
35203 * tree-ssa-loop-ivcanon.c: Likewise.
35204 * tree-ssa-loop-ivopts.c: Likewise.
35205 * tree-ssa-loop-niter.c: Likewise.
35206 * tree-ssa-phionlycprop.c: Likewise.
35207 * tree-ssa-phiopt.c: Likewise.
35208 * tree-ssa-propagate.c: Likewise.
35209 * tree-ssa-threadedge.c: Likewise.
35210 * tree-ssa-threadupdate.c: Likewise.
35211 * tree-ssa-uninit.c: Likewise.
35212 * tree-ssanames.c: Likewise.
35213 * tree-streamer-out.c: Likewise.
35214 * tree.c: Likewise.
35215 * tree.h: Likewise.
35216 * vr-values.c: Likewise.
35217
35218 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
35219
35220 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
35221 (ix86_split_xorsign): Ditto.
35222 * config/i386/i386.c (ix86_expand_xorsign): New function.
35223 (ix86_split_xorsign): Ditto.
35224 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
35225 (xorsign<mode>3): New expander.
35226 (xorsign<mode>3_1): New insn_and_split pattern.
35227 * config/i386/sse.md (xorsign<mode>3): New expander.
35228
35229 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35230
35231 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
35232 (*tablejump_sp64): Likewise.
35233 (*tablejump<P:mode>): ...this.
35234 (*call_address_sp32): Merge into...
35235 (*call_address_sp64): Likewise.
35236 (*call_address<P:mode>): ...this.
35237 (*call_symbolic_sp32): Merge into...
35238 (*call_symbolic_sp64): Likewise.
35239 (*call_symbolic<P:mode>): ...this.
35240 (call_value): Remove constraint and add predicate.
35241 (*call_value_address_sp32): Merge into...
35242 (*call_value_address_sp64): Likewise.
35243 (*call_value_address<P:mode>): ...this.
35244 (*call_value_symbolic_sp32): Merge into...
35245 (*call_value_symbolic_sp64): Likewise.
35246 (*call_value_symbolic<P:mode>): ...this.
35247 (*sibcall_symbolic_sp32): Merge into...
35248 (*sibcall_symbolic_sp64): Likewise.
35249 (*sibcall_symbolic<P:mode>): ...this.
35250 (sibcall_value): Remove constraint and add predicate.
35251 (*sibcall_value_symbolic_sp32): Merge into...
35252 (*sibcall_value_symbolic_sp64): Likewise.
35253 (*sibcall_value_symbolic<P:mode>): ...this.
35254 (window_save): Minor tweak.
35255 (*branch_sp32): Merge into...
35256 (*branch_sp64): Likewise.
35257 (*branch<P:mode>): ...this.
35258
35259 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35260 James Clarke <jrtc27@jrtc27.com>
35261
35262 PR target/84010
35263 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
35264 consistently in TLS address generation and adjust code to the renaming
35265 of patterns. Mark calls to __tls_get_addr as const.
35266 * config/sparc/sparc.md (tgd_hi22): Turn into...
35267 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
35268 (tgd_lo10): Turn into...
35269 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
35270 (tgd_add32): Merge into...
35271 (tgd_add64): Likewise.
35272 (tgd_add<P:mode>): ...this and use Pmode throughout.
35273 (tldm_hi22): Turn into...
35274 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
35275 (tldm_lo10): Turn into...
35276 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
35277 (tldm_add32): Merge into...
35278 (tldm_add64): Likewise.
35279 (tldm_add<P:mode>): ...this and use Pmode throughout.
35280 (tldm_call32): Merge into...
35281 (tldm_call64): Likewise.
35282 (tldm_call<P:mode>): ...this and use Pmode throughout.
35283 (tldo_hix22): Turn into...
35284 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
35285 (tldo_lox10): Turn into...
35286 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
35287 (tldo_add32): Merge into...
35288 (tldo_add64): Likewise.
35289 (tldo_add<P:mode>): ...this and use Pmode throughout.
35290 (tie_hi22): Turn into...
35291 (tie_hi22<P:mode>): ...this and use Pmode throughout.
35292 (tie_lo10): Turn into...
35293 (tie_lo10<P:mode>): ...this and use Pmode throughout.
35294 (tie_ld64): Use DImode throughout.
35295 (tie_add32): Merge into...
35296 (tie_add64): Likewise.
35297 (tie_add<P:mode>): ...this and use Pmode throughout.
35298 (tle_hix22_sp32): Merge into...
35299 (tle_hix22_sp64): Likewise.
35300 (tle_hix22<P:mode>): ...this and use Pmode throughout.
35301 (tle_lox22_sp32): Merge into...
35302 (tle_lox22_sp64): Likewise.
35303 (tle_lox22<P:mode>): ...this and use Pmode throughout.
35304 (*tldo_ldub_sp32): Merge into...
35305 (*tldo_ldub_sp64): Likewise.
35306 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
35307 (*tldo_ldub1_sp32): Merge into...
35308 (*tldo_ldub1_sp64): Likewise.
35309 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
35310 (*tldo_ldub2_sp32): Merge into...
35311 (*tldo_ldub2_sp64): Likewise.
35312 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
35313 (*tldo_ldsb1_sp32): Merge into...
35314 (*tldo_ldsb1_sp64): Likewise.
35315 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
35316 (*tldo_ldsb2_sp32): Merge into...
35317 (*tldo_ldsb2_sp64): Likewise.
35318 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
35319 (*tldo_ldub3_sp64): Use DImode throughout.
35320 (*tldo_ldsb3_sp64): Likewise.
35321 (*tldo_lduh_sp32): Merge into...
35322 (*tldo_lduh_sp64): Likewise.
35323 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
35324 (*tldo_lduh1_sp32): Merge into...
35325 (*tldo_lduh1_sp64): Likewise.
35326 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
35327 (*tldo_ldsh1_sp32): Merge into...
35328 (*tldo_ldsh1_sp64): Likewise.
35329 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
35330 (*tldo_lduh2_sp64): Use DImode throughout.
35331 (*tldo_ldsh2_sp64): Likewise.
35332 (*tldo_lduw_sp32): Merge into...
35333 (*tldo_lduw_sp64): Likewise.
35334 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
35335 (*tldo_lduw1_sp64): Use DImode throughout.
35336 (*tldo_ldsw1_sp64): Likewise.
35337 (*tldo_ldx_sp64): Likewise.
35338 (*tldo_stb_sp32): Merge into...
35339 (*tldo_stb_sp64): Likewise.
35340 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
35341 (*tldo_sth_sp32): Merge into...
35342 (*tldo_sth_sp64): Likewise.
35343 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
35344 (*tldo_stw_sp32): Merge into...
35345 (*tldo_stw_sp64): Likewise.
35346 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
35347 (*tldo_stx_sp64): Use DImode throughout.
35348
35349 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35350
35351 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
35352 check configure option to set BTI and Return Address Signing.
35353 * configure.ac: Add --enable-standard-branch-protection and
35354 --disable-standard-branch-protection.
35355 * configure: Regenerated.
35356 * doc/install.texi: Document the same.
35357
35358 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35359 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35360
35361 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
35362 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
35363 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
35364 if bti is enabled.
35365 * config/aarch64/aarch64-bti-insert.c: New file.
35366 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
35367 pass.
35368 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
35369 new bti pass.
35370 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
35371 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
35372 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
35373 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
35374
35375 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35376
35377 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
35378 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
35379 Disable bti for -mbranch-protection=none.
35380 (aarch64_handle_standard_branch_protection): Enable bti for
35381 -mbranch-protection=standard.
35382 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
35383 -mbranch-protection.
35384 (aarch64_bti_enabled): Check if bti is enabled.
35385 * config/aarch64/aarch64.opt: Declare target variable.
35386 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
35387
35388 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35389
35390 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
35391 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
35392 (aarch64_expand_epilogue): Likewise.
35393 (aarch64_output_mi_thunk): Likewise.
35394 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
35395 TAILCALL_ADDR_REGS to x16 and x17.
35396 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
35397
35398 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35399
35400 * config/aarch64/aarch64-option-extensions.def: Define
35401 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
35402 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
35403 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
35404 (AARCH64_FL_PREDRES): New.
35405 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
35406 AARCH64_FL_PREDRES by default.
35407 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
35408
35409 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35410
35411 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
35412 ARMv8.5-A.
35413 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
35414 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
35415 * doc/invoke.texi: Document ARMv8.5-A.
35416
35417 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
35418
35419 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
35420 (xorsign<mode>3): Likewise.
35421
35422 2019-01-09 Jelinek <jakub@redhat.com>
35423
35424 PR middle-end/88758
35425 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
35426 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
35427
35428 PR rtl-optimization/88331
35429 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
35430 not currently_expanding_to_rtl.
35431
35432 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35433
35434 * doc/invoke.texi (-Os): Remove trailing spaces.
35435 (-finline-functions): Remove reference to -O2.
35436
35437 2019-01-08 Jakub Jelinek <jakub@redhat.com>
35438
35439 PR rtl-optimization/79593
35440 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
35441
35442 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
35443 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
35444
35445 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
35446
35447 PR bootstrap/88721
35448 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
35449 to -1 on entry.
35450
35451 PR debug/88723
35452 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
35453 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
35454
35455 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
35456
35457 PR target/88717
35458 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
35459 ix86_avx_u128_mode_entry.
35460
35461 2019-01-08 Martin Liska <mliska@suse.cz>
35462
35463 PR tree-optimization/88753
35464 * tree-switch-conversion.c (switch_conversion::build_one_array):
35465 Come up with local variable constructor. Convert first to
35466 type of constructor values.
35467
35468 2019-01-08 Richard Biener <rguenther@suse.de>
35469
35470 PR tree-optimization/86554
35471 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
35472 rpo_avail): Move earlier.
35473 (visit_nary_op): When value-numbering to expressions
35474 with different overflow behavior make sure there's an
35475 available expression on the path.
35476
35477 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
35478
35479 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
35480 aarch64_parse_branch_protection,
35481 struct aarch64_branch_protect_type,
35482 aarch64_handle_no_branch_protection,
35483 aarch64_handle_standard_branch_protection,
35484 aarch64_validate_mbranch_protection,
35485 aarch64_handle_pac_ret_protection,
35486 aarch64_handle_attr_branch_protection,
35487 accepted_branch_protection_string,
35488 aarch64_pac_ret_subtypes,
35489 aarch64_branch_protect_types,
35490 aarch64_handle_pac_ret_leaf): Define.
35491 (aarch64_override_options_after_change_1, aarch64_override_options):
35492 Add check for accepted_branch_protection_string.
35493 (aarch64_option_save): Save accepted_branch_protection_string.
35494 (aarch64_option_restore): Save accepted_branch_protection_string.
35495 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35496 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35497 msign-return-address.
35498 * doc/invoke.texi: Add mbranch-protection.
35499
35500 2019-01-08 Alan Modra <amodra@gmail.com>
35501
35502 PR target/88614
35503 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35504 Delete "unknownp" parameter. Adjust callers. Handle
35505 CONST_INT, PLUS, MINUS, and MULT.
35506 (attr_value_aligned): Renamed from or_attr_value.
35507 (min_attr_value): Return INT_MIN for unhandled rtl case..
35508 (min_fn): ..and translate to INT_MAX here.
35509 (write_length_unit_log): Modify to cope without "unknown".
35510 (write_attr_value): Handle IF_THEN_ELSE.
35511
35512 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35513
35514 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35515 optimization for masked stores.
35516
35517 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35518
35519 PR middle-end/88567
35520 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35521 output vector directly to duplicate_and_interleave instead of
35522 going through a temporary. Postpone insertion of ctor_seq to
35523 the end of the loop.
35524
35525 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
35526
35527 PR target/86891
35528 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35529 unsigned_p. Handle signed and unsigned overflow correction as
35530 required.
35531 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35532 prototype.
35533 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35534 for operand 2.
35535 (add<mode>3_compareV_imm): Make this callable for expanding.
35536 (subv<GPI:mode>4): Use register_operand for operand 1. Use
35537 aarch64_plus_operand for operand 2.
35538 (subv<GPI:mode>_insn): New insn pattern.
35539 (subv<GPI:mode>_imm): Likewise.
35540 (negv<GPI:mode>3): New expand pattern.
35541 (negv<GPI:mode>_insn): New insn pattern.
35542 (negv<GPI:mode>_cmp_only): Likewise.
35543 (cmpv<GPI:mode>_insn): Likewise.
35544 (subvti4): Use register_operand for operand 1. Update call to
35545 aarch64_expand_subvti.
35546 (usubvti4): Likewise.
35547 (negvti3): New expand pattern.
35548 (negdi_carryout): New insn pattern.
35549 (negvdi_carryinV): New insn pattern.
35550 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35551 version the named version.
35552 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35553 operands.
35554 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35555 patterns.
35556 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35557 patterns.
35558 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35559 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35560 (sub<mode>3_carryinCV): Delete.
35561 (sub<GPI:mode>3_carryinV): New expand pattern.
35562 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35563
35564 2019-01-07 Richard Biener <rguenther@suse.de>
35565
35566 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35567 of tree_operand_hash.
35568
35569 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35570
35571 PR tree-optimization/88598
35572 * tree.h (single_nonzero_element): Declare.
35573 * tree.c (single_nonzero_element): New function.
35574 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35575 if I is the only nonzero element of CST.
35576
35577 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35578
35579 PR tree-optimization/88598
35580 * tree.h (initializer_each_zero_or_onep): Declare.
35581 * tree.c (initializer_each_zero_or_onep): New function.
35582 (signed_or_unsigned_type_for): Handle float types too.
35583 (unsigned_type_for, signed_type_for): Update comments accordingly.
35584 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35585 x & { 0 or -1, 0 or -1, ... }.
35586
35587 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35588
35589 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35590 with x86_64-pc-linux-gnu.
35591
35592 2019-01-07 Tom de Vries <tdevries@suse.de>
35593
35594 PR target/85486
35595 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35596 function.
35597 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35598 routines.
35599
35600 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35601
35602 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35603 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35604 TARGET_AVX512F as condition.
35605
35606 PR debug/88723
35607 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35608 const_not_ok_for_debug_p target hook.
35609 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35610 on UNSPEC and subexpressions thereof if all subexpressions of the
35611 UNSPEC are CONSTANT_P.
35612
35613 PR tree-optimization/88676
35614 * tree-ssa-phiopt.c (two_value_replacement): New function.
35615 (tree_ssa_phiopt_worker): Call it.
35616
35617 PR sanitizer/88619
35618 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35619 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35620
35621 PR c++/85052
35622 * tree-vect-generic.c: Include insn-config.h and recog.h.
35623 (expand_vector_piecewise): Add defaulted ret_type argument,
35624 if non-NULL, use that in preference to type for the result type.
35625 (expand_vector_parallel): Formatting fix.
35626 (do_vec_conversion, do_vec_narrowing_conversion,
35627 expand_vector_conversion): New functions.
35628 (expand_vector_operations_1): Call expand_vector_conversion
35629 for VEC_CONVERT ifn calls.
35630 * internal-fn.def (VEC_CONVERT): New internal function.
35631 * internal-fn.c (expand_VEC_CONVERT): New function.
35632 * fold-const-call.c (fold_const_vec_convert): New function.
35633 (fold_const_call): Use it for CFN_VEC_CONVERT.
35634 * doc/extend.texi (__builtin_convertvector): Document.
35635
35636 2019-01-07 Tom de Vries <tdevries@suse.de>
35637
35638 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35639 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35640 vector_red_partition, vector_red_sym): New global variables.
35641 (nvptx_option_override): Initialize vector_red_sym.
35642 (nvptx_declare_function_name): Restore red_partition register.
35643 (nvptx_file_end): Emit code to declare the vector reduction variables.
35644 (nvptx_output_red_partition): New function.
35645 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35646 large vector reductions.
35647 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35648 (nvptx_init_builtins): Add VECTOR_ADDR.
35649 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35650 Handle nvptx_expand_shared_addr.
35651 (nvptx_get_shared_red_addr): Add vector argument and handle large
35652 vectors.
35653 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35654 large vectors.
35655 (nvptx_goacc_reduction_init): Likewise.
35656 (nvptx_goacc_reduction_fini): Likewise.
35657 (nvptx_goacc_reduction_teardown): Likewise.
35658 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35659 init,fini,teardown}.
35660 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35661 (nvptx_set_current_function): Init vector_red_partition.
35662 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35663 (nvptx_red_partition): New insn.
35664 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35665
35666 2019-01-07 Tom de Vries <tdevries@suse.de>
35667
35668 PR target/85381
35669 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35670 empty loops.
35671
35672 2019-01-07 Tom de Vries <tdevries@suse.de>
35673
35674 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35675 (nvptx_option_override): Init oacc_bcast_partition.
35676 (nvptx_init_oacc_workers): New function.
35677 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35678 (nvptx_needs_shared_bcast): New function.
35679 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35680 to propagate state.
35681 (nvptx_shared_propagate): Initialize vector bcast partition and
35682 synchronization state.
35683 (nvptx_single): Generalize to enable vectors to use shared-memory
35684 to propagate state.
35685 (nvptx_process_pars): Likewise.
35686 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35687 * config/nvptx/nvptx.h (struct machine_function): Add
35688 bcast_partition and sync_bar members.
35689
35690 2019-01-07 Tom de Vries <tdevries@suse.de>
35691
35692 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35693 (nvptx_apply_dim_limits): New function.
35694 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35695 PTX_WARP_SIZE.
35696
35697 2019-01-07 Tom de Vries <tdevries@suse.de>
35698
35699 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35700 as late as possible.
35701
35702 2019-01-07 Tom de Vries <tdevries@suse.de>
35703
35704 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35705 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35706 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35707 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35708 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35709
35710 2019-01-07 Tom de Vries <tdevries@suse.de>
35711
35712 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35713
35714 2019-01-07 Tom de Vries <tdevries@suse.de>
35715
35716 * omp-offload.c (oacc_get_min_dim): New function.
35717 * omp-offload.h (oacc_get_min_dim): Declare.
35718
35719 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35720
35721 PR target/88521
35722 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35723 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35724
35725 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35726
35727 PR tree-opt/86020
35728 Revert:
35729 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35730
35731 * ipa-inline.c (edge_badness): Use inlined_time instead of
35732 inline_summaries->get.
35733
35734 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35735
35736 * opts.c (enable_fdo_optimizations): Enable
35737 version-loops-for-strides, loop-interchange, unrol-and-jam
35738 and tree-loop-distribution.
35739 * invoke.texi: Document newly enabled options.
35740
35741 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35742
35743 * doc/invoke.texi (max-inline-insns-small): New parameters.
35744 * ipa-inline.c (want_early_inline_function_p): simplify.
35745 (want_inline_small_function_p): Fix pasto from previous patch;
35746 use max-inline-insns-small bound.
35747 * params.def (max-inline-insns-small): New param.
35748 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35749 variables correctly.
35750
35751 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35752
35753 * doc/invoke.texi: Document max-inline-insns-size,
35754 uninlined-function-insns, uninlined-function-time,
35755 uninlined-thunk-insns and uninlined-thunk-time.
35756 * params.def: Add max-inline-insns-size,
35757 uninlined-function-insns, uninlined-function-time,
35758 uninlined-thunk-insns and uninlined-thunk-time.
35759 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35760 new parameters.
35761 * ipa-inline.c (can_inline_edge_by_limits_p,
35762 want_inline_small_function_p): Use new parameters.
35763
35764 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35765
35766 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35767
35768 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35769
35770 PR middle-end/82564
35771 PR target/88620
35772 * expr.c (expand_assignment): For calls returning VLA structures
35773 if to_rtx is not a MEM, force it into a stack temporary.
35774
35775 PR debug/88635
35776 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35777 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35778 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35779 subexpressions of both operands.
35780 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35781 subrtxes are CONSTANT_P.
35782 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35783 2018-11-09 changes.
35784
35785 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35786
35787 * params.def (hot-bb-count-ws-permille): Set to 990.
35788
35789 2019-01-04 Martin Sebor <msebor@redhat.com>
35790
35791 PR c/88546
35792 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35793 leaf.
35794
35795 2019-01-04 Martin Sebor <msebor@redhat.com>
35796
35797 PR c/88363
35798 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35799
35800 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35801
35802 * gdbinit.in: Turn off pagination for the skip commands, restore
35803 it to previous state afterwards.
35804
35805 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35806
35807 PR target/88594
35808 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35809 of GET_MODE (opN) as modes of the libcall arguments.
35810
35811 2019-01-04 Jan Beulich <jbeulich@suse.com>
35812
35813 * config/i386/sse.md
35814 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35815 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35816 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35817 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35818 avx512f_vmcmp<mode>3<round_saeonly_name>,
35819 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35820 avx512f_maskcmp<mode>3,
35821 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35822 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35823 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35824 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35825 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35826 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35827 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35828 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35829 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35830 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35831 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35832 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35833 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35834 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35835 avx512cd_maskb_vec_dup<mode>,
35836 avx512cd_maskw_vec_dup<mode>,
35837 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35838 avx512dq_vmfpclass<mode>,
35839 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35840 instead of =Yk.
35841
35842 2019-01-03 Martin Sebor <msebor@redhat.com>
35843
35844 PR tree-optimization/88659
35845 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35846
35847 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35848
35849 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35850 unaligned vsx and avoid lxvd2x/stxvd2x.
35851 (gen_lvx_v4si_move): New function.
35852
35853 2019-01-03 Tom de Vries <tdevries@suse.de>
35854
35855 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35856 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35857 function.
35858 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35859
35860 2019-01-03 Tom de Vries <tdevries@suse.de>
35861
35862 * config/nvptx/nvptx.c (struct offload_attrs): New.
35863 (populate_offload_attrs): New function. Factor mask extraction out of
35864 nvptx_reorg. Add extraction of dimensions.
35865 (nvptx_reorg): Use populate_offload_attrs.
35866
35867 2019-01-03 Tom de Vries <tdevries@suse.de>
35868
35869 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35870 cases for oacc_min_dims_p and routine_p. Add asserts for
35871 oacc_default_dims_p and offload_region_p.
35872
35873 2019-01-03 Tom de Vries <tdevries@suse.de>
35874
35875 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35876 factored out of ...
35877 (nvptx_goacc_validate_dims): ... here.
35878
35879 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35880
35881 PR tree-optimization/85574
35882 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35883 structure.
35884 (struct ssa_equip_hash_traits): Declare.
35885 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35886
35887 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35888
35889 PR debug/88644
35890 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35891 change it to qualified_type.
35892
35893 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35894
35895 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35896 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35897
35898 2019-01-02 Martin Sebor <msebor@redhat.com>
35899 Jeff Law <law@redhat.com>
35900
35901 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35902 (get_range_strlen_tree): Update appropriately.
35903 (get_range_strlen)
35904 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35905
35906 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35907 rather than set_range_info.
35908 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35909 maybe_set_strlen_range. Handle potentially boundary crossing
35910 cases more conservatively.
35911 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35912 Call set_strlen_range.
35913 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35914
35915 PR middle-end/88663
35916 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35917 need the flexp argument.
35918 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35919 from calls to get_range_strlen. Update comments. Just update
35920 VAL for an unterminated const char array and let the reset of the
35921 code handle it normally. No longer try to set *flexp. Adjust
35922 return value.
35923 (get_range_strlen): Update for the new get_range_strlen API.
35924 (get_maxval_strlen): Similarly.
35925 (gimple_fold_builtin_strlen): Handle update meaning of return value
35926 from get_range_strlen.
35927 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35928 get_range_strlen API.
35929
35930 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35931
35932 PR lto/88130
35933 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35934 false at WPA time when body was removed.
35935
35936 2019-01-02 Martin Liska <mliska@suse.cz>
35937
35938 PR tree-optimization/88650
35939 * predict.c (set_even_probabilities): Calculate probability
35940 remainer only when really used.
35941
35942 2019-01-02 Richard Biener <rguenther@suse.de>
35943
35944 PR middle-end/88651
35945 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35946 widest_ints when mangling max_stmt_execution results.
35947
35948 2019-01-02 Richard Biener <rguenther@suse.de>
35949
35950 PR tree-optimization/88621
35951 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35952 bitfields when canoncalizing.
35953
35954 2019-01-02 Richard Biener <rguenther@suse.de>
35955
35956 PR target/87545
35957 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35958 cost of cheap SSE instruction.
35959
35960 2019-01-02 Richard Biener <rguenther@suse.de>
35961
35962 PR ipa/85574
35963 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35964 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35965 function.
35966 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35967 set after UIDs before splitting them.
35968
35969 2019-01-01 Martin Sebor <msebor@redhat.com>
35970 Jeff Law <law@redhat.com>
35971
35972 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35973 length is optimistic. If it is, then arrange to compute the
35974 conservative length as well.
35975
35976 * gimple-fold.h (get_range_strlen): Update prototype.
35977 * builtins.c (check_access): Update call to get_range_strlen to use
35978 c_strlen_data pointer. Change various variable accesses to instead
35979 pull data from the c_strlen_data structure.
35980 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35981 * calls.c (maybe_warn_nonstring_arg): Likewise.
35982 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35983 minimum length if maximum lengh is unknown.
35984 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35985 that used c_strlen, it's no longer needed. Restructure slightly.
35986 (format_string): Set unlikely range appropriately.
35987 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35988 formatting issues.
35989 (get_range_strlen): Accept c_strlen_data pointer for external
35990 call sites as well. Pass through to call to internal get_range_strlen.
35991 Adjust minlen, maxlen and maxbound as needed.
35992 (get_maxval_strlen): Update comments.
35993 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35994 to use c_strlen_data pointer. Change variable accesses to instead
35995 use c_strlen_data data members.
35996
35997 * gimple-fold.c (get_range_strlen): Update prototype.
35998 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35999 local variables. Use pdata to return information to caller.
36000 Update calls to get_range_strlen. Update pdata->maxbound.
36001 (get_range_strlen -- static version): Similarly.
36002 (get_range_strlen -- extern version): Update for internal
36003 get_range_strlen API change. Convert to external data format.
36004 (get_maxval_strlen): Similarly.
36005
36006 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
36007
36008 * coverage.c (get_coverage_counts): Use current_function_decl.
36009 * profile.c (read_thunk_profile): New function.
36010 (branch_prob): Add THUNK parameter.
36011 * tree-profile.c (tree_profiling): Handle thunks.
36012 * value-prof.c (init_node_map): Handle thunks.
36013 * value-prof.h (branch_prob): Upate prototype.
36014 (read_thunk_profile): Declare.
36015
36016 2019-01-01 Jakub Jelinek <jakub@redhat.com>
36017
36018 Update copyright years.
36019
36020 * gcc.c (process_command): Update copyright notice dates.
36021 * gcov-dump.c (print_version): Ditto.
36022 * gcov.c (print_version): Ditto.
36023 * gcov-tool.c (print_version): Ditto.
36024 * gengtype.c (create_file): Ditto.
36025 * doc/cpp.texi: Bump @copying's copyright year.
36026 * doc/cppinternals.texi: Ditto.
36027 * doc/gcc.texi: Ditto.
36028 * doc/gccint.texi: Ditto.
36029 * doc/gcov.texi: Ditto.
36030 * doc/install.texi: Ditto.
36031 * doc/invoke.texi: Ditto.
36032 \f
36033 Copyright (C) 2019 Free Software Foundation, Inc.
36034
36035 Copying and distribution of this file, with or without modification,
36036 are permitted in any medium without royalty provided the copyright
36037 notice and this notice are preserved.