cgraph.c (cgraph_node::verify_node): Verify tp_first_run.
[gcc.git] / gcc / ChangeLog
1 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
2
3 * cgraph.c (cgraph_node::verify_node): Verify tp_first_run.
4 * cgraph.h (cgrpah_node): Turn tp_first_run back to int.
5 * cgraphunit.c (tp_first_run_node_cmp): Do not watch for overflows.
6 (expand_all_functions): First expand ordered section and then
7 unordered.
8 * profile.c (compute_value_histograms): Error on out of range
9 tp_first_runs.
10
11 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
12
13 * predict.c (compute_function_frequency): Check for presence of IPA
14 profile.
15
16 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
17
18 * varasm.c (default_function_section): Fix confused tests for
19 tp_first_run reordering.
20
21 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
22
23 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Don't
24 allow SVE modes in GPRs.
25
26 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
27
28 * config/aarch64/iterators.md (vccore): New iterator.
29 * config/aarch64/aarch64-sve.md (vec_series<mode>): Use it instead
30 of vwcore.
31 (*vec_series<mode>_plus): Likewise.
32
33 2019-12-10 Frederik Harwath <frederik@codesourcery.com>
34
35 * omp-low.c (scan_omp_for): Use clause location in warning.
36
37 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
38
39 * dwarf2out.c (loc_descriptor): Punt for MODE_VECTOR_BOOL.
40 (add_const_value_attribute): Likewise.
41
42 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
43
44 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
45 handling direct_slp_reduc, allow the PHI arguments to have
46 a different type from the vector elements.
47
48 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
49
50 * tree-vect-stmts.c (vectorizable_condition): Record the loop
51 masks required for extract-last reductions.
52
53 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
54
55 * tree-vect-stmts.c (vect_finish_replace_stmt): Always use the
56 original scalar statement rather than a pattern statement.
57 (vectorizable_condition): Likewise, in the handling of extract-last
58 reductions.
59
60 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
61
62 * tree-vect-loop.c (vectorizable_reduction): Don't use
63 EXTRACT_LAST_REDUCTION for chained reductions.
64
65 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
66
67 * ipa-utils.h (get_odr_name_for_type): Check for a TYPE_DECL.
68 * ipa-devirt.c (warn_types_mismatch): Don't call xstrdup for the
69 second demangled name.
70
71 2019-12-10 Jakub Jelinek <jakub@redhat.com>
72
73 * config/i386/i386.c (IX86_LEA_PRIORITY): Fix comment typos.
74
75 2019-12-10 Martin Liska <mliska@suse.cz>
76
77 PR tree-optimization/92862
78 * predict.c (predict_paths_leading_to_edge): Fix typo from e to e2.
79 * tree-ssa-loop-niter.c (loop_only_exit_p): Return false
80 instead of true;
81
82 2019-12-09 David Malcolm <dmalcolm@redhat.com>
83
84 * gcc-rich-location.c
85 (maybe_range_label_for_tree_type_mismatch::get_text): Replace
86 label_text ctor call with label_text::borrow.
87 * gcc-rich-location.h (text_range_label::get_text): Replace
88 label_text ctor called with false with label_text::borrow.
89
90 2019-12-09 David Malcolm <dmalcolm@redhat.com>
91
92 * diagnostic-show-locus.c (diagnostic_show_locus): Remove initial
93 newline.
94 (selftest::test_diagnostic_show_locus_unknown_location): Remove
95 initial newline from expected outputs.
96 (selftest::test_one_liner_simple_caret): Likewise.
97 (selftest::test_one_liner_caret_and_range): Likewise.
98 (selftest::test_one_liner_multiple_carets_and_ranges): Likewise.
99 (selftest::test_one_liner_fixit_insert_before): Likewise.
100 (selftest::test_one_liner_fixit_insert_after): Likewise.
101 (selftest::test_one_liner_fixit_remove): Likewise.
102 (selftest::test_one_liner_fixit_replace): Likewise.
103 (selftest::test_one_liner_fixit_replace_non_equal_range):
104 Likewise.
105 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
106 Likewise.
107 (selftest::test_one_liner_fixit_validation_adhoc_locations):
108 Likewise.
109 (selftest::test_one_liner_many_fixits_1): Likewise.
110 (selftest::test_one_liner_many_fixits_2): Likewise.
111 (selftest::test_one_liner_labels): Likewise.
112 (selftest::test_one_liner_simple_caret_utf8): Likewise.
113 (selftest::test_one_liner_caret_and_range_utf8): Likewise.
114 (selftest::test_one_liner_multiple_carets_and_ranges_utf8):
115 Likewise.
116 (selftest::test_one_liner_fixit_insert_before_utf8): Likewise.
117 (selftest::test_one_liner_fixit_insert_after_utf8): Likewise.
118 (selftest::test_one_liner_fixit_remove_utf8): Likewise.
119 (selftest::test_one_liner_fixit_replace_utf8): Likewise.
120 (selftest::test_one_liner_fixit_replace_non_equal_range_utf8):
121 Likewise.
122 (selftest::test_one_liner_fixit_replace_equal_secondary_range_utf8):
123 Likewise.
124 (selftest::test_one_liner_fixit_validation_adhoc_locations_utf8):
125 Likewise.
126 (selftest::test_one_liner_many_fixits_1_utf8): Likewise.
127 (selftest::test_one_liner_many_fixits_2_utf8): Likewise.
128 (selftest::test_one_liner_labels_utf8): Likewise.
129 (selftest::test_add_location_if_nearby): Likewise.
130 (selftest::test_diagnostic_show_locus_fixit_lines): Likewise.
131 (selftest::test_overlapped_fixit_printing): Likewise.
132 (selftest::test_overlapped_fixit_printing_utf8): Likewise.
133 (selftest::test_overlapped_fixit_printing_2): Likewise.
134 (selftest::test_fixit_insert_containing_newline): Likewise.
135 (selftest::test_fixit_insert_containing_newline_2): Likewise.
136 (selftest::test_fixit_replace_containing_newline): Likewise.
137 (selftest::test_fixit_deletion_affecting_newline): Likewise.
138 (selftest::test_line_numbers_multiline_range): Likewise.
139 * diagnostic.c (default_diagnostic_finalizer): Add pp_newline call
140 before call to diagnostic_show_locus.
141 (diagnostic_append_note): Likewise.
142
143 2019-12-09 Martin Sebor <msebor@redhat.com>
144
145 PR middle-end/92761
146 PR middle-end/92762
147 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Tighten
148 up tests.
149 * hash-table.h (hash_table::expand): Use placement new to copy
150 construct objects in uninitialized storage.
151 (hash_table::empty_slow): Avoid invoking copy assignment on
152 uninitialized objects.
153
154 2019-12-09 Lewis Hyatt <lhyatt@gmail.com>
155
156 PR preprocessor/49973
157 * input.c (location_compute_display_column): New function to help with
158 multibyte awareness in diagnostics.
159 (test_cpp_utf8): New self-test.
160 (input_c_tests): Call the new test.
161 * input.h (location_compute_display_column): Declare.
162 * diagnostic-show-locus.c: Pervasive changes to add multibyte awareness
163 to all classes and functions.
164 (enum column_unit): New enum.
165 (class exploc_with_display_col): New class.
166 (class layout_point): Convert m_column member to array m_columns[2].
167 (layout_range::contains_point): Add col_unit argument.
168 (test_layout_range_for_single_point): Pass new argument.
169 (test_layout_range_for_single_line): Likewise.
170 (test_layout_range_for_multiple_lines): Likewise.
171 (line_bounds::convert_to_display_cols): New function.
172 (layout::get_state_at_point): Add col_unit argument.
173 (make_range): Use empty filename rather than dummy filename.
174 (get_line_width_without_trailing_whitespace): Rename to...
175 (get_line_bytes_without_trailing_whitespace): ...this.
176 (test_get_line_width_without_trailing_whitespace): Rename to...
177 (test_get_line_bytes_without_trailing_whitespace): ...this.
178 (class layout): m_exploc changed to exploc_with_display_col from
179 plain expanded_location.
180 (layout::get_linenum_width): New accessor member function.
181 (layout::get_x_offset_display): Likewise.
182 (layout::calculate_linenum_width): New subroutine for the constuctor.
183 (layout::calculate_x_offset_display): Likewise.
184 (layout::layout): Use the new subroutines. Add multibyte awareness.
185 (layout::print_source_line): Add multibyte awareness.
186 (layout::print_line): Likewise.
187 (layout::print_annotation_line): Likewise.
188 (line_label::line_label): Likewise.
189 (layout::print_any_labels): Likewise.
190 (layout::annotation_line_showed_range_p): Likewise.
191 (get_printed_columns): Likewise.
192 (class line_label): Rename m_length to m_display_width.
193 (get_affected_columns): Rename to...
194 (get_affected_range): ...this; add col_unit argument and multibyte
195 awareness.
196 (class correction): Add m_affected_bytes and m_display_cols
197 members. Rename m_len to m_byte_length for clarity. Add multibyte
198 awareness throughout.
199 (correction::insertion_p): Add multibyte awareness.
200 (correction::compute_display_cols): New function.
201 (correction::ensure_terminated): Use new member name m_byte_length.
202 (line_corrections::add_hint): Add multibyte awareness.
203 (layout::print_trailing_fixits): Likewise.
204 (layout::get_x_bound_for_row): Likewise.
205 (test_one_liner_simple_caret_utf8): New self-test analogous to the one
206 with _utf8 suffix removed, testing multibyte awareness.
207 (test_one_liner_caret_and_range_utf8): Likewise.
208 (test_one_liner_multiple_carets_and_ranges_utf8): Likewise.
209 (test_one_liner_fixit_insert_before_utf8): Likewise.
210 (test_one_liner_fixit_insert_after_utf8): Likewise.
211 (test_one_liner_fixit_remove_utf8): Likewise.
212 (test_one_liner_fixit_replace_utf8): Likewise.
213 (test_one_liner_fixit_replace_non_equal_range_utf8): Likewise.
214 (test_one_liner_fixit_replace_equal_secondary_range_utf8): Likewise.
215 (test_one_liner_fixit_validation_adhoc_locations_utf8): Likewise.
216 (test_one_liner_many_fixits_1_utf8): Likewise.
217 (test_one_liner_many_fixits_2_utf8): Likewise.
218 (test_one_liner_labels_utf8): Likewise.
219 (test_diagnostic_show_locus_one_liner_utf8): Likewise.
220 (test_overlapped_fixit_printing_utf8): Likewise.
221 (test_overlapped_fixit_printing): Adapt for changes to
222 get_affected_columns, get_printed_columns and class corrections.
223 (test_overlapped_fixit_printing_2): Likewise.
224 (test_linenum_sep): New constant.
225 (test_left_margin): Likewise.
226 (test_offset_impl): Helper function for new test.
227 (test_layout_x_offset_display_utf8): New test.
228 (diagnostic_show_locus_c_tests): Call new tests.
229
230 2019-12-09 Eric Botcazou <ebotcazou@adacore.com>
231
232 * tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute
233 TYPE_CANONICAL from the element type only if it is true. Remove a few
234 obsolete lines and adjust recursive call.
235 (fld_process_array_type): Adjust call to build_array_type_1.
236 (build_array_type): Likewise.
237 (build_nonshared_array_type): Likewise.
238
239 2019-12-09 Andrew Stubbs <ams@codesourcery.com>
240
241 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Change
242 %s to %o in asm output.
243 (gather<mode>_insn_2offsets<exec>): Likewise.
244
245 2019-12-09 Richard Earnshaw <rearnsha@arm.com>
246
247 * config/arm/t-multilib: Use arm->thumb multilib reuse rules
248 on a-profile.
249
250 2019-12-09 Segher Boessenkool <segher@kernel.crashing.org>
251
252 * config/rs6000/rs6000.md (unnamed mfcr define_insn): Name this
253 set<mode>_cc.
254 (unnamed define_insn_and_split): Delete.
255 (unnamed define_insn): Delete.
256 (unnamed define_insn): Delete.
257 (unnamed define_split): Delete.
258
259 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
260
261 * regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
262 avoid a warning.
263
264 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
265
266 PR middle-end/92410
267 * bb-reorder.c (pass_reorder_blocks::execute): Recompute
268 dataflow luids once basic blocks have been reordered.
269 * haifa-sched.c (reemit_notes): Create df insn record for each
270 new note.
271 * regstat.c (regstat_bb_compute_calls_crossed): Assert every
272 insn has an insn record before trying to use it.
273
274 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
275
276 * common/config/i386/i386-common.c
277 (OPTION_MASK_ISA_AVX5124FMAPS_SET): Rename to
278 OPTION_MASK_ISA2_AVX5124FMAPS_SET.
279 (OPTION_MASK_ISA_AVX5124VNNIW_SET, OPTION_MASK_ISA_AVX512BF16_SET,
280 OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
281 OPTION_MASK_ISA_PCONFIG_SET, OPTION_MASK_ISA_WBNOINVD_SET,
282 OPTION_MASK_ISA_SGX_SET, OPTION_MASK_ISA_CX16_SET,
283 OPTION_MASK_ISA_MOVBE_SET, OPTION_MASK_ISA_PTWRITE_SET,
284 OPTION_MASK_ISA_MWAITX_SET, OPTION_MASK_ISA_CLZERO_SET,
285 OPTION_MASK_ISA_RDPID_SET, OPTION_MASK_ISA_VAES_SET,
286 OPTION_MASK_ISA_MOVDIR64B_SET, OPTION_MASK_ISA_WAITPKG_SET,
287 OPTION_MASK_ISA_CLDEMOTE_SET, OPTION_MASK_ISA_ENQCMD_SET,
288 OPTION_MASK_ISA_AVX5124FMAPS_UNSET,
289 OPTION_MASK_ISA_AVX5124VNNIW_UNSET,
290 OPTION_MASK_ISA_AVX512BF16_UNSET,
291 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET,
292 OPTION_MASK_ISA_PCONFIG_UNSET, OPTION_MASK_ISA_WBNOINVD_UNSET,
293 OPTION_MASK_ISA_SGX_UNSET, OPTION_MASK_ISA_CX16_UNSET,
294 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_PTWRITE_UNSET,
295 OPTION_MASK_ISA_MWAITX_UNSET, OPTION_MASK_ISA_CLZERO_UNSET,
296 OPTION_MASK_ISA_RDPID_UNSET, OPTION_MASK_ISA_VAES_UNSET,
297 OPTION_MASK_ISA_MOVDIR64B_UNSET, OPTION_MASK_ISA_WAITPKG_UNSET,
298 OPTION_MASK_ISA_CLDEMOTE_UNSET, OPTION_MASK_ISA_ENQCMD_UNSET,
299 OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
300 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
301 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
302 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
303 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
304 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
305 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
306 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
307 OPTION_MASK_ISA_ENQCMD): Ditto.
308 * config/i386/i386-builtin.def
309 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
310 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
311 OPTION_MASK_ISA_WBNOINVD, OPTION_MASK_ISA_PTWRITE,
312 OPTION_MASK_ISA_RDPID, OPTION_MASK_ISA_VAES,
313 OPTION_MASK_ISA_MOVDIR64B, OPTION_MASK_ISA_ENQCMD): Ditto.
314 * config/i386/i386-builtins.c (OPTION_MASK_ISA_MWAITX,
315 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_WAITPKG,
316 OPTION_MASK_ISA_CLDEMOTE, OPTION_MASK_ISA_WBNOINVD): Ditto.
317 * config/i386/i386-c.c
318 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
319 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
320 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
321 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
322 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
323 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
324 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
325 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
326 OPTION_MASK_ISA_ENQCMD): Ditto.
327 * config/i386/i386-option.c: Ditto
328 * config/i386/i386.opt: Ditto..
329 * config/i386/i386.h: (TARGET_ISA_AVX5124FMAPS,
330 TARGET_ISA_AVX5124VNNIW, TARGET_ISA_AVX512BF16,
331 TARGET_ISA_AVX512VP2INTERSECT, TARGET_ISA_PCONFIG,
332 TARGET_ISA_WBNOINVD, TARGET_ISA_SGX, TARGET_ISA_CX16,
333 TARGET_ISA_MOVBE, TARGET_ISA_PTWRITE, TARGET_ISA_MWAITX,
334 TARGET_ISA_CLZERO, TARGET_ISA_RDPID, TARGET_ISA_VAES,
335 TARGET_ISA_MOVDIR64B, TARGET_ISA_WAITPKG, TARGET_ISA_CLDEMOTE)
336 TARGET_ISA_ENQCMD): Ditto.
337
338 2019-12-09 Sudakshina Das <sudi.das@arm.com>
339 Richard Sandiford <richard.sandiford@arm.com>
340
341 * tree-vect-stmt.c (vectorizable_shift): Condition ndts for
342 vect_model_simple_cost call on scalar_shift_arg.
343
344 2019-12-09 Jakub Jelinek <jakub@redhat.com>
345
346 PR tree-optimization/92834
347 * match.pd (A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
348 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): New simplifications.
349
350 2019-12-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
351
352 PR tree-optimization/89007
353 * tree-vect-patterns.c (vect_recog_average_pattern): If there is no
354 target support available, generate code to distribute rshift over plus
355 and add a carry.
356
357 2019-12-09 Martin Liska <mliska@suse.cz>
358
359 PR ipa/92737
360 * cgraph.c (symbol_table_test::symbol_table_test): Fix
361 coding style.
362 * cgraph.h (symtab_node::symtab_node): New constructor.
363 (cgraph_node::cgraph_node): Likewise.
364 (varpool_node::varpool_node): Likewise.
365 (symbol_table::allocate_cgraph_symbol): Use newly
366 created constructor.
367 (symbol_table::allocate_cgraph_symbol): Remove.
368 * cgraphunit.c (symtab_terminator): Likewise.
369 * varpool.c (varpool_node::create_empty): Use newly
370 created constructor.
371
372 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
373
374 PR target/92686
375 * config/i386/sse.md
376 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
377 *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
378 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
379 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
380 * config/i386/i386.c (ix86_print_operand): New operand substitution.
381 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
382 New function.
383 (ix86_expand_sse_cmp): Relax condition for integer mask from
384 512-bit vector to all 128/256/512-bit vector. Delete code gen
385 for avx512f compare patterns since we have generic pattern now.
386 (ix86_expand_sse_movcc): Adjust condition and codegen for
387 maskcmp.
388 (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
389 when corresponding vector compare is available.
390
391 2019-12-08 Sandra Loosemore <sandra@codesourcery.com>
392
393 Revert:
394 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
395
396 * config/nios2/linux.h (LINK_EH_SPEC): Define.
397
398 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
399
400 * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
401 * cgraph.h (cgrpah_node): Likewise.
402 (tp_first_run_node_cmp): Deeclare.
403 * cgraphunit.c (node_cmp): Rename to ...
404 (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
405 clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
406 (expand_all_functions): Collect tp_first_run and normal functions to
407 two vectors so the other functions remain sorted. Do not check for
408 flag_profile_reorder_functions it is function local flag.
409 * profile.c (compute_value_histograms): Update tp_first_run printing.
410
411 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
412
413 * opts.c (common_handle_option): Do not clear ipa_reference for
414 -fprofile-use.
415
416 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
417
418 * ipa-split.c (split_function): Preserve 0 tp_first_run.
419
420 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
421
422 * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
423 sanity check.
424
425 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
426
427 PR tree-optimization/92860
428 * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
429 Optimization flag.
430
431 2019-12-07 Marek Polacek <polacek@redhat.com>
432
433 PR c++/91678 - wrong error with decltype and location wrapper.
434 * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
435
436 2019-12-07 Eric Botcazou <ebotcazou@adacore.com>
437
438 PR middle-end/90840
439 * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
440 sure to pass a valid inner mode in calls to simplify_gen_subreg.
441
442 2019-12-07 Tobias Burnus <tobias@codesourcery.com>
443 David Malcolm <dmalcolm@redhat.com>
444 Jakub Jelinek <jakub@redhat.com>
445
446 PR c/87488
447 * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
448 instead of ST sequence to terminate OSC 8 strings.
449
450 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com>
451 Vladimir Makarov <vmakarov@redhat.com>
452
453 PR rtl-optimization/92176
454 * lra.c (simplify_subreg_regno): Don't permit unconditional
455 changing mode for LRA too.
456
457 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
458
459 * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
460 (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
461 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
462 Handle them.
463
464 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
465
466 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
467 in the asm output.
468
469 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
470
471 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
472 (VEC_1REG_ALT): Likewise.
473 (VEC_ALL1REG_MODE): New mode iterator.
474 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
475 (VEC_1REG_INT_ALT): Likewise.
476 (VEC_ALL1REG_INT_MODE): New mode interator.
477 (VEC_ALL1REG_INT_ALT): Likewise.
478 (VEC_REG_MODE): Remove V64QI and V64HI.
479 (VEC_ALLREG_MODE): New mode interator.
480 (vec_merge): Change to VEC_ALLREG_MODE.
481 (vec_merge_with_clobber): Likewise.
482 (vec_merge_with_vcc): Likewise.
483 (mov<mode>): Likewise.
484 (mov<mode>_unspec): Likewise.
485 (*mov<mode>): Change to VEC_ALL1REG_MODE.
486 (mov<mode>_exec): Likewise.
487 (*mov<mode>_exec_match): Likewise.
488 (mov<mode>_sgprbase): Likewise.
489 (reload_in<mode>): Change to VEC_ALLREG_MODE.
490 (reload_out<mode>): Likewise.
491 (scalar address splits): Likewise.
492 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
493 (vec_set<mode>): Change to VEC_ALLREG_MODE.
494 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
495 (vec_duplicate<mode><exec>): Likewise.
496 (vec_extract<mode><scalar_mode>): Likewise.
497 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
498 (gather_load<mode>): Likewise.
499 (gather<mode>_exec): Likewise.
500 (gather<mode>_expr<exec>): Likewise.
501 (gather<mode>_insn_1offset<exec>): Likewise.
502 (gather<mode>_insn_1offset_ds<exec>): Likewise.
503 (gather<mode>_insn_2offsets<exec>): Likewise.
504 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
505 (VEC_INT_MODE): Remove V64QI and V64HI.
506 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
507 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
508 VEC_ALL1REG_MODE.
509 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
510 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
511 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
512 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
513 (maskstore<mode>di): Likewise.
514 (mask_gather_load<mode>): Likewise.
515 (mov_from_lane63_<mode>): Likewise.
516 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
517 and V64HImode vectorization.
518 (gcn_related_vector_mode): New function.
519 (TARGET_VECTORIZE_RELATED_MODE): New define.
520
521 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
522 Kwok Cheung Yeung <kcy@codesourcery.com>
523
524 * omp-low.c (lower_omp_target): For optional arguments, deref once
525 more to obtain the type.
526
527 2019-12-06 Richard Biener <rguenther@suse.de>
528
529 * match.pd (nop_convert): Remove empty match. Use nop_convert?
530 everywhere.
531
532 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
533
534 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
535 for empty vectors. Avoid using ordered_remove and instead
536 shuffle the vector as we go.
537
538 2019-12-06 Richard Biener <rguenther@suse.de>
539
540 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
541 VIEW_CONVERT{0,1,2}.
542 (expr::opt_grp): Add and initialize.
543 (lower_opt_convert): Rename to ...
544 (lower_opt): ... and work on opt_grp, simply switching operations
545 from being optional to being present or not.
546 (has_opt_convert): Rename to ...
547 (has_opt): ... and adjust.
548 (parser::parse_operation): Return the optional opt_grp,
549 remove special-casing of conditional operations and more generally
550 parse [digit]'?'.
551 (parser::parse_expr): Stick on the parsed opt_grp and perform
552 rough verification.
553 (parser::parse_for): Remove now unnecessary code.
554 (main): Likewise.
555 * doc/match-and-simplify.texi: Mention ? now works on all
556 unary operations and also match predicates.
557
558 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
559
560 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
561 functions, not inline clones.
562
563 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
564
565 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
566
567 2019-12-06 Richard Biener <rguenther@suse.de>
568
569 * genmatch.c (c_expr::gen_transform): Emit newlines from line
570 number changes rather than after every semicolon.
571
572 2019-12-06 Richard Biener <rguenther@suse.de>
573
574 PR tree-optimization/92819
575 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
576 into the last lane. For two-element vectors try inserting
577 into the last lane when inserting into the first fails.
578
579 2019-12-06 Jakub Jelinek <jakub@redhat.com>
580
581 * common.opt (fprofile-partial-training): Terminate description with
582 full stop.
583
584 2019-12-05 Martin Sebor <msebor@redhat.com>
585
586 PR middle-end/92622
587 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
588 left uninitialized by get_addr_base_and_unit_offset on failure.
589
590 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
591
592 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
593 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
594 (detect_type_change): Likewise.
595 (detect_type_change_ssa): Likewise.
596 (ipa_analyze_virtual_call_uses): Update.
597
598 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
599
600 * config/nios2/linux.h (LINK_EH_SPEC): Define.
601
602 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
603
604 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
605
606 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
607
608 * cgraphclones.c (localize_profile): New function.
609 (cgraph_node::create_clone): Use it for partial profiles.
610 * common.opt (fprofile-partial-training): New flag.
611 * doc/invoke.texi (-fprofile-partial-training): Document.
612 * ipa-cp.c (update_profiling_info): For partial profiles do not
613 set function profile to zero.
614 * profile.c (compute_branch_probabilities): With partial profile
615 watch if edge count is zero and turn all probabilities to guessed.
616 (compute_branch_probabilities): For partial profiles do not apply
617 profile when entry count is zero.
618 * tree-profile.c (tree_profiling): Only do value_profile_transformations
619 when profile is read.
620
621 2019-12-05 Sudakshina Das <sudi.das@arm.com>
622
623 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
624 check from if condition.
625
626 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
627
628 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
629 and Fortran's optional arguments, unconditionally add the is-present
630 condition before the libgomp call.
631
632 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
633
634 PR middle-end/92768
635 * tree-core.h (OEP_BITWISE): New flag.
636 * fold-const.c (operand_compare::operand_equal_p): Handle it.
637 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
638
639 2019-12-05 Richard Biener <rguenther@suse.de>
640
641 PR middle-end/92818
642 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
643 heuristics on what don't care element to choose.
644 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
645
646 2019-12-05 Martin Liska <mliska@suse.cz>
647
648 PR gcov-profile/92817
649 * coverage.c (build_gcov_exit_decl): Remove superfluous
650 void_type_node.
651
652 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
653
654 * config/msp430/msp430.md (cbranch<mode>4): Use
655 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
656 dest operand of CMP instruction.
657 (cbranchpsi4_real): Likewise.
658 (cbranchqi4_real): Likewise.
659 (cbranchhi4_real): Likewise.
660 (cbranchpsi4_reversed): Likewise.
661 (cbranchqi4_reversed): Likewise.
662 (cbranchhi4_reversed): Likewise.
663
664 2019-12-05 Richard Biener <rguenther@suse.de>
665
666 PR tree-optimization/92803
667 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
668 invariant vector construction.
669
670 2019-12-05 Martin Liska <mliska@suse.cz>
671
672 PR gcov-profile/91971
673 * coverage.c (coverage_init): Mangle full path
674 only when -fprofile-dir is used.
675
676 2019-12-05 Jakub Jelinek <jakub@redhat.com>
677
678 PR target/92791
679 * config/i386/i386.md (movstrict<mode>): Move test for
680 TARGET_PARTIAL_REG_STALL and not optimizing for size from
681 expander's condition to the body - FAIL; in that case.
682
683 2019-12-03 Martin Sebor <msebor@redhat.com>
684
685 PR middle-end/91582
686 * builtins.c (gimple_call_alloc_size): New function.
687 (compute_objsize): Add argument. Call gimple_call_alloc_size.
688 Handle variable offsets and indices.
689 * builtins.h (gimple_call_alloc_size): Declare.
690 (compute_objsize): Add argument.
691 * gimple-ssa-warn-restrict.c: Remove assertions.
692 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
693
694 2019-12-04 Julian Brown <julian@codesourcery.com>
695
696 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
697
698 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
699
700 PR bootstrap/92661
701 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
702 rs6000.h.
703 (altivec_overloaded_builtins): Move to rs6000-call.c.
704 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
705 rs6000-c.c.
706 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
707 (altivec_overloaded_builtins): Moved from rs6000-c.c.
708 (rs6000_common_init_builtins): Do no define builtins that overload
709 builtins that have been disabled.
710
711 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
712
713 * config/arm/arm.c (arm_option_override_internal):
714 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
715
716 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
717
718 * config/aarch64/aarch64.c
719 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
720 (thunderx_tunings): Likewise.
721 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
722 (thunderx2t99_tunings): Likewise.
723 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
724 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
725
726 2019-12-04 Richard Biener <rguenther@suse.de>
727
728 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
729 empty CTOR and memset partial-def registering. Take advantage
730 of fancy offset analysis in memset handling.
731
732 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
733
734 * fold-const.c (native_encode_vector_part): Handle
735 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
736 (native_decode_vector_tree): Delete, moving the bulk of the code to...
737 (native_interpret_vector_part): ...this new function. Use a pointer
738 and length instead of a vec<> and start index.
739 (native_interpret_vector): Use native_interpret_vector_part.
740 (fold_view_convert_vector_encoding): Likewise.
741
742 2019-12-04 Richard Biener <rguenther@suse.de>
743
744 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
745 non-constant defs in the most trivial way.
746 (vn_reference_lookup_3): Also push down SSA partial defs.
747
748 2019-12-04 Martin Liska <mliska@suse.cz>
749
750 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
751 Initialize count of newly created BB.
752
753 2019-12-04 Jakub Jelinek <jakub@redhat.com>
754
755 PR tree-optimization/92734
756 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
757 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
758
759 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
760
761 PR target/92760
762 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
763 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
764
765 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
766
767 * ipa-fnsummary.c: Include tree-into-ssa.h.
768 (compute_fn_summary): Call update_ssa.
769
770 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
771
772 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
773 is set only for symbol in comdat group.
774 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
775
776 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
777
778 * cgraph.c: Include tree-into-ssa.h
779 (cgraph_node::get_body): Call update_ssa.
780 * cgraphunit.c (cgraph_node::expand): Likewise.
781 * lto-streamer-in.c (input_function): Do not call update_ssa.
782
783 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
784
785 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
786 an array element size if array_element_size is already an invariant.
787 Similarly don't gimplify and install a field offset if
788 component_ref_field_offset is already an invariant.
789
790 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
791
792 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
793 with POLY_INT_CST size is made to a fixed-size object, force the
794 object to live in memory.
795
796 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
797
798 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
799 for the data mode.
800
801 2019-12-03 Richard Biener <rguenther@suse.de>
802
803 PR tree-optimization/92758
804 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
805 operation on uniform vectors.
806
807 2019-12-03 Richard Biener <rguenther@suse.de>
808
809 PR tree-optimization/92645
810 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
811 from or to a properly aligned register variable.
812
813 2019-12-03 Matthias Klose <doko@ubuntu.com>
814
815 * Makefile.in (SOURCES): Add doc/lto-dump.1.
816 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
817 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
818
819 2019-12-03 Richard Biener <rguenther@suse.de>
820
821 PR tree-optimization/92751
822 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
823 when a clobber ends up in the partial-def vector.
824 (vn_reference_lookup_3): Let clobbers be handled by the
825 assignment from CTOR handling.
826
827 2019-12-03 Jakub Jelinek <jakub@redhat.com>
828
829 PR tree-optimization/92734
830 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
831 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
832 inner subtraction.
833
834 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
835 Jakub Jelinek <jakub@redhat.com>
836
837 PR target/92744
838 * config/i386/i386.md (peephole2 for *swap<mode>): Use
839 general_reg_operand predicates instead of register_operand.
840
841 2019-12-03 Richard Biener <rguenther@suse.de>
842
843 PR tree-optimization/92645
844 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
845 a full def of a vector via a BIT_INSERT_EXPR.
846
847 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
848
849 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
850 static.
851 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
852 decl.
853
854 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
855
856 PR middle-end/92741
857 * fold-const.c (fold_convertible_p): Check vector types more
858 thoroughly.
859
860 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
861
862 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
863 (aarch64_expand_mov_immediate): Use it when attempting to measure
864 the length of an SVE vector.
865 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
866 SVE is enabled.
867
868 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
869
870 * config/aarch64/aarch64-sve-builtins.h
871 (gimple_folder::force_vector): Declare.
872 * config/aarch64/aarch64-sve-builtins.cc
873 (gimple_folder::force_vector): New function.
874 * config/aarch64/aarch64-sve-builtins-base.cc
875 (svcmp_impl::fold): Likewise.
876 (svdup_impl::fold): Handle svdup_z too.
877
878 2019-12-02 Martin Liska <mliska@suse.cz>
879
880 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
881 function.
882 (debug_tree_odr_name): New.
883 * ipa-utils.h (get_odr_name_for_type): New.
884
885 2019-12-02 Richard Biener <rguenther@suse.de>
886
887 PR tree-optimization/92742
888 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
889 touch the def-type but verify it is consistent with the
890 original stmts.
891
892 2019-12-02 Jakub Jelinek <jakub@redhat.com>
893
894 PR tree-optimization/92712
895 * match.pd ((A * B) +- A -> (B +- 1) * A,
896 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
897 even when we don't know anything about range of A, but do know
898 something about range of B and the simplification won't introduce
899 new UB.
900
901 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
902
903 PR ipa/92133
904 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
905 (ipa-cp-min-recursive-probability): Likewise.
906 * params.opt (ipa-cp-max-recursive-depth): New.
907 (ipa-cp-min-recursive-probability): Likewise.
908 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
909 val_p and unlimited.
910 (self_recursively_generated_p): New function.
911 (get_val_across_arith_op): Likewise.
912 (propagate_vals_across_arith_jfunc): Add constant propagation for
913 self-recursive function.
914 (incorporate_penalties): Do not penalize pure self-recursive function.
915 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
916 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
917 (get_info_about_necessary_edges): Relax hotness check for edge to
918 self-recursive function.
919 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
920
921 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
922
923 PR target/92499
924
925 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
926 objects of flexible types to be small if they have internal linkage
927 or are declared extern.
928 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
929 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
930 instead of the size of the object initializer.
931 * tree.c (flexible_array_type_p): Move from C front end, and
932 generalize to handle fields in non-C structures.
933 * tree.h (flexible_array_type_p): Declare.
934
935 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
936
937 * profile-count.h (profile_count::operator<): Use IPA value for
938 comparsion.
939 (profile_count::operator>): Likewise.
940 (profile_count::operator<=): Likewise.
941 (profile_count::operator>=): Likewise.
942 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
943
944 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
945
946 * ipa-inline.c (compute_max_insns): Return int64_t.
947 (inline_small_functions): Simplify.
948
949 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
950
951 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
952 scaling happen.
953
954 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
955
956 * cgraph.h (symtab_node): Add symver flag.
957 * cgraphunit.c (process_symver_attribute): New.
958 (process_common_attributes): Use process_symver_attribute.
959 * lto-cgraph.c (lto_output_node): Stream symver.
960 (lto_output_varpool_node): Stream symver.
961 (input_overwrite_node): Stream symver.
962 (input_varpool_node): Stream symver.
963 * output.h (do_assemble_symver): Decalre.
964 * symtab.c (symtab_node::dump_base): Dump symver.
965 (symtab_node::verify_base): Verify symver.
966 (symtab_node::resolve_alias): Handle symver.
967 * varasm.c (do_assemble_symver): New function.
968 * varpool.c (varpool_node::assemble_aliases): Use it.
969 * doc/extend.texi: (symver attribute): Document.
970 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
971
972 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
973
974 * target.h (type_context_kind): New enum.
975 (verify_type_context): Declare.
976 * target.def (verify_type_context): New target hook.
977 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
978 * doc/tm.texi: Regenerate.
979 * tree.c (verify_type_context): New function.
980 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
981 Declare.
982 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
983 New function.
984 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
985 (TARGET_VERIFY_TYPE_CONTEXT): Define.
986
987 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
988
989 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
990 * cgraph.h (cgraph_node): Add unit_id and
991 merged_extern_inline.
992 (symbol_table): Add max_unit.
993 (symbol_table::symbol_table): Initialize it.
994 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
995 merged_comdat, merged_extern_inline.
996 (cgraph_node::create_clone): Likewise.
997 (cgraph_node::create_version_clone): Likewise.
998 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
999 calls.
1000 * ipa-fnsummary.h (cross_module_call_p): New inline function.
1001 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
1002 * ipa-inline.c (inline_small_functions): Likewise.
1003 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
1004 copy merged_comdat and merged_extern_inline.
1005 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
1006 merged_extern_inline and unit_id.
1007 (input_overwrite_node): Stream in these.
1008 (input_cgraph_1): Set unit_base.
1009 * lto-streamer.h (lto_file_decl_data): Add unit_base.
1010 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
1011
1012 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
1013
1014 * gcc.c (process_command): Only warn about an ineffective `-x'
1015 option if any input files have actually been supplied.
1016
1017 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
1018
1019 * doc/install.texi (Options specification): Remove the list of
1020 target library subdirectories supporting
1021 `--enable-version-specific-runtime-libs'. Document defaults for
1022 the option.
1023
1024 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
1025
1026 PR rtl-optimization/92283
1027 * lra.c (lra): Update reg notes after inheritance sub-pass and
1028 before constraint sub-pass.
1029
1030 2019-11-29 Richard Biener <rguenther@suse.de>
1031
1032 PR tree-optimization/91003
1033 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
1034 operand number, avoid handling the non-condition operands of
1035 COND_EXPRs as comparisons.
1036 (vect_get_constant_vectors): Pass down the operand number.
1037 (vect_get_slp_defs): Likewise.
1038
1039 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
1040
1041 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
1042 generic_expr_could_trap_p to check if the condition of COND_EXPR or
1043 VEC_COND_EXPR can trap.
1044
1045 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1046
1047 PR tree-optimization/92677
1048 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
1049 to zero when dissolving a group of strided accesses.
1050
1051 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1052
1053 PR tree-optimization/92596
1054 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
1055 operations.
1056 (vectorizable_operation): Likewise, instead of relying on
1057 vect_get_mask_type_for_stmt to do this.
1058 (vect_get_vector_types_for_stmt): Always return a vector type
1059 immediately, rather than deferring the choice for boolean results.
1060 Use a vector mask type instead of a normal vector if
1061 vect_use_mask_type_p.
1062 (vect_get_mask_type_for_stmt): Delete.
1063 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
1064 mask_producers argument and special boolean_type_node handling.
1065 (vect_determine_vf_for_stmt): Remove mask_producers argument and
1066 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
1067 (vect_determine_vectorization_factor): Update call accordingly.
1068 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
1069 boolean_type_node handling.
1070 (vect_slp_analyze_node_operations_1): Likewise.
1071
1072 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1073
1074 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
1075 (vect_use_mask_type_p): New function.
1076 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
1077 mask precision to the pattern statement.
1078 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
1079 and use it to initialize the new stmt's mask precision.
1080 (search_type_for_mask_1): Delete.
1081 (search_type_for_mask): Replace with...
1082 (integer_type_for_mask): ...this new function. Use the information
1083 cached in the stmt_vec_info.
1084 (vect_recog_bool_pattern): Update accordingly.
1085 (build_mask_conversion): Pass the scalar type associated with the
1086 mask type to append_pattern_def_seq.
1087 (vect_recog_mask_conversion_pattern): Likewise. Call
1088 integer_type_for_mask instead of search_type_for_mask.
1089 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
1090 of search_type_for_mask.
1091 (possible_vector_mask_operation_p): New function.
1092 (vect_determine_mask_precision): Likewise.
1093 (vect_determine_stmt_precisions): Call it.
1094
1095 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1096
1097 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
1098 the slp_tree parameter with a group size parameter.
1099 (vect_get_mask_type_for_stmt): Likewise.
1100 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
1101 (vect_get_mask_type_for_stmt): Likewise.
1102 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
1103 call accordingly.
1104
1105 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1106
1107 * tree-vect-stmts.c (vectorizable_operation): Punt early
1108 on codes that are handled elsewhere.
1109
1110 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1111
1112 * doc/sourcebuild.texi (vect_bool_cmp): Document.
1113 * tree-vect-patterns.c (search_type_for_mask_1): If neither
1114 operand to a boolean comparison is a natural vector mask,
1115 handle both operands like normal integers instead.
1116
1117 2019-11-29 Richard Biener <rguenther@suse.de>
1118
1119 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
1120 out early for too large objects.
1121
1122 2019-11-29 Martin Jambor <mjambor@suse.cz>
1123
1124 PR ipa/92476
1125 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
1126 the summary only if the summary exists.
1127 (find_more_scalar_values_for_callers_subset): Check node_dead in
1128 the summary only if the summary exists.
1129 (ipcp_store_bits_results): Ignore nodes without lattices.
1130 (ipcp_store_vr_results): Likewise.
1131 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
1132 header files required by them.
1133 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
1134
1135 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1136
1137 PR tree-optimization/92710
1138 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
1139 vector mask arguments.
1140
1141 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
1142
1143 * profile-count.c (profile_count::to_cgraph_frequency,
1144 profile_count::to_sreal_scale): Check for compaibility of counts.
1145 * profile-count.h (compatible_p): Make public; add checking for
1146 global0 versus global types.
1147 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
1148
1149 2019-11-29 Richard Biener <rguenther@suse.de>
1150
1151 PR tree-optimization/92715
1152 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
1153 out for uniform vectors and source vectors with less elements
1154 than the destination.
1155
1156 2019-11-29 Martin Liska <mliska@suse.cz>
1157
1158 PR lto/91574
1159 * ipa-devirt.c (types_same_for_odr): Check for existence
1160 of TYPE_NAMEs first.
1161
1162 2019-11-29 Richard Biener <rguenther@suse.de>
1163
1164 PR tree-optimization/92704
1165 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
1166 in loops performing only loads.
1167
1168 2019-11-29 Julian Brown <julian@codesourcery.com>
1169
1170 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
1171 BT_DFLOAT128_PTR) Remove.
1172 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
1173 TI_DFLOAT128_PTR_TYPE): Remove.
1174 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
1175 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
1176 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
1177 dfloat128_ptr_type_node): Remove macros.
1178
1179 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1180
1181 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
1182 formatting.
1183 (*movdi_internal64): Ditto.
1184
1185 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1186
1187 PR target/92602
1188 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
1189 indexed_or_indirect_operand to be memory_operand.
1190 (bswap<mode>2_store for HSI): Ditto.
1191 (bswapdi2_load): Ditto.
1192 (bswapdi2_store): Ditto.
1193
1194 2019-11-28 Martin Liska <mliska@suse.cz>
1195
1196 PR debug/46558
1197 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
1198 headers for translation.
1199
1200 2019-11-28 Martin Liska <mliska@suse.cz>
1201
1202 PR lto/92609
1203 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
1204 consistently.
1205
1206 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1207
1208 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
1209 checks.
1210
1211 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1212
1213 * profile-count.c (profile_count::combine_with_ipa_count): Return
1214 uninitialized count if called on ininitialized count.
1215
1216 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1217
1218 * ipa-inline-transform.c (inline_transform): Scale profile before
1219 redirecting.
1220
1221 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1222
1223 * profile-count.h (profile_count::max): Work on profiles of different
1224 type.
1225 (profile_count::apply_scale): Be sure that ret is not local or global0
1226 type if num is global.
1227
1228 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1229
1230 * profile-count.h (profile_count::max): Work on profiles of different
1231 type.
1232 (profile_count::apply_scale): Be sure that ret is not local or global0
1233 type if num is global.
1234
1235 2019-11-28 Martin Jambor <mjambor@suse.cz>
1236
1237 PR ipa/92697
1238 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
1239 ifunc_resolvers.
1240 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
1241 Removed trailig whitespace.
1242
1243 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1244
1245 * profile-count.h (profile_count::combine_with_ipa_count_within):
1246 Declare.
1247 * profile-count.c (profile_count::combine_with_ipa_count_within):
1248 New.
1249 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
1250 it.
1251
1252 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1253
1254 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
1255 of counters are done same way.
1256
1257 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1258
1259 * ipa-cp.c (update_profiling_info): Fix scaling.
1260
1261 2019-11-28 Richard Biener <rguenther@suse.de>
1262
1263 PR tree-optimization/92645
1264 * tree-inline.c (remap_gimple_stmt): When the return value
1265 is not wanted, elide GIMPLE_RETURN.
1266
1267 2019-11-28 Richard Biener <rguenther@suse.de>
1268
1269 PR tree-optimization/92645
1270 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
1271 conversions inside a mode class. Remove restriction on
1272 preserving the element size.
1273 (simplify_vector_constructor): Deal with the above and for
1274 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
1275 and VEC_PACK_TRUNC_EXPR.
1276
1277 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
1278
1279 Must use push insn to pass varargs arguments of DFmode because
1280 otherwise the middle-end generates wrong code.
1281
1282 PR target/92055
1283 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
1284
1285 2019-11-28 Jakub Jelinek <jakub@redhat.com>
1286
1287 PR tree-optimization/92691
1288 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
1289 in function comment.
1290 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
1291 calls, return !handle_printf_call rather than always returning true.
1292 (check_and_optimize_stmt): Describe return value meaning in function
1293 comment. Formatting fix.
1294
1295 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1296
1297 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
1298 combination of globa0 and global counters..
1299
1300 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
1301
1302 PR target/92566
1303 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
1304 by VECTOR_UNIT_NONE_P instead.
1305
1306 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
1307
1308 * config/i386/sse.md (avx512f_maskcmp<mode>3):
1309 Refine VF to VF_AVX512VL.
1310
1311 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
1312
1313 * config/rs6000/rs6000.md (movsi_internal): Reformat.
1314 (movdi_internal64): Reformat.
1315
1316 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
1317
1318 PR bootstrap/92661
1319 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
1320 builtin if we don't have an actual type.
1321 (builtin_function_type): If the builtin function uses a DFP type
1322 and decimal float has been disabled, then return NULL_TREE.
1323
1324 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1325
1326 PR rtl-optimization/92510
1327 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
1328 of comparison into a comparison with different mode if both imode and
1329 omode are scalar integral modes.
1330
1331 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
1332
1333 PR rtl-optimization/90007
1334 * recog.c (constrain_operands): Permit hard registers too for
1335 memory when LRA is used.
1336
1337 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1338
1339 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
1340 between Coldfire and regular m68k.
1341 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
1342
1343 2019-11-27 Richard Biener <rguenther@suse.de>
1344
1345 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1346 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
1347 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
1348 * optabs-tree.c (supportable_convert_operation): Do not call
1349 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
1350 * optabs-tree.h (supportable_convert_operation): Adjust.
1351 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1352 * doc/tm.texi: Regenerate.
1353 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
1354 * tree-vect-generic.c (expand_vector_conversion): Likewise.
1355 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
1356 unused decl parameter and adjust.
1357 (vect_create_vectorized_promotion_stmts): Likewise.
1358 (vectorizable_conversion): Adjust.
1359
1360 2019-11-27 Richard Biener <rguenther@suse.de>
1361
1362 PR tree-optimization/92690
1363 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
1364 converting elements not originally converted.
1365
1366 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
1367
1368 PR middle-end/92463
1369 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
1370 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
1371 mpfr_rnd_t instead of mp_rnd_t.
1372 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
1373 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
1374 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
1375 Use mpfr_exp_t instead of mp_exp_t.
1376 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
1377 MPFR_RNDx instead of GMP_RNDx.
1378 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
1379 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
1380 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
1381 of mp_rnd_t and remove MPFR_RNDx poisoning.
1382 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
1383
1384 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
1385
1386 PR tree-optimization/91790
1387 * tree-vect-stmts.c (vectorizable_load): Use the adjusted
1388 DR for vect_setup_realignment when first_stmt_info is different
1389 from first_stmt_info_for_drptr.
1390
1391 2019-11-27 Richard Biener <rguenther@suse.de>
1392
1393 PR tree-optimization/92645
1394 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1395 CTORs with just a subset of the original vectors.
1396
1397 2019-11-27 Richard Biener <rguenther@suse.de>
1398
1399 PR middle-end/92674
1400 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
1401 edges and instead record blocks in bitmap.
1402 (gimple_expand_calls_inline): Adjust.
1403 (fold_marked_statements): Delay EH cleanup until all folding is
1404 done.
1405 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
1406 inlining finished.
1407
1408 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1409
1410 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
1411 LRA is enabled.
1412 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
1413 disabled.
1414
1415 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1416
1417 PR debug/92664
1418 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
1419
1420 2019-11-26 Martin Sebor <msebor@redhat.com>
1421
1422 PR tree-optimization/92683
1423 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
1424 inadvertently removed in a previous change. Rename local variable
1425 for clarity.
1426
1427 2019-11-26 Richard Biener <rguenther@suse.de>
1428
1429 PR middle-end/92669
1430 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
1431 NULL pre_order.
1432
1433 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
1434
1435 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
1436
1437 2019-11-26 Jakub Jelinek <jakub@redhat.com>
1438
1439 PR tree-optimization/92644
1440 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1441 next to INTEGER_CST checks.
1442
1443 2019-11-26 Richard Biener <rguenther@suse.de>
1444
1445 PR tree-optimization/92645
1446 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1447 do not build the operation from scalars if the operand is.
1448
1449 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1450
1451 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1452 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1453 definitions.
1454
1455 2019-11-25 Martin Liska <mliska@suse.cz>
1456
1457 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1458 up used dump message.
1459
1460 2019-11-25 Martin Liska <mliska@suse.cz>
1461
1462 PR bootstrap/92653
1463 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1464 too strict checking assert.
1465
1466 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1467
1468 PR c/91985
1469 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1470 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1471 error_mark_node if corresponding global tree node is NULL.
1472 * tree.c (build_common_tree_nodes): Do not initialize
1473 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1474 decimal floating-point not supported.
1475
1476 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1477
1478 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1479 types.
1480
1481 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
1482
1483 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1484 Replace code for non-CONST_INT constants with gcc_unreachable.
1485 * config/m68k/m68k.md (cbranchdi): Don't generate individual
1486 compare and test.
1487 (CMPMODE): New mode_iterator.
1488 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1489 cbranch<mode>4.
1490 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1491 cstore<mode>4.
1492 (cmp<mode>_68881): Remove 'F' constraint from first comparison
1493 operand.
1494 (bit test insns patterns): Use nonimmediate_operand, not
1495 register_operand, for source operands that allow memory in
1496 their constraints.
1497 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1498 Use register_operand, not nonimmediate_operand, for the
1499 destinations.
1500 (DBCC): New mode_iterator.
1501 (dbcc peepholes): Use it to reduce duplication.
1502 (trap): Use const_true_rtx, not const1_rtx.
1503 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1504 from m68k_subword_comparison_operand and changed to handle
1505 SImode.
1506
1507 PR target/91851
1508 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1509 declaration.
1510 (m68k_init_cc): New declaration.
1511 (m68k_output_compare_di, m68k_output_compare_si)
1512 (m68k_output_compare_hi, m68k_output_compare_qi)
1513 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1514 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1515 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1516 m68k_output_branch_float, m68k_output_branch_float_rev):
1517 Likewise.
1518 (valid_dbcc_comparison_p_2, flags_in_68881)
1519 (output_btst): Remove declaration.
1520 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1521 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1522 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1523 (flags_compare_op0, flags_compare_op1, flags_operand1,
1524 flags_operand2, flags_valid): New static variables.
1525 (m68k_find_flags_value, m68k_init_cc): New functions.
1526 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1527 remember_compare_flags): New static functions.
1528 (output_dbcc_and_branch): New argument CODE. Use it, and add
1529 PLUS and MINUS to the possible codes. All callers changed.
1530 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1531 and INSN arguments, add CODE arg. Return the comparison code
1532 to use. All callers changed. Use CODE instead of
1533 next_insn_tests_no_inequality, and replace cc_status management
1534 with changing the return code.
1535 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1536 RTX_COMPARE or RTX_COMM_COMPARE.
1537 (output_move_simode, output_move_qimode): Call
1538 handle_flags_for_move.
1539 (notice_update_cc): Delete function.
1540 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1541 m68k_output_compare_hi, m68k_output_compare_qi,
1542 m68k_output_compare_fp, m68k_output_branch_integer,
1543 m68k_output_branch_integer_rev, m68k_output_scc,
1544 m68k_output_branch_float, m68k_output_branch_float_rev,
1545 m68k_output_scc_float): New functions.
1546 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1547 once at the start, and set flags_valid and flags_operand1 if the
1548 flags are usable.
1549 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1550 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1551 definitions.
1552 (CC_STATUS_INIT): Define.
1553 * config/m68k/m68k.md (flags_valid): New define_attr.
1554 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1555 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1556 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1557 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1558 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1559 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1560 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1561 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1562 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1563 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1564 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1565 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1566 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1567 ctrapqi4, conditional_trap): Delete patterns.
1568 (cbranchdi4_insn): New pattern.
1569 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1570 test high part only. When testing EQ or NE, generate beq0_di
1571 and bne0_di patterns directly.
1572 (cstoredi4): When testing LT or GE, test high part only.
1573 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1574 patterns.
1575 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1576 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1577 cmp2_cf_predicate): New define_mode_attrs.
1578 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1579 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1580 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1581 New patterns.
1582 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1583 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1584 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1585 New patterns.
1586 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1587 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1588 Likewise.
1589 (BTST): New define_mode_iterator.
1590 (btst_predicate, btst_constraint, btst_range): New
1591 define_mode_attrs.
1592 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1593 patterns.
1594 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1595 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1596 patterns): Set attr "flags_valid".
1597 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1598 management. Set attr "flags_valid".
1599 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1600 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1601 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1602 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1603 manual CC_STATUS management.
1604 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1605 unnamed strict_lowpart subhi and subqi patterns): Set attr
1606 "flags_valid".
1607 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1608 Remove code to operate on address regs and assert the case
1609 does not occur.
1610 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1611 manual CC_STATUS_INIT.
1612 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1613 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1614 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1615 one_cmplqi2, unnamed strict_lowpart patterns
1616 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1617 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1618 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1619 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1620 CC_STATUS_INIT.
1621 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1622 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1623 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1624 unnamed strict_low_part patterns for HI and
1625 QI versions): Set attr "flags_valid".
1626 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1627 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1628 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1629 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1630 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1631 (various unnamed peepholes): Adjust compare/branch sequences
1632 for new cbranch patterns.
1633 (dbcc peepholes): Likewise, and output the comparison here
1634 as well.
1635 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1636 (fp_src_operand): Allow constant zero.
1637 (address_reg_operand): New predicate.
1638
1639 * rtl.h (inequality_comparisons_p): Remove declaration.
1640 * recog.h (next_insn_tests_no_inequality): Likewise.
1641 * rtlanal.c (inequality_comparisons_p): Delete function.
1642 * recog.c (next_insn_tests_no_inequality): Likewise.
1643
1644 2019-11-25 Richard Biener <rguenther@suse.de>
1645
1646 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1647 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1648 properly re-building the visited hash-map for each lane.
1649
1650 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1651
1652 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1653 gcn_md_reorg): Remove unused variables.
1654 (gcn_emutls_var_init): Add missing (but unreachable) return
1655 to silence warning.
1656 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1657 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1658 an uninitialized variable.
1659
1660 2019-11-25 Martin Jambor <mjambor@suse.cz>
1661
1662 PR ipa/92109
1663 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1664 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1665 (cgraph_materialize_clone): Move removel from clone tree to the
1666 the new method and use it instead.
1667 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1668 bodies of clones, also remove it from the clone tree.
1669
1670 2019-11-25 Martin Jambor <mjambor@suse.cz>
1671
1672 PR ipa/91956
1673 * ipa-sra.c (process_isra_node_results): Put the new node to the
1674 same comdat group as the original node.
1675
1676 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1677
1678 Build double32 / long-double32 multilibs if needed.
1679
1680 PR target/92055
1681 * config/avr/t-avr:
1682 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1683 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1684 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1685 tm_defines and pass to genmultilib.awk.
1686 * config/avr/genmultilib.awk: Use these variables to add double32
1687 and / or long-double32 multilib(s) as needed.
1688 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1689
1690 2019-11-25 Richard Biener <rguenther@suse.de>
1691
1692 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1693 loop body, defaulted to NULL.
1694 (single_likely_exit): Add exit vector argument
1695 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1696 (number_of_iterations_exit): Likewise.
1697 (number_of_iterations_exit_assumptions): Likewise.
1698 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1699 if not NULL.
1700 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1701 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1702 Compute exit vector around call to single_likely_exit.
1703 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1704 loop body to loop_only_exit_p.
1705 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1706 caller.
1707 (number_of_iterations_exit_assumptions): Get loop body from caller
1708 if not NULL.
1709 (number_of_iterations_exit): Pass through new loop body arg.
1710 (infer_loop_bounds_from_undefined): Get loop body from caller.
1711 (estimate_numbers_of_iterations): Compute loop body once.
1712
1713 2019-11-25 Richard Biener <rguenther@suse.de>
1714
1715 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1716 auto_bb_flag instead of an sbitmap for visited handling.
1717
1718 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1719
1720 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1721 iterator.
1722 (vector_fp_comparison_complex): Likewise.
1723 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1724 define_and_split.
1725 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1726 Likewise.
1727 (vector_lt<mode> for VEC_F): Refactor with
1728 vector_fp_comparison_simple.
1729 (vector_le<mode> for VEC_F): Likewise.
1730 (vector_unge<mode> for VEC_F): Likewise.
1731 (vector_unle<mode> for VEC_F): Likewise.
1732 (vector_ne<mode> for VEC_F): Likewise.
1733 (vector_ungt<mode> for VEC_F): Likewise.
1734 (vector_unlt<mode> for VEC_F): Likewise.
1735 (vector_ltgt<mode> for VEC_F): Refactor with
1736 vector_fp_comparison_complex.
1737 (vector_ordered<mode> for VEC_F): Likewise.
1738 (vector_uneq<mode> for VEC_F): Likewise.
1739 (vector_unordered<mode> for VEC_F): Likewise.
1740
1741 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1742
1743 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1744 COMPARE, representing an overflow detection.
1745
1746 * combine.c (combine_instructions): Record costs for jumps.
1747
1748 * combine.c (can_combine_p): Allow autoinc in jumps.
1749
1750 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1751
1752 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1753 * doc/invoke.texi (max-inline-insns-single-O2,
1754 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1755 early-inlining-insns-O2): Remove documentation.
1756 * ipa-fnsummary.c (analyze_function_body,
1757 compute_fn_summary): Use opt_for_fn when accessing parameters.
1758 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1759 inline_insns_auto, can_inline_edge_by_limits_p,
1760 want_early_inline_function_p, big_speedup_p,
1761 want_inline_small_function_p, want_inline_self_recursive_call_p,
1762 recursive_inlining, compute_max_insns, inline_small_functions):
1763 Likewise.
1764 * opts.c (default_options): Add -O3 defaults for
1765 OPT__param_early_inlining_insns_,
1766 OPT__param_inline_heuristics_hint_percent_,
1767 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1768 * params.opt (-param=early-inlining-insns-O2=,
1769 -param=inline-heuristics-hint-percent-O2=,
1770 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1771 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1772 -param=inline-min-speedup=, -param=inline-unit-growth=,
1773 -param=large-function-growth=, -param=large-stack-frame=,
1774 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1775 -param=max-inline-insns-recursive=,
1776 -param=max-inline-insns-recursive-auto=,
1777 -param=max-inline-insns-single=,
1778 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1779 -param=max-inline-recursive-depth=,
1780 -param=max-inline-recursive-depth-auto=,
1781 -param=min-inline-recursive-probability=,
1782 -param=partial-inlining-entry-probability=,
1783 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1784 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1785 Optimization.
1786
1787 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1788
1789 * ipa-fnsummary.c: Fix comment typos.
1790 * ipa-ref.h: Likewise.
1791 * ipa-predicate.h: Likewise.
1792 * ipa-split.c: Likewise.
1793 * ipa-inline-analysis.c: Likewise.
1794 * ipa-predicate.c: Likewise.
1795 * ipa-devirt.c: Likewise.
1796 * ipa-icf.h: Likewise.
1797 * profile-count.c: Likewise.
1798 * ipa-icf.c: Likewise.
1799 (sem_function::equals_wpa): Fix typos in dump messages.
1800 * ipa-icf-gimple.h: Fix comment typos.
1801 * ipa-inline-transform.c: Likewise.
1802 * ipa-polymorphic-call.c: Likewise.
1803 * ipa-fnsummary.h: Likewise.
1804 * ipa-inline.c: Likewise.
1805 (dump_inline_stats): Fix typo in debug dump message.
1806 * profile-count.h: Fix comment typos.
1807
1808 PR target/92615
1809 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1810 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1811 register_operand, force x into register before storing it into dest.
1812 Formatting fix.
1813
1814 PR middle-end/83859
1815 * doc/extend.texi (attribute access): Fix a typo.
1816
1817 PR rtl-optimization/92610
1818 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1819 cse_cfg_altered is set, even when tem is 0.
1820 (rest_of_handle_cse_after_global_opts): Likewise.
1821
1822 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1823
1824 PR c++/92458
1825 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1826 tree_hash): Move to ...
1827 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1828 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1829 types.
1830 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1831
1832 PR tree-optimization/92618
1833 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1834 containing the auto_vec and a tree.
1835 (undistribute_bitref_for_vector): Handle the case when element type
1836 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1837 fixes.
1838
1839 2019-11-22 Martin Sebor <msebor@redhat.com>
1840
1841 PR middle-end/83859
1842 * attribs.h (struct attr_access): New.
1843 * attribs.c (decl_attributes): Add an informational note.
1844 * builtins.c (check_access): Make extern. Consistently set no-warning
1845 after issuing a warning. Handle calls through function pointers. Set
1846 no-warning.
1847 * builtins.h (check_access): Declare.
1848 * calls.c (rdwr_access_hash): New type.
1849 (rdwr_map): Same.
1850 (init_attr_rdwr_indices): New function.
1851 (maybe_warn_rdwr_sizes): Same.
1852 (initialize_argument_information): Call init_attr_rdwr_indices.
1853 Call maybe_warn_rdwr_sizes.
1854 (get_size_range): Avoid null argument.
1855 * doc/extend.texi (attribute access): Document new attribute.
1856
1857 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1858
1859 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1860 (ACC_LDS_SIZE): Define.
1861 (OTHER_LDS_SIZE): Define.
1862 (LDS_SIZE): Redefine using above.
1863 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1864
1865 2019-11-22 Martin Sebor <msebor@redhat.com>
1866
1867 PR middle-end/88226
1868 * builtins.c (check_nul_terminated_array): New function.
1869 (fold_builtin_0): Remove declaration.
1870 (fold_builtin_1): Same.
1871 (fold_builtin_2): Same.
1872 (fold_builtin_3): Same.
1873 (fold_builtin_strpbrk): Add argument.
1874 (fold_builtin_strspn): Same.
1875 (fold_builtin_strcspn): Same.
1876 (expand_builtin_strcat): Call it. Remove unused argument.
1877 (expand_builtin_stpncpy): Same.
1878 (expand_builtin_strncat): Same.
1879 (expand_builtin_strncpy): Same. Adjust indentation.
1880 (expand_builtin_strcmp): Same.
1881 (expand_builtin_strncmp): Same.
1882 (expand_builtin_fork_or_exec): Same.
1883 (expand_builtin): Handle more built-ins.
1884 (fold_builtin_2): Add argument.
1885 (fold_builtin_n): Make static. Add argument.
1886 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1887 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1888 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1889 (fold_call_stmt): Pass new argument to fold_builtin_n.
1890 * builtins.h: Correct a comment.
1891 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1892 check_nul_terminated_array.
1893 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1894 check_nul_terminated_array.
1895 (handle_builtin_strchr): Same.
1896 (handle_builtin_string_cmp): Same.
1897
1898 2019-11-22 Martin Sebor <msebor@redhat.com>
1899
1900 PR tree-optimization/92501
1901 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1902 handle unterminated arrays. Rename local variables for clarity.
1903
1904 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1905
1906 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1907 granulated_sgprs according to architecture.
1908
1909 2019-11-22 Jan Hubicka <jh@suse.cz>
1910
1911 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1912 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1913 (memory_block_pool::reduce_free_list): ... this one.
1914 (memory_block_pool::trim): New static function.
1915 * memory-block.h (memory_block_pool::freelist_size): New constant
1916 (memory_block_pool::clear_free_list): Rename to ...
1917 (memory_block_pool::reduce_free_list): ... this one.
1918 (memory_block_pool::trim): Declare.
1919
1920 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1921
1922 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1923 vect_cost_for_stmt.
1924 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1925 here rather than...
1926 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1927
1928 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1929
1930 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1931 (bic_cmp0_noout): New pattern.
1932 (bic_cmp0): Likewise.
1933 (neg_scc_insn): Remove pattern.
1934 (not_scc_insn): Likewise.
1935
1936 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1937
1938 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1939
1940 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1941
1942 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1943 pedwarn instead of warning_at for fallthrough not preceding a case
1944 or default label.
1945
1946 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1947
1948 PR tree-optimization/92608
1949 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1950 of dyn_cast.
1951
1952 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1953
1954 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1955 New predicate.
1956 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1957 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1958 special for FP comparisons that need a cror instruction eventually.
1959 (rs6000_emit_fp_cror): New function.
1960 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1961 instruction, for normal FP modes, with HONOR_NANS.
1962 (rs6000_emit_cbranch): Reformat.
1963 * config/rs6000/rs6000.md (fp_rev): New iterator.
1964 (fp_two): New iterator.
1965 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1966 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1967 *cbranch_2insn: New define_insn_and_split.
1968
1969 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1970
1971 PR tree-optimization/92526
1972 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1973 versioning for alignment if the accesses do not have a consistent
1974 mask, rather than asserting that the masks are consistent.
1975
1976 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1977
1978 PR tree-optimization/92595
1979 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1980 check.
1981 (vectorizable_store, vectorizable_load): Likewise.
1982
1983 2019-11-21 Jan Hubicka <jh@suse.cz>
1984
1985 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1986 (resolve_noninline_speculation, inline_small_functions): Avoid
1987 redundant updates.
1988
1989 2019-11-21 Richard Biener <rguenther@suse.de>
1990
1991 * lra.c (lra_insn_recog_data_pool): New.
1992 (free_insn_recog_data): Adjust.
1993 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1994 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1995
1996 2019-11-21 Richard Biener <rguenther@suse.de>
1997
1998 PR tree-optimization/92596
1999 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
2000
2001 2019-11-21 Jan Hubicka <jh@suse.cz>
2002
2003 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
2004 ready for some vectors to not be allocated.
2005 (evaluate_properties_for_edge): Document better; make
2006 known_vals and known_aggs caller allocated; avoid determining
2007 values of parameters which are not used.
2008 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
2009 known_aggs.
2010 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
2011 (do_estimate_edge_size): Likewise.
2012 (do_estimate_edge_hints): Likewise.
2013 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
2014 values are not known.
2015 (ipa_release_agg_values): Add option to not release vector itself.
2016 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
2017
2018 2019-11-21 Richard Biener <rguenther@suse.de>
2019
2020 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
2021 (loop_iterator::to_visit): Use an auto_vec with internal storage.
2022 (loop_iterator::loop_iterator): Adjust.
2023 * cfganal.c (compute_dominance_frontiers_1): Fold into...
2024 (compute_dominance_frontiers): ... this. Hoist invariant
2025 get_immediate_dominator call.
2026 (compute_idf): Use a work-set instead of a work-list for more
2027 optimal iteration order and duplicate avoidance.
2028 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
2029 the vector all the time, instead pre-allocate the vector only
2030 once.
2031 (delete_update_ssa): Simplify.
2032 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
2033
2034 2019-11-21 Jakub Jelinek <jakub@redhat.com>
2035
2036 PR tree-optimization/91355
2037 * tree-ssa-sink.c (select_best_block): Use >= rather than >
2038 for early_bb scaled count with best_bb count comparison.
2039
2040 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
2041 preffer -> prefer.
2042 * ipa-inline.c (edge_badness): Likewise.
2043 * lto-streamer.h (class lto_location_cache): Likewise.
2044 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
2045 gratutious -> gratuitous.
2046
2047 2019-11-21 Richard Biener <rguenther@suse.de>
2048
2049 Revert
2050 2019-09-17 Richard Biener <rguenther@suse.de>
2051
2052 PR tree-optimization/91790
2053 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2054 use the correct DR for setting up realignment.
2055
2056 2019-11-21 Richard Biener <rguenther@suse.de>
2057
2058 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
2059 (equiv_class_obstack): New.
2060 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
2061 (perform_var_substitution): Initialize equiv_class_obstack.
2062 (free_var_substitution_info): Free equiv_class_obstack.
2063
2064 2019-11-20 Jan Hubicka <jh@suse.cz>
2065
2066 * ipa-inline.c (want_early_inline_function_p): Do not estimate
2067 edge growth when callee function is very large.
2068 * ipa-inline.h (estimate_min_edge_growth): New.
2069
2070 2019-11-20 Jan Hubicka <jh@suse.cz>
2071
2072 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
2073 negative time in calls summary; correct roundoff errors
2074 leading to negative times.
2075 (ipa_merge_fn_summary_after_inlining): Update calls size time table
2076 if present.
2077 (ipa_update_overall_fn_summary): Add RESET parameter.
2078 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
2079 * ipa-inline-transform.c (inline_call): Enable incremental updates.
2080
2081 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2082
2083 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
2084 def types for two-operation SLP.
2085
2086 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2087
2088 PR testsuite/92366
2089 * doc/sourcebuild.texi (vect_char_add): Document.
2090
2091 2019-11-20 Alexandre Oliva <oliva@adacore.com>
2092
2093 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
2094 * function.c (record_final_call): Record even calls that might
2095 have been in the cgraph.
2096 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
2097 callees.
2098
2099 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
2100
2101 * configure.ac: Use https for gcc.gnu.org
2102 * configure: Regenerated.
2103 * doc/install.texi: Use https for gcc.gnu.org.
2104 * doc/sourcebuild.texi: Likewise.
2105
2106 2019-11-20 Julian Brown <julian@codesourcery.com>
2107
2108 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
2109
2110 2019-11-20 Jan Hubicka <jh@suse.cz>
2111
2112 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
2113 parameter and update call_size_time_table.
2114 (ipa_fn_summary::max_size_time_table_size): New constant.
2115 (estimate_calls_size_and_time_1): Break out from ...
2116 (estimate_calls_size_and_time): ... here; implement summary production.
2117 (summarize_calls_size_and_time): New function.
2118 (ipa_call_context::estimate_size_and_time): Bypass
2119 estimate_calls_size_and_time for leaf functions.
2120 (ipa_update_overall_fn_summary): Likewise.
2121 * ipa-fnsummary.h (call_size_time_table): New.
2122 (ipa_fn_summary::account_size_time): Update prototype.
2123
2124 2019-11-20 Joseph Myers <joseph@codesourcery.com>
2125
2126 * doc/invoke.texi (-Wc11-c2x-compat): Document.
2127
2128 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
2129
2130 PR85678
2131 * common.opt (fcommon): Change init to 1.
2132 * doc/invoke.texi (-fcommon): Update documentation.
2133
2134 2019-11-20 Jan Hubicka <jh@suse.cz>
2135
2136 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
2137 to ordinary array.
2138
2139 2019-11-20 Jan Hubicka <jh@suse.cz>
2140
2141 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
2142 Add allocator parameter.
2143 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
2144 (fibonacci_heap<K,V>::m_allocator): New.
2145 (fibonacci_heap<K,V>::m_own_allocator): New.
2146 (fibonacci_heap<K,V>::insert): Use allocator.
2147 (fibonacci_heap<K,V>::extract_min): Likewise.
2148 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
2149 allocator.
2150 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
2151 on stack.
2152 * fibonacci_heap.c: Include alloc-pool
2153 (test_empty_heap): Initialize allocator.
2154 (test_union): Likewise.
2155 * bb-reorder.c: Include alloc-pool.h.
2156 * tracer.c: Inlclude alloc-pool.h.
2157
2158 2019-11-20 Jan Hubicka <jh@suse.cz>
2159
2160 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
2161 Preallocate for 32 entries.
2162 (DFS::worklist): Likewise.
2163 (DFS::DFS): Do not initialize sccstack and worklist.
2164 (DFS::~DFS): Do not release sccstack.
2165
2166 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
2167
2168 PR target/92573
2169 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
2170 Handle UNORDERED if !HONOR_NANS.
2171
2172 2019-11-20 Jan Hubicka <jh@suse.cz>
2173
2174 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
2175 (edge_badness): ... here.
2176 (inline_small_functions): Use monotonicity of badness calculation
2177 to avoid redundant updates.
2178
2179 2019-11-20 Richard Biener <rguenther@suse.de>
2180
2181 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
2182 constructors we are actually analyzing.
2183 (vect_slp_check_for_constructors): Do not vectorize uniform
2184 constuctors, do not dump here.
2185
2186 2019-11-20 Richard Biener <rguenther@suse.de>
2187
2188 PR tree-optimization/92537
2189 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
2190 vectorization validity check...
2191 (vect_slp_analyze_operations): ... here.
2192
2193 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
2194
2195 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
2196 (make_pass_arc_predicate_delay_insns): Likewise.
2197 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
2198 method, remove clone.
2199 (class pass_arc_predicate_delay_insns): Likewise.
2200 (arc_init): Remove registering of ARC specific passes.
2201 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
2202 * config/arc/arc-passes.def: New file.
2203
2204 2019-11-20 Jakub Jelinek <jakub@redhat.com>
2205
2206 PR middle-end/90840
2207 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
2208 and has a mode that doesn't have corresponding integral type.
2209
2210 PR target/90867
2211 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
2212 clear opts->x_ix86_isa_flags{,2} here...
2213 (ix86_valid_target_attribute_inner_p): ... but here when seeing
2214 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
2215
2216 PR c/90898
2217 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
2218 assertion.
2219 (insert_clobbers_for_var): Fix a typo in function comment.
2220
2221 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
2222 Jakub Jelinek <jakub@redhat.com>
2223
2224 PR middle-end/91195
2225 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
2226 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
2227 load.
2228
2229 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
2230
2231 Make 0-series device specs work with older versions of avr-gcc.
2232
2233 PR target/92545
2234 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
2235 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2236 <*link_pm_base_address>: Don't write spec.
2237 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
2238
2239 2019-11-20 Richard Biener <rguenther@suse.de>
2240
2241 PR c/92088
2242 * builtins.c (compute_objsize): Deal with VLAs.
2243
2244 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
2245
2246 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
2247 from common code.
2248 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
2249 call new function.
2250 (power9_sched_reorder2): Call new function.
2251 (rs6000_sched_reorder2): Likewise.
2252
2253 2019-11-18 Jan Hubicka <jh@suse.cz>
2254
2255 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
2256 (estimate_calls_size_and_time): Update.
2257
2258 2019-11-18 Jan Hubicka <jh@suse.cz>
2259
2260 * ipa-inline.c (inlining_speedup): New function.
2261 (edge_badness): Use it.
2262
2263 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
2264 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2265
2266 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
2267 Mark as not having "likely" version.
2268 * config/mips/mips.md (insn_count): The simd_div instruction with
2269 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
2270 (can_delay): Exclude simd_branch.
2271 (defile_delay *): Add simd_branch instructions.
2272 They have one regular delay slot.
2273
2274 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
2275
2276 Revert:
2277 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2278
2279 * cse.c (cse_insn): Delete no-op register moves too.
2280 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2281 Take a second comparison to control the value for NE.
2282 (mask_to_comparison): Handle unsigned comparisons.
2283 (simplify_logical_relational_operation): Likewise. Update call
2284 to comparison_to_mask. Handle AND if !HONOR_NANs.
2285 (simplify_binary_operation_1): Call the above for AND too.
2286
2287 2019-11-19 Martin Liska <mliska@suse.cz>
2288
2289 * toplev.c (general_init): Move the call...
2290 (toplev::main): ... here as we need init_options_struct
2291 being called.
2292
2293 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2294
2295 PR target/79262
2296 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
2297 vec_to_scalar_cost.
2298
2299 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2300
2301 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
2302 (armv7-a): Likewise.
2303 (armv7ve): Likewise.
2304
2305 2019-11-19 Richard Biener <rguenther@suse.de>
2306
2307 PR tree-optimization/92581
2308 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
2309 condition reduction chains gather all conditions involved
2310 for computing the index reduction vector.
2311
2312 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
2313
2314 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2315 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
2316 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
2317 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
2318 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
2319 (aarch64_init_memtag_builtins): New.
2320 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
2321 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
2322 (aarch64_expand_builtin_memtag): New.
2323 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
2324 (AARCH64_BUILTIN_SUBCODE): New macro.
2325 (aarch64_resolve_overloaded_memtag): New.
2326 (aarch64_resolve_overloaded_builtin_general): New. Call
2327 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
2328 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2329 __ARM_FEATURE_MEMORY_TAGGING when enabled.
2330 (aarch64_resolve_overloaded_builtin): Call
2331 aarch64_resolve_overloaded_builtin_general.
2332 * config/aarch64/aarch64-protos.h
2333 (aarch64_resolve_overloaded_builtin_general): New declaration.
2334 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
2335 (TARGET_MEMTAG): Likewise.
2336 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
2337 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
2338 (irg, gmi, subp, addg, ldg, stg): New instructions.
2339 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
2340 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
2341 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
2342 (__arm_mte_get_tag): Likewise.
2343 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
2344 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
2345 * config/arm/types.md (memtag): New.
2346 * doc/invoke.texi (-memtag): Update description.
2347
2348 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
2349
2350 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2351 to define __GCC_ASM_FLAG_OUTPUTS__.
2352 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
2353 (arm_option_params_internal): Swap out targetm.md_asm_adjust
2354 depending on TARGET_THUMB1.
2355 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
2356
2357 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2358
2359 PR target/92549
2360 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
2361
2362 PR middle-end/91450
2363 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
2364 operand is negative and one non-negative, compare the non-negative
2365 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
2366 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
2367 and s2 == 0, unless one of them is known to be negative. Remove
2368 tem2 variable, use tem where tem2 has been used before.
2369
2370 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
2371
2372 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
2373
2374 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2375
2376 PR tree-optimization/92557
2377 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
2378 vmode rather than asserting it always is.
2379
2380 2019-11-19 Richard Biener <rguenther@suse.de>
2381
2382 PR tree-optimization/92554
2383 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
2384 for the actual condition stmt and deal with sign-changes.
2385
2386 2019-11-19 Richard Biener <rguenther@suse.de>
2387
2388 PR tree-optimization/92555
2389 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
2390 for non-SLP stmts.
2391
2392 2019-11-19 Martin Liska <mliska@suse.cz>
2393
2394 PR bootstrap/92540
2395 * config/riscv/riscv.c (riscv_address_insns): Initialize
2396 addr in order to remove boostrap -Wmaybe-uninitialized
2397 error.
2398
2399 2019-11-18 Martin Sebor <msebor@redhat.com>
2400
2401 PR tree-optimization/92493
2402 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
2403 assignment.
2404
2405 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
2406
2407 * cfgloop.c (get_loop_body_in_custom_order): New.
2408 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
2409 * tree-loop-distribution.c (class loop_distribution): New.
2410 (bb_top_order_cmp): Remove.
2411 (bb_top_order_cmp_r): New.
2412 (create_rdg_vertices): Move into class loop_distribution.
2413 (stmts_from_loop): Same as above.
2414 (update_for_merge): Same as above.
2415 (partition_merge_into): Same as above.
2416 (get_data_dependence): Same as above.
2417 (data_dep_in_cycle_p): Same as above.
2418 (update_type_for_merge): Same as above.
2419 (build_rdg_partition_for-vertex): Same as above.
2420 (classify_builtin_ldst): Same as above.
2421 (classify_partition): Same as above.
2422 (share_memory_accesses): Same as above.
2423 (rdg_build_partitions): Same as above.
2424 (pg_add_dependence_edges): Same as above.
2425 (build_partition_graph): Same as above.
2426 (merge_dep_scc_partitions): Same as above.
2427 (break_alias_scc_partitions): Same as above.
2428 (finalize_partitions): Same as above.
2429 (distribute_loop): Same as above.
2430 (bb_top_order_init): New method
2431 (bb_top_order_destroy): New method.
2432 (get_bb_top_order_index_size): New method.
2433 (get_bb_top_order_index_index): New method.
2434 (get_bb_top_order_index_index): New method.
2435 (loop_distribution::execute): New method.
2436 (pass_loop_distribution::execute): Instantiate loop_distribution.
2437
2438 2019-11-18 Jan Hubicka <jh@suse.cz>
2439
2440 PR ipa/92508
2441 * ipa-inline.c (inline_small_functions): Add new edges after reseting
2442 caches.
2443 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2444
2445 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2446
2447 * doc/sourcebuild.texi (vect_check_ptrs): Document.
2448 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2449 * doc/md.texi: Document them.
2450 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2451 internal functions.
2452 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2453 * internal-fn.c (check_ptrs_direct): New macro.
2454 (expand_check_ptrs_optab_fn): Likewise.
2455 (direct_check_ptrs_optab_supported_p): Likewise.
2456 (internal_check_ptrs_fn_supported_p): New fuction.
2457 * tree-data-ref.c: Include internal-fn.h.
2458 (create_ifn_alias_checks): New function.
2459 (create_intersect_range_checks): Use it.
2460 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2461 (optab, cmp_op): Handle it.
2462 (raw_war, unspec): New int attributes.
2463 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2464 constants.
2465 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2466 New predicate.
2467 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2468 expander.
2469 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2470 pattern.
2471
2472 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2473
2474 * tree.c (build_vector_from_ctor): Directly return a zero vector for
2475 empty constructors.
2476
2477 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2478
2479 * cse.c (cse_insn): Delete no-op register moves too.
2480 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2481 Take a second comparison to control the value for NE.
2482 (mask_to_comparison): Handle unsigned comparisons.
2483 (simplify_logical_relational_operation): Likewise. Update call
2484 to comparison_to_mask. Handle AND if !HONOR_NANs.
2485 (simplify_binary_operation_1): Call the above for AND too.
2486
2487 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2488
2489 * fold-const.c (native_encode_vector): Turn into a wrapper function,
2490 splitting the main code out into...
2491 (native_encode_vector_part): ...this new function.
2492 (native_decode_vector_tree): New function.
2493 (fold_view_convert_vector_encoding): Likewise.
2494 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2495 to VECTOR_TYPEs.
2496
2497 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2498
2499 * tree-data-ref.c (create_intersect_range_checks_index): If the
2500 alias pair describes simple WAW and WAR dependencies, just check
2501 whether the first B access overlaps later A accesses.
2502 (create_waw_or_war_checks): New function that performs the same
2503 optimization on addresses.
2504 (create_intersect_range_checks): Call it.
2505
2506 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2507
2508 * lra-constraints.c (valid_address_p): Take the operand and a
2509 constraint as argument. If the operand is a MEM and the constraint
2510 is a memory constraint, check whether the eliminated form of the
2511 MEM already satisfies the constraint.
2512 (process_address_1): Update calls accordingly.
2513
2514 2019-11-18 Tom Tromey <tromey@adacore.com>
2515
2516 * doc/tm.texi: Rebuild.
2517 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2518 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2519
2520 2019-11-18 Richard Biener <rguenther@suse.de>
2521
2522 PR tree-optimization/92516
2523 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2524 argument, hoist bst_map creation/destruction to ...
2525 (vect_analyze_slp): ... here, forming a true graph with
2526 SLP instances being the entries.
2527 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2528 (vect_detect_hybrid_slp): Use one visited set for all
2529 graph entries.
2530 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2531 to hash-sets of slp_tree.
2532 (vect_slp_analyze_operations): Likewise.
2533 (vect_bb_slp_scalar_cost): Remove wrapper.
2534 (vect_bb_vectorization_profitable_p): Use one visited set for
2535 all graph entries.
2536 (vect_schedule_slp_instance): Elide bst_map use.
2537 (vect_schedule_slp): Likewise.
2538
2539 2019-11-18 Richard Biener <rguenther@suse.de>
2540
2541 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2542 was vectorized with just external refs fail.
2543
2544 2019-11-18 Martin Liska <mliska@suse.cz>
2545
2546 PR ipa/92525
2547 * ipa-icf.c (sem_function::init): Unset m_checker
2548 at the end of the function.
2549
2550 2019-11-18 Richard Biener <rguenther@suse.de>
2551
2552 PR tree-optimization/92558
2553 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2554 reducting the width of a reduction vector def update new_phis.
2555
2556 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2557
2558 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2559 and s390*-*-linux-musl* targets.
2560 * configure: Regenerate.
2561
2562 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2563
2564 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2565 (MUSL_DYNAMIC_LINKER64): Define.
2566
2567 2019-11-18 Martin Liska <mliska@suse.cz>
2568
2569 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2570 message for an unknown counter.
2571 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2572 (dbg_cnt_process_opt): Remove unreachable code.
2573
2574 2019-11-18 Martin Liska <mliska@suse.cz>
2575
2576 PR ipa/92529
2577 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2578 Compare LHS types of NOP_EXPR.
2579
2580 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2581
2582 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2583 "initial_pass_name" argument -- by running "*clean_state" pass.
2584 Also free the "initial_pass_name" when done.
2585
2586 2019-11-18 Richard Biener <rguenther@suse.de>
2587
2588 PR rtl-optimization/92462
2589 * alias.c (find_base_term): Restrict the look through ANDs.
2590 (find_base_value): Likewise.
2591
2592 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2593
2594 Add support for AVR devices from the 0-series.
2595
2596 PR target/92545
2597 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2598 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2599 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2600 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2601 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2602 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2603 for spec definitions.
2604 * doc/avr-mmcu.texi: Regenerate.
2605
2606 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2607
2608 PR target/92448
2609 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2610 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2611 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2612 (ix86_reassociation_width): Ditto.
2613 * config/i386/i386-options.c (ix86_option_override_internal):
2614 Replace TARGET_AVX128_OPTIAML with
2615 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2616 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2617 (TARGET_AVX128_OPTIMAL): Deleted.
2618 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2619 DEF_TUNE.
2620
2621 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2622
2623 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2624 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2625 just SI.
2626 (cceq_rev_compare): Rename to...
2627 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2628 just SI.
2629 (define_split for <bd>tf_<mode>): Add SImode first argument to
2630 gen_cceq_ior_compare.
2631
2632 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2633
2634 * common/config/powerpcspe: Delete.
2635
2636 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2637
2638 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2639 output in UNSPEC_WRFFR.
2640
2641 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2642
2643 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2644 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2645
2646 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2647
2648 * tree-data-ref.c (create_intersect_range_checks_index)
2649 (create_intersect_range_checks): Print dump messages.
2650
2651 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2652
2653 * tree-data-ref.c (dump_alias_pair): New function.
2654 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2655
2656 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2657
2658 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2659 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2660 merging data references with different steps.
2661 (create_intersect_range_checks_index): Take a
2662 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2663 Bail out if DR_ALIAS_MIXED_STEPS is set.
2664 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2665 instead of two dr_with_seg_lens. Update call to
2666 create_intersect_range_checks_index.
2667 (create_runtime_alias_checks): Update call accordingly.
2668
2669 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2670
2671 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2672 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2673 (dr_with_seg_len_pair_t::sequencing): New enum.
2674 (dr_with_seg_len_pair_t::flags): New member variable.
2675 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2676 parameter and initialize the flags member variable.
2677 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2678 call accordingly.
2679 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2680 Ensure the two data references in an alias pair are in statement
2681 order, if there is a defined order.
2682 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2683 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2684 swapped the references in a dr_with_seg_len_pair_t. OR together
2685 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2686 try to restore the original dr_with_seg_len order, updating the
2687 flags if that fails.
2688
2689 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2690
2691 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2692 swapping the dr_as based on init values until we've decided
2693 whether to merge them.
2694
2695 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2696
2697 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2698 two accesses in each dr_with_seg_len_pair_t before trying to
2699 combine separate dr_with_seg_len_pair_ts.
2700 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2701 that here.
2702 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2703
2704 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2705
2706 * config/aarch64/aarch64-sve.md
2707 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2708 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2709 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2710 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2711 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2712 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2713 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2714 pattern.
2715 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2716 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2717 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2718 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2719
2720 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2721
2722 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2723 (SVE_4HSI): New mode iterators.
2724 (ANY_EXTEND2): New code iterator.
2725 * config/aarch64/aarch64-sve.md
2726 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2727 Extend to...
2728 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2729 ...this, handling extension to partial modes as well as full modes.
2730 Describe the extension as a predicated rather than unpredicated
2731 extension.
2732 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2733 Likewise extend to...
2734 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2735 ...this, making the same adjustments.
2736 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2737 Likewise extend to...
2738 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2739 ...this, making the same adjustments.
2740 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2741 Likewise extend to...
2742 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2743 ...this, making the same adjustments.
2744 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2745 New pattern.
2746 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2747 extension predicate.
2748 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2749 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2750 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2751 Describe the extension as a predicated rather than unpredicated
2752 extension.
2753 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2754 Likewise. Canonicalize to a constant extension predicate.
2755 * config/aarch64/aarch64-sve-builtins-base.cc
2756 (svld1_gather_extend_impl::expand): Add an extra predicate for
2757 the extension.
2758 (svldff1_gather_extend_impl::expand): Likewise.
2759
2760 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2761
2762 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2763 iterators.
2764 * config/aarch64/aarch64-sve.md
2765 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2766 (gather_load<SVE_24:mode><v_int_container>): ...this.
2767 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2768 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2769 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2770 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2771 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2772 New pattern.
2773 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2774 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2775 Allow the nominal extension predicate to be different from the
2776 load predicate.
2777 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2778 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2779
2780 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2781
2782 * config/aarch64/aarch64-sve.md
2783 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2784 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2785 function.
2786 (aarch64_sve_adjust_stmt_cost): Call it.
2787
2788 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2789
2790 * config/aarch64/aarch64-sve.md
2791 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2792 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2793 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2794 Combine into...
2795 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2796 ...this new pattern, handling extension to partial modes as well
2797 as full modes. Describe the extension as a predicated rather than
2798 unpredicated extension.
2799 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2800 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2801 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2802 Combine into...
2803 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2804 ...this new pattern, handling extension to partial modes as well
2805 as full modes. Describe the extension as a predicated rather than
2806 unpredicated extension.
2807 * config/aarch64/aarch64-sve-builtins.cc
2808 (function_expander::use_contiguous_load_insn): Add an extra
2809 predicate for extending loads.
2810 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2811 (aarch64_sve_adjust_stmt_cost): Likewise.
2812 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2813 the cost of SVE vector stmts.
2814
2815 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2816
2817 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2818 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2819 * config/aarch64/aarch64-sve.md
2820 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2821 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2822 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2823 comment. Avoid new narrower_mask ambiguity.
2824 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2825 (*cond_uxt<mode>_2): Update comment.
2826 (*cond_uxt<mode>_any): Likewise.
2827
2828 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2829
2830 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2831 float modes.
2832 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2833 function.
2834 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2835 new vector float modes.
2836 (aarch64_sve_container_bits): New function.
2837 (aarch64_sve_pred_mode): Likewise.
2838 (aarch64_get_mask_mode): Use it.
2839 (aarch64_sve_element_int_mode): Handle structure modes and partial
2840 modes.
2841 (aarch64_sve_container_int_mode): New function.
2842 (aarch64_vectorize_related_mode): Return SVE modes when given
2843 SVE modes. Handle partial modes, taking the preferred number
2844 of units from the size of the given mode.
2845 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2846 in registers.
2847 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2848 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2849 (aarch64_split_sve_subreg_move): Use the mode form of
2850 aarch64_sve_pred_mode.
2851 (aarch64_secondary_reload): Handle partial modes in the same way
2852 as full big-endian vectors.
2853 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2854 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2855 merging with the Advanced SIMD modes. If two modes have the
2856 same size, try the Advanced SIMD mode first.
2857 (aarch64_simd_valid_immediate): Use the container rather than
2858 the element mode for INDEX constants.
2859 (aarch64_simd_vector_alignment): Make the alignment of partial
2860 SVE vector modes the same as their minimum size.
2861 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2862 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2863 (mov<SVE_ALL:mode>): ...this.
2864 (movmisalign<SVE_FULL:mode>): Extend to...
2865 (movmisalign<SVE_ALL:mode>): ...this.
2866 (*aarch64_sve_mov<mode>_le): Rename to...
2867 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2868 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2869 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2870 partial modes regardless of endianness.
2871 (aarch64_sve_reload_be): Rename to...
2872 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2873 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2874 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2875 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2876 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2877 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2878 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2879 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2880 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2881 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2882 (maskload<SVE_FULL:mode><vpred>): Extend to...
2883 (maskload<SVE_ALL:mode><vpred>): ...this.
2884 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2885 (maskstore<SVE_ALL:mode><vpred>): ...this.
2886 (vec_duplicate<SVE_FULL:mode>): Extend to...
2887 (vec_duplicate<SVE_ALL:mode>): ...this.
2888 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2889 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2890 (sve_ld1r<SVE_FULL:mode>): Extend to...
2891 (sve_ld1r<SVE_ALL:mode>): ...this.
2892 (vec_series<SVE_FULL_I:mode>): Extend to...
2893 (vec_series<SVE_I:mode>): ...this.
2894 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2895 (*vec_series<SVE_I:mode>_plus): ...this.
2896 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2897 new VPRED ambiguity.
2898 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2899 (add<SVE_FULL_I:mode>3): Extend to...
2900 (add<SVE_I:mode>3): ...this.
2901 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2902 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2903 (VPRED, vpred): Likewise.
2904 (Vctype): New iterator.
2905 (vw): Remove SVE modes.
2906
2907 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2908
2909 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2910 (SVE_PARTIAL_I): ...this.
2911 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2912
2913 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2914
2915 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2916 (SVE_FULL): ...this.
2917 (SVE_I): Rename to...
2918 (SVE_FULL_I): ...this.
2919 (SVE_F): Rename to...
2920 (SVE_FULL_F): ...this.
2921 (SVE_BHSI): Rename to...
2922 (SVE_FULL_BHSI): ...this.
2923 (SVE_HSD): Rename to...
2924 (SVE_FULL_HSD): ...this.
2925 (SVE_HSDI): Rename to...
2926 (SVE_FULL_HSDI): ...this.
2927 (SVE_HSF): Rename to...
2928 (SVE_FULL_HSF): ...this.
2929 (SVE_SD): Rename to...
2930 (SVE_FULL_SD): ...this.
2931 (SVE_SDI): Rename to...
2932 (SVE_FULL_SDI): ...this.
2933 (SVE_SDF): Rename to...
2934 (SVE_FULL_SDF): ...this.
2935 (SVE_S): Rename to...
2936 (SVE_FULL_S): ...this.
2937 (SVE_D): Rename to...
2938 (SVE_FULL_D): ...this.
2939 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2940 * config/aarch64/aarch64-sve2.md: Likewise.
2941
2942 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2943
2944 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2945 New option.
2946 * doc/invoke.texi: Document it.
2947 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2948 By default, return VECT_COMPARE_COSTS for SVE.
2949
2950 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2951
2952 * target.h (VECT_COMPARE_COSTS): New constant.
2953 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2954 * doc/tm.texi: Regenerate.
2955 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2956 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2957 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2958 Likewise.
2959 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2960 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2961 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2962 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2963 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2964 (_loop_vec_info::vec_inside_cost): New member variables.
2965 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2966 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2967 (vect_analyze_loop): When autovectorize_vector_modes returns
2968 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2969 vector mode and picking the one with the lowest cost.
2970 (vect_estimate_min_profitable_iters): Record the computed costs
2971 in the loop_vec_info.
2972
2973 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2974
2975 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2976 element type rather than an element mode.
2977 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2978 Use get_vectype_for_scalar_type to query the natural types
2979 for a given element type rather than basing everything on
2980 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2981 query to MAX_FIXED_MODE_SIZE.
2982 (duplicate_and_interleave): Update call accordingly.
2983 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2984
2985 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2986
2987 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2988 optional maximum nunits.
2989 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2990 takes an slp_tree.
2991 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2992 (vect_get_mask_type_for_stmt): Likewise.
2993 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2994 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2995 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2996 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2997 to get an assumed vector type for data references.
2998 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2999 (vect_update_all_shared_vectypes): Likewise.
3000 (vect_build_slp_tree_1): Pass the group size to
3001 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
3002 for BB vectorization.
3003 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
3004 before building the vectof from scalars.
3005 (vect_analyze_slp_instance): Pass the group size to
3006 get_vectype_for_scalar_type.
3007 (vect_slp_analyze_node_operations_1): Don't recompute the vector
3008 types for BB vectorization here; just handle the case in which
3009 we deferred the choice for booleans.
3010 (vect_get_constant_vectors): Pass the slp_tree to
3011 get_vectype_for_scalar_type.
3012 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
3013 (vectorizable_call): Likewise.
3014 (vectorizable_simd_clone_call): Likewise.
3015 (vectorizable_conversion): Likewise.
3016 (vectorizable_shift): Likewise.
3017 (vectorizable_operation): Likewise.
3018 (vectorizable_comparison): Likewise.
3019 (vect_is_simple_cond): Take the slp_tree as argument and
3020 pass it to get_vectype_for_scalar_type.
3021 (vectorizable_condition): Update call accordingly.
3022 (get_vectype_for_scalar_type): Take a group_size argument.
3023 For BB vectorization, limit the the vector to that number
3024 of elements. Also define an overload that takes an slp_tree.
3025 (get_mask_type_for_scalar_type): Add an slp_tree argument and
3026 pass it to get_vectype_for_scalar_type.
3027 (vect_get_vector_types_for_stmt): Add a group_size argument
3028 and pass it to get_vectype_for_scalar_type. Don't use the
3029 cached vector type for BB vectorization if a group size is given.
3030 Handle data references in that case.
3031 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
3032 pass it to get_mask_type_for_scalar_type.
3033
3034 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
3035
3036 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
3037 parameter.
3038 (estimate_edge_time): Use it.
3039 * ipa-inline-analysis.c (do_estimate_edge_time): Add
3040 ret_nonspec_time parameter.
3041
3042 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
3043
3044 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
3045
3046 2019-11-15 Nick Clifton <nickc@redhat.com>
3047 Szabolcs Nagy <szabolcs.nagy@arm.com>
3048
3049 PR target/65649
3050 * config/microblaze/microblaze.c (print_operand): Print value as long.
3051
3052 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
3053
3054 * ipa-inline.c (edge_badness, inline_small_functions): Revert
3055 accidental commit.
3056
3057 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3058
3059 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
3060 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
3061
3062 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3063
3064 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
3065 (gcn_conditional_register_usage): Use constants in place of hard-coded
3066 values.
3067 (gcn_hsa_declare_function_name): Set lower bound for number of
3068 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
3069 MAX_NORMAL_VGPR_COUNT.
3070
3071 2019-11-15 Martin Jambor <mjambor@suse.cz>
3072
3073 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
3074 declaration.
3075
3076 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3077
3078 * config/gcn/gcn.c (default_requested_args): New.
3079 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
3080 set with default_requested_args.
3081 (gcn_conditional_register_usage): Limit register usage of non-kernel
3082 functions. Reassign fixed registers if a non-standard set of args is
3083 requested.
3084 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
3085
3086 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
3087
3088 PR ipa/92528
3089 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
3090 aggregate jump function when inlined-to caller has no edge summary.
3091
3092 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3093
3094 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
3095
3096 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3097
3098 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
3099 prologue use of v0.
3100 (print_operand_address): Use v1 for zero vector offset.
3101
3102 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3103
3104 PR tree-optimization/92515
3105 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
3106 types when converting a vector/scalar shift into a vector/vector one,
3107 using tree_nop_conversion_p instead of useless_type_conversion_p.
3108 Move the conversion code to the transform block.
3109
3110 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3111
3112 * read-rtl-function.c
3113 (function_reader::add_fixup_source_location): Take additional
3114 parameter of a column.
3115 (function_reader::maybe_read_location): Optionally parse column
3116 information and pass to add_fixup_source_location.
3117
3118 2019-11-15 Richard Biener <rguenther@suse.de>
3119
3120 PR tree-optimization/92512
3121 * tree-vect-loop.c (check_reduction_path): Fix operand index
3122 computability check. Add check for second use in COND_EXPRs.
3123
3124 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3125
3126 PR target/92515
3127 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
3128 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
3129
3130 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3131
3132 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
3133 register class for VCC_LO and VCC_HI.
3134 (gcn_spill_class): Use SGPR_REGS to spill registers in
3135 VCC_CONDITIONAL_REG.
3136
3137 2019-11-15 Richard Biener <rguenther@suse.de>
3138
3139 PR tree-optimization/92324
3140 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3141 singedness of SLP reduction epilouge operations. Also reduce
3142 the vector width for SLP reductions before doing elementwise
3143 operations if possible.
3144
3145 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3146
3147 * passes.c (skip_pass): Set epilogue_completed if skipping the
3148 pro_and_epilogue pass.
3149
3150 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3151
3152 * passes.c (should_skip_pass_p): Always run "dfinish".
3153
3154 2019-11-15 Richard Biener <rguenther@suse.de>
3155
3156 * ipa-inline.c (inline_small_functions): Move assignment
3157 to next before call destroying edge.
3158
3159 2019-11-15 Richard Biener <rguenther@suse.de>
3160
3161 PR tree-optimization/92039
3162 PR tree-optimization/91975
3163 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
3164 previous change, treat invariants consistently as non-constant.
3165 (tree_estimate_loop_size): Ternary ops with just the first op
3166 constant are not optimized away.
3167
3168 2019-11-15 Jakub Jelinek <jakub@redhat.com>
3169
3170 * gimplify.c (gimplify_call_expr): Don't call
3171 omp_resolve_declare_variant after gimplification.
3172 * omp-general.c (omp_context_selector_matches): For isa that might
3173 match in some other function, defer if in declare simd function.
3174 (omp_context_compute_score): Don't look for " score" in construct
3175 trait set. Set *score to -1 if it can't ever match.
3176 (omp_resolve_declare_variant): If any variants need to be deferred,
3177 don't punt immediately, but compute scores of all variants and if
3178 ther eis a score winner that doesn't need to be deferred, return that.
3179
3180 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
3181
3182 * ipa-comdats.c: Fix comments typo.
3183 * ipa-profile.c: Fix comments typo.
3184 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
3185 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
3186 (gimple_gen_ic_func_profiler): Likewise.
3187 (pass_ipa_tree_profile::gate): Fix comments typo.
3188
3189 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
3190
3191 * ipa-inline.c (inline_small_functions): Update iterator of next.
3192
3193 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3194
3195 * lra-spills.c (assign_spill_hard_regs): Check that the spill
3196 register is suitable for the mode.
3197
3198 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3199
3200 * range-op.h (range_operator::fold_range): Return a bool.
3201 * range-op.cc (range_operator::wi_fold): Assert supported type.
3202 (range_operator::fold_range): Assert supported type and return true.
3203 (operator_equal::fold_range): Return true.
3204 (operator_not_equal::fold_range): Same.
3205 (operator_lt::fold_range): Same.
3206 (operator_le::fold_range): Same.
3207 (operator_gt::fold_range): Same.
3208 (operator_ge::fold_range): Same.
3209 (operator_plus::op1_range): Adjust call to fold_range.
3210 (operator_plus::op2_range): Same.
3211 (operator_minus::op1_range): Same.
3212 (operator_minus::op2_range): Same.
3213 (operator_exact_divide::op1_range): Same.
3214 (operator_lshift::fold_range): Return true and adjust fold_range call.
3215 (operator_rshift::fold_range): Same.
3216 (operator_cast::fold_range): Return true.
3217 (operator_logical_and::fold_range): Same.
3218 (operator_logical_or::fold_range): Same.
3219 (operator_logical_not::fold_range): Same.
3220 (operator_bitwise_not::fold_range): Adjust call to fold_range.
3221 (operator_bitwise_not::op1_range): Same.
3222 (operator_cst::fold_range): Return true.
3223 (operator_identity::fold_range): Return true.
3224 (operator_negate::fold_range): Return true and adjust fold_range call.
3225 (operator_addr_expr::fold_range): Return true.
3226 (operator_addr_expr::op1_range): Adjust call to fold_range.
3227 (range_cast): Same.
3228 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
3229 (range_fold_unary_symbolics_p): Same.
3230
3231 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3232
3233 PR tree-optimization/92506
3234 * range-op.cc (range_operator::fold_range): Start with range undefined.
3235 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
3236 overflow is varying.
3237
3238 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3239
3240 * range-op.cc (*operator*::*range): Remove calls to
3241 range_intersect, range_invert, and range_union in favor of calling
3242 the in-place API methods.
3243 (range_tests): Same.
3244 * range.cc (range_intersect): Remove.
3245 (range_union): Remove.
3246 (range_invert): Remove.
3247 * range.h (range_intersect): Remove.
3248 (range_union): Remove.
3249 (range_intersect): Remove.
3250
3251 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
3252
3253 PR rtl-optimization/92430
3254 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
3255 (pass_jump_after_combine::execute): Perform jump threading
3256 unconditionally.
3257
3258 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3259 Doug Rupp <rupp@adacore.com>
3260 Olivier Hainque <hainque@adacore.com>
3261
3262 * config.gcc: Collapse the arm-vxworks entries into
3263 a single arm-wrs-vxworks7* one, bpabi based. Update
3264 the default cpu from arm8 to armv7-a
3265 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
3266 we always use ARM_UNWIND_INFO.
3267 (DWARF2_UNWIND_INFO): Remove redefinition.
3268 (ARM_TARGET2_DWARF_FORMAT): Likewise.
3269 (VXWORKS_PERSONALITY): Define, to "llvm".
3270 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
3271
3272 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3273
3274 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
3275 _VX_CPU instead of CPU and handle arm_arch8.
3276
3277 2019-11-14 Doug Rupp <rupp@adacore.com>
3278 Olivier Hainque <hainque@adacore.com>
3279 Jerome Lambourg <lambourg@adacore.com>
3280
3281 * config.gcc: Handle aarch64*-wrs-vxworks7*.
3282 * config/aarch64/aarch64-vxworks.h: New file.
3283 * config/aarch64/t-aarch64-vxworks: New file.
3284
3285 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
3286 Olivier Hainque <hainque@adacore.com>
3287
3288 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
3289 definition, pointless with a VxWorks specific version
3290 of crtstuff.
3291 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
3292 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
3293 New local macros, controlling the addition of vxworks specific
3294 crtstuff objects depending on the EH mechanism and kind of
3295 module being linked.
3296 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
3297
3298 2019-11-06 Pat Bernardi <bernardi@adacore.com>
3299 Jerome Lambourg <lambourg@adacore.com>
3300 Olivier Hainque <hainque@adacore.com>
3301
3302 * config.gcc: Add comment to introduce the TARGET_VXWORKS
3303 common macro definitions, conveying VXWORKS7 or 64bit general
3304 variations. Add a block to set gcc_cv_initfini_array
3305 unconditionally to "yes" for VxWorks7.
3306 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
3307 by default. Update some comments.
3308 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
3309 default, to be added the end of VXWORKS_LIBS_RTP.
3310 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
3311 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
3312 redefine.
3313 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
3314 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
3315 to account for the now available TLS abilities.
3316 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
3317 (VXWORKS_HAVE_TLS): Likewise.
3318
3319 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3320
3321 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
3322 (vect_slp_convert_to_external): Likewise.
3323 (vect_slp_analyze_node_operations): If analysis fails, try building
3324 the node from scalars instead.
3325
3326 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3327
3328 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
3329 between vector types.
3330 * tree-vect-stmts.c (vectorizable_conversion): Extend the
3331 non-widening and non-narrowing path to handle standard
3332 conversion codes, if the target supports them.
3333 * expr.c (convert_move): Try using the extend and truncate optabs
3334 for vectors.
3335 * optabs-tree.c (supportable_convert_operation): Likewise.
3336 * config/aarch64/iterators.md (Vnarroqw): New iterator.
3337 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
3338 (trunc<mode><Vnarrowq>2): New patterns.
3339
3340 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3341
3342 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
3343 require vectype and nunits_vectype to have the same size;
3344 instead assert that nunits_vectype has at least as many
3345 elements as vectype. Don't compute a separate nunits_vectype
3346 if the scalar type is obviously the same as vectype's.
3347 Tweak dump messages.
3348
3349 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3350
3351 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
3352 function.
3353 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
3354 (TARGET_VECTORIZE_RELATED_MODE): Define.
3355
3356 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3357
3358 * tree-vectorizer.h (vec_info::mode_set): New typedef.
3359 (vec_info::used_vector_mode): New member variable.
3360 (vect_chooses_same_modes_p): Declare.
3361 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
3362 chosen vector mode in vec_info::used_vector_mode.
3363 (vect_chooses_same_modes_p): New function.
3364 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
3365 the same vector statements multiple times.
3366 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3367
3368 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3369
3370 * machmode.h (opt_machine_mode::operator==): New function.
3371 (opt_machine_mode::operator!=): Likewise.
3372 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
3373 (get_related_vectype_for_scalar_type): Delete.
3374 (get_vectype_for_scalar_type_and_size): Declare.
3375 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
3376 whether analysis passed or failed, and with what vector modes.
3377 Use related_vector_mode to check whether trying a particular
3378 vector mode would be redundant with the autodetected mode,
3379 and print a dump message if we decide to skip it.
3380 * tree-vect-loop.c (vect_analyze_loop): Likewise.
3381 (vect_create_epilog_for_reduction): Use
3382 get_related_vectype_for_scalar_type instead of
3383 get_vectype_for_scalar_type_and_size.
3384 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
3385 with...
3386 (get_related_vectype_for_scalar_type): ...this new function.
3387 Take a starting/"prevailing" vector mode rather than a vector size.
3388 Take an optional nunits argument, with the same meaning as for
3389 related_vector_mode. Use related_vector_mode when not
3390 auto-detecting a mode, falling back to mode_for_vector if no
3391 target mode exists.
3392 (get_vectype_for_scalar_type): Update accordingly.
3393 (get_same_sized_vectype): Likewise.
3394 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
3395
3396 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3397
3398 * tree-vect-stmts.c (vectorizable_call): Require the types
3399 to have the same size.
3400
3401 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3402
3403 * tree-vect-stmts.c (vectorizable_call): If an operand is
3404 constant or external, use get_vectype_for_scalar_type
3405 rather than get_same_sized_vectype to get its vector type.
3406 (vectorizable_conversion, vectorizable_shift): Likewise.
3407 (vectorizable_operation): Likewise.
3408
3409 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3410
3411 * tree-vectorizer.h (vec_info::vector_size): Replace with...
3412 (vec_info::vector_mode): ...this new field.
3413 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
3414 (vect_analyze_loop, vect_transform_loop): Likewise.
3415 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
3416 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3417 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3418 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3419 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3420
3421 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3422
3423 * target.h (vector_sizes, auto_vector_sizes): Delete.
3424 (vector_modes, auto_vector_modes): New typedefs.
3425 * target.def (autovectorize_vector_sizes): Replace with...
3426 (autovectorize_vector_modes): ...this new hook.
3427 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3428 Replace with...
3429 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
3430 * doc/tm.texi: Regenerate.
3431 * targhooks.h (default_autovectorize_vector_sizes): Delete.
3432 (default_autovectorize_vector_modes): New function.
3433 * targhooks.c (default_autovectorize_vector_sizes): Delete.
3434 (default_autovectorize_vector_modes): New function.
3435 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
3436 of autovectorize_vector_sizes. Use the number of units in the mode
3437 to calculate the maximum VF.
3438 * omp-low.c (omp_clause_aligned_alignment): Use
3439 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3440 Use a loop based on related_mode to iterate through all supported
3441 vector modes for a given scalar mode.
3442 * optabs-query.c (can_vec_mask_load_store_p): Use
3443 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3444 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3445 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3446 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3447 Replace with...
3448 (aarch64_autovectorize_vector_modes): ...this new function.
3449 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3450 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3451 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3452 (arc_autovectorize_vector_modes): ...this new function.
3453 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3454 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3455 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3456 (arm_autovectorize_vector_modes): ...this new function.
3457 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3458 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3459 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3460 (ix86_autovectorize_vector_modes): ...this new function.
3461 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3462 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3463 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3464 (mips_autovectorize_vector_modes): ...this new function.
3465 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3466 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3467
3468 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3469
3470 * tree-vect-stmts.c (vectorizable_shift): Check the number
3471 of vector elements as well as the type mode when deciding
3472 whether an op1_vectype is compatible. Reuse the result of
3473 this check when generating vector statements.
3474
3475 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3476
3477 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3478 targetm.vectorize.preferred_simd_mode returns an integer mode,
3479 use mode_for_vector to decide what the vector type's mode
3480 should actually be. Use build_vector_type_for_mode instead
3481 of build_vector_type.
3482
3483 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3484
3485 * target.def (get_mask_mode): Take a vector mode itself as argument,
3486 instead of properties about the vector mode.
3487 * doc/tm.texi: Regenerate.
3488 * targhooks.h (default_get_mask_mode): Update to reflect new
3489 get_mode_mask interface.
3490 * targhooks.c (default_get_mask_mode): Likewise. Use
3491 related_int_vector_mode.
3492 * optabs-query.c (can_vec_mask_load_store_p): Update call
3493 to get_mask_mode.
3494 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3495 first that the original mode really is a vector.
3496 * tree.c (build_truth_vector_type_for): Likewise.
3497 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3498 get_mode_mask interface.
3499 (aarch64_expand_sve_vcond): Update call accordingly.
3500 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3501 get_mode_mask interface.
3502 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3503
3504 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3505
3506 * tree.h (build_truth_vector_type): Delete.
3507 (build_same_sized_truth_vector_type): Likewise.
3508 * tree.c (build_truth_vector_type): Rename to...
3509 (build_truth_vector_type_for): ...this. Make static and take
3510 a vector type as argument.
3511 (truth_type_for): Update accordingly.
3512 (build_same_sized_truth_vector_type): Delete.
3513 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3514 instead of build_same_sized_truth_vector_type.
3515 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3516 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3517 * tree-vect-patterns.c (build_mask_conversion): Likeise.
3518 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3519 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3520 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3521 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3522 (vectorizable_store, vectorizable_condition): Likewise.
3523 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3524 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3525 build_truth_vector_type.
3526 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3527 Use truth_type_for instead of build_same_sized_truth_vector_type.
3528 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3529
3530 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3531
3532 * tree.h (build_truth_vector_type_for_mode): Declare.
3533 * tree.c (build_truth_vector_type_for_mode): New function,
3534 split out from...
3535 (build_truth_vector_type): ...here.
3536 (build_opaque_vector_type): Fix head comment.
3537 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3538 vec_info parameter.
3539 (vect_halve_mask_nunits): Replace vec_info parameter with the
3540 mode of the new vector.
3541 (vect_double_mask_nunits): Likewise.
3542 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3543 (vect_double_mask_nunits): Likewise.
3544 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3545 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3546 to vect_halve_mask_nunits, getting the required mode from the unpack
3547 patterns.
3548 (vect_set_loop_condition_masked): Update call accordingly.
3549 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3550 parameter and update call to vect_double_mask_nunits.
3551 (vectorizable_conversion): Update call accordingly.
3552 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3553 (vectorizable_call): Update call accordingly.
3554 (supportable_widening_operation): Update call to
3555 vect_halve_mask_nunits.
3556 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3557 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3558
3559 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3560
3561 * machmode.h (mode_for_int_vector): Delete.
3562 (related_int_vector_mode): Declare.
3563 * stor-layout.c (mode_for_int_vector): Delete.
3564 (related_int_vector_mode): New function.
3565 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3566 instead of mode_for_int_vector.
3567 (expand_vec_perm_const): Likewise.
3568 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3569 (aarch64_evpc_sve_tbl): Likewise.
3570 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3571 (s390_expand_vcond): Likewise.
3572
3573 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3574
3575 * target.def (related_mode): New hook.
3576 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3577 * doc/tm.texi: Regenerate.
3578 * targhooks.h (default_vectorize_related_mode): Declare.
3579 * targhooks.c (default_vectorize_related_mode): New function.
3580 * machmode.h (related_vector_mode): Declare.
3581 * stor-layout.c (related_vector_mode): New function.
3582 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3583 * optabs-query.c (qimode_for_vec_perm): Likewise.
3584 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3585 (vectorizable_store, vectorizable_load): Likewise
3586
3587 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3588
3589 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3590 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3591 * config/arm/arm-c.c (arm_cpu_builtins): Define
3592 __GCC_ASM_FLAG_OUTPUTS__.
3593 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3594 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3595 Define __GCC_ASM_FLAG_OUTPUTS__.
3596 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3597 * doc/extend.texi (FlagOutputOperands): Add documentation
3598 for ARM and AArch64.
3599
3600 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3601 * config/arm/predicates.md (nz_comparison_operator): Rename
3602 from noov_comparison_operator.
3603 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3604 (arm_gen_dicompare_reg): Likewise.
3605 (maybe_get_arm_condition_code): Likewise.
3606 (thumb1_final_prescan_insn): Likewise.
3607 (arm_emit_coreregs_64bit_shift): Likewise.
3608 * config/arm/arm.md (addsi3_compare0): Likewise.
3609 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3610 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3611 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3612 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3613 (*mulsi3addsi_compare0_scratch): Likewise.
3614 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3615 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3616 (*zeroextractsi_compare0_scratch): Likewise.
3617 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3618 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3619 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3620 (andsi_not_shiftsi_si_scc): Likewise.
3621 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3622 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3623 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3624 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3625 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3626 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3627 (return_addr_mask, *check_arch2): Likewise.
3628 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3629 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3630 (compare_scc splitters): Likewise.
3631 (movcond_addsi): Likewise.
3632 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3633 (*thumb2_addsi3_compare0_scratch): Likewise.
3634 (*thumb2_mulsi_short_compare0): Likewise.
3635 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3636 (compare peephole2s): Likewise.
3637 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3638 nz_comparison_operator names.
3639 (cbranchsi4_insn): Likewise.
3640
3641 * config/arm/constraints.md (c): Use cc_register predicate.
3642
3643 * config/aarch64/constraints.md (c): New constraint.
3644
3645 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3646
3647 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3648 ipa_merge_fn_summary_after_inlining): Micro optimize.
3649
3650 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3651
3652 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3653
3654 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3655
3656 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3657 (ipa_value_range_from_jfunc): New function.
3658 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3659 known_value_ranges parameter; use it to evalulate conditions.
3660 (evaluate_properties_for_edge): Compute known value ranges.
3661 (ipa_fn_summary_t::duplicate): Update use of
3662 evaluate_conditions_for_known_args.
3663 (estimate_ipcp_clone_size_and_time): Likewise.
3664 (ipa_merge_fn_summary_after_inlining): Likewise.
3665 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3666
3667 2019-11-14 Martin Liska <mliska@suse.cz>
3668
3669 * ipa-inline.c (want_inline_small_function_p): Use
3670 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3671 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3672
3673 2019-11-14 Martin Liska <mliska@suse.cz>
3674
3675 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3676 of a callee to get value of the param.
3677 * ipa-inline.c (inline_insns_auto): Use proper
3678 opt_for_fn.
3679 * opts.c (maybe_default_option): Do not overwrite param
3680 value if optimization level does not match. Note that
3681 params usually have default value set via Init() keyword.
3682 * params.opt: Remove -param=max-inline-insns-auto-O2.
3683 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3684 * doc/invoke.texi: Remove documentation of
3685 max-inline-insns-auto-O2.
3686
3687 2019-11-14 Martin Liska <mliska@suse.cz>
3688
3689 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3690 Do not initialize m_other_count.
3691 (switch_conversion::collect): Do not count m_default_count and
3692 m_other_count as we use frequencies for edges.
3693 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3694
3695 2019-11-14 Martin Liska <mliska@suse.cz>
3696
3697 PR other/92329
3698 * doc/invoke.texi: Document -fallocation-dce.
3699
3700 2019-11-14 Martin Liska <mliska@suse.cz>
3701
3702 PR target/92389
3703 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3704 PTA_ICELAKE_CLIENT which is later interited by
3705 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3706
3707 2019-11-14 Martin Liska <mliska@suse.cz>
3708
3709 * ipa-icf.c (sem_item_optimizer::execute): Save
3710 loaded_symbols.
3711 (sem_item_optimizer::parse_nonsingleton_classes):
3712 Return number of loaded symbols.
3713 (sem_item_optimizer::merge_classes): Print
3714 statistics about totally needed symbols.
3715 * ipa-icf.h (parse_nonsingleton_classes): Change return
3716 type.
3717 (merge_classes): Add one argument.
3718
3719 2019-11-14 Martin Liska <mliska@suse.cz>
3720
3721 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3722 func_checker::hash_operand by handling of FIELD_DECLs.
3723
3724 2019-11-14 Martin Liska <mliska@suse.cz>
3725
3726 * ipa-icf-gimple.h (func_checker::func_checker): Add
3727 default constructor.
3728 * ipa-icf.c (sem_function::init): Make operand_equal_p
3729 and hash_operand public.
3730 (sem_item::add_expr): Remove.
3731 (sem_item::add_type): Remove.
3732 (sem_function::hash_stmt): Use m_checker for hashing
3733 of GIMPLE statements.
3734 (sem_function::parse): Init with checker.
3735 (sem_variable::parse): Pass NULL as checker.
3736 (sem_item_optimizer::parse_funcs_and_vars):
3737 Pass checker to ::parse function.
3738 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3739 (sem_variable::parse): New function.
3740 (sem_variable::get_hash): Only return computed hash value.
3741 (sem_variable::init): Initialize hash of a variable.
3742 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3743 to couple of functions as a new argument.
3744
3745 2019-11-14 Martin Liska <mliska@suse.cz>
3746
3747 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3748 bail out reason.
3749 (func_checker::compare_gimple_assign): Likewise.
3750
3751 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3752
3753 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3754 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3755 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3756
3757 * omp-general.c (omp_context_name_list_prop): New function.
3758 (omp_context_selector_matches): Use it. Return 0 if it returns
3759 NULL.
3760 (omp_context_selector_props_compare): Allow equivalency of an
3761 identifier and a string literal containing no embedded zeros.
3762
3763 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3764
3765 * range-op.cc (RANGE3): Remove.
3766 (range_tests): Remove all selftest that check for multi-ranges.
3767 Put tests in namespace selftest.
3768 * selftest.h: Move range_tests into namespace selftest.
3769 * value-range.h (class value_range): Unfriend range_tests.
3770
3771 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3772
3773 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3774 normalize_symbolics and normalize_addresses working in place.
3775 (range_fold_unary_symbolics_p): Same.
3776 (range_fold_unary_symbolics_p): Same.
3777 * value-range.cc (num_pairs): Same.
3778 (lower_bound): Same.
3779 (upper_bound): Same.
3780 (contains_p): Same.
3781 (normalize_addresses): Same.
3782 (normalize_symbolics): Same.
3783 * value-range.h (normalize_symbolics): Same.
3784 (normalize_addresses): Same.
3785
3786 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3787
3788 PR ipa/91682
3789 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3790 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3791 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3792 (ipa_agg_jump_function): Remove member function equal_to.
3793 (ipa_agg_jump_function_p): Remove typedef.
3794 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3795 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3796 information for aggregate jump function.
3797 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3798 record last definition statement.
3799 (load_from_unmodified_param_or_agg): New function.
3800 (ipa_known_agg_contents_list): Add new field type and value, remove
3801 field constant.
3802 (build_agg_jump_func_from_list): Rename parameter const_count to
3803 value_count, build aggregate jump function from ipa_load_agg_data.
3804 (analyze_agg_content_value): New function.
3805 (extract_mem_content): Analyze memory store assignment to prepare
3806 information for aggregate jump function generation.
3807 (determine_known_aggregate_parts): Add new parameter fbi, remove
3808 parameter aa_walk_budeget_p.
3809 (update_jump_functions_after_inlining): Update aggregate jump function.
3810 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3811 (try_make_edge_direct_simple_call): Add new parameter new_root.
3812 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3813 new_root_info.
3814 (update_indirect_edges_after_inlining): Pass new argument to
3815 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3816 (ipa_write_jump_function): Write aggregate jump function to file.
3817 (ipa_read_jump_function): Read aggregate jump function from file.
3818 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3819 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3820 (ipa_agg_value_from_node): Likewise.
3821 (ipa_agg_value_set_from_jfunc): Likewise.
3822 (propagate_vals_across_arith_jfunc): Likewise.
3823 (propagate_aggregate_lattice): Likewise.
3824 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3825 (propagate_vals_across_pass_through): Call
3826 propagate_vals_across_arith_jfunc.
3827 (get_clone_agg_value): Move forward.
3828 (propagate_aggs_across_jump_function): Handle value propagation for
3829 aggregate jump function.
3830 (agg_jmp_p_vec_for_t_vec): Remove.
3831 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3832 with vec<ipa_agg_value>.
3833 (copy_plats_to_inter, intersect_with_plats): Likewise.
3834 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3835 (intersect_aggregate_with_edge): Likewise.
3836 (find_aggregate_values_for_callers_subset): Likewise.
3837 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3838 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3839 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3840 (gather_context_independent_values): Likewise.
3841 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3842 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3843 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3844 (evaluate_properties_for_edge): Likewise.
3845 (estimate_edge_devirt_benefit): Likewise.
3846 (estimate_edge_size_and_time): Likewise.
3847 (estimate_calls_size_and_time): Likewise.
3848 (ipa_call_context::ipa_call_context): Likewise.
3849 (estimate_ipcp_clone_size_and_time): Likewise.
3850 * ipa-fnsummary.h (ipa_call_context): Replace
3851 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3852 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3853 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3854 (do_estimate_edge_size): Likewise.
3855 (do_estimate_edge_hints): Likewise.
3856
3857 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3858
3859 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3860 binary operations.
3861
3862 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3863
3864 * ipa-profile.c (check_argument_count): Check properly that e_info
3865 is non-NULL; do not check descriptors.
3866
3867 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3868
3869 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3870 check for ipa profiles.
3871
3872 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3873
3874 PR c++/92421
3875 * ipa-prop.c (update_indirect_edges_after_inlining):
3876 Mark parameter as used.
3877 * ipa-inline.c (recursive_inlining): Reset node cache
3878 after inlining.
3879 (inline_small_functions): Remove checking ifdef.
3880 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3881 cache consistency.
3882
3883 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3884
3885 PR ipa/92498
3886 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3887 is NULL.
3888 (ipa_profile): Fix reversed test.
3889
3890 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3891
3892 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3893 (propagate_constants_topo): Fix typo.
3894
3895 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3896
3897 * Makefile.in (OBJS): Add value-range.o.
3898 (GTFILES): Add value-range.h.
3899 * gengtype.c (open_base_files): Add value-range.h to list of
3900 header files.
3901 * tree-vrp.c: Move the following value_range related functions:
3902 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3903 constant_p, set_undefined, set_varying, may_contain_p,
3904 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3905 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3906 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3907 value_inside_range, ranges_from_anti_range, union_ranges,
3908 intersect_ranges, intersect_helper, union_helper, union_,
3909 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3910 upper_bound, contains_p, invert, intersect...
3911 * value-range.cc: ...to here.
3912 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3913 associated inline methods from here...
3914 * value-range.h: ...to here.
3915
3916 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3917
3918 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3919 instead of asserting its value.
3920
3921 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3922
3923 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3924 constructors and set methods so value_range_kind is the last
3925 argument and defaults to VR_RANGE.
3926 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3927 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3928 * ipa-prop.c (ipa_get_value_range): Same.
3929 (ipa_compute_jump_functions_for_edge): Same.
3930 * range-op.cc (value_range_from_overflowed_bounds): Same.
3931 (operator_cast::op1_range): Same.
3932 (range_tests): Same.
3933 * range.cc (range_nonzero): Same.
3934 * tree-ssanames.c (get_range_info): Same.
3935 * tree-vrp.c (value_range_equiv::set): Same.
3936 (value_range::value_range): Same.
3937 (value_range_equiv::value_range_equiv): Same.
3938 (value_range_equiv::update): Same.
3939 (value_range_equiv::deep_copy): Same.
3940 (value_range_equiv::move): Same.
3941 (value_range_equiv::set_undefined): Same.
3942 (value_range::set): Same.
3943 (value_range::set_nonzero): Same.
3944 (ranges_from_anti_range): Same.
3945 (extract_range_from_plus_minus_expr): Same.
3946 (value_range::intersect_helper): Same.
3947 (value_range_equiv::intersect): Same.
3948 (value_range::union_helper): Same.
3949 (value_range_equiv::union_): Same.
3950 (value_range::normalize_symbolics): Same.
3951 (value_range::invert): Same.
3952 (determine_value_range_1): Same.
3953 * tree-vrp.h (class value_range): Same.
3954 (class value_range_equiv): Same.
3955 * vr-values.c (set_value_range_to_nonnegative): Same.
3956 (set_value_range_to_truthvalue): Same.
3957 (vr_values::update_value_range): Same.
3958 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3959 (vr_values::extract_range_from_binary_expr): Same.
3960 (vr_values::extract_range_from_comparison): Same.
3961 (vr_values::extract_range_basic): Same.
3962 (vr_values::adjust_range_with_scev): Same.
3963 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3964 (vr_values::extract_range_from_phi_node): Same.
3965
3966 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3967
3968 * tree-dump.c (dequeue_and_dump): Print first tree operand
3969 for VIEW_CONVERT_EXPR.
3970
3971 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3972
3973 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3974 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3975 * real.c (get_max_float): Add norm_max argument.
3976 * real.h (get_max_float): Update prototype.
3977 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3978 get_max_float.
3979
3980 2019-11-13 Martin Liska <mliska@suse.cz>
3981
3982 * dbgcnt.c (test_sorted_dbg_counters): New.
3983 (dbgcnt_c_tests): Likewise.
3984 * selftest-run-tests.c (selftest::run_tests): Likewise.
3985 * selftest.h (dbgcnt_c_tests): Likewise.
3986
3987 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3988 Martin Jambor <mjambor@suse.cz>
3989
3990 PR ipa/92454
3991 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3992 (identify_dead_nodes): Likewise.
3993
3994 2019-11-13 Martin Liska <mliska@suse.cz>
3995
3996 * ipa-icf.c (sem_function::equals_private): Do not overuse
3997 push/pop_cfun functions.
3998
3999 2019-11-13 Martin Liska <mliska@suse.cz>
4000
4001 * common.opt: Document change of -fdbg-cnt option.
4002 * dbgcnt.c (DEBUG_COUNTER): Remove.
4003 (dbg_cnt_is_enabled): Remove.
4004 (dbg_cnt): Work with new intervals.
4005 (dbg_cnt_set_limit_by_index): Set to new
4006 list of intervals.
4007 (dbg_cnt_set_limit_by_name): Likewise.
4008 (dbg_cnt_process_single_pair): Process new format.
4009 (dbg_cnt_process_opt): Likewise.
4010 (dbg_cnt_list_all_counters): Likewise.
4011 * doc/invoke.texi: Document change of -fdbg-cnt option.
4012 (cmp_tuples): New.
4013
4014 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4015
4016 * ipa-inline.c (ipa_inline): Check that function is defined before
4017 flattening.
4018
4019 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4020 Julian Brown <julian@codesourcery.com>
4021
4022 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
4023 flag_worker_partitioning is not set.
4024 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
4025 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
4026
4027 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4028
4029 * config/gcn/gcn-run.c (heap_region): New global variable.
4030 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
4031 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
4032 (get_kernarg_region): Move contents to ....
4033 (get_memory_region): .... here.
4034 (get_heap_region): New function.
4035 (init_device): Initialize the heap_region.
4036 (device_malloc): Add region parameter.
4037 (struct kernargs): Move heap ....
4038 (heap): ... to global scope.
4039 (main): Allocate heap separate to kernargs.
4040
4041 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4042
4043 * ipa-prop.c (ipa_print_node_jump_functions,
4044 ipa_print_node_params): Print info about missing summaries.
4045
4046 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4047
4048 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
4049 the cost of generating loop masks.
4050
4051 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4052
4053 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
4054 New function.
4055 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
4056 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4057 (vect_transform_loop): Likewise.
4058 (vect_analyze_loop_costing): Don't take the cost of versioning
4059 into account for the static profitability threshold if it turns
4060 out that no versioning is needed.
4061
4062 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4063
4064 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
4065 and target_option_default_node to get -fprofile-generate ctors working
4066 right with LTO.
4067
4068 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4069
4070 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
4071 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
4072 (vectorizable_assignment): Don't add a cost for nop conversions.
4073 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
4074 Likewise.
4075 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
4076
4077 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4078
4079 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
4080 number of ncopies as an additional argument.
4081 (vectorizable_conversion): Update call accordingly. Use "modifier"
4082 to check whether a conversion is between vectors with the same
4083 numbers of units.
4084
4085 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4086
4087 * config/aarch64/aarch64-sve-builtins-functions.h
4088 (unary_count::expand): Use aarch64_sve_int_mode instead of
4089 mode_for_int_vector.
4090
4091 2019-11-13 Martin Liska <mliska@suse.cz>
4092
4093 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
4094
4095 2019-11-13 Martin Liska <mliska@suse.cz>
4096
4097 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4098 Remove call to finalize_options_struct.
4099
4100 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
4101
4102 PR target/92055
4103 * config/avr/t-avr (avr-mcus): Do not depend on
4104 $(srcdir)/config/avr/t-multilib.
4105
4106 2019-11-13 Richard Biener <rguenther@suse.de>
4107
4108 PR tree-optimization/92473
4109 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
4110 direct optab reduction in the correct type.
4111
4112 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4113
4114 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
4115 hexadecimal literal.
4116
4117 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4118
4119 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
4120 UNORDERED if !HONOR_NANS (DFmode).
4121 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
4122 if !HONOR_NANS (<MODE>mode).
4123
4124 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4125
4126 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
4127 (ipcp_verify_propagated_values): Likewise.
4128 (propagate_constants_across_call): Likewise.
4129 (propagate_constants_topo): Likewise.
4130 (ipcp_propagate_stage): Likewise.
4131
4132 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4133
4134 PR ipa/92471
4135 * ipa-profile.c (check_argument_count): Break out from ...;
4136 watch for missing summaries.
4137 (ipa_profile): Here.
4138
4139 2019-11-12 Martin Sebor <msebor@redhat.com>
4140
4141 PR tree-optimization/92412
4142 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
4143 extern variables.
4144
4145 2019-11-12 Martin Sebor <msebor@redhat.com>
4146
4147 PR middle-end/83688
4148 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
4149 (directive::argno): New member.
4150 (format_result::aliases, format_result::alias_count): New data members.
4151 (format_result::append_alias): New member function.
4152 (fmtresult::dst_offset): New data member.
4153 (pass_sprintf_length::call_info::dst_origin): New data member.
4154 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
4155 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
4156 (get_origin_and_offset): Same.
4157 (format_string): Call it.
4158 (format_directive): Call append_alias and set directive argument
4159 number.
4160 (maybe_warn_overlap): New function.
4161 (pass_sprintf_length::compute_format_length): Call it.
4162 (pass_sprintf_length::handle_gimple_call): Initialize new members.
4163 * tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
4164
4165 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
4166
4167 PR rtl-optimization/92430
4168 * cfgcleanup.c (pass_jump_after_combine::execute): Free
4169 dominance info at the beginning.
4170
4171 2019-11-12 Richard Biener <rguenther@suse.de>
4172
4173 PR tree-optimization/92460
4174 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
4175 expression before gimplifying.
4176
4177 2019-11-12 Richard Biener <rguenther@suse.de>
4178
4179 PR tree-optimization/92461
4180 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
4181 stmt after propagation.
4182
4183 2019-11-12 Martin Liska <mliska@suse.cz>
4184
4185 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
4186 Use SET_OPTION_IF_UNSET.
4187 (ix86_option_override_internal): Likewise.
4188 * opts.c (default_options_optimization): Likewise.
4189 (finish_options): Likewise.
4190 (enable_fdo_optimizations): Likewise.
4191 (common_handle_option): Likewise.
4192
4193 2019-11-12 Martin Liska <mliska@suse.cz>
4194
4195 * common/common-target.def: Remove option_validate_param and
4196 option_default_params.
4197 * common/common-targhooks.c (default_option_validate_param):
4198 Remove.
4199 * common/common-targhooks.h (default_option_validate_param):
4200 Remove.
4201 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
4202 Remove usage of this.
4203 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
4204 (aarch64_option_validate_param): Likewise.
4205 (aarch64_option_default_params): Likewise
4206 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
4207 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4208 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4209 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4210 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4211 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4212 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4213 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4214 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4215 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4216 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
4217 guard_size here.
4218 * doc/tm.texi: Remove option_default_params and option_validate_param.
4219 * doc/tm.texi.in: Likewise.
4220
4221 2019-11-12 Martin Liska <mliska@suse.cz>
4222
4223 * common/common-target.def:
4224 Do not mention set_default_param_value
4225 and set_param_value.
4226 * doc/tm.texi: Likewise.
4227
4228 2019-11-12 Martin Liska <mliska@suse.cz>
4229
4230 * common.opt: Remove param_values.
4231 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
4232 Remove finalize_options_struct.
4233 * gcc.c (driver::decode_argv): Do not call global_init_params
4234 and finish_params.
4235 (driver::finalize): Do not call params_c_finalize
4236 and finalize_options_struct.
4237 * opt-suggestions.c (option_proposer::get_completions): Remove
4238 special casing of params.
4239 (option_proposer::find_param_completions): Remove.
4240 (test_completion_partial_match): Update expected output.
4241 * opt-suggestions.h: Remove find_param_completions.
4242 * opts-common.c (add_misspelling_candidates): Add
4243 --param with a space.
4244 * opts.c (handle_param): Remove.
4245 (init_options_struct):. Remove init_options_struct and
4246 similar calls.
4247 (finalize_options_struct): Remove.
4248 (common_handle_option): Use SET_OPTION_IF_UNSET.
4249 * opts.h (finalize_options_struct): Remove.
4250 * toplev.c (general_init): Do not call global_init_params.
4251 (toplev::finalize): Do not call params_c_finalize and
4252 finalize_options_struct.
4253
4254 2019-11-12 Martin Liska <mliska@suse.cz>
4255
4256 * Makefile.in: Remove PARAMS_H and params.list
4257 and params.options.
4258 * params-enum.h: Remove.
4259 * params-list.h: Remove.
4260 * params-options.h: Remove.
4261 * params.c: Remove.
4262 * params.def: Remove.
4263 * params.h: Remove.
4264 * asan.c: Do not include params.h.
4265 * auto-profile.c: Likewise.
4266 * bb-reorder.c: Likewise.
4267 * builtins.c: Likewise.
4268 * cfgcleanup.c: Likewise.
4269 * cfgexpand.c: Likewise.
4270 * cfgloopanal.c: Likewise.
4271 * cgraph.c: Likewise.
4272 * combine.c: Likewise.
4273 * common/config/aarch64/aarch64-common.c: Likewise.
4274 * common/config/gcn/gcn-common.c: Likewise.
4275 * common/config/ia64/ia64-common.c: Likewise.
4276 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
4277 * common/config/rs6000/rs6000-common.c: Likewise.
4278 * common/config/sh/sh-common.c: Likewise.
4279 * config/aarch64/aarch64.c: Likewise.
4280 * config/alpha/alpha.c: Likewise.
4281 * config/arm/arm.c: Likewise.
4282 * config/avr/avr.c: Likewise.
4283 * config/csky/csky.c: Likewise.
4284 * config/i386/i386-builtins.c: Likewise.
4285 * config/i386/i386-expand.c: Likewise.
4286 * config/i386/i386-features.c: Likewise.
4287 * config/i386/i386-options.c: Likewise.
4288 * config/i386/i386.c: Likewise.
4289 * config/ia64/ia64.c: Likewise.
4290 * config/rs6000/rs6000-logue.c: Likewise.
4291 * config/rs6000/rs6000.c: Likewise.
4292 * config/s390/s390.c: Likewise.
4293 * config/sparc/sparc.c: Likewise.
4294 * config/visium/visium.c: Likewise.
4295 * coverage.c: Likewise.
4296 * cprop.c: Likewise.
4297 * cse.c: Likewise.
4298 * cselib.c: Likewise.
4299 * dse.c: Likewise.
4300 * emit-rtl.c: Likewise.
4301 * explow.c: Likewise.
4302 * final.c: Likewise.
4303 * fold-const.c: Likewise.
4304 * gcc.c: Likewise.
4305 * gcse.c: Likewise.
4306 * ggc-common.c: Likewise.
4307 * ggc-page.c: Likewise.
4308 * gimple-loop-interchange.cc: Likewise.
4309 * gimple-loop-jam.c: Likewise.
4310 * gimple-loop-versioning.cc: Likewise.
4311 * gimple-ssa-split-paths.c: Likewise.
4312 * gimple-ssa-sprintf.c: Likewise.
4313 * gimple-ssa-store-merging.c: Likewise.
4314 * gimple-ssa-strength-reduction.c: Likewise.
4315 * gimple-ssa-warn-alloca.c: Likewise.
4316 * gimple-ssa-warn-restrict.c: Likewise.
4317 * graphite-isl-ast-to-gimple.c: Likewise.
4318 * graphite-optimize-isl.c: Likewise.
4319 * graphite-scop-detection.c: Likewise.
4320 * graphite-sese-to-poly.c: Likewise.
4321 * graphite.c: Likewise.
4322 * haifa-sched.c: Likewise.
4323 * hsa-gen.c: Likewise.
4324 * ifcvt.c: Likewise.
4325 * ipa-cp.c: Likewise.
4326 * ipa-fnsummary.c: Likewise.
4327 * ipa-inline-analysis.c: Likewise.
4328 * ipa-inline.c: Likewise.
4329 * ipa-polymorphic-call.c: Likewise.
4330 * ipa-profile.c: Likewise.
4331 * ipa-prop.c: Likewise.
4332 * ipa-split.c: Likewise.
4333 * ipa-sra.c: Likewise.
4334 * ira-build.c: Likewise.
4335 * ira-conflicts.c: Likewise.
4336 * loop-doloop.c: Likewise.
4337 * loop-invariant.c: Likewise.
4338 * loop-unroll.c: Likewise.
4339 * lra-assigns.c: Likewise.
4340 * lra-constraints.c: Likewise.
4341 * modulo-sched.c: Likewise.
4342 * opt-suggestions.c: Likewise.
4343 * opts.c: Likewise.
4344 * postreload-gcse.c: Likewise.
4345 * predict.c: Likewise.
4346 * reload.c: Likewise.
4347 * reorg.c: Likewise.
4348 * resource.c: Likewise.
4349 * sanopt.c: Likewise.
4350 * sched-deps.c: Likewise.
4351 * sched-ebb.c: Likewise.
4352 * sched-rgn.c: Likewise.
4353 * sel-sched-ir.c: Likewise.
4354 * sel-sched.c: Likewise.
4355 * shrink-wrap.c: Likewise.
4356 * stmt.c: Likewise.
4357 * targhooks.c: Likewise.
4358 * toplev.c: Likewise.
4359 * tracer.c: Likewise.
4360 * trans-mem.c: Likewise.
4361 * tree-chrec.c: Likewise.
4362 * tree-data-ref.c: Likewise.
4363 * tree-if-conv.c: Likewise.
4364 * tree-inline.c: Likewise.
4365 * tree-loop-distribution.c: Likewise.
4366 * tree-parloops.c: Likewise.
4367 * tree-predcom.c: Likewise.
4368 * tree-profile.c: Likewise.
4369 * tree-scalar-evolution.c: Likewise.
4370 * tree-sra.c: Likewise.
4371 * tree-ssa-ccp.c: Likewise.
4372 * tree-ssa-dom.c: Likewise.
4373 * tree-ssa-dse.c: Likewise.
4374 * tree-ssa-ifcombine.c: Likewise.
4375 * tree-ssa-loop-ch.c: Likewise.
4376 * tree-ssa-loop-im.c: Likewise.
4377 * tree-ssa-loop-ivcanon.c: Likewise.
4378 * tree-ssa-loop-ivopts.c: Likewise.
4379 * tree-ssa-loop-manip.c: Likewise.
4380 * tree-ssa-loop-niter.c: Likewise.
4381 * tree-ssa-loop-prefetch.c: Likewise.
4382 * tree-ssa-loop-unswitch.c: Likewise.
4383 * tree-ssa-math-opts.c: Likewise.
4384 * tree-ssa-phiopt.c: Likewise.
4385 * tree-ssa-pre.c: Likewise.
4386 * tree-ssa-reassoc.c: Likewise.
4387 * tree-ssa-sccvn.c: Likewise.
4388 * tree-ssa-scopedtables.c: Likewise.
4389 * tree-ssa-sink.c: Likewise.
4390 * tree-ssa-strlen.c: Likewise.
4391 * tree-ssa-structalias.c: Likewise.
4392 * tree-ssa-tail-merge.c: Likewise.
4393 * tree-ssa-threadbackward.c: Likewise.
4394 * tree-ssa-threadedge.c: Likewise.
4395 * tree-ssa-uninit.c: Likewise.
4396 * tree-switch-conversion.c: Likewise.
4397 * tree-vect-data-refs.c: Likewise.
4398 * tree-vect-loop.c: Likewise.
4399 * tree-vect-slp.c: Likewise.
4400 * tree-vrp.c: Likewise.
4401 * tree.c: Likewise.
4402 * value-prof.c: Likewise.
4403 * var-tracking.c: Likewise.
4404
4405 2019-11-12 Martin Liska <mliska@suse.cz>
4406
4407 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
4408 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
4409 macro.
4410 (asan_sanitize_allocas_p): Likewise.
4411 (asan_emit_stack_protection): Likewise.
4412 (asan_protect_global): Likewise.
4413 (instrument_derefs): Likewise.
4414 (instrument_builtin_call): Likewise.
4415 (asan_expand_mark_ifn): Likewise.
4416 * auto-profile.c (auto_profile): Likewise.
4417 * bb-reorder.c (copy_bb_p): Likewise.
4418 (duplicate_computed_gotos): Likewise.
4419 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
4420 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
4421 (try_crossjump_bb): Likewise.
4422 * cfgexpand.c (defer_stack_allocation): Likewise.
4423 (stack_protect_classify_type): Likewise.
4424 (pass_expand::execute): Likewise.
4425 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4426 (estimate_reg_pressure_cost): Likewise.
4427 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
4428 * combine.c (combine_instructions): Likewise.
4429 (record_value_for_reg): Likewise.
4430 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
4431 (aarch64_option_default_params): Likewise.
4432 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4433 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4434 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4435 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4436 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
4437 (aarch64_allocate_and_probe_stack_space): Likewise.
4438 (aarch64_expand_epilogue): Likewise.
4439 (aarch64_override_options_internal): Likewise.
4440 * config/alpha/alpha.c (alpha_option_override): Likewise.
4441 * config/arm/arm.c (arm_option_override): Likewise.
4442 (arm_valid_target_attribute_p): Likewise.
4443 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4444 * config/i386/i386.c (get_probe_interval): Likewise.
4445 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4446 (ix86_max_noce_ifcvt_seq_cost): Likewise.
4447 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4448 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4449 (get_stack_clash_protection_guard_size): Likewise.
4450 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4451 * config/s390/s390.c (allocate_stack_space): Likewise.
4452 (s390_emit_prologue): Likewise.
4453 (s390_option_override_internal): Likewise.
4454 * config/sparc/sparc.c (sparc_option_override): Likewise.
4455 * config/visium/visium.c (visium_option_override): Likewise.
4456 * coverage.c (get_coverage_counts): Likewise.
4457 (coverage_compute_profile_id): Likewise.
4458 (coverage_begin_function): Likewise.
4459 (coverage_end_function): Likewise.
4460 * cse.c (cse_find_path): Likewise.
4461 (cse_extended_basic_block): Likewise.
4462 (cse_main): Likewise.
4463 * cselib.c (cselib_invalidate_mem): Likewise.
4464 * dse.c (dse_step1): Likewise.
4465 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4466 (get_max_insn_count): Likewise.
4467 (make_debug_insn_raw): Likewise.
4468 (init_emit): Likewise.
4469 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4470 * final.c (compute_alignments): Likewise.
4471 * fold-const.c (fold_range_test): Likewise.
4472 (fold_truth_andor): Likewise.
4473 (tree_single_nonnegative_warnv_p): Likewise.
4474 (integer_valued_real_single_p): Likewise.
4475 * gcse.c (want_to_gcse_p): Likewise.
4476 (prune_insertions_deletions): Likewise.
4477 (hoist_code): Likewise.
4478 (gcse_or_cprop_is_too_expensive): Likewise.
4479 * ggc-common.c: Likewise.
4480 * ggc-page.c (ggc_collect): Likewise.
4481 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4482 (MAX_DATAREFS): Likewise.
4483 (OUTER_STRIDE_RATIO): Likewise.
4484 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4485 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4486 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4487 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4488 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4489 (imm_store_chain_info::output_merged_store): Likewise.
4490 (pass_store_merging::process_store): Likewise.
4491 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4492 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4493 (scop_to_isl_ast): Likewise.
4494 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4495 (optimize_isl): Likewise.
4496 * graphite-scop-detection.c (build_scops): Likewise.
4497 * haifa-sched.c (set_modulo_params): Likewise.
4498 (rank_for_schedule): Likewise.
4499 (model_add_to_worklist): Likewise.
4500 (model_promote_insn): Likewise.
4501 (model_choose_insn): Likewise.
4502 (queue_to_ready): Likewise.
4503 (autopref_multipass_dfa_lookahead_guard): Likewise.
4504 (schedule_block): Likewise.
4505 (sched_init): Likewise.
4506 * hsa-gen.c (init_prologue): Likewise.
4507 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4508 (cond_move_process_if_block): Likewise.
4509 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4510 (merge_agg_lats_step): Likewise.
4511 (devirtualization_time_bonus): Likewise.
4512 (hint_time_bonus): Likewise.
4513 (incorporate_penalties): Likewise.
4514 (good_cloning_opportunity_p): Likewise.
4515 (ipcp_propagate_stage): Likewise.
4516 * ipa-fnsummary.c (decompose_param_expr): Likewise.
4517 (set_switch_stmt_execution_predicate): Likewise.
4518 (analyze_function_body): Likewise.
4519 (compute_fn_summary): Likewise.
4520 * ipa-inline-analysis.c (estimate_growth): Likewise.
4521 * ipa-inline.c (caller_growth_limits): Likewise.
4522 (inline_insns_single): Likewise.
4523 (inline_insns_auto): Likewise.
4524 (can_inline_edge_by_limits_p): Likewise.
4525 (want_early_inline_function_p): Likewise.
4526 (big_speedup_p): Likewise.
4527 (want_inline_small_function_p): Likewise.
4528 (want_inline_self_recursive_call_p): Likewise.
4529 (edge_badness): Likewise.
4530 (recursive_inlining): Likewise.
4531 (compute_max_insns): Likewise.
4532 (early_inliner): Likewise.
4533 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4534 * ipa-profile.c (ipa_profile): Likewise.
4535 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4536 (ipa_analyze_node): Likewise.
4537 (ipcp_transform_function): Likewise.
4538 * ipa-split.c (consider_split): Likewise.
4539 * ipa-sra.c (allocate_access): Likewise.
4540 (process_scan_results): Likewise.
4541 (ipa_sra_summarize_function): Likewise.
4542 (pull_accesses_from_callee): Likewise.
4543 * ira-build.c (loop_compare_func): Likewise.
4544 (mark_loops_for_removal): Likewise.
4545 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4546 * loop-doloop.c (doloop_optimize): Likewise.
4547 * loop-invariant.c (gain_for_invariant): Likewise.
4548 (move_loop_invariants): Likewise.
4549 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4550 (decide_unroll_runtime_iterations): Likewise.
4551 (decide_unroll_stupid): Likewise.
4552 (expand_var_during_unrolling): Likewise.
4553 * lra-assigns.c (spill_for): Likewise.
4554 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4555 * modulo-sched.c (sms_schedule): Likewise.
4556 (DFA_HISTORY): Likewise.
4557 * opts.c (default_options_optimization): Likewise.
4558 (finish_options): Likewise.
4559 (common_handle_option): Likewise.
4560 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4561 (if): Likewise.
4562 * predict.c (get_hot_bb_threshold): Likewise.
4563 (maybe_hot_count_p): Likewise.
4564 (probably_never_executed): Likewise.
4565 (predictable_edge_p): Likewise.
4566 (predict_loops): Likewise.
4567 (expr_expected_value_1): Likewise.
4568 (tree_predict_by_opcode): Likewise.
4569 (handle_missing_profiles): Likewise.
4570 * reload.c (find_equiv_reg): Likewise.
4571 * reorg.c (redundant_insn): Likewise.
4572 * resource.c (mark_target_live_regs): Likewise.
4573 (incr_ticks_for_insn): Likewise.
4574 * sanopt.c (pass_sanopt::execute): Likewise.
4575 * sched-deps.c (sched_analyze_1): Likewise.
4576 (sched_analyze_2): Likewise.
4577 (sched_analyze_insn): Likewise.
4578 (deps_analyze_insn): Likewise.
4579 * sched-ebb.c (schedule_ebbs): Likewise.
4580 * sched-rgn.c (find_single_block_region): Likewise.
4581 (too_large): Likewise.
4582 (haifa_find_rgns): Likewise.
4583 (extend_rgns): Likewise.
4584 (new_ready): Likewise.
4585 (schedule_region): Likewise.
4586 (sched_rgn_init): Likewise.
4587 * sel-sched-ir.c (make_region_from_loop): Likewise.
4588 * sel-sched-ir.h (MAX_WS): Likewise.
4589 * sel-sched.c (process_pipelined_exprs): Likewise.
4590 (sel_setup_region_sched_flags): Likewise.
4591 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4592 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4593 * toplev.c (print_version): Likewise.
4594 (process_options): Likewise.
4595 * tracer.c (tail_duplicate): Likewise.
4596 * trans-mem.c (tm_log_add): Likewise.
4597 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4598 * tree-data-ref.c (split_constant_offset): Likewise.
4599 (compute_all_dependences): Likewise.
4600 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4601 * tree-inline.c (remap_gimple_stmt): Likewise.
4602 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4603 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4604 (create_parallel_loop): Likewise.
4605 * tree-predcom.c (determine_unroll_factor): Likewise.
4606 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4607 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4608 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4609 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4610 (dse_optimize_redundant_stores): Likewise.
4611 (dse_classify_store): Likewise.
4612 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4613 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4614 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4615 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4616 (try_peel_loop): Likewise.
4617 (tree_unroll_loops_completely): Likewise.
4618 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4619 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4620 (MAX_CONSIDERED_GROUPS): Likewise.
4621 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4622 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4623 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4624 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4625 (L1_CACHE_SIZE_BYTES): Likewise.
4626 (L2_CACHE_SIZE_BYTES): Likewise.
4627 (should_issue_prefetch_p): Likewise.
4628 (schedule_prefetches): Likewise.
4629 (determine_unroll_factor): Likewise.
4630 (volume_of_references): Likewise.
4631 (add_subscript_strides): Likewise.
4632 (self_reuse_distance): Likewise.
4633 (mem_ref_count_reasonable_p): Likewise.
4634 (insn_to_prefetch_ratio_too_small_p): Likewise.
4635 (loop_prefetch_arrays): Likewise.
4636 (tree_ssa_prefetch_arrays): Likewise.
4637 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4638 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4639 (convert_mult_to_fma): Likewise.
4640 (math_opts_dom_walker::after_dom_children): Likewise.
4641 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4642 (hoist_adjacent_loads): Likewise.
4643 (gate_hoist_loads): Likewise.
4644 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4645 (compute_partial_antic_aux): Likewise.
4646 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4647 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4648 (vn_reference_lookup): Likewise.
4649 (do_rpo_vn): Likewise.
4650 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4651 * tree-ssa-sink.c (select_best_block): Likewise.
4652 * tree-ssa-strlen.c (new_stridx): Likewise.
4653 (new_addr_stridx): Likewise.
4654 (get_range_strlen_dynamic): Likewise.
4655 (class ssa_name_limit_t): Likewise.
4656 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4657 (create_variable_info_for_1): Likewise.
4658 (init_alias_vars): Likewise.
4659 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4660 (tail_merge_optimize): Likewise.
4661 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4662 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4663 (thread_jumps::find_jump_threads_backwards): Likewise.
4664 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4665 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4666 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4667 (jump_table_cluster::can_be_handled): Likewise.
4668 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4669 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4670 (param_switch_conversion_branch_ratio): Likewise.
4671 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4672 (vect_enhance_data_refs_alignment): Likewise.
4673 (vect_prune_runtime_alias_test_list): Likewise.
4674 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4675 (vect_get_datarefs_in_loop): Likewise.
4676 (vect_analyze_loop): Likewise.
4677 * tree-vect-slp.c (vect_slp_bb): Likewise.
4678 * tree-vectorizer.h: Likewise.
4679 * tree-vrp.c (find_switch_asserts): Likewise.
4680 (vrp_prop::check_mem_ref): Likewise.
4681 * tree.c (wide_int_to_tree_1): Likewise.
4682 (cache_integer_cst): Likewise.
4683 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4684 (reverse_op): Likewise.
4685 (vt_find_locations): Likewise.
4686
4687 2019-11-12 Martin Liska <mliska@suse.cz>
4688
4689 * Makefile.in: Include params.opt.
4690 * flag-types.h (enum parloops_schedule_type): Add
4691 parloops_schedule_type used in params.opt.
4692 * params.opt: New file.
4693
4694 2019-11-12 Martin Liska <mliska@suse.cz>
4695
4696 * common.opt: Remove --param and --param= options.
4697 * opt-functions.awk: Mark CL_PARAMS for options
4698 that have Param keyword.
4699 * opts-common.c (decode_cmdline_options_to_array):
4700 Replace --param key=value with --param=key=value.
4701 * opts.c (print_filtered_help): Remove special
4702 printing of params.
4703 (print_specific_help): Update title for params.
4704 (common_handle_option): Do not handle OPT__param.
4705 opts.h (SET_OPTION_IF_UNSET): New macro.
4706 * doc/options.texi: Document Param keyword.
4707
4708 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4709 Frederik Harwath <frederik@codesourcery.com>
4710 Thomas Schwinge <thomas@codesourcery.com>
4711
4712 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4713 enumeration constant.
4714 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4715 (is_gimple_omp_offloaded): Likewise.
4716 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4717 constant. Adjust the value of ORT_NONE accordingly.
4718 (is_gimple_stmt): Handle OACC_SERIAL.
4719 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4720 (gomp_needs_data_present): Likewise.
4721 (gimplify_adjust_omp_clauses): Likewise.
4722 (gimplify_omp_workshare): Handle OACC_SERIAL.
4723 (gimplify_expr): Likewise.
4724 * omp-expand.c (expand_omp_target):
4725 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4726 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4727 * omp-low.c (is_oacc_parallel): Rename function to...
4728 (is_oacc_parallel_or_serial): ... this.
4729 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4730 (scan_sharing_clauses): Adjust accordingly.
4731 (scan_omp_for): Likewise.
4732 (lower_oacc_head_mark): Likewise.
4733 (convert_from_firstprivate_int): Likewise.
4734 (lower_omp_target): Likewise.
4735 (check_omp_nesting_restrictions): Handle
4736 GF_OMP_TARGET_KIND_OACC_SERIAL.
4737 (lower_oacc_reductions): Likewise.
4738 (lower_omp_target): Likewise.
4739 * tree.def (OACC_SERIAL): New tree code.
4740 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4741
4742 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4743
4744 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4745
4746 PR target/92449
4747 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4748 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4749
4750 PR tree-optimization/92452
4751 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4752 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4753 MINUS_EXPR on it.
4754
4755 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4756
4757 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4758 safelen with 0.
4759
4760 2019-11-12 Alan Modra <amodra@gmail.com>
4761
4762 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4763 element of unspec vec.
4764 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4765 PC-relative TLS.
4766 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4767 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4768 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4769 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4770
4771 2019-11-12 Alan Modra <amodra@gmail.com>
4772
4773 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4774 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4775 (IS_NOMARK_TLSGETADDR): Likewise.
4776 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4777 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4778 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4779 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4780 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4781 (rs6000_indirect_call_template_1): Likewise.
4782 (rs6000_pltseq_template): Likewise.
4783 (rs6000_opt_vars): Remove "tls-markers" entry.
4784 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4785 with TARGET_ELF.
4786 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4787 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4788 (pltseq_plt_pcrel<mode>): Likewise.
4789 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4790 (call_value_local64): Likewise.
4791 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4792 output and length attribute sub-expression.
4793 (call_value_nonlocal_sysv<mode>),
4794 (call_value_nonlocal_sysv_secure<mode>),
4795 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4796 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4797 (call_value_indirect_pcrel<mode>): Likewise.
4798 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4799 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4800 * configure: Regenerate.
4801 * config.in: Regenerate.
4802
4803 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4804
4805 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4806 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4807 address being a prefixed load/store.
4808 (stack_protect_testdi): Deal with either address being a prefixed
4809 load.
4810
4811 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4812
4813 PR bootstrap/92433
4814 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4815 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4816 std::swap.
4817
4818 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4819
4820 PR tree-optimization/92420
4821 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4822 up file.
4823 (get_group_load_store_type): Use it for reversed SLP accesses.
4824
4825 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4826
4827 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4828 summary.
4829 (ipcp_transformation_t::duplicate): Break out from ...
4830 (ipa_node_params_t::duplicate): ... here; add copying of agg
4831 replacements.
4832 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4833 (ipcp_transformation_t): Add duplicate.
4834
4835 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4836
4837 PR fortran/91828
4838 * doc/install.texi: Document that the minimum MPFR version is
4839 3.1.0.
4840
4841 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4842
4843 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4844 use new register constraint letters.
4845
4846 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4847
4848 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4849 as well, if interesting recover the symbol and re-legitimize the
4850 pic address.
4851
4852 2019-11-11 Martin Liska <mliska@suse.cz>
4853
4854 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4855 alphabetically.
4856
4857 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4858
4859 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4860 account when checking if there are enough iterations to vectorize
4861 epilogue.
4862
4863 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4864 Kwok Cheung Yeung <kcy@codesourcery.com>
4865
4866 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4867 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4868 (LANG_HOOKS_DECLS): Rename also here.
4869 * langhooks.h (lang_hooks_for_decls): Rename
4870 omp_is_optional_argument to omp_check_optional_argument; take
4871 additional bool argument.
4872 * omp-general.h (omp_check_optional_argument): Likewise.
4873 * omp-general.h (omp_check_optional_argument): Likewise.
4874 * omp-low.c (lower_omp_target): Update calls; handle absent
4875 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4876
4877 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4878
4879 PR target/87833
4880 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4881 -fPIC and -shared the last to create offload image.
4882
4883 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4884
4885 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4886 of 'offset'.
4887
4888 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4889 (config.status): Use/depend on it.
4890 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4891 * configure: Regenerate.
4892
4893 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4894
4895 PR tree-optimization/88760
4896 * config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4897 * common/config/rs6000/rs6000-common.c
4898 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4899 Turn on -funroll-loops and -munroll-only-small-loops.
4900 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4901 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4902 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4903 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4904 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4905 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4906
4907 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4908
4909 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4910 Make scalar_load, vector_load, unaligned_load and
4911 vector_gather_load cost more to conform hardware latency and
4912 insn cost settings.
4913
4914 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4915
4916 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4917 (MACHO_SYMBOL_LINKER_VIS_P): New.
4918
4919 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4920
4921 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4922 registers in eliminable_regset.
4923
4924 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4925
4926 * ipa-inline.c (compute_uninlined_call_time,
4927 compute_inlined_call_time): Take edge frequency as
4928 parameter rather than computing it by itself.
4929 (big_speedup_p, edge_badness): Manually CSE sreal
4930 frequency calculations.
4931
4932 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4933
4934 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4935 case where profiles are same.
4936
4937 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4938
4939 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4940
4941 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4942
4943 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4944 args summaries of inlined edge unless it holds info about
4945 described reference.
4946
4947 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4948
4949 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4950 (*movcc_internal1): Rename to...
4951 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4952
4953 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4954
4955 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4956 (cgraph_node::create_virtual_clone): Copy it.
4957 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4958 summaries.
4959 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4960 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4961 is disabled.
4962 (propagate_constants_across_call): If callee is not analyzed, give up.
4963 (propagate_constants_topo): Lower to bottom latties of all callees of
4964 functions with ipa-cp disabled.
4965 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4966 (cgraph_edge_brings_value_p): Check for availability first.
4967 (create_specialized_node): Set ipcp_clone.
4968 (ipcp_store_bits_results): Check that info is present.
4969 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4970 thunks.
4971 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4972 conservative when callee summary is missing.
4973 (remap_edge_summaries): Lookup call summary only when needed.
4974 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4975 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4976 Use get_create.
4977 (ipa_analyze_node): Use get_create.
4978 (propagate_controlled_uses): Do not propagate when function is not
4979 analyzed.
4980 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4981 (ipa_read_node_info): Use get_create.
4982 * ipa-prop.h (IPA_NODE_REF): Use get.
4983 (IPA_NODE_REF_GET_CREATE): New.
4984
4985 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4986
4987 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4988 on function symbol.
4989
4990 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4991
4992 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4993 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4994 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4995 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4996
4997 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4998
4999 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
5000 capping the growth cumulated.
5001 (offline_size): Break out from ...
5002 (estimate_growth): ... here.
5003 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
5004 parameters.
5005 (growth_likely_positive): Turn to ...
5006 (growth_positive_p): Re-implement.
5007 * ipa-inline.h (growth_likely_positive): Remove.
5008 (growth_positive_p): Declare.
5009 * ipa-inline.c (want_inline_small_function_p): Use
5010 growth_positive_p.
5011 (want_inline_function_to_all_callers_p): Likewise.
5012
5013 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5014
5015 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
5016 calculation of min_size.
5017 (ipa_update_overall_fn_summary): Likewise.
5018
5019 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5020
5021 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
5022 estimate_edge_devirt_benefit when not computing hints;
5023 do not compute time when not asked for.
5024 (estimate_calls_size_and_time): Pass NULL hints and time when
5025 these are not computed; do not evaluate hint predicates when these are
5026 not computed.
5027 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
5028 frequency.
5029
5030 2019-11-09 Jakub Jelinek <jakub@redhat.com>
5031
5032 PR tree-optimization/92401
5033 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
5034 if res_op->code is an expression with code length 1.
5035 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
5036 if res_op->code is an expression with code length 2.
5037 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
5038 if res_op->code is an expression with code length 3.
5039
5040 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
5041
5042 * config/darwin.c (machopic_mcount_stub_name): Validate the
5043 symbol stub name when it is created.
5044 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
5045 stub validation.
5046
5047 2019-11-09 Jakub Jelinek <jakub@redhat.com>
5048
5049 * symtab.c: Fix comment typos.
5050 * cgraphunit.c: Likewise.
5051 * cgraph.h: Likewise.
5052 * cgraphclones.c: Likewise.
5053 * cgraph.c: Likewise.
5054 * varpool.c: Likewise.
5055 * tree-ssa-strlen.c: Likewise.
5056 * ipa-sra.c: Likewise.
5057 (scan_expr_access, check_all_callers_for_issues): Fix typo
5058 in a dump message.
5059
5060 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
5061
5062 * config/darwin-protos.h: Add include quard.
5063
5064 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
5065
5066 * range-op.h (range_operator::fold_range): Return result in a
5067 reference parameter instead of by value.
5068 (range_operator::wi_fold): Same.
5069 * range-op.cc (range_operator::wi_fold): Return result in a reference
5070 parameter instead of by value.
5071 (range_operator::fold_range): Same.
5072 (value_range_from_overflowed_bounds): Same.
5073 (value_range_with_overflow): Same
5074 (create_possibly_reversed_range): Same.
5075 (operator_equal::fold_range): Same.
5076 (operator_not_equal::fold_range): Same.
5077 (operator_lt::fold_range): Same.
5078 (operator_le::fold_range): Same.
5079 (operator_gt::fold_range): Same.
5080 (operator_ge::fold_range): Same.
5081 (operator_plus::wi_fold): Same.
5082 (operator_plus::op1_range): Change call to fold_range.
5083 (operator_plus::op2_range): Change call to fold_range.
5084 (operator_minus::wi_fold): Return result via reference parameter.
5085 (operator_minus::op1_range): Change call to fold_range.
5086 (operator_minus::op2_range): Change call to fold_range.
5087 (operator_min::wi_fold): Return result via reference parameter.
5088 (operator_max::wi_fold): Same.
5089 (cross_product_operator::wi_cross_product): Same.
5090 (operator_mult::wi_fold): Same.
5091 (operator_div::wi_fold): Same.
5092 (operator_div op_floor_div): Fix whitespace.
5093 (operator_exact_divide::op1_range): Change call to fold_range.
5094 (operator_lshift::fold_range): Return result via reference parameter.
5095 (operator_lshift::wi_fold): Same.
5096 (operator_rshift::fold_range): Same.
5097 (operator_rshift::wi_fold): Same.
5098 (operator_cast::fold_range): Same.
5099 (operator_cast::op1_range): Change calls to fold_range.
5100 (operator_logical_and::fold_range): Return result via reference.
5101 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
5102 (operator_bitwise_and::wi_fold): Return result via reference.
5103 (operator_logical_or::fold_range): Same.
5104 (operator_bitwise_or::wi_fold): Same.
5105 (operator_bitwise_xor::wi_fold): Same.
5106 (operator_trunc_mod::wi_fold): Same.
5107 (operator_logical_not::fold_range): Same.
5108 (operator_bitwise_not::fold_range): Same.
5109 (operator_bitwise_not::op1_range): Change call to fold_range.
5110 (operator_cst::fold_range): Return result via reference.
5111 (operator_identity::fold_range): Same.
5112 (operator_abs::wi_fold): Same.
5113 (operator_absu::wi_fold): Same.
5114 (operator_negate::fold_range): Same.
5115 (operator_negate::op1_range): Change call to fold_range.
5116 (operator_addr_expr::fold_range): Return result via reference.
5117 (operator_addr_expr::op1_range): Change call to fold_range.
5118 (operator_pointer_plus::wi_fold): Return result via reference.
5119 (operator_pointer_min_max::wi_fold): Same.
5120 (operator_pointer_and::wi_fold): Same.
5121 (operator_pointer_or::wi_fold): Same.
5122 (range_op_handler): Change call to fold_range.
5123 (range_cast): Same.
5124 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
5125 fold_range.
5126 (range_fold_unary_symbolics_p): Same.
5127 (range_fold_binary_expr): Same.
5128 (range_fold_unary_expr): Same.
5129
5130 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5131
5132 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
5133 vector type as an argument rather than reading it from the
5134 stmt_vec_info.
5135 (vect_create_epilog_for_reduction): Update accordingly.
5136 (vectorizable_reduction): Likewise.
5137 (vect_transform_cycle_phi): Likewise.
5138
5139 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
5140
5141 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
5142 the comparison codes that make sense for the mode used, and only the
5143 codes that can be done with a single branch instruction.
5144
5145 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5146
5147 PR tree-optimization/92351
5148 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
5149 peeling the main loop for alignment, make sure to set the misalignment
5150 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
5151
5152 2019-11-08 Richard Biener <rguenther@suse.de>
5153
5154 * dbgcnt.def (ivopts_loop): Add.
5155 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
5156 ivopts_loop before optimizing a loop.
5157
5158 2019-11-08 Richard Biener <rguenther@suse.de>
5159
5160 PR ipa/92409
5161 * tree-inline.c (declare_return_variable): Properly handle
5162 type mismatches for the return slot.
5163
5164 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
5165
5166 PR target/92095
5167 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
5168 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
5169 change.
5170 (got_helper_needed): New static variable.
5171 (output_load_pcrel_sym): New function.
5172 (get_pc_thunk_name): Remove after inlining...
5173 (load_got_register): ...here. Rework the initialization of the GOT
5174 register and of the GOT helper.
5175 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
5176 (sparc_file_end): Test got_helper_needed to decide whether the GOT
5177 helper must be emitted. Use output_asm_insn instead of fprintf.
5178 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
5179 if optimization is enabled.
5180 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
5181 by calling output_load_pcrel_sym.
5182
5183 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5184
5185 * tree-sra.c (create_access): Delay disqualifying the base
5186 for poly_int values until we know we have a base.
5187
5188 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5189
5190 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
5191 for loops with SIMDUID set. Enable epilogue vectorization for loops
5192 with SIMDLEN set after finding a main loop with a VF that matches it.
5193
5194 2019-11-08 Jakub Jelinek <jakub@redhat.com>
5195
5196 PR target/92038
5197 * gimple-ssa-store-merging.c (find_constituent_stores): For return
5198 value only, return non-NULL if there is a single non-clobber
5199 constituent store even if there are constituent clobbers and return
5200 one of clobber constituent stores if all constituent stores are
5201 clobbers.
5202 (split_group): Handle clobbers.
5203 (imm_store_chain_info::output_merged_store): When computing
5204 bzero_first, look after all clobbers at the start. Don't count
5205 clobber stmts in orig_num_stmts, except if the first orig store is
5206 a clobber covering the whole area and split_stores cover the whole
5207 area, consider equal number of stmts ok. Punt if split_stores
5208 contains only ->orig stores and their number plus number of original
5209 clobbers is equal to original number of stmts. For ->orig, look past
5210 clobbers in the constituent stores.
5211 (imm_store_chain_info::output_merged_stores): Don't remove clobber
5212 stmts.
5213 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
5214 rhs.
5215 (store_valid_for_store_merging_p): Allow clobber stmts.
5216 (verify_clear_bit_region_be): Fix up a thinko in function comment.
5217
5218 PR c++/92384
5219 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
5220 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
5221 slot.
5222 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
5223 force creation of a unique data.stack_parm slot.
5224
5225 2019-11-08 Richard Biener <rguenther@suse.de>
5226
5227 * genmatch.c (expr::gen_transform): Use the resimplify
5228 member function instead of hard-coding the gimple_resimplifyN variant.
5229 (dt_simplify::gen_1): Likewise.
5230
5231 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5232
5233 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5234 POLY_INT_CST.
5235
5236 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5237
5238 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
5239 instead of INTEGER_CST.
5240
5241 2019-11-08 Richard Biener <rguenther@suse.de>
5242
5243 PR tree-optimization/92324
5244 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5245 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
5246 sign-conversions as necessary.
5247 (vectorizable_reduction): Reject conversions in the chain
5248 that are not sign-conversions, base analysis on a non-converting
5249 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
5250 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
5251 for debug stmts.
5252 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
5253 (STMT_VINFO_REDUC_VECTYPE): Likewise.
5254
5255 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
5256
5257 PR target/92055
5258 * config/avr/avr.opt (-mdouble=, -mlong-double=):
5259 Fix a missing '-' when displaying these options in the
5260 help screen.
5261
5262 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5263
5264 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
5265
5266 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5267
5268 * config/aarch64/aarch64-builtins.c
5269 (aarch64_builtin_vectorized_function): Remove bswap handling.
5270
5271 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5272
5273 * tree-core.h (tree_type_common::indivisible_p): New member variable.
5274 * tree.h (TYPE_INDIVISIBLE_P): New macro.
5275 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5276 Treat the vector types as indivisible.
5277
5278 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5279
5280 * optabs.def (gather_load_optab, mask_gather_load_optab)
5281 (scatter_store_optab, mask_scatter_store_optab): Turn into
5282 conversion optabs, with the offset mode given explicitly.
5283 * doc/md.texi: Update accordingly.
5284 * config/aarch64/aarch64-sve-builtins-base.cc
5285 (svld1_gather_impl::expand): Likewise.
5286 (svst1_scatter_impl::expand): Likewise.
5287 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
5288 (expand_scatter_store_optab_fn): Likewise.
5289 (direct_gather_load_optab_supported_p): Likewise.
5290 (direct_scatter_store_optab_supported_p): Likewise.
5291 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
5292 to be argument 4.
5293 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
5294 (internal_gather_scatter_fn_supported_p): Replace the offset sign
5295 argument with the offset vector type. Require the two vector
5296 types to have the same number of elements but allow their element
5297 sizes to be different. Treat the optabs as conversion optabs.
5298 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
5299 prototype accordingly.
5300 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
5301 (supports_vec_convert_optab_p): ...this new function.
5302 (supports_vec_gather_load_p): Update accordingly.
5303 (supports_vec_scatter_store_p): Likewise.
5304 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
5305 Replace the offset sign and bits parameters with a scalar type tree.
5306 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
5307 Pass back the offset vector type instead of the scalar element type.
5308 Allow the offset to be wider than the memory elements. Search for
5309 an offset type that the target supports, stopping once we've
5310 reached the maximum of the element size and pointer size.
5311 Update call to internal_gather_scatter_fn_supported_p.
5312 (vect_check_gather_scatter): Update calls accordingly.
5313 When testing a new scale before knowing the final offset type,
5314 check whether the scale is supported for any signed or unsigned
5315 offset type. Check whether the target supports the source and
5316 target types of a conversion before deciding whether to look
5317 through the conversion. Record the chosen offset_vectype.
5318 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
5319 (vect_recog_gather_scatter_pattern): Get the scalar offset type
5320 directly from the gs_info's offset_vectype instead. Pass a zero
5321 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
5322 * tree-vect-stmts.c (check_load_store_masking): Update call to
5323 internal_gather_scatter_fn_supported_p, passing the offset vector
5324 type recorded in the gs_info.
5325 (vect_truncate_gather_scatter_offset): Update call to
5326 vect_check_gather_scatter, leaving it to search for a valid
5327 offset vector type.
5328 (vect_use_strided_gather_scatters_p): Convert the offset to the
5329 element type of the gs_info's offset_vectype.
5330 (vect_get_gather_scatter_ops): Get the offset vector type directly
5331 from the gs_info.
5332 (vect_get_strided_load_store_ops): Likewise.
5333 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
5334 and IFN_MASK_GATHER_LOAD.
5335 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
5336 (gather_load<mode><v_int_equiv>): ...this.
5337 (mask_gather_load<mode>): Rename to...
5338 (mask_gather_load<mode><v_int_equiv>): ...this.
5339 (scatter_store<mode>): Rename to...
5340 (scatter_store<mode><v_int_equiv>): ...this.
5341 (mask_scatter_store<mode>): Rename to...
5342 (mask_scatter_store<mode><v_int_equiv>): ...this.
5343
5344 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
5345
5346 PR target/92132
5347 * config/rs6000/predicates.md
5348 (signed_or_equality_comparison_operator): New predicate.
5349 (unsigned_or_equality_comparison_operator): Likewise.
5350 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
5351 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
5352 * config/rs6000/vector.md
5353 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
5354 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
5355 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
5356 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
5357 vector modes and same-size integer vector modes.
5358 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
5359 (vector_lt<mode> for VEC_F): New expand.
5360 (vector_le<mode> for VEC_F): Likewise.
5361 (vector_ne<mode> for VEC_F): Likewise.
5362 (vector_unge<mode> for VEC_F): Likewise.
5363 (vector_ungt<mode> for VEC_F): Likewise.
5364 (vector_unle<mode> for VEC_F): Likewise.
5365 (vector_unlt<mode> for VEC_F): Likewise.
5366 (vector_uneq<mode>): Expose name.
5367 (vector_ltgt<mode>): Likewise.
5368 (vector_unordered<mode>): Likewise.
5369 (vector_ordered<mode>): Likewise.
5370
5371 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
5372
5373 PR target/92295
5374 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
5375 Enhance ix86_expand_vector_init_concat.
5376
5377 2019-11-08 Joseph Myers <joseph@codesourcery.com>
5378
5379 * doc/invoke.texi (-Wold-style-definition): Document () not being
5380 considered an old-style definition for C2x.
5381
5382 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
5383
5384 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
5385 Enhance comment.
5386 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
5387 insn patterns using ldcw instruction.
5388 (memory_barrier): Remove insn pattern using sync instruction.
5389 * config/pa/pa.opt (coherent-ldcw): New option.
5390 (ordered): New option.
5391
5392 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5393
5394 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
5395 valid conditions.
5396
5397 2019-11-07 Jakub Jelinek <jakub@redhat.com>
5398
5399 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
5400 typo - mistmatch -> mismatch.
5401 * ipa-profile.c (ipa_profile): Likewise.
5402 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
5403 - mistmatch -> mismatch.
5404
5405 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5406
5407 * simplify-rtx.c (comparison_to_mask): New function.
5408 (mask_to_comparison): New function.
5409 (simplify_logical_relational_operation): New function.
5410 (simplify_binary_operation_1): Call
5411 simplify_logical_relational_operation.
5412
5413 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
5414
5415 PR other/92090
5416 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
5417 modes for integer constants.
5418
5419 2019-11-07 Jan Hubicka <jh@suse.cz>
5420
5421 PR ipa/92406
5422 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
5423 summary.
5424
5425 2019-11-07 Jan Hubicka <jh@suse.cz>
5426
5427 * optc-save-gen.awk: Generate cl_target_option_free
5428 and cl_optimization_option_free.
5429 * opth-en.awk: Declare cl_target_option_free
5430 and cl_optimization_option_free.
5431 * tree.c (free_node): Use it.
5432
5433 2019-11-06 Jan Hubicka <jh@suse.cz>
5434
5435 * lto-streamer-in.c: Include alloc-pool.h.
5436 (freeing_string_slot_hasher): Remove.
5437 (string_slot_allocator): New object allocator.
5438 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
5439 (file_name_obstack): New obstack.
5440 (canon_file_name): Allocate in obstack and allocator.
5441 (lto_reader_init): Initialize obstack and allocator.
5442 (lto_free_file_name_hash): New function.
5443 * lto-streamer.h (lto_free_file_name_hash): New.
5444
5445 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
5446
5447 PR tree-optimization/89134
5448 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5449 * params.def: Add min-loop-cond-split-prob.
5450 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5451 outside checks on loop into the function.
5452 (split_info): New class.
5453 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5454 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5455 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5456 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5457 (stmt_semi_invariant_p, branch_removable_p): Likewise.
5458 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5459 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5460 (split_loop_on_cond): Likewise.
5461 (tree_ssa_split_loops): Add loop split on conditional statement.
5462
5463 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
5464
5465 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5466 pattern.
5467
5468 2019-11-07 Richard Biener <rguenther@suse.de>
5469
5470 PR tree-optimization/92405
5471 * tree-vect-loop.c (vectorizable_reduction): Appropriately
5472 restrict lane-reducing ops to single stmt chains.
5473
5474 2019-11-07 Martin Jambor <mjambor@suse.cz>
5475
5476 PR lto/70929
5477 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5478 * cgraph.h (gimple_check_call_matching_types): Remove
5479 * cgraph.c (gimple_check_call_args): Likewise.
5480 (gimple_check_call_matching_types): Likewise.
5481 (symbol_table::create_edge): Do not call
5482 gimple_check_call_matching_types.
5483 (cgraph_edge::make_direct): Likewise.
5484 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5485 * value-prof.h (check_ic_target): Remove.
5486 * value-prof.c (check_ic_target): Remove.
5487 (gimple_ic_transform): Do nat call check_ic_target.
5488 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5489 (afdo_indirect_call): Likewise.
5490 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5491 gimple_check_call_matching_types.
5492 * ipa-inline.c (early_inliner): Likewise.
5493
5494 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5495
5496 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5497 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5498 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5499 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5500 * config/arm/iterators.md (USSAT16): New int_iterator.
5501 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5502 (sup): Likewise.
5503 * config/arm/predicates.md (ssat16_imm): New predicate.
5504 (usat16_imm): Likewise.
5505 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5506
5507 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5508
5509 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5510 New define_insns.
5511 (arm_<simd32_op>): New define_expands.
5512 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5513 __smuad, __smuadx): Define.
5514 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5515 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5516 (SIMD32_BINOP_Q): Likewise.
5517 (simd32_op): Handle the above.
5518 * config/arm/unspecs.md: Define unspecs for the above.
5519
5520 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5521
5522 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5523 * config/arm/arm.md (APSRGE_REGNUM): Define.
5524 (arm_<simd32_op>): New define_insn.
5525 (arm_sel): Likewise.
5526 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5527 (CALL_USED_REGISTERS): Likewise.
5528 (REG_ALLOC_ORDER): Likewise.
5529 (FIRST_PSEUDO_REGISTER): Update value.
5530 (ARM_GE_BITS_READ): Define.
5531 * config/arm/arm.c (arm_conditional_register_usage): Clear
5532 APSRGE_REGNUM from operand_reg_set.
5533 (arm_ge_bits_access): Define.
5534 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5535 ARM_BUIILTIN_sel.
5536 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5537 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5538 FAIL if ARM_GE_BITS_READ.
5539 (*arm_add<mode>3): New define_insn.
5540 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5541 (*arm_sub<mode>3): New define_insn.
5542 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5543 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5544 __usub16): Define.
5545 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5546 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5547 (simd32_op): Handle the above.
5548 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5549 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5550 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5551 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5552
5553 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5554
5555 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5556 (arm_smlabb): New define_expand.
5557 (*maddhisi4tb): Rename to...
5558 (maddhisi4tb): ... This.
5559 (*maddhisi4tt): Rename to...
5560 (maddhisi4tt): ... This.
5561 (arm_smlatb_setq): New define_insn.
5562 (arm_smlatb): New define_expand.
5563 (arm_smlatt_setq): New define_insn.
5564 (arm_smlatt): New define_expand.
5565 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5566 (arm_<smlaw_op>): New define_expand.
5567 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5568 __smlawb, __smlawt): Define.
5569 * config/arm_acle_builtins.def: Define builtins for the above.
5570 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5571 (slaw_op): New int_attribute.
5572 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5573
5574 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5575
5576 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5577 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5578 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5579 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5580 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5581 (ss_op): New code_attr.
5582
5583 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5584
5585 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5586 * config/arm/arm.md (APSRQ_REGNUM): Define.
5587 (add_setq): New define_subst.
5588 (add_clobber_q_name): New define_subst_attr.
5589 (add_clobber_q_pred): Likewise.
5590 (maddhisi4): Change to define_expand. Split into mult and add if
5591 ARM_Q_BIT_READ.
5592 (arm_maddhisi4): New define_insn.
5593 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5594 (*maddhisi4tt): Likewise.
5595 (arm_ssat): New define_expand.
5596 (arm_usat): Likewise.
5597 (arm_get_apsr): New define_insn.
5598 (arm_set_apsr): Likewise.
5599 (arm_saturation_occurred): New define_expand.
5600 (arm_set_saturation): Likewise.
5601 (*satsi_<SAT:code>): Rename to...
5602 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5603 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5604 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5605 (CALL_USED_REGISTERS): Mark apsrq.
5606 (FIRST_PSEUDO_REGISTER): Update value.
5607 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5608 (machine_function): Add q_bit_access.
5609 (ARM_Q_BIT_READ): Define.
5610 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5611 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5612 operand_reg_set.
5613 (arm_q_bit_access): Define.
5614 * config/arm/arm-builtins.c: Include stringpool.h.
5615 (arm_sat_binop_imm_qualifiers,
5616 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5617 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5618 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5619 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5620 SET_SAT_QUALIFIERS): Likewise.
5621 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5622 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5623 Handle 0 argument expander.
5624 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5625 (arm_check_builtin_call): Define.
5626 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5627 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5628 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5629 (arm_q_bit_access): Likewise.
5630 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5631 __saturation_occurred, __set_saturation_occurred): Define.
5632 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5633 saturation_occurred, set_saturation_occurred.
5634 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5635 (UNSPEC_APSR_READ): Likewise.
5636 (VUNSPEC_APSR_WRITE): Likewise.
5637 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5638 (*arm_ssadd<mode>3): New define_insn.
5639 (sssub<mode>3): Convert to define_expand.
5640 (*arm_sssub<mode>3): New define_insn.
5641 (ssmulsa3): Convert to define_expand.
5642 (*arm_ssmulsa3): New define_insn.
5643 (usmulusa3): Convert to define_expand.
5644 (*arm_usmulusa3): New define_insn.
5645 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5646 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5647 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5648
5649 2019-11-07 Martin Liska <mliska@suse.cz>
5650
5651 PR c++/92354
5652 * cgraph.c (delete_function_version): Clear global
5653 variable version_info_node if equal to deleted
5654 function.
5655
5656 2019-11-07 Martin Liska <mliska@suse.cz>
5657
5658 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5659 of CONSTRUCTOR_NO_CLEARING.
5660 (operand_compare::hash_operand): Likewise.
5661
5662 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5663
5664 Support 64-bit double and 64-bit long double configurations.
5665
5666 PR target/92055
5667 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5668 --with-long-double=.
5669 * config/avr/t-multilib: Remove.
5670 * config/avr/t-avr: Output of genmultilib.awk is now fully
5671 dynamically generated and no more part of the repo.
5672 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5673 Pass them down to...
5674 * config/avr/genmultilib.awk: ...here and handle them.
5675 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5676 (-mlong-double=, avr_long_double). New option and var.
5677 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5678 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5679 Set default as requested by --with-double=
5680 (TARGET_HANDLE_OPTION): Define to this...
5681 (avr_handle_option): ...new hook worker.
5682 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5683 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5684 (avr_double_lib): New proto for spec function.
5685 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5686 (DRIVER_SELF_SPECS): Call %:double-lib.
5687 * config/avr/avr.c (avr_option_override): Assert
5688 sizeof(long double) >= sizeof(double) for the target.
5689 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5690 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5691 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5692 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5693 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5694 New built-in define depending on --with-double=, --with-long-double=.
5695 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5696 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5697 * doc/install.texi (Cross-Compiler-Specific Options)
5698 <--with-double=, --with-long-double=>: Doc.
5699
5700 2019-11-07 Richard Biener <rguenther@suse.de>
5701
5702 * dbgcnt.def (gimple_unroll): New.
5703 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5704 gimple_unroll debug counter before applying transform.
5705 (try_peel_loop): Likewise.
5706
5707 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5708
5709 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5710 frame pointer in multiple registers.
5711 (ira_setup_eliminable_regset): Setup eliminable_regset,
5712 ira_no_alloc_regs and regs_ever_live for frame pointer in
5713 multiple registers.
5714
5715 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5716
5717 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5718 V2DI modes.
5719
5720 2019-11-06 Jan Hubicka <jh@suse.cz>
5721
5722 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5723 allocations.
5724 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5725 Do not silently ignore summary corruptions.
5726
5727 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5728
5729 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5730 the epilogue if there are peeled iterations for it to handle.
5731
5732 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5733
5734 * config/arc/arc.c (arc_split_ior): Add asserts.
5735 (arc_split_mov_const): Likewise.
5736 (arc_check_ior_const): Do not match known short immediate values.
5737 * config/arc/arc.md (movsi): Don't split predicated instructions
5738 (iorsi): Likewise.
5739
5740 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5741
5742 * config/arc/arc.opt (mea): Update help string.
5743 * doc/invoke.texi(ARC): Update mea option info.
5744
5745 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5746
5747 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5748 (zero_extendqisi2_ac): Likewise.
5749 (zero_extendhisi2_i): Likewise.
5750 (extendqihi2_i): Likewise.
5751 (extendqisi2_ac): Likewise.
5752 (extendhisi2_i): Likewise.
5753
5754 2019-11-06 Richard Biener <rguenther@suse.de>
5755
5756 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5757 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5758 Simplify single_defuse_cycle condition.
5759
5760 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5761
5762 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5763 epilogue loop, make sure that the VF is small enough or that
5764 the epilogue loop can be fully-masked.
5765
5766 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5767
5768 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5769 loop when we've finished, rather than returning directly from
5770 the loop. Use a local variable to track whether we're still
5771 searching for the preferred simdlen. Make vect_epilogues
5772 record whether the next iteration should try to treat the
5773 loop as an epilogue.
5774
5775 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5776
5777 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5778 __arc_hard_float__, __ARC_HARD_FLOAT__,
5779 __arc_soft_float__, __ARC_SOFT_FLOAT__
5780
5781 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5782
5783 PR tree-optimization/92317
5784 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5785 update phi's with constant phi arguments.
5786
5787 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5788 Alexandre Oliva <oliva@adacore.com>
5789
5790 * common.opt (-fcallgraph-info[=]): New option.
5791 * doc/invoke.texi (Developer options): Document it.
5792 * opts.c (common_handle_option): Handle it.
5793 * builtins.c (expand_builtin_alloca): Record allocation if
5794 -fcallgraph-info=da.
5795 * calls.c (expand_call): If -fcallgraph-info, record the call.
5796 (emit_library_call_value_1): Likewise.
5797 * flag-types.h (enum callgraph_info_type): New type.
5798 * explow.c: Include stringpool.h.
5799 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5800 * function.c (allocate_stack_usage_info): New.
5801 (allocate_struct_function): Call it for -fcallgraph-info.
5802 (prepare_function_start): Call it otherwise.
5803 (record_final_call, record_dynamic_alloc): New.
5804 * function.h (struct callinfo_callee): New.
5805 (CALLEE_FROM_CGRAPH_P): New.
5806 (struct callinfo_dalloc): New.
5807 (struct stack_usage): Add callees and dallocs.
5808 (record_final_call, record_dynamic_alloc): Declare.
5809 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5810 object if -fcallgraph-info=da.
5811 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5812 * print-tree.h (print_decl_identifier): Declare.
5813 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5814 * print-tree.c: Include print-tree.h.
5815 (print_decl_identifier): New function.
5816 * toplev.c: Include print-tree.h.
5817 (callgraph_info_file): New global variable.
5818 (callgraph_info_external_printed): Likewise.
5819 (output_stack_usage): Rename to...
5820 (output_stack_usage_1): ... this. Make it static, add cf
5821 parameter. If -fcallgraph-info=su, print stack usage to cf.
5822 If -fstack-usage, use print_decl_identifier for
5823 pretty-printing.
5824 (INDIRECT_CALL_NAME): New.
5825 (dump_final_node_vcg_start): New.
5826 (dump_final_callee_vcg, dump_final_node_vcg): New.
5827 (output_stack_usage): New.
5828 (lang_dependent_init): Open and start file if
5829 -fcallgraph-info. Allocated callgraph_info_external_printed.
5830 (finalize): If callgraph_info_file is not null, finish it,
5831 close it, and release callgraph_info_external_printed.
5832
5833 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5834 Frederik Harwath <frederik@codesourcery.com>
5835 Thomas Schwinge <thomas@codesourcery.com>
5836
5837 * omp-low.c (struct omp_context): New fields
5838 local_reduction_clauses, outer_reduction_clauses.
5839 (new_omp_context): Initialize these.
5840 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5841 (scan_omp_for): Check reduction clauses for incorrect nesting.
5842
5843 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5844
5845 PR inline-asm/92352
5846 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5847 operands with non-memory constraints.
5848
5849 2019-11-05 Martin Sebor <msebor@redhat.com>
5850
5851 PR tree-optimization/92373
5852 * tree.c (component_ref_size): Only consider initializers of objects
5853 of matching struct types.
5854 Return null for instances of interior zero-length arrays.
5855
5856 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5857
5858 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5859
5860 2019-11-05 Jason Merrill <jason@redhat.com>
5861
5862 PR tree-optimization/91825
5863 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5864
5865 2019-11-05 Jim Wilson <jimw@sifive.com>
5866
5867 PR middle-end/92263
5868 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5869 optimize_insn_for_speed_p is true.
5870
5871 2019-11-05 Martin Sebor <msebor@redhat.com>
5872
5873 PR middle-end/92333
5874 PR middle-end/82608
5875 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5876 size.
5877 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5878 name and location for a temporary variable.
5879
5880 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5881
5882 * tree-vrp.c (value_range::value_range): Fix whitespace.
5883 (defined_ranges_p): Same.
5884 (range_fold_binary_symbolics_p): Same.
5885 (value_range::intersect_helper): Same.
5886 (value_range::union_helper): Same.
5887 * tree-vrp.h (range_fold_binary_expr): Same.
5888
5889 2019-11-04 Martin Sebor <msebor@redhat.com>
5890
5891 PR middle-end/92341
5892 PR middle-end/82612
5893 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5894 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5895 of message printed in a warning for empty arrays.
5896 (vrp_prop::check_mem_ref): Also handle function parameters and
5897 empty arrays.
5898
5899 2019-11-05 Richard Biener <rguenther@suse.de>
5900
5901 PR tree-optimization/92371
5902 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5903 on the original stmt of live stmts in the chain.
5904 (vectorizable_live_operation): Look at the original stmt when
5905 checking STMT_VINFO_REDUC_DEF.
5906
5907 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5908
5909 * gimple-fold.c, gimple-loop-versioning.cc,
5910 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5911 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5912 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5913 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5914 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5915 value_range_equiv, and value_range_base to value_range.
5916
5917 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5918
5919 * expr.c (build_personality_function): Fix generated type to
5920 match actual personality functions.
5921
5922 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5923
5924 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5925 enough bytes for the NULL character.
5926
5927 2019-11-05 Richard Biener <rguenther@suse.de>
5928
5929 PR tree-optimization/92280
5930 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5931 had a single use do not create a new CTOR.
5932 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5933 BIT_FIELD_REF of a CTOR via GENERIC.
5934
5935 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5936
5937 * config/s390/s390.c (s390_vector_alignment): Check if the value
5938 fits into uhwi before using it.
5939
5940 2019-11-05 Martin Liska <mliska@suse.cz>
5941
5942 * symbol-summary.h: Use ggc_delete.
5943
5944 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5945
5946 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5947 Change vec_perm field to 10.
5948
5949 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5950
5951 * doc/install.texi: Further fix syntax for html generation.
5952
5953 2019-11-05 Martin Liska <mliska@suse.cz>
5954
5955 * symbol-summary.h: Rename allocator to m_allocator and
5956 add comment.
5957
5958 2019-11-05 Richard Biener <rguenther@suse.de>
5959
5960 PR tree-optimization/92324
5961 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5962 all signed or unsigned operations.
5963
5964 2019-11-05 Jan Hubicka <jh@suse.cz>
5965
5966 * hsa-brig.c: Include alloc-pool.h
5967 * hsa-dump.c: Likewise.
5968 * hsa-gen.c: Likewise.
5969 * hse-regalloc.c: Likewise.
5970 * ipa-hsa.c: Likewise.
5971 * ipa-predicate.c: Likewise.
5972 * ipa-reference.c: Likewise.
5973 * ipa-sra.c: Likewise.
5974 * omp-expand.c: Likewise.
5975 * omp-general.c: Likewise.
5976 * omp-low.c: Likewise.
5977 * sumbol-summary.h (function_summary_base): Add allocator.
5978 (function_summary<T *>::function_summary): Update construction.
5979 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5980 (call_summary_base): Add allcator.
5981 (call_summary<T *>::call_summary): Update construction.
5982 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5983
5984 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5985
5986 PR tree-optimization/91945
5987 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5988 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5989 Formatting fix.
5990
5991 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5992
5993 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5994 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5995 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5996 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5997 (vrp_set_zero_nonzero_bits): Move to...
5998 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5999 (vr_values::simplify_bit_ops_using_ranges): Rename
6000 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
6001
6002 2019-11-05 Martin Liska <mliska@suse.cz>
6003
6004 PR c++/92339
6005 * fold-const.c (operand_compare::hash_operand): Remove
6006 FIELD_DECL handling.
6007
6008 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6009
6010 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
6011 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
6012 static.
6013
6014 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6015
6016 * tree-vrp.c (value_range_base::operator==): Use equal_p to
6017 properly handle symbolics.
6018 (range_compatible_p): Remove.
6019
6020 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
6021
6022 * common.opt (-fabi-version): Document =14.
6023 * doc/invoke.texi (C++ Dialect Options): Likewise.
6024
6025 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6026
6027 * tree-vrp.c (value_range_base::set): Do not special case pointers.
6028
6029 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
6030
6031 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
6032 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6033 gcn_omp_device_kind_arch_isa.
6034 * config/gcn/t-omp-device: New file.
6035 * configure.ac: Support gcn for omp_device_property.
6036 * configure: Regenerate.
6037
6038 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6039
6040 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
6041 (vrp_val_max): Same.
6042 (vrp_val_is_min): Same.
6043 (vrp_val_is_max): Same.
6044 (value_range_base::nonzero_p): Remove last argument to
6045 vrp_val_is_max.
6046 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
6047 (vrp_val_max): Same.
6048 (vrp_val_is_min): Same.
6049 (vrp_val_is_max): Same.
6050 (value_range_base::set_varying): Remove last argument to vrp_val*.
6051 (value_range_base::dump): Same.
6052 (value_range_base::set): Same.
6053 (value_range_base::normalize_symbolics): Same.
6054 (value_range_base::num_pairs): Same.
6055 (value_range_base::lower_bound): Same.
6056 (value_range_base::upper_bound): Same.
6057 (ranges_from_anti_range): Remove handle_pointers argument.
6058 (value_range_base::singleton_p): Remove last argument to
6059 ranges_from_anti_range.
6060
6061 2019-11-04 Jan Hubicka <jh@suse.cz>
6062
6063 * ipa-reference.c (init_function_info): Initialize
6064 info->global.statics_read.
6065
6066 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6067
6068 * tree-vrp.c (value_range_base::invert): Use constructors to build
6069 range.
6070
6071 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6072
6073 * tree-vrp.c (range_int_cst_singleton_p): Remove.
6074 * tree-vrp.h (range_int_cst_singleton_p): Remove.
6075
6076 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6077
6078 * tree-vrp.c (value_range_base::normalize_addresses): Handle
6079 VR_UNDEFINED.
6080
6081 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6082
6083 * tree-vrp.c (dump_assert_info): New.
6084 (dump_asserts_info): New.
6085
6086 2019-11-04 Jan Hubicka <jh@suse.cz>
6087
6088 * ipa-inline-transform.c: Include ipa-utils.h
6089 (inline_call): Set thunk_expansion flag.
6090 * ipa-utils.h (thunk_expansion): Declare.
6091 * ipa-devirt.c (thunk_expansion): New global var.
6092 (devirt_node_removal_hook): Do not invalidate cache while
6093 doing thunk expansion.
6094
6095 2019-11-04 Tamar Christina <tamar.christina@arm.com>
6096
6097 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
6098
6099 2019-11-04 Martin Sebor <msebor@redhat.com>
6100
6101 PR tree-optimization/92349
6102 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
6103 memebers have constant sizes.
6104
6105 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
6106
6107 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
6108 parameter.
6109 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
6110 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
6111 vect_analyze_loop.
6112
6113 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
6114
6115 * expr.c (store_constructor): Modify to handle single element vectors.
6116 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
6117 constructors.
6118 (vect_slp_check_for_constructors): New function.
6119 (vect_slp_analyze_bb_1): Call new function to check for vector
6120 constructors.
6121 (vectorize_slp_instance_root_stmt): New function.
6122 (vect_schedule_slp): Call new function to vectorize root stmt of vector
6123 constructors.
6124 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
6125
6126 2019-11-04 Richard Biener <rguenther@suse.de>
6127
6128 PR tree-optimization/92345
6129 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
6130 we produced a reduction chain.
6131 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
6132 LOOP_VINFO_REDUCTIONS.
6133
6134 2019-11-04 Jan Hubicka <jh@suse.cz>
6135
6136 * cgraphclones.c (cgraph_node::create_version_clone): Do not
6137 duplicate summaries.
6138 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
6139 first.
6140 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
6141 access call summaries.
6142 (dump_ipa_call_summary): Be ready for missing edge summaries.
6143 (analyze_function_body): Use get instead of get_create to access
6144 edge summary.
6145 (estimate_calls_size_and_time): Do not access summaries of
6146 inlined edges; sanity check they are missing.
6147 (ipa_call_context::estimate_size_and_time): Use get instead
6148 of get_create to access node summary.
6149 (inline_update_callee_summaries): Do not update depth of
6150 inlined edge.
6151 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
6152 growth caches.
6153 (ipa_merge_fn_summary_after_inlining): Use get instead
6154 of get_create.
6155 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
6156 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
6157 fast summary.
6158 (initialize_growth_caches): Update.
6159 (do_estimate_edge_time): Remove redundant copy of context.
6160 (ipa_remove_from_growth_caches): New function.
6161 * ipa-inline.c (flatten_function): Update overall summary
6162 only when optimizing.
6163 (inline_to_all_callers): Update overall summary of function
6164 inlined to.
6165 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
6166 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
6167 to false.
6168
6169 2019-11-04 Richard Biener <rguenther@suse.de>
6170
6171 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
6172 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
6173
6174 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
6175
6176 * ggc-common.c: Include system.h before malloc.h.
6177
6178 2019-11-04 Alexandre Oliva <oliva@adacore.com>
6179
6180 * configure.ac: Pass --enable-obsolete=* and
6181 --enable-option-checking=* down to build configure, and fail
6182 if it fails. AC_SUBST HAVE_AUTO_BUILD.
6183 * configure: Rebuild.
6184 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
6185 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
6186
6187 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6188
6189 * config.in: Regenerate.
6190 * config/msp430/msp430.c (msp430_option_override): Emit an error if
6191 -mtiny-printf is used without GCC being configured with
6192 --enable-newlib-nano-formatted-io.
6193 * config/msp430/msp430.h (LINK_SPEC): Pass
6194 "--wrap puts --wrap printf" when -mtiny-printf is used.
6195 * config/msp430/msp430.opt: Document -mtiny-printf.
6196 * configure: Regenerate.
6197 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
6198 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
6199 --enable-newlib-nano-formatted-io is passed.
6200 * doc/invoke.texi: Document -mtiny-printf.
6201
6202 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6203
6204 * configure: Regenerate.
6205
6206 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6207
6208 * config/msp430/driver-msp430.c
6209 (msp430_get_linker_devices_include_path): New spec function.
6210 * config/msp430/msp430-devices.c (msp430_dirname): New function.
6211 (extract_devices_dir_from_exec_prefix): New function.
6212 (extract_devices_dir_from_collect_gcc): New function.
6213 (msp430_check_env_var_for_devices): New function.
6214 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
6215 (parse_devices_csv): Call msp430_check_env_var_for_devices if
6216 devices.csv was not found using other methods.
6217 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
6218 New prototype.
6219 (msp430_dirname): Likewise.
6220 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
6221 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
6222 msp430_get_linker_devices_include_path.
6223 (TARGET_EXTRA_PRE_INCLUDES): Define.
6224 * doc/invoke.texi: Document new ways of searching for support files.
6225
6226 2019-11-04 Richard Biener <rguenther@suse.de>
6227
6228 PR tree-optimization/92301
6229 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
6230 as required by epilogue generation
6231
6232 2019-11-04 Martin Liska <mliska@suse.cz>
6233
6234 PR ipa/92304
6235 * fold-const.c (operand_compare::hash_operand): Fix field
6236 hashing of CONSTRUCTOR.
6237
6238 2019-11-04 Martin Liska <mliska@suse.cz>
6239
6240 * ggc.h (ggc_delete): New function.
6241 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
6242 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
6243 (ipa_free_all_node_params): Likewise.
6244 * ipa-sra.c (ipa_sra_analysis): Likewise.
6245
6246 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6247
6248 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
6249 set_switch_stmt_execution_predicate, compute_bb_predicates,
6250 will_be_nonconstant_expr_predicate,
6251 phi_result_unknown_predicate,
6252 analyze_function_body): Pass arround params summary.
6253 (ipa_call_context::duplicate_from): New comment;
6254 only duplicate useful values.
6255 (ipa_call_context::equal_to): Only compare useful values.
6256 (remap_edge_summaries): Pass params_summary.
6257 (remap_hint_predicate): Likewise.
6258 (ipa_merge_fn_summary_after_inlining): Likewise.
6259 (inline_read_section): Initialize params summary used flags.
6260 * ipa-predicate.c (predicate::remap_after_inlining): Pass
6261 around param_summary.
6262 (add_condition): Initialized used params summary flags.
6263 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
6264 (inline_param_summary::useless_p): New predicate.
6265 (remap_after_inlining, add_condition): Update prototype
6266 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
6267 move_cost.
6268 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
6269 summaries.
6270 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
6271 (ipa_analyze_virtual_call_uses): Likewise.
6272 (update_indirect_edges_after_inlining): Update param summaries.
6273 (ipa_print_node_params): Print used flags.
6274 (ipa_read_indirect_edge_info): Update param summareis.
6275 * ipa-prop.h (ipa_param_descriptor): Add
6276 used_by_ipa_predicates, used_by_indirect_call
6277 and used_by_polymorphic_call.
6278 (ipa_set_param_used_by_ipa_predicates,
6279 ipa_set_param_used_by_indirect_call,
6280 ipa_set_param_used_by_polymorphic_call,
6281 ipa_is_param_used_by_ipa_predicates,
6282 ipa_is_param_used_by_indirect_call,
6283 ipa_is_param_used_by_polymorphic_call): New inline functions.
6284
6285 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6286
6287 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
6288 member function.
6289 (ipa_call_context::release): Add ALL parameter.
6290 (ipa_call_context::equal_to): New member function.
6291 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
6292 duplicate_form, release, equal_to and exists_p member functoins.
6293 * ipa-inline-analysis.c (node_context_cache_entry): New
6294 class.
6295 (node_context_summary): Likewise.
6296 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
6297 node_context_clear): New static vars.
6298 (initialize_growth_caches): New function.
6299 (free_growth_caches): Also delete node_context_cache; output stats.
6300 (do_estimate_edge_time): Cache contexts.
6301 (reset_node_cache): New function.
6302 * ipa-inline.c (reset_edge_caches): Reset also node cache.
6303 (inline_small_functions): Initialize growth caches.
6304 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
6305 Declare.
6306 * ipa-predicate.h (inline_param_summary::equal_to): New.
6307 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
6308 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
6309 (ipa_agg_jump_function): Implement equal_to member function.
6310
6311 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6312
6313 * ipa-fnsummary.c (inline_read_section): Set vector size
6314 ahead of time.
6315
6316 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6317
6318 * ipa-fnsummary.c (ipa_call_context): New constructor.
6319 (estimate_node_size_and_time): Turn to ...
6320 (ipa_call_context::estimate_size_and_time): ... this one.
6321 (ipa_call_context::release): New.
6322 * ipa-fnsummary.h (ipa_call_context): New class.
6323 (estimate_node_size_and_time): Remove.
6324 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
6325 do_estimate_edge_hints): Update.
6326
6327 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6328
6329 * config.in: Regenerate.
6330 * configure: Regenerate.
6331 * configure.ac: Check for mallinfo.
6332 * ggc-common.c: Include malloc.h if available;
6333 include options.h
6334 (report_heap_memory_use): New functoin.
6335 * ggc-page.c (ggc_grow): Do not print "start".
6336 * ggc.h (report_heap_memory_use): Declare.
6337 * pases.c (execute_one_pass): Report memory after IPA passes.
6338 (ipa_read_summaries_1): Likewise.
6339 (ipa_read_optimization_summaries_1): Likewise.
6340
6341 2019-11-02 Jakub Jelinek <jakub@redhat.com>
6342
6343 * gimplify.h (omp_construct_selector_matches): Change return
6344 type to int, add a new SCORES argument.
6345 * gimplify.c (omp_construct_selector_matches): Likewise. If
6346 SCORES is non-NULL, compute scores of each construct.
6347 * omp-general.h (omp_get_context_selector): Declare.
6348 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
6349 Adjust omp_construct_selector_matches callers.
6350 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
6351 (omp_context_compute_score): New function.
6352 (omp_resolve_declare_variant): Compute scores and decide based on
6353 that.
6354
6355 PR bootstrap/92314
6356 * configure.ac: Don't look for omp-device-properties files from
6357 installed offloading compilers. Instead add tmake_file snippets
6358 for configured offloading targets and use files they generate.
6359 * Makefile.in (install): Don't depend on
6360 install-omp-device-properties.
6361 (install-omp-device-properties): Remove goal.
6362 * config/i386/t-omp-device: New file.
6363 * config/i386/t-intelmic (omp-device-properties): Remove goal.
6364 * config/nvptx/t-omp-device: New file.
6365 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
6366 * configure: Regenerated.
6367
6368 * omp-general.h (omp_context_selector_set_compare): Declare.
6369 * omp-general.c (omp_construct_simd_compare,
6370 omp_context_selector_props_compare, omp_context_selector_set_compare,
6371 omp_context_selector_compare): New functions.
6372 (omp_resolve_declare_variant): Prune variants that are strict subset
6373 of another variant.
6374
6375 2019-11-01 Martin Sebor <msebor@redhat.com>
6376
6377 PR middle-end/91679
6378 PR middle-end/91647
6379 PR middle-end/91463
6380 PR middle-end/92312
6381 * doc/invoke.texi (-Wzero-length-bounds): Document.
6382 * gimple-match-head.c (try_conditional_simplification): Use memcpy
6383 instead of a hand-rolled loop to avoid PR 92323.
6384 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
6385 with initializers.
6386 (vrp_prop::check_mem_ref): Handle declared struct objects.
6387 * tree.c (last_field): New function.
6388 (array_at_struct_end_p): Handle MEM_REF.
6389 (get_initializer_for): New helper.
6390 (component_ref_size): Add argument. Rename locals. Call
6391 get_initializer_for instead of fold_ctor_reference. Correct handling
6392 of flexible array members.
6393 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
6394
6395 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6396
6397 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
6398 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
6399 UNSPEC_VSX_CVSPUXDS): Remove.
6400 (vsx_xvcvspdp): New define_expand, old define_insn split to...
6401 (vsx_xvcvspdp_be): ... this. New. And...
6402 (vsx_xvcvspdp_le): ... this. New.
6403 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
6404 (vsx_xvcv<su>xwdp_be): ... this. New. And...
6405 (vsx_xvcv<su>xwdp_le): ... this. New.
6406 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
6407 (vsx_xvcvsp<su>xds_be): ... this. New. And...
6408 (vsx_xvcvsp<su>xds_le): ... this. New.
6409
6410 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6411
6412 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
6413 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
6414 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
6415 UNSPEC_VSX_XVCVSPSXWS): Remove.
6416 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
6417 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
6418
6419 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6420
6421 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
6422 (UNSPEC_VSX_XVCDPSP): Remove.
6423 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
6424 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
6425
6426 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6427
6428 * hooks.c (hook_tree_tree_bool_null): New.
6429 * hooks.h (hook_tree_tree_bool_null): Declare.
6430 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
6431 (LANG_HOOKS_DECLS): Add it.
6432 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
6433 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
6434 (lower_omp_target): Handle Fortran array with descriptor in
6435 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
6436
6437 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
6438
6439 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6440 Assert that the type we store in abi_vector_types is its own
6441 main variant.
6442 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6443
6444 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6445
6446 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6447 from a CONST_INT address when TARGET_THUMB2.
6448
6449 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6450
6451 * config/arm/arm.md (add_not_cin): New insn.
6452 (add_not_shift_cin): Likewise.
6453
6454 2019-10-31 Martin Liska <mliska@suse.cz>
6455
6456 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6457 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6458 and compare_memory_operand.
6459
6460 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6461
6462 * configure.ac: Compute and substitute omp_device_properties and
6463 omp_device_property_deps.
6464 * Makefile.in (generated_files): Add omp-device-properties.h.
6465 (omp-general.o): Depend on omp-device-properties.h.
6466 (omp_device_properties): New make variable.
6467 (omp-device-properties.h, s-omp-device-properties-h,
6468 install-omp-device-properties): New goals.
6469 (install): Depend on install-omp-device-properties for accelerators.
6470 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6471 * target.h (enum omp_device_kind_arch_isa): New enum.
6472 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6473 documentation.
6474 * omp-general.c: Include omp-device-properties.h.
6475 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6476 colon instead of comma.
6477 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6478 functions.
6479 (omp_context_selector_matches): Implement device set arch/isa
6480 selectors, improve device set kind selector handling.
6481 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6482 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6483 TARGET_SIMD_CLONE_USABLE): Formatting fix.
6484 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6485 ix86_omp_device_kind_arch_isa.
6486 * config/i386/i386-options.c (struct ix86_target_opts): Move type
6487 definition from ix86_target_string to file scope.
6488 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6489 to file scope.
6490 (ix86_omp_device_kind_arch_isa): New function.
6491 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6492 isa_opts definitions to file scope.
6493 * config/i386/t-intelmic (omp-device-properties): New goal.
6494 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6495 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6496 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6497 nvptx_omp_device_kind_arch_isa.
6498 * configure: Regenerate.
6499 * doc/tm.texi: Regenerate.
6500
6501 PR middle-end/92231
6502 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6503 DECL_BUILT_IN in comment. Remove redundant ()s around return
6504 argument.
6505 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6506 before calling fndecl_built_in_p.
6507 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6508 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6509 fndecl_built_in_p on it.
6510
6511 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6512
6513 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6514
6515 2019-10-31 Martin Liska <mliska@suse.cz>
6516
6517 * config/arm/arm.c (arm_get_pcs_model): Remove usage
6518 of cgraph_local_info and use local_info_node instead.
6519 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6520 (bfin_function_ok_for_sibcall): Likewise.
6521 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6522 (must_reload_pic_reg_p): Likewise.
6523
6524 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6525
6526 PR c++/90947
6527 * tree.h (type_initializer_zero_p): Remove.
6528 * tree.c (type_initializer_zero_p): Remove.
6529
6530 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6531
6532 * doc/invoke.texi (-Wshadow, -Wshadow=global
6533 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6534
6535 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6536
6537 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6538 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6539 and 'target exit data'.
6540
6541 2019-10-30 Martin Jambor <mjambor@suse.cz>
6542
6543 ipa/92278
6544 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6545 availability comparison.
6546
6547 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6548
6549 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6550 calls to __mspabi_mpy* functions.
6551 * config/msp430/msp430.md (mulhisi3): New define_expand.
6552 (umulhisi3): New define_expand.
6553 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6554 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6555
6556 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6557
6558 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6559 (msp430_check_plus_not_high_mem): New.
6560 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6561 might be in low memory.
6562 Indicate that a 16-bit absolute address is in lower memory.
6563
6564 2019-10-30 Martin Jambor <mjambor@suse.cz>
6565
6566 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6567 ultimate_alias_target.
6568
6569 2019-10-30 Richard Biener <rguenther@suse.de>
6570
6571 PR tree-optimization/92275
6572 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6573 Copy all loop-closed PHIs.
6574
6575 2019-10-30 Martin Liska <mliska@suse.cz>
6576
6577 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6578 const_tree as function argument.
6579 (func_checker::compare_decl): Likewise.
6580 (func_checker::operand_equal_p): Likewise.
6581 (func_checker::compare_variable_decl): Likewise.
6582 (func_checker::parse_labels): Likewise.
6583 * ipa-icf-gimple.h: Likewise.
6584
6585 2019-10-30 Martin Liska <mliska@suse.cz>
6586
6587 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6588 Do not compare alias sets. It's handled by operand_equal_p.
6589
6590 2019-10-30 Martin Liska <mliska@suse.cz>
6591
6592 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6593 initialize m_compare_polymorphic.
6594 (func_checker::compare_decl): Do not compare polymorphic types.
6595 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6596 * ipa-icf.c (sem_function::equals_private): Do not call
6597 compare_polymorphic_p.
6598
6599 2019-10-30 Martin Liska <mliska@suse.cz>
6600
6601 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6602 compare_operand.
6603 (func_checker::compare_memory_operand): Remove.
6604 (func_checker::compare_cst_or_decl): Remove.
6605 (func_checker::operand_equal_valueize): Do not handle
6606 FIELD_DECL.
6607 (func_checker::compare_gimple_call): Call compare_operand.
6608 (func_checker::compare_gimple_assign): Likewise.
6609 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6610 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6611 * ipa-icf.h (icf_handled_component_p): Remove.
6612
6613 2019-10-30 Martin Liska <mliska@suse.cz>
6614
6615 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6616 (func_checker::compare_cst_or_decl): Remove handling
6617 of FIELD_DECL.
6618 (func_checker::compare_operand): Transform to ...
6619 (func_checker::operand_equal_p): ... this.
6620 * ipa-icf-gimple.h (class func_checker): Add
6621 operand_equal_p and hash_operand.
6622 * ipa-icf.c (sem_function::equals_private): Fix
6623 pushing and popping of cfun.
6624
6625 2019-10-30 Martin Liska <mliska@suse.cz>
6626
6627 * fold-const.c (operand_equal_p): Move to ...
6628 (operand_compare::operand_equal_p): ... here.
6629 (operand_compare::verify_hash_value): New.
6630 (add_expr): Move to ...
6631 (operand_compare::hash_operand): ... here.
6632 * fold-const.h (operand_equal_p): Move to the class.
6633 (class operand_compare): New.
6634 * tree.c (add_expr): Remove.
6635
6636 2019-10-30 Martin Liska <mliska@suse.cz>
6637
6638 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6639 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6640
6641 2019-10-30 Martin Liska <mliska@suse.cz>
6642
6643 PR lto/91393
6644 PR lto/88220
6645 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6646 from a first_clone in order to get proper LTO section
6647 in LTO stream.
6648 (cgraph_node::get_untransformed_body):
6649 Use lto_get_section_data where symtab_node::order
6650 must be provided.
6651 * cgraphclones.c (cgraph_node::find_replacement):
6652 Update also symbol order.
6653 * ipa-fnsummary.c (ipa_fn_summary_read):
6654 Use new function lto_get_summary_section_data.
6655 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6656 * ipa-icf.c (sem_item_optimizer::read_summary):
6657 Likewise.
6658 * ipa-prop.c (ipa_prop_read_jump_functions):
6659 Likewise.
6660 (ipcp_read_transformation_summaries): Likewise.
6661 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6662 * lto-cgraph.c (input_node): Add also order_base.
6663 (input_varpool_node): Likewise.
6664 (input_cgraph_1): Assign the order_base.
6665 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6666 * lto-opts.c (lto_write_options): Pass new argument.
6667 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6668 (lto_get_summary_section_data): New.
6669 (lto_get_raw_section_data): Add order argument.
6670 (lto_create_simple_input_block): Likewise.
6671 * lto-section-out.c (lto_destroy_simple_output_block):
6672 Likewise.
6673 * lto-streamer-in.c (lto_input_toplevel_asms):
6674 Use lto_get_summary_section_data.
6675 (lto_input_mode_table): Likewise.
6676 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6677 (lto_output_toplevel_asms): Pass new argument.
6678 (copy_function_or_variable): Likewise.
6679 (produce_lto_section):Likewise.
6680 (produce_symtab): Likewise.
6681 (lto_write_mode_table): Likewise.
6682 (produce_asm_for_decls): Likewise.
6683 * lto-streamer.c (lto_get_section_name): Concat symbol name
6684 and symbol order.
6685 * lto-streamer.h (lto_get_section_data): Add order argument.
6686 (lto_get_summary_section_data): New.
6687 (lto_get_raw_section_data): Add order argument.
6688 (lto_get_section_name): Likewise.
6689 * varpool.c (varpool_node::get_constructor): Pass order argument.
6690
6691 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6692
6693 PR tree-optimization/92262
6694 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6695 ubase or cbase here.
6696 (remove_unused_ivs): Unshare comp before using it.
6697
6698 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6699
6700 * ipa-prop.c (update_jump_functions_after_inlining):
6701 Watch for missing summaries.
6702
6703 2019-10-30 Richard Biener <rguenther@suse.de>
6704
6705 PR tree-optimization/65930
6706 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6707 chains also allow a leading and trailing conversion.
6708 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6709 intermediate reduction chains.
6710 (vect_analyze_slp_instance): Likewise. Build a SLP
6711 node for a trailing conversion manually.
6712
6713 2019-10-30 Martin Liska <mliska@suse.cz>
6714
6715 * cgraph.c (cgraph_node::local_info): Transform to ...
6716 (cgraph_node::local_info_node): ... this.
6717 (cgraph_node::dump): Remove cgraph_local_info and
6718 put its fields directly into cgraph_node.
6719 (cgraph_node::get_availability): Likewise.
6720 (cgraph_node::make_local): Likewise.
6721 (cgraph_node::verify_node): Likewise.
6722 * cgraph.h (struct GTY): Likewise.
6723 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6724 (duplicate_thunk_for_node): Likewise.
6725 (cgraph_node::create_clone): Likewise.
6726 (cgraph_node::create_virtual_clone): Likewise.
6727 (cgraph_node::create_version_clone): Likewise.
6728 * cgraphunit.c (cgraph_node::reset): Likewise.
6729 (cgraph_node::finalize_function): Likewise.
6730 (cgraph_node::add_new_function): Likewise.
6731 (analyze_functions): Likewise.
6732 * combine.c (setup_incoming_promotions): Likewise.
6733 * config/i386/i386.c (ix86_function_regparm): Likewise.
6734 (ix86_function_sseregparm): Likewise.
6735 (init_cumulative_args): Likewise.
6736 * ipa-cp.c (determine_versionability): Likewise.
6737 (count_callers): Likewise.
6738 (set_single_call_flag): Likewise.
6739 (initialize_node_lattices): Likewise.
6740 (estimate_local_effects): Likewise.
6741 (create_specialized_node): Likewise.
6742 (identify_dead_nodes): Likewise.
6743 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6744 (ipa_fn_summary_generate): Likewise.
6745 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6746 (process_hsa_functions): Likewise.
6747 * ipa-icf.c (set_local): Likewise.
6748 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6749 * ipa-inline.c (speculation_useful_p): Likewise.
6750 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6751 (ipa_profile): Likewise.
6752 * ipa-split.c (split_function): Likewise.
6753 (execute_split_functions): Likewise.
6754 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6755 (ipa_sra_ipa_function_checks): Likewise.
6756 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6757 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6758 * lto-cgraph.c (lto_output_node): Likewise.
6759 (input_overwrite_node): Likewise.
6760 * multiple_target.c (expand_target_clones): Likewise.
6761 * omp-simd-clone.c (simd_clone_create): Likewise.
6762 * trans-mem.c (expand_call_tm): Likewise.
6763 (ipa_tm_mayenterirr_function): Likewise.
6764 (ipa_tm_diagnose_tm_safe): Likewise.
6765 (ipa_tm_diagnose_transaction): Likewise.
6766 (ipa_tm_create_version): Likewise.
6767 (ipa_tm_transform_calls_redirect): Likewise.
6768 (ipa_tm_execute): Likewise.
6769 * tree-inline.c (expand_call_inline): Likewise.
6770
6771 2019-10-29 Martin Liska <mliska@suse.cz>
6772
6773 * symbol-summary.h (function_summary): Pass memory location
6774 to underlaying hash_map (or vec).
6775 (V>::fast_function_summary): Likewise.
6776
6777 2019-10-29 Martin Liska <mliska@suse.cz>
6778
6779 * ggc.h (ggc_alloc_no_dtor): New function.
6780 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6781 destructor and ggc_free.
6782 (ipa_free_size_summary): Call delete instead
6783 of release.
6784 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6785 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6786 (ipa_free_all_edge_args): Call destructor and ggc_free.
6787 (ipa_free_all_node_params): Likewise.
6788 (ipcp_free_transformation_sum): Likewise.
6789 * ipa-prop.h (ipa_check_create_node_params):
6790 Call new ggc_alloc_no_dtor.
6791 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6792 (ipa_sra_analysis): Call destructor and ggc_free.
6793 Replace release with delete operator.
6794 * symbol-summary.h (release): Remove ..
6795 (V>::~fast_function_summary): and move logic here.
6796 Likewise for other classes.
6797
6798 2019-10-29 Richard Biener <rguenther@suse.de>
6799
6800 PR tree-optimization/92260
6801 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6802 lane-reducing ops.
6803
6804 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6805
6806 PR tree-optimization/88915
6807 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6808 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6809 and make the valueize function pointer also take a void pointer.
6810 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6811 around vn_valueize, to call it without a context.
6812 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6813 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6814 (~_loop_vec_info): Release epilogue_vinfos.
6815 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6816 number of iterations of epilogue.
6817 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6818 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6819 versioning threshold needed for main loop.
6820 (vect_analyze_loop): Likewise.
6821 (find_in_mapping): New helper function.
6822 (update_epilogue_loop_vinfo): New function.
6823 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6824 on main loop and call update_epilogue_loop_vinfo to update it.
6825 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6826 stmts on loop preheader edge.
6827 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6828 we decided to vectorize epilogues. Update epilogues NITERS and
6829 construct ADVANCE to update epilogues data references where needed.
6830 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6831 (vect_do_peeling, vect_update_inits_of_drs,
6832 determine_peel_for_niter, vect_analyze_loop): Add or update
6833 declarations.
6834 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6835 created loop_vec_info's for epilogues when available. Otherwise analyse
6836 epilogue separately.
6837
6838 2019-10-29 Richard Biener <rguenther@suse.de>
6839
6840 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6841 example.
6842
6843 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6844
6845 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6846 index for the COND_EXPR from stmt_info rather than reduc_info.
6847
6848 2019-10-29 Richard Biener <rguenther@suse.de>
6849
6850 PR tree-optimization/65930
6851 * tree-vect-loop.c (check_reduction_path): Relax single-use
6852 check allowing out-of-loop uses.
6853 (vect_is_simple_reduction): SLP reduction chains cannot have
6854 intermediate stmts used outside of the loop.
6855 (vect_create_epilog_for_reduction): The adjustment might need
6856 to be converted.
6857 (vectorizable_reduction): Annotate live stmts of the reduction
6858 chain with STMT_VINFO_REDUC_DEF.
6859 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6860
6861 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6862
6863 * calls.c (pass_by_reference): Leave the target to decide whether
6864 POLY_INT_CST-sized arguments should be passed by value or reference,
6865 rather than forcing them to be passed by reference.
6866 (must_pass_in_stack_var_size): Likewise.
6867 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6868 V31_REGNUM to P15_REGNUM.
6869 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6870 Take an extra "silent_p" parameter, defaulting to false.
6871 (aarch64_sve::svbool_type_p): Declare.
6872 (aarch64_sve::nvectors_if_data_type): Likewise.
6873 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6874 (aarch64_frame::reg_offset): Turn into poly_int64s.
6875 (aarch64_frame::save_regs_size): Likewise.
6876 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6877 (aarch64_frame::sve_callee_adjust): Likewise.
6878 (aarch64_frame::spare_reg_reg): Likewise.
6879 (ARM_PCS_SVE): New arm_pcs value.
6880 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6881 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6882 (CUMULATIVE_ARGS::silent_p): Likewise.
6883 (BITS_PER_SVE_PRED): New macro.
6884 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6885 function. Reject aarch64_vector_pcs attributes on SVE functions.
6886 (aarch64_attribute_table): Use the above handler.
6887 (aarch64_sve_abi): New function.
6888 (aarch64_sve_argument_p): Likewise.
6889 (aarch64_returns_value_in_sve_regs_p): Likewise.
6890 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6891 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6892 descriptor for them.
6893 (aarch64_simd_decl_p): Delete.
6894 (aarch64_emit_cfi_for_reg_p): New function.
6895 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6896 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6897 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6898 as partly clobbered for the SVE PCS.
6899 (aarch64_function_ok_for_sibcall): Check whether the two functions
6900 use the same ABI, rather than checking specifically for whether
6901 they're aarch64_vector_pcs functions.
6902 (aarch64_pass_by_reference): Raise an error for attempts to pass
6903 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6904 if there are not enough free registers left, or if the argument is
6905 variadic.
6906 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6907 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6908 tuples in memory.
6909 (aarch64_layout_arg): Take a function_arg_info rather than
6910 individual properties. Handle SVE predicates, vectors and tuples.
6911 Raise an error if they are passed to unprototyped functions.
6912 (aarch64_function_arg): If the silent_p flag is set, suppress the
6913 usual error about using float registers without TARGET_FLOAT.
6914 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6915 it in the cumulative_args structure. Initialize aapcs_nprn and
6916 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6917 error about using float registers without TARGET_FLOAT.
6918 If the silent_p flag is not set, also raise an error about
6919 using SVE functions when SVE is disabled.
6920 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6921 and call it for SVE functions too. Update aapcs_nprn similarly
6922 to the other register counts.
6923 (aarch64_layout_frame): If a big-endian function needs to save
6924 and restore Z8-Z15, search for a spare predicate that it can use.
6925 Store SVE predicates at the bottom of the register save area,
6926 followed by SVE vectors, then followed by the normal slots.
6927 Keep pointing the hard frame pointer at the base of the normal slots,
6928 above the SVE vectors. Update the various frame creation and
6929 tear-down strategies for the new layout, initializing the new
6930 sve_callee_adjust field. Add an additional layout for frames
6931 whose saved registers are all SVE registers.
6932 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6933 (aarch64_return_address_signing_enabled): Likewise.
6934 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6935 aarch64_reg_save_mode.
6936 (aarch64_adjust_sve_callee_save_base): New function.
6937 (aarch64_add_cfa_expression): Move earlier in file. Take the
6938 saved register as an rtx rather than a register number and use
6939 its mode for the MEM slot.
6940 (aarch64_save_callee_saves): Remove the mode argument and instead
6941 use aarch64_reg_save_mode to get the mode of each save slot.
6942 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6943 offsets. Allow GP offsets to be saved at a VL-based offset from
6944 the stack, handling this case using the frame pointer if available
6945 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6946 big-endian SVE functions; use normal moves for other SVE saves.
6947 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6948 returns true. Add explicit CFA notes when not storing via the
6949 stack pointer. Do not try to pair SVE saves.
6950 (aarch64_restore_callee_saves): Cope with poly_int64 register
6951 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6952 use normal moves for other SVE restores. Only add CFA restore notes
6953 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6954 SVE restores.
6955 (aarch64_get_separate_components): Always keep the first SVE save
6956 in the prologue if we need to use it as a stack probe. Don't allow
6957 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6958 Likewise the spare predicate register that they need. Update the
6959 offset calculation to account for the SVE save area. Use the
6960 appropriate range check for SVE LDR and STR instructions.
6961 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6962 (aarch64_process_components): Likewise. Update the offset
6963 calculation to account for the SVE save area. Only mark the
6964 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6965 Do not try to pair SVE saves.
6966 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6967 reg_offsets. When handling the final allocation, expect the
6968 first SVE register save to be part of the initial allocation
6969 and for it to act as a probe at SP. Account for the SVE callee
6970 save area in the dump information.
6971 (aarch64_expand_prologue): Update the frame diagram. Fold the
6972 SVE callee allocation into the initial allocation if stack clash
6973 protection is enabled. Use new variables to track the offset
6974 of the frame chain (and hard frame pointer) from the current
6975 stack pointer, and likewise the offset of the bottom of the
6976 register save area. Update calls to aarch64_save_callee_saves
6977 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6978 saving the FP&SIMD registers. Save the predicate registers.
6979 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6980 into account when setting the stack pointer from the frame pointer,
6981 and when deciding whether we can inherit the initial adjustment
6982 amount from the prologue. Restore the predicate registers after
6983 the vector registers, then apply sve_callee_adjust, then restore
6984 the general registers.
6985 (aarch64_secondary_reload): Don't use secondary SVE reloads
6986 for VNx16BImode.
6987 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6988 (aarch64_short_vector_p): Return false for SVE types.
6989 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6990 at the start of the function. Return false for SVE types.
6991 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6992 functions too.
6993 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6994 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6995 to big-endian targets for bytewise moves.
6996 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6997
6998 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6999 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7000 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7001
7002 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
7003 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
7004 aarch64-sve-builtins-base.o to extra_objs. Add
7005 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
7006 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
7007 (aarch64-sve-builtins-shapes.o): Likewise.
7008 (aarch64-sve-builtins-base.o): New rules.
7009 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
7010 (aarch64_resolve_overloaded_builtin): Likewise.
7011 (aarch64_check_builtin_call): Likewise.
7012 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
7013 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
7014 pragma.
7015 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
7016 (aarch64_svprfop): New enum.
7017 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
7018 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
7019 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
7020 (aarch64_output_sve_cnt_pat_immediate): Likewise.
7021 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
7022 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
7023 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
7024 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
7025 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
7026 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
7027 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
7028 (aarch64_sve::mangle_builtin_type): Likewise.
7029 (aarch64_sve::resolve_overloaded_builtin): Likewise.
7030 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
7031 (aarch64_sve::expand_builtin): Likewise.
7032 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
7033 (aarch64_sve_int_mode): Likewise.
7034 (aarch64_ptrue_all_mode): New function.
7035 (aarch64_convert_sve_data_to_pred): Make public.
7036 (svprfop_token): New function.
7037 (aarch64_output_sve_prefetch): Likewise.
7038 (aarch64_fold_sve_cnt_pat): Likewise.
7039 (aarch64_output_sve_cnt_pat_immediate): Likewise.
7040 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
7041 instead of gen_while_ult.
7042 (aarch64_replace_reg_mode): Make public.
7043 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
7044 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
7045 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
7046 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
7047 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
7048 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
7049 (aarch64_sve_ptrue_svpattern_p): Likewise.
7050 (aarch64_sve_pred_valid_immediate): Check
7051 aarch64_sve_ptrue_svpattern_p.
7052 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
7053 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
7054 functions.
7055 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
7056 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
7057 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
7058 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
7059 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
7060 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
7061 New unspecs.
7062 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
7063 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
7064 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
7065 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
7066 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
7067 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
7068 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
7069 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
7070 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
7071 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
7072 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
7073 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
7074 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
7075 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
7076 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
7077 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
7078 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
7079 (Vesize): Handle partial vector modes.
7080 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
7081 mode attributes.
7082 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
7083 iterators.
7084 (s, paired_extend, inc_dec): New code attributes.
7085 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
7086 (SVE_INT_UNARY): Add UNSPEC_RBIT.
7087 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
7088 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
7089 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
7090 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7091 UNSPEC_COND_FMULX.
7092 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
7093 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
7094 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7095 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
7096 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
7097 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
7098 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
7099 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
7100 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
7101 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
7102 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
7103 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
7104 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
7105 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
7106 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
7107 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
7108 UNSPEC_COND_FSCALE.
7109 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7110 (binqops_op, binqops_op_rev, last_op): New int attributes.
7111 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
7112 (fn, ab): New int attributes.
7113 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
7114 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
7115 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
7116 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
7117 UNSPEC_RBIT.
7118 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
7119 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
7120 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
7121 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
7122 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7123 UNSPEC_COND_FMULX.
7124 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
7125 (brk_reg_con, brk_reg_opno): New int attributes.
7126 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
7127 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
7128 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
7129 UNSPEC_COND_FMIN.
7130 (max_elem_bits): New int attribute.
7131 (min_elem_bits): Handle UNSPEC_RBIT.
7132 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
7133 TRUNCATE as well as SUBREG.
7134 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
7135 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
7136 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
7137 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
7138 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
7139 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
7140 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
7141 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
7142 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
7143 (aarch64_gather_scale_operand_h): New predicates.
7144 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
7145 (vgd, vgh, vgw, vsQ, vsS): New constraints.
7146 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
7147 (*aarch64_sve_reinterpret<mode>): Allow any source register
7148 instead of requiring an exact match.
7149 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
7150 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
7151 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
7152 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
7153 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
7154 (aarch64_update_ffrt): New patterns.
7155 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7156 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7157 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7158 (@aarch64_ld<fn>f1<mode>): New patterns.
7159 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7160 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7161 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7162 (@aarch64_ldnt1<mode>): New patterns.
7163 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7164 the scalar part of the address.
7165 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
7166 scalar part of the addresse and add an alternative for handling
7167 nonzero offsets.
7168 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7169 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
7170 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7171 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7172 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7173 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7174 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
7175 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
7176 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7177 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7178 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7179 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7180 (@aarch64_sve_prefetch<mode>): New patterns.
7181 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
7182 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
7183 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
7184 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
7185 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
7186 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7187 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7188 (@aarch64_stnt1<mode>): New patterns.
7189 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7190 the scalar part of the address.
7191 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
7192 the scalar part of the addresse and add an alternative for handling
7193 nonzero offsets.
7194 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7195 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
7196 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7197 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7198 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
7199 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
7200 New patterns.
7201 (vec_duplicate<mode>): Use QI as the mode of the input operand.
7202 (extract_last_<mode>): Generalize to...
7203 (@extract_<LAST:last_op>_<mode>): ...this.
7204 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
7205 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
7206 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
7207 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
7208 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
7209 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
7210 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
7211 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
7212 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
7213 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
7214 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
7215 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
7216 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
7217 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
7218 (*aarch64_adr_uxtw_unspec): Likewise.
7219 (*aarch64_adr_uxtw): Rename to...
7220 (*aarch64_adr_uxtw_and): ...this.
7221 (@aarch64_adr<mode>_shift): New expander.
7222 (*aarch64_adr_shift_sxtw): New pattern.
7223 (aarch64_<su>abd<mode>_3): Rename to...
7224 (@aarch64_pred_<su>abd<mode>): ...this.
7225 (<su>abd<mode>_3): Update accordingly.
7226 (@aarch64_cond_<su>abd<mode>): New expander.
7227 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
7228 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
7229 (*<su>mul<mode>3_highpart): Rename to...
7230 (@aarch64_pred_<optab><mode>): ...this.
7231 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
7232 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
7233 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
7234 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
7235 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
7236 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
7237 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
7238 (*v<ASHIFT:optab><mode>3): Rename to...
7239 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
7240 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
7241 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
7242 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
7243 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
7244 (@cond_asrd<mode>): New expander.
7245 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
7246 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
7247 (*sdiv_pow2<mode>3): Delete.
7248 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
7249 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
7250 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
7251 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
7252 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
7253 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
7254 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
7255 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
7256 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
7257 (*add<SVE_F:mode>3): Rename to...
7258 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
7259 for SVE_STRICT_GP.
7260 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
7261 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
7262 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
7263 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
7264 (*sub<SVE_F:mode>3): Rename to...
7265 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
7266 for SVE_STRICT_GP.
7267 (@aarch64_pred_abd<SVE_F:mode>): New expander.
7268 (*fabd<SVE_F:mode>3): Rename to...
7269 (*aarch64_pred_abd<SVE_F:mode>): ...this.
7270 (@aarch64_cond_abd<SVE_F:mode>): New expander.
7271 (*mul<SVE_F:mode>3): Rename to...
7272 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
7273 for SVE_STRICT_GP.
7274 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
7275 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
7276 to...
7277 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
7278 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
7279 (*<nlogical><PRED_ALL:mode>3): Rename to...
7280 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
7281 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
7282 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
7283 (*<logical_nn><PRED_ALL:mode>3): Rename to...
7284 (aarch64_pred_<logical_nn><mode>_z): ...this.
7285 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
7286 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
7287 (*fma<SVE_I:mode>4): Rename to...
7288 (@aarch64_pred_fma<SVE_I:mode>): ...this.
7289 (*fnma<SVE_I:mode>4): Rename to...
7290 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
7291 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
7292 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
7293 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
7294 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
7295 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
7296 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
7297 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
7298 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
7299 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
7300 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
7301 (@aarch64_sve_tmad<mode>): Likewise.
7302 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
7303 (*aarch64_sel_dup<mode>): Rename to...
7304 (@aarch64_sel_dup<mode>): ...this.
7305 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
7306 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
7307 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
7308 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
7309 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
7310 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
7311 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
7312 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
7313 (*fcm<cmp_op><mode>): Rename to...
7314 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
7315 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7316 (*fcmuo<mode>): Rename to...
7317 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
7318 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7319 (@aarch64_pred_fac<cmp_op><mode>): New expander.
7320 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
7321 (fold_extract_last_<mode>): Generalize to...
7322 (@fold_extract_<last_op>_<mode>): ...this.
7323 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
7324 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
7325 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
7326 DImode result explicit.
7327 (reduc_plus_scal_<mode>): Update accordingly.
7328 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
7329 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
7330 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
7331 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
7332 (*aarch64_sve_tbl<mode>): Rename to...
7333 (@aarch64_sve_tbl<mode>): ...this.
7334 (@aarch64_sve_compact<mode>): New pattern.
7335 (*aarch64_sve_dup_lane<mode>): Rename to...
7336 (@aarch64_sve_dup_lane<mode>): ...this.
7337 (@aarch64_sve_dupq_lane<mode>): New pattern.
7338 (@aarch64_sve_splice<mode>): Likewise.
7339 (aarch64_sve_<perm_insn><mode>): Rename to...
7340 (@aarch64_sve_<perm_insn><mode>): ...this.
7341 (*aarch64_sve_ext<mode>): Rename to...
7342 (@aarch64_sve_ext<mode>): ...this.
7343 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
7344 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
7345 to...
7346 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
7347 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7348 Rename to...
7349 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7350 ...this.
7351 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
7352 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
7353 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
7354 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
7355 to...
7356 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
7357 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
7358 a "@" marker.
7359 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
7360 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
7361 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
7362 pattern.
7363 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
7364 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
7365 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
7366 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
7367 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
7368 "@" marker.
7369 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
7370 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
7371 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
7372 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
7373 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
7374 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
7375 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
7376 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
7377 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
7378 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
7379 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
7380 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
7381 (aarch64_sve_cnt_pat): Likewise.
7382 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7383 (*aarch64_sve_incsi_pat): Likewise.
7384 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7385 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7386 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7387 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7388 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7389 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7390 (*aarch64_sve_decsi_pat): Likewise.
7391 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7392 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7393 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7394 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7395 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7396 (@aarch64_pred_cntp<mode>): Likewise.
7397 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7398 New expander.
7399 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7400 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7401 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7402 New expander.
7403 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7404 New pattern.
7405 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
7406 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7407 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
7408 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7409 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
7410 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7411 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7412 New expander.
7413 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7414 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7415 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7416 New expander.
7417 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7418 New pattern.
7419 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
7420 expander.
7421 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7422 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
7423 expander.
7424 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7425 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
7426 expander.
7427 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7428 * config/aarch64/arm_sve.h: New file.
7429 * config/aarch64/aarch64-sve-builtins.h: Likewise.
7430 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
7431 * config/aarch64/aarch64-sve-builtins.def: Likewise.
7432 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
7433 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
7434 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
7435 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
7436 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
7437 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
7438
7439 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7440
7441 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7442 New pattern.
7443 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7444 SVE modes.
7445
7446 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7447
7448 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7449 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7450 FFRT_REGNUM + 1.
7451 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7452 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7453 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7454 (aarch64_hard_regno_nregs): Handle the new register classes.
7455 (aarch64_hard_regno_mode_ok): Likewise.
7456 (aarch64_regno_regclass): Likewise.
7457 (aarch64_class_max_nregs): Likewise.
7458 (aarch64_register_move_cost): Likewise.
7459 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7460 as general register_operands.
7461
7462 2019-10-29 Martin Liska <mliska@suse.cz>
7463
7464 * ggc-common.c: One can't subtract unsigned types
7465 in compare function.
7466
7467 2019-10-29 Martin Liska <mliska@suse.cz>
7468
7469 * cgraphunit.c (symbol_table::compile): Pass
7470 title as dump_memory_report argument.
7471 * toplev.c (dump_memory_report): New argument.
7472 (finalize): Pass new argument.
7473 * toplev.h (dump_memory_report): Add argument.
7474
7475 2019-10-29 Martin Liska <mliska@suse.cz>
7476
7477 * ggc-common.c: Move Leak to the first column.
7478
7479 2019-10-29 Martin Liska <mliska@suse.cz>
7480
7481 * cgraphunit.c (symbol_table::compile): Remove argument
7482 for dump_memory_report.
7483 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7484 (compare_final): Remove in order to make report
7485 better readable.
7486 * ggc.h (dump_ggc_loc_statistics): Remove argument.
7487 * mem-stats.h (mem_alloc_description::get_list):
7488 Do not pass cmp.
7489 (mem_alloc_description::dump): Likewise here.
7490 * toplev.c (dump_memory_report): Remove final
7491 argument.
7492 (finalize): Likewise.
7493 * toplev.h (dump_memory_report): Remove argument.
7494
7495 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7496
7497 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7498 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7499 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7500 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7501 accept "const".
7502
7503 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7504
7505 * coretypes.h (string_int_pair): New typedef.
7506 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7507 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7508 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7509
7510 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7511
7512 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7513 (simulate_builtin_function_decl): Declare.
7514 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7515 (LANG_HOOKS_INITIALIZER): Include it.
7516 * langhooks.c (add_builtin_function_common): Rename to...
7517 (build_builtin_function): ...this. Add a location parameter and use
7518 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7519 the decl instead.
7520 (add_builtin_function): Update accordingly, passing the returned
7521 decl to the lang hook.
7522 (add_builtin_function_ext_scope): Likewise
7523 (simulate_builtin_function_decl): New function.
7524
7525 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7526
7527 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7528 example, use actual names of supported offload targets.
7529
7530 PR target/92258
7531 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7532
7533 2019-10-28 Martin Sebor <msebor@redhat.com>
7534
7535 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7536 (handle_store): Pass argument to get_addr_stridx.
7537
7538 2019-10-28 Martin Sebor <msebor@redhat.com>
7539
7540 PR tree-optimization/92226
7541 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7542 the offset is in the open range outlined by SI's length.
7543
7544 2019-10-28 Martin Sebor <msebor@redhat.com>
7545
7546 PR c/66970
7547 * doc/cpp.texi (__has_builtin): Document.
7548 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7549
7550 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7551
7552 PR target/82981
7553 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7554 doubleword and low doubleword result of multiplication on
7555 MIPS64R6.
7556
7557 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7558 pure qualifier to the built-in.
7559 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7560 built-ins.
7561 (struct mips_builtin_description): Add is_pure flag.
7562 (mips_init_builtins): Mark built-in as pure if the flag in the
7563 corresponding mips_builtin_description struct is set.
7564
7565 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7566 alternative which covers the floating-point input value. Also
7567 forbid the split of insert.d pattern for floating-point values.
7568
7569 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7570
7571 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7572 * config/riscv/riscv-sr.c: New file.
7573 * config/riscv/riscv.c (riscv_reorg): New function.
7574 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7575 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7576 (riscv_remove_unneeded_save_restore_calls): Declare.
7577 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7578
7579 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7580
7581 PR tree-optimization/92163
7582 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7583 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7584 before calling bitmap_set_bit.
7585 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7586 delete_dead_or_redundant_assignment.
7587 (dse_dom_walker::dse_optimize_stmt): Likewise.
7588 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7589
7590 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7591
7592 PR middle-end/91272
7593 * tree-vect-stmts.c (vectorizable_condition): Support
7594 EXTRACT_LAST_REDUCTION with fully-masked loops.
7595
7596 2019-10-28 Richard Biener <rguenther@suse.de>
7597
7598 PR tree-optimization/92252
7599 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7600 STMT_VINFO_REDUC_IDX when swapping operands.
7601
7602 2019-10-28 Richard Biener <rguenther@suse.de>
7603
7604 PR tree-optimization/92241
7605 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7606 we failed to update the reduction index do not use the pattern
7607 stmts for the reduction chain.
7608 (vectorizable_reduction): When the reduction chain is corrupt,
7609 fail.
7610 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7611 fail to update the reduction chain.
7612
7613 2019-10-28 Richard Biener <rguenther@suse.de>
7614
7615 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7616 STMT_VINFO_REDUC_IDX from the actual stmt.
7617 (vect_transform_reduction): Likewise.
7618 (vectorizable_reduction): Compute the reduction chain length,
7619 do not recompute the reduction operand index. Remove no longer
7620 necessary restriction for condition reduction chains.
7621
7622 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7623
7624 PR target/92225
7625 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7626 condition for V2DImode.
7627
7628 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7629
7630 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7631 Remove %k operand modifier.
7632 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7633
7634 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7635
7636 PR rtl-optimization/92007
7637 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7638 call it after reload if hot/cold partitioning has been done.
7639 (class pass_postreload_jump): Rename to
7640 pass_jump_after_combine.
7641 (make_pass_postreload_jump): Rename to
7642 make_pass_jump_after_combine.
7643 * passes.def(pass_postreload_jump): Move before reload, rename
7644 to pass_jump_after_combine.
7645 * tree-pass.h (make_pass_postreload_jump): Rename to
7646 make_pass_jump_after_combine.
7647
7648 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7649
7650 PR ipa/92242
7651 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7652 for missing EDGE_REF
7653 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7654
7655 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7656
7657 PR tree-optimization/88760
7658 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7659 Enable -funroll-loops for -O2 and above.
7660 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7661 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7662 do not turn on web and rngreg implicitly, if the unroller is not
7663 explicitly enabled.
7664
7665 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7666
7667 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7668 jump functions.
7669
7670 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7671
7672 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7673 * cgraph.h (cgraph_node::rtl_info): Likewise.
7674
7675 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7676
7677 * ipa-cp.c (propagate_constants_across_call): If args are not available
7678 just drop everything to varying.
7679 (find_aggregate_values_for_callers_subset): Watch for missing
7680 edge summary.
7681 (find_more_scalar_values_for_callers_subs): Likewise.
7682 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7683 update_jump_functions_after_inlining, propagate_controlled_uses):
7684 Watch for missing summaries.
7685 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7686 is finished.
7687 (ipa_write_node_info): Watch for missing summaries.
7688 (ipa_read_edge_info): Create new ref.
7689 (ipa_edge_args_sum_t): Add remove.
7690 (IPA_EDGE_REF_GET_CREATE): New macro.
7691 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7692 edge summary.
7693 (remap_edge_change_prob): Likewise.
7694
7695 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7696
7697 * ipa-inline-transform.c (inline_call): update function summaries
7698 after expanidng thunk.
7699
7700 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7701
7702 * ipa-icf.c (sem_function::merge): Update function summaries.
7703 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7704
7705 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7706
7707 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7708 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7709 operand already has scalar mode.
7710 (iptr): Remove SF/DF.
7711
7712 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7713
7714 PR target/91289
7715 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7716 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7717 this.
7718
7719 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7720
7721 * config/i386/sse.md
7722 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7723 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7724 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7725 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7726 <sse>_vmmaskcmp<mode>3):
7727 Change predicates from vector_operand to nonimmediate_operand,
7728 constraints xBm to xm, since scalar operations don't need
7729 memory address alignment.
7730 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7731 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7732 round_saeonly_nimm_predicate with
7733 round_saeonly_nimm_scalar_predicate.
7734 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7735 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7736 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7737 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7738 avx512f_vmfmadd_<mode>_mask3<round_name>,
7739 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7740 *avx512f_vmfmsub_<mode>_mask<round_name>,
7741 avx512f_vmfmsub_<mode>_mask3<round_name>,
7742 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7743 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7744 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7745 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7746 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7747 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7748 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7749 cvtusi2<ssescalarmodesuffix>32<round_name>,
7750 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7751 round_nimm_predicate with round_nimm_scalr_predicate.
7752 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7753 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7754 avx512er_vmrcp28<mode><round_saeonly_name>,
7755 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7756 ): Replace round_saeonly_nimm_predicate with
7757 round_saeonly_nimm_scalar_predicate.
7758 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7759 vector_operand with nonimmediate_operand.
7760 * config/i386/subst.md (round_scalar_nimm_predicate,
7761 round_saeonly_scalar_nimm_predicate): Replace
7762 vector_operand with nonimmediate_operand.
7763
7764 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7765
7766 PR target/89071
7767 * config/i386/i386.md (*rcpsf2_sse): Add
7768 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7769 (*rsqrtsf2_sse): Ditto.
7770 (*sqrt<mode>2_sse): Ditto.
7771 (sse4_1_round<mode>2): separate constraint vm, add
7772 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7773 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7774 by pass rpad.
7775 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7776 Ditto.
7777 (*sse_vmrsqrtv4sf2): Ditto.
7778 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7779 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7780 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7781 <iptr> pointer size modifier since vround support memory operand.
7782
7783 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7784
7785 PR target/85969
7786 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7787 static function.
7788
7789 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7790 Tobias Burnus <tobias@codesourcery.com>
7791
7792 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7793 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7794 common block decls.
7795
7796 2019-10-25 Richard Biener <rguenther@suse.de>
7797
7798 PR tree-optimization/92222
7799 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7800 (_slp_oprnd_info::second_pattern): Likewise.
7801 (_slp_oprnd_info::any_pattern): New.
7802 (vect_create_oprnd_info): Adjust.
7803 (vect_get_and_check_slp_defs): Compute whether any stmt is
7804 in a pattern.
7805 (vect_build_slp_tree_2): Avoid building up a node from scalars
7806 if any of the operand defs, not just the first, is in a pattern.
7807
7808 2019-10-25 Richard Biener <rguenther@suse.de>
7809
7810 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7811 swapping if we actually have to modify the IL on a shared stmt.
7812 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7813 because we no longer modify the IL.
7814
7815 2019-10-25 Martin Liska <mliska@suse.cz>
7816
7817 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7818
7819 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7820
7821 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7822 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7823 handled by vect_transform_reduction. Allow fully-masked loops
7824 to be used with reduction chains.
7825 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7826 operations in fully-masked loops.
7827 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7828 operations in fully-masked loops.
7829
7830 2019-10-25 Richard Biener <rguenther@suse.de>
7831
7832 * tree-vect-loop.c (vectorizable_reduction): Verify
7833 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7834 correctly.
7835 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7836 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7837 stmts.
7838
7839 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7840
7841 * gimplify.h (omp_construct_selector_matches): Declare.
7842 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7843 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7844 called function if needed for flag_openmp.
7845 (gimplify_scan_omp_clauses): Set ctx->code.
7846 (omp_construct_selector_matches): New function.
7847 * omp-general.h (omp_constructor_traits_to_codes,
7848 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7849 * omp-general.c (omp_constructor_traits_to_codes,
7850 omp_context_selector_matches, omp_resolve_declare_variant): New
7851 functions.
7852
7853 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7854 literal.
7855 * config/rx/rx.c (rx_print_operand): Likewise.
7856 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7857 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7858 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7859 Likewise.
7860 * genemit.c (emit_c_code): Likewise.
7861 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7862
7863 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7864
7865 * symbols-summary.h (fast_function_summary<T *, V>::release,
7866 fast_call_summary<T *, V>::release): Free m_vector.
7867
7868 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7869
7870 * cgraphunit.c (symbol_table::process_new_functions): Call
7871 ipa_free_size_summary.
7872 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7873 (devirtualization_time_bonus): Update.
7874 (ipcp_propagate_stage): Update.
7875 * ipa-fnsummary.c (ipa_size_summaries): New.
7876 (ipa_fn_summary_alloc): Alloc size summary.
7877 (dump_ipa_call_summary): Update.
7878 (ipa_dump_fn_summary): Update.
7879 (analyze_function_body): Update.
7880 (compute_fn_summary): Likewise.
7881 (ipa_get_stack_frame_offset): New function.
7882 (inline_update_callee_summaries): Do not update frame offsets.
7883 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7884 remove call and function summary.
7885 (ipa_update_overall_fn_summary): Update.
7886 (inline_read_section): Update.
7887 (ipa_fn_summary_write): Update.
7888 (ipa_free_fn_summary): Do not remove summaries.
7889 (ipa_free_size_summary): New.
7890 (release summary pass): Also run at WPA.
7891 * ipa-fnsummary.h (ipa_size_summary): Declare.
7892 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7893 estimated_self_stack_size.
7894 (ipa_size_summary_t): New type.
7895 (ipa_size_summaries): Declare.
7896 (ipa_free_size_summary): Declare.
7897 (ipa_get_stack_frame_offset): Declare.
7898 * ipa-icf.c (sem_function::merge): Update.
7899 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7900 (estimate_growth): Update.
7901 (growth_likely_positive): Update.
7902 (clone_inlined_nodes): Update.
7903 (inline_call): Update.
7904 * ipa-inline.c (caller_growth_limits): Update.
7905 (edge_badness): Update.
7906 (recursive_inlining): Update.
7907 (inline_small_functions): Update.
7908 (inline_to_all_callers_1): Update.
7909 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7910
7911 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7912
7913 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7914 (uavg<mode>3_ceil): ... This.
7915 (altivec_vavgs<VI_char>): Rename to...
7916 (avg<mode>3_ceil): ... This.
7917 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7918 VAVGUW, VAVGSW): Adjust.
7919
7920 2019-10-24 Nathan Sidwell <nathan@acm.org>
7921
7922 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7923
7924 2019-10-24 Martin Liska <mliska@suse.cz>
7925
7926 * symbol-summary.h (gt_pch_nx): Mark all functions
7927 with gcc_unreachable as we do not expect to be called.
7928
7929 2019-10-24 Richard Biener <rguenther@suse.de>
7930
7931 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7932 chains try harder with operand swapping and instead of
7933 putting a shifted chain into the reduction operands put
7934 a repetition of the final reduction op there as if we'd
7935 reassociate the expression.
7936
7937 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7938
7939 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7940 statics_not_read and statics_not_written to statics_read and
7941 statics_written respectively.
7942 (no_module_statics): New static var.
7943 (ipa_reference_get_not_read_global): Rename to ...
7944 (ipa_reference_get_read_global): ... this.
7945 (ipa_reference_get_not_written_global): Rename to ...
7946 (ipa_reference_get_written_global): ... this.
7947 (dump_static_vars_set_to_file): Dump no_module_statics.
7948 (copy_static_var_set): Add for propagation parameter.
7949 (ipa_init): Initialize no_module_statics.
7950 (ipa_ref_opt_summary_t::duplicate): Update.
7951 (ipa_ref_opt_summary_t::remove): Update.
7952 (propagate): Update.
7953 (write_node_summary_p): Look correctly for bitmap differences.
7954 (ipa_reference_write_optimization_summary): Update.
7955 (ipa_reference_read_optimization_summary): Update.
7956 * ipa-reference.h
7957 (ipa_reference_get_not_read_global): Rename to ...
7958 (ipa_reference_get_read_global): ... this.
7959 (ipa_reference_get_not_written_global): Rename to ...
7960 (ipa_reference_get_written_global): ... this.
7961 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7962 (call_may_clobber_ref_p_1): Update.
7963
7964 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7965
7966 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7967 and add comment.
7968 (msp430_hard_regno_nregs_with_padding): Remove.
7969
7970 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7971
7972 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7973 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7974 shift amount is between 1 and 4.
7975 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7976 is between 1 and 4.
7977
7978 2019-10-24 Richard Biener <rguenther@suse.de>
7979
7980 PR tree-optimization/92205
7981 * tree-vect-loop.c (vectorizable_reduction): Restrict
7982 search for alternate vectype_in to lane-reducing patterns
7983 we support.
7984
7985 2019-10-24 Richard Biener <rguenther@suse.de>
7986
7987 PR tree-optimization/92203
7988 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7989 Skip eliminating conversion stmts inserted by insertion.
7990
7991 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7992
7993 * config/s390/s390.c (s390_get_thread_pointer): Use
7994 gen_get_thread_pointer.
7995 (s390_expand_split_stack_prologue): Likewise.
7996 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7997 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7998 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7999 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
8000 parameterized name.
8001
8002 2019-10-24 Richard Biener <rguenther@suse.de>
8003
8004 * tree-vect-slp.c (vect_analyze_slp): When reduction group
8005 SLP discovery fails try to handle the reduction as part
8006 of SLP reduction discovery.
8007
8008 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
8009
8010 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
8011 declaration.
8012 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
8013 attribute if it exists, rather than the insn size. If we use the
8014 insn size, adjust the size to remove the extra size that prefixed
8015 instructions take.
8016 (rs6000_adjust_insn_length): New function.
8017 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
8018 update the instruction sized if prefixed instructions are used.
8019 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
8020 (non_prefixed_length attribute): Delete.
8021 (num_insns attribute): New insn attribute to return the number of
8022 instructions.
8023 (max_prefixed_insns attribute): New insn attribute to return the
8024 maximum number of prefixed instructions in an insn.
8025 (length attribute): Do not adjust for prefix instructions here,
8026 punt to ADJUST_INSN_LENGTH.
8027 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
8028 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
8029 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
8030 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
8031 max_prefixed_insns and num_insns.
8032
8033 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
8034 (movtd_64bit_nodm): Reformat.
8035 (mov<mode>_32bit): Reformat.
8036 (mov<mode>_softfloat): Reformat.
8037 (FMOVE128_GPR splitter): Reformat.
8038 (DIFD splitter): Reformat.
8039 (TI2 splitter): Reformat.
8040 * config/rs6000/predicates.md (lwa_operand): If the bottom two
8041 bits of the offset for the memory address are non-zero, use PLWA
8042 if prefixed instructions are available.
8043
8044 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8045
8046 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
8047
8048 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8049
8050 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
8051 previous patch.
8052
8053 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8054
8055 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
8056 (cmp_symbol_files): New.
8057 (lto_output): Copy sections in file order.
8058 * lto-streamer.h (lto_file_decl_data): Add field order.
8059
8060 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8061
8062 * ipa-reference.h (ipa_reference_var_uid): Move offline.
8063 * ipa-reference.c (reference_vars_map_t): new type.
8064 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
8065 (ipa_reference_var_uid): Implement.
8066 (varpool_node_hooks): New static var.
8067 (varpool_removal_hook): New function.
8068 (is_improper): Do not check bitmap for id==-1
8069 (get_static_name): Update.
8070 (ipa_init): Initialize new datastructures.
8071 (analyze_function): Do not recompute ids.
8072 (propagate): Free reference_vars_to_consider.
8073 (stream_out_bitmap): Update.
8074 (ipa_reference_read_optimization_summary): Update.
8075
8076 2019-10-23 qing zhao <qing.zhao@oracle.com>
8077
8078 PR gcov-profile/91971
8079 * coverage.c (coverage_init): Mangle the full path of filename when
8080 filename is a absolute path.
8081
8082 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8083
8084 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
8085 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
8086 (msp430_has_hwmult): New.
8087 (msp430_output_labelref):
8088 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
8089 * config/msp430/msp430.md (mulhisi3): Likewise.
8090 (umulhisi3): Likewise.
8091 (mulsidi3): Likewise.
8092 (umulsidi3): Likewise.
8093
8094 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8095
8096 PR ipa/92074
8097 * params.def (inline-heuristics-hint-percent): Set to 600.
8098
8099 2019-10-23 Richard Biener <rguenther@suse.de>
8100
8101 PR tree-optimization/65930
8102 * tree-vect-loop.c (check_reduction_path): Allow conversions
8103 that only change the sign.
8104 (vectorizable_reduction): Relax latch def stmts we handle further.
8105
8106 2019-10-23 Jakub Jelinek <jakub@redhat.com>
8107
8108 PR debug/90231
8109 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
8110 (remove_unused_ivs): Use it instead of get_computation_at. When
8111 choosing best candidate, only consider candidates where
8112 get_debug_computation_at actually returns non-NULL.
8113
8114 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
8115
8116 PR tree-optimization/92131
8117 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
8118 range would be symbolic, drop to varying for any explicit overflow
8119 in the constant part or if neither range is a singleton.
8120
8121 2019-10-23 Martin Liska <mliska@suse.cz>
8122
8123 PR middle-end/81669
8124 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
8125 Initialize m_data.
8126
8127 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
8128
8129 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
8130 int_mode_for_mode rather than mode_for_int_vector for scalars.
8131
8132 2019-10-23 Richard Biener <rguenther@suse.de>
8133
8134 PR tree-optimization/92179
8135 * tree-vect-stmts.c (vectorizable_shift): For shift args
8136 that are all the same remove type restriction in the SLP case.
8137 Adjust SLP code to handle converting of the shift arg to
8138 only apply in case the modes are different.
8139
8140 2019-10-23 Martin Liska <mliska@suse.cz>
8141
8142 PR ipa/91969
8143 * ipa-inline.c (recursive_inlining): Do not print
8144 when curr->count is not initialized.
8145
8146 2019-10-23 Richard Biener <rguenther@suse.de>
8147
8148 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
8149 op from scalars in case there's a constant operand in its
8150 definition.
8151
8152 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
8153
8154 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
8155 against out of range max skip or log values.
8156
8157 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
8158
8159 * cgraph.c (dump_graphviz): Change name to dump_name
8160
8161 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8162
8163 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
8164 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8165 subtraction from a carry operation.
8166
8167 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8168
8169 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
8170
8171 2019-10-22 Richard Biener <rguenther@suse.de>
8172
8173 PR tree-optimization/92173
8174 * tree-vect-loop.c (vectorizable_reduction): If
8175 vect_transform_reduction cannot handle code-generation try without
8176 the single-def-use-cycle optimization. Pass optab_vector to
8177 optab_for_tree_code to get vector shifts as that's what we'd
8178 generate.
8179
8180 2019-10-22 Michael Matz <matz@suse.de>
8181
8182 PR middle-end/90796
8183 * gimple-loop-jam.c (any_access_function_variant_p): New function.
8184 (adjust_unroll_factor): Use it to constrain safety, new parameter.
8185 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
8186
8187 2019-10-22 Richard Biener <rguenther@suse.de>
8188
8189 PR tree-optimization/92173
8190 * tree-vect-loop.c (vectorizable_reduction): If
8191 vect_transform_reduction cannot handle code-generation try without
8192 the single-def-use-cycle optimization. Pass optab_vector to
8193 optab_for_tree_code to get vector shifts as that's what we'd
8194 generate.
8195
8196 2019-10-22 Martin Liska <mliska@suse.cz>
8197
8198 * diagnostic-format-json.cc (json_from_expanded_location):
8199 Use json::integer_number.
8200 * gcov.c (output_intermediate_json_line): Use new
8201 json::integer_number.
8202 (output_json_intermediate_file): Likewise.
8203 * json.cc (number::print): Move to ...
8204 (float_number::print): ... this.
8205 (integer_number::print): New.
8206 (test_writing_numbers): Move to ...
8207 (test_writing_float_numbers): ... this.
8208 (test_writing_integer_numbers): New.
8209 (json_cc_tests): Register test_writing_integer_numbers.
8210 * json.h (class value): Add forward declaration
8211 for float_number and integer_number.
8212 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
8213 (class number): Move to ...
8214 (class float_number): ... this.
8215 (class integer_number): New.
8216 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
8217 Use json::integer_number.
8218 (optrecord_json_writer::location_to_json): Likewise.
8219 (optrecord_json_writer::profile_count_to_json): Likewise.
8220 (optrecord_json_writer::pass_to_json): Likewise.
8221
8222 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
8223
8224 * tree-vect-slp.c (vect_slp_bb_region): Check whether
8225 autodetected_vector_size rather than vector_size is zero.
8226 * tree-vect-loop.c (vect_analyze_loop): Likewise.
8227 Set autodetected_vector_size immediately after calling
8228 vect_analyze_loop_2. Check for a fatal error before advancing
8229 next_size.
8230
8231 2019-10-21 Jason Merrill <jason@redhat.com>
8232
8233 * lock-and-run.sh: Check for process existence rather than timeout.
8234
8235 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8236
8237 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
8238 widening multiplication.
8239
8240 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
8241
8242 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
8243 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
8244 type attribute.
8245 (subsi3_carryin_shift): Separate into register and constant controlled
8246 alternatives. Use shift_amount_operand for operand 4. Set shift
8247 attribute and simplify type attribute.
8248 (subsi3_carryin_shift_alt): Likewise.
8249 (rsbsi3_carryin_shift): Likewise.
8250 (rsbsi3_carryin_shift_alt): Likewise.
8251 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
8252 and register controlled shifts into distinct alternatives.
8253 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
8254 (andsi_not_shiftsi_si_scc): Likewise.
8255 (arm_cmpsi_negshiftsi_si): Likewise.
8256 (not_shiftsi): Remove redundant M constraint from alternative 1.
8257 (not_shiftsi_compare0): Likewise.
8258 (arm_cmpsi_insn): Remove redundant alternative 2.
8259 (cmpsi_shift_swp): Likewise.
8260 (sub_shiftsi): Likewise.
8261 (sub_shiftsi_compare0_scratch): Likewise.
8262 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
8263 (thumb2_cmpsi_neg_shiftsi): Likewise.
8264
8265 2019-10-21 Richard Biener <rguenther@suse.de>
8266
8267 PR tree-optimization/92162
8268 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
8269 STMT_VINFO_REDUC_IDX in reduc_info.
8270 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8271
8272 2019-10-21 Richard Biener <rguenther@suse.de>
8273
8274 * tree-vectorizer.h (_slp_tree::ops): New member.
8275 (SLP_TREE_SCALAR_OPS): New.
8276 (vect_get_slp_defs): Adjust prototype.
8277 * tree-vect-slp.c (vect_free_slp_tree): Release
8278 SLP_TREE_SCALAR_OPS.
8279 (vect_create_new_slp_node): Initialize it. New overload for
8280 initializing by an operands array.
8281 (_slp_oprnd_info::ops): New member.
8282 (vect_create_oprnd_info): Initialize it.
8283 (vect_free_oprnd_info): Release it.
8284 (vect_get_and_check_slp_defs): Populate the operands array.
8285 Do not swap operands in the IL when not necessary.
8286 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
8287 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
8288 swap operands in the operands array. Do not swap operands in
8289 the IL.
8290 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
8291 (vect_gather_slp_loads): Fix.
8292 (vect_detect_hybrid_slp_stmts): Likewise.
8293 (vect_slp_analyze_node_operations_1): Search for a internal
8294 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
8295 (vect_slp_analyze_node_operations): Skip ops-only stmts for
8296 the def-type push/pop dance.
8297 (vect_get_constant_vectors): Compute number_of_vectors here.
8298 Use SLP_TREE_SCALAR_OPS and simplify greatly.
8299 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
8300 (vect_get_slp_defs): Simplify greatly.
8301 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
8302 (vect_transform_reduction): Likewise.
8303 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
8304 (vectorizable_call): Likewise.
8305 (vectorizable_operation): Likewise.
8306 (vectorizable_load): Likewise.
8307 (vectorizable_condition): Likewise.
8308 (vectorizable_comparison): Likewise.
8309
8310 2019-10-21 Richard Biener <rguenther@suse.de>
8311
8312 PR tree-optimization/92161
8313 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
8314 for reductions.
8315
8316 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8317
8318 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
8319 (aarch64_rndr): New define_insn.
8320 (aarch64_rndrrs): Likewise.
8321 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
8322 (TARGET_RNG): Likewise.
8323 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
8324 argument.
8325 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
8326 Add fourth argument in prototype.
8327 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
8328 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
8329 (aarch64_init_rng_builtins): Define.
8330 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
8331 (aarch64_expand_rng_builtin): Define.
8332 (aarch64_general_expand_builtin): Use IGNORE argument, handle
8333 RNG builtins.
8334 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8335 __ARM_FEATURE_RNG when TARGET_RNG.
8336 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
8337
8338 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
8339
8340 * tree-vect-stmts (ensure_base_align): Only change alignment if new
8341 alignment is more restrictive.
8342
8343 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8344
8345 * tree-vectorizer.h (vec_info::vector_size): New member variable.
8346 (vect_update_max_nunits): Update comment.
8347 (current_vector_size): Delete.
8348 * tree-vect-stmts.c (current_vector_size): Likewise.
8349 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
8350 of current_vector_size.
8351 (get_mask_type_for_scalar_type): Likewise.
8352 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
8353 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
8354 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
8355 (vect_double_mask_nunits, vect_transform_loop): Likewise.
8356 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8357 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
8358
8359 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8360
8361 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
8362 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
8363 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
8364 accordingly.
8365
8366 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8367
8368 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
8369 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
8370 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
8371 call accordingly.
8372 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8373
8374 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8375
8376 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
8377 a loop_vec_info.
8378 (vect_set_loop_condition_masked): Update call accordingly.
8379
8380 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8381
8382 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
8383 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
8384 (simple_integer_narrowing): Update call accordingly.
8385 (vectorizable_conversion): Likewise.
8386
8387 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8388
8389 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
8390 (vectorizable_call): Update call accordingly.
8391
8392 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8393
8394 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
8395 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8396 (duplicate_and_interleave): Update call accordingly.
8397 * tree-vect-loop.c (vectorizable_reduction): Likewise.
8398
8399 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8400
8401 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
8402 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
8403 (vect_get_constant_vectors): Update call accordingly.
8404 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
8405
8406 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8407
8408 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
8409 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
8410 (vect_prologue_cost_for_slp_op): Update call accordingly.
8411 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
8412 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
8413 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
8414 (get_mask_type_for_scalar_type): Likewise.
8415 (vect_get_vector_types_for_stmt): Likewise.
8416 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8417 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8418 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
8419 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
8420 (vect_split_statement, vect_convert_input): Likewise.
8421 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
8422 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
8423 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
8424 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
8425 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
8426 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
8427 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
8428 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
8429 (vect_recog_mask_conversion_pattern): Likewise.
8430 (vect_add_conversion_to_pattern): Likewise.
8431 (vect_recog_gather_scatter_pattern): Likewise.
8432 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
8433 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
8434
8435 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8436
8437 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
8438 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
8439 (vect_check_load_store_mask): Update call accordingly.
8440 (vect_get_mask_type_for_stmt): Likewise.
8441 * tree-vect-patterns.c (check_bool_pattern): Likewise.
8442 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8443 (vect_convert_mask_for_vectype): Likewise.
8444
8445 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8446
8447 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8448 a vec_info.
8449 (vect_recog_dot_prod_pattern): Update call accordingly.
8450 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8451 (vect_recog_widen_sum_pattern): Likewise.
8452
8453 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8454
8455 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8456 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8457 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8458 accordingly.
8459
8460 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8461
8462 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8463 get_vectype_for_scalar_type_and_size instead of
8464 get_vectype_for_scalar_type.
8465
8466 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8467
8468 * common.opt (-fcommon): Fix description.
8469
8470 2019-10-20 Jakub Jelinek <jakub@redhat.com>
8471
8472 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8473 * config/i386/i386.c (ix86_pre_reload_split): New function.
8474 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8475 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8476 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8477 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8478 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8479 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8480 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8481 *<shift_insn><dwi>3_doubleword_mask,
8482 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8483 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8484 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8485 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8486 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8487 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8488 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8489 *avx2_<code>v8qiv8si2<mask_name>_2,
8490 *sse4_1_<code>v4qiv4si2<mask_name>_2,
8491 *sse4_1_<code>v4hiv4si2<mask_name>_2,
8492 *avx512f_<code>v8qiv8di2<mask_name>_2,
8493 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8494 *sse4_1_<code>v2hiv2di2<mask_name>_2,
8495 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8496 sse4_2_pcmpistr): Likewise.
8497
8498 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
8499
8500 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8501 now defaults to https.
8502
8503 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
8504
8505 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8506 skip non-zero array accesses.
8507
8508 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8509
8510 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8511 and return a boolean success value. Move the allocation and
8512 initialization of the bb_vec_info to...
8513 (vect_slp_bb_region): ...here. Update call accordingly.
8514 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8515 than in vect_slp_analyze_bb_1.
8516
8517 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8518
8519 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8520 when processing the given datarefs for the first time and
8521 check_datarefs subsequently.
8522 (vect_slp_bb_region): New function, split out of...
8523 (vect_slp_bb): ...here. Don't recompute the region bounds and
8524 dataref sets when retrying with a different vector size.
8525
8526 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8527 Uroš Bizjak <ubizjak@gmail.com>
8528
8529 PR target/92140
8530 * config/i386/predicates.md (int_nonimmediate_operand): New special
8531 predicate.
8532 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8533 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8534 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8535 define_insn_and_split patterns.
8536
8537 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8538
8539 * config/rs6000/rs6000.md: Delete out--of-date comment about
8540 special-casing integer loads.
8541
8542 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8543
8544 * escaped_string.h (escaped_string): New header.
8545 * tree.c (escaped_string): Remove escaped_string class.
8546
8547 2019-10-18 Martin Sebor <msebor@redhat.com>
8548
8549 PR tree-optimization/92157
8550 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8551 compute_string_length to return a negative result.
8552
8553 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8554
8555 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8556 (negvsi3, negvdi3): Delete.
8557 (negdi2_compare): Delete.
8558
8559 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8560
8561 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8562 operations.
8563 (subdi3_compare1): Delete pattern.
8564 (subvsi3_borrow): New insn pattern.
8565 (subvsi3_borrow_imm): Likewise.
8566
8567 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8568
8569 * config/arm/arm.md (subv<mode>4): Delete.
8570 (subvdi4): New expander pattern.
8571 (subvsi4): Likewise. Handle some immediate values.
8572 (subvsi3_intmin): New insn pattern.
8573 (subvsi3): Likewise.
8574 (subvsi3_imm1): Likewise.
8575 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8576 idioms.
8577
8578 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8579
8580 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8581 incoming operands. Early split the calculation into SImode
8582 operations.
8583 (usubvsi3_borrow): New insn pattern.
8584 (usubvsi3_borrow_imm): Likewise.
8585
8586 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8587
8588 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8589 (usubvsi4): New pattern. Allow some immediate values for inputs.
8590 (usubvdi4): New pattern.
8591
8592 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8593
8594 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8595 or second operand of the PLUS inside a DImode equality test to be
8596 sign-extend when selecting CC_Vmode.
8597 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8598 instructions.
8599 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8600 expand patterns.
8601 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8602 (addsi3_cin_vout_0): Likewise.
8603 (adddi3_compareV): Delete.
8604
8605 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8606
8607 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8608 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8609 to transform this back into the summation version when that leads
8610 to smaller code.
8611
8612 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8613
8614 * config/arm/arm.md (addv<mode>4): Delete.
8615 (addvsi4): New pattern. Handle immediate values that the architecture
8616 supports.
8617 (addvdi4): New pattern.
8618 (addsi3_compareV): Rename to ...
8619 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8620 and use COMPARE rather than NE.
8621 (addsi3_compareV_imm): New pattern.
8622 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8623 a signed-overflow check.
8624
8625 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8626
8627 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8628 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8629 CC_ADCmode.
8630 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8631 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8632 with overflow.
8633 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8634 expand patterns.
8635 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8636 (addsi3_cin_cout_imm_insn): Likewise.
8637 (adddi3_compareC): Delete insn.
8638 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8639
8640 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8641
8642 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8643 * (uaddv<mode>4): Delete expansion pattern.
8644 (uaddvsi4): New pattern.
8645 (uaddvdi4): Likewise.
8646 (addsi3_compareC): Delete pattern, change callers to use
8647 addsi3_compare_op1.
8648 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8649 reduce the number of alternatives and re-work type attribute handling.
8650 (addsi3_compare_op2): Clean up constraints to reduce the number of
8651 alternatives and re-work type attribute handling.
8652 (compare_addsi2_op0): Likewise.
8653 (compare_addsi2_op1): Likewise.
8654
8655 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8656
8657 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8658 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8659 for DImode operands.
8660 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8661 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8662 CC_NCVmode.
8663 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8664 (arm_cmpdi_unsigned): Delete.
8665
8666 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8667
8668 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8669 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8670 unchanged only if that will be cheaper.
8671 (arm_select_cc_mode): Recognize a swapped comparison that will
8672 be regenerated using RSBS or RSCS. Relax restriction on selecting
8673 CC_RSBmode.
8674 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8675 a constant.
8676 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8677 is CC_RSBmode.
8678 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8679 as CCmode.
8680 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8681 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8682
8683 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8684
8685 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8686 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8687 need these modes.
8688 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8689 of EQ, NE, LT, GE, LTU and GEU.
8690 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8691 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8692 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8693 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8694 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8695
8696 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8697
8698 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8699 operand 2.
8700 (cstoredi4): Similarly, but for operand 3.
8701 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8702 canonicalization of unsigned compares with a constant on Arm.
8703 Prefer using const+1 and adjusting the comparison over swapping the
8704 operands whenever the original constant was not valid.
8705 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8706 register here.
8707 (arm_validize_comparison): Do not force invalid DImode operands to
8708 registers here.
8709
8710 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8711
8712 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8713 return CC_Zmode if comparing against a constant where one word is
8714 zero.
8715 (arm_gen_compare_reg): Split DImode handling to ...
8716 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8717 against simple constants.
8718 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8719
8720 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8721
8722 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8723 (rsbsi3_carryin_shift_alt): Likewise.
8724
8725 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8726
8727 * config/arm/arm.md (negscc_borrow): New pattern.
8728 (mov_negscc): Don't split if the insn would match negscc_borrow.
8729 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8730 (thumb2_mov_negscc_strict_it): Likewise.
8731
8732 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8733
8734 * config/arm/arm.c (arm_insn_cost): New function.
8735 (TARGET_INSN_COST): Override default definition.
8736
8737 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8738
8739 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8740 borrow operations.
8741
8742 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8743
8744 * config/arm/arm.c (strip_carry_operation): New function.
8745 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8746 for SImode.
8747
8748 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8749
8750 * config/arm/predicates.md (arm_carry_operation): New special
8751 predicate.
8752 * config/arm/iterators.md (LTUGEU): Delete iterator.
8753 (cnb): Delete code attribute.
8754 (optab): Delete ltu and geu elements.
8755 * config/arm/arm.md (addsi3_carryin): Renamed from
8756 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8757 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8758 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8759 (addsi3_carryin_clobercc): Similarly.
8760 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8761 Thumb2 state.
8762
8763 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8764
8765 * config/arm/arm.md (arm_subdi3): Delete insn.
8766 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8767
8768 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8769
8770 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8771 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8772 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8773 return CC_RSBmode.
8774 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8775 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8776 expand.
8777 (subdi3): Rewrite to early-expand the sub-operations.
8778 (rsb_im_compare): New pattern.
8779 (negdi2): Delete.
8780 (negdi2_insn): Delete.
8781 (arm_negsi2): Correct type attribute to alu_imm.
8782 (negsi2_0compare): New insn pattern.
8783 (negsi2_carryin): New insn pattern.
8784
8785 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8786
8787 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8788 operand 2.
8789
8790 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8791
8792 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8793 to match canonical form.
8794
8795 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8796
8797 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8798 (extend<mode>di2): Likewise.
8799
8800 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8801
8802 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8803 * config/arm/arm.c (arm_decompose_di_binop): New function.
8804 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8805 If not generating Thumb-1 code, decompose the operation into 32-bit
8806 pieces.
8807 * add0si_carryin_<optab>: New pattern.
8808
8809 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8810
8811 * arm.md (adddi3): Only accept register operands.
8812 (arm_adddi3): Convert to simple insn with no split. Do not accept
8813 constants.
8814 (adddi_sesidi_di): Delete patern.
8815 (adddi_zesidi_di): Likewise.
8816 (uaddv<mode>4): Use LTU as condition for branch.
8817 (adddi3_compareV): Convert to simple insn with no split.
8818 (addsi3_compareV_upper): Delete pattern.
8819 (adddi3_compareC): Convert to simple insn with no split. Correct
8820 flags setting expression.
8821 (addsi3_compareC_upper): Delete pattern.
8822 (addsi3_compareC): Correct flags setting expression.
8823 (subdi3_compare1): Convert to simple insn with no split.
8824 (subsi3_carryin_compare): Delete pattern.
8825 (arm_subdi3): Convert to simple insn with no split.
8826 (subdi_zesidi): Delete pattern.
8827 (subdi_di_sesidi): Delete pattern.
8828 (subdi_zesidi_di): Delete pattern.
8829 (subdi_sesidi_di): Delete pattern.
8830 (subdi_zesidi_zesidi): Delete pattern.
8831 (negvdi3): Use s_register_operand.
8832 (negdi2_compare): Convert to simple insn with no split.
8833 (negdi2_insn): Likewise.
8834 (negsi2_carryin_compare): Delete pattern.
8835 (negdi_zero_extendsidi): Delete pattern.
8836 (arm_cmpdi_insn): Convert to simple insn with no split.
8837 (negdi2): Don't call gen_negdi2_neon.
8838 * config/arm/neon.md (adddi3_neon): Delete pattern.
8839 (subdi3_neon): Delete pattern.
8840 (negdi2_neon): Delete pattern.
8841 (splits for negdi2_neon): Delete splits.
8842
8843 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8844
8845 PR middle-end/92153
8846 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8847 than after it.
8848
8849 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8850
8851 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8852 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8853 new multilib variants and new mappings.
8854
8855 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8856
8857 PR target/86040
8858 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8859
8860 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8861 Richard Sandiford <richard.sandiford@arm.com>
8862
8863 PR target/86753
8864 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8865 and define hashmap traits for it.
8866 (loop_vec_info::scalar_cond_masked_set): New member.
8867 (vect_record_loop_mask): Adjust prototype.
8868 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8869 Implement method.
8870 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8871 vect_record_loop_mask.
8872 (vectorizable_live_operation): Likewise.
8873 (vect_record_loop_mask): New param scalar_mask. Add entry
8874 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8875 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8876 Pass it as last arg to vect_record_loop_mask.
8877 (vectorizable_call): Pass scalar_mask as last arg to
8878 vect_record_loop_mask.
8879 (vectorizable_store): Likewise.
8880 (vectorizable_load): Likewise.
8881 (vectorizable_condition): Check if another part of vectorized code
8882 applies loop_mask to condition or to it's inverse, and if yes,
8883 apply loop_mask to result of vector comparison.
8884
8885 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8886
8887 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8888
8889 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8890
8891 PR tree-optimization/92056
8892 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8893 before calling compute_builtin_object_size.
8894
8895 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8896
8897 PR target/65342
8898 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8899 (movdi_low_st): Delete.
8900 * config/rs6000/rs6000.c
8901 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8902 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8903 * config/rs6000/rs6000.md (movsi_low): Delete.
8904
8905 2019-10-17 Jason Merrill <jason@redhat.com>
8906
8907 * gimplify.h (get_initialized_tmp_var): Add default argument to
8908 post_p.
8909 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8910 NULL post_p argument.
8911 * targhooks (std_gimplify_va_arg_expr): Likewise.
8912
8913 2019-10-17 Richard Biener <rguenther@suse.de>
8914
8915 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8916 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8917 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8918 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8919 * tree-vect-loop.c (vect_is_simple_reduction): Set
8920 STMT_VINFO_REDUC_CODE.
8921 (vectorizable_reduction): Remove dead and redundant code, use
8922 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8923
8924 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8925
8926 Fix breakage introduced by r276985.
8927
8928 * config/avr/avr.c (avr_option_override): Remove set of
8929 PARAM_ALLOW_STORE_DATA_RACES.
8930 * common/config/avr/avr-common.c (avr_option_optimization_table)
8931 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8932
8933 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8934
8935 * config/i386/i386.h (processor_costs): Add clear_ratio.
8936 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8937 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8938 of 6 and move_ratio in all cost models.
8939
8940 2019-10-17 Richard Biener <rguenther@suse.de>
8941
8942 * tree-vect-loop.c (check_reduction_path): Compute reduction
8943 operation here.
8944 (vect_is_simple_reduction): Remove special-case of single-stmt
8945 reduction path detection.
8946
8947 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8948
8949 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8950
8951 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8952
8953 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8954 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8955 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8956 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8957 New combine patterns.
8958 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8959 above.
8960 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8961
8962 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8963
8964 * tree-vrp.c (value_range_base::dump): Display +INF for both
8965 pointers and integers when appropriate.
8966
8967 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8968
8969 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8970 when to use versioning threshold.
8971
8972 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8973
8974 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8975 outlined code from ...
8976 (vect_analyze_loop_2): ... here.
8977
8978 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8979
8980 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8981 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8982 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8983
8984 2019-10-17 Richard Biener <rguenther@suse.de>
8985
8986 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8987 (vect_is_simple_reduction): Move all validity checks ...
8988 (vectorizable_reduction): ... here. Compute whether we
8989 need a fold-left reduction here.
8990 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8991 both overloads, check needs_fold_left_reduction_p directly.
8992 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8993
8994 2019-10-17 Richard Biener <rguenther@suse.de>
8995
8996 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8997 TARGET_MEM_REF creation.
8998
8999 2019-10-17 Richard Biener <rguenther@suse.de>
9000
9001 PR tree-optimization/92129
9002 * tree-vect-loop.c (vectorizable_reduction): Also fail
9003 on GIMPLE_SINGLE_RHS.
9004
9005 2019-10-17 Jakub Jelinek <jakub@redhat.com>
9006
9007 PR tree-optimization/92056
9008 * tree-object-size.c (cond_expr_object_size): Return early if then_
9009 processing resulted in unknown size.
9010
9011 PR tree-optimization/92115
9012 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
9013 temporary if it could trap.
9014
9015 2019-10-17 Richard Biener <rguenther@suse.de>
9016
9017 PR debug/91887
9018 * dwarf2out.c (gen_formal_parameter_die): Also try to match
9019 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
9020
9021 2019-10-16 Jakub Jelinek <jakub@redhat.com>
9022
9023 * tree-ssa-strlen.c (maybe_invalidate): Use
9024 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
9025
9026 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
9027 Jim Wilson <jimw@sifive.com>
9028
9029 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
9030 regs to SIBCALL_REGS.
9031 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
9032 passing regs to SIBCALL_REGS.
9033
9034 2019-10-16 Martin Sebor <msebor@redhat.com>
9035
9036 PR tree-optimization/83821
9037 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
9038 the length of a string when available.
9039 (handle_builtin_memset) Add argument.
9040 (handle_store, strlen_check_and_optimize_call): Same.
9041 (check_and_optimize_stmt): Same. Pass it to callees.
9042
9043 2019-10-16 Martin Sebor <msebor@redhat.com>
9044
9045 PR tree-optimization/91996
9046 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
9047 information.
9048 (compare_nonzero_chars): Add an overload.
9049 (count_nonzero_bytes): Add an argument. Call overload above.
9050 Handle non-constant lengths in some range.
9051 (handle_store): Add an argument.
9052 (check_and_optimize_stmt): Pass an argument to handle_store.
9053
9054 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
9055
9056 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
9057
9058 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9059
9060 * config/mips/mips.c (mips_expand_builtin_insn): Force the
9061 operands which correspond to the same input-output register to
9062 have the same pseudo assigned to them.
9063
9064 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
9065
9066 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
9067
9068 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
9069
9070 * config/aarch64/aarch64.c (aarch64_classify_symbol):
9071 Apply reasonable limit to symbol offsets.
9072
9073 2019-10-16 Richard Biener <rguenther@suse.de>
9074
9075 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
9076 (vect_is_simple_reduction): Delay checking to
9077 vectorizable_reduction and relax the checking.
9078 (vectorizable_reduction): Check we have a simple use. Check
9079 for bogus condition reductions.
9080 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
9081 are looking at the last stmt in a pattern sequence when
9082 filling in backedge PHI values.
9083
9084 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
9085 Jiufu Guo <guojiufu@linux.ibm.com>
9086
9087 PR target/70010
9088 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
9089 the callee explicitly disables some isa_flags the caller is using.
9090
9091 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9092
9093 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
9094
9095 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9096
9097 * genmodes.c (mode_data::order): New field.
9098 (blank_mode): Update accordingly.
9099 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
9100 (make_vector_modes): Likewise.
9101 (VECTOR_MODES): Update use accordingly.
9102 (cmp_modes): Sort by the new order field ahead of sorting by size.
9103 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
9104 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
9105 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
9106 (aarch64_classify_vector_mode): Handle the new partial modes.
9107 (aarch64_vl_bytes): New function.
9108 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
9109 when counting the number of registers in an SVE mode.
9110 (aarch64_class_max_nregs): Likewise.
9111 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
9112 in registers yet.
9113 (aarch64_classify_address): Treat partial vectors analogously
9114 to full vectors.
9115 (aarch64_print_address_internal): Consolidate the printing of
9116 MUL VL addresses, using aarch64_vl_bytes as the number of
9117 bytes represented by "VL".
9118 (aarch64_vector_mode_supported_p): Reject partial vector modes.
9119
9120 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9121
9122 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
9123 rather than known_lt when choosing frame layouts.
9124
9125 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9126
9127 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
9128 that all the adjustments add up to the full frame size.
9129 Use crtl->outgoing_args_size directly as the final adjustment
9130 where appropriate.
9131
9132 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9133
9134 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
9135 "frame" reference instead of always referring directly to
9136 "cfun->machine->frame".
9137
9138 2019-10-16 Richard Biener <rguenther@suse.de>
9139
9140 PR tree-optimization/92119
9141 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
9142 against missing bswap lhs.
9143
9144 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9145
9146 PR middle-end/92033
9147 * poly-int.h (constant_lower_bound_with_limit): New function.
9148 (constant_upper_bound_with_limit): Likewise.
9149 * doc/poly-int.texi: Document them.
9150 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
9151 into the worst-case INTEGER_CST bounds.
9152
9153 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
9154
9155 PR ipa/91088
9156 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
9157 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
9158 * ipa-predicat.h (struct expr_eval_op): New struct.
9159 (expr_eval_ops): New typedef.
9160 (struct condition): Add type and param_ops fields, remove size field.
9161 (add_condition): Replace size parameter with type parameter, add
9162 param_ops parameter.
9163 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
9164 (predicate::add_clause): Add comparisons on type and param_ops.
9165 (dump_condition): Add debug dump for param_ops.
9166 (remap_after_inlining): Adjust call arguments to add_condition.
9167 (add_condition): Replace size parameter with type parameter, add
9168 param_ops parameter. Unshare constant value used in conditions.
9169 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
9170 parameter expressions using param_ops.
9171 (decompose_param_expr): New function.
9172 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
9173 to replace call to unmodified_parm_or_parm_agg_item.
9174 (set_switch_stmt_execution_predicate): Likewise.
9175 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
9176 with type.
9177 (inline_read_section): Read param_ops from summary stream.
9178 (ipa_fn_summary_write): Write param_ops to summary stream.
9179
9180 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9181
9182 PR rtl-optimization/92107
9183 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
9184 expression written.
9185
9186 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9187
9188 * config/darwin.c: Update description of fix and continue.
9189
9190 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9191
9192 * config/darwin.c (darwin_binds_local_p): Update to call
9193 default_binds_local_p_3 () directly. amend comments.
9194
9195 2019-10-15 Richard Biener <rguenther@suse.de>
9196
9197 * lto-streamer-out.c (lto_variably_modified_type_p): New.
9198 (tree_is_indexable): Use it.
9199 * tree-streamer-out.c (pack_ts_type_common_value_fields):
9200 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
9201 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
9202
9203 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9204
9205 * config/msp430/msp430.md (zero_extendqipsi2): New.
9206 (zero_extendqisi2): Optimize case where src register and base dst
9207 register are the same.
9208 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
9209 (zero_extendpsisi2): Optimize r->m case.
9210 Add unnamed insn patterns to catch insns combine searches for when
9211 optimizing pointer manipulation.
9212
9213 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9214
9215 * config/msp430/msp430.md: Group zero_extend* insns together.
9216
9217 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9218
9219 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
9220 constraint.
9221 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
9222 POST_INC.
9223 (msp430_subreg): Likewise.
9224 (msp430_split_addsi): Likewise.
9225 (msp430_print_operand_addr): Likewise.
9226 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
9227 (USE_STORE_POST_INCREMENT): Define.
9228 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
9229 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
9230 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
9231 (msp430_general_dst_operand): New.
9232 (msp430_general_dst_nonv_operand): New.
9233 (msp430_nonsubreg_operand): Remove.
9234 (msp430_nonsubreg_dst_operand): New.
9235 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
9236 of defunct msp430_nonsubreg_operand.
9237 (msp430_nonsubregnonpostinc_or_imm_operand): New.
9238
9239 2019-10-15 Richard Biener <rguenther@suse.de>
9240
9241 PR tree-optimization/91929
9242 * tree-ssa-pre.c (pre_expr_d::loc): New member.
9243 (get_or_alloc_expr_for_name): Initialize it.
9244 (get_or_alloc_expr_for_constant): Likewise.
9245 (phi_translate_1): Copy it.
9246 (create_expression_by_pieces): Use the original location
9247 of the expression for the inserted stmt.
9248 (compute_avail): Record the location of the stmt for the
9249 expressions created.
9250
9251 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
9252
9253 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
9254 before using tree_to_uhwi.
9255
9256 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
9257
9258 * config/s390/s390.md: Run %a0:DI splitters only after reload.
9259
9260 2019-10-15 Richard Biener <rguenther@suse.de>
9261
9262 PR tree-optimization/92094
9263 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
9264 do not adjust the reduction definition def type.
9265 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
9266 defines the latch argument of the PHI.
9267
9268 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
9269
9270 PR target/92035
9271 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
9272 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
9273 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
9274 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
9275 _mm_maskz_roundscale_round_sd): New intrinsics.
9276 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
9277 __builtin_ia32_rndscales?_mask_round builtins instead of
9278 __builtin_ia32_rndscales?_round.
9279 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
9280 __builtin_ia32_rndscalesd_round): Remove.
9281 (__builtin_ia32_rndscaless_mask_round,
9282 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
9283 * config/i386/sse.md
9284 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
9285 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
9286 ... this, adjust and add subst atrributes to make it maskable.
9287
9288 2019-10-15 Richard Biener <rguenther@suse.de>
9289
9290 PR middle-end/92046
9291 * common.opt (fallow-store-data-races): New.
9292 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
9293 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
9294 * doc/invoke.texi (fallow-store-data-races): Document.
9295 (--param allow-store-data-races): Remove docs.
9296 * opts.c (default_options_table): Enable -fallow-store-data-races
9297 at -Ofast.
9298 (default_options_optimization): Do not enable --param
9299 allow-store-data-races at -Ofast.
9300 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
9301 instead of PARAM_ALLOW_STORE_DATA_RACES.
9302 * tree-ssa-loop-im.c (execute_sm): Likewise.
9303
9304 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9305
9306 PR tree-optimization/92085
9307 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
9308 instead of calling it unconditionally after
9309 delete_dead_or_redundant_assignment and fix indentation.
9310
9311 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9312
9313 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
9314 TARGET_VFP_DOUBLE.
9315 (*fmsub<SDF:mode>4): Likewise.
9316 *fnmsub<SDF:mode>4): Likewise.
9317 (*fnmadd<SDF:mode>4): Likewise.
9318
9319 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
9320
9321 * doc/tree-ssa.texi: Update renamed macro name.
9322
9323 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9324
9325 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
9326 vector constants.
9327
9328 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
9329
9330 * config/darwin.c: Use unsigned ints for the picbase label
9331 counters, initialise the vars explicitly.
9332 (update_pic_label_number_if_needed): Move a variable declaration
9333 to where it's needed.
9334 (machopic_output_function_base_name): Use a more strict checking
9335 assert, and and unsigned int for the picbase label counter.
9336 (machopic_get_function_picbase): Likewise.
9337
9338 2019-10-14 Richard Biener <rguenther@suse.de>
9339
9340 PR middle-end/92046
9341 * dse.c (scan_insn): Use param max_active_local_stores.
9342 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
9343 based on optimization level.
9344 * loop-invariant.c (move_loop_invariants): Adjust
9345 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
9346 * opts.c (default_options_optimization): Do not adjust
9347 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
9348 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
9349
9350 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9351
9352 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
9353
9354 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9355
9356 * config/arm/arm.c (arm_option_override): Don't override sched
9357 pressure algorithm.
9358
9359 2019-10-14 Richard Biener <rguenther@suse.de>
9360
9361 PR tree-optimization/92069
9362 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
9363 cycles do not set vect_nested_cycle on the latch definition.
9364
9365 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
9366
9367 * function-abi.h (expr_callee_abi): Declare.
9368 * function-abi.cc (expr_callee_abi): New function.
9369
9370 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
9371
9372 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
9373 into [1,MAX].
9374 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
9375 non-zero being represented as [1,MAX].
9376
9377 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
9378
9379 * tree-sra.c (dump_access): Add missing braces.
9380
9381 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9382
9383 * config/darwin.c (machopic_indirection_name): Rework the
9384 function to emit linker-visible symbols only for indirections
9385 in the data section. Clean up the code and update comments.
9386
9387 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9388
9389 * config/darwin.c (machopic_indirect_data_reference): Remove
9390 redundant code.
9391
9392 2019-10-13 Nathan Sidwell <nathan@acm.org>
9393
9394 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
9395
9396 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9397
9398 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
9399 c99_runtime.
9400
9401 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
9402
9403 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
9404 so non-virutal are before virutals.
9405 (output_function): Avoid body modifications.
9406
9407 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9408
9409 * config/pa/pa.c (pa_output_call): Load descriptor address to register
9410 %r22. Load function address before global pointer.
9411 (pa_attr_length_indirect_call): Adjust length of inline versions of
9412 $$dyncall.
9413 (pa_output_indirect_call): Remove fast inline version of $$dyncall
9414 before normal cases. Update inline $$dyncall sequences to preserve
9415 function descriptor address in register %r22.
9416 (TRAMPOLINE_CODE_SIZE): Adjust.
9417 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
9418 register %r22 contains trampoline address.
9419 (pa_trampoline_init): Adjust offsets.
9420 (pa_trampoline_adjust_address): Likewise.
9421 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
9422
9423 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9424
9425 PR target/67183
9426 * config/darwin.c (machopic_indirection): New field to flag
9427 non-lazy-symbol-pointers in the data section.
9428 (machopic_indirection_name): Compute if an indirection should
9429 appear in the data section.
9430 (machopic_output_data_section_indirection): New callback split
9431 from machopic_output_indirection.
9432 (machopic_output_stub_indirection): Likewise.
9433 (machopic_output_indirection): Retain the code for non-lazy
9434 symbol pointers in their regular section.
9435 (machopic_finish): Use the new callbacks to order the indirection
9436 output.
9437
9438 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9439
9440 * config/darwin-protos.h (machopic_finish): Delete.
9441 * config/darwin.c (machopic_finish): Make static.
9442
9443 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9444
9445 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9446 sections when building kernel extension code.
9447
9448 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
9449
9450 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9451 later standard."
9452
9453 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9454
9455 * config/pa/pa.c (pa_option_override): Remove trailing comma
9456 from warning.
9457
9458 2019-10-12 Jakub Jelinek <jakub@redhat.com>
9459
9460 PR middle-end/92063
9461 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9462 <case VEC_COND_EXPR>: Return false with *handled = false.
9463 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9464 recursing on the first operand.
9465 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9466 instead of tree_could_trap_p.
9467 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9468
9469 2019-10-11 Jim Wilson <jimw@sifive.com>
9470
9471 PR rtl-optimization/91860
9472 * combine.c (subst): If new_rtx is a constant, also check for
9473 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9474
9475 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
9476
9477 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9478 INTVAL when calling store_bit_field.
9479
9480 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
9481
9482 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9483 size.
9484
9485 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9486
9487 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9488 vectorizable_live_operation.
9489 (vectorizable_live_operation): Adjust parameters.
9490 * tree-vect-stmts.c (vect_init_vector,
9491 vect_gen_widened_results_half): Fix typo in function comment.
9492 (can_vectorize_live_stmts): Adjust function comment.
9493 Adjust parameters. Adjust call to vectorizable_live_operation.
9494 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9495 (vect_transform_stmt): Adjust function comment. Adjust call to
9496 can_vectorize_live_stmts.
9497 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9498
9499 2019-10-11 Richard Biener <rguenther@suse.de>
9500
9501 PR tree-optimization/90883
9502 PR tree-optimization/91091
9503 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9504 alias-sets both for recording VN table entries and continuing
9505 walking after translating through copies. Handle same-sized
9506 reads from SSA names by returning the plain SSA name.
9507 (eliminate_dom_walker::eliminate_stmt): Properly handle
9508 non-size precision stores in redundant store elimination.
9509
9510 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9511
9512 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9513 (ggc_collect): Dump later to not interfere with release_page dump.
9514 (ggc_trim): New function.
9515 * ggc-none.c (ggc_trim): New.
9516 * ggc.h (ggc_trim): Declare.
9517
9518 2019-10-11 Richard Biener <rguenther@suse.de>
9519
9520 PR tree-optimization/92066
9521 PR tree-optimization/92046
9522 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9523 Fix bogus cost model check.
9524
9525 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9526
9527 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9528 (LANG_HOOKS_DECLS): Add it.
9529 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9530 update comment for omp_is_optional_argument.
9531 * omp-general.c (omp_is_allocatable_or_ptr): New.
9532 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9533 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9534 Fortran's optional arguments and allocatable/pointer scalars
9535 with use_device_addr.
9536
9537 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9538
9539 PR target/77918
9540 * config/s390/2827.md: Add new opcodes.
9541 * config/s390/2964.md: Likewise.
9542 * config/s390/3906.md: Likewise.
9543 * config/s390/8561.md: Likewise.
9544 * config/s390/s390-builtins.def (s390_vfchesb): Use
9545 the new vec_cmpgev4sf_quiet_nocc.
9546 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9547 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9548 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9549 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9550 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9551 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9552 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9553 * config/s390/s390-modes.def (CCSFPS): New mode.
9554 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9555 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9556 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9557 (s390_expand_vec_compare): Use non-signaling patterns where
9558 necessary.
9559 (s390_reverse_condition): Support CCSFPS.
9560 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9561 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9562 (asm_fcmp_op): Likewise.
9563 (*smaxv2df3_vx): Use pattern for quiet comparison.
9564 (*sminv2df3_vx): Likewise.
9565 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9566 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9567 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9568 (vec_cmplt<mode>_quiet_nocc): New expander.
9569 (vec_cmpge<mode>_quiet_nocc): New pattern.
9570 (vec_cmple<mode>_quiet_nocc): New expander.
9571 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9572 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9573 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9574 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9575 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9576 (vec_cmpungt<mode>): New expander.
9577 (vec_cmpunge<mode>): Likewise.
9578 (vec_cmpuneq<mode>): Use quiet patterns.
9579 (vec_cmpltgt<mode>): Allow only on z14+.
9580 (vec_cmpordered<mode>): Use quiet patterns.
9581 (vec_cmpunordered<mode>): Likewise.
9582 (VEC_CMP_EXPAND): Add ungt and unge.
9583
9584 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9585
9586 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9587 parameter.
9588 * lto-streamer-out.c: Include tree-dfa.h.
9589 (output_cfg): Do not use cfun.
9590 (lto_prepare_function_for_streaming): New.
9591 (output_function): Do not push cfun; do not initialize loop optimizer.
9592 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9593 * passes.c (ipa_write_summaries): Use it.
9594 (ipa_write_optimization_summaries): Do not modify bodies.
9595 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9596 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9597 * tree-ssa-dse.c (pass_dse::execute): Update use of
9598 renumber_gimple_stmt_uids.
9599 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9600
9601 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9602
9603 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9604 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9605
9606 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9607
9608 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9609 macros.
9610 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9611 Also define DFP macros for these conditions.
9612 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9613 DEC128_SUBNORMAL_MIN): Do not define.
9614 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9615 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9616
9617 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9618 Sandra Loosemore <sandra@codesourcery.com>
9619
9620 PR middle-end/26241
9621 * doc/lto.texi (IPA): Reference to the IPA passes.
9622 * doc/passes.texi (Pass manager): Add node IPA passes and
9623 description for each IPA pass.
9624
9625 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9626
9627 * ipa-reference.c: Do not include splay-tree.h
9628 (reference_vars_to_consider): Turn to hash map.
9629 (get_static_name, ipa_init, analyze_function, propagate,
9630 stream_out_bitmap, ipa_reference_write_optimization_summary,
9631 ipa_reference_write_optimization_summary): Update.
9632
9633 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9634
9635 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9636
9637 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9638
9639 * config/darwin.c: Lookup Objective C metadata and force indirection
9640 for IVAR refs.
9641
9642 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9643
9644 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9645 addresses.
9646 (mem_operand_gpr): Add check for prefixed addresses.
9647 (mem_operand_ds_form): Add check for prefixed addresses.
9648 (rs6000_legitimate_offset_address_p): If we support prefixed
9649 addresses, check for a 34-bit offset instead of 16-bit.
9650 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9651 Do not allow load/store with update if the address is prefixed.
9652 (rs6000_mode_dependent_address): If we support prefixed
9653 addresses, check for a 34-bit offset instead of 16-bit.
9654
9655 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9656
9657 PR target/77918
9658 * config/s390/vector.md (vcond_comparison_operator): New
9659 predicate.
9660 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9661
9662 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9663
9664 PR 87488
9665 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9666 -D.
9667 * configure.ac (--with-documentation-root-url): New option.
9668 * configure: Regenerate.
9669 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9670 option URL, add it as a new string field of the diagnostic option.
9671 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9672 (print_option_information): If get_option_url is non-NULL, call
9673 it, and if the result is non-NULL, potentially emit an escape
9674 sequence to markup the option text with the resulting URL.
9675 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9676 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9677 example of JSON output.
9678 * opts-diagnostic.h (get_option_url): New decl.
9679 * opts.c (get_option_url): New function.
9680 * toplev.c (general_init): Initialize the get_option_url callback.
9681
9682 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9683
9684 PR 87488
9685 * common.opt (fdiagnostics-urls=): New option.
9686 (diagnostic-url.h): Add SourceInclude.
9687 (diagnostic_url_rule): New enum.
9688 * diagnostic-color.c: Include "diagnostic-url.h".
9689 (diagnostic_urls_enabled_p): New function.
9690 * diagnostic-url.h: New file.
9691 * diagnostic.c: Include "diagnostic-url.h".
9692 (diagnostic_urls_init): New function.
9693 * diagnostic.h (diagnostic_urls_init): New decl.
9694 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9695 -fdiagnostics-urls to the list.
9696 (-fdiagnostics-urls): New option.
9697 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9698 (driver::global_initializations): Call diagnostic_urls_init.
9699 * opts-global.c (init_options_once): Likewise.
9700 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9701 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9702 show_urls.
9703 (pp_begin_url): New function.
9704 (pp_end_url): New function.
9705 (selftest::test_urls): New selftest.
9706 (selftest::pretty_print_c_tests): Call it.
9707 * pretty-print.h (pretty_printer::show_urls): New field.
9708 (pp_begin_url): New decl.
9709 (pp_end_url): New decl.
9710
9711 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9712
9713 PR target/92022
9714 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9715
9716 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9717
9718 PR target/88630
9719 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9720 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9721 also for TARGET_FPU_SH4_300.
9722 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9723 TARGET_SH4_300.
9724 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9725 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9726 (*negsf2_i): Split into ...
9727 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9728 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9729 (**abssf2_i): Split into ...
9730 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9731 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9732 (*negdf2_i): Split into ...
9733 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9734 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9735 (**abssf2_i): Split into ...
9736 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9737
9738 2019-10-10 Richard Biener <rguenther@suse.de>
9739
9740 PR middle-end/92046
9741 * opts.c (finish_options): Do not influence global --params
9742 from options that are adjustable per function.
9743 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9744 Apply --param adjustment based on active cost-model.
9745 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9746 further store-sinking when vectorization or if-conversion
9747 are not enabled.
9748
9749 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9750
9751 PR middle-end/92037
9752 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9753 rather than ggc_alloc_cleared to alloc symbol table.
9754 * toplev.c (general_init): Likewise.
9755 * cgraph.h (symbol_table): Explicitly construct every field.
9756
9757 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9758
9759 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9760 (PF_Z15): ... this.
9761 * config.gcc: Add z15 as option for --with-arch and --with-tune
9762 configure switches.
9763 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9764 error reporting for unsupported builtins.
9765 * config/s390/s390-opts.h (enum processor_type): Rename
9766 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9767 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9768 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9769 Likewise.
9770 * config/s390/s390-builtins.def: Likewise.
9771 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9772 (s390_expand_builtin): Add missing check for unsupported builtins.
9773 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9774 (s390_rtx_costs): Likewise.
9775 (s390_get_sched_attrmask): Rename arch13 to z15.
9776 (s390_get_unit_mask): Likewise.
9777 (s390_is_fpd): Likewise.
9778 (s390_is_fxd): Likewise.
9779 * config/s390/s390.h (enum processor_flags): Likewise.
9780 * config/s390/s390.md: Likewise.
9781 * config/s390/vector.md: Likewise.
9782 * config/s390/vx-builtins.md: Likewise.
9783 * config/s390/s390.opt: Add z15 to processor_type value.
9784
9785 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9786
9787 PR target/91035
9788 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9789 prototype.
9790 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9791 ("split_stack_data", "split_stack_call")
9792 ("split_stack_call_<mode>", "split_stack_cond_call")
9793 ("split_stack_cond_call_<mode>"): Remove.
9794 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9795 insn definition.
9796 * config/s390/s390.c (s390_output_split_stack_data): New function.
9797 (s390_expand_split_stack_prologue): Use the merged expander.
9798
9799 2019-10-09 Martin Sebor <msebor@redhat.com>
9800
9801 PR tree-optimization/90879
9802 * builtins.c (check_access): Avoid using maxbound when null.
9803 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9804 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9805 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9806 conditional.
9807 (get_range_strlen): Overwrite initial maxbound when non-null.
9808 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9809 changes.
9810 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9811 (used_only_for_zero_equality): New function.
9812 (handle_builtin_memcmp): Call it.
9813 (determine_min_objsize): Return an integer instead of tree.
9814 (get_len_or_size, strxcmp_eqz_result): New functions.
9815 (maybe_warn_pointless_strcmp): New function.
9816 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9817 between a longer string and a smaller array.
9818 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9819
9820 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9821
9822 * config/darwin.c (darwin_override_options): Make the check for
9823 Objective-C ABI version more specific for 64bit code.
9824
9825 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9826
9827 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9828 indicate that the new symbol is an indirection.
9829 (machopic_indirect_call_target): Likewise.
9830 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9831 (MACHO_SYMBOL_INDIRECTION_P): New.
9832 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9833
9834 2019-10-08 Jason Merrill <jason@redhat.com>
9835
9836 * doc/invoke.texi: Document -fconcepts-ts.
9837
9838 2019-10-09 Richard Biener <rguenther@suse.de>
9839
9840 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9841 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9842
9843 2019-10-08 Richard Biener <rguenther@suse.de>
9844
9845 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9846 (_stmt_vec_info::force_single_cycle): Likewise.
9847 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9848 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9849 * tree-vect-loop.c (vectorizable_reduction): Set
9850 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9851 (vect_transform_reduction): Use them to remove redundant code.
9852 (vect_transform_cycle_phi): Likewise.
9853
9854 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9855
9856 PR tree-optimization/90836
9857 * match.pd (popcount): New pattern.
9858
9859 2019-10-08 Martin Sebor <msebor@redhat.com>
9860
9861 PR middle-end/92026
9862 PR middle-end/92014
9863 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9864 again once nbytes has been set. Set the access size when not yet set.
9865
9866 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9867
9868 * config/darwin.c (machopic_select_section): Remove dead code for
9869 old Objective-C section selection method, replace with unreachable.
9870
9871 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9872
9873 * config/darwin.c (machopic_indirect_data_reference): Check for
9874 required indirections before making direct access to defined
9875 values.
9876 (machopic_output_indirection): Place the indirected pointes for
9877 required indirections into the non-lazy symbol pointers section.
9878 (darwin_encode_section_info):
9879 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9880 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9881
9882 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9883
9884 PR target/91994
9885 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9886 instead of ALL_SSE_REG to check if function call preserves some
9887 256-bit SSE registers.
9888
9889 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9890
9891 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9892 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9893 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9894
9895 2019-10-08 Richard Biener <rguenther@suse.de>
9896
9897 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9898 (_stmt_vec_info::is_reduc_info): Add.
9899 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9900 (vectorizable_condition): Remove.
9901 (vectorizable_shift): Likewise.
9902 (vectorizable_reduction): Adjust.
9903 (info_for_reduction): New.
9904 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9905 (vect_analyze_scalar_cycles_1): ... here.
9906 (vect_analyze_loop_operations): Adjust.
9907 (needs_fold_left_reduction_p): Simplify for single caller.
9908 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9909 for nested cycles not part of double reductions.
9910 (vect_model_reduction_cost): Pass in the reduction type.
9911 (info_for_reduction): New function.
9912 (vect_create_epilog_for_reduction): Use it, access reduction
9913 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9914 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9915 (vectorize_fold_left_reduction): Remove pointless assert.
9916 (vectorizable_reduction): Analyze the full reduction when
9917 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9918 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9919 stmt code-generation to vectorizable_* in most cases. Verify
9920 code-generation only for cases handled by
9921 vect_transform_reductuon.
9922 (vect_transform_reduction): Use info_for_reduction to get at
9923 reduction meta. Simplify.
9924 (vect_transform_cycle_phi): Likewise.
9925 (vectorizable_live_operation): Likewise.
9926 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9927 at the PHI node for STMT_VINFO_REDUC_TYPE.
9928 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9929 longer necessary code.
9930 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9931 (vectorizable_condition): Likewise. Get at reduction related
9932 info via info_for_reduction.
9933 (vect_analyze_stmt): Adjust.
9934 (vect_transform_stmt): Likewise.
9935 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9936 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9937
9938 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9939
9940 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9941 -fno-fp-int-builtin-inexact default for C2X.
9942
9943 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9944 Richard Biener <rguenther@suse.de>
9945
9946 PR tree-optimization/91532
9947 * tree-if-conv.c: Include tree-ssa-dse.h.
9948 (ifcvt_local_dce): Change param from bb to loop,
9949 and call dse_classify_store.
9950 (tree_if_conversion): Pass loop instead of loop->header as arg
9951 to ifcvt_local_dce.
9952 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9953 (delete_dead_or_redundant_assignment): Remove static qualifier from
9954 declaration, and add prototype in tree-ssa-dse.h.
9955 (dse_store_status): Move to tree-ssa-dse.h.
9956 (dse_classify_store): Remove static qualifier and add new tree param
9957 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9958 * tree-ssa-dse.h: New header.
9959
9960 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9961
9962 * config/darwin.c (machopic_output_indirection): Don't put
9963 hidden symbol indirections into the .data section, use the
9964 non-lazy symbol pointers section as normal.
9965 (darwin_encode_section_info): Record if a symbol is hidden.
9966 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9967 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9968
9969 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9970
9971 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9972 predicates instead of accessing bits directly.
9973 (machopic_indirect_call_target): Likewise.
9974 (machopic_output_indirection): Likewise.
9975 (darwin_encode_section_info): Improve description. Use renamed
9976 symbol flags. Use predicate macros for variables and functions.
9977 * config/darwin.h:
9978 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9979 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9980 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9981 (MACHO_SYMBOL_VARIABLE_P): New.
9982 (MACHO_SYMBOL_DEFINED_P):New.
9983 (MACHO_SYMBOL_STATIC_P): New.
9984 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9985 (SYMBOL_FLAG_SUBT_DEP): New.
9986 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9987
9988 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9989
9990 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9991 (msp430_expand_epilogue): Likewise.
9992 * config/msp430/predicates.md: Likewise.
9993 * config/msp430/msp430.md: Likewise.
9994 Replace blocks of 8 spaces with tabs.
9995
9996 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9997
9998 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9999 * config/msp430/msp430.c (msp430_split_addsi): New.
10000 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
10001 a block of C code for splitting addsi.
10002
10003 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
10004
10005 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
10006 ix86_expand_rounddf_32): Reorder functions.
10007 * config/i386/i386-protos.h: Update.
10008
10009 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10010
10011 * config.in: Regenerate.
10012 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
10013 Add new "Yx" constraint.
10014 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
10015 function.
10016 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
10017 prototype.
10018 * config/msp430/msp430.c (msp430_option_override): Allow the lower
10019 code/data region to be selected in the small memory model.
10020 (msp430_section_attr): Don't warn if the "section" and "lower"
10021 attributes are used together.
10022 (msp430_handle_generic_attribute): Likewise.
10023 (msp430_var_in_low_mem): New function.
10024 (TARGET_ENCODE_SECTION_INFO): Define.
10025 (msp430_encode_section_info): New function.
10026 (gen_prefix): Return early in the small memory model.
10027 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
10028 ".lower" prefix if -m{code,data}-region=lower have been passed.
10029 (msp430_output_aligned_decl_common): Emit common symbols when
10030 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
10031 set.
10032 (TARGET_ASM_FILE_END): Define.
10033 (msp430_file_end): New function.
10034 (msp430_do_not_relax_short_jumps): Allow relaxation when
10035 function will be in the lower region.
10036 (msp430_op_not_in_high_mem): New function.
10037 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
10038 the 'X' operand selector.
10039 Clarify comment for 'x' operand selector.
10040 * config/msp430/msp430.h (LINK_SPEC): Propagate
10041 -m{code,data}-region to the linker via spec function
10042 msp430_propagate_region_opt.
10043 (msp430_propagate_region_opt): New prototype.
10044 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
10045 (SYMBOL_FLAG_LOW_MEM): Define.
10046 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
10047 selector.
10048 (zero_extendqihi2): Fix operand number used by "%X" selector.
10049 (zero_extendqisi2): Likewise.
10050 (zero_extendhisi2): Likewise.
10051 (movqi): Use "Yx" constraint in place of "%X" operand selector.
10052 (movhi): Likewise.
10053 (addqi3): Likewise.
10054 (addhi3): Likewise.
10055 (addsi3): Likewise.
10056 (addhi3_cy): Likewise.
10057 (addchi4_cy): Likewise.
10058 (subqi3): Likewise.
10059 (subhi3): Likewise.
10060 (subsi3): Likewise.
10061 (bic<mode>3): Likewise.
10062 (and<mode>3): Likewise.
10063 (ior<mode>3): Likewise.
10064 (xor<mode>3): Likewise.
10065 (slli_1): Add missing "%X" operand selector.
10066 (slll_1): Likewise.
10067 (slll_2): Likewise.
10068 (srai_1): Likewise.
10069 (sral_1): Likewise.
10070 (sral_2): Likewise.
10071 (srli_1): Likewise.
10072 (srll_1): Likewise.
10073 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
10074 selector.
10075 (cbranchhi4_real): Likewise.
10076 (cbranchqi4_reversed): Likewise.
10077 (cbranchhi4_reversed): Likewise.
10078 (*bitbranch<mode>4): Likewise.
10079 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
10080 * config/msp430/msp430.opt (mcode-region=): Set default to
10081 MSP430_REGION_LOWER. Improve docstring.
10082 (mdata-region=): Likewise.
10083 (muse-lower-region-prefix): New option.
10084 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
10085 mdata-region=none multilib.
10086 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
10087 mdata-region=none multilib.
10088 MULTILIB_EXCEPTIONS: Remove.
10089 MULTILIB_REQUIRED: Define.
10090 * configure: Regenerate.
10091 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
10092 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
10093 * doc/extend.texi: Clarify comment for {upper,lower,either}
10094 function attributes.
10095 Add separate description for "lower" variable attribute.
10096
10097 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10098
10099 PR target/77918
10100 * optabs-tree.c (vcond_icode_p): New function.
10101 (vcond_eq_icode_p): Likewise.
10102 (expand_vec_cond_expr_p): Use vcond_icode_p and
10103 vcond_eq_icode_p.
10104 * optabs.c (can_vcond_compare_p): New function.
10105 * optabs.h (can_vcond_compare_p): Likewise.
10106
10107 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10108
10109 PR target/77918
10110 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
10111 caller passes a non-trapping condition.
10112 (is_gimple_condexpr): Allow trapping conditions.
10113 (is_gimple_condexpr_1): New helper function.
10114 (is_gimple_condexpr_for_cond): New function, acts like old
10115 is_gimple_condexpr.
10116 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
10117 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
10118 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
10119 * gimplify.c (gimplify_cond_expr): Use
10120 is_gimple_condexpr_for_cond.
10121 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
10122 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
10123 VEC_COND_EXPR.
10124 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
10125 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
10126 is_gimple_condexpr_for_cond, remove pointless tmp check
10127 (forward_propagate_into_cond): Remove pointless tmp check.
10128
10129 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10130
10131 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
10132 match that of other gsi_next_* functions. Adjust the comment.
10133 (gsi_start_nonvirtual_phis): New function.
10134 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
10135 gsi_next_nonvirtual_phi accordingly. (No functional change.)
10136
10137 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10138
10139 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
10140 setjmp situation here. Fix a verb's ending: "the exact variables or
10141 elements for which there are warnings depends" -> "... depend".
10142
10143 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10144
10145 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
10146
10147 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10148
10149 * ipa-prop.c (ipa_vr::nonzero_p): New.
10150 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
10151 non-zero range.
10152 * ipa-prop.h (class ipa_vr): Add nonzero_p.
10153 * tree-vrp.c (range_has_numeric_bounds_p): New.
10154 (range_int_cst_p): Use range_has_numeric_bounds_p.
10155 (get_range_op_handler): New.
10156 (supported_types_p): New.
10157 (defined_ranges_p): New.
10158 (drop_undefines_to_varying): New.
10159 (range_fold_binary_symbolics_p): New.
10160 (range_fold_unary_symbolics_p): New.
10161 (range_fold_unary_expr): Extract out into above functions.
10162 (range_fold_binary_expr): Same.
10163 (value_range_base::normalize_addresses): New.
10164 (value_range_base::normalize_symbolics): Normalize addresses.
10165 * tree-vrp.h (class value_range_base): Add normalize_addresses.
10166
10167 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10168
10169 * tree-vrp.c (value_range_base::singleton_p): Use
10170 value_range_base::num_pairs instead of vrp_val_is* to check
10171 if a range has one sub-range.
10172
10173 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10174
10175 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
10176 DEF is not a true earlyclobber but is tied to a specific input
10177 operand, and so is effectively earlyclobber wrt inputs that have
10178 different values.
10179 (make_early_clobber_and_input_conflicts): Pass this case to the above.
10180
10181 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10182
10183 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
10184 (pod_mode): Mark operators likewise.
10185 (scalar_int_mode): Mark non-default constructors and
10186 operators with CONSTEXPR.
10187 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
10188 (fixed_size_mode): Likewise.
10189
10190 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10191
10192 PR target/91994
10193 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
10194 and wrap the unspec_volatile in a parallel.
10195 (*avx_vzeroupper): New define_insn. Use a match_parallel around
10196 the unspec_volatile.
10197 * config/i386/predicates.md (vzeroupper_pattern): Expect the
10198 unspec_volatile to be wrapped in a parallel.
10199 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
10200 (ix86_add_reg_usage_to_vzerouppers): New functions.
10201 (rest_of_handle_insert_vzeroupper): Use them to add register
10202 usage information to the vzeroupper instructions.
10203
10204 2019-10-07 Richard Biener <rguenther@suse.de>
10205
10206 PR tree-optimization/91975
10207 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
10208 handle invariants.
10209
10210 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
10211
10212 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
10213 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
10214
10215 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
10216
10217 * config/darwin.c (darwin_override_options): Adjust objective-c
10218 ABI version error messages to avoid punctuation and contracted
10219 negations.
10220
10221 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
10222
10223 * ipa-inline.c: Fix type; compute size rather than self_size
10224 for size of caller function.
10225
10226 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
10227
10228 PR target/59888
10229 * config/darwin.c (darwin_rodata_section): Add relocation flag,
10230 choose const_data section for constants with relocations.
10231 (machopic_select_section): Pass relocation flag to
10232 darwin_rodata_section ().
10233
10234 2019-10-05 Jakub Jelinek <jakub@redhat.com>
10235
10236 PR tree-optimization/91734
10237 * generic-match-head.c: Include fold-const-call.h.
10238 * match.pd (sqrt(x) cmp c): Check the boundary value and
10239 in case inexact computation of c*c affects comparison of the boundary,
10240 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
10241 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
10242 for -frounding-math. For c2, try the next smaller or larger floating
10243 point constant depending on comparison code and if it has the same
10244 sqrt as c2, use it instead of c2.
10245
10246 2019-10-04 Martin Sebor <msebor@redhat.com>
10247
10248 PR middle-end/91977
10249 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
10250 MEM_REF right operand. Avoid failing for MEM_REF assignments from
10251 uninitialized objects.
10252
10253 2019-10-04 Martin Sebor <msebor@redhat.com>
10254
10255 * builtins.c (compute_objsize): Add an argument.
10256 * tree-object-size.c (addr_object_size): Same.
10257 (compute_builtin_object_size): Same.
10258 * tree-object-size.h (compute_builtin_object): Same.
10259
10260 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
10261
10262 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
10263
10264 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
10265
10266 * match.pd (sinh (x) / cosh (x)): New simplification rule.
10267
10268 2019-10-04 Martin Jambor <mjambor@suse.cz>
10269
10270 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
10271 fntype when switching to calling memcpy instead of memset.
10272
10273 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10274
10275 * hash-table.h (hash_table::empty_slow): Don't assign
10276 size_t values to int variables.
10277
10278 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10279
10280 * expr.c (convert_mode_scalar): Remove shadowing local var.
10281 (emit_block_move): Rename local vars.
10282 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
10283 (emit_push_insn): Rename local vars.
10284 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
10285 shadowing local vars.
10286 (store_constructor): Remove shadowing local vars. Rename local var.
10287 (store_field, expand_cond_expr_using_cmove,
10288 expand_expr_real_2): Remove shadowing local vars.
10289 (expand_expr_real_1,
10290 do_store_flag): Remove shadowing local vars. Rename local vars.
10291
10292 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10293
10294 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
10295
10296 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10297
10298 * genmatch.c (commutate): Rename local var.
10299 (lower_cond): Reuse local var.
10300 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
10301 dt_operand::gen, dt_operand::gen_gimple_expr,
10302 dt_simplify::gen): Add a param. Rename generated vars.
10303 (decision_tree::insert_operand,
10304 (capture_info::walk_match, capture_info::walk_result,
10305 capture_info::walk_c_expr): Rename local vars.
10306 (expr::gen_transform): Rename generated vars.
10307 Use snprintf. Rename local vars.
10308 (capture::gen_transform, dt_operand::get_name,
10309 dt_operand::gen_opname): Rename generated vars.
10310 (write_predicate): Adjust call to gen_kids.
10311 (parser::get_internal_capture_id): Rename generated vars.
10312 (parser::parse_expr): Rename local vars.
10313 (parser::parse_if): Remove local var.
10314 (parser::parse_pattern, add_operator): Rename local vars.
10315
10316 2019-10-04 Joseph Myers <joseph@codesourcery.com>
10317
10318 * builtins.def (DEF_C2X_BUILTIN): New macro.
10319 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
10320 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
10321 (strndup): Use DEF_C2X_BUILTIN.
10322 * coretypes.h (enum function_class): Add function_c2x_misc.
10323
10324 2019-10-04 Maya Rashish <coypu@sdf.org>
10325
10326 * ira-color.c (update_costs_from_allocno): Call
10327 ira_init_register_move_cost_if_necessary.
10328
10329 2019-10-04 Jeff Law <law@redhat.com>
10330
10331 * config/h8300/h8300.md (cpymemsi): Disable.
10332 (movmd, movmd_internal_<mode>, movstr, movsd):
10333 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
10334 (movmd splitter, movsd splitter): Likewise.
10335
10336 * range-op.cc (range_tests): Avoid two tests when ints and
10337 shorts are the same size.
10338
10339 2019-10-04 Richard Biener <rguenther@suse.de>
10340
10341 PR lto/91968
10342 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
10343 BLOCK_VARS.
10344
10345 2019-10-04 Richard Biener <rguenther@suse.de>
10346
10347 PR tree-optimization/91982
10348 * tree-vect-loop.c (vectorizable_live_operation): Also guard
10349 against EXTRACT_LAST_REDUCTION.
10350 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
10351
10352 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
10353
10354 * range-op.o (value_range_from_overflowed_bounds): Rename from
10355 adjust_overflow_bound.
10356 (value_range_with_overflow): Rename from
10357 create_range_with_overflow.
10358 (create_possibly_reversed_range): Adjusted for above renames.
10359 (operator_*::wi_fold): Same.
10360 (cross_product_operator::wi_cross_productor): Same.
10361
10362 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10363
10364 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
10365 -Wshadow=compatible-local): Fix description.
10366 Add an example where -Wshadow=compatible-local does not
10367 warn.
10368
10369 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
10370
10371 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
10372
10373 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
10374 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
10375
10376 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10377
10378 * expr.c (emit_block_move_hints): Slightly cleaner fix to
10379 can_move_by_pieces issue.
10380
10381 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
10382
10383 PR target/87243
10384 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
10385 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
10386 is available and the user has not set one on the command line.
10387
10388 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10389
10390 PR target/91769
10391 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
10392 instead of REGNO equality check on addr.reg.
10393
10394 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
10395
10396 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
10397 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
10398 * doc/invoke.texi (inline-heuristics-hint-percent,
10399 inline-heuristics-hint-percent-O2): Document.
10400 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
10401 hint attribute.
10402 (can_inline_edge_by_limits_p): Use it.
10403
10404 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
10405
10406 * config/arm/arm.c (arm_print_value): Use real_to_decimal
10407 to print CONST_DOUBLEs.
10408
10409 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
10410
10411 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
10412 * ipa-prop.c (ipcp_free_transformation_sum): New function.
10413 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
10414
10415 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
10416
10417 * Makefile.in (OBJS): Add range.o and range-op.o.
10418 Remove wide-int-range.o.
10419 * function-tests.c (test_ranges): New.
10420 (function_tests_c_tests): Call test_ranges.
10421 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
10422 range_fold_unary_expr instead of extract_range_from_unary_expr.
10423 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10424 * range-op.cc: New file.
10425 * range-op.h: New file.
10426 * range.cc: New file.
10427 * range.h: New file.
10428 * selftest.h (range_tests): New prototype.
10429 * ssa.h: Include range.h.
10430 * tree-vrp.c (value_range_base::value_range_base): New
10431 constructors.
10432 (value_range_base::singleton_p): Do not call
10433 ranges_from_anti_range until sure we will need to.
10434 (value_range_base::type): Rename gcc_assert to
10435 gcc_checking_assert.
10436 (vrp_val_is_max): New argument.
10437 (vrp_val_is_min): Same.
10438 (wide_int_range_set_zero_nonzero_bits): Move from
10439 wide-int-range.cc.
10440 (extract_range_into_wide_ints): Remove.
10441 (extract_range_from_multiplicative_op): Remove.
10442 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10443 from extract_range_from_binary_expr.
10444 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10445 from extract_range_from_binary_expr.
10446 (extract_range_from_binary_expr): Remove.
10447 (normalize_for_range_ops): New.
10448 (range_fold_binary_expr): New.
10449 (range_fold_unary_expr): New.
10450 (value_range_base::num_pairs): New.
10451 (value_range_base::lower_bound): New.
10452 (value_range_base::upper_bound): New.
10453 (value_range_base::upper_bound): New.
10454 (value_range_base::contains_p): New.
10455 (value_range_base::invert): New.
10456 (value_range_base::union_): New.
10457 (value_range_base::intersect): New.
10458 (range_compatible_p): New.
10459 (value_range_base::operator==): New.
10460 (determine_value_range_1): Call range_fold_*expr instead of
10461 extract_range_from_*expr.
10462 * tree-vrp.h (class value_range_base): Add new constructors.
10463 Add methods for union_, intersect, operator==, contains_p,
10464 num_pairs, lower_bound, upper_bound, invert.
10465 (vrp_val_is_min): Add handle_pointers argument.
10466 (vrp_val_is_max): Same.
10467 (extract_range_from_unary_expr): Remove.
10468 (extract_range_from_binary_expr): Remove.
10469 (range_fold_unary_expr): New.
10470 (range_fold_binary_expr): New.
10471 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10472 range_fold_binary_expr instead of extract_range_from_binary_expr.
10473 (vr_values::extract_range_basic): Same.
10474 (vr_values::extract_range_from_unary_expr): Call
10475 range_fold_unary_expr instead of extract_range_from_unary_expr.
10476 * wide-int-range.cc: Remove.
10477 * wide-int-range.h: Remove.
10478
10479 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
10480
10481 * config/rs6000/rs6000.c (mem_operand_gpr): Use
10482 SIGNED_16BIT_OFFSET_EXTRA_P macro.
10483 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10484 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10485 macro.
10486
10487 2019-10-02 Joseph Myers <joseph@codesourcery.com>
10488
10489 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10490 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10491 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10492 * glimits.h: Likewise.
10493
10494 2019-10-03 Jakub Jelinek <jakub@redhat.com>
10495
10496 PR rtl-optimization/91976
10497 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10498 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
10499 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
10500
10501 2019-10-02 Martin Sebor <msebor@redhat.com>
10502
10503 PR tree-optimization/80936
10504 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10505
10506 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10507
10508 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10509 instead of reg_class_contents[ALL_REGS].
10510
10511 2019-09-30 Jason Merrill <jason@redhat.com>
10512
10513 Add some hash_map_safe_* functions like vec_safe_*.
10514 * hash-map.h (default_hash_map_size): New variable.
10515 (create_ggc): Use it as default argument.
10516 (hash_map_maybe_create, hash_map_safe_get)
10517 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10518
10519 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10520
10521 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10522 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10523 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10524 (can_inline_edge_by_limits_p): Use it.
10525 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10526 (want_inline_small_function_p): Use O2 bounds.
10527 (edge_badness): LIkewise.
10528 * opts.c (default_options): Add OPT_finline_functions.
10529 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10530 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10531 New parameters.
10532 * doc/invoke.texi (-finline-functions): Update documentation.
10533 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10534 inline-min-speedup-O2): Document.
10535 (early-inlining-insns-O2): Simplify docs.
10536
10537 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10538
10539 PR rtl-optimization/87047
10540 * ifcvt.c (average_cost): New static function. Use it...
10541 (noce_process_if_block): ... here.
10542
10543 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10544
10545 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10546 * config/rs6000/rs6000-string.c (expand_block_move): Add
10547 might_overlap parm.
10548 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10549 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10550
10551 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10552
10553 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10554 (expand_builtin_memcpy): Use might_overlap parm.
10555 (expand_builtin_mempcpy_args): Use might_overlap parm.
10556 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10557 (expand_builtin_memory_copy_args): Add might_overlap parm.
10558 * expr.c (emit_block_move_via_cpymem): Rename to
10559 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10560 or movmem optab as appropriate.
10561 (emit_block_move_hints): Add might_overlap parm, do the right
10562 thing for might_overlap==true.
10563 * expr.h (emit_block_move_hints): Update prototype.
10564
10565 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10566
10567 * tree-eh.h (unsplit_eh_edges): Declare.
10568 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10569 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10570 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10571 (struct store_immediate_info): Add lp_nr field.
10572 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10573 initialize lp_nr with it.
10574 (struct merged_store_group): Add lp_nr and only_constants fields.
10575 (merged_store_group::merged_store_group): Initialize them.
10576 (merged_store_group::can_be_merged_into): Deal with them.
10577 (pass_store_merging): Rename terminate_and_release_chain into
10578 terminate_and_process_chain.
10579 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10580 renaming and remove useless assertions.
10581 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10582 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10583 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10584 instead of always recomputing it and compare lp_nr.
10585 (imm_store_chain_info::output_merged_store): If the group is in an
10586 active EH region, register new stores if they can throw. Moreover,
10587 if the insertion has created new basic blocks, adjust the PHI nodes
10588 of the post landing pad.
10589 (imm_store_chain_info::output_merged_stores): If the original stores
10590 are in an active EH region, deregister them.
10591 (lhs_valid_for_store_merging_p): Prettify.
10592 (adjust_bit_pos): New function extracted from...
10593 (mem_valid_for_store_merging): ...here. Use it for the base address
10594 and also for the offset if it is the addition of a constant.
10595 (lp_nr_for_store): New function.
10596 (pass_store_merging::process_store): Change return type to bool.
10597 Call lp_nr_for_store to initialize the store info. Propagate the
10598 return status of various called functions to the return value.
10599 (store_valid_for_store_merging_p): New predicate.
10600 (enum basic_block_status): New enumeration.
10601 (get_status_for_store_merging): New function.
10602 (pass_store_merging::execute): If the function can throw and catch
10603 non-call exceptions, unsplit the EH edges on entry and clean up the
10604 CFG on exit if something changed. Call get_status_for_store_merging
10605 for every basic block and keep the chains open across basic blocks
10606 when possible. Terminate and process open chains at the end, if any.
10607
10608 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10609
10610 * reginfo.c (globalize_reg): Fix shadowed variable in
10611 function_abis walk.
10612
10613 2019-10-02 Martin Jambor <mjambor@suse.cz>
10614
10615 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10616 do not compute some stuff when set.
10617 (cgraph_node::create_edge): Likewise.
10618 (cgraph_node::create_indirect_edge): Renamed last parameter to
10619 coning_p and flipped its meaning, don't even calculate
10620 inline_failed when set.
10621 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10622 (symbol_table::::create_edge): Likewise.
10623 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10624 the default value.
10625 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10626 call graph edge creating functions.
10627
10628 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10629
10630 PR c++/91222
10631 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10632 namespace types.
10633
10634 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10635
10636 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10637
10638 2019-10-02 Richard Biener <rguenther@suse.de>
10639
10640 * tree-vectorizer.h (vect_transform_reduction): Declare.
10641 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10642 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10643 stmt transform to ...
10644 (vect_transform_reduction): ... this.
10645
10646 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10647
10648 * omp-low.c (lower_omp_target): Dereference optional argument
10649 to work with the right pointer.
10650
10651 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10652
10653 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10654 false.
10655 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10656 * langhooks.h (omp_is_optional_argument): New hook.
10657 * omp-general.c (omp_is_optional_argument): New.
10658 * omp-general.h (omp_is_optional_argument): New declaration.
10659 * omp-low.c (lower_omp_target): Create temporary for received value
10660 and take the address for new_var if the original variable was a
10661 DECL_BY_REFERENCE. Use size of referenced object when a
10662 pass-by-reference optional argument used as argument to firstprivate.
10663
10664 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10665
10666 PR tree-optimization/91940
10667 * tree-vect-patterns.c: Include tree-vector-builder.h and
10668 vec-perm-indices.h.
10669 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10670 unpromoting the argument back to uint16_t, or by converting into a
10671 rotate, or into shifts plus ior.
10672
10673 2019-10-02 Richard Biener <rguenther@suse.de>
10674
10675 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10676 New.
10677 (vect_transform_cycle_phi): Declare.
10678 * tree-vect-stmts.c (vect_transform_stmt): Call
10679 vect_transform_cycle_phi.
10680 * tree-vect-loop.c (vectorizable_reduction): Split out
10681 PHI transformation stage to ...
10682 (vect_transform_cycle_phi): ... here.
10683
10684 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10685
10686 PR middle-end/91957
10687 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10688 eliminable registers.
10689 (make_hard_regno_live): Likewise, and don't make them live.
10690
10691 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10692
10693 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10694 Call pp_emit_prefix.
10695 (layout::print_source_line): Likewise.
10696 (layout::start_annotation_line): Likewise.
10697 (diagnostic_show_locus): Remove call to temporarily clear the
10698 prefix.
10699 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10700 interaction of pp_set_prefix with rulers and fix-it hints.
10701 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10702 prefix when calling diagnostic_show_locus, rather than destroying
10703 it afterwards.
10704 (print_parseable_fixits): Temporarily clear prefix.
10705 * pretty-print.c (pp_format): Save and restore line_length, rather
10706 than assuming it is zero.
10707 (pp_output_formatted_text): Remove assertion that line_length is
10708 zero.
10709
10710 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10711
10712 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10713 Rename to ...
10714 (nonoverlapping_refs_since_match_p): ... this; handle also
10715 ARRAY_REFs.
10716 (alias_stats): Update stats.
10717 (dump_alias_stats): Likewise.
10718 (cheap_array_ref_low_bound): New function.
10719 (aliasing_matching_component_refs_p): Add partial_overlap
10720 argument;
10721 pass it to nonoverlapping_refs_since_match_p.
10722 (aliasing_component_refs_walk): Update call of
10723 aliasing_matching_component_refs_p
10724 (nonoverlapping_array_refs_p): New function.
10725 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10726 indirect_refs_may_alias_p): Update calls of
10727 nonoverlapping_refs_since_match_p.
10728
10729 2019-10-01 Maya Rashish <coypu@sdf.org>
10730
10731 PR target/85401
10732 * ira-color.c (allocno_copy_cost_saving): Call
10733 ira_init_register_move_cost_if_necessary.
10734
10735 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10736
10737 * Makefile.in (gnat_install_lib): New variable.
10738 * configure.ac: Substitute it.
10739 * configure: Regenerate.
10740
10741 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10742
10743 PR lto/91222
10744 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10745 is matched with non-C++ type
10746
10747 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10748
10749 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10750 after local CSE.
10751
10752 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10753
10754 * doc/invoke.texi (early-inlining-insns-O2): Document.
10755 (early-inlining-insns): Update.
10756 * params.def (early-inlining-insns-O2): New bound.
10757 (early-inlining-insns): Update docs.
10758 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10759
10760 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10761
10762 PR target/88562
10763 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10764 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10765 a memory access insn.
10766
10767 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10768
10769 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10770 vpmsumd.
10771
10772 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10773
10774 PR target/77918
10775 * config/s390/s390.c (s390_expand_vec_compare): Use
10776 gen_vec_cmpordered and gen_vec_cmpunordered.
10777 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10778 vec_unordered): Delete.
10779 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10780 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10781 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10782 (vec_cmp<code>): Generic dispatcher.
10783
10784 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10785
10786 PR target/77918
10787 * config/s390/vector.md (V_HW): Add V1TI in order to make
10788 vcond$a$b generate vcondv1tiv1tf.
10789
10790 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10791
10792 PR rtl-optimization/91948
10793 * ira-build.c (ira_create_allocno): Initialize
10794 ALLOCNO_CROSSED_CALLS_ABIS.
10795 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10796 than regno to ira_need_caller_save_p.
10797
10798 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10799
10800 * config/i386/i386-options.c
10801 (ix86_recompute_optlev_based_flags): New, moved out of...
10802 (ix86_option_override_internal): ... this. Call it.
10803 (ix86_override_options_after_change): Call it here too.
10804
10805 PR debug/91507
10806 * dwarf2out.c (override_type_for_decl_p): New.
10807 (gen_variable_die): Use it.
10808
10809 2019-10-01 Richard Biener <rguenther@suse.de>
10810
10811 * tree-vect-loop.c (vectorizable_reduction): Move variables
10812 to where they are used.
10813
10814 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10815
10816 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10817 (build_def_use): Use PC instead of CC0 in a comment.
10818
10819 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10820
10821 * rtl.def (CLOBBER_HIGH): Delete.
10822 * doc/rtl.texi (clobber_high): Remove documentation.
10823 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10824 (reg_is_clobbered_by_clobber_high): Delete.
10825 (gen_hard_reg_clobber_high): Likewise.
10826 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10827 * cfgexpand.c (expand_gimple_stmt): Likewise.
10828 * combine-stack-adj.c (single_set_for_csa): Likewise.
10829 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10830 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10831 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10832 * cse.c (invalidate_reg): Remove clobber_high parameter.
10833 (invalidate): Update call accordingly.
10834 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10835 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10836 (count_reg_usage, insn_live_p): Likewise.
10837 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10838 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10839 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10840 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10841 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10842 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10843 (mark_nonreg_stores_2): Likewise.
10844 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10845 (df_get_call_refs): Likewise.
10846 * dwarf2out.c (mem_loc_descriptor): Likewise.
10847 * emit-rtl.c (verify_rtx_sharing): Likewise.
10848 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10849 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10850 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10851 * genemit.c (gen_exp, gen_insn): Likewise.
10852 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10853 * haifa-sched.c (haifa_classify_rtx): Likewise.
10854 * ira-build.c (create_insn_allocnos): Likewise.
10855 * ira-costs.c (scan_one_insn): Likewise.
10856 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10857 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10858 * jump.c (mark_jump_label_1): Likewise.
10859 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10860 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10861 handling.
10862 (mark_not_eliminable): Likewise.
10863 * lra-lives.c (process_bb_lives): Likewise.
10864 * lra.c (new_insn_reg): Remove clobber_high parameter.
10865 (collect_non_operand_hard_regs): Likewise. Update call to new
10866 insn_reg. Remove CLOBBER_HIGH handling.
10867 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10868 to collect_non_operand_hard_regs.
10869 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10870 Update call to new_insn_reg.
10871 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10872 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10873 (move2add_note_store): Likewise.
10874 * print-rtl.c (print_pattern): Likewise.
10875 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10876 (if_test_bypass_p): Likewise.
10877 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10878 * reginfo.c (reg_scan_mark_refs): Likewise.
10879 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10880 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10881 (forget_old_reloads_1): Likewise.
10882 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10883 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10884 (dbr_schedule): Likewise.
10885 * resource.c (update_live_status, mark_referenced_resources)
10886 (mark_set_resources): Likewise.
10887 * rtl.c (copy_rtx): Likewise.
10888 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10889 (note_pattern_stores): Likewise.
10890 (reg_is_clobbered_by_clobber_high): Delete.
10891 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10892 CLOBBER_HIGH handling.
10893
10894 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10895
10896 PR target/91452
10897 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10898 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10899 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10900 Handle ARM_PCS_TLSDESC.
10901 (aarch64_tlsdesc_abi_id): New function.
10902 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10903 rtx instead of a list of clobbers and clobber_highs.
10904 (tlsdesc_small_<mode>): Update accordingly.
10905
10906 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10907
10908 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10909 extra callee_abi argument.
10910 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10911 Insert a CALLEE_ABI unspec into the call pattern as the second
10912 element in the PARALLEL.
10913 (aarch64_simd_call_p): Delete.
10914 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10915 the new CALLEE_ABI element of the PARALLEL.
10916 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10917 from the function type, if given.
10918 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10919 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10920 when passed the function_arg_info end marker.
10921 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10922 final argument of gen_sibcall.
10923 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10924 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10925 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10926 pattern.
10927 (call_value): Likewise operand 3.
10928 (sibcall): Likewise operand 2. Place the unspec before rather than
10929 after the return.
10930 (sibcall_value): Likewise operand 3.
10931 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10932 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10933 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10934 constraint strings.
10935 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10936
10937 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10938
10939 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10940 choose_hard_reg_mode.
10941 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10942
10943 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10944
10945 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10946 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10947 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10948
10949 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10950
10951 * diagnostic-show-locus.c (line_label::line_label): Initialize
10952 m_has_vbar.
10953 (line_label::comparator): Reverse the sort order by m_state_idx,
10954 so that when the list is walked backwards the labels appear in
10955 order of insertion into the rich_location.
10956 (line_label::m_has_vbar): New field.
10957 (layout::print_any_labels): When dealing with multiple labels at
10958 the same line and column, only print vertical bars for the one
10959 with the highest label_line.
10960 (selftest::test_one_liner_labels): Update test for multiple labels
10961 to expect the labels to be in the order of insertion into the
10962 rich_location. Add a test for many such labels, where the column
10963 numbers are out-of-order relative to the insertion order.
10964
10965 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10966
10967 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10968 (ix86_frame::expensive_count): Likewise.
10969 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10970 of use_fast_prologue_epilogue robust against incidental changes
10971 in function size.
10972
10973 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10974
10975 PR target/77918
10976 * config/s390/vector.md (vec_unordered<mode>): Call
10977 gen_vec_ordered<mode>.
10978
10979 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10980
10981 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10982 New pattern for ASRD.
10983 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10984 * internal-fn.def (IFN_DIV_POW2): New internal function.
10985 * optabs.def (sdiv_pow2_optab): New optab.
10986 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10987 Modify pattern to support new operation.
10988 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10989 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10990 Document new target selector.
10991
10992 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10993
10994 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10995 to test whether we're compiling a vector PCS function and to test
10996 whether the function needs to save a particular register.
10997 Remove the vector PCS handling of df_set_regs_ever_live.
10998 (aarch64_components_for_bb): Use crtl->abi to test whether
10999 the function needs to save a particular register.
11000 (aarch64_process_components): Use crtl->abi to test whether
11001 we're compiling a vector PCS function.
11002 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
11003 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
11004
11005 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11006
11007 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
11008 Delete.
11009 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
11010 whether the block calls a function that clobbers more registers
11011 than the current function is allowed to.
11012 (aarch64_use_simple_return_insn_p): Delete.
11013 * config/aarch64/aarch64.md (simple_return): Remove condition.
11014
11015 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11016
11017 * function-abi.h (function_abi_aggregator): New class.
11018 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
11019 function.
11020 * ira.c (update_equiv_regs_prescan): New function. Call
11021 set_paradoxical_subreg here rather than...
11022 (update_equiv_regs): ...here.
11023 (ira): Call update_equiv_regs_prescan.
11024
11025 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11026
11027 * hard-reg-set.h (regs_invalidated_by_call): Only define if
11028 IN_TARGET_CODE.
11029 (call_used_or_fixed_regs): Likewise.
11030 (call_used_or_fixed_reg_p): Likewise.
11031 * reginfo.c (regs_invalidated_by_call): New macro.
11032
11033 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11034
11035 * shrink-wrap.c: Include function-abi.h.
11036 (requires_stack_frame_p): Use crtl->abi to test whether the
11037 current function can use a register without saving it first.
11038
11039 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11040
11041 * sel-sched-ir.h (_def::crosses_call): Replace with...
11042 (_def::crossed_call_abis): ..this new field.
11043 (def_list_add): Take a mask of ABIs instead of a crosses_call
11044 boolean.
11045 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
11046 of _def accordingly.
11047 * sel-sched.c: Include function-abi.h.
11048 (hard_regs_data::regs_for_call_clobbered): Delete.
11049 (reg_rename::crosses_call): Replace with...
11050 (reg_rename::crossed_call_abis): ...this new field.
11051 (fur_static_params::crosses_call): Replace with...
11052 (fur_static_params::crossed_call_abis): ...this new field.
11053 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
11054 (init_hard_regs_data): Use crtl->abi to test which registers the
11055 current function would need to save before it uses them.
11056 (mark_unavailable_hard_regs): Update handling of call-clobbered
11057 registers, using call_clobbers_in_region to find out which registers
11058 might be call-clobbered (but without taking -fipa-ra into account
11059 for now). Remove separate handling of partially call-clobbered
11060 registers.
11061 (verify_target_availability): Use crossed_call_abis instead of
11062 crosses_call.
11063 (get_spec_check_type_for_insn, find_used_regs): Likewise.
11064 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
11065
11066 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11067
11068 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
11069 function to test whether a register is fully or partly clobbered.
11070
11071 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11072
11073 * rtlanal.c: Include function-abi.h.
11074 (reg_set_p): Use insn_callee_abi to get the ABI of the called
11075 function and clobbers_reg_p to test whether the register
11076 is call-clobbered.
11077 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
11078 to get the ABI of the called function and full_reg_clobbers to
11079 get the set of fully call-clobbered registers. Warn about the
11080 pitfalls of using this mode.
11081
11082 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11083
11084 * reload.c: Include function-abi.h.
11085 (find_equiv_reg): Use clobbers_reg_p to test whether either
11086 of the equivalent registers is clobbered by a call.
11087 * reload1.c: Include function-abi.h.
11088 (reg_reloaded_call_part_clobbered): Delete.
11089 (reload): Use crtl->abi to test which registers would need
11090 saving in the prologue before use.
11091 (find_reg): Likewise.
11092 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
11093 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
11094 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
11095
11096 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11097
11098 * regrename.h (du_head::call_clobber_mask): New field.
11099 (du_head::need_caller_save_reg): Replace with...
11100 (du_head::call_abis): ...this new field.
11101 * regrename.c: Include function-abi.h.
11102 (call_clobbered_in_chain_p): New function.
11103 (check_new_reg_p): Use crtl->abi when deciding whether a register
11104 is free for use after RA. Use call_clobbered_in_chain_p to test
11105 whether a candidate register would be clobbered by a call.
11106 (find_rename_reg): Don't add call-clobber conflicts here.
11107 (rename_chains): Check call_abis instead of need_caller_save_reg.
11108 (merge_chains): Update for changes to du_head.
11109 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
11110 target. Record the ABI identifier in call_abis and the set of
11111 fully or partially clobbered registers in call_clobber_mask.
11112 Add fully-clobbered registers to hard_conflicts here rather
11113 than in find_rename_reg.
11114 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
11115 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
11116 * config/aarch64/falkor-tag-collision-avoidance.c: Include
11117 function-abi.h.
11118 * config/c6x/c6x.c: Likewise.
11119
11120 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11121
11122 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
11123 mode of the register when deciding whether it is no longer
11124 available after a call.
11125
11126 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11127
11128 * recog.c: Include function-abi.h.
11129 (peep2_find_free_register): Use crtl->abi when deciding whether
11130 a register is free for use after RA.
11131
11132 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11133
11134 * postreload-gcse.c: Include regs.h and function-abi.h.
11135 (record_opr_changes): Use insn_callee_abi to get the ABI of the
11136 call insn target. Conservatively assume that partially-clobbered
11137 registers are altered.
11138
11139 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11140
11141 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
11142 when deciding whether a register is free for use after RA.
11143 (reload_combine): Remove unnecessary use of fixed_reg_set.
11144 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
11145 call insn target. Use reg_mode when testing whether a register
11146 is no longer available.
11147
11148 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11149
11150 * target.def (return_call_with_max_clobbers): Delete.
11151 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11152 * doc/tm.texi: Regenerate.
11153 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
11154 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11155 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
11156 (lra_reg::call_insn): Delete.
11157 * lra.c: Include function-abi.h.
11158 (initialize_lra_reg_info_element): Don't initialize the fields above.
11159 (lra): Use crtl->abi to test whether the current function needs to
11160 save a register in the prologue. Remove special pre-inheritance
11161 lra_create_live_ranges pass for flag_ipa_ra.
11162 * lra-assigns.c: Include function-abi.h
11163 (find_hard_regno_for_1): Use crtl->abi to test whether the current
11164 function needs to save a register in the prologue.
11165 (lra_assign): Assert that registers aren't allocated to a
11166 conflicting register, rather than checking only for overlaps
11167 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
11168 and for registers that are not live across a call.
11169 * lra-constraints.c (last_call_for_abi): New variable.
11170 (full_and_partial_call_clobbers): Likewise.
11171 (setup_next_usage_insn): Remove the register from
11172 full_and_partial_call_clobbers.
11173 (need_for_call_save_p): Use call_clobbered_in_region_p to test
11174 whether the register needs a caller save.
11175 (need_for_split_p): Use full_and_partial_reg_clobbers instead
11176 of call_used_or_fixed_regs.
11177 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
11178 full_and_partial_call_clobbers.
11179 * lra-lives.c (check_pseudos_live_through_calls): Replace
11180 last_call_used_reg_set and call_insn arguments with an abi argument.
11181 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
11182 as the set of conflicting registers.
11183 (calls_have_same_clobbers_p): Delete.
11184 (process_bb_lives): Track the ABI of the last call instead of an
11185 insn/HARD_REG_SET pair. Update calls to
11186 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
11187 the set of registers that could be clobbered by an EH edge.
11188 Include partially-clobbered as well as fully-clobbered registers.
11189 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
11190 * lra-remat.c: Include function-abi.h.
11191 (call_used_regs_arr_len, call_used_regs_arr): Delete.
11192 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
11193 registers and bitmap_view to combine them into dead_regs.
11194 (call_used_input_regno_present_p): Take a function_abi argument
11195 and use it to test whether a register is call-clobbered.
11196 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
11197 call insn target. Update tje call to call_used_input_regno_present_p.
11198 (do_remat): Likewise.
11199 (lra_remat): Remove the initialization of call_used_regs_arr_len
11200 and call_used_regs_arr.
11201
11202 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11203
11204 * loop-iv.c: Include regs.h and function-abi.h.
11205 (simplify_using_initial_values): Use insn_callee_abi to get the
11206 ABI of the call insn target. Conservatively assume that
11207 partially-clobbered registers are altered.
11208
11209 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11210
11211 * function-abi.h (call_clobbers_in_region): Declare.
11212 (call_clobbered_in_region_p): New function.
11213 * function-abi.cc (call_clobbers_in_region): Likewise.
11214 * ira-int.h: Include function-abi.h.
11215 (ira_allocno::crossed_calls_abis): New field.
11216 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
11217 (ira_need_caller_save_regs): New function.
11218 (ira_need_caller_save_p): Likewise.
11219 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
11220 of call_used_or_fixed_regs.
11221 (do_reload): Use crtl->abi to test whether the current function
11222 needs to save a register in the prologue. Count registers that
11223 need to be saved rather than registers that don't.
11224 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
11225 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11226 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
11227 (propagate_some_info_from_allocno): Likewise.
11228 (copy_info_to_removed_store_destinations): Likewise.
11229 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
11230 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
11231 (ira_build): Use ira_need_caller_save_regs instead of
11232 call_used_or_fixed_regs.
11233 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
11234 whether the current function would need to save a register
11235 before using it.
11236 (calculate_spill_cost): Likewise.
11237 (allocno_reload_assign): Use ira_need_caller_save_regs and
11238 ira_need_caller_save_p instead of call_used_or_fixed_regs.
11239 * ira-conflicts.c (ira_build_conflicts): Use
11240 ira_need_caller_save_regs rather than call_used_or_fixed_regs
11241 as the set of call-clobbered registers. Remove the
11242 call_used_or_fixed_regs mask from the calculation of
11243 temp_hard_reg_set and mask its use instead. Remove special
11244 handling of partially-clobbered registers.
11245 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
11246 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
11247 calculate the set of conflicting registers for calls that
11248 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
11249 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
11250 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11251 Use eh_edge_abi to calculate the set of registers that could
11252 be clobbered by an EH edge. Include partially-clobbered as
11253 well as fully-clobbered registers.
11254
11255 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11256
11257 * haifa-sched.c: Include function-abi.h.
11258 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
11259 the function would need to save a register before using it.
11260
11261 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11262
11263 * gcse.c: Include function-abi.h.
11264 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
11265 the call insn target. Invalidate partially call-clobbered
11266 registers as well as fully call-clobbered ones.
11267
11268 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11269
11270 * function.c (aggregate_value_p): Work out which ABI the
11271 function is using before testing which registers are at least
11272 partly preserved by a call.
11273
11274 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11275
11276 * early-remat.c: Include regs.h and function-abi.h.
11277 (early_remat::maybe_add_candidate): Don't check for call-clobbered
11278 registers here.
11279 (early_remat::restrict_remat_for_unavail_regs): New function.
11280 (early_remat::restrict_remat_for_call): Likewise.
11281 (early_remat::process_block): Before calling emit_remat_insns
11282 for a previous call in the block, invalidate any candidates
11283 that would clobber call-preserved registers.
11284 (early_remat::emit_remat_insns_for_block): Likewise for the
11285 final call in a block. Do the same thing for live-in registers
11286 when calling emit_remat_insns at the head of a block.
11287
11288 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11289
11290 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
11291 whether the current function needs to save at least part of a
11292 register before using it.
11293 (df_get_exit_block_use_set): Likewise for epilogue restores.
11294
11295 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11296
11297 * df-problems.c: Include regs.h and function-abi.h.
11298 (df_rd_problem_data): Rename sparse_invalidated_by_call to
11299 sparse_invalidated_by_eh and dense_invalidated_by_call to
11300 dense_invalidated_by_eh.
11301 (df_print_bb_index): Update accordingly.
11302 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
11303 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
11304 that are clobbered by an EH edge. Clobber partially-clobbered
11305 registers as well as fully-clobbered ones.
11306 (df_md_confluence_n): Likewise.
11307 (df_rd_local_compute): Likewise. Update for changes to
11308 df_rd_problem_data.
11309 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
11310 of registers that are clobbered by an EH edge. Includde partially-
11311 clobbered registers as well as fully-clobbered ones.
11312
11313 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11314
11315 * cselib.c (cselib_process_insn): If we know what mode a
11316 register was set in, check whether it is clobbered in that
11317 mode by a call. Only fall back to reg_raw_mode if that fails.
11318
11319 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11320
11321 * cse.c: Include regs.h and function-abi.h.
11322 (invalidate_for_call): Take the call insn as an argument.
11323 Use insn_callee_abi to get the ABI of the call and invalidate
11324 partially clobbered registers as well as fully clobbered ones.
11325 (cse_insn): Update call accordingly.
11326
11327 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11328
11329 * combine.c: Include function-abi.h.
11330 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
11331 of the target of call insns. Invalidate partially-clobbered
11332 registers as well as fully-clobbered ones.
11333
11334 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11335
11336 * cfgloopanal.c: Include regs.h and function-abi.h.
11337 (init_set_costs): Use default_function_abi to test whether
11338 a general register is call-clobbered.
11339
11340 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11341
11342 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
11343 instead of the call-clobbered sets.
11344
11345 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11346
11347 * caller-save.c (setup_save_areas): Remove redundant |s of
11348 fixed_reg_set.
11349 (save_call_clobbered_regs): Likewise. Use the call ABI rather
11350 than call_used_or_fixed_regs to decide whether a REG_RETURNED
11351 value is useful.
11352
11353 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11354
11355 * rtl.h (predefined_function_abi): Declare.
11356 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11357 instead of a boolean call_save flag.
11358 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
11359 accordingly.
11360 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11361 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11362 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
11363 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11364 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11365 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
11366 * reginfo.c (init_reg_modes_target): Likewise.
11367 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11368 instead of a boolean call_save flag.
11369 * targhooks.c: Include function-abi.h.
11370 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
11371 using eh_edge_abi to choose the mode.
11372
11373 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11374
11375 * target.def (hard_regno_call_part_clobbered): Take an ABI
11376 identifier instead of an rtx_insn.
11377 * doc/tm.texi: Regenerate.
11378 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
11379 (hook_bool_uint_uint_mode_false): New function.
11380 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
11381 (hook_bool_uint_uint_mode_false): New function.
11382 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11383 Take an ABI identifier instead of an rtx_insn.
11384 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
11385 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
11386 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
11387 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
11388 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
11389 Likewise.
11390 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
11391 * cselib.c: Include function-abi.h.
11392 (cselib_process_insn): Update call to
11393 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11394 to get the appropriate ABI identifier.
11395 * function-abi.cc (predefined_function_abi::initialize): Update call
11396 to targetm.hard_regno_call_part_clobbered.
11397 * ira-conflicts.c (ira_build_conflicts): Likewise.
11398 * ira-costs.c (ira_tune_allocno_costs): Likewise.
11399 * lra-constraints.c: Include function-abi.h.
11400 (need_for_call_save_p): Update call to
11401 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11402 to get the appropriate ABI identifier.
11403 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
11404 * regcprop.c (copyprop_hardreg_forward_1): Update call
11405 to targetm.hard_regno_call_part_clobbered.
11406 * reginfo.c (choose_hard_reg_mode): Likewise.
11407 * regrename.c (check_new_reg_p): Likewise.
11408 * reload.c (find_equiv_reg): Likewise.
11409 * reload1.c (emit_reload_insns): Likewise.
11410 * sched-deps.c: Include function-abi.h.
11411 (deps_analyze_insn): Update call to
11412 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11413 to get the appropriate ABI identifier.
11414 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
11415 call to targetm.hard_regno_call_part_clobbered.
11416 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
11417
11418 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11419
11420 * config/i386/i386.c: Include function-abi.h.
11421 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
11422 if they preserve some 256-bit or 512-bit SSE registers.
11423
11424 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11425
11426 * target.def (insn_callee_abi): New hook.
11427 (remove_extra_call_preserved_regs): Delete.
11428 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
11429 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11430 * doc/tm.texi: Regenerate.
11431 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
11432 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
11433 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
11434 insn argument.
11435 (aarch64_remove_extra_call_preserved_regs): Delete.
11436 (aarch64_insn_callee_abi): New function.
11437 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11438 (TARGET_INSN_CALLEE_ABI): New macro.
11439 * rtl.h (get_call_fndecl): Declare.
11440 (cgraph_rtl_info): Fix formatting. Tweak comment for
11441 function_used_regs. Remove function_used_regs_valid.
11442 * rtlanal.c (get_call_fndecl): Moved from final.c
11443 * function-abi.h (insn_callee_abi): Declare.
11444 (target_function_abi_info): Mention insn_callee_abi.
11445 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11446 way to get_call_reg_set_usage did.
11447 (insn_callee_abi): New function.
11448 * regs.h (get_call_reg_set_usage): Delete.
11449 * final.c: Include function-abi.h.
11450 (collect_fn_hard_reg_usage): Add fixed and stack registers to
11451 function_used_regs before the main loop rather than afterwards.
11452 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
11453 if function_used_regs ends up not being useful.
11454 (get_call_fndecl): Move to rtlanal.c
11455 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11456 * caller-save.c: Include function-abi.h.
11457 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11458 instead of get_call_reg_set_usage.
11459 * cfgcleanup.c: Include function-abi.h.
11460 (old_insns_match_p): Use insn_callee_abi instead of
11461 get_call_reg_set_usage.
11462 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11463 a tree.
11464 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
11465 function_used_regs.
11466 * df-scan.c: Include function-abi.h.
11467 (df_get_call_refs): Use insn_callee_abi instead of
11468 get_call_reg_set_usage.
11469 * ira-lives.c: Include function-abi.h.
11470 (process_bb_node_lives): Use insn_callee_abi instead of
11471 get_call_reg_set_usage.
11472 * lra-lives.c: Include function-abi.h.
11473 (process_bb_lives): Use insn_callee_abi instead of
11474 get_call_reg_set_usage.
11475 * postreload.c: Include function-abi.h.
11476 (reload_combine): Use insn_callee_abi instead of
11477 get_call_reg_set_usage.
11478 * regcprop.c: Include function-abi.h.
11479 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11480 get_call_reg_set_usage.
11481 * resource.c: Include function-abi.h.
11482 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11483 instead of get_call_reg_set_usage.
11484 * var-tracking.c: Include function-abi.h.
11485 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11486 get_call_reg_set_usage.
11487
11488 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11489
11490 * target.def (fntype_abi): New target hook.
11491 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11492 * doc/tm.texi: Regenerate.
11493 * target.h (predefined_function_abi): Declare.
11494 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11495 if defined.
11496 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11497 * config/aarch64/aarch64.c: Include function-abi.h.
11498 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11499 (TARGET_FNTYPE_ABI): Define.
11500
11501 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11502
11503 * Makefile.in (OBJS): Add function-abi.o.
11504 (GTFILES): Add function-abi.h.
11505 * function-abi.cc: New file.
11506 * function-abi.h: Likewise.
11507 * emit-rtl.h (rtl_data::abi): New field.
11508 * function.c: Include function-abi.h.
11509 (prepare_function_start): Initialize crtl->abi.
11510 * read-rtl-function.c: Include regs.h and function-abi.h.
11511 (read_rtl_function_body): Initialize crtl->abi.
11512 (read_rtl_function_body_from_file_range): Likewise.
11513 * reginfo.c: Include function-abi.h.
11514 (init_reg_sets_1): Initialize default_function_abi.
11515 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11516 when making a register global.
11517 * target-globals.h (this_target_function_abi_info): Declare.
11518 (target_globals::function_abi_info): New field.
11519 (restore_target_globals): Copy it.
11520 * target-globals.c: Include function-abi.h.
11521 (default_target_globals): Initialize the function_abi_info field.
11522 (target_globals): Allocate it.
11523 (save_target_globals): Free it.
11524
11525 2019-09-30 Nick Clifton <nickc@redhat.com>
11526
11527 PR target/85978
11528 * config/frv/frv.c (frv_register_move_cost): Add break statements
11529 to avoid falling through to the wrong cases. Tidy code.
11530
11531 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11532
11533 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11534 For multi-registers modes, test how big each register part is.
11535
11536 2019-09-30 Nick Clifton <nickc@redhat.com>
11537
11538 PR target/59205
11539 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11540 (TARGET_ASM_SELECT_SECTION): Remove definition.
11541 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11542
11543 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11544
11545 * emit-rtl.c (init_raw_REG): New function.
11546 (gen_raw_REG): Use init_raw_REG.
11547 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11548 macros.
11549 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11550 * rtl.h (rtx_init): New function.
11551 (rtx_alloca): New function.
11552 (init_raw_REG): New function.
11553 (alloca_raw_REG): New macro.
11554
11555 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11556
11557 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11558 (pcrel_local_address): Replace pcrel_address predicate, use the
11559 new function address_to_insn_form.
11560 (pcrel_external_address): Replace with new implementation using
11561 address_to_insn_form..
11562 (prefixed_mem_operand): Delete predicate which is now unused.
11563 (pcrel_external_mem_operand): Delete predicate which is now
11564 unused.
11565 * config/rs6000/rs6000-protos.h (enum insn_form): New
11566 enumeration.
11567 (enum non_prefixed_form): New enumeration.
11568 (address_to_insn_form): New declaration.
11569 (prefixed_load_p): New declaration.
11570 (prefixed_store_p): New declaration.
11571 (prefixed_paddi_p): New declaration.
11572 (rs6000_asm_output_opcode): New declaration.
11573 (rs6000_final_prescan_insn): Move declaration and update calling
11574 signature.
11575 (address_is_prefixed): New helper inline function.
11576 * config/rs6000/rs6000.c(print_operand_address): Check for either
11577 PC-relative local symbols or PC-relative external symbols.
11578 (rs6000_emit_move): Support loading PC-relative addresses.
11579 (mode_supports_prefixed_address_p): Delete, no longer used.
11580 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11581 (address_to_insn_form): New function to decode an address format.
11582 (reg_to_non_prefixed): New function to identify what the
11583 non-prefixed memory instruction format is for a register.
11584 (prefixed_load_p): New function to identify prefixed loads.
11585 (prefixed_store_p): New function to identify prefixed stores.
11586 (prefixed_paddi_p): New function to identify prefixed load
11587 immediates.
11588 (next_insn_prefixed_p): New static state variable.
11589 (rs6000_final_prescan_insn): New function to determine if an insn
11590 uses a prefixed instruction.
11591 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11592 prefixed instruction.
11593 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11594 (ASM_OUTPUT_OPCODE): New target hook.
11595 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11596 prefixed instructions.
11597 (prefixed_length): New insn attribute for the size of prefixed
11598 instructions.
11599 (non_prefixed_length): New insn attribute for the size of
11600 non-prefixed instructions.
11601 (pcrel_local_addr): New insn to load up a local PC-relative
11602 address.
11603 (pcrel_extern_addr): New insn to load up an external PC-relative
11604 address.
11605 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11606 GPR and loading a 128-bit floating point type to a GPR.
11607
11608 2019-09-30 Richard Biener <rguenther@suse.de>
11609
11610 * gimple.c (gimple_get_lhs): For PHIs return the result.
11611 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11612 SLP instance as argument.
11613 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11614 double-reduction PHIs with vectorizable_lc_phi.
11615 (vect_analyze_loop_operations): Adjust.
11616 (vect_create_epilog_for_reduction): Remove all code not dealing
11617 with reduction LC PHI or epilogue generation.
11618 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11619 for live stmts of reductions.
11620 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11621 do not handle defs that are not vect_internal_def.
11622 (can_vectorize_live_stmts): Adjust.
11623 (vect_analyze_stmt): When the vectorized stmt defined a value
11624 used on backedges adjust the backedge uses of vectorized PHIs.
11625
11626 2019-09-30 Martin Jambor <mjambor@suse.cz>
11627
11628 PR ipa/91853
11629 * tree-inline.c (force_value_to_type): New function.
11630 (setup_one_parameter): Use force_value_to_type to convert type.
11631 * tree-inline.c (force_value_to_type): Declare.
11632 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11633 with register type mismatches.
11634
11635 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11636
11637 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11638 32-bit PowerPC.
11639 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11640 * config/rs6000/t-freebsd64: Make use of the above define and build
11641 the 32-bit libraries with secure-plt.
11642
11643 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11644
11645 PR target/91931
11646 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11647 gen_int_mode instead of GEN_INT.
11648
11649 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11650
11651 * config/darwin.c (gen_macho_low): Amend to include the mode
11652 argument.
11653 (machopic_indirect_data_reference): Amend gen_macho_low call
11654 to include mode argument
11655 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11656 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11657 the macho_high expander and two define_insn entries.
11658
11659 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11660
11661 PR bootstrap/90543
11662 * optc-save-gen.awk: Fix up printing string option differences.
11663
11664 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11665
11666 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11667 vec_perm cost to 1 for non-Power7 VSX architectures.
11668
11669 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11670
11671 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11672 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11673 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11674
11675 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11676
11677 * config/darwin.c (gen_macho_high): Amend to include the mode
11678 argument.
11679 (machopic_indirect_data_reference): Amend gen_macho_high call
11680 to include mode argument.
11681 (machopic_legitimize_pic_address): Likewise.
11682 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11683 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11684 the macho_high expander and two define_insn entries.
11685
11686 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11687
11688 PR target/86805
11689 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11690
11691 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11692
11693 PR target/80672
11694 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11695 std::string::compare instead of std::string::find.
11696
11697 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11698
11699 * configure: Regenerate.
11700
11701 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11702
11703 PR middle-end/91920
11704 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11705 variables as shared.
11706
11707 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11708
11709 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11710 replaces the expander and two define_insn entries.
11711 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11712 call.
11713 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11714
11715 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11716
11717 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11718 (fibonacci_heap::nodes): Likewise.
11719 (fibonacci_heap::min_key): Likewise.
11720 (fibonacci_heap::min): Likewise.
11721
11722 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11723
11724 * cgraph.c (cgraph_node::get_fun): Make const.
11725 * cgraph.h (cgraph_node::get_fun): Likewise.
11726
11727 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11728
11729 PR target/91919
11730 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11731 of SImode MULT.
11732
11733 2019-09-27 Richard Biener <rguenther@suse.de>
11734
11735 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11736 (STMT_VINFO_REDUC_FN): Likewise.
11737 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11738 STMT_VINFO_REDUC_FN.
11739 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11740 for condition reductions.
11741 (vect_create_epilog_for_reduction): Compute all required state
11742 from the stmt to be vectorized.
11743 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11744 invocation and remove then dead code. For single def-use chains
11745 record only a single vector stmt.
11746
11747 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11748
11749 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11750 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11751 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11752 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11753 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11754 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11755 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11756 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11757 (aarch64_general_builtin_rsqrt): Declare.
11758 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11759 New function.
11760 (aarch64_mangle_builtin_type): Rename to...
11761 (aarch64_general_mangle_builtin_type): ...this.
11762 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11763 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11764 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11765 aarch64_general_add_builtin instead of add_builtin_function.
11766 (aarch64_init_builtins): Rename to...
11767 (aarch64_general_init_builtins): ...this. Use
11768 aarch64_general_add_builtin instead of add_builtin_function.
11769 (aarch64_builtin_decl): Rename to...
11770 (aarch64_general_builtin_decl): ...this and remove the unused
11771 arguments.
11772 (aarch64_expand_builtin): Rename to...
11773 (aarch64_general_expand_builtin): ...this and remove the unused
11774 arguments.
11775 (aarch64_builtin_rsqrt): Rename to...
11776 (aarch64_general_builtin_rsqrt): ...this.
11777 (aarch64_fold_builtin): Rename to...
11778 (aarch64_general_fold_builtin): ...this. Take the function subcode
11779 and return type as arguments. Remove the "ignored" argument.
11780 (aarch64_gimple_fold_builtin): Rename to...
11781 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11782 subcode and gcall as arguments, and return the new function call.
11783 * config/aarch64/aarch64.c (aarch64_init_builtins)
11784 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11785 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11786 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11787 instead of aarch64_builtin_rsqrt.
11788 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11789 instead of aarch64_mangle_builtin_type.
11790
11791 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11792
11793 * target.def (check_builtin_call): New target hook.
11794 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11795 * doc/tm.texi: Regenerate.
11796
11797 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11798
11799 PR tree-optimization/91909
11800 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11801 reduc_index parameter. When handling COND_REDUCTION, make sure
11802 that the reduction phi operand is in the correct arm of the
11803 VEC_COND_EXPR.
11804 (vectorizable_reduction): Pass reduc_index to the above.
11805
11806 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11807
11808 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11809 New combine pattern.
11810
11811 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11812
11813 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11814 loop instruction into new basic block before the loop when basic
11815 block that precedes the loop is empty.
11816
11817 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11818
11819 * function.c (gimplify_parameters): Use build_clobber function.
11820 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11821 * tree-inline.c (expand_call_inline): Likewise.
11822 * tree-sra.c (clobber_subtree): Likewise.
11823 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11824 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11825 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11826 lower_omp_target): Likewise.
11827 * omp-expand.c (expand_omp_for_generic): Likewise.
11828 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11829
11830 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11831
11832 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11833 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11834 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11835 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11836 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11837 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11838 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11839 LD_ELEMREV_V16QI): Use the PURE attribute.
11840
11841 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11842
11843 * config/rs6000/darwin.md: Replace the expanders for
11844 load_macho_picbase and reload_macho_picbase with use of '@'
11845 and <mode> in their respective define_insns.
11846 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11847 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11848 Pmode to gen_load_macho_picbase.
11849 * config/rs6000/rs6000.md: Likewise.
11850
11851 2019-09-25 Richard Biener <rguenther@suse.de>
11852
11853 PR tree-optimization/91896
11854 * tree-vect-loop.c (vectorizable_reduction): The single
11855 def-use cycle optimization cannot apply when there's more
11856 than one pattern stmt involved.
11857
11858 2019-09-26 Richard Biener <rguenther@suse.de>
11859
11860 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11861 loop-closed PHIs that are vect_internal_def.
11862 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11863 Simplify.
11864 (vectorizable_lc_phi): New.
11865 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11866 (vect_transform_stmt): Likewise.
11867 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11868 (vectorizable_lc_phi): Declare.
11869
11870 2019-09-26 Richard Biener <rguenther@suse.de>
11871
11872 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11873 vectorizable_reduction for vect_double_reduction_def.
11874 (vect_transform_loop): Likewise.
11875 (vect_create_epilog_for_reduction): Move double-reduction
11876 PHI creation and preheader argument setting of PHIs ...
11877 (vectorizable_reduction): ... here. Also process
11878 vect_double_reduction_def PHIs, creating the vectorized
11879 PHI nodes, remembering the scalar adjustment computed for
11880 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11881 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11882 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11883 Initialize STMT_VINFO_REDUC_CODE.
11884 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11885 (_stmt_vec_info::reduc_code): Likewise.
11886 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11887 (STMT_VINFO_REDUC_CODE): Likewise.
11888
11889 2019-09-26 Matt Turner <mattst88@gmail.com>
11890
11891 PR driver/69471
11892 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11893 (mtune=): Add Negative(mtune=).
11894 (mcpu=): Add Negative(mcpu=).
11895 * config/arm/arm.opt: Likewise.
11896
11897 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11898
11899 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11900 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11901 Define.
11902 * config/arm/arm_acle.h: Define builtins for the above.
11903 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11904 (simd32_op): Handle the above.
11905 * config/arm/unspecs.md: Define unspecs for the above.
11906
11907 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11908
11909 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11910 (arm_<sup>xtb16): Likewise.
11911 (arm_usada8): Likewise.
11912 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11913 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11914 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11915 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11916 __sxtb16, __uxtab16, __uxtb16): Define.
11917 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11918 * config/arm/unspecs.md: Define unspecs for the above.
11919 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11920 (USXTB16): Likewise.
11921 (simd32_op): New int_attribute.
11922 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11923 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11924
11925 2019-09-26 Martin Jambor <mjambor@suse.cz>
11926
11927 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11928 internal_error.
11929
11930 2019-09-26 Martin Jambor <mjambor@suse.cz>
11931
11932 * ipa-sra.c (process_scan_results): Fix continue condition.
11933
11934 2019-09-26 Martin Liska <mliska@suse.cz>
11935
11936 PR tree-optimization/91885
11937 * tree-vectorizer.c (try_vectorize_loop_1): Add
11938 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11939
11940 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11941
11942 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11943 aarch64_plus_immediate rather than aarch64_uimm12_shift
11944 to test for valid PLUS immediates.
11945
11946 2019-09-25 Martin Jambor <mjambor@suse.cz>
11947
11948 * tree-sra.c (no_accesses_p): Remove.
11949 (no_accesses_representant): Likewise.
11950
11951 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11952
11953 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11954 consistenly.
11955 (vaba_s16): Likewise.
11956 (vaba_s32): Likewise.
11957 (vaba_u8): Likewise.
11958 (vaba_u16): Likewise.
11959 (vaba_u32): Likewise.
11960 (vabal_high_s8): Likewise.
11961 (vabal_high_s16): Likewise.
11962 (vabal_high_s32): Likewise.
11963 (vabal_high_u8): Likewise.
11964 (vabal_high_u16): Likewise.
11965 (vabal_high_u32): Likewise.
11966 (vabal_s8): Likewise.
11967 (vabal_s16): Likewise.
11968 (vabal_s32): Likewise.
11969 (vabal_u8): Likewise.
11970 (vabal_u16): Likewise.
11971 (vabal_u32): Likewise.
11972 (vabaq_s8): Likewise.
11973 (vabaq_s16): Likewise.
11974 (vabaq_s32): Likewise.
11975 (vabaq_u8): Likewise.
11976 (vabaq_u16): Likewise.
11977 (vabaq_u32): Likewise.
11978 (vabd_s8): Likewise.
11979 (vabd_s16): Likewise.
11980 (vabd_s32): Likewise.
11981 (vabd_u8): Likewise.
11982 (vabd_u16): Likewise.
11983 (vabd_u32): Likewise.
11984 (vabdl_high_s8): Likewise.
11985 (vabdl_high_s16): Likewise.
11986 (vabdl_high_s32): Likewise.
11987 (vabdl_high_u8): Likewise.
11988 (vabdl_high_u16): Likewise.
11989 (vabdl_high_u32): Likewise.
11990 (vabdl_s8): Likewise.
11991 (vabdl_s16): Likewise.
11992 (vabdl_s32): Likewise.
11993 (vabdl_u8): Likewise.
11994 (vabdl_u16): Likewise.
11995 (vabdl_u32): Likewise.
11996 (vabdq_s8): Likewise.
11997 (vabdq_s16): Likewise.
11998 (vabdq_s32): Likewise.
11999 (vabdq_u8): Likewise.
12000 (vabdq_u16): Likewise.
12001 (vabdq_u32): Likewise.
12002 (vaddlv_s8): Likewise.
12003 (vaddlv_s16): Likewise.
12004 (vaddlv_u8): Likewise.
12005 (vaddlv_u16): Likewise.
12006 (vaddlvq_s8): Likewise.
12007 (vaddlvq_s16): Likewise.
12008 (vaddlvq_s32): Likewise.
12009 (vaddlvq_u8): Likewise.
12010 (vaddlvq_u16): Likewise.
12011 (vaddlvq_u32): Likewise.
12012 (vcvtx_f32_f64): Likewise.
12013 (vcvtx_high_f32_f64): Likewise.
12014 (vcvtxd_f32_f64): Likewise.
12015 (vmla_n_f32): Likewise.
12016 (vmla_n_s16): Likewise.
12017 (vmla_n_s32): Likewise.
12018 (vmla_n_u16): Likewise.
12019 (vmla_n_u32): Likewise.
12020 (vmla_s8): Likewise.
12021 (vmla_s16): Likewise.
12022 (vmla_s32): Likewise.
12023 (vmla_u8): Likewise.
12024 (vmla_u16): Likewise.
12025 (vmla_u32): Likewise.
12026 (vmlal_high_n_s16): Likewise.
12027 (vmlal_high_n_s32): Likewise.
12028 (vmlal_high_n_u16): Likewise.
12029 (vmlal_high_n_u32): Likewise.
12030 (vmlal_high_s8): Likewise.
12031 (vmlal_high_s16): Likewise.
12032 (vmlal_high_s32): Likewise.
12033 (vmlal_high_u8): Likewise.
12034 (vmlal_high_u16): Likewise.
12035 (vmlal_high_u32): Likewise.
12036 (vmlal_n_s16): Likewise.
12037 (vmlal_n_s32): Likewise.
12038 (vmlal_n_u16): Likewise.
12039 (vmlal_n_u32): Likewise.
12040 (vmlal_s8): Likewise.
12041 (vmlal_s16): Likewise.
12042 (vmlal_s32): Likewise.
12043 (vmlal_u8): Likewise.
12044 (vmlal_u16): Likewise.
12045 (vmlal_u32): Likewise.
12046 (vmlaq_n_f32): Likewise.
12047 (vmlaq_n_s16): Likewise.
12048 (vmlaq_n_s32): Likewise.
12049 (vmlaq_n_u16): Likewise.
12050 (vmlaq_n_u32): Likewise.
12051 (vmlaq_s8): Likewise.
12052 (vmlaq_s16): Likewise.
12053 (vmlaq_s32): Likewise.
12054 (vmlaq_u8): Likewise.
12055 (vmlaq_u16): Likewise.
12056 (vmlaq_u32): Likewise.
12057 (vmls_n_f32): Likewise.
12058 (vmls_n_s16): Likewise.
12059 (vmls_n_s32): Likewise.
12060 (vmls_n_u16): Likewise.
12061 (vmls_n_u32): Likewise.
12062 (vmls_s8): Likewise.
12063 (vmls_s16): Likewise.
12064 (vmls_s32): Likewise.
12065 (vmls_u8): Likewise.
12066 (vmls_u16): Likewise.
12067 (vmls_u32): Likewise.
12068 (vmlsl_high_n_s16): Likewise.
12069 (vmlsl_high_n_s32): Likewise.
12070 (vmlsl_high_n_u16): Likewise.
12071 (vmlsl_high_n_u32): Likewise.
12072 (vmlsl_high_s8): Likewise.
12073 (vmlsl_high_s16): Likewise.
12074 (vmlsl_high_s32): Likewise.
12075 (vmlsl_high_u8): Likewise.
12076 (vmlsl_high_u16): Likewise.
12077 (vmlsl_high_u32): Likewise.
12078 (vmlsl_n_s16): Likewise.
12079 (vmlsl_n_s32): Likewise.
12080 (vmlsl_n_u16): Likewise.
12081 (vmlsl_n_u32): Likewise.
12082 (vmlsl_s8): Likewise.
12083 (vmlsl_s16): Likewise.
12084 (vmlsl_s32): Likewise.
12085 (vmlsl_u8): Likewise.
12086 (vmlsl_u16): Likewise.
12087 (vmlsl_u32): Likewise.
12088 (vmlsq_n_f32): Likewise.
12089 (vmlsq_n_s16): Likewise.
12090 (vmlsq_n_s32): Likewise.
12091 (vmlsq_n_u16): Likewise.
12092 (vmlsq_n_u32): Likewise.
12093 (vmlsq_s8): Likewise.
12094 (vmlsq_s16): Likewise.
12095 (vmlsq_s32): Likewise.
12096 (vmlsq_u8): Likewise.
12097 (vmlsq_u16): Likewise.
12098 (vmlsq_u32): Likewise.
12099 (vmovl_high_s8): Likewise.
12100 (vmovl_high_s16): Likewise.
12101 (vmovl_high_s32): Likewise.
12102 (vmovl_high_u8): Likewise.
12103 (vmovl_high_u16): Likewise.
12104 (vmovl_high_u32): Likewise.
12105 (vmovl_s8): Likewise.
12106 (vmovl_s16): Likewise.
12107 (vmovl_s32): Likewise.
12108 (vmovl_u8): Likewise.
12109 (vmovl_u16): Likewise.
12110 (vmovl_u32): Likewise.
12111 (vmovn_high_s16): Likewise.
12112 (vmovn_high_s32): Likewise.
12113 (vmovn_high_s64): Likewise.
12114 (vmovn_high_u16): Likewise.
12115 (vmovn_high_u32): Likewise.
12116 (vmovn_high_u64): Likewise.
12117 (vmovn_s16): Likewise.
12118 (vmovn_s32): Likewise.
12119 (vmovn_s64): Likewise.
12120 (vmovn_u16): Likewise.
12121 (vmovn_u32): Likewise.
12122 (vmovn_u64): Likewise.
12123 (vmull_high_n_s16): Likewise.
12124 (vmull_high_n_s32): Likewise.
12125 (vmull_high_n_u16): Likewise.
12126 (vmull_high_n_u32): Likewise.
12127 (vmull_high_p8): Likewise.
12128 (vmull_high_s8): Likewise.
12129 (vmull_high_s16): Likewise.
12130 (vmull_high_s32): Likewise.
12131 (vmull_high_u8): Likewise.
12132 (vmull_high_u16): Likewise.
12133 (vmull_high_u32): Likewise.
12134 (vmull_n_s16): Likewise.
12135 (vmull_n_s32): Likewise.
12136 (vmull_n_u16): Likewise.
12137 (vmull_n_u32): Likewise.
12138 (vmull_p8): Likewise.
12139 (vmull_s8): Likewise.
12140 (vmull_s16): Likewise.
12141 (vmull_s32): Likewise.
12142 (vmull_u8): Likewise.
12143 (vmull_u16): Likewise.
12144 (vmull_u32): Likewise.
12145 (vpadal_s8): Likewise.
12146 (vpadal_s16): Likewise.
12147 (vpadal_s32): Likewise.
12148 (vpadal_u8): Likewise.
12149 (vpadal_u16): Likewise.
12150 (vpadal_u32): Likewise.
12151 (vpadalq_s8): Likewise.
12152 (vpadalq_s16): Likewise.
12153 (vpadalq_s32): Likewise.
12154 (vpadalq_u8): Likewise.
12155 (vpadalq_u16): Likewise.
12156 (vpadalq_u32): Likewise.
12157 (vpaddl_s8): Likewise.
12158 (vpaddl_s16): Likewise.
12159 (vpaddl_s32): Likewise.
12160 (vpaddl_u8): Likewise.
12161 (vpaddl_u16): Likewise.
12162 (vpaddl_u32): Likewise.
12163 (vpaddlq_s8): Likewise.
12164 (vpaddlq_s16): Likewise.
12165 (vpaddlq_s32): Likewise.
12166 (vpaddlq_u8): Likewise.
12167 (vpaddlq_u16): Likewise.
12168 (vpaddlq_u32): Likewise.
12169 (vpaddq_s8): Likewise.
12170 (vpaddq_s16): Likewise.
12171 (vpaddq_s32): Likewise.
12172 (vpaddq_s64): Likewise.
12173 (vpaddq_u8): Likewise.
12174 (vpaddq_u16): Likewise.
12175 (vpaddq_u32): Likewise.
12176 (vpaddq_u64): Likewise.
12177 (vqdmulh_n_s16): Likewise.
12178 (vqdmulh_n_s32): Likewise.
12179 (vqdmulhq_n_s16): Likewise.
12180 (vqdmulhq_n_s32): Likewise.
12181 (vqmovn_high_s16): Likewise.
12182 (vqmovn_high_s32): Likewise.
12183 (vqmovn_high_s64): Likewise.
12184 (vqmovn_high_u16): Likewise.
12185 (vqmovn_high_u32): Likewise.
12186 (vqmovn_high_u64): Likewise.
12187 (vqmovun_high_s16): Likewise.
12188 (vqmovun_high_s32): Likewise.
12189 (vqmovun_high_s64): Likewise.
12190 (vqrdmulh_n_s16): Likewise.
12191 (vqrdmulh_n_s32): Likewise.
12192 (vqrdmulhq_n_s16): Likewise.
12193 (vqrdmulhq_n_s32): Likewise.
12194 (vrsqrte_u32): Likewise.
12195 (vrsqrteq_u32): Likewise.
12196 (vtst_p8): Likewise.
12197 (vtst_p16): Likewise.
12198 (vtst_p64): Likewise.
12199 (vtstq_p8): Likewise.
12200 (vtstq_p16): Likewise.
12201 (vtstq_p64): Likewise.
12202 (vaddlv_s32): Likewise.
12203 (vaddlv_u32): Likewise.
12204 (vqtbl1_p8): Likewise.
12205 (vqtbl1_s8): Likewise.
12206 (vqtbl1_u8): Likewise.
12207 (vqtbl1q_p8): Likewise.
12208 (vqtbl1q_s8): Likewise.
12209 (vqtbl1q_u8): Likewise.
12210 (vqtbx1_s8): Likewise.
12211 (vqtbx1_u8): Likewise.
12212 (vqtbx1_p8): Likewise.
12213 (vqtbx1q_s8): Likewise.
12214 (vqtbx1q_u8): Likewise.
12215 (vqtbx1q_p8): Likewise.
12216 (vtbl1_s8): Likewise.
12217 (vtbl1_u8): Likewise.
12218 (vtbl1_p8): Likewise.
12219 (vtbl2_s8): Likewise.
12220 (vtbl2_u8): Likewise.
12221 (vtbl2_p8): Likewise.
12222 (vtbl3_s8): Likewise.
12223 (vtbl3_u8): Likewise.
12224 (vtbl3_p8): Likewise.
12225 (vtbl4_s8): Likewise.
12226 (vtbl4_u8): Likewise.
12227 (vtbl4_p8): Likewise.
12228 (vtbx2_s8): Likewise.
12229 (vtbx2_u8): Likewise.
12230 (vtbx2_p8): Likewise.
12231 (vld1_f32): Likewise.
12232 (vld1_f64): Likewise.
12233 (vld1_p8): Likewise.
12234 (vld1_p16): Likewise.
12235 (vld1_p64): Likewise.
12236 (vld1_s8): Likewise.
12237 (vld1_s16): Likewise.
12238 (vld1_s32): Likewise.
12239 (vld1_s64): Likewise.
12240 (vld1_u8): Likewise.
12241 (vld1_u16): Likewise.
12242 (vld1_u32): Likewise.
12243 (vld1_u64): Likewise.
12244 (vld1q_f32): Likewise.
12245 (vld1q_f64): Likewise.
12246 (vld1q_p8): Likewise.
12247 (vld1q_p16): Likewise.
12248 (vld1q_p64): Likewise.
12249 (vld1q_s8): Likewise.
12250 (vld1q_s16): Likewise.
12251 (vld1q_s32): Likewise.
12252 (vld1q_s64): Likewise.
12253 (vld1q_u8): Likewise.
12254 (vld1q_u16): Likewise.
12255 (vld1q_u32): Likewise.
12256 (vld1q_u64): Likewise.
12257 (vpmax_s8): Likewise.
12258 (vpmax_s16): Likewise.
12259 (vpmax_s32): Likewise.
12260 (vpmax_u8): Likewise.
12261 (vpmax_u16): Likewise.
12262 (vpmax_u32): Likewise.
12263 (vpmaxq_s8): Likewise.
12264 (vpmaxq_s16): Likewise.
12265 (vpmaxq_s32): Likewise.
12266 (vpmaxq_u8): Likewise.
12267 (vpmaxq_u16): Likewise.
12268 (vpmaxq_u32): Likewise.
12269 (vpmax_f32): Likewise.
12270 (vpmaxq_f32): Likewise.
12271 (vpmaxq_f64): Likewise.
12272 (vpmaxqd_f64): Likewise.
12273 (vpmaxs_f32): Likewise.
12274 (vpmaxnm_f32): Likewise.
12275 (vpmaxnmq_f32): Likewise.
12276 (vpmaxnmq_f64): Likewise.
12277 (vpmaxnmqd_f64): Likewise.
12278 (vpmaxnms_f32): Likewise.
12279 (vpmin_s8): Likewise.
12280 (vpmin_s16): Likewise.
12281 (vpmin_s32): Likewise.
12282 (vpmin_u8): Likewise.
12283 (vpmin_u16): Likewise.
12284 (vpmin_u32): Likewise.
12285 (vpminq_s8): Likewise.
12286 (vpminq_s16): Likewise.
12287 (vpminq_s32): Likewise.
12288 (vpminq_u8): Likewise.
12289 (vpminq_u16): Likewise.
12290 (vpminq_u32): Likewise.
12291 (vpmin_f32): Likewise.
12292 (vpminq_f32): Likewise.
12293 (vpminq_f64): Likewise.
12294 (vpminqd_f64): Likewise.
12295 (vpmins_f32): Likewise.
12296 (vpminnm_f32): Likewise.
12297 (vpminnmq_f32): Likewise.
12298 (vpminnmq_f64): Likewise.
12299 (vpminnmqd_f64): Likewise.
12300 (vpminnms_f32): Likewise.
12301 (vmla_f32): Likewise.
12302 (vmlaq_f32): Likewise.
12303 (vmlaq_f64): Likewise.
12304 (vmls_f32): Likewise.
12305 (vmlsq_f32): Likewise.
12306 (vmlsq_f64): Likewise.
12307 (vqtbl2_s8): Likewise.
12308 (vqtbl2_u8): Likewise.
12309 (vqtbl2_p8): Likewise.
12310 (vqtbl2q_s8): Likewise.
12311 (vqtbl2q_u8): Likewise.
12312 (vqtbl2q_p8): Likewise.
12313 (vqtbl3_s8): Likewise.
12314 (vqtbl3_u8): Likewise.
12315 (vqtbl3_p8): Likewise.
12316 (vqtbl3q_s8): Likewise.
12317 (vqtbl3q_u8): Likewise.
12318 (vqtbl3q_p8): Likewise.
12319 (vqtbl4_s8): Likewise.
12320 (vqtbl4_u8): Likewise.
12321 (vqtbl4_p8): Likewise.
12322 (vqtbl4q_s8): Likewise.
12323 (vqtbl4q_u8): Likewise.
12324 (vqtbl4q_p8): Likewise.
12325 (vqtbx2_s8): Likewise.
12326 (vqtbx2_u8): Likewise.
12327 (vqtbx2_p8): Likewise.
12328 (vqtbx2q_s8): Likewise.
12329 (vqtbx2q_u8): Likewise.
12330 (vqtbx2q_p8): Likewise.
12331 (vqtbx3_s8): Likewise.
12332 (vqtbx3_u8): Likewise.
12333 (vqtbx3_p8): Likewise.
12334 (vqtbx3q_s8): Likewise.
12335 (vqtbx3q_u8): Likewise.
12336 (vqtbx3q_p8): Likewise.
12337 (vqtbx4_s8): Likewise.
12338 (vqtbx4_u8): Likewise.
12339 (vqtbx4_p8): Likewise.
12340 (vqtbx4q_s8): Likewise.
12341 (vqtbx4q_u8): Likewise.
12342 (vqtbx4q_p8): Likewise.
12343 (vrev16_p8): Likewise.
12344 (vrev16_s8): Likewise.
12345 (vrev16_u8): Likewise.
12346 (vrev16q_p8): Likewise.
12347 (vrev16q_s8): Likewise.
12348 (vrev16q_u8): Likewise.
12349 (vrev32_p8): Likewise.
12350 (vrev32_p16): Likewise.
12351 (vrev32_s8): Likewise.
12352 (vrev32_s16): Likewise.
12353 (vrev32_u8): Likewise.
12354 (vrev32_u16): Likewise.
12355 (vrev32q_p8): Likewise.
12356 (vrev32q_p16): Likewise.
12357 (vrev32q_s8): Likewise.
12358 (vrev32q_s16): Likewise.
12359 (vrev32q_u8): Likewise.
12360 (vrev32q_u16): Likewise.
12361 (vrev64_f32): Likewise.
12362 (vrev64_p8): Likewise.
12363 (vrev64_p16): Likewise.
12364 (vrev64_s8): Likewise.
12365 (vrev64_s16): Likewise.
12366 (vrev64_s32): Likewise.
12367 (vrev64_u8): Likewise.
12368 (vrev64_u16): Likewise.
12369 (vrev64_u32): Likewise.
12370 (vrev64q_f32): Likewise.
12371 (vrev64q_p8): Likewise.
12372 (vrev64q_p16): Likewise.
12373 (vrev64q_s8): Likewise.
12374 (vrev64q_s16): Likewise.
12375 (vrev64q_s32): Likewise.
12376 (vrev64q_u8): Likewise.
12377 (vrev64q_u16): Likewise.
12378 (vrev64q_u32): Likewise.
12379 (vsha1cq_u32): Likewise.
12380 (vsha1mq_u32): Likewise.
12381 (vsha1pq_u32): Likewise.
12382 (vsha1h_u32): Likewise.
12383 (vsha1su0q_u32): Likewise.
12384 (vsha1su1q_u32): Likewise.
12385 (vsha256hq_u32): Likewise.
12386 (vsha256h2q_u32): Likewise.
12387 (vsha256su0q_u32): Likewise.
12388 (vsha256su1q_u32): Likewise.
12389 (vmull_p64): Likewise.
12390 (vmull_high_p64): Likewise.
12391 (vsqrt_f32): Likewise.
12392 (vsqrtq_f32): Likewise.
12393 (vsqrt_f64): Likewise.
12394 (vsqrtq_f64): Likewise.
12395 (vst1_f32): Likewise.
12396 (vst1_f64): Likewise.
12397 (vst1_p8): Likewise.
12398 (vst1_p16): Likewise.
12399 (vst1_p64): Likewise.
12400 (vst1_s8): Likewise.
12401 (vst1_s16): Likewise.
12402 (vst1_s32): Likewise.
12403 (vst1_s64): Likewise.
12404 (vst1_u8): Likewise.
12405 (vst1_u16): Likewise.
12406 (vst1_u32): Likewise.
12407 (vst1_u64): Likewise.
12408 (vst1q_f32): Likewise.
12409 (vst1q_f64): Likewise.
12410 (vst1q_p8): Likewise.
12411 (vst1q_p16): Likewise.
12412 (vst1q_p64): Likewise.
12413 (vst1q_s8): Likewise.
12414 (vst1q_s16): Likewise.
12415 (vst1q_s32): Likewise.
12416 (vst1q_s64): Likewise.
12417 (vst1q_u8): Likewise.
12418 (vst1q_u16): Likewise.
12419 (vst1q_u32): Likewise.
12420 (vst1q_u64): Likewise.
12421 (vst1_s64_x2): Likewise.
12422 (vst1_u64_x2): Likewise.
12423 (vst1_f64_x2): Likewise.
12424 (vst1_s8_x2): Likewise.
12425 (vst1_p8_x2): Likewise.
12426 (vst1_s16_x2): Likewise.
12427 (vst1_p16_x2): Likewise.
12428 (vst1_s32_x2): Likewise.
12429 (vst1_u8_x2): Likewise.
12430 (vst1_u16_x2): Likewise.
12431 (vst1_u32_x2): Likewise.
12432 (vst1_f16_x2): Likewise.
12433 (vst1_f32_x2): Likewise.
12434 (vst1_p64_x2): Likewise.
12435 (vst1q_s8_x2): Likewise.
12436 (vst1q_p8_x2): Likewise.
12437 (vst1q_s16_x2): Likewise.
12438 (vst1q_p16_x2): Likewise.
12439 (vst1q_s32_x2): Likewise.
12440 (vst1q_s64_x2): Likewise.
12441 (vst1q_u8_x2): Likewise.
12442 (vst1q_u16_x2): Likewise.
12443 (vst1q_u32_x2): Likewise.
12444 (vst1q_u64_x2): Likewise.
12445 (vst1q_f16_x2): Likewise.
12446 (vst1q_f32_x2): Likewise.
12447 (vst1q_f64_x2): Likewise.
12448 (vst1q_p64_x2): Likewise.
12449 (vst1_s64_x3): Likewise.
12450 (vst1_u64_x3): Likewise.
12451 (vst1_f64_x3): Likewise.
12452 (vst1_s8_x3): Likewise.
12453 (vst1_p8_x3): Likewise.
12454 (vst1_s16_x3): Likewise.
12455 (vst1_p16_x3): Likewise.
12456 (vst1_s32_x3): Likewise.
12457 (vst1_u8_x3): Likewise.
12458 (vst1_u16_x3): Likewise.
12459 (vst1_u32_x3): Likewise.
12460 (vst1_f16_x3): Likewise.
12461 (vst1_f32_x3): Likewise.
12462 (vst1_p64_x3): Likewise.
12463 (vst1q_s8_x3): Likewise.
12464 (vst1q_p8_x3): Likewise.
12465 (vst1q_s16_x3): Likewise.
12466 (vst1q_p16_x3): Likewise.
12467 (vst1q_s32_x3): Likewise.
12468 (vst1q_s64_x3): Likewise.
12469 (vst1q_u8_x3): Likewise.
12470 (vst1q_u16_x3): Likewise.
12471 (vst1q_u32_x3): Likewise.
12472 (vst1q_u64_x3): Likewise.
12473 (vst1q_f16_x3): Likewise.
12474 (vst1q_f32_x3): Likewise.
12475 (vst1q_f64_x3): Likewise.
12476 (vst1q_p64_x3): Likewise.
12477 (vst2_s64): Likewise.
12478 (vst2_u64): Likewise.
12479 (vst2_f64): Likewise.
12480 (vst2_s8): Likewise.
12481 (vst2_p8): Likewise.
12482 (vst2_s16): Likewise.
12483 (vst2_p16): Likewise.
12484 (vst2_s32): Likewise.
12485 (vst2_u8): Likewise.
12486 (vst2_u16): Likewise.
12487 (vst2_u32): Likewise.
12488 (vst2_f16): Likewise.
12489 (vst2_f32): Likewise.
12490 (vst2_p64): Likewise.
12491 (vst2q_s8): Likewise.
12492 (vst2q_p8): Likewise.
12493 (vst2q_s16): Likewise.
12494 (vst2q_p16): Likewise.
12495 (vst2q_s32): Likewise.
12496 (vst2q_s64): Likewise.
12497 (vst2q_u8): Likewise.
12498 (vst2q_u16): Likewise.
12499 (vst2q_u32): Likewise.
12500 (vst2q_u64): Likewise.
12501 (vst2q_f16): Likewise.
12502 (vst2q_f32): Likewise.
12503 (vst2q_f64): Likewise.
12504 (vst2q_p64): Likewise.
12505 (vst3_s64): Likewise.
12506 (vst3_u64): Likewise.
12507 (vst3_f64): Likewise.
12508 (vst3_s8): Likewise.
12509 (vst3_p8): Likewise.
12510 (vst3_s16): Likewise.
12511 (vst3_p16): Likewise.
12512 (vst3_s32): Likewise.
12513 (vst3_u8): Likewise.
12514 (vst3_u16): Likewise.
12515 (vst3_u32): Likewise.
12516 (vst3_f16): Likewise.
12517 (vst3_f32): Likewise.
12518 (vst3_p64): Likewise.
12519 (vst3q_s8): Likewise.
12520 (vst3q_p8): Likewise.
12521 (vst3q_s16): Likewise.
12522 (vst3q_p16): Likewise.
12523 (vst3q_s32): Likewise.
12524 (vst3q_s64): Likewise.
12525 (vst3q_u8): Likewise.
12526 (vst3q_u16): Likewise.
12527 (vst3q_u32): Likewise.
12528 (vst3q_u64): Likewise.
12529 (vst3q_f16): Likewise.
12530 (vst3q_f32): Likewise.
12531 (vst3q_f64): Likewise.
12532 (vst3q_p64): Likewise.
12533 (vst4_s64): Likewise.
12534 (vst4_u64): Likewise.
12535 (vst4_f64): Likewise.
12536 (vst4_s8): Likewise.
12537 (vst4_p8): Likewise.
12538 (vst4_s16): Likewise.
12539 (vst4_p16): Likewise.
12540 (vst4_s32): Likewise.
12541 (vst4_u8): Likewise.
12542 (vst4_u16): Likewise.
12543 (vst4_u32): Likewise.
12544 (vst4_f16): Likewise.
12545 (vst4_f32): Likewise.
12546 (vst4_p64): Likewise.
12547 (vst4q_s8): Likewise.
12548 (vst4q_p8): Likewise.
12549 (vst4q_s16): Likewise.
12550 (vst4q_p16): Likewise.
12551 (vst4q_s32): Likewise.
12552 (vst4q_s64): Likewise.
12553 (vst4q_u8): Likewise.
12554 (vst4q_u16): Likewise.
12555 (vst4q_u32): Likewise.
12556 (vst4q_u64): Likewise.
12557 (vst4q_f16): Likewise.
12558 (vst4q_f32): Likewise.
12559 (vst4q_f64): Likewise.
12560 (vst4q_p64): Likewise.
12561 (vtbx4_s8): Likewise.
12562 (vtbx4_u8): Likewise.
12563 (vtbx4_p8): Likewise.
12564 (vtrn_f32): Likewise.
12565 (vtrn_p8): Likewise.
12566 (vtrn_p16): Likewise.
12567 (vtrn_s8): Likewise.
12568 (vtrn_s16): Likewise.
12569 (vtrn_s32): Likewise.
12570 (vtrn_u8): Likewise.
12571 (vtrn_u16): Likewise.
12572 (vtrn_u32): Likewise.
12573 (vtrnq_f32): Likewise.
12574 (vtrnq_p8): Likewise.
12575 (vtrnq_p16): Likewise.
12576 (vtrnq_s8): Likewise.
12577 (vtrnq_s16): Likewise.
12578 (vtrnq_s32): Likewise.
12579 (vtrnq_u8): Likewise.
12580 (vtrnq_u16): Likewise.
12581 (vtrnq_u32): Likewise.
12582 (vrsqrte_f16): Likewise.
12583 (vrsqrteq_f16): Likewise.
12584 (vsqrt_f16): Likewise.
12585 (vsqrtq_f16): Likewise.
12586 (vabd_f16): Likewise.
12587 (vabdq_f16): Likewise.
12588 (vpadd_f16): Likewise.
12589 (vpaddq_f16): Likewise.
12590 (vpmax_f16): Likewise.
12591 (vpmaxq_f16): Likewise.
12592 (vpmaxnm_f16): Likewise.
12593 (vpmaxnmq_f16): Likewise.
12594 (vpmin_f16): Likewise.
12595 (vpminq_f16): Likewise.
12596 (vpminnm_f16): Likewise.
12597 (vpminnmq_f16): Likewise.
12598 (vrsqrts_f16): Likewise.
12599 (vrsqrtsq_f16): Likewise.
12600
12601 2019-09-25 Richard Biener <rguenther@suse.de>
12602
12603 PR tree-optimization/91896
12604 * tree-vect-loop.c (vectorizable_reduction): The single
12605 def-use cycle optimization cannot apply when there's more
12606 than one pattern stmt involved.
12607
12608 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12609
12610 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12611 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12612 (reload_macho_picbase_<mode>): Likewise.
12613
12614 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12615
12616 * config/rs6000/rs6000.md: Move darwin.md include until
12617 after the definition of the mode iterators.
12618
12619 2019-09-23 Martin Sebor <msebor@redhat.com>
12620
12621 PR tree-optimization/91570
12622 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12623 non-constant minlen, maxlen and maxbound.
12624
12625 2019-09-24 Richard Biener <rguenther@suse.de>
12626
12627 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12628 Rename to...
12629 (_stmt_vec_info::cond_reduc_code): ... this.
12630 (_stmt_vec_info::induc_cond_initial_val): Add.
12631 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12632 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12633 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12634 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12635 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12636 the reduction code.
12637 (vect_create_epilog_for_reduction): Drop special
12638 induction condition reduction params, pass in reduction code
12639 and simplify.
12640 (vectorizable_reduction): Perform condition reduction kind
12641 selection only at analysis time. Adjust passing on state.
12642
12643 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12644
12645 * config/aarch64/aarch64.md (mov<mode>): Don't call
12646 aarch64_split_dimode_const_store on volatile MEM.
12647
12648 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12649
12650 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12651 Update hwcap string for fp16fml.
12652
12653 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12654
12655 PR middle-end/91866
12656 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12657 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12658
12659 2019-09-24 Martin Liska <mliska@suse.cz>
12660
12661 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12662 instead of if-elseif-elseif-...
12663 * gimple-expr.c (extract_ops_from_tree): Likewise.
12664 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12665 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12666
12667 2019-09-24 Martin Jambor <mjambor@suse.cz>
12668
12669 PR ipa/91831
12670 * ipa-param-manipulation.c (carry_over_param): Make a method of
12671 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12672 in case of a context mismatch.
12673 (ipa_param_body_adjustments::common_initialization): Adjust call to
12674 carry_over_param.
12675 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12676 private method carry_over_param.
12677
12678 2019-09-24 Martin Jambor <mjambor@suse.cz>
12679
12680 PR ipa/91832
12681 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12682
12683 2019-09-24 Richard Biener <rguenther@suse.de>
12684
12685 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12686 base.
12687
12688 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12689
12690 * config/arm/t-arm (arm-builtins.o): Add dependency on
12691 arm_acle_builtins.def.
12692
12693 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12694
12695 PR target/91823
12696 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12697 canonical CONST_INTs. Use gen_rtvec.
12698
12699 2019-09-23 Richard Biener <rguenther@suse.de>
12700
12701 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12702 avoid adjusting by + 0 or * 1.
12703 (vect_create_epilog_for_reduction): Get reduction code only
12704 when necessary. Deal with adjustment_def only when necessary.
12705
12706 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12707
12708 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12709 memmodel index.
12710
12711 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12712
12713 PR ipa/91835
12714 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12715 "ipa-sra".
12716
12717 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12718
12719 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12720 code. Merge code blocks with common conditionals. Use declared
12721 macro instead of a magic number for PIC level.
12722
12723 2019-09-21 Martin Sebor <msebor@redhat.com>
12724
12725 PR middle-end/91830
12726 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12727 Simplify computation of the offset of the referenced subobject.
12728
12729 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12730
12731 * config/darwin.c (machopic_legitimize_pic_address): Check
12732 for lra not reload.
12733
12734 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12735
12736 * ira-conflicts.c (can_use_same_reg_p): New function.
12737 (process_reg_shuffles): Take an insn parameter. Ignore cases
12738 in which input operand op_num could seemingly never be allocated
12739 to the same register as the destination.
12740 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12741
12742 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12743
12744 * simplify-rtx.c (neg_const_int): Replace with...
12745 (neg_poly_int_rtx): ...this new function.
12746 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12747 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12748 (simplify_plus_minus): Likewise for constant terms here.
12749
12750 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12751
12752 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12753 HOST_WIDE_PRINT_UNSIGNED.
12754
12755 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12756
12757 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12758 character.
12759
12760 2019-09-20 Maya Rashish <coypu@sdf.org>
12761
12762 PR target/86811
12763 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12764 Define to speculation_safe_value_not_needed.
12765
12766 2019-09-20 Richard Biener <rguenther@suse.de>
12767 Uros Bizjak <ubizjak@gmail.com>
12768
12769 PR target/91814
12770 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12771 previous change.
12772 (general_scalar_chain::convert_op): Force not suitable memory
12773 operands to a register.
12774
12775 2019-09-20 Richard Biener <rguenther@suse.de>
12776
12777 PR tree-optimization/91821
12778 * tree-vect-loop.c (check_reduction_path): Check we can compute
12779 reduc_idx.
12780 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12781 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12782 operands in canonical order.
12783 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12784 STMT_VINFO_REDUC_IDX.
12785 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12786 (STMT_VINFO_REDUC_IDX): Likewise.
12787
12788 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12789
12790 PR target/91269
12791 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12792
12793 2019-09-20 Richard Biener <rguenther@suse.de>
12794
12795 PR tree-optimization/91822
12796 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12797 parameter.
12798 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12799 for reduc_index in nested cycles, adjust vectorizable_condition
12800 calls.
12801 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12802 parameter.
12803 (vect_analyze_stmt): Adjust.
12804 (vect_transform_stmt): Likewise.
12805
12806 2019-09-20 Richard Biener <rguenther@suse.de>
12807
12808 PR target/91767
12809 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12810 Ensure there's a sequence point between allocating the new register
12811 and passing a reference to a reg via regno_reg_rtx.
12812
12813 2019-09-20 Martin Jambor <mjambor@suse.cz>
12814
12815 * coretypes.h (cgraph_edge): Declare.
12816 * ipa-param-manipulation.c: Rewrite.
12817 * ipa-param-manipulation.h: Likewise.
12818 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12819 (OBJS): Added ipa-sra.o.
12820 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12821 and ref_p, added fields param_adjustments and performed_splits.
12822 (struct cgraph_clone_info): Remove ags_to_skip and
12823 combined_args_to_skip, new field param_adjustments.
12824 (cgraph_node::create_clone): Changed parameters to use
12825 ipa_param_adjustments.
12826 (cgraph_node::create_virtual_clone): Likewise.
12827 (cgraph_node::create_virtual_clone_with_body): Likewise.
12828 (tree_function_versioning): Likewise.
12829 (cgraph_build_function_type_skip_args): Removed.
12830 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12831 using ipa_param_adjustments.
12832 (clone_of_p): Likewise.
12833 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12834 (build_function_decl_skip_args): Likewise.
12835 (duplicate_thunk_for_node): Adjust parameters using
12836 ipa_param_body_adjustments, copy param_adjustments instead of
12837 args_to_skip.
12838 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12839 (cgraph_node::create_virtual_clone): Likewise.
12840 (cgraph_node::create_version_clone_with_body): Likewise.
12841 (cgraph_materialize_clone): Likewise.
12842 (symbol_table::materialize_all_clones): Likewise.
12843 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12844 ipa_replace_map check.
12845 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12846 (initialize_node_lattices): Make aware that some parameters might have
12847 already been removed.
12848 (want_remove_some_param_p): New function.
12849 (create_specialized_node): Convert to using ipa_param_adjustments and
12850 deal with possibly pre-existing adjustments.
12851 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12852 (output_node_opt_summary): Do not stream removed fields. Stream
12853 parameter adjustments instead of argumetns to skip.
12854 (input_node_opt_summary): Likewise.
12855 (input_node_opt_summary): Likewise.
12856 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12857 * lto-streamer.h (lto_section_type): Likewise.
12858 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12859 param_body_adjs.
12860 (copy_decl_to_var): Declare.
12861 * tree-inline.c (update_clone_info): Do not remap old_tree.
12862 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12863 statements, walk all extra generated statements and remap their
12864 operands.
12865 (redirect_all_calls): Add killed SSA names to a hash set.
12866 (remap_ssa_name): Do not remap killed SSA names.
12867 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12868 half of functionality moved to ipa_param_body_adjustments.
12869 (copy_decl_to_var): Make exported.
12870 (copy_body): Destroy killed_new_ssa_names hash set.
12871 (expand_call_inline): Remap performed splits.
12872 (update_clone_info): Likewise.
12873 (tree_function_versioning): Simplify tree_map processing. Updated to
12874 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12875 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12876 for the new interface.
12877 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12878 (simd_clone_compute_base_data_type): Likewise.
12879 (simd_clone_init_simd_arrays): Adjust for the new interface.
12880 (simd_clone_adjust_argument_types): Likewise.
12881 (struct modify_stmt_info): Likewise.
12882 (ipa_simd_modify_stmt_ops): Likewise.
12883 (ipa_simd_modify_function_body): Likewise.
12884 (simd_clone_adjust): Likewise.
12885 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12886 (type_internals_preclude_sra_p): Make public.
12887 * tree-sra.h: New file.
12888 * ipa-inline-transform.c (save_inline_function_body): Update to
12889 refelct new tree_function_versioning signature.
12890 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12891 ipa_param_adjustments to get current parameter indices.
12892 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12893 (ipcp_update_bits): Likewise.
12894 (ipcp_update_vr): Likewise.
12895 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12896 * ipa-sra.c: New file.
12897 * multiple_target.c (create_target_clone): Update to reflet new type
12898 of create_version_clone_with_body.
12899 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12900 tree_function_versioning.
12901 (modify_function): Update to reflect new type of
12902 tree_function_versioning.
12903 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12904 * passes.def: Remove old IPA-SRA and add new one.
12905 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12906 (make_pass_ipa_sra): Declare.
12907 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12908 ipa_sra_retvalues.
12909 * doc/invoke.texi (ipa-sra-max-replacements): New.
12910
12911 2019-09-19 Martin Sebor <msebor@redhat.com>
12912
12913 PR middle-end/91631
12914 * builtins.c (component_size): Correct trailing array computation,
12915 rename to component_ref_size and move...
12916 (compute_objsize): Adjust.
12917 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12918 (builtin_access::strict): Do not consider memmove.
12919 (builtin_access::write_off): New function.
12920 (builtin_memref::builtin_memref): Initialize refsize.
12921 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12922 refsize.
12923 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12924 Handle refsize.
12925 (builtin_access::builtin_access): Initialize dstoff to destination
12926 refeence offset here instead of in maybe_diag_overlap. Adjust
12927 referencess even to unrelated objects. Adjust sizrange of bounded
12928 string functions to reflect bound. For strcat, adjust destination
12929 sizrange by that of source.
12930 (builtin_access::strcat_overlap): Adjust offsets and sizes
12931 to reflect the increase in destination sizrange above.
12932 (builtin_access::overlap): Do not set dstoff here but instead
12933 in builtin_access::builtin_access.
12934 (check_bounds_or_overlap): Use builtin_access::write_off.
12935 (maybe_diag_access_bounds): Add argument. Add informational notes.
12936 (dump_builtin_memref, dump_builtin_access): New functions.
12937 * tree.c (component_ref_size): ...to here.
12938 * tree.h (component_ref_size): Declare.
12939 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12940 nul in the size of the source string.
12941
12942 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12943
12944 PR c/67224
12945 * doc/cpp.texi: Document support for extended characters in
12946 identifiers.
12947 * doc/cppopts.texi: Likewise.
12948
12949 2019-09-19 Richard Biener <rguenther@suse.de>
12950
12951 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12952 (check_reduction_path): New overload having the path as result.
12953 (vect_is_simple_reduction): From the detected reduction
12954 path build a SLP reduction chain if possible.
12955
12956 2019-09-19 Richard Biener <rguenther@suse.de>
12957
12958 PR target/91814
12959 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12960 Force operand to a register if it isn't nonimmediate_operand.
12961
12962 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12963
12964 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12965 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12966 (logical_op): Remove code attribute.
12967 (logical_OP): Likewise.
12968
12969 2019-09-19 Martin Liska <mliska@suse.cz>
12970
12971 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12972 Use proper casting.
12973
12974 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12975
12976 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12977 registers with %R.
12978
12979 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12980 for NE comparison of TImode values.
12981 (aarch64_emit_load_exclusive): Add support for TImode.
12982 (aarch64_emit_store_exclusive): Likewise.
12983 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12984 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12985 Change iterator from ALLI to ALLI_TI.
12986 (@atomic_compare_and_swap<JUST_TI>): New.
12987 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12988 (aarch64_load_exclusive_pair): New.
12989 (aarch64_store_exclusive_pair): New.
12990 * config/aarch64/iterators.md (JUST_TI): New.
12991
12992 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12993 strong_zero_p for aarch64_track_speculation; unify some code paths;
12994 use aarch64_gen_compare_reg instead of open-coding.
12995
12996 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12997 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12998 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12999 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
13000 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
13001 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
13002 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
13003 (atomic_<atomic_op><ALLI>): Likewise.
13004 (atomic_fetch_<atomic_op><ALLI>): Likewise.
13005 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
13006 * doc/invoke.texi: Document -moutline-atomics.
13007
13008 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
13009
13010 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
13011 trivial predicate for condition branch.
13012 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
13013 for switch case.
13014 (compute_bb_predicates): Update predicate based on post-dominating
13015 relationship.
13016 (analyze_function_body): Calculate post-dominating information.
13017
13018 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
13019
13020 * tree-vectorizer.h (vectorizable_condition): Take an int
13021 reduction index instead of a boolean flag.
13022 * tree-vect-stmts.c (vectorizable_condition): Likewise.
13023 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
13024 reductions if the reduction accumulator is the "then" rather
13025 than the "else" value.
13026 (vect_analyze_stmt): Update call accordingly.
13027 (vect_transform_stmt): Likewise.
13028 * tree-vect-loop.c (vectorizable_reduction): Likewise,
13029 asserting that the index is > 0.
13030
13031 2019-09-19 Martin Liska <mliska@suse.cz>
13032
13033 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
13034 (sort_congruence_classes_by_decl_uid): Likewise.
13035 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
13036 easier sorting.
13037 (sem_item_optimizer::merge_classes): Likewise.
13038
13039 2019-09-19 Richard Biener <rguenther@suse.de>
13040
13041 PR tree-optimization/91812
13042 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
13043 volatile loads.
13044
13045 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
13046
13047 * defaults.h (TARGET_UNIT): New macro.
13048 (target_unit): New type.
13049 * rtl.h (native_encode_rtx, native_decode_rtx)
13050 (native_decode_vector_rtx, subreg_size_lsb): Declare.
13051 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
13052 * rtlanal.c (subreg_lsb_1): Delete.
13053 (subreg_size_lsb): New function.
13054 * simplify-rtx.c: Include rtx-vector-builder.h
13055 (simplify_immed_subreg): Delete.
13056 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
13057 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
13058 functions.
13059 (simplify_subreg): Use them.
13060 (test_vector_subregs_modes, test_vector_subregs_repeating)
13061 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
13062 (test_vector_subregs): New functions.
13063 (test_vector_ops): Call test_vector_subregs for integer vector
13064 modes with at least 2 elements.
13065
13066 2019-09-19 Richard Biener <rguenther@suse.de>
13067
13068 * tree-parloops.c (parloops_is_slp_reduction): Do not set
13069 LOOP_VINFO_OPERANDS_SWAPPED.
13070 (parloops_is_simple_reduction): Likewise.
13071 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
13072 initialize operands_swapped.
13073 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
13074 (vect_is_slp_reduction): Do not swap operands.
13075 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
13076 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
13077
13078 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
13079
13080 PR target/87007
13081 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
13082 Add avx_partial_xmm_update.
13083
13084 2019-09-18 Jim Wilson <jimw@sifive.com>
13085
13086 PR target/91683
13087 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
13088 (riscv_move_integer): Likewise.
13089 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
13090 riscv_move_integer arg.
13091 (riscv_legitimize_move): Likewise.
13092 (riscv_force_temporary): New parameter in_splitter. Don't call
13093 force_reg if true.
13094 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
13095 arg.
13096 (riscv_add_offset): Likewise.
13097 (riscv_split_symbol): New parameter in_splitter. Pass to
13098 riscv_force_temporary.
13099 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
13100 arg.
13101 (riscv_move_integer): New parameter in_splitter. New local
13102 can_create_psuedo. Don't call riscv_split_integer or force_reg when
13103 in_splitter TRUE.
13104 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
13105 riscv_split_symbol, and riscv_force_temporary args.
13106 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
13107 riscv_move_integer arg.
13108 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
13109
13110 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13111
13112 PR target/90878
13113 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
13114 hard register store cost to 6.
13115
13116 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13117
13118 PR target/91446
13119 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
13120 pseudo register store cost from 3 to 6 to make it the same as
13121 QImode and HImode.
13122
13123 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13124
13125 PR target/91738
13126 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
13127 (one_cmpldi2): Likewise.
13128 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
13129 of the constant parts is simple.
13130 * config/arm/iterators.md (LOGICAL): Add new code iterator.
13131 (logical_op): Add new code attribute.
13132 (logical_OP): Likewise.
13133 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
13134 (arm_iordi_operand): Add predicate.
13135 (arm_xordi_operand): Add predicate.
13136
13137 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13138
13139 * config/arm/arm.md (maddsidi4): Remove expander.
13140 (mulsidi3adddi): Remove pattern.
13141 (mulsidi3adddi_v6): Likewise.
13142 (mulsidi3_nov6): Likewise.
13143 (mulsidi3_v6): Likewise.
13144 (umulsidi3): Remove expander.
13145 (umulsidi3_nov6): Remove pattern.
13146 (umulsidi3_v6): Likewise.
13147 (umulsidi3adddi): Likewise.
13148 (umulsidi3adddi_v6): Likewise.
13149 (<Us>mulsidi3): Add combined expander.
13150 (<Us>maddsidi4): Likewise.
13151 (<US>mull): Add combined umull and smull pattern.
13152 (<US>mlal): Likewise.
13153 * config/arm/iterators.md (Us): Add new iterator.
13154
13155 2019-09-18 Richard Biener <rguenther@suse.de>
13156
13157 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
13158 swapping.
13159 (vectorize_fold_left_reduction): Remove assert.
13160 (vectorizable_reduction): Also expect COND_EXPR non-reduction
13161 operand in position 2. Remove assert.
13162
13163 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13164
13165 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
13166 (smulsi3_highpart_nov6): Remove pattern.
13167 (smulsi3_highpart_v6): Likewise.
13168 (umulsi3_highpart): Likewise.
13169 (umulsi3_highpart_nov6): Likewise.
13170 (umulsi3_highpart_v6): Likewise.
13171 (<US>mull_high): Add new combined multiply pattern.
13172
13173 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13174
13175 * config/arm/arm.md (arm_mulsi3): Remove pattern.
13176 (arm_mulsi3_v6): Likewise.
13177 (mulsi3addsi_v6): Likewise.
13178 (mulsi3subsi): Likewise.
13179 (mul): Add new multiply pattern.
13180 (mla): Likewise.
13181 (mls): Likewise.
13182
13183 2019-09-18 Richard Biener <rguenther@suse.de>
13184
13185 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
13186 (parloops_valid_reduction_input_p): Copy from
13187 valid_reduction_input_p.
13188 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
13189 (parloops_needs_fold_left_reduction_p): Copy from
13190 needs_fold_left_reduction_p.
13191 (parloops_is_simple_reduction): Copy from
13192 vect_is_simple_reduction.
13193 (parloops_force_simple_reduction): Copy from
13194 vect_force_simple_reduction.
13195 (gather_scalar_reductions): Adjust.
13196 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
13197 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
13198
13199 2019-09-18 Richard Biener <rguenther@suse.de>
13200
13201 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
13202 * tree-vect-loop.c (get_initial_def_for_reduction): Make
13203 static.
13204 (vect_create_epilog_for_reduction): Remove dead code.
13205
13206 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13207
13208 * varasm.c (assemble_real): Generate canonical const_ints.
13209
13210 2019-09-18 Richard Biener <rguenther@suse.de>
13211
13212 PR lto/91763
13213 * lto-streamer-in.c (input_eh_regions): Move EH init to
13214 lto_materialize_function.
13215 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
13216 Likewise.
13217
13218 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13219
13220 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
13221 are INTEGER_CSTs.
13222
13223 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13224
13225 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
13226 of checking specifically for INTEGER_CST.
13227
13228 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13229
13230 * stor-layout.c (compute_record_mode): Operate on poly_uint64
13231 sizes instead of uhwi sizes.
13232
13233 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13234
13235 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
13236 (add_const_value_attribute): Handle CONST_POLY_INT.
13237
13238 2019-09-18 Martin Liska <mliska@suse.cz>
13239
13240 * dbgcnt.def (store_merging): New counter.
13241 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
13242 Use it in store merging.
13243
13244 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13245
13246 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
13247 function.
13248 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13249 * config/arm/arm.c (arm_sched_variable_issue): New function.
13250 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13251
13252 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13253
13254 * config/arm/types.md (no_reservation): New reservation.
13255 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
13256 no_insn here.
13257 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
13258 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
13259 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
13260 * config/arm/arm1020e.md (1020alu_op): Likewise.
13261 * config/arm/arm1026ejs.md (alu_op): Likewise.
13262 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13263 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13264 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13265 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
13266 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13267 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13268 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
13269 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
13270 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13271 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13272 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13273 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
13274 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
13275 * config/arm/fa526.md (526_alu_op): Likewise.
13276 * config/arm/fa606te.md (606te_alu_op): Likewise.
13277 * config/arm/fa626te.md (626te_alu_op): Likewise.
13278 * config/arm/fa726te.md (726te_alu_op): Likewise.
13279 * config/arm/xgene1.md (xgene1_nop): Likewise.
13280
13281 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13282
13283 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
13284 "no_insn" to "branch".
13285
13286 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13287
13288 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
13289
13290 2019-09-17 Richard Biener <rguenther@suse.de>
13291
13292 PR debug/91772
13293 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
13294 was missing generate locations only once.
13295
13296 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
13297
13298 PR ipa/91089
13299 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
13300 option.
13301 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
13302 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
13303 for switch default case using range analysis information.
13304
13305 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
13306
13307 PR target/91749
13308 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
13309 mode attributed is supported by FDPIC.
13310
13311 2019-09-17 Richard Biener <rguenther@suse.de>
13312
13313 PR tree-optimization/91790
13314 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
13315 use the correct DR for setting up realignment.
13316
13317 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
13318
13319 PR target/91719
13320 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
13321 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
13322 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
13323 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
13324
13325 2019-09-16 Jason Merrill <jason@redhat.com>
13326
13327 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
13328
13329 2019-09-16 Martin Liska <mliska@suse.cz>
13330
13331 * gimple-fold.c (or_comparisons_1): Remove rules moved
13332 to ...
13333 * match.pd: ... here.
13334
13335 2019-09-16 Martin Liska <mliska@suse.cz>
13336
13337 * gimple-fold.c (or_comparisons_1): Remove rules
13338 moved to ...
13339 * match.pd: ... here.
13340
13341 2019-09-16 Martin Liska <mliska@suse.cz>
13342
13343 * genmatch.c (dt_node::append_simplify): Do not print
13344 warning when we have duplicate patterns belonging
13345 to a same simplify rule.
13346 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
13347 (maybe_fold_comparisons_from_match_pd): Handle
13348 tcc_comparison as a results.
13349 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
13350
13351 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13352 Qi Feng <ffengqi@linux.ibm.com>
13353
13354 PR middle-end/88784
13355 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
13356 (x > y && x == XXX_MIN): Optimize into 'false'.
13357 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
13358 (x < y && x != XXX_MAX): Optimize into 'x < y'.
13359 (x < y && x == XXX_MAX): Optimize into 'false'.
13360 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
13361 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
13362 (x <= y || x != XXX_MIN): Optimize into 'true'.
13363 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
13364 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
13365 (x >= y || x != XXX_MAX): Optimize into 'true'.
13366 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
13367
13368 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13369 Martin Liska <mliska@suse.cz>
13370
13371 * gimple-fold.c (and_comparisons_1): Add type as first
13372 argument.
13373 (and_var_with_comparison): Likewise.
13374 (and_var_with_comparison_1): Likewise.
13375 (or_comparisons_1): Likewise.
13376 (or_var_with_comparison): Likewise.
13377 (or_var_with_comparison_1): Likewise.
13378 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
13379 (maybe_fold_or_comparisons): Likewise.
13380 (maybe_fold_comparisons_from_match_pd): New.
13381 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
13382 (maybe_fold_or_comparisons): Likewise.
13383 * gimple.c (gimple_size): Make it public and add num_ops argument.
13384 (gimple_init): New function.
13385 (gimple_alloc): Call gimple_init.
13386 * gimple.h (gimple_size): New.
13387 (gimple_init): Likewise.
13388 * tree-if-conv.c (fold_or_predicates): Pass type.
13389 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13390 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
13391 (optimize_vec_cond_expr): Likewise.
13392 (ovce_extract_ops): Return type of conditional expression.
13393 * tree-ssanames.c (init_ssa_name_imm_use): New.
13394 (make_ssa_name_fn): Use init_ssa_name_imm_use.
13395 * tree-ssanames.h (init_ssa_name_imm_use): New.
13396
13397 2019-09-16 Richard Biener <rguenther@suse.de>
13398
13399 PR tree-optimization/91756
13400 PR tree-optimization/87132
13401 * tree-ssa-alias.h (enum translate_flags): New.
13402 (get_continuation_for_phi): Use it instead of simple bool flag.
13403 (walk_non_aliased_vuses): Likewise.
13404 * tree-ssa-alias.c (maybe_skip_until): Adjust.
13405 (get_continuation_for_phi): When looking across backedges only
13406 disallow valueization.
13407 (walk_non_aliased_vuses): Adjust.
13408 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
13409 if requested.
13410
13411 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
13412
13413 PR middle-end/80791
13414 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
13415 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13416 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13417 * target.def (have_count_reg_decr_p): New hook.
13418 (doloop_cost_for_generic): Likewise.
13419 (doloop_cost_for_address): Likewise.
13420 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
13421 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13422 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13423 * doc/tm.texi: Regenerate.
13424 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
13425 addend.
13426 (record_group): Init doloop_p.
13427 (add_candidate_1): Add optional argument doloop, change the handlings
13428 accordingly.
13429 (add_candidate): Likewise.
13430 (generic_predict_doloop_p): Update attribute.
13431 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
13432 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
13433 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
13434 MIN_EXPR.
13435 (get_computation_cost): Update for doloop IV cand extra cost.
13436 (determine_group_iv_cost_cond): Update for doloop IV cand.
13437 (determine_iv_cost): Likewise.
13438 (ivopts_estimate_reg_pressure): Likewise.
13439 (may_eliminate_iv): Update handlings for doloop IV cand.
13440 (add_iv_candidate_for_doloop): New function.
13441 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13442 (iv_ca_set_no_cp): Update for doloop IV cand.
13443 (iv_ca_set_cp): Likewise.
13444 (iv_ca_dump): Dump register cost.
13445 (find_doloop_use): New function.
13446 (analyze_and_mark_doloop_use): Likewise.
13447 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13448
13449 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13450
13451 PR middle-end/91708
13452 * cse.c (cse_insn): Do not replace anything with a
13453 MEM.
13454
13455 2019-09-13 Ian Lance Taylor <iant@golang.org>
13456
13457 * doc/invoke.texi (Optimize Options): Fix typo.
13458
13459 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
13460
13461 PR tree-optimization/89386
13462 * config/i386/sse.md (smulhrs<mode>3): New expander.
13463 (smulhrsv4hi3): Ditto.
13464
13465 2019-09-12 Richard Biener <rguenther@suse.de>
13466
13467 PR tree-optimization/91750
13468 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13469 in the type of the evolution.
13470
13471 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
13472
13473 PR tree-optimization/89386
13474 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13475 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13476 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13477 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13478 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13479 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13480 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13481 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13482 (su, r): Handle the unspecs above.
13483 (bt): New int attribute.
13484 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13485 * internal-fn.c (first_commutative_argument): Commutativity info for
13486 above.
13487 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13488 (umulhrs_optab): New optabs.
13489 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13490 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13491 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13492 function.
13493 (vect_vect_recog_func_ptrs): Add it.
13494
13495 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
13496
13497 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13498 code.
13499
13500 2019-09-11 Nathan Sidwell <nathan@acm.org>
13501
13502 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13503 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13504
13505 2019-09-11 Richard Biener <rguenther@suse.de>
13506
13507 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13508 * lto-wrapper.c (merge_and_complain): Pick up -g.
13509 (append_compiler_options): Likewise.
13510 (run_gcc): Re-instantiate handling -g0 at link-time.
13511 * doc/invoke.texi (flto): Document debug info generation.
13512
13513 2019-09-11 Richard Biener <rguenther@suse.de>
13514
13515 PR tree-optimization/90387
13516 * vr-values.c (vr_values::extract_range_basic): After inlining
13517 simplify non-constant __builtin_constant_p to false.
13518
13519 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13520
13521 PR rtl-optimization/89795
13522 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13523 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13524
13525 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13526
13527 PR tree-optimization/91723
13528 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13529 instead of pointer equality when checking if argument vectypes are
13530 the same.
13531
13532 PR middle-end/91725
13533 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13534 of get_nonzero_bits, only call it for integral types.
13535
13536 2019-09-11 Richard Biener <rguenther@suse.de>
13537
13538 Revert
13539 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13540
13541 * match.pd: Add flag_unsafe_math_optimizations check
13542 before deciding on the widest type in a binary math operation.
13543
13544 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13545
13546 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13547 and CALL_REALLY_USED_REGISTERS must be defined, and that
13548 CALL_REALLY_USED_REGISTERS is preferred.
13549 * doc/tm.texi: Regenerate.
13550 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13551 (call_really_used_regs): Likewise.
13552 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13553 CALL_REALLY_USED_REGISTERS are defined.
13554 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13555 initial value if defined.
13556 (initial_call_really_used_regs): Delete.
13557 (saved_call_really_used_regs): Likewise.
13558 (CALL_REALLY_USED_REGNO_P): Likewise.
13559 (init_reg_sets): Remove handling of call_really_used_regs.
13560 (save_register_info, restore_register_info, globalize_reg): Likewise.
13561 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13562 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13563 outside operand_reg_set.
13564 (fix_register): Don't change call_used_regs if
13565 CALL_REALLY_USED_REGISTERS is defined.
13566 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13567 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13568 instead of call_really_used_regs.
13569 (csky_conditional_register_usage): Remove the old handling of
13570 call_used_regs and change the handling of call_really_used_regs
13571 to use call_used_regs instead.
13572 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13573 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13574 making a register fixed.
13575 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13576 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13577 instead of call_really_used_regs.
13578 (m32r_conditional_register_usage): Don't set call_used_regs when
13579 making a register fixed.
13580 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13581 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13582 instead of call_really_used_regs.
13583 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13584 (mips_cfun_call_saved_reg_p): Likewise.
13585 (mips_swap_registers): Remove the old handling of call_used_regs
13586 and change the handling of call_really_used_regs to use call_used_regs
13587 instead.
13588 (mips_conditional_register_usage): Likewise.
13589 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13590 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13591 instead of call_really_used_regs.
13592 (mn10300_get_live_callee_saved_regs): Likewise.
13593 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13594 (mn10300_conditional_register_usage): Don't set call_used_regs when
13595 making a register fixed.
13596 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13597 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13598 Remove the old handling of call_used_regs and change the handling
13599 of call_really_used_regs to use call_used_regs instead.
13600 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13601 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13602 instead of call_really_used_regs.
13603 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13604 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13605 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13606 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13607 (s390_conditional_register_usage): Remove the old handling of
13608 call_used_regs and change the handling of call_really_used_regs
13609 to use call_used_regs instead.
13610 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13611 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13612 (sh_fix_range, reg_unused_after): Likewise.
13613 (sh_conditional_register_usage): Remove the old handling of
13614 call_used_regs and change the handling of call_really_used_regs
13615 to use call_used_regs instead.
13616 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13617 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13618 call_used_regs when making a register fixed.
13619 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13620 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13621 call_used_regs when making a register fixed.
13622 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13623 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13624 set call_used_regs when making a register fixed.
13625 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13626 * config/visium/visium.c (visium_conditional_register_usage): Remove
13627 the old handling of call_used_regs and change the handling of
13628 call_really_used_regs to use call_used_regs instead.
13629
13630 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13631
13632 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13633 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13634 * reginfo.c (call_used_regs): New macro.
13635
13636 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13637
13638 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13639 fixed_regs test.
13640 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13641 (bpf_expand_epilogue): Likewise.
13642 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13643 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13644 (ft32_expand_epilogue): Likewise.
13645 * config/i386/i386.c (ix86_save_reg): Likewise.
13646 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13647 (moxie_expand_epilogue): Likewise.
13648 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13649 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13650 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13651
13652 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13653
13654 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13655 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13656 instead of testing call_used_regs directly.
13657 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13658 (aarch64_components_for_bb): Likewise.
13659 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13660 * config/arc/arc.c (arc_must_save_register): Likewise.
13661 (arc_epilogue_uses): Likewise.
13662 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13663 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13664 (arm_compute_save_reg0_reg12_mask): Likewise.
13665 (arm_compute_save_core_reg_mask): Likewise.
13666 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13667 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13668 (cmse_nonsecure_entry_clear_before_return): Likewise.
13669 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13670 (arm_expand_epilogue): Likewise.
13671 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13672 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13673 (_reg_unused_after): Likewise.
13674 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13675 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13676 (add_to_reg, hwloop_optimize): Likewise.
13677 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13678 (bpf_expand_epilogue): Likewise.
13679 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13680 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13681 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13682 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13683 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13684 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13685 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13686 * config/frv/frv.c (frv_stack_info): Likewise.
13687 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13688 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13689 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13690 (move_callee_saved_registers): Likewise.
13691 * config/h8300/h8300.c (byte_reg): Likewise.
13692 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13693 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13694 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13695 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13696 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13697 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13698 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13699 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13700 * config/m32c/m32c.c (need_to_save): Likewise.
13701 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13702 * config/mcore/mcore.c (calc_live_regs): Likewise.
13703 * config/microblaze/microblaze.c (microblaze_must_save_register):
13704 Likewise.
13705 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13706 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13707 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13708 (mmix_expand_epilogue): Likewise.
13709 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13710 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13711 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13712 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13713 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13714 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13715 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13716 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13717 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13718 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13719 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13720 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13721 * config/rl78/rl78.c (need_to_save): Likewise.
13722 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13723 (rs6000_stack_info, generate_set_vrsave): Likewise.
13724 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13725 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13726 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13727 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13728 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13729 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13730 (save_local_or_in_reg_p): Likewise.
13731 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13732 (xstormy16_epilogue_uses): Likewise.
13733 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13734 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13735 * config/v850/v850.c (compute_register_save_size): Likewise.
13736 * config/vax/vax.c (vax_expand_prologue): Likewise.
13737 * config/visium/visium.c (visium_save_reg_p): Likewise.
13738 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13739 * cselib.c (cselib_process_insn): Likewise.
13740 * df-scan.c (df_get_entry_block_def_set): Likewise.
13741 * function.c (aggregate_value_p): Likewise.
13742 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13743 * ira-lives.c (process_bb_node_lives): Likewise.
13744 * ira.c (do_reload): Likewise.
13745 * lra-lives.c (process_bb_lives): Likewise.
13746 * lra-remat.c (lra_remat): Likewise.
13747 * lra.c (lra): Likewise.
13748 * postreload.c (reload_combine_recognize_pattern): Likewise.
13749 (reload_cse_move2add): Likewise.
13750 * recog.c (peep2_find_free_register): Likewise.
13751 * regrename.c (check_new_reg_p): Likewise.
13752 * reload.c (find_equiv_reg): Likewise.
13753 * reload1.c (reload, find_reg): Likewise.
13754 * sel-sched.c (init_hard_regs_data): Likewise.
13755
13756 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13757
13758 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13759 regs_invalidated_by_call & ~fixed_reg_set instead of
13760 call_used_or_fixed_regs & ~fixed_reg_set.
13761 * config/sh/sh.c (output_stack_adjust): Likewise.
13762
13763 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13764
13765 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13766 (call_used_reg_set): Delete.
13767 (call_used_or_fixed_regs): New macro.
13768 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13769 of call_used_reg_set.
13770 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13771 instead of call_used_regs.
13772 (save_call_clobbered_regs): Likewise.
13773 * cfgcleanup.c (old_insns_match_p): Likewise.
13774 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13775 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13776 Likewise.
13777 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13778 * config/sh/sh.c (output_stack_adjust): Likewise.
13779 * final.c (collect_fn_hard_reg_usage): Likewise.
13780 * ira-build.c (ira_build): Likewise.
13781 * ira-color.c (calculate_saved_nregs): Likewise.
13782 (allocno_reload_assign, calculate_spill_cost): Likewise.
13783 * ira-conflicts.c (ira_build_conflicts): Likewise.
13784 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13785 * ira-lives.c (process_bb_node_lives): Likewise.
13786 * ira.c (setup_reg_renumber): Likewise.
13787 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13788 * lra-constraints.c (need_for_call_save_p): Likewise.
13789 (need_for_split_p, inherit_in_ebb): Likewise.
13790 * lra-lives.c (process_bb_lives): Likewise.
13791 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13792 * postreload.c (reload_combine): Likewise.
13793 * regrename.c (find_rename_reg): Likewise.
13794 * reload1.c (reload_as_needed): Likewise.
13795 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13796 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13797 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13798
13799 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13800
13801 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13802 (no_caller_save_reg_set): Delete.
13803 * caller-save.c (init_caller_save): Don't initialize it.
13804 * ira-conflicts.c (ira_build_conflicts): Calculate
13805 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13806
13807 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13808
13809 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13810 (target_hard_regs::x_savable_regs): New field.
13811 (call_fixed_reg_set): Delete.
13812 (savable_regs): New macro,
13813 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13814 (init_reg_sets_1): Likewise. Initialize savable_regs.
13815 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13816 for all registers. Set savable_regs instead of call_fixed_reg_set.
13817 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13818 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13819 * config/sh/sh.c (output_stack_adjust): Likewise.
13820
13821 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13822
13823 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13824 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13825 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13826
13827 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13828
13829 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13830 * rtlanal.c (get_call_rtx_from): Likewise.
13831 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13832 than the pattern to get_call_rtx_from.
13833 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13834 an rtx_insn * instead of an rtx.
13835 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13836
13837 2019-09-10 Martin Liska <mliska@suse.cz>
13838
13839 * common.opt: Use newly added WarnRemoved.
13840 * config/aarch64/aarch64.opt: Likewise.
13841 * config/arm/arm.opt: Likewise.
13842 * config/i386/i386.opt: Likewise.
13843 * config/ia64/ia64.opt: Likewise.
13844 * config/rs6000/rs6000.opt: Likewise.
13845 * doc/options.texi: Document WarnRemoved properly.
13846 * dwarf2out.c (gen_producer_string): Handle renamed
13847 OPT_SPECIAL_warn_removed.
13848 * lto-opts.c (lto_write_options): Likewise.
13849 * lto-wrapper.c (merge_and_complain): Likewise.
13850 * opts-common.c (decode_cmdline_option): Likewise.
13851 (prune_options): Likewise.
13852 (read_cmdline_option): Likewise.
13853 (control_warning_option): Likewise.
13854 * opts.c (print_filtered_help): Likewise.
13855 * optc-gen.awk: Parse for WarnRemoved and make usage
13856 of Deprecated an error.
13857 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13858
13859 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13860
13861 * doc/install.texi: Fix syntax for html generation.
13862
13863 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13864
13865 PR middle-end/91680
13866 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13867 the shift type to type.
13868
13869 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13870
13871 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13872 FDPIC mode.
13873 (stack_protect_combined_test_insn): Likewise.
13874
13875 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13876 Mickaël Guêné <mickael.guene@st.com>
13877
13878 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13879 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13880 (load_tp_soft_fdpic): New pattern.
13881 (load_tp_soft): Disable in FDPIC mode.
13882
13883 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13884 Mickaël Guêné <mickael.guene@st.com>
13885
13886 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13887 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13888 (arm_call_tls_get_addr): Add FDPIC support.
13889 (legitimize_tls_address): Likewise.
13890 (arm_emit_tls_decoration): Likewise.
13891
13892 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13893 Mickaël Guêné <mickael.guene@st.com>
13894
13895 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13896 support.
13897 (arm_trampoline_init): Likewise.
13898 (arm_trampoline_adjust_address): Likewise.
13899 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13900
13901 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13902 Mickaël Guêné <mickael.guene@st.com>
13903
13904 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13905 (legitimize_pic_address): Enforce binding rules on function
13906 pointers in FDPIC mode.
13907 (arm_assemble_integer): Likewise.
13908
13909 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13910 Mickaël Guêné <mickael.guene@st.com>
13911
13912 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13913 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13914 FDPIC.
13915
13916 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13917 Mickaël Guêné <mickael.guene@st.com>
13918
13919 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13920 field.
13921
13922 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13923 Mickaël Guêné <mickael.guene@st.com>
13924
13925 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13926 in FDPIC mode.
13927 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13928 new function.
13929 * config/arm/arm.c (arm_option_override): Define pic register to
13930 FDPIC_REGNUM.
13931 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13932 have no decl or go through PLT.
13933 (calculate_pic_address_constant): New function.
13934 (legitimize_pic_address): Call calculate_pic_address_constant.
13935 (arm_load_pic_register): Handle TARGET_FDPIC.
13936 (arm_is_segment_info_known): New function.
13937 (arm_pic_static_addr): Add support for FDPIC.
13938 (arm_load_function_descriptor): New function.
13939 (arm_emit_call_insn): Add support for FDPIC.
13940 (arm_assemble_integer): Add support for FDPIC.
13941 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13942 Define. (FDPIC_REGNUM): New define.
13943 * config/arm/arm.md (call): Add support for FDPIC.
13944 (call_value): Likewise.
13945 (restore_pic_register_after_call): New pattern.
13946 (untyped_call): Disable if FDPIC.
13947 (untyped_return): Likewise.
13948 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13949
13950 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13951 Mickaël Guêné <mickael.guene@st.com>
13952
13953 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13954 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13955 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13956 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13957 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13958 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13959 * config/arm/uclinuxfdpiceabi.h: New file.
13960
13961 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13962
13963 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13964
13965 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13966 Mickaël Guêné <mickael.guene@st.com>
13967
13968 * config/arm/arm.opt: Add -mfdpic option.
13969 * doc/invoke.texi: Add documentation for -mfdpic.
13970
13971 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13972
13973 * expmed.c (extract_bit_field): Update function comment
13974 regarding alt_rtl.
13975 * expr.c (expand_expr_real): Update function comment
13976 regarding alt_rtl.
13977 (expand_misaligned_mem_ref): New helper function.
13978 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13979 Remove duplicate assignment to "base" at case MEM_REF.
13980 Remove a shadowed variable "unsignedp" at case VCE.
13981
13982 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13983
13984 * regset.h (regs_invalidated_by_call_regset): Delete.
13985 (fixed_reg_set_regset): Likewise.
13986 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13987 (fixed_reg_set_regset, persistent_obstack): Likewise.
13988 (init_reg_sets_1, globalize_reg): Update accordingly.
13989 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13990 instead of a bitmap.
13991 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13992 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13993 instead of regs_invalidated_by_call_regset.
13994 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13995 * df-scan.c (df_scan_start_dump): Likewise.
13996 * dse.c (copy_fixed_regs): Likewise.
13997 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13998
13999 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14000
14001 * array-traits.h: New file.
14002 * coretypes.h (array_traits, bitmap_view): New types.
14003 * bitmap.h: Include "array-traits.h"
14004 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14005 (base_bitmap_view, bitmap_view): New classes.
14006 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14007 * hard-reg-set.h: Include array-traits.h.
14008 (array_traits<HARD_REG_SET>): New struct.
14009 * regset.h (IOR_REG_SET_HRS): New macro.
14010 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
14011 rather than iterating over each hard register.
14012 * sched-deps.c (sched_analyze_insn): Likewise.
14013 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
14014
14015 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14016
14017 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
14018 instead of a HARD_REG_SET *.
14019 * ira-build.c (ior_hard_reg_conflicts): Likewise.
14020 (ira_build): Update call accordingly.
14021 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
14022
14023 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14024
14025 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
14026 (HARD_REG_SET::operator!=): Likewise.
14027 (hard_reg_set_equal_p): Delete.
14028 * cfgcleanup.c (old_insns_match_p): Use == instead of
14029 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
14030 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
14031 (add_allocno_hard_regs_to_forest): Likewise.
14032 (setup_allocno_available_regs_num): Likewise.
14033 * ira.c (setup_pressure_classes): Likewise.
14034 (setup_allocno_and_important_classes): Likewise.
14035 (setup_reg_class_relations): Likewise.
14036 * lra-lives.c (process_bb_lives): Likewise.
14037 * reg-stack.c (change_stack, convert_regs_1): Likewise.
14038
14039 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14040
14041 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
14042 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
14043 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
14044 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
14045 Likewise.
14046 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
14047 * ira.c (setup_reg_renumber): Likewise.
14048 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14049 * regrename.c (regrename_find_superclass): Likewise.
14050 * reload1.c (find_reg): Likewise.
14051
14052 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14053
14054 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
14055 * caller-save.c (setup_save_areas): Use "&~" instead of
14056 AND_COMPL_HARD_REG_SET.
14057 (save_call_clobbered_regs): Likewise.
14058 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
14059 Likewise.
14060 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14061 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14062 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
14063 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14064 (mips_conditional_register_usage): Likewise.
14065 * config/sh/sh.c (output_stack_adjust): Likewise.
14066 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
14067 (setup_profitable_hard_regs): Likewise.
14068 (get_conflict_and_start_profitable_regs): Likewise.
14069 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14070 (ira_build_conflicts): Likewise.
14071 * ira-costs.c (restrict_cost_classes): Likewise.
14072 (setup_regno_cost_classes_by_aclass): Likewise.
14073 * ira-lives.c (process_bb_node_lives): Likewise.
14074 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
14075 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
14076 (setup_allocno_and_important_classes, setup_class_translate_array)
14077 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
14078 Likewise.
14079 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14080 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14081 (process_alt_operands, inherit_in_ebb): Likewise.
14082 * lra-eliminations.c (update_reg_eliminate): Likewise.
14083 * lra-lives.c (process_bb_lives): Likewise.
14084 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
14085 * resource.c (find_dead_or_set_registers): Likewise.
14086 (mark_target_live_regs): Likewise.
14087 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
14088 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14089 (implicit_clobber_conflict_p): Likewise.
14090 * shrink-wrap.c (requires_stack_frame_p): Likewise.
14091 (try_shrink_wrapping): Likewise.
14092
14093 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14094
14095 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
14096 (HARD_REG_SET::operator|=): Likewise.
14097 (IOR_HARD_REG_SET): Delete.
14098 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
14099 IOR_HARD_REG_SET.
14100 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14101 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
14102 * final.c (collect_fn_hard_reg_usage): Likewise.
14103 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
14104 * ira-build.c (merge_hard_reg_conflicts): Likewise.
14105 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
14106 (propagate_some_info_from_allocno): Likewise.
14107 (copy_info_to_removed_store_destinations): Likewise.
14108 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
14109 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
14110 (fast_allocation): Likewise.
14111 * ira-conflicts.c (ira_build_conflicts): Likewise.
14112 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
14113 (process_bb_node_lives): Likewise.
14114 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
14115 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14116 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14117 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
14118 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
14119 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
14120 (process_bb_lives): Likewise.
14121 * lra-spills.c (assign_spill_hard_regs): Likewise.
14122 * postreload.c (reload_combine): Likewise.
14123 * reginfo.c (init_reg_sets_1): Likewise.
14124 * regrename.c (merge_overlapping_regs, find_rename_reg)
14125 (merge_chains): Likewise.
14126 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
14127 (find_reload_regs, finish_spills, choose_reload_regs_init)
14128 (emit_reload_insns): Likewise.
14129 * reorg.c (redundant_insn): Likewise.
14130 * resource.c (find_dead_or_set_registers, mark_set_resources)
14131 (mark_target_live_regs): Likewise.
14132 * rtlanal.c (find_all_hard_reg_sets): Likewise.
14133 * sched-deps.c (sched_analyze_insn): Likewise.
14134 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14135 (find_best_reg_for_expr): Likewise.
14136 * shrink-wrap.c (try_shrink_wrapping): Likewise.
14137
14138 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14139
14140 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
14141 (HARD_REG_SET::operator&): Likewise.
14142 (AND_HARD_REG_SET): Delete.
14143 * caller-save.c (setup_save_areas): Use "&" instead of
14144 AND_HARD_REG_SET.
14145 (save_call_clobbered_regs): Likewise.
14146 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14147 * config/m32c/m32c.c (reduce_class): Likewise.
14148 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14149 * final.c (get_call_reg_set_usage): Likewise.
14150 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
14151 (setup_left_conflict_sizes_p): Likewise.
14152 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14153 (ira_build_conflicts): Likewise.
14154 * ira-costs.c (restrict_cost_classes): Likewise.
14155 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
14156 (setup_reg_class_relations): Likewise.
14157 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
14158 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
14159 * resource.c (find_dead_or_set_registers): Likewise.
14160 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14161
14162 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14163
14164 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
14165 (COMPL_HARD_REG_SET): Delete.
14166 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
14167 of COMPL_HARD_REG_SET.
14168 (try_rename_operands): Likewise.
14169 * config/sh/sh.c (push_regs): Likewise.
14170 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14171 * lra-constraints.c (contains_reg_p): Likewise.
14172 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
14173
14174 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14175
14176 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
14177 * caller-save.c (save_call_clobbered_regs): Use assignment instead
14178 of COPY_HARD_REG_SET.
14179 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
14180 (epiphany_conditional_register_usage): Likewise.
14181 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14182 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14183 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14184 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14185 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
14186 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14187 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
14188 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14189 * config/sh/sh.c (output_stack_adjust): Likewise.
14190 * final.c (collect_fn_hard_reg_usage): Likewise.
14191 (get_call_reg_set_usage): Likewise.
14192 * ira-build.c (ira_create_object, remove_low_level_allocnos)
14193 (ira_flattening): Likewise.
14194 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
14195 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
14196 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
14197 (ira_reassign_pseudos): Likewise.
14198 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14199 (ira_build_conflicts): Likewise.
14200 * ira-costs.c (restrict_cost_classes): Likewise.
14201 (setup_regno_cost_classes_by_aclass): Likewise.
14202 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
14203 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
14204 (setup_stack_reg_pressure_class, setup_pressure_classes)
14205 (setup_allocno_and_important_classes, setup_class_translate_array)
14206 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
14207 (ira_setup_eliminable_regset): Likewise.
14208 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14209 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14210 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14211 (process_alt_operands, inherit_in_ebb): Likewise.
14212 * lra-lives.c (process_bb_lives): Likewise.
14213 * lra-spills.c (assign_spill_hard_regs): Likewise.
14214 * lra.c (lra): Likewise.
14215 * mode-switching.c (new_seginfo): Likewise.
14216 * postreload.c (reload_combine): Likewise.
14217 * reg-stack.c (straighten_stack): Likewise.
14218 * reginfo.c (save_register_info, restore_register_info): Likewise.
14219 (init_reg_sets_1, record_subregs_of_mode): Likewise
14220 * regrename.c (create_new_chain, rename_chains): Likewise.
14221 * reload1.c (order_regs_for_reload, find_reg): Likewise.
14222 (find_reload_regs): Likewise.
14223 * resource.c (find_dead_or_set_registers): Likewise.
14224 (mark_target_live_regs): Likewise.
14225 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14226
14227 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14228
14229 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
14230 (note_pattern_stores): Declare.
14231 (note_stores): Take an rtx_insn *.
14232 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
14233 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
14234 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
14235 (note_stores): Take an rtx_insn * as argument and process
14236 CALL_INSN_FUNCTION_USAGE. Rename old function to...
14237 (note_pattern_stores): ...this.
14238 (find_first_parameter_load): Pass the insn rather than
14239 its pattern to note_stores.
14240 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
14241 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
14242 (insert_one_insn): Likewise.
14243 * combine.c (combine_instructions): Likewise.
14244 (likely_spilled_retval_p): Likewise.
14245 (try_combine): Use note_pattern_stores instead of note_stores.
14246 (record_dead_and_set_regs): Pass the insn rather than its pattern
14247 to note_stores.
14248 (reg_dead_at_p): Likewise.
14249 * config/bfin/bfin.c (workaround_speculation): Likewise.
14250 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
14251 rather than an rtx.
14252 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
14253 instead of note_stores.
14254 (frv_optimize_membar_local): Pass the insn rather than its pattern
14255 to note_stores.
14256 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14257 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
14258 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
14259 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
14260 (mips_reorg_process_insns): Likewise.
14261 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
14262 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
14263 rather than rtxes.
14264 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
14265 its pattern to note_stores.
14266 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
14267 of note_stores.
14268 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
14269 the insn to note_stores.
14270 (prescan_insns_for_dce): Update call accordingly.
14271 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
14272 to note_stores.
14273 * df-problems.c (can_move_insns_across): Likewise.
14274 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
14275 * function.c (assign_parm_setup_reg): Likewise.
14276 * gcse-common.c (record_last_mem_set_info_common): Likewise.
14277 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
14278 (single_set_gcse): Likewise.
14279 * ira.c (validate_equiv_mem): Likewise.
14280 (update_equiv_regs): Use note_pattern_stores rather than note_stores
14281 for no_equiv.
14282 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
14283 pattern to note_stores.
14284 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14285 * loop-iv.c (simplify_using_initial_values): Likewise.
14286 * mode-switching.c (optimize_mode_switching): Likewise.
14287 * optabs.c (emit_libcall_block_1): Likewise.
14288 (expand_atomic_compare_and_swap): Likewise.
14289 * postreload-gcse.c (load_killed_in_block_p): Likewise.
14290 (record_opr_changes): Likewise. Remove explicit handling of
14291 CALL_INSN_FUNCTION_USAGE.
14292 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
14293 * regcprop.c (kill_clobbered_values): Likewise.
14294 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
14295 to note_stores.
14296 * regrename.c (build_def_use): Likewise.
14297 * reload1.c (reload): Use note_pattern_stores instead of note_stores
14298 for mark_not_eliminable.
14299 (reload_as_needed): Pass the insn rather than its pattern
14300 to note_stores.
14301 (emit_output_reload_insns): Likewise.
14302 * resource.c (mark_target_live_regs): Likewise.
14303 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14304 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
14305 instead of note_stores.
14306 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
14307 its pattern to note_stores.
14308 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
14309 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
14310
14311 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14312
14313 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
14314 than a #define. Use a structure rather than an array as the
14315 fallback definition. Remove special cases for low array sizes.
14316 (const_hard_reg_set): New typedef.
14317 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
14318 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
14319 (hard_reg_set_empty_p): Likewise.
14320 (SET_HARD_REG_BIT): Use a function rather than a macro to
14321 handle the case in which HARD_REG_SET is a structure.
14322 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
14323 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
14324 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
14325 (IOR_COMPL_HARD_REG_SET): Likewise.
14326 (hard_reg_set_iterator::pset): Constify the pointer target.
14327 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
14328 of a "const HARD_REG_SET". Update the handling of non-integer
14329 HARD_REG_SETs.
14330 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
14331 * reload.h: Likewise.
14332 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
14333 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
14334 of a "const HARD_REG_SET".
14335 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
14336 (range_in_hard_reg_set_p): Likewise.
14337 * ira-costs.c (restrict_cost_classes): Likewise.
14338 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
14339 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14340 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
14341 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
14342 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
14343 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
14344 take an unsigned int and open-code the HARD_REG_SET operations.
14345
14346 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14347
14348 * Makefile.in (OBJS): Remove bt-load.o.
14349 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
14350 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14351 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
14352 document that the option no longer does anything.
14353 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14354 * target.def (branch_target_register_class): Delete.
14355 (branch_target_register_callee_saved): Likewise.
14356 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14357 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
14358 * doc/tm.texi: Regenerate.
14359 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
14360 (make_pass_branch_target_load_optimize2): Likewise.
14361 * passes.def (pass_branch_target_load_optimize1): Likewise.
14362 (pass_branch_target_load_optimize2): Likewise.
14363 * targhooks.h (default_branch_target_register_class): Likewise.
14364 * targhooks.c (default_branch_target_register_class): Likewise.
14365 * opt-suggestions.c (test_completion_valid_options): Remove
14366 -fbtr-bb-exclusive from the list of test options.
14367 * bt-load.c: Remove.
14368
14369 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
14370
14371 * match.pd: Add flag_unsafe_math_optimizations check
14372 before deciding on the widest type in a binary math operation.
14373
14374 2019-09-09 Martin Liska <mliska@suse.cz>
14375
14376 * config/i386/i386.opt: Update comment of removed
14377 options that are preserved only for backward
14378 compatibility.
14379
14380 2019-09-09 Jakub Jelinek <jakub@redhat.com>
14381
14382 PR target/87853
14383 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
14384 instead of __v16qs.
14385
14386 PR target/91704
14387 * config/i386/avxintrin.h (__v32qs): New typedef.
14388 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
14389 instead of __v32qi.
14390
14391 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14392
14393 * doc/invoke.texi (Option Summary): Cover eBPF.
14394 (eBPF Options): New section.
14395 * doc/extend.texi (BPF Built-in Functions): Likewise.
14396 (BPF Kernel Helpers): Likewise.
14397
14398 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14399
14400 * config.gcc: Support for bpf-*-* targets.
14401 * common/config/bpf/bpf-common.c: New file.
14402 * config/bpf/t-bpf: Likewise.
14403 * config/bpf/predicates.md: Likewise.
14404 * config/bpf/constraints.md: Likewise.
14405 * config/bpf/bpf.opt: Likewise.
14406 * config/bpf/bpf.md: Likewise.
14407 * config/bpf/bpf.h: Likewise.
14408 * config/bpf/bpf.c: Likewise.
14409 * config/bpf/bpf-protos.h: Likewise.
14410 * config/bpf/bpf-opts.h: Likewise.
14411 * config/bpf/bpf-helpers.h: Likewise.
14412 * config/bpf/bpf-helpers.def: Likewise.
14413
14414 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14415
14416 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14417 indirect_calls.
14418
14419 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14420
14421 * opt-functions.awk (integer_range_info): Make sure values are in
14422 numeric context before operating with them.
14423
14424 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
14425
14426 * genemit.c (gen_split): Print the filename and line number where the
14427 splitter (or peephole2) was defined, to the dump file.
14428
14429 2019-09-07 Jakub Jelinek <jakub@redhat.com>
14430
14431 PR tree-optimization/91665
14432 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
14433 incompatible with the type of PHI result.
14434
14435 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14436
14437 PR target/91684
14438 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
14439 gen_unaligned_storedi for 4-byte aligned addresses.
14440
14441 2019-09-06 Jim Wilson <jimw@sifive.com>
14442
14443 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14444 change.
14445
14446 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14447
14448 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14449
14450 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14451
14452 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14453 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14454
14455 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
14456
14457 PR target/91654
14458 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14459 cost of SSE->integer and integer->SSE moves from 2 to 6.
14460 (core_cost): Ditto.
14461
14462 2019-09-06 Jakub Jelinek <jakub@redhat.com>
14463
14464 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14465 before testing TYPE_TRANSPARENT_AGGR.
14466 * calls.c (initialize_argument_information, load_register_parameters):
14467 Likewise.
14468
14469 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
14470
14471 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14472 high regs.
14473 (cmp_ior): Likewise.
14474
14475 2019-09-06 Martin Liska <mliska@suse.cz>
14476
14477 * doc/match-and-simplify.texi: Separate tuples with ;.
14478
14479 2019-09-06 Martin Liska <mliska@suse.cz>
14480
14481 PR c++/91125
14482 * Makefile.in: Remove tlink.o.
14483 * collect2.c (do_link): New function isolated
14484 from do_tlink.
14485 (main): Use.
14486 * collect2.h (do_tlink): Remove declaration of do_tlink.
14487 * doc/extend.texi: Remove documentation of -frepo.
14488 * doc/invoke.texi: Likewise.
14489 * doc/sourcebuild.texi: Remove cleanup-repo-files.
14490 * tlink.c: Remove.
14491
14492 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14493 Jim Wilson <jimw@sifive.com>
14494
14495 PR target/91635
14496 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14497 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14498 paradoxical_subreg_p (operands[0]).
14499 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14500 use as intermediate value.
14501
14502 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
14503
14504 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14505 (sync_compare_and_swap<mode>_insn): Likewise.
14506
14507 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14508
14509 PR middle-end/91615
14510 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14511 without movmisalign optab.
14512
14513 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14514
14515 PR middle-end/91001
14516 PR middle-end/91105
14517 PR middle-end/91106
14518 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14519 types, use type of their first field instead of type of
14520 args[i].tree_value.
14521
14522 2019-09-05 Richard Biener <rguenther@suse.de>
14523
14524 PR rtl-optimization/91656
14525 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14526 of early out.
14527
14528 2019-09-05 Richard Biener <rguenther@suse.de>
14529
14530 PR middle-end/90501
14531 * tree-inline.c (declare_return_variable): Mark the return
14532 slot as addressable after building an address of it.
14533
14534 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14535
14536 * doc/install.texi: Update and clarify requirements to build GNAT.
14537
14538 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14539
14540 PR middle-end/91577
14541 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14542 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14543 call to be in memory.
14544 (pass_expand::execute): Call discover_nonconstant_array_refs before
14545 setting currently_expanding_to_rtl.
14546
14547 2019-09-04 Caroline Tice <cmtice@google.com>
14548
14549 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14550 specified together.
14551
14552 2019-09-04 Marek Polacek <polacek@redhat.com>
14553
14554 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14555
14556 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14557
14558 PR target/32413
14559 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14560 for QI and HImode moves between SSE and general registers.
14561
14562 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14563
14564 PR c/78736
14565 * doc/invoke.texi: Document -Wenum-conversion.
14566
14567 2019-09-04 Richard Biener <rguenther@suse.de>
14568
14569 PR rtl-optimization/36262
14570 * postreload-gcse.c: Include intl.h and gcse.h.
14571 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14572 to avoid linear list walk.
14573 (record_last_mem_set_info): Gate off if not computing transparentness.
14574 (get_bb_avail_insn): If transparentness isn't computed give up
14575 early.
14576 (gcse_after_reload_main): Skip compute_transp and extended PRE
14577 if gcse_or_cprop_is_too_expensive says so.
14578
14579 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14580
14581 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14582 noinit section.
14583 (msp430_select_section): Handle decls with the "noinit" attribute with
14584 default_elf_select_section.
14585 Handle SECCAT_RODATA_MERGE_* section types with
14586 default_elf_select_section.
14587 Add comments about handling of unsupported section types.
14588 (msp430_section_type_flags): Remove handling of the noinit section.
14589
14590 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14591
14592 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14593 conflicting msp430-specific attributes.
14594 (msp430_section_attr): Likewise.
14595 Add warnings about conflicts with generic "noinit" and "section"
14596 attributes.
14597 Fix grammar in -mlarge error message.
14598 (msp430_data_attr): Rename to msp430_persist_attr.
14599 Add warnings about conflicts with generic "noinit" and "section"
14600 attributes.
14601 Add warning for when variable is not initialized.
14602 Chain conditionals which prevent the attribute being added.
14603 (ATTR_EXCL): New helper.
14604 (attr_reent_exclusions): New exclusion table.
14605 (attr_naked_exclusions): Likewise.
14606 (attr_crit_exclusions): Likewise.
14607 (attr_lower_exclusions): Likewise.
14608 (attr_upper_exclusions): Likewise.
14609 (attr_either_exclusions): Likewise.
14610 (attr_persist_exclusions): Likewise.
14611 (msp430_attribute_table): Update with exclusion rules.
14612 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14613 has a section.
14614
14615 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14616
14617 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14618 (msp430_handle_generic_attribute): New function.
14619 * doc/tm.texi: Regenerate.
14620 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14621 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14622 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14623 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14624
14625 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14626
14627 PR tree-optimization/91504
14628 * match.pd: Add ((~a & b) ^a) --> (a | b).
14629
14630 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14631
14632 PR target/91604
14633 * config/i386/i386-expand.c (split_double_mode): If there is more than
14634 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14635 already split matching MEM operand instead of calling adjust_address
14636 again.
14637
14638 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14639
14640 * config.gcc: Obsolete spu target. Remove references to spu.
14641 * configure.ac: Remove references to spu.
14642 * configure: Regenerate.
14643 * config/spu/: Remove directory.
14644 * common/config/spu/: Remove directory.
14645
14646 * doc/extend.texi: Remove references to spu.
14647 * doc/invoke.texi: Likewise.
14648 * doc/md.texi: Likewise.
14649 * doc/sourcebuild.texi: Likewise.
14650
14651 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14652
14653 PR middle-end/91603
14654 PR middle-end/91612
14655 PR middle-end/91613
14656 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14657 and SSA_NAME referring to CONSTANT_P correctly.
14658
14659 2019-09-03 Richard Biener <rguenther@suse.de>
14660
14661 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14662 (vn_nary_op_insert): Likewise.
14663 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14664 (vn_nary_op_lookup): Likewise.
14665 (vn_nary_op_insert): Likewise.
14666
14667 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14668
14669 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14670 (*op0, 1) instead of XEXP (*op1, 0).
14671
14672 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14673
14674 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14675 (aarch64_fjcvtzs): New define_insn.
14676 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14677 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14678 Add AARCH64_JSCVT.
14679 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14680 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14681 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14682 __ARM_FEATURE_JCVT where appropriate.
14683 * config/aarch64/arm_acle.h (__jcvt): Define.
14684
14685 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14686
14687 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14688 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14689 (aarch64_<frintnzs_op><mode>): New define_insn.
14690 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14691 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14692 __ARM_FEATURE_FRINT when appropriate.
14693 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14694 frint32x, frint64z, frint64x.
14695 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14696 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14697 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14698 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14699 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14700 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14701 * config/aarch64/iterators.md (VSFDF): Define.
14702 (FRINTNZX): Likewise.
14703 (frintnzs_op): Likewise.
14704
14705 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14706
14707 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14708 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14709 Cortex-A34.
14710 * config/aarch64/aarch64-tune.md: Regenerated.
14711 * doc/invoke.texi: Document the new processors.
14712
14713 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14714
14715 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14716 string.
14717 (ssbs): Likewise.
14718 (sve2): Likewise.
14719 (sve2-sm4): Likewise.
14720 (sveaes): Likewise.
14721 (svesha3): Likewise.
14722 (svebitperm): Likewise.
14723
14724 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14725 Richard Biener <rguenther@suse.de>
14726
14727 PR tree-optimization/91597
14728 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14729 BIT_AND_EXPR optimization for pointers, even if both operand
14730 ranges don't include NULL, the result can be NULL.
14731
14732 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14733
14734 PR middle-end/91605
14735 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14736 (non_mem_decl_p): ...this.
14737 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14738 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14739 unconditionally as before.
14740
14741 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14742
14743 PR target/91323
14744 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14745 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14746 * tree.def (LTGT_EXPR): Likewise.
14747 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14748
14749 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14750
14751 PR go/91617
14752 * fold-const.c (range_check_type): For enumeral and boolean
14753 type, pass 1 to type_for_size langhook instead of
14754 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14755 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14756 (build_range_check): Don't call unsigned_type_for for pointer types.
14757 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14758 range_check_type result.
14759
14760 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14761
14762 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14763 (replace_ref): Do not replace a chain of only two candidates which are
14764 valid memory references.
14765
14766 2019-09-02 Martin Liska <mliska@suse.cz>
14767
14768 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14769 Bail out when we'll end up with the same number of clusters as
14770 at the beginning.
14771 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14772 (jump_table_cluster::can_be_handled): Remove the guard
14773 as it's already handled in ::is_enabled. Allocate output
14774 after early bail out.
14775
14776 2019-09-02 Martin Liska <mliska@suse.cz>
14777
14778 PR gcov-profile/91601
14779 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14780 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14781 also negative edges.
14782 (circuit): Handle also negative edges as they can happen
14783 in some situations.
14784
14785 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14786
14787 PR target/91472
14788 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14789 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14790 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14791
14792 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14793
14794 PR middle-end/91623
14795 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14796 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14797 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14798 zero vector.
14799
14800 PR lto/91572
14801 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14802 GIMPLE_ASM TREE_LIST operands.
14803
14804 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14805
14806 * doc/generic.texi (Unary and Binary Expressions): Mark up
14807 an instance of TYPE_MIN.
14808
14809 2019-08-31 Stafford Horne <shorne@gmail.com>
14810
14811 * config/or1k/constraints.md (t): New constraint.
14812 * config/or1k/or1k.h (GOT_REGS): New register class.
14813 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14814
14815 2019-08-30 Jim Wilson <jimw@sifive.com>
14816
14817 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14818 and -fpic and -mplt then disable -msave-restore and warn.
14819
14820 2019-08-30 Martin Sebor <msebor@redhat.com>
14821
14822 PR middle-end/91599
14823 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14824 the statement doesn't have one.
14825 * gimple-pretty-print.c (percent_G_format): Same.
14826
14827 PR middle-end/91584
14828 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14829 before using them to validate MEM_REF offset.
14830
14831 2019-08-30 Marek Polacek <polacek@redhat.com>
14832
14833 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14834
14835 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14836
14837 * config/arm/arm.md (unaligned_loaddi,
14838 unaligned_storedi): New unspec insn patterns.
14839 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14840 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14841 and unaligned_storedi for 4-byte aligned memory.
14842 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14843 4-byte aligned memory.
14844
14845 2019-08-30 Martin Jambor <mjambor@suse.cz>
14846
14847 tree-optimization/91579
14848 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14849 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14850 appropriate.
14851 (arg_needs_copy_p): Removed.
14852 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14853 arg_needs_copy_p.
14854 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14855
14856 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14857
14858 * config/i386/i386-features.c
14859 (general_scalar_chain::compute_convert_gain):
14860 Correct cost for double-word shifts.
14861 (general_scalar_to_vector_candidate_p): Reject count operands
14862 greater or equal to mode bitsize.
14863
14864 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14865
14866 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14867 for moves between SSE and non-general registers and between
14868 mask and non-general registers.
14869 (ix86_register_move_cost): Remove stalled comment.
14870
14871 2019-08-29 Richard Biener <rguenther@suse.de>
14872
14873 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14874 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14875
14876 2019-08-29 Richard Biener <rguenther@suse.de>
14877
14878 PR bootstrap/91580
14879 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14880 Do not emit scalar copies for debug-insns, instead replace
14881 their uses with the reg copy used in the chain or reset them
14882 if there is a reaching definition outside of the chain as well.
14883
14884 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14885
14886 PR target/91560
14887 * config/i386/i386-expand.c (expand_vec_perm_movs,
14888 expand_vec_perm_blend, expand_vec_perm_vpermil,
14889 expand_vec_perm_pshufb, expand_vec_perm_1,
14890 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14891 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14892 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14893 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14894 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14895 comments - replace ix86_expand_vec_perm_builtin_1 with
14896 ix86_expand_vec_perm_const_1.
14897 (expand_vec_perm2_vperm2f128_vblend): New function.
14898 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14899 expand_vec_perm2_vperm2f128_vblend as last resort.
14900 (canonicalize_perm): Formatting fix.
14901
14902 PR tree-optimization/91351
14903 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14904 unsigned_type_for.
14905 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14906 range_check_type returns NULL.
14907 * tree-switch-conversion.c (switch_conversion::build_one_array):
14908 Use range_check_type instead of unsigned_type_for, don't perform
14909 linear opt if it returns NULL.
14910 (bit_test_cluster::find_bit_tests): Formatting fix.
14911 (bit_test_cluster::emit): Use range_check_type instead of
14912 unsigned_type_for.
14913 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14914 returns NULL.
14915
14916 2019-08-29 Richard Biener <rguenther@suse.de>
14917
14918 PR tree-optimization/91568
14919 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14920 (vect_update_max_nunits): Add overload for poly_uint64.
14921 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14922 (vect_build_slp_tree): Record max_nunits into the subtree
14923 and merge it upwards.
14924 (vect_print_slp_tree): Print max_nunits.
14925
14926 2019-08-28 Marek Polacek <polacek@redhat.com>
14927
14928 Implement P1152R4: Deprecating some uses of volatile.
14929 PR c++/91361
14930 * doc/invoke.texi: Document -Wvolatile.
14931
14932 2019-08-28 Marek Polacek <polacek@redhat.com>
14933
14934 PR c++/91360 - Implement C++20 P1143R2: constinit.
14935 * doc/invoke.texi: Document -Wc++20-compat.
14936
14937 2019-08-28 Martin Sebor <msebor@redhat.com>
14938
14939 PR tree-optimization/91457
14940 * builtins.c (component_size): New function.
14941 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14942 * builtins.h (compute_objsize): Add argument.
14943 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14944 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14945 (vrp_prop::check_mem_ref): Same.
14946 (vrp_prop::search_for_addr_array): Set no-warning bit.
14947 (check_array_bounds): Same.
14948
14949 2019-08-28 Martin Sebor <msebor@redhat.com>
14950
14951 PR driver/80545
14952 * opts-common.c (option_enabled): Correct checking for language
14953 options.
14954
14955 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14956
14957 * config/i386/i386.c (ix86_register_move_cost): Do not
14958 limit the cost of moves to/from XMM register to minimum 8.
14959
14960 2019-08-28 Martin Jambor <mjambor@suse.cz>
14961
14962 PR ipa/91468
14963 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14964 checking assert a normal assert to test it really is redundant.
14965 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14966 redundant test.
14967 (update_jump_functions_after_inlining): Removed combining unary
14968 arithmetic operations with an ancestor jump function.
14969 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14970 instead of t.
14971
14972 2019-08-28 Richard Biener <rguenther@suse.de>
14973
14974 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14975 add the MD problem.
14976
14977 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14978 Richard Biener <rguenther@suse.de>
14979
14980 * expr.c (expand_assignment): Handle misaligned DECLs.
14981 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14982 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14983 too.
14984 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14985 * varasm.c (build_constant_desc): Align constants of misaligned types.
14986 * config/arm/predicates.md (aligned_operand): New predicate.
14987 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14988 aligned_operand to check restrictions on memory addresses.
14989 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14990 * config/arm/vec-common.md (mov<VALL>): Likewise.
14991
14992 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14993
14994 PR libgomp/91530
14995 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14996 V_128 iterator instead of VI_128.
14997
14998 2019-08-28 Martin Liska <mliska@suse.cz>
14999
15000 PR tree-optimization/90970
15001 * builtins.c (check_access): Remove assignment to maxread
15002 as it hasn't been used since when it was introduced in r255755.
15003
15004 2019-08-27 Martin Sebor <msebor@redhat.com>
15005
15006 PR tree-optimization/91567
15007 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
15008 of unknown strings.
15009 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
15010 to PTRDIFF_MAX - 2.
15011
15012 2019-08-27 Jeff Law <law@redhat.com>
15013
15014 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
15015 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
15016
15017 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
15018
15019 PR target/91528
15020 * config/i386/i386-features.c (convert_scalars_to_vector):
15021 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
15022 crtl->stack_realign_processed. Update crtl->drap_reg by calling
15023 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
15024 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
15025
15026 2019-08-27 Richard Biener <rguenther@suse.de>
15027
15028 * config/i386/i386-features.h
15029 (general_scalar_chain::~general_scalar_chain): Add.
15030 (general_scalar_chain::insns_conv): New bitmap.
15031 (general_scalar_chain::n_sse_to_integer): New.
15032 (general_scalar_chain::n_integer_to_sse): Likewise.
15033 (general_scalar_chain::make_vector_copies): Adjust signature.
15034 * config/i386/i386-features.c
15035 (general_scalar_chain::general_scalar_chain): Outline,
15036 initialize new members.
15037 (general_scalar_chain::~general_scalar_chain): New.
15038 (general_scalar_chain::mark_dual_mode_def): Record insns
15039 we need to insert conversions at and count them.
15040 (general_scalar_chain::compute_convert_gain): Account
15041 for conversion instructions at chain boundary.
15042 (general_scalar_chain::make_vector_copies): Generate a single
15043 copy for a def by a specific insn.
15044 (general_scalar_chain::convert_registers): First populate
15045 defs_map, then make copies at out-of chain insns.
15046
15047 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
15048
15049 * config/arm/arm.md (stack_protect_set_insn): Add security-related
15050 comment.
15051 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
15052
15053 2019-08-27 Martin Liska <mliska@suse.cz>
15054
15055 * cgraph.c (cgraph_node::remove): Remove dead assignment before
15056 loop.
15057 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
15058 Enclose in anonymous namespace.
15059 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
15060 hard_register initialization in braces.
15061 * tree-vrp.h (value_range_base::supports_type_p): Return false
15062 for function with boolean return type.
15063
15064 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
15065
15066 * config/i386/i386.c (emit_i387_cw_initialization)
15067 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
15068
15069 2019-08-26 Martin Sebor <msebor@redhat.com>
15070
15071 PR c++/83431
15072 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
15073 (sprintf_dom_walker): Remove class.
15074 (get_int_range): Make argument const.
15075 (directive::fmtfunc, directive::set_precision): Same.
15076 (format_none): Same.
15077 (build_intmax_type_nodes): Same.
15078 (adjust_range_for_overflow): Same.
15079 (format_floating): Same.
15080 (format_character): Same.
15081 (format_string): Same.
15082 (format_plain): Same.
15083 (get_int_range): Cast away constness.
15084 (format_integer): Same.
15085 (get_string_length): Call get_range_strlen_dynamic. Handle
15086 null lendata.maxbound.
15087 (should_warn_p): Adjust argument scope qualifier.
15088 (maybe_warn): Same.
15089 (format_directive): Same.
15090 (parse_directive): Same.
15091 (is_call_safe): Same.
15092 (try_substitute_return_value): Same.
15093 (sprintf_dom_walker::handle_printf_call): Rename...
15094 (handle_printf_call): ...to this. Initialize target to host charmap
15095 here instead of in pass_sprintf_length::execute.
15096 (struct call_info): Make global.
15097 (sprintf_dom_walker::compute_format_length): Make global.
15098 (sprintf_dom_walker::handle_gimple_call): Same.
15099 * passes.def (pass_sprintf_length): Replace with pass_strlen.
15100 * print-rtl.c (print_pattern): Reduce the number of spaces to
15101 avoid -Wformat-truncation.
15102 * tree-pass.h (make_pass_warn_printf): New function.
15103 * tree-ssa-strlen.c (strlen_optimize): New variable.
15104 (get_string_length): Add comments.
15105 (get_range_strlen_dynamic): New function.
15106 (check_and_optimize_call): New function.
15107 (handle_integral_assign): New function.
15108 (strlen_check_and_optimize_stmt): Factor code out into
15109 strlen_check_and_optimize_call and handle_integral_assign.
15110 (strlen_dom_walker::evrp): New member.
15111 (strlen_dom_walker::before_dom_children): Use evrp member.
15112 (strlen_dom_walker::after_dom_children): Use evrp member.
15113 (printf_strlen_execute): New function.
15114 (pass_strlen::gate): Update to handle printf calls.
15115 (dump_strlen_info): New function.
15116 (pass_data_warn_printf): New variable.
15117 (pass_warn_printf): New class.
15118 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
15119 (handle_printf_call): Same.
15120 * tree-vrp.c (value_range_base::type): Adjust assertion.
15121 * vr-values.c (vr_values::update_value_range): Use type of the first
15122 argument rather than the second.
15123
15124 2019-08-26 Richard Biener <rguenther@suse.de>
15125
15126 * config/i386/i386-features.c (general_remove_non_convertible_regs):
15127 Remove.
15128 (convert_scalars_to_vector): Do not call it.
15129
15130 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15131 Uros Bizjak <ubizjak@gmail.com>
15132
15133 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
15134 CASE_MATHFN_FLOATN for roundeven.
15135 * config/i386/i386.c (ix86_i387_mode_needed): Add case
15136 I387_ROUNDEVEN.
15137 (ix86_mode_needed): Likewise.
15138 (ix86_mode_after): Likewise.
15139 (ix86_mode_entry): Likewise.
15140 (ix86_mode_exit): Likewise.
15141 (ix86_emit_mode_set): Likewise.
15142 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
15143 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
15144 (ix86_entity): Add I387_ROUNDEVEN.
15145 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
15146 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
15147 (define_int_iterator): Likewise.
15148 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
15149 (define_constant): Define ROUND_ROUNDEVEN mode.
15150 (define_attr): Add roundeven mode for i387_cw.
15151 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
15152 * internal-fn.def (ROUNDEVEN): New builtin function.
15153 * optabs.def (roundeven_optab): New optab.
15154
15155 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15156
15157 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
15158 for ROUNDEVEN.
15159 * builtins.def: Added function definitions for roundeven function
15160 variants.
15161 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
15162 function call. Adjust condition for floor, ceil, trunc and round.
15163 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
15164 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
15165 (integer_valued_real_call_p): Added case for roundeven function.
15166 * real.c (is_even): New function. Returns true if real number is even,
15167 otherwise returns false.
15168 (is_halfway_below): New function. Returns true if real number is
15169 halfway between two integers, else return false.
15170 (real_roundeven): New function. Round real number to nearest integer,
15171 rounding halfway cases towards even.
15172 * real.h (real_value): Added descriptive comments. Added function
15173 declaration for roundeven function.
15174 * doc/extend.texi (Other Builtins): List roundeven variants among
15175 functions which can be handled as builtins.
15176
15177 2019-08-26 Richard Biener <rguenther@suse.de>
15178
15179 PR target/91522
15180 PR target/91527
15181 * config/i386/i386-features.h (general_scalar_chain::defs_map):
15182 New member.
15183 (general_scalar_chain::replace_with_subreg): Remove.
15184 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15185 (general_scalar_chain::convert_reg): Adjust signature.
15186 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
15187 iterate over all defs of a reg.
15188 (general_scalar_chain::replace_with_subreg): Remove.
15189 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15190 (general_scalar_chain::make_vector_copies): Populate defs_map,
15191 place copy only after defs that are used as vectors in the chain.
15192 (general_scalar_chain::convert_reg): Emit a copy for a specific
15193 def in a specific instruction.
15194 (general_scalar_chain::convert_op): All reg uses are converted here.
15195 (general_scalar_chain::convert_insn): Emit copies for scalar
15196 uses of defs here. Replace uses with the copies we created.
15197 Replace and convert the def. Adjust REG_DEAD notes, remove
15198 REG_EQUIV/EQUAL notes.
15199 (general_scalar_chain::convert_registers): Only handle copies
15200 into the chain here.
15201
15202 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15203
15204 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
15205
15206 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15207
15208 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
15209 Add nop_convert case.
15210 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
15211 Fold all statements if requested.
15212 * tree-ssa-propagate.h (class substitute_and_fold_engine):
15213 Allow to fold all statements.
15214 * tree-vrp.c (class vrp_folder):
15215 Let substitute_and_fold_engine fold all statements.
15216
15217 2019-08-26 Richard Biener <rguenther@suse.de>
15218
15219 PR tree-optimization/91526
15220 * passes.def: Note that after late FRE we do TODO_update_address_taken.
15221 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
15222 TODO_update_address_taken.
15223
15224 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
15225
15226 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
15227 __STDC_HOSTED__.
15228
15229 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
15230
15231 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
15232 machine mode for unspec_volatile operand.
15233
15234 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
15235
15236 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
15237 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
15238 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
15239 (prefer_neon_for_64bits): Remove.
15240 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
15241 (tune_params): Remove PREF_NEON_64_FALSE uses.
15242 (arm_option_override): Remove prefer_neon selection code.
15243 (arm_print_tune_info): Remove prefer_neon_for_64bits.
15244 * config/arm/arm-protos.h (tune_params): Remove
15245 prefer_neon_for_64bits.
15246 (prefer_neon_for_64bits): Remove.
15247
15248 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
15249
15250 PR pch/61250
15251 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
15252 and issue any diagnostics needed before collecting the pre-PCH
15253 state.
15254
15255 2019-08-23 Jakub Jelinek <jakub@redhat.com>
15256
15257 PR middle-end/91283
15258 * common.opt (fexcess-precision=): Add Optimization flag. Use
15259 flag_excess_precision variable instead of
15260 flag_excess_precision_cmdline.
15261 * flags.h (class target_flag_state): Remove x_flag_excess_precision
15262 member.
15263 (flag_excess_precision): Don't define.
15264 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
15265 flag_excess_precision_cmdline. Remove comment.
15266 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
15267 and x_flag_excess_precision instead of
15268 frontend_set_flag_excess_precision_cmdline and
15269 x_flag_excess_precision_cmdline.
15270 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
15271 x_flag_excess_precision_cmdline.
15272 * toplev.c (init_excess_precision): Remove.
15273 (lang_dependent_init_target): Don't call it.
15274
15275 2019-08-23 Martin Liska <mliska@suse.cz>
15276
15277 * lto-wrapper.c (run_gcc): When setting jobserver
15278 set also parallel to 1. This was done so before r273908.
15279
15280 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
15281
15282 * config/arm/arm-cpus.in (cortex-m35p): New entry.
15283 (cortex-a76ae): Likewise.
15284 (cortex-a77): Likewise
15285 * config/arm/arm-tables.opt: Regenerate.
15286 * config/arm/arm-tune.md: Likewise.
15287 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
15288 cortex-a77 CPU options.
15289
15290 2019-08-23 Martin Liska <mliska@suse.cz>
15291
15292 * profile.c (instrument_values): Do not set
15293 0 as last argument.
15294 * tree-profile.c (gimple_gen_interval_profiler): Remove
15295 last argument.
15296 (gimple_gen_pow2_profiler): Likewise.
15297 (gimple_gen_topn_values_profiler): Likewise.
15298 (gimple_gen_ic_profiler): Likewise.
15299 (gimple_gen_time_profiler): Likewise.
15300 (gimple_gen_average_profiler): Likewise.
15301 (gimple_gen_ior_profiler): Likewise.
15302 * value-prof.c (dump_histogram_value): Use default
15303 in switch statement instead of HIST_TYPE_MAX.
15304 (stream_in_histogram_value): Likewise.
15305 (gimple_duplicate_stmt_histograms): Do not
15306 use NULL for implicitly set arguments.
15307 (gimple_divmod_values_to_profile): Do not use
15308 reserve+quick_push.
15309 (gimple_indirect_call_to_profile): Likewise.
15310 (gimple_find_values_to_profile): Use implicit
15311 function call arguments.
15312 * value-prof.h (gimple_alloc_histogram_value):
15313 Set default values.
15314 (gimple_gen_interval_profiler): Remove last argument.
15315 (gimple_gen_pow2_profiler): Likewise.
15316 (gimple_gen_topn_values_profiler): Likewise.
15317 (gimple_gen_ic_profiler): Likewise.
15318 (gimple_gen_time_profiler): Likewise.
15319 (gimple_gen_average_profiler): Likewise.
15320 (gimple_gen_ior_profiler): Likewise.
15321
15322 2019-08-22 Martin Sebor <msebor@redhat.com>
15323
15324 PR middle-end/91490
15325 * builtins.c (c_strlen): Rename argument and introduce new local.
15326 Set no-warning bit on original argument.
15327 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
15328 Fold empty and zero constructors into empty strings.
15329 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
15330 for missing initializers.
15331 * tree.c (build_string_literal): Handle optional argument.
15332 * tree.h (build_string_literal): Add defaulted argument.
15333 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
15334 no-warning bit on original expression.
15335
15336 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15337
15338 PR target/91481
15339 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15340 and UNSPEC_DARN_RAW.
15341 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
15342 UNSPECV_DARN_RAW.
15343 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
15344 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
15345 (darn): Use an unspec_volatile, and UNSPECV_DARN.
15346
15347 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15348
15349 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15350 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
15351 * config/rs6000/rs6000.md (unspec): ... here.
15352 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
15353 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15354 cmpeqb, *cmpeqb_internal): Delete, move to...
15355 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
15356 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15357 cmpeqb, *cmpeqb_internal): ... here.
15358
15359 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15360
15361 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
15362 intrinsics if __ARM_FP.
15363 Use __ARM_FEATURE_CRC32 ifdef guard.
15364
15365 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15366
15367 * config/arm/arm.md (neon_for_64bits): Remove.
15368 (avoid_neon_for_64bits): Remove.
15369 (arm_adddi3): Always split early.
15370 (arm_subdi3): Always split early.
15371 (negdi2): Remove Neon expansion.
15372 (split zero_extend): Split before reload.
15373 (split sign_extend): Split before reload.
15374
15375 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15376
15377 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
15378 (qhs_extenddi_cstr): Likewise.
15379 * config/arm/arm.md (ashldi3): Always expand early.
15380 (ashlsi3): Likewise.
15381 (ashrsi3): Likewise.
15382 (zero_extend<mode>di2): Remove Neon variants.
15383 (extend<mode>di2): Likewise.
15384 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
15385 (signed_shift_di3_neon): Likewise.
15386 (unsigned_shift_di3_neon): Likewise.
15387 (ashrdi3_neon_imm_noclobber): Likewise.
15388 (lshrdi3_neon_imm_noclobber): Likewise.
15389 (<shift>di3_neon): Likewise.
15390 (split extend): Remove DI extend split patterns.
15391
15392 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15393
15394 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
15395 (split not): Add DImode not splitter.
15396 (anddi3): Remove pattern.
15397 (anddi3_insn): Likewise.
15398 (anddi_zesidi_di): Likewise.
15399 (anddi_sesdi_di): Likewise.
15400 (anddi_notdi_di): Likewise.
15401 (anddi_notzesidi_di): Likewise.
15402 (anddi_notsesidi_di): Likewise.
15403 (iordi3): Likewise.
15404 (iordi3_insn): Likewise.
15405 (iordi_zesidi_di): Likewise.
15406 (iordi_sesidi_di): Likewise.
15407 (xordi3): Likewise.
15408 (xordi3_insn): Likewise.
15409 (xordi_sesidi_di): Likewise.
15410 (xordi_zesidi_di): Likewise.
15411 (one_cmpldi2): Likewise.
15412 (one_cmpldi2_insn): Likewise.
15413 * config/arm/constraints.md: Remove De, Df, Dg constraints.
15414 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
15415 alternative.
15416 (iwmmxt_xordi3): Likewise.
15417 (iwmmxt_anddi3): Likewise.
15418 * config/arm/neon.md (orndi3_neon): Remove pattern.
15419 (anddi_notdi_di): Likewise.
15420 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
15421 (arm_iordi_operand_neon): Likewise.
15422 (arm_xordi_operand_neon): Likewise.
15423 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
15424 (iordi_notzesidi_di): Likewise.
15425 (iordi_notdi_zesidi): Likewise.
15426 (iordi_notsesidi_di): Likewise.
15427
15428 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
15429
15430 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
15431 insn.
15432 (iorsi3_compare0_scratch): Likewise.
15433
15434 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
15435
15436 * config/aarch64/aarch64-simd-builtins.def:
15437 (ld1x4): New.
15438 (st1x4): Likewise.
15439 * config/aarch64/aarch64-simd.md:
15440 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15441 (aarch64_st1x4<VALLDIF:mode>): Likewise.
15442 (aarch64_ld1_x4_<mode>): Likewise.
15443 (aarch64_st1_x4_<mode>): Likewise.
15444 * config/aarch64/arm_neon.h:
15445 (vld1_s8_x4): New function.
15446 (vld1q_s8_x4): Likewise.
15447 (vld1_s16_x4): Likewise.
15448 (vld1q_s16_x4): Likewise.
15449 (vld1_s32_x4): Likewise.
15450 (vld1q_s32_x4): Likewise.
15451 (vld1_u8_x4): Likewise.
15452 (vld1q_u8_x4): Likewise.
15453 (vld1_u16_x4): Likewise.
15454 (vld1q_u16_x4): Likewise.
15455 (vld1_u32_x4): Likewise.
15456 (vld1q_u32_x4): Likewise.
15457 (vld1_f16_x4): Likewise.
15458 (vld1q_f16_x4): Likewise.
15459 (vld1_f32_x4): Likewise.
15460 (vld1q_f32_x4): Likewise.
15461 (vld1_p8_x4): Likewise.
15462 (vld1q_p8_x4): Likewise.
15463 (vld1_p16_x4): Likewise.
15464 (vld1q_p16_x4): Likewise.
15465 (vld1_s64_x4): Likewise.
15466 (vld1_u64_x4): Likewise.
15467 (vld1_p64_x4): Likewise.
15468 (vld1q_s64_x4): Likewise.
15469 (vld1q_u64_x4): Likewise.
15470 (vld1q_p64_x4): Likewise.
15471 (vld1_f64_x4): Likewise.
15472 (vld1q_f64_x4): Likewise.
15473 (vst1_s8_x4): Likewise.
15474 (vst1q_s8_x4): Likewise.
15475 (vst1_s16_x4): Likewise.
15476 (vst1q_s16_x4): Likewise.
15477 (vst1_s32_x4): Likewise.
15478 (vst1q_s32_x4): Likewise.
15479 (vst1_u8_x4): Likewise.
15480 (vst1q_u8_x4): Likewise.
15481 (vst1_u16_x4): Likewise.
15482 (vst1q_u16_x4): Likewise.
15483 (vst1_u32_x4): Likewise.
15484 (vst1q_u32_x4): Likewise.
15485 (vst1_f16_x4): Likewise.
15486 (vst1q_f16_x4): Likewise.
15487 (vst1_f32_x4): Likewise.
15488 (vst1q_f32_x4): Likewise.
15489 (vst1_p8_x4): Likewise.
15490 (vst1q_p8_x4): Likewise.
15491 (vst1_p16_x4): Likewise.
15492 (vst1q_p16_x4): Likewise.
15493 (vst1_s64_x4): Likewise.
15494 (vst1_u64_x4): Likewise.
15495 (vst1_p64_x4): Likewise.
15496 (vst1q_s64_x4): Likewise.
15497 (vst1q_u64_x4): Likewise.
15498 (vst1q_p64_x4): Likewise.
15499 (vst1_f64_x4): Likewise.
15500 (vst1q_f64_x4): Likewise.
15501
15502 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15503
15504 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15505
15506 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15507 Richard Sandiford <richard.sandiford@arm.com>
15508
15509 PR target/88839
15510 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15511 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15512
15513 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15514
15515 PR target/90724
15516 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15517 in reg if it fails aarch64_plus_operand predicate.
15518
15519 2019-08-21 Richard Biener <rguenther@suse.de>
15520
15521 PR tree-optimization/91482
15522 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15523 BUILT_IN_ASSUME_ALIGNED calls.
15524
15525 2019-08-21 Richard Biener <rguenther@suse.de>
15526
15527 PR target/91498
15528 PR target/91503
15529 * config/i386/i386-features.c
15530 (general_scalar_chain::make_vector_copies): Copy stack temporary
15531 rtx when using it multiple times.
15532 (general_scalar_chain::convert_reg): Likewise.
15533
15534 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15535
15536 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15537
15538 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15539
15540 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15541 catch more redundant zero initialization cases.
15542 (dse_dom_walker::dse_optimize_stmt): Likewise.
15543
15544 2019-08-20 Richard Biener <rguenther@suse.de>
15545
15546 PR lto/91307
15547 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15548 by collect2 when targetm.have_ctors_dtors which avoids dragging
15549 in temporary filenames from LTO input objects.
15550
15551 2019-08-20 Richard Biener <rguenther@suse.de>
15552
15553 PR tree-optimization/37242
15554 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15555 to (T)a + (T)b if we know that a + b does not overflow.
15556
15557 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15558
15559 PR rtl-optimization/91347
15560 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15561 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15562
15563 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15564
15565 * calls.h (function_arg_info): Add a pass_by_reference field,
15566 defaulting to false.
15567 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15568 when applying pass-by-reference semantics.
15569 (initialize_argument_information): Likewise.
15570 (emit_library_call_value_1): Likewise.
15571 * function.c (assign_parm_data_one): Remove passed_pointer field.
15572 (assign_parm_find_data_types): Don't set it.
15573 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15574 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15575 arg.pass_by_reference instead of passed_pointer.
15576
15577 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15578
15579 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15580 into a single function_arg_info, updating its fields when we
15581 apply pass-by-reference and promotion semantics. Use the
15582 function_arg_info to track the mode rather than keeping it in
15583 a separate local variable.
15584 (initialize_argument_information): Likewise. Base the final
15585 arg_to_skip on this new function_arg_info rather than creating
15586 a new one from scratch.
15587
15588 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15589
15590 * function.c (assign_parm_data_one): Replace passed_type,
15591 promoted_mode and named_arg with a function_arg_info field.
15592 (assign_parm_find_data_types): Remove local variables and
15593 assign directly to "data". Make data->passed_mode shadow
15594 data->arg.mode until promotion, then assign the promoted
15595 mode to data->arg.mode.
15596 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15597 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15598 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15599 (assign_parm_setup_block, assign_parm_setup_reg)
15600 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15601 arg.mode instead of promoted_mode, arg.type instead of passed_type
15602 and arg.named instead of named_arg. Use data->arg for
15603 function_arg_info structures that had the field values passed_type,
15604 promoted_mode and named_arg. Base other function_arg_infos on
15605 data->arg, changing the necessary properties.
15606
15607 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15608
15609 * calls.h (apply_pass_by_reference_rules): Declare.
15610 * calls.c (apply_pass_by_reference_rules): New function.
15611 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15612 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15613 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15614 * function.c (assign_parm_find_data_types): Likewise.
15615 * var-tracking.c (prepare_call_arguments): Likewise.
15616
15617 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15618
15619 * target.def (must_pass_in_stack): Take a function_arg_info instead
15620 of a mode and a type.
15621 * doc/tm.texi: Regenerate.
15622 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15623 instead of a mode and a type.
15624 (must_pass_in_stack_var_size_or_pad): Likewise.
15625 * calls.c (must_pass_in_stack_var_size): Likewise.
15626 (must_pass_in_stack_var_size_or_pad): Likewise.
15627 (initialize_argument_information): Update call to
15628 targetm.calls.must_pass_in_stack.
15629 (must_pass_va_arg_on_stack): Likewise.
15630 * function.c (assign_parm_find_entry_rtl): Likewise.
15631 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15632 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15633 (alpha_function_arg_advance): Likewise.
15634 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15635 (cr16_function_arg_advance): Likewise.
15636 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15637 (cris_arg_partial_bytes): Likewise.
15638 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15639 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15640 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15641 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15642 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15643 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15644 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15645 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15646 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15647 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15648 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15649 instead of a mode and a type.
15650 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15651 (fr30_num_arg_regs): Likewise.
15652 (fr30_setup_incoming_varargs): Update calls accordingly.
15653 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15654 (fr30_function_arg_advance): Likewise.
15655 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15656 instead of a mode and a type.
15657 * config/gcn/gcn.c (num_arg_regs): Likewise.
15658 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15659 num_arg_regs and targetm.calls.must_pass_in_stack.
15660 (gcn_arg_partial_bytes): Likewise.
15661 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15662 function_arg_info instead of a mode and a type.
15663 (classify_argument): Update call accordingly.
15664 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15665 function_arg_info instead of a mode and a type.
15666 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15667 Likewise.
15668 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15669 (rs6000_parm_needs_stack): Update call accordingly.
15670 (setup_incoming_varargs): Likewise.
15671
15672 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15673
15674 * target.def (callee_copies): Take a function_arg_info instead
15675 of a mode, type and named flag.
15676 * doc/tm.texi: Regenerate.
15677 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15678 instead of a mode, type and named flag.
15679 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15680 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15681 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15682 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15683 instead of a mode, type and named flag.
15684 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15685 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15686 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15687 * calls.h (reference_callee_copied): Take a function_arg_info
15688 instead of a mode, type and named flag.
15689 * calls.c (reference_callee_copied): Likewise.
15690 (initialize_argument_information): Update call accordingly.
15691 (emit_library_call_value_1): Likewise.
15692 * function.c (gimplify_parameters): Likewise.
15693 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15694 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15695 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15696 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15697 (TARGET_CALLEE_COPIES): Define to
15698 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15699 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15700 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15701 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15702 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15703 instead of a mode, type and named flag.
15704 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15705 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15706 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15707 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15708 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15709 (TARGET_CALLEE_COPIES): Define to
15710 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15711 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15712 instead of a mode, type and named flag.
15713 * config/sh/sh.c (sh_callee_copies): Likewise.
15714 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15715 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15716 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15717
15718 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15719
15720 * target.def (function_arg_advance): Take a function_arg_info instead
15721 of a mode, type and named flag.
15722 * doc/tm.texi: Regenerate.
15723 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15724 instead of a mode, type and named flag.
15725 * targhooks.c (default_function_arg_advance): Likewise.
15726 * calls.c (initialize_argument_information): Update call to
15727 targetm.calls.function_arg_advance.
15728 (emit_library_call_value_1): Likewise.
15729 * dse.c (get_call_args): Likewise.
15730 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15731 * function.c (assign_parms, gimplify_parameters): Likewise.
15732 * var-tracking.c (prepare_call_arguments): Likewise.
15733 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15734 function_arg_info instead of a mode, type and named flag.
15735 (aarch64_setup_incoming_varargs): Update call accordingly.
15736 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15737 function_arg_info instead of a mode, type and named flag.
15738 (alpha_setup_incoming_varargs): Update call accordingly.
15739 * config/arc/arc.c (arc_function_arg_advance): Take a
15740 function_arg_info instead of a mode, type and named flag.
15741 (arc_setup_incoming_varargs): Update call accordingly.
15742 * config/arm/arm.c (arm_function_arg_advance): Take a
15743 function_arg_info instead of a mode, type and named flag.
15744 (cmse_func_args_or_return_in_stack): Update call accordingly.
15745 (arm_function_ok_for_sibcall): Likewise.
15746 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15747 * config/avr/avr.c (avr_function_arg_advance): Take a
15748 function_arg_info instead of a mode, type and named flag.
15749 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15750 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15751 (c6x_call_saved_register_used): Update call accordingly.
15752 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15753 function_arg_info instead of a mode, type and named flag.
15754 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15755 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15756 (csky_setup_incoming_varargs): Update call accordingly.
15757 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15758 function_arg_info instead of a mode, type and named flag.
15759 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15760 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15761 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15762 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15763 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15764 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15765 (ix86_setup_incoming_varargs): Update call accordingly.
15766 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15767 function_arg_info instead of a mode, type and named flag.
15768 (ia64_setup_incoming_varargs): Update call accordingly.
15769 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15770 function_arg_info instead of a mode, type and named flag.
15771 (iq2000_expand_prologue): Update call accordingly.
15772 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15773 function_arg_info instead of a mode, type and named flag.
15774 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15775 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15776 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15777 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15778 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15779 Likewise.
15780 (microblaze_expand_prologue): Update call accordingly.
15781 * config/mips/mips.c (mips_function_arg_advance): Take a
15782 function_arg_info instead of a mode, type and named flag.
15783 (mips_setup_incoming_varargs): Update call accordingly.
15784 (mips_output_args_xfer): Likewise.
15785 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15786 function_arg_info instead of a mode, type and named flag.
15787 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15788 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15789 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15790 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15791 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15792 (nios2_setup_incoming_varargs): Update call accordingly.
15793 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15794 function_arg_info instead of a mode, type and named flag.
15795 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15796 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15797 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15798 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15799 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15800 (riscv_setup_incoming_varargs): Update call accordingly.
15801 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15802 function_arg_info instead of a mode, type and named flag.
15803 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15804 Likewise.
15805 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15806 (rs6000_parm_needs_stack): Update call accordingly.
15807 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15808 instead of a mode, type and named flag.
15809 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15810 (s390_call_saved_register_used): Update call accordingly.
15811 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15812 instead of a mode, type and named flag.
15813 (sh_output_mi_thunk): Update call accordingly.
15814 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15815 function_arg_info instead of a mode, type and named flag.
15816 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15817 (spu_setup_incoming_varargs): Update call accordingly.
15818 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15819 function_arg_info instead of a mode, type and named flag.
15820 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15821 (tilegx_setup_incoming_varargs): Update call accordingly.
15822 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15823 function_arg_info instead of a mode, type and named flag.
15824 (tilegx_setup_incoming_varargs): Update call accordingly.
15825 * config/v850/v850.c (v850_function_arg_advance): Take a
15826 function_arg_info instead of a mode, type and named flag.
15827 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15828 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15829 (visium_setup_incoming_varargs): Update call accordingly.
15830 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15831 function_arg_info instead of a mode, type and named flag.
15832
15833 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15834
15835 * target.def (function_arg, function_incoming_arg): Take a
15836 function_arg_info instead of a mode, tree and named flag.
15837 * doc/tm.texi: Regenerate.
15838 * targhooks.h (default_function_arg): Take a function_arg_info
15839 instead of a mode, tree and named flag.
15840 (default_function_incoming_arg): Likewise.
15841 * targhooks.c (default_function_arg): Likewise.
15842 (default_function_incoming_arg): Likewise.
15843 * calls.h (function_arg_info::end_marker_p): New function.
15844 (function_arg_info::end_marker): Likewise.
15845 * calls.c (prepare_call_address, initialize_argument_information)
15846 (expand_call, emit_library_call_value_1): Update calls to
15847 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15848 * dse.c: Include calls.h.
15849 (get_call_args): Update call to targetm.calls.function_arg.
15850 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15851 * var-tracking.c (prepare_call_arguments): Likewise.
15852 * function.c (assign_parm_find_entry_rtl): Update call to
15853 targetm.calls.function_incoming_arg.
15854 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15855 function_arg_info instead of a mode, tree and named flag.
15856 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15857 * config/arc/arc.c (arc_function_arg): Likewise.
15858 * config/arm/arm.c (arm_function_arg): Likewise.
15859 (cmse_func_args_or_return_in_stack): Update call accordingly.
15860 (arm_function_ok_for_sibcall): Likewise.
15861 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15862 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15863 instead of a mode, tree and named flag.
15864 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15865 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15866 (c6x_call_saved_register_used): Update call accordingly.
15867 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15868 instead of a mode, tree and named flag.
15869 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15870 (cris_function_arg_1): Likewise.
15871 * config/csky/csky.c (csky_function_arg): Likewise.
15872 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15873 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15874 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15875 (frv_function_arg_1): Likewise.
15876 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15877 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15878 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15879 * config/i386/i386.c (ix86_function_arg): Likewise.
15880 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15881 (ia64_function_arg_1): Likewise.
15882 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15883 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15884 accordingly.
15885 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15886 instead of a mode, tree and named flag.
15887 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15888 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15889 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15890 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15891 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15892 (microblaze_expand_prologue): Update call accordingly.
15893 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15894 instead of a mode, tree and named flag.
15895 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15896 (mmix_function_arg_1): Likewise.
15897 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15898 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15899 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15900 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15901 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15902 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15903 (nvptx_function_incoming_arg): Likewise.
15904 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15905 * config/pa/pa.c (pa_function_arg): Likewise.
15906 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15907 * config/pru/pru.c (pru_function_arg): Likewise.
15908 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15909 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15910 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15911 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15912 (rs6000_parm_needs_stack): Update call accordingly.
15913 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15914 instead of a mode, tree and named flag.
15915 * config/s390/s390.c (s390_function_arg): Likewise.
15916 (s390_call_saved_register_used): Update call accordingly.
15917 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15918 instead of a mode, tree and named flag.
15919 (sh_output_mi_thunk): Update call accordingly.
15920 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15921 (sparc_function_incoming_arg): Take a function_arg_info instead of
15922 a mode, tree and named flag.
15923 * config/spu/spu.c (spu_function_arg): Likewise.
15924 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15925 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15926 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15927 * config/v850/v850.c (v850_function_arg): Likewise.
15928 * config/vax/vax.c (vax_function_arg): Likewise.
15929 * config/visium/visium.c (visium_function_arg): Likewise.
15930 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15931 (xtensa_function_incoming_arg): Likewise.
15932
15933 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15934
15935 * target.def (setup_incoming_varargs): Take a function_arg_info
15936 instead of a mode and tree.
15937 * doc/tm.texi: Regenerate.
15938 * targhooks.h (default_setup_incoming_varargs): Take a
15939 function_arg_info instead of a mode and tree.
15940 * targhooks.c (default_setup_incoming_varargs): Likewise.
15941 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15942 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15943 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15944 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15945 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15946 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15947 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15948 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15949 Likewise.
15950 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15951 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15952 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15953 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15954 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15955 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15956 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15957 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15958 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15959 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15960 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15961 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15962 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15963 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15964 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15965 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15966 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15967 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15968 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15969 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15970 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15971 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15972 * function.c (assign_parms_setup_varargs): Update call to
15973 targetm.calls.setup_incoming_varargs.
15974
15975 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15976
15977 * target.def (pass_by_reference): Take a function_arg_info instead
15978 of a mode, type and named flag.
15979 * doc/tm.texi: Regenerate.
15980 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15981 accordingly.
15982 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15983 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15984 function_arg_info instead of a mode, type and named flag.
15985 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15986 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15987 mode, type and named flag.
15988 * calls.c (pass_by_reference): Likewise.
15989 (pass_va_arg_by_reference): Update call accordingly.
15990 (initialize_argument_information): Likewise.
15991 (emit_library_call_value_1): Likewise.
15992 * function.c (assign_parm_find_data_types): Likewise.
15993 * var-tracking.c (prepare_call_arguments): Likewise.
15994 * stor-layout.c: Include calls.h.
15995 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15996 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15997 function_arg_info instead of a mode, type and named flag.
15998 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15999 * config/arc/arc.c (arc_pass_by_reference): Likewise.
16000 * config/arm/arm.c (arm_pass_by_reference): Likewise.
16001 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
16002 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
16003 (c6x_call_saved_register_used): Update call to pass_by_reference.
16004 * config/cris/cris.c (cris_pass_by_reference): Take a
16005 function_arg_info instead of a mode, type and named flag.
16006 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
16007 function_arg_info instead of a mode, type and named flag.
16008 (epiphany_arg_partial_bytes): Update call accordingly.
16009 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
16010 function_arg_info instead of a mode, type and named flag.
16011 (ft32_arg_partial_bytes): Update call accordingly.
16012 * config/i386/i386.c (ix86_pass_by_reference): Take a
16013 function_arg_info instead of a mode, type and named flag.
16014 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
16015 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
16016 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
16017 (m32r_return_in_memory): Update call accordingly.
16018 * config/mips/mips.c (mips_pass_by_reference): Take a
16019 function_arg_info instead of a mode, type and named flag.
16020 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
16021 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
16022 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
16023 (moxie_arg_partial_bytes): Update call accordingly.
16024 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
16025 function_arg_info instead of a mode, type and named flag.
16026 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
16027 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
16028 * config/pa/pa.c (pa_pass_by_reference): Likewise.
16029 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
16030 (riscv_return_in_memory): Update call accordingly.
16031 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
16032 function_arg_info instead of a mode, type and named flag.
16033 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
16034 (rs6000_parm_needs_stack): Update call to pass_by_reference.
16035 * config/s390/s390.c (s390_pass_by_reference): Take a
16036 function_arg_info instead of a mode, type and named flag.
16037 (s390_call_saved_register_used): Update call accordingly.
16038 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
16039 instead of a mode, type and named flag.
16040 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
16041 * config/spu/spu.c (spu_pass_by_reference): Likewise.
16042 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
16043 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
16044 * config/v850/v850.c (v850_pass_by_reference): Likewise.
16045 * config/visium/visium.c (visium_pass_by_reference): Likewise.
16046
16047 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16048
16049 * target.def (arg_partial_bytes): Take a function_arg_info instead
16050 of a mode, type and named flag.
16051 * doc/tm.texi: Regenerate.
16052 * target.h (function_arg_info): Declare.
16053 * calls.h (function_arg_info): New class.
16054 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16055 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
16056 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16057 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
16058 * calls.c (initialize_argument_information): Update call to
16059 targetm.calls.partial_bytes.
16060 (emit_library_call_value_1): Likewise.
16061 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16062 * function.c (assign_parm_find_entry_rtl): Likewise.
16063 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
16064 function_arg_info instead of a mode, type and named flag.
16065 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
16066 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
16067 (cmse_func_args_or_return_in_stack): Update accordingly.
16068 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
16069 function_arg_info instead of a mode, type and named flag.
16070 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
16071 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
16072 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
16073 * config/fr30/fr30.c: Include calls.h.
16074 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
16075 type and named flag.
16076 * config/frv/frv.c: Include calls.h.
16077 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
16078 type and named flag.
16079 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
16080 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
16081 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
16082 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
16083 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
16084 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
16085 * config/microblaze/microblaze.c (function_arg_partial_bytes):
16086 Likewise.
16087 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
16088 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
16089 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
16090 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
16091 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
16092 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
16093 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
16094 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
16095 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
16096 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
16097 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
16098 (rs6000_parm_needs_stack): Update call accordingly.
16099 * config/sh/sh.c (sh_arg_partial_bytes): Take a
16100 function_arg_info instead of a mode, type and named flag.
16101 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
16102 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
16103
16104 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16105
16106 * calls.h (must_pass_va_arg_in_stack): Declare.
16107 * calls.c (must_pass_va_arg_in_stack): New function.
16108 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
16109 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
16110 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
16111 Likewise.
16112 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16113
16114 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16115
16116 * calls.h (pass_va_arg_by_reference): Declare.
16117 * calls.c (pass_va_arg_by_reference): New function.
16118 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
16119 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
16120 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
16121 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
16122 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
16123 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
16124 (mips_gimplify_va_arg_expr): Likewise.
16125 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
16126 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
16127 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
16128 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
16129 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
16130 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
16131 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
16132 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
16133 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
16134 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16135 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
16136
16137 2019-08-20 Richard Biener <rguenther@suse.de>
16138
16139 PR target/91498
16140 * config/i386/i386-features.c (general_scalar_chain::convert_op):
16141 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
16142 (convert_scalars_to_vector): Add timode_p parameter and use it
16143 to guard TImode-only operation.
16144 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
16145 (pass_stv::execute): Pass down timode_p.
16146
16147 2019-08-20 Lili Cui <lili.cui@intel.com>
16148
16149 * common/config/i386/i386-common.c
16150 (processor_names): Add tigerlake and cooperlake.
16151 (processor_alias_table): Add tigerlake and cooperlake.
16152 * config.gcc: Add -march=tigerlake and cooperlake.
16153 * config/i386/driver-i386.c
16154 (host_detect_local_cpu): Detect tigerlake and cooperlake.
16155 Add "has_avx" to classify processor.
16156 * config/i386/i386-builtins.c (processor_model) :
16157 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
16158 (arch_names_table): Add tigerlake and cooperlake.
16159 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
16160 and PROCESSOR_COOPERLAKE.
16161 * config/i386/i386-c.c
16162 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
16163 * config/i386/i386-options.c
16164 (m_TIGERLAKE): Define.
16165 (m_COOPERLAKE): Ditto.
16166 (m_CORE_AVX512): Ditto.
16167 (processor_cost_table): Add cascadelake.
16168 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
16169 * config/i386/i386.h
16170 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
16171 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16172 (PTA_MOVDIRI): Ditto.
16173 (PTA_MOVDIR64B): Ditto.
16174 (PTA_COOPERLAKE): Ditto.
16175 (PTA_TIGERLAKE): Ditto.
16176 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16177 * doc/extend.texi: Add tigerlake and cooperlake.
16178 * doc/invoke.texi: Add tigerlake and cooperlake.
16179
16180 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
16181
16182 * doc/install.texi (Specific, alpha): Remove note to use
16183 binutils 2.11.2 or later.
16184
16185 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16186
16187 PR middle-end/89544
16188 * function.c (assign_parm_find_stack_rtl): Use larger alignment
16189 when possible.
16190
16191 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
16192
16193 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
16194 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
16195 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
16196 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
16197 * config/aarch64/constraints.md (Dt): New constraint
16198 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
16199
16200 2019-08-19 Richard Biener <rguenther@suse.de>
16201
16202 PR tree-optimization/91403
16203 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
16204 cases we can handle with tail-recursion...
16205 (follow_ssa_edge_expr): ... here. Do so.
16206
16207 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
16208
16209 PR target/91441
16210 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
16211 implemented for -fsanitize=kernel-address, and merge check logic
16212 with -fsanitize=address.
16213
16214 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
16215
16216 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
16217 for cpu and machine. Factor 64/32b builtins.
16218
16219 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
16220
16221 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
16222 gone, point to sourceforge.net.
16223
16224 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16225
16226 * doc/ux.texi (User Experience Guidelines): Update reference.
16227
16228 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16229
16230 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
16231 not LGPL".
16232
16233 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
16234
16235 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
16236 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
16237
16238 2019-08-16 Martin Sebor <msebor@redhat.com>
16239
16240 * tree.def (TYPE_SIZE): Clarify.
16241 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
16242
16243 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16244
16245 PR tree-optimization/91109
16246 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
16247 * lra.c (lra): Use lra_need_for_scratch_reg_p.
16248 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
16249
16250 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
16251
16252 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
16253 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
16254 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
16255 (uavg<mode>3_ceil): New expander.
16256 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
16257 mode iterator when creating CONST1_RTX.
16258 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
16259 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
16260 mode iterator for const1_operand predicate.
16261
16262 2019-08-16 Richard Biener <rguenther@suse.de>
16263
16264 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
16265 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
16266 follow_ssa_edge.
16267 (follow_ssa_edge_in_condition_phi_branch): Likewise.
16268 (analyze_evolution_in_loop): Likewise.
16269 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
16270 (follow_ssa_edge_expr): ... here. Refactor code.
16271
16272 2019-08-16 Richard Biener <rguenther@suse.de>
16273
16274 PR target/91469
16275 * config/i386/i386-features.c
16276 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
16277
16278 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16279
16280 PR other/91255
16281 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
16282 only if subst_name matches curr_attr string.
16283
16284 2019-08-16 Richard Biener <rguenther@suse.de>
16285
16286 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
16287 stmt at gsi_p, instead replace it with a NOP removed later.
16288 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
16289 that became dead because of that.
16290
16291 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
16292
16293 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
16294 for which we can't represent a range.
16295 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
16296 set_varying.
16297 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
16298 Set VR_UNDEFINED if type is not supported.
16299 * tree-ssanames.c (get_range_info): Pass type to set_varying.
16300 * tree-vrp.c (value_range_base::check): Assert that a varying has
16301 min/max set.
16302 (value_range_base::equal_p): Early bail for undefines.
16303 (value_range_base::set_varying): Accept a type.
16304 (value_range::set_varying): Same.
16305 (value_range_base::type): VARYING can have a type, while UNDEFINE
16306 is typeless.
16307 (value_range_base::dump): Print type for VARYING nodes.
16308 (value_range_base::set): Add type to VARYING.
16309 (extract_range_from_multiplicative_op): Pass type to set_varying.
16310 (extract_range_from_binary_expr): Same.
16311 (value_range_base::intersect_helper): Same.
16312 (value_range_base::union_helper): Same.
16313 (value_range_base::normalize_symbolics): Same.
16314 (determine_value_range_1): Same.
16315 * tree-vrp.h (class value_range_base): Add type to set_varying.
16316 Add prototype for dump(void).
16317 Add prototype for supports_type_p.
16318 (class value_range): Add type to set_varying.
16319 Add prototype for dump(void).
16320 * vr-values.c (set_value_range_to_truthvalue): Pass type to
16321 set_varying.
16322 (vr_values::get_lattice_entry): Set varying even if propagation
16323 finished.
16324 Pass type to set_varying.
16325 (vr_values::get_value_range): Remove vr_const_varying.
16326 Reallocate the lattice if needed.
16327 (vr_values::update_value_range): Pass type to set_varying.
16328 (vr_values::extract_range_for_var_from_comparison_expr): Same.
16329 (vr_values::extract_range_from_binary_expr): Same.
16330 (vr_values::extract_range_from_unary_expr): Same.
16331 (vr_values::extract_range_from_cond_expr): Same.
16332 (vr_values::check_for_binary_op_overflow): Same.
16333 (vr_values::extract_range_basic): Same.
16334 (vr_values::extract_range_from_assignment): Same.
16335 (vr_values::vr_values): Increase size of num_vr_values.
16336 (vr_values::extract_range_from_phi_node): Pass type to
16337 set_varying.
16338
16339 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
16340
16341 PR target/90878
16342 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
16343 for costs of hard register moves.
16344 (ix86_register_move_cost): Likewise.
16345 * config/i386/i386.h (processor_costs): Move costs of hard
16346 register moves to hard_register. Add int_load, int_store,
16347 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16348 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
16349 for costs of RTL expressions.
16350 * config/i386/x86-tune-costs.h: Move costs of hard register
16351 moves to hard_register. Duplicate int_load, int_store,
16352 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16353 sse_load, sse_store for costs of RTL expressions.
16354
16355 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16356
16357 * target.def (setup_incoming_vararg_bounds): Remove.
16358 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
16359 * doc/tm.texi: Regenerate.
16360 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
16361 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
16362 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
16363 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
16364
16365 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16366
16367 MSP430: Fix lines over 80 characters long in
16368 config/msp430/*.{c,h} files
16369
16370 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
16371 specifier in string.
16372 (msp430_select_hwmult_lib): Split line more than 80 characters long.
16373 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
16374 redundant old comment.
16375 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16376 Split line more than 80 characters long.
16377 * config/msp430/msp430.c (msp430_option_override): Likewise.
16378 (msp430_return_in_memory): Likewise.
16379 (msp430_gimplify_va_arg_expr): Likewise.
16380 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
16381 (msp430_legitimate_constant): Likewise.
16382 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
16383 (msp430_attr): Likewise.
16384 (msp430_data_attr): Likewise.
16385 (msp430_start_function): Likewise.
16386 (gen_prefix): Likewise.
16387 (msp430_init_sections): Likewise.
16388 (msp430_select_section): Likewise.
16389 (msp430_function_section): Likewise.
16390 (msp430_unique_section): Likewise.
16391 (msp430_output_aligned_decl_common): Likewise.
16392 (msp430_do_not_relax_short_jumps): Likewise.
16393 (msp430_init_builtins): Likewise.
16394 (msp430_expand_delay_cycles): Likewise.
16395 (msp430_expand_prologue): Likewise.
16396 (msp430_expand_epilogue): Likewise.
16397 (msp430_expand_helper): Likewise.
16398 (msp430_split_movsi): Likewise.
16399 (msp430_print_operand): Likewise.
16400 (msp430_return_addr_rtx): Likewise.
16401 (msp430x_extendhisi): Likewise.
16402 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
16403 (ASM_SPEC): Likewise.
16404 Remove very obvious comments.
16405 (LIB_SPEC): Split line more than 80 characters long.
16406 (EH_RETURN_HANDLER_RTX): Likewise.
16407 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16408
16409 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16410
16411 MSP430: Fix whitespace errors and incorrect indentation in
16412 config/msp430/*.{c,h} files
16413
16414 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
16415 (msp430_select_hwmult_lib): Likewise.
16416 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
16417 (msp430_extract_mcu_data): Likewise.
16418 (struct t_msp430_mcu_data): Likewise.
16419 * config/msp430/msp430.c (struct machine_function): Remove whitespace
16420 before left square bracket.
16421 (msp430_option_override): Fix indentation.
16422 (msp430_hard_regno_nregs_with_padding): Likewise.
16423 (msp430_initial_elimination_offset): Likewise.
16424 (msp430_special_register_convention_p): Remove whitespace before left
16425 square bracket and after exclamation mark.
16426 (msp430_evaluate_arg): Likewise.
16427 (msp430_callee_copies): Fix indentation.
16428 (msp430_gimplify_va_arg_expr): Likewise.
16429 (msp430_function_arg_advance): Remove whitespace before left square
16430 bracket.
16431 (reg_ok_for_addr): Likewise.
16432 (msp430_preserve_reg_p): Likewise.
16433 (msp430_compute_frame_info): Likewise.
16434 (msp430_asm_output_addr_const_extra): Add space between function name
16435 and open parenthesis.
16436 (has_section_name): Fix indentation.
16437 (msp430_attr): Remove trailing whitespace.
16438 (msp430_section_attr): Likewise.
16439 (msp430_data_attr): Likewise.
16440 (struct msp430_attribute_table): Fix comment and whitespace.
16441 (msp430_start_function): Remove whitespace before left square bracket.
16442 Add space between function name and open parenthesis.
16443 (msp430_select_section): Remove trailing whitespace.
16444 (msp430_section_type_flags): Remove trailing whitespace.
16445 (msp430_unique_section): Remove space before closing parenthesis.
16446 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16447 (msp430_builtins): Remove whitespace before left square bracket.
16448 (msp430_init_builtins): Fix indentation.
16449 (msp430_expand_prologue): Remove whitespace before left square bracket.
16450 Remove space before closing parenthesis.
16451 (msp430_expand_epilogue): Remove whitespace before left square bracket.
16452 (msp430_split_movsi): Remove space before closing parenthesis.
16453 (helper_function_name_mappings): Fix indentation.
16454 (msp430_use_f5_series_hwmult): Fix whitespace.
16455 (use_32bit_hwmult): Likewise.
16456 (msp430_no_hwmult): Likewise.
16457 (msp430_output_labelref): Remove whitespace before left square bracket.
16458 (msp430_print_operand_raw): Likewise.
16459 (msp430_print_operand_addr): Likewise.
16460 (msp430_print_operand): Add two spaces after '.' in comment.
16461 Fix trailing whitespace.
16462 (msp430x_extendhisi): Fix indentation.
16463 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16464 tab.
16465 (PC_REGNUM): Likewise.
16466 (STACK_POINTER_REGNUM): Likewise.
16467 (CC_REGNUM): Likewise.
16468
16469 2019-08-15 Richard Biener <rguenther@suse.de>
16470
16471 PR target/91454
16472 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16473 helper.
16474 (general_scalar_chain::make_vector_copies): Use it.
16475
16476 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16477
16478 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16479
16480 2019-08-15 Martin Liska <mliska@suse.cz>
16481
16482 * tree-ssa-dce.c (propagate_necessity): We can't reach now
16483 operators with no arguments.
16484 (eliminate_unnecessary_stmts): Likewise here.
16485
16486 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
16487
16488 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16489 <case COMPARE>: Revert 2019-08-14 change.
16490 (convertible_comparison_p): Revert 2019-08-14 change. Return false
16491 for (TARGET_64BIT || mode != DImode).
16492
16493 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
16494
16495 * tree-vrp.c (value_range_base::set): Merge in code from
16496 value_range_base::set_and_canonicalize.
16497 Enforce canonicalization at set time.
16498 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16499 (value_range_base::set_undefined): Inline call to set().
16500 (value_range_base::set_varying): Same.
16501 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16502 (vrp_val_max): New argument handle_pointers.
16503 (vrp_val_min): Same.
16504 (ranges_from_anti_range): Same.
16505 (extract_range_into_wide_ints): Use tree argument instead of sign
16506 and precision.
16507 (extract_range_from_multiplicative_op): Take in tree type instead
16508 of precision and sign. Adapt function for canonicalized ranges.
16509 (extract_range_from_binary_expr): Pass type to
16510 extract_range_from_multiplicative_op.
16511 Adapt for canonicalized ranges.
16512 (extract_range_from_unary_expr): Same.
16513 (value_range_base::intersect_helper): Adjust for canonicalized
16514 ranges.
16515 (value_range_base::union_helper): Same.
16516 (value_range_base::normalize_symbolics): New.
16517 * tree-vrp.h (class value_range_base): Remove
16518 set_and_canonicalize.
16519 New prototype for normalize_symbolics.
16520 (class value_range): Remove set_and_canonicalize.
16521 (vrp_val_min): Adjust prototype.
16522 (vrp_val_max): Same.
16523 * vr-values.c
16524 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16525 instead of set_and_canonicalize.
16526
16527 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16528
16529 PR middle-end/91444
16530 * tree-vect-stmts.c (vectorizable_call): Check that the function
16531 is a BUILT_IN_MD function before passing it to
16532 targetm.vectorize.builtin_md_vectorized_function.
16533
16534 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16535
16536 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16537 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16538 (aarch64_select_early_remat_modes): Use it.
16539
16540 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16541
16542 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16543 16 for SVE predicates even if they are fixed-length.
16544
16545 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16546
16547 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16548 operand order match the MOV /Z alias.
16549
16550 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16551
16552 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16553 the vector pattern as an aarch64_svpattern argument. Update the
16554 overloaded caller accordingly.
16555 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16556 (aarch64_output_sve_vector_inc_dec): Likewise.
16557
16558 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16559
16560 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16561 multiplication case, try to compute VG * (lowest set bit) directly
16562 rather than always basing the multiplication on VG. Use
16563 expand_mult for the multiplication if we can.
16564
16565 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16566
16567 * config/aarch64/aarch64-protos.h
16568 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16569 (aarch64_sve_inc_dec_immediate_p): Rename to...
16570 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16571 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16572 (aarch64_output_sve_scalar_inc_dec): Declare.
16573 (aarch64_output_sve_inc_dec_immediate): Rename to...
16574 (aarch64_output_sve_vector_inc_dec): ...this.
16575 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16576 (aarch64_output_sve_scalar_inc_dec): New functions.
16577 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16578 arguments. Only handle true ADDVL and ADDPL instructions;
16579 don't emit an INC or DEC.
16580 (aarch64_sve_inc_dec_immediate_p): Rename to...
16581 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16582 (aarch64_output_sve_inc_dec_immediate): Rename to...
16583 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16584 aarch64_sve_vector_inc_dec_immediate_p.
16585 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16586 (aarch64_sve_plus_immediate): New predicates.
16587 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16588 rather than aarch64_sve_addvl_addpl_immediate.
16589 (aarch64_sve_inc_dec_immediate): Rename to...
16590 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16591 aarch64_sve_vector_inc_dec_immediate_p.
16592 (aarch64_sve_add_operand): Update accordingly.
16593 * config/aarch64/constraints.md (Uai): New constraint.
16594 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16595 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16596 operand into a register if it satisfies aarch64_sve_plus_immediate.
16597 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16598 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16599 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16600 aarch64_output_sve_vector_inc_dec instead of
16601 aarch64_output_sve_inc_dec_immediate.
16602
16603 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16604
16605 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16606 (UNSPEC_REVW): New constants.
16607 (elem_bits): New mode attribute.
16608 (SVE_INT_UNARY): New int iterator.
16609 (optab): Handle UNSPEC_REV[BHW].
16610 (sve_int_op): New int attribute.
16611 (min_elem_bits): Handle VNx16QI and the predicate modes.
16612 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16613 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16614 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16615 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16616 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16617 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16618 unspecs based on the total width of the reversed data.
16619 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16620 reinterpret followed by a subreg on big-endian targets.
16621
16622 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16623 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16624
16625 * config/aarch64/aarch64-sve.md
16626 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16627 alternatives in which one of the inputs is in the same register
16628 as the output.
16629
16630 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16631
16632 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16633 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16634
16635 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16636
16637 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16638 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16639
16640 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16641 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16642
16643 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16644 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16645 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16646
16647 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16648 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16649
16650 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16651 Add an alternative that uses reversed shifts.
16652
16653 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16654
16655 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16656 struct.
16657
16658 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16659
16660 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16661 a commutativity marker.
16662
16663 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16664 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16665
16666 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16667 (aarch64_prepare_sve_cond_int_fma): Declare.
16668 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16669 (aarch64_prepare_sve_int_fma): New functions.
16670 (aarch64_prepare_sve_cond_int_fma): Likewise.
16671 * config/aarch64/aarch64-sve.md
16672 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16673 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16674 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16675 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16676 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16677 (*madd<mode>): Rename to...
16678 (*fma<mode>4): ...this.
16679 (*msub<mode>): Rename to...
16680 (*fnma<mode>4): ...this.
16681
16682 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16683 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16684
16685 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16686 Print 2.0 naturally.
16687 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16688 * config/aarch64/predicates.md
16689 (aarch64_sve_float_negated_arith_immediate): New predicate,
16690 renamed from aarch64_sve_float_arith_with_sub_immediate.
16691 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16692 positive and negative constants.
16693 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16694 or an aarch64_sve_float_arith_with_sub_immediate.
16695 * config/aarch64/constraints.md (vsN): Use
16696 aarch64_sve_float_negated_arith_immediate.
16697 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16698 iterator.
16699 (sve_pred_fp_rhs2_immediate): New int attribute.
16700 * config/aarch64/aarch64-sve.md
16701 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16702 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16703 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16704 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16705 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16706 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16707
16708 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16709 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16710
16711 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16712 (*aarch64_cond_abd<SVE_F:mode>_3)
16713 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16714
16715 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16716 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16717
16718 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16719 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16720
16721 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16722 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16723
16724 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16725 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16726 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16727 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16728 optabs.
16729 * optabs.h (create_convert_operand_from): Expand comment.
16730 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16731 when mapping scalar rtxes to vector operands.
16732 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16733 ashiftrt and lshiftrt.
16734 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16735 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16736 (*cond_<optab><mode>_any_const): New patterns.
16737
16738 2019-08-15 Martin Liska <mliska@suse.cz>
16739
16740 PR ipa/91438
16741 * cgraph.c (cgraph_node::remove): When setting
16742 n->origin = NULL for all nested functions, reset
16743 also next_nested.
16744
16745 2019-08-15 Martin Liska <mliska@suse.cz>
16746
16747 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16748 and next_nested.
16749
16750 2019-08-15 Martin Liska <mliska@suse.cz>
16751
16752 PR ipa/91404
16753 * passes.c (order): Remove.
16754 (uid_hash_t): Likewise).
16755 (remove_cgraph_node_from_order): Remove from set
16756 of pointers (cgraph_node *).
16757 (insert_cgraph_node_to_order): New.
16758 (duplicate_cgraph_node_to_order): New.
16759 (do_per_function_toporder): Register all 3 cgraph hooks.
16760 Skip removed_nodes now as we know about all of them.
16761
16762 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16763
16764 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16765 <case E_V8QImode>: Use vector_set path for
16766 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16767 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16768 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16769
16770 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16771
16772 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16773
16774 2019-08-14 Martin Sebor <msebor@redhat.com>
16775
16776 PR tree-optimization/91294
16777 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16778 source length as exact.
16779
16780 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16781
16782 * doc/extend.texi: Add "noinit" attribute documentation.
16783 * doc/sourcebuild.texi: Add noinit effective target documentation.
16784 * varasm.c (default_section_type_flags): Add support for "noinit"
16785 section.
16786 (default_elf_select_section): Add support for "noinit" attribute.
16787 * config/msp430/msp430.c (msp430_attribute_table): Remove
16788 "noinit" entry.
16789
16790 2019-08-14 Richard Biener <rguenther@suse.de>
16791 Uroš Bizjak <ubizjak@gmail.com>
16792
16793 PR target/91154
16794 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16795 mode arguments.
16796 (scalar_chain::smode): New member.
16797 (scalar_chain::vmode): Likewise.
16798 (dimode_scalar_chain): Rename to...
16799 (general_scalar_chain): ... this.
16800 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16801 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16802 base with TImode and V1TImode.
16803 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16804 (general_scalar_chain::vector_const_cost): Adjust for SImode
16805 chains.
16806 (general_scalar_chain::compute_convert_gain): Likewise. Add
16807 {S,U}{MIN,MAX} support.
16808 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16809 (general_scalar_chain::make_vector_copies): Likewise. Handle
16810 non-DImode chains appropriately.
16811 (general_scalar_chain::convert_reg): Likewise.
16812 (general_scalar_chain::convert_op): Likewise.
16813 (general_scalar_chain::convert_insn): Likewise. Add
16814 fatal_insn_not_found if the result is not recognized.
16815 (convertible_comparison_p): Pass in the scalar mode and use that.
16816 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16817 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16818 (scalar_to_vector_candidate_p): Remove by inlining into single
16819 caller.
16820 (general_remove_non_convertible_regs): Rename from
16821 dimode_remove_non_convertible_regs.
16822 (remove_non_convertible_regs): Remove by inlining into single caller.
16823 (convert_scalars_to_vector): Handle SImode and DImode chains
16824 in addition to TImode chains.
16825 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16826 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16827 (*<maxmin>di3_doubleword): Likewise.
16828
16829 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16830 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16831
16832 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16833 (*cond_bic<mode>_any): New patterns.
16834
16835 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16836
16837 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16838 take the equivalent mask, as well as a bit count.
16839 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16840 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16841 (aarch64_sve_pred_and_operand): New predicates.
16842 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16843 code attribute.
16844 * config/aarch64/aarch64-sve.md
16845 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16846 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16847
16848 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16849
16850 * config/aarch64/aarch64-sve.md
16851 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16852 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16853 New patterns.
16854
16855 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16856 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16857
16858 * config/aarch64/aarch64-sve.md
16859 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16860 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16861
16862 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16863 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16864
16865 * config/aarch64/aarch64-sve.md
16866 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16867 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16868
16869 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16870
16871 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16872 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16873 New pattern.
16874
16875 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16876 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16877
16878 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16879
16880 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16881 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16882
16883 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16884 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16885 (aarch64_print_operand): Add support for %I.
16886 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16887 Bitcast floating-point constants to the corresponding integer constant.
16888 (aarch64_float_const_representable_p): Handle vectors as well
16889 as scalars.
16890 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16891 for the new vcond_mask_<mode><vpred> expander.
16892 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16893 test aarch64_float_const_representable_p.
16894 (aarch64_sve_reg_or_dup_imm): New predicate.
16895 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16896 gen_vcond_mask_<mode><vpred> instead of
16897 gen_aarch64_sve_dup<mode>_const.
16898 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16899 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16900 for operands 1 and 2 respectively. Force operand 2 into a
16901 register if operand 1 is a register. Fold old define_insn...
16902 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16903 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16904 floating-point constants that can be moved as integers. Add
16905 alternatives for MOV /M and FMOV /M.
16906 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16907 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16908 1 and 2 respectively.
16909 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16910 as scalars.
16911 (vss): New constraint.
16912
16913 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16914
16915 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16916 (aarch64_sve_float_maxmin_operand): New predicates.
16917 * config/aarch64/constraints.md (vsB): New constraint.
16918 (vsM): Fix typo.
16919 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16920 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16921 UNSPEC_COND_FMINNM.
16922 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16923 Use aarch64_sve_float_maxmin_operand for operand 2.
16924 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16925 Add alternatives for the constant forms.
16926
16927 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16928
16929 * config/aarch64/constraints.md (vsb): New constraint.
16930 (vsm): Generalize description.
16931 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16932 iterator.
16933 (sve_imm_con): Handle smax, smin, umax and umin.
16934 (sve_imm_prefix): New code attribute.
16935 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16936 (aarch64_sve_vsb_operand): New predicates.
16937 (aarch64_sve_mul_immediate): Rename to...
16938 (aarch64_sve_vsm_immediate): ...this.
16939 (aarch64_sve_mul_operand): Rename to...
16940 (aarch64_sve_vsm_operand): ...this.
16941 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16942 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16943 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16944 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16945 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16946 add movprfx support for the immediate alternatives.
16947 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16948 of the above.
16949 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16950 for operand 3.
16951
16952 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16953
16954 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16955 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16956 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16957
16958 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16959
16960 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16961 (optab, sve_int_op): Handle them.
16962 * config/aarch64/aarch64-sve.md: Expand comment.
16963
16964 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16965
16966 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16967 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16968 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16969
16970 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16971
16972 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16973 (aarch64_expand_sve_const_pred_trn): New functions.
16974 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16975 use the above functions when the parameter is true.
16976 (aarch64_expand_sve_const_pred): Update call accordingly.
16977 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16978 Rename to...
16979 (@aarch64_sve_<perm_insn><mode>): ...this.
16980
16981 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16982
16983 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16984 Declare.
16985 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16986 (aarch64_sve_emit_int_cmp): New functions.
16987 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16988 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16989 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16990 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16991 (UNSPEC_PRED_Z): New unspec.
16992 (set_clobber_cc_nzc): Delete.
16993 * config/aarch64/aarch64-sve.md: Add a block comment about
16994 UNSPEC_PRED_Z.
16995 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16996 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16997 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16998 UNSPEC_MERGE_PTRUE.
16999 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
17000 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
17001 check for compatible predicates.
17002 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
17003 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
17004 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
17005 comparisons above.
17006
17007 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17008
17009 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
17010 * config/aarch64/aarch64-sve.md: Add a section describing it.
17011 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
17012 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
17013 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
17014 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
17015 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
17016 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
17017 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
17018 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
17019 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
17020 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
17021 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
17022 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
17023 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
17024 (aarch64_evpc_rev_local): Update accordingly.
17025
17026 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17027
17028 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
17029 iterators.
17030 (SVE_BHSI, SVE_SDI): Tweak comment.
17031 (SVE_HSDI): Likewise. Fix definition.
17032 (SVE_SDF): New mode iterator.
17033 (elem_bits): New mode attribute.
17034 (SVE_COND_FCVT): New int iterator.
17035 * config/aarch64/aarch64-sve.md
17036 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
17037 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
17038 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
17039 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
17040 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
17041 ...these new patterns.
17042 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
17043 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
17044 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
17045 Merge into...
17046 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
17047 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
17048 ...these new patterns.
17049 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
17050 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
17051 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
17052 ...this new pattern.
17053 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
17054 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
17055 ...this new pattern.
17056 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
17057
17058 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17059
17060 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
17061 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
17062 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
17063 unspecs.
17064 (optab, su): Handle them.
17065 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
17066 * config/aarch64/aarch64-sve.md
17067 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
17068 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
17069 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
17070 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
17071 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
17072 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
17073 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
17074 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
17075 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
17076 FIXUORS.
17077 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
17078 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
17079 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
17080 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
17081 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
17082 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
17083 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
17084 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
17085 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
17086 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
17087 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
17088 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
17089 of UNSPEC_FLOAT_CONVERT.
17090 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
17091 aarch64_sve_extend<mode><Vwide>2.
17092
17093 2019-08-14 Richard Biener <rguenther@suse.de>
17094
17095 PR target/91154
17096 * config/i386/i386-features.c
17097 (dimode_scalar_chain::compute_convert_gain): Compute and dump
17098 individual instruction gain. Fix reg-reg copy GRP cost. Use
17099 ix86_cost->sse_op for vector instruction costs.
17100
17101 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17102
17103 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
17104 (cmp_op): Handle it.
17105 (SVE_COND_FP_CMP): Rename to...
17106 (SVE_COND_FP_CMP_I0): ...this.
17107 (SVE_FP_CMP): Remove.
17108 * config/aarch64/aarch64-sve.md
17109 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
17110 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
17111 using unspecs to represent the comparison.
17112 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
17113 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
17114 accordingly.
17115 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
17116 (aarch64_unspec_cond_code): Move after integer code. Handle
17117 UNORDERED.
17118 (aarch64_emit_sve_predicated_cond): Replace with...
17119 (aarch64_emit_sve_fp_cond): ...this new function.
17120 (aarch64_emit_sve_or_conds): Replace with...
17121 (aarch64_emit_sve_or_fp_conds): ...this new function.
17122 (aarch64_emit_sve_inverted_cond): Replace with...
17123 (aarch64_emit_sve_invert_fp_cond): ...this new function.
17124 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
17125
17126 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17127
17128 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
17129 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
17130 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
17131 SVE_HSD instead of SVE_SD.
17132
17133 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17134 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17135
17136 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
17137 iterator.
17138 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
17139 attributes.
17140 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
17141 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
17142 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
17143 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
17144 (*div<SVE_F:mode>3): Generalize to...
17145 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
17146
17147 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17148 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17149
17150 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
17151 constants.
17152 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
17153 predicate.
17154 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
17155 Declare.
17156 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
17157 function.
17158 * config/aarch64/aarch64-sve.md: Add a block comment about the
17159 handling of predicated FP operations.
17160 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
17161 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
17162 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17163 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
17164 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
17165 operand.
17166 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
17167 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
17168 operand.
17169 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
17170 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
17171 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
17172 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
17173 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
17174 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17175 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17176 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
17177 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
17178 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
17179 strictness operands. Use aarch64_sve_pred_dominates_p to check
17180 whether the predicate on the conditional operation is suitable
17181 for merging. Split patterns into the canonical equal-predicate form.
17182 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
17183 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
17184
17185 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17186 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17187
17188 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
17189 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
17190 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
17191 rtx codes.
17192 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
17193 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
17194 unspecs.
17195
17196 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17197 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17198
17199 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
17200 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
17201 actually has, rather than relying on REG_EQUAL notes.
17202 Make the insn operand order match the SVE operand order.
17203 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
17204 the SVE operand order.
17205
17206 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17207
17208 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
17209 (aarch64_emit_set_immediate): Likewise.
17210 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
17211 (aarch64_pfalse_reg): Likewise.
17212 (aarch64_convert_sve_data_to_pred): New function.
17213 (aarch64_sve_move_pred_via_while): Take an optional target register
17214 and the required register mode.
17215 (aarch64_expand_sve_const_pred_1): New function.
17216 (aarch64_expand_sve_const_pred): Likewise.
17217 (aarch64_expand_mov_immediate): Build an all-true predicate
17218 if the significant bits of the immediate are all true. Use
17219 aarch64_expand_sve_const_pred for all compile-time predicate constants.
17220 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
17221 before register allocation.
17222 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
17223 a VNx16BI PTRUE when splitting the memory alternative.
17224 (vec_duplicate<mode>): Update accordingly.
17225 (*pred_cmp<cmp_op><mode>): Rename to...
17226 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
17227
17228 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17229
17230 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
17231 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
17232 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
17233 (UNSPEC_PTEST): New unspec.
17234 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
17235 * config/aarch64/iterators.md (data_bytes): New mode attribute.
17236 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
17237 * config/aarch64/aarch64-sve.md: Add a new section describing the
17238 handling of UNSPEC_PTEST.
17239 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
17240 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
17241 (ptest_ptrue<mode>): Replace with...
17242 (aarch64_ptest<mode>): ...this new pattern.
17243 (cbranch<mode>4): Update after above changes.
17244 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
17245 UNSPEC_PTEST_PTRUE.
17246 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
17247 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
17248 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
17249
17250 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
17251
17252 PR lto/91287
17253 * builtins.c (builtin_with_linkage_p): New function.
17254 * builtins.h (builtin_with_linkage_p): New function.
17255 * symtab.c (write_symbol): Remove redundant assert.
17256 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
17257 Remove FIXME and use builtin_with_linkage_p.
17258
17259 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17260
17261 PR middle-end/91421
17262 * tree-core.h (function_decl::function_code): Change type to
17263 unsigned int.
17264 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
17265 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
17266 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
17267 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
17268 is BUILT_IN_NORMAL.
17269 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
17270 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
17271 (fndecl_built_in_p): Change the type of the "name" argument to
17272 unsigned int.
17273 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
17274 after check for DECL_BUILT_IN_CLASS.
17275 * cgraphclones.c (build_function_decl_skip_args): Use
17276 set_decl_built_in_function.
17277 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
17278 * ipa-split.c (split_function): Likewise.
17279 * langhooks.c (add_builtin_function_common): Likewise.
17280 * omp-simd-clone.c (simd_clone_create): Likewise.
17281 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17282 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
17283 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
17284 DECL_FUNCTION_CODE.
17285 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
17286 instead of DECL_FUNCTION_CODE.
17287 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
17288 instead of DECL_FUNCTION_CODE.
17289 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17290 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
17291 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
17292 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
17293 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
17294 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
17295 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
17296 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
17297 (alpha_gimple_fold_builtin): Likewise.
17298 * config/arc/arc.c (arc_expand_builtin): Likewise.
17299 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
17300 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
17301 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
17302 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
17303 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
17304 * config/frv/frv.c (frv_expand_builtin): Likewise.
17305 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
17306 (gcn_expand_builtin): Likewise.
17307 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
17308 (fold_builtin_cpu): Likewise.
17309 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
17310 * config/i386/i386.c (ix86_fold_builtin): Likewise.
17311 (ix86_gimple_fold_builtin): Likewise.
17312 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
17313 (ia64_expand_builtin): Likewise.
17314 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
17315 * config/mips/mips.c (mips_expand_builtin): Likewise.
17316 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
17317 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17318 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
17319 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
17320 * config/pa/pa.c (pa_expand_builtin): Likewise.
17321 * config/pru/pru.c (pru_expand_builtin): Likewise.
17322 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
17323 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17324 Likewise.
17325 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
17326 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
17327 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
17328 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
17329 (rs6000_builtin_reciprocal): Likewise.
17330 * config/rx/rx.c (rx_expand_builtin): Likewise.
17331 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17332 * config/s390/s390.c (s390_expand_builtin): Likewise.
17333 * config/sh/sh.c (sh_expand_builtin): Likewise.
17334 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
17335 (sparc_fold_builtin): Likewise.
17336 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
17337 * config/spu/spu.c (spu_expand_builtin): Likewise.
17338 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
17339 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
17340 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
17341 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
17342 (xtensa_expand_builtin): Likewise.
17343
17344 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17345
17346 PR middle-end/91421
17347 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
17348 before the DECL_FUNCTION_CODE.
17349 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
17350 to check for a BUILT_IN_ALLOCA call.
17351 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
17352 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
17353 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
17354 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17355 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
17356 for BUILT_IN_NORMAL functions.
17357 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
17358 test for BUILT_IN_TM_ABORT.
17359 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
17360 to check for a BUILT_IN_STACK_RESTORE call.
17361 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
17362 * tree-ssa-threadedge.c
17363 (record_temporary_equivalences_from_stmts_at_dest): Check for a
17364 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
17365 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
17366 test for a BUILT_IN_NORMAL call instead of a negative test for
17367 an internal function call.
17368
17369 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17370
17371 * tree.h (build_vector_a_then_b): Declare.
17372 * tree.c (build_vector_a_then_b): New function.
17373 * fold-const-call.c (fold_while_ult): Likewise.
17374 (fold_const_call): Use it to handle IFN_WHILE_ULT.
17375 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
17376 (aarch64_svpattern): New enum.
17377 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
17378 constants through aarch64_expand_mov_immediate.
17379 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
17380 than general_operand as the predicate for operand 1.
17381 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
17382 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
17383 insn_type.
17384 (simd_immediate_info::simd_immediate_info): New overload that
17385 takes a scalar_int_mode and an svpattern.
17386 (simd_immediate_info::u): Add a "pattern" field.
17387 (svpattern_token): New function.
17388 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
17389 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
17390 (aarch64_sve_move_pred_via_while): New functions.
17391 (aarch64_expand_mov_immediate): Try using
17392 aarch64_sve_move_pred_via_while for predicates that contain N ones
17393 followed by M zeros but that do not correspond to a VLnnn pattern.
17394 (aarch64_sve_pred_valid_immediate): New function.
17395 (aarch64_simd_valid_immediate): Use it instead of dealing directly
17396 with PTRUE and PFALSE.
17397 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
17398 forms.
17399
17400 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
17401
17402 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
17403 flag.
17404 (darwin_override_options): Likewise.
17405 * config/darwin.h: Likewise.
17406 * config/darwin.opt: Likewise.
17407 * config/i386/i386.c (output_pic_addr_const): Likewise.
17408 * config/rs6000/darwin.h: Likewise.
17409 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
17410 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
17411 ... this TARGET_MACHO_SYMBOL_STUBS.
17412 (FUNCTION_PROFILER):Likewise.
17413 * config/i386/i386.h: Likewise.
17414
17415 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17416
17417 * config/i386/i386-expand.c (ix86_expand_vector_extract)
17418 <case E_V2SImode>: Use vec_extr path for
17419 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17420 <case E_V8QImode>: Ditto.
17421 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
17422 Use SWI48 mode iterator. Use %k to output operand 0.
17423 (*mmx_pextrw): New insn pattern.
17424 (*mmx_pextrb): Ditto.
17425 (*mmx_pextrb_zext): Ditto.
17426
17427 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
17428
17429 * target.def (libc_has_function, libc_has_fast_function): Improve
17430 documentation strings.
17431 * doc/tm.texi: Regenerate.
17432
17433 2019-08-13 Caroline Tice <cmtice@google.com>
17434
17435 PR other/91396
17436 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
17437 vtv_end.o or vtv_end_preinit.o files if !static.
17438
17439 2019-08-13 Olivier Hainque <hainque@adacore.com>
17440
17441 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17442
17443 2019-08-13 Olivier Hainque <hainque@adacore.com>
17444
17445 * rtlanal.c (tablejump_casesi_pattern): New function, to
17446 determine if a tablejump insn is a casesi dispatcher. Extracted
17447 from patch_jump_insn.
17448 * rtl.h (tablejump_casesi_pattern): Declare.
17449 * cfgrtl.c (patch_jump_insn): Use it.
17450 * dwarf2cfi.c (create_trace_edges): Use it.
17451
17452 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17453
17454 PR target/81800
17455 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17456 operand is larger than a long int.
17457
17458 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17459
17460 * machmode.h (opt_mode::else_mode): New function.
17461 (opt_mode::else_blk): Use it.
17462 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17463 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17464 (aarch64_gen_stepped_int_parallel): Likewise.
17465 (aarch64_stepped_int_parallel_p): Likewise.
17466 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17467 argument.
17468 * config/aarch64/aarch64.c
17469 (aarch64_expand_sve_widened_duplicate): Delete.
17470 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17471 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17472 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17473 argument. Use early returns in the !CONST_INT_P handling.
17474 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17475 than handling some inline.
17476 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17477 from...
17478 (aarch64_simd_container_mode): ...here.
17479 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17480 (aarch64_sve_ld1rq_operand_p): New functions.
17481 * config/aarch64/predicates.md (descending_int_parallel)
17482 (aarch64_sve_ld1rq_operand): New predicates.
17483 * config/aarch64/constraints.md (UtQ): New constraint.
17484 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17485 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17486 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17487 (@aarch64_sve_reinterpret<mode>): New expander.
17488 (*aarch64_sve_reinterpret<mode>): New pattern.
17489 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17490 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17491 (*sve_ld1rq<Vesize>): Replace with...
17492 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17493
17494 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17495
17496 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17497 16:12.
17498
17499 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17500
17501 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17502 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17503 (msp430_check_path_for_devices): New.
17504 (parse_devices_csv_1): New.
17505 (parse_devices_csv): New.
17506 (msp430_extract_mcu_data): Try to find devices.csv and search for the
17507 MCU data in devices.csv before using the hard-coded data.
17508 Warn if devices.csv isn't found and the MCU wasn't found in the
17509 hard-coded data either.
17510 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17511 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17512 Search for devices.csv on -I and -L paths.
17513 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17514 msp430_set_driver_var.
17515 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17516 -mdevices-csv-loc=.
17517 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17518 searched for devices.csv.
17519 (mwarn-devices-csv): Document option.
17520
17521 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17522
17523 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17524 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17525 Use a single Dn alternative instead of separate Dz and Dm
17526 alternatives. Use aarch64_output_sve_move_immediate.
17527 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17528 function.
17529 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17530 for predicates too.
17531 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17532 (aarch64_output_ptrue): Delete.
17533
17534 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17535
17536 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17537 INDEX.
17538 (simd_immediate_info::value, simd_immediate_info::step)
17539 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17540 with...
17541 (simd_immediate_info::u): ...this new union.
17542 (simd_immediate_info::simd_immediate_info): Update accordingly.
17543 (aarch64_output_simd_mov_immediate): Likewise.
17544 (aarch64_output_sve_mov_immediate): Likewise.
17545
17546 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17547
17548 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17549 extra_gcc_objs.
17550 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17551 (msp430_select_cpu): New spec function.
17552 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17553 MCU data.
17554 * config/msp430/msp430-devices.c: New file.
17555 * config/msp430/msp430-devices.h: New file.
17556 * config/msp430/msp430.c: Remove msp430_mcu_data.
17557 (msp430_option_override): Use msp430_extract_mcu_data to extract
17558 MCU data.
17559 (msp430_use_f5_series_hwmult): Likewise.
17560 (use_32bit_hwmult): Likewise.
17561 (msp430_no_hwmult): Likewise.
17562 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17563 assembler.
17564 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17565 and -mcpu option.
17566 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17567 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17568 Remove hard-coded MCU multilib data.
17569
17570 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17571
17572 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17573 based on the mode instead of testing properties of it.
17574
17575 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17576
17577 * doc/md.texi: Document the x and y constraints for AArch64.
17578 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17579 (FP_LO8_REGS): New reg_class.
17580 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17581 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17582 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17583 * config/aarch64/predicates.md (aarch64_simd_register): Use
17584 FP_REGNUM_P instead of checking the classes manually.
17585 * config/aarch64/constraints.md (y): New constraint.
17586
17587 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17588
17589 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17590 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17591 * config/aarch64/aarch64-simd.md
17592 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17593 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17594 from the asm template.
17595 * config/aarch64/aarch64-sve.md
17596 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17597 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17598 from the asm template.
17599 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17600 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17601 from the asm template.
17602 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17603
17604 2019-08-13 Martin Liska <mliska@suse.cz>
17605
17606 * value-prof.c (gimple_ic_transform): Add new line.
17607 Print details with MSG_NOTE.
17608
17609 2019-08-13 Martin Liska <mliska@suse.cz>
17610
17611 * doc/invoke.texi: Document automatic detection of jobserver.
17612 * lto-wrapper.c (run_gcc): Detect jobserver always.
17613
17614 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17615
17616 * config/i386/i386-expand.c (ix86_expand_vector_set)
17617 <case E_V2SImode>: Use vec_merge path for
17618 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17619 <case E_V8QImode>: Ditto.
17620 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17621 (*mmx_pinsrb): Ditto.
17622
17623 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17624
17625 PR target/83250
17626 PR target/91340
17627 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17628 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17629 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17630 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17631 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17632
17633 2019-08-12 Richard Biener <rguenther@suse.de>
17634
17635 PR lto/91375
17636 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17637 flag_devirtualize.
17638
17639 2019-08-12 Richard Biener <rguenther@suse.de>
17640
17641 PR driver/91130
17642 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17643 lang_mask option, always use CL_DRIVER.
17644 (get_options_from_collect_gcc_options): Adjust.
17645 (find_and_merge_options): Likewise.
17646 (run_gcc): Likewise.
17647
17648 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17649
17650 * ipa-predicate.c (add_condition): Restore inverted test.
17651
17652 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17653
17654 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17655 (enum omp_clause_device_type_kind): New enum.
17656 (struct tree_omp_clause): Add subcode.device_type_kind.
17657 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17658 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17659 for device_type clause.
17660 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17661 * tree-pretty-print.c (dump_omp_clause): Likewise.
17662
17663 PR target/91408
17664 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17665 vector_operand.
17666
17667 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17668
17669 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17670 handling spilled pseudos.
17671
17672 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17673
17674 PR target/91386
17675 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17676 to preserve the contents of the original insns.
17677
17678 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17679
17680 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17681 (addsi3_compare_op2): Likewise.
17682
17683 2019-08-09 Martin Liska <mliska@suse.cz>
17684
17685 * alias.c (alias_ptr_types_compatible_p): Strengten
17686 type comparison in LTO mode.
17687
17688 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17689
17690 PR middle-end/90313
17691 * tree-tailcall.c (find_tail_calls): Reject calls that might
17692 read from an escaped RESULT_DECL.
17693
17694 2019-08-09 Martin Liska <mliska@suse.cz>
17695
17696 * doc/invoke.texi: Document the option value.
17697 * lto-wrapper.c (run_gcc): Set auto_parallel
17698 only with -flto=auto.
17699
17700 2019-08-09 Martin Liska <mliska@suse.cz>
17701
17702 * opts.c (common_handle_option): Error for an invalid argument
17703 to -flto=.
17704
17705 2019-08-09 Martin Liska <mliska@suse.cz>
17706
17707 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17708 use dump_printf to report optimization.
17709 (sem_variable::merge): Likwise.
17710 (sem_item_optimizer::merge_classes): Use dump_printf to report
17711 ICF hits.
17712
17713 2019-08-09 Martin Liska <mliska@suse.cz>
17714
17715 * value-prof.c (gimple_divmod_fixed_value_transform):
17716 Use dump_printf_loc.
17717 (gimple_mod_pow2_value_transform): Likewise.
17718 (gimple_mod_subtract_transform): Likewise.
17719 (init_node_map): Likewise.
17720 (gimple_ic_transform): Likewise.
17721 (gimple_stringops_transform): Likewise.
17722
17723 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17724
17725 * doc/extend.texi: Add const qualifier to ld intrinsics.
17726
17727 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17728
17729 * config/rs6000/dfp.md (D64_D128): Rename to ...
17730 (DDTD): ... this, throughout.
17731 (dfp_suffix): Rename to ...
17732 (q): ... this, throughout.
17733
17734 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17735
17736 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17737 (dfp_suffix): Ditto.
17738 (adddd3, addtd3): Merge to ...
17739 (add<mode>3 for D64_D128): ... this.
17740 (subdd3, subtd3): Merge to ...
17741 (sub<mode>3 for D64_D128): ... this.
17742 (muldd3, multd3): Merge to ...
17743 (mul<mode>3 for D64_D128): ... this.
17744 (divdd3, divtd3): Merge to ...
17745 (div<mode>3 for D64_D128): ... this.
17746 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17747 (*cmp<mode>_internal1 for D64_D128): ... this.
17748 (ftruncdd2, ftrunctd2): Merge to ...
17749 (ftrunc<mode>2 for D64_D128): ... this.
17750 (fixdddi2, fixtddi2): Merge to ...
17751 (fix<mode>di2 for D64_D128): ... this.
17752
17753 2019-08-08 Jim Wilson <jimw@sifive.com>
17754
17755 PR target/91229
17756 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17757 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17758 Pass into recursive call.
17759 (riscv_flatten_aggregate_argument): New arg. Pass to
17760 riscv_flatten_aggregate_field.
17761 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17762 riscv_flatten_aggregate_argument twice, with false and true as last
17763 arg. Process result twice. Compare results and warn if different.
17764 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17765
17766 2019-08-08 Martin Liska <mliska@suse.cz>
17767
17768 PR bootstrap/91352
17769 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17770 * lto-wrapper.c (jobserver_active_p): Likewise.
17771
17772 2019-08-08 Martin Liska <mliska@suse.cz>
17773
17774 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17775 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17776 (create_version_clone_with_body): Likewise.
17777
17778 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17779
17780 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17781 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17782 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17783 GOVD_EXPLICIT flags.
17784 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17785 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17786 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17787 call install_var_field with mask 11 instead of 3.
17788 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17789 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17790
17791 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17792
17793 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17794 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17795
17796 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17797
17798 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17799 MOVPRFX alternatives. Make the GPR alternatives more expensive
17800 than the FPR ones.
17801
17802 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17803
17804 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17805 Disparage the GPR alternative relative to the FPR one.
17806 Fix handling of 8-bit and 16-bit FPR values.
17807
17808 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17809
17810 * config/aarch64/iterators.md (BITWISEV): Delete.
17811 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17812 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17813 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17814 UNSPEC_FMINNMV, UNSPEC_FMINV.
17815 (bit_reduc_op): Delete.
17816 (sve_int_op): New int attribute.
17817 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17818 UNSPEC_FMINNMV, UNSPEC_FMINV.
17819 * config/aarch64/aarch64-sve.md
17820 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17821 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17822 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17823 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17824 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17825 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17826 new patterns.
17827 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17828 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17829 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17830 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17831 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17832 new patterns.
17833
17834 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17835
17836 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17837 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17838 (fms<mode>4, *fms<mode>4): Replace with...
17839 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17840 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17841 Use unspecs instead of rtx codes.
17842 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17843 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17844
17845 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17846
17847 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17848 int iterator.
17849 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17850 * config/aarch64/aarch64-sve.md
17851 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17852 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17853 use a single unspec for the rhs.
17854 (*<su><maxmin><mode>3): Delete.
17855 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17856
17857 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17858
17859 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17860 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17861 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17862 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17863 (optab, sve_fp_op): Handle them.
17864 (SVE_FP_UNARY): Delete.
17865 (optab): Remove sqrt entry.
17866 (sve_fp_op): Remove neg, abs and sqrt entries.
17867 (SVE_COND_FP_UNARY): New int iterator.
17868 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17869 (*<frint_pattern><mode>2): Delete.
17870 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17871 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17872 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17873 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17874
17875 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17876
17877 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17878
17879 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17880
17881 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17882 (UNSPEC_COND_FADD): ...this.
17883 (UNSPEC_COND_SUB): Rename to...
17884 (UNSPEC_COND_FSUB): ...this.
17885 (UNSPEC_COND_MUL): Rename to...
17886 (UNSPEC_COND_FMUL): ...this.
17887 (UNSPEC_COND_DIV): Rename to...
17888 (UNSPEC_COND_FDIV): ...this.
17889 (UNSPEC_COND_MAX): Rename to...
17890 (UNSPEC_COND_FMAXNM): ...this.
17891 (UNSPEC_COND_MIN): Rename to...
17892 (UNSPEC_COND_FMINNM): ...this.
17893 (UNSPEC_COND_LT): Rename to...
17894 (UNSPEC_COND_FCMLT): ...this.
17895 (UNSPEC_COND_LE): Rename to...
17896 (UNSPEC_COND_FCMLE): ...this.
17897 (UNSPEC_COND_EQ): Rename to...
17898 (UNSPEC_COND_FCMEQ): ...this.
17899 (UNSPEC_COND_NE): Rename to...
17900 (UNSPEC_COND_FCMNE): ...this.
17901 (UNSPEC_COND_GE): Rename to...
17902 (UNSPEC_COND_FCMGE): ...this.
17903 (UNSPEC_COND_GT): Rename to...
17904 (UNSPEC_COND_FCMGT): ...this.
17905 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17906 (sve_fp_op_rev): Update accordingly.
17907 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17908
17909 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17910
17911 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17912 banner comments.
17913 * config/aarch64/check-sve-md.awk: New file.
17914 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17915 (insn-conditions.md): Depend on it.
17916
17917 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17918
17919 PR target/91385
17920 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17921 (*negsi2_cmpz_zext): Ditto.
17922
17923 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17924
17925 * config/aarch64/iterators.md (commutative): Remove.
17926
17927 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17928
17929 PR driver/91130
17930 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17931 processing COLLECT_GCC_OPTIONS.
17932 (run_gcc): Likewise.
17933
17934 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17935
17936 PR tree-optimization/91109
17937 * lra-remat.c (update_scratch_ops): Remove assignment of the
17938 hard register.
17939
17940 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17941
17942 * data-streamer.h (streamer_write_poly_uint64): Declare.
17943 (streamer_read_poly_uint64): Likewise.
17944 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17945 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17946 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17947 (add_condition): Take a poly_int64 size.
17948 * ipa-predicate.c (add_condition): Likewise.
17949 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17950 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17951 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17952 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17953 condition::size as a poly_int64.
17954 (unmodified_parm_1): Take a poly_int64 size pointer.
17955 (unmodified_parm): Likewise.
17956 (unmodified_parm_or_parm_agg_item): Likewise.
17957 (set_cond_stmt_execution_predicate): Update accordingly.
17958 (set_switch_stmt_execution_predicate): Likewise.
17959 (will_be_nonconstant_expr_predicate): Likewise.
17960 (will_be_nonconstant_predicate): Likewise.
17961 (inline_read_section): Stream condition::size as a poly_int.
17962 (ipa_fn_summary_write): Likewise.
17963
17964 2019-08-07 Martin Liska <mliska@suse.cz>
17965
17966 * fold-const.c (twoval_comparison_p): Replace int
17967 with bool as a return type.
17968 (simple_operand_p): Likewise.
17969 (operand_equal_p): Replace int with bool as a return type.
17970 * fold-const.h (operand_equal_p): Likewise.
17971
17972 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17973
17974 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17975 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17976 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17977 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17978 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17979 * tree-pretty-print.c (dump_omp_clause): Likewise.
17980 * tree-nested.c (convert_nonlocal_omp_clauses,
17981 convert_local_omp_clauses): Likewise.
17982 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17983 Likewise.
17984 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17985 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17986 clause with array or reference to array types, no matter what type
17987 except for reference it has.
17988
17989 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17990
17991 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17992
17993 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17994
17995 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17996 (arch_canonicalize): Support rv32g and rv64g and fix error
17997 handling.
17998
17999 2019-08-06 Martin Liska <mliska@suse.cz>
18000
18001 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
18002 and DECL_IS_OPERATOR_DELETE_P.
18003
18004 2019-08-06 Jakub Jelinek <jakub@redhat.com>
18005
18006 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
18007 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
18008 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
18009 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
18010 (gimplify_omp_for): Don't do C++ random access iterator clause
18011 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
18012 don't predetermine the artificial iterator in case of C++ random
18013 access iterators as lastprivate, but private. For OMP_LOOP, force
18014 bind expr around simd body and force for_pre_body before the
18015 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
18016 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
18017 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
18018 diff var of C++ random access iterators. Handle
18019 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
18020 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
18021 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
18022 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
18023 * omp-low.c (lower_rec_input_clauses): For
18024 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
18025 variables instead of default constructing them.
18026 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
18027 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
18028 is_taskloop_ctx check from the assert to the guarding condition.
18029
18030 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
18031
18032 * config/riscv/multilib-generator: (canonical_order): New.
18033 (arch_canonicalize): Dito.
18034 Apply arch_canonicalize for alts.
18035
18036 2019-08-05 Martin Sebor <msebor@redhat.com>
18037
18038 * doc/extend.texi (Common Variable Attributes): Document alias
18039 attribute.
18040
18041 2019-08-05 Marek Polacek <polacek@redhat.com>
18042
18043 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
18044 * doc/invoke.texi: Document -Wcomma-subscript.
18045
18046 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18047
18048 * tree-core.h (tree_function_decl): Make function_code an
18049 independent field. Group the remaining bitfields into bytes
18050 and move decl_type so that it contines to be at a byte boundary.
18051 Leave 12 bits for future expansion.
18052
18053 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18054
18055 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
18056 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
18057 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
18058 IFN_MASK_STORE.
18059
18060 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18061
18062 * gimple.h (gimple_move_vops): Declare.
18063 * gimple.c (gimple_move_vops): New function
18064 * gimple-fold.c (replace_call_with_call_and_fold)
18065 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
18066 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
18067 (gimple_fold_call): Use it.
18068 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
18069 * tree-call-cdce.c (use_internal_fn): Likewise.
18070 * tree-if-conv.c (predicate_load_or_store): Likewise.
18071 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
18072 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
18073 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
18074 (update_call_from_tree): Likewise.
18075 * tree-vect-stmts.c (vectorizable_load): Likewise.
18076 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
18077
18078 2019-08-05 Martin Liska <mliska@suse.cz>
18079
18080 PR c++/91334
18081 * tree-ssa-dce.c (propagate_necessity): Handle new operators
18082 with not arguments.
18083 (eliminate_unnecessary_stmts): Likewise.
18084
18085 2019-08-05 Richard Biener <rguenther@suse.de>
18086
18087 PR middle-end/91169
18088 * fold-const.c (get_array_ctor_element_at_index): Create
18089 offset_ints according to the sign of the index type and treat
18090 that as signed if it is obviously so.
18091
18092 2019-08-05 Jakub Jelinek <jakub@redhat.com>
18093
18094 PR target/91341
18095 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
18096 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
18097 _mm256_storeu2_m128i): New function.
18098
18099 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
18100
18101 * config/riscv/riscv.c (riscv_promote_function_mode): New.
18102 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
18103
18104 2019-08-05 Alan Modra <amodra@gmail.com>
18105
18106 PR target/91349
18107 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
18108 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
18109
18110 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
18111
18112 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
18113 bug that was fixed in Tcl 8.6.1.
18114
18115 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
18116
18117 * config/rs6000/future.md: New file.
18118 * config/rs6000/rs6000.md: Include future.md.
18119 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
18120
18121 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
18122
18123 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
18124 check to use targetm.slow_unaligned_access instead.
18125
18126 * function.c (assign_param_data_one): Remove unused data members.
18127
18128 2019-08-02 Steve Ellcey <sellcey@marvell.com>
18129
18130 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
18131 build_distinct_type_copy.
18132 (simd_clone_adjust_argument_types): Ditto.
18133 (simd_clone_adjust): Call build_distinct_type_copy here.
18134 (expand_simd_clones): Ditto.
18135
18136 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18137
18138 PR target/91201
18139 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
18140
18141 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
18142
18143 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
18144 from 'const void *'.
18145 (sort_locs_in_loop_postorder_cmp): Likewise.
18146
18147 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
18148
18149 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
18150 (hot-bb-count-ws-permille): Likewise.
18151 (hot-bb-frequency-fraction): Likewise.
18152 (unlikely-bb-count-fraction): Likewise.
18153 * params.def (hot-bb-count-fraction): Rework description.
18154 (hot-bb-count-ws-permille): Likewise.
18155 (hot-bb-frequency-fraction): Likewise.
18156 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
18157 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
18158
18159 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18160
18161 PR target/91323
18162 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
18163 Return false.
18164
18165 2019-08-02 Richard Biener <rguenther@suse.de>
18166
18167 * vec.h (vec::sort): Add gcc_qsort_r support.
18168 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
18169 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
18170 to gcc_qsort_r style callback.
18171 (sort_locs_in_loop_postorder_cmp): Likewise.
18172 (analyze_memory_references): Use gcc_sort_r interfaces.
18173 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
18174
18175 2019-08-02 Martin Liska <mliska@suse.cz>
18176
18177 PR lto/91313
18178 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
18179 to detect working job server.
18180 (driver::detect_jobserver): Test whether jobserver
18181 is active from GCC driver. That will prevent situation where
18182 GCC is invoked from a LD plugin and the linker already uses
18183 file descriptors suggested by make. That leads to a wrong
18184 detection.
18185 * gcc.h (driver): Add detect_jobserver.
18186 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
18187 not scanning for --jobserver-auth prefix.
18188
18189 2019-08-02 Jakub Jelinek <jakub@redhat.com>
18190
18191 PR tree-optimization/91201
18192 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
18193 V16QImode extraction without sse4.1 try to use V4SImode lowpart
18194 extraction.
18195
18196 2019-08-01 Martin Sebor <msebor@redhat.com>
18197
18198 PR c++/90947
18199 * tree.c (type_initializer_zero_p): Define.
18200 * tree.h (type_initializer_zero_p): New function.
18201
18202 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18203
18204 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
18205
18206 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18207
18208 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
18209 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
18210 * predict.c (maybe_hot_count_p): Likewise.
18211 (maybe_hot_bb_p): Tweak comment.
18212 (maybe_hot_edge_p): Likewise.
18213 (probably_never_executed): Likewise. Minor tweak.
18214 (probably_never_executed_bb_p): Likewise.
18215 (unlikely_executed_edge_p): Likewise.
18216 (probably_never_executed_edge_p): Likewise.
18217 (optimize_function_for_size_p): Likewise.
18218 (optimize_function_for_speed_p): Likewise.
18219 (function_optimization_type): Likewise.
18220 (optimize_bb_for_size_p): Likewise.
18221 (optimize_bb_for_speed_p): Likewise.
18222 (bb_optimization_type): Likewise.
18223 (optimize_edge_for_size_p): Likewise.
18224 (optimize_edge_for_speed_p): Likewise.
18225 (optimize_insn_for_size_p): Likewise.
18226 (optimize_insn_for_speed_p): Likewise.
18227 (optimize_loop_for_size_p): Likewise.
18228 (optimize_loop_for_speed_p): Likewise.
18229 (optimize_loop_nest_for_speed_p): Likewise.
18230 (optimize_loop_nest_for_size_p): Likewise.
18231 (predictable_edge_p): Likewise.
18232 (handle_missing_profiles): Minor tweak.
18233
18234 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
18235
18236 * config/rs6000/predicates.md (pcrel_external_address): Update
18237 comment.
18238
18239 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18240
18241 PR target/85693
18242 * config/i386/mmx.md (usadv8qi): New expander.
18243
18244 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
18245
18246 PR c++/90590
18247 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
18248 with reserved names that are in a system header.
18249
18250 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18251
18252 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
18253 (*vec_extractv2si_0_zext_sse4): New insn pattern.
18254 (*vec_extractv2si_0_zext): Ditto.
18255 (*vec_extractv2si_1): Add (rm,x) alternative.
18256 (*vec_extractv2si_1_zext): New insn pattern.
18257 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
18258 insn constraint.
18259
18260 2019-08-01 Richard Biener <rguenther@suse.de>
18261
18262 * domwalk.c (bb_postorder): Remove static variable.
18263 (cmp_bb_postorder): Adjust.
18264 (sort_bbs_postorder): Adjust and use gcc_sort_r.
18265 (dom_walker::walk): Adjust.
18266
18267 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
18268
18269 * sort.cc (sort_r_ctx): New struct.
18270 (reorder23): Make templated on context type.
18271 (reorder45): Ditto.
18272 (cmp1): Ditto. Adjust signature.
18273 (netsort): Ditto.
18274 (mergesort): Ditto.
18275 [CHECKING_P] (cmp2to3): New static function. Use it...
18276 (gcc_qsort) [CHECKING_P]: ...here.
18277 (gcc_sort_r): New function.
18278 * system.h (sort_r_cmp_fn): New function typedef.
18279 (qsort_chk): Adjust signature.
18280 (gcc_sort_r): Declare.
18281 * vec.c (qsort_chk_error): Adjust.
18282 (qsort_chk): Adjust.
18283
18284 2019-08-01 Richard Biener <rguenther@suse.de>
18285
18286 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
18287 (compute_antic): Localize it here.
18288
18289 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
18290
18291 * common/config/riscv/riscv-common.c: Check -march string ends
18292 with null.
18293
18294 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
18295
18296 * ipa-devirt.c (type_warning_cmp): Make static.
18297 (decl_warning_cmp): Ditto.
18298
18299 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
18300
18301 PR target/91050
18302 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
18303 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
18304 use of deleted rs6000_dejagnu_cpu_index variable.
18305 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
18306 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18307 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
18308 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
18309 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
18310 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18311
18312 2019-07-31 Richard Biener <rguenther@suse.de>
18313
18314 PR tree-optimization/91280
18315 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18316 Decompose MEM_REF manually for offset handling.
18317
18318 2019-07-31 Richard Biener <rguenther@suse.de>
18319
18320 PR tree-optimization/91293
18321 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
18322 of reduction stmts.
18323
18324 2019-07-31 Matt Thomas <matt@3am-software.com>
18325 Nick Hudson <nick@nthcliff.demon.co.uk>
18326 Matthew Green <mrg@eterna.com.au>
18327 Maya Rashish <coypu@sdf.org>
18328
18329 * config.gcc (hppa*-*-netbsd*): New target.
18330 * config/pa/pa-netbsd.h: New file.
18331 * config/pa/pa32-netbsd.h: New file.
18332
18333 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18334
18335 PR tree-optimization/91201
18336 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
18337
18338 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
18339
18340 * config/gcn/gcn-valu.md
18341 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
18342 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
18343 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
18344 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
18345 struct ilist. Add nops for delayeduse insns.
18346 * config/gcn/gcn.md (delayeduse): New attribute.
18347 (*movbi): Remove s_waitcnt from stores.
18348 (*mov<mode>_insn): Likewise.
18349 (*movti_insn): Likewise. Add delayeduse attribute.
18350 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
18351 (atomic_store<mode>): Remove or adjust s_waitcnt.
18352
18353 2019-07-31 Richard Biener <rguenther@suse.de>
18354
18355 * vr-values.h (vr_values::swap_vr_value): New.
18356 (vr_values::free_value_range): likewise.
18357 * vr-values.c (vr_values::swap_vr_value): Implement.
18358 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
18359 Do not return a range or take a var.
18360 (evrp_range_analyzer::stack): Change back to recording a non-const
18361 value_range *.
18362 * gimple-ssa-evrp-analyze.c
18363 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
18364 value-range.
18365 (evrp_range_analyzer::pop_to_marker): Adjust.
18366 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
18367 (evrp_range_analyzer::pop_value_range): Likewise. Free the
18368 no longer needed value-range.
18369
18370 2019-07-31 Martin Liska <mliska@suse.cz>
18371
18372 * tree-ssa-dce.c (propagate_necessity): Delete operator can
18373 have size and (or) alignment as 2nd and later arguments.
18374 Mark all of them as necessary.
18375
18376 2019-07-31 Richard Biener <rguenther@suse.de>
18377
18378 PR tree-optimization/91178
18379 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18380 Use tail-recursion.
18381
18382 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18383
18384 PR tree-optimization/91201
18385 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
18386 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
18387 TARGET_AVX512F.
18388 (reduc_plus_scal_<mode>): Improve formatting by introducing
18389 a temporary.
18390
18391 2019-07-31 Sudakshina Das <sudi.das@arm.com>
18392
18393 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
18394 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
18395 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
18396 (aarch64_init_tme_builtins): New.
18397 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
18398 (aarch64_expand_builtin_tme): New.
18399 (aarch64_expand_builtin): Handle TME builtins.
18400 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
18401 __ARM_FEATURE_TME when enabled.
18402 * config/aarch64/aarch64-option-extensions.def: Add "tme".
18403 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
18404 (TARGET_TME): New.
18405 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
18406 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
18407 UNSPECV_TCANCEL.
18408 (tstart, ttest, tcommit, tcancel): New instructions.
18409 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
18410 (__tcancel, __ttest): New.
18411 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
18412 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
18413 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
18414 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
18415 * config/arm/types.md: Add new tme type attr.
18416 * doc/invoke.texi: Document "tme".
18417
18418 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
18419
18420 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
18421 warn_unused_result attribute.
18422 (cmse_check_address_range): Add warn_unused_result attribute.
18423
18424 2019-07-31 Richard Biener <rguenther@suse.de>
18425
18426 PR tree-optimization/91257
18427 * tree-vrp.c (union_ranges): Unify equality and less tests
18428 by using compare_values. Re-order cheap tests first.
18429
18430 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18431
18432 PR middle-end/91301
18433 * gimplify.c (gimplify_omp_for): If for class iterator on
18434 distribute parallel for there is no data sharing clause
18435 on inner_for_stmt, look for private clause on combined
18436 parallel too and if found, move it to inner_for_stmt.
18437
18438 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
18439
18440 * lra-int.h (lra_operand_data): Remove early_clobber field.
18441 (lra_insn_reg): Likewise.
18442 * lra.c (debug_operand_data): Update accordingly.
18443 (setup_operand_alternative): Likewise.
18444 (new_insn_reg): Likewise. Remove early_clobber parameter.
18445 (collect_non_operand_hard_regs): Update call accordingly.
18446 Don't assign to lra_insn_reg::early_clobber.
18447 (add_regs_to_insn_regno_info): Remove early_clobber parameter
18448 and update calls to new_insn_reg.
18449 (lra_update_insn_regno_info): Update calls accordingly.
18450 * lra-constraints.c (update_and_check_small_class_inputs): Take the
18451 alternative number as a parameter and test whether the operand
18452 is earlyclobbered in that particular alternative.
18453 (process_alt_operands): Update call accordingly. Use per-alternative
18454 checks for earyclobber here too.
18455 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18456 against zero for IRA_UNKNOWN_ALT.
18457
18458 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18459
18460 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18461
18462 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
18463
18464 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18465 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18466
18467 2019-07-30 Martin Liska <mliska@suse.cz>
18468
18469 PR ipa/89330
18470 * cgraph.c (cgraph_edge::make_direct): Use
18471 edge->indirect_unknown_callee as edge->resolve_speculation can
18472 deallocate edge which is this pointer.
18473
18474 2019-07-30 Richard Biener <rguenther@suse.de>
18475
18476 PR tree-optimization/91257
18477 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18478
18479 2019-07-30 Martin Liska <mliska@suse.cz>
18480
18481 * doc/invoke.texi: Document new behavior.
18482 * lto-wrapper.c (cpuset_popcount): New function
18483 is a copy of libgomp/config/linux/proc.c.
18484 (init_num_threads): Likewise.
18485 (run_gcc): Automatically detect core count for -flto.
18486 (jobserver_active_p): New function.
18487
18488 2019-07-30 Richard Biener <rguenther@suse.de>
18489
18490 PR tree-optimization/91257
18491 * bitmap.h (bitmap_ior_into_and_free): Declare.
18492 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18493 whether to add the unliked element to the freelist.
18494 (bitmap_list_insert_element_after): Add defaulted param for
18495 an already allocated element.
18496 (bitmap_ior_into_and_free): New function.
18497 * tree-ssa-structalias.c (condense_visit): Reduce the
18498 ponts-to and edge bitmaps of the SCC members in a
18499 logarithmic fashion rather than all to one.
18500
18501 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
18502
18503 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18504 parameter. When nonnull, make sure that the addition or subtraction
18505 has the same condition.
18506 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18507 for CFN_COND_MUL too.
18508
18509 2019-07-30 Richard Biener <rguenther@suse.de>
18510
18511 PR tree-optimization/91291
18512 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18513 constant values.
18514
18515 2019-07-30 Jakub Jelinek <jakub@redhat.com>
18516
18517 PR middle-end/91216
18518 * omp-low.c (global_nonaddressable_vars): New variable.
18519 (use_pointer_for_field): For global decls, if they are non-addressable,
18520 remember it in the global_nonaddressable_vars bitmap, if they are
18521 addressable and in the global_nonaddressable_vars bitmap, ignore their
18522 TREE_ADDRESSABLE bit.
18523 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18524 vars in global_nonaddressable_vars bitmap.
18525 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18526
18527 PR target/91150
18528 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18529 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18530 comparison to unsigned HOST_WIDE_INT before shifting it left.
18531
18532 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18533
18534 * config/i386/i386.md (movstrict<mode>): Use register_operand
18535 predicate for operand 0. Add expander condition. Assert that
18536 operand 0 is a SUBREG RTX.
18537 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18538 Update operand constraints and insn condition.
18539 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18540 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18541 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18542 Update operand 0 constraints.
18543 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18544
18545 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18546
18547 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18548 when -m{code,data}-region are used without -mlarge.
18549 * config/msp430/msp430.c (msp430_option_override): Error when a
18550 non-default code or data region is used without -mlarge.
18551 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18552 attributes when they are used without -mlarge.
18553
18554 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18555
18556 PR target/70320
18557 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18558
18559 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18560
18561 PR middle-end/91242
18562 * wide-int.h (generic_wide_int::sext_elt): New function.
18563 * inchash.h (hash::add_wide_int): Use it instead of elt.
18564
18565 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18566
18567 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18568 CODE_FOR_arm_##.
18569 * config/arm/arm.md (<crc_variant>): Rename to...
18570 (arm_<crc_variant>): ... This.
18571 (<cdp>): Rename to...
18572 (arm_<cdp>): ... This.
18573 (<ldc>): Rename to...
18574 (arm_<ldc>): ... This.
18575 (<stc>): Rename to...
18576 (arm_<stc>): ... This.
18577 (<mcr>): Rename to...
18578 (arm_<mcr>): ... This.
18579 (<mrc>): Rename to...
18580 (arm_<mrc>): ... This.
18581 (<mcrr>): Rename to...
18582 (arm_<mcrr>): ... This.
18583 (<mrrc>): Rename to...
18584 (arm_<mrrc>): ... This.
18585
18586 2019-07-29 Richard Biener <rguenther@suse.de>
18587
18588 PR tree-optimization/91257
18589 * tree-ssa-sccvn.h (struct vn_avail): New.
18590 (struct vn_ssa_aux): Add avail member.
18591 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18592 member, add m_avail_freelist one.
18593 (rpo_elim::~rpo_elim): Remove.
18594 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18595 data structure.
18596 (rpo_elim::eliminate_push_avail): Likewise.
18597 (do_unwind): Likewise.
18598 (do_rpo_vn): Likewise.
18599
18600 2019-07-29 Richard Biener <rguenther@suse.de>
18601
18602 PR tree-optimization/91257
18603 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18604 most cases, instead call compare_values which handles the
18605 symbolic ranges we handle specially.
18606 (compare_values_warnv): Do not call operand_less_p but open-code
18607 the effective fold calls. Avoid converting so much.
18608
18609 2019-07-29 Martin Liska <mliska@suse.cz>
18610
18611 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18612 remove LHS of operator new call. It's handled latter.
18613
18614 2019-07-29 Richard Biener <rguenther@suse.de>
18615
18616 PR tree-optimization/91267
18617 * vr-values.c (vr_values::update_value_range): Add early return
18618 for effectively VARYING lattice entry.
18619
18620 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18621
18622 PR debug/86638
18623 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18624 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18625 necessary if keep_all_vdefs_p is true.
18626 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18627 that keep_all_vdefs_p is false.
18628 (mark_all_reaching_defs_necessary): Likewise.
18629 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18630
18631 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18632
18633 * common.opt (Og): Change the initial value of flag_dse to 0.
18634 * opts.c (default_options_table): Move OPT_ftree_dse from
18635 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18636 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18637 entry before the OPT_ftree_sra entry.
18638 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18639 of flags disabled by Og.
18640
18641 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18642
18643 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18644 variables for -Og.
18645
18646 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18647
18648 * doc/sourcebuild.texi (check-function-bodies): Document.
18649
18650 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18651
18652 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18653 VEC_DUPLICATE of a fixed-length vector even if the result
18654 is variable-length. Likewise fold a duplicate of a
18655 variable-length vector if the variable-length vector is
18656 itself a duplicate of a fixed-length sequence.
18657 (test_vector_ops_duplicate): Test more cases.
18658
18659 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18660
18661 * vector-builder.h (vector_builder): Add a shape template parameter.
18662 (vector_builder::new_unary_operation): New function, generalizing
18663 the old tree_vector_builder function.
18664 (vector_builder::new_binary_operation): Likewise.
18665 (vector_builder::binary_encoded_nelts): Likewise.
18666 * int-vector-builder.h (int_vector_builder): Update template
18667 parameters to vector_builder.
18668 (int_vector_builder::shape_nelts): New function.
18669 * rtx-vector-builder.h (rtx_vector_builder): Update template
18670 parameters to vector_builder.
18671 (rtx_vector_builder::shape_nelts): New function.
18672 (rtx_vector_builder::nelts_of): Likewise.
18673 (rtx_vector_builder::npatterns_of): Likewise.
18674 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18675 * tree-vector-builder.h (tree_vector_builder): Update template
18676 parameters to vector_builder.
18677 (tree_vector_builder::shape_nelts): New function.
18678 (tree_vector_builder::nelts_of): Likewise.
18679 (tree_vector_builder::npatterns_of): Likewise.
18680 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18681 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18682 (tree_vector_builder::new_binary_operation): Delete.
18683 (tree_vector_builder::binary_encoded_nelts): Likewise.
18684 * simplify-rtx.c: Include rtx-vector-builder.h.
18685 (distributes_over_addition_p): New function.
18686 (simplify_const_unary_operation)
18687 (simplify_const_binary_operation): Generalize handling of vector
18688 constants to include variable-length vectors.
18689 (test_vector_ops_series): Add more tests.
18690
18691 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18692
18693 PR lto/91222
18694 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18695 than INDENTIFIER_POINTER.
18696
18697 2019-07-28 Martin Liska <mliska@suse.cz>
18698
18699 PR ipa/89330
18700 * cgraph.c (symbol_table::create_edge): Always allocate
18701 a cgraph_edge.
18702 (symbol_table::free_edge): Store summary_id to
18703 edge_released_summary_ids if != -1;
18704 * cgraph.h (NEXT_FREE_NODE): Remove.
18705 (SET_NEXT_FREE_NODE): Likewise.
18706 (NEXT_FREE_EDGE): Likewise.
18707 (symbol_table::release_symbol): Store summary_id to
18708 cgraph_released_summary_ids if != -1;
18709 (symbol_table::allocate_cgraph_symbol): Always allocate
18710 a cgraph_node.
18711
18712 2019-07-28 Alan Modra <amodra@gmail.com>
18713
18714 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18715 gen_sibcall.
18716
18717 2019-07-28 Alan Modra <amodra@gmail.com>
18718
18719 PR target/91135
18720 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18721 define.
18722 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18723 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18724 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18725
18726 2019-07-28 Alan Modra <amodra@gmail.com>
18727
18728 PR target/91050
18729 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18730 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18731 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18732 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18733 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18734 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18735 in asm_default spec.
18736 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18737 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18738
18739 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18740
18741 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18742
18743 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18744
18745 PR target/89517
18746 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18747 * config/aarch64/aarch64-option-extensions.def: Add new comments
18748 and restore easier to read options.
18749
18750 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18751
18752 * convert.c (convert_to_real_1): Move part of conversion code...
18753 * match.pd: ...To here.
18754
18755 2019-07-26 Martin Jambor <mjambor@suse.cz>
18756
18757 PR ipa/89330
18758 * ipa-inline-transform.c (check_speculations_1): New function.
18759 (push_all_edges_in_set_to_vec): Likewise.
18760 (check_speculations): Use check_speculations_1, new parameter
18761 new_edges.
18762 (inline_call): Pass new_edges to check_speculations.
18763 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18764 NULL.
18765 (speculation_useful_p): Early return true if edge is inlined, remove
18766 later checks for inline_failed.
18767
18768 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18769
18770 PR rtl-optimization/91223
18771 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18772 matching with INOUT operand.
18773
18774 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18775
18776 * stmt.c (expand_case): Try to narrow the index type if it's larger
18777 than a word. Tidy up.
18778
18779 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18780
18781 * cif-code.def (NEVER_CALL): New code.
18782 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18783 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18784
18785 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18786
18787 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18788 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18789
18790 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18791
18792 * ipa-devirt.c (add_type_duplicate): Fix return value.
18793
18794 2019-07-25 Richard Biener <rguenther@suse.de>
18795
18796 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18797 type parameter and use it instead of guessing expression
18798 type from the first operand.
18799 (extract_range_from_binary_expr): Pass expr_type down.
18800
18801 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18802
18803 * config/arm/arm.md (SATrev): Change to code attribute.
18804 (*satsi_<SAT:code>): Adjust for the above.
18805 (*satsi_<SAT:code>_shift): Likewise.
18806
18807 2019-07-25 Richard Biener <rguenther@suse.de>
18808
18809 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18810 Make value_range * temporary const.
18811 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18812 Likewise.
18813 (evrp_range_analyzer::record_ranges_from_): Likewise.
18814 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18815 deal with having recorded a const one.
18816 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18817 Return a const value_range *.
18818 (evrp_range_analyzer::pop_value_range): Likewise.
18819 (evrp_range_analyzer::stack): Record const value_range *s.
18820 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18821 Adjust.
18822 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18823 (format_integer): Likewise.
18824 (sprintf_dom_walker::handle_gimple_call): Likewise.
18825 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18826 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18827 (vrp_prop::get_value_range): Adjust.
18828 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18829 modifying the lattice in-place.
18830 (vrp_prop::visit_stmt): Likewise.
18831 * vr-values.c (vr_values::get_lattice_entry): New private method.
18832 (vr_values::get_value_range): Wrap it and return a const
18833 value_range *.
18834 (vr_values::set_def_to_varying): New.
18835 (vr_values::set_defs_to_varying): Use it.
18836 (vr_values::update_value_range): Likewise.
18837 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18838 (values::op_with_constant_singleton_va): Likewise.
18839 (vr_values::extract_range_for_var_from_co): Likewise.
18840 (vr_values::extract_range_from_ssa_name): Likewise.
18841 (vr_values::extract_range_from_cond_expr): Likewise.
18842 (vr_values::extract_range_basic): Likewise.
18843 (compare_ranges): Take const value_range *, adjust.
18844 (compare_range_with_value): Likewise.
18845 (vrp_valueize): Adjust.
18846 (vrp_valueize_1): Likewise.
18847 (vr_values::get_vr_for_comparison): Return a const value_range *.
18848 (vr_values::compare_name_with_value): Adjust.
18849 (vr_values::compare_names): Likewise.
18850 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18851 Likewise.
18852 (vr_values::vrp_evaluate_conditional): Likewise.
18853 (find_case_label_ranges): Take a const value_range *.
18854 (vr_values::vrp_visit_switch_stmt): Adjust.
18855 (vr_values::extract_range_from_phi_node): Likewise.
18856 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18857 (vr_values::simplify_abs_using_ranges): Likewise.
18858 (test_for_singularity): Take a const value_range *.
18859 (range_fits_type_p): Likewise.
18860 (vr_values::simplify_cond_using_ranges_1): Adjust.
18861 (vr_values::simplify_cond_using_ranges_2): Likewise.
18862 (vr_values::simplify_switch_using_ranges): Likewise.
18863 (vr_values::simplify_float_conversion_usi): Likewise.
18864 (vr_values::two_valued_val_range_p): Likewise.
18865 * vr-values.h (vr_values::get_value_range): Return a const
18866 value_range *.
18867 (vr_values::set_def_to_varying): New.
18868 (vr_values::get_lattice_entry): New private method.
18869 (vr_values::get_vr_for_comparison): Return a const value_range *.
18870
18871 2019-07-25 Martin Liska <mliska@suse.cz>
18872 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18873
18874 PR c++/23383
18875 * common.opt: Add -fallocation-dce
18876 * gimple.c (gimple_call_operator_delete_p): New.
18877 * gimple.h (gimple_call_operator_delete_p): Likewise.
18878 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18879 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18880 DECL_IS_OPERATOR_DELETE_P.
18881 (mark_all_reaching_defs_necessary_1): Likewise.
18882 (propagate_necessity): Likewise.
18883 (eliminate_unnecessary_stmts): Handle
18884 gimple_call_operator_delete_p.
18885 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18886 Add packing of OPERATOR_DELETE.
18887 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18888 Similarly here.
18889 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18890 (DECL_SET_IS_OPERATOR_DELETE): New.
18891 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18892
18893 2019-07-25 Martin Liska <mliska@suse.cz>
18894
18895 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18896 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18897 * coverage.c (coverage_begin_function): Likewise.
18898 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18899 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18900 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18901 (sem_item::hash_referenced_symbol_properties): Likewise.
18902 * lto-streamer-out.c (hash_tree): Likewise.
18903 * predict.c (expr_expected_value_1): Likewise.
18904 * tree-inline.c (expand_call_inline): Likewise.
18905 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18906 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18907 * tree-core.h (enum function_decl_type): New enum.
18908 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18909 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18910 (set_function_decl_type): Likewise.
18911 (DECL_IS_OPERATOR_NEW_P): New.
18912 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18913 (DECL_LAMBDA_FUNCTION): Likewise.
18914 (DECL_LAMBDA_FUNCTION_P): Likewise.
18915 (DECL_IS_OPERATOR_NEW): Remove.
18916 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18917
18918 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18919
18920 * ipa-profile.c (get_most_common_single_value): Use
18921 get_nth_most_common_value.
18922 * profile.c (sort_hist_value): New function.
18923 (compute_value_histograms): Call sort_hist_value to sort the
18924 values after loading from disk.
18925 * value-prof.c (get_most_common_single_value): Rename to ...
18926 get_nth_most_common_value. Add input params n, return
18927 the n_th value and count.
18928 (gimple_divmod_fixed_value_transform): Use
18929 get_nth_most_common_value.
18930 (gimple_ic_transform): Likewise.
18931 (gimple_stringops_transform): Likewise.
18932 * value-prof.h (get_most_common_single_value): Add input params
18933 n, default to 0.
18934
18935 2019-07-25 Richard Biener <rguenther@suse.de>
18936
18937 PR tree-optimization/91236
18938 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18939 size of CONSTRUCTOR write. Fix buffer size we pass to
18940 native_encode_expr.
18941
18942 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18943
18944 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18945 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18946 r273773.
18947
18948 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18949
18950 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18951 explicitly disabled with --disable-initfini-array.
18952
18953 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18954
18955 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18956 if-exists.
18957
18958 2019-07-24 Martin Sebor <msebor@redhat.com>
18959
18960 PR tree-optimization/91183
18961 PR tree-optimization/86688
18962 * builtins.c (compute_objsize): Handle MEM_REF.
18963 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18964 (get_min_string_length): Remove.
18965 (count_nonzero_bytes): New function.
18966 (handle_char_store): Rename...
18967 (handle_store): to this. Handle multibyte stores via integer types.
18968 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18969 function name.
18970
18971 2019-07-24 Martin Sebor <msebor@redhat.com>
18972
18973 PR driver/80545
18974 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18975 (diagnostic_report_diagnostic): Same.
18976 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18977 (diagnostic_context::lang_mask): New data member.
18978 * ipa-pure-const.c (suggest_attribute): Use
18979 lang_hooks.option_lang_mask ().
18980 * opts-common.c (option_enabled): Handle new argument.
18981 (get_option_state): Pass an additional argument.
18982 * opts.c (print_filtered_help): Print supported languages for
18983 unsupported options. Adjust printing of current state.
18984 * opts.h (option_enabled): Add argument.
18985 * toplev.c (print_switch_values): Use lang_mask.
18986 (general_init): Set global_dc->lang_mask.
18987
18988 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18989
18990 PR bootstrap/87030
18991 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18992
18993 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18994
18995 * cgraphunit.c (symbol_table::compile): Start and stop
18996 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18997 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18998
18999 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
19000
19001 * gimplify.c (flag_instrument_functions_exclude_p): Include
19002 namespace/class information in the printable name.
19003 * opts.c (add_comma_separated_to_vector): Add NUL terminator
19004 to tokens entered into the vector.
19005
19006 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
19007
19008 * tree-nested.c (build_simple_mem_ref_notrap): New function.
19009 (get_static_chain): Call it instead of build_simple_mem_ref.
19010 (get_frame_field): Likewise.
19011 (get_nonlocal_debug_decl): Likewise.
19012 (convert_nonlocal_reference_op): Likewise.
19013
19014 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
19015
19016 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
19017 declaration.
19018 (arc_compute_frame_size): Millicode is disabled when compiling
19019 ISR.
19020 (arc_return_address_register): Likewise.
19021 (arc_compute_function_type): Likewise.
19022 (arc_compute_frame_size): Likewise.
19023 (secondary_reload_info): Likewise.
19024 (arc_get_unalign): Likewise.
19025 (arc_can_use_return_insn): Declare.
19026 * config/arc/arc.c (AUX_LP_START): Define
19027 (AUX_LP_END): Likewise.
19028 (arc_frame_info): Update gmask member to 64-bit datum.
19029 (GMASK_LEN): Update.
19030 (arc_compute_function_type): Make it static, move it forward.
19031 (arc_must_save_register): Update, consider the extra regs.
19032 (arc_compute_millicode_save_restore_regs): Update to use the 64
19033 bit gmask.
19034 (arc_compute_frame_size): Likewise.
19035 (arc_enter_leave_p): Likewise.
19036 (arc_save_callee_saves): Likewise.
19037 (arc_restore_callee_saves): Likewise.
19038 (arc_save_callee_enter): Likewise.
19039 (arc_restore_callee_leave): Likewise.
19040 (arc_save_callee_milli): Likewise.
19041 (arc_restore_callee_milli): Likewise.
19042 (arc_expand_prologue): Add new interrupt handling.
19043 (arc_return_address_register): Make it static, move it forward.
19044 (arc_expand_epilogue): Add new interrupt handling.
19045 (arc_get_unalign): Delete.
19046 (arc_epilogue_uses): Make sure we do not remove the extra
19047 saved/restored registers when interrupt.
19048 (arc_can_use_return_insn): New function.
19049 (push_reg): Likewise.
19050 (pop_reg): Likewise.
19051 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
19052 procedures.
19053 (arc_restore_callee_saves): Likewise, but restoring.
19054 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
19055 (R33_REG): Likewise.
19056 (R34_REG): Likewise.
19057 (R35_REG): Likewise.
19058 (R36_REG): Likewise.
19059 (R37_REG): Likewise.
19060 (R38_REG): Likewise.
19061 (R39_REG): Likewise.
19062 (R45_REG): Likewise.
19063 (R46_REG): Likewise.
19064 (R47_REG): Likewise.
19065 (R48_REG): Likewise.
19066 (R49_REG): Likewise.
19067 (R50_REG): Likewise.
19068 (R51_REG): Likewise.
19069 (R52_REG): Likewise.
19070 (R53_REG): Likewise.
19071 (R54_REG): Likewise.
19072 (R55_REG): Likewise.
19073 (R56_REG): Likewise.
19074 (R58_REG): Likewise.
19075 (type): Add rtie attribute.
19076 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
19077 (movsi_insn): Accept moves to lp_count.
19078 (rtie): Update pattern.
19079 (simple_return): Simplify it, don't use this pattern as a return
19080 from an interrupt.
19081 (arc600_rtie): New pattern.
19082 (p_return_i): Clean up.
19083 (return): Likewise.
19084 * config/arc/builtins.def (rtie): Only available for non ARC6xx
19085 family CPUs.
19086 * config/arc/predicates.md (move_src_operand): Consider lp_count
19087 as a register.
19088
19089 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
19090
19091 * config/s390/predicates.md (addv_const_operand): New predicate.
19092 * config/s390/s390-modes.def (CCO): New condition code mode.
19093 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
19094 (s390_branch_condition_mask): Likewise.
19095 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
19096 ("mulv<mode>4"): New expanders.
19097 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
19098 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
19099 pattern definitions.
19100
19101 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19102
19103 PR middle-end/91166
19104 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
19105 (define_predicates): Add entry for uniform_vector_p.
19106 (vec_same_elem_p): New match pattern.
19107
19108 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19109
19110 PR bootstrap/87030
19111 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
19112 * config/i386/darwin32-biarch.h .. to here.
19113 * config/i386/darwin64-biarch.h: Adjust comments.
19114 * config/rs6000/darwin32-biarch.h: Likewise.
19115 * config/rs6000/darwin64-biarch.h: Likewise.
19116 * config.gcc: Missed commit from r273746
19117 (*-*-darwin*): Don't include CPU t-darwin here.
19118 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19119 an error message if i686-darwin configuration is attempted for
19120 Darwin >= 18.
19121
19122 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
19123
19124 PR bootstrap/87030
19125 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
19126 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19127 an error message if i686-darwin configuration is attempted for
19128 Darwin >= 18.
19129 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
19130 (powerpc-*-darwin*): Use biarch files where needed.
19131 (powerpc64-*-darwin*): Likewise.
19132 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
19133 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19134 arch case.
19135 * config/i386/darwin32-biarch.h: New.
19136 * config/i386/darwin64.h: Rename.
19137 * config/i386/darwin64-biarch.h: To this.
19138 * config/i386/t-darwin: Rename.
19139 * config/i386/t-darwin32-biarch: To this.
19140 * config/i386/t-darwin64: Rename.
19141 * config/i386/t-darwin64-biarch: To this.
19142 * config/rs6000/darwin32-biarch.h: New.
19143 * config/rs6000/darwin64.h: Rename.
19144 * config/rs6000/darwin64-biarch.h: To this.
19145 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19146 arch case.
19147 * config/rs6000/t-darwin8: Rename.
19148 * config/rs6000/t-darwin32-biarch: To this.
19149 * config/rs6000/t-darwin64 Rename.
19150 * config/rs6000/t-darwin64-biarch: To this.
19151
19152 2019-07-23 Martin Sebor <msebor@redhat.com>
19153
19154 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
19155
19156 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19157
19158 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
19159 (rh): New alias for it.
19160
19161 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19162
19163 * gdbhooks.py: Pass replace=True to
19164 gdb.printing.register_pretty_printer.
19165
19166 2019-07-23 Richard Biener <rguenther@suse.de>
19167
19168 PR debug/91231
19169 * lto-streamer-in.c (input_function): Drop inline-entry markers
19170 that ended up with an unknown location block.
19171
19172 2019-07-23 Richard Biener <rguenther@suse.de>
19173
19174 PR tree-optimization/83518
19175 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
19176 init from a constant even when partial defs are already recorded.
19177
19178 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19179
19180 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
19181 * config/i386/znver1.md: Enable patterns for znver2 and add store
19182 variants which use extra AGU unit.
19183
19184 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19185
19186 * config/i386/i386-options.c (ix86_option_override_internal): Default
19187 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
19188 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
19189 for ZNVER2.
19190
19191 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19192
19193 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
19194 (znver2_costs): Update 256 bit SSE costs and multiplication.
19195
19196 2019-07-23 Jan Beulich <jbeulich@suse.com>
19197
19198 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
19199 Require only AVX512F.
19200 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
19201 alternative expanding to vpternlog.
19202
19203 2019-07-23 Martin Liska <mliska@suse.cz>
19204
19205 * dwarf2out.c (gen_producer_string): Canonize -flto=N
19206 to -flto in dwarf producer string.
19207
19208 2019-07-23 Richard Biener <rguenther@suse.de>
19209
19210 * tree-cfg.c (label_for_bb): Remove global var.
19211 (main_block_label): Take label_for_bb as argument.
19212 (cleanup_dead_labels_eh): Likewise, adjust.
19213 (cleanup_dead_labels): Adjust.
19214
19215 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19216
19217 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
19218 Configurations): Add documentation for __builtin_mtfsf.
19219
19220 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
19221
19222 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
19223 * config/riscv/riscv.c (riscv_constant_alignment): Use
19224 riscv_align_data_type.
19225 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
19226 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19227 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19228 * config/riscv/riscv.opt (malign-data): New.
19229 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
19230
19231 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
19232
19233 * cgraph.c (dump_graphviz): New function.
19234 * cgraph.h (dump_graphviz): New function.
19235 * symtab.c (dump_graphviz): New function.
19236
19237 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
19238
19239 * config/aarch64/aarch64-simd.md
19240 (*aarch64_simd_sra<mode>): New.
19241 * config/aarch64/iterators.md
19242 (SHIFTRT): New iterator.
19243 (sra_op): New attribute.
19244
19245 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19246
19247 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
19248 callee-saved regs R4->R10 in an interrupt function that calls another
19249 function.
19250
19251 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19252
19253 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
19254 (_mm_blendv_epi8): New.
19255
19256 2019-07-22 Richard Biener <rguenther@suse.de>
19257
19258 PR tree-optimization/91221
19259 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
19260 restrict partial-def handling of empty constructors and
19261 memset to refs with known offset.
19262
19263 2019-07-22 Jan Beulich <jbeulich@suse.com>
19264
19265 * config/i386/sse.md (ternlogsuffix): New.
19266 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
19267 AVX512F is in use.
19268 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
19269
19270 2019-07-22 Martin Liska <mliska@suse.cz>
19271
19272 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
19273 comment.
19274 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
19275
19276 2019-07-22 Martin Liska <mliska@suse.cz>
19277
19278 * lto-section-in.c (lto_get_section_data):
19279 Use new function get_compression.
19280 * lto-streamer-out.c (produce_lto_section): Use
19281 set_compression to encode compression algorithm.
19282 * lto-streamer.h (struct lto_section): Do not
19283 use bitfields in the format.
19284
19285 2019-07-22 Martin Liska <mliska@suse.cz>
19286
19287 PR driver/91172
19288 * opts-common.c (decode_cmdline_option): Decode
19289 argument of -Werror and check it for a wrong language.
19290 * opts-global.c (complain_wrong_lang): Remove such case.
19291
19292 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
19293
19294 * config/arc/arc.c (prepare_move_operands): Always use an
19295 intermediate register when storing a TLS symbols.
19296
19297 2019-07-22 Stafford Horne <shorne@gmail.com>
19298
19299 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
19300 force_reg.
19301
19302 2019-07-22 Stafford Horne <shorne@gmail.com>
19303
19304 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
19305 and munordered-float validations.
19306 * config/or1k/constraints.md (d): New register constraint.
19307 * config/or1k/predicates.md (fp_comparison_operator): New.
19308 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
19309 operands.
19310 (or1k_expand_compare): Normalize unordered comparisons.
19311 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
19312 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
19313 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
19314 * config/or1k/or1k.md (type): Add fpu.
19315 (fpu): New instruction reservation.
19316 (F, f, fr, fi, FI, FOP, fop): New.
19317 (<fop><F:mode>3): New ALU instruction definition.
19318 (float<fi><F:mode>2): New conversion instruction definition.
19319 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
19320 (fpcmpcc): New code iterator.
19321 (*sf_fp_insn): New instruction definition.
19322 (cstore<F:mode>4): New expand definition.
19323 (cbranch<F:mode>4): New expand definition.
19324 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
19325 munordered-float): New options.
19326 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
19327 munordered-float.
19328
19329 2019-07-22 Stafford Horne <shorne@gmail.com>
19330
19331 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
19332 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
19333 documenation to be more clear.
19334 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
19335 more clear.
19336 * config/or1k/or1k.opt (mrori): New option.
19337 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
19338 msfimm, mshftimm): Rewrite documentation to be more clear.
19339 * config/or1k/or1k.md (insn_support): Add ror and rori.
19340 (enabled): Add conditions for ror and rori.
19341 (rotrsi3): Replace condition for shftimm with ror and rori.
19342
19343 2019-07-22 Stafford Horne <shorne@gmail.com>
19344
19345 PR target/90363
19346 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
19347 (extend<mode>si2): Update predicate.
19348 * config/or1k/predicates.md (volatile_mem_operand): New.
19349 (reg_or_mem_operand): New.
19350
19351 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
19352
19353 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
19354 * config/rs6000/rs6000-call.c: ... to here.
19355
19356 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19357
19358 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
19359 memory.
19360
19361 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19362
19363 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
19364
19365 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19366
19367 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
19368
19369 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19370
19371 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
19372 (any_memory_operand): New predicate.
19373 (reg_or_mem_operand): Use it.
19374
19375 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19376
19377 PR target/91204
19378 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
19379
19380 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
19381
19382 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
19383 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
19384
19385 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19386
19387 * tree.def (OMP_LOOP): New tree code.
19388 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
19389 (enum omp_clause_bind_kind): New enum.
19390 (struct tree_omp_clause): Add subcode.bind_kind.
19391 * tree.h (OMP_LOOP_CHECK): Rename to ...
19392 (OMP_LOOPING_CHECK): ... this.
19393 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
19394 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
19395 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
19396 (OMP_CLAUSE_BIND_KIND): Define.
19397 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19398 bind clause entries.
19399 (walk_tree_1): Handle OMP_CLAUSE_BIND.
19400 * tree-pretty-print.c (dump_omp_clause): Likewise.
19401 (dump_generic_node): Handle OMP_LOOP.
19402 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
19403 (in_omp_construct): New variable.
19404 (is_gimple_stmt): Handle OMP_LOOP.
19405 (gimplify_scan_omp_clauses): For lastprivate don't set
19406 check_non_private if code == OMP_LOOP. For reduction clause
19407 on OMP_LOOP combined with parallel or teams propagate as shared
19408 on the combined construct. Handle OMP_CLAUSE_BIND.
19409 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
19410 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
19411 for constructs from a loop construct to gimplify_scan_omp_clauses.
19412 Don't predetermine iterator linear on OMP_SIMD from loop construct.
19413 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
19414 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
19415 to match the implicit ORT_TARGET construct around whole body.
19416 Temporarily clear in_omp_construct when processing body.
19417 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
19418 etc. temporarily set in_omp_construct when processing body.
19419 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
19420 * omp-low.c (struct omp_context): Add loop_p.
19421 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
19422 in that the original var might be private.
19423 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
19424 (check_omp_nesting_restrictions): Adjust nesting restrictions for
19425 addition of loop construct.
19426 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
19427
19428 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
19429 lastprivate non-addressable iterator of a collapse(1) simd.
19430
19431 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
19432
19433 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
19434 as in rs6000.c.
19435
19436 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
19437
19438 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
19439 refer to default conditions. Warn for the 'y' spec which is ignored
19440 by current linkers.
19441
19442 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
19443
19444 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19445 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19446 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19447 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19448 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19449 init_cumulative_args, rs6000_promote_function_mode,
19450 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19451 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19452 rs6000_function_arg_boundary, rs6000_parm_offset,
19453 rs6000_parm_start, rs6000_arg_size,
19454 rs6000_darwin64_record_arg_advance_flush,
19455 rs6000_darwin64_record_arg_advance_recurse,
19456 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19457 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19458 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19459 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19460 rs6000_finish_function_arg, rs6000_function_arg,
19461 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19462 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19463 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19464 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19465 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19466 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19467 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19468 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19469 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19470 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19471 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19472 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19473 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19474 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19475 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19476 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19477 get_element_number, altivec_expand_vec_set_builtin,
19478 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19479 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19480 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19481 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19482 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19483 rs6000_expand_builtin, rs6000_vector_type,
19484 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19485 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19486 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19487 to rs6000-call.c.
19488 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19489 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19490 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19491 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19492 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19493 init_cumulative_args, rs6000_promote_function_mode,
19494 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19495 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19496 rs6000_function_arg_boundary, rs6000_parm_offset,
19497 rs6000_parm_start, rs6000_arg_size,
19498 rs6000_darwin64_record_arg_advance_flush,
19499 rs6000_darwin64_record_arg_advance_recurse,
19500 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19501 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19502 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19503 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19504 rs6000_finish_function_arg, rs6000_function_arg,
19505 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19506 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19507 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19508 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19509 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19510 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19511 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19512 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19513 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19514 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19515 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19516 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19517 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19518 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19519 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19520 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19521 get_element_number, altivec_expand_vec_set_builtin,
19522 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19523 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19524 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19525 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19526 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19527 rs6000_expand_builtin, rs6000_vector_type,
19528 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19529 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19530 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19531 to here from rs6000.c.
19532 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19533 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19534 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19535 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19536 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19537 rs6000_return_in_memory, rs6000_return_in_msb,
19538 rs6000_pass_by_reference, setup_incoming_varargs,
19539 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19540 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19541 rs6000_function_arg_padding, rs6000_function_arg,
19542 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19543 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19544 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19545 rs6000_passes_long_double, rs6000_passes_vector,
19546 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19547 altivec_builtin_mask_for_load) Add declarations.
19548 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19549 * config/config.gcc: Add new source file rs6000-call.c to garbage
19550 collector and extra_objs.
19551
19552 2019-07-19 Jeff Law <law@redhat.com>
19553
19554 PR tree-optimization/86061
19555 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19556 strncpy. Drop some trivial dead code.
19557 (maybe_trim_memstar_call): Handle strncpy.
19558
19559 2019-07-19 Richard Biener <rguenther@suse.de>
19560
19561 PR tree-optimization/91211
19562 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19563 memset encoding size.
19564
19565 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19566
19567 PR target/91204
19568 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19569
19570 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19571
19572 PR ipa/91194
19573 * ipa-inline.c (recursive_inlining): Fix limits check.
19574
19575 2019-07-19 Richard Biener <rguenther@suse.de>
19576
19577 PR tree-optimization/91200
19578 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19579 no PHI nodes in middle-bb.
19580
19581 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19582
19583 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19584 to +sve-bitperm.
19585 * config/aarch64/aarch64-option-extensions.def: Likewise.
19586
19587 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19588
19589 PR middle-end/91190
19590 * function.c (insert_temp_slot_address): Store into the hash table
19591 a copy of address to avoid RTL sharing issues.
19592
19593 2019-07-19 Richard Biener <rguenther@suse.de>
19594
19595 PR tree-optimization/91207
19596 Revert
19597 2019-07-17 Richard Biener <rguenther@suse.de>
19598
19599 PR tree-optimization/91178
19600 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19601 loads with a gap larger than the vector size always use
19602 VMAT_STRIDED_SLP.
19603 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19604 avoid loading vectors that are only contained in the gap
19605 and thus are not needed.
19606
19607 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19608
19609 * config/i386/i386.md (*addqi_2_slp): Remove.
19610 (*<code>qi_2_slp): Ditto.
19611
19612 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19613
19614 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19615 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19616 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19617 Rename function from rs6000_prefixed_address.
19618 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19619 TARGET_HAS_TOC.
19620 (TARGET_TOC): Likewise.
19621 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19622 rs6000.h.
19623 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19624 TARGET_HAS_TOC.
19625 (TARGET_TOC): Likewise.
19626 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19627 rs6000.h.
19628 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19629 TARGET_HAS_TOC.
19630 (TARGET_TOC): Likewise.
19631 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19632 check to require -mcmodel=medium for pc-relative addressing.
19633 (create_TOC_reference): Add assertion for TARGET_TOC.
19634 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19635 TARGET_NO_TOC.
19636 (rs6000_emit_move): Likewise.
19637 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19638 to 'TOC_alias_set'.
19639 (get_TOC_alias_set): Likewise.
19640 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19641 TARGET_NO_TOC.
19642 (rs6000_can_eliminate): Likewise.
19643 (rs6000_prefixed_address_mode_p): Rename function from
19644 rs6000_prefixed_address.
19645 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19646 TARGET_HAS_TOC and not pc-relative.
19647 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19648 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19649 TARGET_HAS_TOC.
19650 (TARGET_TOC): Likewise.
19651 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19652 rs6000.h.
19653
19654 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19655
19656 PR target/91188
19657 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19658 for operand 0. Do not use (match_dup) to match operand 1 with
19659 operand 0. Add check in insn constraint that either input operand
19660 matches operand 0. Use SWI12 mode iterator to also handle
19661 HImode operands.
19662 (*and<mode>_1_slp): Ditto.
19663 (*<code>qi_1_slp): Ditto.
19664 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19665 Do not use (match_dup) to match operand 1 with operand 0. Add
19666 check in insn constraint that operand 1 matches operand 0.
19667 Use SWI12 mode iterator to also handle HImode operands.
19668 (*ashl<mode>3_1_slp): Ditto.
19669 (*<shift_insn><mode>3_1_slp): Ditto.
19670 (*<rotate_insn><mode>3_1_slp): Ditto.
19671
19672 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19673
19674 * config/arm/arm-builtins.c
19675 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19676 (arm_expand_unop_builtin): Likewise.
19677 * config/arm/crypto.md
19678 (crypto_sha1h): Convert from define_insn to define_expand.
19679 (crypto_<crypto_pattern>): Likewise.
19680 (crypto_sha1h_lb): New define_insn.
19681 (crypto_<crypto_pattern>_lb): Likewise.
19682
19683 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19684
19685 PR target/90317
19686 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19687 (vsha1cq_u32): Likewise.
19688 (vsha1pq_u32): Likewise.
19689 (vsha1mq_u32): Likewise.
19690 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19691 vec select.
19692 (crypto_sha1c): Correct vec select.
19693 (crypto_sha1m): Likewise.
19694 (crypto_sha1p): Likewise.
19695
19696 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19697
19698 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19699 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19700 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19701 (subdi_zesidi_zesidi): Likewise.
19702 (negdi2_compare, negdi2_insn): Likewise.
19703 (negdi_extensidi): Likewise.
19704 (negdi_zero_extendsidi): Likewise.
19705 (arm_cmpdi_insn): Likewise.
19706 (subsi3_carryin): Use arm_borrow_operation.
19707 (subsi3_carryin_const): Likewise.
19708 (subsi3_carryin_const0): Likewise.
19709 (subsi3_carryin_compare): Likewise.
19710 (subsi3_carryin_compare_const): Likewise.
19711 (subsi3_carryin_compare_const0): Likewise.
19712 (subsi3_carryin_shift): Likewise.
19713 (rsbsi3_carryin_shift): Likewise.
19714 (negsi2_carryin_compare): Likewise.
19715
19716 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19717
19718 PR tree-optimization/91137
19719 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19720 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19721 Init, use and fini the above new field.
19722 (determine_base_object_1): New function.
19723 (determine_base_object): Reimplement using walk_tree.
19724
19725 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19726
19727 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19728 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19729 CLEANUP_FORCE_FAST_DCE is set.
19730 * ifcvt.c (rest_of_handle_if_conversion): Pass
19731 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19732 if-conversion succeeded.
19733
19734 2019-07-18 Richard Biener <rguenther@suse.de>
19735
19736 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19737 branches to make code less indented.
19738
19739 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19740
19741 PR middle-end/81824
19742 * attribs.c (decls_mismatched_attributes): Simplify the logic
19743 that avoids duplicates and false positives.
19744
19745 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19746
19747 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19748 data into data section when generating PIC code.
19749 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19750 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19751 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19752 return 2 for SOM and 0 for other targets.
19753
19754 2019-07-17 Jeff Law <law@redhat.com>
19755
19756 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19757 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19758 avoid unexpected switch statement fallthru.
19759
19760 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19761
19762 * config/i386/i386.md (*add<dwi>3_doubleword):
19763 Remove redundant constraints.
19764 (*add<mode>_1): Ditto.
19765 (*addhi_1): Ditto.
19766 (*addqi_1): Ditto.
19767 (*addqi_1_slp): Ditto.
19768 (*add<mode>_2): Ditto.
19769 (*addv<mode>4): Ditto.
19770 (*sub<dwi>3_doubleword): Ditto.
19771 (*sub<mode>_1): Ditto.
19772 (*subqi_1_slp): Ditto.
19773 (*sub<mode>_2): Ditto.
19774 (*subv<mode>4): Ditto.
19775 (*sub<mode>_3): Ditto.
19776 (@add<mode>3_carry): Ditto.
19777 (@sub<mode>3_carry): Ditto.
19778 (*add<mode>3_cc_overflow_1): Ditto.
19779 (*add<mode>3_zext_cc_overflow_2): Ditto.
19780 (*anddi_1): Ditto.
19781 (*and<mode>_1): Ditto.
19782 (*andqi_1): Ditto.
19783 (*andqi_1_slp): Ditto.
19784 (*anddi_2): Ditto.
19785 (*andqi_2_maybe_si): Ditto.
19786 (*and<mode>_2): Ditto.
19787 (*andqi_2_slp): Ditto.
19788 (*<code><mode>_1): Ditto.
19789 (*<code>qi_1): Ditto.
19790 (*<code>qi_1_slp): Ditto.
19791 (*<code><mode>_2): Ditto.
19792 (*<code>qi_2_slp): Ditto.
19793
19794 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19795
19796 * alias.c (record_component_aliases): Do not simplify pointed-to
19797 types of ODR types.
19798
19799 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19800
19801 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19802 partial reg stall on alternative 2.
19803
19804 2019-07-17 Richard Biener <rguenther@suse.de>
19805
19806 PR tree-optimization/91178
19807 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19808 lower SSA names to avoid quadratic behavior in the common case.
19809 * tree-data-ref.c (split_constant_offset): Add limit argument
19810 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19811 (split_constant_offset_1): Add limit argument and use it to
19812 limit SSA def walking. Optimize the common plus/minus case.
19813
19814 2019-07-17 Richard Biener <rguenther@suse.de>
19815
19816 PR tree-optimization/91178
19817 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19818 loads with a gap larger than the vector size always use
19819 VMAT_STRIDED_SLP.
19820 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19821 avoid loading vectors that are only contained in the gap
19822 and thus are not needed.
19823
19824 2019-07-17 Richard Biener <rguenther@suse.de>
19825
19826 PR tree-optimization/91180
19827 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19828 computation for memset partial defs.
19829
19830 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19831
19832 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19833 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19834 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19835 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19836 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19837 * omp-grid.c (grid_process_grid_body,
19838 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19839 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19840 == GF_OMP_FOR_KIND_SIMD.
19841 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19842 check_omp_nesting_restrictions, scan_omp_1_stmt,
19843 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19844 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19845 omp_find_scan): Likewise.
19846 * omp-expand.c (expand_omp_for): Likewise.
19847 * omp-general.c (omp_extract_for_data): Likewise.
19848
19849 PR tree-optimization/91157
19850 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19851 a vector boolean with scalar mode.
19852 (expand_vector_condition): Handle first operand being a vector boolean
19853 with scalar mode.
19854 (expand_vector_operations_1): For comparisons, don't bail out early
19855 if the return type is vector boolean with scalar mode, but comparison
19856 operand type is not.
19857
19858 2019-07-17 Richard Biener <rguenther@suse.de>
19859
19860 PR tree-optimization/91181
19861 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19862 IFN_LOADs as calls.
19863
19864 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19865
19866 * config/i386/i386.md (*testdi_1): Match CCZmode for
19867 constants that might have the SImode sign bit set.
19868 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19869 Use correct constraints for pentium pairing.
19870 (*test<mode>_1): Ditto.
19871
19872 2019-07-16 Jeff Law <law@redhat.com>
19873
19874 PR rtl-optimization/91173
19875 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19876 SSA_NAME with a constant value, fold its value into the offset
19877 and clear the base before calling gen_addr_rtx.
19878
19879 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19880
19881 PR rtl-optimization/91164
19882 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19883 invalidate dominance info.
19884
19885 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19886
19887 * read-md.h (md_reader::record_potential_iterator_use): Add a
19888 file_location parameter.
19889 * read-rtl.c (attribute_use::loc): New field.
19890 (map_attr_string): Take a file_location parameter. Report cases
19891 in which attributes map to multiple distinct values.
19892 (apply_attribute_uses): Update call accordingly.
19893 (md_reader::handle_overloaded_name): Likewise.
19894 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19895 nonnull strings.
19896 (record_attribute_use): Take a file_location parameter.
19897 Initialize attribute_use::loc.
19898 (md_reader::record_potential_iterator_use): Take a file_location
19899 parameter. Update call to record_attribute_use.
19900 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19901 (rtx_reader::read_rtx_code): Likewise.
19902 (rtx_reader::read_rtx_operand): Likewise. Record a location
19903 for implicitly-expanded empty strings.
19904
19905 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19906
19907 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19908 Use file_location instead of separate fields.
19909 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19910 separate filename and line number.
19911 * read-md.c (ptr_loc): As above.
19912 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19913 (md_reader::fprint_md_ptr_loc): Likewise.
19914 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19915 instead of a separate filename and line number.
19916 (md_reader::read_string): Update call accordingly.
19917
19918 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19919
19920 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19921 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19922 leaving the choice between SFDF and P implicit.
19923 (*mov<mode>_update2): Likewise.
19924 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19925 rather than leaving the choice betweem IBM128 and GPR implicit.
19926 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19927 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19928 QHSI implicit.
19929 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19930 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19931 * config/rs6000/vsx.md
19932 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19933 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19934 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19935 and VSX_EXTRACT_I implicit.
19936
19937 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19938
19939 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19940 Explicitly use <MOVEP1:MODE> for the mode attribute.
19941
19942 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19943
19944 PR bootstrap/91176
19945 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19946
19947 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19948
19949 PR target/91050
19950 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19951 .machine directive.
19952
19953 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19954
19955 * config/i386/i386.md (@test<mode>_ccno_1):
19956 Rename from test<mode>_ccno_1.
19957 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19958 (*testqi_1_maybe_si): Remove modrm attribute.
19959 (*test<mode>_1): Ditto.
19960 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19961 gen_test_ccno_1 and gen_extend_insn.
19962
19963 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19964
19965 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19966 to 0.
19967
19968 2019-07-15 Richard Biener <rguenther@suse.de>
19969
19970 PR middle-end/91162
19971 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19972 node make sure to replace all uses with something valid.
19973
19974 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19975
19976 PR tree-optimization/88497
19977 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19978 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19979 function undistribute_bitref_for_vector.
19980 (undistribute_bitref_for_vector): New function.
19981 (cleanup_vinfo_map): Likewise.
19982 (sort_by_mach_mode): Likewise.
19983
19984 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19985
19986 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19987 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19988 and testdi_ccno_1 using SWI48 mode attribute.
19989 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19990 x86_64_szext_general_operand.
19991 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19992 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19993 instead of genera_operand mode attribute.
19994
19995 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19996
19997 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19998 fopen and fclose to their respective types.
19999 (DotFn.invoke): Ditto.
20000
20001 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
20002
20003 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
20004 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
20005 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
20006 (array_index_predicate): Remove.
20007 (analyze_function_body): Account cost for variable ofsetted array
20008 indexing.
20009 (estimate_node_size_and_time): Do not compute array index hint.
20010 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
20011 (inline_read_section): Do not read array index hint.
20012 (ipa_fn_summary_write): Do not write array index hint.
20013 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
20014 * ipa-cp.c (hint_time_bonus): Remove.
20015 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
20016 (ipa_fnsummary): Remove array_index.
20017 * ipa-inline.c (want_inline_small_function_p): Do not use
20018 array_index.
20019 (edge_badness): Likewise.
20020 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
20021
20022 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
20023
20024 PR target/91148
20025 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
20026 superfluous "builtin function" phrasing.
20027
20028 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
20029
20030 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
20031 Break out from ...
20032 (aliasing_component_refs_walk): Break out from ...
20033 (aliasing_component_refs_p): ... here.
20034
20035 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
20036
20037 PR target/91148
20038 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
20039 "builtin function" phrasing.
20040
20041 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20042
20043 PR target/90723
20044 * recog.h (temporary_volatile_ok): New class.
20045 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
20046 volatile_ok temporarily to true using temporary_volatile_ok.
20047 * expr.c (emit_block_move_via_cpymem): Likewise.
20048 * optabs.c (maybe_legitimize_operand): Likewise.
20049
20050 2019-07-13 Jakub Jelinek <jakub@redhat.com>
20051
20052 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
20053 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
20054 uses inside of order(concurrent) constructs.
20055 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
20056 OMP_CLAUSE_ORDER is seen.
20057 * omp-low.c (struct omp_context): Add order_concurrent member.
20058 (scan_sharing_clauses): Set ctx->order_concurrent if
20059 OMP_CLAUSE_ORDER is seen.
20060 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
20061 of simd order(concurrent). Diagnose constructs not allowed inside of
20062 for order(concurrent).
20063 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
20064 complaining about static double setjmp (double); or class static
20065 methods or non-global namespace setjmps.
20066 (omp_runtime_api_call): New function.
20067 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
20068 order(concurrent) loops.
20069
20070 2019-07-12 Martin Sebor <msebor@redhat.com>
20071
20072 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
20073 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
20074 * tree-vrp.c (vrp_prop::check_mem_ref): Use
20075 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
20076
20077 2019-07-12 Jan Hubicka <jh@suse.cz>
20078
20079 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
20080 (indirect_refs_may_alias_p): ... here.
20081 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
20082 mem refs in the access paths.
20083
20084 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
20085
20086 PR tree-optimization/89430
20087 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
20088 store elimination for local variable without address escape.
20089
20090 2019-07-12 Jeff Law <law@redhat.com>
20091
20092 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
20093 for the ".far" section.
20094
20095 2019-07-12 Richard Biener <rguenther@suse.de>
20096
20097 PR tree-optimization/91145
20098 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
20099 chain check.
20100
20101 2019-07-12 Alexandre Oliva <oliva@adacore.com>
20102
20103 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
20104 rather than this_state as the lowering context for the ELSE
20105 seq in a GIMPLE_EH_ELSE.
20106
20107 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20108
20109 * vector-builder.h (vector_builder::elt): Allow already-supplied
20110 elements to be read back before building is complete.
20111
20112 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20113
20114 PR rtl-optimization/91136
20115 * df-core.c (ACCESSING REFS): Fix typos in comment.
20116 * resource.c (mark_target_live_reg): Add artificial defs that occur at
20117 the beginning of the block to the initial set of live registers.
20118
20119 2019-07-12 Richard Biener <rguenther@suse.de>
20120
20121 * fold-const.h (get_array_ctor_element_at_index): Adjust.
20122 * fold-const.c (get_array_ctor_element_at_index): Add
20123 ctor_idx output parameter informing the caller where in
20124 the constructor the element was (not) found. Add early exit
20125 for when the ctor is sorted.
20126 * gimple-fold.c (fold_array_ctor_reference): Support constant
20127 folding across multiple array elements.
20128
20129 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20130
20131 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
20132 doesn't have location, set the current location to the function's end.
20133
20134 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20135
20136 * config/aarch64/aarch64.md (*compare_condjump<mode>)
20137 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
20138 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
20139 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
20140 * config/aarch64/aarch64-simd.md
20141 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
20142 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
20143 * config/aarch64/aarch64-sve.md
20144 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
20145 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
20146
20147 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20148
20149 * doc/md.texi: Document that @ patterns can have different
20150 numbers of operands.
20151 * genemit.c (handle_overloaded_gen): Handle this case.
20152 * genopinit.c (handle_overloaded_gen): Likewise.
20153 * gensupport.c (replace_operands_with_dups): Iterate over
20154 the new rtx's format rather than the old one's.
20155
20156 2019-07-12 Jakub Jelinek <jakub@redhat.com>
20157
20158 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
20159 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
20160 order clause entries.
20161 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
20162 * tree-pretty-print.c (dump_omp_clause): Likewise.
20163 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
20164 Likewise.
20165 * omp-low.c (scan_sharing_clauses): Likewise.
20166 * tree-nested.c (convert_nonlocal_omp_clauses,
20167 convert_local_omp_clauses): Likewise.
20168
20169 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
20170
20171 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
20172 fallthrough target of current basic block isn't the placed
20173 right next.
20174
20175 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
20176
20177 PR target/90980
20178 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
20179 (_mm512_storeu_epi64): Likewise.
20180 (_mm512_loadu_epi32): Likewise.
20181 (_mm512_storeu_epi32): Likewise.
20182 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
20183 (_mm_storeu_epi64): Likewise.
20184 (_mm256_storeu_epi32): Likewise.
20185 (_mm_storeu_epi32): Likewise.
20186
20187 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20188
20189 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
20190
20191 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20192
20193 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
20194 Handle Modula-2.
20195
20196 2019-07-11 Jakub Jelinek <jakub@redhat.com>
20197
20198 PR target/91124
20199 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
20200 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20201 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
20202 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
20203 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
20204 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
20205 define_insns.
20206 (ufix_truncv2dfv2si2<mask_name>): Change into ...
20207 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
20208 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
20209 define_insns.
20210 (sse2_cvttpd2dq<mask_name>): Change into ...
20211 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
20212 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
20213 (*sse2_cvtpd2dq<mask_name>): Change into ...
20214 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20215 Add "C" constraint to const0_operand.
20216 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
20217 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
20218 changes.
20219
20220 PR target/91124
20221 * config/i386/i386-builtin-types.def
20222 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
20223 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
20224 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
20225 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
20226 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
20227 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
20228 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
20229 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
20230 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
20231 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
20232 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
20233 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
20234 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
20235 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
20236 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
20237 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
20238 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
20239 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
20240 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
20241 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
20242 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
20243 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
20244 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
20245 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
20246 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
20247 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
20248 __builtin_ia32_vpdpbusd_v4si_maskz,
20249 __builtin_ia32_vpdpbusds_v16si_mask,
20250 __builtin_ia32_vpdpbusds_v16si_maskz,
20251 __builtin_ia32_vpdpbusds_v8si_mask,
20252 __builtin_ia32_vpdpbusds_v8si_maskz,
20253 __builtin_ia32_vpdpbusds_v4si_mask,
20254 __builtin_ia32_vpdpbusds_v4si_maskz,
20255 __builtin_ia32_vpdpwssd_v16si_mask,
20256 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
20257 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
20258 __builtin_ia32_vpdpwssd_v4si_maskz,
20259 __builtin_ia32_vpdpwssds_v16si_mask,
20260 __builtin_ia32_vpdpwssds_v16si_maskz,
20261 __builtin_ia32_vpdpwssds_v8si_mask,
20262 __builtin_ia32_vpdpwssds_v8si_maskz,
20263 __builtin_ia32_vpdpwssds_v4si_mask,
20264 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
20265 suffixed types rather than *_INT.
20266 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
20267 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
20268 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
20269 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
20270 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
20271 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
20272
20273 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
20274
20275 * tree-vrp.c (intersect_ranges): If we know the intersection is
20276 empty, there is no need to conservatively add anything else to
20277 the set.
20278
20279 2019-07-11 Richard Biener <rguenther@suse.de>
20280
20281 PR middle-end/91131
20282 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
20283 when the object is volatile and we have not cleared it even though
20284 there are no nonzero elements.
20285
20286 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
20287
20288 * config/rs6000/predicates.md (cint34_operand): Update
20289 SIGNED_34BIT_OFFSET_P call.
20290 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
20291 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
20292 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
20293 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
20294 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
20295 argument.
20296 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
20297 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
20298 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
20299 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
20300 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
20301
20302 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
20303
20304 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
20305 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
20306 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
20307 (DEF_MIN_OSX_VERSION): New.
20308
20309 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20310
20311 * fold-const.c (fold_relational_const): Fix folding of
20312 vector-to-scalar NE_EXPRs.
20313 (test_vector_folding): Add more tests.
20314
20315 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20316
20317 PR target/91060
20318 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
20319 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
20320 (vec_setv2di_internal): Reexpress as...
20321 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
20322 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
20323 rather than gen_neon_vset_lane<mode>.
20324
20325 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
20326
20327 PR target/91102
20328 * lra-constraints.c (process_alt_operands): Don't match user
20329 defined regs only if they are early clobbers.
20330
20331 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
20332
20333 * wide-int.h (wi::lshift): Reject negative values for the fast path.
20334
20335 2019-07-10 Richard Biener <rguenther@suse.de>
20336
20337 PR tree-optimization/91126
20338 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
20339 native encoding offset for BYTES_BIG_ENDIAN.
20340 (vn_reference_lookup_3): Likewise.
20341
20342 2019-07-10 Richard Biener <rguenther@suse.de>
20343
20344 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
20345 LHS whenever possible.
20346
20347 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
20348
20349 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
20350 from ...; work also on duplicated types.
20351 (nonoverlapping_component_refs_since_match): ... here
20352 (ncr_type_uid): Break out from ...
20353 (ncr_compar): ... here; look for TYPE_UID of canonical type if
20354 available.
20355 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
20356 the types and nonoverlapping_component_refs_p_1 to disambiguate.
20357
20358 2019-07-09 Martin Sebor <msebor@redhat.com>
20359
20360 PR tree-optimization/90989
20361 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
20362 optimization to just single character stores.
20363
20364 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
20365
20366 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
20367 Swap operands only once.
20368
20369 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
20370
20371 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
20372 for both call instructions.
20373
20374 2019-07-09 John Darrington <john@darrington.wattle.id.au>
20375
20376 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
20377 rather than GET_MODE_BITSIZE to better handle partial integer modes.
20378
20379 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
20380
20381 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
20382 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
20383 function from rs6000-logue.c back to rs6000.c.
20384 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
20385
20386 2019-07-09 Martin Sebor <msebor@redhat.com>
20387
20388 PR c++/61339
20389 * auto-profile.c: Change class-key of PODs to struct and others
20390 to class.
20391 * basic-block.h: Same.
20392 * bitmap.c (bitmap_alloc): Same.
20393 * bitmap.h: Same.
20394 * builtins.c (expand_builtin_prefetch): Same.
20395 (expand_builtin_interclass_mathfn): Same.
20396 (expand_builtin_strlen): Same.
20397 (expand_builtin_mempcpy_args): Same.
20398 (expand_cmpstr): Same.
20399 (expand_builtin___clear_cache): Same.
20400 (expand_ifn_atomic_bit_test_and): Same.
20401 (expand_builtin_thread_pointer): Same.
20402 (expand_builtin_set_thread_pointer): Same.
20403 * caller-save.c (setup_save_areas): Same.
20404 (replace_reg_with_saved_mem): Same.
20405 (insert_restore): Same.
20406 (insert_save): Same.
20407 (add_used_regs): Same.
20408 * cfg.c (get_bb_copy): Same.
20409 (set_loop_copy): Same.
20410 * cfg.h: Same.
20411 * cfganal.h: Same.
20412 * cfgexpand.c (alloc_stack_frame_space): Same.
20413 (add_stack_var): Same.
20414 (add_stack_var_conflict): Same.
20415 (add_scope_conflicts_1): Same.
20416 (update_alias_info_with_stack_vars): Same.
20417 (expand_used_vars): Same.
20418 * cfghooks.c (redirect_edge_and_branch_force): Same.
20419 (delete_basic_block): Same.
20420 (split_edge): Same.
20421 (make_forwarder_block): Same.
20422 (force_nonfallthru): Same.
20423 (duplicate_block): Same.
20424 (lv_flush_pending_stmts): Same.
20425 * cfghooks.h: Same.
20426 * cfgloop.c (flow_loops_cfg_dump): Same.
20427 (flow_loop_nested_p): Same.
20428 (superloop_at_depth): Same.
20429 (get_loop_latch_edges): Same.
20430 (flow_loop_dump): Same.
20431 (flow_loops_dump): Same.
20432 (flow_loops_free): Same.
20433 (flow_loop_nodes_find): Same.
20434 (establish_preds): Same.
20435 (flow_loop_tree_node_add): Same.
20436 (flow_loop_tree_node_remove): Same.
20437 (flow_loops_find): Same.
20438 (find_subloop_latch_edge_by_profile): Same.
20439 (find_subloop_latch_edge_by_ivs): Same.
20440 (mfb_redirect_edges_in_set): Same.
20441 (form_subloop): Same.
20442 (merge_latch_edges): Same.
20443 (disambiguate_multiple_latches): Same.
20444 (disambiguate_loops_with_multiple_latches): Same.
20445 (flow_bb_inside_loop_p): Same.
20446 (glb_enum_p): Same.
20447 (get_loop_body_with_size): Same.
20448 (get_loop_body): Same.
20449 (fill_sons_in_loop): Same.
20450 (get_loop_body_in_dom_order): Same.
20451 (get_loop_body_in_custom_order): Same.
20452 (release_recorded_exits): Same.
20453 (get_loop_exit_edges): Same.
20454 (num_loop_branches): Same.
20455 (remove_bb_from_loops): Same.
20456 (find_common_loop): Same.
20457 (delete_loop): Same.
20458 (cancel_loop): Same.
20459 (verify_loop_structure): Same.
20460 (loop_preheader_edge): Same.
20461 (loop_exit_edge_p): Same.
20462 (single_exit): Same.
20463 (loop_exits_to_bb_p): Same.
20464 (loop_exits_from_bb_p): Same.
20465 (get_loop_location): Same.
20466 (record_niter_bound): Same.
20467 (get_estimated_loop_iterations_int): Same.
20468 (max_stmt_executions_int): Same.
20469 (likely_max_stmt_executions_int): Same.
20470 (get_estimated_loop_iterations): Same.
20471 (get_max_loop_iterations): Same.
20472 (get_max_loop_iterations_int): Same.
20473 (get_likely_max_loop_iterations): Same.
20474 * cfgloop.h (simple_loop_desc): Same.
20475 (get_loop): Same.
20476 (loop_depth): Same.
20477 (loop_outer): Same.
20478 (loop_iterator::next): Same.
20479 (loop_outermost): Same.
20480 * cfgloopanal.c (mark_irreducible_loops): Same.
20481 (num_loop_insns): Same.
20482 (average_num_loop_insns): Same.
20483 (expected_loop_iterations_unbounded): Same.
20484 (expected_loop_iterations): Same.
20485 (mark_loop_exit_edges): Same.
20486 (single_likely_exit): Same.
20487 * cfgloopmanip.c (fix_bb_placement): Same.
20488 (fix_bb_placements): Same.
20489 (remove_path): Same.
20490 (place_new_loop): Same.
20491 (add_loop): Same.
20492 (scale_loop_frequencies): Same.
20493 (scale_loop_profile): Same.
20494 (create_empty_if_region_on_edge): Same.
20495 (create_empty_loop_on_edge): Same.
20496 (loopify): Same.
20497 (unloop): Same.
20498 (fix_loop_placements): Same.
20499 (copy_loop_info): Same.
20500 (duplicate_loop): Same.
20501 (duplicate_subloops): Same.
20502 (loop_redirect_edge): Same.
20503 (can_duplicate_loop_p): Same.
20504 (duplicate_loop_to_header_edge): Same.
20505 (mfb_keep_just): Same.
20506 (has_preds_from_loop): Same.
20507 (create_preheader): Same.
20508 (create_preheaders): Same.
20509 (lv_adjust_loop_entry_edge): Same.
20510 (loop_version): Same.
20511 * cfgloopmanip.h: Same.
20512 * cgraph.h: Same.
20513 * cgraphbuild.c: Same.
20514 * combine.c (make_extraction): Same.
20515 * config/i386/i386-features.c: Same.
20516 * config/i386/i386-features.h: Same.
20517 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20518 (ix86_emit_outlined_ms2sysv_restore): Same.
20519 (ix86_noce_conversion_profitable_p): Same.
20520 (ix86_init_cost): Same.
20521 (ix86_simd_clone_usable): Same.
20522 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20523 Wstruct-not-pod.
20524 * coretypes.h: Same.
20525 * data-streamer-in.c (string_for_index): Change class-key of PODs
20526 to struct and others to class.
20527 (streamer_read_indexed_string): Same.
20528 (streamer_read_string): Same.
20529 (bp_unpack_indexed_string): Same.
20530 (bp_unpack_string): Same.
20531 (streamer_read_uhwi): Same.
20532 (streamer_read_hwi): Same.
20533 (streamer_read_gcov_count): Same.
20534 (streamer_read_wide_int): Same.
20535 * data-streamer.h (streamer_write_bitpack): Same.
20536 (bp_unpack_value): Same.
20537 (streamer_write_char_stream): Same.
20538 (streamer_write_hwi_in_range): Same.
20539 (streamer_write_record_start): Same.
20540 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20541 (add_cross_iteration_register_deps): Same.
20542 (build_intra_loop_deps): Same.
20543 * df-core.c (df_analyze): Same.
20544 (loop_post_order_compute): Same.
20545 (loop_inverted_post_order_compute): Same.
20546 * df-problems.c (df_rd_alloc): Same.
20547 (df_rd_simulate_one_insn): Same.
20548 (df_rd_local_compute): Same.
20549 (df_rd_init_solution): Same.
20550 (df_rd_confluence_n): Same.
20551 (df_rd_transfer_function): Same.
20552 (df_rd_free): Same.
20553 (df_rd_dump_defs_set): Same.
20554 (df_rd_top_dump): Same.
20555 (df_lr_alloc): Same.
20556 (df_lr_reset): Same.
20557 (df_lr_local_compute): Same.
20558 (df_lr_init): Same.
20559 (df_lr_confluence_n): Same.
20560 (df_lr_free): Same.
20561 (df_lr_top_dump): Same.
20562 (df_lr_verify_transfer_functions): Same.
20563 (df_live_alloc): Same.
20564 (df_live_reset): Same.
20565 (df_live_init): Same.
20566 (df_live_confluence_n): Same.
20567 (df_live_finalize): Same.
20568 (df_live_free): Same.
20569 (df_live_top_dump): Same.
20570 (df_live_verify_transfer_functions): Same.
20571 (df_mir_alloc): Same.
20572 (df_mir_reset): Same.
20573 (df_mir_init): Same.
20574 (df_mir_confluence_n): Same.
20575 (df_mir_free): Same.
20576 (df_mir_top_dump): Same.
20577 (df_word_lr_alloc): Same.
20578 (df_word_lr_reset): Same.
20579 (df_word_lr_init): Same.
20580 (df_word_lr_confluence_n): Same.
20581 (df_word_lr_free): Same.
20582 (df_word_lr_top_dump): Same.
20583 (df_md_alloc): Same.
20584 (df_md_simulate_one_insn): Same.
20585 (df_md_reset): Same.
20586 (df_md_init): Same.
20587 (df_md_free): Same.
20588 (df_md_top_dump): Same.
20589 * df-scan.c (df_insn_delete): Same.
20590 (df_insn_rescan): Same.
20591 (df_notes_rescan): Same.
20592 (df_sort_and_compress_mws): Same.
20593 (df_install_mws): Same.
20594 (df_refs_add_to_chains): Same.
20595 (df_ref_create_structure): Same.
20596 (df_ref_record): Same.
20597 (df_def_record_1): Same.
20598 (df_find_hard_reg_defs): Same.
20599 (df_uses_record): Same.
20600 (df_get_conditional_uses): Same.
20601 (df_get_call_refs): Same.
20602 (df_recompute_luids): Same.
20603 (df_get_entry_block_def_set): Same.
20604 (df_entry_block_defs_collect): Same.
20605 (df_get_exit_block_use_set): Same.
20606 (df_exit_block_uses_collect): Same.
20607 (df_mws_verify): Same.
20608 (df_bb_verify): Same.
20609 * df.h (df_scan_get_bb_info): Same.
20610 * doc/tm.texi: Same.
20611 * dse.c (record_store): Same.
20612 * dumpfile.h: Same.
20613 * emit-rtl.c (const_fixed_hasher::equal): Same.
20614 (set_mem_attributes_minus_bitpos): Same.
20615 (change_address): Same.
20616 (adjust_address_1): Same.
20617 (offset_address): Same.
20618 * emit-rtl.h: Same.
20619 * except.c (dw2_build_landing_pads): Same.
20620 (sjlj_emit_dispatch_table): Same.
20621 * explow.c (allocate_dynamic_stack_space): Same.
20622 (emit_stack_probe): Same.
20623 (probe_stack_range): Same.
20624 * expmed.c (store_bit_field_using_insv): Same.
20625 (store_bit_field_1): Same.
20626 (store_integral_bit_field): Same.
20627 (extract_bit_field_using_extv): Same.
20628 (extract_bit_field_1): Same.
20629 (emit_cstore): Same.
20630 * expr.c (emit_block_move_via_cpymem): Same.
20631 (expand_cmpstrn_or_cmpmem): Same.
20632 (set_storage_via_setmem): Same.
20633 (emit_single_push_insn_1): Same.
20634 (expand_assignment): Same.
20635 (store_constructor): Same.
20636 (expand_expr_real_2): Same.
20637 (expand_expr_real_1): Same.
20638 (try_casesi): Same.
20639 * flags.h: Same.
20640 * function.c (try_fit_stack_local): Same.
20641 (assign_stack_local_1): Same.
20642 (assign_stack_local): Same.
20643 (cut_slot_from_list): Same.
20644 (insert_slot_to_list): Same.
20645 (max_slot_level): Same.
20646 (move_slot_to_level): Same.
20647 (temp_address_hasher::equal): Same.
20648 (remove_unused_temp_slot_addresses): Same.
20649 (assign_temp): Same.
20650 (combine_temp_slots): Same.
20651 (update_temp_slot_address): Same.
20652 (preserve_temp_slots): Same.
20653 * function.h: Same.
20654 * fwprop.c: Same.
20655 * gcc-rich-location.h: Same.
20656 * gcov.c: Same.
20657 * genattrtab.c (check_attr_test): Same.
20658 (check_attr_value): Same.
20659 (convert_set_attr_alternative): Same.
20660 (convert_set_attr): Same.
20661 (check_defs): Same.
20662 (copy_boolean): Same.
20663 (get_attr_value): Same.
20664 (expand_delays): Same.
20665 (make_length_attrs): Same.
20666 (min_fn): Same.
20667 (make_alternative_compare): Same.
20668 (simplify_test_exp): Same.
20669 (tests_attr_p): Same.
20670 (get_attr_order): Same.
20671 (clear_struct_flag): Same.
20672 (gen_attr): Same.
20673 (compares_alternatives_p): Same.
20674 (gen_insn): Same.
20675 (gen_delay): Same.
20676 (find_attrs_to_cache): Same.
20677 (write_test_expr): Same.
20678 (walk_attr_value): Same.
20679 (write_attr_get): Same.
20680 (eliminate_known_true): Same.
20681 (write_insn_cases): Same.
20682 (write_attr_case): Same.
20683 (write_attr_valueq): Same.
20684 (write_attr_value): Same.
20685 (write_dummy_eligible_delay): Same.
20686 (next_comma_elt): Same.
20687 (find_attr): Same.
20688 (make_internal_attr): Same.
20689 (copy_rtx_unchanging): Same.
20690 (gen_insn_reserv): Same.
20691 (check_tune_attr): Same.
20692 (make_automaton_attrs): Same.
20693 (handle_arg): Same.
20694 * genextract.c (gen_insn): Same.
20695 (VEC_char_to_string): Same.
20696 * genmatch.c (print_operand): Same.
20697 (lower): Same.
20698 (parser::parse_operation): Same.
20699 (parser::parse_capture): Same.
20700 (parser::parse_c_expr): Same.
20701 (parser::parse_simplify): Same.
20702 (main): Same.
20703 * genoutput.c (output_operand_data): Same.
20704 (output_get_insn_name): Same.
20705 (compare_operands): Same.
20706 (place_operands): Same.
20707 (process_template): Same.
20708 (validate_insn_alternatives): Same.
20709 (validate_insn_operands): Same.
20710 (gen_expand): Same.
20711 (note_constraint): Same.
20712 * genpreds.c (write_one_predicate_function): Same.
20713 (add_constraint): Same.
20714 (process_define_register_constraint): Same.
20715 (write_lookup_constraint_1): Same.
20716 (write_lookup_constraint_array): Same.
20717 (write_insn_constraint_len): Same.
20718 (write_reg_class_for_constraint_1): Same.
20719 (write_constraint_satisfied_p_array): Same.
20720 * genrecog.c (optimize_subroutine_group): Same.
20721 * gensupport.c (process_define_predicate): Same.
20722 (queue_pattern): Same.
20723 (remove_from_queue): Same.
20724 (process_rtx): Same.
20725 (is_predicable): Same.
20726 (change_subst_attribute): Same.
20727 (subst_pattern_match): Same.
20728 (alter_constraints): Same.
20729 (alter_attrs_for_insn): Same.
20730 (shift_output_template): Same.
20731 (alter_output_for_subst_insn): Same.
20732 (process_one_cond_exec): Same.
20733 (subst_dup): Same.
20734 (process_define_cond_exec): Same.
20735 (mnemonic_htab_callback): Same.
20736 (gen_mnemonic_attr): Same.
20737 (read_md_rtx): Same.
20738 * ggc-page.c: Same.
20739 * gimple-loop-interchange.cc (dump_reduction): Same.
20740 (dump_induction): Same.
20741 (loop_cand::~loop_cand): Same.
20742 (free_data_refs_with_aux): Same.
20743 (tree_loop_interchange::interchange_loops): Same.
20744 (tree_loop_interchange::map_inductions_to_loop): Same.
20745 (tree_loop_interchange::move_code_to_inner_loop): Same.
20746 (compute_access_stride): Same.
20747 (compute_access_strides): Same.
20748 (proper_loop_form_for_interchange): Same.
20749 (tree_loop_interchange_compute_ddrs): Same.
20750 (prune_datarefs_not_in_loop): Same.
20751 (prepare_data_references): Same.
20752 (pass_linterchange::execute): Same.
20753 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20754 (unroll_jam_possible_p): Same.
20755 (fuse_loops): Same.
20756 (adjust_unroll_factor): Same.
20757 (tree_loop_unroll_and_jam): Same.
20758 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20759 (loop_versioning::expensive_stmt_p): Same.
20760 (loop_versioning::version_for_unity): Same.
20761 (loop_versioning::dump_inner_likelihood): Same.
20762 (loop_versioning::find_per_loop_multiplication): Same.
20763 (loop_versioning::analyze_term_using_scevs): Same.
20764 (loop_versioning::record_address_fragment): Same.
20765 (loop_versioning::analyze_expr): Same.
20766 (loop_versioning::analyze_blocks): Same.
20767 (loop_versioning::prune_conditions): Same.
20768 (loop_versioning::merge_loop_info): Same.
20769 (loop_versioning::add_loop_to_queue): Same.
20770 (loop_versioning::decide_whether_loop_is_versionable): Same.
20771 (loop_versioning::make_versioning_decisions): Same.
20772 (loop_versioning::implement_versioning_decisions): Same.
20773 * gimple-ssa-evrp-analyze.c
20774 (evrp_range_analyzer::record_ranges_from_phis): Same.
20775 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20776 (count_multiple_uses): Same.
20777 (split_group): Same.
20778 (imm_store_chain_info::output_merged_store): Same.
20779 (pass_store_merging::process_store): Same.
20780 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20781 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20782 (is_max): Same.
20783 (alloca_call_type): Same.
20784 (pass_walloca::execute): Same.
20785 * gimple-streamer-in.c (input_phi): Same.
20786 (input_gimple_stmt): Same.
20787 * gimple-streamer.h: Same.
20788 * godump.c (go_force_record_alignment): Same.
20789 (go_format_type): Same.
20790 (go_output_type): Same.
20791 (go_output_fndecl): Same.
20792 (go_output_typedef): Same.
20793 (keyword_hash_init): Same.
20794 (find_dummy_types): Same.
20795 * graph.c (draw_cfg_nodes_no_loops): Same.
20796 (draw_cfg_nodes_for_loop): Same.
20797 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20798 * hsa-brig.c: Same.
20799 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20800 * hsa-dump.c (dump_hsa_cfun): Same.
20801 * hsa-gen.c (gen_function_def_parameters): Same.
20802 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20803 * input.c (dump_line_table_statistics): Same.
20804 (test_lexer): Same.
20805 * input.h: Same.
20806 * internal-fn.c (get_multi_vector_move): Same.
20807 (expand_load_lanes_optab_fn): Same.
20808 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20809 (expand_GOMP_SIMT_EXIT): Same.
20810 (expand_GOMP_SIMT_LAST_LANE): Same.
20811 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20812 (expand_GOMP_SIMT_VOTE_ANY): Same.
20813 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20814 (expand_GOMP_SIMT_XCHG_IDX): Same.
20815 (expand_addsub_overflow): Same.
20816 (expand_neg_overflow): Same.
20817 (expand_mul_overflow): Same.
20818 (expand_call_mem_ref): Same.
20819 (expand_mask_load_optab_fn): Same.
20820 (expand_scatter_store_optab_fn): Same.
20821 (expand_gather_load_optab_fn): Same.
20822 * ipa-cp.c (ipa_get_parm_lattices): Same.
20823 (print_all_lattices): Same.
20824 (ignore_edge_p): Same.
20825 (build_toporder_info): Same.
20826 (free_toporder_info): Same.
20827 (push_node_to_stack): Same.
20828 (ipcp_lattice<valtype>::set_contains_variable): Same.
20829 (set_agg_lats_to_bottom): Same.
20830 (ipcp_bits_lattice::meet_with): Same.
20831 (set_single_call_flag): Same.
20832 (initialize_node_lattices): Same.
20833 (ipa_get_jf_ancestor_result): Same.
20834 (ipcp_verify_propagated_values): Same.
20835 (propagate_scalar_across_jump_function): Same.
20836 (propagate_context_across_jump_function): Same.
20837 (propagate_bits_across_jump_function): Same.
20838 (ipa_vr_operation_and_type_effects): Same.
20839 (propagate_vr_across_jump_function): Same.
20840 (set_check_aggs_by_ref): Same.
20841 (set_chain_of_aglats_contains_variable): Same.
20842 (merge_aggregate_lattices): Same.
20843 (agg_pass_through_permissible_p): Same.
20844 (propagate_aggs_across_jump_function): Same.
20845 (call_passes_through_thunk_p): Same.
20846 (propagate_constants_across_call): Same.
20847 (devirtualization_time_bonus): Same.
20848 (good_cloning_opportunity_p): Same.
20849 (context_independent_aggregate_values): Same.
20850 (gather_context_independent_values): Same.
20851 (perform_estimation_of_a_value): Same.
20852 (estimate_local_effects): Same.
20853 (value_topo_info<valtype>::add_val): Same.
20854 (add_all_node_vals_to_toposort): Same.
20855 (value_topo_info<valtype>::propagate_effects): Same.
20856 (ipcp_propagate_stage): Same.
20857 (ipcp_discover_new_direct_edges): Same.
20858 (same_node_or_its_all_contexts_clone_p): Same.
20859 (cgraph_edge_brings_value_p): Same.
20860 (gather_edges_for_value): Same.
20861 (create_specialized_node): Same.
20862 (find_more_scalar_values_for_callers_subset): Same.
20863 (find_more_contexts_for_caller_subset): Same.
20864 (copy_plats_to_inter): Same.
20865 (intersect_aggregates_with_edge): Same.
20866 (find_aggregate_values_for_callers_subset): Same.
20867 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20868 (decide_about_value): Same.
20869 (decide_whether_version_node): Same.
20870 (spread_undeadness): Same.
20871 (identify_dead_nodes): Same.
20872 (ipcp_store_vr_results): Same.
20873 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20874 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20875 (redirect_to_unreachable): Same.
20876 (edge_set_predicate): Same.
20877 (evaluate_conditions_for_known_args): Same.
20878 (evaluate_properties_for_edge): Same.
20879 (ipa_fn_summary_t::duplicate): Same.
20880 (ipa_call_summary_t::duplicate): Same.
20881 (dump_ipa_call_summary): Same.
20882 (ipa_dump_fn_summary): Same.
20883 (eliminated_by_inlining_prob): Same.
20884 (set_cond_stmt_execution_predicate): Same.
20885 (set_switch_stmt_execution_predicate): Same.
20886 (compute_bb_predicates): Same.
20887 (will_be_nonconstant_expr_predicate): Same.
20888 (phi_result_unknown_predicate): Same.
20889 (analyze_function_body): Same.
20890 (compute_fn_summary): Same.
20891 (estimate_edge_devirt_benefit): Same.
20892 (estimate_edge_size_and_time): Same.
20893 (estimate_calls_size_and_time): Same.
20894 (estimate_node_size_and_time): Same.
20895 (remap_edge_change_prob): Same.
20896 (remap_edge_summaries): Same.
20897 (ipa_merge_fn_summary_after_inlining): Same.
20898 (ipa_fn_summary_generate): Same.
20899 (inline_read_section): Same.
20900 (ipa_fn_summary_read): Same.
20901 (ipa_fn_summary_write): Same.
20902 * ipa-fnsummary.h: Same.
20903 * ipa-hsa.c (ipa_hsa_read_section): Same.
20904 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20905 * ipa-icf.c (sem_function::param_used_p): Same.
20906 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20907 * ipa-inline.c (edge_badness): Same.
20908 (inline_small_functions): Same.
20909 * ipa-polymorphic-call.c
20910 (ipa_polymorphic_call_context::stream_out): Same.
20911 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20912 (predicate::remap_after_inlining): Same.
20913 (predicate::stream_out): Same.
20914 * ipa-predicate.h: Same.
20915 * ipa-profile.c (ipa_profile_read_summary): Same.
20916 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20917 (count_formal_params): Same.
20918 (ipa_dump_param): Same.
20919 (ipa_alloc_node_params): Same.
20920 (ipa_print_node_jump_functions_for_edge): Same.
20921 (ipa_print_node_jump_functions): Same.
20922 (ipa_load_from_parm_agg): Same.
20923 (get_ancestor_addr_info): Same.
20924 (ipa_compute_jump_functions_for_edge): Same.
20925 (ipa_analyze_virtual_call_uses): Same.
20926 (ipa_analyze_stmt_uses): Same.
20927 (ipa_analyze_params_uses_in_bb): Same.
20928 (update_jump_functions_after_inlining): Same.
20929 (try_decrement_rdesc_refcount): Same.
20930 (ipa_impossible_devirt_target): Same.
20931 (update_indirect_edges_after_inlining): Same.
20932 (combine_controlled_uses_counters): Same.
20933 (ipa_edge_args_sum_t::duplicate): Same.
20934 (ipa_write_jump_function): Same.
20935 (ipa_write_indirect_edge_info): Same.
20936 (ipa_write_node_info): Same.
20937 (ipa_read_edge_info): Same.
20938 (ipa_prop_read_section): Same.
20939 (read_replacements_section): Same.
20940 * ipa-prop.h (ipa_get_param_count): Same.
20941 (ipa_get_param): Same.
20942 (ipa_get_type): Same.
20943 (ipa_get_param_move_cost): Same.
20944 (ipa_set_param_used): Same.
20945 (ipa_get_controlled_uses): Same.
20946 (ipa_set_controlled_uses): Same.
20947 (ipa_get_cs_argument_count): Same.
20948 * ipa-pure-const.c (analyze_function): Same.
20949 (pure_const_read_summary): Same.
20950 * ipa-ref.h: Same.
20951 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20952 * ipa-split.c (test_nonssa_use): Same.
20953 (dump_split_point): Same.
20954 (dominated_by_forbidden): Same.
20955 (split_part_set_ssa_name_p): Same.
20956 (find_split_points): Same.
20957 * ira-build.c (finish_loop_tree_nodes): Same.
20958 (low_pressure_loop_node_p): Same.
20959 * ira-color.c (ira_reuse_stack_slot): Same.
20960 * ira-int.h: Same.
20961 * ira.c (setup_reg_equiv): Same.
20962 (print_insn_chain): Same.
20963 (ira): Same.
20964 * loop-doloop.c (doloop_condition_get): Same.
20965 (add_test): Same.
20966 (record_reg_sets): Same.
20967 (doloop_optimize): Same.
20968 * loop-init.c (loop_optimizer_init): Same.
20969 (fix_loop_structure): Same.
20970 * loop-invariant.c (merge_identical_invariants): Same.
20971 (compute_always_reached): Same.
20972 (find_exits): Same.
20973 (may_assign_reg_p): Same.
20974 (find_invariants_bb): Same.
20975 (find_invariants_body): Same.
20976 (replace_uses): Same.
20977 (can_move_invariant_reg): Same.
20978 (free_inv_motion_data): Same.
20979 (move_single_loop_invariants): Same.
20980 (change_pressure): Same.
20981 (mark_ref_regs): Same.
20982 (calculate_loop_reg_pressure): Same.
20983 * loop-iv.c (biv_entry_hasher::equal): Same.
20984 (iv_extend_to_rtx_code): Same.
20985 (check_iv_ref_table_size): Same.
20986 (clear_iv_info): Same.
20987 (latch_dominating_def): Same.
20988 (iv_get_reaching_def): Same.
20989 (iv_constant): Same.
20990 (iv_subreg): Same.
20991 (iv_extend): Same.
20992 (iv_neg): Same.
20993 (iv_add): Same.
20994 (iv_mult): Same.
20995 (get_biv_step): Same.
20996 (record_iv): Same.
20997 (analyzed_for_bivness_p): Same.
20998 (record_biv): Same.
20999 (iv_analyze_biv): Same.
21000 (iv_analyze_expr): Same.
21001 (iv_analyze_def): Same.
21002 (iv_analyze_op): Same.
21003 (iv_analyze): Same.
21004 (iv_analyze_result): Same.
21005 (biv_p): Same.
21006 (eliminate_implied_conditions): Same.
21007 (simplify_using_initial_values): Same.
21008 (shorten_into_mode): Same.
21009 (canonicalize_iv_subregs): Same.
21010 (determine_max_iter): Same.
21011 (check_simple_exit): Same.
21012 (find_simple_exit): Same.
21013 (get_simple_loop_desc): Same.
21014 * loop-unroll.c (report_unroll): Same.
21015 (decide_unrolling): Same.
21016 (unroll_loops): Same.
21017 (loop_exit_at_end_p): Same.
21018 (decide_unroll_constant_iterations): Same.
21019 (unroll_loop_constant_iterations): Same.
21020 (compare_and_jump_seq): Same.
21021 (unroll_loop_runtime_iterations): Same.
21022 (decide_unroll_stupid): Same.
21023 (unroll_loop_stupid): Same.
21024 (referenced_in_one_insn_in_loop_p): Same.
21025 (reset_debug_uses_in_loop): Same.
21026 (analyze_iv_to_split_insn): Same.
21027 * lra-eliminations.c (lra_debug_elim_table): Same.
21028 (setup_can_eliminate): Same.
21029 (form_sum): Same.
21030 (lra_get_elimination_hard_regno): Same.
21031 (lra_eliminate_regs_1): Same.
21032 (eliminate_regs_in_insn): Same.
21033 (update_reg_eliminate): Same.
21034 (init_elimination): Same.
21035 (lra_eliminate): Same.
21036 * lra-int.h: Same.
21037 * lra-lives.c (initiate_live_solver): Same.
21038 * lra-remat.c (create_remat_bb_data): Same.
21039 * lra-spills.c (lra_spill): Same.
21040 * lra.c (lra_set_insn_recog_data): Same.
21041 (lra_set_used_insn_alternative_by_uid): Same.
21042 (init_reg_info): Same.
21043 (expand_reg_info): Same.
21044 * lto-cgraph.c (output_symtab): Same.
21045 (read_identifier): Same.
21046 (get_alias_symbol): Same.
21047 (input_node): Same.
21048 (input_varpool_node): Same.
21049 (input_ref): Same.
21050 (input_edge): Same.
21051 (input_cgraph_1): Same.
21052 (input_refs): Same.
21053 (input_symtab): Same.
21054 (input_offload_tables): Same.
21055 (output_cgraph_opt_summary): Same.
21056 (input_edge_opt_summary): Same.
21057 (input_cgraph_opt_section): Same.
21058 * lto-section-in.c (lto_free_raw_section_data): Same.
21059 (lto_create_simple_input_block): Same.
21060 (lto_free_function_in_decl_state_for_node): Same.
21061 * lto-streamer-in.c (lto_tag_check_set): Same.
21062 (lto_location_cache::revert_location_cache): Same.
21063 (lto_location_cache::input_location): Same.
21064 (lto_input_location): Same.
21065 (stream_input_location_now): Same.
21066 (lto_input_tree_ref): Same.
21067 (lto_input_eh_catch_list): Same.
21068 (input_eh_region): Same.
21069 (lto_init_eh): Same.
21070 (make_new_block): Same.
21071 (input_cfg): Same.
21072 (fixup_call_stmt_edges): Same.
21073 (input_struct_function_base): Same.
21074 (input_function): Same.
21075 (lto_read_body_or_constructor): Same.
21076 (lto_read_tree_1): Same.
21077 (lto_read_tree): Same.
21078 (lto_input_scc): Same.
21079 (lto_input_tree_1): Same.
21080 (lto_input_toplevel_asms): Same.
21081 (lto_input_mode_table): Same.
21082 (lto_reader_init): Same.
21083 (lto_data_in_create): Same.
21084 * lto-streamer-out.c (output_cfg): Same.
21085 * lto-streamer.h: Same.
21086 * modulo-sched.c (duplicate_insns_of_cycles): Same.
21087 (generate_prolog_epilog): Same.
21088 (mark_loop_unsched): Same.
21089 (dump_insn_location): Same.
21090 (loop_canon_p): Same.
21091 (sms_schedule): Same.
21092 * omp-expand.c (expand_omp_for_ordered_loops): Same.
21093 (expand_omp_for_generic): Same.
21094 (expand_omp_for_static_nochunk): Same.
21095 (expand_omp_for_static_chunk): Same.
21096 (expand_omp_simd): Same.
21097 (expand_omp_taskloop_for_inner): Same.
21098 (expand_oacc_for): Same.
21099 (expand_omp_atomic_pipeline): Same.
21100 (mark_loops_in_oacc_kernels_region): Same.
21101 * omp-offload.c (oacc_xform_loop): Same.
21102 * omp-simd-clone.c (simd_clone_adjust): Same.
21103 * optabs-query.c (get_traditional_extraction_insn): Same.
21104 * optabs.c (expand_vector_broadcast): Same.
21105 (expand_binop_directly): Same.
21106 (expand_twoval_unop): Same.
21107 (expand_twoval_binop): Same.
21108 (expand_unop_direct): Same.
21109 (emit_indirect_jump): Same.
21110 (emit_conditional_move): Same.
21111 (emit_conditional_neg_or_complement): Same.
21112 (emit_conditional_add): Same.
21113 (vector_compare_rtx): Same.
21114 (expand_vec_perm_1): Same.
21115 (expand_vec_perm_const): Same.
21116 (expand_vec_cond_expr): Same.
21117 (expand_vec_series_expr): Same.
21118 (maybe_emit_atomic_exchange): Same.
21119 (maybe_emit_sync_lock_test_and_set): Same.
21120 (expand_atomic_compare_and_swap): Same.
21121 (expand_atomic_load): Same.
21122 (expand_atomic_store): Same.
21123 (maybe_emit_op): Same.
21124 (valid_multiword_target_p): Same.
21125 (create_integer_operand): Same.
21126 (maybe_legitimize_operand_same_code): Same.
21127 (maybe_legitimize_operand): Same.
21128 (create_convert_operand_from_type): Same.
21129 (can_reuse_operands_p): Same.
21130 (maybe_legitimize_operands): Same.
21131 (maybe_gen_insn): Same.
21132 (maybe_expand_insn): Same.
21133 (maybe_expand_jump_insn): Same.
21134 (expand_insn): Same.
21135 * optabs.h (create_expand_operand): Same.
21136 (create_fixed_operand): Same.
21137 (create_output_operand): Same.
21138 (create_input_operand): Same.
21139 (create_convert_operand_to): Same.
21140 (create_convert_operand_from): Same.
21141 * optinfo.h: Same.
21142 * poly-int.h: Same.
21143 * predict.c (optimize_insn_for_speed_p): Same.
21144 (optimize_loop_for_size_p): Same.
21145 (optimize_loop_for_speed_p): Same.
21146 (optimize_loop_nest_for_speed_p): Same.
21147 (get_base_value): Same.
21148 (predicted_by_loop_heuristics_p): Same.
21149 (predict_extra_loop_exits): Same.
21150 (predict_loops): Same.
21151 (predict_paths_for_bb): Same.
21152 (predict_paths_leading_to): Same.
21153 (propagate_freq): Same.
21154 (pass_profile::execute): Same.
21155 * predict.h: Same.
21156 * profile-count.c (profile_count::differs_from_p): Same.
21157 (profile_probability::differs_lot_from_p): Same.
21158 * profile-count.h: Same.
21159 * profile.c (branch_prob): Same.
21160 * regrename.c (free_chain_data): Same.
21161 (mark_conflict): Same.
21162 (create_new_chain): Same.
21163 (merge_overlapping_regs): Same.
21164 (init_rename_info): Same.
21165 (merge_chains): Same.
21166 (regrename_analyze): Same.
21167 (regrename_do_replace): Same.
21168 (scan_rtx_reg): Same.
21169 (record_out_operands): Same.
21170 (build_def_use): Same.
21171 * regrename.h: Same.
21172 * reload.h: Same.
21173 * reload1.c (init_reload): Same.
21174 (maybe_fix_stack_asms): Same.
21175 (copy_reloads): Same.
21176 (count_pseudo): Same.
21177 (count_spilled_pseudo): Same.
21178 (find_reg): Same.
21179 (find_reload_regs): Same.
21180 (select_reload_regs): Same.
21181 (spill_hard_reg): Same.
21182 (fixup_eh_region_note): Same.
21183 (set_reload_reg): Same.
21184 (allocate_reload_reg): Same.
21185 (compute_reload_subreg_offset): Same.
21186 (reload_adjust_reg_for_icode): Same.
21187 (emit_input_reload_insns): Same.
21188 (emit_output_reload_insns): Same.
21189 (do_input_reload): Same.
21190 (inherit_piecemeal_p): Same.
21191 * rtl.h: Same.
21192 * sanopt.c (maybe_get_dominating_check): Same.
21193 (maybe_optimize_ubsan_ptr_ifn): Same.
21194 (can_remove_asan_check): Same.
21195 (maybe_optimize_asan_check_ifn): Same.
21196 (sanopt_optimize_walker): Same.
21197 * sched-deps.c (add_dependence_list): Same.
21198 (chain_to_prev_insn): Same.
21199 (add_insn_mem_dependence): Same.
21200 (create_insn_reg_set): Same.
21201 (maybe_extend_reg_info_p): Same.
21202 (sched_analyze_reg): Same.
21203 (sched_analyze_1): Same.
21204 (get_implicit_reg_pending_clobbers): Same.
21205 (chain_to_prev_insn_p): Same.
21206 (deps_analyze_insn): Same.
21207 (deps_start_bb): Same.
21208 (sched_free_deps): Same.
21209 (init_deps): Same.
21210 (init_deps_reg_last): Same.
21211 (free_deps): Same.
21212 * sched-ebb.c: Same.
21213 * sched-int.h: Same.
21214 * sched-rgn.c (add_branch_dependences): Same.
21215 (concat_insn_mem_list): Same.
21216 (deps_join): Same.
21217 (sched_rgn_compute_dependencies): Same.
21218 * sel-sched-ir.c (reset_target_context): Same.
21219 (copy_deps_context): Same.
21220 (init_id_from_df): Same.
21221 (has_dependence_p): Same.
21222 (change_loops_latches): Same.
21223 (bb_top_order_comparator): Same.
21224 (make_region_from_loop_preheader): Same.
21225 (sel_init_pipelining): Same.
21226 (get_loop_nest_for_rgn): Same.
21227 (make_regions_from_the_rest): Same.
21228 (sel_is_loop_preheader_p): Same.
21229 * sel-sched-ir.h (inner_loop_header_p): Same.
21230 (get_all_loop_exits): Same.
21231 * selftest.h: Same.
21232 * sese.c (sese_build_liveouts): Same.
21233 (sese_insert_phis_for_liveouts): Same.
21234 * sese.h (defined_in_sese_p): Same.
21235 * sreal.c (sreal::stream_out): Same.
21236 * sreal.h: Same.
21237 * streamer-hooks.h: Same.
21238 * target-globals.c (save_target_globals): Same.
21239 * target-globals.h: Same.
21240 * target.def: Same.
21241 * target.h: Same.
21242 * targhooks.c (default_has_ifunc_p): Same.
21243 (default_empty_mask_is_expensive): Same.
21244 (default_init_cost): Same.
21245 * targhooks.h: Same.
21246 * toplev.c: Same.
21247 * tree-affine.c (aff_combination_mult): Same.
21248 (aff_combination_expand): Same.
21249 (aff_combination_constant_multiple_p): Same.
21250 * tree-affine.h: Same.
21251 * tree-cfg.c (build_gimple_cfg): Same.
21252 (replace_loop_annotate_in_block): Same.
21253 (replace_uses_by): Same.
21254 (remove_bb): Same.
21255 (dump_cfg_stats): Same.
21256 (gimple_duplicate_sese_region): Same.
21257 (gimple_duplicate_sese_tail): Same.
21258 (move_block_to_fn): Same.
21259 (replace_block_vars_by_duplicates): Same.
21260 (move_sese_region_to_fn): Same.
21261 (print_loops_bb): Same.
21262 (print_loop): Same.
21263 (print_loops): Same.
21264 (debug): Same.
21265 (debug_loops): Same.
21266 * tree-cfg.h: Same.
21267 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
21268 (chrec_fold_multiply_poly_poly): Same.
21269 (chrec_evaluate): Same.
21270 (chrec_component_in_loop_num): Same.
21271 (reset_evolution_in_loop): Same.
21272 (is_multivariate_chrec): Same.
21273 (chrec_contains_symbols): Same.
21274 (nb_vars_in_chrec): Same.
21275 (chrec_convert_1): Same.
21276 (chrec_convert_aggressive): Same.
21277 * tree-chrec.h: Same.
21278 * tree-core.h: Same.
21279 * tree-data-ref.c (dump_data_dependence_relation): Same.
21280 (canonicalize_base_object_address): Same.
21281 (data_ref_compare_tree): Same.
21282 (prune_runtime_alias_test_list): Same.
21283 (get_segment_min_max): Same.
21284 (create_intersect_range_checks): Same.
21285 (conflict_fn_no_dependence): Same.
21286 (object_address_invariant_in_loop_p): Same.
21287 (analyze_ziv_subscript): Same.
21288 (analyze_siv_subscript_cst_affine): Same.
21289 (analyze_miv_subscript): Same.
21290 (analyze_overlapping_iterations): Same.
21291 (build_classic_dist_vector_1): Same.
21292 (add_other_self_distances): Same.
21293 (same_access_functions): Same.
21294 (build_classic_dir_vector): Same.
21295 (subscript_dependence_tester_1): Same.
21296 (subscript_dependence_tester): Same.
21297 (access_functions_are_affine_or_constant_p): Same.
21298 (get_references_in_stmt): Same.
21299 (loop_nest_has_data_refs): Same.
21300 (graphite_find_data_references_in_stmt): Same.
21301 (find_data_references_in_bb): Same.
21302 (get_base_for_alignment): Same.
21303 (find_loop_nest_1): Same.
21304 (find_loop_nest): Same.
21305 * tree-data-ref.h (dr_alignment): Same.
21306 (ddr_dependence_level): Same.
21307 * tree-if-conv.c (fold_build_cond_expr): Same.
21308 (add_to_predicate_list): Same.
21309 (add_to_dst_predicate_list): Same.
21310 (phi_convertible_by_degenerating_args): Same.
21311 (idx_within_array_bound): Same.
21312 (all_preds_critical_p): Same.
21313 (pred_blocks_visited_p): Same.
21314 (predicate_bbs): Same.
21315 (build_region): Same.
21316 (if_convertible_loop_p_1): Same.
21317 (is_cond_scalar_reduction): Same.
21318 (predicate_scalar_phi): Same.
21319 (remove_conditions_and_labels): Same.
21320 (combine_blocks): Same.
21321 (version_loop_for_if_conversion): Same.
21322 (versionable_outer_loop_p): Same.
21323 (ifcvt_local_dce): Same.
21324 (tree_if_conversion): Same.
21325 (pass_if_conversion::gate): Same.
21326 * tree-if-conv.h: Same.
21327 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
21328 * tree-loop-distribution.c (bb_top_order_cmp): Same.
21329 (free_rdg): Same.
21330 (stmt_has_scalar_dependences_outside_loop): Same.
21331 (copy_loop_before): Same.
21332 (create_bb_after_loop): Same.
21333 (const_with_all_bytes_same): Same.
21334 (generate_memset_builtin): Same.
21335 (generate_memcpy_builtin): Same.
21336 (destroy_loop): Same.
21337 (build_rdg_partition_for_vertex): Same.
21338 (compute_access_range): Same.
21339 (data_ref_segment_size): Same.
21340 (latch_dominated_by_data_ref): Same.
21341 (compute_alias_check_pairs): Same.
21342 (fuse_memset_builtins): Same.
21343 (finalize_partitions): Same.
21344 (find_seed_stmts_for_distribution): Same.
21345 (prepare_perfect_loop_nest): Same.
21346 * tree-parloops.c (lambda_transform_legal_p): Same.
21347 (loop_parallel_p): Same.
21348 (reduc_stmt_res): Same.
21349 (add_field_for_name): Same.
21350 (create_call_for_reduction_1): Same.
21351 (replace_uses_in_bb_by): Same.
21352 (transform_to_exit_first_loop_alt): Same.
21353 (try_transform_to_exit_first_loop_alt): Same.
21354 (transform_to_exit_first_loop): Same.
21355 (num_phis): Same.
21356 (gen_parallel_loop): Same.
21357 (gather_scalar_reductions): Same.
21358 (get_omp_data_i_param): Same.
21359 (try_create_reduction_list): Same.
21360 (oacc_entry_exit_single_gang): Same.
21361 (parallelize_loops): Same.
21362 * tree-pass.h: Same.
21363 * tree-predcom.c (determine_offset): Same.
21364 (last_always_executed_block): Same.
21365 (split_data_refs_to_components): Same.
21366 (suitable_component_p): Same.
21367 (valid_initializer_p): Same.
21368 (find_looparound_phi): Same.
21369 (insert_looparound_copy): Same.
21370 (add_looparound_copies): Same.
21371 (determine_roots_comp): Same.
21372 (predcom_tmp_var): Same.
21373 (initialize_root_vars): Same.
21374 (initialize_root_vars_store_elim_1): Same.
21375 (initialize_root_vars_store_elim_2): Same.
21376 (finalize_eliminated_stores): Same.
21377 (initialize_root_vars_lm): Same.
21378 (remove_stmt): Same.
21379 (determine_unroll_factor): Same.
21380 (execute_pred_commoning_cbck): Same.
21381 (base_names_in_chain_on): Same.
21382 (combine_chains): Same.
21383 (pcom_stmt_dominates_stmt_p): Same.
21384 (try_combine_chains): Same.
21385 (prepare_initializers_chain_store_elim): Same.
21386 (prepare_initializers_chain): Same.
21387 (prepare_initializers): Same.
21388 (prepare_finalizers_chain): Same.
21389 (prepare_finalizers): Same.
21390 (insert_init_seqs): Same.
21391 * tree-scalar-evolution.c (loop_phi_node_p): Same.
21392 (compute_overall_effect_of_inner_loop): Same.
21393 (add_to_evolution_1): Same.
21394 (add_to_evolution): Same.
21395 (follow_ssa_edge_binary): Same.
21396 (follow_ssa_edge_expr): Same.
21397 (backedge_phi_arg_p): Same.
21398 (follow_ssa_edge_in_condition_phi_branch): Same.
21399 (follow_ssa_edge_in_condition_phi): Same.
21400 (follow_ssa_edge_inner_loop_phi): Same.
21401 (follow_ssa_edge): Same.
21402 (analyze_evolution_in_loop): Same.
21403 (analyze_initial_condition): Same.
21404 (interpret_loop_phi): Same.
21405 (interpret_condition_phi): Same.
21406 (interpret_rhs_expr): Same.
21407 (interpret_expr): Same.
21408 (interpret_gimple_assign): Same.
21409 (analyze_scalar_evolution_1): Same.
21410 (analyze_scalar_evolution): Same.
21411 (analyze_scalar_evolution_for_address_of): Same.
21412 (get_instantiated_value_entry): Same.
21413 (loop_closed_phi_def): Same.
21414 (instantiate_scev_name): Same.
21415 (instantiate_scev_poly): Same.
21416 (instantiate_scev_binary): Same.
21417 (instantiate_scev_convert): Same.
21418 (instantiate_scev_not): Same.
21419 (instantiate_scev_r): Same.
21420 (instantiate_scev): Same.
21421 (resolve_mixers): Same.
21422 (initialize_scalar_evolutions_analyzer): Same.
21423 (scev_reset_htab): Same.
21424 (scev_reset): Same.
21425 (derive_simple_iv_with_niters): Same.
21426 (simple_iv_with_niters): Same.
21427 (expression_expensive_p): Same.
21428 (final_value_replacement_loop): Same.
21429 * tree-scalar-evolution.h (block_before_loop): Same.
21430 * tree-ssa-address.h: Same.
21431 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
21432 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
21433 (record_edge_info): Same.
21434 * tree-ssa-live.c (var_map_base_fini): Same.
21435 (remove_unused_locals): Same.
21436 * tree-ssa-live.h: Same.
21437 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
21438 (pass_ch_vect::execute): Same.
21439 (pass_ch::process_loop_p): Same.
21440 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21441 (movement_possibility): Same.
21442 (outermost_invariant_loop): Same.
21443 (stmt_cost): Same.
21444 (determine_max_movement): Same.
21445 (invariantness_dom_walker::before_dom_children): Same.
21446 (move_computations): Same.
21447 (may_move_till): Same.
21448 (force_move_till_op): Same.
21449 (force_move_till): Same.
21450 (memref_free): Same.
21451 (record_mem_ref_loc): Same.
21452 (set_ref_stored_in_loop): Same.
21453 (mark_ref_stored): Same.
21454 (sort_bbs_in_loop_postorder_cmp): Same.
21455 (sort_locs_in_loop_postorder_cmp): Same.
21456 (analyze_memory_references): Same.
21457 (mem_refs_may_alias_p): Same.
21458 (find_ref_loc_in_loop_cmp): Same.
21459 (rewrite_mem_ref_loc::operator): Same.
21460 (first_mem_ref_loc_1::operator): Same.
21461 (sm_set_flag_if_changed::operator): Same.
21462 (execute_sm_if_changed_flag_set): Same.
21463 (execute_sm): Same.
21464 (hoist_memory_references): Same.
21465 (ref_always_accessed::operator): Same.
21466 (refs_independent_p): Same.
21467 (record_dep_loop): Same.
21468 (ref_indep_loop_p_1): Same.
21469 (ref_indep_loop_p): Same.
21470 (can_sm_ref_p): Same.
21471 (find_refs_for_sm): Same.
21472 (loop_suitable_for_sm): Same.
21473 (store_motion_loop): Same.
21474 (store_motion): Same.
21475 (fill_always_executed_in): Same.
21476 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21477 (estimated_unrolled_size): Same.
21478 (loop_edge_to_cancel): Same.
21479 (remove_exits_and_undefined_stmts): Same.
21480 (remove_redundant_iv_tests): Same.
21481 (unloop_loops): Same.
21482 (estimated_peeled_sequence_size): Same.
21483 (try_peel_loop): Same.
21484 (canonicalize_loop_induction_variables): Same.
21485 (canonicalize_induction_variables): Same.
21486 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21487 (name_info): Same.
21488 (stmt_after_inc_pos): Same.
21489 (contains_abnormal_ssa_name_p): Same.
21490 (niter_for_exit): Same.
21491 (find_bivs): Same.
21492 (mark_bivs): Same.
21493 (find_givs_in_bb): Same.
21494 (find_induction_variables): Same.
21495 (find_interesting_uses_cond): Same.
21496 (outermost_invariant_loop_for_expr): Same.
21497 (idx_find_step): Same.
21498 (add_candidate_1): Same.
21499 (add_iv_candidate_derived_from_uses): Same.
21500 (alloc_use_cost_map): Same.
21501 (prepare_decl_rtl): Same.
21502 (generic_predict_doloop_p): Same.
21503 (computation_cost): Same.
21504 (determine_common_wider_type): Same.
21505 (get_computation_aff_1): Same.
21506 (get_use_type): Same.
21507 (determine_group_iv_cost_address): Same.
21508 (iv_period): Same.
21509 (difference_cannot_overflow_p): Same.
21510 (may_eliminate_iv): Same.
21511 (determine_set_costs): Same.
21512 (cheaper_cost_pair): Same.
21513 (compare_cost_pair): Same.
21514 (iv_ca_cand_for_group): Same.
21515 (iv_ca_recount_cost): Same.
21516 (iv_ca_set_remove_invs): Same.
21517 (iv_ca_set_no_cp): Same.
21518 (iv_ca_set_add_invs): Same.
21519 (iv_ca_set_cp): Same.
21520 (iv_ca_add_group): Same.
21521 (iv_ca_cost): Same.
21522 (iv_ca_compare_deps): Same.
21523 (iv_ca_delta_reverse): Same.
21524 (iv_ca_delta_commit): Same.
21525 (iv_ca_cand_used_p): Same.
21526 (iv_ca_delta_free): Same.
21527 (iv_ca_new): Same.
21528 (iv_ca_free): Same.
21529 (iv_ca_dump): Same.
21530 (iv_ca_extend): Same.
21531 (iv_ca_narrow): Same.
21532 (iv_ca_prune): Same.
21533 (cheaper_cost_with_cand): Same.
21534 (iv_ca_replace): Same.
21535 (try_add_cand_for): Same.
21536 (get_initial_solution): Same.
21537 (try_improve_iv_set): Same.
21538 (find_optimal_iv_set_1): Same.
21539 (create_new_iv): Same.
21540 (rewrite_use_compare): Same.
21541 (remove_unused_ivs): Same.
21542 (determine_scaling_factor): Same.
21543 * tree-ssa-loop-ivopts.h: Same.
21544 * tree-ssa-loop-manip.c (create_iv): Same.
21545 (compute_live_loop_exits): Same.
21546 (add_exit_phi): Same.
21547 (add_exit_phis): Same.
21548 (find_uses_to_rename_use): Same.
21549 (find_uses_to_rename_def): Same.
21550 (find_uses_to_rename_in_loop): Same.
21551 (rewrite_into_loop_closed_ssa): Same.
21552 (check_loop_closed_ssa_bb): Same.
21553 (split_loop_exit_edge): Same.
21554 (ip_end_pos): Same.
21555 (ip_normal_pos): Same.
21556 (copy_phi_node_args): Same.
21557 (gimple_duplicate_loop_to_header_edge): Same.
21558 (can_unroll_loop_p): Same.
21559 (determine_exit_conditions): Same.
21560 (scale_dominated_blocks_in_loop): Same.
21561 (niter_for_unrolled_loop): Same.
21562 (tree_transform_and_unroll_loop): Same.
21563 (rewrite_all_phi_nodes_with_iv): Same.
21564 * tree-ssa-loop-manip.h: Same.
21565 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21566 (number_of_iterations_ne): Same.
21567 (assert_no_overflow_lt): Same.
21568 (assert_loop_rolls_lt): Same.
21569 (number_of_iterations_lt): Same.
21570 (adjust_cond_for_loop_until_wrap): Same.
21571 (tree_simplify_using_condition): Same.
21572 (simplify_using_initial_conditions): Same.
21573 (simplify_using_outer_evolutions): Same.
21574 (loop_only_exit_p): Same.
21575 (ssa_defined_by_minus_one_stmt_p): Same.
21576 (number_of_iterations_popcount): Same.
21577 (number_of_iterations_exit): Same.
21578 (find_loop_niter): Same.
21579 (finite_loop_p): Same.
21580 (chain_of_csts_start): Same.
21581 (get_val_for): Same.
21582 (loop_niter_by_eval): Same.
21583 (derive_constant_upper_bound_ops): Same.
21584 (do_warn_aggressive_loop_optimizations): Same.
21585 (record_estimate): Same.
21586 (get_cst_init_from_scev): Same.
21587 (record_nonwrapping_iv): Same.
21588 (idx_infer_loop_bounds): Same.
21589 (infer_loop_bounds_from_ref): Same.
21590 (infer_loop_bounds_from_array): Same.
21591 (infer_loop_bounds_from_pointer_arith): Same.
21592 (infer_loop_bounds_from_signedness): Same.
21593 (bound_index): Same.
21594 (discover_iteration_bound_by_body_walk): Same.
21595 (maybe_lower_iteration_bound): Same.
21596 (estimate_numbers_of_iterations): Same.
21597 (estimated_loop_iterations): Same.
21598 (estimated_loop_iterations_int): Same.
21599 (max_loop_iterations): Same.
21600 (max_loop_iterations_int): Same.
21601 (likely_max_loop_iterations): Same.
21602 (likely_max_loop_iterations_int): Same.
21603 (estimated_stmt_executions_int): Same.
21604 (max_stmt_executions): Same.
21605 (likely_max_stmt_executions): Same.
21606 (estimated_stmt_executions): Same.
21607 (stmt_dominates_stmt_p): Same.
21608 (nowrap_type_p): Same.
21609 (loop_exits_before_overflow): Same.
21610 (scev_var_range_cant_overflow): Same.
21611 (scev_probably_wraps_p): Same.
21612 (free_numbers_of_iterations_estimates): Same.
21613 * tree-ssa-loop-niter.h: Same.
21614 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21615 (idx_analyze_ref): Same.
21616 (analyze_ref): Same.
21617 (gather_memory_references_ref): Same.
21618 (mark_nontemporal_store): Same.
21619 (emit_mfence_after_loop): Same.
21620 (may_use_storent_in_loop_p): Same.
21621 (mark_nontemporal_stores): Same.
21622 (should_unroll_loop_p): Same.
21623 (volume_of_dist_vector): Same.
21624 (add_subscript_strides): Same.
21625 (self_reuse_distance): Same.
21626 (insn_to_prefetch_ratio_too_small_p): Same.
21627 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21628 (patch_loop_exit): Same.
21629 (find_or_create_guard_phi): Same.
21630 (easy_exit_values): Same.
21631 (connect_loop_phis): Same.
21632 (connect_loops): Same.
21633 (compute_new_first_bound): Same.
21634 (split_loop): Same.
21635 (tree_ssa_split_loops): Same.
21636 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21637 (is_maybe_undefined): Same.
21638 (tree_may_unswitch_on): Same.
21639 (simplify_using_entry_checks): Same.
21640 (tree_unswitch_single_loop): Same.
21641 (tree_unswitch_loop): Same.
21642 (tree_unswitch_outer_loop): Same.
21643 (empty_bb_without_guard_p): Same.
21644 (used_outside_loop_p): Same.
21645 (get_vop_from_header): Same.
21646 (hoist_guard): Same.
21647 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21648 (get_lsm_tmp_name): Same.
21649 * tree-ssa-loop.h: Same.
21650 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21651 (build_and_add_sum): Same.
21652 (no_side_effect_bb): Same.
21653 (get_ops): Same.
21654 (linearize_expr): Same.
21655 (should_break_up_subtract): Same.
21656 (linearize_expr_tree): Same.
21657 * tree-ssa-scopedtables.c: Same.
21658 * tree-ssa-scopedtables.h: Same.
21659 * tree-ssa-structalias.c (condense_visit): Same.
21660 (label_visit): Same.
21661 (dump_pred_graph): Same.
21662 (perform_var_substitution): Same.
21663 (move_complex_constraints): Same.
21664 (remove_preds_and_fake_succs): Same.
21665 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21666 (determine_bb_domination_status): Same.
21667 (duplicate_thread_path): Same.
21668 (thread_through_all_blocks): Same.
21669 * tree-ssa-threadupdate.h: Same.
21670 * tree-streamer-in.c (streamer_read_string_cst): Same.
21671 (input_identifier): Same.
21672 (unpack_ts_type_common_value_fields): Same.
21673 (unpack_ts_block_value_fields): Same.
21674 (unpack_ts_translation_unit_decl_value_fields): Same.
21675 (unpack_ts_omp_clause_value_fields): Same.
21676 (streamer_read_tree_bitfields): Same.
21677 (streamer_alloc_tree): Same.
21678 (lto_input_ts_common_tree_pointers): Same.
21679 (lto_input_ts_vector_tree_pointers): Same.
21680 (lto_input_ts_poly_tree_pointers): Same.
21681 (lto_input_ts_complex_tree_pointers): Same.
21682 (lto_input_ts_decl_minimal_tree_pointers): Same.
21683 (lto_input_ts_decl_common_tree_pointers): Same.
21684 (lto_input_ts_decl_non_common_tree_pointers): Same.
21685 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21686 (lto_input_ts_field_decl_tree_pointers): Same.
21687 (lto_input_ts_function_decl_tree_pointers): Same.
21688 (lto_input_ts_type_common_tree_pointers): Same.
21689 (lto_input_ts_type_non_common_tree_pointers): Same.
21690 (lto_input_ts_list_tree_pointers): Same.
21691 (lto_input_ts_vec_tree_pointers): Same.
21692 (lto_input_ts_exp_tree_pointers): Same.
21693 (lto_input_ts_block_tree_pointers): Same.
21694 (lto_input_ts_binfo_tree_pointers): Same.
21695 (lto_input_ts_constructor_tree_pointers): Same.
21696 (lto_input_ts_omp_clause_tree_pointers): Same.
21697 (streamer_read_tree_body): Same.
21698 * tree-streamer.h: Same.
21699 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21700 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21701 (vect_analyze_possibly_independent_ddr): Same.
21702 (vect_analyze_data_ref_dependence): Same.
21703 (vect_compute_data_ref_alignment): Same.
21704 (vect_enhance_data_refs_alignment): Same.
21705 (vect_analyze_data_ref_access): Same.
21706 (vect_check_gather_scatter): Same.
21707 (vect_find_stmt_data_reference): Same.
21708 (vect_create_addr_base_for_vector_ref): Same.
21709 (vect_setup_realignment): Same.
21710 (vect_supportable_dr_alignment): Same.
21711 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21712 (adjust_phi_and_debug_stmts): Same.
21713 (vect_set_loop_mask): Same.
21714 (add_preheader_seq): Same.
21715 (vect_maybe_permute_loop_masks): Same.
21716 (vect_set_loop_masks_directly): Same.
21717 (vect_set_loop_condition_masked): Same.
21718 (vect_set_loop_condition_unmasked): Same.
21719 (slpeel_duplicate_current_defs_from_edges): Same.
21720 (slpeel_add_loop_guard): Same.
21721 (slpeel_can_duplicate_loop_p): Same.
21722 (create_lcssa_for_virtual_phi): Same.
21723 (iv_phi_p): Same.
21724 (vect_update_ivs_after_vectorizer): Same.
21725 (vect_gen_vector_loop_niters_mult_vf): Same.
21726 (slpeel_update_phi_nodes_for_loops): Same.
21727 (slpeel_update_phi_nodes_for_guard1): Same.
21728 (find_guard_arg): Same.
21729 (slpeel_update_phi_nodes_for_guard2): Same.
21730 (slpeel_update_phi_nodes_for_lcssa): Same.
21731 (vect_do_peeling): Same.
21732 (vect_create_cond_for_alias_checks): Same.
21733 (vect_loop_versioning): Same.
21734 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21735 (vect_inner_phi_in_double_reduction_p): Same.
21736 (vect_analyze_scalar_cycles_1): Same.
21737 (vect_fixup_scalar_cycles_with_patterns): Same.
21738 (vect_get_loop_niters): Same.
21739 (bb_in_loop_p): Same.
21740 (vect_get_max_nscalars_per_iter): Same.
21741 (vect_verify_full_masking): Same.
21742 (vect_compute_single_scalar_iteration_cost): Same.
21743 (vect_analyze_loop_form_1): Same.
21744 (vect_analyze_loop_form): Same.
21745 (vect_active_double_reduction_p): Same.
21746 (vect_analyze_loop_operations): Same.
21747 (neutral_op_for_slp_reduction): Same.
21748 (vect_is_simple_reduction): Same.
21749 (vect_model_reduction_cost): Same.
21750 (get_initial_def_for_reduction): Same.
21751 (get_initial_defs_for_reduction): Same.
21752 (vect_create_epilog_for_reduction): Same.
21753 (vectorize_fold_left_reduction): Same.
21754 (vectorizable_reduction): Same.
21755 (vectorizable_induction): Same.
21756 (vectorizable_live_operation): Same.
21757 (loop_niters_no_overflow): Same.
21758 (vect_get_loop_mask): Same.
21759 (vect_transform_loop_stmt): Same.
21760 (vect_transform_loop): Same.
21761 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21762 (vect_determine_precisions): Same.
21763 (vect_pattern_recog_1): Same.
21764 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21765 * tree-vect-stmts.c (stmt_vectype): Same.
21766 (process_use): Same.
21767 (vect_init_vector_1): Same.
21768 (vect_truncate_gather_scatter_offset): Same.
21769 (get_group_load_store_type): Same.
21770 (vect_build_gather_load_calls): Same.
21771 (vect_get_strided_load_store_ops): Same.
21772 (vectorizable_simd_clone_call): Same.
21773 (vectorizable_store): Same.
21774 (permute_vec_elements): Same.
21775 (vectorizable_load): Same.
21776 (vect_transform_stmt): Same.
21777 (supportable_widening_operation): Same.
21778 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21779 (vec_info::free_stmt_vec_info): Same.
21780 (vect_free_loop_info_assumptions): Same.
21781 (vect_loop_vectorized_call): Same.
21782 (set_uid_loop_bbs): Same.
21783 (vectorize_loops): Same.
21784 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21785 * tree.c (add_tree_to_fld_list): Same.
21786 (fld_type_variant_equal_p): Same.
21787 (fld_decl_context): Same.
21788 (fld_incomplete_type_of): Same.
21789 (free_lang_data_in_binfo): Same.
21790 (need_assembler_name_p): Same.
21791 (find_decls_types_r): Same.
21792 (get_eh_types_for_runtime): Same.
21793 (find_decls_types_in_eh_region): Same.
21794 (find_decls_types_in_node): Same.
21795 (assign_assembler_name_if_needed): Same.
21796 * value-prof.c (stream_out_histogram_value): Same.
21797 * value-prof.h: Same.
21798 * var-tracking.c (use_narrower_mode): Same.
21799 (prepare_call_arguments): Same.
21800 (vt_expand_loc_callback): Same.
21801 (resolve_expansions_pending_recursion): Same.
21802 (vt_expand_loc): Same.
21803 * varasm.c (const_hash_1): Same.
21804 (compare_constant): Same.
21805 (tree_output_constant_def): Same.
21806 (simplify_subtraction): Same.
21807 (get_pool_constant): Same.
21808 (output_constant_pool_2): Same.
21809 (output_constant_pool_1): Same.
21810 (mark_constants_in_pattern): Same.
21811 (mark_constant_pool): Same.
21812 (get_section_anchor): Same.
21813 * vr-values.c (compare_range_with_value): Same.
21814 (vr_values::extract_range_from_phi_node): Same.
21815 * vr-values.h: Same.
21816 * web.c (unionfind_union): Same.
21817 * wide-int.h: Same.
21818
21819 2019-07-09 Martin Sebor <msebor@redhat.com>
21820
21821 PR c++/61339
21822 * align.h: Change class-key from class to struct and vice versa
21823 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21824 * alloc-pool.h: Same.
21825 * asan.c (shadow_mem_size): Same.
21826 * auto-profile.c: Same.
21827 * basic-block.h: Same.
21828 * bitmap.h: Same.
21829 * cfgexpand.c (set_rtl): Same.
21830 (expand_one_stack_var_at): Same.
21831 * cfghooks.h: Same.
21832 * cfgloop.h: Same.
21833 * cgraph.h: Same.
21834 * config/i386/i386.h: Same.
21835 * df-problems.c (df_print_bb_index): Same.
21836 * df-scan.c: Same.
21837 * df.h (df_single_use): Same.
21838 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21839 (layout::annotation_line_showed_range_p): Same.
21840 (get_printed_columns): Same.
21841 (correction::ensure_terminated): Same.
21842 (line_corrections::~line_corrections): Same.
21843 * dojump.h: Same.
21844 * dse.c: Same.
21845 * dump-context.h: Same.
21846 * dumpfile.h: Same.
21847 * dwarf2out.c: Same.
21848 * edit-context.c: Same.
21849 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21850 * flags.h: Same.
21851 * function.c (assign_stack_local): Same.
21852 * function.h: Same.
21853 * gcc.c: Same.
21854 * gcov.c (block_info::block_info): Same.
21855 * genattrtab.c: Same.
21856 * genextract.c: Same.
21857 * genmatch.c (comparison_code_p): Same.
21858 (id_base::id_base): Same.
21859 (decision_tree::print): Same.
21860 * genoutput.c: Same.
21861 * genpreds.c (write_one_predicate_function): Same.
21862 * genrecog.c (validate_pattern): Same.
21863 (find_operand_positions): Same.
21864 (optimize_subroutine_group): Same.
21865 (merge_pattern_transition::merge_pattern_transition): Same.
21866 (merge_pattern_info::merge_pattern_info): Same.
21867 (merge_state_result::merge_state_result): Same.
21868 (merge_into_state): Same.
21869 * gensupport.c: Same.
21870 * gensupport.h: Same.
21871 * ggc-common.c (init_ggc_heuristics): Same.
21872 * ggc-tests.c (test_union): Same.
21873 * gimple-loop-interchange.cc (dump_induction): Same.
21874 * gimple-loop-versioning.cc: Same.
21875 * gimple-match.h (gimple_match_cond::any_else): Same.
21876 * gimple-ssa-backprop.c: Same.
21877 * gimple-ssa-sprintf.c: Same.
21878 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21879 Same.
21880 (store_immediate_info::store_immediate_info): Same.
21881 (merged_store_group::apply_stores): Same.
21882 (get_location_for_stmts): Same.
21883 * gimple-ssa-strength-reduction.c: Same.
21884 * gimple-ssa-warn-alloca.c: Same.
21885 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21886 * godump.c (go_type_decl): Same.
21887 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21888 * hash-map.h: Same.
21889 * hash-set-tests.c (test_set_of_strings): Same.
21890 * hsa-brig.c: Same.
21891 * hsa-common.h: Same.
21892 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21893 * input.c (assert_loceq): Same.
21894 * input.h: Same.
21895 * ipa-cp.c: Same.
21896 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21897 * ipa-fnsummary.h: Same.
21898 * ipa-inline.h: Same.
21899 * ipa-prop.h: Same.
21900 * ipa-split.c (visit_bb): Same.
21901 * ira-int.h (minmax_set_iter_next): Same.
21902 * loop-invariant.c: Same.
21903 * loop-iv.c: Same.
21904 * lra-eliminations.c: Same.
21905 * lra-int.h: Same.
21906 * lra-lives.c (mark_regno_dead): Same.
21907 * lra-remat.c: Same.
21908 * lra-spills.c: Same.
21909 * lto-streamer.h: Same.
21910 * mem-stats.h: Same.
21911 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21912 * omp-low.c (omp_clause_aligned_alignment): Same.
21913 * optabs-query.h (get_vcond_eq_icode): Same.
21914 * optabs.h: Same.
21915 * opts.c (wrap_help): Same.
21916 * poly-int.h: Same.
21917 * predict.c (predict_paths_leading_to_edge): Same.
21918 * pretty-print.h: Same.
21919 * profile-count.h: Same.
21920 * read-md.h: Same.
21921 * read-rtl-function.c: Same.
21922 * ree.c: Same.
21923 * reginfo.c: Same.
21924 * regrename.c: Same.
21925 * regrename.h: Same.
21926 * reload.h: Same.
21927 * rtl-iter.h: Same.
21928 * rtl.h (costs_add_n_insns): Same.
21929 * sanopt.c: Same.
21930 * sched-int.h: Same.
21931 * sel-sched-ir.h: Same.
21932 * selftest.h: Same.
21933 * sese.h (vec_find): Same.
21934 * stmt.c: Same.
21935 * target-globals.h: Same.
21936 * tree-affine.c (aff_combination_find_elt): Same.
21937 * tree-affine.h: Same.
21938 * tree-data-ref.h: Same.
21939 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21940 * tree-predcom.c: Same.
21941 * tree-scalar-evolution.c (find_var_scev_info): Same.
21942 * tree-ssa-alias.h: Same.
21943 * tree-ssa-ccp.c: Same.
21944 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21945 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21946 (rewrite_mem_refs): Same.
21947 (execute_sm_if_changed): Same.
21948 (hoist_memory_references): Same.
21949 * tree-ssa-loop-ivopts.c (operator<=): Same.
21950 * tree-ssa-loop.h: Same.
21951 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21952 * tree-ssa-structalias.c: Same.
21953 * tree-switch-conversion.h (cluster::cluster): Same.
21954 (simple_cluster::simple_cluster): Same.
21955 * tree-vect-patterns.c (type_conversion_p): Same.
21956 * tree-vectorizer.c (dump_stmt_cost): Same.
21957 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21958 * tree.c (protected_set_expr_location): Same.
21959 * tree.h (desired_pro_or_demotion_p): Same.
21960 (fndecl_built_in_p): Same.
21961 * unique-ptr-tests.cc: Same.
21962 * var-tracking.c (delete_variable_part): Same.
21963 * varasm.c (assemble_real): Same.
21964 (tree_output_constant_def): Same.
21965 * vec.c: Same.
21966 * wide-int-bitmask.h: Same.
21967 * wide-int.h (decompose): Same.
21968
21969 2019-07-09 Richard Biener <rguenther@suse.de>
21970
21971 PR tree-optimization/91114
21972 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21973 find a vector type isn't fatal.
21974
21975 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21976
21977 * config/aarch64/aarch64-simd.md
21978 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21979 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21980 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21981 (*aarch64_crypto_aese_fused,
21982 *aarch64_crypto_aesd_fused): Update to new definition.
21983 * config/aarch64/aarch64.c
21984 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21985
21986 2019-07-09 Richard Biener <rguenther@suse.de>
21987
21988 * gimple-match.h (gimple_match_op::resimplify): New.
21989 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21990 gimple_resimplify4, gimple_resimplify5): Remove.
21991 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21992 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21993 Make static.
21994 (gimple_match_op::resimplify): New.
21995 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21996 according to availability. Use gimple_match_op::resimplify.
21997
21998 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21999
22000 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
22001
22002 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
22003
22004 * config/arm/crypto.md:
22005 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
22006 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
22007 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
22008 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
22009 * config/arm/arm.c
22010 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
22011 * config/arm/aarch-common-protos.h
22012 (aarch_crypto_can_dual_issue): Remove.
22013 * config/arm/aarch-common.c
22014 (aarch_crypto_can_dual_issue): Likewise.
22015 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
22016 * config/arm/cortex-a53.md: Likewise.
22017 * config/arm/cortex-a57.md: Likewise.
22018 * config/arm/iterators.md:
22019 (CRYPTO_BINARY): Redefine.
22020 (CRYPTO_UNARY): Removed.
22021 (CRYPTO_AES, CRYPTO_AESMC): New.
22022
22023 2019-07-09 Richard Biener <rguenther@suse.de>
22024
22025 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
22026 (vn_reference_lookup_3): If the main ref has no access path recorded
22027 but orig_ref has use it to do access-path based disambiguation.
22028 (vn_reference_lookup_pieces): Adjust.
22029 (vn_reference_lookup): Pass down original ref if we valueized.
22030
22031 2019-07-09 Martin Liska <mliska@suse.cz>
22032
22033 * doc/extend.texi: Document influence on loop
22034 optimizers.
22035
22036 2019-07-09 Martin Liska <mliska@suse.cz>
22037
22038 * lto-compress.c (lto_normalized_zstd_level): Do not use
22039 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
22040 of libzstd. One can use 0 as a default compression level.
22041
22042 2019-07-09 Martin Liska <mliska@suse.cz>
22043
22044 * doc/invoke.texi: Add link from -fprofile-dir option.
22045 Use better wording for 'gcno filename'.
22046
22047 2019-07-08 Martin Sebor <msebor@redhat.com>
22048
22049 PR middle-end/71924
22050 PR middle-end/90549
22051 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
22052 comment.
22053 (args_loc_t): New type.
22054 (args_loc_t, locmap_t): same.
22055 (diag_returned_locals): New function.
22056 (is_addr_local): Same.
22057 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
22058 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
22059 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
22060
22061 2019-07-08 Jakub Jelinek <jakub@redhat.com>
22062
22063 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
22064 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
22065 and casts in offset when different, both through gimple stmts
22066 and through trees. Rewritten using loops to minimize code duplication
22067 for each operand.
22068
22069 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
22070
22071 * emit-rtl.c (set_insn_locations): New function moved from...
22072 * function.c (set_insn_locations): ...here.
22073 * ira-emit.c (emit_moves): Propagate location of the first instruction
22074 to the inserted move instructions.
22075 * reg-stack.c (compensate_edge): Set the location if the sequence is
22076 inserted on the edge.
22077 * rtl.h (set_insn_locations): Declare.
22078
22079 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22080
22081 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
22082 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
22083 .machine string.
22084
22085 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22086
22087 PR rtl-optimization/88233
22088 * common.opt (fsplit-wide-types-early): New option.
22089 * common/config/rs6000/rs6000-common.c
22090 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
22091 OPT_LEVELS_ALL.
22092 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
22093 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
22094 flag_split_wide_types_early.
22095 (pass_data_lower_subreg3): New.
22096 (pass_lower_subreg3): New.
22097 (make_pass_lower_subreg3): New.
22098 * passes.def (pass_lower_subreg2): Move after the loop passes.
22099 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
22100 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
22101 the pass pipeline; its previous place is taken by ...
22102 (make_pass_lower_subreg3): ... this.
22103
22104 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22105
22106 * config/s390/s390.c (s390_shift_truncation_mask): Define.
22107 (TARGET_SHIFT_TRUNCATION_MASK): Define.
22108
22109 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22110
22111 * config/s390/constraints.md: Add new jsc constraint.
22112 * config/s390/predicates.md: New predicates.
22113 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
22114 * config/s390/s390.c (s390_valid_shift_count): New function.
22115 (print_shift_count_operand): Use s390_valid_shift_count.
22116 (print_operand): Likewise.
22117 * config/s390/s390.md: Use new predicate.
22118 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
22119 * config/s390/vector.md: Use new predicate.
22120
22121 2019-07-08 Andrew Waterman <andrew@sifive.com>
22122 Jim Wilson <jimw@sifive.com>
22123
22124 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
22125 bitsize instead of BITS_PER_WORD.
22126
22127 2019-07-08 Martin Liska <mliska@suse.cz>
22128
22129 * collect2.c (defined): Revert to before r254460.
22130 (scan_prog_file): Revert to before r254460.
22131
22132 2019-07-08 Richard Biener <rguenther@suse.de>
22133
22134 PR tree-optimization/83518
22135 * tree-ssa-sccvn.c: Include splay-tree.h.
22136 (struct pd_range, struct pd_data): New.
22137 (struct vn_walk_cb_data): Add data to track partial definitions.
22138 (vn_walk_cb_data::~vn_walk_cb_data): New.
22139 (vn_walk_cb_data::push_partial_def): New.
22140 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
22141 (vn_reference_lookup_2): When partial defs are registered give up.
22142 (vn_reference_lookup_3): Track partial defs for memset and
22143 constructor zeroing and for defs from constants.
22144
22145 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22146
22147 * doc/install.texi (bootstrap-Og): Document.
22148
22149 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22150
22151 * config/riscv/pic.md (*local_pic_load_s<mode>)
22152 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
22153 referenced by <mode>, giving...
22154 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
22155 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
22156 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
22157 use <X:MODE> for the mode attribute.
22158
22159 2019-07-07 Jeff Law <law@redhat.com>
22160
22161 PR tree-optimization/91090
22162 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
22163 in handling of ranges to simplify switch statements.
22164
22165 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22166
22167 * config/darwin.c (darwin_override_options): Make a final check on PIC
22168 options.
22169
22170 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22171
22172 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
22173 on for kernel code.
22174
22175 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22176
22177 PR target/91068
22178 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
22179 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
22180 instead of matching them to "l" output operands.
22181
22182 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22183
22184 * config/mips/mips.c (mips_split_move): Zero-initialize addr
22185 and check whether addr.reg is nonnull before using it.
22186
22187 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22188
22189 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
22190 ctx->for_simd_scan_phase simd copy the outer var to the privatized
22191 variable(s). For conditional lastprivate look through outer
22192 GIMPLE_OMP_SCAN context.
22193 (lower_omp_1): For conditional lastprivate look through outer
22194 GIMPLE_OMP_SCAN context.
22195
22196 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
22197 member to combined_into_simd_safelen1.
22198 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
22199 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
22200 clauses if ctx->combined_into_simd_safelen1 put statements after the
22201 predicate conditionalized block rather than into it.
22202
22203 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22204
22205 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
22206 operand 1.
22207 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
22208 Make the choice of <mode> explicit, giving...
22209 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
22210
22211 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22212
22213 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
22214 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
22215 of .md attributes.
22216 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
22217 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
22218 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
22219 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
22220 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
22221 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
22222 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
22223 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
22224 (*avx512f_scatterdi<mode>): Likewise.
22225 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
22226
22227 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22228
22229 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
22230 specify the mode iterator referenced by <mode>, giving...
22231 (*push1_h8300hs_<QHI:mode>): ...this.
22232
22233 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22234
22235 * config/gcn/gcn-valu.md
22236 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
22237 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
22238 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
22239 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
22240 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
22241 but using the _exec comparison patterns.
22242 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
22243 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
22244 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
22245 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
22246 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
22247 but using the _exec comparison patterns.
22248
22249 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22250
22251 * config/arm/sync.md
22252 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
22253 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
22254 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
22255 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
22256 <SIDI:cas_cmp_str>.
22257
22258 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22259
22260 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
22261 (maybe_lookup_ctx): Add forward declaration.
22262 (omp_find_scan): Likewise. Walk into body of simd if composited
22263 with worksharing loop.
22264 (scan_omp_simd_scan): New function.
22265 (scan_omp_1_stmt): Call it.
22266 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
22267 ctx->for_simd_scan_phase.
22268 (lower_rec_input_clauses): Do much less work for inscan reductions
22269 in ctx->for_simd_scan_phase is_simd regions.
22270 (lower_omp_scan): Set is_simd also on simd constructs composited
22271 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
22272 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
22273 emit their body after in simd constructs composited with worksharing
22274 loop.
22275 (lower_omp_for_scan): Handle worksharing loop composited with simd.
22276
22277 * omp-low.c (omp_find_scan): Make static.
22278 (lower_omp_for_scan): Fix order of merge arguments in input phase of
22279 the second loop, var2 represents the first partial sum and so needs
22280 to go before rprivb[ivar].
22281
22282 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
22283
22284 * config/rs6000/rs6000-logue.c: Remove unused code.
22285
22286 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22287
22288 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
22289
22290 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
22291
22292 PR target/90712
22293 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
22294 check with a frame laid out check.
22295
22296 2019-07-05 Richard Biener <rguenther@suse.de>
22297
22298 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
22299 when comparing against a store with possibly the same value.
22300
22301 2019-07-05 Richard Biener <rguenther@suse.de>
22302
22303 PR tree-optimization/91091
22304 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
22305 (walk_non_aliased_vuses): Likewise.
22306 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
22307 (get_continuation_for_phi): New tbaa_p parameter and pass
22308 it down.
22309 (walk_non_aliased_vuses): Likewise.
22310 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
22311 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
22312 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
22313 Likewise.
22314 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
22315 (adjust_offsets_for_equal_base_address): New function.
22316 (vn_reference_lookup_3): Use it to catch more base equivalences.
22317 Handle and pass down tbaa_p flag.
22318 (vn_reference_lookup_pieces): Adjust.
22319 (vn_reference_lookup): Remove alias-set altering, instead pass
22320 down false as tbaa_p.
22321
22322 2019-07-05 Richard Biener <rguenther@suse.de>
22323
22324 PR tree-optimization/91091
22325 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
22326 accesses can happen with -fno-strict-aliasing.
22327
22328 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
22329
22330 * tree-ssa-alias.c (alias_stats): Add
22331 nonoverlapping_component_refs_since_match_p_must_overlap.
22332 (dump_alias_stats): Print it.
22333 (nonoverlapping_component_refs_since_match_p): Add early exit.
22334 (nonoverlapping_component_refs_p): Do not account early exit.
22335
22336 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22337
22338 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
22339 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
22340 (emit_eh_dispatch): Delete.
22341 (lower_catch): Emit the eh_dispatch manually and set the location of
22342 the first catch statement onto it.
22343 (lower_eh_filter): Emit the eh_dispatch manually and set location.
22344 (lower_eh_dispatch): Propagate location.
22345 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
22346 (eliminate_build): Likewise.
22347
22348 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22349
22350 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
22351 phi nodes if possible.
22352 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
22353 location info on the newly created statement.
22354 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
22355 newly created increment if needed.
22356
22357 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22358
22359 PR middle-end/78884
22360 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
22361 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
22362 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
22363 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
22364 ctx->add_safelen1 is set.
22365
22366 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
22367 GOMP_loop_start at the start of second worksharing loop in a scan.
22368 For nowait, don't emit GOMP_loop_end_nowait at the end of first
22369 worksharing loop in a scan even if there are conditional lastprivates,
22370 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
22371
22372 2019-07-04 Jan Hubicka <jh@suse.cz>
22373
22374 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
22375 Fix check for match in the ref walk.
22376
22377 2019-07-04 Martin Liska <mliska@suse.cz>
22378
22379 * tree-ssa-loop-niter.c
22380 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
22381 (estimate_numbers_of_iterations):
22382 Support __builtin_expect_with_probability for analysis
22383 of # of loop iterations.
22384
22385 2019-07-04 Alexandre Oliva <oliva@adacore.com>
22386
22387 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
22388 * except.c: Likewise.
22389 * expr.c (expand_expr_real_1): Reject it.
22390 * gimplify.c (gimplify_expr): Gimplify it, within
22391 TRY_FINALLY_EXPR.
22392 * tree-dump.c (dequeue_and_dump): Dump it.
22393 * tree-pretty-print.c (dump_generic_node): Likewise.
22394 * tree.c (block_may_fallthru): Handle it.
22395 * tree.def (EH_ELSE_EXPR): Introduce it.
22396 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
22397 with GIMPLE_EH_ELSE as try/finally/else.
22398
22399 2019-07-04 Richard Biener <rguenther@suse.de>
22400
22401 PR ipa/91062
22402 * tree-pass.h (execute_all_ipa_transforms): Add a flag
22403 parameter whether to disable GC collection.
22404 * passes.c (execute_one_ipa_transform_pass): Likewise, and
22405 honor it.
22406 (execute_all_ipa_transforms): Likewise and pass it down.
22407 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
22408 collection from applying IPA transforms.
22409 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
22410 from applying IPA transforms.
22411
22412 2019-07-04 Richard Biener <rguenther@suse.de>
22413
22414 PR tree-optimization/90911
22415 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
22416 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
22417 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22418 scalar_loop_scaling.
22419 (vect_transform_loop): Scale scalar loop profile if needed.
22420 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
22421 the loop copy from if-conversion adjust edge probabilities
22422 and scale the vectorized loop body profile, queue the scalar
22423 profile for updating after peeling.
22424
22425 2019-07-04 Jan Hubicka <jh@suse.cz>
22426
22427 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
22428 parameters; return early for must-alias.
22429 (indirect_ref_may_alias_decl_p): Likewise; when establishing
22430 outer types match, try nonoverlapping_component_refs
22431 if must-alias is not obvious.
22432 (indirect_refs_may_alias_p): Likewise.
22433 (refs_may_alias_p_2): Likewise.
22434
22435 2019-07-04 Richard Biener <rguenther@suse.de>
22436
22437 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
22438 argument.
22439 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22440 globals into...
22441 (struct vn_walk_cb_data): New callback data struct.
22442 (vn_reference_lookup_2): Adjust.
22443 (vn_reference_lookup_3): Likewise.
22444 (vn_reference_lookup_pieces): Likewise.
22445 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22446 (visit_reference_op_load): Adjust.
22447
22448 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22449
22450 PR tree-optimization/91063
22451 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22452 stmt from stmts sequence before calling vect_init_vector_1.
22453 Formatting fix.
22454
22455 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22456
22457 PR target/88833
22458 * fwprop.c (reg_single_def_p): New function.
22459 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22460 (forward_propagate_into): New parameter reg_prop_only
22461 with default value false.
22462 Propagate def's src into loop only if SET_SRC and SET_DEST
22463 of def_set have single definitions.
22464 Likewise if reg_prop_only is set to true.
22465 (fwprop): New param fwprop_addr_p.
22466 Integrate fwprop_addr into fwprop.
22467 (fwprop_addr): Remove.
22468 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22469 to true.
22470 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22471 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22472 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22473
22474 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22475
22476 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22477 in worksharing loop scans.
22478
22479 PR tree-optimization/91074
22480 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22481 temporary.
22482
22483 PR rtl-optimization/90756
22484 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22485 for VECTOR_TYPE_P.
22486
22487 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
22488
22489 * config/aarch64/aarch64.md: Remove redundant constraints from
22490 define_expand but keep some patterns untouched if they are
22491 specially selected by TARGET_SECONDARY_RELOAD hook.
22492 * config/aarch64/aarch64-sve.md: Likewise.
22493 * config/aarch64/atomics.md: Remove redundant constraints from
22494 define_expand.
22495 * config/aarch64/aarch64-simd.md: Likewise.
22496
22497 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22498
22499 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22500 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22501 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22502 clauses.
22503 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22504 DARWIN_NOPIE_SPEC.
22505
22506 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22507
22508 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22509 (STARTFILE_SPEC): Split crt3 into a separate spec.
22510 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22511 (DARWIN_CRT2_SPEC): New.
22512 (DARWIN_CRT3_SPEC): New.
22513 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22514 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22515 (DARWIN_CRT3_SPEC): New.
22516
22517 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22518
22519 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22520 Change the RTL attribute "length" from "4" to "*" to allow the
22521 length attribute to be adjusted automatically for prefixed load,
22522 store, and add immediate instructions.
22523 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22524 Likewise.
22525 (extendsi<mode>2, EXTSI iterator): Likewise.
22526 (movsi_internal1): Likewise.
22527 (movsi_from_sf): Likewise.
22528 (movdi_from_sf_zero_ext): Likewise.
22529 (mov<mode>_internal): Likewise.
22530 (movcc_internal1, QHI iterator): Likewise.
22531 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22532 (movsf_from_si): Likewise.
22533 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22534 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22535 (mov<mode>, FMOVE128 iterator): Likewise.
22536 (movdi_internal64): Likewise.
22537 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22538 Likewise.
22539 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22540 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22541 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22542 (vsx_splat_v4sf): Likewise.
22543
22544 2019-07-03 Mark Wielaard <mark@klomp.org>
22545
22546 PR debug/90981
22547 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22548 DW_AT_addr_base if there is actually a .debug_addr section with
22549 addresses.
22550 (output_addr_table): Add DWARF5 table header generation here after
22551 checking there are actually any addresses from...
22552 (dwarf2out_finish): ...here.
22553
22554 2019-07-03 Richard Biener <rguenther@suse.de>
22555
22556 PR middle-end/91069
22557 * match.pd (vec_perm -> bit_insert): Fix element read from
22558 first vector.
22559
22560 2019-07-03 Martin Liska <mliska@suse.cz>
22561
22562 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22563 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22564 condition.
22565 * generic-match-head.c: Include dbgcnt.h.
22566 * gimple-match-head.c: Likewise.
22567
22568 2019-07-03 Martin Liska <mliska@suse.cz>
22569
22570 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22571 (GCOV_COUNTER_V_TOPN): New.
22572 (GCOV_COUNTER_V_INDIR): Use _topn.
22573 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22574 (GCOV_TOPN_VALUES): New.
22575 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22576 (GCOV_TOPN_VALUES_COUNTERS): New.
22577 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22578 * tree-profile.c:
22579 (gimple_init_gcov_profiler): Rename variables from one_value
22580 to topn_values.
22581 (gimple_gen_one_value_profiler): Remove.
22582 (gimple_gen_topn_values_profiler): New function.
22583 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22584 names instead of SINGLE_VALUE.
22585 (stream_out_histogram_value): Likewise.
22586 (stream_in_histogram_value): Likewise.
22587 (get_most_common_single_value): Likewise.
22588 (gimple_divmod_fixed_value_transform): Likewise.
22589 (gimple_stringops_transform): Likewise.
22590 (gimple_divmod_values_to_profile): Likewise.
22591 (gimple_stringops_values_to_profile): Likewise.
22592 (gimple_find_values_to_profile): Likewise.
22593 * value-prof.h (enum hist_type): Rename to TOPN.
22594 (gimple_gen_one_value_profiler): Remove.
22595 (gimple_gen_topn_values_profiler): New.
22596
22597 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22598
22599 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22600 if it has the DW_AT_data_member_location attribute.
22601
22602 2019-07-03 Richard Biener <rguenther@suse.de>
22603
22604 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22605 dumping.
22606
22607 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22608
22609 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22610 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22611 (tlsdesc_small_sve_<mode>): Likewise.
22612
22613 2019-07-03 Martin Liska <mliska@suse.cz>
22614
22615 * Makefile.in: Define ZSTD_LIB.
22616 * common.opt: Adjust compression level
22617 to support also zstd levels.
22618 * config.in: Regenerate.
22619 * configure: Likewise.
22620 * configure.ac: Add --with-zstd and --with-zstd-include options
22621 and detect ZSTD.
22622 * doc/install.texi: Mention zstd dependency.
22623 * gcc.c: Print supported LTO compression algorithms.
22624 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22625 (lto_compression_zstd): Likewise.
22626 (lto_uncompression_zstd): Likewise.
22627 (lto_end_compression): Dispatch in between zlib and zstd.
22628 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22629 (lto_uncompression_zlib): Make it static.
22630 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22631 * lto-section-in.c (lto_get_section_data): Pass info
22632 about used compression.
22633 * lto-streamer-out.c: By default use zstd when possible.
22634 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22635 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22636
22637 2019-07-03 Martin Liska <mliska@suse.cz>
22638
22639 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22640 * lto-section-out.c (lto_destroy_simple_output_block): Never
22641 compress LTO_section_lto section.
22642 * lto-streamer-out.c (produce_asm): Do not set major_version
22643 and minor_version.
22644 (lto_output_toplevel_asms): Likewise.
22645 (produce_lto_section): New function.
22646 (lto_output): Call produce_lto_section.
22647 (lto_write_mode_table): Do not set major_version and
22648 minor_version.
22649 (produce_asm_for_decls): Likewise.
22650 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22651 type.
22652 (struct lto_header): Remove.
22653 (struct lto_section): New struct.
22654 (struct lto_simple_header): Do not inherit from lto_header.
22655 (struct lto_file_decl_data): Add lto_section_header field.
22656
22657 2019-07-03 Martin Liska <mliska@suse.cz>
22658
22659 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22660 dead assignemts.
22661 * reg-stack.c (check_asm_stack_operands): Likewise.
22662 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22663 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22664 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22665 force_expand_binop.
22666
22667 2019-07-03 Martin Liska <mliska@suse.cz>
22668
22669 PR tree-optimization/90892
22670 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22671 in string constants.
22672
22673 2019-07-03 Martin Liska <mliska@suse.cz>
22674
22675 PR middle-end/90899
22676 * multiple_target.c (create_dispatcher_calls): Add to comdat
22677 group only if set for ifunc.
22678
22679 2019-07-03 Martin Liska <mliska@suse.cz>
22680
22681 PR target/88056
22682 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22683 Define local_object_name in outer scope in order to handle
22684 use-after-scope issue.
22685
22686 2019-07-03 Martin Liska <mliska@suse.cz>
22687
22688 * common.opt: Add fprofile-note.
22689 * coverage.c (coverage_init): Append the option
22690 to bbg_file_name.
22691 * doc/invoke.texi: Document -fprofile-note.
22692
22693 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22694
22695 PR tree-optimization/91033
22696 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22697 vect_analyze_data_refs): Add bool * arguments.
22698 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22699 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22700 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22701 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22702 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22703 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22704 vect_analyze_data_refs caller.
22705
22706 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22707 clause.
22708 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22709 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22710 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22711 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22712 OMP_CLAUSE__SCANTEMP_ entry.
22713 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22714 * tree-pretty-print.c (dump_omp_clause): Likewise.
22715 * tree-nested.c (convert_nonlocal_omp_clauses,
22716 convert_local_omp_clauses): Likewise.
22717 * omp-general.h (struct omp_for_data): Add have_scantemp and
22718 have_nonctrl_scantemp members.
22719 * omp-general.c (omp_extract_for_data): Initialize them.
22720 * omp-low.c (struct omp_context): Add scan_exclusive member.
22721 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22722 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22723 ctx->scan_exclusive.
22724 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22725 of !ctx->scan_inclusive.
22726 (lower_rec_input_clauses): Simplify gimplification of dtors using
22727 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22728 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22729 loops. Don't add barrier for reduction_omp_orig_ref if
22730 ctx->scan_??xclusive.
22731 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22732 (lower_omp_scan): Use ctx->scan_exclusive instead
22733 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22734 reductions. Use new_vard != new_var instead of repeated
22735 omp_is_reference calls.
22736 (omp_find_scan, lower_omp_for_scan): New functions.
22737 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22738 inscan reductions.
22739 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22740 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22741 and fd->have_scantemp.
22742
22743 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22744 on worksharing loop propagate it as shared clause to containing
22745 combined parallel.
22746
22747 * omp-expand.c (expand_omp_for_static_nochunk,
22748 expand_omp_for_static_chunk): For nowait worksharing loop with
22749 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22750 at the end.
22751
22752 2019-07-02 qing zhao <qing.zhao@oracle.com>
22753
22754 PR preprocessor/90581
22755 * doc/cppopts.texi: Add document for -fmax-include-depth.
22756 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22757
22758 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22759
22760 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22761 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22762 (mmx_packssdw): Ditto.
22763 (mmx_punpckhbw): Ditto.
22764 (mmx_punpcklbw): Ditto.
22765 (mmx_punpckhwd): Ditto.
22766 (mmx_punpcklwd): Ditto.
22767 (mmx_punpckhdq): Ditto.
22768 (mmx_punpckldq): Ditto.
22769 (*vec_dupv4hi): Ditto.
22770 (*vec_dupv2si): Ditto.
22771 (mmx_pmovmskb): Ditto.
22772 * config/i386/sse.md (sse_cvtpi2ps): Use
22773 TARGET_SSE2 && SSE_REG_P in split condition.
22774 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22775 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22776 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22777 (ssse3_pshufbv8qi3): Ditto.
22778 (ssse3_palignrdi): Ditto.
22779
22780 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22781
22782 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22783 with inlined save and restore.
22784
22785 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22786
22787 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22788 to be inserted on single successor edge of the entry block. Then call
22789 commit_edge_insertions instead of inserting the instructions manually.
22790 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22791 RTL expansion and rebuild jump labels chain.
22792
22793 2019-07-02 Richard Biener <rguenther@suse.de>
22794
22795 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22796 TI_CHREC_KNOWN.
22797 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22798 Define here.
22799 * tree.c (build_common_tree_nodes): Initialize them.
22800 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22801 Make declarations comments.
22802 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22803 chrec_known): Remove definitions.
22804 (initialize_scalar_evolutions_analyzer): Remove.
22805 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22806 * tree-streamer.c (preload_common_nodes): Do not preload
22807 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22808
22809 2019-07-02 Jan Hubicka <jh@suse.cz>
22810
22811 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22812 sanity check.
22813
22814 2019-07-02 Jan Hubicka <jh@suse.cz>
22815
22816 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22817 to ..
22818 (nonoverlapping_component_refs_since_match_p): ... this one;
22819 handle also non-decl bases; return -1 if search gave up.
22820 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22821 nonoverlapping_component_refs_of_decl_p_no_alias to
22822 nonoverlapping_component_refs_since_match_p_may_alias,
22823 nonoverlapping_component_refs_since_match_p_no_alias.
22824 (dump_alias_stats): Update dumping.
22825 (aliasing_matching_component_refs_p): Break out from ...;
22826 dispatch to nonoverlapping_component_refs_for_decl_p
22827 and nonoverlapping_component_refs_since_match_p.
22828 (aliasing_component_refs_p): ... here; call
22829 nonoverlapping_component_refs_p in scenarios where we can not
22830 precisely determine base match.
22831 (decl_refs_may_alias_p): Use
22832 nonoverlapping_component_refs_since_match_p.
22833 (indirect_ref_may_alias_decl_p): Do not call
22834 nonoverlapping_component_refs_p.
22835 (indirect_refs_may_alias_p): Likewise.
22836
22837 2019-07-02 Jan Hubicka <jh@suse.cz>
22838
22839 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22840 to clobber of return value.
22841
22842 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22843
22844 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22845 for is_neon_type instructions that have not already been categorized.
22846
22847 2019-07-02 Richard Biener <rguenther@suse.de>
22848
22849 PR tree-optimization/58483
22850 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22851 for MEM_REF base hashing.
22852 (equal_mem_array_ref_p): Likewise for base comparison.
22853
22854 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22855
22856 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22857 parameterized name.
22858 (signbit<mode>2): Use that name. Simplify.
22859
22860 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22861
22862 PR middle-end/66726
22863 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22864 Tune heuristic from PR71016 to allow MIN / MAX.
22865
22866 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22867
22868 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22869 parameterized name.
22870 (abs<mode>2): Use that name. Simplify.
22871
22872 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22873
22874 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22875 parameterized name.
22876 (neg<mode>2): Use that name. Simplify.
22877
22878 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22879
22880 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22881 name.
22882 (abs<mode>2): Use that name. Simplify.
22883
22884 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22885
22886 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22887 name.
22888 (neg<mode>2): Use that name. Simplify.
22889
22890 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22891
22892 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22893 ("enabled" attribute): Handle sse_noavx isa attribute.
22894 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22895 Use TARGET_SSE && SSE_REGNO_P in split condition.
22896 (*vec_dupv2sf): Ditto.
22897
22898 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22899
22900 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22901 name.
22902 (floatsi<mode>2): Use that name. Simplify.
22903
22904 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22905
22906 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22907 parameterized name.
22908 (extenddf<mode>2_vsx): Make this a parameterized name.
22909 (extenddf<mode>2): Use those names. Simplify.
22910
22911 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22912
22913 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22914 name.
22915 (eh_return): Use that name. Simplify.
22916
22917 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22918
22919 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22920 (doloop_end): Use that name. Simplify.
22921
22922 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22923
22924 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22925 parameterized name.
22926 (indirect_jump): Use that name. Simplify.
22927
22928 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22929
22930 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22931 parameterized name.
22932 (abs<mode>2): Use that name. Simplify.
22933
22934 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22935
22936 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22937 parameterized name.
22938 (fix_trunc<mode>si2): Use that name. Simplify.
22939
22940 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22941
22942 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22943 (allocate_stack): Use that name. Simplify.
22944
22945 2019-07-01 Martin Sebor <msebor@redhat.com>
22946
22947 PR middle-end/90923
22948 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22949 (hash_map::get_or_insert): Same. Reformat comment.
22950 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22951 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22952 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22953 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22954 (hash_table::hash_table (const hash_table&)): Use copy ctor
22955 instead of assignment to copy elements.
22956
22957 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22958 John David Anglin <danglin@gcc.gnu.org>
22959
22960 PR target/90963
22961 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22962 using saved frame pointer.
22963
22964 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22965
22966 PR middle-end/64242
22967 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22968 Add frame clobber and schedule blockage.
22969
22970 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22971
22972 * doc/invoke.texi (Link Options): Further editorial changes to
22973 -flinker-output docs.
22974
22975 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22976
22977 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22978 Load both operands of a PLUS into registers separately.
22979
22980 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22981
22982 * config/s390/vector.md: Fix shift count operand printing.
22983
22984 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22985
22986 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22987
22988 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22989
22990 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22991 Use recog_data to test for an output operand.
22992
22993 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22994
22995 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22996 exclude any others that are disparaged or that are bound to need
22997 a reload or spill.
22998 (ira_get_dup_out_num): Expand comment.
22999
23000 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23001
23002 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
23003 constraint string for each operand/alternative combo. Only handle
23004 '%' at the start of constraint strings, and look for it outside
23005 the main loop.
23006
23007 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23008
23009 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
23010 alternative_mask instead of HARD_REG_SET to represent a
23011 bitmask of alternatives.
23012 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
23013 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
23014
23015 2019-07-01 Martin Liska <mliska@suse.cz>
23016
23017 * edit-context.c (test_applying_fixits_unreadable_file): Do not
23018 use () for a constructor call.
23019 (test_applying_fixits_line_out_of_range): Likewise.
23020 * ggc-page.c (alloc_page): Use (void *) for %p printf format
23021 argument.
23022 (free_page): Likewise.
23023
23024 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
23025
23026 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
23027 parameter names to match usage (no functional change).
23028 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
23029
23030 2019-07-01 Richard Biener <rguenther@suse.de>
23031
23032 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
23033 pass parameter.
23034 (pass_fre::execute): Honor it.
23035 * passes.def: Adjust pass_fre invocations to allow iterating,
23036 add non-iterating pass_fre before late threading/dom.
23037
23038 2019-07-01 Richard Biener <rguenther@suse.de>
23039
23040 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
23041 TARGET_MEM_REF handling to also handle address-taken ones.
23042
23043 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
23044
23045 * doc/sourcebuild.texi (Effective-Target Keywords, Other
23046 hardware attributes): Document avx512vp2intersect.
23047
23048 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23049
23050 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
23051 (abs<mode>2): New expander.
23052 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
23053 Use CODE_FOR_ssse3_absv8qi2.
23054 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
23055 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
23056
23057 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23058
23059 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
23060 to sse, sse_noavx and avx. Update all uses.
23061
23062 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23063
23064 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
23065 (*mmx_<plusminus_insn><mode>3): Ditto.
23066 (*mmx_mulv4hi3"): Ditto.
23067 (*mmx_smulv4hi3_highpart): Ditto.
23068 (*mmx_umulv4hi3_highpart): Ditto.
23069 (*mmx_pmaddwd): Ditto.
23070 (*sse2_umulv1siv1di3): Ditto.
23071 (*mmx_<code>v4hi3): Ditto.
23072 (*mmx_<code>v8qi3): Ditto.
23073 (mmx_ashr<mode>3): Ditto.
23074 ("mmx_<shift_insn><mode>3): Ditto.
23075 (*mmx_eq<mode>3): Ditto.
23076 (mmx_gt<mode>3): Ditto.
23077 (mmx_andnot<mode>3): Ditto.
23078 (*mmx_<code><mode>3): Ditto.
23079 (*mmx_pinsrw): Ditto.
23080 (*mmx_pextrw): Ditto.
23081 (mmx_pshufw_1): Ditto.
23082 (*mmx_uavgv8qi3): Ditto.
23083 (*mmx_uavgv4hi3): Ditto.
23084 ("mmx_psadbw): Ditto.
23085 * config/i386/sse.md (sse_cvtps2pi): Ditto.
23086 (sse_cvttps2pi): Ditto.
23087 (ssse3_pmaddubsw): Ditto.
23088 (*ssse3_pmulhrswv4hi3): Ditto.
23089 (ssse3_psign<mode>3): Ditto.
23090
23091 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
23092
23093 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
23094 adjustment for bit-fields to all aggregate types.
23095
23096 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
23097
23098 * config/rs6000/predicates.md (pcrel_address): Use
23099 SYMBOL_REF_LOCAL_P to determine if a label is local.
23100 (pcrel_external_address): New predicate.
23101 (non_prefixed_mem_operand): Delete, predicate not used.
23102 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
23103 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
23104 addressing.
23105 (SYMBOL_REF_PCREL_P): Likewise.
23106
23107 PR target/91009
23108 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
23109 alternative.
23110 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
23111 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
23112 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
23113
23114 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23115
23116 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
23117 override on extra_headers.
23118
23119 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23120
23121 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
23122 * config/darwin-driver.c (darwin_default_min_version): Remove newline
23123 from warning.
23124 (darwin_driver_init): Likewise.
23125
23126 2019-06-28 Jan Beulich <jbeulich@suse.com>
23127
23128 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23129 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
23130 Eliminate redundant alternative.
23131
23132 2019-06-28 Jan Beulich <jbeulich@suse.com>
23133
23134 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23135 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
23136 Use vector_operand.
23137
23138 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
23139
23140 * config/arc/arc.c (arc_rtx_costs): All short instructions are
23141 having a lower cost regardless of the speed option.
23142
23143 2019-06-28 Jan Beulich <jbeulich@suse.com>
23144
23145 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
23146 vector_operand plus, on both alternatives, "Bm" constraint.
23147
23148 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
23149
23150 * config/arm/arm.md: Remove redundant constraints from
23151 define_expand but leave reload_inm and reload_outm patterns
23152 untouched since they need special constraints to work.
23153 * config/arm/arm-fixed.md: Remove redundant constraints from
23154 define_expand.
23155 * config/arm/iwmmxt.md: Likewise.
23156 * config/arm/neon.md: Likewise.
23157 * config/arm/sync.md: Likewise.
23158 * config/arm/thumb1.md: Likewise.
23159 * config/arm/vec-common.md: Likewise.
23160
23161 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
23162
23163 * doc/install.texi: Document --disable-tm-clone-registry.
23164
23165 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23166
23167 PR c++/91024
23168 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
23169 statements.
23170
23171 PR tree-optimization/91010
23172 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
23173 return true. Otherwise, don't call operand_equal_p if offset1 or
23174 offset2 is NULL and just return false.
23175
23176 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23177
23178 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
23179 user-specified float mode choice for kernel mode code.
23180
23181 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23182
23183 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
23184 spec.
23185
23186 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23187
23188 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
23189 use longcall for 64b code.
23190
23191 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
23192
23193 * builtins.c (get_memory_rtx): Fix comment.
23194 * optabs.def (movmem_optab): Change to cpymem_optab.
23195 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
23196 (emit_block_move_hints): Change movmem to cpymem.
23197 * defaults.h: Change movmem to cpymem.
23198 * targhooks.c (get_move_ratio): Change movmem to cpymem.
23199 (default_use_by_pieces_infrastructure_p): Ditto.
23200 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
23201 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
23202 to cpymem.
23203 * config/aarch64/aarch64.h: Change movmem to cpymem.
23204 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
23205 * config/alpha/alpha.h: Change movmem to cpymem in comment.
23206 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
23207 movmem to cpymem.
23208 * config/arc/arc-protos.h: Change movmem to cpymem.
23209 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
23210 * config/arc/arc.h: Change movmem to cpymem in comment.
23211 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
23212 * config/arm/arm-protos.h: Change movmem to cpymem in names.
23213 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
23214 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
23215 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
23216 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
23217 * config/avr/avr-protos.h: Change movmem to cpymem.
23218 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
23219 avr_out_movmem): Change movmem to cpymem.
23220 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
23221 Change movmem to cpymem.
23222 * config/bfin/bfin-protos.h: Change movmem to cpymem.
23223 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
23224 Change movmem to cpymem.
23225 * config/bfin/bfin.h: Change movmem to cpymem in comment.
23226 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
23227 * config/c6x/c6x-protos.h: Change movmem to cpymem.
23228 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
23229 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
23230 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
23231 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
23232 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
23233 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
23234 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
23235 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
23236 expand_small_cpymem_or_setmem,
23237 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
23238 expand_set_or_cpymem_constant_prologue,
23239 ix86_expand_set_or_cpymem): Change movmem to cpymem.
23240 * config/i386/i386-protos.h: Change movmem to cpymem.
23241 * config/i386/i386.h: Change movmem to cpymem in comment.
23242 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
23243 (setmem<mode>): Change expansion function name.
23244 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
23245 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
23246 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
23247 * config/m32c/m32c-protos.h: Change movmem to cpymem.
23248 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
23249 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
23250 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
23251 to cpymem.
23252 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
23253 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
23254 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
23255 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
23256 Change movmem to cpymem.
23257 * config/mips/mips.h: Change movmem to cpymem.
23258 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
23259 * config/nds32/nds32-memory-manipulation.c
23260 (nds32_expand_movmemsi_loop_unknown_size,
23261 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
23262 nds32_expand_movmemsi_unroll,
23263 nds32_expand_movmemsi): Change movmem to cpymem.
23264 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
23265 * config/nds32/nds32-protos.h: Change movmem to cpymem.
23266 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
23267 (pa_adjust_insn_length): Change call to compute_movmem_length.
23268 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
23269 movmemdi, movmemdi_prereload,
23270 movmemdi_postreload): Change movmem to cpymem.
23271 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
23272 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
23273 * config/riscv/riscv.c: Change movmem to cpymem in comment.
23274 * config/riscv/riscv.h: Change movmem to cpymem.
23275 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
23276 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
23277 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
23278 movmem to cpymem.
23279 * config/s390/s390-protos.h: Change movmem to cpymem.
23280 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
23281 s390_expand_insv): Change movmem to cpymem.
23282 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
23283 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
23284 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
23285 * config/sparc/sparc.h: Change movmem to cpymem in comment.
23286 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
23287 for nonexistent function.
23288 * config/vax/vax.h: Change movmem to cpymem in comment.
23289 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
23290 * config/visium/visium.h: Change movmem to cpymem in comment.
23291 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
23292 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
23293 * doc/md.texi: Change movmem to cpymem and update description to match.
23294 * doc/rtl.texi: Change movmem to cpymem.
23295 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
23296 * doc/tm.texi: Regenerate.
23297
23298 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
23299
23300 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
23301 -fvariable-expansion-in-unroller by default.
23302 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
23303 default for Power.
23304
23305 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
23306
23307 Revert
23308 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23309 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23310
23311 * config.gcc(rs6000-*-*): Define target_gtfiles.
23312
23313 2019-06-27 Jan Hubicka <jh@suse.cz>
23314
23315 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
23316 (add_type_duplicate): When odr hash is not allocated, to nothing.
23317 (odr_based_tbaa_p): New function.
23318 (set_type_canonical_for_odr_type): New function.
23319 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
23320 set_type_canonical_for_odr_type): New.
23321 * tree.c (gimple_canonical_types_compatible_p): ODR types with
23322 ODR based TBAA are not equivalent to non-ODR types.
23323
23324 2019-06-27 Martin Liska <mliska@suse.cz>
23325
23326 PR tree-optimization/90974
23327 PR rtl-optimization/90975
23328 PR rtl-optimization/90976
23329 PR target/91016
23330 PR tree-optimization/91017
23331 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
23332 unused tmp.
23333 * lra.c (lra_set_insn_recog_data): Remove a leftover from
23334 initial commit of IRA.
23335 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
23336 of op0 and op1.
23337 * tree-vect-loop.c (vect_create_epilog_for_reduction):
23338 Remove unused mode1.
23339 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
23340 to new_stmt_info.
23341
23342 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23343
23344 PR target/90991
23345 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
23346 instead of register_operand for operands[1], add m to its constraints
23347 if operands[2] uses "C" constraint. Ensure in condition that if
23348 operands[2] is not 0, then operands[1] is not a MEM. For last two
23349 alternatives, use unaligned loads instead of aligned if operands[1] is
23350 misaligned_operand.
23351
23352 2019-06-27 Martin Liska <mliska@suse.cz>
23353
23354 * asan.c (asan_emit_allocas_unpoison): Remove obviously
23355 dead assignments.
23356 * bt-load.c (move_btr_def): Likewise.
23357 * builtins.c (expand_builtin_apply_args_1): Likewise.
23358 (expand_builtin_apply): Likewise.
23359 * cfgexpand.c (expand_asm_stmt): Likewise.
23360 (construct_init_block): Likewise.
23361 * cfghooks.c (verify_flow_info): Likewise.
23362 * cfgloopmanip.c (remove_path): Likewise.
23363 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
23364 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
23365 * combine.c (simplify_if_then_else): Likewise.
23366 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
23367 (choose_basereg): Likewise.
23368 (ix86_expand_prologue): Likewise.
23369 (ix86_preferred_output_reload_class): Likewise.
23370 * cselib.c (cselib_record_sets): Likewise.
23371 * df-scan.c (df_scan_alloc): Likewise.
23372 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
23373 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
23374 * emit-rtl.c (try_split): Likewise.
23375 * graphite-scop-detection.c (assign_parameter_index_in_region):
23376 Likewise.
23377 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
23378 * ira-color.c (setup_profitable_hard_regs): Likewise.
23379 * ira.c (rtx_moveable_p): Likewise.
23380 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23381 * read-rtl.c (read_subst_mapping): Likewise.
23382 * regrename.c (scan_rtx): Likewise.
23383 * reorg.c (fill_slots_from_thread): Likewise.
23384 * tree-inline.c (tree_function_versioning): Likewise.
23385 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
23386 * tree-ssa-sink.c (statement_sink_location): Likewise.
23387 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
23388 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
23389 (vect_create_epilog_for_reduction): Likewise.
23390 * tree.c (build_nonstandard_integer_type): Likewise.
23391
23392 2019-06-27 Richard Biener <rguenther@suse.de>
23393
23394 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
23395
23396 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
23397
23398 PR tree-optimization/89772
23399 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
23400 out-of-bound accesses checking.
23401
23402 2019-06-27 Martin Liska <mliska@suse.cz>
23403
23404 PR tree-optimization/91014
23405 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
23406 when LHS is NULL_TREE.
23407
23408 2019-06-27 Martin Liska <mliska@suse.cz>
23409
23410 * symbol-summary.h (traverse): Pass
23411 argument a to the call of callback.
23412 (gt_ggc_mx): Mark arguments as unused.
23413 (gt_pch_nx): Likewise.
23414
23415 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
23416
23417 PR target/62147
23418 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
23419 finiteness.
23420
23421 2019-06-26 Jeff Law <law@redhat.com>
23422
23423 PR tree-optimization/90883
23424 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
23425 (delete_dead_or_redundant_assignment): Likewise.
23426
23427 PR tree-optimization/90883
23428 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
23429 * tree-ssa-dse.c: Update various comments to distinguish between
23430 dead and redundant stores.
23431 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
23432 (dse_optimize_redundant_stores): New function.
23433 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
23434 Distinguish between dead and redundant calls in dump output. All
23435 callers updated.
23436 (delete_dead_or_redundant_assignment): Similarly for assignments.
23437 (dse_optimize_stmt): Handle _CHK variants. For statements which
23438 store 0 into multiple memory locations, try to prove a subsequent
23439 store is redundant.
23440
23441 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
23442
23443 PR target/89021
23444 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23445 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23446
23447 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23448
23449 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23450 (branch_islands): New extern.
23451 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23452 * config/rs6000/rs6000.c: .. here.
23453
23454 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23455
23456 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23457 (powerpc*-*-*) ... to here.
23458
23459 2019-06-26 Jeff Law <law@redhat.com>
23460
23461 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23462 memcpy, memmove and memset builtins.
23463 (maybe_trim_memstar_call): Likewise.
23464
23465 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23466
23467 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23468
23469 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23470
23471 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23472
23473 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23474
23475 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23476 declaration.
23477 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23478 "static".
23479 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23480 declaration.
23481
23482 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23483
23484 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23485
23486 2019-06-26 Richard Biener <rguenther@suse.de>
23487
23488 PR ipa/90982
23489 * tree-inline.c (remap_ssa_name): Copy SSA range info.
23490
23491 2019-06-26 Richard Biener <rguenther@suse.de>
23492
23493 * lto-streamer.h (lto_bitmap_alloc): Remove.
23494 (lto_bitmap_free): Likewise.
23495 * lto-streamer.c (lto_bitmap_alloc): Remove.
23496 (lto_bitmap_free): Likewise.
23497 (lto_obstack): Likewise.
23498 (lto_obstack_initialized): Likewise.
23499 * lto-streamer-out.c (lto_output): Use own obstack for local
23500 bitmap, free it consistently.
23501
23502 2019-06-26 Jakub Jelinek <jakub@redhat.com>
23503
23504 PR target/90991
23505 * config/i386/sse.md
23506 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23507 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23508 insns if operands[2] is misaligned_operand.
23509
23510 2019-06-26 Li Jia He <helijia@linux.ibm.com>
23511
23512 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23513 TARGET_POWERPC64.
23514 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23515 to GPR.
23516
23517 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23518
23519 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23520
23521 2019-06-26 Martin Liska <mliska@suse.cz>
23522
23523 PR tree-optimization/90973
23524 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23525 epilogue_cost_vec instead of prologue_cost_vec for
23526 a epilogue cost.
23527
23528 2019-06-26 Martin Liska <mliska@suse.cz>
23529
23530 * bb-reorder.c (connect_better_edge_p): Add missing else
23531 statement in the middle of if-else statements.
23532
23533 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23534 H.J. Lu <hongjiu.lu@intel.com>
23535 Olga Makhotina <olga.makhotina@intel.com>
23536
23537 * common/config/i386/i386-common.c
23538 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23539 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23540 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23541 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23542 (ix86_handle_option): Handle -mavx512vp2intersect.
23543 * config/i386/avx512vp2intersectintrin.h: New.
23544 * config/i386/avx512vp2intersectvlintrin.h: New.
23545 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23546 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23547 AVX512VP2INTERSECT.
23548 * config/i386/i386-builtin-types.def: Add new types.
23549 * config/i386/i386-builtin.def: Add new builtins.
23550 * config/i386/i386-builtins.c: (enum processor_features): Add
23551 F_AVX512VP2INTERSECT.
23552 (static const _isa_names_table isa_names_table): Ditto.
23553 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23554 __AVX512VP2INTERSECT__.
23555 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23556 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23557 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23558 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23559 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23560 * config/i386/i386-options.c (ix86_target_string): Add
23561 -mavx512vp2intersect.
23562 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23563 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23564 P2HImode and P2QImode.
23565 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23566 number for P2QImode and P2HImode.
23567 (ix86_regmode_natural_size): New function.
23568 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23569 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23570 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23571 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23572 * config/i386/i386.opt: Add -mavx512vp2intersect.
23573 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23574 avx512vp2intersectvlintrin.h.
23575 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23576 (define_mode_iterator VI48_AVX512VP2VL): New.
23577 (avx512vp2intersect_2intersect<mode>,
23578 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23579 * config.gcc: Add avx512vp2intersectvlintrin.h and
23580 avx512vp2intersectintrin.h to extra_headers.
23581 * doc/invoke.texi: Document -mavx512vp2intersect.
23582
23583 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23584
23585 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23586
23587 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23588
23589 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23590 savres_routine_syms, savres_routine_name, morestack_ref,
23591 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23592 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23593 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23594 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23595 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23596 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23597 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23598 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23599 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23600 get_stack_clash_protection_probe_interval,
23601 get_stack_clash_protection_guard_size,
23602 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23603 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23604 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23605 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23606 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23607 gen_frame_mem_offset, rs6000_savres_routine_name,
23608 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23609 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23610 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23611 rs6000_global_entry_point_prologue_needed_p,
23612 rs6000_get_separate_components, rs6000_components_for_bb,
23613 rs6000_disqualify_components, rs6000_emit_prologue_components,
23614 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23615 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23616 rs6000_output_savres_externs, rs6000_output_function_prologue,
23617 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23618 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23619 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23620 rs6000_output_function_epilogue, gen_add3_const,
23621 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23622 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23623 to rs6000-logue.c.
23624 (machine_function): Moved to rs6000.h.
23625 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23626 rs6000-internal.h.
23627 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23628 savres_routine_syms, savres_routine_name, morestack_ref,
23629 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23630 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23631 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23632 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23633 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23634 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23635 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23636 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23637 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23638 get_stack_clash_protection_probe_interval,
23639 get_stack_clash_protection_guard_size,
23640 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23641 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23642 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23643 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23644 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23645 gen_frame_mem_offset, rs6000_savres_routine_name,
23646 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23647 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23648 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23649 rs6000_global_entry_point_prologue_needed_p,
23650 rs6000_get_separate_components, rs6000_components_for_bb,
23651 rs6000_disqualify_components, rs6000_emit_prologue_components,
23652 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23653 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23654 rs6000_output_savres_externs, rs6000_output_function_prologue,
23655 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23656 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23657 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23658 rs6000_output_function_epilogue, gen_add3_const,
23659 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23660 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23661 to here from rs6000.c.
23662 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23663 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23664 quad_address_offset_p) Moved to here from rs6000.c.
23665 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23666 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23667 collector.
23668
23669 2019-06-25 Martin Liska <mliska@suse.cz>
23670
23671 * hash-table.c (hashtab_chk_error): Move here from ...
23672 * hash-table.h (hashtab_chk_error): ... here.
23673
23674 2019-06-25 Martin Liska <mliska@suse.cz>
23675
23676 PR tree-optimization/90978
23677 * df-scan.c (df_update_entry_block_defs): Remove dead else
23678 branch.
23679 (df_update_exit_block_uses): Likewise.
23680
23681 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23682 Andrew Stubbs <ams@codesourcery.com>
23683
23684 * config.gcc (thread_file): Set to gcn for AMD GCN.
23685 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23686 (TARGET_EMUTLS_VAR_INIT): New hook.
23687
23688 2019-06-25 Martin Jambor <mjambor@suse.cz>
23689
23690 PR ipa/90939
23691 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23692
23693 2019-06-25 Richard Biener <rguenther@suse.de>
23694
23695 PR tree-optimization/90930
23696 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23697 into parallel form in the last pass instance.
23698
23699 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23700
23701 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23702 (arc_legitimize_pic_address): Simplify and cleanup the function.
23703 (SYMBOLIC_CONST): Remove.
23704 (prepare_pic_move): Likewise.
23705 (prepare_move_operands): Handle complex mov cases here.
23706 (arc_legitimize_address_0): Remove call to
23707 arc_legitimize_pic_address.
23708 (arc_legitimize_address): Remove call to
23709 arc_legitimize_tls_address.
23710 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23711 (movhi_insn): Likewise.
23712
23713 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23714
23715 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23716 PTRDIFF_TYPE.
23717 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23718 format of "__intN" types for UINTMAX_TYPE.
23719 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23720 format of "__intN" types for SIZETYPE.
23721 * tree.c (build_common_tree_nodes): Accept "__intN__"
23722 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23723 * doc/invoke.texi: Document that __intN__ disables pedantic
23724 warnings.
23725
23726 2019-06-25 Jan Hubicka <jh@suse.cz>
23727
23728 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23729 base2_alias_set is non-zero before doing TBAA based disambiguation.
23730
23731 2019-06-25 Martin Liska <mliska@suse.cz>
23732
23733 PR tree-optimization/90973
23734 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23735 of prologue and epilogue.
23736
23737 2019-06-24 Jan Hubicka <jh@suse.cz>
23738
23739 * ipa-utils.h (type_with_linkage_p): Verify that type is
23740 CXX_ODR_P.
23741 (odr_type_p): Remove extra return.
23742 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23743 hash STRING_FLAG only for arrays and integers.
23744 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23745 Update analogously.
23746 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23747 Likewise.
23748 * print-tree.c (print_node): Print cxx-odr-p
23749 and string-flag.
23750 * tree.c (need_assembler_name_p): Also check that type
23751 is CXX_ODR_TYPE_P
23752 (verify_type_variant): Update verification of SRING_FLAG;
23753 also check CXX_ODR_P.
23754 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23755 (TYPE_STRING_FLAG): Use it.
23756 (TYPE_CXX_ODR_P): New macro.
23757 * dwarf2out.c (gen_array_type_die): First check that type
23758 is an array and then test string flag.
23759
23760 2019-06-24 Richard Biener <rguenther@suse.de>
23761
23762 PR tree-optimization/90972
23763 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23764 in common code, dealing with STRING_CST properly.
23765
23766 2019-06-24 Richard Biener <rguenther@suse.de>
23767
23768 PR tree-optimization/90930
23769 PR tree-optimization/90316
23770 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23771 decrement of limit.
23772
23773 2019-06-24 Martin Sebor <msebor@redhat.com>
23774
23775 * tree-pretty-print.h: Remove unnecessary punctuation characters
23776 from a diagnostic.
23777 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23778
23779 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23780
23781 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23782 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23783 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23784
23785 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23786
23787 * config/rs6000/darwin.h: Handle GCC target pragma.
23788
23789 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23790
23791 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23792
23793 2019-06-22 Jeff Law <law@redhat.com>
23794
23795 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23796
23797 2019-06-22 Jan Hubicka <jh@suse.cz>
23798
23799 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23800 give up on bitfields; continue searching for different refs
23801 appearing later.
23802
23803 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23804
23805 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23806 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23807 containing the offset as possible simd lane access. Look through
23808 widening conversion. Move the
23809 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23810
23811 2019-06-21 Richard Biener <rguenther@suse.de>
23812
23813 PR tree-optimization/90930
23814 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23815 flag on new stmts to avoid re-processing them.
23816
23817 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23818
23819 PR c++/90875 - added -Wswitch-outside-range option
23820 * doc/invoke.texi (Wswitch-outside-range): Document.
23821
23822 2019-06-21 Jeff Law <law@redhat.com>
23823
23824 PR tree-optimization/90949
23825 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23826 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23827
23828 2019-06-21 Richard Biener <rguenther@suse.de>
23829
23830 PR debug/90914
23831 * dwarf2out.c (prune_unused_types_walk): Always consider
23832 function-local extern declarations as used.
23833
23834 2019-06-21 Richard Biener <rguenther@suse.de>
23835
23836 PR tree-optimization/90913
23837 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23838 the scalar variant of if-conversion versioning.
23839
23840 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23841
23842 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23843 create another "omp scan inscan exclusive" array if
23844 !ctx->scan_inclusive.
23845 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23846 (lower_omp_scan): Likewise.
23847 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23848 2-bit bitfield for simd_lane_access_p member.
23849 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23850 aux == (void *)-4 as simd lane access.
23851 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23852 comment with permutations to show the canonical permutation order.
23853 (vectorizable_scan_store): Handle exclusive scan.
23854 (vectorizable_store): Call vectorizable_scan_store even for
23855 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23856
23857 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23858 "omp simd array" arrays with one byte elements.
23859
23860 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23861
23862 * config/alpha/alpha.md (@unaligned_store<mode>):
23863 Rename from unaligned_store<mode>.
23864 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23865 * config/alpha/sync.md (@load_locked_<mode>): Rename
23866 from load_locked_<mode>.
23867 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23868 (@atomic_compare_and_swap<mode>_1): Rename
23869 from atomic_compare_and_swap<mode>_1.
23870 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23871 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23872 Use gen_reload_in_aligned and gen_unaligned_store.
23873 (emit_load_locked): Remove.
23874 (emit_store_conditional): Ditto.
23875 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23876 (alpha_split_compare_and_swap): Ditto.
23877 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23878 (alpha_split_compare_and_swap_12): Use gen_load_locked
23879 and gen_store_conditional.
23880 (alpha_split_atomic_exchange): Ditto.
23881 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23882 (alpha_split_atomic_exchange_12): Use gen_load_locked
23883 and gen_store_conditional.
23884
23885 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23886
23887 * config/aarch64/aarch64-errata.h: New file.
23888 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23889 (CA53_ERR_843419_SPEC): Delete.
23890 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23891 * config/aarch64/aarch64-linux.h: Likewise.
23892 * config/aarch64/aarch64-netbsd.h: Likewise.
23893 * config/aarch64/aarch64-freebsd.h: Likewise.
23894
23895 2019-06-20 Marek Polacek <polacek@redhat.com>
23896
23897 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23898
23899 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23900
23901 * config/rs6000/rs6000.md (isa attribute): Add support for
23902 for a future processor.
23903
23904 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23905
23906 PR target/54855
23907 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23908 standard scalar operation pattern for V2DF.
23909 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23910 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23911 (*ieee_<ieee_maxmin><mode>3): Likewise.
23912 (vec_setv2df_0): Likewise.
23913
23914 2019-06-20 Jan Hubicka <jh@suse.cz>
23915
23916 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23917 parameter; it has no use in gimple memory model.
23918 (indirect_ref_may_alias_decl_p): Update.
23919
23920 2019-06-20 Martin Liska <mliska@suse.cz>
23921
23922 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23923 to 10.
23924
23925 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23926
23927 * tree-vect-stmts.c (enum scan_store_kind): New type.
23928 (scan_store_can_perm_p): Change last argument from int * to
23929 vec<enum scan_store_kind> *, record precisely which permutations
23930 need whole vector left shift or that plus VEC_COND_EXPR.
23931 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23932 and additional VEC_COND_EXPR only for those iterations that need it.
23933
23934 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23935
23936 * config.gcc: Fix ARM --with-fpu checking and error message.
23937
23938 2019-06-19 Marek Polacek <polacek@redhat.com>
23939
23940 PR c++/60364 - noreturn after first decl not diagnosed.
23941 * attribs.c (get_attribute_namespace): No longer static.
23942 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23943 attributes.
23944 (attr_noreturn_exclusions): Make it extern.
23945 * attribs.h (get_attribute_namespace): Declare.
23946 * tree-inline.c (function_attribute_inlinable_p): Use
23947 get_attribute_name.
23948
23949 2019-06-19 Martin Sebor <msebor@redhat.com>
23950
23951 PR tree-optimization/90626
23952 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23953
23954 PR tree-optimization/90626
23955 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23956 (handle_builtin_string_cmp): Call it.
23957
23958 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23959
23960 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23961 and DARWIN_NOPIE_SPEC.
23962 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23963 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23964 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23965 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23966 (DARWIN_EXPORT_DYNAMIC): Delete.
23967 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23968 and pie options processing to darwin.h.
23969 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23970
23971 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23972
23973 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23974 in computing the number of options to be moved.
23975
23976 2019-06-19 Maya Rashish <coypu@sdf.org>
23977
23978 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23979 (CLEAR_INSN_CACHE) Use it.
23980
23981 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23982
23983 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23984
23985 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23986
23987 PR middle-end/84521
23988 * builtins.c (expand_builtin_setjmp_setup): Save
23989 hard_frame_pointer_rtx.
23990 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23991 restore fp.
23992 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23993 non-local goto.
23994 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23995 elimination code.
23996 (remove_reg_equal_offset_note): Remove unused function.
23997 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23998 code.
23999 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24000 (arc_builtin_setjmp_frame_value): Remove function.
24001 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24002 (avr_builtin_setjmp_frame_value): Remove function.
24003 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24004 (ix86_builtin_setjmp_frame_value): Remove function.
24005 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
24006 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24007 (sparc_builtin_setjmp_frame_value): Remove function.
24008 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24009 (vax_builtin_setjmp_frame_value): Remove function.
24010 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
24011 pointer if has_nonlocal_label.
24012
24013 2019-06-19 Jakub Jelinek <jakub@redhat.com>
24014
24015 * doc/md.texi: Document vec_shl_<mode> pattern.
24016 * optabs.def (vec_shl_optab): New optab.
24017 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
24018 argument, if == vec_shl_optab, check for left whole vector shift
24019 pattern rather than right shift.
24020 (expand_vec_perm_const): Add vec_shl_optab support.
24021 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
24022 in the comment.
24023 * tree-vect-generic.c (lower_vec_perm): Support permutations which
24024 can be handled by vec_shl_optab.
24025 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
24026 (check_scan_store): Use it.
24027 (vectorizable_scan_store): If target can't do normal permutations,
24028 try to use whole vector left shifts and if needed a VEC_COND_EXPR
24029 after it.
24030 * config/i386/sse.md (vec_shl_<mode>): New expander.
24031
24032 * omp-low.c (lower_rec_input_clauses): Handle references properly
24033 in inscan clauses.
24034 (lower_omp_scan): Likewise.
24035
24036 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24037
24038 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
24039 mem_mode is BLKmode.
24040
24041 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
24042
24043 PR target/90922
24044 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
24045 pointer adjustment for the case of no callee-saved registers and
24046 stack frame bigger than 128 bytes.
24047
24048 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
24049
24050 PR middle-end/90862
24051 * omp-low.c (check_omp_nesting_restrictions): Handle
24052 GF_OMP_TARGET_KIND_OACC_DECLARE.
24053
24054 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
24055
24056 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
24057 (@add<mode>3_carry): Rename from add<mode>3_carry.
24058 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
24059 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
24060 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
24061 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
24062 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
24063 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
24064 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
24065 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
24066 (cmpstrnsi): Use gen_cmp_1.
24067 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
24068 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
24069 (@umonitor_<mode>): Rename from umonitor_<mode>.
24070 * config/i386/i386-expand.c (ix86_expand_copysign):
24071 Use gen_copysign3_const and gen_copysign3_var.
24072 (ix86_expand_xorsign): Use gen_xorsign3_1.
24073 (ix86_expand_branch): Use gen_sub3_carry_ccc,
24074 gen_sub3_carry_ccgz and gen_cmp1.
24075 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
24076 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
24077 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
24078 (ix86_split_lshr): Ditto.
24079 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
24080
24081 2019-06-18 Jason Merrill <jason@redhat.com>
24082
24083 * tree.c (build_constructor): Add MEM_STAT_DECL.
24084
24085 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24086
24087 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
24088 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
24089 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
24090 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
24091 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
24092 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
24093 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
24094 Use CC_NZC instead of CC.
24095 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
24096 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
24097 (aarch64_print_operand): Handle E_CC_NZCmode.
24098 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
24099 of gen_set_clobber_cc.
24100
24101 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24102
24103 * config/aarch64/aarch64-sve.md: Tabify file.
24104
24105 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24106
24107 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
24108 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
24109 * config/aarch64/aarch64-sve.md: Use it.
24110
24111 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24112
24113 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
24114 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
24115 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
24116 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
24117 (aarch64_expand_sve_vec_cmp_int): Use it.
24118 (aarch64_expand_sve_vec_cmp_float): Likewise.
24119 * config/aarch64/aarch64-sve.md: Likewise throughout.
24120
24121 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24122 Kugan Vivekanandarajah <kuganv@linaro.org>
24123
24124 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
24125 (*cond_<optab><mode>_z): Fold into...
24126 (*cond_<optab><mode>_any): ...here. Also handle cases in which
24127 operand 4 can be tied to operand 0 (either inherently or via RA).
24128
24129 2019-06-18 Richard Biener <rguenther@suse.de>
24130
24131 PR debug/90900
24132 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
24133 as if optimized away.
24134
24135 2019-06-18 Tom de Vries <tdevries@suse.de>
24136
24137 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
24138 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
24139 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
24140 Rename to ...
24141 (define_insn "@set_softstack_<mode>"): ... this.
24142 (define_insn "omp_simt_enter_<mode>"): Rename to ...
24143 (define_insn "@omp_simt_enter_<mode>"): ... this.
24144 (define_insn "omp_simt_exit_<mode>"): Rename to ...
24145 (define_insn "@omp_simt_exit_<mode>"): ... this.
24146
24147 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24148
24149 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
24150 vf parameter. Restore the previous iv step of nscalars_step,
24151 but give it iv_type rather than compare_type. Tweak code order
24152 to match the comments.
24153 (vect_set_loop_condition_masked): Update accordingly.
24154 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
24155 for iv_precision. Tweak comment formatting.
24156
24157 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24158
24159 * config/darwin.c: Strip trailing whitespace.
24160
24161 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24162
24163 * config/darwin.c (darwin_emit_unwind_label): New default to false.
24164 (darwin_override_options): Set darwin_emit_unwind_label as needed.
24165
24166 2019-06-18 Martin Jambor <mjambor@suse.cz>
24167
24168 PR ipa/90889
24169 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
24170 caller does not have flag_ipa_cp set.
24171
24172 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24173
24174 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
24175 from "*fold_left_plus_<mode>", updated operands order.
24176 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
24177 * internal-fn.c (mask_fold_left_direct): New define.
24178 (expand_mask_fold_left_optab_fn): Likewise.
24179 (direct_mask_fold_left_optab_supported_p): Likewise.
24180 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
24181 * optabs.def (mask_fold_left_plus_optab): New optab.
24182 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
24183 masked internal_fn for a reduction ifn.
24184 (vectorize_fold_left_reduction): Add support for masking reductions.
24185
24186 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
24187
24188 PR middle-end/80791
24189 * target.def (predict_doloop_p): New hook.
24190 * targhooks.h (default_predict_doloop_p): New declaration.
24191 * targhooks.c (default_predict_doloop_p): New function.
24192 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
24193 * doc/tm.texi: Regenerate.
24194 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
24195 (TARGET_PREDICT_DOLOOP_P): New macro.
24196 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
24197
24198 2019-06-17 Jakub Jelinek <jakub@redhat.com>
24199
24200 * omp-low.c (struct omp_context): Add scan_inclusive field.
24201 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
24202 if inclusive scan.
24203 (struct omplow_simd_context): Add lastlane member.
24204 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
24205 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
24206 1 or 2 argument.
24207 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
24208 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
24209 (lower_omp_scan): New function.
24210 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
24211 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
24212 check 3rd argument if present rather than 2nd.
24213 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
24214 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
24215 2-bit bitfield.
24216 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
24217 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
24218 than 2nd.
24219 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
24220 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
24221 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
24222 init.
24223 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
24224 IFN_GOMP_SIMD_LANE argument.
24225 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
24226 encoded ->aux value.
24227 * tree-vect-stmts.c: Include attribs.h.
24228 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
24229 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
24230 functions.
24231 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
24232 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
24233
24234 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
24235
24236 PR target/62055
24237 * config/i386/i386.md (*nabstf2_1): New insn pattern.
24238 (*nabs<mode>2_1): Ditto.
24239 (nabs sse-reg splitter): New splitter.
24240 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
24241
24242 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24243
24244 PR bootstrap/90873.
24245 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
24246 TMR index check.
24247
24248 2019-06-17 Tom de Vries <tdevries@suse.de>
24249
24250 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
24251 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
24252 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
24253 ...
24254 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
24255 match_operand 0.
24256 (define_insn "omp_simt_enter_insn"): Rename to ...
24257 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
24258 match_operand 0, 1 and 2, as well as the unspec_volatile result.
24259 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
24260 gen_omp_simt_enter_si.
24261 (define_expand "omp_simt_exit"): New.
24262 (define_insn "omp_simt_exit"): Rename to ...
24263 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
24264 match_operand 0.
24265
24266 2019-06-17 Matthew Green <mrg@eterna.com.au>
24267 Maya Rashish <coypu@sdf.org>
24268
24269 * config.gcc (aarch64*-*-netbsd*): New target.
24270 * config/aarch64/aarch64-netbsd.h: New file.
24271 * config/aarch64/t-aarch64-netbsd: Likewise.
24272
24273 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24274
24275 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
24276 the access path from base to first VIEW_CONVERT_EXPR or
24277 BIT_FIELD_REF.
24278
24279 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24280
24281 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
24282 access path on BIT_FIELD_REFs.
24283
24284 2019-06-17 Martin Liska <mliska@suse.cz>
24285
24286 PR ipa/90874
24287 * ipa-utils.h (odr_type_p): Remove dead code.
24288
24289 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24290
24291 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
24292 alternative Solaris 11.4 format.
24293 * configure: Regenerate.
24294
24295 2019-06-17 Tom de Vries <tdevries@suse.de>
24296
24297 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
24298 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
24299 match_operand 0.
24300 (define_insn "call_value_insn"): Rename to ...
24301 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
24302 match_operand 0.
24303 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
24304 DI.
24305
24306 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
24307
24308 PR middle-end/64242
24309 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
24310 frame clobbers and schedule block.
24311 (builtin_longjmp): Likewise.
24312
24313 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24314
24315 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
24316 describe how to perform MSPABI compliant 64-bit shift.
24317 * config/msp430/msp430.md (ashldi3): New define_expand.
24318 (ashrdi3): New define_expand.
24319 (lshrdi3): New define_expand.
24320
24321 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24322
24323 * doc/sourcebuild.texi: Document new effective target keyword
24324 longlong64.
24325
24326 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24327
24328 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
24329 indirect_refs_may_alias_p): Revert accidental commits.
24330
24331 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
24332 at the end of structures.
24333
24334 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24335
24336 * config/darwin.c (machopic_indirect_call_target): Use renamed
24337 darwin_picsymbol_stubs to decide on output.
24338 (darwin_override_options): Handle darwin_picsymbol_stubs.
24339 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
24340 (LD64_VERSION): Revise default.
24341 * config/darwin.opt: (mpic-symbol-stubs): New option.
24342 (darwin_picsymbol_stubs): New variable.
24343 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
24344 rename to TARGET_MACHO_PICSYM_STUBS.
24345 * config/i386/i386.c (output_pic_addr_const): Likewise.
24346 * config/i386/i386.h Likewise.
24347 * config/rs6000/darwin.h: Likewise.
24348 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
24349 darwin_picsymbol_stubs.
24350
24351 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24352
24353 * config/darwin.opt (prebind, noprebind, seglinkedit,
24354 noseglinkedit): Add RejectNegative.
24355
24356 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24357
24358 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
24359 in my previous patch.
24360
24361 2019-06-16 Tom de Vries <tdevries@suse.de>
24362
24363 PR tree-optimization/89376
24364 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
24365
24366 2019-06-15 Maya Rashish <coypu@sdf.org>
24367
24368 * doc/invoke.texi (Spec Files): Update location of the
24369 Fortran spec file.
24370
24371 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
24372
24373 * doc/extend.texi (Common Function Attributes): Clarify
24374 no_sanitize. Fix grammar.
24375
24376 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
24377
24378 * tree-ssa-alias.c (alias_stats): Add
24379 nonoverlapping_component_refs_p_may_alias,
24380 nonoverlapping_component_refs_p_no_alias,
24381 nonoverlapping_component_refs_of_decl_p_may_alias,
24382 nonoverlapping_component_refs_of_decl_p_no_alias.
24383 (dump_alias_stats): Dump them.
24384 (nonoverlapping_component_refs_of_decl_p): Add stats.
24385 (nonoverlapping_component_refs_p): Add stats; do not stop on first
24386 ARRAY_REF.
24387
24388 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
24389
24390 * config/i386/i386.md (and<mode>3): Generate zero-extends for
24391 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
24392 only.
24393 (*anddi3_doubleword): Split before reload. Merge with
24394 anddi->zext pre-reload splitter.
24395 (*andndi3_doubleword): Split before reload.
24396 (*<code>di3_doubleword): Ditto.
24397 (*one_cmpldi2_doubleword): Ditto.
24398
24399 2019-06-15 Jakub Jelinek <jakub@redhat.com>
24400
24401 PR middle-end/90779
24402 * gimplify.c: Include omp-offload.h and context.h.
24403 (gimplify_bind_expr): Add "omp declare target" attributes
24404 to static block scope variables inside of target region or target
24405 functions.
24406
24407 2019-06-15 Tom de Vries <tdevries@suse.de>
24408
24409 PR tree-optimization/90009
24410 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
24411 Return NULL if bb contains IFN_UNIQUE.
24412
24413 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
24414
24415 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
24416 (un): New define_mode_attr.
24417 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
24418 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
24419 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
24420 merge into ...
24421 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
24422
24423 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
24424
24425 * config/darwin.opt: Add RejectNegative where needed, reorder
24426 and add minimal functional descriptions.
24427
24428 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24429
24430 PR rtl-optimization/90765
24431 * calls.c (update_stack_alignment_for_call): New function.
24432 (expand_call): Call update_stack_alignment_for_call when
24433 outgoing parameter is passed in the stack.
24434 (emit_library_call_value_1): Likewise.
24435 * function.c (locate_and_pad_parm): Don't update
24436 stack_alignment_needed and preferred_stack_boundary.
24437
24438 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24439
24440 PR target/90877
24441 * config/i386/i386-features.c
24442 (dimode_scalar_chain::compute_convert_gain): Replace
24443 mmxsse_to_integer with sse_to_integer.
24444 * config/i386/i386.c (ix86_register_move_cost): Verify that
24445 moves between MMX and non-MMX units require secondary memory.
24446 Correct costs of moves between SSE and integer units.
24447 * config/i386/i386.h (processor_costs): Rename cost of moving
24448 SSE register to integer to sse_to_integer. Rename cost of
24449
24450 2019-06-14 Matt Thomas <matt@3am-software.com>
24451 Matthew Green <mrg@eterna.com.au>
24452 Nick Hudson <skrll@netbsd.org>
24453 Maya Rashish <coypu@sdf.org>
24454 Richard Earnshaw <rearnsha@arm.com>
24455
24456 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24457 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24458 * config/arm/netbsd-eabi.h: New file.
24459 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24460 redefining.
24461 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24462 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24463 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24464 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24465
24466 2019-06-14 Richard Biener <rguenther@suse.de>
24467
24468 * tree-loop-distribution.c (classify_partition): Return
24469 whether a reduction appeared in all partitions and do not
24470 stop builtin detection because of this.
24471 (distribute_loop): Sort a non-builtin partition last if
24472 there's a reduction in all partitions and make sure the
24473 partition prevailing as last is not a builtin.
24474
24475 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
24476
24477 PR ipa/90401
24478 * ipa-prop.c (add_to_agg_contents_list): New function.
24479 (clobber_by_agg_contents_list_p): Likewise.
24480 (extract_mem_content): Likewise.
24481 (get_place_in_agg_contents_list): Delete.
24482 (determine_known_aggregate_parts): Renamed from
24483 determine_locally_known_aggregate_parts. New parameter
24484 aa_walk_budget_p.
24485
24486 2019-06-13 Martin Sebor <msebor@redhat.com>
24487
24488 PR tree-optimization/90662
24489 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24490 to the same type.
24491
24492 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24493
24494 PR bootstrap/90873
24495 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24496 dbase is not TARGET_MEM_REF.
24497
24498 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24499
24500 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24501 Update all uses.
24502 (and<mode>3): Use gen_extend_insn instead of indirect functions.
24503 Do not generate DImode extends for 32bit targets.
24504 (and->zext post-reload splitter): Use gen_extend_insn
24505 instead of indirect functions.
24506 (anddi->zext pre-reload splitter): New.
24507 (*zext<mode>_doubleword_and): Remove.
24508 (*zext<mode>_doubleword): Ditto.
24509 (*zextsi_doubleword): Dittto.
24510
24511 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24512
24513 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24514 Use gen_sub3_insn instead of indirect function.
24515 (ix86_expand_ashl_const): Use gen_add2_insn instead of
24516 indirect function.
24517 (ix86_adjust_counter): Ditto.
24518
24519 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24520 Lijia He <helijia@linux.ibm.com>
24521
24522 PR tree-optimization/77820
24523 * tree-ssa-threadedge.c
24524 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24525 function.
24526 (thread_across_edge): Add call to
24527 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24528
24529 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24530
24531 * config/darwin-driver.c (validate_macosx_version_min): New.
24532 (darwin_default_min_version): Cleanup and validate supplied version.
24533 (darwin_driver_init): Likewise and push cleaned version into opts.
24534
24535 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24536
24537 PR tree-optimization/90869
24538 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24539 converts in MEM_REF referencing decl rather than view converts
24540 from decl type to MEM_REF type.
24541
24542 2019-06-13 Richard Biener <rguenther@suse.de>
24543
24544 PR tree-optimization/90856
24545 * tree-sra.c (build_ref_for_model): Only use
24546 build_reconstructed_reference when address-spaces are the same.
24547
24548 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24549
24550 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24551 wrap ei variable name in the declaration in ()s.
24552 (nvptx_single): Actually use mode_label variable. Formatting fix.
24553
24554 2019-06-13 Richard Biener <rguenther@suse.de>
24555
24556 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24557 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24558 also return the condition stmt.
24559 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24560 loop we can version and version that, reusing the loop version
24561 created by if-conversion instead of versioning again.
24562
24563 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24564
24565 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24566 may_contain_p.
24567 * tree-vrp (value_range_base::may_contain_p): Call into
24568 value_inside_range.
24569 (value_inside_range): Make private inside value_range_base class.
24570 Take min/max from *this.
24571 (range_includes_p): Remove.
24572 * tree-vrp.h (value_range_base): Add value_inside_range.
24573 (range_includes_p): Remove.
24574 (range_includes_zero_p): Call may_contain_p.
24575 * vr-values.c (compare_range_with_value): Same.
24576
24577 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24578
24579 * doc/extend.texi (ARC Function Attributes): Update info.
24580
24581 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24582
24583 PR tree-optimization/89713
24584 * doc/invoke.texi (-ffinite-loops): Document new option.
24585 * common.opt (-ffinite-loops): New option.
24586 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24587 IFN_GOACC_LOOP calls as necessary.
24588 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24589 is finite.
24590 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24591 IFN_GOACC_LOOP call is not used.
24592 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24593
24594 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24595
24596 PR target/88838
24597 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24598 compare_type is not with Pmode size, we will create an IV with
24599 Pmode size with truncated use (i.e. converted to the correct type).
24600 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24601 (vect_iv_limit_for_full_masking): New. Factored out of
24602 vect_set_loop_condition_masked.
24603 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24604 (vect_iv_limit_for_full_masking): Declare.
24605
24606 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24607
24608 PR target/88834
24609 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24610 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24611 (get_alias_ptr_type_for_ptr_address): Likewise.
24612 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24613 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24614 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24615 allow_reg_index_p.
24616
24617 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24618
24619 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24620
24621 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24622
24623 * common/config/pru/pru-common.c: New file.
24624 * config.gcc: Add PRU target.
24625 * config/pru/alu-zext.md: New file.
24626 * config/pru/constraints.md: New file.
24627 * config/pru/predicates.md: New file.
24628 * config/pru/pru-opts.h: New file.
24629 * config/pru/pru-passes.c: New file.
24630 * config/pru/pru-pragma.c: New file.
24631 * config/pru/pru-protos.h: New file.
24632 * config/pru/pru.c: New file.
24633 * config/pru/pru.h: New file.
24634 * config/pru/pru.md: New file.
24635 * config/pru/pru.opt: New file.
24636 * config/pru/t-pru: New file.
24637 * doc/extend.texi: Document PRU pragmas.
24638 * doc/invoke.texi: Document PRU-specific options.
24639 * doc/md.texi: Document PRU asm constraints.
24640
24641 2019-06-12 Martin Sebor <msebor@redhat.com>
24642
24643 PR middle-end/90676
24644 * tree-pretty-print.c (dump_mem_ref): New function. Include
24645 MEM_REF type in output when different size than operand.
24646 (dump_generic_node): Move code to dump_mem_ref and call it.
24647
24648 2019-06-12 Martin Sebor <msebor@redhat.com>
24649
24650 PR tree-optimization/90662
24651 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24652 to arrays.
24653
24654 2019-06-12 Tom de Vries <tdevries@suse.de>
24655
24656 PR tree-optimization/90009
24657 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24658
24659 2019-06-12 Martin Liska <mliska@suse.cz>
24660
24661 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24662 the created map.
24663 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24664 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24665 Do not sanitize created maps.
24666
24667 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24668
24669 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24670 value_range::singleton_p.
24671 * tree-vrp.c (value_range_constant_singleton): Remove.
24672 * tree-vrp.h (value_range_constant_singleton): Remove.
24673 * vr-values.c (vr_values::singleton): Use
24674 value_range::singleton_p.
24675
24676 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24677
24678 PR target/90811
24679 * cfgexpand.c (align_local_variable): Add really_expand argument,
24680 don't SET_DECL_ALIGN if it is false.
24681 (add_stack_var): Add really_expand argument, pass it through to
24682 align_local_variable.
24683 (expand_one_stack_var_1): Pass true as really_expand to
24684 align_local_variable.
24685 (expand_one_ssa_partition): Pass true as really_expand to
24686 add_stack_var.
24687 (expand_one_var): Pass really_expand through to add_stack_var.
24688
24689 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24690
24691 * config/arm/iterators.md (VABAL): New int iterator.
24692 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24693 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24694 UNSPEC_VABAL_U values.
24695
24696 2019-06-12 Martin Liska <mliska@suse.cz>
24697
24698 * value-prof.c (stream_out_histogram_value): Only first value
24699 can't be negative.
24700
24701 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24702
24703 PR c/90760
24704 * symtab.c (symtab_node::set_section): Allow being called on aliases
24705 as long as they aren't analyzed yet.
24706
24707 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24708
24709 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24710 to `mips_set_text_contents_type' to indicate whether a
24711 non-debug insn follows.
24712
24713 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24714
24715 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24716 enabling -mpcrel by default.
24717 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24718 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24719 that the test against -mcpu=future is done first. Then test if
24720 -mprefixed-addr is on for -mpcrel.
24721 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24722
24723 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24724
24725 PR target/90811
24726 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24727 instead of and.u%d.
24728
24729 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24730
24731 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24732
24733 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24734
24735 PR c++/90449 - add -Winaccessible-base option.
24736 * doc/invoke.texi (Winaccessible-base): Document.
24737
24738 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24739
24740 PR tree-optimization/62041
24741 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24742
24743 2019-06-11 Jason Merrill <jason@redhat.com>
24744
24745 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24746 * tree.c (get_tree_code_name): Likewise.
24747 * print-tree.c (print_node): Only briefly print a node with an
24748 invalid code.
24749
24750 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24751
24752 PR bootstrap/90819
24753 * trans-mem.c (tm_memopt_compute_available): Add assertion
24754 that blocks is not empty. Formatting fix.
24755
24756 2019-06-11 Martin Liska <mliska@suse.cz>
24757
24758 PR c++/87847
24759 * hash-table.h: Extend create_gcc, add one parameter
24760 that is passed into hash_table::hash_table.
24761
24762 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24763
24764 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24765 New prototype.
24766 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24767 Emit clobber also for non-sse operations.
24768 (ix86_split_fp_absneg_operator): New function.
24769 * config/i386/i386.md (SSEMODEF): New mode iterator.
24770 (ssevecmodef): New mode attribute.
24771 (<code>tf2): Use absneg code iterator.
24772 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24773 Add three-operand AVX alternatives.
24774 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24775 Use absneg code iterator and X87MODEF mode iterator.
24776 (absneg fp_reg non-sse splitter): Call absneg code iterator
24777 and X87MODEF mode iterator.
24778 (absneg general_reg non-sse splitter): Use absneg code iterator
24779 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24780 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24781 code iterator. Add three-operand AVX alternative.
24782 (absneg sse_reg splitter): Use absneg code iterator
24783 and SSEMODEF mode iterator. Handle AVX operands.
24784 (absneg fp_reg splitter): Use absneg code iterator
24785 and MODEF mode iterator.
24786 (absneg general_reg splitter): Merge splitters using MODEF mode
24787 iterator. Use absneg code iterator. Call
24788 ix86_split_fp_absneg_operator.
24789 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24790 Do not enable for non-sse modes before reload.
24791 (CSGNMODE): Remove.
24792 (CSGNVMODE): Ditto.
24793 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24794 ssevecmodef mode attribute instaed of CSGNVMODE.
24795 (copysign<mode>3_const): Ditto.
24796 (copysign<mode>3_var): Ditto.
24797 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24798 Use absneg code iterator. Simplify code using std::swap.
24799 * config/i386/predicates.md (absneg_operator): Remove.
24800
24801 2019-06-10 Martin Sebor <msebor@redhat.com>
24802
24803 * gimple-fold.c (get_range_strlen): Update comment that didn't
24804 make it into r267503 or related commits.
24805
24806 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24807
24808 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24809 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24810
24811 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24812
24813 * tree.def (OMP_SCAN): New tree code.
24814 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24815 OMP_CLAUSE_EXCLUSIVE.
24816 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24817 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24818 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24819 OMP_CLAUSE_{IN,EX}CLUSIVE.
24820 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24821 * tree-nested.c (convert_nonlocal_reference_stmt,
24822 convert_local_reference_stmt, convert_gimple_call): Handle
24823 GIMPLE_OMP_SCAN.
24824 * tree-pretty-print.c (dump_omp_clause): Handle
24825 OMP_CLAUSE_{IN,EX}CLUSIVE.
24826 (dump_generic_node): Handle OMP_SCAN.
24827 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24828 * gimple.h (gomp_scan): New type.
24829 (is_a_helper <gomp_scan *>::test,
24830 is_a_helper <const gomp_scan *>::test): New templates.
24831 (gimple_build_omp_scan): Declare.
24832 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24833 gimple_omp_scan_set_clauses): New inline functions.
24834 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24835 * gimple.c (gimple_build_omp_scan): New function.
24836 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24837 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24838 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24839 GIMPLE_OMP_TASKGROUP.
24840 (dump_gimple_omp_scan): New function.
24841 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24842 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24843 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24844 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24845 (is_gimple_stmt): Handle OMP_SCAN.
24846 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24847 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24848 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24849 mentioned in nested #pragma omp scan. Handle
24850 OMP_CLAUSE_{IN,EX}CLUSIVE.
24851 (gimplify_expr): Handle OMP_SCAN.
24852 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24853 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24854 simd constructs.
24855 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24856 GIMPLE_OMP_SCAN.
24857
24858 2019-06-10 Martin Liska <mliska@suse.cz>
24859
24860 * ipa-cp.c (ignore_edge_p): New function.
24861 (build_toporder_info): Use it.
24862 * ipa-inline.c (ignore_edge_p): New function.
24863 (inline_small_functions): Use it.
24864 * ipa-pure-const.c (ignore_edge_for_nothrow):
24865 Verify opt_for_fn for caller and callee.
24866 (ignore_edge_for_pure_const): Likewise.
24867 * ipa-reference.c (ignore_edge_p): Extend to check
24868 for opt_for_fn.
24869 * ipa-utils.c (searchc): Refactor.
24870 * ipa-utils.h: Fix coding style.
24871
24872 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24873
24874 * config/arc/arc.c (arc_rtx_costs): Update costs.
24875
24876 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24877
24878 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24879 (arc_split_ior): Likewise.
24880 (arc_check_mov_const): Likewise.
24881 (arc_split_mov_const): Likewise.
24882 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24883 (arc_rtx_costs): Replace check Crr with Cax constraint.
24884 (prepare_move_operands): Cleanup, remove unused code.
24885 (arc_split_ior): New function.
24886 (arc_check_ior_const): Likewise.
24887 (arc_split_mov_const): Likewise.
24888 (arc_check_mov_const): Likewise.
24889 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24890 in define_insn_and_split pattern.
24891 (iorsi3): Likewise.
24892 (mulsi3_v2): Add new matching variant.
24893 (andsi3_i): Cleanup pattern.
24894 (rotrsi3_cnt1): Update pattern.
24895 (rotrsi3_cnt8): New pattern.
24896 (ashlsi2_cnt8): Likewise.
24897 (ashlsi2_cnt16): Likewise.
24898 * config/arc/constraints.md (C0p): Update constraint.
24899 (Crr): Remove it.
24900 (C0x): New pattern.
24901 (Cax): New pattern.
24902
24903 2019-06-10 Martin Liska <mliska@suse.cz>
24904
24905 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24906 Update coding style.
24907 (sem_item_optimizer::dump_cong_classes):
24908 Print how many items are in a non-singular class. Improve
24909 coding style.
24910
24911 2019-06-10 Martin Liska <mliska@suse.cz>
24912
24913 * value-prof.c (dump_histogram_value): Change dump format.
24914 (gimple_mod_subtract_transform): Remove legacy comment.
24915
24916 2019-06-10 Martin Liska <mliska@suse.cz>
24917
24918 * value-prof.c (dump_histogram_value): Print histogram values
24919 only if present.
24920
24921 2019-06-10 Martin Liska <mliska@suse.cz>
24922
24923 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24924 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24925 * ipa-profile.c (ipa_profile_generate_summary):
24926 Use get_most_common_single_value.
24927 * tree-profile.c (gimple_init_gcov_profiler):
24928 Instrument with __gcov_one_value_profiler_v2
24929 and __gcov_indirect_call_profiler_v4.
24930 * value-prof.c (dump_histogram_value):
24931 Print all values for HIST_TYPE_SINGLE_VALUE.
24932 (stream_out_histogram_value): Update assert for
24933 N values.
24934 (stream_in_histogram_value): Set number of
24935 counters for HIST_TYPE_SINGLE_VALUE.
24936 (get_most_common_single_value): New.
24937 (gimple_divmod_fixed_value_transform):
24938 Use get_most_common_single_value.
24939 (gimple_ic_transform): Likewise.
24940 (gimple_stringops_transform): Likewise.
24941 (gimple_find_values_to_profile): Set number
24942 of counters for HIST_TYPE_SINGLE_VALUE.
24943 * value-prof.h (get_most_common_single_value): New.
24944
24945 2019-06-10 Martin Liska <mliska@suse.cz>
24946
24947 * hash-map.h: Pass default value to hash_table ctor.
24948 * hash-table.h: Add default value to call of a ctor.
24949
24950 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24951
24952 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24953 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24954
24955 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24956
24957 PR target/90751
24958 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24959 Call pa_output_function_label.
24960 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24961 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24962 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24963 to declaration.
24964 (pa_linux_output_function_prologue): Declare.
24965 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24966 (pa_output_function_label): New.
24967 (pa_output_function_prologue): Revise to use pa_output_function_label.
24968 (pa_linux_output_function_prologue): New.
24969 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24970
24971 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24972
24973 * tree-vrp.h (value_range_base::intersect): New.
24974 (value_range::intersect_helper): Move from here...
24975 (value_range_base::intersect_helper): ...to here.
24976 * tree-vrp.c (value_range::intersect_helper): Rename to...
24977 (value_range_base::intersect_helper): ...this, and rewrite to
24978 return a value instead of modifying THIS in place.
24979 Also, move equivalence handling...
24980 (value_range::intersect): ...here, while calling intersect_helper.
24981 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24982 calling intersect.
24983 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24984 Same.
24985 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24986
24987 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24988
24989 * Makefile.in (genprogerr): Add condmd.
24990 (genprog): Remove it here.
24991
24992 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24993
24994 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24995
24996 2019-06-07 Richard Biener <rguenther@suse.de>
24997
24998 PR debug/90574
24999 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
25000 that appear after user labels.
25001
25002 2019-06-07 Martin Liska <mliska@suse.cz>
25003
25004 * cselib.c (cselib_init): Disable hash table
25005 sanitization.
25006 * hash-set.h: Pass new default argument to m_table.
25007 * hash-table.c: Add global variable with hash table
25008 sanitization limit.
25009 * hash-table.h (Allocator>::hash_table): Add new argument
25010 to ctor.
25011 (hashtab_chk_error): New.
25012 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
25013 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
25014 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
25015
25016 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
25017
25018 * common.opt (flto-odr-type-merging): Ignore.
25019 * invoke.texi (-flto-odr-type-merging): Remove.
25020 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
25021 (can_be_vtable_hashed_p): Remove.
25022 (hash_odr_vtable): Remove.
25023 (odr_vtable_hasher::hash): Remove.
25024 (types_same_for_odr): Remove.
25025 (types_odr_comparable): Remove.
25026 (odr_vtable_hasher::equal): Remove.
25027 (odr_vtable_hash_type, odr_vtable_hash): Remove.
25028 (add_type_duplicate): Do not synchronize vtable and name hashtables.
25029 (get_odr_type): Do not use vtable hash.
25030 (dump_odr_type): Remove commented out code.
25031 (build_type_inheritance_graph): Do not allocate vtable hash.
25032 (rebuild_type_inheritance_graph): Do not delete vtable hash.
25033 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
25034 (odr_type_p): Likewise.
25035 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
25036 test.
25037
25038 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
25039
25040 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
25041 immediately after same_types_for_tbaa_p returns -1 and continue
25042 looking for possible exact match; if matching types are arrays
25043 watch for partial overlaps.
25044 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
25045 (indirect_refs_may_alias_p): Do type based disambiguation first;
25046 update comment.
25047
25048 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
25049
25050 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
25051
25052 2019-06-07 Martin Liska <mliska@suse.cz>
25053
25054 * doc/invoke.texi: Remove param.
25055 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
25056 Remove.
25057 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
25058 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
25059 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
25060 * profile.c (instrument_values): Remove
25061 HIST_TYPE_INDIR_CALL_TOPN.
25062 * tree-profile.c (init_ic_make_global_vars):
25063 Always build __gcov_indirect_call only.
25064 (gimple_init_gcov_profiler): Remove usage
25065 of PARAM_INDIR_CALL_TOPN_PROFILE.
25066 (gimple_gen_ic_profiler): Likewise.
25067 * value-prof.c (dump_histogram_value): Likewise.
25068 (stream_in_histogram_value): Likewise.
25069 (gimple_indirect_call_to_profile): Likewise.
25070 (gimple_find_values_to_profile): Likewise.
25071 * value-prof.h (enum hist_type): Likewise.
25072
25073 2019-06-07 Martin Liska <mliska@suse.cz>
25074
25075 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
25076 function.
25077
25078 2019-06-07 Martin Liska <mliska@suse.cz>
25079
25080 PR tree-optimization/78902
25081 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
25082 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
25083 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25084 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25085 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
25086 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25087 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
25088 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
25089 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25090 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25091 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25092 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
25093 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
25094 New.
25095 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
25096 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
25097 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
25098 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25099 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25100 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
25101 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25102 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25103 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
25104 warn_unused_result attribute.
25105 (BUILT_IN_STRDUP): Likewise.
25106 (BUILT_IN_STRNDUP): Likewise.
25107 (BUILT_IN_ALLOCA): Likewise.
25108 (BUILT_IN_CALLOC): Likewise.
25109 (BUILT_IN_MALLOC): Likewise.
25110 (BUILT_IN_REALLOC): Likewise.
25111
25112 2019-06-06 Jim Wilson <jimw@sifive.com>
25113
25114 PR target/89955
25115 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
25116 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
25117 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
25118
25119 2019-06-06 Martin Sebor <msebor@redhat.com>
25120
25121 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
25122 (handle_builtin_malloc): Remove trailing spaces.
25123 (handle_builtin_memset): Same.
25124 (handle_builtin_memcmp): Same.
25125 (compute_string_length): Same.
25126 (determine_min_objsize): Same.
25127 (handle_builtin_string_cmp): Same.
25128 (handle_char_store): Same. Break up excessively long line.
25129
25130 2019-06-06 Martin Jambor <mjambor@suse.cz>
25131
25132 * tree-sra.c (build_reconstructed_reference): Drop the alignment
25133 check.
25134
25135 2019-06-06 Martin Jambor <mjambor@suse.cz>
25136
25137 * tree-sra.c (struct access): New field grp_same_access_path.
25138 (dump_access): Dump it.
25139 (build_reconstructed_reference): New function.
25140 (build_ref_for_model): Use it if possible.
25141 (path_comparable_for_same_access): New function.
25142 (same_access_path_p): Likewise.
25143 (sort_and_splice_var_accesses): Set the new flag.
25144 (analyze_access_subtree): Likewise.
25145 (propagate_subaccesses_across_link): Propagate zero value of the new
25146 flag down the access tree.
25147
25148 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
25149
25150 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
25151 * config/gcn/gcn.opt (gpu_type): Add gfx906.
25152 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
25153 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
25154 Add gfx906.
25155
25156 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25157
25158 PR tree-optimization/90332
25159 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
25160 Handle VALS containing two vectors.
25161 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
25162 to...
25163 (@aarch64_combinez<mode>): ... This.
25164 (*aarch64_combinez_be<mode>): Rename to...
25165 (@aarch64_combinez_be<mode>): ... This.
25166 (vec_init<mode><Vhalf>): New define_expand.
25167 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
25168
25169 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25170
25171 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
25172 library functions only when not optimizing for size.
25173 (ashlsi3): Likewise.
25174 (ashrhi3): Likewise.
25175 (ashrsi3): Likewise.
25176 (lshrhi3): Likewise.
25177 (lshrsi3): Likewise.
25178
25179 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
25180
25181 PR rtl-optimization/88751
25182 * ira.c (ira): Use the number of the actually referenced registers
25183 when calculating the threshold.
25184
25185 2019-06-06 Jakub Jelinek <jakub@redhat.com>
25186
25187 * configure: Regenerate.
25188
25189 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25190
25191 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
25192 register if it is in memory, so the shift can be emulated with a rotate
25193 instruction.
25194 (ashrhi3): Likewise.
25195 (lshrhi3): Likewise.
25196
25197 2019-06-06 Martin Liska <mliska@suse.cz>
25198
25199 PR tree-optimization/87954
25200 * match.pd: Simplify mult where both arguments are 0 or 1.
25201
25202 2019-06-06 Richard Biener <rguenther@suse.de>
25203
25204 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
25205 put equivalences on UNDEFINED ranges.
25206 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
25207 Make sure to drop defs of stmts added during simplification
25208 to VARYING.
25209
25210 2019-06-06 Richard Biener <rguenther@suse.de>
25211
25212 * tree-ssa-structalias.c: Include tree-cfg.h.
25213 (make_heapvar): Do not make heap vars artificial.
25214 (find_func_aliases_for_builtin_call): Handle stack allocation
25215 functions.
25216 (find_func_aliases): Delay processing of simple enough returns
25217 in non-IPA mode.
25218 (set_uids_in_ptset): Adjust.
25219 (find_what_var_points_to): Likewise.
25220 (solve_constraints): Do not dump points-to sets here.
25221 (compute_points_to_sets): Post-process return statements,
25222 amending the escaped solution. Dump points-to sets afterwards.
25223 (ipa_pta_execute): Dump points-to sets.
25224
25225 2019-06-06 Martin Liska <mliska@suse.cz>
25226
25227 PR web/87933
25228 * doc/install.texi: Fix HTML headers and
25229 titles for 'Installing GCC' pages.
25230
25231 2019-06-06 Martin Liska <mliska@suse.cz>
25232
25233 * ipa-icf-gimple.h (dump_message_1): Remove.
25234 (dump_message): Likewise.
25235 (return_false_with_message_1): Print also file.
25236 (return_false_with_msg): Likewise.
25237 (return_with_result): Likewise.
25238 (return_with_debug): Likewise.
25239 * ipa-icf.c (sem_function::equals_private): Remove call
25240 to dump_message.
25241
25242 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25243
25244 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
25245 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
25246 memory operand for it.
25247 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
25248
25249 2019-06-05 Martin Sebor <msebor@redhat.com>
25250
25251 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
25252 Adjust quoting and hyphenation.
25253 * convert.c (convert_to_real_1): Same.
25254 * gcc.c (driver_wrong_lang_callback): Same.
25255 (driver::handle_unrecognized_options): Same.
25256 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
25257 * opts-common.c (cmdline_handle_error): Same.
25258 (read_cmdline_option): Same.
25259 * opts-global.c (complain_wrong_lang): Same.
25260 (print_ignored_options): Same.
25261 (handle_common_deferred_options): Same.
25262 * pretty-print.h: Same.
25263 * print-rtl.c (debug_bb_n_slim): Same.
25264 * sched-rgn.c (make_pass_sched_fusion): Same.
25265 * tree-cfg.c (verify_gimple_assign_unary): Same.
25266 (verify_gimple_label): Same.
25267 * tree-ssa-operands.c (verify_ssa_operands): Same.
25268 * varasm.c (do_assemble_alias): Same.
25269 (assemble_alias): Same.
25270
25271 2019-06-05 Richard Henderson <rth@twiddle.net>
25272
25273 * config/alpha/alpha.c (direct_return): Move down after
25274 struct machine_function definition; use saved frame_size;
25275 return bool.
25276 (struct machine_function): Add sa_mask, sa_size, frame_size.
25277 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
25278 (alpha_compute_frame_layout): ... new function.
25279 (TARGET_COMPUTE_FRAME_LAYOUT): New.
25280 (alpha_initial_elimination_offset): Use saved sa_size.
25281 (alpha_vms_initial_elimination_offset): Likewise.
25282 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
25283 (alpha_expand_prologue): Use saved frame data. Merge integer
25284 and fp register save loops.
25285 (alpha_expand_epilogue): Likewise.
25286 (alpha_start_function): Use saved frame data.
25287 * config/alpha/alpha-protos.h (direct_return): Update.
25288 (alpha_sa_size): Remove.
25289
25290 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
25291
25292 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
25293 multiplication by a power-of-two value.
25294 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
25295 and turn the modulo operation into a masking operation.
25296
25297 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25298
25299 PR debug/90733
25300 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
25301 with VOIDmode inner operands.
25302
25303 2019-06-05 Richard Biener <rguenther@suse.de>
25304
25305 PR middle-end/90726
25306 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
25307 turn an expression graph into a tree.
25308
25309 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25310
25311 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
25312 member.
25313 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
25314 treat it like explicit monotonic schedule modifier.
25315 (expand_omp_for): Initialize has_lastprivate_conditional.
25316 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
25317 schedule modifier.
25318
25319 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
25320 references, lookup in in hash map MEM_REF operand instead of the
25321 MEM_REF itself.
25322 (lower_omp_1): When looking for lastprivate conditional assignments,
25323 handle MEM_REFs with REFERENCE_TYPE operands.
25324
25325 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
25326 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
25327 and references a VLA. Handle references to non-VLAs if is_simd
25328 all privatization clauses like reductions.
25329 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
25330 If omp_is_reference, use always omp simd arrays and set
25331 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
25332 fails, emit reference initialization.
25333
25334 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25335
25336 PR target/89803
25337 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
25338 _mm_mask_fpclass_sd_mask): New intrinsics.
25339 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
25340 * config/i386/i386-builtin.def
25341 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
25342 New builtins.
25343 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
25344 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
25345 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
25346 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
25347 case QI_FTYPE_V2SF_INT): Ditto.
25348 * config/i386/sse.md
25349 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
25350 Extended to insnstructions with mask operands.
25351
25352 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25353
25354 * config/rs6000/constraints.md (define_register_constraint "wp"):
25355 Delete.
25356 (define_register_constraint "wq"): Delete.
25357 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25358 (rs6000_init_hard_regno_mode_ok): Adjust.
25359 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25360 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
25361 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
25362 (define_mode_attr VSa): Delete.
25363 (define_mode_attr VSisa): New.
25364 (rest of file): Adjust.
25365 * doc/md.texi (Machine Constraints): Adjust.
25366
25367 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25368
25369 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
25370 (define_attr "enabled"): Handle those new isa values.
25371
25372 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25373
25374 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
25375 (define_mode_attr VSr5): Delete.
25376 (define_mode_attr VStype_sqrt): Delete.
25377 (define_mode_iterator VSX_SPDP): Delete.
25378 (define_mode_attr VS_spdp_res): Delete.
25379 (define_mode_attr VS_spdp_insn): Delete.
25380 (define_mode_attr VS_spdp_type): Delete.
25381 (*vsx_sqrt<mode>2): Adjust.
25382 (vsx_<VS_spdp_insn>): Delete, split to...
25383 (vsx_xscvdpsp): ... this. New. And...
25384 (vsx_xvcvspdp): ... this. New. And...
25385 (vsx_xvcvdpsp): ... this. New.
25386
25387 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25388
25389 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
25390 and V2DF.
25391 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
25392 (rest of file): Adjust.
25393
25394 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25395
25396 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
25397 (vsx_extract_<mode>_var): Ditto.
25398
25399 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25400
25401 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
25402 with just "wa".
25403
25404 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25405
25406 * config/rs6000/constraints.md (define_register_constraint "ww"):
25407 Delete.
25408 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25409 (rs6000_init_hard_regno_mode_ok): Adjust.
25410 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25411 RS6000_CONSTRAINT_ww.
25412 * config/rs6000/rs6000.md: Adjust.
25413 * config/rs6000/vsx.md: Adjust.
25414 * doc/md.texi (Machine Constraints): Adjust.
25415
25416 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25417
25418 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
25419 (define_mode_attr sd): New.
25420 (define_mode_attr s): New.
25421 (define_mode_attr Ftrad): Delete.
25422 (define_mode_attr Fvsx): Delete.
25423 (define_mode_attr Fs): Delete.
25424 (rest of file): Use the new mode attributes.
25425 * config.rs6000/vsx.md: Use the new mode attributes.
25426
25427 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25428
25429 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
25430 with just "wa".
25431
25432 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25433
25434 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
25435 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
25436 used with VSX_B, VSX_D, or VSX_F, with just "wa".
25437
25438 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
25439
25440 PR target/78263
25441 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25442 C++ with strict ANSI requirements.
25443
25444 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
25445
25446 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25447 computations when step is 1.
25448
25449 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25450
25451 * config/rs6000/constraints.md (define_register_constraint "wf"):
25452 Delete.
25453 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25454 (rs6000_init_hard_regno_mode_ok): Adjust.
25455 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25456 RS6000_CONSTRAINT_wf.
25457 * config/rs6000/rs6000.md: Adjust.
25458 * config/rs6000/vsx.md: Adjust.
25459 * doc/md.texi (Machine Constraints): Adjust.
25460
25461 2019-06-04 Andrew Pinski <apinski@marvell.com>
25462
25463 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25464 Fix ILP32 value.
25465
25466 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25467
25468 * config/rs6000/constraints.md (define_register_constraint "wd"):
25469 Delete.
25470 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25471 (rs6000_init_hard_regno_mode_ok): Adjust.
25472 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25473 RS6000_CONSTRAINT_wd.
25474 * config/rs6000/rs6000.md: Adjust.
25475 * config/rs6000/vsx.md: Adjust.
25476 * doc/md.texi (Machine Constraints): Adjust.
25477
25478 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25479
25480 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25481 (rest of file): Adjust.
25482
25483 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25484
25485 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25486 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25487 (vsx_splat_<mode>_reg): Adjust.
25488
25489 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25490
25491 * config/rs6000/constraints.md (define_register_constraint "ws"):
25492 Delete.
25493 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25494 (rs6000_init_hard_regno_mode_ok): Adjust.
25495 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25496 RS6000_CONSTRAINT_ws.
25497 * config/rs6000/rs6000.md: Adjust.
25498 * config/rs6000/vsx.md: Adjust.
25499 * doc/md.texi (Machine Constraints): Adjust.
25500
25501 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25502
25503 * config/rs6000/constraints.md (define_register_constraint "wv"):
25504 Delete.
25505 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25506 (rs6000_init_hard_regno_mode_ok): Adjust.
25507 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25508 RS6000_CONSTRAINT_wv.
25509 * config/rs6000/rs6000.md: Adjust.
25510 * config/rs6000/vsx.md: Adjust.
25511 * doc/md.texi (Machine Constraints): Adjust.
25512
25513 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25514
25515 * config/rs6000/constraints.md (define_register_constraint "wi"):
25516 Delete.
25517 (define_register_constraint "wt"): Delete.
25518 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25519 (rs6000_init_hard_regno_mode_ok): Adjust.
25520 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25521 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25522 * config/rs6000/rs6000.md: Adjust.
25523 * config/rs6000/vsx.md: Adjust.
25524 * doc/md.texi (Machine Constraints): Adjust.
25525
25526 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25527
25528 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25529 const.
25530 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25531 default_elf_asm_output_external.
25532
25533 2019-06-04 Martin Liska <mliska@suse.cz>
25534
25535 * ipa-icf.c (INCLUDE_LIST): Remove.
25536 (sem_item_optimizer::execute): Remove call to init_wpa.
25537 * ipa-icf.h (init_wpa): Remove.
25538
25539 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25540
25541 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25542 conditional on combined for simd.
25543 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25544 member.
25545 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25546 constructs, don't remove lastprivate_conditional_map, but instead set
25547 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25548 to parent construct temporaries.
25549 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25550 like !ctx->lastprivate_conditional_map.
25551 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25552 use up->outer context instead of up.
25553 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25554 gimple_omp_for_combined_p.
25555 (expand_omp_for_static_nochunk): Likewise.
25556 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25557 probably moved over into expand_omp_for_generic rather than being copied
25558 there.
25559
25560 2019-06-04 Martin Liska <mliska@suse.cz>
25561
25562 * value-prof.c (dump_histogram_value): Fix typo.
25563 (gimple_mod_subtract_transform): Likewise.
25564
25565 2019-06-04 Richard Biener <rguenther@suse.de>
25566
25567 PR middle-end/90726
25568 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25569 (tree_contains_chrecs): Likewise.
25570 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25571 exponential behaivor from ...
25572 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25573 ... here.
25574 (expression_expensive_p): Avoid exponential behavior and compute
25575 expanded size, rejecting any expansion.
25576 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25577 (idx_contains_abnormal_ssa_name_p): Likewise.
25578 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25579 (contains_abnormal_ssa_name_p): Simplify and use
25580 walk_tree_without_duplicates.
25581
25582 2019-06-04 Richard Biener <rguenther@suse.de>
25583
25584 PR tree-optimization/90738
25585 Revert
25586 2019-06-03 Richard Biener <rguenther@suse.de>
25587
25588 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25589 full reference tree and record in ref->ref.
25590 (vn_reference_lookup_3): Pass in original ref to
25591 ao_ref_init_from_vn_reference.
25592 (vn_reference_lookup): Likewise.
25593 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25594 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25595 Handle non-decl bases in the original reference.
25596
25597 2019-06-04 Martin Liska <mliska@suse.cz>
25598
25599 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25600 number of references.
25601 (sem_item_optimizer::do_congruence_step):
25602 (sem_item_optimizer::worklist_push): Dump how references
25603 a class has.
25604 (sem_item_optimizer::worklist_pop): Use heap.
25605 (sem_item_optimizer::process_cong_reduction): Likewise.
25606 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25607
25608 2019-06-04 Martin Liska <mliska@suse.cz>
25609
25610 * ipa-icf.h (struct sem_usage_pair_hash): New.
25611 (sem_usage_pair_hash::hash): Likewise.
25612 (sem_usage_pair_hash::equal): Likewise.
25613 (struct sem_usage_hash): Likewise.
25614 * ipa-icf.c (sem_item::sem_item): Initialize
25615 referenced_by_count.
25616 (sem_item::add_reference): Register a reference
25617 in ref_map and not in target->usages.
25618 (sem_item::setup): Remove initialization of
25619 dead vectors.
25620 (sem_item::~sem_item): Remove usage of dead vectors.
25621 (sem_item::dump): Remove dump of references.
25622 (sem_item_optimizer::sem_item_optimizer): Initialize
25623 m_references.
25624 (sem_item_optimizer::read_section): Remove useless
25625 dump.
25626 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25627 (sem_item_optimizer::build_graph): Pass m_references
25628 to ::add_reference.
25629 (sem_item_optimizer::verify_classes): Remove usage of dead
25630 vectors.
25631 (sem_item_optimizer::traverse_congruence_split): Return true
25632 when a class is split.
25633 (sem_item_optimizer::do_congruence_step_for_index): Use
25634 hash_map for look up of (sem_item *, index). That brings
25635 significant speed up.
25636 (sem_item_optimizer::do_congruence_step): Return true
25637 when a split is done.
25638 (congruence_class::is_class_used): Use referenced_by_count.
25639
25640 2019-06-04 Alan Modra <amodra@gmail.com>
25641
25642 PR target/90689
25643 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25644 error.
25645
25646 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25647
25648 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25649 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25650 (rs6000_secondary_reload_simple_move): Adjust.
25651 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25652 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25653 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25654 comment.
25655 (power6x): Adjust.
25656 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25657 (floatunssi<mode>2_lfiwzx): Adjust.
25658 (fix_trunc<mode>si2_stfiwx): Adjust.
25659 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25660 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25661 (mfpgpr): Mark as deprecated.
25662 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25663 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25664 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25665
25666 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25667
25668 * config/rs6000/constraints.md (define_register_constraint "wg"):
25669 Delete.
25670 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25671 RS6000_CONSTRAINT_wg.
25672 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25673 (rs6000_init_hard_regno_mode_ok): Adjust.
25674 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25675 Delete "wg" alternatives.
25676 * doc/md.texi (Machine Constraints): Adjust.
25677
25678 2019-06-03 Alan Modra <amodra@gmail.com>
25679
25680 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25681 (get_uncond_jump_length): Assert length less than INT_MAX and
25682 non-negative.
25683
25684 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25685
25686 PR middle-end/64242
25687 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25688 block.
25689 (expand_builtin_nonlocal_goto): Likewise.
25690
25691 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25692
25693 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25694 (aarch64_asm_output_external): Declare.
25695 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25696 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25697 (aarch64_asm_output_alias): New.
25698 (aarch64_asm_output_external): New.
25699 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25700 (ASM_OUTPUT_EXTERNAL): Define.
25701
25702 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25703 * tree-vrp.h (value_range_base::nonzero_p): New.
25704 (value_range_base::set_nonnull): Rename to...
25705 (value_range_base::set_nonzero): ...this.
25706 (value_range_base::set_null): Rename to...
25707 (value_range_base::set_zero): ...this.
25708 (value_range::set_nonnull): Remove.
25709 (value_range::set_null): Remove.
25710 * tree-vrp.c (range_is_null): Remove.
25711 (range_is_nonnull): Remove.
25712 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25713 instead of range_is_*null.
25714 (extract_range_from_unary_expr): Same.
25715 (value_range_base::set_nonnull): Rename to...
25716 (value_range_base::set_nonzero): ...this.
25717 (value_range::set_nonnull): Remove.
25718 (value_range_base::set_null): Rename to...
25719 (value_range_base::set_zero): ...this.
25720 (value_range::set_null): Remove.
25721 (extract_range_from_binary_expr): Rename set_*null uses to
25722 set_*zero.
25723 (extract_range_from_unary_expr): Same.
25724 (union_helper): Same.
25725 * vr-values.c (get_value_range): Use set_*zero instead of
25726 set_*null.
25727 (vr_values::extract_range_from_binary_expr): Same.
25728 (vr_values::extract_range_basic): Same.
25729
25730 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25731
25732 PR driver/90684
25733 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25734
25735 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25736
25737 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25738 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25739 Rename to...
25740 (aarch64_<su>abd<mode>_3): ... This.
25741 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25742
25743 2019-06-03 Richard Biener <rguenther@suse.de>
25744
25745 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25746 full reference tree and record in ref->ref.
25747 (vn_reference_lookup_3): Pass in original ref to
25748 ao_ref_init_from_vn_reference.
25749 (vn_reference_lookup): Likewise.
25750 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25751 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25752 Handle non-decl bases in the original reference.
25753
25754 2019-06-03 Martin Liska <mliska@suse.cz>
25755
25756 * doc/generic.texi: Remove Java Trees.
25757
25758 2019-06-03 Martin Liska <mliska@suse.cz>
25759
25760 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25761 returns 0 when operands are equal.
25762
25763 2019-06-03 Richard Biener <rguenther@suse.de>
25764
25765 PR tree-optimization/90716
25766 * tree-loop-distribution.c (destroy_loop): Process blocks in
25767 correct order.
25768
25769 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25770
25771 PR target/88837
25772 * vector-builder.h (vector_builder::count_dups): New method.
25773 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25774 Declare prototype.
25775 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25776 (vec_init<mode><Vel>): New pattern.
25777 * config/aarch64/aarch64.c (emit_insr): New function.
25778 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25779 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25780 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25781 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25782
25783 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25784
25785 PR tree-optimization/90681
25786 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25787 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25788 special case for SLP, but fail on non-groupped loads.
25789
25790 2019-06-03 Martin Liska <mliska@suse.cz>
25791
25792 * cfg.c (debug): Use TDF_DETAILS for debug and
25793 print edge info only once.
25794
25795 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25796
25797 PR fortran/90539
25798 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25799
25800 2019-06-01 Martin Sebor <msebor@redhat.com>
25801
25802 PR middle-end/90694
25803 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25804
25805 2019-05-31 Jan Hubicka <jh@suse.cz>
25806
25807 * alias.c: Include ipa-utils.h.
25808 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25809 * ipa-devirt.c (prevailing_odr_type): New.
25810 * ipa-utils.h (previaling_odr_type): Declare.
25811
25812 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25813 Hongtao Liu <hongtao.liu@intel.com>
25814
25815 PR target/89355
25816 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25817 NOTE_INSN_DELETED_LABEL check.
25818
25819 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25820 Robert Suchanek <robert.suchanek@mips.com>
25821
25822 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25823 and 3rd operands of the fmadd/fmsub/maddv builtin.
25824
25825 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25826
25827 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25828 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25829 on OMP_SIMD if not nested inside of worksharing loop that also has
25830 lastprivate conditional clause for the same decl.
25831 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25832 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25833 on simd.
25834 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25835 on simd construct.
25836 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25837 on simd construct.
25838 (lower_lastprivate_clauses): Likewise.
25839 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25840 calling lower_rec_input_clauses.
25841 (lower_omp_for): Likewise.
25842 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25843 clause on simd construct.
25844 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25845 OMP_CLAUSE__CONDTEMP_ clause is present.
25846
25847 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25848 ivar and lvar.
25849
25850 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25851
25852 PR c/43673
25853 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25854 TEX_D32, TEX_D64 or TEX_D128.
25855
25856 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25857
25858 * match.pd (~(vec?cst1:cst2)): New transformation.
25859
25860 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25861
25862 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25863 ((size_t)(A /[ex] B) CMP C): New transformation.
25864
25865 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25866
25867 * doc/md.texi: Document define_insn_and_rewrite.
25868 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25869 * gensupport.c (queue_elem): Update comment.
25870 (replace_operands_with_dups): New function.
25871 (gen_rewrite_sequence): Likewise.
25872 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25873 * read-rtl.c (apply_subst_iterator): Likewise.
25874 (add_condition_to_rtx, named_rtx_p): Likewise.
25875 (rtx_reader::read_rtx_operand): Likewise.
25876 * config/aarch64/aarch64-sve.md
25877 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25878 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25879 define_insn_and_rewrite.
25880 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25881 Remove separate define_split.
25882
25883 2019-05-31 Jan Hubicka <jh@suse.cz>
25884
25885 * tree-ssa-alias.c (type_has_components_p): New function.
25886 (aliasing_component_refs_p): Use it.
25887
25888 2019-05-31 Martin Liska <mliska@suse.cz>
25889
25890 * gdbhooks.py: Add const_tree to TreePrinter.
25891
25892 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25893
25894 PR debug/86964
25895 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25896 * doc/invoke.texi (Debugging Options): Document new default of
25897 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25898
25899 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25900
25901 PR tree-optimization/90671
25902 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25903 template_block used to be empty on the first call, don't use
25904 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25905 seq with bb_seq and set it with set_bb_seq.
25906
25907 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25908
25909 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25910
25911 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25912 Michael Meissner <meissner@linux.ibm.com>
25913
25914 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25915 (prefixed_mem_operand): Likewise.
25916 (non_prefixed_mem_operand): Likewise.
25917 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25918 prototype.
25919 * config/rs6000/rs6000.c (print_operand_address): Handle
25920 PC-relative addresses.
25921 (mode_supports_prefixed_address_p): New function.
25922 (rs6000_prefixed_address): New function.
25923 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25924 (SYMBOL_REF_PCREL_P): Likewise.
25925
25926 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25927
25928 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25929 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25930 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25931 is nested inside of parallel region, add _condtemp_ clause to both.
25932 * tree-nested.c (convert_nonlocal_omp_clauses,
25933 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25934 assertion failure.
25935 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25936 member.
25937 * omp-general.c (omp_extract_for_data): Compute it.
25938 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25939 (lower_rec_input_clauses): Likewise.
25940 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25941 clause is already present, just add one further one after it.
25942 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25943 (lower_send_shared_vars): Clear _condtemp_ vars.
25944 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25945 or section or taskgroup.
25946 * omp-expand.c (determine_parallel_type): Disallow combining only if
25947 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25948 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25949 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25950 expand_omp_for_static_chunk, expand_omp_for): Use
25951 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25952 determine if a special set of API routines are needed and if condtemp
25953 needs to be initialized, while always initialize cond_var if
25954 fd->lastprivate_conditional is non-zero.
25955
25956 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25957 Michael Meissner <meissner@linux.ibm.com>
25958
25959 * config/rs6000/constraints.md (eI): New constraint.
25960 * config/rs6000/predicates.md (cint34_operand): New predicate.
25961 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25962 (SIGNED_34BIT_OFFSET_P): Likewise.
25963 * doc/md.texi (eI): Document constraint.
25964
25965 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25966
25967 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25968
25969 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25970 Michael Meissner <meissner@linux.ibm.com>
25971
25972 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25973 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25974 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25975 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25976 (OTHER_FUTURE_MASKS): Likewise.
25977 (POWERPC_MASKS): Likewise.
25978 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25979 specified without -mprefixed-addr or -mcpu=future. Error if
25980 -mprefixed-addr is specified without -mcpu=future.
25981 (rs6000_opt_masks): Add entry for prefixed-addr.
25982 * rs6000.opt (mprefixed-addr): New option.
25983
25984 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25985
25986 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25987 cfun->is_thunk check.
25988
25989 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25990
25991 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25992 to length.
25993
25994 2019-05-30 Martin Liska <mliska@suse.cz>
25995
25996 * gdbinit.in: Fix 'ptc' command. Add trt
25997 that prints TREE_TYPE($).
25998
25999 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
26000 Alan Modra <amodra@gmail.com>
26001
26002 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
26003 calls here...
26004 (rs6000_indirect_call_template_1): ...and here.
26005 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
26006 plt16_ha, plt16_lo, mtctr indirect calls. Use
26007 rs6000_pltseq_enum.
26008 (rs6000_decl_ok_for_sibcall): New function.
26009 (rs6000_function_ok_for_sibcall): Refactor.
26010 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
26011 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
26012 when pcrel. Reorganize.
26013 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
26014 * rs6000.h (rs6000_pltseq_enum): New enum.
26015 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
26016 (*pltseq_tocsave): Use rs6000_pltseq_enum.
26017 (*pltseq_plt16_ha): Likewise.
26018 (*pltseq_plt16_lo): Likewise.
26019 (*pltseq_mtctr): Likewise.
26020 (*pltseq_plt_pcrel): New insn.
26021 (*call_local_aix): Handle @notoc calls.
26022 (*call_value_local_aix): Likewise.
26023 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
26024 (*call_value_nonlocal_aix): Likewise.
26025 (*call_indirect_pcrel): New insn.
26026 (*call_value_indirect_pcrel): Likewise.
26027
26028 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
26029
26030 * config/i386/sse.md (*save_multiple<mode>): Rename from
26031 save_multiple<mode>.
26032 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
26033 (*restore_multiple_and_return<mode>): Rename from
26034 restore_multiple_and_return<mode>.
26035 (*restore_multiple_leave_return<mode>): Rename from
26036 restore_multiple_leave_return<mode>.
26037
26038 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
26039
26040 * config.gcc (rx-*-linux*): New target.
26041 * config/rx/elf.opt: New file.
26042 * config/rx/linux.h: Likewise.
26043 * config/rx/t-linux: Likewise.
26044 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
26045 make it zero.
26046 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
26047 (ASM_APP_OFF): Likewise.
26048 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
26049 moved elsewhere.
26050
26051 2019-05-29 Jan Hubicka <jh@suse.cz>
26052
26053 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
26054 variants are pointer equivalent.
26055
26056 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26057
26058 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
26059 * config/aarch64/aarch64-sve2.md: New file.
26060 (<u>avg<mode>3_floor): New pattern.
26061 (<u>avg<mode>3_ceil): Likewise.
26062 (*<sur>h<addsub><mode>): Likewise.
26063 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
26064 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
26065
26066 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26067
26068 PR bootstrap/90543
26069 * optc-save-gen.awk: In cl_optimization_print, use correct condition
26070 for var_opt_string printing. In cl_optimization_print_diff, print
26071 (null) instead of invoking undefined behavior if one of the
26072 var_opt_string pointers is NULL and use && instead of first || in the
26073 guarding condition. For var_target_other options, handle const char *
26074 target variables similarly to const char * optimize node variables.
26075
26076 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
26077
26078 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
26079 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
26080 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
26081 Add autib1716 and pacib1716 initialisation.
26082 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
26083 for autib1716 and pacib1716.
26084 * config/aarch64/aarch64-protos.h (aarch64_key_type,
26085 aarch64_post_cfi_startproc): Define.
26086 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
26087 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
26088 aarch64_handle_pac_ret_protection): Set default sign key to A.
26089 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
26090 aarch64_expand_prologue): Add check for b-key.
26091 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
26092 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
26093 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
26094 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
26095 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
26096 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
26097 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26098 * config/aarch64/aarch64.md (do_return): Add check for b-key.
26099 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
26100 pauth_hint_num_a with pauth_hint_num.
26101 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
26102 pauth_hint_num_a with pauth_hint_num.
26103 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
26104 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
26105 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26106 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
26107 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
26108 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
26109 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
26110 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26111 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
26112 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
26113 UNSPEC_AUTIA1716 respectively.
26114 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
26115 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
26116 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
26117 * doc/invoke.texi (-mbranch-protection): Add b-key type.
26118 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
26119 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
26120
26121 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26122
26123 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
26124 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
26125 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
26126 explicit clause on combined parallel into implicit shared clause.
26127 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
26128 and firstprivate if the decl has one too from combined parallel to
26129 the worksharing construct.
26130
26131 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
26132 Michael Meissner <meissner@linux.ibm.com>
26133
26134 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
26135
26136 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
26137
26138 * rtl.h (LABEL_REF_P): New #define.
26139
26140 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
26141
26142 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
26143
26144 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26145
26146 * internal-fn.c: Marked mask_load_direct as vectorizable.
26147 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
26148 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
26149 combined even if masks different with allow_slp_p param.
26150 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
26151 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
26152 dissolve SLP-only vectorizable groups when SLP has been discarded.
26153 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
26154 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
26155 masks.
26156 (vect_build_slp_tree_1): Fixed comment typo.
26157 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
26158 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
26159 loads for SLP only.
26160 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
26161 vectorizable.
26162 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
26163
26164 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26165
26166 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
26167 Remove obsolete use_thunk reference.
26168 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26169 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26170 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26171 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26172 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26173 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26174 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26175 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26176 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26177
26178 2019-05-28 Nathan Sidwell <nathan@acm.org>
26179
26180 * tree.h (IDENTIFIER_ANON_P): New.
26181 (anon_aggrname_format, anon_aggname_p): Don't declare.
26182 (make_anon_name): Declare.
26183 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
26184 (hash_tree): Likewise.
26185 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
26186 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
26187 (anon_cnt, make_anon_name): New.
26188
26189 2019-05-28 Martin Liska <mliska@suse.cz>
26190
26191 PR other/90315
26192 * opts-global.c (decode_options): Print help for all
26193 help_option_arguments.
26194 * opts.c (print_help): Add new argument.
26195 (common_handle_option): Remember all values into
26196 help_option_arguments.
26197 * opts.h (print_help): Add new argument.
26198
26199 2019-05-28 Martin Liska <mliska@suse.cz>
26200
26201 PR ipa/90555
26202 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
26203 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
26204 (func_checker::compare_bb): Call compare_loops.
26205
26206 2019-05-27 Jakub Jelinek <jakub@redhat.com>
26207
26208 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26209 on sections construct.
26210 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
26211 construct.
26212 (lower_omp_sections): Handle lastprivate conditional.
26213 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
26214 lastprivate_conditional_map.
26215 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
26216
26217 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
26218 critical, taskgroup and section regions when looking for a region
26219 with non-NULL lastprivate_conditional_map.
26220
26221 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26222
26223 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
26224 (*ix86_gen_sub3): Ditto.
26225 (*ix86_gen_sub3_carry): Ditto.
26226 (*ix86_gen_one_cmpl2): Ditto.
26227 (*ix86_gen_andsp): Ditto.
26228 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
26229 (gen_and2_insn): New static function.
26230 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
26231 Use gen_add3_insn instead of ix86_gen_add3.
26232 (ix86_expand_split_stack_prologue): Use gen_add2_insn
26233 instead of ix86_gen_add3.
26234 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
26235 Use gen_sub3_insn instead of ix86_gen_sub3.
26236 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
26237 instead of ix86_gen_add3.
26238 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
26239 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
26240 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
26241 * config/i386/i386-options.c (ix86_option_override_internal):
26242 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
26243 ix86_gen_one_cmpl2 and ix86_gen_andsp.
26244
26245 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
26246
26247 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
26248 and DW_OP_GNU_const_index opcodes.
26249
26250 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26251
26252 * config/i386/i386.h (STACK_SIZE_MODE): Define.
26253
26254 2019-05-27 Richard Biener <rguenther@suse.de>
26255
26256 PR tree-optimization/90637
26257 * tree-ssa-sink.c (statement_sink_location): Honor the
26258 computed sink location for single-uses.
26259
26260 2019-05-27 Richard Biener <rguenther@suse.de>
26261
26262 PR middle-end/90610
26263 * match.pd (vec_perm): Avoid clobbering op0 when not generating
26264 a bit-insert.
26265
26266 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26267
26268 * config/i386/i386.md (@sub<mode>3_carry): Rename
26269 from sub<mode>3_carry.
26270 (@leave_<mode>): New expander.
26271 (*leave): Rename from leave.
26272 (*leave_rex64): Rename from leave_rex64.
26273 (@monitorx_<mode>): Rename from monitorx_<mode>.
26274 (@clzero_<mode>): Rename from clzero_<mode>.
26275 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
26276 from sse3_monitor_<mode>.
26277 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
26278 (*ix86_gen_leave): Ditto.
26279 (*ix86_gen_monitor): Ditto.
26280 (*ix86_gen_monitorx): Ditto.
26281 (*ix86_gen_clzero): Ditto.
26282 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
26283 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
26284 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
26285 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
26286 Use gen_sse3_monitor instead of ix86_gen_monitor.
26287 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
26288 instead of ix86_gen_monitorx.
26289 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
26290 instead of ix86_gen_clzero.
26291 * config/i386/i386-options.c (ix86_option_override_internal):
26292 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
26293 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
26294
26295 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26296
26297 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
26298 Rename from tls_global_dynamic_64_<mode>.
26299 (@tls_local_dynamic_base_64_<mode>): Rename from
26300 tls_local_dynamic_base_64_<mode>.
26301 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
26302 Remove indirect function.
26303 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
26304 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
26305 instead of ix86_gen_tls_global_dynamic_64.
26306 Use gen_tls_local_dynamic_base_64 instead of
26307 ix86_gen_tls_local_dynamic_base_64.
26308 * config/i386/i386-options.c (ix86_option_override_internal):
26309 Do not initialize ix86_gen_tls_global_dynamic_64 and
26310 ix86_gen_tls_local_dynamic_base_64.
26311
26312 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26313
26314 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
26315 Rename from pro_epilogue_adjust_stack_<mode>_add.
26316 (@pro_epilogue_adjust_stack_sub_<mode>)
26317 Rename from pro_epilogue_adjust_stack_<mode>_sub.
26318 (@allocate_stack_worker_probe_<mode>):
26319 Rename from allocate_stack_worker_probe_<mode>.
26320 (allocate_stack): Use gen_allocate_stack_worker_probe.
26321 (probe_stack): Use gen_probe_stack_1.
26322 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
26323 (@adjust_stack_and_probe_<mode>): Rename from
26324 adjust_stack_and_probe<mode>.
26325 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
26326 (stack_protect_set): Use gen_stack_protect_set_1.
26327 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
26328 (stack_protect_test): Use gen_stack_protect_test_1.
26329 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
26330 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
26331 Remove indirect function.
26332 (*ix86_gen_adjust_stack_and_probe): Ditto.
26333 (*ix86_gen_probe_stack_range): Ditto.
26334 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
26335 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
26336 (ix86_adjust_stack_and_probe_stack_clash): Use
26337 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
26338 (ix86_adjust_stack_and_probe): Ditto.
26339 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
26340 of ix86_gen_probe_stack_range.
26341 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
26342 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
26343 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
26344 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
26345 CODE_FOR_stack_protect_test_{si,di}.
26346 * config/i386/i386-options.c (ix86_option_override_internal):
26347 Do not initialize ix86_gen_allocate_stack_worker,
26348 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
26349
26350 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
26351
26352 * doc/invoke.texi (Link Options): Many editorial changes around
26353 -flinker-output.
26354
26355 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26356
26357 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
26358 pre-Solaris 11 referene and most Studio compiler details.
26359
26360 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
26361
26362 PR target/90530
26363 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
26364 DImode to SImode in floating-point registers on 64-bit target.
26365 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
26366 register_operand in xmpyu patterns.
26367
26368 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26369
26370 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
26371 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
26372 OMP_CLAUSE__REDUCTEMP_.
26373 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
26374 OMP_CLAUSE__CONDTEMP_.
26375 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
26376 * tree-pretty-print.c (dump_omp_clause): Likewise.
26377 * tree-nested.c (convert_nonlocal_omp_clauses,
26378 convert_local_omp_clauses): Likewise.
26379 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
26380 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
26381 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
26382 on OMP_FOR.
26383 (gimplify_omp_for): Warn and disable conditional modifier from
26384 lastprivate on loop iterators.
26385 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
26386 member.
26387 * omp-general.c (omp_extract_for_data): Initialize it.
26388 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
26389 member.
26390 (delete_omp_context): Delete it.
26391 (lower_lastprivate_conditional_clauses): New function.
26392 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
26393 handle lastprivate conditional clauses.
26394 (lower_reduction_clauses): Add CLIST argument, emit it into
26395 the critical section if any.
26396 (lower_omp_sections): Adjust lower_lastprivate_clauses and
26397 lower_reduction_clauses callers.
26398 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
26399 to lower_lastprivate_clauses.
26400 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
26401 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
26402 clist into a critical section if not emitted there already by
26403 lower_reduction_clauses.
26404 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
26405 callers.
26406 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
26407 conditional variables.
26408 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
26409 clause is present.
26410 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26411 expand_omp_for_static_chunk): Handle lastprivate conditional.
26412 (expand_omp_for): Handle fd.lastprivate_conditional like
26413 fd.have_reductemp.
26414
26415 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26416
26417 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
26418 kernel does not exit cleanly.
26419 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
26420
26421 2019-05-24 Jason Merrill <jason@redhat.com>
26422
26423 Revert:
26424 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26425
26426 2019-05-24 Richard Biener <rguenther@suse.de>
26427
26428 PR testsuite/90607
26429 * tree-loop-distribution.c (struct partition): Add location
26430 member.
26431 (partition_alloc): Initialize all fields.
26432 (generate_memset_builtin): Use the location recorded in the
26433 partition for the generated call.
26434 (generate_memcpy_builtin): Likewise.
26435 (classify_partition): Record the location of a single store
26436 as location for the partition.
26437
26438 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26439
26440 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26441 for lo-part.
26442
26443 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
26444
26445 PR target/90588
26446 * common/config/aarch64/aarch64-common.c
26447 (aarch64_rewrite_selected_cpu): Change local temporary variable
26448 type from unsigned long to uint64_t.
26449 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26450 aarch64_get_extension_string_for_isa_flags): Change declaration to
26451 match new definition by replacing unsigned long with uint64_t.
26452
26453 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26454
26455 PR target/90568
26456 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26457 gen_attr_type just once instead of 4-7 times. Formatting fixes.
26458 Handle stack_protect_test_<mode> codegen similarly to corresponding
26459 sub instruction.
26460
26461 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
26462
26463 * config/i386/darwin.h: Reject -mfentry*.
26464 * doc/sourcebuild.texi: Document mfentry target support.
26465
26466 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26467
26468 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26469 Rename to rs6000_global_entry_point_prologue_needed_p. Return
26470 false for PC-relative functions.
26471 (rs6000_output_function_prologue): Change called function name to
26472 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
26473 name,1" for PC-relative functions.
26474 (rs6000_elf_declare_function_name): Change called function name to
26475 rs6000_global_entry_point_prologue_needed_p.
26476
26477 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
26478
26479 PR target/90552
26480 * config/i386/i386.c (gen_rtx_cost):
26481 Use ix86_tune_cost instead of ix86_cost.
26482
26483 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26484 Michael Meissner <meissner@linux.ibm.com>
26485 Segher Boessenkool <segher@kernel.crashing.org>
26486
26487 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26488 OPTION_MASK_PCREL.
26489 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26490 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26491 (rs6000_fndecl_pcrel_p): Likewise.
26492 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26493 error if -mpcrel is requested without -mcpu=future.
26494 (rs6000_opt_masks): Add entry for pcrel.
26495 (rs6000_fndecl_pcrel_p): New function.
26496 (rs6000_pcrel_p): Likewise.
26497 * config/rs6000/rs6000.opt (mpcrel): New option.
26498 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26499
26500 2019-05-23 Jan Hubicka <jh@suse.cz>
26501 Martin Liska <mliska@suse.cz>
26502
26503 PR tree-optimization/90576
26504 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26505 poly_int_tree_p.
26506 (aliasing_component_refs_p): Fix three way size compare conditional;
26507 give up earlier in case we can not decide on equivalence.
26508
26509 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26510 Michael Meissner <meissner@linux.ibm.com>
26511 Segher Boessenkool <segher@kernel.crashing.org>
26512
26513 * config.gcc: Add future cpu.
26514 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26515 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26516 #define.
26517 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26518 (RS6000_CPU): New instantiation for future cpu.
26519 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26520 PROCESSOR_FUTURE.
26521 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26522 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26523 * config/rs6000/rs6000-tables.opt: Regenerate.
26524 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26525 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26526 (rs6000_machine_from_flags): Handle future cpu.
26527 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26528 PROCESSOR_POWER9 for now.
26529 (rs6000_adjust_cost): Likewise.
26530 (rs6000_issue_rate): Likewise.
26531 (rs6000_register_move_cost): Likewise.
26532 (rs6000_opt_masks): Add entry for future.
26533 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26534 (MASK_FUTURE): New #define.
26535 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26536 * config/rs6000/rs6000.opt (mfuture): New target option.
26537 * doc/invoke.texi (mcpu): Add future cpu.
26538
26539 2019-05-23 Martin Liska <mliska@suse.cz>
26540
26541 PR c++/90587
26542 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26543 operation points to a temporary (pointed via tree_to_wide_ref)
26544 that is out of scope after the &.
26545
26546 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26547
26548 PR c++/90592
26549 * doc/extend.texi (Function Names): Add missing word.
26550
26551 2019-05-23 Richard Biener <rguenther@suse.de>
26552
26553 PR tree-optimization/88440
26554 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26555 at -O[2s]+.
26556 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26557 generated call.
26558 (generate_memcpy_builtin): Likewise.
26559 (distribute_loop): Pass in whether to only distribute patterns.
26560 (prepare_perfect_loop_nest): Also allow size optimization.
26561 (pass_loop_distribution::execute): When optimizing a loop
26562 nest for size allow pattern replacement.
26563
26564 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26565
26566 PR target/90568
26567 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26568 of xor.
26569
26570 2019-05-23 Martin Liska <mliska@suse.cz>
26571
26572 PR sanitizer/90570
26573 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26574 expression similarly to gimplify_decl_expr.
26575
26576 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26577
26578 * cse.c (cse_dump_path): s/dump_file/f.
26579
26580 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26581
26582 PR c++/90462
26583 * diagnostic-format-json.cc: Include "selftest.h".
26584 (json_from_expanded_location): Only add "file" key for non-NULL
26585 file strings.
26586 (json_from_location_range): Don't add "start" and "finish"
26587 children if they are UNKNOWN_LOCATION.
26588 (selftest::test_unknown_location): New selftest.
26589 (selftest::test_bad_endpoints): New selftest.
26590 (selftest::diagnostic_format_json_cc_tests): New function.
26591 * json.cc (json::object::get): New function.
26592 (selftest::test_object_get): New selftest.
26593 (selftest::json_cc_tests): Call it.
26594 * json.h (json::object::get): New decl.
26595 * selftest-run-tests.c (selftest::run_tests): Call
26596 selftest::diagnostic_format_json_cc_tests.
26597 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26598 decl.
26599
26600 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26601 Andrew Stubbs <amd@codesourcery.com>
26602
26603 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26604 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26605 (kernel): Rename to...
26606 (main_kernel): ... this.
26607 (load_image): Load _init_array and _fini_array kernels.
26608 (run): Add argument for kernel to run.
26609 (main): Run init_array_kernel before main_kernel, and
26610 fini_array_kernel after.
26611 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26612 amdgpu_hsa_kernel attribute on functions.
26613 (gcn_disable_constructors): Delete.
26614 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26615 * config/gcn/crt0.c (size_t): Define.
26616 (_init_array, _fini_array): New.
26617 (__preinit_array_start, __preinit_array_end,
26618 __init_array_start, __init_array_end,
26619 __fini_array_start, __fini_array_end): Declare weak references.
26620
26621 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26622
26623 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26624
26625 2019-05-22 Jason Merrill <jason@redhat.com>
26626
26627 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26628
26629 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26630
26631 PR target/88483
26632 * config/i386/i386-options.c (ix86_init_machine_status): Set
26633 stack_frame_required to true.
26634 * config/i386/i386.c (ix86_get_frame_size): New function.
26635 (ix86_frame_pointer_required): Replace get_frame_size with
26636 ix86_get_frame_size.
26637 (ix86_compute_frame_layout): Likewise.
26638 (ix86_find_max_used_stack_alignment): Changed to void. Set
26639 stack_frame_required.
26640 (ix86_finalize_stack_frame_flags): Always call
26641 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26642 ix86_get_frame_size.
26643 * config/i386/i386.h (machine_function): Add stack_frame_required.
26644
26645 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26646
26647 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26648
26649 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26650
26651 * common/config/aarch64/aarch64-common.c
26652 (struct aarch64_option_extension, struct processor_name_to_arch,
26653 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26654 aarch64_contains_opt,
26655 aarch64_get_extension_string_for_isa_flags): Change type of
26656 variables storing flags to uint64_t.
26657 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26658 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26659 * config/aarch64/aarch64.c (struct processor,
26660 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26661 aarch64_validate_march, aarch64_override_options,
26662 aarch64_option_print, aarch64_handle_attr_isa_flags,
26663 aarch64_declare_function_name, aarch64_start_file): Make flag
26664 variables uint64_t.
26665 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26666 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26667 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26668 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26669 * config/aarch64/driver-aarch64.c
26670 (struct aarch64_arch_extension, struct aarch64_core_data,
26671 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26672 flag variables uint64_t.
26673 * doc/invoke.texi: Add documentation for new arguments.
26674
26675 2019-05-22 Richard Biener <rguenther@suse.de>
26676
26677 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26678 rewrite ...
26679 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26680
26681 2019-05-22 Martin Liska <mliska@suse.cz>
26682
26683 PR lto/90500
26684 * doc/extend.texi: Document the change.
26685
26686 2019-05-22 Richard Biener <rguenther@suse.de>
26687
26688 PR tree-optimization/90450
26689 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26690 (mem_ref_hasher::equal): Check it.
26691 (mem_ref_alloc): Initialize it.
26692 (gather_mem_refs_stmt): Set it.
26693
26694 2019-05-22 Richard Biener <rguenther@suse.de>
26695
26696 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26697 Add ABS_EXPR.
26698 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26699 as ABSU_EXPR.
26700
26701 2019-05-22 Alan Modra <amodra@gmail.com>
26702
26703 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26704 (ASM_CPU_SPEC): Conditionally add -many.
26705 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26706 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26707 (rs6000_file_start): ..extracted from here, and modified to
26708 test all ISA bits.
26709 (rs6000_output_function_prologue): Emit .machine as necessary.
26710
26711 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26712
26713 PR middle-end/90553
26714 * ira-lives.c (process_bb_node_lives): Consider defs
26715 for a call insn to be die before the call, not after.
26716
26717 * function.c (assign_parm_setup_block): Raise alignment of
26718 stacked parameter only for STRICT_ALIGNMENT targets.
26719
26720 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26721
26722 * config/rs6000/constraints.md (define_register_constraint "wz"):
26723 Delete.
26724 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26725 RS6000_CONSTRAINT_wz.
26726 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26727 (rs6000_init_hard_regno_mode_ok): Adjust.
26728 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26729 * doc/md.texi (Machine Constraints): Adjust.
26730
26731 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26732
26733 * config/rs6000/constraints.md (define_register_constraint "wl"):
26734 Delete.
26735 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26736 RS6000_CONSTRAINT_wl.
26737 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26738 (rs6000_init_hard_regno_mode_ok): Adjust.
26739 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26740 * doc/md.texi (Machine Constraints): Adjust.
26741
26742 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26743
26744 * config/rs6000/constraints.md (define_register_constraint "wm"):
26745 Delete.
26746 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26747 RS6000_CONSTRAINT_wm.
26748 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26749 (rs6000_init_hard_regno_mode_ok): Adjust.
26750 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26751 * doc/md.texi (Machine Constraints): Adjust.
26752
26753 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26754
26755 * config/rs6000/constraints.md (define_register_constraint "wk"):
26756 Delete.
26757 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26758 RS6000_CONSTRAINT_wk.
26759 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26760 (rs6000_init_hard_regno_mode_ok): Adjust.
26761 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26762 * doc/md.texi (Machine Constraints): Adjust.
26763
26764 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26765
26766 * config/rs6000/constraints.md (define_register_constraint "wj"):
26767 Delete.
26768 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26769 RS6000_CONSTRAINT_wj.
26770 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26771 (rs6000_init_hard_regno_mode_ok): Adjust.
26772 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26773 (VS_64dm): Delete.
26774 * config/rs6000/vsx.md: Ditto.
26775 * doc/md.texi (Machine Constraints): Adjust.
26776
26777 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26778
26779 * config/rs6000/constraints.md (define_register_constraint "wh"):
26780 Delete.
26781 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26782 RS6000_CONSTRAINT_wh.
26783 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26784 (rs6000_init_hard_regno_mode_ok): Adjust.
26785 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26786 * doc/md.texi (Machine Constraints): Adjust.
26787
26788 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26789
26790 PR target/90547
26791 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26792 Avoid calling gen_lowpart with CONST operand.
26793
26794 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26795
26796 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26797 field template_last_to_copy.
26798 (ssa_create_duplicates): Set it, and use it. Attempt to
26799 preserve more debug stmts.
26800
26801 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26802
26803 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26804 (signbit<mode>2): New expander
26805
26806 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26807
26808 PR bootstrap/87338
26809 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26810 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26811
26812 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26813
26814 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26815 %ebx and %ecx bafore calling cpuid with leaf 1 or
26816 non-constant leaf argument.
26817
26818 2019-05-21 Alan Modra <amodra@gmail.com>
26819
26820 PR target/90545
26821 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26822 power9 direct move cost.
26823
26824 2019-05-21 Richard Biener <rguenther@suse.de>
26825
26826 PR middle-end/90510
26827 * fold-const.c (fold_read_from_vector): New function.
26828 * fold-const.h (fold_read_from_vector): Declare.
26829 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26830 single-element insert permutations. Canonicalize selector
26831 further and fix issue with last commit.
26832
26833 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26834
26835 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26836 parameter with default value false to declaration.
26837 (split_edges_for_insertion): New inline function. Wrapper for
26838 split_critical_edges with for_edge_insertion_p = true.
26839 * tree-cfg.c (split_critical_edges): Don't split non-critical
26840 edges if for_edge_insertion_p is false. Fix whitespace.
26841 * tree-ssa-pre.c (pass_pre::execute): Call
26842 split_edges_for_insertion instead of split_critical_edges.
26843 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26844 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26845 (pass_data_sink_code): Update function name in the comment.
26846
26847 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26848
26849 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26850 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26851 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26852 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26853 positives.
26854
26855 2019-05-21 Martin Liska <mliska@suse.cz>
26856
26857 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26858 an extra newline.
26859 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26860 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26861 vec_lvsr.
26862 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26863 Quote a C type.
26864 (rs6000_function_arg): Likewise.
26865 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26866 (rs6000_expand_ternop_builtin): Use interval syntax.
26867 (get_element_number): Likewise.
26868 (altivec_expand_builtin): Likewise.
26869 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26870
26871 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26872
26873 PR c++/59813
26874 PR target/90418
26875 * function.h (struct function): Add calls_eh_return member.
26876 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26877 gimplifying __builtin_eh_return call.
26878 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26879 to cfun.
26880 (expand_call_inline): Or in src_cfun->calls_eh_return into
26881 dst_cfun->calls_eh_return.
26882 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26883 cfun->calls_eh_return.
26884 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26885 * lto-streamer-out.c (output_struct_function_base): Write
26886 calls_eh_return.
26887
26888 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26889
26890 PR rtl-optimization/43147
26891 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26892 IX86_BUILTIN_SHUFPD.
26893
26894 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26895
26896 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26897 (refs_may_alias_p_1): ... here; update stats.
26898 (refs_may_alias_p): Do not update stats here.
26899
26900 2019-05-20 Richard Biener <rguenther@suse.de>
26901
26902 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26903 doesn't produce pointers.
26904 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26905 the first operand points to.
26906
26907 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26908
26909 * tree-ssa-alias.c (compare_sizes): New function.
26910 (sompare_type_sizes): New function
26911 (aliasing_component_refs_p): Use it.
26912 (indirect_ref_may_alias_decl_p): Likewise.
26913
26914 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26915
26916 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26917
26918 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26919
26920 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26921 (LIBLSAN_EARLY_SPEC): Likewise.
26922 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26923
26924 2019-05-20 Martin Liska <mliska@suse.cz>
26925
26926 * config/i386/i386.c (ix86_libc_has_fast_function):
26927 Add ATTRIBUTE_UNUSED for the argument.
26928
26929 2019-05-20 Richard Biener <rguenther@suse.de>
26930
26931 * gimple-match-head.c: Include vec-perm-indices.h.
26932 * generic-match-head.c: Likewise.
26933 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26934 is included.
26935 * fold-const.c (fold_vec_perm): Export.
26936 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26937 (match.pd): ...here.
26938
26939 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26940
26941 * cfgloop.h (struct loop): Add simdlen member.
26942 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26943 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26944 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26945 as new argument to autovectorize_vector_sizes target hook. If
26946 loop->simdlen, pick up vector size where the vectorization factor
26947 is equal to loop->simd, and if there is none, fall back to the first
26948 successful one.
26949 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26950 caller.
26951 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26952 * omp-general.c (omp_max_vf): Likewise.
26953 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26954 * tree-vect-slp.c (vect_slp_bb): Likewise.
26955 * target.def (autovectorize_vector_sizes): Add ALL argument and
26956 document it.
26957 * doc/tm.texi: Adjust documentation.
26958 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26959 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26960 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26961 bool argument.
26962 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26963 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26964 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26965 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26966 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26967 preferred vector size is not 512-bit or 256-bit, just put those
26968 unpreferred ones last.
26969
26970 2019-05-20 Martin Liska <mliska@suse.cz>
26971
26972 * targhooks.c (default_libc_has_fast_function): New function.
26973 * targhooks.h (default_libc_has_fast_function): Likewise.
26974
26975 2019-05-20 Martin Liska <mliska@suse.cz>
26976
26977 PR middle-end/90263
26978 * builtins.c (expand_builtin_memory_copy_args): When having a
26979 target with fast mempcpy implementation do now use memcpy.
26980 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26981 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26982 * doc/tm.texi: Likewise.
26983 * doc/tm.texi.in: Likewise.
26984 * target.def:
26985 * expr.c (emit_block_move_hints): Add 2 new arguments.
26986 * expr.h (emit_block_move_hints): Bail out when libcall
26987 to memcpy would be used.
26988
26989 2019-05-20 Martin Liska <mliska@suse.cz>
26990
26991 * profile-count.c: Add vertical spacing in order
26992 to separate functions.
26993 * profile-count.h: Likewise.
26994
26995 2019-05-20 Martin Liska <mliska@suse.cz>
26996
26997 * profile-count.h: Do not use full qualified
26998 names if possible.
26999 * profile-count.c (profile_count::to_frequency): Likewise.
27000
27001 2019-05-20 Martin Liska <mliska@suse.cz>
27002
27003 * profile-count.h (enum profile_quality): Use capital letters
27004 for enum value names. Use the adjusted names.
27005 * profile-count.c: Use the adjusted names.
27006
27007 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27008
27009 * config/rs6000/constraints.md (define_register_constraint "wH"):
27010 Delete.
27011 (define_register_constraint "wI"): Delete.
27012 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27013 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
27014 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27015 (rs6000_init_hard_regno_mode_ok): Adjust.
27016 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
27017 resp. "d", or with "wa" as appropriate, all with "p8v".
27018 * config/rs6000/vsx.md: Ditto.
27019 * doc/md.texi (Machine Constraints): Adjust.
27020
27021 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27022
27023 * config/rs6000/constraints.md (define_register_constraint "wy"):
27024 Delete.
27025 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27026 RS6000_CONSTRAINT_wy.
27027 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27028 (rs6000_init_hard_regno_mode_ok): Adjust.
27029 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
27030 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
27031 (define_mode_attr Fisa): New.
27032 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
27033 * doc/md.texi (Machine Constraints): Adjust.
27034
27035 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27036
27037 * config/rs6000/constraints.md (define_register_constraint "wu"):
27038 Delete.
27039 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27040 RS6000_CONSTRAINT_wu.
27041 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27042 (rs6000_init_hard_regno_mode_ok): Adjust.
27043 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
27044 both with "p8v".
27045 (define_mode_attr Fa): Delete.
27046 * config/rs6000/vsx.md: Ditto.
27047 * doc/md.texi (Machine Constraints): Adjust.
27048
27049 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27050
27051 * config/rs6000/constraints.md (define_register_constraint "wJ"):
27052 Delete.
27053 (define_register_constraint "wK"): Delete.
27054 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27055 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
27056 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27057 (rs6000_init_hard_regno_mode_ok): Adjust.
27058 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
27059 Replace "wK" constraint by "wH" with "p9v".
27060 * config/rs6000/vsx.md: Ditto.
27061 * doc/md.texi (Machine Constraints): Adjust.
27062
27063 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27064
27065 * config/rs6000/constraints.md (define_register_constraint "wb"):
27066 Delete.
27067 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27068 RS6000_CONSTRAINT_wb.
27069 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27070 (rs6000_init_hard_regno_mode_ok): Adjust.
27071 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
27072 * config/rs6000/vsx.md: Ditto.
27073 * doc/md.texi (Machine Constraints): Adjust.
27074
27075 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27076
27077 * config/rs6000/constraints.md (define_register_constraint "wo"):
27078 Delete.
27079 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27080 RS6000_CONSTRAINT_wo.
27081 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27082 (rs6000_init_hard_regno_mode_ok): Adjust.
27083 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
27084 * config/rs6000/altivec.md: Ditto.
27085 * doc/md.texi (Machine Constraints): Adjust.
27086
27087 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27088
27089 * config/darwin-c.c (darwin_register_objc_includes): Do not
27090 prepend the sysroot when building gnu-runtime header search
27091 paths.
27092
27093 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27094
27095 * config/darwin.c (darwin_file_end): Use switch_to_section ()
27096 instead of direct output of the asm.
27097
27098 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27099
27100 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
27101 argument to be type bool (was int before).
27102 (rs6000_emit_epilogue): Simplify some code. Declare some variables
27103 at first use. Use type bool for some variables. Fix a theoretical
27104 eh_return bug for svr4.
27105
27106 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27107
27108 * config/rs6000/rs6000.md (isa): New attribute.
27109 (enabled): New attribute.
27110
27111 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
27112
27113 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
27114 assemble_start_function and assemble_end_function.
27115
27116 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
27117
27118 PR middle-end/89433
27119 * omp-general.c (oacc_verify_routine_clauses): Change formal
27120 parameters. Add checking if already marked with an OpenACC
27121 'routine' directive. Adjust all users.
27122
27123 PR middle-end/89433
27124 * omp-general.c (oacc_build_routine_dims): Move some of its
27125 processing into...
27126 (oacc_verify_routine_clauses): ... this new function.
27127 * omp-general.h (oacc_verify_routine_clauses): New prototype.
27128
27129 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27130
27131 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
27132 formating of picbase labels to match other ports.
27133
27134 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27135
27136 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
27137 in the generated code.
27138
27139 2019-05-16 Martin Sebor <msebor@redhat.com>
27140
27141 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
27142 identifiers, keywords, operators, and types in diagnostics. Correct
27143 quoting, spelling, and sentence capitalization issues.
27144 (expand_builtin_atomic_is_lock_free): Same.
27145 (fold_builtin_next_arg): Same.
27146 * cfgexpand.c (expand_one_var): Same.
27147 (tree_conflicts_with_clobbers_p): Same.
27148 (expand_asm_stmt): Same.
27149 (verify_loop_structure): Same.
27150 * cgraphunit.c (process_function_and_variable_attributes): Same.
27151 * collect-utils.c (collect_execute): Same.
27152 * collect2.c (maybe_run_lto_and_relink): Same.
27153 (is_lto_object_file): Same.
27154 (scan_prog_file): Same.
27155 * convert.c (convert_to_real_1): Same.
27156 * dwarf2out.c (dwarf2out_begin_prologue): Same.
27157 * except.c (verify_eh_tree): Same.
27158 * gcc.c (execute): Same.
27159 (eval_spec_function): Same.
27160 (run_attempt): Same.
27161 (driver::set_up_specs): Same.
27162 (compare_debug_auxbase_opt_spec_function): Same.
27163 * gcov-tool.c (unlink_gcda_file): Same.
27164 (do_merge): Same.
27165 (do_rewrite): Same.
27166 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
27167 * gimplify.c (gimplify_asm_expr): Same.
27168 (gimplify_adjust_omp_clauses): Same.
27169 * hsa-gen.c (gen_hsa_addr_insns): Same.
27170 (gen_hsa_insns_for_load): Same.
27171 (gen_hsa_cmp_insn_from_gimple): Same.
27172 (gen_hsa_insns_for_operation_assignment): Same.
27173 (gen_get_level): Same.
27174 (gen_hsa_alloca): Same.
27175 (omp_simple_builtin::generate): Same.
27176 (gen_hsa_atomic_for_builtin): Same.
27177 (gen_hsa_insns_for_call): Same.
27178 * input.c (dump_location_info): Same.
27179 * ipa-devirt.c (compare_virtual_tables): Same.
27180 * ira.c (ira_setup_eliminable_regset): Same.
27181 * lra-assigns.c (lra_assign): Same.
27182 * lra-constraints.c (lra_constraints): Same.
27183 * lto-streamer-in.c (lto_input_mode_table): Same.
27184 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
27185 (merge_and_complain): Same.
27186 (compile_offload_image): Same.
27187 (compile_images_for_offload_targets): Same.
27188 (debug_objcopy): Same.
27189 (run_gcc): Same.
27190 (main): Same.
27191 * opts.c (print_specific_help): Same.
27192 (parse_no_sanitize_attribute): Same.
27193 (print_help): Same.
27194 (handle_param): Same.
27195 * plugin.c (add_new_plugin): Same.
27196 (parse_plugin_arg_opt): Same.
27197 (try_init_one_plugin): Same.
27198 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
27199 operators, and types in diagnostics. Correct quoting and spelling
27200 issues.
27201 * read-rtl-function.c (parse_edge_flag_token): Same.
27202 (function_reader::parse_enum_value): Same.
27203 * reg-stack.c (check_asm_stack_operands): Same.
27204 * regcprop.c (validate_value_data): Same.
27205 * sched-rgn.c (make_pass_sched_fusion): Same.
27206 * stmt.c (check_unique_operand_names): Same.
27207 * targhooks.c (default_target_option_pragma_parse): Same.
27208 * tlink.c (recompile_files): Same.
27209 * toplev.c (process_options): Same.
27210 (do_compile): Same.
27211 * trans-mem.c (diagnose_tm_1): Same.
27212 (ipa_tm_scan_irr_block): Same.
27213 (ipa_tm_diagnose_transaction): Same.
27214 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
27215 format a tree code name in a diagnostic.
27216 (verify_types_in_gimple_min_lval): Same.
27217 (verify_types_in_gimple_reference): Same.
27218 (verify_gimple_call): Same.
27219 (verify_gimple_assign_unary): Same.
27220 (verify_gimple_assign_binary): Same.
27221 (verify_gimple_assign_ternary): Same.
27222 (verify_gimple_assign_single): Same.
27223 (verify_gimple_switch): Same.
27224 (verify_gimple_label): Same.
27225 (verify_gimple_phi): Same.
27226 (verify_gimple_in_seq): Same.
27227 (verify_eh_throw_stmt_node): Same.
27228 (collect_subblocks): Same.
27229 (gimple_verify_flow_info): Same.
27230 (do_warn_unused_result): Same.
27231 * tree-inline.c (expand_call_inline): Same.
27232 * tree-into-ssa.c (update_ssa): Same.
27233 * tree.c (tree_int_cst_elt_check_failed): Same.
27234 (tree_vec_elt_check_failed): Same.
27235 (omp_clause_operand_check_failed): Same.
27236 (verify_type_variant): Same.
27237 (verify_type): Same.
27238 * value-prof.c (verify_histograms): Same.
27239 * varasm.c (assemble_start_function): Same.
27240
27241 2019-05-16 Martin Sebor <msebor@redhat.com>
27242
27243 * config/i386/i386-expand.c (get_element_number): Quote keywords
27244 and other internal names in diagnostics. Adjust other diagnostic
27245 formatting issues noted by -Wformat-diag.
27246 * config/i386/i386-features.c
27247 (ix86_mangle_function_version_assembler_name): Same.
27248 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
27249 * config/i386/i386.c (ix86_function_type_abi): Same.
27250 (ix86_function_ms_hook_prologue): Same.
27251 (classify_argument): Same.
27252 (ix86_expand_prologue): Same.
27253 (ix86_md_asm_adjust): Same.
27254 (ix86_memmodel_check): Same.
27255
27256 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
27257
27258 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
27259 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
27260 and fpxx modes.
27261
27262 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
27263
27264 PR target/90497
27265 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
27266 intrinsics without SSE/SSE2/SSSE3.
27267 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
27268 check.
27269 (*mmx_uavgv8qi3): Likewise.
27270
27271 2019-05-17 Richard Biener <rguenther@suse.de>
27272
27273 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
27274 VEC_PERM_EXPR as __VEC_PERM with -gimple.
27275
27276 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
27277
27278 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
27279 vec_sldw insn pattern.
27280
27281 2019-05-17 Richard Biener <rguenther@suse.de>
27282
27283 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
27284
27285 2019-05-17 Martin Liska <mliska@suse.cz>
27286
27287 PR driver/90496
27288 * toplev.c (output_stack_usage): With LTO and sanitizer it
27289 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
27290 has no file location.
27291
27292 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27293
27294 PR c++/90484
27295 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
27296 sz0 is equal to sz1, instead return false in that case.
27297
27298 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
27299 has non-constant expression, force sctx.lane and use two
27300 argument IFN_GOMP_SIMD_LANE instead of single argument.
27301 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
27302 two argument IFN_GOMP_SIMD_LANE without lhs.
27303 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
27304 member.
27305 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
27306 Define.
27307 (LOOP_REQUIRES_VERSIONING): Or in
27308 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
27309 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
27310 simd_if_cond.
27311 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
27312 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
27313 from simd if clause if needed.
27314
27315 2019-05-16 Richard Biener <rguenther@suse.de>
27316
27317 * tree-affine.c (expr_to_aff_combination): New function split
27318 out from...
27319 (tree_to_aff_combination): ... here.
27320 (aff_combination_expand): Avoid building a GENERIC tree.
27321
27322 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
27323
27324 * cgraphunit.c (cgraph_node::expand_thunk): Remove
27325 assemble_start_function and assemble_end_function calls.
27326 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
27327 assemble_start_function and assemble_end_function.
27328 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
27329 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
27330 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
27331 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
27332 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
27333 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
27334 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
27335 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
27336 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
27337 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
27338 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
27339 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
27340 Likewise.
27341 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
27342 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
27343 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
27344 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
27345 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
27346 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
27347 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
27348 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
27349 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
27350 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27351 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
27352 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
27353 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
27354 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
27355 Likewise.
27356 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
27357 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
27358 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
27359
27360 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
27361
27362 * tree-ssa-alias.c (alias_stats): Add
27363 aliasing_component_refs_p_may_alias and
27364 aliasing_component_refs_p_no_alias.
27365 (dump_alias_stats): Print aliasing_component_refs_p stats.
27366 (aliasing_component_refs_p): Update stats.
27367
27368 2019-05-16 Martin Liska <mliska@suse.cz>
27369
27370 PR lto/90500
27371 * multiple_target.c (expand_target_clones): Do not allow
27372 target_clones being used with a symbol that is an alias.
27373
27374 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
27375
27376 PR tree-optimization/90394
27377 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
27378 positives rather than ICE for cases where (code2 == NE_EXPR
27379 && code1 == BIT_AND_EXPR).
27380
27381 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27382
27383 PR fortran/90329
27384 * tree-core.h (struct tree_decl_common): Document
27385 decl_nonshareable_flag for PARM_DECLs.
27386 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
27387 * calls.c (expand_call): Don't try tail call if caller
27388 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
27389 passed on the stack and callee needs to pass any arguments on the
27390 stack.
27391 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27392 else if instead of series of mutually exclusive ifs. Handle
27393 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
27394 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27395
27396 * lto-streamer.h (LTO_major_version): Bump to 9.
27397
27398 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
27399
27400 PR tree-optimization/90106
27401 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
27402 new parameter as new internal function call, also move it to new
27403 basic block.
27404 (use_internal_fn): Pass internal function call to
27405 shrink_wrap_one_built_in_call_with_conds.
27406
27407 2019-05-15 Jakub Jelinek <jakub@redhat.com>
27408
27409 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
27410 max_vf to 1.
27411 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
27412 safelen_int and set loop->dont_vectorize.
27413
27414 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27415
27416 PR target/89021
27417 * config/i386/i386-builtin.def: Enable MMX intrinsics with
27418 SSE/SSE2/SSSE3.
27419 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27420 Likewise.
27421 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
27422 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
27423 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
27424 is defined.
27425
27426 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27427
27428 PR target/89021
27429 * config/i386/mmx.md (*vec_dupv2sf): Changed to
27430 define_insn_and_split to support SSE emulation.
27431 (*vec_extractv2sf_0): Likewise.
27432 (*vec_extractv2sf_1): Likewise.
27433 (*vec_extractv2si_0): Likewise.
27434 (*vec_extractv2si_1): Likewise.
27435 (*vec_extractv2si_zext_mem): Likewise.
27436 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
27437 (vec_extractv2sf_1 splitter): Likewise.
27438 (vec_extractv2sfsf): Likewise.
27439 (vec_setv2si): Likewise.
27440 (vec_extractv2si_1 splitter): Likewise.
27441 (vec_extractv2sisi): Likewise.
27442 (vec_setv4hi): Likewise.
27443 (vec_extractv4hihi): Likewise.
27444 (vec_setv8qi): Likewise.
27445 (vec_extractv8qiqi): Likewise.
27446 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27447 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27448 (vec_extractv2sisi): Likewise.
27449 (vec_extractv4hihi): Likewise.
27450 (vec_extractv8qiqi): Likewise.
27451 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27452 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27453 (vec_initv2sisi): Likewise.
27454 (vec_initv4hihi): Likewise.
27455 (vec_initv8qiqi): Likewise.
27456 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
27457 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27458 (vec_setv4hi): Likewise.
27459 (vec_setv8qi): Likewise.
27460
27461 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27462
27463 PR target/89021
27464 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27465 TARGET_MMX_WITH_SSE.
27466 (MMXMODE:*mov<mode>_internal): Likewise.
27467 (MMXMODE:movmisalign<mode>): Likewise.
27468
27469 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
27470
27471 PR target/89021
27472 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27473 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27474 (sse2_cvtpd2pi): Ditto.
27475 (sse2_cvttpd2pi): Ditto.
27476 (*vec_concatv2sf_sse4_1): Ditto.
27477 (*vec_concatv2sf_sse): Ditto.
27478 (*vec_concatv2si_sse4_1): Ditto.
27479 (*vec_concatv2si): Ditto.
27480 (*vec_concatv4si_0): Ditto.
27481 (*vec_concatv2di_0): Ditto.
27482
27483 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27484
27485 PR target/89021
27486 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27487
27488 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27489
27490 PR target/89021
27491 * config/i386/sse.md (ssse3_palignrdi): Changed to
27492 define_insn_and_split to support SSE emulation.
27493
27494 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27495
27496 PR target/89021
27497 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27498
27499 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27500
27501 PR target/89021
27502 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27503 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27504 SSE emulation.
27505
27506 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27507
27508 PR target/89021
27509 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27510 or TARGET_MMX_WITH_SSE.
27511 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27512
27513 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27514
27515 PR target/89021
27516 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27517
27518 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27519
27520 PR target/89021
27521 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27522 Changed to define_insn_and_split to support SSE emulation.
27523
27524 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27525
27526 PR target/89021
27527 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27528 Changed to define_insn_and_split to support SSE emulation.
27529
27530 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27531
27532 PR target/89021
27533 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27534 (*mmx_<emms>): This.
27535 (mmx_<emms>): New expander.
27536
27537 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27538
27539 PR target/89021
27540 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27541 support.
27542 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27543
27544 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27545
27546 PR target/89021
27547 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27548
27549 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27550
27551 PR target/89021
27552 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27553
27554 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27555
27556 PR target/89021
27557 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27558 TARGET_MMX_WITH_SSE.
27559 (*mmx_uavgv4hi3): Add SSE emulation.
27560
27561 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27562
27563 PR target/89021
27564 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27565 and TARGET_MMX_WITH_SSE.
27566 (*mmx_uavgv8qi3): Add SSE emulation.
27567
27568 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27569
27570 PR target/89021
27571 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27572 maskmovdqu for __MMX_WITH_SSE__.
27573
27574 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27575
27576 PR target/89021
27577 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27578 TARGET_MMX and TARGET_MMX_WITH_SSE.
27579 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27580
27581 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27582
27583 PR target/89021
27584 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27585 define_insn_and_split to support SSE emulation.
27586
27587 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27588
27589 PR target/89021
27590 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27591 and TARGET_MMX_WITH_SSE.
27592 (mmx_<code>v8qi3): Likewise.
27593 (smaxmin:<code>v4hi3): New.
27594 (umaxmin:<code>v8qi3): Likewise.
27595 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27596 (umaxmin:*mmx_<code>v8qi3): Likewise.
27597
27598 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27599
27600 PR target/89021
27601 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27602 TARGET_MMX_WITH_SSE.
27603 (*mmx_pinsrw): Add SSE emulation.
27604
27605 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27606
27607 PR target/89021
27608 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27609
27610 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27611
27612 PR target/89021
27613 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27614 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27615 SSE emulation.
27616
27617 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27618
27619 PR target/89021
27620 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27621 (sse_cvttps2pi): Likewise.
27622
27623 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27624
27625 PR target/89021
27626 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27627 TARGET_MMX_WITH_SSE.
27628 (mmx_pshufw_1): Add SSE emulation.
27629 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27630 TARGET_MMX_WITH_SSE to support SSE emulation.
27631
27632 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27633
27634 PR target/89021
27635 * config/i386/constraints.md (Yw): New constraint.
27636 * config/i386/mmx.md (*vec_dupv2si): Changed to
27637 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27638 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_eq<mode>3): Also allow
27644 TARGET_MMX_WITH_SSE.
27645 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27646 support.
27647 (mmx_gt<mode>3): Likewise.
27648
27649 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27650
27651 PR target/89021
27652 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27653 TARGET_MMX_WITH_SSE. Add SSE support.
27654
27655 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27656
27657 PR target/89021
27658 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27659 TARGET_MMX_WITH_SSE.
27660 (any_logic:<code><mode>3): New.
27661 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27662 Add SSE support.
27663
27664 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27665
27666 PR target/89021
27667 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27668 TARGET_MMX_WITH_SSE. Add SSE emulation.
27669 (mmx_<shift_insn><mode>3): Likewise.
27670 (ashr<mode>3): New.
27671 (<shift_insn><mode>3): Likewise.
27672
27673 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27674
27675 PR target/89021
27676 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27677 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27678
27679 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27680
27681 PR target/89021
27682 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27683 TARGET_MMX_WITH_SSE.
27684 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27685 SSE support.
27686
27687 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27688
27689 PR target/89021
27690 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27691 TARGET_MMX_WITH_SSE.
27692 (mulv4hi3): New.
27693 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27694 support.
27695
27696 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27697
27698 PR target/89021
27699 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27700 (plusminus:mmx_<plusminus_insn><mode>3): Check
27701 TARGET_MMX_WITH_SSE.
27702 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27703 (<plusminus_insn><mode>3): New.
27704 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27705 (*mmx_<plusminus_insn><mode>3): Likewise.
27706
27707 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27708
27709 PR target/89021
27710 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27711 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27712 prototype.
27713 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27714 define_insn_and_split to support SSE emulation.
27715 (mmx_punpcklbw): Likewise.
27716 (mmx_punpckhwd): Likewise.
27717 (mmx_punpcklwd): Likewise.
27718 (mmx_punpckhdq): Likewise.
27719 (mmx_punpckldq): Likewise.
27720
27721 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27722 Uros Bizjak <ubizjak@gmail.com>
27723
27724 PR target/89021
27725 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27726 New function.
27727 (ix86_split_mmx_pack): Likewise.
27728 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27729 New prototype.
27730 (ix86_split_mmx_pack): Likewise.
27731 * config/i386/i386.md (mmx_isa): New.
27732 (enabled): Also check mmx_isa.
27733 * config/i386/mmx.md (any_s_truncate): New code iterator.
27734 (s_trunsuffix): New code attr.
27735 (mmx_packsswb): Removed.
27736 (mmx_packssdw): Likewise.
27737 (mmx_packuswb): Likewise.
27738 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27739 MMX packsswb/packuswb with SSE2.
27740 (mmx_packssdw): Likewise.
27741 * config/i386/predicates.md (register_mmxmem_operand): New.
27742
27743 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27744
27745 PR target/89021
27746 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27747 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27748 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27749 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27750 (ix86_vector_mode_supported_p): Likewise.
27751 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27752
27753 2019-05-15 Martin Liska <mliska@suse.cz>
27754
27755 PR middle-end/90478
27756 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27757 Check for overflow.
27758
27759 2019-05-15 Richard Biener <rguenther@suse.de>
27760
27761 * tree-into-ssa.c (pass_build_ssa::execute): Run
27762 update_address_taken before going into SSA.
27763
27764 2019-05-15 Richard Biener <rguenther@suse.de>
27765
27766 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27767 as __BIT_FIELD_REF with type with -gimple.
27768
27769 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27770
27771 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27772 semantically equivalent branches (left over after prior refactorings).
27773
27774 2019-05-15 Richard Biener <rguenther@suse.de>
27775
27776 PR tree-optimization/88828
27777 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27778 bogus check.
27779
27780 2019-05-14 Richard Biener <rguenther@suse.de>
27781
27782 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27783 as __VIEW_CONVERT with -gimple.
27784
27785 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27786
27787 PR target/82920
27788 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27789 Darwin.
27790
27791 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27792
27793 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27794 define_split to become a define_insn_and_split.
27795
27796 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27797
27798 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27799 arguments.
27800 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27801 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27802 (sibcall_epilogue): Adjust.
27803 (epilogue): Adjust.
27804
27805 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27806
27807 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27808 to unsupported ones.
27809 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27810 * config.host: Likewise.
27811 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27812 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27813 __svr4__]: Remove "brand" fallback.
27814 [!KSTAT_DATA_STRING]: Remove.
27815 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27816 to *-*-solaris2*.
27817 (comdat_group): Likewise.
27818 (set_have_as_tls): Likewise.
27819 (gcc_cv_target_dl_iterate_phdr): Likewise.
27820 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27821 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27822 * configure: Regenerate.
27823 * doc/install.texi: Simplify Solaris target triplets.
27824 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27825 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27826 Remove Solaris 10 references.
27827 Remove obsolete Solaris bug reference.
27828 (Specific, sparc-sun-solaris2.10): Remove.
27829
27830 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27831
27832 * config/i386/i386.md (any_div): New code iterator.
27833 (paired_mod): New code attribute.
27834 (sgnprefix): Handle DIV and UDIV RTXes.
27835 (u): Ditto.
27836 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27837 and udivmod<mode>4 patterns using any_div code iterator.
27838 (divmod splitters): Macroize splitters using any_div code iterator.
27839 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27840 (*udivmodsi4_pow2_zext_2): Ditto.
27841 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27842 and *udivmod<mode>4_noext patterns using any_div code iterator.
27843 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27844 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27845 patterns using any_div code iterator.
27846 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27847 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27848 patterns using any_div code iterator.
27849 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27850 udivmodhiqi3 patterns using any_extend code iterator.
27851
27852 2019-05-14 Richard Biener <rguenther@suse.de>
27853 H.J. Lu <hongjiu.lu@intel.com>
27854
27855 PR tree-optimization/88828
27856 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27857 permuting in a single non-constant element not extracted
27858 from a vector.
27859
27860 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27861
27862 * internal-fn.def (SIGNBIT): New.
27863 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27864 defined.
27865 (signbitv4sf2): Likewise.
27866
27867 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27868
27869 PR target/90357
27870 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27871 next insn when the SRC reg is dead.
27872
27873 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27874
27875 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27876 (alloc_cand_and_find_basis): Ditto.
27877 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27878 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27879 (create_add_imm_cand, slsr_process_cast): Ditto.
27880 (slsr_process_copy, replace_mult_candidate): Ditto.
27881 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27882 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27883 (pass_strength_reduction::execute): Init the first NULL element.
27884
27885 2019-05-13 Nathan Sidwell <nathan@acm.org>
27886
27887 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27888 (run_attempt): Reformat line break.
27889
27890 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27891
27892 PR target/90418
27893 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27894 data registers in sibcall epilogues.
27895 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27896
27897 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27898
27899 PR target/89221
27900 * configure.ac (--enable-frame-pointer):
27901 Disable by default for cygwin and mingw.
27902 * configure: Regenerate.
27903
27904 2019-05-13 Nathan Sidwell <nathan@acm.org>
27905
27906 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27907 piece of code.
27908 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27909 (gen_member_die): Move abstract origin check earlier. Only VARs
27910 can be static_inline_p. Simplify splicing control flow.
27911
27912 2019-05-13 Richard Biener <rguenther@suse.de>
27913
27914 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27915 VIEW_CONVERT_EXPR.
27916 (vect_build_slp_tree_1): Likewise.
27917
27918 2019-05-13 Richard Biener <rguenther@suse.de>
27919
27920 PR tree-optimization/90402
27921 * tree-if-conv.c (tree_if_conversion): Value number only
27922 the loop body by making the latch an exit of the region
27923 as well.
27924 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27925 processing PHIs.
27926 (do_rpo_vn): Deal with multiple edges into the entry block
27927 that are not backedges inside the region by skipping PHIs
27928 of the entry block.
27929
27930 2019-05-13 Richard Biener <rguenther@suse.de>
27931
27932 PR tree-optimization/90316
27933 * tree-ssa-pre.c (insert_aux): Fold into ...
27934 (insert): ... this function. Use a RPO walk to reduce the
27935 number of required iterations.
27936
27937 2019-05-13 Martin Liska <mliska@suse.cz>
27938
27939 PR tree-optimization/90416
27940 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27941 string instead of passing the second part as va_arg argument.
27942
27943 2019-05-13 Martin Liska <mliska@suse.cz>
27944
27945 PR gcov-profile/90380
27946 * gcov.c (handle_cycle): Do not support zero cycle count,
27947 it should not be possible.
27948 (path_contains_zero_cycle_arc): New function.
27949 (circuit): Ignore zero cycle arc counts.
27950
27951 2019-05-13 Martin Liska <mliska@suse.cz>
27952
27953 PR gcov-profile/90380
27954 * gcov.c (enum loop_type): Remove the enum and
27955 the operator.
27956 (handle_cycle): Assert that we should not reach
27957 a negative count.
27958 (circuit): Use loop_found instead of a tri-state loop_type.
27959 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27960 happen.
27961
27962 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27963
27964 PR target/82920
27965 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27966 (ix86_output_indirect_branch_via_reg): Use output mechanism
27967 accounting for __USER_LABEL_PREFIX__.
27968 (ix86_output_indirect_branch_via_push): Likewise.
27969 (ix86_output_function_return): Likewise.
27970 (ix86_output_indirect_function_return): Likewise.
27971
27972 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27973
27974 * doc/md.texi: Document use of code attributes in rtx patterns.
27975 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27976 * read-rtl.c (find_code): Split out search loops into...
27977 (maybe_find_code): ...this new function.
27978 (check_code_iterator): Make the error message more informative.
27979 (check_code_attribute): New function.
27980 (rtx_reader::rtx_alloc_for_name): Likewise.
27981 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27982 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27983 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27984 <max_opp> directly as an rtx code instead of via a match_operator.
27985 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27986 (<su>abd<mode>_3): Update accordingly.
27987
27988 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27989
27990 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27991 is given, print the state of the EH "save world" computation for
27992 Darwin.
27993
27994 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27995
27996 PR c++/59813
27997 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27998 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27999
28000 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
28001
28002 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
28003 Use pinsrd for TARGET_SSE4_1.
28004 * config/i386/sse.md (movdi_to_sse): Ditto.
28005
28006 2019-05-10 Richard Biener <rguenther@suse.de>
28007
28008 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
28009 (do_rpo_vn): Initialize next_value_id.
28010
28011 2019-05-10 Martin Liska <mliska@suse.cz>
28012
28013 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28014 Fix plural form.
28015
28016 2019-05-10 Jakub Jelinek <jakub@redhat.com>
28017
28018 PR tree-optimization/90385
28019 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
28020 arguments of the exit phis.
28021
28022 PR c++/90383
28023 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
28024 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
28025 id->do_not_fold.
28026 (copy_tree_body_r): Likewise.
28027 (copy_fn): Set id.do_not_fold to true.
28028
28029 2019-05-10 Martin Liska <mliska@suse.cz>
28030
28031 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
28032 Reapply changes from r269790.
28033
28034 2019-05-10 Martin Liska <mliska@suse.cz>
28035
28036 PR middle-end/90340
28037 * doc/invoke.texi: New params.
28038 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
28039 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
28040 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
28041 Use it.
28042 * tree-switch-conversion.h (struct jump_table_cluster):
28043 Likewise.
28044
28045 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
28046
28047 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
28048
28049 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
28050
28051 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
28052
28053 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
28054
28055 PR rtl-optimization/88879
28056 * sel-sched.c (sel_target_adjust_priority): Remove assert.
28057
28058 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
28059
28060 PR target/90405
28061 * config/arm/arm.c (callee_saved_reg_p): Move before
28062 thumb_find_work_register.
28063 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
28064 thumb_find_work_register. Only call df_get_live_out once.
28065 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
28066 (thumb_find_work_register): Use
28067 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
28068 algorithms to locate a spare call clobbered reg.
28069
28070 2019-05-09 Martin Liska <mliska@suse.cz>
28071
28072 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
28073 and MAX_EXPR in GIMPLE FE format.
28074
28075 2019-05-09 Martin Liska <mliska@suse.cz>
28076
28077 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
28078 * gimple-pretty-print.c (dump_gimple_bb_header):
28079 Dump BB count.
28080 (pp_cfg_jump): Dump edge probability.
28081 * profile-count.c (profile_quality_as_string): Simplify
28082 with a static array.
28083 (parse_profile_quality): New function.
28084 (profile_count::dump): Simplify with a static array.
28085 (profile_count::from_gcov_type): Add new argument.
28086 * profile-count.h (parse_profile_quality): Likewise.
28087 * predict.h (set_hot_bb_threshold): New.
28088 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28089 New param.
28090 * predict.c (get_hot_bb_threshold): Set from the new param.
28091 (set_hot_bb_threshold): New.
28092
28093 2019-05-09 Richard Biener <rguenther@suse.de>
28094
28095 PR tree-optimization/90395
28096 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
28097 rewrite vector stores that throw internally.
28098
28099 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
28100
28101 * cif-code.def (CHKP): Remove.
28102
28103 PR target/89221
28104 * configure.ac (--enable-frame-pointer): Disable by default for
28105 GNU systems.
28106 * configure: Regenerate.
28107
28108 2019-05-09 Alan Modra <amodra@gmail.com>
28109
28110 PR target/89271
28111 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
28112 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
28113 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
28114 cost for general <-> vsx when direct moves are available.
28115 Cost union classes at minimal cost for any reg in the class.
28116 Correct calculation for moves between vsx, float, and altivec.
28117 Don't return a low cost for moves between special regs. Don't
28118 use hard coded register numbers.
28119 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
28120 (rs6000_ira_change_pseudo_allocno_class): New function.
28121 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
28122 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
28123 alternatives.
28124 (movsi_internal1): Don't disparage vector alternatives.
28125 (mov<mode>_internal): Likewise, excepting alternative that
28126 will be split.
28127 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
28128 we <- b alternative.
28129
28130 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28131
28132 PR c++/59813
28133 PR tree-optimization/89060
28134 * tree-ssa-live.h (live_vars_map): New typedef.
28135 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
28136 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
28137 (struct compute_live_vars_data): New type.
28138 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
28139 live_vars_at_stmt, destroy_live_vars): New functions.
28140 * tree-tailcall.c: Include tree-ssa-live.h.
28141 (live_vars, live_vars_vec): New global variables.
28142 (find_tail_calls): Perform variable life analysis before punting.
28143 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
28144 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
28145 member.
28146 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
28147 Perform variable life analysis to select variables that really need
28148 clobbers added.
28149 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
28150 instead set id->eh_landing_pad_dest and assert it is the same.
28151 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
28152
28153 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
28154 Richard Earnshaw <rearnsha@arm.com>
28155
28156 PR target/88167
28157 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
28158 function.
28159 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
28160 (thumb1_compute_save_core_reg_mask): Don't force a spare work
28161 register if both the epilogue and prologue can use call-clobbered
28162 regs.
28163 (thumb1_unexpanded_epilogue): Use
28164 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
28165 picking temporaries for restoring high regs to match that of the
28166 prologue where possible.
28167 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
28168 the list of work registers. Detect if the return address is still live
28169 at the end of the prologue and avoid using it for a work register if so.
28170 If the return address is not live, add LR to the list of pushable regs
28171 after the first pass.
28172
28173 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28174
28175 PR tree-optimization/90078
28176 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
28177 (INFTY): Increase the value for infinite cost.
28178 (struct comp_cost): Promote type of members to int64_t.
28179 (infinite_cost): Don't set complexity in initialization.
28180 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
28181 overflows to infinite_cost.
28182 (adjust_setup_cost): Promote type of parameter and cost computation
28183 to int64_t.
28184 (struct ainc_cost_data, struct iv_ca): Promote type of member to
28185 int64_t.
28186 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
28187 cost computation to int64_t.
28188 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
28189 int64_t's format specifier in dump.
28190
28191 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28192
28193 PR tree-optimization/90240
28194 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
28195 with respect to scaling factor pre-computed for each basic block.
28196 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
28197 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
28198 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
28199 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
28200 live range for array of loop's basic blocks. Cleanup aux field of
28201 loop's basic blocks.
28202
28203 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28204
28205 PR tree-optimization/90356
28206 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
28207
28208 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
28209
28210 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
28211 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
28212 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
28213 (ix86_handle_option): Handle -mavx512bf16.
28214 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
28215 to extra_headers.
28216 * config/i386/avx512bf16vlintrin.h: New.
28217 * config/i386/avx512bf16intrin.h: New.
28218 * config/i386/cpuid.h (bit_AVX512BF16): New.
28219 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
28220 * config/i386/i386-builtin-types.def: Add new types.
28221 * config/i386/i386-builtin.def: Add new builtins.
28222 * config/i386/i386-c.c (ix86_target_macros_internal): Define
28223 __AVX512BF16__.
28224 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
28225 (ix86_option_override_internal): Handle BF16.
28226 (ix86_valid_target_attribute_inner_p): Ditto.
28227 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
28228 * config/i386/i386-builtin.c (enum processor_features): Add
28229 F_AVX512BF16.
28230 (static const _isa_names_table isa_names_table): Ditto.
28231 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
28232 (PTA_AVX512BF16): Ditto.
28233 * config/i386/i386.opt: Add -mavx512bf16.
28234 * config/i386/immintrin.h: Include avx512bf16intrin.h
28235 and avx512bf16vlintrin.h.
28236 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
28237 avx512f_cvtneps2bf16_<mode><mask_name>,
28238 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
28239 * config/i386/subst.md (mask_half): Add new subst.
28240 * doc/invoke.texi: Document -mavx512bf16.
28241
28242 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
28243
28244 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
28245 Delete declaration.
28246 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
28247 (rs6000_debug_legitimize_reload_address): Delete.
28248 (rs6000_legitimize_reload_address_ptr): Delete.
28249 (rs6000_option_override_internal): Adjust.
28250 (mem_operand_gpr): Adjust comment.
28251 (legitimate_lo_sum_address_p): Ditto.
28252 (rs6000_legitimize_reload_address): Delete.
28253 (rs6000_debug_legitimize_reload_address): Delete.
28254 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
28255
28256 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
28257
28258 PR target/89765
28259 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28260 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
28261 to compute vector element selector for both constant and variable
28262 operands.
28263
28264 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28265
28266 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
28267 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
28268 ashrdi3_cvt using SWI48 mode iterator.
28269
28270 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28271
28272 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
28273 (aarch64_<su>abd<mode>_3): Likewise.
28274 (*aarch64_<su>abd<mode>_3): New define_insn.
28275 (<sur>sad<vsi2qi>): New define_expand.
28276 * config/aarch64/iterators.md: Added MAX_OPP attribute.
28277 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
28278 (build_vect_cond_expr): Likewise.
28279
28280 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28281
28282 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
28283 clobbers outside of accessible_reg_set.
28284 * config/i386/i386.c (ix86_conditional_register_usage):
28285 Disable register sets by clearing corresponding bits in
28286 accessible_reg_set. Do not set corresponding bits in fixed_regs,
28287 call_used_regs and don't clear corresponding reg_names array members.
28288
28289 2019-05-07 Richard Biener <rguenther@suse.de>
28290
28291 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
28292 not specified still compute a comp_vectype for invariant
28293 compares.
28294
28295 2019-05-07 Richard Biener <rguenther@suse.de>
28296
28297 PR tree-optimization/90316
28298 * tree-ssa-pre.c (translate_vuse_through_block): When
28299 same_valid is NULL do not bother to search for a virtual
28300 PHI continuation.
28301 (phi_translate_1): When operands changed we cannot keep
28302 the same value-number so do not bother to ask whether
28303 that's possible from translate_vuse_through_block.
28304
28305 2019-05-07 Martin Liska <mliska@suse.cz>
28306
28307 * bitmap.c (bitmap_register): Come up with
28308 alloc_descriptor_max_uid and assign it for
28309 a new bitmap.
28310 (register_overhead): Use get_descriptor as
28311 a descriptor.
28312 (release_overhead): New.
28313 (bitmap_elem_to_freelist): Call it.
28314 (bitmap_elt_clear_from): Likewise.
28315 (bitmap_obstack_free): Likewise.
28316 (bitmap_move): Sensitively release memory.
28317 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
28318 (bitmap_initialize): Initialize alloc_descriptor to zero.
28319 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
28320
28321 2019-05-07 Richard Biener <rguenther@suse.de>
28322
28323 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
28324 we build a SLP node. Remove max_size and limiting.
28325 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
28326
28327 2019-05-07 Richard Biener <rguenther@suse.de>
28328
28329 PR tree-optimization/90316
28330 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
28331 limit by reference.
28332 (walk_non_aliased_vuses): Take walking limit argument.
28333 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
28334 walking if it is reached instead of just counting.
28335 (get_continuation_for_phi): Likewise.
28336 (walk_non_aliased_vuses): Likewise, instead of leaving counter
28337 limiting to the callback.
28338 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
28339 (vn_reference_lookup_3): Likewise.
28340 (vn_reference_lookup_pieces): Likewise.
28341 (vn_reference_lookup): Likewise.
28342 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
28343 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
28344 (avail_exprs_stack::lookup_avail_expr): Likewise.
28345
28346 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
28347
28348 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
28349 for comparaible types in the second direction even if first one
28350 hits incomparable type.
28351
28352 2019-05-07 Richard Biener <rguenther@suse.de>
28353
28354 PR lto/90369
28355 * lto-wrapper.c (debug_objcopy): Use the original filename
28356 including archive offset for the filename used for -save-temps.
28357
28358 2019-05-07 Li Jia He <helijia@linux.ibm.com>
28359
28360 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
28361 detection.
28362
28363 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
28364 Hongtao Liu <hongtao.liu@intel.com>
28365
28366 PR target/89750
28367 PR target/86444
28368 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
28369 Modified, original implementation isn't correct.
28370
28371 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28372
28373 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
28374 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
28375 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
28376 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
28377 (FRAME_POINTER_REGNUM): Change numbering.
28378 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
28379 (alt_reg_names): Adjust.
28380 (rs6000_conditional_register_usage): Don't mark hard register 64 as
28381 fixed.
28382 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28383 (DWARF_FRAME_REGISTERS): Delete.
28384 (DWARF2_FRAME_REG_OUT): Fix whitespace.
28385 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28386 Adjust.
28387 (REG_ALLOC_ORDER): Adjust.
28388 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
28389 (REG_CLASS_CONTENTS): Adjust.
28390 (RETURN_ADDR_RTX): Change comment.
28391 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
28392 instead of 67.
28393 (REGISTER_NAMES): Adjust.
28394 (ADDITIONAL_REGISTER_NAMES): Adjust.
28395 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28396
28397 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28398
28399 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
28400 Delete.
28401 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28402 (DWARF_FRAME_REGISTERS): Adjust.
28403 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28404 Adjust.
28405 (REG_ALLOC_ORDER): Adjust.
28406 (enum reg_class): Delete SPR_REGS.
28407 (REG_CLASS_NAMES): Delete SPR_REGS.
28408 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
28409 (REGISTER_NAMES): Adjust.
28410 (ADDITIONAL_REGISTER_NAMES): Adjust.
28411 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28412 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
28413 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
28414 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
28415 (htm_spr_regno): Delete.
28416 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
28417 argument.
28418 (rs6000_dbx_register_number): Adjust.
28419
28420 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28421
28422 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
28423
28424 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28425
28426 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
28427 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
28428
28429 2019-05-06 Jakub Jelinek <jakub@redhat.com>
28430
28431 PR tree-optimization/88709
28432 PR tree-optimization/90271
28433 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
28434 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
28435 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
28436 variable.
28437 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
28438 of the store merging group is larger than
28439 PARAM_STORE_MERGING_MAX_SIZE parameter.
28440 (split_group): Add bzero_first argument. If set, always emit first
28441 the first store which must be = {} of the whole area and then for the
28442 rest of the stores consider all zero bytes as paddings.
28443 (imm_store_chain_info::output_merged_store): Check if first store
28444 is = {} of the whole area and if yes, determine which setting of
28445 bzero_first for split_group gives smaller number of stores. Adjust
28446 split_group callers.
28447 (lhs_valid_for_store_merging_p): Allow decls.
28448 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28449 no elts.
28450 (pass_store_merging::process_store): Likewise.
28451
28452 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
28453
28454 PR target/89424
28455 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28456 handling of V1TImode.
28457
28458 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
28459
28460 PR target/89221
28461 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28462 and enable_frame_pointer ...
28463 * configure.ac: ... here. Update help strings for
28464 --enable-frame-pointer.
28465 * configure: Regenerate.
28466 * config/i386/i386-options.c (ix86_option_override_internal): Remove
28467 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28468 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28469 (USE_X86_64_FRAME_POINTER): Ditto.
28470
28471 2019-05-06 Martin Liska <mliska@suse.cz>
28472
28473 * config.gcc: Append to target_gtfiles and fix indentation.
28474
28475 2019-05-06 Richard Biener <rguenther@suse.de>
28476
28477 PR tree-optimization/90358
28478 * tree-vect-stmts.c (get_group_load_store_type): Properly
28479 detect unused upper half of load.
28480 (vectorizable_load): Likewise.
28481
28482 2019-05-06 Richard Biener <rguenther@suse.de>
28483
28484 PR tree-optimization/88828
28485 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28486 (simplify_vector_constructor): ...here. Handle constants in
28487 the constructor.
28488
28489 2019-05-06 Richard Biener <rguenther@suse.de>
28490
28491 PR tree-optimization/90328
28492 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28493 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28494 is valid in the loop nest before using it.
28495 (initialize_data_dependence_relation): Adjust.
28496 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28497 loop as loop-nest to dr_may_alias_p.
28498
28499 2019-05-06 Richard Biener <rguenther@suse.de>
28500
28501 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28502
28503 2019-05-06 Richard Biener <rguenther@suse.de>
28504
28505 PR tree-optimization/90316
28506 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28507 compute target on demand.
28508 (get_continuation_for_phi): Remove code walking stmts to
28509 get to a target virtual operand which could end up being
28510 quadratic.
28511
28512 2019-05-06 Martin Liska <mliska@suse.cz>
28513
28514 PR sanitizer/90312
28515 * config/i386/i386-options.c (ix86_option_override_internal): Error only
28516 when -mabi is selected to a non-default version.
28517
28518 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28519 Martin Liska <mliska@suse.cz>
28520
28521 * Makefile.in: Add lto-dump.texi.
28522 * cgraph.h: Add new functions get_visibility_string and
28523 get_symtab_type_string.
28524 * doc/gcc.texi: Include lto-dump section.
28525 * doc/lto-dump.texi: New file.
28526 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28527 (parse_dump_option): Factor out this function.
28528 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28529 (parse_dump_option): Export the function.
28530 * symtab.c (symtab_node::get_visibility_string): New function.
28531 (symtab_node::get_symtab_type_string): Likewise.
28532
28533 2019-05-06 Martin Liska <mliska@suse.cz>
28534
28535 * config/i386/i386-builtins.c: New file.
28536 * config/i386/i386-builtins.h: New file.
28537 * config/i386/i386-expand.c: New file.
28538 * config/i386/i386-expand.h: New file.
28539 * config/i386/i386-features.c: New file.
28540 * config/i386/i386-features.h: New file.
28541 * config/i386/i386-options.c: New file.
28542 * config/i386/i386-options.h: New file.
28543 * config.gcc: Add new files into extra_objs and
28544 target_gtfiles.
28545 * config/i386/i386.c: Split content of the file
28546 into newly introduced files.
28547 * config/i386/i386.h: Declare common variables
28548 and macros.
28549 * config/i386/t-i386: Define dependencies for new files.
28550
28551 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28552
28553 PR target/89400
28554 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28555 Restrict 'all' variant to 32-bit configurations.
28556 (unaligned_loadhiu): Likewise.
28557 (unaligned_storehi): Likewise.
28558 (unaligned_storesi): Likewise.
28559 (unaligned_loadhis): Disable when compiling for thumb1.
28560
28561 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28562
28563 PR tree-optimization/90269
28564 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28565 Ignore clobbers.
28566
28567 2019-05-03 Martin Liska <mliska@suse.cz>
28568
28569 * hash-map.h: Add is_empty function.
28570 * hash-set.h: Likewise.
28571 * hash-table.h: Likewise.
28572 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28573 elements () == 0 (and similar usages).
28574 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28575 * gimplify.c (gimplify_bind_expr): Likewise.
28576 (gimplify_switch_expr): Likewise.
28577 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28578 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28579 * postreload-gcse.c (dump_hash_table): Likewise.
28580 (gcse_after_reload_main): Likewise.
28581 * predict.c (combine_predictions_for_bb): Likewise.
28582 * tree-parloops.c (reduction_phi): Likewise.
28583 (separate_decls_in_region): Likewise.
28584 (transform_to_exit_first_loop): Likewise.
28585 (gen_parallel_loop): Likewise.
28586 (gather_scalar_reductions): Likewise.
28587 (try_create_reduction_list): Likewise.
28588 * var-tracking.c (dump_vars): Likewise.
28589 (emit_notes_for_changes): Likewise.
28590 (vt_emit_notes): Likewise.
28591
28592 2019-05-03 Richard Biener <rguenther@suse.de>
28593
28594 PR tree-optimization/90316
28595 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28596 before running VN.
28597
28598 2019-05-03 Richard Biener <rguenther@suse.de>
28599
28600 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28601 peeling for gaps by loading only lower halves of vectors
28602 if possible.
28603 (vectorizable_load): Likewise.
28604
28605 2019-05-03 Richard Biener <rguenther@suse.de>
28606
28607 PR middle-end/89518
28608 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28609
28610 2019-05-03 Richard Biener <rguenther@suse.de>
28611
28612 PR middle-end/87314
28613 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28614 Handle STRING_CST vs DECL or STRING_CST.
28615
28616 2019-05-03 Richard Biener <rguenther@suse.de>
28617
28618 PR tree-optimization/88963
28619 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28620 vector loads feeding only BIT_FIELD_REFs to component
28621 loads. Rewrite stores fed by CONSTRUCTORs to component
28622 stores.
28623
28624 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28625
28626 * opts.h (finish_options): Remove lang_mask argument.
28627 (print_help, help_option_argument): Declare.
28628 * opts.c (print_help): Remove forward declaration, no longer static.
28629 (finish_options): Remove lang_mask argument, don't call print_help
28630 here.
28631 * opts-global.c (decode_options): Adjust finish_option caller, call
28632 print_help here.
28633
28634 PR tree-optimization/90303
28635 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28636 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28637
28638 2019-05-03 Richard Biener <rguenther@suse.de>
28639
28640 PR tree-optimization/89698
28641 * gimple-fold.c (canonicalize_constructor_val): Early out
28642 for constants, handle unfolded INTEGER_CSTs as they appear in
28643 C++ virtual table ctors.
28644
28645 2019-05-03 Richard Biener <rguenther@suse.de>
28646
28647 * passes.c (execute_function_todo): Remove dead code.
28648
28649 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28650
28651 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28652 the internal register number, for any "real" register.
28653
28654 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28655
28656 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28657 correct numbers for TFHAR, TFIAR, TEXASR.
28658
28659 2019-05-02 Richard Biener <rguenther@suse.de>
28660
28661 PR tree-optimization/89653
28662 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28663 update-address-taken before the pass.
28664 * passes.def (pass_tree_loop_init): Put comment before it.
28665
28666 2019-05-02 Richard Biener <rguenther@suse.de>
28667
28668 PR tree-optimization/89509
28669 * tree-ssa-structalias.c (compute_dependence_clique): Look
28670 at the first subvar when determining whether it is restrict.
28671
28672 2019-05-02 Richard Biener <rguenther@suse.de>
28673
28674 PR tree-optimization/90273
28675 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28676 useless debug stmts.
28677
28678 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28679
28680 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28681 ACLE branch.
28682 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28683 SVE ACLE branch.
28684 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28685 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28686 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28687 (vectorizable_reduction): Use the functions above to vectorize in a
28688 fully masked loop codes that don't have a conditional internal
28689 function.
28690
28691 2019-05-02 Martin Liska <mliska@suse.cz>
28692
28693 * cgraphclones.c: Call valid_attribute_p with 1 for
28694 target_clone.
28695 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28696 it's for target attribute.
28697 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28698 Add new boolean argument.
28699 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28700 Likewise.
28701 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28702 to ix86_valid_target_attribute_inner_p.
28703 (ix86_valid_target_attribute_p): Pass flags argument to
28704 ix86_valid_target_attribute_inner_p.
28705 (get_builtin_code_for_version): Use 0 as it's target attribute.
28706
28707 2019-05-02 Martin Liska <mliska@suse.cz>
28708
28709 * gcc.c (process_command): Add dummy file only
28710 if n_infiles == 0.
28711 * opts-global.c (decode_options): Pass lang_mask.
28712 * opts.c (print_help): New function.
28713 (finish_options): Print --help if help_option_argument
28714 is set.
28715 (common_handle_option): Factor out content of OPT__help_
28716 into print_help.
28717 * opts.h (finish_options): Add new argument.
28718
28719 2019-05-02 Martin Liska <mliska@suse.cz>
28720
28721 PR target/88809
28722 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28723 With -minline-all-stringops use inline expansion using 4B loop.
28724 * doc/invoke.texi: Document the change of
28725 -minline-all-stringops.
28726
28727 2019-05-01 Jeff Law <law@redhat.com>
28728
28729 PR tree-optimization/88797
28730 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28731 PHI feeds a conditional on the RHS of an assignment.
28732
28733 2019-04-30 Andrew Waterman <andrew@sifive.com>
28734 Jim Wilson <jimw@sifive.com>
28735
28736 * config/riscv/constraints.md (L): New.
28737 * config/riscv/predicates.md (lui_operand): New.
28738 (sfb_alu_operand): New.
28739 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28740 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28741 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28742 * config/riscv/risc.md (type): Add sfb_alu.
28743 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28744 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28745 (branch_zero<mode>): Delete.
28746 (mov<mode>cc): New.
28747 (mov<GPR:mode><X:mode>cc): Likewise.
28748 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28749
28750 2019-04-30 Nathan Sidwell <nathan@acm.org>
28751
28752 * tree.h (MARK_TS_EXP): New.
28753
28754 2019-04-30 Martin Liska <mliska@suse.cz>
28755
28756 * opts.c (enable_warning_as_error): Provide hints
28757 for unknown options.
28758
28759 2019-04-30 Martin Liska <mliska@suse.cz>
28760
28761 PR debug/90288
28762 * doc/invoke.texi: Add missing dash for gas-locview-support
28763 and gno-as-locview-support.
28764
28765 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28766
28767 PR target/89093
28768 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28769 whitespace at the start of target attribute string.
28770
28771 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28772
28773 PR target/86538
28774 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28775 Define __ARM_FEATURE_ATOMICS.
28776
28777 2019-04-30 Martin Liska <mliska@suse.cz>
28778
28779 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28780 into built_in_function enum. Remove code for endp == 2 and
28781 use BUILT_IN_* constants.
28782 (gimple_fold_builtin): Call the function with fcode.
28783
28784 2019-04-30 Martin Liska <mliska@suse.cz>
28785
28786 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28787 DECL_FUNCTION_CODE into ix86_builtins enum before
28788 the switch statement.
28789
28790 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28791
28792 PR tree-optimization/89475
28793 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28794 calls.
28795
28796 2019-04-30 Martin Liska <mliska@suse.cz>
28797
28798 PR translation/90274
28799 * opts.c (print_filtered_help): Wrap string in _(...).
28800
28801 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28802
28803 PR tree-optimization/90240
28804 Revert:
28805 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28806
28807 PR tree-optimization/90078
28808 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28809 checks for infinite_cost overflow.
28810
28811 2019-04-29 Jeff Law <law@redhat.com>
28812
28813 * passes.def: Move -Wrestrict pass after copy propagation.
28814
28815 2019-04-29 Maya Rashish <coypu@sdf.org>
28816
28817 * config.gcc (default_gnu_indirect_function): Default to yes
28818 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28819 sparc*-*-netbsd*, x86_64-*-netbsd*.
28820
28821 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28822
28823 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28824 where cond2 is NE_EXPR.
28825 (is_value_included_in): Update comment.
28826
28827 2019-04-29 Richard Biener <rguenther@suse.de>
28828
28829 PR tree-optimization/90278
28830 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28831 EH on comparison simplification.
28832
28833 2019-04-29 Jason Merrill <jason@redhat.com>
28834
28835 PR c++/82081 - tail call optimization breaks noexcept
28836 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28837 nothrow function to a might-throw function into a tail call.
28838
28839 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28840
28841 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28842 (DDR_INNER_LOOP): Likewise.
28843 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28844 (initialize_data_dependence_relation): Likewise.
28845 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28846
28847 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28848
28849 PR rtl-optimization/90257
28850 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28851 return value.
28852
28853 Revert the revert:
28854 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28855
28856 PR target/90178
28857 Revert:
28858 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28859
28860 Revert the revert:
28861 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28862
28863 Revert:
28864 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28865
28866 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28867
28868 2019-04-29 Richard Biener <rguenther@suse.de>
28869
28870 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28871 rhs issue a reset.
28872
28873 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28874
28875 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28876 varasm.h, and netbsd-protos.h.
28877
28878 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28879
28880 PR target/89261
28881 * config/i386/i386-protos.h (ix86_data_alignment): Change
28882 the second argument type to unsigned int.
28883 * config/i386/i386.c (ix86_data_alignment): Change "align"
28884 argument type to unsigned int.
28885
28886 2019-04-27 Martin Liska <mliska@suse.cz>
28887
28888 PR middle-end/90258
28889 * opt-suggestions.c (option_proposer::build_option_suggestions):
28890 When get_valid_option_values returns empty values, add the
28891 misspelling candidate.
28892
28893 2019-04-26 Jim Wilson <jimw@sifive.com>
28894
28895 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28896 parameter.
28897 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28898 Pass orig_mode to riscv_build_integer.
28899 (riscv_split_integer): Pass mode to riscv_move_integer.
28900 (riscv_legitimize_const_move): Likewise.
28901 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28902 promoted_mode. Replace force_reg call with code to load constant into
28903 promoted reg and then subreg it for the store.
28904 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28905 riscv_move_integer.
28906
28907 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28908
28909 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28910 corrupt codes.
28911
28912 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28913
28914 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28915 commentary about the encoding of precision.
28916
28917 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28918
28919 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28920 * config/i386/t-freebsd64: New file.
28921 * config.gcc: Add the t-freebsd64 for multilib support.
28922
28923 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28924
28925 * doc/extend.texi (vector_size): Add missing comma after @xref.
28926
28927 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28928
28929 * BASE-VER: Set to 10.0.0.
28930
28931 2019-04-25 Richard Biener <rguenther@suse.de>
28932
28933 PR middle-end/89765
28934 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28935 VIEW_CONVERT_EXPR into one operating on an rvalue.
28936
28937 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28938
28939 PR target/89929
28940 * config/i386/i386.c (feature_priority): Moved to file scope.
28941 (processor_features): Likewise.
28942 (processor_model): Likewise.
28943 (_arch_names_table): Likewise.
28944 (arch_names_table): Likewise.
28945 (_feature_list): Removed.
28946 (feature_list): Likewise.
28947 (_isa_names_table): Moved to file scope. Add priority.
28948 (isa_names_table): Likewise.
28949 (get_builtin_code_for_version): Replace feature_list with
28950 isa_names_table. Update error message for P_ZERO priority.
28951
28952 2019-04-25 Richard Biener <rguenther@suse.de>
28953
28954 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28955 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28956
28957 2019-04-24 Jeff Law <law@redhat.com>
28958
28959 PR tree-optimization/90037
28960 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28961 * passes.def: Replace all instance of phi-only cprop with the
28962 lattice propagator. Move propagation pass from after erroneous
28963 path isolation to before erroneous path isolation.
28964 * tree-ssa-phionlycprop.c: Remove.
28965
28966 2019-04-24 Richard Biener <rguenther@suse.de>
28967
28968 PR middle-end/90213
28969 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28970 by size and BITS_PER_UNIT on poly-wide-ints.
28971
28972 2019-04-25 Richard Biener <rguenther@suse.de>
28973
28974 PR middle-end/90194
28975 * match.pd: Add pattern to simplify view-conversion of an
28976 empty constructor.
28977
28978 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28979
28980 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28981 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28982 for Go on 32 bit AIX.
28983 * config/rs6000/aix72.h: Likewise.
28984
28985 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28986
28987 PR target/90193
28988 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28989 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28990
28991 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28992
28993 PR target/89952
28994 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28995 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28996 for restored hard frame pointer.
28997 (s390_sched_dependencies_evaluation): Implement new target hook.
28998 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28999
29000 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
29001
29002 * config/arc/arc-options.def: Fix typos and spelling mistakes.
29003 * config/arc/arc.c (arc_init): Cleanup warning message.
29004 (arc_override_options): Likewise.
29005
29006 2019-04-24 Jakub Jelinek <jakub@redhat.com>
29007
29008 PR target/90187
29009 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
29010 a register if both if_true and if_false are MEMs.
29011
29012 PR tree-optimization/90208
29013 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
29014 after labels of new_bb, not before them.
29015
29016 PR tree-optimization/90211
29017 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
29018 which are not SSA_NAMEs.
29019
29020 2018-04-23 Sudakshina Das <sudi.das@arm.com>
29021
29022 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
29023 AArch64.
29024 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
29025
29026 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
29027
29028 PR rtl-optimization/87979
29029 * modulo-sched.c (sms_schedule): Start ii value "mii" should
29030 not equal zero.
29031
29032 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
29033
29034 PR rtl-optimization/84032
29035 * modulo-sched.c (ps_insn_find_column): Change condition so that
29036 branch will always be the last insn in a row inside partial
29037 schedule.
29038
29039 2019-04-23 Richard Biener <rguenther@suse.de>
29040
29041 PR debug/90131
29042 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
29043 dest_single_pred_p argument.
29044 (remove_forwarder_block): Adjust.
29045 (remove_forwarder_block_with_phi): Likewise.
29046
29047 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29048 Bernd Edlinger <bernd.edlinger@hotmail.de>
29049 Jakub Jelinek <jakub@redhat.com>
29050
29051 PR target/89093
29052 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
29053 if used with general-regs-only.
29054 (arm_conditional_register_usage): Don't add non-general regs if
29055 general-regs-only.
29056 (arm_valid_target_attribute_rec): Handle general-regs-only.
29057 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
29058 general-regs-only.
29059 (TARGET_HARD_FLOAT_SUB): Define.
29060 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
29061 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
29062 (TARGET_REALLY_IWMMXT2): Likewise.
29063 * config/arm/arm.opt: Add -mgeneral-regs-only.
29064 * doc/extend.texi: Document ARM general-regs-only target.
29065 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
29066
29067 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29068
29069 PR tree-optimization/90078
29070 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
29071 checks for infinite_cost overflow.
29072
29073 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29074
29075 PR tree-optimization/90021
29076 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
29077 and check univariate against it.
29078 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
29079 * tree-data-ref.c (add_other_self_distances): Pass new argument.
29080
29081 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
29082
29083 PR target/90178
29084 Revert:
29085 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
29086
29087 Revert the revert:
29088 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
29089
29090 Revert:
29091 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
29092
29093 * lra-spills.c (lra_final_code_change): Remove useless move insns.
29094
29095 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
29096
29097 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
29098 names using operand format, rather than hard-wired.
29099 (speculation_barrier): Likewise.
29100
29101 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
29102
29103 PR tree-optimization/88055
29104 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
29105 (gen_one_condition): Use it if !HONOR_NANS.
29106
29107 2019-04-19 Jakub Jelinek <jakub@redhat.com>
29108
29109 PR middle-end/90139
29110 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
29111 assign_temp instead of gen_reg_rtx.
29112
29113 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
29114
29115 PR translation/90118
29116 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29117 Add missing space before %<.
29118
29119 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
29120
29121 PR rtl-optimization/87871
29122 * ira-lives.c (make_object_dead): Don't add conflicts to
29123 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
29124
29125 2019-04-18 Martin Sebor <msebor@redhat.com>
29126
29127 PR middle-end/89797
29128 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
29129 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
29130 assuming type size fits in SHWI.
29131
29132 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
29133
29134 PR ipa/85051
29135 * ipa-inline.c (flatten_function): New parameter UPDATE.
29136 (ipa_inline, early_inliner): Use it.
29137
29138 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29139
29140 * fold-const.c (int_const_binop): Return early on failure.
29141
29142 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29143
29144 PR middle-end/85164
29145 * combine.c (force_int_to_mode): Cast the argument rather than
29146 the result of known_alignment.
29147 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
29148
29149 2019-04-18 Richard Biener <rguenther@suse.de>
29150
29151 PR debug/90131
29152 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
29153 out from ...
29154 (remove_forwarder_block): ... here.
29155 (remove_forwarder_block_with_phi): Also move debug stmts here.
29156
29157 2019-04-18 Jakub Jelinek <jakub@redhat.com>
29158
29159 PR translation/79183
29160 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
29161 inform where appropriate.
29162
29163 2019-04-18 Richard Biener <rguenther@suse.de>
29164
29165 * tree.c (get_qualified_type): Put found type variants at the
29166 head of the variant list.
29167
29168 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29169
29170 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
29171
29172 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
29173
29174 PR target/90125
29175 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
29176 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
29177 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
29178 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
29179 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
29180
29181 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
29182
29183 * ira-conflicts.c (print_allocno_conflicts): Always print something,
29184 even for allocno's with no conflicts.
29185 (print_conflicts): Print an extra newline.
29186
29187 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29188
29189 * auto-inc-dec.c (attempt_change): Set the alignment of the
29190 temporary memory to that of the original.
29191
29192 2019-04-17 Joao Moreira <jmoreira@suse.de>
29193
29194 * targhooks.c (default_print_patchable_function_entry): Emit
29195 __patchable_function_entries section with writable flags to allow
29196 relocation resolution.
29197
29198 2019-04-17 Jonny Grant <jg@jguk.org>
29199
29200 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
29201
29202 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29203
29204 PR middle-end/90095
29205 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
29206 on lowpart SUBREGs.
29207
29208 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
29209
29210 * config/arc/arc.c (arc_init): Format diagnostic string.
29211 (arc_override_options): Likewise.
29212 (check_if_valid_regno_const): Likewise.
29213 (arc_reorg): Likewise.
29214
29215 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29216
29217 PR target/17108
29218 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
29219 name.
29220 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
29221 name.
29222 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
29223 (*movdi_update1): Use Pmode.
29224 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
29225 (movdi_<mode>_update_stack): Rename to ...
29226 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
29227 use Pmode.
29228 (*movsi_update1): Use Pmode.
29229 (*movsi_update2): Use Pmode.
29230 (movsi_update): Rename to ...
29231 (movsi_<mode>_update): ... this. Use Pmode.
29232 (movsi_update_stack): Fix condition.
29233 (*movhi_update1): Use Pmode. Fix argument to
29234 avoiding_indexed_address_p.
29235 (*movhi_update2): Ditto.
29236 (*movhi_update3): Ditto.
29237 (*movhi_update4): Ditto.
29238 (*movqi_update1): Ditto.
29239 (*movqi_update2): Ditto.
29240 (*movqi_update3): Ditto.
29241 (*movsf_update1, *movdf_update1): Merge, rename to...
29242 (*mov<mode>_update1): This. Use Pmode. Fix argument to
29243 avoiding_indexed_address_p. Add "size" attribute.
29244 (*movsf_update2, *movdf_update2): Merge, rename to...
29245 (*mov<mode>_update2): This. Ditto.
29246 (*movsf_update3): Use Pmode. Fix argument to
29247 avoiding_indexed_address_p.
29248 (*movsf_update4): Ditto.
29249 (allocate_stack): Simplify condition. Adjust pattern names.
29250
29251 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29252
29253 PR target/89093
29254 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
29255 whitespace at the start of target attribute string.
29256
29257 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
29258
29259 PR target/84369
29260 * config/rs6000/power9.md: Add store forwarding bypass.
29261
29262 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
29263
29264 PR debug/89528
29265 * valtrack.c (dead_debug_insert_temp): Reset debug references
29266 to the return value of a call being removed.
29267
29268 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29269
29270 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
29271 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
29272 implement target hook.
29273 (arc_memory_move_cost): New function.
29274 (TARGET_REGISTER_MOVE_COST): Define.
29275 (TARGET_MEMORY_MOVE_COST): Likewise.
29276 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
29277 (MEMORY_MOVE_COST): Likewise.
29278
29279 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29280
29281 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
29282 (sibcall_value_insn): Likewise.
29283 * config/arc/constraints.md (Rs5): Remove.
29284
29285 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29286
29287 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
29288 for last two fake registers.
29289 (arc_conditional_register_usage): Make sure fake frame and arg
29290 pointer regs are in general regs class.
29291 (FRAME_POINTER_MASK): Remove.
29292 (RETURN_ADDR_MASK): Remove.
29293 (arc_must_save_register): Use hard frame regnum.
29294 (frame_restore_reg): Use hard_frame_pointer_rtx.
29295 (arc_save_callee_saves): Likewise.
29296 (arc_restore_callee_saves): Likewise.
29297 (arc_save_callee_enter): Likewise.
29298 (arc_restore_callee_leave): Likewise.
29299 (arc_save_callee_milli): Likewise.
29300 (arc_eh_return_address_location): Likewise.
29301 (arc_check_multi): Use hard frame regnum.
29302 (arc_can_eliminate): Likewise.
29303 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
29304 for register allocator.
29305 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
29306 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
29307 (FRAME_POINTER_REGNUM): Change it to a fake register.
29308 (HARD_FRAME_POINTER_REGNUM): Defined.
29309 (ARG_POINTER_REGNUM): Change it to a new fake register.
29310 (ELIMINABLE_REGS): Update.
29311 (REGISTER_NAMES): Update names.
29312 * config/arc/arc.md (LP_START): Remove.
29313 (LP_END): Likewise.
29314 (shift_si3_loop): Update pattern.
29315
29316 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29317
29318 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
29319 to avoid delay slot scheduling.
29320 (arc_must_save_register): Don't save SP.
29321 * config/arc/arc.md (stack_tie): Remove.
29322 (UNSPEC_ARC_STKTIE): Likewise.
29323
29324 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
29325 Shiva Chen <shiva0217@gmail.com>
29326
29327 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
29328 code gen with large shift amount.
29329
29330 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
29331
29332 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
29333 subreg.
29334
29335 2019-04-16 Jakub Jelinek <jakub@redhat.com>
29336
29337 PR target/90096
29338 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
29339 print -m64/-mx32/-m32 if it is true.
29340 (ix86_debug_options, ix86_function_specific_print): Pass true as
29341 ADD_ABI_P to ix86_target_string.
29342 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
29343 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
29344 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
29345
29346 PR rtl-optimization/90082
29347 * dce.c (can_delete_call): New function.
29348 (deletable_insn_p, mark_insn): Use it.
29349
29350 PR tree-optimization/90090
29351 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
29352 throw internally.
29353 (is_division_by_square): Likewise. Formatting fix.
29354
29355 2019-04-16 Richard Biener <rguenther@suse.de>
29356
29357 PR tree-optimization/56049
29358 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
29359 equality check if alias-set zero will prevail.
29360
29361 2019-04-15 Jeff Law <law@redhat.com>
29362
29363 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
29364 size and alignment as unsigned.
29365
29366 2019-04-15 Richard Biener <rguenther@suse.de>
29367
29368 PR debug/90074
29369 * tree-loop-distribution.c (destroy_loop): Preserve correct
29370 debug info.
29371
29372 2019-04-15 Richard Biener <rguenther@suse.de>
29373
29374 PR tree-optimization/90071
29375 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
29376 abnormal operands from def stmts.
29377
29378 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
29379
29380 PR rtl-optimization/89794
29381 * combine.c (count_auto_inc): New function.
29382 (try_combine): Count how many auto_inc expressions there were in the
29383 original instructions. Ensure we have the same number in the new
29384 instructions. Remove the code that tried to ensure auto_inc side
29385 effects on i1 and i0 are not lost.
29386
29387 2019-04-15 Richard Biener <rguenther@suse.de>
29388
29389 PR ipa/88936
29390 * tree.h (auto_var_p): Declare.
29391 * tree.c (auto_var_p): New function, split out from ...
29392 (auto_var_in_fn_p): ... here.
29393 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
29394 member.
29395 (new_var_info): Initialize it.
29396 (set_uids_in_ptset): Also set the shadow variable uid if required.
29397 (ipa_pta_execute): Postprocess points-to solutions assigning
29398 shadow variable uids for locals that may reach their containing
29399 function recursively.
29400 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
29401 assert but instead check whether the points-to solution is
29402 a singleton.
29403
29404 2019-04-15 Martin Jambor <mjambor@suse.cz>
29405
29406 PR ipa/pr89693
29407 * cgraph.c (clone_of_p): Loop over clone chain for each step in
29408 the thunk chain.
29409
29410 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29411
29412 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
29413
29414 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29415 Kito Cheng <kito.cheng@gmail.com>
29416 Shiva Chen <shiva0217@gmail.com>
29417
29418 * config/nds32/nds32-md-auxiliary.c
29419 (nds32_legitimize_pic_address): Use new PIC pattern.
29420 (nds32_legitimize_tls_address): Use new TLS pattern.
29421 (nds32_output_symrel): New.
29422 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
29423 (nds32_alloc_relax_group_id): Ditto.
29424 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
29425 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
29426 relax_group_id.
29427 (nds32_group_tls_insn): Ditto.
29428 (nds32_group_float_insns): Ditto.
29429 * config/nds32/nds32.md (tls_le): New.
29430 (sym_got): Ditto.
29431
29432 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
29433
29434 * configure: Add nds32 target for dwarf2 debug_line checking.
29435 * configure.ac: Regenerated.
29436
29437 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
29438
29439 PR lto/89358
29440 * ipa-devirt.c (skip_in_fields_list_p): New.
29441 (odr_types_equivalent_p): Use it.
29442
29443 2019-04-13 Jakub Jelinek <jakub@redhat.com>
29444
29445 PR target/89093
29446 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29447 instead of strncmp when checking for thumb and arm. Formatting fixes.
29448
29449 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
29450
29451 * doc/install.texi: Document --with-target-system-zlib.
29452
29453 2019-04-12 Martin Sebor <msebor@redhat.com>
29454
29455 PR c/88383
29456 PR c/89288
29457 PR c/89798
29458 PR c/89797
29459 * targhooks.c (default_vector_alignment): Avoid assuming
29460 argument fits in SHWI.
29461 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29462 a shift expression.
29463 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29464
29465 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29466
29467 PR rtl-optimization/89965
29468 * dce.c: Include rtl-iter.h.
29469 (struct check_argument_load_data): New type.
29470 (check_argument_load): New function.
29471 (find_call_stack_args): Check for loads from stack slots still tracked
29472 in sp_bytes and punt if any is found.
29473
29474 * config/mips/loongson-mmiintrin.h: Fix up #error message.
29475
29476 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
29477
29478 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29479 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29480
29481 2019-04-12 Martin Liska <mliska@suse.cz>
29482
29483 PR middle-end/89970
29484 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29485 in error message.
29486 (separate_attrs): Handle multiple 'default's.
29487 (expand_target_clones): Rework error handling code.
29488
29489 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
29490
29491 PR target/87532
29492 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29493 mode of vector rather than mode of destination for move instruction.
29494 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29495 Use QI inner mode with V16QI vector mode.
29496
29497 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29498
29499 PR target/52726
29500 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29501 "invalid %%t operand" in output_operand_lossage message.
29502
29503 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
29504
29505 * config/s390/predicates.md (permute_pattern_operand): New
29506 predicate.
29507 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29508 operand for the permute pattern.
29509 ("*vec_perm<mode>"): New insn definition.
29510 ("bswap<mode>"): Generate the permute pattern operand in the
29511 expander and perform the operand reloads for pre arch13 level
29512 already.
29513 ("*bswap<mode>_emu"): Rename to ...
29514 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29515 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29516 Add the USE operand for the permute pattern.
29517 ("*vec_set_bswap_vec<mode>"): Likewise.
29518
29519 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29520
29521 PR c/89946
29522 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29523 and gcc_unreachable if it fails, just call tree_to_uhwi which
29524 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29525 Start warning message with a lower-case letter. Formatting fixes.
29526
29527 PR rtl-optimization/90026
29528 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29529 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29530 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29531 in cfglayout mode, use emit_barrier_after_bb.
29532
29533 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29534
29535 PR rtl-optimization/87763
29536 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29537 New Instruction.
29538
29539 2019-04-11 Tom de Vries <tdevries@suse.de>
29540
29541 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29542 max macro using statement expression.
29543
29544 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29545
29546 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29547 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29548 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29549 read_only_private_data_section using xcoff_private_rodata_section_name.
29550 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29551
29552 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29553
29554 PR target/90016
29555 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29556
29557 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29558
29559 PR rtl-optimization/89965
29560 * dce.c (sp_based_mem_offset): New function.
29561 (find_call_stack_args): Use sp_based_mem_offset.
29562
29563 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29564
29565 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29566
29567 2019-04-11 Richard Biener <rguenther@suse.de>
29568
29569 PR tree-optimization/90020
29570 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29571 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29572 * tree-ssa-pre.c (compute_avail): Use it to not put
29573 possibly trapping references after a call that might not
29574 return into EXP_GEN.
29575 * gcse.c (compute_hash_table_work): Do not elide
29576 marking a block containing a call if the call might not
29577 return.
29578
29579 2019-04-11 Richard Biener <rguenther@suse.de>
29580
29581 PR tree-optimization/90018
29582 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29583 Test both SLP and interleaving variants.
29584
29585 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29586
29587 * config/s390/8561.md: New file.
29588 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29589 Add arch13 cpu model.
29590 * config/s390/s390-opts.h (enum processor_type): Likewise.
29591 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29592 (s390_get_unit_mask): Likewise.
29593 (s390_is_fpd): Likewise.
29594 (s390_is_fxd): Likewise.
29595 * config/s390/s390.h (s390_tune_attr): Likewise.
29596 * config/s390/s390.md: Include arch13 pipeline description.
29597 * config/s390/s390.opt: Add arch13.
29598
29599 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29600
29601 PR rtl-optimization/87763
29602 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29603 New prototype.
29604 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29605 New function.
29606 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29607 New instruction.
29608 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29609 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29610 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29611 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29612
29613 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29614
29615 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29616 "Although" in -fipa-icf documentation.
29617
29618 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29619 of using multiple -g options.
29620
29621 2019-04-10 Martin Liska <mliska@suse.cz>
29622
29623 PR gcov-profile/89959
29624 * doc/gcov.texi: Make documentation of -x option
29625 more precise.
29626
29627 2019-04-10 Richard Biener <rguenther@suse.de>
29628
29629 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29630 member.
29631 (DR_GROUP_SAME_DR_STMT): Remove.
29632 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29633 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29634 replace with assert.
29635 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29636 (vect_record_grouped_load_vectors): Remove unreachable code.
29637
29638 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29639
29640 PR target/90016
29641 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29642 obsolete reference to N.
29643
29644 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29645
29646 PR middle-end/90025
29647 * expr.c (store_expr): Set properly size on the MEM passed to
29648 clear_storage.
29649
29650 PR c++/90010
29651 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29652 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29653 translation is needed, and when translation is needed, only append
29654 ... if the string length is hostsz or more bytes long. Avoid using
29655 strncpy or strcat.
29656
29657 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29658
29659 PR target/90024
29660 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29661 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29662 into three.
29663 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29664 differences directly.
29665 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29666
29667 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29668
29669 PR translation/90011
29670 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29671 from diagnostics.
29672 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29673 diagnostics.
29674 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29675 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29676 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29677 trailing space from -gsplit-dwarf diagnostics.
29678
29679 PR tree-optimization/89998
29680 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29681 instead of integer_type_node if possible, don't add ranges if return
29682 type is not compatible with int.
29683 * gimple-fold.c (gimple_fold_builtin_sprintf,
29684 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29685 integer_type_node.
29686
29687 2019-04-09 Martin Liska <mliska@suse.cz>
29688
29689 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29690 * doc/install.texi: Document the new config.
29691
29692 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29693
29694 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29695 use gimple_expr_type for load and store calls. Skip over the
29696 condition argument in a conditional internal function.
29697 Protect use of TREE_INT_CST_LOW.
29698
29699 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29700
29701 PR target/90015
29702 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29703 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29704 trailing period from it too.
29705
29706 2019-04-08 wu yuan <wuyuan5@huawei.com>
29707
29708 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29709 * config/aarch64/aarch64.md: Add "tsv110.md".
29710 * config/aarch64/tsv110.md: New file.
29711
29712 2019-04-08 Richard Biener <rguenther@suse.de>
29713
29714 PR tree-optimization/90006
29715 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29716 calls like lrint.
29717
29718 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29719
29720 PR target/83033
29721 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29722 construction.
29723 (fma_root_node): Likewise.
29724 (func_fma_steering): Likewise.
29725
29726 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29727
29728 PR rtl-optimization/89865
29729 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29730
29731 PR rtl-optimization/89865
29732 * config/i386/i386.md
29733 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29734 numbers not to clash with the additional operands[4].
29735 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29736 with extra register copy in the middle.
29737
29738 2019-04-08 Martin Liska <mliska@suse.cz>
29739
29740 PR gcov-profile/89961
29741 * doc/gcov.texi: Document data_file.
29742 * gcov.c (generate_results): Add data_info into JSON output.
29743
29744 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29745
29746 PR tree-optimization/89725
29747 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29748 loop's chrec as invariant symbol.
29749 * tree-chrec.h (chrec_contains_symbols): New parameter.
29750 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29751 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29752 function of loops not in DDR's loop_nest.
29753 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29754
29755 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29756
29757 PR target/89623
29758 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29759 Mask.
29760
29761 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29762
29763 PR target/89945
29764 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29765 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29766
29767 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29768
29769 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29770 targetm.fixed_condition_code_regs.
29771
29772 2019-04-05 Richard Biener <rguenther@suse.de>
29773
29774 PR debug/89892
29775 PR debug/89905
29776 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29777 debug bind stmts but reset them if they are not valid at the
29778 destination.
29779
29780 2019-04-05 Martin Liska <mliska@suse.cz>
29781
29782 PR translation/89936
29783 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29784 order to wrap keywords or arguments.
29785 * collect2.c (main): Likewise.
29786 (scan_prog_file): Likewise.
29787 (scan_libraries): Likewise.
29788 * common/config/riscv/riscv-common.c
29789 (riscv_subset_list::parsing_subset_version): Likewise.
29790 (riscv_subset_list::parse_std_ext): Likewise.
29791 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29792 Likewise.
29793 * config/arm/arm.c (arm_option_override): Likewise.
29794 * config/cris/cris.c (cris_print_operand): Likewise.
29795 * config/darwin-c.c (darwin_pragma_options): Likewise.
29796 (darwin_pragma_unused): Likewise.
29797 (darwin_pragma_ms_struct): Likewise.
29798 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29799 * config/i386/i386.c (print_reg): Likewise.
29800 (ix86_print_operand): Likewise.
29801 * config/i386/xm-djgpp.h: Likewise.
29802 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29803 * config/m32c/m32c.c (m32c_option_override): Likewise.
29804 * config/msp430/msp430.c (msp430_option_override): Likewise.
29805 * config/nds32/nds32.c (nds32_option_override): Likewise.
29806 * config/nvptx/mkoffload.c (main): Likewise.
29807 * config/rx/rx.c (rx_print_operand): Likewise.
29808 (valid_psw_flag): Likewise.
29809 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29810 (vms_pragma_nomember_alignment): Likewise.
29811 (vms_pragma_extern_model): Likewise.
29812 * lto-wrapper.c (compile_offload_image): Likewise.
29813 * omp-offload.c (oacc_parse_default_dims): Likewise.
29814 * symtab.c (symtab_node::verify_base): Likewise.
29815 * tlink.c (recompile_files): Likewise.
29816 (start_tweaking): Likewise.
29817 * tree-profile.c (parse_profile_filter): Likewise.
29818
29819 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29820
29821 PR tree-optimization/89956
29822 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29823 multiple negates of the same value.
29824
29825 2019-04-04 Martin Sebor <msebor@redhat.com>
29826
29827 PR middle-end/89957
29828 PR middle-end/89911
29829 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29830 have the same precision since the function crashes otherwise.
29831 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29832 has non-zero arguments.
29833
29834 2019-04-04 Martin Sebor <msebor@redhat.com>
29835
29836 PR middle-end/89934
29837 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29838 out if the number of arguments is less than expected.
29839
29840 2019-04-04 Jeff Law <law@redhat.com>
29841
29842 PR rtl-optimization/89399
29843 * ree.c (combine_set_extension): Use single_set rather than
29844 digging into PATTERN for items on the candidate list.
29845 (combine_reaching_defs): Likewise.
29846
29847 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29848
29849 PR rtl-optimization/46590
29850 * loop-invariant.c (find_defs): Move df_remove_problem and
29851 df_process_deferred_rescans to move_invariants.
29852 Move df_live_add_problem and df_live_set_all_dirty calls
29853 to move_invariants.
29854 (move_invariants): Likewise.
29855 (move_loop_invariants): Likewise, making the df_live calls
29856 conditional on -O. Remove the problem again if we added it
29857 locally.
29858
29859 2019-04-03 qing zhao <qing.zhao@oracle.com>
29860
29861 PR tree-optimization/89730
29862 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29863 -flive-patching=inline-only-static.
29864 (can_inline_edge_by_limits_p): Add the checking for
29865 -flive-patching=inline-only-static and grant always_inline
29866 even when -flive-patching=inline-only-static is specified.
29867
29868 2019-04-03 Jeff Law <law@redhat.com>
29869
29870 PR rtl-optimization/81025
29871 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29872
29873 2019-04-03 Richard Biener <rguenther@suse.de>
29874
29875 PR tree-optimization/84101
29876 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29877 regs.h for hard_regno_nregs.
29878 (cfun_returns): New helper.
29879 (vect_model_store_cost): When vectorizing a store to a decl
29880 we return and the function ABI returns in a multi-reg location
29881 account for the possible spilling that will happen.
29882
29883 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29884
29885 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29886 displacement addresses for vector mode operands.
29887
29888 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29889
29890 * config/arc/arc.c (GMASK_LEN): Define.
29891 (arc_restore_callee_saves): Restore first blink when
29892 !optimize_size.
29893
29894 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29895
29896 * doc/extend.texi: Add deprecated comment on sign-return-address
29897 function attribute and add mbranch-protection.
29898 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29899
29900 2019-04-03 Richard Biener <rguenther@suse.de>
29901
29902 PR lto/89896
29903 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29904 the all target phony.
29905
29906 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29907
29908 PR target/89902
29909 PR target/89903
29910 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29911 Return false for variable DImode shifts.
29912 (dimode_scalar_chain::compute_convert_gain): Do not handle
29913 register count operand in variable DImode shifts.
29914 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29915 count argument of a variable shift instruction to a vector register.
29916 (dimode_scalar_chain::convert_reg): Remove support to convert
29917 count argument of a variable shift instruction.
29918
29919 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29920
29921 PR rtl-optimization/84206
29922 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29923 iterating over loop headers.
29924
29925 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29926
29927 PR rtl-optimization/85876
29928 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29929 beyond the original fence.
29930
29931 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29932
29933 * config.gcc: Mark spu* targets as deprecated/obsolete.
29934
29935 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29936
29937 * config/s390/s390-builtin-types.def: New builtin function type
29938 definitions. Remove unused types.
29939 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29940 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29941 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29942 overloaded builtins.
29943 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29944 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29945 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29946 (vec_double, vec_signed, vec_unsigned): Define to use the new
29947 overloaded builtins.
29948 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29949 Remove expanders.
29950
29951 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29952
29953 * config/s390/s390-builtin-types.def: New builtin function type
29954 definitions.
29955 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29956 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29957 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29958 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29959 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29960 constant definitions.
29961 * config/s390/vecintrin.h (vec_search_string_cc)
29962 (vec_search_string_until_zero_cc): New builtin name definitions.
29963 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29964 expanders.
29965 ("vec_vstrs<mode>"): New insn definition.
29966
29967 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29968
29969 * config/s390/s390-builtin-types.def: Add new builtin function
29970 types.
29971 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29972 New overloaded builtins.
29973 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29974 s390_vsrd.
29975 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29976 (UNSPEC_VEC_SLDBYTE): ... this.
29977 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29978 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29979 definitions.
29980 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29981 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29982 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29983
29984 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29985
29986 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29987 New insn definition.
29988 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29989 * config/s390/vector.md (V_HW_HSD): ... here.
29990
29991 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29992
29993 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29994 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29995 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29996 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29997 New insn definitions.
29998
29999 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30000
30001 * config/s390/s390-builtin-types.def: Add new builtin function type.
30002 * config/s390/s390-builtins.def: Add overloaded builtin
30003 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
30004 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
30005 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
30006 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
30007 ("eltswap<mode>"): New expander.
30008 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
30009 insn definitions.
30010
30011 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30012
30013 * config/s390/s390-builtin-types.def: Add new builtin function types.
30014 * config/s390/s390-builtins.def: Add overloaded builtin
30015 s390_vec_revb. Add low-level builtins for vlbr and vstbr
30016 instructions.
30017 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
30018 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
30019 ("bswap<mode>"): New expander.
30020 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
30021
30022 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30023
30024 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
30025 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
30026 vector builtin version number in __VEC__.
30027
30028 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30029
30030 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
30031 iterators.
30032 (SFSI): New mode attribute.
30033 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
30034 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
30035 rename to ...
30036 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
30037 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
30038 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
30039 ("floatsi<mode>2"): Add wcefb instruction.
30040
30041 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30042
30043 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
30044 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
30045 mode iterators.
30046 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
30047 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
30048 support 32 bit fp-int conversions. Rename to ...
30049 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30050 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30051 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
30052 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
30053 ... to these.
30054
30055 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30056
30057 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
30058 if-then-else constructs if we can use the select instruction.
30059 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
30060
30061 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30062
30063 * config/s390/s390.md ("*popcountdi_arch13_cc")
30064 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
30065 definition.
30066 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
30067 Append _z196 to make it ...
30068 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
30069 ("popcounthi2_z196"): ... this.
30070 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
30071 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
30072
30073 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30074
30075 * config/s390/s390.c (s390_canonicalize_comparison): Convert
30076 certain compares for arch13 in order to make use of the condition
30077 code result produced by the new instructions.
30078 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
30079 nxrk, and nxgrk instruction patterns.
30080 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
30081 (inv_no): Add new code iterator together with some attributes.
30082 ("*andc_split_<mode>"): Disable splitter for arch13.
30083 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
30084 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
30085 ("*<ANDOR:bitops_name>c<GPR:mode>")
30086 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
30087 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
30088 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
30089 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
30090
30091 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30092
30093 * common/config/s390/s390-common.c (processor_flags_table): New
30094 entry for arch13.
30095 * config.gcc: Support arch13 with the --with-arch= configure flag.
30096 * config/s390/driver-native.c (s390_host_detect_local_cpu):
30097 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
30098 * config/s390/s390.c (s390_get_sched_attrmask)
30099 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
30100 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
30101 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
30102 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
30103 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
30104 definitions.
30105 * config/s390/s390.opt: Support arch13 as processor type in
30106 command line options.
30107
30108 2019-04-02 Martin Liska <mliska@suse.cz>
30109
30110 PR translation/89912
30111 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
30112 Fix param description of graphite-max-arrays-per-scop.
30113
30114 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
30115
30116 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
30117 (ASAN_CC1_SPEC): Use it in 64-bit mode.
30118 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
30119
30120 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30121
30122 PR rtl-optimization/85412
30123 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
30124 sel_sched_region_1, not after.
30125
30126 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30127
30128 PR rtl-optimization/86928
30129 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
30130 compute_live if necessary.
30131 (sel_redirect_edge_and_branch): Likewise.
30132
30133 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
30134
30135 PR rtl-optimization/89865
30136 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
30137 register if it is a part of small class.
30138
30139 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30140
30141 PR rtl-optimization/87273
30142 * sel-sched-ir.c (merge_fences): Remove assert.
30143
30144 2019-04-01 Richard Biener <rguenther@suse.de>
30145
30146 PR tree-optimization/46590
30147 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
30148 (dom_walker::m_reachability): Add in place of...
30149 (dom_walker::m_skip_unreachable_blocks): ...this.
30150 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
30151 Move complex initialization ...
30152 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
30153 lazily and initialize edge flags on each invocation.
30154 (dom_walker::bb_reachable): Use m_reachability.
30155
30156 2019-04-01 Martin Liska <mliska@suse.cz>
30157
30158 PR driver/89861
30159 * opt-suggestions.c (option_proposer::build_option_suggestions):
30160 Add variant without any argument in order to provide better
30161 hints.
30162
30163 2019-04-01 Richard Biener <rguenther@suse.de>
30164
30165 PR c/71598
30166 * gimple.c: Include langhooks.h.
30167 (gimple_get_alias_set): Treat enumeral types as the underlying
30168 integer type.
30169
30170 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
30171 Eric Botcazou <ebotcazou@adacore.com>
30172
30173 PR rtl-optimization/89862
30174 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
30175 that operates on the full registers for WORD_REGISTER_OPERATIONS
30176 architectures.
30177
30178 2019-03-29 Jim Wilson <jimw@sifive.com>
30179
30180 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
30181 Clear MASK_RVC and then set if C subset supported.
30182
30183 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30184
30185 PR c/89872
30186 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
30187 non-addressable complit into its initializer if it is volatile.
30188
30189 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
30190
30191 * opts-common.c (integral_argument): Set errno properly in one case.
30192
30193 2019-03-29 Martin Liska <mliska@suse.cz>
30194
30195 * doc/invoke.texi: Remove -Wchkp from documentation.
30196
30197 2019-03-29 Martin Liska <mliska@suse.cz>
30198
30199 * dbgcnt.c (print_limit_reach): New function.
30200 (dbg_cnt): Use it.
30201
30202 2019-03-29 Martin Liska <mliska@suse.cz>
30203
30204 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
30205 (dbg_cnt_process_opt): Parse first tokens aas
30206 dbg_cnt_process_single_pair is also using strtok.
30207
30208 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30209
30210 PR rtl-optimization/87485
30211 * function.c (expand_function_end): Move stack_protect_epilogue
30212 before loading of return value into hard register(s).
30213
30214 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30215
30216 PR middle-end/89621
30217 * tree-inline.h (struct copy_body_data): Add
30218 dont_remap_vla_if_no_change flag.
30219 * tree-inline.c (remap_type_3, remap_type_2): New functions.
30220 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
30221 and remap_type_2 returns false.
30222 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
30223 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
30224 only from where it is copied to nested contexts.
30225
30226 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30227
30228 PR target/89865
30229 * config/i386/i386.md (RMW operation with LEA peephole):
30230 Use LEAMODE mode attribute instead of SWI mode iterator for
30231 LEA pattern.
30232
30233 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30234
30235 PR target/89848
30236 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
30237 Also process XEXP (src, 0) of a shift insn.
30238
30239 2019-03-28 David Malcolm <dmalcolm@redhat.com>
30240
30241 PR middle-end/89725
30242 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
30243 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
30244
30245 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30246
30247 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
30248 test.
30249 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
30250 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
30251 immediately after first one with df_analyze in between, but rather
30252 process all bbs, queueing ones that need second pass in a worklist,
30253 df_analyze, process queued debug insn changes and if second pass is
30254 needed, process bbs from worklist, df_analyze, process queued debug
30255 insns again.
30256
30257 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
30258 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
30259 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
30260
30261 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
30262
30263 PR c/79022
30264 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
30265 definition.
30266
30267 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
30268
30269 PR target/85667
30270 * config/i386/i386.c (ix86_function_value_1): Call the newly added
30271 function for 32-bit MS_ABI.
30272 (function_value_ms_32): New function.
30273
30274 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
30275
30276 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
30277 (movdi): Call gen_movdi_symbol_save_scc.
30278 (gen_movdi_symbol_save_scc): New insn and split.
30279
30280 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
30281
30282 PR rtl-optimization/89313
30283 * function.c (matching_constraint_num): New static function.
30284 (match_asm_constraints_1): Use it. Fixup white space and comment.
30285 Don't replace inputs with non-matching constraints which conflict
30286 with early clobber outputs.
30287
30288 2019-03-27 Jeff Law <law@redhat.com>
30289
30290 PR rtl-optimization/87761
30291 PR rtl-optimization/89826
30292 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
30293 slightly later.
30294 (pass_cprop_hardreg::execute): Call df_analyze after adding the
30295 note problem to get REG_DEAD/REG_UNUSED notes updated.
30296
30297 2019-03-27 Richard Biener <rguenther@suse.de>
30298
30299 PR tree-optimization/89463
30300 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
30301 queue edges to remove.
30302 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
30303 dead stmts. Delay edge removal until PHIs are removed to
30304 make debug-stmt creation not confused by seemingly degenerate
30305 PHIs.
30306
30307 2019-03-27 Alan Modra <amodra@gmail.com>
30308
30309 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
30310 throughout file.
30311 * config/rs6000/darwin.h: Likewise.
30312 * config/rs6000/rs6000.c: Likewise.
30313
30314 2019-03-27 Alan Modra <amodra@gmail.com>
30315
30316 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
30317 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
30318
30319 2019-03-26 Andrew Waterman <andrew@sifive.com>
30320 Jim Wilson <jimw@sifive.com>
30321
30322 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
30323 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
30324 (generic_idivdi, generic_fmul_single, generic_fmul_double)
30325 (generic_fdiv, generic_fsqrt): Add check for generic tune.
30326 (generic_alu): Add auipc to type list.
30327 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
30328 (riscv_microarchitecture): Declare.
30329 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
30330 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
30331 field.
30332 (riscv_microarchitecture): New.
30333 (sifive_7_tune_info): New.
30334 (riscv_cpu_info_table): Add microarchitecture value for rocket and
30335 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
30336 entries.
30337 (riscv_store_data_bypass_p): New.
30338 (riscv_option_override): Set riscv_microarchitecture from
30339 cpu->microarchitecture.
30340 * config/riscv/riscv.md: Include sifive-7.md.
30341 (type): Add auipc.
30342 (tune): New.
30343 (auipc<mode>): Change type to auipc.
30344 (restore_stack_nonlocal): New.
30345 * config/riscv/sifive-7.md: New.
30346 * doc/invoke.texi (RISC-V Options): Update mtune docs.
30347
30348 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
30349
30350 PR target/89827
30351 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
30352 Also process XEXP (src, 0) of a shift insn.
30353
30354 2019-03-26 Richard Biener <rguenther@suse.de>
30355
30356 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
30357 (copy_debug_stmt): Likewise.
30358 (expand_call_inline): Likewise.
30359 (copy_bb): Avoid redundant lookup & set of gimple_block.
30360 * gimple-low.c (lower_gimple_return): Likewise.
30361 (lower_builtin_setjmp): Likewise.
30362
30363 2019-03-26 Jakub Jelinek <jakub@redhat.com>
30364
30365 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
30366 is constant 0, turn into static const data member initialized to false.
30367 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
30368 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
30369
30370 2019-03-26 Jason Merrill <jason@redhat.com>
30371 Jakub Jelinek <jakub@redhat.com>
30372
30373 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
30374 method.
30375 (mem_alloc_description::release_object_overhead): Fix comment typos.
30376 * hash-table.h (hash_table::~hash_table): Call
30377 release_instance_overhead only if m_entries is non-NULL, otherwise
30378 call unregister_descriptor.
30379
30380 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
30381
30382 PR tree-optimization/81740
30383 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30384 In case of outer loop vectorization, check for backward dependence
30385 at the inner loop if outer loop dependence is reversed.
30386
30387 2019-03-26 Alan Modra <amodra@gmail.com>
30388
30389 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
30390 rs6000_vector_mem init. Correct wI and wJ comment.
30391
30392 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
30393
30394 PR rtl-optimization/88347
30395 PR rtl-optimization/88423
30396 * sched-deps.c (sched_analyze_insn): Take into account that for
30397 tablejumps the barrier appears after a label and a jump_table_data.
30398
30399 2019-03-25 Martin Sebor <msebor@redhat.com>
30400
30401 PR c/89812
30402 * c-common.c (check_user_alignment): Rename local. Correct maximum
30403 alignment in diagnostic. Avoid assuming argument fits in SHWI,
30404 convert it to UHWI when it fits.
30405
30406 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
30407
30408 PR debug/86964
30409 * dwarf2out.c (premark_used_variables): New function.
30410 (prune_unused_types_walk): Do not mark not premarked external
30411 variables.
30412 (prune_unused_types): Call premark_used_variables.
30413
30414 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
30415
30416 PR rtl-optimization/89676
30417 * lra-constraints.c (curr_insn_transform): Do match reload for
30418 early clobbers when the match was successful only for different
30419 registers.
30420
30421 2019-03-25 Martin Sebor <msebor@redhat.com>
30422
30423 * doc/extend.texi (Common Type Attributes): Document vector_size.
30424 (Common Variable Attributes): Mention size constraint. Correct
30425 quoting and typos.
30426 (Vector Extensions): Use @dfn when defining bas type. Clarify
30427 base type and size constraints.
30428
30429 2019-03-25 Richard Biener <rguenther@suse.de>
30430
30431 PR tree-optimization/89789
30432 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
30433 changes from non-undefined back to undefined.
30434
30435 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
30436
30437 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
30438 heap string and a gc string, but since this variable is unknown to
30439 ggc the gc string might get reused and corrupted. Fixed by always
30440 using a heap string.
30441
30442 2019-03-25 Richard Biener <rguenther@suse.de>
30443
30444 PR tree-optimization/89779
30445 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30446 to remove IV defs, delay actual removal.
30447 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
30448 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30449 very end, properly also reset loop control IV information.
30450
30451 2019-03-25 Richard Biener <rguenther@suse.de>
30452
30453 PR tree-optimization/89802
30454 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30455 move EH data to folded stmt.
30456
30457 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30458
30459 * config/s390/s390-builtin-types.def: Remove few unused types and
30460 fix sort order for others.
30461
30462 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30463
30464 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30465 expected and found types with -mdebug during builtin matching.
30466
30467 2019-03-25 Richard Biener <rguenther@suse.de>
30468
30469 PR middle-end/89790
30470 * fold-const.c (operand_equal_p): Revert last change with
30471 updated comment.
30472
30473 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
30474
30475 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30476 notes for the result of the __tls_get_addr calls.
30477 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30478
30479 2019-03-24 Jeff Law <law@redhat.com>
30480
30481 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30482
30483 PR rtl-optimization/87761
30484 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30485 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
30486 as needed.
30487 (pass_cprop_hardreg::execute): Add df note problem and defer insn
30488 rescans. Reprocess blocks as needed, calling df_analyze before
30489 reprocessing. Always call df_analyze before fixing up debug bind
30490 insns.
30491
30492 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
30493
30494 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30495 big endian.
30496
30497 2019-03-22 Andrew Pinski <apinski@marvell.com>
30498
30499 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30500 attrribute for uxtw.
30501
30502 2019-03-26 Jeff Law <law@redhat.com>
30503
30504 PR rtl-optimization/87761
30505 * config/mips/mips-protos.h (mips_split_move): Add new argument.
30506 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30507 (mips_split_move): Accept new INSN argument. Try to forward SRC
30508 into the next instruction.
30509 (mips_split_move_insn): Pass INSN through to mips_split_move.
30510
30511 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
30512
30513 PR rtl-optimization/89676
30514 * lra-constraints.c (curr_insn_transform): Do match reload for
30515 early clobbers even if the match was successful.
30516
30517 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30518
30519 PR c++/87481
30520 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30521
30522 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30523
30524 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30525
30526 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30527
30528 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30529 <avx512>_fmsub_<mode>_mask3<round_name>,
30530 <avx512>_fnmadd_<mode>_mask3<round_name>,
30531 <avx512>_fnmsub_<mode>_mask3<round_name>,
30532 avx512f_vmfmadd_<mode>_mask3<round_name>,
30533 avx512f_vmfmsub_<mode>_mask3<round_name>,
30534 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30535 instead of register_operand and %v instead of v for match_operand 1.
30536 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30537 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30538 <round_nimm_predicate> instead of register_operand and %v instead of v
30539 for match_operand 1.
30540
30541 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30542 <avx512>_fmadd_<mode>_mask3<round_name>,
30543 <avx512>_fmsub_<mode>_mask<round_name>,
30544 <avx512>_fmsub_<mode>_mask3<round_name>,
30545 <avx512>_fnmadd_<mode>_mask<round_name>,
30546 <avx512>_fnmadd_<mode>_mask3<round_name>,
30547 <avx512>_fnmsub_<mode>_mask<round_name>,
30548 <avx512>_fnmsub_<mode>_mask3<round_name>,
30549 <avx512>_fmaddsub_<mode>_mask<round_name>,
30550 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30551 <avx512>_fmsubadd_<mode>_mask<round_name>,
30552 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30553 <round_nimm_predicate> instead of nonimmediate_operand.
30554 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30555 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30556 Use register_operand instead of <round_nimm_predicate> for the
30557 operand that needs to match output.
30558 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30559 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30560 Likewise. Formatting fixes.
30561
30562 PR target/89784
30563 * config/i386/i386.c (enum ix86_builtins): Remove
30564 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30565 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30566 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30567 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30568 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30569 __builtin_ia32_vfmsubss3_mask3): New builtins.
30570 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30571 avx512f_vmfmadd_<mode>_mask3<round_name>,
30572 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30573 *avx512f_vmfmsub_<mode>_mask<round_name>,
30574 avx512f_vmfmsub_<mode>_mask3<round_name>,
30575 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30576 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30577 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30578 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30579 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30580 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30581 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30582 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30583 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30584 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30585 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30586 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30587 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30588 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30589 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30590 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30591 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30592 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30593 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30594 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30595 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30596 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30597 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30598 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30599 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30600 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30601 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30602 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30603
30604 2019-03-21 Martin Sebor <msebor@redhat.com>
30605
30606 PR tree-optimization/89350
30607 * builtins.c (compute_objsize): Also ignore offsets whose upper
30608 bound is negative.
30609 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30610 (builtin_memref::builtin_memref): Initialize new member.
30611 Allow EXPR to be null.
30612 (builtin_memref::extend_offset_range): Replace local with a member.
30613 Avoid assuming pointer offsets are unsigned.
30614 (builtin_memref::set_base_and_offset): Determine base object
30615 before computing offset range.
30616 (builtin_access::builtin_access): Handle memset.
30617 (builtin_access::generic_overlap): Replace local with a member.
30618 (builtin_access::strcat_overlap): Same.
30619 (builtin_access::overlap): Same.
30620 (maybe_diag_overlap): Same.
30621 (maybe_diag_access_bounds): Same.
30622 (wrestrict_dom_walker::check_call): Handle memset.
30623 (check_bounds_or_overlap): Same.
30624
30625 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30626 Jakub Jelinek <jakub@redhat.com>
30627
30628 PR lto/89692
30629 * tree.c (fld_type_variant, fld_incomplete_type_of,
30630 fld_process_array_type): Call fld->pset.add and don't call
30631 add_tree_to_fld_list if it returns true.
30632 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30633 non-marked types from TYPE_NEXT_VARIANT list.
30634 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30635
30636 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30637
30638 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30639 to false, if true, don't alloc_entries during construction, but defer
30640 it to the first method that needs m_entries allocated.
30641 (hash_table::hash_table, hash_table::~hash_table,
30642 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30643 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30644 hash_table::clear_slot, hash_table::traverse_noresize,
30645 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30646 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30647 false.
30648 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30649 NO_INSERT instead of find_with_hash.
30650 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30651 hash_set::m_table): Add Lazy to template params of hash_table.
30652 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30653 * attribs.c (test_attribute_exclusions): Likewise.
30654 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30655 hash_set. Add tests for hash_set with Lazy = true.
30656
30657 2019-03-21 Richard Biener <rguenther@suse.de>
30658
30659 PR tree-optimization/89779
30660 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30661 checks with respect to released SSA names now having error_mark_node
30662 type.
30663 * fold-const.c (operand_equal_p): Likewise.
30664
30665 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30666
30667 PR target/89775
30668 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30669 available to ...
30670 (s390_optimize_register_info): Use global_not_special_regno_p to
30671 check for global regs.
30672
30673 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30674
30675 PR target/89752
30676 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30677 update this_alternative nor this_alternative_set.
30678
30679 2019-03-19 Jim Wilson <jimw@sifive.com>
30680
30681 PR target/89411
30682 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30683 align, size, offset. Use them to handle a BLKmode reference. Update
30684 comment.
30685 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30686
30687 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30688
30689 PR rtl-optimization/89768
30690 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30691 instead of GEN_INT.
30692 (unroll_loop_runtime_iterations): Likewise.
30693
30694 2019-03-19 Martin Sebor <msebor@redhat.com>
30695
30696 PR tree-optimization/89644
30697 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30698 rather than endptr as an indicator of nul-termination.
30699
30700 PR tree-optimization/89644
30701 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30702 arrays in determining sequence sizes in strncpy and stpncpy.
30703
30704 2019-03-19 Martin Liska <mliska@suse.cz>
30705
30706 PR middle-end/89737
30707 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30708 unlikely_edges if there's an edge that belongs to both these sets.
30709
30710 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30711
30712 PR target/89746
30713 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30714 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30715 go via a stack temporary.
30716
30717 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30718
30719 PR target/89378
30720 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30721 instead of gen_rtx_SUBREG.
30722 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30723
30724 2019-03-19 Richard Biener <rguenther@suse.de>
30725
30726 PR debug/88389
30727 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30728
30729 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30730
30731 PR lto/87809
30732 PR lto/89335
30733 * tree.c (free_lang_data_in_decl): Do not free context of C++
30734 destrutors.
30735
30736 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30737
30738 PR target/89506
30739 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30740 subs for the first alternative except when operands[3] is 1.
30741
30742 PR target/89752
30743 * gimplify.c (gimplify_asm_expr): For output argument with
30744 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30745 diagnose error.
30746
30747 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30748
30749 PR rtl-optimization/89753
30750 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30751 explicit unrolling factor even more robust.
30752
30753 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30754
30755 PR target/89726
30756 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30757 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30758 signed zeros, do another copysign after the compensation.
30759
30760 2019-03-18 Martin Sebor <msebor@redhat.com>
30761
30762 PR tree-optimization/89720
30763 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30764 more conservatively, the same as anti-range.
30765
30766 2019-03-18 Richard Biener <rguenther@suse.de>
30767
30768 PR middle-end/88945
30769 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30770 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30771 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30772 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30773
30774 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30775
30776 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30777 Extend queue to 1024 entries.
30778 Add "consumed" field.
30779 (gomp_print_output): Remove print_index parameter.
30780 Add final parameter.
30781 Change limit to unsigned.
30782 Use consumed field to implement circular buffer.
30783 Detect interrupted print in final pass.
30784 Flush output at the end.
30785 (run): Update gomp_print_output usage.
30786 (main): Initialize kernargs->output_data.consumed.
30787
30788 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30789
30790 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30791 calculation of the minimum number of scalar iterations for
30792 fully-predicated loops.
30793
30794 2019-03-18 Martin Jambor <mjambor@suse.cz>
30795
30796 PR tree-optimization/89546
30797 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30798 any propagation to its children took place.
30799
30800 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30801
30802 PR target/89627
30803 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30804 parameter, and make use of it.
30805 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30806
30807 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30808
30809 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30810 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30811 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30812 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30813 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30814 match what the ops is doing.
30815 (push_multi_fp_blink): Likewise.
30816 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30817 compiling for size and elf target.
30818 (arc_save_callee_enter): Adjust note to match what enter/leave
30819 operation does.
30820
30821 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30822
30823 * config/arc/arc.md (tst_movb): Fix constraint.
30824
30825 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30826
30827 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30828
30829 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30830
30831 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30832 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30833 reg_alloc_order references.
30834 (size_alloc_order): Define.
30835 (arc_adjust_reg_alloc_order): New function.
30836 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30837 order.
30838 (ADJUST_REG_ALLOC_ORDER): Define.
30839 (HONOR_REG_ALLOC_ORDER): Likewise.
30840
30841 2019-03-18 Richard Biener <rguenther@suse.de>
30842
30843 PR target/87561
30844 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30845 loads and stores a bit more.
30846
30847 2019-03-18 Richard Biener <rguenther@suse.de>
30848
30849 PR target/87561
30850 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30851 load pessimization to stores as well.
30852
30853 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30854
30855 PR middle-end/86979
30856 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30857 successor, use NULL as its av set.
30858
30859 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30860
30861 PR rtl-optimization/89721
30862 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30863
30864 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30865
30866 PR target/87532
30867 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30868 When handling vec_extract, use modular arithmetic to allow
30869 constant selectors greater than vector length.
30870 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30871 V1TImode vectors to have constant selector values greater than 0.
30872 Use modular arithmetic to compute vector index.
30873 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30874 index for in-memory vectors. Correct code generation for
30875 in-register vectors.
30876 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30877 compute index.
30878
30879 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30880
30881 PR c++/88534
30882 PR c++/88537
30883 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30884 VAR_DECL args.
30885
30886 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30887
30888 PR c++/89709
30889 * tree.c (inchash::add_expr): Strip any location wrappers.
30890 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30891 after hash verification.
30892
30893 PR debug/89704
30894 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30895 SIGN_EXTEND and ZERO_EXTEND.
30896
30897 2019-03-14 Jason Merrill <jason@redhat.com>
30898 Jakub Jelinek <jakub@redhat.com>
30899
30900 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30901 than if is_empty (*slot).
30902 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30903 existing elt and for elt removal.
30904 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30905 of already removed elt.
30906
30907 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30908
30909 PR target/89650
30910 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30911 REG_EH_REGION note.
30912
30913 2019-03-14 Martin Liska <mliska@suse.cz>
30914
30915 PR other/89712
30916 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30917
30918 2019-03-14 Richard Biener <rguenther@suse.de>
30919
30920 PR target/89711
30921 * config/i386/i386.c (make_resolver_func): Properly set
30922 DECL_CONTEXT on the RESULT_DECL.
30923 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30924
30925 2019-03-14 Richard Biener <rguenther@suse.de>
30926
30927 * gimple-pretty-print.c: Include cfgloop.h.
30928 (dump_gimple_phi): Adjust.
30929 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30930 (pp_cfg_jump): Adjust.
30931 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30932 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30933 (lower_phi_internal_fn): Remove.
30934 (verify_gimple_call): Remove IFN_PHI special-casing.
30935 (dump_function_to_file): Dump IL state.
30936 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30937 done to deal with PHI nodes being present in non-SSA state.
30938
30939 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30940
30941 PR ipa/89684
30942 * multiple_target.c (create_dispatcher_calls): Change
30943 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30944 In the node->iterate_referring loop, push *ref rather than ref, call
30945 ref->remove_reference () and always pass 0 to iterate_referring.
30946
30947 PR rtl-optimization/89679
30948 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30949 would contain a paradoxical SUBREG.
30950
30951 2019-03-14 Richard Biener <rguenther@suse.de>
30952
30953 PR tree-optimization/89710
30954 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30955 safe_dyn_cast.
30956
30957 2019-03-14 Martin Liska <mliska@suse.cz>
30958
30959 * coverage.c (coverage_begin_function): Stream also
30960 end_column.
30961 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30962 documentation about function declaration location.
30963 * gcov-dump.c (tag_function): Print whole range
30964 of function declaration.
30965 * gcov.c (struct function_info): Add end_column field.
30966 (function_info::function_info): Initialize it.
30967 (output_json_intermediate_file): Output {start,end}_column
30968 fields.
30969 (read_graph_file): Read end_column.
30970
30971 2019-03-14 Richard Biener <rguenther@suse.de>
30972
30973 PR middle-end/89698
30974 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30975 that the access types are similar.
30976
30977 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30978
30979 PR tree-optimization/89703
30980 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30981 aren't compatible also with builtin_decl_explicit. Check pure
30982 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30983 and BUILT_IN_STPNCPY{,_CHK}.
30984
30985 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30986
30987 PR target/89523
30988 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30989 addr32 prefix to VSIB address for X32.
30990 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30991 "%M2" to opcode.
30992 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30993 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30994 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30995 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30996 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30997 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30998 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30999 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
31000 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
31001 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
31002 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
31003 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
31004 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
31005 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
31006 (*avx512f_scatterdi<mode>): Likewise.
31007
31008 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
31009
31010 PR target/85860
31011 * lra-constraints.c (inherit_in_ebb): Update
31012 potential_reload_hard_regs along with live_hard_regs.
31013
31014 2019-03-13 Jakub Jelinek <jakub@redhat.com>
31015
31016 PR debug/89498
31017 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
31018 DWARF_OFFSET_SIZE.
31019 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
31020
31021 2019-03-13 Martin Sebor <msebor@redhat.com>
31022
31023 PR tree-optimization/89662
31024 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
31025 has a size.
31026
31027 2019-03-13 Richard Biener <rguenther@suse.de>
31028
31029 PR middle-end/89677
31030 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
31031 throw FP expressions at tree-affine.
31032
31033 2019-03-14 Richard Biener <rguenther@suse.de>
31034
31035 * tree-pretty-print.c (dump_generic_node): For -gimple properly
31036 dump negative integer constants using _Literal (type) -num.
31037
31038 2019-03-13 Jakub Jelinek <jakub@redhat.com>
31039
31040 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
31041 nonlocal_value member.
31042
31043 PR middle-end/88588
31044 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
31045 (ipa_simd_modify_function_body): Handle PHIs.
31046
31047 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31048
31049 * config/s390/s390.c (s390_option_override_internal): Use more
31050 aggressive inlining parameters.
31051
31052 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31053
31054 * config/s390/3906.md: New file.
31055 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31056 (LONGRUNNING_THRESHOLD): Remove.
31057 (MAX_SCHED_MIX_SCORE): Decrease.
31058 (MAX_SCHED_MIX_DISTANCE): Decrease.
31059 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
31060 (struct s390_sched_state): New struct to hold scheduling state.
31061 (S390_SCHED_STATE_NORMAL): Remove.
31062 (S390_SCHED_STATE_CRACKED): Remove.
31063 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
31064 (s390_get_sched_attrmask): Use new attribute.
31065 (s390_get_unit_mask): Use new units.
31066 (s390_is_fpd): New function.
31067 (s390_is_fxd): New function.
31068 (s390_is_longrunning): New function.
31069 (s390_sched_score): Use new functions.
31070 (s390_sched_reorder): Likewise.
31071 (s390_sched_variable_issue): Rework and use new functions.
31072 (s390_sched_init): Use new functions.
31073 * config/s390/s390.h (s390_tune_attr): Add z14.
31074 * config/s390/s390.md: Add z14.
31075
31076 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31077
31078 * config/s390/2964.md: Update pipeline description.
31079 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31080 (LONGRUNNING_THRESHOLD): Remove.
31081 (LATENCY_FACTOR): Remove.
31082 (s390_get_unit_mask): Add unit.
31083 (s390_sched_score): Use fxd/fpd.
31084 (s390_sched_variable_issue): Use fxd/fpd.
31085
31086 2019-03-12 Martin Liska <mliska@suse.cz>
31087
31088 * config/i386/i386.c: Reword an error message.
31089
31090 2019-03-12 Martin Jambor <mjambor@suse.cz>
31091
31092 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
31093 terminate with newline.
31094
31095 2019-03-12 Jakub Jelinek <jakub@redhat.com>
31096
31097 PR target/52726
31098 * config/s390/s390.md (tabort): Use %wd instead of
31099 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
31100 letters and periods.
31101 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
31102 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
31103 's with %< and %>.
31104
31105 PR middle-end/89663
31106 * builtins.c (expand_builtin_int_roundingfn,
31107 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
31108 gcc_unreachable if validate_arglist fails.
31109
31110 2019-03-12 Richard Biener <rguenther@suse.de>
31111
31112 PR tree-optimization/89664
31113 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
31114 free the occurance tree after the early out.
31115
31116 2019-03-11 Jakub Jelinek <jakub@redhat.com>
31117
31118 PR middle-end/89655
31119 PR bootstrap/89656
31120 * vr-values.c (vr_values::update_value_range): If
31121 old_vr->varying_p (), don't update it, make new_vr also VARYING
31122 and return false.
31123
31124 2019-03-11 Martin Liska <mliska@suse.cz>
31125
31126 * config/aarch64/aarch64.c (aarch64_override_options_internal):
31127 Fix double string quoting.
31128
31129 2019-03-11 Martin Liska <mliska@suse.cz>
31130
31131 * collect-utils.c (collect_wait): Wrap apostrophes
31132 in gcc internal format with %'.
31133 * collect2.c (main): Likewise.
31134 (scan_prog_file): Likewise.
31135 (scan_libraries): Likewise.
31136 * config/i386/i386.c (ix86_expand_call): Likewise.
31137 (ix86_handle_interrupt_attribute): Likewise.
31138 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
31139 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
31140 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
31141 * lto-wrapper.c (find_crtoffloadtable): Likewise.
31142 * symtab.c (symtab_node::verify_base): Likewise.
31143 * tree-cfg.c (verify_gimple_label): Likewise.
31144 * tree.c (verify_type_variant): Likewise.
31145
31146 2019-03-11 Martin Liska <mliska@suse.cz>
31147
31148 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
31149 in a string format message and fix GNU coding style.
31150 (expand_builtin_set_thread_pointer): Likewise.
31151 * common/config/aarch64/aarch64-common.c
31152 (aarch64_rewrite_selected_cpu): Likewise.
31153 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
31154 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
31155 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
31156 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
31157 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
31158 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
31159 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
31160 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
31161 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
31162 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
31163 Likewise.
31164 * common/config/riscv/riscv-common.c
31165 (riscv_subset_list::parsing_subset_version): Likewise.
31166 (riscv_subset_list::parse_std_ext): Likewise.
31167 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31168 (riscv_subset_list::parse): Likewise.
31169 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
31170 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
31171 (aarch64_override_options_internal): Likewise.
31172 (aarch64_validate_mcpu): Likewise.
31173 (aarch64_validate_march): Likewise.
31174 (aarch64_validate_mtune): Likewise.
31175 (aarch64_override_options): Likewise.
31176 * config/alpha/alpha.c (alpha_option_override): Likewise.
31177 * config/arc/arc.c (arc_init): Likewise.
31178 (parse_mrgf_banked_regs_option): Likewise.
31179 (arc_override_options): Likewise.
31180 (arc_expand_builtin_aligned): Likewise.
31181 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
31182 (arm_expand_builtin): Likewise.
31183 * config/arm/arm.c (arm_option_check_internal): Likewise.
31184 (arm_configure_build_target): Likewise.
31185 (arm_option_override): Likewise.
31186 (arm_options_perform_arch_sanity_checks): Likewise.
31187 (arm_handle_cmse_nonsecure_entry): Likewise.
31188 (arm_handle_cmse_nonsecure_call): Likewise.
31189 (arm_tls_referenced_p): Likewise.
31190 (thumb1_expand_prologue): Likewise.
31191 * config/avr/avr.c (avr_option_override): Likewise.
31192 * config/bfin/bfin.c (bfin_option_override): Likewise.
31193 * config/c6x/c6x.c (c6x_option_override): Likewise.
31194 * config/cr16/cr16.c (cr16_override_options): Likewise.
31195 * config/cris/cris.c (cris_option_override): Likewise.
31196 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
31197 * config/darwin-c.c (macosx_version_as_macro): Likewise.
31198 * config/darwin.c (darwin_override_options): Likewise.
31199 * config/frv/frv.c (frv_expand_builtin): Likewise.
31200 * config/h8300/h8300.c (h8300_option_override): Likewise.
31201 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
31202 (ix86_option_override_internal): Likewise.
31203 (warn_once_call_ms2sysv_xlogues): Likewise.
31204 (ix86_expand_prologue): Likewise.
31205 (split_stack_prologue_scratch_regno): Likewise.
31206 (ix86_warn_parameter_passing_abi): Likewise.
31207 * config/ia64/ia64.c (fix_range): Likewise.
31208 * config/m68k/m68k.c (m68k_option_override): Likewise.
31209 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
31210 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
31211 (mips_set_compression_mode): Likewise.
31212 * config/mmix/mmix.c (mmix_option_override): Likewise.
31213 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
31214 * config/msp430/msp430.c (msp430_option_override): Likewise.
31215 * config/nds32/nds32.c (nds32_option_override): Likewise.
31216 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
31217 (nios2_option_override): Likewise.
31218 (nios2_expand_custom_builtin): Likewise.
31219 * config/nvptx/mkoffload.c (main): Likewise.
31220 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
31221 * config/pa/pa.c (fix_range): Likewise.
31222 (pa_option_override): Likewise.
31223 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
31224 (riscv_option_override): Likewise.
31225 * config/rl78/rl78.c (rl78_option_override): Likewise.
31226 * config/rs6000/aix61.h: Likewise.
31227 * config/rs6000/aix71.h: Likewise.
31228 * config/rs6000/aix72.h: Likewise.
31229 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
31230 * config/rs6000/freebsd64.h: Likewise.
31231 * config/rs6000/linux64.h: Likewise.
31232 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
31233 (rs6000_expand_zeroop_builtin): Likewise.
31234 (rs6000_expand_mtfsb_builtin): Likewise.
31235 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
31236 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
31237 (rs6000_invalid_builtin): Likewise.
31238 (rs6000_expand_split_stack_prologue): Likewise.
31239 * config/rs6000/rtems.h: Likewise.
31240 * config/rx/rx.c (valid_psw_flag): Likewise.
31241 (rx_expand_builtin): Likewise.
31242 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
31243 * config/s390/s390.c (s390_expand_builtin): Likewise.
31244 (s390_function_profiler): Likewise.
31245 (s390_option_override_internal): Likewise.
31246 (s390_option_override): Likewise.
31247 * config/sh/sh.c (sh_option_override): Likewise.
31248 (sh_builtin_saveregs): Likewise.
31249 (sh_fix_range): Likewise.
31250 * config/sh/vxworks.h: Likewise.
31251 * config/sparc/sparc.c (sparc_option_override): Likewise.
31252 * config/spu/spu.c (spu_option_override): Likewise.
31253 (fix_range): Likewise.
31254 * config/visium/visium.c (visium_option_override): Likewise.
31255 (visium_handle_interrupt_attr): Likewise.
31256 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
31257 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
31258 (dbg_cnt_process_opt): Likewise.
31259 * dwarf2out.c (output_dwarf_version): Likewise.
31260 * except.c (expand_eh_return): Likewise.
31261 * gcc.c (defined): Likewise.
31262 (driver_handle_option): Likewise.
31263 (process_command): Likewise.
31264 (compare_files): Likewise.
31265 (driver::prepare_infiles): Likewise.
31266 (driver::do_spec_on_infiles): Likewise.
31267 (driver::maybe_run_linker): Likewise.
31268 * omp-offload.c (oacc_parse_default_dims): Likewise.
31269 * opts-global.c (handle_common_deferred_options): Likewise.
31270 * opts.c (parse_sanitizer_options): Likewise.
31271 (common_handle_option): Likewise.
31272 (enable_warning_as_error): Likewise.
31273 * passes.c (enable_disable_pass): Likewise.
31274 * plugin.c (parse_plugin_arg_opt): Likewise.
31275 (default_plugin_dir_name): Likewise.
31276 * targhooks.c (default_expand_builtin_saveregs): Likewise.
31277 (default_pch_valid_p): Likewise.
31278 * toplev.c (init_asm_output): Likewise.
31279 (process_options): Likewise.
31280 (toplev::run_self_tests): Likewise.
31281 * tree-cfg.c (verify_gimple_call): Likewise.
31282 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
31283 (tree_inlinable_function_p): Likewise.
31284 * var-tracking.c (vt_find_locations): Likewise.
31285
31286 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
31287
31288 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
31289 only on the else branch.
31290
31291 2019-03-11 Martin Liska <mliska@suse.cz>
31292
31293 * gcov.c (output_intermediate_json_line): Print function
31294 name of each line.
31295 (output_json_intermediate_file): Add new argument.
31296 * doc/gcov.texi: Document the change.
31297
31298 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
31299
31300 PR rtl-optimization/89588
31301 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31302 explicit unrolling factor more robust.
31303
31304 2019-03-11 Richard Biener <rguenther@suse.de>
31305
31306 PR tree-optimization/89649
31307 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
31308 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
31309 on the prolog and epilog loops.
31310 (vect_loop_versioning): Return copy of loop.
31311 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
31312 on the non-vectorized version of the loop.
31313
31314 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
31315
31316 PR target/68924
31317 * config/i386/sse.md (*vec_extractv2di_0_sse):
31318 Add (=r,x) alternative and corresponding splitter.
31319
31320 2019-03-10 Martin Jambor <mjambor@suse.cz>
31321
31322 PR tree-optimization/85762
31323 PR tree-optimization/87008
31324 PR tree-optimization/85459
31325 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
31326 it points to if there is a type changing MEM_REF. Adjust all callers.
31327 (build_accesses_from_assign): Disable total scalarization if
31328 contains_vce_or_bfcref_p returns true through the new parameter, for
31329 both rhs and lhs.
31330
31331 2019-03-09 Jakub Jelinek <jakub@redhat.com>
31332
31333 PR c/88568
31334 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
31335 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
31336
31337 PR target/79645
31338 * common.opt (fdiagnostics-show-labels,
31339 fdiagnostics-show-line-numbers, fdiagnostics-format=,
31340 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
31341 gas-locview-support, ginline-points, ginternal-reset-location-views):
31342 Terminate description text with a dot.
31343 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
31344 * config/mcore/mcore.opt (m210, m340): Likewise.
31345 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
31346 mnops=): Start description text with a capital letter.
31347 * config/arc/arc.opt (msize-level=): Likewise.
31348 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
31349 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
31350 mnewlib): Likewise.
31351 * config/ft32/ft32.opt (msim): Likewise.
31352 (mft32b, mcompress): Likewise. Terminate description text with a dot.
31353 (mnodiv, mnopm): Terminate description text with a dot.
31354 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
31355 a colon.
31356 * config/i386/i386.opt (prefer_vector_width, instrument_return):
31357 Likewise.
31358 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
31359 text.
31360
31361 PR rtl-optimization/89634
31362 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
31363 are modified in BB_END (e->src) instruction.
31364
31365 2019-03-08 David Malcolm <dmalcolm@redhat.com>
31366
31367 PR target/79926
31368 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
31369 messages more amenable to translation, and improve wording.
31370
31371 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
31372
31373 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
31374 ud- and du-chains between phases.
31375
31376 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
31377
31378 PR debug/89631
31379 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
31380 instead of POLY_INT_CST.
31381
31382 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
31383
31384 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
31385 requirement.
31386
31387 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
31388
31389 PR target/68924
31390 PR target/78782
31391 PR target/87558
31392 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
31393 (_mm_storeu_si64): Ditto.
31394
31395 2019-03-08 Martin Liska <mliska@suse.cz>
31396
31397 PR target/86952
31398 * config/i386/i386.c (ix86_option_override_internal): Disable
31399 jump tables when retpolines are used.
31400
31401 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
31402
31403 PR go/63560
31404 * ipa-split.c (execute_split_functions): Do not split
31405 'noinline' or 'section' function.
31406
31407 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31408
31409 PR target/79846
31410 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
31411 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
31412 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
31413
31414 PR ipa/80000
31415 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
31416 from diagnostics. Formatting fixes.
31417
31418 PR target/85665
31419 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
31420 warn_odr diagnostics.
31421
31422 PR other/80058
31423 * lra-constraints.c (process_alt_operands): Avoid one space before
31424 " at the end of line and another after " on another line in a string
31425 literal.
31426 * attribs.c (handle_dll_attribute): Likewise.
31427 * config/avr/avr-devices.c (avr_texinfo): Likewise.
31428
31429 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
31430 warning_at or inform messages in G_() if there is no ?:.
31431
31432 PR tree-optimization/89550
31433 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
31434 returned true. Formatting fixes.
31435 (expand_builtin_strnlen): Formatting fixes.
31436 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
31437 if warning_at returned true.
31438 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
31439
31440 2019-03-08 Richard Biener <rguenther@suse.de>
31441
31442 PR middle-end/89578
31443 * cfgloop.h (struct loop): Add owned_clique field.
31444 * cfgloopmanip.c (copy_loop_info): Copy it.
31445 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31446 cliques.
31447 * tree-inline.c (copy_loops): Remap owned_clique.
31448 * lto-streamer-in.c (input_cfg): Stream owned_clique.
31449 * lto-streamer-out.c (output_cfg): Likewise.
31450
31451 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31452
31453 PR target/80190
31454 * config/darwin.c: Include intl.h.
31455 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31456 composing the message out of two separate parts.
31457
31458 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31459
31460 PR target/80003
31461 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31462 doesn't start with a capital letter and doesn't end with a dot.
31463 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31464 with a capital letter.
31465 (ix86_mangle_function_version_assembler_name): Likewise.
31466 (ix86_generate_version_dispatcher_body): Likewise.
31467 (fold_builtin_cpu): Likewise.
31468 (get_builtin_code_for_version): Likewise. Remove extraneous space.
31469 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31470 translators, wrap full type name in %qs.
31471
31472 PR translation/79999
31473 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31474 depend clause with source (or sink) modifier.
31475 * omp-expand.c (expand_omp_ordered_sink): Likewise.
31476
31477 PR target/89602
31478 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31479 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31480 (avx512f_load<mode>_mask): New define_expand.
31481 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31482 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31483 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31484 __builtin_ia32_movess_mask): New builtins.
31485 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31486 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31487 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31488 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31489
31490 2019-03-07 Martin Jambor <mjambor@suse.cz>
31491
31492 PR lto/87525
31493 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31494 for extern inline functions.
31495
31496 2019-03-07 Martin Jambor <mjambor@suse.cz>
31497
31498 PR ipa/88235
31499 * cgraph.h (cgraph_node): New inline method former_thunk_p.
31500 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31501 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31502 have multiple callees. At the end check if declarations match as
31503 opposed to cgraph_nodes.
31504
31505 2019-03-07 Martin Liska <mliska@suse.cz>
31506
31507 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31508 which is equivalent to searching for this in clones chain.
31509 * symtab.c (symtab_node::verify_base): Similarly compare ASM
31510 names with a neighbour and special case first node in a chain.
31511
31512 2019-01-25 Jason Merrill <jason@redhat.com>
31513
31514 PR c++/80916 - spurious "static but not defined" warning.
31515 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31516 for an internal symbol with DECL_EXTERNAL.
31517
31518 2019-04-07 Richard Biener <rguenther@suse.de>
31519
31520 PR middle-end/89618
31521 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31522 * tree-inline.c (copy_loops): Simplify.
31523
31524 2019-03-07 Martin Liska <mliska@suse.cz>
31525
31526 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31527
31528 2019-03-07 Richard Biener <rguenther@suse.de>
31529
31530 PR tree-optimization/89595
31531 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31532 stmt iterator as reference, take boolean output parameter to
31533 indicate whether the stmt was removed and thus the iterator
31534 already advanced.
31535 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31536 stmts created by folding.
31537
31538 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31539
31540 PR c++/89585
31541 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31542 at toplevel.
31543
31544 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31545
31546 PR rtl-optimization/88845
31547 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31548 LRA.
31549 * lra.c (remove_scratches_1): New function.
31550 (remove_scratches): Use it.
31551 (lra_emit_move): Likewise.
31552
31553 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31554
31555 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31556 unaligned_access variable.
31557 * config/arc/arc.c (arc_override_options): Set unaligned access
31558 default on for HS CPUs.
31559 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31560
31561 2019-03-06 Martin Liska <mliska@suse.cz>
31562
31563 PR gcov-profile/89577
31564 * doc/gcov.texi: Prefer to use --coverage.
31565 * doc/sourcebuild.texi: Likewise.
31566
31567 2019-03-02 Jason Merrill <jason@redhat.com>
31568
31569 PR c++/86485 - -Wmaybe-unused with empty class ?:
31570 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31571
31572 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31573
31574 PR target/89587
31575 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31576 if_multiarch.
31577
31578 PR middle-end/89590
31579 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31580 exactly one argument.
31581
31582 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31583 Richard Sandiford <richard.sandiford@arm.com>
31584
31585 PR tree-optimization/89570
31586 * match.pd (vec_cond into cond_op simplification): Don't use
31587 get_conditional_internal_fn, use as_internal_fn (cond_op).
31588
31589 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31590
31591 PR target/89222
31592 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31593 to decide when to split off a non-zero offset from a symbol.
31594 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31595 in function symbols.
31596
31597 2019-03-05 Richard Biener <rguenther@suse.de>
31598
31599 PR tree-optimization/89594
31600 * tree-if-conv.c (pass_if_conversion::execute): Handle
31601 case where .LOOP_VECTORIZED_FUNCTION was removed.
31602
31603 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31604
31605 PR bootstrap/89560
31606 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31607 instead alloca it only when needed with the needed size.
31608
31609 PR tree-optimization/89570
31610 * match.pd (vec_cond into cond_op simplification): Guard with
31611 vectorized_internal_fn_supported_p test and #if GIMPLE.
31612
31613 PR tree-optimization/89566
31614 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31615 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31616 Punt if get_user_idx_format succeeds, but idx_format argument is
31617 not provided or doesn't have pointer type, or if idx_args is above
31618 number of provided arguments.
31619
31620 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31621
31622 PR tree-optimization/89437
31623 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31624
31625 2019-03-04 Richard Biener <rguenther@suse.de>
31626
31627 PR middle-end/89572
31628 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31629 safe_dyn_cast.
31630
31631 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31632
31633 PR tree-optimization/89487
31634 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31635 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31636 (distribute_loop): Don't do runtime alias check if there is non-
31637 addressable data reference.
31638 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31639 is a register variable.
31640
31641 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31642
31643 PR target/89506
31644 * config/arm/arm.md (cmpsi2_addneg): Use
31645 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31646 If operands[2] is 0 or INT_MIN, force use of subs.
31647 (*compare_scc splitter): Use gen_int_mode.
31648 (*negscc): Likewise.
31649 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31650
31651 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31652 Monk Chiang <sh.chiang04@gmail.com>
31653
31654 * common/config/riscv/riscv-common.c: Include sstream.
31655 (riscv_subset_list::to_string): New.
31656 (riscv_arch_str): Likewise.
31657 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31658 * config.in: Regen.
31659 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31660 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31661 (riscv_emit_attribute): New.
31662 (riscv_file_start): Emit attribute if needed.
31663 (riscv_option_override): Init riscv_emit_attribute_p.
31664 * config/riscv/riscv.opt (mriscv-attribute): New option.
31665 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31666 * configure: Regen.
31667 * doc/install.texi: Document --with-riscv-attribute.
31668 * doc/invoke.texi: Document -mriscv-attribute.
31669
31670 * common/config/riscv/riscv-common.c:
31671 Include config/riscv/riscv-protos.h.
31672 (INCLUDE_STRING): Defined.
31673 (RISCV_DONT_CARE_VERSION): Defined.
31674 (riscv_subset_t): Declare.
31675 (riscv_subset_t::riscv_subset_t): New.
31676 (riscv_subset_list): Declare.
31677 (riscv_subset_list::riscv_subset_list): New.
31678 (riscv_subset_list::~riscv_subset_list): Likewise.
31679 (riscv_subset_list::parsing_subset_version): Likewise.
31680 (riscv_subset_list::parse_std_ext): Likewise.
31681 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31682 (riscv_subset_list::add): Likewise.
31683 (riscv_subset_list::lookup): Likewise.
31684 (riscv_subset_list::xlen): Likewise.
31685 (riscv_subset_list::parse): Likewise.
31686 (riscv_supported_std_ext): Likewise.
31687 (current_subset_list): Likewise.
31688 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31689 parse.
31690
31691 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31692
31693 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31694 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31695 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31696
31697 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31698
31699 PR rtl-optimization/85899
31700 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31701 fallthru edges leading to the exit block.
31702
31703 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31704
31705 PR target/89517
31706 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31707 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31708
31709 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31710
31711 PR tree-optimization/89535
31712 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31713 for each operand. Calculate the fallback choice for mask operands
31714 and pass it to vect_get_vec_def_for_operand.
31715
31716 2019-03-01 Richard Biener <rguenther@suse.de>
31717
31718 PR middle-end/89541
31719 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31720 get virtual operands.
31721 (get_expr_operands): Handle CONST_DECL like other decls.
31722
31723 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31724
31725 PR middle-end/89503
31726 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31727 on DECL_P and EXPR_P.
31728
31729 2019-03-01 Richard Biener <rguenther@suse.de>
31730
31731 PR middle-end/89497
31732 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31733 argument, defaulted to zero.
31734 * passes.c (execute_function_todo): Pass down SSA update flags
31735 to cleanup_tree_cfg.
31736 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31737 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31738 form if requested.
31739 (cleanup_tree_cfg): Get and pass down SSA update flags.
31740
31741 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31742
31743 PR bootstrap/89539
31744 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31745 early_lto_debug argument.
31746
31747 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31748
31749 PR tree-optimization/89536
31750 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31751 only whether bit #0 of the value is 0 instead of the entire value.
31752
31753 2019-02-28 Marek Polacek <polacek@redhat.com>
31754
31755 PR c++/87068 - missing diagnostic with fallthrough statement.
31756 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31757 at the end of a seq, save its location to walk_stmt_info.
31758 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31759 a switch.
31760
31761 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31762
31763 PR lto/88585
31764 * tree.c (find_atomic_core_type): Move ahead in file.
31765 (check_base_type): Correctly compare alignments of atomic types.
31766
31767 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31768
31769 PR target/89455
31770 * config/i386/i386.c (get_builtin_code_for_version): Identify
31771 Westmere from PCLMUL, instead of AES.
31772
31773 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31774
31775 PR target/89434
31776 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31777 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31778 -UINTVAL (...).
31779
31780 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31781
31782 PR target/88530
31783 * config/aarch64/aarch64-option-extensions.def: Document it.
31784 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31785 if empty hwcaps.
31786
31787 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31788
31789 PR c/89520
31790 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31791 builtins if they don't have a single scalar floating point argument.
31792 Formatting fixes.
31793
31794 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31795
31796 PR rtl-optimization/89490
31797 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31798 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31799 block section is not mergeable.
31800
31801 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31802
31803 PR target/70341
31804 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31805 old define_insn to ...
31806 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31807 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31808 Rename old define_insn to ...
31809 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31810 (thumb2_casesi_internal_pic): New define_expand. Rename old
31811 define_insn to ...
31812 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31813 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31814 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31815
31816 2019-02-27 Richard Biener <rguenther@suse.de>
31817
31818 PR debug/88878
31819 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31820
31821 2019-02-27 Richard Biener <rguenther@suse.de>
31822
31823 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31824 building.
31825
31826 2019-02-27 Richard Biener <rguenther@suse.de>
31827
31828 PR debug/88878
31829 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31830 parameter, prefix section name with .gnu.debuglto_ if true.
31831 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31832 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31833
31834 2019-02-27 Richard Biener <rguenther@suse.de>
31835
31836 PR debug/89514
31837 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31838 rather than on use_debug_types, doing what output_die does.
31839 (value_format): Likewise.
31840
31841 2019-02-27 Martin Jambor <mjambor@suse.cz>
31842 Martin Sebor <msebor@redhat.com>
31843
31844 * doc/invoke.texi (Warning Options): Reword description of
31845 -Wno-absolute-value.
31846
31847 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31848
31849 PR tree-optimization/89280
31850 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31851 builtin_setjmp_setup_bb): New functions.
31852 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31853 When visiting __builtin_setjmp_setup block, queue in special
31854 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31855 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31856 from visited after the loop if they don't have any visited successor
31857 blocks.
31858
31859 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31860
31861 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31862 New function.
31863 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31864
31865 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31866
31867 PR c++/89507
31868 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31869 with types other than sizetype/ssizetype.
31870
31871 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31872
31873 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31874 (enum sparc_processor_type): ...this.
31875 (enum sparc_code_model_type): New enumeration type.
31876 (enum sparc_memory_model_type): Tweak comments.
31877 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31878 (mtune): Likewise.
31879 (mcmodel): Use sparc_code_model enumeration and variable.
31880 (sparc_code_model): New enumeration.
31881 (mdebug): Add Undocumented marker.
31882 * config/sparc/sparc.h (enum cmodel): Delete.
31883 (sparc_cmodel): Likewise.
31884 (TARGET_CM_MEDLOW): Adjust to above renaming.
31885 (TARGET_CM_MEDMID): Likewise.
31886 (TARGET_CM_MEDANY): Likewise.
31887 (TARGET_CM_EMBMEDANY): Likewise.
31888 * config/sparc/sparc.c (sparc_cmodel): Delete.
31889 (sparc_option_override): Remove string/value mapping support for the
31890 code model. Move code and memory model support to after the handling
31891 of target flags. Do private machine setup last.
31892 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31893 (sparc_legitimize_reload_address): Likewise.
31894 (sparc_output_mi_thunk): Likewise.
31895 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31896
31897 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31898
31899 PR tree-optimization/89500
31900 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31901 (handle_builtin_strlen): Remove noncst_bound variable. Always
31902 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31903 cst if the first cst bytes starting at x are known to be non-zero,
31904 even if the string is not zero terminated. Don't try to modify
31905 *si for strnlen. Update strlen_to_stridx only for strlen or if
31906 we can prove strnlen returns the same value as strlen would.
31907
31908 2019-02-26 Martin Liska <mliska@suse.cz>
31909
31910 * alloc-pool.h (struct pool_usage): Remove extra
31911 print_dash_line.
31912 * bitmap.h (struct bitmap_usage): Likewise.
31913 * ggc-common.c (struct ggc_usage): Likewise.
31914 * mem-stats.h (struct mem_usage): Likewise.
31915 (mem_alloc_description::dump): Print dash lines
31916 here and repeat header at the end of a table report.
31917 It's then more readable.
31918 * tree-phinodes.c (phinodes_print_statistics): Make
31919 horizontal alignment.
31920 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31921 * vec.c (struct vec_usage): Remove extra print_dash_line.
31922 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31923
31924 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31925
31926 * doc/extend.texi (__builtin_object_size):
31927 Use @pxref instead of @xref inside parenthesis.
31928 (__builtin_has_attribute): Add missing comma after @xref.
31929 (__builtin_object_size): Ditto.
31930 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31931
31932 2019-02-26 Jeff Law <law@redhat.com>
31933
31934 PR rtl-optimization/87761
31935 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31936 detect obviously dead insns and delete them.
31937
31938 2019-02-26 Richard Biener <rguenther@suse.de>
31939
31940 PR tree-optimization/89505
31941 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31942 to handle restrict pointed-to vars with multiple subvars
31943 correctly.
31944
31945 2019-02-26 Richard Biener <rguenther@suse.de>
31946
31947 PR tree-optimization/89489
31948 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31949
31950 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31951
31952 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31953 and move around comment.
31954 <BIT_AND_EXPR>: Likewise.
31955 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31956
31957 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31958
31959 PR target/89474
31960 * config/i386/i386.c (remove_partial_avx_dependency): Call
31961 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31962 after changing possibly many instructions to use that pseudo. Fix up
31963 insertion of v4sf_const0 setter at the start of bb.
31964
31965 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31966
31967 PR c/80409
31968 * doc/extend.texi (Variadic Pointer Args): New section.
31969
31970 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31971 Martin Sebor <msebor@gmail.com>
31972
31973 * common.opt (Wattribute-alias): Likewise.
31974 * doc/invoke.texi (Option Summary): List general form of
31975 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31976 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31977 Add cross-references.
31978 (-Wattribute-alias): Rewrite and correct default. Mention
31979 considered attributes (same as for -Wmissing-attributes).
31980
31981 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31982
31983 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31984 (_mm_cvtpd_ps): Likewise.
31985 (_mm_cvttpd_epi32): Likewise.
31986
31987 PR target/89338
31988 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31989 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31990
31991 PR target/89339
31992 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31993
31994 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31995
31996 PR target/88530
31997 * common/config/aarch64/aarch64-common.c
31998 (struct aarch64_option_extension): Add is_synthetic.
31999 (all_extensions): Use it.
32000 (TARGET_OPTION_INIT_STRUCT): Define hook.
32001 (struct gcc_targetm_common): Moved to end.
32002 (all_extensions_by_on): New.
32003 (opt_ext_cmp, typedef opt_ext): New.
32004 (aarch64_option_init_struct): New.
32005 (aarch64_contains_opt): New.
32006 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
32007 * config/aarch64/aarch64-option-extensions.def
32008 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
32009 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
32010 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
32011 Set is_synthetic to false.
32012 (crypto): Set is_synthetic to true.
32013 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
32014 SYNTHETIC.
32015
32016 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32017
32018 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32019 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
32020 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32021 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
32022 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
32023 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
32024 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
32025 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
32026 Rename ...
32027 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
32028 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32029 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
32030 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
32031 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
32032 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
32033 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
32034 vfmlsl_laneq_high_f16): ... To this.
32035 * config/arm/neon.md: Update comments.
32036
32037 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32038
32039 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32040 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
32041 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32042 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
32043 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
32044 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
32045 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
32046 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
32047 Rename ...
32048 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
32049 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32050 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
32051 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
32052 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
32053 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
32054 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
32055 vfmlslq_laneq_high_f16): ... To this.
32056
32057 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
32058
32059 PR rtl-optimization/86096
32060 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
32061 comparing mw_order values.
32062
32063 2019-02-25 Jakub Jelinek <jakub@redhat.com>
32064
32065 PR target/89434
32066 * config/arm/arm.md (*subsi3_carryin_const): Use
32067 arm_neg_immediate_operand predicate instead of
32068 arm_not_immediate_operand, "L" constraint instead of "K" and
32069 print it using %n2 instead of %B2.
32070 (*subsi3_carryin_const0): New define_insn.
32071 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
32072 instead of arm_not_operand and "I" constraint instead of "K" and
32073 print it using %n3 instead of %B2. Instead of using match_dup 2 add
32074 another match_operand and in the condition check that it is negation
32075 of operands[2].
32076 (*subsi3_carryin_compare_const0): New define_ins.
32077 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
32078 *subsi3_carryin_const.
32079 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
32080 split into *subsi3_carryin_compare_const0 if the highpart is zero.
32081
32082 PR target/89438
32083 * config/arm.vfp.md (*negdf2_vfp): Use
32084 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
32085 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
32086
32087 2019-02-24 Jakub Jelinek <jakub@redhat.com>
32088
32089 PR rtl-optimization/89445
32090 * simplify-rtx.c (simplify_ternary_operation): Don't use
32091 simplify_merge_mask on operands that may trap.
32092 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
32093 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
32094 second operand is CONST_VECTOR, check if any element could be zero.
32095 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
32096 their operands can trap.
32097
32098 2019-02-23 Martin Sebor <msebor@redhat.com>
32099
32100 * gimple-ssa-sprintf.c (target_strtol): Rename...
32101 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
32102 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
32103 check for range error.
32104
32105 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
32106
32107 PR driver/69471
32108 * opts-common.c (prune_options): Also prune joined switches
32109 with Negative and RejectNegative.
32110 * config/i386/i386.opt (march=): Add Negative(march=).
32111 (mtune=): Add Negative(mtune=).
32112 * doc/options.texi: Document Negative used together with Joined
32113 and RejectNegative.
32114
32115 2019-02-22 Martin Sebor <msebor@redhat.com>
32116
32117 * doc/extend.texi (Other Builtins): Add
32118 __builtin_is_constant_evaluated.
32119
32120 2019-02-22 Richard Biener <rguenther@suse.de>
32121
32122 PR tree-optimization/87609
32123 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
32124
32125 2019-02-22 Jeff Law <law@redhat.com>
32126
32127 PR rtl-optimization/87761
32128 * config/mips/mips.md: Add new combiner pattern to recognize
32129 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
32130
32131 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
32132
32133 PR target/89324
32134 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
32135 destination register in peepholes generating patterns for ADDS/SUBS.
32136 (add<mode>3_compare0,
32137 *addsi3_compare0_uxtw, add<mode>3_compareC,
32138 add<mode>3_compareV_imm, add<mode>3_compareV,
32139 *adds_<optab><ALLX:mode>_<GPI:mode>,
32140 *subs_<optab><ALLX:mode>_<GPI:mode>,
32141 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
32142 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
32143 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
32144 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
32145 sub<mode>3_compare1): Allow stack pointer for source register.
32146 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
32147
32148 2019-02-22 Martin Sebor <msebor@redhat.com>
32149
32150 PR tree-optimization/88993
32151 PR tree-optimization/88853
32152 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
32153 New helper.
32154 (sprintf_dom_walker::call_info::is_string_func): New helper.
32155 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
32156 for formatted string functions.
32157 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
32158
32159 2019-02-22 Martin Sebor <msebor@redhat.com>
32160
32161 PR c/89425
32162 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
32163 unreachable subexpressions.
32164
32165 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
32166 Hongtao Liu <hongtao.liu@intel.com>
32167 Sunil K Pandey <sunil.k.pandey@intel.com>
32168
32169 PR target/87007
32170 * config/i386/i386-passes.def: Add
32171 pass_remove_partial_avx_dependency.
32172 * config/i386/i386-protos.h
32173 (make_pass_remove_partial_avx_dependency): New.
32174 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
32175 New function.
32176 (pass_data_remove_partial_avx_dependency): New.
32177 (pass_remove_partial_avx_dependency): Likewise.
32178 (make_pass_remove_partial_avx_dependency): Likewise.
32179 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
32180 (*extendsfdf2): Add avx_partial_xmm_update.
32181 (truncdfsf2): Likewise.
32182 (*float<SWI48:mode><MODEF:mode>2): Likewise.
32183 (SF/DF conversion splitters): Disabled for TARGET_AVX.
32184
32185 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
32186
32187 PR middle-end/85598
32188 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
32189 analysis for pass.
32190
32191 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
32192
32193 PR target/89444
32194 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
32195 (PTA_SKYLAKE): Add PTA_AES.
32196 (PTA_GOLDMONT): Likewise.
32197
32198 2019-02-22 Sudakshina Das <sudi.das@arm.com>
32199
32200 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
32201 instruction if enabled.
32202 (aarch64_override_options): Remove reference to return address key.
32203
32204 2019-02-22 Richard Biener <rguenther@suse.de>
32205
32206 PR tree-optimization/89440
32207 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
32208 not necessary assert.
32209
32210 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
32211
32212 PR fortran/72741
32213 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
32214 (oacc_replace_fn_attrib_attr): ... this new function.
32215 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
32216 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
32217
32218 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32219
32220 * config/arm/arm-cpus.in (ares): Rename to...
32221 (neoverse-n1): ... This. Add ares as alias.
32222 * config/arm/arm-tables.opt: Regenerate.
32223 * config/arm/arm-tune.md: Likewise.
32224 * doc/invoke.txt (ARM Options): Document neoverse-n1.
32225
32226 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32227
32228 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
32229 * config/aarch64/aarch64-tune.md: Regenerate.
32230 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
32231
32232 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32233
32234 * config/aarch64/aarch64.c (ares_tunings): Rename to...
32235 (neoversen1_tunings): ... This.
32236 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
32237 (neoverse-n1): New CPU.
32238 * config/aarch64/aarch64-tune.md: Regenerate.
32239 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
32240
32241 2019-02-22 Richard Biener <rguenther@suse.de>
32242
32243 PR middle-end/87609
32244 * cfghooks.h (dependence_hash): New typedef.
32245 (struct copy_bb_data): New type.
32246 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
32247 (duplicate_block): Likewise.
32248 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
32249 (copy_bbs): Create and pass down copy_bb_data.
32250 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
32251 (rtl_duplicate_bb): Likewise.
32252 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
32253 remap dependence info.
32254
32255 2019-02-22 Richard Biener <rguenther@suse.de>
32256
32257 PR tree-optimization/87609
32258 * tree-core.h (tree_base): Document special clique values.
32259 * tree-inline.c (remap_dependence_clique): Do not use the
32260 special clique value of one.
32261 (maybe_set_dependence_info): Use clique one.
32262 (clear_dependence_clique): New callback.
32263 (compute_dependence_clique): Clear clique one from all refs
32264 before assigning it (again).
32265
32266 2019-02-21 Martin Sebor <msebor@redhat.com>
32267
32268 * doc/extend.texi (__clear_cache): Correct signature.
32269
32270 2019-02-21 Ian Lance Taylor <iant@golang.org>
32271
32272 PR go/89170
32273 * varasm.c (decode_addr_const): Call lookup_constant_def rather
32274 than output_constant_def.
32275 (add_constant_to_table): New static function.
32276 (output_constant_def): Call add_constant_to_table.
32277 (tree_output_constant_def): Likewise.
32278
32279 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32280
32281 PR c++/89285
32282 * builtins.c (fold_builtin_arith_overflow): If first two args are
32283 INTEGER_CSTs, set intres and ovfres to constants rather than calls
32284 to ifn.
32285
32286 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
32287
32288 PR target/87412
32289 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
32290 error for -mindirect-branch/-mfunction-return with incompatible
32291 -fcf-protection.
32292
32293 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32294
32295 PR bootstrap/88714
32296 * constraints.md (q): Remove.
32297 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
32298 instead of q.
32299
32300 2019-02-21 Martin Jambor <mjambor@suse.cz>
32301
32302 PR hsa/89302
32303 * omp-general.c (omp_extract_for_data): Removed a duplicate call
32304 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
32305 (omp_adjust_for_condition): ...here. Added necessary parameters.
32306 * omp-general.h (omp_adjust_for_condition): Updated declaration.
32307 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
32308 proper values to new parameters of omp_adjust_for_condition.
32309
32310 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32311
32312 PR middle-end/89412
32313 * expr.c (expand_assignment): If result is a MEM, use change_address
32314 instead of simplify_gen_subreg.
32315
32316 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32317 David Malcolm <dmalcolm@redhat.com>
32318
32319 PR middle-end/89091
32320 * fold-const.c (decode_field_reference): Return NULL_TREE if
32321 lang_hooks.types.type_for_size returns NULL. Check it before
32322 overwriting *exp_. Use return NULL_TREE instead of return 0.
32323
32324 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32325
32326 PR middle-end/88074
32327 PR middle-end/89415
32328 * toplev.c (do_compile): Double the emin/emax exponents to workaround
32329 buggy mpc_norm.
32330
32331 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
32332
32333 PR target/89397
32334 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
32335 TARGET_SSE in addition to TARGET_SSE_MATH.
32336
32337 (ix86_excess_precision): Ditto.
32338 (ix86_float_exceptions_rounding_supported_p): Ditto.
32339 (use_rsqrt_p): Ditto.
32340 * config/i386/sse.md (rsqrt<mode>2): Ditto.
32341
32342 2019-02-20 David Malcolm <dmalcolm@redhat.com>
32343
32344 PR c/89410
32345 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
32346 linenum_arith_t when determining if two adjacent line spans are
32347 close enough to merge.
32348 (diagnostic_show_locus): Use linenum_arith_t when iterating over
32349 lines within each line_span.
32350
32351 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
32352
32353 PR target/86487
32354 * lra-constraints.c(uses_hard_regs_p): Fix handling of
32355 paradoxical SUBREGS.
32356
32357 2019-02-20 Li Jia He <helijia@linux.ibm.com>
32358
32359 PR target/88100
32360 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
32361 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
32362 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
32363 range checking it.
32364
32365 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
32366
32367 * config/gcn/gcn.c (print_operand): Fix typo.
32368
32369 2019-02-19 Richard Biener <rguenther@suse.de>
32370
32371 PR middle-end/88074
32372 * toplev.c (do_compile): Initialize mpfr's exponent range
32373 based on available float modes.
32374
32375 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
32376
32377 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
32378 as long as the epilogue isn't completed.
32379
32380 2019-02-18 Martin Sebor <msebor@redhat.com>
32381
32382 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
32383 __has_cpp_attribute, and __has_include.
32384
32385 2019-02-18 Martin Sebor <msebor@redhat.com>
32386
32387 * doc/invoke.texi (-Wreturn-type): Correct and expand.
32388
32389 2019-02-18 Martin Sebor <msebor@redhat.com>
32390
32391 PR middle-end/89294
32392 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
32393 expression.
32394 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
32395
32396 2019-02-18 Richard Biener <rguenther@suse.de>
32397
32398 PR tree-optimization/89296
32399 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
32400 of no-warning flag to cases that might emit the bogus warning.
32401
32402 2019-02-18 Jakub Jelinek <jakub@redhat.com>
32403
32404 PR bootstrap/88714
32405 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
32406 "q" constraint.
32407 * config/arm/vfp.md (*movdi_vfp): Likewise.
32408 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
32409 "q" constraint for operands[0].
32410
32411 PR target/89369
32412 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
32413 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
32414 pattern in a temporary buffer.
32415 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
32416 than 64-operands[2].
32417
32418 PR target/89361
32419 * config/s390/s390.c (s390_indirect_branch_attrvalue,
32420 s390_indirect_branch_settings): Define unconditionally.
32421 (s390_set_current_function): Likewise, but guard the whole body except
32422 the s390_indirect_branch_settings call with
32423 #if S390_USE_TARGET_ATTRIBUTE.
32424 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
32425
32426 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
32427 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
32428 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
32429 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
32430 HOST_WIDE_INT_1U instead of 1ULL.
32431 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
32432 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
32433 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
32434 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
32435 instead of 1UL.
32436 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
32437 instead of 1ul.
32438
32439 2019-02-18 Martin Jambor <mjambor@suse.cz>
32440
32441 PR tree-optimization/89209
32442 * tree-sra.c (create_access_replacement): New optional parameter
32443 reg_tree. Use it as a type if non-NULL and access type is not of
32444 a register type.
32445 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32446 to create_access_replacement.
32447 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32448 Check lacc is non-NULL before attempting to re-create it on the RHS.
32449
32450 2019-02-18 Martin Liska <mliska@suse.cz>
32451
32452 PR ipa/89306
32453 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32454 by default.
32455 (symbol_table::free_edge): Recycle m_summary_id.
32456 * cgraph.h (get_summary_id): New.
32457 (symbol_table::release_symbol): Set m_summary_id to -1
32458 by default.
32459 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32460 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32461 function_summary to fast_function_summary.
32462 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32463 * ipa-pure-const.c (class funct_state_summary_t):
32464 Switch from function_summary to fast_function_summary.
32465 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32466 (class ipa_ref_opt_summary_t): Switch from function_summary
32467 to fast_function_summary.
32468 * symbol-summary.h (class function_summary_base): New class
32469 that is created from base of former function_summary.
32470 (function_summary_base::unregister_hooks): New.
32471 (class function_summary): Inherit from function_summary_base.
32472 (class call_summary_base): New class
32473 that is created from base of former call_summary.
32474 (class call_summary): Inherit from call_summary_base.
32475 (struct is_same): New.
32476 (class fast_function_summary): New summary class.
32477 (class fast_call_summary): New summary class.
32478 * vec.h (vec_safe_grow_cleared): New function.
32479
32480 2019-02-18 Martin Liska <mliska@suse.cz>
32481
32482 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32483 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32484 * doc/tm.texi: Document new target hook.
32485 * doc/tm.texi.in: Likewise.
32486 * target.def: Add new target macro.
32487 * gcc.c (find_fortran_preinclude_file): Do not search multilib
32488 suffixes.
32489
32490 2019-02-17 Alan Modra <amodra@gmail.com>
32491
32492 PR target/89271
32493 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32494 output reg on add insn.
32495 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
32496
32497 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32498
32499 PR target/89372
32500 * config/i386/sse.md (ssedoublemode): Remove V4HI.
32501 (PMULHRSW): Likewise.
32502 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32503 TARGET_AVX2.
32504 (ssse3_pmulhrswv4hi3): New expander.
32505
32506 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32507
32508 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32509 MMX. Add isa attribute.
32510
32511 2019-02-16 Jakub Jelinek <jakub@redhat.com>
32512
32513 PR rtl-optimization/66152
32514 * builtins.h (c_readstr): Declare.
32515 * builtins.c (c_readstr): Remove forward declaration. Add
32516 null_terminated_p argument, if false, read all bytes from the
32517 string instead of stopping after '\0'.
32518 * expr.c (string_cst_read_str): New function.
32519 (store_expr): Use string_cst_read_str instead of
32520 builtin_strncpy_read_str. Try to store by pieces the whole
32521 exp_len first, and only if that fails, split it up into
32522 store by pieces followed by clear_storage. Formatting fix.
32523
32524 * config/i386/i386.md (*movqi_internal): Remove static from
32525 buf variable. Use output_asm_insn (buf, operands); return "";
32526 instead of return buf;.
32527 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32528 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32529 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32530
32531 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32532
32533 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32534 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32535 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32536 (CC1_SPEC): Likewise.
32537 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32538
32539 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32540
32541 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32542 the base address on 64-bit strict-alignment platforms.
32543
32544 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32545
32546 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32547
32548 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32549
32550 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32551
32552 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32553
32554 PR rtl-optimization/88308
32555 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32556 on copied instruction.
32557
32558 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32559
32560 * final.c (insn_current_reference_address): Replace test on JUMP_P
32561 with test on jump_to_label_p.
32562 * config/visium/visium-passes.def: New file.
32563 * config/visium/t-visium (PASSES_EXTRA): Define.
32564 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32565 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32566 (TRAMPOLINE_ALIGNMENT): Define.
32567 * config/visium/visium.c (visium_option_override): Do not register
32568 the machine-specific reorg pass here.
32569 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32570 for the GR6.
32571 (output_branch): Adjust threshold for long branch instruction.
32572 * config/visium/visium.md (cpu): Move around.
32573 (length): Adjust for the GR6.
32574
32575 2019-02-15 Richard Biener <rguenther@suse.de>
32576 Jakub Jelinek <jakub@redhat.com>
32577
32578 PR tree-optimization/89278
32579 * tree-loop-distribution.c: Include tree-eh.h.
32580 (generate_memset_builtin, generate_memcpy_builtin): Call
32581 rewrite_to_non_trapping_overflow on builtin->size before passing it
32582 to force_gimple_operand_gsi.
32583
32584 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32585
32586 PR other/89342
32587 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32588 optimize_debug.
32589 * opth-gen.awk: Likewise.
32590
32591 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32592
32593 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32594 Enable MMX, SSE and SSE2 by default.
32595 * config/i386/i386.c (ix86_option_override_internal): Do not
32596 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32597
32598 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32599
32600 PR rtl-optimization/89354
32601 * combine.c (make_extraction): Punt if extraction_mode is narrower
32602 than len bits.
32603
32604 2019-02-14 Maya Rashish <coypu@sdf.org>
32605
32606 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32607 * config/netbsd-d.c: New file.
32608 * config/t-netbsd: Add netbsd-d.o
32609
32610 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32611
32612 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32613 affects_type_identity to true for aarch64_vector_pcs.
32614 (aarch64_comp_type_attributes): New function.
32615 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32616
32617 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32618
32619 PR target/88850
32620 * config/arm/iterators.md (ANY64): Add V4HF.
32621
32622 2019-02-14 Martin Liska <mliska@suse.cz>
32623
32624 PR rtl-optimization/89242
32625 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32626 process a transformation.
32627
32628 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32629
32630 PR tree-optimization/89314
32631 * fold-const.c (fold_binary_loc): Cast strlen argument to
32632 const char * before dereferencing it. Formatting fixes.
32633
32634 PR middle-end/89284
32635 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32636
32637 2019-02-13 Ian Lance Taylor <iant@golang.org>
32638
32639 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32640 and set current index for other optimizations.
32641
32642 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32643
32644 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32645 nonimmediate_operand as operand 2 predicate.
32646 (vec_set<VF2_512_256:mode>_0): Ditto.
32647 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32648 (*vec_concatv2si): Remove alternative 2.
32649 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32650 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32651 (vec_concatv2di): Split alternatives 4,5,6 to ...
32652 (*vec_concatv2di_0) ... new pattern.
32653
32654 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32655
32656 PR target/89190
32657 * config/arm/arm.c (ldm_stm_operation_p) Set
32658 addr_reg_in_reglist correctly for first register.
32659 (load_multiple_sequence): Remove dead base check.
32660 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32661
32662 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32663
32664 PR target/88847
32665 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32666 Expose as @aarch64_pred_mov.
32667 * config/aarch64/aarch64.c (aarch64_classify_address):
32668 Use expand_insn which legitimizes operands.
32669
32670 2019-02-13 Martin Liska <mliska@suse.cz>
32671
32672 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32673 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32674 and pointer_offset fields.
32675 (initialize_argument_information): Remove usage of dead
32676 fields.
32677 * cgraph.h (struct cgraph_thunk_info): Remove
32678 add_pointer_bounds_args.
32679 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32680 fields.
32681 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32682 fields.
32683 * config/i386/i386.c (ix86_function_arg_advance): Remove
32684 unrelated comment.
32685 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32686 (def_builtin): Remove usage of dead fields.
32687 (ix86_add_new_builtins): Likewise.
32688 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32689 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32690 (sem_function::init): Likewise.
32691 (sem_variable::merge): Likewise.
32692 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32693 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32694 * lto-cgraph.c (lto_output_node): Likewise.
32695 (lto_output_varpool_node): Likewise.
32696 (input_node): Likewise.
32697 (input_varpool_node): Likewise.
32698 * lto-streamer-out.c (lto_output): Likewise.
32699 * tree-inline.c (expand_call_inline): Remove usage of
32700 assign_stmts.
32701 * tree-inline.h (struct copy_body_data): Likewise.
32702 * varpool.c (varpool_node::dump): Likewise.
32703
32704 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32705
32706 PR middle-end/89303
32707 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32708 into pt->vars_contains_escaped_heap instead of setting
32709 pt->vars_contains_escaped_heap to it.
32710
32711 PR middle-end/89281
32712 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32713 INTVAL (size), compare it to GET_MODE_MASK instead of
32714 1 << GET_MODE_BITSIZE.
32715
32716 PR target/89290
32717 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32718 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32719 -mcmodel=large.
32720
32721 2019-02-13 Martin Liska <mliska@suse.cz>
32722
32723 PR lto/88858
32724 * cfgrtl.c (remove_barriers_from_footer): New function.
32725 (try_redirect_by_replacing_jump): Use it.
32726 (cfg_layout_redirect_edge_and_branch): Likewise.
32727
32728 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32729
32730 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32731 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32732 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32733 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32734 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32735 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32736 New BU_CRYPTO_2.
32737 * config/rs6000/rs6000.c (builtin_function_type)
32738 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32739 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32740 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32741 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32742 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32743
32744 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32745
32746 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32747 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32748
32749 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32750
32751 PR target/89229
32752 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32753 268678 and revision 268657.
32754 (*movti_internal): Likewise.
32755
32756 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32757
32758 PR target/89233
32759 * config/s390/s390.c (s390_decompose_address): Update comment.
32760 (s390_check_qrst_address): Reject invalid address forms after
32761 LRA.
32762
32763 2019-02-12 Martin Liska <mliska@suse.cz>
32764
32765 PR lto/88876
32766 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32767 we need default values of funct_state for a function that
32768 is not optimized.
32769
32770 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32771
32772 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32773 the object to pick the size of stores on strict-alignment platforms.
32774
32775 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32776 (*movdi_insn_sp32): Likewise.
32777 (*movdi_insn_sp64): Likewise.
32778
32779 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32780
32781 PR lto/88677
32782 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32783 types that needs constructiong.
32784 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32785
32786 2019-02-12 Richard Biener <rguenther@suse.de>
32787
32788 PR tree-optimization/89253
32789 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32790 duplicate the loop.
32791
32792 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32793
32794 PR lto/88147
32795 * input.c (selftest::test_line_offset_overflow): New selftest.
32796 (selftest::input_c_tests): Call it.
32797
32798 2019-02-11 Martin Sebor <msebor@redhat.com>
32799
32800 PR tree-optimization/88771
32801 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32802 when -Wstringop-overflow is set.
32803 (builtin_memref::builtin_memref): Adjust excessive upper bound
32804 only when lower bound is not excessive.
32805 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32806 -Wstringop-ovefflow.
32807 (maybe_diag_offset_bounds): Rename...
32808 (maybe_diag_access_bounds): ...to this.
32809 (check_bounds_or_overlap): Adjust for name change above.
32810
32811 2019-02-11 Martin Sebor <msebor@redhat.com>
32812
32813 PR c++/87996
32814 * builtins.c (max_object_size): Move from here...
32815 * builtins.h (max_object_size): ...and here...
32816 * tree.c (max_object_size): ...to here...
32817 * tree.h (max_object_size): ...and here.
32818
32819 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32820
32821 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32822 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32823 for correct semantics.
32824
32825 2019-02-11 Alan Modra <amodra@gmail.com>
32826
32827 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32828 -mlongcall and -mpltseq.
32829 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32830 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32831 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32832 * config/rs6000/sysv4.opt (mpltseq): New option.
32833 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32834 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32835 support is lacking. Don't allow -mpltseq with -mbss-plt.
32836 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32837 -mpltseq given for ELFv1.
32838 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32839 Only use UNSPEC_PLTSEQ for inline PLT calls.
32840 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32841 use UNSPEC_PLTSEQ for inline PLT calls.
32842 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32843 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32844 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32845 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32846 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32847 (pltseq_mtctr_<mode>): Likewise.
32848
32849 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32850
32851 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32852 Solaris ld.
32853 * configure: Regenerate.
32854
32855 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32856
32857 PR bootstrap/88714
32858 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32859 instead of r.
32860
32861 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32862
32863 * function.c (assign_parm_setup_block): Use the stored
32864 size, not the passed size, when allocating stack-space,
32865 also for a parameter with alignment larger than
32866 MAX_SUPPORTED_STACK_ALIGNMENT.
32867
32868 2019-02-11 Martin Liska <mliska@suse.cz>
32869
32870 PR ipa/89009
32871 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32872 * ipa-inline.c (inline_small_functions): Likewise.
32873 * ipa-pure-const.c (propagate_pure_const): Likewise.
32874 (propagate_nothrow): Likewise.
32875 * ipa-reference.c (propagate): Likewise.
32876 * ipa-utils.c (struct searchc_env): Remove unused field.
32877 (searchc): Always search across AVAIL_INTERPOSABLE.
32878 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32879 the only called IPA pure const can properly not propagate
32880 across interposable boundary.
32881 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32882
32883 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32884
32885 * config/nds32/nds32.md (call_internal, call_value_internal,
32886 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32887
32888 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32889
32890 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32891 typo.
32892
32893 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32894
32895 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32896 in comments
32897
32898 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32899
32900 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32901
32902 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32903
32904 PR tree-optimization/89268
32905 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32906 if preds is non-NULL.
32907
32908 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32909
32910 PR lto/89272
32911 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32912 polymorphic types.
32913
32914 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32915
32916 * config/nds32/nds32.md (trap): New pattern.
32917
32918 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32919
32920 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32921 dwarf span.
32922
32923 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32924
32925 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32926 to split POST_INC.
32927
32928 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32929
32930 * ipa-visibility.c (localize_node): Also do not localize
32931 LDPR_PREVAILING_DEF_IRONLY_EXP.
32932
32933 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32934
32935 PR lto/87957
32936 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32937 instead of type_with_linkage.
32938
32939 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32940
32941 PR ipa/88755
32942 * params.def (uninlined-function-insns, uninlined-function-time,
32943 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32944 bound so we don't get overflows.
32945
32946 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32947
32948 * config/rs6000/rs6000-string.c (expand_compare_loop,
32949 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32950 memcmp/strncmp.
32951
32952 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32953
32954 PR middle-end/89246
32955 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32956 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32957 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32958
32959 2019-02-09 Alan Modra <amodra@gmail.com>
32960
32961 PR target/88343
32962 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32963 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32964 setup.
32965
32966 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32967
32968 PR middle-end/88560
32969 * lra-constraints.c (process_alt_operands): Don't increase reject
32970 for memory when offset memory is required.
32971
32972 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32973
32974 * config/s390/vector.md: Implement vector copysign.
32975
32976 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32977
32978 * expr.c (expand_constructor): Correct indentations.
32979
32980 2019-02-08 Richard Biener <rguenther@suse.de>
32981
32982 PR tree-optimization/89247
32983 * tree-if-conv.c: Include tree-cfgcleanup.h.
32984 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32985 (tree_if_conversion): Pass through predicate vector.
32986 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32987 inline, see if any if-converted loops we refrece in
32988 LOOP_VECTORIZED calls vanished and fixup.
32989 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32990
32991 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32992
32993 * config/s390/constraints.md (jdd): New constraint.
32994
32995 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32996
32997 PR target/89229
32998 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32999 upper 16 vector registers without TARGET_AVX512VL.
33000 (*movti_internal): Likewise.
33001
33002 2019-02-08 Jakub Jelinek <jakub@redhat.com>
33003
33004 PR rtl-optimization/89234
33005 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
33006 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
33007 (copy_reg_eh_region_note_backward): Likewise.
33008
33009 2019-02-08 Richard Biener <rguenther@suse.de>
33010
33011 PR middle-end/89223
33012 * tree-data-ref.c (initialize_matrix_A): Fail if constant
33013 doesn't fit in HWI.
33014 (analyze_subscript_affine_affine): Handle failure from
33015 initialize_matrix_A.
33016
33017 2019-02-08 Jakub Jelinek <jakub@redhat.com>
33018
33019 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
33020 cfun everywhere.
33021
33022 2019-02-07 David Malcolm <dmalcolm@redhat.com>
33023
33024 PR tree-optimization/86637
33025 PR tree-optimization/89235
33026 * tree-vect-loop.c (optimize_mask_stores): Add an
33027 auto_purge_vect_location sentinel to ensure that vect_location is
33028 purged on exit.
33029 * tree-vectorizer.c
33030 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
33031 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
33032 to ensure that vect_location is purged on exit.
33033 (pass_slp_vectorize::execute): Likewise, replacing the manual
33034 reset.
33035 * tree-vectorizer.h (class auto_purge_vect_location): New class.
33036
33037 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33038
33039 * config/aarch64/iterators.md (max_opp): New code_attr.
33040 (USMAX): New code iterator.
33041 * config/aarch64/predicates.md (aarch64_smin): New predicate.
33042 (aarch64_smax): Likewise.
33043 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
33044 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
33045 MINUS (MAX MIN).
33046
33047 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
33048
33049 PR target/89229
33050 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
33051 for TARGET_AVX512VL.
33052 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
33053
33054 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
33055
33056 * config/s390/s390-builtin-types.def: Add new types.
33057 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
33058 (s390_vec_xlw4): Make the memory operand into a const pointer.
33059 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
33060 float.
33061 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
33062 a new vector type with the alignment of the scalar memory operand.
33063
33064 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
33065 Jakub Jelinek <jakub@redhat.com>
33066
33067 PR bootstrap/88714
33068 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
33069 arm_count_ldrdstrd_insns): New declarations.
33070 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
33071 MINUS.
33072 (valid_operands_ldrd_strd): New function.
33073 (arm_count_ldrdstrd_insns): New function.
33074 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
33075 sets instead of single DImode set and define new insns to match this.
33076
33077 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33078
33079 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
33080 Make it a C initializer.
33081
33082 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33083
33084 PR/target 88850
33085 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
33086
33087 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33088
33089 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
33090 Use neon_dot<q> for type.
33091 (neon_<sup>dot_lane<vsi2qi>): Likewise.
33092
33093 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33094
33095 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
33096 Use neon_dot<q> for type.
33097 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
33098 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
33099
33100 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
33101
33102 PR rtl-optimization/89225
33103 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
33104 sizes check.
33105
33106 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
33107
33108 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
33109 after restoring registers saved to allocate the frame on Windows.
33110
33111 2019-02-06 Richard Biener <rguenther@suse.de>
33112
33113 PR tree-optimization/89182
33114 * graphite.h (cached_scalar_evolution_in_region): Declare.
33115 * graphite.c (struct seir_cache_key): New.
33116 (struct sese_scev_hash): Likewise.
33117 (seir_cache): New global.
33118 (cached_scalar_evolution_in_region): New function.
33119 (graphite_transform_loops): Allocate and release seir_cache.
33120 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
33121 cached_scalar_evolution_in_region.
33122 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33123 Simplify.
33124 (scop_detection::graphite_can_represent_expr: Use
33125 cached_scalar_evolution_in_region.
33126 (scop_detection::stmt_simple_for_scop_p): Likewise.
33127 (find_params_in_bb): Likewise.
33128 (gather_bbs::before_dom_children): Likewise.
33129 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
33130 (add_loop_constraints): Likewise.
33131
33132 2019-02-06 Jakub Jelinek <jakub@redhat.com>
33133
33134 PR middle-end/89210
33135 * fold-const-call.c (fold_const_vec_convert): Pass true as last
33136 operand to new_unary_operation only if both element types are integral
33137 and it isn't a widening conversion. Return NULL_TREE if
33138 new_unary_operation failed.
33139
33140 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
33141
33142 PR target/88856
33143 * config/s390/s390.md: Remove load and test FP splitter.
33144
33145 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33146
33147 PR target/89112
33148 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
33149 expand_compare_loop, expand_block_compare_gpr,
33150 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
33151 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
33152 #include "profile-count.h" and "predict.h" for types and functions
33153 needed to work with REG_BR_PROB notes.
33154
33155 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33156
33157 PR target/89112
33158 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
33159 for the long branch case.
33160
33161 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33162
33163 PR target/89188
33164 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
33165 can throw, non-call exceptions are enabled and we can't delete
33166 dead exceptions or alter cfg. Set must_clean if
33167 delete_insn_and_edges returns true, don't set it blindly for calls.
33168 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
33169
33170 PR rtl-optimization/89195
33171 * combine.c (make_extraction): For MEMs, don't extract bytes outside
33172 of the original MEM.
33173
33174 2019-02-05 Martin Liska <mliska@suse.cz>
33175
33176 PR gcov-profile/89000
33177 * gcov.c (function_summary): Remove argument.
33178 (file_summary): New function.
33179 (print_usage): Replace tabs with spaces.
33180 (generate_results): Use new function file_summary.
33181
33182 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33183
33184 PR target/89186
33185 * optabs.c (prepare_cmp_insn): Pass x and y to
33186 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
33187
33188 2019-02-05 Richard Biener <rguenther@suse.de>
33189
33190 PR middle-end/89150
33191 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
33192 (struct bitmap_element): Drop chain_prev so we properly recurse on
33193 the prev member, supporting tree views.
33194 (struct bitmap_head): GTY skip the obstack member.
33195
33196 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
33197
33198 PR c/88698
33199 * doc/extend.texi (Vector Extensions): Add an example of using vector
33200 types together with x86 intrinsics.
33201
33202 2019-02-04 Alan Modra <amodra@gmail.com>
33203
33204 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
33205 str[] size to 160, and comment.
33206
33207 2019-02-04 Alan Modra <amodra@gmail.com>
33208
33209 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
33210 (rs6000_pltseq_template): Guard output of TLS markers with
33211 TARGET_TLS_MARKERS.
33212 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
33213 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
33214 to use inline PLT sequences.
33215 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33216 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33217 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
33218
33219 2019-02-04 Martin Liska <mliska@suse.cz>
33220
33221 PR ipa/88985
33222 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
33223 out when ipa_fn_summaries does not contain entry for callee.
33224
33225 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
33226
33227 * config/sparc/sparc.h: Remove superfluous blank lines.
33228 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
33229 (got_register_rtx): ...this.
33230 (sparc_got): Adjust to above renaming.
33231 (sparc_tls_got): Likewise.
33232 (sparc_delegitimize_address): Likewise.
33233 (sparc_output_mi_thunk): Likewise.
33234 (sparc_init_pic_reg): Likewise.
33235 (save_local_or_in_reg_p): Fix test on the GOT register.
33236 (USE_HIDDEN_LINKONCE): Move around.
33237 (get_pc_thunk_name): Likewise.
33238 (gen_load_pcrel_sym): Likewise.
33239 (load_got_register): Likewise.
33240
33241 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
33242
33243 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
33244 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
33245
33246 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33247
33248 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
33249 into consideration.
33250
33251 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33252
33253 * config.gcc (with_nds32_lib, glibc):
33254 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
33255 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
33256 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
33257
33258 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
33259
33260 PR target/89071
33261 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
33262 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
33263 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
33264 (*rcpsf2_sse): Ditto.
33265 (*rsqrtsf2_sse): Ditto.
33266 (sse4_1_round<mode<2): Ditto.
33267
33268 2019-02-03 Richard Biener <rguenther@suse.de>
33269
33270 PR debug/87295
33271 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
33272 orig.
33273
33274 2019-02-02 Jakub Jelinek <jakub@redhat.com>
33275
33276 PR middle-end/87887
33277 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33278 Punt with warning on aggregate return or argument types. Ignore
33279 type/mode checking for uniform arguments.
33280
33281 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
33282
33283 * combine.c (try_combine): Do not print "Can't combine" messages unless
33284 printing failed combination attempts.
33285
33286 2019-02-01 Martin Jambor <mjambor@suse.cz>
33287
33288 PR hsa/87863
33289 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
33290 segment and global segment variables before making them static.
33291
33292 2019-02-01 Martin Jambor <mjambor@suse.cz>
33293
33294 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
33295 missed optimization dump with dump_enabled_p.
33296
33297 2019-02-01 Richard Biener <rguenther@suse.de>
33298
33299 PR middle-end/88597
33300 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
33301 the instantiate cache.
33302 (instantiate_scev_binary): Elide second operand procesing
33303 if equal to the first.
33304 * tree-chrec.c (chrec_contains_symbols): Add visited set.
33305 (chrec_contains_undetermined): Likewise.
33306 (tree_contains_chrecs): Likewise.
33307
33308 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
33309
33310 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
33311
33312 2019-02-01 Jakub Jelinek <jakub@redhat.com>
33313
33314 PR tree-optimization/89143
33315 * wide-int-range.h (wide_int_range_absu): Declare.
33316 * wide-int-range.cc (wide_int_range_absu): New function.
33317 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
33318
33319 PR tree-optimization/88107
33320 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
33321 instead of assertion that eh_region_outermost is non-NULL, if it
33322 is NULL, set *ALL to true and return NULL.
33323 (move_sese_region_to_fn): Adjust caller, if all is set, call
33324 duplicate_eh_regions with NULL region.
33325
33326 2019-02-01 Richard Biener <rguenth@suse.de>
33327
33328 PR rtl-optimization/88593
33329 * mode-switching.c (optimize_mode_switching): Free dominators before
33330 calling cleanup_cfg.
33331
33332 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
33333
33334 PR tree-optimization/88932
33335 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
33336
33337 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33338
33339 PR middle-end/89137
33340 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
33341 bogus clang warning.
33342
33343 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
33344
33345 PR target/89071
33346 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
33347 alternative to avoid partial SSE register stall for TARGET_AVX.
33348 (truncdfsf2): Ditto.
33349 (sse4_1_round<mode>2): Ditto.
33350
33351 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
33352
33353 PR tree-optimization/89008
33354 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
33355 process anything of the form X * 0.
33356
33357 2019-01-31 Richard Biener <rguenther@suse.de>
33358
33359 PR tree-optimization/89135
33360 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
33361 with abnormal preds.
33362
33363 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33364
33365 PR sanitizer/89124
33366 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
33367 always_inline callees into no_sanitize_address callers.
33368
33369 2019-01-31 Richard Biener <rguenther@suse.de>
33370
33371 PR rtl-optimization/89115
33372 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
33373
33374 2019-01-30 Martin Sebor <msebor@redhat.com>
33375
33376 PR other/89106
33377 * doc/extend.texi (cast to a union): Correct and expand.
33378
33379 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
33380
33381 PR rtl-optimization/87246
33382 * lra-constraints.c (simplify_operand_subreg): Reload memory
33383 in subreg if the address became invalid.
33384
33385 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
33386
33387 PR target/87064
33388 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
33389 Disable for little-endian.
33390
33391 2019-01-30 Richard Biener <rguenther@suse.de>
33392
33393 PR rtl-optimization/89115
33394 * opts.c (default_options_optimization): Reduce
33395 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
33396 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
33397 to the default.
33398
33399 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
33400
33401 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
33402 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
33403 type of vector element when vec_extract is implemented by direct
33404 move.
33405
33406 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
33407
33408 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
33409
33410 2019-01-30 Richard Biener <rguenther@suse.de>
33411
33412 PR tree-optimization/89111
33413 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
33414 canonicalization to appropriately sized access types.
33415
33416 2019-01-30 Jakub Jelinek <jakub@redhat.com>
33417
33418 PR c++/89105
33419 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
33420 for arguments to functions that are TU-local and shouldn't be
33421 referenced by assembly.
33422
33423 2019-01-30 Ulrich Drepper <drepper@redhat.com>
33424
33425 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
33426 after '='.
33427
33428 2019-01-29 Martin Sebor <msebor@redhat.com>
33429
33430 PR c/88956
33431 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
33432
33433 2019-01-29 Jakub Jelinek <jakub@redhat.com>
33434
33435 PR c++/66676
33436 PR ipa/89104
33437 * omp-simd-clone.c (simd_clone_clauses_extract)
33438 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
33439 OMP_CLAUSE_ALIGNED_ALIGNMENT.
33440
33441 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
33442
33443 * config.gcc: Force .init_array for ARC.
33444
33445 2019-01-29 Richard Biener <rguenther@suse.de>
33446
33447 PR debug/87295
33448 * dwarf2out.c (collect_skeleton_dies): New helper.
33449 (copy_decls_for_unworthy_types): Call it.
33450 (build_abbrev_table): Assert we do not try to replace
33451 DW_AT_signature refs with local refs.
33452
33453 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33454
33455 PR middle-end/89002
33456 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33457 for lastprivate/linear IV, push gimplify context around gimplify_assign
33458 and, if it needed any temporaries, pop it into a gimple bind around the
33459 sequence.
33460
33461 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33462
33463 * common.opt (-Wattribute-alias): Remove "no-" from name.
33464 Make -Wattribute-alias command line option and
33465 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33466
33467 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33468
33469 PR target/89073
33470 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33471 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33472 x86 ISA options.
33473 (bmi2): Add missing @opindex.
33474 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33475 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
33476 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33477 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33478 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33479 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33480 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33481 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33482 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33483 xsavec, xsaveopt and xsaves options.
33484
33485 2019-01-28 Richard Biener <rguenther@suse.de>
33486
33487 PR debug/89076
33488 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33489 support removal.
33490
33491 2019-01-28 Richard Biener <rguenther@suse.de>
33492
33493 PR tree-optimization/88739
33494 * tree-cfg.c (verify_types_in_gimple_reference): Verify
33495 BIT_FIELD_REFs only are applied to mode-precision operands
33496 when they are integral.
33497 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33498 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33499 BIT_FIELD_REFs of non-mode-precision integral operands.
33500
33501 2019-01-27 Jakub Jelinek <jakub@redhat.com>
33502
33503 PR target/87214
33504 * config/i386/sse.md
33505 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33506 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33507 first constants in pairs are multiples of 2. Formatting fixes.
33508 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33509 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33510 first constants in each quadruple are multiples of 4. Formatting fixes.
33511
33512 2019-01-26 Martin Jambor <mjambor@suse.cz>
33513
33514 PR ipa/88933
33515 * tree-inline.c: Include tree-cfgcleanup.h.
33516 (delete_unreachable_blocks_update_callgraph): Move...
33517 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33518 ...here, make externally visible, make second argument bool, adjust
33519 all callers.
33520 * tree-cfgcleanup.c: Include cgraph.h.
33521 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33522 Declare.
33523 * ipa-prop.c: Include tree-cfgcleanup.h.
33524 (ipcp_transform_function): Call
33525 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33526
33527 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33528
33529 PR rtl-optimization/88846
33530 * ira.c (process_set_for_memref_referenced_p): New.
33531 (memref_referenced_p): Add new param. Use
33532 process_set_for_memref_referenced_p. Add new switch cases.
33533 (memref_used_between_p): Pass new arg to memref_referenced_p.
33534
33535 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33536
33537 PR target/88469
33538 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33539 argument ABI_BREAK. Set to true if the calculated alignment has
33540 changed in gcc-9. Check bit-fields for their base type alignment.
33541 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33542 (aarch64_function_arg_boundary): Likewise.
33543 (aarch64_gimplify_va_arg_expr): Likewise.
33544
33545 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33546
33547 PR middle-end/89037
33548 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33549 instead of accessing TREE_INT_CST_ELT directly.
33550
33551 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33552
33553 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33554 fenv_exceptions description.
33555
33556 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33557
33558 PR rtl-optimization/87763
33559 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33560 Allow SUBREG when matching CC_NZmode compare.
33561
33562 2019-01-25 Richard Biener <rguenther@suse.de>
33563
33564 PR tree-optimization/89049
33565 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33566 Look at the pattern stmt to determine if the stmt is vectorized.
33567
33568 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33569
33570 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33571 (pred_mov<mode>): Handle all-register forms using both a new
33572 alternative and a split.
33573
33574 2019-01-25 Richard Biener <rguenther@suse.de>
33575
33576 PR tree-optimization/86865
33577 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33578 Reject non-do-while loops.
33579
33580 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33581
33582 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33583 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33584 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33585 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33586 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33587 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33588 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33589 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33590 vlogical_operand, gpc_reg_operand, int_reg_operand,
33591 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33592 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33593 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33594 (save_world_operation, restore_world_operation, lmw_operation,
33595 stmw_operation): Use MEM_P and REG_P.
33596 (tie_operand): Use MEM_P.
33597 (vrsave_operation, crsave_operation): Use REG_P.
33598 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33599 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33600 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33601 (call_operand): Use HARD_REGISTER_P.
33602 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33603 Use CONST_INT_P.
33604 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33605 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33606 quad_aligned_load_p, replace_swapped_aligned_store,
33607 recombine_lvx_pattern, replace_swapped_aligned_load,
33608 recombine_stvx_pattern): Use MEM_P.
33609 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33610 Use MEM_P and SYMBOL_REF_P.
33611 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33612 (insn_is_swappable_p): Use REG_P and MEM_P.
33613 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33614 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33615 Use CONST_INT_P.
33616 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33617 Use CONST_DOUBLE_P.
33618 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33619 CONST_WIDE_INT_P.
33620 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33621 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33622 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33623 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33624 reg_or_subregno:
33625 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33626 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33627 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33628 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33629 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33630 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33631 rs6000_split_logical_di): Use CONST_INT_P.
33632 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33633 REG_P and SYMBOL_REF_P.
33634 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33635 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33636 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33637 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33638 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33639 (small_data_operand, print_operand_address): Use CONST_INT_P and
33640 SYMBOL_REF_P.
33641 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33642 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33643 Use HARD_REGISTER_NUM_P.
33644 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33645 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33646 SUBREG_P and SYMBOL_REF_P.
33647 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33648 and HARD_REGISTER_NUM_P.
33649 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33650 reg_or_subregno.
33651 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33652 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33653 MEM_P and REG_P.
33654 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33655 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33656 find_addr_reg): Use REG_P.
33657 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33658 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33659 (offsettable_ok_by_alignment, constant_pool_expr_p,
33660 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33661 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33662 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33663 rs6000_assemble_integer, create_TOC_reference,
33664 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33665 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33666 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33667 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33668 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33669 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33670 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33671 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33672 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33673 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33674 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33675 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33676 and cbranch<mode>4): Use CONST_INT_P.
33677 (multiple define_splits): Use REG_P and SUBREG_P.
33678 (define_expands call, call_value): Use MEM_P.
33679 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33680 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33681 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33682 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33683 and HARD_REGISTER_NUM_P.
33684 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33685
33686 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33687
33688 PR rtl-optimization/88948
33689 * rtl.h (prepare_copy_insn): New prototype.
33690 * gcse.c (prepare_copy_insn): New function, split out from
33691 process_insert_insn.
33692 (process_insert_insn): Use prepare_copy_insn.
33693 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33694 instead of gen_move_insn.
33695
33696 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33697
33698 PR debug/89006
33699 * config/i386/i386.c (ix86_pic_register_p): Return true for
33700 UNSPEC_SET_GOT too.
33701
33702 PR tree-optimization/88964
33703 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33704 punt if HONOR_SNANS (chrec).
33705
33706 PR middle-end/89015
33707 * tree-nested.c (convert_nonlocal_reference_stmt,
33708 convert_local_reference_stmt, convert_tramp_reference_stmt,
33709 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33710 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33711 or GIMPLE_OMP_TASK.
33712
33713 PR tree-optimization/89027
33714 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33715 for "omp simd array" variables.
33716
33717 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33718
33719 PR target/88469
33720 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33721 force the alignment of m_val.
33722
33723 2019-01-24 Richard Biener <rguenther@suse.de>
33724
33725 PR lto/87187
33726 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33727 When in "legacy" debug mode make sure to reset self-origins.
33728
33729 2019-01-24 Martin Liska <mliska@suse.cz>
33730
33731 PR gcov-profile/88994
33732 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33733 result will be always smaller or equal to the original.
33734 * gcov.c (mangle_name): Fix else branch where we should
33735 also copy to PTR and shift the pointer.
33736
33737 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33738
33739 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33740 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33741
33742 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33743
33744 * common/config/i386/i386-common.c
33745 (OPTION_MASK_ISA_ENQCMD_SET,
33746 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33747 (ix86_handle_option): Handle -menqcmd.
33748 * config.gcc (enqcmdintrin.h): New header file.
33749 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33750 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33751 -menqcmd.
33752 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33753 function type.
33754 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33755 __builtin_ia32_enqcmds): New builtins.
33756 * config/i386/i386-c.c (__ENQCMD__): New macro.
33757 * config/i386/i386-option.c (ix86_target_string): Add
33758 -menqcmd.
33759 (ix86_valid_target_attribute_inner_p): Likewise.
33760 * config/i386/i386-expand.c
33761 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33762 IX86_BUILTIN_ENQCMDS.
33763 * config/i386/i386.h (TARGET_ENQCMD): New.
33764 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33765 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33766 (movdir64b_<mode>): Parameterize to enable share expansion code
33767 with ENQCMD in function ix86_expand_builtin.
33768 * config/i386/i386.opt: Add -menqcmd.
33769 * config/i386/immintrin.h: Include enqcmdintrin.h.
33770 * config/i386/enqcmdintrin.h: New intrinsic file.
33771 * doc/invoke.texi: Add -menqcmd.
33772
33773 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33774 Steve Ellcey <sellcey@marvell.com>
33775
33776 PR target/85711
33777 * recog.c (address_operand): Return false on wrong mode for address.
33778 (constrain_operands): Check for mode with 'p' constraint.
33779
33780 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33781
33782 PR target/88998
33783 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33784 Disparage MMX alternative.
33785 (sse2_cvtpd2pi): Ditto.
33786 (sse2_cvttpd2pi): Ditto.
33787
33788 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33789
33790 PR driver/89014
33791 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33792 use-after-free of the result of
33793 aarch64_get_extension_string_for_isa_flags.
33794
33795 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33796
33797 PR c/44715
33798 * doc/extend.texi: Document break and continue behavior in
33799 statement expressions.
33800
33801 2019-01-23 Richard Biener <rguenther@suse.de>
33802
33803 PR tree-optimization/89008
33804 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33805 not leave another stray operand.
33806
33807 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33808
33809 * BASE-VER: Bump to 9.0.1.
33810
33811 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33812
33813 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33814 thunk that returns by reference, use the type of the return object
33815 of the thunk instead of that of the alias to build the dereference.
33816
33817 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33818
33819 * config/arc/atomic.md: Add operand to DMB instruction.
33820
33821 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33822
33823 PR tree-optimization/88964
33824 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33825 build_zero_cst instead of build_int_cst. Return false for loop
33826 invariants which honor signed zeros.
33827
33828 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33829
33830 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33831
33832 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33833
33834 PR target/88965
33835 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33836 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33837 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33838
33839 PR middle-end/88968
33840 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33841 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33842
33843 PR target/87064
33844 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33845 Disable for little endian.
33846
33847 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33848
33849 PR target/88469
33850 * config/arm/arm.c (arm_needs_double_word_align): Check
33851 DECL_BIT_FIELD_TYPE.
33852
33853 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33854 H.J. Lu <hongjiu.lu@intel.com>
33855
33856 PR target/88909
33857 * config/i386/i386-builtin.def: Add mask2 to all builtin
33858 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33859 SPECIAL_ARGS.
33860 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33861 (BDESC_FIRST): Likewise.
33862 (define_builtin): Add an argument for mask2. Updated to handle
33863 both ix86_isa_flags and ix86_isa_flags2.
33864 (define_builtin_const): Likewise.
33865 (define_builtin_pure): Likewise.
33866 (define_builtin2): Deleted.
33867 (define_builtin_const2): Likewise.
33868 (builtin_description): Add a member, mask2.
33869 (bdesc_*): Add mask2 to builtin initializations.
33870 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33871 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33872 support.
33873 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33874
33875 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33876
33877 PR target/88954
33878 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33879 noplt attribute.
33880
33881 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33882
33883 PR target/88469
33884 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33885 alignment is dominated by a bitfield with 64-bit aligned base type.
33886 (arm_function_arg): Emit a warning if the alignment has changed since
33887 earlier GCC releases.
33888 (arm_function_arg_boundary): Likewise.
33889 (arm_setup_incoming_varargs): Likewise.
33890
33891 2019-01-22 Richard Biener <rguenther@suse.de>
33892
33893 PR tree-optimization/88862
33894 * graphite-scop-detection.c
33895 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33896
33897 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33898
33899 * doc/extend.tex (AMD GCN Function Attributes): New section.
33900 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33901 * doc/invoke.texi (AMD GCN Options): New section.
33902 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33903
33904 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33905
33906 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33907 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33908
33909 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33910
33911 PR tree-optimization/88044
33912 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33913 is false in the first iteration, but !every_iteration, return false
33914 instead of true with niter->niter zero.
33915
33916 PR rtl-optimization/88904
33917 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33918 any nonequal registers before processing BB_END (b).
33919
33920 PR target/88905
33921 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33922 GET_MODE (op0).
33923 (expand_binop_directly, expand_doubleword_clz,
33924 expand_doubleword_popcount, expand_ctz, expand_ffs,
33925 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33926
33927 PR rtl-optimization/49429
33928 PR target/49454
33929 PR rtl-optimization/86334
33930 PR target/88906
33931 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33932 addressable from here...
33933 (emit_block_op_via_libcall): ... to here.
33934
33935 2019-01-22 Richard Biener <rguenther@suse.de>
33936
33937 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33938 auto_vec for cost vector to fix memleak.
33939 (vectorize_fold_left_reduction): Properly gather SLP defs.
33940 (vectorizable_comparison): Do not swap operands to properly
33941 gather SLP defs.
33942
33943 2019-01-22 Alan Modra <amodra@gmail.com>
33944
33945 PR target/88614
33946 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33947 stays a reg. Allow a const_int.
33948 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33949 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33950 (IS_NOMARK_TLSGETADDR): Define.
33951 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33952 (rs6000_output_tlsargs): New function.
33953 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33954 __tls_get_addr call takes an arg.
33955 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33956 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33957 delete split..
33958 (call_value_nonlocal_sysv): ..or here, delete split.
33959 (tls_gdld_nomark): Delete.
33960 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33961 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33962 (call_value_nonlocal_sysv): Likewise.
33963 (call_value_nonlocal_sysv_secure): Likewise.
33964 (call_value_nonlocal_aix): Likewise.
33965 (call_value_indirect_aix): Likewise.
33966 (call_value_indirect_elfv2): Likewise.
33967 (call_value_local32, call_value_local64): Disable for no-mark tls.
33968 (call_value_local_aix): Likewise.
33969
33970 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33971
33972 PR target/88938
33973 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33974 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33975
33976 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33977
33978 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33979 string contents as hash_map keys.
33980
33981 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33982
33983 PR c/88928
33984 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33985 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33986 instead of TYPE_ALIGN.
33987 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33988 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33989 pointer from TYPE_STUB_DECL.
33990
33991 2019-01-21 Richard Biener <rguenther@suse.de>
33992
33993 PR tree-optimization/88934
33994 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33995 at the possibly non-constant operand.
33996 (vect_get_constant_vectors): Adjust.
33997
33998 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33999
34000 PR target/71659
34001 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
34002 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
34003 instead of _X86INTRIN_H_INCLUDED.
34004 * onfig/i386/clwbintrin.h: Likewise.
34005 * config/i386/pkuintrin.h: Likewise.
34006 * config/i386/prfchwintrin.h: Likewise.
34007 * config/i386/rdseedintrin.h: Likewise.
34008 * config/i386/wbnoinvdintrin.h: Likewise.
34009 * config/i386/xsavecintrin.h: Likewise.
34010 * config/i386/xsavesintrin.h: Likewise.
34011 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
34012 * config/i386/xsaveintrin.h: Likewise.
34013 * config/i386/xsaveoptintrin.h: Likewise.
34014 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
34015 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
34016 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
34017 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
34018 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
34019 * config/i386/immintrin.h: Here.
34020
34021 2019-01-20 Martin Jambor <mjambor@suse.cz>
34022
34023 PR ipa/87615
34024 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
34025 with aa_walk_budget.
34026 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
34027 aa_walk_budget_p parameter.
34028 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
34029 walk. Updated all callers.
34030 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
34031 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
34032 unmodified_parm.
34033 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
34034 parameter info. Extract info from fbi. Pass fbi to recursive calls
34035 and to unmodified_parm.
34036 (phi_result_unknown_predicate): New parameter fbi, removed parameter
34037 info, updated call to will_be_nonconstant_expr_predicate.
34038 (param_change_prob): New parameter fbi, limit AA walking.
34039 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
34040 calls to various above functions.
34041 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
34042 parameter. Use it to limit AA walking.
34043 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
34044 fbi, limit AA walk.
34045 (detect_type_change): New parameter fbi, pass it on to
34046 detect_type_change_from_memory_writes.
34047 (detect_type_change_ssa): Likewise.
34048 (aa_overwalked): Removed.
34049 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
34050 accordingly, adjust to the neew AA limiting scheme.
34051 (parm_ref_data_preserved_p): Likewise.
34052 (ipa_compute_jump_functions_for_edge): Adjust call to
34053 get_dynamic_type.
34054 (ipa_analyze_call_uses): Likewise.
34055 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
34056 (ipa_analyze_node): Initialize aa_walk_budget.
34057 (ipcp_transform_function): Likewise.
34058 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
34059 to get_dynamic_type.
34060
34061 2019-01-19 Jakub Jelinek <jakub@redhat.com>
34062
34063 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
34064 outside of #if CHECKING_P code.
34065
34066 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
34067
34068 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
34069 New function, split out from...
34070 (loop_versioning::analyze_stride): ...here.
34071 (loop_versioning::find_per_loop_multiplication): Use gassign.
34072 (loop_versioning::analyze_term_using_scevs): Return a success code.
34073 (loop_versioning::analyze_arbitrary_term): New function.
34074 (loop_versioning::analyze_address_fragment): Use
34075 analyze_arbitrary_term if all else fails.
34076
34077 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
34078
34079 PR target/88892
34080 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
34081 operands.
34082
34083 2019-01-18 Richard Biener <rguenther@suse.de>
34084
34085 PR tree-optimization/88903
34086 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
34087 scalar stmts a SLP shift amount is composed of when detecting
34088 shifts by scalars.
34089
34090 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
34091
34092 PR target/88799
34093 * config/arm/arm-cpus.in (mp): New feature.
34094 (sec): New feature.
34095 (fgroup ARMv7ve): Add mp and sec features.
34096 (arch armv7-a): Add options to allow mp and sec extensions.
34097 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
34098 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
34099 extenstions to the base architecture.
34100 (cpu cortex-a8): Add sec extension to the base architecture.
34101 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
34102 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
34103 variants down to the base v7-a varaint.
34104 * config/arm/t-multilib (v7_a_arch_variants): New variable.
34105 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
34106 of permitted extensions for -march=armv7-a and for
34107 -mcpu=generic-armv7-a.
34108
34109 2019-01-18 Martin Liska <mliska@suse.cz>
34110
34111 * params.def: Fix comment.
34112 * tree-profile.c (gimple_init_gcov_profiler): Bump function
34113 name.
34114 (gimple_gen_ic_func_profiler): Likewise.
34115
34116 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34117
34118 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
34119 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
34120 and put in error checks for stack protector guard options.
34121 (aarch64_stack_protect_guard): New.
34122 (TARGET_STACK_PROTECT_GUARD): Define.
34123 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
34124 (reg_stack_protect_address<mode>): New.
34125 (stack_protect_set): Adjust for SSP_GLOBAL.
34126 (stack_protect_test): Likewise.
34127 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
34128 (-mstack-protector-guard): Likewise.
34129 (-mstack-protector-guard-offset): Likewise.
34130
34131 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34132
34133 PR tree-optimization/86214
34134 * tree-inline.h (struct copy_body_data): Add
34135 add_clobbers_to_eh_landing_pads member.
34136 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
34137 (copy_edges_for_bb): Call it if EH edge destination is <
34138 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
34139 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
34140 if flag_stack_reuse != SR_NONE and clear it afterwards.
34141
34142 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
34143
34144 PR target/85596
34145 * doc/install.texi (with-multilib-list): Document for aarch64.
34146
34147 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34148
34149 PR target/88734
34150 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
34151 (("..."))) with ("...").
34152
34153 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
34154
34155 * doc/extend.texi (Built-in Functions for Memory Model Aware
34156 Atomic Operations): Document atomic fetch and nand.
34157
34158 2019-01-18 Martin Liska <mliska@suse.cz>
34159 Richard Biener <rguenther@suse.de>
34160
34161 PR middle-end/88587
34162 * cgraph.h (create_version_clone_with_body): Add new argument
34163 with attributes.
34164 * cgraphclones.c (cgraph_node::create_version_clone): Add
34165 DECL_ATTRIBUTES to a newly created decl. And call
34166 valid_attribute_p so that proper cl_target_optimization_node
34167 is set for the newly created declaration.
34168 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
34169 for declaration.
34170 (expand_target_clones): Do not call valid_attribute_p, it must
34171 be already done.
34172 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
34173 vector types.
34174
34175 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34176
34177 PR target/88734
34178 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
34179 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
34180 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
34181
34182 2019-01-17 Martin Sebor <msebor@redhat.com>
34183
34184 PR middle-end/88273
34185 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
34186 Handle anti-ranges the same as no range at all.
34187
34188 2018-01-17 Steve Ellcey <sellcey@cavium.com>
34189
34190 * config/aarch64/aarch64.c (cgraph.h): New include.
34191 (intl.h): New include.
34192 (supported_simd_type): New function.
34193 (currently_supported_simd_type): Ditto.
34194 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
34195 (aarch64_simd_clone_adjust): Ditto.
34196 (aarch64_simd_clone_usable): Ditto.
34197 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
34198 (TARGET_SIMD_CLONE_ADJUST): Ditto.
34199 (TARGET_SIMD_CLONE_USABLE): Ditto.
34200 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
34201 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
34202 call.
34203
34204 2019-01-17 Martin Sebor <msebor@redhat.com>
34205
34206 PR tree-optimization/88800
34207 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
34208 NO_WARNING bit here. Avoid folding out-of-bounds calls.
34209 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
34210 redundant argument. Add new argument and issue diagnostics under
34211 its control. Detect out-of-bounds access even with warnings
34212 disabled.
34213 (check_bounds_or_overlap): Change return type. Add argument.
34214 (wrestrict_dom_walker::check_call): Adjust.
34215 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
34216 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
34217 check_bounds_or_overlap's return value.
34218 (handle_builtin_stxncpy): Same.
34219 (handle_builtin_strcat): Same.
34220
34221 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34222 Kwok Cheung Yeung <kcy@codesourcery.com>
34223 Julian Brown <julian@codesourcery.com>
34224 Tom de Vries <tom@codesourcery.com>
34225
34226 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
34227
34228 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34229
34230 * doc/sourcebuild.texi: Document dg-require-effective-target
34231 llvm_binutils and offload_gcn.
34232
34233 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34234 Kwok Cheung Yeung <kcy@codesourcery.com>
34235 Julian Brown <julian@codesourcery.com>
34236 Tom de Vries <tom@codesourcery.com>
34237
34238 * doc/sourcebuild.texi: Document dg-required-effective-target
34239 exceptions.
34240
34241 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34242 Kwok Cheung Yeung <kcy@codesourcery.com>
34243 Julian Brown <julian@codesourcery.com>
34244 Tom de Vries <tom@codesourcery.com>
34245 Jan Hubicka <hubicka@ucw.cz>
34246 Martin Jambor <mjambor@suse.cz>
34247
34248 * config.gcc: Add amdgcn*-*-amdhsa configuration.
34249 * configure.ac: Check for dlopen.
34250 * configure: Regenerate.
34251
34252 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34253 Kwok Cheung Yeung <kcy@codesourcery.com>
34254 Julian Brown <julian@codesourcery.com>
34255 Tom de Vries <tom@codesourcery.com>
34256 Jan Hubicka <hubicka@ucw.cz>
34257 Martin Jambor <mjambor@suse.cz>
34258
34259 * common/config/gcn/gcn-common.c: New file.
34260 * config/gcn/driver-gcn.c: New file.
34261 * config/gcn/gcn-builtins.def: New file.
34262 * config/gcn/gcn-hsa.h: New file.
34263 * config/gcn/gcn-modes.def: New file.
34264 * config/gcn/gcn-opts.h: New file.
34265 * config/gcn/gcn-passes.def: New file.
34266 * config/gcn/gcn-protos.h: New file.
34267 * config/gcn/gcn-run.c: New file.
34268 * config/gcn/gcn-tree.c: New file.
34269 * config/gcn/gcn.c: New file.
34270 * config/gcn/gcn.h: New file.
34271 * config/gcn/gcn.opt: New file.
34272 * config/gcn/t-gcn-hsa: New file.
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 Jan Hubicka <hubicka@ucw.cz>
34279 Martin Jambor <mjambor@suse.cz>
34280
34281 * config/gcn/constraints.md: New file.
34282 * config/gcn/gcn-valu.md: New file.
34283 * config/gcn/gcn.md: New file.
34284 * config/gcn/predicates.md: New file.
34285
34286 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
34287
34288 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
34289 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
34290 (stmt_uses_0_or_null_in_undefined_way): Likewise.
34291 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
34292
34293 2019-01-17 Tamar Christina <tamar.christina@arm.com>
34294
34295 PR target/88851
34296 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
34297 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
34298 it and document registers.
34299
34300 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34301
34302 * config/aarch64/aarch64.c (ares_tunings): Define.
34303 * config/aarch64/aarch64-cores.def (ares): Use the above.
34304
34305 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34306
34307 PR target/88794
34308 Revert:
34309 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
34310
34311 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
34312 (_mm512_fixupimm_round_pd): Update parameters and builtin.
34313 (_mm512_maskz_fixupimm_round_pd): Ditto.
34314 (_mm512_fixupimm_round_ps): Ditto.
34315 (_mm512_maskz_fixupimm_round_ps): Ditto.
34316 (_mm_fixupimm_round_sd): Ditto.
34317 (_mm_maskz_fixupimm_round_sd): Ditto.
34318 (_mm_fixupimm_round_ss): Ditto.
34319 (_mm_maskz_fixupimm_round_ss): Ditto.
34320 (_mm512_fixupimm_pd): Ditto.
34321 (_mm512_maskz_fixupimm_pd): Ditto.
34322 (_mm512_fixupimm_ps): Ditto.
34323 (_mm512_maskz_fixupimm_ps): Ditto.
34324 (_mm_fixupimm_sd): Ditto.
34325 (_mm_maskz_fixupimm_sd): Ditto.
34326 (_mm_fixupimm_ss): Ditto.
34327 (_mm_maskz_fixupimm_ss): Ditto.
34328 (_mm512_mask_fixupimm_round_pd): Update builtin.
34329 (_mm512_mask_fixupimm_round_ps): Ditto.
34330 (_mm_mask_fixupimm_round_sd): Ditto.
34331 (_mm_mask_fixupimm_round_ss): Ditto.
34332 (_mm512_mask_fixupimm_pd): Ditto.
34333 (_mm512_mask_fixupimm_ps): Ditto.
34334 (_mm_mask_fixupimm_sd): Ditto.
34335 (_mm_mask_fixupimm_ss): Ditto.
34336 * config/i386/avx512vlintrin.h:
34337 (_mm256_fixupimm_pd): Update parameters and builtin.
34338 (_mm256_maskz_fixupimm_pd): Ditto.
34339 (_mm256_fixupimm_ps): Ditto.
34340 (_mm256_maskz_fixupimm_ps): Ditto.
34341 (_mm_fixupimm_pd): Ditto.
34342 (_mm_maskz_fixupimm_pd): Ditto.
34343 (_mm_fixupimm_ps): Ditto.
34344 (_mm_maskz_fixupimm_ps): Ditto.
34345 (_mm256_mask_fixupimm_pd): Update builtin.
34346 (_mm256_mask_fixupimm_ps): Ditto.
34347 (_mm_mask_fixupimm_pd): Ditto.
34348 (_mm_mask_fixupimm_ps): Ditto.
34349 * config/i386/i386-builtin-types.def: Add new types and remove
34350 useless ones.
34351 * config/i386/i386-builtin.def: Update builtin definitions.
34352 * config/i386/i386.c: Handle new builtin types and remove useless ones.
34353 * config/i386/sse.md: Update VFIXUPIMM* patterns.
34354 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34355 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34356 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
34357 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34358 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34359 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
34360 * config/i386/subst.md:
34361 (round_saeonly_sd_mask_operand4): Add new subst_attr.
34362 (round_saeonly_sd_mask_op4): Ditto.
34363 (round_saeonly_expand_operand5): Ditto.
34364 (round_saeonly_expand): Update.
34365
34366 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34367
34368 PR target/88794
34369 Revert:
34370 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
34371
34372 * config/i386/sse.md: Combine VFIXUPIMM* patterns
34373 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34374 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34375 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
34376 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34377 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34378 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
34379
34380 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34381
34382 PR target/88794
34383 Revert:
34384 2018-12-15 Jakub Jelinek <jakub@redhat.com>
34385
34386 PR target/88489
34387 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
34388 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
34389 instead of UNSPEC_FIXUPIMM.
34390
34391 2019-01-17 Richard Biener <rguenther@suse.de>
34392
34393 PR lto/86736
34394 * dwarf2out.c (want_pubnames): Never generate pubnames sections
34395 and friends for the LTO part of debug info.
34396
34397 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34398
34399 PR tree-optimization/86214
34400 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
34401 if x == y.
34402
34403 PR rtl-optimization/88870
34404 * dce.c (deletable_insn_p): Never delete const/pure calls that can
34405 throw if we can't alter the cfg or delete dead exceptions.
34406 (mark_insn): Don't call find_call_stack_args for such calls.
34407
34408 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
34409
34410 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
34411 prototypes for vec_st.
34412 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
34413 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
34414 mainly on signed/unsigned long long and double.
34415
34416 2019-01-16 David Malcolm <dmalcolm@redhat.com>
34417
34418 PR target/88861
34419 * combine.c (delete_noop_moves): Convert to "bool" return,
34420 returning true if any edges are eliminated.
34421 (combine_instructions): Also return true if delete_noop_moves
34422 returns true.
34423
34424 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34425
34426 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
34427 correct max nunits for endian swap.
34428 (aarch64_expand_fcmla_builtin): Correct subreg code.
34429 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34430 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
34431 lane endianness.
34432
34433 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
34434
34435 * config/alpha/alpha.c (alpha_gimplify_va_arg):
34436 Handle split indirect COMPLEX_TYPE arguments.
34437
34438 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
34439
34440 PR target/86891
34441 * config/aarch64/aarch64-modes.def: Add comment about how the carry
34442 bit is set by add and compare.
34443 (CC_ADC): New CC_MODE.
34444 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34445 to cache the code and mode of X. Adjust the shape of a CC_Cmode
34446 comparison. Add detection for CC_ADCmode.
34447 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
34448 CC_ADCmode.
34449 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34450 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34451 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
34452 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
34453 to eliminate the need for zero-extending the operands.
34454 (add<mode>3_compareC_imm): Delete. Merge into ...
34455 (add<mode>3_compareC): ... this. Restructure the comparison to
34456 eliminate the need for zero-extending the operands.
34457 (add<mode>3_carryin): Use LTU for the overflow detection.
34458 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34459 Reexpress comparison for overflow.
34460 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34461 (add<mode>3_carryinC): Likewise.
34462 (add<mode>3_carryinV): Use LTU for carry between partials.
34463 * config/aarch64/predicates.md (aarch64_carry_operation): Update
34464 handling of CC_Cmode and add CC_ADCmode.
34465 (aarch64_borrow_operation): Likewise.
34466
34467 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34468
34469 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34470 Remove patternmode.
34471 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34472 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34473 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34474 Remove endianness conversion.
34475
34476 2019-01-16 Martin Liska <mliska@suse.cz>
34477
34478 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34479 for GCC driver.
34480 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34481 a new argument.
34482 * gcc.c (add_sysrooted_hdrs_prefix): New function.
34483 (path_prefix_reset): Move up in the source file.
34484 (find_fortran_preinclude_file): Make complex search for the
34485 fortran header files.
34486
34487 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
34488
34489 * godump.c (go_output_typedef): When outputting a typedef, refer
34490 to the underlying type by its name and not its structure.
34491
34492 2019-01-15 David Malcolm <dmalcolm@redhat.com>
34493
34494 PR c++/88795
34495 * tree.c (build_function_type): Assert that arg_types is not
34496 error_mark_node.
34497
34498 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
34499
34500 PR inline-asm/52813
34501 * doc/extend.texi: Document that listing the stack pointer in the
34502 clobber list of an asm is a deprecated feature.
34503 * common.opt (Wdeprecated): Moved from c-family/c.opt.
34504 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34505 warning instead of an error for clobbers of the stack pointer.
34506 Add a note explaining why.
34507
34508 2019-01-15 Richard Biener <rguenther@suse.de>
34509
34510 PR debug/88046
34511 * dwarf2out.c (gen_member_die): Do not generate inheritance
34512 DIEs late.
34513
34514 2019-01-15 Richard Biener <rguenther@suse.de>
34515
34516 PR tree-optimization/88855
34517 * tree-if-conv.c (combine_blocks): Collect
34518 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34519
34520 2019-01-15 Tom de Vries <tdevries@suse.de>
34521
34522 PR target/80547
34523 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34524 lhs == NULL_TREE for gang-level reduction.
34525
34526 2019-01-15 Richard Biener <rguenther@suse.de>
34527 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34528
34529 PR ipa/88788
34530 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34531 return true if SSA_NAME is already marked in visited bitmap.
34532 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34533
34534 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34535
34536 PR tree-optimization/88775
34537 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34538 equal == 0 equality pointer comparisons some more if compared in
34539 integral types and either one points to an automatic var and the
34540 other to a global, or we can prove at least one points to the middle
34541 or both point to start or both point to end.
34542
34543 2019-01-14 Andi Kleen <ak@linux.intel.com>
34544
34545 * Makefile.in: Lower autofdo sampling rate by 10x.
34546 * Makefile.tpl: Dito.
34547
34548 2019-01-14 Tom Honermann <tom@honermann.net>
34549
34550 * defaults.h: Define CHAR8_TYPE.
34551
34552 2019-01-14 Martin Sebor <msebor@redhat.com>
34553
34554 PR target/88638
34555 * doc/extend.texi (Darwin Format Checks): Clarify.
34556
34557 2019-01-14 Richard Biener <rguenther@suse.de>
34558
34559 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34560 whether we are in (simplify ...) or (match ...) context.
34561
34562 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34563
34564 PR rtl-optimization/88796
34565 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34566 * cfgexpand.c (stack_protect_prologue): Initialize
34567 crtl->stack_protect_guard_decl.
34568 * function.c (stack_protect_epilogue): Use it instead of calling
34569 targetm.stack_protect_guard again.
34570 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34571 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34572 crtl->stack_protect_guard_decl.
34573 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34574 on the returned MEM_EXPR.
34575
34576 2019-01-12 Tom de Vries <tdevries@suse.de>
34577
34578 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34579 vector length using -fopenacc-dim.
34580
34581 2019-01-12 Tom de Vries <tdevries@suse.de>
34582
34583 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34584 lengths into account.
34585
34586 2019-01-12 Svante Signell <svante.signell@gmail.com>
34587
34588 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34589 (TARGET_CAN_SPLIT_STACK): Define.
34590 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34591
34592 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34593
34594 * params.def (inline-unit-growth): Set to 40.
34595
34596 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34597
34598 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34599
34600 2019-01-12 Tom de Vries <tdevries@suse.de>
34601
34602 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34603 region calling vector-partitionable routine, set default_vector_length
34604 to WARP_SIZE.
34605
34606 2019-01-12 Tom de Vries <tdevries@suse.de>
34607
34608 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34609 variable default_vector_length.
34610
34611 2019-01-12 Tom de Vries <tdevries@suse.de>
34612
34613 PR middle-end/88703
34614 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34615 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34616 dimensions limits.
34617
34618 2019-01-12 Tom de Vries <tdevries@suse.de>
34619
34620 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34621 (nvptx_goacc_validate_dims): Add used parameter.
34622 * doc/tm.texi: Regenerate.
34623 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34624 argument to call to targetm.goacc.validate_dims.
34625 (default_goacc_validate_dims): Add used
34626 parameter.
34627 * target.def (validate_dims): Add used parameter in DEFHOOK.
34628 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34629
34630 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34631
34632 PR middle-end/85956
34633 PR lto/88733
34634 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34635 field.
34636 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34637 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34638 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34639 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34640
34641 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34642
34643 PR rtl-optimization/87305
34644 * lra-assigns.c
34645 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34646 for little endian pseudos used as paradoxical subreg.
34647
34648 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34649
34650 PR tree-optimization/88693
34651 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34652 for STRING_CSTs that don't contain any NUL characters in the first
34653 TREE_STRING_LENGTH bytes.
34654
34655 2019-01-11 Alan Modra <amodra@gmail.com>
34656
34657 PR 88777
34658 PR 88614
34659 * genattrtab.c (min_fn): Don't translate values.
34660 (min_attr_value): Return INT_MAX when the value can't be calculated.
34661 Return minimum among any values that can be calculated.
34662 (max_attr_value): Adjust.
34663
34664 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34665
34666 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34667
34668 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34669
34670 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34671 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34672 (aarch64_return_call_with_max_clobbers): New function.
34673 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34674 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34675 argument.
34676 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34677 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34678 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34679 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34680 * cselib.c (cselib_process_insn): Add argument to
34681 targetm.hard_regno_call_part_clobbered call.
34682 * ira-conflicts.c (ira_build_conflicts): Ditto.
34683 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34684 * lra-constraints.c (inherit_reload_reg): Ditto.
34685 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34686 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34687 argument. Call targetm.return_call_with_max_clobbers.
34688 Add argument to targetm.hard_regno_call_part_clobbered call.
34689 (calls_have_same_clobbers_p): New function.
34690 (process_bb_lives): Add call_insn and last_call_insn variables.
34691 Pass call_insn to check_pseudos_live_through_calls.
34692 Modify if stmt to check targetm.return_call_with_max_clobbers.
34693 Update setting of flush variable.
34694 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34695 to false.
34696 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34697 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34698 targetm.hard_regno_call_part_clobbered call.
34699 * reginfo.c (choose_hard_reg_mode): Ditto.
34700 * regrename.c (check_new_reg_p): Ditto.
34701 * reload.c (find_equiv_reg): Ditto.
34702 * reload1.c (emit_reload_insns): Ditto.
34703 * sched-deps.c (deps_analyze_insn): Ditto.
34704 * sel-sched.c (init_regs_for_mode): Ditto.
34705 (mark_unavailable_hard_regs): Ditto.
34706 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34707 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34708 (return_call_with_max_clobbers): New target function.
34709 * doc/tm.texi: Regenerate.
34710 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34711 * hooks.c (hook_bool_uint_mode_false): Change to
34712 hook_bool_insn_uint_mode_false.
34713 * hooks.h (hook_bool_uint_mode_false): Ditto.
34714
34715 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34716
34717 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34718 (aarch64_remove_extra_call_preserved_regs): New function.
34719 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34720 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34721 * doc/tm.texi: Regenerate.
34722 * final.c (get_call_reg_set_usage): Call new hook.
34723 * target.def (remove_extra_call_preserved_regs): New hook.
34724 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34725 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34726
34727 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34728
34729 PR bootstrap/88714
34730 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34731 inside of pass_combine_1 dump rather than pass_profile_1.
34732
34733 2019-01-11 Tom de Vries <tdevries@suse.de>
34734
34735 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34736 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34737 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34738 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34739 num_workers 16.
34740
34741 2019-01-11 Tom de Vries <tdevries@suse.de>
34742
34743 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34744
34745 2019-01-11 Jan Beulich <jbeulich@suse.com>
34746
34747 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34748 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34749 sse2_cvtsi2sd): Add {l}.
34750 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34751 syntax.
34752
34753 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34754
34755 PR target/88785
34756 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34757 define_expand.
34758 (*float<floatunssuffix>v2div2sf2): New define_insn.
34759 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34760 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34761 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34762 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34763 match_operands with "const0_operand" "C".
34764
34765 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34766
34767 * config/aarch64/aarch64-builtins.c
34768 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34769 (aarch64_init_simd_builtins): ...Here
34770
34771 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34772
34773 PR rtl-optimization/87305
34774 * lra-assigns.c
34775 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34776 allocation for big endian pseudos used as paradoxical subregs and
34777 spill them if it is wrong.
34778 * lra-constraints.c (lra_constraints): Add a comment.
34779
34780 2019-01-10 Richard Biener <rguenther@suse.de>
34781
34782 PR tree-optimization/88792
34783 * tree-ssa-pre.c (get_representative_for): Do not return a
34784 value-number here.
34785
34786 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34787
34788 PR middle-end/84877
34789 PR bootstrap/88450
34790 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34791 (assign_parm_setup_block): Do the argument slot realignment here
34792 instead.
34793
34794 2019-01-10 Stefan Agner <stefan@agner.ch>
34795
34796 PR target/88648
34797 * config/arm/arm.c (arm_option_override_internal): Force
34798 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34799
34800 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34801
34802 PR c/88568
34803 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34804 DECL_EXTERNAL.
34805
34806 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34807
34808 * config/arm/arm-builtins.c
34809 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34810 (MAC_LANE_PAIR_QUALIFIERS): New.
34811 (arm_expand_builtin_args): Use it.
34812 (arm_expand_builtin_1): Likewise.
34813 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34814 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34815 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34816 * config/arm/arm_neon.h:
34817 (vcadd_rot90_f16): New.
34818 (vcaddq_rot90_f16): New.
34819 (vcadd_rot270_f16): New.
34820 (vcaddq_rot270_f16): New.
34821 (vcmla_f16): New.
34822 (vcmlaq_f16): New.
34823 (vcmla_lane_f16): New.
34824 (vcmla_laneq_f16): New.
34825 (vcmlaq_lane_f16): New.
34826 (vcmlaq_laneq_f16): New.
34827 (vcmla_rot90_f16): New.
34828 (vcmlaq_rot90_f16): New.
34829 (vcmla_rot90_lane_f16): New.
34830 (vcmla_rot90_laneq_f16): New.
34831 (vcmlaq_rot90_lane_f16): New.
34832 (vcmlaq_rot90_laneq_f16): New.
34833 (vcmla_rot180_f16): New.
34834 (vcmlaq_rot180_f16): New.
34835 (vcmla_rot180_lane_f16): New.
34836 (vcmla_rot180_laneq_f16): New.
34837 (vcmlaq_rot180_lane_f16): New.
34838 (vcmlaq_rot180_laneq_f16): New.
34839 (vcmla_rot270_f16): New.
34840 (vcmlaq_rot270_f16): New.
34841 (vcmla_rot270_lane_f16): New.
34842 (vcmla_rot270_laneq_f16): New.
34843 (vcmlaq_rot270_lane_f16): New.
34844 (vcmlaq_rot270_laneq_f16): New.
34845 (vcadd_rot90_f32): New.
34846 (vcaddq_rot90_f32): New.
34847 (vcadd_rot270_f32): New.
34848 (vcaddq_rot270_f32): New.
34849 (vcmla_f32): New.
34850 (vcmlaq_f32): New.
34851 (vcmla_lane_f32): New.
34852 (vcmla_laneq_f32): New.
34853 (vcmlaq_lane_f32): New.
34854 (vcmlaq_laneq_f32): New.
34855 (vcmla_rot90_f32): New.
34856 (vcmlaq_rot90_f32): New.
34857 (vcmla_rot90_lane_f32): New.
34858 (vcmla_rot90_laneq_f32): New.
34859 (vcmlaq_rot90_lane_f32): New.
34860 (vcmlaq_rot90_laneq_f32): New.
34861 (vcmla_rot180_f32): New.
34862 (vcmlaq_rot180_f32): New.
34863 (vcmla_rot180_lane_f32): New.
34864 (vcmla_rot180_laneq_f32): New.
34865 (vcmlaq_rot180_lane_f32): New.
34866 (vcmlaq_rot180_laneq_f32): New.
34867 (vcmla_rot270_f32): New.
34868 (vcmlaq_rot270_f32): New.
34869 (vcmla_rot270_lane_f32): New.
34870 (vcmla_rot270_laneq_f32): New.
34871 (vcmlaq_rot270_lane_f32): New.
34872 (vcmlaq_rot270_laneq_f32): New.
34873 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34874 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34875 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34876 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34877 vcmlaq_lane270): New.
34878 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34879 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34880 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34881 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34882 (arm_option_reconfigure_globals): Use them.
34883 * config/arm/iterators.md (VDF, VQ_HSF): New.
34884 (VCADD, VCMLA): New.
34885 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34886 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34887 New.
34888 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34889 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34890
34891 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34892
34893 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34894 Add qualifier_lane_pair_index.
34895 (emit-rtl.h): Include.
34896 (TYPES_QUADOP_LANE_PAIR): New.
34897 (aarch64_simd_expand_args): Use it.
34898 (aarch64_simd_expand_builtin): Likewise.
34899 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34900 New.
34901 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34902 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34903 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34904 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34905 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34906 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34907 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34908 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34909 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34910 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34911 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34912 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34913 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34914 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34915 Add __ARM_FEATURE_COMPLEX.
34916 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34917 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34918 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34919 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34920 fcmlaq_lane270): New.
34921 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34922 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34923 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34924 * config/aarch64/arm_neon.h:
34925 (vcadd_rot90_f16): New.
34926 (vcaddq_rot90_f16): New.
34927 (vcadd_rot270_f16): New.
34928 (vcaddq_rot270_f16): New.
34929 (vcmla_f16): New.
34930 (vcmlaq_f16): New.
34931 (vcmla_lane_f16): New.
34932 (vcmla_laneq_f16): New.
34933 (vcmlaq_lane_f16): New.
34934 (vcmlaq_rot90_lane_f16): New.
34935 (vcmla_rot90_laneq_f16): New.
34936 (vcmla_rot90_lane_f16): New.
34937 (vcmlaq_rot90_f16): New.
34938 (vcmla_rot90_f16): New.
34939 (vcmlaq_laneq_f16): New.
34940 (vcmla_rot180_laneq_f16): New.
34941 (vcmla_rot180_lane_f16): New.
34942 (vcmlaq_rot180_f16): New.
34943 (vcmla_rot180_f16): New.
34944 (vcmlaq_rot90_laneq_f16): New.
34945 (vcmlaq_rot270_laneq_f16): New.
34946 (vcmlaq_rot270_lane_f16): New.
34947 (vcmla_rot270_laneq_f16): New.
34948 (vcmlaq_rot270_f16): New.
34949 (vcmla_rot270_f16): New.
34950 (vcmlaq_rot180_laneq_f16): New.
34951 (vcmlaq_rot180_lane_f16): New.
34952 (vcmla_rot270_lane_f16): New.
34953 (vcadd_rot90_f32): New.
34954 (vcaddq_rot90_f32): New.
34955 (vcaddq_rot90_f64): New.
34956 (vcadd_rot270_f32): New.
34957 (vcaddq_rot270_f32): New.
34958 (vcaddq_rot270_f64): New.
34959 (vcmla_f32): New.
34960 (vcmlaq_f32): New.
34961 (vcmlaq_f64): New.
34962 (vcmla_lane_f32): New.
34963 (vcmla_laneq_f32): New.
34964 (vcmlaq_lane_f32): New.
34965 (vcmlaq_laneq_f32): New.
34966 (vcmla_rot90_f32): New.
34967 (vcmlaq_rot90_f32): New.
34968 (vcmlaq_rot90_f64): New.
34969 (vcmla_rot90_lane_f32): New.
34970 (vcmla_rot90_laneq_f32): New.
34971 (vcmlaq_rot90_lane_f32): New.
34972 (vcmlaq_rot90_laneq_f32): New.
34973 (vcmla_rot180_f32): New.
34974 (vcmlaq_rot180_f32): New.
34975 (vcmlaq_rot180_f64): New.
34976 (vcmla_rot180_lane_f32): New.
34977 (vcmla_rot180_laneq_f32): New.
34978 (vcmlaq_rot180_lane_f32): New.
34979 (vcmlaq_rot180_laneq_f32): New.
34980 (vcmla_rot270_f32): New.
34981 (vcmlaq_rot270_f32): New.
34982 (vcmlaq_rot270_f64): New.
34983 (vcmla_rot270_lane_f32): New.
34984 (vcmla_rot270_laneq_f32): New.
34985 (vcmlaq_rot270_lane_f32): New.
34986 (vcmlaq_rot270_laneq_f32): New.
34987 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34988 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34989 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34990 (FCADD, FCMLA): New.
34991 (rot): New.
34992 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34993
34994 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34995
34996 PR other/16615
34997
34998 * config/pa/pa.c: Change "can not" to "cannot".
34999 * gimple-ssa-evrp-analyze.c: Likewise.
35000 * ipa-icf.c: Likewise.
35001 * ipa-polymorphic-call.c: Likewise.
35002 * ipa-pure-const.c: Likewise.
35003 * lra-constraints.c: Likewise.
35004 * lra-remat.c: Likewise.
35005 * reload1.c: Likewise.
35006 * reorg.c: Likewise.
35007 * tree-ssa-uninit.c: Likewise.
35008
35009 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
35010
35011 PR other/16615
35012
35013 * Makefile.in: Mechanically replace "can not" with "cannot".
35014 * alias.c: Likewise.
35015 * builtins.c: Likewise.
35016 * calls.c: Likewise.
35017 * cgraph.c: Likewise.
35018 * cgraph.h: Likewise.
35019 * cgraphclones.c: Likewise.
35020 * cgraphunit.c: Likewise.
35021 * combine-stack-adj.c: Likewise.
35022 * combine.c: Likewise.
35023 * common/config/i386/i386-common.c: Likewise.
35024 * config/aarch64/aarch64.c: Likewise.
35025 * config/alpha/sync.md: Likewise.
35026 * config/arc/arc.c: Likewise.
35027 * config/arc/predicates.md: Likewise.
35028 * config/arm/arm-c.c: Likewise.
35029 * config/arm/arm.c: Likewise.
35030 * config/arm/arm.h: Likewise.
35031 * config/arm/arm.md: Likewise.
35032 * config/arm/cortex-r4f.md: Likewise.
35033 * config/csky/csky.c: Likewise.
35034 * config/csky/csky.h: Likewise.
35035 * config/darwin-f.c: Likewise.
35036 * config/epiphany/epiphany.md: Likewise.
35037 * config/i386/i386.c: Likewise.
35038 * config/i386/sol2.h: Likewise.
35039 * config/m68k/m68k.c: Likewise.
35040 * config/mcore/mcore.h: Likewise.
35041 * config/microblaze/microblaze.md: Likewise.
35042 * config/mips/20kc.md: Likewise.
35043 * config/mips/sb1.md: Likewise.
35044 * config/nds32/nds32.c: Likewise.
35045 * config/nds32/predicates.md: Likewise.
35046 * config/pa/pa.c: Likewise.
35047 * config/rs6000/e300c2c3.md: Likewise.
35048 * config/rs6000/rs6000.c: Likewise.
35049 * config/s390/s390.h: Likewise.
35050 * config/sh/sh.c: Likewise.
35051 * config/sh/sh.md: Likewise.
35052 * config/spu/vmx2spu.h: Likewise.
35053 * cprop.c: Likewise.
35054 * dbxout.c: Likewise.
35055 * df-scan.c: Likewise.
35056 * doc/cfg.texi: Likewise.
35057 * doc/extend.texi: Likewise.
35058 * doc/fragments.texi: Likewise.
35059 * doc/gty.texi: Likewise.
35060 * doc/invoke.texi: Likewise.
35061 * doc/lto.texi: Likewise.
35062 * doc/md.texi: Likewise.
35063 * doc/objc.texi: Likewise.
35064 * doc/rtl.texi: Likewise.
35065 * doc/tm.texi: Likewise.
35066 * dse.c: Likewise.
35067 * emit-rtl.c: Likewise.
35068 * emit-rtl.h: Likewise.
35069 * except.c: Likewise.
35070 * expmed.c: Likewise.
35071 * expr.c: Likewise.
35072 * fold-const.c: Likewise.
35073 * genautomata.c: Likewise.
35074 * gimple-fold.c: Likewise.
35075 * hard-reg-set.h: Likewise.
35076 * ifcvt.c: Likewise.
35077 * ipa-comdats.c: Likewise.
35078 * ipa-cp.c: Likewise.
35079 * ipa-devirt.c: Likewise.
35080 * ipa-fnsummary.c: Likewise.
35081 * ipa-icf.c: Likewise.
35082 * ipa-inline-transform.c: Likewise.
35083 * ipa-inline.c: Likewise.
35084 * ipa-polymorphic-call.c: Likewise.
35085 * ipa-profile.c: Likewise.
35086 * ipa-prop.c: Likewise.
35087 * ipa-pure-const.c: Likewise.
35088 * ipa-reference.c: Likewise.
35089 * ipa-split.c: Likewise.
35090 * ipa-visibility.c: Likewise.
35091 * ipa.c: Likewise.
35092 * ira-build.c: Likewise.
35093 * ira-color.c: Likewise.
35094 * ira-conflicts.c: Likewise.
35095 * ira-costs.c: Likewise.
35096 * ira-int.h: Likewise.
35097 * ira-lives.c: Likewise.
35098 * ira.c: Likewise.
35099 * ira.h: Likewise.
35100 * loop-invariant.c: Likewise.
35101 * loop-unroll.c: Likewise.
35102 * lower-subreg.c: Likewise.
35103 * lra-assigns.c: Likewise.
35104 * lra-constraints.c: Likewise.
35105 * lra-eliminations.c: Likewise.
35106 * lra-lives.c: Likewise.
35107 * lra-remat.c: Likewise.
35108 * lra-spills.c: Likewise.
35109 * lra.c: Likewise.
35110 * lto-cgraph.c: Likewise.
35111 * lto-streamer-out.c: Likewise.
35112 * postreload-gcse.c: Likewise.
35113 * predict.c: Likewise.
35114 * profile-count.h: Likewise.
35115 * profile.c: Likewise.
35116 * recog.c: Likewise.
35117 * ree.c: Likewise.
35118 * reload.c: Likewise.
35119 * reload1.c: Likewise.
35120 * reorg.c: Likewise.
35121 * resource.c: Likewise.
35122 * rtl.def: Likewise.
35123 * rtl.h: Likewise.
35124 * rtlanal.c: Likewise.
35125 * sched-deps.c: Likewise.
35126 * sched-ebb.c: Likewise.
35127 * sched-rgn.c: Likewise.
35128 * sel-sched-ir.c: Likewise.
35129 * sel-sched.c: Likewise.
35130 * shrink-wrap.c: Likewise.
35131 * simplify-rtx.c: Likewise.
35132 * symtab.c: Likewise.
35133 * target.def: Likewise.
35134 * toplev.c: Likewise.
35135 * tree-call-cdce.c: Likewise.
35136 * tree-cfg.c: Likewise.
35137 * tree-complex.c: Likewise.
35138 * tree-core.h: Likewise.
35139 * tree-eh.c: Likewise.
35140 * tree-inline.c: Likewise.
35141 * tree-loop-distribution.c: Likewise.
35142 * tree-nrv.c: Likewise.
35143 * tree-profile.c: Likewise.
35144 * tree-sra.c: Likewise.
35145 * tree-ssa-alias.c: Likewise.
35146 * tree-ssa-dce.c: Likewise.
35147 * tree-ssa-dom.c: Likewise.
35148 * tree-ssa-forwprop.c: Likewise.
35149 * tree-ssa-loop-im.c: Likewise.
35150 * tree-ssa-loop-ivcanon.c: Likewise.
35151 * tree-ssa-loop-ivopts.c: Likewise.
35152 * tree-ssa-loop-niter.c: Likewise.
35153 * tree-ssa-phionlycprop.c: Likewise.
35154 * tree-ssa-phiopt.c: Likewise.
35155 * tree-ssa-propagate.c: Likewise.
35156 * tree-ssa-threadedge.c: Likewise.
35157 * tree-ssa-threadupdate.c: Likewise.
35158 * tree-ssa-uninit.c: Likewise.
35159 * tree-ssanames.c: Likewise.
35160 * tree-streamer-out.c: Likewise.
35161 * tree.c: Likewise.
35162 * tree.h: Likewise.
35163 * vr-values.c: Likewise.
35164
35165 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
35166
35167 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
35168 (ix86_split_xorsign): Ditto.
35169 * config/i386/i386.c (ix86_expand_xorsign): New function.
35170 (ix86_split_xorsign): Ditto.
35171 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
35172 (xorsign<mode>3): New expander.
35173 (xorsign<mode>3_1): New insn_and_split pattern.
35174 * config/i386/sse.md (xorsign<mode>3): New expander.
35175
35176 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35177
35178 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
35179 (*tablejump_sp64): Likewise.
35180 (*tablejump<P:mode>): ...this.
35181 (*call_address_sp32): Merge into...
35182 (*call_address_sp64): Likewise.
35183 (*call_address<P:mode>): ...this.
35184 (*call_symbolic_sp32): Merge into...
35185 (*call_symbolic_sp64): Likewise.
35186 (*call_symbolic<P:mode>): ...this.
35187 (call_value): Remove constraint and add predicate.
35188 (*call_value_address_sp32): Merge into...
35189 (*call_value_address_sp64): Likewise.
35190 (*call_value_address<P:mode>): ...this.
35191 (*call_value_symbolic_sp32): Merge into...
35192 (*call_value_symbolic_sp64): Likewise.
35193 (*call_value_symbolic<P:mode>): ...this.
35194 (*sibcall_symbolic_sp32): Merge into...
35195 (*sibcall_symbolic_sp64): Likewise.
35196 (*sibcall_symbolic<P:mode>): ...this.
35197 (sibcall_value): Remove constraint and add predicate.
35198 (*sibcall_value_symbolic_sp32): Merge into...
35199 (*sibcall_value_symbolic_sp64): Likewise.
35200 (*sibcall_value_symbolic<P:mode>): ...this.
35201 (window_save): Minor tweak.
35202 (*branch_sp32): Merge into...
35203 (*branch_sp64): Likewise.
35204 (*branch<P:mode>): ...this.
35205
35206 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35207 James Clarke <jrtc27@jrtc27.com>
35208
35209 PR target/84010
35210 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
35211 consistently in TLS address generation and adjust code to the renaming
35212 of patterns. Mark calls to __tls_get_addr as const.
35213 * config/sparc/sparc.md (tgd_hi22): Turn into...
35214 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
35215 (tgd_lo10): Turn into...
35216 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
35217 (tgd_add32): Merge into...
35218 (tgd_add64): Likewise.
35219 (tgd_add<P:mode>): ...this and use Pmode throughout.
35220 (tldm_hi22): Turn into...
35221 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
35222 (tldm_lo10): Turn into...
35223 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
35224 (tldm_add32): Merge into...
35225 (tldm_add64): Likewise.
35226 (tldm_add<P:mode>): ...this and use Pmode throughout.
35227 (tldm_call32): Merge into...
35228 (tldm_call64): Likewise.
35229 (tldm_call<P:mode>): ...this and use Pmode throughout.
35230 (tldo_hix22): Turn into...
35231 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
35232 (tldo_lox10): Turn into...
35233 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
35234 (tldo_add32): Merge into...
35235 (tldo_add64): Likewise.
35236 (tldo_add<P:mode>): ...this and use Pmode throughout.
35237 (tie_hi22): Turn into...
35238 (tie_hi22<P:mode>): ...this and use Pmode throughout.
35239 (tie_lo10): Turn into...
35240 (tie_lo10<P:mode>): ...this and use Pmode throughout.
35241 (tie_ld64): Use DImode throughout.
35242 (tie_add32): Merge into...
35243 (tie_add64): Likewise.
35244 (tie_add<P:mode>): ...this and use Pmode throughout.
35245 (tle_hix22_sp32): Merge into...
35246 (tle_hix22_sp64): Likewise.
35247 (tle_hix22<P:mode>): ...this and use Pmode throughout.
35248 (tle_lox22_sp32): Merge into...
35249 (tle_lox22_sp64): Likewise.
35250 (tle_lox22<P:mode>): ...this and use Pmode throughout.
35251 (*tldo_ldub_sp32): Merge into...
35252 (*tldo_ldub_sp64): Likewise.
35253 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
35254 (*tldo_ldub1_sp32): Merge into...
35255 (*tldo_ldub1_sp64): Likewise.
35256 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
35257 (*tldo_ldub2_sp32): Merge into...
35258 (*tldo_ldub2_sp64): Likewise.
35259 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
35260 (*tldo_ldsb1_sp32): Merge into...
35261 (*tldo_ldsb1_sp64): Likewise.
35262 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
35263 (*tldo_ldsb2_sp32): Merge into...
35264 (*tldo_ldsb2_sp64): Likewise.
35265 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
35266 (*tldo_ldub3_sp64): Use DImode throughout.
35267 (*tldo_ldsb3_sp64): Likewise.
35268 (*tldo_lduh_sp32): Merge into...
35269 (*tldo_lduh_sp64): Likewise.
35270 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
35271 (*tldo_lduh1_sp32): Merge into...
35272 (*tldo_lduh1_sp64): Likewise.
35273 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
35274 (*tldo_ldsh1_sp32): Merge into...
35275 (*tldo_ldsh1_sp64): Likewise.
35276 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
35277 (*tldo_lduh2_sp64): Use DImode throughout.
35278 (*tldo_ldsh2_sp64): Likewise.
35279 (*tldo_lduw_sp32): Merge into...
35280 (*tldo_lduw_sp64): Likewise.
35281 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
35282 (*tldo_lduw1_sp64): Use DImode throughout.
35283 (*tldo_ldsw1_sp64): Likewise.
35284 (*tldo_ldx_sp64): Likewise.
35285 (*tldo_stb_sp32): Merge into...
35286 (*tldo_stb_sp64): Likewise.
35287 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
35288 (*tldo_sth_sp32): Merge into...
35289 (*tldo_sth_sp64): Likewise.
35290 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
35291 (*tldo_stw_sp32): Merge into...
35292 (*tldo_stw_sp64): Likewise.
35293 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
35294 (*tldo_stx_sp64): Use DImode throughout.
35295
35296 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35297
35298 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
35299 check configure option to set BTI and Return Address Signing.
35300 * configure.ac: Add --enable-standard-branch-protection and
35301 --disable-standard-branch-protection.
35302 * configure: Regenerated.
35303 * doc/install.texi: Document the same.
35304
35305 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35306 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35307
35308 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
35309 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
35310 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
35311 if bti is enabled.
35312 * config/aarch64/aarch64-bti-insert.c: New file.
35313 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
35314 pass.
35315 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
35316 new bti pass.
35317 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
35318 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
35319 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
35320 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
35321
35322 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35323
35324 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
35325 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
35326 Disable bti for -mbranch-protection=none.
35327 (aarch64_handle_standard_branch_protection): Enable bti for
35328 -mbranch-protection=standard.
35329 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
35330 -mbranch-protection.
35331 (aarch64_bti_enabled): Check if bti is enabled.
35332 * config/aarch64/aarch64.opt: Declare target variable.
35333 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
35334
35335 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35336
35337 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
35338 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
35339 (aarch64_expand_epilogue): Likewise.
35340 (aarch64_output_mi_thunk): Likewise.
35341 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
35342 TAILCALL_ADDR_REGS to x16 and x17.
35343 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
35344
35345 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35346
35347 * config/aarch64/aarch64-option-extensions.def: Define
35348 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
35349 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
35350 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
35351 (AARCH64_FL_PREDRES): New.
35352 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
35353 AARCH64_FL_PREDRES by default.
35354 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
35355
35356 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35357
35358 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
35359 ARMv8.5-A.
35360 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
35361 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
35362 * doc/invoke.texi: Document ARMv8.5-A.
35363
35364 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
35365
35366 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
35367 (xorsign<mode>3): Likewise.
35368
35369 2019-01-09 Jelinek <jakub@redhat.com>
35370
35371 PR middle-end/88758
35372 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
35373 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
35374
35375 PR rtl-optimization/88331
35376 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
35377 not currently_expanding_to_rtl.
35378
35379 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35380
35381 * doc/invoke.texi (-Os): Remove trailing spaces.
35382 (-finline-functions): Remove reference to -O2.
35383
35384 2019-01-08 Jakub Jelinek <jakub@redhat.com>
35385
35386 PR rtl-optimization/79593
35387 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
35388
35389 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
35390 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
35391
35392 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
35393
35394 PR bootstrap/88721
35395 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
35396 to -1 on entry.
35397
35398 PR debug/88723
35399 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
35400 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
35401
35402 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
35403
35404 PR target/88717
35405 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
35406 ix86_avx_u128_mode_entry.
35407
35408 2019-01-08 Martin Liska <mliska@suse.cz>
35409
35410 PR tree-optimization/88753
35411 * tree-switch-conversion.c (switch_conversion::build_one_array):
35412 Come up with local variable constructor. Convert first to
35413 type of constructor values.
35414
35415 2019-01-08 Richard Biener <rguenther@suse.de>
35416
35417 PR tree-optimization/86554
35418 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
35419 rpo_avail): Move earlier.
35420 (visit_nary_op): When value-numbering to expressions
35421 with different overflow behavior make sure there's an
35422 available expression on the path.
35423
35424 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
35425
35426 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
35427 aarch64_parse_branch_protection,
35428 struct aarch64_branch_protect_type,
35429 aarch64_handle_no_branch_protection,
35430 aarch64_handle_standard_branch_protection,
35431 aarch64_validate_mbranch_protection,
35432 aarch64_handle_pac_ret_protection,
35433 aarch64_handle_attr_branch_protection,
35434 accepted_branch_protection_string,
35435 aarch64_pac_ret_subtypes,
35436 aarch64_branch_protect_types,
35437 aarch64_handle_pac_ret_leaf): Define.
35438 (aarch64_override_options_after_change_1, aarch64_override_options):
35439 Add check for accepted_branch_protection_string.
35440 (aarch64_option_save): Save accepted_branch_protection_string.
35441 (aarch64_option_restore): Save accepted_branch_protection_string.
35442 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35443 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35444 msign-return-address.
35445 * doc/invoke.texi: Add mbranch-protection.
35446
35447 2019-01-08 Alan Modra <amodra@gmail.com>
35448
35449 PR target/88614
35450 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35451 Delete "unknownp" parameter. Adjust callers. Handle
35452 CONST_INT, PLUS, MINUS, and MULT.
35453 (attr_value_aligned): Renamed from or_attr_value.
35454 (min_attr_value): Return INT_MIN for unhandled rtl case..
35455 (min_fn): ..and translate to INT_MAX here.
35456 (write_length_unit_log): Modify to cope without "unknown".
35457 (write_attr_value): Handle IF_THEN_ELSE.
35458
35459 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35460
35461 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35462 optimization for masked stores.
35463
35464 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35465
35466 PR middle-end/88567
35467 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35468 output vector directly to duplicate_and_interleave instead of
35469 going through a temporary. Postpone insertion of ctor_seq to
35470 the end of the loop.
35471
35472 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
35473
35474 PR target/86891
35475 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35476 unsigned_p. Handle signed and unsigned overflow correction as
35477 required.
35478 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35479 prototype.
35480 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35481 for operand 2.
35482 (add<mode>3_compareV_imm): Make this callable for expanding.
35483 (subv<GPI:mode>4): Use register_operand for operand 1. Use
35484 aarch64_plus_operand for operand 2.
35485 (subv<GPI:mode>_insn): New insn pattern.
35486 (subv<GPI:mode>_imm): Likewise.
35487 (negv<GPI:mode>3): New expand pattern.
35488 (negv<GPI:mode>_insn): New insn pattern.
35489 (negv<GPI:mode>_cmp_only): Likewise.
35490 (cmpv<GPI:mode>_insn): Likewise.
35491 (subvti4): Use register_operand for operand 1. Update call to
35492 aarch64_expand_subvti.
35493 (usubvti4): Likewise.
35494 (negvti3): New expand pattern.
35495 (negdi_carryout): New insn pattern.
35496 (negvdi_carryinV): New insn pattern.
35497 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35498 version the named version.
35499 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35500 operands.
35501 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35502 patterns.
35503 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35504 patterns.
35505 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35506 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35507 (sub<mode>3_carryinCV): Delete.
35508 (sub<GPI:mode>3_carryinV): New expand pattern.
35509 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35510
35511 2019-01-07 Richard Biener <rguenther@suse.de>
35512
35513 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35514 of tree_operand_hash.
35515
35516 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35517
35518 PR tree-optimization/88598
35519 * tree.h (single_nonzero_element): Declare.
35520 * tree.c (single_nonzero_element): New function.
35521 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35522 if I is the only nonzero element of CST.
35523
35524 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35525
35526 PR tree-optimization/88598
35527 * tree.h (initializer_each_zero_or_onep): Declare.
35528 * tree.c (initializer_each_zero_or_onep): New function.
35529 (signed_or_unsigned_type_for): Handle float types too.
35530 (unsigned_type_for, signed_type_for): Update comments accordingly.
35531 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35532 x & { 0 or -1, 0 or -1, ... }.
35533
35534 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35535
35536 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35537 with x86_64-pc-linux-gnu.
35538
35539 2019-01-07 Tom de Vries <tdevries@suse.de>
35540
35541 PR target/85486
35542 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35543 function.
35544 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35545 routines.
35546
35547 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35548
35549 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35550 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35551 TARGET_AVX512F as condition.
35552
35553 PR debug/88723
35554 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35555 const_not_ok_for_debug_p target hook.
35556 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35557 on UNSPEC and subexpressions thereof if all subexpressions of the
35558 UNSPEC are CONSTANT_P.
35559
35560 PR tree-optimization/88676
35561 * tree-ssa-phiopt.c (two_value_replacement): New function.
35562 (tree_ssa_phiopt_worker): Call it.
35563
35564 PR sanitizer/88619
35565 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35566 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35567
35568 PR c++/85052
35569 * tree-vect-generic.c: Include insn-config.h and recog.h.
35570 (expand_vector_piecewise): Add defaulted ret_type argument,
35571 if non-NULL, use that in preference to type for the result type.
35572 (expand_vector_parallel): Formatting fix.
35573 (do_vec_conversion, do_vec_narrowing_conversion,
35574 expand_vector_conversion): New functions.
35575 (expand_vector_operations_1): Call expand_vector_conversion
35576 for VEC_CONVERT ifn calls.
35577 * internal-fn.def (VEC_CONVERT): New internal function.
35578 * internal-fn.c (expand_VEC_CONVERT): New function.
35579 * fold-const-call.c (fold_const_vec_convert): New function.
35580 (fold_const_call): Use it for CFN_VEC_CONVERT.
35581 * doc/extend.texi (__builtin_convertvector): Document.
35582
35583 2019-01-07 Tom de Vries <tdevries@suse.de>
35584
35585 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35586 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35587 vector_red_partition, vector_red_sym): New global variables.
35588 (nvptx_option_override): Initialize vector_red_sym.
35589 (nvptx_declare_function_name): Restore red_partition register.
35590 (nvptx_file_end): Emit code to declare the vector reduction variables.
35591 (nvptx_output_red_partition): New function.
35592 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35593 large vector reductions.
35594 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35595 (nvptx_init_builtins): Add VECTOR_ADDR.
35596 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35597 Handle nvptx_expand_shared_addr.
35598 (nvptx_get_shared_red_addr): Add vector argument and handle large
35599 vectors.
35600 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35601 large vectors.
35602 (nvptx_goacc_reduction_init): Likewise.
35603 (nvptx_goacc_reduction_fini): Likewise.
35604 (nvptx_goacc_reduction_teardown): Likewise.
35605 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35606 init,fini,teardown}.
35607 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35608 (nvptx_set_current_function): Init vector_red_partition.
35609 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35610 (nvptx_red_partition): New insn.
35611 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35612
35613 2019-01-07 Tom de Vries <tdevries@suse.de>
35614
35615 PR target/85381
35616 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35617 empty loops.
35618
35619 2019-01-07 Tom de Vries <tdevries@suse.de>
35620
35621 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35622 (nvptx_option_override): Init oacc_bcast_partition.
35623 (nvptx_init_oacc_workers): New function.
35624 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35625 (nvptx_needs_shared_bcast): New function.
35626 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35627 to propagate state.
35628 (nvptx_shared_propagate): Initialize vector bcast partition and
35629 synchronization state.
35630 (nvptx_single): Generalize to enable vectors to use shared-memory
35631 to propagate state.
35632 (nvptx_process_pars): Likewise.
35633 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35634 * config/nvptx/nvptx.h (struct machine_function): Add
35635 bcast_partition and sync_bar members.
35636
35637 2019-01-07 Tom de Vries <tdevries@suse.de>
35638
35639 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35640 (nvptx_apply_dim_limits): New function.
35641 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35642 PTX_WARP_SIZE.
35643
35644 2019-01-07 Tom de Vries <tdevries@suse.de>
35645
35646 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35647 as late as possible.
35648
35649 2019-01-07 Tom de Vries <tdevries@suse.de>
35650
35651 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35652 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35653 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35654 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35655 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35656
35657 2019-01-07 Tom de Vries <tdevries@suse.de>
35658
35659 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35660
35661 2019-01-07 Tom de Vries <tdevries@suse.de>
35662
35663 * omp-offload.c (oacc_get_min_dim): New function.
35664 * omp-offload.h (oacc_get_min_dim): Declare.
35665
35666 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35667
35668 PR target/88521
35669 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35670 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35671
35672 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35673
35674 PR tree-opt/86020
35675 Revert:
35676 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35677
35678 * ipa-inline.c (edge_badness): Use inlined_time instead of
35679 inline_summaries->get.
35680
35681 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35682
35683 * opts.c (enable_fdo_optimizations): Enable
35684 version-loops-for-strides, loop-interchange, unrol-and-jam
35685 and tree-loop-distribution.
35686 * invoke.texi: Document newly enabled options.
35687
35688 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35689
35690 * doc/invoke.texi (max-inline-insns-small): New parameters.
35691 * ipa-inline.c (want_early_inline_function_p): simplify.
35692 (want_inline_small_function_p): Fix pasto from previous patch;
35693 use max-inline-insns-small bound.
35694 * params.def (max-inline-insns-small): New param.
35695 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35696 variables correctly.
35697
35698 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35699
35700 * doc/invoke.texi: Document max-inline-insns-size,
35701 uninlined-function-insns, uninlined-function-time,
35702 uninlined-thunk-insns and uninlined-thunk-time.
35703 * params.def: Add max-inline-insns-size,
35704 uninlined-function-insns, uninlined-function-time,
35705 uninlined-thunk-insns and uninlined-thunk-time.
35706 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35707 new parameters.
35708 * ipa-inline.c (can_inline_edge_by_limits_p,
35709 want_inline_small_function_p): Use new parameters.
35710
35711 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35712
35713 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35714
35715 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35716
35717 PR middle-end/82564
35718 PR target/88620
35719 * expr.c (expand_assignment): For calls returning VLA structures
35720 if to_rtx is not a MEM, force it into a stack temporary.
35721
35722 PR debug/88635
35723 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35724 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35725 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35726 subexpressions of both operands.
35727 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35728 subrtxes are CONSTANT_P.
35729 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35730 2018-11-09 changes.
35731
35732 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35733
35734 * params.def (hot-bb-count-ws-permille): Set to 990.
35735
35736 2019-01-04 Martin Sebor <msebor@redhat.com>
35737
35738 PR c/88546
35739 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35740 leaf.
35741
35742 2019-01-04 Martin Sebor <msebor@redhat.com>
35743
35744 PR c/88363
35745 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35746
35747 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35748
35749 * gdbinit.in: Turn off pagination for the skip commands, restore
35750 it to previous state afterwards.
35751
35752 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35753
35754 PR target/88594
35755 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35756 of GET_MODE (opN) as modes of the libcall arguments.
35757
35758 2019-01-04 Jan Beulich <jbeulich@suse.com>
35759
35760 * config/i386/sse.md
35761 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35762 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35763 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35764 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35765 avx512f_vmcmp<mode>3<round_saeonly_name>,
35766 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35767 avx512f_maskcmp<mode>3,
35768 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35769 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35770 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35771 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35772 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35773 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35774 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35775 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35776 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35777 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35778 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35779 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35780 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35781 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35782 avx512cd_maskb_vec_dup<mode>,
35783 avx512cd_maskw_vec_dup<mode>,
35784 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35785 avx512dq_vmfpclass<mode>,
35786 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35787 instead of =Yk.
35788
35789 2019-01-03 Martin Sebor <msebor@redhat.com>
35790
35791 PR tree-optimization/88659
35792 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35793
35794 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35795
35796 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35797 unaligned vsx and avoid lxvd2x/stxvd2x.
35798 (gen_lvx_v4si_move): New function.
35799
35800 2019-01-03 Tom de Vries <tdevries@suse.de>
35801
35802 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35803 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35804 function.
35805 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35806
35807 2019-01-03 Tom de Vries <tdevries@suse.de>
35808
35809 * config/nvptx/nvptx.c (struct offload_attrs): New.
35810 (populate_offload_attrs): New function. Factor mask extraction out of
35811 nvptx_reorg. Add extraction of dimensions.
35812 (nvptx_reorg): Use populate_offload_attrs.
35813
35814 2019-01-03 Tom de Vries <tdevries@suse.de>
35815
35816 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35817 cases for oacc_min_dims_p and routine_p. Add asserts for
35818 oacc_default_dims_p and offload_region_p.
35819
35820 2019-01-03 Tom de Vries <tdevries@suse.de>
35821
35822 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35823 factored out of ...
35824 (nvptx_goacc_validate_dims): ... here.
35825
35826 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35827
35828 PR tree-optimization/85574
35829 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35830 structure.
35831 (struct ssa_equip_hash_traits): Declare.
35832 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35833
35834 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35835
35836 PR debug/88644
35837 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35838 change it to qualified_type.
35839
35840 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35841
35842 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35843 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35844
35845 2019-01-02 Martin Sebor <msebor@redhat.com>
35846 Jeff Law <law@redhat.com>
35847
35848 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35849 (get_range_strlen_tree): Update appropriately.
35850 (get_range_strlen)
35851 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35852
35853 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35854 rather than set_range_info.
35855 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35856 maybe_set_strlen_range. Handle potentially boundary crossing
35857 cases more conservatively.
35858 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35859 Call set_strlen_range.
35860 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35861
35862 PR middle-end/88663
35863 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35864 need the flexp argument.
35865 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35866 from calls to get_range_strlen. Update comments. Just update
35867 VAL for an unterminated const char array and let the reset of the
35868 code handle it normally. No longer try to set *flexp. Adjust
35869 return value.
35870 (get_range_strlen): Update for the new get_range_strlen API.
35871 (get_maxval_strlen): Similarly.
35872 (gimple_fold_builtin_strlen): Handle update meaning of return value
35873 from get_range_strlen.
35874 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35875 get_range_strlen API.
35876
35877 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35878
35879 PR lto/88130
35880 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35881 false at WPA time when body was removed.
35882
35883 2019-01-02 Martin Liska <mliska@suse.cz>
35884
35885 PR tree-optimization/88650
35886 * predict.c (set_even_probabilities): Calculate probability
35887 remainer only when really used.
35888
35889 2019-01-02 Richard Biener <rguenther@suse.de>
35890
35891 PR middle-end/88651
35892 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35893 widest_ints when mangling max_stmt_execution results.
35894
35895 2019-01-02 Richard Biener <rguenther@suse.de>
35896
35897 PR tree-optimization/88621
35898 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35899 bitfields when canoncalizing.
35900
35901 2019-01-02 Richard Biener <rguenther@suse.de>
35902
35903 PR target/87545
35904 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35905 cost of cheap SSE instruction.
35906
35907 2019-01-02 Richard Biener <rguenther@suse.de>
35908
35909 PR ipa/85574
35910 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35911 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35912 function.
35913 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35914 set after UIDs before splitting them.
35915
35916 2019-01-01 Martin Sebor <msebor@redhat.com>
35917 Jeff Law <law@redhat.com>
35918
35919 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35920 length is optimistic. If it is, then arrange to compute the
35921 conservative length as well.
35922
35923 * gimple-fold.h (get_range_strlen): Update prototype.
35924 * builtins.c (check_access): Update call to get_range_strlen to use
35925 c_strlen_data pointer. Change various variable accesses to instead
35926 pull data from the c_strlen_data structure.
35927 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35928 * calls.c (maybe_warn_nonstring_arg): Likewise.
35929 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35930 minimum length if maximum lengh is unknown.
35931 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35932 that used c_strlen, it's no longer needed. Restructure slightly.
35933 (format_string): Set unlikely range appropriately.
35934 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35935 formatting issues.
35936 (get_range_strlen): Accept c_strlen_data pointer for external
35937 call sites as well. Pass through to call to internal get_range_strlen.
35938 Adjust minlen, maxlen and maxbound as needed.
35939 (get_maxval_strlen): Update comments.
35940 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35941 to use c_strlen_data pointer. Change variable accesses to instead
35942 use c_strlen_data data members.
35943
35944 * gimple-fold.c (get_range_strlen): Update prototype.
35945 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35946 local variables. Use pdata to return information to caller.
35947 Update calls to get_range_strlen. Update pdata->maxbound.
35948 (get_range_strlen -- static version): Similarly.
35949 (get_range_strlen -- extern version): Update for internal
35950 get_range_strlen API change. Convert to external data format.
35951 (get_maxval_strlen): Similarly.
35952
35953 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35954
35955 * coverage.c (get_coverage_counts): Use current_function_decl.
35956 * profile.c (read_thunk_profile): New function.
35957 (branch_prob): Add THUNK parameter.
35958 * tree-profile.c (tree_profiling): Handle thunks.
35959 * value-prof.c (init_node_map): Handle thunks.
35960 * value-prof.h (branch_prob): Upate prototype.
35961 (read_thunk_profile): Declare.
35962
35963 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35964
35965 Update copyright years.
35966
35967 * gcc.c (process_command): Update copyright notice dates.
35968 * gcov-dump.c (print_version): Ditto.
35969 * gcov.c (print_version): Ditto.
35970 * gcov-tool.c (print_version): Ditto.
35971 * gengtype.c (create_file): Ditto.
35972 * doc/cpp.texi: Bump @copying's copyright year.
35973 * doc/cppinternals.texi: Ditto.
35974 * doc/gcc.texi: Ditto.
35975 * doc/gccint.texi: Ditto.
35976 * doc/gcov.texi: Ditto.
35977 * doc/install.texi: Ditto.
35978 * doc/invoke.texi: Ditto.
35979 \f
35980 Copyright (C) 2019 Free Software Foundation, Inc.
35981
35982 Copying and distribution of this file, with or without modification,
35983 are permitted in any medium without royalty provided the copyright
35984 notice and this notice are preserved.