9e53a323e1eb0dc571fa00f43aa3c9d40409c820
[gcc.git] / gcc / ChangeLog
1 2019-12-10 Martin Liska <mliska@suse.cz>
2
3 PR tree-optimization/92862
4 * predict.c (predict_paths_leading_to_edge): Fix typo from e to e2.
5 * tree-ssa-loop-niter.c (loop_only_exit_p): Return false
6 instead of true;
7
8 2019-12-09 David Malcolm <dmalcolm@redhat.com>
9
10 * gcc-rich-location.c
11 (maybe_range_label_for_tree_type_mismatch::get_text): Replace
12 label_text ctor call with label_text::borrow.
13 * gcc-rich-location.h (text_range_label::get_text): Replace
14 label_text ctor called with false with label_text::borrow.
15
16 2019-12-09 David Malcolm <dmalcolm@redhat.com>
17
18 * diagnostic-show-locus.c (diagnostic_show_locus): Remove initial
19 newline.
20 (selftest::test_diagnostic_show_locus_unknown_location): Remove
21 initial newline from expected outputs.
22 (selftest::test_one_liner_simple_caret): Likewise.
23 (selftest::test_one_liner_caret_and_range): Likewise.
24 (selftest::test_one_liner_multiple_carets_and_ranges): Likewise.
25 (selftest::test_one_liner_fixit_insert_before): Likewise.
26 (selftest::test_one_liner_fixit_insert_after): Likewise.
27 (selftest::test_one_liner_fixit_remove): Likewise.
28 (selftest::test_one_liner_fixit_replace): Likewise.
29 (selftest::test_one_liner_fixit_replace_non_equal_range):
30 Likewise.
31 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
32 Likewise.
33 (selftest::test_one_liner_fixit_validation_adhoc_locations):
34 Likewise.
35 (selftest::test_one_liner_many_fixits_1): Likewise.
36 (selftest::test_one_liner_many_fixits_2): Likewise.
37 (selftest::test_one_liner_labels): Likewise.
38 (selftest::test_one_liner_simple_caret_utf8): Likewise.
39 (selftest::test_one_liner_caret_and_range_utf8): Likewise.
40 (selftest::test_one_liner_multiple_carets_and_ranges_utf8):
41 Likewise.
42 (selftest::test_one_liner_fixit_insert_before_utf8): Likewise.
43 (selftest::test_one_liner_fixit_insert_after_utf8): Likewise.
44 (selftest::test_one_liner_fixit_remove_utf8): Likewise.
45 (selftest::test_one_liner_fixit_replace_utf8): Likewise.
46 (selftest::test_one_liner_fixit_replace_non_equal_range_utf8):
47 Likewise.
48 (selftest::test_one_liner_fixit_replace_equal_secondary_range_utf8):
49 Likewise.
50 (selftest::test_one_liner_fixit_validation_adhoc_locations_utf8):
51 Likewise.
52 (selftest::test_one_liner_many_fixits_1_utf8): Likewise.
53 (selftest::test_one_liner_many_fixits_2_utf8): Likewise.
54 (selftest::test_one_liner_labels_utf8): Likewise.
55 (selftest::test_add_location_if_nearby): Likewise.
56 (selftest::test_diagnostic_show_locus_fixit_lines): Likewise.
57 (selftest::test_overlapped_fixit_printing): Likewise.
58 (selftest::test_overlapped_fixit_printing_utf8): Likewise.
59 (selftest::test_overlapped_fixit_printing_2): Likewise.
60 (selftest::test_fixit_insert_containing_newline): Likewise.
61 (selftest::test_fixit_insert_containing_newline_2): Likewise.
62 (selftest::test_fixit_replace_containing_newline): Likewise.
63 (selftest::test_fixit_deletion_affecting_newline): Likewise.
64 (selftest::test_line_numbers_multiline_range): Likewise.
65 * diagnostic.c (default_diagnostic_finalizer): Add pp_newline call
66 before call to diagnostic_show_locus.
67 (diagnostic_append_note): Likewise.
68
69 2019-12-09 Martin Sebor <msebor@redhat.com>
70
71 PR middle-end/92761
72 PR middle-end/92762
73 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Tighten
74 up tests.
75 * hash-table.h (hash_table::expand): Use placement new to copy
76 construct objects in uninitialized storage.
77 (hash_table::empty_slow): Avoid invoking copy assignment on
78 uninitialized objects.
79
80 2019-12-09 Lewis Hyatt <lhyatt@gmail.com>
81
82 PR preprocessor/49973
83 * input.c (location_compute_display_column): New function to help with
84 multibyte awareness in diagnostics.
85 (test_cpp_utf8): New self-test.
86 (input_c_tests): Call the new test.
87 * input.h (location_compute_display_column): Declare.
88 * diagnostic-show-locus.c: Pervasive changes to add multibyte awareness
89 to all classes and functions.
90 (enum column_unit): New enum.
91 (class exploc_with_display_col): New class.
92 (class layout_point): Convert m_column member to array m_columns[2].
93 (layout_range::contains_point): Add col_unit argument.
94 (test_layout_range_for_single_point): Pass new argument.
95 (test_layout_range_for_single_line): Likewise.
96 (test_layout_range_for_multiple_lines): Likewise.
97 (line_bounds::convert_to_display_cols): New function.
98 (layout::get_state_at_point): Add col_unit argument.
99 (make_range): Use empty filename rather than dummy filename.
100 (get_line_width_without_trailing_whitespace): Rename to...
101 (get_line_bytes_without_trailing_whitespace): ...this.
102 (test_get_line_width_without_trailing_whitespace): Rename to...
103 (test_get_line_bytes_without_trailing_whitespace): ...this.
104 (class layout): m_exploc changed to exploc_with_display_col from
105 plain expanded_location.
106 (layout::get_linenum_width): New accessor member function.
107 (layout::get_x_offset_display): Likewise.
108 (layout::calculate_linenum_width): New subroutine for the constuctor.
109 (layout::calculate_x_offset_display): Likewise.
110 (layout::layout): Use the new subroutines. Add multibyte awareness.
111 (layout::print_source_line): Add multibyte awareness.
112 (layout::print_line): Likewise.
113 (layout::print_annotation_line): Likewise.
114 (line_label::line_label): Likewise.
115 (layout::print_any_labels): Likewise.
116 (layout::annotation_line_showed_range_p): Likewise.
117 (get_printed_columns): Likewise.
118 (class line_label): Rename m_length to m_display_width.
119 (get_affected_columns): Rename to...
120 (get_affected_range): ...this; add col_unit argument and multibyte
121 awareness.
122 (class correction): Add m_affected_bytes and m_display_cols
123 members. Rename m_len to m_byte_length for clarity. Add multibyte
124 awareness throughout.
125 (correction::insertion_p): Add multibyte awareness.
126 (correction::compute_display_cols): New function.
127 (correction::ensure_terminated): Use new member name m_byte_length.
128 (line_corrections::add_hint): Add multibyte awareness.
129 (layout::print_trailing_fixits): Likewise.
130 (layout::get_x_bound_for_row): Likewise.
131 (test_one_liner_simple_caret_utf8): New self-test analogous to the one
132 with _utf8 suffix removed, testing multibyte awareness.
133 (test_one_liner_caret_and_range_utf8): Likewise.
134 (test_one_liner_multiple_carets_and_ranges_utf8): Likewise.
135 (test_one_liner_fixit_insert_before_utf8): Likewise.
136 (test_one_liner_fixit_insert_after_utf8): Likewise.
137 (test_one_liner_fixit_remove_utf8): Likewise.
138 (test_one_liner_fixit_replace_utf8): Likewise.
139 (test_one_liner_fixit_replace_non_equal_range_utf8): Likewise.
140 (test_one_liner_fixit_replace_equal_secondary_range_utf8): Likewise.
141 (test_one_liner_fixit_validation_adhoc_locations_utf8): Likewise.
142 (test_one_liner_many_fixits_1_utf8): Likewise.
143 (test_one_liner_many_fixits_2_utf8): Likewise.
144 (test_one_liner_labels_utf8): Likewise.
145 (test_diagnostic_show_locus_one_liner_utf8): Likewise.
146 (test_overlapped_fixit_printing_utf8): Likewise.
147 (test_overlapped_fixit_printing): Adapt for changes to
148 get_affected_columns, get_printed_columns and class corrections.
149 (test_overlapped_fixit_printing_2): Likewise.
150 (test_linenum_sep): New constant.
151 (test_left_margin): Likewise.
152 (test_offset_impl): Helper function for new test.
153 (test_layout_x_offset_display_utf8): New test.
154 (diagnostic_show_locus_c_tests): Call new tests.
155
156 2019-12-09 Eric Botcazou <ebotcazou@adacore.com>
157
158 * tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute
159 TYPE_CANONICAL from the element type only if it is true. Remove a few
160 obsolete lines and adjust recursive call.
161 (fld_process_array_type): Adjust call to build_array_type_1.
162 (build_array_type): Likewise.
163 (build_nonshared_array_type): Likewise.
164
165 2019-12-09 Andrew Stubbs <ams@codesourcery.com>
166
167 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Change
168 %s to %o in asm output.
169 (gather<mode>_insn_2offsets<exec>): Likewise.
170
171 2019-12-09 Richard Earnshaw <rearnsha@arm.com>
172
173 * config/arm/t-multilib: Use arm->thumb multilib reuse rules
174 on a-profile.
175
176 2019-12-09 Segher Boessenkool <segher@kernel.crashing.org>
177
178 * config/rs6000/rs6000.md (unnamed mfcr define_insn): Name this
179 set<mode>_cc.
180 (unnamed define_insn_and_split): Delete.
181 (unnamed define_insn): Delete.
182 (unnamed define_insn): Delete.
183 (unnamed define_split): Delete.
184
185 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
186
187 * regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
188 avoid a warning.
189
190 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
191
192 PR middle-end/92410
193 * bb-reorder.c (pass_reorder_blocks::execute): Recompute
194 dataflow luids once basic blocks have been reordered.
195 * haifa-sched.c (reemit_notes): Create df insn record for each
196 new note.
197 * regstat.c (regstat_bb_compute_calls_crossed): Assert every
198 insn has an insn record before trying to use it.
199
200 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
201
202 * common/config/i386/i386-common.c
203 (OPTION_MASK_ISA_AVX5124FMAPS_SET): Rename to
204 OPTION_MASK_ISA2_AVX5124FMAPS_SET.
205 (OPTION_MASK_ISA_AVX5124VNNIW_SET, OPTION_MASK_ISA_AVX512BF16_SET,
206 OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
207 OPTION_MASK_ISA_PCONFIG_SET, OPTION_MASK_ISA_WBNOINVD_SET,
208 OPTION_MASK_ISA_SGX_SET, OPTION_MASK_ISA_CX16_SET,
209 OPTION_MASK_ISA_MOVBE_SET, OPTION_MASK_ISA_PTWRITE_SET,
210 OPTION_MASK_ISA_MWAITX_SET, OPTION_MASK_ISA_CLZERO_SET,
211 OPTION_MASK_ISA_RDPID_SET, OPTION_MASK_ISA_VAES_SET,
212 OPTION_MASK_ISA_MOVDIR64B_SET, OPTION_MASK_ISA_WAITPKG_SET,
213 OPTION_MASK_ISA_CLDEMOTE_SET, OPTION_MASK_ISA_ENQCMD_SET,
214 OPTION_MASK_ISA_AVX5124FMAPS_UNSET,
215 OPTION_MASK_ISA_AVX5124VNNIW_UNSET,
216 OPTION_MASK_ISA_AVX512BF16_UNSET,
217 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET,
218 OPTION_MASK_ISA_PCONFIG_UNSET, OPTION_MASK_ISA_WBNOINVD_UNSET,
219 OPTION_MASK_ISA_SGX_UNSET, OPTION_MASK_ISA_CX16_UNSET,
220 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_PTWRITE_UNSET,
221 OPTION_MASK_ISA_MWAITX_UNSET, OPTION_MASK_ISA_CLZERO_UNSET,
222 OPTION_MASK_ISA_RDPID_UNSET, OPTION_MASK_ISA_VAES_UNSET,
223 OPTION_MASK_ISA_MOVDIR64B_UNSET, OPTION_MASK_ISA_WAITPKG_UNSET,
224 OPTION_MASK_ISA_CLDEMOTE_UNSET, OPTION_MASK_ISA_ENQCMD_UNSET,
225 OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
226 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
227 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
228 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
229 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
230 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
231 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
232 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
233 OPTION_MASK_ISA_ENQCMD): Ditto.
234 * config/i386/i386-builtin.def
235 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
236 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
237 OPTION_MASK_ISA_WBNOINVD, OPTION_MASK_ISA_PTWRITE,
238 OPTION_MASK_ISA_RDPID, OPTION_MASK_ISA_VAES,
239 OPTION_MASK_ISA_MOVDIR64B, OPTION_MASK_ISA_ENQCMD): Ditto.
240 * config/i386/i386-builtins.c (OPTION_MASK_ISA_MWAITX,
241 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_WAITPKG,
242 OPTION_MASK_ISA_CLDEMOTE, OPTION_MASK_ISA_WBNOINVD): Ditto.
243 * config/i386/i386-c.c
244 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
245 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
246 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
247 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
248 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
249 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
250 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
251 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
252 OPTION_MASK_ISA_ENQCMD): Ditto.
253 * config/i386/i386-option.c: Ditto
254 * config/i386/i386.opt: Ditto..
255 * config/i386/i386.h: (TARGET_ISA_AVX5124FMAPS,
256 TARGET_ISA_AVX5124VNNIW, TARGET_ISA_AVX512BF16,
257 TARGET_ISA_AVX512VP2INTERSECT, TARGET_ISA_PCONFIG,
258 TARGET_ISA_WBNOINVD, TARGET_ISA_SGX, TARGET_ISA_CX16,
259 TARGET_ISA_MOVBE, TARGET_ISA_PTWRITE, TARGET_ISA_MWAITX,
260 TARGET_ISA_CLZERO, TARGET_ISA_RDPID, TARGET_ISA_VAES,
261 TARGET_ISA_MOVDIR64B, TARGET_ISA_WAITPKG, TARGET_ISA_CLDEMOTE)
262 TARGET_ISA_ENQCMD): Ditto.
263
264 2019-12-09 Sudakshina Das <sudi.das@arm.com>
265 Richard Sandiford <richard.sandiford@arm.com>
266
267 * tree-vect-stmt.c (vectorizable_shift): Condition ndts for
268 vect_model_simple_cost call on scalar_shift_arg.
269
270 2019-12-09 Jakub Jelinek <jakub@redhat.com>
271
272 PR tree-optimization/92834
273 * match.pd (A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
274 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): New simplifications.
275
276 2019-12-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
277
278 PR tree-optimization/89007
279 * tree-vect-patterns.c (vect_recog_average_pattern): If there is no
280 target support available, generate code to distribute rshift over plus
281 and add a carry.
282
283 2019-12-09 Martin Liska <mliska@suse.cz>
284
285 PR ipa/92737
286 * cgraph.c (symbol_table_test::symbol_table_test): Fix
287 coding style.
288 * cgraph.h (symtab_node::symtab_node): New constructor.
289 (cgraph_node::cgraph_node): Likewise.
290 (varpool_node::varpool_node): Likewise.
291 (symbol_table::allocate_cgraph_symbol): Use newly
292 created constructor.
293 (symbol_table::allocate_cgraph_symbol): Remove.
294 * cgraphunit.c (symtab_terminator): Likewise.
295 * varpool.c (varpool_node::create_empty): Use newly
296 created constructor.
297
298 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
299
300 PR target/92686
301 * config/i386/sse.md
302 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
303 *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
304 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
305 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
306 * config/i386/i386.c (ix86_print_operand): New operand substitution.
307 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
308 New function.
309 (ix86_expand_sse_cmp): Relax condition for integer mask from
310 512-bit vector to all 128/256/512-bit vector. Delete code gen
311 for avx512f compare patterns since we have generic pattern now.
312 (ix86_expand_sse_movcc): Adjust condition and codegen for
313 maskcmp.
314 (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
315 when corresponding vector compare is available.
316
317 2019-12-08 Sandra Loosemore <sandra@codesourcery.com>
318
319 Revert:
320 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
321
322 * config/nios2/linux.h (LINK_EH_SPEC): Define.
323
324 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
325
326 * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
327 * cgraph.h (cgrpah_node): Likewise.
328 (tp_first_run_node_cmp): Deeclare.
329 * cgraphunit.c (node_cmp): Rename to ...
330 (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
331 clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
332 (expand_all_functions): Collect tp_first_run and normal functions to
333 two vectors so the other functions remain sorted. Do not check for
334 flag_profile_reorder_functions it is function local flag.
335 * profile.c (compute_value_histograms): Update tp_first_run printing.
336
337 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
338
339 * opts.c (common_handle_option): Do not clear ipa_reference for
340 -fprofile-use.
341
342 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
343
344 * ipa-split.c (split_function): Preserve 0 tp_first_run.
345
346 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
347
348 * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
349 sanity check.
350
351 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
352
353 PR tree-optimization/92860
354 * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
355 Optimization flag.
356
357 2019-12-07 Marek Polacek <polacek@redhat.com>
358
359 PR c++/91678 - wrong error with decltype and location wrapper.
360 * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
361
362 2019-12-07 Eric Botcazou <ebotcazou@adacore.com>
363
364 PR middle-end/90840
365 * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
366 sure to pass a valid inner mode in calls to simplify_gen_subreg.
367
368 2019-12-07 Tobias Burnus <tobias@codesourcery.com>
369 David Malcolm <dmalcolm@redhat.com>
370 Jakub Jelinek <jakub@redhat.com>
371
372 PR c/87488
373 * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
374 instead of ST sequence to terminate OSC 8 strings.
375
376 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com>
377 Vladimir Makarov <vmakarov@redhat.com>
378
379 PR rtl-optimization/92176
380 * lra.c (simplify_subreg_regno): Don't permit unconditional
381 changing mode for LRA too.
382
383 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
384
385 * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
386 (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
387 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
388 Handle them.
389
390 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
391
392 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
393 in the asm output.
394
395 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
396
397 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
398 (VEC_1REG_ALT): Likewise.
399 (VEC_ALL1REG_MODE): New mode iterator.
400 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
401 (VEC_1REG_INT_ALT): Likewise.
402 (VEC_ALL1REG_INT_MODE): New mode interator.
403 (VEC_ALL1REG_INT_ALT): Likewise.
404 (VEC_REG_MODE): Remove V64QI and V64HI.
405 (VEC_ALLREG_MODE): New mode interator.
406 (vec_merge): Change to VEC_ALLREG_MODE.
407 (vec_merge_with_clobber): Likewise.
408 (vec_merge_with_vcc): Likewise.
409 (mov<mode>): Likewise.
410 (mov<mode>_unspec): Likewise.
411 (*mov<mode>): Change to VEC_ALL1REG_MODE.
412 (mov<mode>_exec): Likewise.
413 (*mov<mode>_exec_match): Likewise.
414 (mov<mode>_sgprbase): Likewise.
415 (reload_in<mode>): Change to VEC_ALLREG_MODE.
416 (reload_out<mode>): Likewise.
417 (scalar address splits): Likewise.
418 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
419 (vec_set<mode>): Change to VEC_ALLREG_MODE.
420 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
421 (vec_duplicate<mode><exec>): Likewise.
422 (vec_extract<mode><scalar_mode>): Likewise.
423 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
424 (gather_load<mode>): Likewise.
425 (gather<mode>_exec): Likewise.
426 (gather<mode>_expr<exec>): Likewise.
427 (gather<mode>_insn_1offset<exec>): Likewise.
428 (gather<mode>_insn_1offset_ds<exec>): Likewise.
429 (gather<mode>_insn_2offsets<exec>): Likewise.
430 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
431 (VEC_INT_MODE): Remove V64QI and V64HI.
432 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
433 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
434 VEC_ALL1REG_MODE.
435 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
436 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
437 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
438 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
439 (maskstore<mode>di): Likewise.
440 (mask_gather_load<mode>): Likewise.
441 (mov_from_lane63_<mode>): Likewise.
442 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
443 and V64HImode vectorization.
444 (gcn_related_vector_mode): New function.
445 (TARGET_VECTORIZE_RELATED_MODE): New define.
446
447 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
448 Kwok Cheung Yeung <kcy@codesourcery.com>
449
450 * omp-low.c (lower_omp_target): For optional arguments, deref once
451 more to obtain the type.
452
453 2019-12-06 Richard Biener <rguenther@suse.de>
454
455 * match.pd (nop_convert): Remove empty match. Use nop_convert?
456 everywhere.
457
458 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
459
460 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
461 for empty vectors. Avoid using ordered_remove and instead
462 shuffle the vector as we go.
463
464 2019-12-06 Richard Biener <rguenther@suse.de>
465
466 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
467 VIEW_CONVERT{0,1,2}.
468 (expr::opt_grp): Add and initialize.
469 (lower_opt_convert): Rename to ...
470 (lower_opt): ... and work on opt_grp, simply switching operations
471 from being optional to being present or not.
472 (has_opt_convert): Rename to ...
473 (has_opt): ... and adjust.
474 (parser::parse_operation): Return the optional opt_grp,
475 remove special-casing of conditional operations and more generally
476 parse [digit]'?'.
477 (parser::parse_expr): Stick on the parsed opt_grp and perform
478 rough verification.
479 (parser::parse_for): Remove now unnecessary code.
480 (main): Likewise.
481 * doc/match-and-simplify.texi: Mention ? now works on all
482 unary operations and also match predicates.
483
484 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
485
486 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
487 functions, not inline clones.
488
489 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
490
491 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
492
493 2019-12-06 Richard Biener <rguenther@suse.de>
494
495 * genmatch.c (c_expr::gen_transform): Emit newlines from line
496 number changes rather than after every semicolon.
497
498 2019-12-06 Richard Biener <rguenther@suse.de>
499
500 PR tree-optimization/92819
501 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
502 into the last lane. For two-element vectors try inserting
503 into the last lane when inserting into the first fails.
504
505 2019-12-06 Jakub Jelinek <jakub@redhat.com>
506
507 * common.opt (fprofile-partial-training): Terminate description with
508 full stop.
509
510 2019-12-05 Martin Sebor <msebor@redhat.com>
511
512 PR middle-end/92622
513 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
514 left uninitialized by get_addr_base_and_unit_offset on failure.
515
516 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
517
518 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
519 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
520 (detect_type_change): Likewise.
521 (detect_type_change_ssa): Likewise.
522 (ipa_analyze_virtual_call_uses): Update.
523
524 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
525
526 * config/nios2/linux.h (LINK_EH_SPEC): Define.
527
528 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
529
530 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
531
532 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
533
534 * cgraphclones.c (localize_profile): New function.
535 (cgraph_node::create_clone): Use it for partial profiles.
536 * common.opt (fprofile-partial-training): New flag.
537 * doc/invoke.texi (-fprofile-partial-training): Document.
538 * ipa-cp.c (update_profiling_info): For partial profiles do not
539 set function profile to zero.
540 * profile.c (compute_branch_probabilities): With partial profile
541 watch if edge count is zero and turn all probabilities to guessed.
542 (compute_branch_probabilities): For partial profiles do not apply
543 profile when entry count is zero.
544 * tree-profile.c (tree_profiling): Only do value_profile_transformations
545 when profile is read.
546
547 2019-12-05 Sudakshina Das <sudi.das@arm.com>
548
549 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
550 check from if condition.
551
552 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
553
554 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
555 and Fortran's optional arguments, unconditionally add the is-present
556 condition before the libgomp call.
557
558 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
559
560 PR middle-end/92768
561 * tree-core.h (OEP_BITWISE): New flag.
562 * fold-const.c (operand_compare::operand_equal_p): Handle it.
563 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
564
565 2019-12-05 Richard Biener <rguenther@suse.de>
566
567 PR middle-end/92818
568 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
569 heuristics on what don't care element to choose.
570 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
571
572 2019-12-05 Martin Liska <mliska@suse.cz>
573
574 PR gcov-profile/92817
575 * coverage.c (build_gcov_exit_decl): Remove superfluous
576 void_type_node.
577
578 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
579
580 * config/msp430/msp430.md (cbranch<mode>4): Use
581 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
582 dest operand of CMP instruction.
583 (cbranchpsi4_real): Likewise.
584 (cbranchqi4_real): Likewise.
585 (cbranchhi4_real): Likewise.
586 (cbranchpsi4_reversed): Likewise.
587 (cbranchqi4_reversed): Likewise.
588 (cbranchhi4_reversed): Likewise.
589
590 2019-12-05 Richard Biener <rguenther@suse.de>
591
592 PR tree-optimization/92803
593 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
594 invariant vector construction.
595
596 2019-12-05 Martin Liska <mliska@suse.cz>
597
598 PR gcov-profile/91971
599 * coverage.c (coverage_init): Mangle full path
600 only when -fprofile-dir is used.
601
602 2019-12-05 Jakub Jelinek <jakub@redhat.com>
603
604 PR target/92791
605 * config/i386/i386.md (movstrict<mode>): Move test for
606 TARGET_PARTIAL_REG_STALL and not optimizing for size from
607 expander's condition to the body - FAIL; in that case.
608
609 2019-12-03 Martin Sebor <msebor@redhat.com>
610
611 PR middle-end/91582
612 * builtins.c (gimple_call_alloc_size): New function.
613 (compute_objsize): Add argument. Call gimple_call_alloc_size.
614 Handle variable offsets and indices.
615 * builtins.h (gimple_call_alloc_size): Declare.
616 (compute_objsize): Add argument.
617 * gimple-ssa-warn-restrict.c: Remove assertions.
618 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
619
620 2019-12-04 Julian Brown <julian@codesourcery.com>
621
622 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
623
624 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
625
626 PR bootstrap/92661
627 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
628 rs6000.h.
629 (altivec_overloaded_builtins): Move to rs6000-call.c.
630 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
631 rs6000-c.c.
632 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
633 (altivec_overloaded_builtins): Moved from rs6000-c.c.
634 (rs6000_common_init_builtins): Do no define builtins that overload
635 builtins that have been disabled.
636
637 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
638
639 * config/arm/arm.c (arm_option_override_internal):
640 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
641
642 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
643
644 * config/aarch64/aarch64.c
645 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
646 (thunderx_tunings): Likewise.
647 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
648 (thunderx2t99_tunings): Likewise.
649 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
650 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
651
652 2019-12-04 Richard Biener <rguenther@suse.de>
653
654 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
655 empty CTOR and memset partial-def registering. Take advantage
656 of fancy offset analysis in memset handling.
657
658 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
659
660 * fold-const.c (native_encode_vector_part): Handle
661 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
662 (native_decode_vector_tree): Delete, moving the bulk of the code to...
663 (native_interpret_vector_part): ...this new function. Use a pointer
664 and length instead of a vec<> and start index.
665 (native_interpret_vector): Use native_interpret_vector_part.
666 (fold_view_convert_vector_encoding): Likewise.
667
668 2019-12-04 Richard Biener <rguenther@suse.de>
669
670 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
671 non-constant defs in the most trivial way.
672 (vn_reference_lookup_3): Also push down SSA partial defs.
673
674 2019-12-04 Martin Liska <mliska@suse.cz>
675
676 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
677 Initialize count of newly created BB.
678
679 2019-12-04 Jakub Jelinek <jakub@redhat.com>
680
681 PR tree-optimization/92734
682 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
683 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
684
685 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
686
687 PR target/92760
688 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
689 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
690
691 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
692
693 * ipa-fnsummary.c: Include tree-into-ssa.h.
694 (compute_fn_summary): Call update_ssa.
695
696 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
697
698 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
699 is set only for symbol in comdat group.
700 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
701
702 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
703
704 * cgraph.c: Include tree-into-ssa.h
705 (cgraph_node::get_body): Call update_ssa.
706 * cgraphunit.c (cgraph_node::expand): Likewise.
707 * lto-streamer-in.c (input_function): Do not call update_ssa.
708
709 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
710
711 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
712 an array element size if array_element_size is already an invariant.
713 Similarly don't gimplify and install a field offset if
714 component_ref_field_offset is already an invariant.
715
716 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
717
718 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
719 with POLY_INT_CST size is made to a fixed-size object, force the
720 object to live in memory.
721
722 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
723
724 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
725 for the data mode.
726
727 2019-12-03 Richard Biener <rguenther@suse.de>
728
729 PR tree-optimization/92758
730 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
731 operation on uniform vectors.
732
733 2019-12-03 Richard Biener <rguenther@suse.de>
734
735 PR tree-optimization/92645
736 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
737 from or to a properly aligned register variable.
738
739 2019-12-03 Matthias Klose <doko@ubuntu.com>
740
741 * Makefile.in (SOURCES): Add doc/lto-dump.1.
742 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
743 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
744
745 2019-12-03 Richard Biener <rguenther@suse.de>
746
747 PR tree-optimization/92751
748 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
749 when a clobber ends up in the partial-def vector.
750 (vn_reference_lookup_3): Let clobbers be handled by the
751 assignment from CTOR handling.
752
753 2019-12-03 Jakub Jelinek <jakub@redhat.com>
754
755 PR tree-optimization/92734
756 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
757 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
758 inner subtraction.
759
760 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
761 Jakub Jelinek <jakub@redhat.com>
762
763 PR target/92744
764 * config/i386/i386.md (peephole2 for *swap<mode>): Use
765 general_reg_operand predicates instead of register_operand.
766
767 2019-12-03 Richard Biener <rguenther@suse.de>
768
769 PR tree-optimization/92645
770 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
771 a full def of a vector via a BIT_INSERT_EXPR.
772
773 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
774
775 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
776 static.
777 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
778 decl.
779
780 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
781
782 PR middle-end/92741
783 * fold-const.c (fold_convertible_p): Check vector types more
784 thoroughly.
785
786 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
787
788 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
789 (aarch64_expand_mov_immediate): Use it when attempting to measure
790 the length of an SVE vector.
791 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
792 SVE is enabled.
793
794 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
795
796 * config/aarch64/aarch64-sve-builtins.h
797 (gimple_folder::force_vector): Declare.
798 * config/aarch64/aarch64-sve-builtins.cc
799 (gimple_folder::force_vector): New function.
800 * config/aarch64/aarch64-sve-builtins-base.cc
801 (svcmp_impl::fold): Likewise.
802 (svdup_impl::fold): Handle svdup_z too.
803
804 2019-12-02 Martin Liska <mliska@suse.cz>
805
806 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
807 function.
808 (debug_tree_odr_name): New.
809 * ipa-utils.h (get_odr_name_for_type): New.
810
811 2019-12-02 Richard Biener <rguenther@suse.de>
812
813 PR tree-optimization/92742
814 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
815 touch the def-type but verify it is consistent with the
816 original stmts.
817
818 2019-12-02 Jakub Jelinek <jakub@redhat.com>
819
820 PR tree-optimization/92712
821 * match.pd ((A * B) +- A -> (B +- 1) * A,
822 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
823 even when we don't know anything about range of A, but do know
824 something about range of B and the simplification won't introduce
825 new UB.
826
827 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
828
829 PR ipa/92133
830 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
831 (ipa-cp-min-recursive-probability): Likewise.
832 * params.opt (ipa-cp-max-recursive-depth): New.
833 (ipa-cp-min-recursive-probability): Likewise.
834 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
835 val_p and unlimited.
836 (self_recursively_generated_p): New function.
837 (get_val_across_arith_op): Likewise.
838 (propagate_vals_across_arith_jfunc): Add constant propagation for
839 self-recursive function.
840 (incorporate_penalties): Do not penalize pure self-recursive function.
841 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
842 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
843 (get_info_about_necessary_edges): Relax hotness check for edge to
844 self-recursive function.
845 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
846
847 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
848
849 PR target/92499
850
851 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
852 objects of flexible types to be small if they have internal linkage
853 or are declared extern.
854 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
855 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
856 instead of the size of the object initializer.
857 * tree.c (flexible_array_type_p): Move from C front end, and
858 generalize to handle fields in non-C structures.
859 * tree.h (flexible_array_type_p): Declare.
860
861 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
862
863 * profile-count.h (profile_count::operator<): Use IPA value for
864 comparsion.
865 (profile_count::operator>): Likewise.
866 (profile_count::operator<=): Likewise.
867 (profile_count::operator>=): Likewise.
868 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
869
870 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
871
872 * ipa-inline.c (compute_max_insns): Return int64_t.
873 (inline_small_functions): Simplify.
874
875 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
876
877 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
878 scaling happen.
879
880 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
881
882 * cgraph.h (symtab_node): Add symver flag.
883 * cgraphunit.c (process_symver_attribute): New.
884 (process_common_attributes): Use process_symver_attribute.
885 * lto-cgraph.c (lto_output_node): Stream symver.
886 (lto_output_varpool_node): Stream symver.
887 (input_overwrite_node): Stream symver.
888 (input_varpool_node): Stream symver.
889 * output.h (do_assemble_symver): Decalre.
890 * symtab.c (symtab_node::dump_base): Dump symver.
891 (symtab_node::verify_base): Verify symver.
892 (symtab_node::resolve_alias): Handle symver.
893 * varasm.c (do_assemble_symver): New function.
894 * varpool.c (varpool_node::assemble_aliases): Use it.
895 * doc/extend.texi: (symver attribute): Document.
896 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
897
898 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
899
900 * target.h (type_context_kind): New enum.
901 (verify_type_context): Declare.
902 * target.def (verify_type_context): New target hook.
903 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
904 * doc/tm.texi: Regenerate.
905 * tree.c (verify_type_context): New function.
906 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
907 Declare.
908 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
909 New function.
910 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
911 (TARGET_VERIFY_TYPE_CONTEXT): Define.
912
913 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
914
915 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
916 * cgraph.h (cgraph_node): Add unit_id and
917 merged_extern_inline.
918 (symbol_table): Add max_unit.
919 (symbol_table::symbol_table): Initialize it.
920 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
921 merged_comdat, merged_extern_inline.
922 (cgraph_node::create_clone): Likewise.
923 (cgraph_node::create_version_clone): Likewise.
924 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
925 calls.
926 * ipa-fnsummary.h (cross_module_call_p): New inline function.
927 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
928 * ipa-inline.c (inline_small_functions): Likewise.
929 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
930 copy merged_comdat and merged_extern_inline.
931 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
932 merged_extern_inline and unit_id.
933 (input_overwrite_node): Stream in these.
934 (input_cgraph_1): Set unit_base.
935 * lto-streamer.h (lto_file_decl_data): Add unit_base.
936 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
937
938 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
939
940 * gcc.c (process_command): Only warn about an ineffective `-x'
941 option if any input files have actually been supplied.
942
943 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
944
945 * doc/install.texi (Options specification): Remove the list of
946 target library subdirectories supporting
947 `--enable-version-specific-runtime-libs'. Document defaults for
948 the option.
949
950 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
951
952 PR rtl-optimization/92283
953 * lra.c (lra): Update reg notes after inheritance sub-pass and
954 before constraint sub-pass.
955
956 2019-11-29 Richard Biener <rguenther@suse.de>
957
958 PR tree-optimization/91003
959 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
960 operand number, avoid handling the non-condition operands of
961 COND_EXPRs as comparisons.
962 (vect_get_constant_vectors): Pass down the operand number.
963 (vect_get_slp_defs): Likewise.
964
965 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
966
967 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
968 generic_expr_could_trap_p to check if the condition of COND_EXPR or
969 VEC_COND_EXPR can trap.
970
971 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
972
973 PR tree-optimization/92677
974 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
975 to zero when dissolving a group of strided accesses.
976
977 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
978
979 PR tree-optimization/92596
980 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
981 operations.
982 (vectorizable_operation): Likewise, instead of relying on
983 vect_get_mask_type_for_stmt to do this.
984 (vect_get_vector_types_for_stmt): Always return a vector type
985 immediately, rather than deferring the choice for boolean results.
986 Use a vector mask type instead of a normal vector if
987 vect_use_mask_type_p.
988 (vect_get_mask_type_for_stmt): Delete.
989 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
990 mask_producers argument and special boolean_type_node handling.
991 (vect_determine_vf_for_stmt): Remove mask_producers argument and
992 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
993 (vect_determine_vectorization_factor): Update call accordingly.
994 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
995 boolean_type_node handling.
996 (vect_slp_analyze_node_operations_1): Likewise.
997
998 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
999
1000 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
1001 (vect_use_mask_type_p): New function.
1002 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
1003 mask precision to the pattern statement.
1004 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
1005 and use it to initialize the new stmt's mask precision.
1006 (search_type_for_mask_1): Delete.
1007 (search_type_for_mask): Replace with...
1008 (integer_type_for_mask): ...this new function. Use the information
1009 cached in the stmt_vec_info.
1010 (vect_recog_bool_pattern): Update accordingly.
1011 (build_mask_conversion): Pass the scalar type associated with the
1012 mask type to append_pattern_def_seq.
1013 (vect_recog_mask_conversion_pattern): Likewise. Call
1014 integer_type_for_mask instead of search_type_for_mask.
1015 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
1016 of search_type_for_mask.
1017 (possible_vector_mask_operation_p): New function.
1018 (vect_determine_mask_precision): Likewise.
1019 (vect_determine_stmt_precisions): Call it.
1020
1021 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1022
1023 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
1024 the slp_tree parameter with a group size parameter.
1025 (vect_get_mask_type_for_stmt): Likewise.
1026 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
1027 (vect_get_mask_type_for_stmt): Likewise.
1028 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
1029 call accordingly.
1030
1031 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1032
1033 * tree-vect-stmts.c (vectorizable_operation): Punt early
1034 on codes that are handled elsewhere.
1035
1036 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1037
1038 * doc/sourcebuild.texi (vect_bool_cmp): Document.
1039 * tree-vect-patterns.c (search_type_for_mask_1): If neither
1040 operand to a boolean comparison is a natural vector mask,
1041 handle both operands like normal integers instead.
1042
1043 2019-11-29 Richard Biener <rguenther@suse.de>
1044
1045 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
1046 out early for too large objects.
1047
1048 2019-11-29 Martin Jambor <mjambor@suse.cz>
1049
1050 PR ipa/92476
1051 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
1052 the summary only if the summary exists.
1053 (find_more_scalar_values_for_callers_subset): Check node_dead in
1054 the summary only if the summary exists.
1055 (ipcp_store_bits_results): Ignore nodes without lattices.
1056 (ipcp_store_vr_results): Likewise.
1057 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
1058 header files required by them.
1059 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
1060
1061 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1062
1063 PR tree-optimization/92710
1064 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
1065 vector mask arguments.
1066
1067 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
1068
1069 * profile-count.c (profile_count::to_cgraph_frequency,
1070 profile_count::to_sreal_scale): Check for compaibility of counts.
1071 * profile-count.h (compatible_p): Make public; add checking for
1072 global0 versus global types.
1073 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
1074
1075 2019-11-29 Richard Biener <rguenther@suse.de>
1076
1077 PR tree-optimization/92715
1078 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
1079 out for uniform vectors and source vectors with less elements
1080 than the destination.
1081
1082 2019-11-29 Martin Liska <mliska@suse.cz>
1083
1084 PR lto/91574
1085 * ipa-devirt.c (types_same_for_odr): Check for existence
1086 of TYPE_NAMEs first.
1087
1088 2019-11-29 Richard Biener <rguenther@suse.de>
1089
1090 PR tree-optimization/92704
1091 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
1092 in loops performing only loads.
1093
1094 2019-11-29 Julian Brown <julian@codesourcery.com>
1095
1096 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
1097 BT_DFLOAT128_PTR) Remove.
1098 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
1099 TI_DFLOAT128_PTR_TYPE): Remove.
1100 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
1101 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
1102 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
1103 dfloat128_ptr_type_node): Remove macros.
1104
1105 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1106
1107 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
1108 formatting.
1109 (*movdi_internal64): Ditto.
1110
1111 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1112
1113 PR target/92602
1114 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
1115 indexed_or_indirect_operand to be memory_operand.
1116 (bswap<mode>2_store for HSI): Ditto.
1117 (bswapdi2_load): Ditto.
1118 (bswapdi2_store): Ditto.
1119
1120 2019-11-28 Martin Liska <mliska@suse.cz>
1121
1122 PR debug/46558
1123 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
1124 headers for translation.
1125
1126 2019-11-28 Martin Liska <mliska@suse.cz>
1127
1128 PR lto/92609
1129 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
1130 consistently.
1131
1132 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1133
1134 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
1135 checks.
1136
1137 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1138
1139 * profile-count.c (profile_count::combine_with_ipa_count): Return
1140 uninitialized count if called on ininitialized count.
1141
1142 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1143
1144 * ipa-inline-transform.c (inline_transform): Scale profile before
1145 redirecting.
1146
1147 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1148
1149 * profile-count.h (profile_count::max): Work on profiles of different
1150 type.
1151 (profile_count::apply_scale): Be sure that ret is not local or global0
1152 type if num is global.
1153
1154 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1155
1156 * profile-count.h (profile_count::max): Work on profiles of different
1157 type.
1158 (profile_count::apply_scale): Be sure that ret is not local or global0
1159 type if num is global.
1160
1161 2019-11-28 Martin Jambor <mjambor@suse.cz>
1162
1163 PR ipa/92697
1164 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
1165 ifunc_resolvers.
1166 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
1167 Removed trailig whitespace.
1168
1169 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1170
1171 * profile-count.h (profile_count::combine_with_ipa_count_within):
1172 Declare.
1173 * profile-count.c (profile_count::combine_with_ipa_count_within):
1174 New.
1175 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
1176 it.
1177
1178 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1179
1180 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
1181 of counters are done same way.
1182
1183 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1184
1185 * ipa-cp.c (update_profiling_info): Fix scaling.
1186
1187 2019-11-28 Richard Biener <rguenther@suse.de>
1188
1189 PR tree-optimization/92645
1190 * tree-inline.c (remap_gimple_stmt): When the return value
1191 is not wanted, elide GIMPLE_RETURN.
1192
1193 2019-11-28 Richard Biener <rguenther@suse.de>
1194
1195 PR tree-optimization/92645
1196 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
1197 conversions inside a mode class. Remove restriction on
1198 preserving the element size.
1199 (simplify_vector_constructor): Deal with the above and for
1200 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
1201 and VEC_PACK_TRUNC_EXPR.
1202
1203 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
1204
1205 Must use push insn to pass varargs arguments of DFmode because
1206 otherwise the middle-end generates wrong code.
1207
1208 PR target/92055
1209 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
1210
1211 2019-11-28 Jakub Jelinek <jakub@redhat.com>
1212
1213 PR tree-optimization/92691
1214 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
1215 in function comment.
1216 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
1217 calls, return !handle_printf_call rather than always returning true.
1218 (check_and_optimize_stmt): Describe return value meaning in function
1219 comment. Formatting fix.
1220
1221 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1222
1223 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
1224 combination of globa0 and global counters..
1225
1226 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
1227
1228 PR target/92566
1229 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
1230 by VECTOR_UNIT_NONE_P instead.
1231
1232 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
1233
1234 * config/i386/sse.md (avx512f_maskcmp<mode>3):
1235 Refine VF to VF_AVX512VL.
1236
1237 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
1238
1239 * config/rs6000/rs6000.md (movsi_internal): Reformat.
1240 (movdi_internal64): Reformat.
1241
1242 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
1243
1244 PR bootstrap/92661
1245 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
1246 builtin if we don't have an actual type.
1247 (builtin_function_type): If the builtin function uses a DFP type
1248 and decimal float has been disabled, then return NULL_TREE.
1249
1250 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1251
1252 PR rtl-optimization/92510
1253 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
1254 of comparison into a comparison with different mode if both imode and
1255 omode are scalar integral modes.
1256
1257 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
1258
1259 PR rtl-optimization/90007
1260 * recog.c (constrain_operands): Permit hard registers too for
1261 memory when LRA is used.
1262
1263 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1264
1265 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
1266 between Coldfire and regular m68k.
1267 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
1268
1269 2019-11-27 Richard Biener <rguenther@suse.de>
1270
1271 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1272 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
1273 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
1274 * optabs-tree.c (supportable_convert_operation): Do not call
1275 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
1276 * optabs-tree.h (supportable_convert_operation): Adjust.
1277 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1278 * doc/tm.texi: Regenerate.
1279 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
1280 * tree-vect-generic.c (expand_vector_conversion): Likewise.
1281 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
1282 unused decl parameter and adjust.
1283 (vect_create_vectorized_promotion_stmts): Likewise.
1284 (vectorizable_conversion): Adjust.
1285
1286 2019-11-27 Richard Biener <rguenther@suse.de>
1287
1288 PR tree-optimization/92690
1289 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
1290 converting elements not originally converted.
1291
1292 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
1293
1294 PR middle-end/92463
1295 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
1296 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
1297 mpfr_rnd_t instead of mp_rnd_t.
1298 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
1299 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
1300 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
1301 Use mpfr_exp_t instead of mp_exp_t.
1302 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
1303 MPFR_RNDx instead of GMP_RNDx.
1304 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
1305 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
1306 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
1307 of mp_rnd_t and remove MPFR_RNDx poisoning.
1308 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
1309
1310 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
1311
1312 PR tree-optimization/91790
1313 * tree-vect-stmts.c (vectorizable_load): Use the adjusted
1314 DR for vect_setup_realignment when first_stmt_info is different
1315 from first_stmt_info_for_drptr.
1316
1317 2019-11-27 Richard Biener <rguenther@suse.de>
1318
1319 PR tree-optimization/92645
1320 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1321 CTORs with just a subset of the original vectors.
1322
1323 2019-11-27 Richard Biener <rguenther@suse.de>
1324
1325 PR middle-end/92674
1326 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
1327 edges and instead record blocks in bitmap.
1328 (gimple_expand_calls_inline): Adjust.
1329 (fold_marked_statements): Delay EH cleanup until all folding is
1330 done.
1331 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
1332 inlining finished.
1333
1334 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1335
1336 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
1337 LRA is enabled.
1338 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
1339 disabled.
1340
1341 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1342
1343 PR debug/92664
1344 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
1345
1346 2019-11-26 Martin Sebor <msebor@redhat.com>
1347
1348 PR tree-optimization/92683
1349 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
1350 inadvertently removed in a previous change. Rename local variable
1351 for clarity.
1352
1353 2019-11-26 Richard Biener <rguenther@suse.de>
1354
1355 PR middle-end/92669
1356 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
1357 NULL pre_order.
1358
1359 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
1360
1361 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
1362
1363 2019-11-26 Jakub Jelinek <jakub@redhat.com>
1364
1365 PR tree-optimization/92644
1366 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1367 next to INTEGER_CST checks.
1368
1369 2019-11-26 Richard Biener <rguenther@suse.de>
1370
1371 PR tree-optimization/92645
1372 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1373 do not build the operation from scalars if the operand is.
1374
1375 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1376
1377 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1378 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1379 definitions.
1380
1381 2019-11-25 Martin Liska <mliska@suse.cz>
1382
1383 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1384 up used dump message.
1385
1386 2019-11-25 Martin Liska <mliska@suse.cz>
1387
1388 PR bootstrap/92653
1389 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1390 too strict checking assert.
1391
1392 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1393
1394 PR c/91985
1395 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1396 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1397 error_mark_node if corresponding global tree node is NULL.
1398 * tree.c (build_common_tree_nodes): Do not initialize
1399 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1400 decimal floating-point not supported.
1401
1402 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1403
1404 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1405 types.
1406
1407 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
1408
1409 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1410 Replace code for non-CONST_INT constants with gcc_unreachable.
1411 * config/m68k/m68k.md (cbranchdi): Don't generate individual
1412 compare and test.
1413 (CMPMODE): New mode_iterator.
1414 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1415 cbranch<mode>4.
1416 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1417 cstore<mode>4.
1418 (cmp<mode>_68881): Remove 'F' constraint from first comparison
1419 operand.
1420 (bit test insns patterns): Use nonimmediate_operand, not
1421 register_operand, for source operands that allow memory in
1422 their constraints.
1423 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1424 Use register_operand, not nonimmediate_operand, for the
1425 destinations.
1426 (DBCC): New mode_iterator.
1427 (dbcc peepholes): Use it to reduce duplication.
1428 (trap): Use const_true_rtx, not const1_rtx.
1429 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1430 from m68k_subword_comparison_operand and changed to handle
1431 SImode.
1432
1433 PR target/91851
1434 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1435 declaration.
1436 (m68k_init_cc): New declaration.
1437 (m68k_output_compare_di, m68k_output_compare_si)
1438 (m68k_output_compare_hi, m68k_output_compare_qi)
1439 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1440 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1441 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1442 m68k_output_branch_float, m68k_output_branch_float_rev):
1443 Likewise.
1444 (valid_dbcc_comparison_p_2, flags_in_68881)
1445 (output_btst): Remove declaration.
1446 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1447 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1448 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1449 (flags_compare_op0, flags_compare_op1, flags_operand1,
1450 flags_operand2, flags_valid): New static variables.
1451 (m68k_find_flags_value, m68k_init_cc): New functions.
1452 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1453 remember_compare_flags): New static functions.
1454 (output_dbcc_and_branch): New argument CODE. Use it, and add
1455 PLUS and MINUS to the possible codes. All callers changed.
1456 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1457 and INSN arguments, add CODE arg. Return the comparison code
1458 to use. All callers changed. Use CODE instead of
1459 next_insn_tests_no_inequality, and replace cc_status management
1460 with changing the return code.
1461 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1462 RTX_COMPARE or RTX_COMM_COMPARE.
1463 (output_move_simode, output_move_qimode): Call
1464 handle_flags_for_move.
1465 (notice_update_cc): Delete function.
1466 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1467 m68k_output_compare_hi, m68k_output_compare_qi,
1468 m68k_output_compare_fp, m68k_output_branch_integer,
1469 m68k_output_branch_integer_rev, m68k_output_scc,
1470 m68k_output_branch_float, m68k_output_branch_float_rev,
1471 m68k_output_scc_float): New functions.
1472 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1473 once at the start, and set flags_valid and flags_operand1 if the
1474 flags are usable.
1475 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1476 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1477 definitions.
1478 (CC_STATUS_INIT): Define.
1479 * config/m68k/m68k.md (flags_valid): New define_attr.
1480 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1481 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1482 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1483 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1484 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1485 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1486 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1487 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1488 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1489 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1490 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1491 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1492 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1493 ctrapqi4, conditional_trap): Delete patterns.
1494 (cbranchdi4_insn): New pattern.
1495 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1496 test high part only. When testing EQ or NE, generate beq0_di
1497 and bne0_di patterns directly.
1498 (cstoredi4): When testing LT or GE, test high part only.
1499 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1500 patterns.
1501 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1502 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1503 cmp2_cf_predicate): New define_mode_attrs.
1504 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1505 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1506 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1507 New patterns.
1508 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1509 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1510 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1511 New patterns.
1512 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1513 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1514 Likewise.
1515 (BTST): New define_mode_iterator.
1516 (btst_predicate, btst_constraint, btst_range): New
1517 define_mode_attrs.
1518 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1519 patterns.
1520 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1521 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1522 patterns): Set attr "flags_valid".
1523 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1524 management. Set attr "flags_valid".
1525 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1526 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1527 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1528 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1529 manual CC_STATUS management.
1530 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1531 unnamed strict_lowpart subhi and subqi patterns): Set attr
1532 "flags_valid".
1533 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1534 Remove code to operate on address regs and assert the case
1535 does not occur.
1536 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1537 manual CC_STATUS_INIT.
1538 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1539 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1540 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1541 one_cmplqi2, unnamed strict_lowpart patterns
1542 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1543 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1544 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1545 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1546 CC_STATUS_INIT.
1547 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1548 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1549 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1550 unnamed strict_low_part patterns for HI and
1551 QI versions): Set attr "flags_valid".
1552 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1553 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1554 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1555 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1556 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1557 (various unnamed peepholes): Adjust compare/branch sequences
1558 for new cbranch patterns.
1559 (dbcc peepholes): Likewise, and output the comparison here
1560 as well.
1561 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1562 (fp_src_operand): Allow constant zero.
1563 (address_reg_operand): New predicate.
1564
1565 * rtl.h (inequality_comparisons_p): Remove declaration.
1566 * recog.h (next_insn_tests_no_inequality): Likewise.
1567 * rtlanal.c (inequality_comparisons_p): Delete function.
1568 * recog.c (next_insn_tests_no_inequality): Likewise.
1569
1570 2019-11-25 Richard Biener <rguenther@suse.de>
1571
1572 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1573 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1574 properly re-building the visited hash-map for each lane.
1575
1576 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1577
1578 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1579 gcn_md_reorg): Remove unused variables.
1580 (gcn_emutls_var_init): Add missing (but unreachable) return
1581 to silence warning.
1582 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1583 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1584 an uninitialized variable.
1585
1586 2019-11-25 Martin Jambor <mjambor@suse.cz>
1587
1588 PR ipa/92109
1589 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1590 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1591 (cgraph_materialize_clone): Move removel from clone tree to the
1592 the new method and use it instead.
1593 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1594 bodies of clones, also remove it from the clone tree.
1595
1596 2019-11-25 Martin Jambor <mjambor@suse.cz>
1597
1598 PR ipa/91956
1599 * ipa-sra.c (process_isra_node_results): Put the new node to the
1600 same comdat group as the original node.
1601
1602 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1603
1604 Build double32 / long-double32 multilibs if needed.
1605
1606 PR target/92055
1607 * config/avr/t-avr:
1608 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1609 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1610 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1611 tm_defines and pass to genmultilib.awk.
1612 * config/avr/genmultilib.awk: Use these variables to add double32
1613 and / or long-double32 multilib(s) as needed.
1614 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1615
1616 2019-11-25 Richard Biener <rguenther@suse.de>
1617
1618 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1619 loop body, defaulted to NULL.
1620 (single_likely_exit): Add exit vector argument
1621 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1622 (number_of_iterations_exit): Likewise.
1623 (number_of_iterations_exit_assumptions): Likewise.
1624 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1625 if not NULL.
1626 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1627 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1628 Compute exit vector around call to single_likely_exit.
1629 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1630 loop body to loop_only_exit_p.
1631 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1632 caller.
1633 (number_of_iterations_exit_assumptions): Get loop body from caller
1634 if not NULL.
1635 (number_of_iterations_exit): Pass through new loop body arg.
1636 (infer_loop_bounds_from_undefined): Get loop body from caller.
1637 (estimate_numbers_of_iterations): Compute loop body once.
1638
1639 2019-11-25 Richard Biener <rguenther@suse.de>
1640
1641 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1642 auto_bb_flag instead of an sbitmap for visited handling.
1643
1644 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1645
1646 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1647 iterator.
1648 (vector_fp_comparison_complex): Likewise.
1649 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1650 define_and_split.
1651 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1652 Likewise.
1653 (vector_lt<mode> for VEC_F): Refactor with
1654 vector_fp_comparison_simple.
1655 (vector_le<mode> for VEC_F): Likewise.
1656 (vector_unge<mode> for VEC_F): Likewise.
1657 (vector_unle<mode> for VEC_F): Likewise.
1658 (vector_ne<mode> for VEC_F): Likewise.
1659 (vector_ungt<mode> for VEC_F): Likewise.
1660 (vector_unlt<mode> for VEC_F): Likewise.
1661 (vector_ltgt<mode> for VEC_F): Refactor with
1662 vector_fp_comparison_complex.
1663 (vector_ordered<mode> for VEC_F): Likewise.
1664 (vector_uneq<mode> for VEC_F): Likewise.
1665 (vector_unordered<mode> for VEC_F): Likewise.
1666
1667 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1668
1669 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1670 COMPARE, representing an overflow detection.
1671
1672 * combine.c (combine_instructions): Record costs for jumps.
1673
1674 * combine.c (can_combine_p): Allow autoinc in jumps.
1675
1676 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1677
1678 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1679 * doc/invoke.texi (max-inline-insns-single-O2,
1680 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1681 early-inlining-insns-O2): Remove documentation.
1682 * ipa-fnsummary.c (analyze_function_body,
1683 compute_fn_summary): Use opt_for_fn when accessing parameters.
1684 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1685 inline_insns_auto, can_inline_edge_by_limits_p,
1686 want_early_inline_function_p, big_speedup_p,
1687 want_inline_small_function_p, want_inline_self_recursive_call_p,
1688 recursive_inlining, compute_max_insns, inline_small_functions):
1689 Likewise.
1690 * opts.c (default_options): Add -O3 defaults for
1691 OPT__param_early_inlining_insns_,
1692 OPT__param_inline_heuristics_hint_percent_,
1693 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1694 * params.opt (-param=early-inlining-insns-O2=,
1695 -param=inline-heuristics-hint-percent-O2=,
1696 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1697 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1698 -param=inline-min-speedup=, -param=inline-unit-growth=,
1699 -param=large-function-growth=, -param=large-stack-frame=,
1700 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1701 -param=max-inline-insns-recursive=,
1702 -param=max-inline-insns-recursive-auto=,
1703 -param=max-inline-insns-single=,
1704 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1705 -param=max-inline-recursive-depth=,
1706 -param=max-inline-recursive-depth-auto=,
1707 -param=min-inline-recursive-probability=,
1708 -param=partial-inlining-entry-probability=,
1709 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1710 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1711 Optimization.
1712
1713 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1714
1715 * ipa-fnsummary.c: Fix comment typos.
1716 * ipa-ref.h: Likewise.
1717 * ipa-predicate.h: Likewise.
1718 * ipa-split.c: Likewise.
1719 * ipa-inline-analysis.c: Likewise.
1720 * ipa-predicate.c: Likewise.
1721 * ipa-devirt.c: Likewise.
1722 * ipa-icf.h: Likewise.
1723 * profile-count.c: Likewise.
1724 * ipa-icf.c: Likewise.
1725 (sem_function::equals_wpa): Fix typos in dump messages.
1726 * ipa-icf-gimple.h: Fix comment typos.
1727 * ipa-inline-transform.c: Likewise.
1728 * ipa-polymorphic-call.c: Likewise.
1729 * ipa-fnsummary.h: Likewise.
1730 * ipa-inline.c: Likewise.
1731 (dump_inline_stats): Fix typo in debug dump message.
1732 * profile-count.h: Fix comment typos.
1733
1734 PR target/92615
1735 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1736 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1737 register_operand, force x into register before storing it into dest.
1738 Formatting fix.
1739
1740 PR middle-end/83859
1741 * doc/extend.texi (attribute access): Fix a typo.
1742
1743 PR rtl-optimization/92610
1744 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1745 cse_cfg_altered is set, even when tem is 0.
1746 (rest_of_handle_cse_after_global_opts): Likewise.
1747
1748 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1749
1750 PR c++/92458
1751 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1752 tree_hash): Move to ...
1753 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1754 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1755 types.
1756 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1757
1758 PR tree-optimization/92618
1759 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1760 containing the auto_vec and a tree.
1761 (undistribute_bitref_for_vector): Handle the case when element type
1762 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1763 fixes.
1764
1765 2019-11-22 Martin Sebor <msebor@redhat.com>
1766
1767 PR middle-end/83859
1768 * attribs.h (struct attr_access): New.
1769 * attribs.c (decl_attributes): Add an informational note.
1770 * builtins.c (check_access): Make extern. Consistently set no-warning
1771 after issuing a warning. Handle calls through function pointers. Set
1772 no-warning.
1773 * builtins.h (check_access): Declare.
1774 * calls.c (rdwr_access_hash): New type.
1775 (rdwr_map): Same.
1776 (init_attr_rdwr_indices): New function.
1777 (maybe_warn_rdwr_sizes): Same.
1778 (initialize_argument_information): Call init_attr_rdwr_indices.
1779 Call maybe_warn_rdwr_sizes.
1780 (get_size_range): Avoid null argument.
1781 * doc/extend.texi (attribute access): Document new attribute.
1782
1783 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1784
1785 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1786 (ACC_LDS_SIZE): Define.
1787 (OTHER_LDS_SIZE): Define.
1788 (LDS_SIZE): Redefine using above.
1789 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1790
1791 2019-11-22 Martin Sebor <msebor@redhat.com>
1792
1793 PR middle-end/88226
1794 * builtins.c (check_nul_terminated_array): New function.
1795 (fold_builtin_0): Remove declaration.
1796 (fold_builtin_1): Same.
1797 (fold_builtin_2): Same.
1798 (fold_builtin_3): Same.
1799 (fold_builtin_strpbrk): Add argument.
1800 (fold_builtin_strspn): Same.
1801 (fold_builtin_strcspn): Same.
1802 (expand_builtin_strcat): Call it. Remove unused argument.
1803 (expand_builtin_stpncpy): Same.
1804 (expand_builtin_strncat): Same.
1805 (expand_builtin_strncpy): Same. Adjust indentation.
1806 (expand_builtin_strcmp): Same.
1807 (expand_builtin_strncmp): Same.
1808 (expand_builtin_fork_or_exec): Same.
1809 (expand_builtin): Handle more built-ins.
1810 (fold_builtin_2): Add argument.
1811 (fold_builtin_n): Make static. Add argument.
1812 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1813 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1814 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1815 (fold_call_stmt): Pass new argument to fold_builtin_n.
1816 * builtins.h: Correct a comment.
1817 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1818 check_nul_terminated_array.
1819 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1820 check_nul_terminated_array.
1821 (handle_builtin_strchr): Same.
1822 (handle_builtin_string_cmp): Same.
1823
1824 2019-11-22 Martin Sebor <msebor@redhat.com>
1825
1826 PR tree-optimization/92501
1827 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1828 handle unterminated arrays. Rename local variables for clarity.
1829
1830 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1831
1832 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1833 granulated_sgprs according to architecture.
1834
1835 2019-11-22 Jan Hubicka <jh@suse.cz>
1836
1837 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1838 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1839 (memory_block_pool::reduce_free_list): ... this one.
1840 (memory_block_pool::trim): New static function.
1841 * memory-block.h (memory_block_pool::freelist_size): New constant
1842 (memory_block_pool::clear_free_list): Rename to ...
1843 (memory_block_pool::reduce_free_list): ... this one.
1844 (memory_block_pool::trim): Declare.
1845
1846 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1847
1848 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1849 vect_cost_for_stmt.
1850 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1851 here rather than...
1852 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1853
1854 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1855
1856 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1857 (bic_cmp0_noout): New pattern.
1858 (bic_cmp0): Likewise.
1859 (neg_scc_insn): Remove pattern.
1860 (not_scc_insn): Likewise.
1861
1862 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1863
1864 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1865
1866 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1867
1868 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1869 pedwarn instead of warning_at for fallthrough not preceding a case
1870 or default label.
1871
1872 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1873
1874 PR tree-optimization/92608
1875 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1876 of dyn_cast.
1877
1878 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1879
1880 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1881 New predicate.
1882 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1883 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1884 special for FP comparisons that need a cror instruction eventually.
1885 (rs6000_emit_fp_cror): New function.
1886 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1887 instruction, for normal FP modes, with HONOR_NANS.
1888 (rs6000_emit_cbranch): Reformat.
1889 * config/rs6000/rs6000.md (fp_rev): New iterator.
1890 (fp_two): New iterator.
1891 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1892 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1893 *cbranch_2insn: New define_insn_and_split.
1894
1895 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1896
1897 PR tree-optimization/92526
1898 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1899 versioning for alignment if the accesses do not have a consistent
1900 mask, rather than asserting that the masks are consistent.
1901
1902 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1903
1904 PR tree-optimization/92595
1905 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1906 check.
1907 (vectorizable_store, vectorizable_load): Likewise.
1908
1909 2019-11-21 Jan Hubicka <jh@suse.cz>
1910
1911 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1912 (resolve_noninline_speculation, inline_small_functions): Avoid
1913 redundant updates.
1914
1915 2019-11-21 Richard Biener <rguenther@suse.de>
1916
1917 * lra.c (lra_insn_recog_data_pool): New.
1918 (free_insn_recog_data): Adjust.
1919 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1920 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1921
1922 2019-11-21 Richard Biener <rguenther@suse.de>
1923
1924 PR tree-optimization/92596
1925 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1926
1927 2019-11-21 Jan Hubicka <jh@suse.cz>
1928
1929 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1930 ready for some vectors to not be allocated.
1931 (evaluate_properties_for_edge): Document better; make
1932 known_vals and known_aggs caller allocated; avoid determining
1933 values of parameters which are not used.
1934 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1935 known_aggs.
1936 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1937 (do_estimate_edge_size): Likewise.
1938 (do_estimate_edge_hints): Likewise.
1939 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1940 values are not known.
1941 (ipa_release_agg_values): Add option to not release vector itself.
1942 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1943
1944 2019-11-21 Richard Biener <rguenther@suse.de>
1945
1946 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1947 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1948 (loop_iterator::loop_iterator): Adjust.
1949 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1950 (compute_dominance_frontiers): ... this. Hoist invariant
1951 get_immediate_dominator call.
1952 (compute_idf): Use a work-set instead of a work-list for more
1953 optimal iteration order and duplicate avoidance.
1954 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1955 the vector all the time, instead pre-allocate the vector only
1956 once.
1957 (delete_update_ssa): Simplify.
1958 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1959
1960 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1961
1962 PR tree-optimization/91355
1963 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1964 for early_bb scaled count with best_bb count comparison.
1965
1966 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1967 preffer -> prefer.
1968 * ipa-inline.c (edge_badness): Likewise.
1969 * lto-streamer.h (class lto_location_cache): Likewise.
1970 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1971 gratutious -> gratuitous.
1972
1973 2019-11-21 Richard Biener <rguenther@suse.de>
1974
1975 Revert
1976 2019-09-17 Richard Biener <rguenther@suse.de>
1977
1978 PR tree-optimization/91790
1979 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1980 use the correct DR for setting up realignment.
1981
1982 2019-11-21 Richard Biener <rguenther@suse.de>
1983
1984 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1985 (equiv_class_obstack): New.
1986 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1987 (perform_var_substitution): Initialize equiv_class_obstack.
1988 (free_var_substitution_info): Free equiv_class_obstack.
1989
1990 2019-11-20 Jan Hubicka <jh@suse.cz>
1991
1992 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1993 edge growth when callee function is very large.
1994 * ipa-inline.h (estimate_min_edge_growth): New.
1995
1996 2019-11-20 Jan Hubicka <jh@suse.cz>
1997
1998 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1999 negative time in calls summary; correct roundoff errors
2000 leading to negative times.
2001 (ipa_merge_fn_summary_after_inlining): Update calls size time table
2002 if present.
2003 (ipa_update_overall_fn_summary): Add RESET parameter.
2004 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
2005 * ipa-inline-transform.c (inline_call): Enable incremental updates.
2006
2007 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2008
2009 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
2010 def types for two-operation SLP.
2011
2012 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2013
2014 PR testsuite/92366
2015 * doc/sourcebuild.texi (vect_char_add): Document.
2016
2017 2019-11-20 Alexandre Oliva <oliva@adacore.com>
2018
2019 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
2020 * function.c (record_final_call): Record even calls that might
2021 have been in the cgraph.
2022 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
2023 callees.
2024
2025 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
2026
2027 * configure.ac: Use https for gcc.gnu.org
2028 * configure: Regenerated.
2029 * doc/install.texi: Use https for gcc.gnu.org.
2030 * doc/sourcebuild.texi: Likewise.
2031
2032 2019-11-20 Julian Brown <julian@codesourcery.com>
2033
2034 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
2035
2036 2019-11-20 Jan Hubicka <jh@suse.cz>
2037
2038 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
2039 parameter and update call_size_time_table.
2040 (ipa_fn_summary::max_size_time_table_size): New constant.
2041 (estimate_calls_size_and_time_1): Break out from ...
2042 (estimate_calls_size_and_time): ... here; implement summary production.
2043 (summarize_calls_size_and_time): New function.
2044 (ipa_call_context::estimate_size_and_time): Bypass
2045 estimate_calls_size_and_time for leaf functions.
2046 (ipa_update_overall_fn_summary): Likewise.
2047 * ipa-fnsummary.h (call_size_time_table): New.
2048 (ipa_fn_summary::account_size_time): Update prototype.
2049
2050 2019-11-20 Joseph Myers <joseph@codesourcery.com>
2051
2052 * doc/invoke.texi (-Wc11-c2x-compat): Document.
2053
2054 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
2055
2056 PR85678
2057 * common.opt (fcommon): Change init to 1.
2058 * doc/invoke.texi (-fcommon): Update documentation.
2059
2060 2019-11-20 Jan Hubicka <jh@suse.cz>
2061
2062 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
2063 to ordinary array.
2064
2065 2019-11-20 Jan Hubicka <jh@suse.cz>
2066
2067 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
2068 Add allocator parameter.
2069 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
2070 (fibonacci_heap<K,V>::m_allocator): New.
2071 (fibonacci_heap<K,V>::m_own_allocator): New.
2072 (fibonacci_heap<K,V>::insert): Use allocator.
2073 (fibonacci_heap<K,V>::extract_min): Likewise.
2074 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
2075 allocator.
2076 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
2077 on stack.
2078 * fibonacci_heap.c: Include alloc-pool
2079 (test_empty_heap): Initialize allocator.
2080 (test_union): Likewise.
2081 * bb-reorder.c: Include alloc-pool.h.
2082 * tracer.c: Inlclude alloc-pool.h.
2083
2084 2019-11-20 Jan Hubicka <jh@suse.cz>
2085
2086 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
2087 Preallocate for 32 entries.
2088 (DFS::worklist): Likewise.
2089 (DFS::DFS): Do not initialize sccstack and worklist.
2090 (DFS::~DFS): Do not release sccstack.
2091
2092 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
2093
2094 PR target/92573
2095 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
2096 Handle UNORDERED if !HONOR_NANS.
2097
2098 2019-11-20 Jan Hubicka <jh@suse.cz>
2099
2100 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
2101 (edge_badness): ... here.
2102 (inline_small_functions): Use monotonicity of badness calculation
2103 to avoid redundant updates.
2104
2105 2019-11-20 Richard Biener <rguenther@suse.de>
2106
2107 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
2108 constructors we are actually analyzing.
2109 (vect_slp_check_for_constructors): Do not vectorize uniform
2110 constuctors, do not dump here.
2111
2112 2019-11-20 Richard Biener <rguenther@suse.de>
2113
2114 PR tree-optimization/92537
2115 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
2116 vectorization validity check...
2117 (vect_slp_analyze_operations): ... here.
2118
2119 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
2120
2121 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
2122 (make_pass_arc_predicate_delay_insns): Likewise.
2123 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
2124 method, remove clone.
2125 (class pass_arc_predicate_delay_insns): Likewise.
2126 (arc_init): Remove registering of ARC specific passes.
2127 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
2128 * config/arc/arc-passes.def: New file.
2129
2130 2019-11-20 Jakub Jelinek <jakub@redhat.com>
2131
2132 PR middle-end/90840
2133 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
2134 and has a mode that doesn't have corresponding integral type.
2135
2136 PR target/90867
2137 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
2138 clear opts->x_ix86_isa_flags{,2} here...
2139 (ix86_valid_target_attribute_inner_p): ... but here when seeing
2140 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
2141
2142 PR c/90898
2143 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
2144 assertion.
2145 (insert_clobbers_for_var): Fix a typo in function comment.
2146
2147 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
2148 Jakub Jelinek <jakub@redhat.com>
2149
2150 PR middle-end/91195
2151 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
2152 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
2153 load.
2154
2155 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
2156
2157 Make 0-series device specs work with older versions of avr-gcc.
2158
2159 PR target/92545
2160 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
2161 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2162 <*link_pm_base_address>: Don't write spec.
2163 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
2164
2165 2019-11-20 Richard Biener <rguenther@suse.de>
2166
2167 PR c/92088
2168 * builtins.c (compute_objsize): Deal with VLAs.
2169
2170 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
2171
2172 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
2173 from common code.
2174 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
2175 call new function.
2176 (power9_sched_reorder2): Call new function.
2177 (rs6000_sched_reorder2): Likewise.
2178
2179 2019-11-18 Jan Hubicka <jh@suse.cz>
2180
2181 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
2182 (estimate_calls_size_and_time): Update.
2183
2184 2019-11-18 Jan Hubicka <jh@suse.cz>
2185
2186 * ipa-inline.c (inlining_speedup): New function.
2187 (edge_badness): Use it.
2188
2189 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
2190 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2191
2192 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
2193 Mark as not having "likely" version.
2194 * config/mips/mips.md (insn_count): The simd_div instruction with
2195 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
2196 (can_delay): Exclude simd_branch.
2197 (defile_delay *): Add simd_branch instructions.
2198 They have one regular delay slot.
2199
2200 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
2201
2202 Revert:
2203 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2204
2205 * cse.c (cse_insn): Delete no-op register moves too.
2206 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2207 Take a second comparison to control the value for NE.
2208 (mask_to_comparison): Handle unsigned comparisons.
2209 (simplify_logical_relational_operation): Likewise. Update call
2210 to comparison_to_mask. Handle AND if !HONOR_NANs.
2211 (simplify_binary_operation_1): Call the above for AND too.
2212
2213 2019-11-19 Martin Liska <mliska@suse.cz>
2214
2215 * toplev.c (general_init): Move the call...
2216 (toplev::main): ... here as we need init_options_struct
2217 being called.
2218
2219 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2220
2221 PR target/79262
2222 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
2223 vec_to_scalar_cost.
2224
2225 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2226
2227 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
2228 (armv7-a): Likewise.
2229 (armv7ve): Likewise.
2230
2231 2019-11-19 Richard Biener <rguenther@suse.de>
2232
2233 PR tree-optimization/92581
2234 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
2235 condition reduction chains gather all conditions involved
2236 for computing the index reduction vector.
2237
2238 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
2239
2240 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2241 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
2242 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
2243 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
2244 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
2245 (aarch64_init_memtag_builtins): New.
2246 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
2247 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
2248 (aarch64_expand_builtin_memtag): New.
2249 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
2250 (AARCH64_BUILTIN_SUBCODE): New macro.
2251 (aarch64_resolve_overloaded_memtag): New.
2252 (aarch64_resolve_overloaded_builtin_general): New. Call
2253 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
2254 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2255 __ARM_FEATURE_MEMORY_TAGGING when enabled.
2256 (aarch64_resolve_overloaded_builtin): Call
2257 aarch64_resolve_overloaded_builtin_general.
2258 * config/aarch64/aarch64-protos.h
2259 (aarch64_resolve_overloaded_builtin_general): New declaration.
2260 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
2261 (TARGET_MEMTAG): Likewise.
2262 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
2263 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
2264 (irg, gmi, subp, addg, ldg, stg): New instructions.
2265 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
2266 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
2267 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
2268 (__arm_mte_get_tag): Likewise.
2269 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
2270 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
2271 * config/arm/types.md (memtag): New.
2272 * doc/invoke.texi (-memtag): Update description.
2273
2274 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
2275
2276 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2277 to define __GCC_ASM_FLAG_OUTPUTS__.
2278 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
2279 (arm_option_params_internal): Swap out targetm.md_asm_adjust
2280 depending on TARGET_THUMB1.
2281 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
2282
2283 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2284
2285 PR target/92549
2286 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
2287
2288 PR middle-end/91450
2289 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
2290 operand is negative and one non-negative, compare the non-negative
2291 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
2292 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
2293 and s2 == 0, unless one of them is known to be negative. Remove
2294 tem2 variable, use tem where tem2 has been used before.
2295
2296 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
2297
2298 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
2299
2300 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2301
2302 PR tree-optimization/92557
2303 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
2304 vmode rather than asserting it always is.
2305
2306 2019-11-19 Richard Biener <rguenther@suse.de>
2307
2308 PR tree-optimization/92554
2309 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
2310 for the actual condition stmt and deal with sign-changes.
2311
2312 2019-11-19 Richard Biener <rguenther@suse.de>
2313
2314 PR tree-optimization/92555
2315 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
2316 for non-SLP stmts.
2317
2318 2019-11-19 Martin Liska <mliska@suse.cz>
2319
2320 PR bootstrap/92540
2321 * config/riscv/riscv.c (riscv_address_insns): Initialize
2322 addr in order to remove boostrap -Wmaybe-uninitialized
2323 error.
2324
2325 2019-11-18 Martin Sebor <msebor@redhat.com>
2326
2327 PR tree-optimization/92493
2328 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
2329 assignment.
2330
2331 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
2332
2333 * cfgloop.c (get_loop_body_in_custom_order): New.
2334 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
2335 * tree-loop-distribution.c (class loop_distribution): New.
2336 (bb_top_order_cmp): Remove.
2337 (bb_top_order_cmp_r): New.
2338 (create_rdg_vertices): Move into class loop_distribution.
2339 (stmts_from_loop): Same as above.
2340 (update_for_merge): Same as above.
2341 (partition_merge_into): Same as above.
2342 (get_data_dependence): Same as above.
2343 (data_dep_in_cycle_p): Same as above.
2344 (update_type_for_merge): Same as above.
2345 (build_rdg_partition_for-vertex): Same as above.
2346 (classify_builtin_ldst): Same as above.
2347 (classify_partition): Same as above.
2348 (share_memory_accesses): Same as above.
2349 (rdg_build_partitions): Same as above.
2350 (pg_add_dependence_edges): Same as above.
2351 (build_partition_graph): Same as above.
2352 (merge_dep_scc_partitions): Same as above.
2353 (break_alias_scc_partitions): Same as above.
2354 (finalize_partitions): Same as above.
2355 (distribute_loop): Same as above.
2356 (bb_top_order_init): New method
2357 (bb_top_order_destroy): New method.
2358 (get_bb_top_order_index_size): New method.
2359 (get_bb_top_order_index_index): New method.
2360 (get_bb_top_order_index_index): New method.
2361 (loop_distribution::execute): New method.
2362 (pass_loop_distribution::execute): Instantiate loop_distribution.
2363
2364 2019-11-18 Jan Hubicka <jh@suse.cz>
2365
2366 PR ipa/92508
2367 * ipa-inline.c (inline_small_functions): Add new edges after reseting
2368 caches.
2369 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2370
2371 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2372
2373 * doc/sourcebuild.texi (vect_check_ptrs): Document.
2374 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2375 * doc/md.texi: Document them.
2376 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2377 internal functions.
2378 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2379 * internal-fn.c (check_ptrs_direct): New macro.
2380 (expand_check_ptrs_optab_fn): Likewise.
2381 (direct_check_ptrs_optab_supported_p): Likewise.
2382 (internal_check_ptrs_fn_supported_p): New fuction.
2383 * tree-data-ref.c: Include internal-fn.h.
2384 (create_ifn_alias_checks): New function.
2385 (create_intersect_range_checks): Use it.
2386 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2387 (optab, cmp_op): Handle it.
2388 (raw_war, unspec): New int attributes.
2389 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2390 constants.
2391 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2392 New predicate.
2393 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2394 expander.
2395 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2396 pattern.
2397
2398 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2399
2400 * tree.c (build_vector_from_ctor): Directly return a zero vector for
2401 empty constructors.
2402
2403 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2404
2405 * cse.c (cse_insn): Delete no-op register moves too.
2406 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2407 Take a second comparison to control the value for NE.
2408 (mask_to_comparison): Handle unsigned comparisons.
2409 (simplify_logical_relational_operation): Likewise. Update call
2410 to comparison_to_mask. Handle AND if !HONOR_NANs.
2411 (simplify_binary_operation_1): Call the above for AND too.
2412
2413 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2414
2415 * fold-const.c (native_encode_vector): Turn into a wrapper function,
2416 splitting the main code out into...
2417 (native_encode_vector_part): ...this new function.
2418 (native_decode_vector_tree): New function.
2419 (fold_view_convert_vector_encoding): Likewise.
2420 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2421 to VECTOR_TYPEs.
2422
2423 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2424
2425 * tree-data-ref.c (create_intersect_range_checks_index): If the
2426 alias pair describes simple WAW and WAR dependencies, just check
2427 whether the first B access overlaps later A accesses.
2428 (create_waw_or_war_checks): New function that performs the same
2429 optimization on addresses.
2430 (create_intersect_range_checks): Call it.
2431
2432 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2433
2434 * lra-constraints.c (valid_address_p): Take the operand and a
2435 constraint as argument. If the operand is a MEM and the constraint
2436 is a memory constraint, check whether the eliminated form of the
2437 MEM already satisfies the constraint.
2438 (process_address_1): Update calls accordingly.
2439
2440 2019-11-18 Tom Tromey <tromey@adacore.com>
2441
2442 * doc/tm.texi: Rebuild.
2443 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2444 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2445
2446 2019-11-18 Richard Biener <rguenther@suse.de>
2447
2448 PR tree-optimization/92516
2449 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2450 argument, hoist bst_map creation/destruction to ...
2451 (vect_analyze_slp): ... here, forming a true graph with
2452 SLP instances being the entries.
2453 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2454 (vect_detect_hybrid_slp): Use one visited set for all
2455 graph entries.
2456 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2457 to hash-sets of slp_tree.
2458 (vect_slp_analyze_operations): Likewise.
2459 (vect_bb_slp_scalar_cost): Remove wrapper.
2460 (vect_bb_vectorization_profitable_p): Use one visited set for
2461 all graph entries.
2462 (vect_schedule_slp_instance): Elide bst_map use.
2463 (vect_schedule_slp): Likewise.
2464
2465 2019-11-18 Richard Biener <rguenther@suse.de>
2466
2467 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2468 was vectorized with just external refs fail.
2469
2470 2019-11-18 Martin Liska <mliska@suse.cz>
2471
2472 PR ipa/92525
2473 * ipa-icf.c (sem_function::init): Unset m_checker
2474 at the end of the function.
2475
2476 2019-11-18 Richard Biener <rguenther@suse.de>
2477
2478 PR tree-optimization/92558
2479 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2480 reducting the width of a reduction vector def update new_phis.
2481
2482 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2483
2484 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2485 and s390*-*-linux-musl* targets.
2486 * configure: Regenerate.
2487
2488 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2489
2490 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2491 (MUSL_DYNAMIC_LINKER64): Define.
2492
2493 2019-11-18 Martin Liska <mliska@suse.cz>
2494
2495 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2496 message for an unknown counter.
2497 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2498 (dbg_cnt_process_opt): Remove unreachable code.
2499
2500 2019-11-18 Martin Liska <mliska@suse.cz>
2501
2502 PR ipa/92529
2503 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2504 Compare LHS types of NOP_EXPR.
2505
2506 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2507
2508 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2509 "initial_pass_name" argument -- by running "*clean_state" pass.
2510 Also free the "initial_pass_name" when done.
2511
2512 2019-11-18 Richard Biener <rguenther@suse.de>
2513
2514 PR rtl-optimization/92462
2515 * alias.c (find_base_term): Restrict the look through ANDs.
2516 (find_base_value): Likewise.
2517
2518 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2519
2520 Add support for AVR devices from the 0-series.
2521
2522 PR target/92545
2523 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2524 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2525 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2526 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2527 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2528 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2529 for spec definitions.
2530 * doc/avr-mmcu.texi: Regenerate.
2531
2532 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2533
2534 PR target/92448
2535 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2536 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2537 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2538 (ix86_reassociation_width): Ditto.
2539 * config/i386/i386-options.c (ix86_option_override_internal):
2540 Replace TARGET_AVX128_OPTIAML with
2541 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2542 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2543 (TARGET_AVX128_OPTIMAL): Deleted.
2544 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2545 DEF_TUNE.
2546
2547 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2548
2549 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2550 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2551 just SI.
2552 (cceq_rev_compare): Rename to...
2553 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2554 just SI.
2555 (define_split for <bd>tf_<mode>): Add SImode first argument to
2556 gen_cceq_ior_compare.
2557
2558 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2559
2560 * common/config/powerpcspe: Delete.
2561
2562 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2563
2564 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2565 output in UNSPEC_WRFFR.
2566
2567 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2568
2569 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2570 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2571
2572 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2573
2574 * tree-data-ref.c (create_intersect_range_checks_index)
2575 (create_intersect_range_checks): Print dump messages.
2576
2577 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2578
2579 * tree-data-ref.c (dump_alias_pair): New function.
2580 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2581
2582 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2583
2584 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2585 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2586 merging data references with different steps.
2587 (create_intersect_range_checks_index): Take a
2588 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2589 Bail out if DR_ALIAS_MIXED_STEPS is set.
2590 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2591 instead of two dr_with_seg_lens. Update call to
2592 create_intersect_range_checks_index.
2593 (create_runtime_alias_checks): Update call accordingly.
2594
2595 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2596
2597 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2598 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2599 (dr_with_seg_len_pair_t::sequencing): New enum.
2600 (dr_with_seg_len_pair_t::flags): New member variable.
2601 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2602 parameter and initialize the flags member variable.
2603 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2604 call accordingly.
2605 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2606 Ensure the two data references in an alias pair are in statement
2607 order, if there is a defined order.
2608 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2609 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2610 swapped the references in a dr_with_seg_len_pair_t. OR together
2611 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2612 try to restore the original dr_with_seg_len order, updating the
2613 flags if that fails.
2614
2615 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2616
2617 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2618 swapping the dr_as based on init values until we've decided
2619 whether to merge them.
2620
2621 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2622
2623 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2624 two accesses in each dr_with_seg_len_pair_t before trying to
2625 combine separate dr_with_seg_len_pair_ts.
2626 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2627 that here.
2628 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2629
2630 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2631
2632 * config/aarch64/aarch64-sve.md
2633 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2634 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2635 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2636 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2637 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2638 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2639 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2640 pattern.
2641 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2642 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2643 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2644 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2645
2646 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2647
2648 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2649 (SVE_4HSI): New mode iterators.
2650 (ANY_EXTEND2): New code iterator.
2651 * config/aarch64/aarch64-sve.md
2652 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2653 Extend to...
2654 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2655 ...this, handling extension to partial modes as well as full modes.
2656 Describe the extension as a predicated rather than unpredicated
2657 extension.
2658 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2659 Likewise extend to...
2660 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2661 ...this, making the same adjustments.
2662 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2663 Likewise extend to...
2664 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2665 ...this, making the same adjustments.
2666 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2667 Likewise extend to...
2668 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2669 ...this, making the same adjustments.
2670 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2671 New pattern.
2672 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2673 extension predicate.
2674 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2675 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2676 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2677 Describe the extension as a predicated rather than unpredicated
2678 extension.
2679 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2680 Likewise. Canonicalize to a constant extension predicate.
2681 * config/aarch64/aarch64-sve-builtins-base.cc
2682 (svld1_gather_extend_impl::expand): Add an extra predicate for
2683 the extension.
2684 (svldff1_gather_extend_impl::expand): Likewise.
2685
2686 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2687
2688 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2689 iterators.
2690 * config/aarch64/aarch64-sve.md
2691 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2692 (gather_load<SVE_24:mode><v_int_container>): ...this.
2693 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2694 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2695 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2696 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2697 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2698 New pattern.
2699 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2700 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2701 Allow the nominal extension predicate to be different from the
2702 load predicate.
2703 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2704 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2705
2706 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2707
2708 * config/aarch64/aarch64-sve.md
2709 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2710 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2711 function.
2712 (aarch64_sve_adjust_stmt_cost): Call it.
2713
2714 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2715
2716 * config/aarch64/aarch64-sve.md
2717 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2718 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2719 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2720 Combine into...
2721 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2722 ...this new pattern, handling extension to partial modes as well
2723 as full modes. Describe the extension as a predicated rather than
2724 unpredicated extension.
2725 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2726 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2727 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2728 Combine into...
2729 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2730 ...this new pattern, handling extension to partial modes as well
2731 as full modes. Describe the extension as a predicated rather than
2732 unpredicated extension.
2733 * config/aarch64/aarch64-sve-builtins.cc
2734 (function_expander::use_contiguous_load_insn): Add an extra
2735 predicate for extending loads.
2736 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2737 (aarch64_sve_adjust_stmt_cost): Likewise.
2738 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2739 the cost of SVE vector stmts.
2740
2741 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2742
2743 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2744 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2745 * config/aarch64/aarch64-sve.md
2746 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2747 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2748 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2749 comment. Avoid new narrower_mask ambiguity.
2750 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2751 (*cond_uxt<mode>_2): Update comment.
2752 (*cond_uxt<mode>_any): Likewise.
2753
2754 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2755
2756 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2757 float modes.
2758 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2759 function.
2760 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2761 new vector float modes.
2762 (aarch64_sve_container_bits): New function.
2763 (aarch64_sve_pred_mode): Likewise.
2764 (aarch64_get_mask_mode): Use it.
2765 (aarch64_sve_element_int_mode): Handle structure modes and partial
2766 modes.
2767 (aarch64_sve_container_int_mode): New function.
2768 (aarch64_vectorize_related_mode): Return SVE modes when given
2769 SVE modes. Handle partial modes, taking the preferred number
2770 of units from the size of the given mode.
2771 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2772 in registers.
2773 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2774 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2775 (aarch64_split_sve_subreg_move): Use the mode form of
2776 aarch64_sve_pred_mode.
2777 (aarch64_secondary_reload): Handle partial modes in the same way
2778 as full big-endian vectors.
2779 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2780 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2781 merging with the Advanced SIMD modes. If two modes have the
2782 same size, try the Advanced SIMD mode first.
2783 (aarch64_simd_valid_immediate): Use the container rather than
2784 the element mode for INDEX constants.
2785 (aarch64_simd_vector_alignment): Make the alignment of partial
2786 SVE vector modes the same as their minimum size.
2787 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2788 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2789 (mov<SVE_ALL:mode>): ...this.
2790 (movmisalign<SVE_FULL:mode>): Extend to...
2791 (movmisalign<SVE_ALL:mode>): ...this.
2792 (*aarch64_sve_mov<mode>_le): Rename to...
2793 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2794 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2795 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2796 partial modes regardless of endianness.
2797 (aarch64_sve_reload_be): Rename to...
2798 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2799 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2800 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2801 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2802 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2803 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2804 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2805 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2806 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2807 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2808 (maskload<SVE_FULL:mode><vpred>): Extend to...
2809 (maskload<SVE_ALL:mode><vpred>): ...this.
2810 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2811 (maskstore<SVE_ALL:mode><vpred>): ...this.
2812 (vec_duplicate<SVE_FULL:mode>): Extend to...
2813 (vec_duplicate<SVE_ALL:mode>): ...this.
2814 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2815 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2816 (sve_ld1r<SVE_FULL:mode>): Extend to...
2817 (sve_ld1r<SVE_ALL:mode>): ...this.
2818 (vec_series<SVE_FULL_I:mode>): Extend to...
2819 (vec_series<SVE_I:mode>): ...this.
2820 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2821 (*vec_series<SVE_I:mode>_plus): ...this.
2822 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2823 new VPRED ambiguity.
2824 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2825 (add<SVE_FULL_I:mode>3): Extend to...
2826 (add<SVE_I:mode>3): ...this.
2827 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2828 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2829 (VPRED, vpred): Likewise.
2830 (Vctype): New iterator.
2831 (vw): Remove SVE modes.
2832
2833 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2834
2835 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2836 (SVE_PARTIAL_I): ...this.
2837 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2838
2839 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2840
2841 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2842 (SVE_FULL): ...this.
2843 (SVE_I): Rename to...
2844 (SVE_FULL_I): ...this.
2845 (SVE_F): Rename to...
2846 (SVE_FULL_F): ...this.
2847 (SVE_BHSI): Rename to...
2848 (SVE_FULL_BHSI): ...this.
2849 (SVE_HSD): Rename to...
2850 (SVE_FULL_HSD): ...this.
2851 (SVE_HSDI): Rename to...
2852 (SVE_FULL_HSDI): ...this.
2853 (SVE_HSF): Rename to...
2854 (SVE_FULL_HSF): ...this.
2855 (SVE_SD): Rename to...
2856 (SVE_FULL_SD): ...this.
2857 (SVE_SDI): Rename to...
2858 (SVE_FULL_SDI): ...this.
2859 (SVE_SDF): Rename to...
2860 (SVE_FULL_SDF): ...this.
2861 (SVE_S): Rename to...
2862 (SVE_FULL_S): ...this.
2863 (SVE_D): Rename to...
2864 (SVE_FULL_D): ...this.
2865 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2866 * config/aarch64/aarch64-sve2.md: Likewise.
2867
2868 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2869
2870 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2871 New option.
2872 * doc/invoke.texi: Document it.
2873 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2874 By default, return VECT_COMPARE_COSTS for SVE.
2875
2876 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2877
2878 * target.h (VECT_COMPARE_COSTS): New constant.
2879 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2880 * doc/tm.texi: Regenerate.
2881 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2882 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2883 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2884 Likewise.
2885 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2886 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2887 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2888 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2889 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2890 (_loop_vec_info::vec_inside_cost): New member variables.
2891 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2892 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2893 (vect_analyze_loop): When autovectorize_vector_modes returns
2894 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2895 vector mode and picking the one with the lowest cost.
2896 (vect_estimate_min_profitable_iters): Record the computed costs
2897 in the loop_vec_info.
2898
2899 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2900
2901 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2902 element type rather than an element mode.
2903 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2904 Use get_vectype_for_scalar_type to query the natural types
2905 for a given element type rather than basing everything on
2906 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2907 query to MAX_FIXED_MODE_SIZE.
2908 (duplicate_and_interleave): Update call accordingly.
2909 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2910
2911 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2912
2913 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2914 optional maximum nunits.
2915 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2916 takes an slp_tree.
2917 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2918 (vect_get_mask_type_for_stmt): Likewise.
2919 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2920 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2921 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2922 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2923 to get an assumed vector type for data references.
2924 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2925 (vect_update_all_shared_vectypes): Likewise.
2926 (vect_build_slp_tree_1): Pass the group size to
2927 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2928 for BB vectorization.
2929 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2930 before building the vectof from scalars.
2931 (vect_analyze_slp_instance): Pass the group size to
2932 get_vectype_for_scalar_type.
2933 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2934 types for BB vectorization here; just handle the case in which
2935 we deferred the choice for booleans.
2936 (vect_get_constant_vectors): Pass the slp_tree to
2937 get_vectype_for_scalar_type.
2938 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2939 (vectorizable_call): Likewise.
2940 (vectorizable_simd_clone_call): Likewise.
2941 (vectorizable_conversion): Likewise.
2942 (vectorizable_shift): Likewise.
2943 (vectorizable_operation): Likewise.
2944 (vectorizable_comparison): Likewise.
2945 (vect_is_simple_cond): Take the slp_tree as argument and
2946 pass it to get_vectype_for_scalar_type.
2947 (vectorizable_condition): Update call accordingly.
2948 (get_vectype_for_scalar_type): Take a group_size argument.
2949 For BB vectorization, limit the the vector to that number
2950 of elements. Also define an overload that takes an slp_tree.
2951 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2952 pass it to get_vectype_for_scalar_type.
2953 (vect_get_vector_types_for_stmt): Add a group_size argument
2954 and pass it to get_vectype_for_scalar_type. Don't use the
2955 cached vector type for BB vectorization if a group size is given.
2956 Handle data references in that case.
2957 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2958 pass it to get_mask_type_for_scalar_type.
2959
2960 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2961
2962 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2963 parameter.
2964 (estimate_edge_time): Use it.
2965 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2966 ret_nonspec_time parameter.
2967
2968 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2969
2970 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2971
2972 2019-11-15 Nick Clifton <nickc@redhat.com>
2973 Szabolcs Nagy <szabolcs.nagy@arm.com>
2974
2975 PR target/65649
2976 * config/microblaze/microblaze.c (print_operand): Print value as long.
2977
2978 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2979
2980 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2981 accidental commit.
2982
2983 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2984
2985 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2986 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2987
2988 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2989
2990 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2991 (gcn_conditional_register_usage): Use constants in place of hard-coded
2992 values.
2993 (gcn_hsa_declare_function_name): Set lower bound for number of
2994 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2995 MAX_NORMAL_VGPR_COUNT.
2996
2997 2019-11-15 Martin Jambor <mjambor@suse.cz>
2998
2999 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
3000 declaration.
3001
3002 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3003
3004 * config/gcn/gcn.c (default_requested_args): New.
3005 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
3006 set with default_requested_args.
3007 (gcn_conditional_register_usage): Limit register usage of non-kernel
3008 functions. Reassign fixed registers if a non-standard set of args is
3009 requested.
3010 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
3011
3012 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
3013
3014 PR ipa/92528
3015 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
3016 aggregate jump function when inlined-to caller has no edge summary.
3017
3018 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3019
3020 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
3021
3022 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3023
3024 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
3025 prologue use of v0.
3026 (print_operand_address): Use v1 for zero vector offset.
3027
3028 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3029
3030 PR tree-optimization/92515
3031 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
3032 types when converting a vector/scalar shift into a vector/vector one,
3033 using tree_nop_conversion_p instead of useless_type_conversion_p.
3034 Move the conversion code to the transform block.
3035
3036 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3037
3038 * read-rtl-function.c
3039 (function_reader::add_fixup_source_location): Take additional
3040 parameter of a column.
3041 (function_reader::maybe_read_location): Optionally parse column
3042 information and pass to add_fixup_source_location.
3043
3044 2019-11-15 Richard Biener <rguenther@suse.de>
3045
3046 PR tree-optimization/92512
3047 * tree-vect-loop.c (check_reduction_path): Fix operand index
3048 computability check. Add check for second use in COND_EXPRs.
3049
3050 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3051
3052 PR target/92515
3053 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
3054 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
3055
3056 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3057
3058 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
3059 register class for VCC_LO and VCC_HI.
3060 (gcn_spill_class): Use SGPR_REGS to spill registers in
3061 VCC_CONDITIONAL_REG.
3062
3063 2019-11-15 Richard Biener <rguenther@suse.de>
3064
3065 PR tree-optimization/92324
3066 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3067 singedness of SLP reduction epilouge operations. Also reduce
3068 the vector width for SLP reductions before doing elementwise
3069 operations if possible.
3070
3071 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3072
3073 * passes.c (skip_pass): Set epilogue_completed if skipping the
3074 pro_and_epilogue pass.
3075
3076 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3077
3078 * passes.c (should_skip_pass_p): Always run "dfinish".
3079
3080 2019-11-15 Richard Biener <rguenther@suse.de>
3081
3082 * ipa-inline.c (inline_small_functions): Move assignment
3083 to next before call destroying edge.
3084
3085 2019-11-15 Richard Biener <rguenther@suse.de>
3086
3087 PR tree-optimization/92039
3088 PR tree-optimization/91975
3089 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
3090 previous change, treat invariants consistently as non-constant.
3091 (tree_estimate_loop_size): Ternary ops with just the first op
3092 constant are not optimized away.
3093
3094 2019-11-15 Jakub Jelinek <jakub@redhat.com>
3095
3096 * gimplify.c (gimplify_call_expr): Don't call
3097 omp_resolve_declare_variant after gimplification.
3098 * omp-general.c (omp_context_selector_matches): For isa that might
3099 match in some other function, defer if in declare simd function.
3100 (omp_context_compute_score): Don't look for " score" in construct
3101 trait set. Set *score to -1 if it can't ever match.
3102 (omp_resolve_declare_variant): If any variants need to be deferred,
3103 don't punt immediately, but compute scores of all variants and if
3104 ther eis a score winner that doesn't need to be deferred, return that.
3105
3106 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
3107
3108 * ipa-comdats.c: Fix comments typo.
3109 * ipa-profile.c: Fix comments typo.
3110 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
3111 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
3112 (gimple_gen_ic_func_profiler): Likewise.
3113 (pass_ipa_tree_profile::gate): Fix comments typo.
3114
3115 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
3116
3117 * ipa-inline.c (inline_small_functions): Update iterator of next.
3118
3119 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3120
3121 * lra-spills.c (assign_spill_hard_regs): Check that the spill
3122 register is suitable for the mode.
3123
3124 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3125
3126 * range-op.h (range_operator::fold_range): Return a bool.
3127 * range-op.cc (range_operator::wi_fold): Assert supported type.
3128 (range_operator::fold_range): Assert supported type and return true.
3129 (operator_equal::fold_range): Return true.
3130 (operator_not_equal::fold_range): Same.
3131 (operator_lt::fold_range): Same.
3132 (operator_le::fold_range): Same.
3133 (operator_gt::fold_range): Same.
3134 (operator_ge::fold_range): Same.
3135 (operator_plus::op1_range): Adjust call to fold_range.
3136 (operator_plus::op2_range): Same.
3137 (operator_minus::op1_range): Same.
3138 (operator_minus::op2_range): Same.
3139 (operator_exact_divide::op1_range): Same.
3140 (operator_lshift::fold_range): Return true and adjust fold_range call.
3141 (operator_rshift::fold_range): Same.
3142 (operator_cast::fold_range): Return true.
3143 (operator_logical_and::fold_range): Same.
3144 (operator_logical_or::fold_range): Same.
3145 (operator_logical_not::fold_range): Same.
3146 (operator_bitwise_not::fold_range): Adjust call to fold_range.
3147 (operator_bitwise_not::op1_range): Same.
3148 (operator_cst::fold_range): Return true.
3149 (operator_identity::fold_range): Return true.
3150 (operator_negate::fold_range): Return true and adjust fold_range call.
3151 (operator_addr_expr::fold_range): Return true.
3152 (operator_addr_expr::op1_range): Adjust call to fold_range.
3153 (range_cast): Same.
3154 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
3155 (range_fold_unary_symbolics_p): Same.
3156
3157 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3158
3159 PR tree-optimization/92506
3160 * range-op.cc (range_operator::fold_range): Start with range undefined.
3161 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
3162 overflow is varying.
3163
3164 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3165
3166 * range-op.cc (*operator*::*range): Remove calls to
3167 range_intersect, range_invert, and range_union in favor of calling
3168 the in-place API methods.
3169 (range_tests): Same.
3170 * range.cc (range_intersect): Remove.
3171 (range_union): Remove.
3172 (range_invert): Remove.
3173 * range.h (range_intersect): Remove.
3174 (range_union): Remove.
3175 (range_intersect): Remove.
3176
3177 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
3178
3179 PR rtl-optimization/92430
3180 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
3181 (pass_jump_after_combine::execute): Perform jump threading
3182 unconditionally.
3183
3184 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3185 Doug Rupp <rupp@adacore.com>
3186 Olivier Hainque <hainque@adacore.com>
3187
3188 * config.gcc: Collapse the arm-vxworks entries into
3189 a single arm-wrs-vxworks7* one, bpabi based. Update
3190 the default cpu from arm8 to armv7-a
3191 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
3192 we always use ARM_UNWIND_INFO.
3193 (DWARF2_UNWIND_INFO): Remove redefinition.
3194 (ARM_TARGET2_DWARF_FORMAT): Likewise.
3195 (VXWORKS_PERSONALITY): Define, to "llvm".
3196 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
3197
3198 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3199
3200 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
3201 _VX_CPU instead of CPU and handle arm_arch8.
3202
3203 2019-11-14 Doug Rupp <rupp@adacore.com>
3204 Olivier Hainque <hainque@adacore.com>
3205 Jerome Lambourg <lambourg@adacore.com>
3206
3207 * config.gcc: Handle aarch64*-wrs-vxworks7*.
3208 * config/aarch64/aarch64-vxworks.h: New file.
3209 * config/aarch64/t-aarch64-vxworks: New file.
3210
3211 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
3212 Olivier Hainque <hainque@adacore.com>
3213
3214 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
3215 definition, pointless with a VxWorks specific version
3216 of crtstuff.
3217 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
3218 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
3219 New local macros, controlling the addition of vxworks specific
3220 crtstuff objects depending on the EH mechanism and kind of
3221 module being linked.
3222 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
3223
3224 2019-11-06 Pat Bernardi <bernardi@adacore.com>
3225 Jerome Lambourg <lambourg@adacore.com>
3226 Olivier Hainque <hainque@adacore.com>
3227
3228 * config.gcc: Add comment to introduce the TARGET_VXWORKS
3229 common macro definitions, conveying VXWORKS7 or 64bit general
3230 variations. Add a block to set gcc_cv_initfini_array
3231 unconditionally to "yes" for VxWorks7.
3232 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
3233 by default. Update some comments.
3234 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
3235 default, to be added the end of VXWORKS_LIBS_RTP.
3236 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
3237 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
3238 redefine.
3239 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
3240 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
3241 to account for the now available TLS abilities.
3242 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
3243 (VXWORKS_HAVE_TLS): Likewise.
3244
3245 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3246
3247 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
3248 (vect_slp_convert_to_external): Likewise.
3249 (vect_slp_analyze_node_operations): If analysis fails, try building
3250 the node from scalars instead.
3251
3252 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3253
3254 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
3255 between vector types.
3256 * tree-vect-stmts.c (vectorizable_conversion): Extend the
3257 non-widening and non-narrowing path to handle standard
3258 conversion codes, if the target supports them.
3259 * expr.c (convert_move): Try using the extend and truncate optabs
3260 for vectors.
3261 * optabs-tree.c (supportable_convert_operation): Likewise.
3262 * config/aarch64/iterators.md (Vnarroqw): New iterator.
3263 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
3264 (trunc<mode><Vnarrowq>2): New patterns.
3265
3266 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3267
3268 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
3269 require vectype and nunits_vectype to have the same size;
3270 instead assert that nunits_vectype has at least as many
3271 elements as vectype. Don't compute a separate nunits_vectype
3272 if the scalar type is obviously the same as vectype's.
3273 Tweak dump messages.
3274
3275 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3276
3277 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
3278 function.
3279 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
3280 (TARGET_VECTORIZE_RELATED_MODE): Define.
3281
3282 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3283
3284 * tree-vectorizer.h (vec_info::mode_set): New typedef.
3285 (vec_info::used_vector_mode): New member variable.
3286 (vect_chooses_same_modes_p): Declare.
3287 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
3288 chosen vector mode in vec_info::used_vector_mode.
3289 (vect_chooses_same_modes_p): New function.
3290 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
3291 the same vector statements multiple times.
3292 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3293
3294 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3295
3296 * machmode.h (opt_machine_mode::operator==): New function.
3297 (opt_machine_mode::operator!=): Likewise.
3298 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
3299 (get_related_vectype_for_scalar_type): Delete.
3300 (get_vectype_for_scalar_type_and_size): Declare.
3301 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
3302 whether analysis passed or failed, and with what vector modes.
3303 Use related_vector_mode to check whether trying a particular
3304 vector mode would be redundant with the autodetected mode,
3305 and print a dump message if we decide to skip it.
3306 * tree-vect-loop.c (vect_analyze_loop): Likewise.
3307 (vect_create_epilog_for_reduction): Use
3308 get_related_vectype_for_scalar_type instead of
3309 get_vectype_for_scalar_type_and_size.
3310 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
3311 with...
3312 (get_related_vectype_for_scalar_type): ...this new function.
3313 Take a starting/"prevailing" vector mode rather than a vector size.
3314 Take an optional nunits argument, with the same meaning as for
3315 related_vector_mode. Use related_vector_mode when not
3316 auto-detecting a mode, falling back to mode_for_vector if no
3317 target mode exists.
3318 (get_vectype_for_scalar_type): Update accordingly.
3319 (get_same_sized_vectype): Likewise.
3320 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
3321
3322 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3323
3324 * tree-vect-stmts.c (vectorizable_call): Require the types
3325 to have the same size.
3326
3327 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3328
3329 * tree-vect-stmts.c (vectorizable_call): If an operand is
3330 constant or external, use get_vectype_for_scalar_type
3331 rather than get_same_sized_vectype to get its vector type.
3332 (vectorizable_conversion, vectorizable_shift): Likewise.
3333 (vectorizable_operation): Likewise.
3334
3335 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3336
3337 * tree-vectorizer.h (vec_info::vector_size): Replace with...
3338 (vec_info::vector_mode): ...this new field.
3339 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
3340 (vect_analyze_loop, vect_transform_loop): Likewise.
3341 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
3342 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3343 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3344 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3345 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3346
3347 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3348
3349 * target.h (vector_sizes, auto_vector_sizes): Delete.
3350 (vector_modes, auto_vector_modes): New typedefs.
3351 * target.def (autovectorize_vector_sizes): Replace with...
3352 (autovectorize_vector_modes): ...this new hook.
3353 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3354 Replace with...
3355 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
3356 * doc/tm.texi: Regenerate.
3357 * targhooks.h (default_autovectorize_vector_sizes): Delete.
3358 (default_autovectorize_vector_modes): New function.
3359 * targhooks.c (default_autovectorize_vector_sizes): Delete.
3360 (default_autovectorize_vector_modes): New function.
3361 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
3362 of autovectorize_vector_sizes. Use the number of units in the mode
3363 to calculate the maximum VF.
3364 * omp-low.c (omp_clause_aligned_alignment): Use
3365 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3366 Use a loop based on related_mode to iterate through all supported
3367 vector modes for a given scalar mode.
3368 * optabs-query.c (can_vec_mask_load_store_p): Use
3369 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3370 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3371 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3372 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3373 Replace with...
3374 (aarch64_autovectorize_vector_modes): ...this new function.
3375 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3376 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3377 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3378 (arc_autovectorize_vector_modes): ...this new function.
3379 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3380 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3381 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3382 (arm_autovectorize_vector_modes): ...this new function.
3383 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3384 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3385 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3386 (ix86_autovectorize_vector_modes): ...this new function.
3387 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3388 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3389 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3390 (mips_autovectorize_vector_modes): ...this new function.
3391 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3392 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3393
3394 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3395
3396 * tree-vect-stmts.c (vectorizable_shift): Check the number
3397 of vector elements as well as the type mode when deciding
3398 whether an op1_vectype is compatible. Reuse the result of
3399 this check when generating vector statements.
3400
3401 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3402
3403 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3404 targetm.vectorize.preferred_simd_mode returns an integer mode,
3405 use mode_for_vector to decide what the vector type's mode
3406 should actually be. Use build_vector_type_for_mode instead
3407 of build_vector_type.
3408
3409 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3410
3411 * target.def (get_mask_mode): Take a vector mode itself as argument,
3412 instead of properties about the vector mode.
3413 * doc/tm.texi: Regenerate.
3414 * targhooks.h (default_get_mask_mode): Update to reflect new
3415 get_mode_mask interface.
3416 * targhooks.c (default_get_mask_mode): Likewise. Use
3417 related_int_vector_mode.
3418 * optabs-query.c (can_vec_mask_load_store_p): Update call
3419 to get_mask_mode.
3420 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3421 first that the original mode really is a vector.
3422 * tree.c (build_truth_vector_type_for): Likewise.
3423 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3424 get_mode_mask interface.
3425 (aarch64_expand_sve_vcond): Update call accordingly.
3426 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3427 get_mode_mask interface.
3428 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3429
3430 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3431
3432 * tree.h (build_truth_vector_type): Delete.
3433 (build_same_sized_truth_vector_type): Likewise.
3434 * tree.c (build_truth_vector_type): Rename to...
3435 (build_truth_vector_type_for): ...this. Make static and take
3436 a vector type as argument.
3437 (truth_type_for): Update accordingly.
3438 (build_same_sized_truth_vector_type): Delete.
3439 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3440 instead of build_same_sized_truth_vector_type.
3441 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3442 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3443 * tree-vect-patterns.c (build_mask_conversion): Likeise.
3444 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3445 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3446 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3447 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3448 (vectorizable_store, vectorizable_condition): Likewise.
3449 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3450 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3451 build_truth_vector_type.
3452 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3453 Use truth_type_for instead of build_same_sized_truth_vector_type.
3454 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3455
3456 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3457
3458 * tree.h (build_truth_vector_type_for_mode): Declare.
3459 * tree.c (build_truth_vector_type_for_mode): New function,
3460 split out from...
3461 (build_truth_vector_type): ...here.
3462 (build_opaque_vector_type): Fix head comment.
3463 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3464 vec_info parameter.
3465 (vect_halve_mask_nunits): Replace vec_info parameter with the
3466 mode of the new vector.
3467 (vect_double_mask_nunits): Likewise.
3468 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3469 (vect_double_mask_nunits): Likewise.
3470 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3471 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3472 to vect_halve_mask_nunits, getting the required mode from the unpack
3473 patterns.
3474 (vect_set_loop_condition_masked): Update call accordingly.
3475 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3476 parameter and update call to vect_double_mask_nunits.
3477 (vectorizable_conversion): Update call accordingly.
3478 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3479 (vectorizable_call): Update call accordingly.
3480 (supportable_widening_operation): Update call to
3481 vect_halve_mask_nunits.
3482 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3483 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3484
3485 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3486
3487 * machmode.h (mode_for_int_vector): Delete.
3488 (related_int_vector_mode): Declare.
3489 * stor-layout.c (mode_for_int_vector): Delete.
3490 (related_int_vector_mode): New function.
3491 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3492 instead of mode_for_int_vector.
3493 (expand_vec_perm_const): Likewise.
3494 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3495 (aarch64_evpc_sve_tbl): Likewise.
3496 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3497 (s390_expand_vcond): Likewise.
3498
3499 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3500
3501 * target.def (related_mode): New hook.
3502 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3503 * doc/tm.texi: Regenerate.
3504 * targhooks.h (default_vectorize_related_mode): Declare.
3505 * targhooks.c (default_vectorize_related_mode): New function.
3506 * machmode.h (related_vector_mode): Declare.
3507 * stor-layout.c (related_vector_mode): New function.
3508 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3509 * optabs-query.c (qimode_for_vec_perm): Likewise.
3510 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3511 (vectorizable_store, vectorizable_load): Likewise
3512
3513 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3514
3515 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3516 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3517 * config/arm/arm-c.c (arm_cpu_builtins): Define
3518 __GCC_ASM_FLAG_OUTPUTS__.
3519 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3520 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3521 Define __GCC_ASM_FLAG_OUTPUTS__.
3522 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3523 * doc/extend.texi (FlagOutputOperands): Add documentation
3524 for ARM and AArch64.
3525
3526 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3527 * config/arm/predicates.md (nz_comparison_operator): Rename
3528 from noov_comparison_operator.
3529 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3530 (arm_gen_dicompare_reg): Likewise.
3531 (maybe_get_arm_condition_code): Likewise.
3532 (thumb1_final_prescan_insn): Likewise.
3533 (arm_emit_coreregs_64bit_shift): Likewise.
3534 * config/arm/arm.md (addsi3_compare0): Likewise.
3535 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3536 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3537 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3538 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3539 (*mulsi3addsi_compare0_scratch): Likewise.
3540 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3541 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3542 (*zeroextractsi_compare0_scratch): Likewise.
3543 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3544 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3545 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3546 (andsi_not_shiftsi_si_scc): Likewise.
3547 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3548 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3549 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3550 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3551 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3552 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3553 (return_addr_mask, *check_arch2): Likewise.
3554 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3555 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3556 (compare_scc splitters): Likewise.
3557 (movcond_addsi): Likewise.
3558 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3559 (*thumb2_addsi3_compare0_scratch): Likewise.
3560 (*thumb2_mulsi_short_compare0): Likewise.
3561 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3562 (compare peephole2s): Likewise.
3563 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3564 nz_comparison_operator names.
3565 (cbranchsi4_insn): Likewise.
3566
3567 * config/arm/constraints.md (c): Use cc_register predicate.
3568
3569 * config/aarch64/constraints.md (c): New constraint.
3570
3571 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3572
3573 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3574 ipa_merge_fn_summary_after_inlining): Micro optimize.
3575
3576 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3577
3578 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3579
3580 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3581
3582 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3583 (ipa_value_range_from_jfunc): New function.
3584 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3585 known_value_ranges parameter; use it to evalulate conditions.
3586 (evaluate_properties_for_edge): Compute known value ranges.
3587 (ipa_fn_summary_t::duplicate): Update use of
3588 evaluate_conditions_for_known_args.
3589 (estimate_ipcp_clone_size_and_time): Likewise.
3590 (ipa_merge_fn_summary_after_inlining): Likewise.
3591 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3592
3593 2019-11-14 Martin Liska <mliska@suse.cz>
3594
3595 * ipa-inline.c (want_inline_small_function_p): Use
3596 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3597 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3598
3599 2019-11-14 Martin Liska <mliska@suse.cz>
3600
3601 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3602 of a callee to get value of the param.
3603 * ipa-inline.c (inline_insns_auto): Use proper
3604 opt_for_fn.
3605 * opts.c (maybe_default_option): Do not overwrite param
3606 value if optimization level does not match. Note that
3607 params usually have default value set via Init() keyword.
3608 * params.opt: Remove -param=max-inline-insns-auto-O2.
3609 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3610 * doc/invoke.texi: Remove documentation of
3611 max-inline-insns-auto-O2.
3612
3613 2019-11-14 Martin Liska <mliska@suse.cz>
3614
3615 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3616 Do not initialize m_other_count.
3617 (switch_conversion::collect): Do not count m_default_count and
3618 m_other_count as we use frequencies for edges.
3619 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3620
3621 2019-11-14 Martin Liska <mliska@suse.cz>
3622
3623 PR other/92329
3624 * doc/invoke.texi: Document -fallocation-dce.
3625
3626 2019-11-14 Martin Liska <mliska@suse.cz>
3627
3628 PR target/92389
3629 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3630 PTA_ICELAKE_CLIENT which is later interited by
3631 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3632
3633 2019-11-14 Martin Liska <mliska@suse.cz>
3634
3635 * ipa-icf.c (sem_item_optimizer::execute): Save
3636 loaded_symbols.
3637 (sem_item_optimizer::parse_nonsingleton_classes):
3638 Return number of loaded symbols.
3639 (sem_item_optimizer::merge_classes): Print
3640 statistics about totally needed symbols.
3641 * ipa-icf.h (parse_nonsingleton_classes): Change return
3642 type.
3643 (merge_classes): Add one argument.
3644
3645 2019-11-14 Martin Liska <mliska@suse.cz>
3646
3647 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3648 func_checker::hash_operand by handling of FIELD_DECLs.
3649
3650 2019-11-14 Martin Liska <mliska@suse.cz>
3651
3652 * ipa-icf-gimple.h (func_checker::func_checker): Add
3653 default constructor.
3654 * ipa-icf.c (sem_function::init): Make operand_equal_p
3655 and hash_operand public.
3656 (sem_item::add_expr): Remove.
3657 (sem_item::add_type): Remove.
3658 (sem_function::hash_stmt): Use m_checker for hashing
3659 of GIMPLE statements.
3660 (sem_function::parse): Init with checker.
3661 (sem_variable::parse): Pass NULL as checker.
3662 (sem_item_optimizer::parse_funcs_and_vars):
3663 Pass checker to ::parse function.
3664 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3665 (sem_variable::parse): New function.
3666 (sem_variable::get_hash): Only return computed hash value.
3667 (sem_variable::init): Initialize hash of a variable.
3668 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3669 to couple of functions as a new argument.
3670
3671 2019-11-14 Martin Liska <mliska@suse.cz>
3672
3673 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3674 bail out reason.
3675 (func_checker::compare_gimple_assign): Likewise.
3676
3677 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3678
3679 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3680 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3681 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3682
3683 * omp-general.c (omp_context_name_list_prop): New function.
3684 (omp_context_selector_matches): Use it. Return 0 if it returns
3685 NULL.
3686 (omp_context_selector_props_compare): Allow equivalency of an
3687 identifier and a string literal containing no embedded zeros.
3688
3689 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3690
3691 * range-op.cc (RANGE3): Remove.
3692 (range_tests): Remove all selftest that check for multi-ranges.
3693 Put tests in namespace selftest.
3694 * selftest.h: Move range_tests into namespace selftest.
3695 * value-range.h (class value_range): Unfriend range_tests.
3696
3697 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3698
3699 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3700 normalize_symbolics and normalize_addresses working in place.
3701 (range_fold_unary_symbolics_p): Same.
3702 (range_fold_unary_symbolics_p): Same.
3703 * value-range.cc (num_pairs): Same.
3704 (lower_bound): Same.
3705 (upper_bound): Same.
3706 (contains_p): Same.
3707 (normalize_addresses): Same.
3708 (normalize_symbolics): Same.
3709 * value-range.h (normalize_symbolics): Same.
3710 (normalize_addresses): Same.
3711
3712 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3713
3714 PR ipa/91682
3715 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3716 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3717 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3718 (ipa_agg_jump_function): Remove member function equal_to.
3719 (ipa_agg_jump_function_p): Remove typedef.
3720 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3721 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3722 information for aggregate jump function.
3723 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3724 record last definition statement.
3725 (load_from_unmodified_param_or_agg): New function.
3726 (ipa_known_agg_contents_list): Add new field type and value, remove
3727 field constant.
3728 (build_agg_jump_func_from_list): Rename parameter const_count to
3729 value_count, build aggregate jump function from ipa_load_agg_data.
3730 (analyze_agg_content_value): New function.
3731 (extract_mem_content): Analyze memory store assignment to prepare
3732 information for aggregate jump function generation.
3733 (determine_known_aggregate_parts): Add new parameter fbi, remove
3734 parameter aa_walk_budeget_p.
3735 (update_jump_functions_after_inlining): Update aggregate jump function.
3736 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3737 (try_make_edge_direct_simple_call): Add new parameter new_root.
3738 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3739 new_root_info.
3740 (update_indirect_edges_after_inlining): Pass new argument to
3741 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3742 (ipa_write_jump_function): Write aggregate jump function to file.
3743 (ipa_read_jump_function): Read aggregate jump function from file.
3744 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3745 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3746 (ipa_agg_value_from_node): Likewise.
3747 (ipa_agg_value_set_from_jfunc): Likewise.
3748 (propagate_vals_across_arith_jfunc): Likewise.
3749 (propagate_aggregate_lattice): Likewise.
3750 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3751 (propagate_vals_across_pass_through): Call
3752 propagate_vals_across_arith_jfunc.
3753 (get_clone_agg_value): Move forward.
3754 (propagate_aggs_across_jump_function): Handle value propagation for
3755 aggregate jump function.
3756 (agg_jmp_p_vec_for_t_vec): Remove.
3757 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3758 with vec<ipa_agg_value>.
3759 (copy_plats_to_inter, intersect_with_plats): Likewise.
3760 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3761 (intersect_aggregate_with_edge): Likewise.
3762 (find_aggregate_values_for_callers_subset): Likewise.
3763 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3764 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3765 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3766 (gather_context_independent_values): Likewise.
3767 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3768 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3769 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3770 (evaluate_properties_for_edge): Likewise.
3771 (estimate_edge_devirt_benefit): Likewise.
3772 (estimate_edge_size_and_time): Likewise.
3773 (estimate_calls_size_and_time): Likewise.
3774 (ipa_call_context::ipa_call_context): Likewise.
3775 (estimate_ipcp_clone_size_and_time): Likewise.
3776 * ipa-fnsummary.h (ipa_call_context): Replace
3777 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3778 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3779 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3780 (do_estimate_edge_size): Likewise.
3781 (do_estimate_edge_hints): Likewise.
3782
3783 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3784
3785 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3786 binary operations.
3787
3788 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3789
3790 * ipa-profile.c (check_argument_count): Check properly that e_info
3791 is non-NULL; do not check descriptors.
3792
3793 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3794
3795 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3796 check for ipa profiles.
3797
3798 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3799
3800 PR c++/92421
3801 * ipa-prop.c (update_indirect_edges_after_inlining):
3802 Mark parameter as used.
3803 * ipa-inline.c (recursive_inlining): Reset node cache
3804 after inlining.
3805 (inline_small_functions): Remove checking ifdef.
3806 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3807 cache consistency.
3808
3809 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3810
3811 PR ipa/92498
3812 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3813 is NULL.
3814 (ipa_profile): Fix reversed test.
3815
3816 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3817
3818 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3819 (propagate_constants_topo): Fix typo.
3820
3821 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3822
3823 * Makefile.in (OBJS): Add value-range.o.
3824 (GTFILES): Add value-range.h.
3825 * gengtype.c (open_base_files): Add value-range.h to list of
3826 header files.
3827 * tree-vrp.c: Move the following value_range related functions:
3828 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3829 constant_p, set_undefined, set_varying, may_contain_p,
3830 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3831 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3832 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3833 value_inside_range, ranges_from_anti_range, union_ranges,
3834 intersect_ranges, intersect_helper, union_helper, union_,
3835 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3836 upper_bound, contains_p, invert, intersect...
3837 * value-range.cc: ...to here.
3838 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3839 associated inline methods from here...
3840 * value-range.h: ...to here.
3841
3842 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3843
3844 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3845 instead of asserting its value.
3846
3847 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3848
3849 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3850 constructors and set methods so value_range_kind is the last
3851 argument and defaults to VR_RANGE.
3852 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3853 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3854 * ipa-prop.c (ipa_get_value_range): Same.
3855 (ipa_compute_jump_functions_for_edge): Same.
3856 * range-op.cc (value_range_from_overflowed_bounds): Same.
3857 (operator_cast::op1_range): Same.
3858 (range_tests): Same.
3859 * range.cc (range_nonzero): Same.
3860 * tree-ssanames.c (get_range_info): Same.
3861 * tree-vrp.c (value_range_equiv::set): Same.
3862 (value_range::value_range): Same.
3863 (value_range_equiv::value_range_equiv): Same.
3864 (value_range_equiv::update): Same.
3865 (value_range_equiv::deep_copy): Same.
3866 (value_range_equiv::move): Same.
3867 (value_range_equiv::set_undefined): Same.
3868 (value_range::set): Same.
3869 (value_range::set_nonzero): Same.
3870 (ranges_from_anti_range): Same.
3871 (extract_range_from_plus_minus_expr): Same.
3872 (value_range::intersect_helper): Same.
3873 (value_range_equiv::intersect): Same.
3874 (value_range::union_helper): Same.
3875 (value_range_equiv::union_): Same.
3876 (value_range::normalize_symbolics): Same.
3877 (value_range::invert): Same.
3878 (determine_value_range_1): Same.
3879 * tree-vrp.h (class value_range): Same.
3880 (class value_range_equiv): Same.
3881 * vr-values.c (set_value_range_to_nonnegative): Same.
3882 (set_value_range_to_truthvalue): Same.
3883 (vr_values::update_value_range): Same.
3884 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3885 (vr_values::extract_range_from_binary_expr): Same.
3886 (vr_values::extract_range_from_comparison): Same.
3887 (vr_values::extract_range_basic): Same.
3888 (vr_values::adjust_range_with_scev): Same.
3889 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3890 (vr_values::extract_range_from_phi_node): Same.
3891
3892 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3893
3894 * tree-dump.c (dequeue_and_dump): Print first tree operand
3895 for VIEW_CONVERT_EXPR.
3896
3897 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3898
3899 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3900 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3901 * real.c (get_max_float): Add norm_max argument.
3902 * real.h (get_max_float): Update prototype.
3903 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3904 get_max_float.
3905
3906 2019-11-13 Martin Liska <mliska@suse.cz>
3907
3908 * dbgcnt.c (test_sorted_dbg_counters): New.
3909 (dbgcnt_c_tests): Likewise.
3910 * selftest-run-tests.c (selftest::run_tests): Likewise.
3911 * selftest.h (dbgcnt_c_tests): Likewise.
3912
3913 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3914 Martin Jambor <mjambor@suse.cz>
3915
3916 PR ipa/92454
3917 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3918 (identify_dead_nodes): Likewise.
3919
3920 2019-11-13 Martin Liska <mliska@suse.cz>
3921
3922 * ipa-icf.c (sem_function::equals_private): Do not overuse
3923 push/pop_cfun functions.
3924
3925 2019-11-13 Martin Liska <mliska@suse.cz>
3926
3927 * common.opt: Document change of -fdbg-cnt option.
3928 * dbgcnt.c (DEBUG_COUNTER): Remove.
3929 (dbg_cnt_is_enabled): Remove.
3930 (dbg_cnt): Work with new intervals.
3931 (dbg_cnt_set_limit_by_index): Set to new
3932 list of intervals.
3933 (dbg_cnt_set_limit_by_name): Likewise.
3934 (dbg_cnt_process_single_pair): Process new format.
3935 (dbg_cnt_process_opt): Likewise.
3936 (dbg_cnt_list_all_counters): Likewise.
3937 * doc/invoke.texi: Document change of -fdbg-cnt option.
3938 (cmp_tuples): New.
3939
3940 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3941
3942 * ipa-inline.c (ipa_inline): Check that function is defined before
3943 flattening.
3944
3945 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3946 Julian Brown <julian@codesourcery.com>
3947
3948 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3949 flag_worker_partitioning is not set.
3950 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3951 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3952
3953 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3954
3955 * config/gcn/gcn-run.c (heap_region): New global variable.
3956 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3957 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3958 (get_kernarg_region): Move contents to ....
3959 (get_memory_region): .... here.
3960 (get_heap_region): New function.
3961 (init_device): Initialize the heap_region.
3962 (device_malloc): Add region parameter.
3963 (struct kernargs): Move heap ....
3964 (heap): ... to global scope.
3965 (main): Allocate heap separate to kernargs.
3966
3967 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3968
3969 * ipa-prop.c (ipa_print_node_jump_functions,
3970 ipa_print_node_params): Print info about missing summaries.
3971
3972 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3973
3974 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3975 the cost of generating loop masks.
3976
3977 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3978
3979 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3980 New function.
3981 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3982 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3983 (vect_transform_loop): Likewise.
3984 (vect_analyze_loop_costing): Don't take the cost of versioning
3985 into account for the static profitability threshold if it turns
3986 out that no versioning is needed.
3987
3988 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3989
3990 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3991 and target_option_default_node to get -fprofile-generate ctors working
3992 right with LTO.
3993
3994 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3995
3996 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3997 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3998 (vectorizable_assignment): Don't add a cost for nop conversions.
3999 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
4000 Likewise.
4001 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
4002
4003 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4004
4005 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
4006 number of ncopies as an additional argument.
4007 (vectorizable_conversion): Update call accordingly. Use "modifier"
4008 to check whether a conversion is between vectors with the same
4009 numbers of units.
4010
4011 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4012
4013 * config/aarch64/aarch64-sve-builtins-functions.h
4014 (unary_count::expand): Use aarch64_sve_int_mode instead of
4015 mode_for_int_vector.
4016
4017 2019-11-13 Martin Liska <mliska@suse.cz>
4018
4019 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
4020
4021 2019-11-13 Martin Liska <mliska@suse.cz>
4022
4023 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4024 Remove call to finalize_options_struct.
4025
4026 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
4027
4028 PR target/92055
4029 * config/avr/t-avr (avr-mcus): Do not depend on
4030 $(srcdir)/config/avr/t-multilib.
4031
4032 2019-11-13 Richard Biener <rguenther@suse.de>
4033
4034 PR tree-optimization/92473
4035 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
4036 direct optab reduction in the correct type.
4037
4038 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4039
4040 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
4041 hexadecimal literal.
4042
4043 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4044
4045 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
4046 UNORDERED if !HONOR_NANS (DFmode).
4047 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
4048 if !HONOR_NANS (<MODE>mode).
4049
4050 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4051
4052 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
4053 (ipcp_verify_propagated_values): Likewise.
4054 (propagate_constants_across_call): Likewise.
4055 (propagate_constants_topo): Likewise.
4056 (ipcp_propagate_stage): Likewise.
4057
4058 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4059
4060 PR ipa/92471
4061 * ipa-profile.c (check_argument_count): Break out from ...;
4062 watch for missing summaries.
4063 (ipa_profile): Here.
4064
4065 2019-11-12 Martin Sebor <msebor@redhat.com>
4066
4067 PR tree-optimization/92412
4068 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
4069 extern variables.
4070
4071 2019-11-12 Martin Sebor <msebor@redhat.com>
4072
4073 PR middle-end/83688
4074 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
4075 (directive::argno): New member.
4076 (format_result::aliases, format_result::alias_count): New data members.
4077 (format_result::append_alias): New member function.
4078 (fmtresult::dst_offset): New data member.
4079 (pass_sprintf_length::call_info::dst_origin): New data member.
4080 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
4081 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
4082 (get_origin_and_offset): Same.
4083 (format_string): Call it.
4084 (format_directive): Call append_alias and set directive argument
4085 number.
4086 (maybe_warn_overlap): New function.
4087 (pass_sprintf_length::compute_format_length): Call it.
4088 (pass_sprintf_length::handle_gimple_call): Initialize new members.
4089 * tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
4090
4091 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
4092
4093 PR rtl-optimization/92430
4094 * cfgcleanup.c (pass_jump_after_combine::execute): Free
4095 dominance info at the beginning.
4096
4097 2019-11-12 Richard Biener <rguenther@suse.de>
4098
4099 PR tree-optimization/92460
4100 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
4101 expression before gimplifying.
4102
4103 2019-11-12 Richard Biener <rguenther@suse.de>
4104
4105 PR tree-optimization/92461
4106 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
4107 stmt after propagation.
4108
4109 2019-11-12 Martin Liska <mliska@suse.cz>
4110
4111 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
4112 Use SET_OPTION_IF_UNSET.
4113 (ix86_option_override_internal): Likewise.
4114 * opts.c (default_options_optimization): Likewise.
4115 (finish_options): Likewise.
4116 (enable_fdo_optimizations): Likewise.
4117 (common_handle_option): Likewise.
4118
4119 2019-11-12 Martin Liska <mliska@suse.cz>
4120
4121 * common/common-target.def: Remove option_validate_param and
4122 option_default_params.
4123 * common/common-targhooks.c (default_option_validate_param):
4124 Remove.
4125 * common/common-targhooks.h (default_option_validate_param):
4126 Remove.
4127 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
4128 Remove usage of this.
4129 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
4130 (aarch64_option_validate_param): Likewise.
4131 (aarch64_option_default_params): Likewise
4132 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
4133 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4134 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4135 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4136 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4137 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4138 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4139 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4140 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4141 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4142 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
4143 guard_size here.
4144 * doc/tm.texi: Remove option_default_params and option_validate_param.
4145 * doc/tm.texi.in: Likewise.
4146
4147 2019-11-12 Martin Liska <mliska@suse.cz>
4148
4149 * common/common-target.def:
4150 Do not mention set_default_param_value
4151 and set_param_value.
4152 * doc/tm.texi: Likewise.
4153
4154 2019-11-12 Martin Liska <mliska@suse.cz>
4155
4156 * common.opt: Remove param_values.
4157 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
4158 Remove finalize_options_struct.
4159 * gcc.c (driver::decode_argv): Do not call global_init_params
4160 and finish_params.
4161 (driver::finalize): Do not call params_c_finalize
4162 and finalize_options_struct.
4163 * opt-suggestions.c (option_proposer::get_completions): Remove
4164 special casing of params.
4165 (option_proposer::find_param_completions): Remove.
4166 (test_completion_partial_match): Update expected output.
4167 * opt-suggestions.h: Remove find_param_completions.
4168 * opts-common.c (add_misspelling_candidates): Add
4169 --param with a space.
4170 * opts.c (handle_param): Remove.
4171 (init_options_struct):. Remove init_options_struct and
4172 similar calls.
4173 (finalize_options_struct): Remove.
4174 (common_handle_option): Use SET_OPTION_IF_UNSET.
4175 * opts.h (finalize_options_struct): Remove.
4176 * toplev.c (general_init): Do not call global_init_params.
4177 (toplev::finalize): Do not call params_c_finalize and
4178 finalize_options_struct.
4179
4180 2019-11-12 Martin Liska <mliska@suse.cz>
4181
4182 * Makefile.in: Remove PARAMS_H and params.list
4183 and params.options.
4184 * params-enum.h: Remove.
4185 * params-list.h: Remove.
4186 * params-options.h: Remove.
4187 * params.c: Remove.
4188 * params.def: Remove.
4189 * params.h: Remove.
4190 * asan.c: Do not include params.h.
4191 * auto-profile.c: Likewise.
4192 * bb-reorder.c: Likewise.
4193 * builtins.c: Likewise.
4194 * cfgcleanup.c: Likewise.
4195 * cfgexpand.c: Likewise.
4196 * cfgloopanal.c: Likewise.
4197 * cgraph.c: Likewise.
4198 * combine.c: Likewise.
4199 * common/config/aarch64/aarch64-common.c: Likewise.
4200 * common/config/gcn/gcn-common.c: Likewise.
4201 * common/config/ia64/ia64-common.c: Likewise.
4202 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
4203 * common/config/rs6000/rs6000-common.c: Likewise.
4204 * common/config/sh/sh-common.c: Likewise.
4205 * config/aarch64/aarch64.c: Likewise.
4206 * config/alpha/alpha.c: Likewise.
4207 * config/arm/arm.c: Likewise.
4208 * config/avr/avr.c: Likewise.
4209 * config/csky/csky.c: Likewise.
4210 * config/i386/i386-builtins.c: Likewise.
4211 * config/i386/i386-expand.c: Likewise.
4212 * config/i386/i386-features.c: Likewise.
4213 * config/i386/i386-options.c: Likewise.
4214 * config/i386/i386.c: Likewise.
4215 * config/ia64/ia64.c: Likewise.
4216 * config/rs6000/rs6000-logue.c: Likewise.
4217 * config/rs6000/rs6000.c: Likewise.
4218 * config/s390/s390.c: Likewise.
4219 * config/sparc/sparc.c: Likewise.
4220 * config/visium/visium.c: Likewise.
4221 * coverage.c: Likewise.
4222 * cprop.c: Likewise.
4223 * cse.c: Likewise.
4224 * cselib.c: Likewise.
4225 * dse.c: Likewise.
4226 * emit-rtl.c: Likewise.
4227 * explow.c: Likewise.
4228 * final.c: Likewise.
4229 * fold-const.c: Likewise.
4230 * gcc.c: Likewise.
4231 * gcse.c: Likewise.
4232 * ggc-common.c: Likewise.
4233 * ggc-page.c: Likewise.
4234 * gimple-loop-interchange.cc: Likewise.
4235 * gimple-loop-jam.c: Likewise.
4236 * gimple-loop-versioning.cc: Likewise.
4237 * gimple-ssa-split-paths.c: Likewise.
4238 * gimple-ssa-sprintf.c: Likewise.
4239 * gimple-ssa-store-merging.c: Likewise.
4240 * gimple-ssa-strength-reduction.c: Likewise.
4241 * gimple-ssa-warn-alloca.c: Likewise.
4242 * gimple-ssa-warn-restrict.c: Likewise.
4243 * graphite-isl-ast-to-gimple.c: Likewise.
4244 * graphite-optimize-isl.c: Likewise.
4245 * graphite-scop-detection.c: Likewise.
4246 * graphite-sese-to-poly.c: Likewise.
4247 * graphite.c: Likewise.
4248 * haifa-sched.c: Likewise.
4249 * hsa-gen.c: Likewise.
4250 * ifcvt.c: Likewise.
4251 * ipa-cp.c: Likewise.
4252 * ipa-fnsummary.c: Likewise.
4253 * ipa-inline-analysis.c: Likewise.
4254 * ipa-inline.c: Likewise.
4255 * ipa-polymorphic-call.c: Likewise.
4256 * ipa-profile.c: Likewise.
4257 * ipa-prop.c: Likewise.
4258 * ipa-split.c: Likewise.
4259 * ipa-sra.c: Likewise.
4260 * ira-build.c: Likewise.
4261 * ira-conflicts.c: Likewise.
4262 * loop-doloop.c: Likewise.
4263 * loop-invariant.c: Likewise.
4264 * loop-unroll.c: Likewise.
4265 * lra-assigns.c: Likewise.
4266 * lra-constraints.c: Likewise.
4267 * modulo-sched.c: Likewise.
4268 * opt-suggestions.c: Likewise.
4269 * opts.c: Likewise.
4270 * postreload-gcse.c: Likewise.
4271 * predict.c: Likewise.
4272 * reload.c: Likewise.
4273 * reorg.c: Likewise.
4274 * resource.c: Likewise.
4275 * sanopt.c: Likewise.
4276 * sched-deps.c: Likewise.
4277 * sched-ebb.c: Likewise.
4278 * sched-rgn.c: Likewise.
4279 * sel-sched-ir.c: Likewise.
4280 * sel-sched.c: Likewise.
4281 * shrink-wrap.c: Likewise.
4282 * stmt.c: Likewise.
4283 * targhooks.c: Likewise.
4284 * toplev.c: Likewise.
4285 * tracer.c: Likewise.
4286 * trans-mem.c: Likewise.
4287 * tree-chrec.c: Likewise.
4288 * tree-data-ref.c: Likewise.
4289 * tree-if-conv.c: Likewise.
4290 * tree-inline.c: Likewise.
4291 * tree-loop-distribution.c: Likewise.
4292 * tree-parloops.c: Likewise.
4293 * tree-predcom.c: Likewise.
4294 * tree-profile.c: Likewise.
4295 * tree-scalar-evolution.c: Likewise.
4296 * tree-sra.c: Likewise.
4297 * tree-ssa-ccp.c: Likewise.
4298 * tree-ssa-dom.c: Likewise.
4299 * tree-ssa-dse.c: Likewise.
4300 * tree-ssa-ifcombine.c: Likewise.
4301 * tree-ssa-loop-ch.c: Likewise.
4302 * tree-ssa-loop-im.c: Likewise.
4303 * tree-ssa-loop-ivcanon.c: Likewise.
4304 * tree-ssa-loop-ivopts.c: Likewise.
4305 * tree-ssa-loop-manip.c: Likewise.
4306 * tree-ssa-loop-niter.c: Likewise.
4307 * tree-ssa-loop-prefetch.c: Likewise.
4308 * tree-ssa-loop-unswitch.c: Likewise.
4309 * tree-ssa-math-opts.c: Likewise.
4310 * tree-ssa-phiopt.c: Likewise.
4311 * tree-ssa-pre.c: Likewise.
4312 * tree-ssa-reassoc.c: Likewise.
4313 * tree-ssa-sccvn.c: Likewise.
4314 * tree-ssa-scopedtables.c: Likewise.
4315 * tree-ssa-sink.c: Likewise.
4316 * tree-ssa-strlen.c: Likewise.
4317 * tree-ssa-structalias.c: Likewise.
4318 * tree-ssa-tail-merge.c: Likewise.
4319 * tree-ssa-threadbackward.c: Likewise.
4320 * tree-ssa-threadedge.c: Likewise.
4321 * tree-ssa-uninit.c: Likewise.
4322 * tree-switch-conversion.c: Likewise.
4323 * tree-vect-data-refs.c: Likewise.
4324 * tree-vect-loop.c: Likewise.
4325 * tree-vect-slp.c: Likewise.
4326 * tree-vrp.c: Likewise.
4327 * tree.c: Likewise.
4328 * value-prof.c: Likewise.
4329 * var-tracking.c: Likewise.
4330
4331 2019-11-12 Martin Liska <mliska@suse.cz>
4332
4333 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
4334 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
4335 macro.
4336 (asan_sanitize_allocas_p): Likewise.
4337 (asan_emit_stack_protection): Likewise.
4338 (asan_protect_global): Likewise.
4339 (instrument_derefs): Likewise.
4340 (instrument_builtin_call): Likewise.
4341 (asan_expand_mark_ifn): Likewise.
4342 * auto-profile.c (auto_profile): Likewise.
4343 * bb-reorder.c (copy_bb_p): Likewise.
4344 (duplicate_computed_gotos): Likewise.
4345 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
4346 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
4347 (try_crossjump_bb): Likewise.
4348 * cfgexpand.c (defer_stack_allocation): Likewise.
4349 (stack_protect_classify_type): Likewise.
4350 (pass_expand::execute): Likewise.
4351 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4352 (estimate_reg_pressure_cost): Likewise.
4353 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
4354 * combine.c (combine_instructions): Likewise.
4355 (record_value_for_reg): Likewise.
4356 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
4357 (aarch64_option_default_params): Likewise.
4358 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4359 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4360 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4361 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4362 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
4363 (aarch64_allocate_and_probe_stack_space): Likewise.
4364 (aarch64_expand_epilogue): Likewise.
4365 (aarch64_override_options_internal): Likewise.
4366 * config/alpha/alpha.c (alpha_option_override): Likewise.
4367 * config/arm/arm.c (arm_option_override): Likewise.
4368 (arm_valid_target_attribute_p): Likewise.
4369 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4370 * config/i386/i386.c (get_probe_interval): Likewise.
4371 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4372 (ix86_max_noce_ifcvt_seq_cost): Likewise.
4373 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4374 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4375 (get_stack_clash_protection_guard_size): Likewise.
4376 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4377 * config/s390/s390.c (allocate_stack_space): Likewise.
4378 (s390_emit_prologue): Likewise.
4379 (s390_option_override_internal): Likewise.
4380 * config/sparc/sparc.c (sparc_option_override): Likewise.
4381 * config/visium/visium.c (visium_option_override): Likewise.
4382 * coverage.c (get_coverage_counts): Likewise.
4383 (coverage_compute_profile_id): Likewise.
4384 (coverage_begin_function): Likewise.
4385 (coverage_end_function): Likewise.
4386 * cse.c (cse_find_path): Likewise.
4387 (cse_extended_basic_block): Likewise.
4388 (cse_main): Likewise.
4389 * cselib.c (cselib_invalidate_mem): Likewise.
4390 * dse.c (dse_step1): Likewise.
4391 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4392 (get_max_insn_count): Likewise.
4393 (make_debug_insn_raw): Likewise.
4394 (init_emit): Likewise.
4395 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4396 * final.c (compute_alignments): Likewise.
4397 * fold-const.c (fold_range_test): Likewise.
4398 (fold_truth_andor): Likewise.
4399 (tree_single_nonnegative_warnv_p): Likewise.
4400 (integer_valued_real_single_p): Likewise.
4401 * gcse.c (want_to_gcse_p): Likewise.
4402 (prune_insertions_deletions): Likewise.
4403 (hoist_code): Likewise.
4404 (gcse_or_cprop_is_too_expensive): Likewise.
4405 * ggc-common.c: Likewise.
4406 * ggc-page.c (ggc_collect): Likewise.
4407 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4408 (MAX_DATAREFS): Likewise.
4409 (OUTER_STRIDE_RATIO): Likewise.
4410 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4411 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4412 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4413 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4414 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4415 (imm_store_chain_info::output_merged_store): Likewise.
4416 (pass_store_merging::process_store): Likewise.
4417 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4418 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4419 (scop_to_isl_ast): Likewise.
4420 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4421 (optimize_isl): Likewise.
4422 * graphite-scop-detection.c (build_scops): Likewise.
4423 * haifa-sched.c (set_modulo_params): Likewise.
4424 (rank_for_schedule): Likewise.
4425 (model_add_to_worklist): Likewise.
4426 (model_promote_insn): Likewise.
4427 (model_choose_insn): Likewise.
4428 (queue_to_ready): Likewise.
4429 (autopref_multipass_dfa_lookahead_guard): Likewise.
4430 (schedule_block): Likewise.
4431 (sched_init): Likewise.
4432 * hsa-gen.c (init_prologue): Likewise.
4433 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4434 (cond_move_process_if_block): Likewise.
4435 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4436 (merge_agg_lats_step): Likewise.
4437 (devirtualization_time_bonus): Likewise.
4438 (hint_time_bonus): Likewise.
4439 (incorporate_penalties): Likewise.
4440 (good_cloning_opportunity_p): Likewise.
4441 (ipcp_propagate_stage): Likewise.
4442 * ipa-fnsummary.c (decompose_param_expr): Likewise.
4443 (set_switch_stmt_execution_predicate): Likewise.
4444 (analyze_function_body): Likewise.
4445 (compute_fn_summary): Likewise.
4446 * ipa-inline-analysis.c (estimate_growth): Likewise.
4447 * ipa-inline.c (caller_growth_limits): Likewise.
4448 (inline_insns_single): Likewise.
4449 (inline_insns_auto): Likewise.
4450 (can_inline_edge_by_limits_p): Likewise.
4451 (want_early_inline_function_p): Likewise.
4452 (big_speedup_p): Likewise.
4453 (want_inline_small_function_p): Likewise.
4454 (want_inline_self_recursive_call_p): Likewise.
4455 (edge_badness): Likewise.
4456 (recursive_inlining): Likewise.
4457 (compute_max_insns): Likewise.
4458 (early_inliner): Likewise.
4459 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4460 * ipa-profile.c (ipa_profile): Likewise.
4461 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4462 (ipa_analyze_node): Likewise.
4463 (ipcp_transform_function): Likewise.
4464 * ipa-split.c (consider_split): Likewise.
4465 * ipa-sra.c (allocate_access): Likewise.
4466 (process_scan_results): Likewise.
4467 (ipa_sra_summarize_function): Likewise.
4468 (pull_accesses_from_callee): Likewise.
4469 * ira-build.c (loop_compare_func): Likewise.
4470 (mark_loops_for_removal): Likewise.
4471 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4472 * loop-doloop.c (doloop_optimize): Likewise.
4473 * loop-invariant.c (gain_for_invariant): Likewise.
4474 (move_loop_invariants): Likewise.
4475 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4476 (decide_unroll_runtime_iterations): Likewise.
4477 (decide_unroll_stupid): Likewise.
4478 (expand_var_during_unrolling): Likewise.
4479 * lra-assigns.c (spill_for): Likewise.
4480 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4481 * modulo-sched.c (sms_schedule): Likewise.
4482 (DFA_HISTORY): Likewise.
4483 * opts.c (default_options_optimization): Likewise.
4484 (finish_options): Likewise.
4485 (common_handle_option): Likewise.
4486 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4487 (if): Likewise.
4488 * predict.c (get_hot_bb_threshold): Likewise.
4489 (maybe_hot_count_p): Likewise.
4490 (probably_never_executed): Likewise.
4491 (predictable_edge_p): Likewise.
4492 (predict_loops): Likewise.
4493 (expr_expected_value_1): Likewise.
4494 (tree_predict_by_opcode): Likewise.
4495 (handle_missing_profiles): Likewise.
4496 * reload.c (find_equiv_reg): Likewise.
4497 * reorg.c (redundant_insn): Likewise.
4498 * resource.c (mark_target_live_regs): Likewise.
4499 (incr_ticks_for_insn): Likewise.
4500 * sanopt.c (pass_sanopt::execute): Likewise.
4501 * sched-deps.c (sched_analyze_1): Likewise.
4502 (sched_analyze_2): Likewise.
4503 (sched_analyze_insn): Likewise.
4504 (deps_analyze_insn): Likewise.
4505 * sched-ebb.c (schedule_ebbs): Likewise.
4506 * sched-rgn.c (find_single_block_region): Likewise.
4507 (too_large): Likewise.
4508 (haifa_find_rgns): Likewise.
4509 (extend_rgns): Likewise.
4510 (new_ready): Likewise.
4511 (schedule_region): Likewise.
4512 (sched_rgn_init): Likewise.
4513 * sel-sched-ir.c (make_region_from_loop): Likewise.
4514 * sel-sched-ir.h (MAX_WS): Likewise.
4515 * sel-sched.c (process_pipelined_exprs): Likewise.
4516 (sel_setup_region_sched_flags): Likewise.
4517 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4518 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4519 * toplev.c (print_version): Likewise.
4520 (process_options): Likewise.
4521 * tracer.c (tail_duplicate): Likewise.
4522 * trans-mem.c (tm_log_add): Likewise.
4523 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4524 * tree-data-ref.c (split_constant_offset): Likewise.
4525 (compute_all_dependences): Likewise.
4526 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4527 * tree-inline.c (remap_gimple_stmt): Likewise.
4528 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4529 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4530 (create_parallel_loop): Likewise.
4531 * tree-predcom.c (determine_unroll_factor): Likewise.
4532 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4533 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4534 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4535 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4536 (dse_optimize_redundant_stores): Likewise.
4537 (dse_classify_store): Likewise.
4538 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4539 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4540 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4541 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4542 (try_peel_loop): Likewise.
4543 (tree_unroll_loops_completely): Likewise.
4544 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4545 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4546 (MAX_CONSIDERED_GROUPS): Likewise.
4547 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4548 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4549 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4550 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4551 (L1_CACHE_SIZE_BYTES): Likewise.
4552 (L2_CACHE_SIZE_BYTES): Likewise.
4553 (should_issue_prefetch_p): Likewise.
4554 (schedule_prefetches): Likewise.
4555 (determine_unroll_factor): Likewise.
4556 (volume_of_references): Likewise.
4557 (add_subscript_strides): Likewise.
4558 (self_reuse_distance): Likewise.
4559 (mem_ref_count_reasonable_p): Likewise.
4560 (insn_to_prefetch_ratio_too_small_p): Likewise.
4561 (loop_prefetch_arrays): Likewise.
4562 (tree_ssa_prefetch_arrays): Likewise.
4563 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4564 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4565 (convert_mult_to_fma): Likewise.
4566 (math_opts_dom_walker::after_dom_children): Likewise.
4567 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4568 (hoist_adjacent_loads): Likewise.
4569 (gate_hoist_loads): Likewise.
4570 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4571 (compute_partial_antic_aux): Likewise.
4572 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4573 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4574 (vn_reference_lookup): Likewise.
4575 (do_rpo_vn): Likewise.
4576 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4577 * tree-ssa-sink.c (select_best_block): Likewise.
4578 * tree-ssa-strlen.c (new_stridx): Likewise.
4579 (new_addr_stridx): Likewise.
4580 (get_range_strlen_dynamic): Likewise.
4581 (class ssa_name_limit_t): Likewise.
4582 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4583 (create_variable_info_for_1): Likewise.
4584 (init_alias_vars): Likewise.
4585 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4586 (tail_merge_optimize): Likewise.
4587 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4588 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4589 (thread_jumps::find_jump_threads_backwards): Likewise.
4590 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4591 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4592 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4593 (jump_table_cluster::can_be_handled): Likewise.
4594 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4595 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4596 (param_switch_conversion_branch_ratio): Likewise.
4597 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4598 (vect_enhance_data_refs_alignment): Likewise.
4599 (vect_prune_runtime_alias_test_list): Likewise.
4600 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4601 (vect_get_datarefs_in_loop): Likewise.
4602 (vect_analyze_loop): Likewise.
4603 * tree-vect-slp.c (vect_slp_bb): Likewise.
4604 * tree-vectorizer.h: Likewise.
4605 * tree-vrp.c (find_switch_asserts): Likewise.
4606 (vrp_prop::check_mem_ref): Likewise.
4607 * tree.c (wide_int_to_tree_1): Likewise.
4608 (cache_integer_cst): Likewise.
4609 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4610 (reverse_op): Likewise.
4611 (vt_find_locations): Likewise.
4612
4613 2019-11-12 Martin Liska <mliska@suse.cz>
4614
4615 * Makefile.in: Include params.opt.
4616 * flag-types.h (enum parloops_schedule_type): Add
4617 parloops_schedule_type used in params.opt.
4618 * params.opt: New file.
4619
4620 2019-11-12 Martin Liska <mliska@suse.cz>
4621
4622 * common.opt: Remove --param and --param= options.
4623 * opt-functions.awk: Mark CL_PARAMS for options
4624 that have Param keyword.
4625 * opts-common.c (decode_cmdline_options_to_array):
4626 Replace --param key=value with --param=key=value.
4627 * opts.c (print_filtered_help): Remove special
4628 printing of params.
4629 (print_specific_help): Update title for params.
4630 (common_handle_option): Do not handle OPT__param.
4631 opts.h (SET_OPTION_IF_UNSET): New macro.
4632 * doc/options.texi: Document Param keyword.
4633
4634 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4635 Frederik Harwath <frederik@codesourcery.com>
4636 Thomas Schwinge <thomas@codesourcery.com>
4637
4638 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4639 enumeration constant.
4640 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4641 (is_gimple_omp_offloaded): Likewise.
4642 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4643 constant. Adjust the value of ORT_NONE accordingly.
4644 (is_gimple_stmt): Handle OACC_SERIAL.
4645 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4646 (gomp_needs_data_present): Likewise.
4647 (gimplify_adjust_omp_clauses): Likewise.
4648 (gimplify_omp_workshare): Handle OACC_SERIAL.
4649 (gimplify_expr): Likewise.
4650 * omp-expand.c (expand_omp_target):
4651 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4652 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4653 * omp-low.c (is_oacc_parallel): Rename function to...
4654 (is_oacc_parallel_or_serial): ... this.
4655 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4656 (scan_sharing_clauses): Adjust accordingly.
4657 (scan_omp_for): Likewise.
4658 (lower_oacc_head_mark): Likewise.
4659 (convert_from_firstprivate_int): Likewise.
4660 (lower_omp_target): Likewise.
4661 (check_omp_nesting_restrictions): Handle
4662 GF_OMP_TARGET_KIND_OACC_SERIAL.
4663 (lower_oacc_reductions): Likewise.
4664 (lower_omp_target): Likewise.
4665 * tree.def (OACC_SERIAL): New tree code.
4666 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4667
4668 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4669
4670 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4671
4672 PR target/92449
4673 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4674 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4675
4676 PR tree-optimization/92452
4677 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4678 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4679 MINUS_EXPR on it.
4680
4681 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4682
4683 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4684 safelen with 0.
4685
4686 2019-11-12 Alan Modra <amodra@gmail.com>
4687
4688 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4689 element of unspec vec.
4690 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4691 PC-relative TLS.
4692 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4693 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4694 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4695 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4696
4697 2019-11-12 Alan Modra <amodra@gmail.com>
4698
4699 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4700 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4701 (IS_NOMARK_TLSGETADDR): Likewise.
4702 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4703 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4704 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4705 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4706 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4707 (rs6000_indirect_call_template_1): Likewise.
4708 (rs6000_pltseq_template): Likewise.
4709 (rs6000_opt_vars): Remove "tls-markers" entry.
4710 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4711 with TARGET_ELF.
4712 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4713 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4714 (pltseq_plt_pcrel<mode>): Likewise.
4715 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4716 (call_value_local64): Likewise.
4717 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4718 output and length attribute sub-expression.
4719 (call_value_nonlocal_sysv<mode>),
4720 (call_value_nonlocal_sysv_secure<mode>),
4721 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4722 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4723 (call_value_indirect_pcrel<mode>): Likewise.
4724 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4725 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4726 * configure: Regenerate.
4727 * config.in: Regenerate.
4728
4729 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4730
4731 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4732 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4733 address being a prefixed load/store.
4734 (stack_protect_testdi): Deal with either address being a prefixed
4735 load.
4736
4737 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4738
4739 PR bootstrap/92433
4740 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4741 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4742 std::swap.
4743
4744 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4745
4746 PR tree-optimization/92420
4747 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4748 up file.
4749 (get_group_load_store_type): Use it for reversed SLP accesses.
4750
4751 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4752
4753 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4754 summary.
4755 (ipcp_transformation_t::duplicate): Break out from ...
4756 (ipa_node_params_t::duplicate): ... here; add copying of agg
4757 replacements.
4758 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4759 (ipcp_transformation_t): Add duplicate.
4760
4761 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4762
4763 PR fortran/91828
4764 * doc/install.texi: Document that the minimum MPFR version is
4765 3.1.0.
4766
4767 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4768
4769 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4770 use new register constraint letters.
4771
4772 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4773
4774 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4775 as well, if interesting recover the symbol and re-legitimize the
4776 pic address.
4777
4778 2019-11-11 Martin Liska <mliska@suse.cz>
4779
4780 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4781 alphabetically.
4782
4783 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4784
4785 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4786 account when checking if there are enough iterations to vectorize
4787 epilogue.
4788
4789 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4790 Kwok Cheung Yeung <kcy@codesourcery.com>
4791
4792 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4793 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4794 (LANG_HOOKS_DECLS): Rename also here.
4795 * langhooks.h (lang_hooks_for_decls): Rename
4796 omp_is_optional_argument to omp_check_optional_argument; take
4797 additional bool argument.
4798 * omp-general.h (omp_check_optional_argument): Likewise.
4799 * omp-general.h (omp_check_optional_argument): Likewise.
4800 * omp-low.c (lower_omp_target): Update calls; handle absent
4801 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4802
4803 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4804
4805 PR target/87833
4806 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4807 -fPIC and -shared the last to create offload image.
4808
4809 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4810
4811 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4812 of 'offset'.
4813
4814 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4815 (config.status): Use/depend on it.
4816 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4817 * configure: Regenerate.
4818
4819 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4820
4821 PR tree-optimization/88760
4822 * config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4823 * common/config/rs6000/rs6000-common.c
4824 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4825 Turn on -funroll-loops and -munroll-only-small-loops.
4826 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4827 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4828 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4829 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4830 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4831 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4832
4833 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4834
4835 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4836 Make scalar_load, vector_load, unaligned_load and
4837 vector_gather_load cost more to conform hardware latency and
4838 insn cost settings.
4839
4840 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4841
4842 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4843 (MACHO_SYMBOL_LINKER_VIS_P): New.
4844
4845 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4846
4847 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4848 registers in eliminable_regset.
4849
4850 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4851
4852 * ipa-inline.c (compute_uninlined_call_time,
4853 compute_inlined_call_time): Take edge frequency as
4854 parameter rather than computing it by itself.
4855 (big_speedup_p, edge_badness): Manually CSE sreal
4856 frequency calculations.
4857
4858 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4859
4860 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4861 case where profiles are same.
4862
4863 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4864
4865 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4866
4867 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4868
4869 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4870 args summaries of inlined edge unless it holds info about
4871 described reference.
4872
4873 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4874
4875 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4876 (*movcc_internal1): Rename to...
4877 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4878
4879 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4880
4881 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4882 (cgraph_node::create_virtual_clone): Copy it.
4883 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4884 summaries.
4885 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4886 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4887 is disabled.
4888 (propagate_constants_across_call): If callee is not analyzed, give up.
4889 (propagate_constants_topo): Lower to bottom latties of all callees of
4890 functions with ipa-cp disabled.
4891 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4892 (cgraph_edge_brings_value_p): Check for availability first.
4893 (create_specialized_node): Set ipcp_clone.
4894 (ipcp_store_bits_results): Check that info is present.
4895 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4896 thunks.
4897 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4898 conservative when callee summary is missing.
4899 (remap_edge_summaries): Lookup call summary only when needed.
4900 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4901 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4902 Use get_create.
4903 (ipa_analyze_node): Use get_create.
4904 (propagate_controlled_uses): Do not propagate when function is not
4905 analyzed.
4906 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4907 (ipa_read_node_info): Use get_create.
4908 * ipa-prop.h (IPA_NODE_REF): Use get.
4909 (IPA_NODE_REF_GET_CREATE): New.
4910
4911 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4912
4913 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4914 on function symbol.
4915
4916 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4917
4918 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4919 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4920 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4921 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4922
4923 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4924
4925 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4926 capping the growth cumulated.
4927 (offline_size): Break out from ...
4928 (estimate_growth): ... here.
4929 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4930 parameters.
4931 (growth_likely_positive): Turn to ...
4932 (growth_positive_p): Re-implement.
4933 * ipa-inline.h (growth_likely_positive): Remove.
4934 (growth_positive_p): Declare.
4935 * ipa-inline.c (want_inline_small_function_p): Use
4936 growth_positive_p.
4937 (want_inline_function_to_all_callers_p): Likewise.
4938
4939 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4940
4941 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4942 calculation of min_size.
4943 (ipa_update_overall_fn_summary): Likewise.
4944
4945 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4946
4947 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4948 estimate_edge_devirt_benefit when not computing hints;
4949 do not compute time when not asked for.
4950 (estimate_calls_size_and_time): Pass NULL hints and time when
4951 these are not computed; do not evaluate hint predicates when these are
4952 not computed.
4953 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4954 frequency.
4955
4956 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4957
4958 PR tree-optimization/92401
4959 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4960 if res_op->code is an expression with code length 1.
4961 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4962 if res_op->code is an expression with code length 2.
4963 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4964 if res_op->code is an expression with code length 3.
4965
4966 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4967
4968 * config/darwin.c (machopic_mcount_stub_name): Validate the
4969 symbol stub name when it is created.
4970 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4971 stub validation.
4972
4973 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4974
4975 * symtab.c: Fix comment typos.
4976 * cgraphunit.c: Likewise.
4977 * cgraph.h: Likewise.
4978 * cgraphclones.c: Likewise.
4979 * cgraph.c: Likewise.
4980 * varpool.c: Likewise.
4981 * tree-ssa-strlen.c: Likewise.
4982 * ipa-sra.c: Likewise.
4983 (scan_expr_access, check_all_callers_for_issues): Fix typo
4984 in a dump message.
4985
4986 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4987
4988 * config/darwin-protos.h: Add include quard.
4989
4990 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4991
4992 * range-op.h (range_operator::fold_range): Return result in a
4993 reference parameter instead of by value.
4994 (range_operator::wi_fold): Same.
4995 * range-op.cc (range_operator::wi_fold): Return result in a reference
4996 parameter instead of by value.
4997 (range_operator::fold_range): Same.
4998 (value_range_from_overflowed_bounds): Same.
4999 (value_range_with_overflow): Same
5000 (create_possibly_reversed_range): Same.
5001 (operator_equal::fold_range): Same.
5002 (operator_not_equal::fold_range): Same.
5003 (operator_lt::fold_range): Same.
5004 (operator_le::fold_range): Same.
5005 (operator_gt::fold_range): Same.
5006 (operator_ge::fold_range): Same.
5007 (operator_plus::wi_fold): Same.
5008 (operator_plus::op1_range): Change call to fold_range.
5009 (operator_plus::op2_range): Change call to fold_range.
5010 (operator_minus::wi_fold): Return result via reference parameter.
5011 (operator_minus::op1_range): Change call to fold_range.
5012 (operator_minus::op2_range): Change call to fold_range.
5013 (operator_min::wi_fold): Return result via reference parameter.
5014 (operator_max::wi_fold): Same.
5015 (cross_product_operator::wi_cross_product): Same.
5016 (operator_mult::wi_fold): Same.
5017 (operator_div::wi_fold): Same.
5018 (operator_div op_floor_div): Fix whitespace.
5019 (operator_exact_divide::op1_range): Change call to fold_range.
5020 (operator_lshift::fold_range): Return result via reference parameter.
5021 (operator_lshift::wi_fold): Same.
5022 (operator_rshift::fold_range): Same.
5023 (operator_rshift::wi_fold): Same.
5024 (operator_cast::fold_range): Same.
5025 (operator_cast::op1_range): Change calls to fold_range.
5026 (operator_logical_and::fold_range): Return result via reference.
5027 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
5028 (operator_bitwise_and::wi_fold): Return result via reference.
5029 (operator_logical_or::fold_range): Same.
5030 (operator_bitwise_or::wi_fold): Same.
5031 (operator_bitwise_xor::wi_fold): Same.
5032 (operator_trunc_mod::wi_fold): Same.
5033 (operator_logical_not::fold_range): Same.
5034 (operator_bitwise_not::fold_range): Same.
5035 (operator_bitwise_not::op1_range): Change call to fold_range.
5036 (operator_cst::fold_range): Return result via reference.
5037 (operator_identity::fold_range): Same.
5038 (operator_abs::wi_fold): Same.
5039 (operator_absu::wi_fold): Same.
5040 (operator_negate::fold_range): Same.
5041 (operator_negate::op1_range): Change call to fold_range.
5042 (operator_addr_expr::fold_range): Return result via reference.
5043 (operator_addr_expr::op1_range): Change call to fold_range.
5044 (operator_pointer_plus::wi_fold): Return result via reference.
5045 (operator_pointer_min_max::wi_fold): Same.
5046 (operator_pointer_and::wi_fold): Same.
5047 (operator_pointer_or::wi_fold): Same.
5048 (range_op_handler): Change call to fold_range.
5049 (range_cast): Same.
5050 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
5051 fold_range.
5052 (range_fold_unary_symbolics_p): Same.
5053 (range_fold_binary_expr): Same.
5054 (range_fold_unary_expr): Same.
5055
5056 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5057
5058 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
5059 vector type as an argument rather than reading it from the
5060 stmt_vec_info.
5061 (vect_create_epilog_for_reduction): Update accordingly.
5062 (vectorizable_reduction): Likewise.
5063 (vect_transform_cycle_phi): Likewise.
5064
5065 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
5066
5067 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
5068 the comparison codes that make sense for the mode used, and only the
5069 codes that can be done with a single branch instruction.
5070
5071 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5072
5073 PR tree-optimization/92351
5074 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
5075 peeling the main loop for alignment, make sure to set the misalignment
5076 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
5077
5078 2019-11-08 Richard Biener <rguenther@suse.de>
5079
5080 * dbgcnt.def (ivopts_loop): Add.
5081 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
5082 ivopts_loop before optimizing a loop.
5083
5084 2019-11-08 Richard Biener <rguenther@suse.de>
5085
5086 PR ipa/92409
5087 * tree-inline.c (declare_return_variable): Properly handle
5088 type mismatches for the return slot.
5089
5090 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
5091
5092 PR target/92095
5093 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
5094 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
5095 change.
5096 (got_helper_needed): New static variable.
5097 (output_load_pcrel_sym): New function.
5098 (get_pc_thunk_name): Remove after inlining...
5099 (load_got_register): ...here. Rework the initialization of the GOT
5100 register and of the GOT helper.
5101 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
5102 (sparc_file_end): Test got_helper_needed to decide whether the GOT
5103 helper must be emitted. Use output_asm_insn instead of fprintf.
5104 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
5105 if optimization is enabled.
5106 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
5107 by calling output_load_pcrel_sym.
5108
5109 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5110
5111 * tree-sra.c (create_access): Delay disqualifying the base
5112 for poly_int values until we know we have a base.
5113
5114 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5115
5116 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
5117 for loops with SIMDUID set. Enable epilogue vectorization for loops
5118 with SIMDLEN set after finding a main loop with a VF that matches it.
5119
5120 2019-11-08 Jakub Jelinek <jakub@redhat.com>
5121
5122 PR target/92038
5123 * gimple-ssa-store-merging.c (find_constituent_stores): For return
5124 value only, return non-NULL if there is a single non-clobber
5125 constituent store even if there are constituent clobbers and return
5126 one of clobber constituent stores if all constituent stores are
5127 clobbers.
5128 (split_group): Handle clobbers.
5129 (imm_store_chain_info::output_merged_store): When computing
5130 bzero_first, look after all clobbers at the start. Don't count
5131 clobber stmts in orig_num_stmts, except if the first orig store is
5132 a clobber covering the whole area and split_stores cover the whole
5133 area, consider equal number of stmts ok. Punt if split_stores
5134 contains only ->orig stores and their number plus number of original
5135 clobbers is equal to original number of stmts. For ->orig, look past
5136 clobbers in the constituent stores.
5137 (imm_store_chain_info::output_merged_stores): Don't remove clobber
5138 stmts.
5139 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
5140 rhs.
5141 (store_valid_for_store_merging_p): Allow clobber stmts.
5142 (verify_clear_bit_region_be): Fix up a thinko in function comment.
5143
5144 PR c++/92384
5145 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
5146 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
5147 slot.
5148 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
5149 force creation of a unique data.stack_parm slot.
5150
5151 2019-11-08 Richard Biener <rguenther@suse.de>
5152
5153 * genmatch.c (expr::gen_transform): Use the resimplify
5154 member function instead of hard-coding the gimple_resimplifyN variant.
5155 (dt_simplify::gen_1): Likewise.
5156
5157 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5158
5159 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5160 POLY_INT_CST.
5161
5162 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5163
5164 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
5165 instead of INTEGER_CST.
5166
5167 2019-11-08 Richard Biener <rguenther@suse.de>
5168
5169 PR tree-optimization/92324
5170 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5171 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
5172 sign-conversions as necessary.
5173 (vectorizable_reduction): Reject conversions in the chain
5174 that are not sign-conversions, base analysis on a non-converting
5175 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
5176 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
5177 for debug stmts.
5178 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
5179 (STMT_VINFO_REDUC_VECTYPE): Likewise.
5180
5181 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
5182
5183 PR target/92055
5184 * config/avr/avr.opt (-mdouble=, -mlong-double=):
5185 Fix a missing '-' when displaying these options in the
5186 help screen.
5187
5188 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5189
5190 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
5191
5192 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5193
5194 * config/aarch64/aarch64-builtins.c
5195 (aarch64_builtin_vectorized_function): Remove bswap handling.
5196
5197 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5198
5199 * tree-core.h (tree_type_common::indivisible_p): New member variable.
5200 * tree.h (TYPE_INDIVISIBLE_P): New macro.
5201 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5202 Treat the vector types as indivisible.
5203
5204 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5205
5206 * optabs.def (gather_load_optab, mask_gather_load_optab)
5207 (scatter_store_optab, mask_scatter_store_optab): Turn into
5208 conversion optabs, with the offset mode given explicitly.
5209 * doc/md.texi: Update accordingly.
5210 * config/aarch64/aarch64-sve-builtins-base.cc
5211 (svld1_gather_impl::expand): Likewise.
5212 (svst1_scatter_impl::expand): Likewise.
5213 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
5214 (expand_scatter_store_optab_fn): Likewise.
5215 (direct_gather_load_optab_supported_p): Likewise.
5216 (direct_scatter_store_optab_supported_p): Likewise.
5217 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
5218 to be argument 4.
5219 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
5220 (internal_gather_scatter_fn_supported_p): Replace the offset sign
5221 argument with the offset vector type. Require the two vector
5222 types to have the same number of elements but allow their element
5223 sizes to be different. Treat the optabs as conversion optabs.
5224 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
5225 prototype accordingly.
5226 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
5227 (supports_vec_convert_optab_p): ...this new function.
5228 (supports_vec_gather_load_p): Update accordingly.
5229 (supports_vec_scatter_store_p): Likewise.
5230 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
5231 Replace the offset sign and bits parameters with a scalar type tree.
5232 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
5233 Pass back the offset vector type instead of the scalar element type.
5234 Allow the offset to be wider than the memory elements. Search for
5235 an offset type that the target supports, stopping once we've
5236 reached the maximum of the element size and pointer size.
5237 Update call to internal_gather_scatter_fn_supported_p.
5238 (vect_check_gather_scatter): Update calls accordingly.
5239 When testing a new scale before knowing the final offset type,
5240 check whether the scale is supported for any signed or unsigned
5241 offset type. Check whether the target supports the source and
5242 target types of a conversion before deciding whether to look
5243 through the conversion. Record the chosen offset_vectype.
5244 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
5245 (vect_recog_gather_scatter_pattern): Get the scalar offset type
5246 directly from the gs_info's offset_vectype instead. Pass a zero
5247 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
5248 * tree-vect-stmts.c (check_load_store_masking): Update call to
5249 internal_gather_scatter_fn_supported_p, passing the offset vector
5250 type recorded in the gs_info.
5251 (vect_truncate_gather_scatter_offset): Update call to
5252 vect_check_gather_scatter, leaving it to search for a valid
5253 offset vector type.
5254 (vect_use_strided_gather_scatters_p): Convert the offset to the
5255 element type of the gs_info's offset_vectype.
5256 (vect_get_gather_scatter_ops): Get the offset vector type directly
5257 from the gs_info.
5258 (vect_get_strided_load_store_ops): Likewise.
5259 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
5260 and IFN_MASK_GATHER_LOAD.
5261 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
5262 (gather_load<mode><v_int_equiv>): ...this.
5263 (mask_gather_load<mode>): Rename to...
5264 (mask_gather_load<mode><v_int_equiv>): ...this.
5265 (scatter_store<mode>): Rename to...
5266 (scatter_store<mode><v_int_equiv>): ...this.
5267 (mask_scatter_store<mode>): Rename to...
5268 (mask_scatter_store<mode><v_int_equiv>): ...this.
5269
5270 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
5271
5272 PR target/92132
5273 * config/rs6000/predicates.md
5274 (signed_or_equality_comparison_operator): New predicate.
5275 (unsigned_or_equality_comparison_operator): Likewise.
5276 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
5277 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
5278 * config/rs6000/vector.md
5279 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
5280 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
5281 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
5282 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
5283 vector modes and same-size integer vector modes.
5284 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
5285 (vector_lt<mode> for VEC_F): New expand.
5286 (vector_le<mode> for VEC_F): Likewise.
5287 (vector_ne<mode> for VEC_F): Likewise.
5288 (vector_unge<mode> for VEC_F): Likewise.
5289 (vector_ungt<mode> for VEC_F): Likewise.
5290 (vector_unle<mode> for VEC_F): Likewise.
5291 (vector_unlt<mode> for VEC_F): Likewise.
5292 (vector_uneq<mode>): Expose name.
5293 (vector_ltgt<mode>): Likewise.
5294 (vector_unordered<mode>): Likewise.
5295 (vector_ordered<mode>): Likewise.
5296
5297 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
5298
5299 PR target/92295
5300 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
5301 Enhance ix86_expand_vector_init_concat.
5302
5303 2019-11-08 Joseph Myers <joseph@codesourcery.com>
5304
5305 * doc/invoke.texi (-Wold-style-definition): Document () not being
5306 considered an old-style definition for C2x.
5307
5308 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
5309
5310 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
5311 Enhance comment.
5312 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
5313 insn patterns using ldcw instruction.
5314 (memory_barrier): Remove insn pattern using sync instruction.
5315 * config/pa/pa.opt (coherent-ldcw): New option.
5316 (ordered): New option.
5317
5318 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5319
5320 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
5321 valid conditions.
5322
5323 2019-11-07 Jakub Jelinek <jakub@redhat.com>
5324
5325 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
5326 typo - mistmatch -> mismatch.
5327 * ipa-profile.c (ipa_profile): Likewise.
5328 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
5329 - mistmatch -> mismatch.
5330
5331 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5332
5333 * simplify-rtx.c (comparison_to_mask): New function.
5334 (mask_to_comparison): New function.
5335 (simplify_logical_relational_operation): New function.
5336 (simplify_binary_operation_1): Call
5337 simplify_logical_relational_operation.
5338
5339 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
5340
5341 PR other/92090
5342 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
5343 modes for integer constants.
5344
5345 2019-11-07 Jan Hubicka <jh@suse.cz>
5346
5347 PR ipa/92406
5348 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
5349 summary.
5350
5351 2019-11-07 Jan Hubicka <jh@suse.cz>
5352
5353 * optc-save-gen.awk: Generate cl_target_option_free
5354 and cl_optimization_option_free.
5355 * opth-en.awk: Declare cl_target_option_free
5356 and cl_optimization_option_free.
5357 * tree.c (free_node): Use it.
5358
5359 2019-11-06 Jan Hubicka <jh@suse.cz>
5360
5361 * lto-streamer-in.c: Include alloc-pool.h.
5362 (freeing_string_slot_hasher): Remove.
5363 (string_slot_allocator): New object allocator.
5364 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
5365 (file_name_obstack): New obstack.
5366 (canon_file_name): Allocate in obstack and allocator.
5367 (lto_reader_init): Initialize obstack and allocator.
5368 (lto_free_file_name_hash): New function.
5369 * lto-streamer.h (lto_free_file_name_hash): New.
5370
5371 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
5372
5373 PR tree-optimization/89134
5374 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5375 * params.def: Add min-loop-cond-split-prob.
5376 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5377 outside checks on loop into the function.
5378 (split_info): New class.
5379 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5380 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5381 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5382 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5383 (stmt_semi_invariant_p, branch_removable_p): Likewise.
5384 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5385 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5386 (split_loop_on_cond): Likewise.
5387 (tree_ssa_split_loops): Add loop split on conditional statement.
5388
5389 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
5390
5391 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5392 pattern.
5393
5394 2019-11-07 Richard Biener <rguenther@suse.de>
5395
5396 PR tree-optimization/92405
5397 * tree-vect-loop.c (vectorizable_reduction): Appropriately
5398 restrict lane-reducing ops to single stmt chains.
5399
5400 2019-11-07 Martin Jambor <mjambor@suse.cz>
5401
5402 PR lto/70929
5403 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5404 * cgraph.h (gimple_check_call_matching_types): Remove
5405 * cgraph.c (gimple_check_call_args): Likewise.
5406 (gimple_check_call_matching_types): Likewise.
5407 (symbol_table::create_edge): Do not call
5408 gimple_check_call_matching_types.
5409 (cgraph_edge::make_direct): Likewise.
5410 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5411 * value-prof.h (check_ic_target): Remove.
5412 * value-prof.c (check_ic_target): Remove.
5413 (gimple_ic_transform): Do nat call check_ic_target.
5414 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5415 (afdo_indirect_call): Likewise.
5416 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5417 gimple_check_call_matching_types.
5418 * ipa-inline.c (early_inliner): Likewise.
5419
5420 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5421
5422 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5423 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5424 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5425 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5426 * config/arm/iterators.md (USSAT16): New int_iterator.
5427 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5428 (sup): Likewise.
5429 * config/arm/predicates.md (ssat16_imm): New predicate.
5430 (usat16_imm): Likewise.
5431 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5432
5433 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5434
5435 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5436 New define_insns.
5437 (arm_<simd32_op>): New define_expands.
5438 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5439 __smuad, __smuadx): Define.
5440 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5441 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5442 (SIMD32_BINOP_Q): Likewise.
5443 (simd32_op): Handle the above.
5444 * config/arm/unspecs.md: Define unspecs for the above.
5445
5446 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5447
5448 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5449 * config/arm/arm.md (APSRGE_REGNUM): Define.
5450 (arm_<simd32_op>): New define_insn.
5451 (arm_sel): Likewise.
5452 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5453 (CALL_USED_REGISTERS): Likewise.
5454 (REG_ALLOC_ORDER): Likewise.
5455 (FIRST_PSEUDO_REGISTER): Update value.
5456 (ARM_GE_BITS_READ): Define.
5457 * config/arm/arm.c (arm_conditional_register_usage): Clear
5458 APSRGE_REGNUM from operand_reg_set.
5459 (arm_ge_bits_access): Define.
5460 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5461 ARM_BUIILTIN_sel.
5462 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5463 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5464 FAIL if ARM_GE_BITS_READ.
5465 (*arm_add<mode>3): New define_insn.
5466 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5467 (*arm_sub<mode>3): New define_insn.
5468 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5469 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5470 __usub16): Define.
5471 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5472 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5473 (simd32_op): Handle the above.
5474 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5475 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5476 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5477 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5478
5479 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5480
5481 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5482 (arm_smlabb): New define_expand.
5483 (*maddhisi4tb): Rename to...
5484 (maddhisi4tb): ... This.
5485 (*maddhisi4tt): Rename to...
5486 (maddhisi4tt): ... This.
5487 (arm_smlatb_setq): New define_insn.
5488 (arm_smlatb): New define_expand.
5489 (arm_smlatt_setq): New define_insn.
5490 (arm_smlatt): New define_expand.
5491 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5492 (arm_<smlaw_op>): New define_expand.
5493 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5494 __smlawb, __smlawt): Define.
5495 * config/arm_acle_builtins.def: Define builtins for the above.
5496 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5497 (slaw_op): New int_attribute.
5498 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5499
5500 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5501
5502 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5503 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5504 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5505 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5506 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5507 (ss_op): New code_attr.
5508
5509 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5510
5511 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5512 * config/arm/arm.md (APSRQ_REGNUM): Define.
5513 (add_setq): New define_subst.
5514 (add_clobber_q_name): New define_subst_attr.
5515 (add_clobber_q_pred): Likewise.
5516 (maddhisi4): Change to define_expand. Split into mult and add if
5517 ARM_Q_BIT_READ.
5518 (arm_maddhisi4): New define_insn.
5519 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5520 (*maddhisi4tt): Likewise.
5521 (arm_ssat): New define_expand.
5522 (arm_usat): Likewise.
5523 (arm_get_apsr): New define_insn.
5524 (arm_set_apsr): Likewise.
5525 (arm_saturation_occurred): New define_expand.
5526 (arm_set_saturation): Likewise.
5527 (*satsi_<SAT:code>): Rename to...
5528 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5529 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5530 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5531 (CALL_USED_REGISTERS): Mark apsrq.
5532 (FIRST_PSEUDO_REGISTER): Update value.
5533 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5534 (machine_function): Add q_bit_access.
5535 (ARM_Q_BIT_READ): Define.
5536 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5537 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5538 operand_reg_set.
5539 (arm_q_bit_access): Define.
5540 * config/arm/arm-builtins.c: Include stringpool.h.
5541 (arm_sat_binop_imm_qualifiers,
5542 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5543 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5544 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5545 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5546 SET_SAT_QUALIFIERS): Likewise.
5547 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5548 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5549 Handle 0 argument expander.
5550 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5551 (arm_check_builtin_call): Define.
5552 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5553 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5554 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5555 (arm_q_bit_access): Likewise.
5556 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5557 __saturation_occurred, __set_saturation_occurred): Define.
5558 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5559 saturation_occurred, set_saturation_occurred.
5560 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5561 (UNSPEC_APSR_READ): Likewise.
5562 (VUNSPEC_APSR_WRITE): Likewise.
5563 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5564 (*arm_ssadd<mode>3): New define_insn.
5565 (sssub<mode>3): Convert to define_expand.
5566 (*arm_sssub<mode>3): New define_insn.
5567 (ssmulsa3): Convert to define_expand.
5568 (*arm_ssmulsa3): New define_insn.
5569 (usmulusa3): Convert to define_expand.
5570 (*arm_usmulusa3): New define_insn.
5571 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5572 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5573 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5574
5575 2019-11-07 Martin Liska <mliska@suse.cz>
5576
5577 PR c++/92354
5578 * cgraph.c (delete_function_version): Clear global
5579 variable version_info_node if equal to deleted
5580 function.
5581
5582 2019-11-07 Martin Liska <mliska@suse.cz>
5583
5584 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5585 of CONSTRUCTOR_NO_CLEARING.
5586 (operand_compare::hash_operand): Likewise.
5587
5588 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5589
5590 Support 64-bit double and 64-bit long double configurations.
5591
5592 PR target/92055
5593 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5594 --with-long-double=.
5595 * config/avr/t-multilib: Remove.
5596 * config/avr/t-avr: Output of genmultilib.awk is now fully
5597 dynamically generated and no more part of the repo.
5598 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5599 Pass them down to...
5600 * config/avr/genmultilib.awk: ...here and handle them.
5601 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5602 (-mlong-double=, avr_long_double). New option and var.
5603 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5604 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5605 Set default as requested by --with-double=
5606 (TARGET_HANDLE_OPTION): Define to this...
5607 (avr_handle_option): ...new hook worker.
5608 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5609 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5610 (avr_double_lib): New proto for spec function.
5611 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5612 (DRIVER_SELF_SPECS): Call %:double-lib.
5613 * config/avr/avr.c (avr_option_override): Assert
5614 sizeof(long double) >= sizeof(double) for the target.
5615 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5616 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5617 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5618 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5619 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5620 New built-in define depending on --with-double=, --with-long-double=.
5621 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5622 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5623 * doc/install.texi (Cross-Compiler-Specific Options)
5624 <--with-double=, --with-long-double=>: Doc.
5625
5626 2019-11-07 Richard Biener <rguenther@suse.de>
5627
5628 * dbgcnt.def (gimple_unroll): New.
5629 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5630 gimple_unroll debug counter before applying transform.
5631 (try_peel_loop): Likewise.
5632
5633 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5634
5635 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5636 frame pointer in multiple registers.
5637 (ira_setup_eliminable_regset): Setup eliminable_regset,
5638 ira_no_alloc_regs and regs_ever_live for frame pointer in
5639 multiple registers.
5640
5641 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5642
5643 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5644 V2DI modes.
5645
5646 2019-11-06 Jan Hubicka <jh@suse.cz>
5647
5648 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5649 allocations.
5650 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5651 Do not silently ignore summary corruptions.
5652
5653 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5654
5655 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5656 the epilogue if there are peeled iterations for it to handle.
5657
5658 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5659
5660 * config/arc/arc.c (arc_split_ior): Add asserts.
5661 (arc_split_mov_const): Likewise.
5662 (arc_check_ior_const): Do not match known short immediate values.
5663 * config/arc/arc.md (movsi): Don't split predicated instructions
5664 (iorsi): Likewise.
5665
5666 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5667
5668 * config/arc/arc.opt (mea): Update help string.
5669 * doc/invoke.texi(ARC): Update mea option info.
5670
5671 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5672
5673 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5674 (zero_extendqisi2_ac): Likewise.
5675 (zero_extendhisi2_i): Likewise.
5676 (extendqihi2_i): Likewise.
5677 (extendqisi2_ac): Likewise.
5678 (extendhisi2_i): Likewise.
5679
5680 2019-11-06 Richard Biener <rguenther@suse.de>
5681
5682 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5683 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5684 Simplify single_defuse_cycle condition.
5685
5686 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5687
5688 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5689 epilogue loop, make sure that the VF is small enough or that
5690 the epilogue loop can be fully-masked.
5691
5692 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5693
5694 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5695 loop when we've finished, rather than returning directly from
5696 the loop. Use a local variable to track whether we're still
5697 searching for the preferred simdlen. Make vect_epilogues
5698 record whether the next iteration should try to treat the
5699 loop as an epilogue.
5700
5701 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5702
5703 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5704 __arc_hard_float__, __ARC_HARD_FLOAT__,
5705 __arc_soft_float__, __ARC_SOFT_FLOAT__
5706
5707 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5708
5709 PR tree-optimization/92317
5710 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5711 update phi's with constant phi arguments.
5712
5713 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5714 Alexandre Oliva <oliva@adacore.com>
5715
5716 * common.opt (-fcallgraph-info[=]): New option.
5717 * doc/invoke.texi (Developer options): Document it.
5718 * opts.c (common_handle_option): Handle it.
5719 * builtins.c (expand_builtin_alloca): Record allocation if
5720 -fcallgraph-info=da.
5721 * calls.c (expand_call): If -fcallgraph-info, record the call.
5722 (emit_library_call_value_1): Likewise.
5723 * flag-types.h (enum callgraph_info_type): New type.
5724 * explow.c: Include stringpool.h.
5725 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5726 * function.c (allocate_stack_usage_info): New.
5727 (allocate_struct_function): Call it for -fcallgraph-info.
5728 (prepare_function_start): Call it otherwise.
5729 (record_final_call, record_dynamic_alloc): New.
5730 * function.h (struct callinfo_callee): New.
5731 (CALLEE_FROM_CGRAPH_P): New.
5732 (struct callinfo_dalloc): New.
5733 (struct stack_usage): Add callees and dallocs.
5734 (record_final_call, record_dynamic_alloc): Declare.
5735 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5736 object if -fcallgraph-info=da.
5737 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5738 * print-tree.h (print_decl_identifier): Declare.
5739 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5740 * print-tree.c: Include print-tree.h.
5741 (print_decl_identifier): New function.
5742 * toplev.c: Include print-tree.h.
5743 (callgraph_info_file): New global variable.
5744 (callgraph_info_external_printed): Likewise.
5745 (output_stack_usage): Rename to...
5746 (output_stack_usage_1): ... this. Make it static, add cf
5747 parameter. If -fcallgraph-info=su, print stack usage to cf.
5748 If -fstack-usage, use print_decl_identifier for
5749 pretty-printing.
5750 (INDIRECT_CALL_NAME): New.
5751 (dump_final_node_vcg_start): New.
5752 (dump_final_callee_vcg, dump_final_node_vcg): New.
5753 (output_stack_usage): New.
5754 (lang_dependent_init): Open and start file if
5755 -fcallgraph-info. Allocated callgraph_info_external_printed.
5756 (finalize): If callgraph_info_file is not null, finish it,
5757 close it, and release callgraph_info_external_printed.
5758
5759 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5760 Frederik Harwath <frederik@codesourcery.com>
5761 Thomas Schwinge <thomas@codesourcery.com>
5762
5763 * omp-low.c (struct omp_context): New fields
5764 local_reduction_clauses, outer_reduction_clauses.
5765 (new_omp_context): Initialize these.
5766 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5767 (scan_omp_for): Check reduction clauses for incorrect nesting.
5768
5769 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5770
5771 PR inline-asm/92352
5772 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5773 operands with non-memory constraints.
5774
5775 2019-11-05 Martin Sebor <msebor@redhat.com>
5776
5777 PR tree-optimization/92373
5778 * tree.c (component_ref_size): Only consider initializers of objects
5779 of matching struct types.
5780 Return null for instances of interior zero-length arrays.
5781
5782 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5783
5784 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5785
5786 2019-11-05 Jason Merrill <jason@redhat.com>
5787
5788 PR tree-optimization/91825
5789 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5790
5791 2019-11-05 Jim Wilson <jimw@sifive.com>
5792
5793 PR middle-end/92263
5794 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5795 optimize_insn_for_speed_p is true.
5796
5797 2019-11-05 Martin Sebor <msebor@redhat.com>
5798
5799 PR middle-end/92333
5800 PR middle-end/82608
5801 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5802 size.
5803 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5804 name and location for a temporary variable.
5805
5806 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5807
5808 * tree-vrp.c (value_range::value_range): Fix whitespace.
5809 (defined_ranges_p): Same.
5810 (range_fold_binary_symbolics_p): Same.
5811 (value_range::intersect_helper): Same.
5812 (value_range::union_helper): Same.
5813 * tree-vrp.h (range_fold_binary_expr): Same.
5814
5815 2019-11-04 Martin Sebor <msebor@redhat.com>
5816
5817 PR middle-end/92341
5818 PR middle-end/82612
5819 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5820 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5821 of message printed in a warning for empty arrays.
5822 (vrp_prop::check_mem_ref): Also handle function parameters and
5823 empty arrays.
5824
5825 2019-11-05 Richard Biener <rguenther@suse.de>
5826
5827 PR tree-optimization/92371
5828 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5829 on the original stmt of live stmts in the chain.
5830 (vectorizable_live_operation): Look at the original stmt when
5831 checking STMT_VINFO_REDUC_DEF.
5832
5833 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5834
5835 * gimple-fold.c, gimple-loop-versioning.cc,
5836 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5837 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5838 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5839 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5840 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5841 value_range_equiv, and value_range_base to value_range.
5842
5843 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5844
5845 * expr.c (build_personality_function): Fix generated type to
5846 match actual personality functions.
5847
5848 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5849
5850 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5851 enough bytes for the NULL character.
5852
5853 2019-11-05 Richard Biener <rguenther@suse.de>
5854
5855 PR tree-optimization/92280
5856 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5857 had a single use do not create a new CTOR.
5858 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5859 BIT_FIELD_REF of a CTOR via GENERIC.
5860
5861 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5862
5863 * config/s390/s390.c (s390_vector_alignment): Check if the value
5864 fits into uhwi before using it.
5865
5866 2019-11-05 Martin Liska <mliska@suse.cz>
5867
5868 * symbol-summary.h: Use ggc_delete.
5869
5870 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5871
5872 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5873 Change vec_perm field to 10.
5874
5875 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5876
5877 * doc/install.texi: Further fix syntax for html generation.
5878
5879 2019-11-05 Martin Liska <mliska@suse.cz>
5880
5881 * symbol-summary.h: Rename allocator to m_allocator and
5882 add comment.
5883
5884 2019-11-05 Richard Biener <rguenther@suse.de>
5885
5886 PR tree-optimization/92324
5887 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5888 all signed or unsigned operations.
5889
5890 2019-11-05 Jan Hubicka <jh@suse.cz>
5891
5892 * hsa-brig.c: Include alloc-pool.h
5893 * hsa-dump.c: Likewise.
5894 * hsa-gen.c: Likewise.
5895 * hse-regalloc.c: Likewise.
5896 * ipa-hsa.c: Likewise.
5897 * ipa-predicate.c: Likewise.
5898 * ipa-reference.c: Likewise.
5899 * ipa-sra.c: Likewise.
5900 * omp-expand.c: Likewise.
5901 * omp-general.c: Likewise.
5902 * omp-low.c: Likewise.
5903 * sumbol-summary.h (function_summary_base): Add allocator.
5904 (function_summary<T *>::function_summary): Update construction.
5905 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5906 (call_summary_base): Add allcator.
5907 (call_summary<T *>::call_summary): Update construction.
5908 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5909
5910 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5911
5912 PR tree-optimization/91945
5913 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5914 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5915 Formatting fix.
5916
5917 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5918
5919 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5920 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5921 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5922 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5923 (vrp_set_zero_nonzero_bits): Move to...
5924 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5925 (vr_values::simplify_bit_ops_using_ranges): Rename
5926 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5927
5928 2019-11-05 Martin Liska <mliska@suse.cz>
5929
5930 PR c++/92339
5931 * fold-const.c (operand_compare::hash_operand): Remove
5932 FIELD_DECL handling.
5933
5934 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5935
5936 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5937 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5938 static.
5939
5940 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5941
5942 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5943 properly handle symbolics.
5944 (range_compatible_p): Remove.
5945
5946 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5947
5948 * common.opt (-fabi-version): Document =14.
5949 * doc/invoke.texi (C++ Dialect Options): Likewise.
5950
5951 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5952
5953 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5954
5955 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5956
5957 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5958 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5959 gcn_omp_device_kind_arch_isa.
5960 * config/gcn/t-omp-device: New file.
5961 * configure.ac: Support gcn for omp_device_property.
5962 * configure: Regenerate.
5963
5964 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5965
5966 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5967 (vrp_val_max): Same.
5968 (vrp_val_is_min): Same.
5969 (vrp_val_is_max): Same.
5970 (value_range_base::nonzero_p): Remove last argument to
5971 vrp_val_is_max.
5972 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5973 (vrp_val_max): Same.
5974 (vrp_val_is_min): Same.
5975 (vrp_val_is_max): Same.
5976 (value_range_base::set_varying): Remove last argument to vrp_val*.
5977 (value_range_base::dump): Same.
5978 (value_range_base::set): Same.
5979 (value_range_base::normalize_symbolics): Same.
5980 (value_range_base::num_pairs): Same.
5981 (value_range_base::lower_bound): Same.
5982 (value_range_base::upper_bound): Same.
5983 (ranges_from_anti_range): Remove handle_pointers argument.
5984 (value_range_base::singleton_p): Remove last argument to
5985 ranges_from_anti_range.
5986
5987 2019-11-04 Jan Hubicka <jh@suse.cz>
5988
5989 * ipa-reference.c (init_function_info): Initialize
5990 info->global.statics_read.
5991
5992 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5993
5994 * tree-vrp.c (value_range_base::invert): Use constructors to build
5995 range.
5996
5997 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5998
5999 * tree-vrp.c (range_int_cst_singleton_p): Remove.
6000 * tree-vrp.h (range_int_cst_singleton_p): Remove.
6001
6002 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6003
6004 * tree-vrp.c (value_range_base::normalize_addresses): Handle
6005 VR_UNDEFINED.
6006
6007 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6008
6009 * tree-vrp.c (dump_assert_info): New.
6010 (dump_asserts_info): New.
6011
6012 2019-11-04 Jan Hubicka <jh@suse.cz>
6013
6014 * ipa-inline-transform.c: Include ipa-utils.h
6015 (inline_call): Set thunk_expansion flag.
6016 * ipa-utils.h (thunk_expansion): Declare.
6017 * ipa-devirt.c (thunk_expansion): New global var.
6018 (devirt_node_removal_hook): Do not invalidate cache while
6019 doing thunk expansion.
6020
6021 2019-11-04 Tamar Christina <tamar.christina@arm.com>
6022
6023 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
6024
6025 2019-11-04 Martin Sebor <msebor@redhat.com>
6026
6027 PR tree-optimization/92349
6028 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
6029 memebers have constant sizes.
6030
6031 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
6032
6033 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
6034 parameter.
6035 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
6036 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
6037 vect_analyze_loop.
6038
6039 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
6040
6041 * expr.c (store_constructor): Modify to handle single element vectors.
6042 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
6043 constructors.
6044 (vect_slp_check_for_constructors): New function.
6045 (vect_slp_analyze_bb_1): Call new function to check for vector
6046 constructors.
6047 (vectorize_slp_instance_root_stmt): New function.
6048 (vect_schedule_slp): Call new function to vectorize root stmt of vector
6049 constructors.
6050 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
6051
6052 2019-11-04 Richard Biener <rguenther@suse.de>
6053
6054 PR tree-optimization/92345
6055 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
6056 we produced a reduction chain.
6057 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
6058 LOOP_VINFO_REDUCTIONS.
6059
6060 2019-11-04 Jan Hubicka <jh@suse.cz>
6061
6062 * cgraphclones.c (cgraph_node::create_version_clone): Do not
6063 duplicate summaries.
6064 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
6065 first.
6066 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
6067 access call summaries.
6068 (dump_ipa_call_summary): Be ready for missing edge summaries.
6069 (analyze_function_body): Use get instead of get_create to access
6070 edge summary.
6071 (estimate_calls_size_and_time): Do not access summaries of
6072 inlined edges; sanity check they are missing.
6073 (ipa_call_context::estimate_size_and_time): Use get instead
6074 of get_create to access node summary.
6075 (inline_update_callee_summaries): Do not update depth of
6076 inlined edge.
6077 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
6078 growth caches.
6079 (ipa_merge_fn_summary_after_inlining): Use get instead
6080 of get_create.
6081 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
6082 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
6083 fast summary.
6084 (initialize_growth_caches): Update.
6085 (do_estimate_edge_time): Remove redundant copy of context.
6086 (ipa_remove_from_growth_caches): New function.
6087 * ipa-inline.c (flatten_function): Update overall summary
6088 only when optimizing.
6089 (inline_to_all_callers): Update overall summary of function
6090 inlined to.
6091 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
6092 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
6093 to false.
6094
6095 2019-11-04 Richard Biener <rguenther@suse.de>
6096
6097 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
6098 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
6099
6100 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
6101
6102 * ggc-common.c: Include system.h before malloc.h.
6103
6104 2019-11-04 Alexandre Oliva <oliva@adacore.com>
6105
6106 * configure.ac: Pass --enable-obsolete=* and
6107 --enable-option-checking=* down to build configure, and fail
6108 if it fails. AC_SUBST HAVE_AUTO_BUILD.
6109 * configure: Rebuild.
6110 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
6111 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
6112
6113 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6114
6115 * config.in: Regenerate.
6116 * config/msp430/msp430.c (msp430_option_override): Emit an error if
6117 -mtiny-printf is used without GCC being configured with
6118 --enable-newlib-nano-formatted-io.
6119 * config/msp430/msp430.h (LINK_SPEC): Pass
6120 "--wrap puts --wrap printf" when -mtiny-printf is used.
6121 * config/msp430/msp430.opt: Document -mtiny-printf.
6122 * configure: Regenerate.
6123 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
6124 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
6125 --enable-newlib-nano-formatted-io is passed.
6126 * doc/invoke.texi: Document -mtiny-printf.
6127
6128 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6129
6130 * configure: Regenerate.
6131
6132 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6133
6134 * config/msp430/driver-msp430.c
6135 (msp430_get_linker_devices_include_path): New spec function.
6136 * config/msp430/msp430-devices.c (msp430_dirname): New function.
6137 (extract_devices_dir_from_exec_prefix): New function.
6138 (extract_devices_dir_from_collect_gcc): New function.
6139 (msp430_check_env_var_for_devices): New function.
6140 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
6141 (parse_devices_csv): Call msp430_check_env_var_for_devices if
6142 devices.csv was not found using other methods.
6143 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
6144 New prototype.
6145 (msp430_dirname): Likewise.
6146 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
6147 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
6148 msp430_get_linker_devices_include_path.
6149 (TARGET_EXTRA_PRE_INCLUDES): Define.
6150 * doc/invoke.texi: Document new ways of searching for support files.
6151
6152 2019-11-04 Richard Biener <rguenther@suse.de>
6153
6154 PR tree-optimization/92301
6155 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
6156 as required by epilogue generation
6157
6158 2019-11-04 Martin Liska <mliska@suse.cz>
6159
6160 PR ipa/92304
6161 * fold-const.c (operand_compare::hash_operand): Fix field
6162 hashing of CONSTRUCTOR.
6163
6164 2019-11-04 Martin Liska <mliska@suse.cz>
6165
6166 * ggc.h (ggc_delete): New function.
6167 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
6168 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
6169 (ipa_free_all_node_params): Likewise.
6170 * ipa-sra.c (ipa_sra_analysis): Likewise.
6171
6172 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6173
6174 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
6175 set_switch_stmt_execution_predicate, compute_bb_predicates,
6176 will_be_nonconstant_expr_predicate,
6177 phi_result_unknown_predicate,
6178 analyze_function_body): Pass arround params summary.
6179 (ipa_call_context::duplicate_from): New comment;
6180 only duplicate useful values.
6181 (ipa_call_context::equal_to): Only compare useful values.
6182 (remap_edge_summaries): Pass params_summary.
6183 (remap_hint_predicate): Likewise.
6184 (ipa_merge_fn_summary_after_inlining): Likewise.
6185 (inline_read_section): Initialize params summary used flags.
6186 * ipa-predicate.c (predicate::remap_after_inlining): Pass
6187 around param_summary.
6188 (add_condition): Initialized used params summary flags.
6189 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
6190 (inline_param_summary::useless_p): New predicate.
6191 (remap_after_inlining, add_condition): Update prototype
6192 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
6193 move_cost.
6194 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
6195 summaries.
6196 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
6197 (ipa_analyze_virtual_call_uses): Likewise.
6198 (update_indirect_edges_after_inlining): Update param summaries.
6199 (ipa_print_node_params): Print used flags.
6200 (ipa_read_indirect_edge_info): Update param summareis.
6201 * ipa-prop.h (ipa_param_descriptor): Add
6202 used_by_ipa_predicates, used_by_indirect_call
6203 and used_by_polymorphic_call.
6204 (ipa_set_param_used_by_ipa_predicates,
6205 ipa_set_param_used_by_indirect_call,
6206 ipa_set_param_used_by_polymorphic_call,
6207 ipa_is_param_used_by_ipa_predicates,
6208 ipa_is_param_used_by_indirect_call,
6209 ipa_is_param_used_by_polymorphic_call): New inline functions.
6210
6211 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6212
6213 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
6214 member function.
6215 (ipa_call_context::release): Add ALL parameter.
6216 (ipa_call_context::equal_to): New member function.
6217 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
6218 duplicate_form, release, equal_to and exists_p member functoins.
6219 * ipa-inline-analysis.c (node_context_cache_entry): New
6220 class.
6221 (node_context_summary): Likewise.
6222 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
6223 node_context_clear): New static vars.
6224 (initialize_growth_caches): New function.
6225 (free_growth_caches): Also delete node_context_cache; output stats.
6226 (do_estimate_edge_time): Cache contexts.
6227 (reset_node_cache): New function.
6228 * ipa-inline.c (reset_edge_caches): Reset also node cache.
6229 (inline_small_functions): Initialize growth caches.
6230 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
6231 Declare.
6232 * ipa-predicate.h (inline_param_summary::equal_to): New.
6233 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
6234 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
6235 (ipa_agg_jump_function): Implement equal_to member function.
6236
6237 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6238
6239 * ipa-fnsummary.c (inline_read_section): Set vector size
6240 ahead of time.
6241
6242 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6243
6244 * ipa-fnsummary.c (ipa_call_context): New constructor.
6245 (estimate_node_size_and_time): Turn to ...
6246 (ipa_call_context::estimate_size_and_time): ... this one.
6247 (ipa_call_context::release): New.
6248 * ipa-fnsummary.h (ipa_call_context): New class.
6249 (estimate_node_size_and_time): Remove.
6250 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
6251 do_estimate_edge_hints): Update.
6252
6253 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6254
6255 * config.in: Regenerate.
6256 * configure: Regenerate.
6257 * configure.ac: Check for mallinfo.
6258 * ggc-common.c: Include malloc.h if available;
6259 include options.h
6260 (report_heap_memory_use): New functoin.
6261 * ggc-page.c (ggc_grow): Do not print "start".
6262 * ggc.h (report_heap_memory_use): Declare.
6263 * pases.c (execute_one_pass): Report memory after IPA passes.
6264 (ipa_read_summaries_1): Likewise.
6265 (ipa_read_optimization_summaries_1): Likewise.
6266
6267 2019-11-02 Jakub Jelinek <jakub@redhat.com>
6268
6269 * gimplify.h (omp_construct_selector_matches): Change return
6270 type to int, add a new SCORES argument.
6271 * gimplify.c (omp_construct_selector_matches): Likewise. If
6272 SCORES is non-NULL, compute scores of each construct.
6273 * omp-general.h (omp_get_context_selector): Declare.
6274 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
6275 Adjust omp_construct_selector_matches callers.
6276 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
6277 (omp_context_compute_score): New function.
6278 (omp_resolve_declare_variant): Compute scores and decide based on
6279 that.
6280
6281 PR bootstrap/92314
6282 * configure.ac: Don't look for omp-device-properties files from
6283 installed offloading compilers. Instead add tmake_file snippets
6284 for configured offloading targets and use files they generate.
6285 * Makefile.in (install): Don't depend on
6286 install-omp-device-properties.
6287 (install-omp-device-properties): Remove goal.
6288 * config/i386/t-omp-device: New file.
6289 * config/i386/t-intelmic (omp-device-properties): Remove goal.
6290 * config/nvptx/t-omp-device: New file.
6291 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
6292 * configure: Regenerated.
6293
6294 * omp-general.h (omp_context_selector_set_compare): Declare.
6295 * omp-general.c (omp_construct_simd_compare,
6296 omp_context_selector_props_compare, omp_context_selector_set_compare,
6297 omp_context_selector_compare): New functions.
6298 (omp_resolve_declare_variant): Prune variants that are strict subset
6299 of another variant.
6300
6301 2019-11-01 Martin Sebor <msebor@redhat.com>
6302
6303 PR middle-end/91679
6304 PR middle-end/91647
6305 PR middle-end/91463
6306 PR middle-end/92312
6307 * doc/invoke.texi (-Wzero-length-bounds): Document.
6308 * gimple-match-head.c (try_conditional_simplification): Use memcpy
6309 instead of a hand-rolled loop to avoid PR 92323.
6310 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
6311 with initializers.
6312 (vrp_prop::check_mem_ref): Handle declared struct objects.
6313 * tree.c (last_field): New function.
6314 (array_at_struct_end_p): Handle MEM_REF.
6315 (get_initializer_for): New helper.
6316 (component_ref_size): Add argument. Rename locals. Call
6317 get_initializer_for instead of fold_ctor_reference. Correct handling
6318 of flexible array members.
6319 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
6320
6321 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6322
6323 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
6324 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
6325 UNSPEC_VSX_CVSPUXDS): Remove.
6326 (vsx_xvcvspdp): New define_expand, old define_insn split to...
6327 (vsx_xvcvspdp_be): ... this. New. And...
6328 (vsx_xvcvspdp_le): ... this. New.
6329 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
6330 (vsx_xvcv<su>xwdp_be): ... this. New. And...
6331 (vsx_xvcv<su>xwdp_le): ... this. New.
6332 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
6333 (vsx_xvcvsp<su>xds_be): ... this. New. And...
6334 (vsx_xvcvsp<su>xds_le): ... this. New.
6335
6336 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6337
6338 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
6339 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
6340 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
6341 UNSPEC_VSX_XVCVSPSXWS): Remove.
6342 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
6343 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
6344
6345 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6346
6347 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
6348 (UNSPEC_VSX_XVCDPSP): Remove.
6349 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
6350 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
6351
6352 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6353
6354 * hooks.c (hook_tree_tree_bool_null): New.
6355 * hooks.h (hook_tree_tree_bool_null): Declare.
6356 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
6357 (LANG_HOOKS_DECLS): Add it.
6358 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
6359 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
6360 (lower_omp_target): Handle Fortran array with descriptor in
6361 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
6362
6363 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
6364
6365 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6366 Assert that the type we store in abi_vector_types is its own
6367 main variant.
6368 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6369
6370 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6371
6372 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6373 from a CONST_INT address when TARGET_THUMB2.
6374
6375 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6376
6377 * config/arm/arm.md (add_not_cin): New insn.
6378 (add_not_shift_cin): Likewise.
6379
6380 2019-10-31 Martin Liska <mliska@suse.cz>
6381
6382 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6383 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6384 and compare_memory_operand.
6385
6386 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6387
6388 * configure.ac: Compute and substitute omp_device_properties and
6389 omp_device_property_deps.
6390 * Makefile.in (generated_files): Add omp-device-properties.h.
6391 (omp-general.o): Depend on omp-device-properties.h.
6392 (omp_device_properties): New make variable.
6393 (omp-device-properties.h, s-omp-device-properties-h,
6394 install-omp-device-properties): New goals.
6395 (install): Depend on install-omp-device-properties for accelerators.
6396 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6397 * target.h (enum omp_device_kind_arch_isa): New enum.
6398 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6399 documentation.
6400 * omp-general.c: Include omp-device-properties.h.
6401 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6402 colon instead of comma.
6403 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6404 functions.
6405 (omp_context_selector_matches): Implement device set arch/isa
6406 selectors, improve device set kind selector handling.
6407 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6408 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6409 TARGET_SIMD_CLONE_USABLE): Formatting fix.
6410 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6411 ix86_omp_device_kind_arch_isa.
6412 * config/i386/i386-options.c (struct ix86_target_opts): Move type
6413 definition from ix86_target_string to file scope.
6414 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6415 to file scope.
6416 (ix86_omp_device_kind_arch_isa): New function.
6417 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6418 isa_opts definitions to file scope.
6419 * config/i386/t-intelmic (omp-device-properties): New goal.
6420 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6421 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6422 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6423 nvptx_omp_device_kind_arch_isa.
6424 * configure: Regenerate.
6425 * doc/tm.texi: Regenerate.
6426
6427 PR middle-end/92231
6428 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6429 DECL_BUILT_IN in comment. Remove redundant ()s around return
6430 argument.
6431 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6432 before calling fndecl_built_in_p.
6433 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6434 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6435 fndecl_built_in_p on it.
6436
6437 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6438
6439 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6440
6441 2019-10-31 Martin Liska <mliska@suse.cz>
6442
6443 * config/arm/arm.c (arm_get_pcs_model): Remove usage
6444 of cgraph_local_info and use local_info_node instead.
6445 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6446 (bfin_function_ok_for_sibcall): Likewise.
6447 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6448 (must_reload_pic_reg_p): Likewise.
6449
6450 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6451
6452 PR c++/90947
6453 * tree.h (type_initializer_zero_p): Remove.
6454 * tree.c (type_initializer_zero_p): Remove.
6455
6456 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6457
6458 * doc/invoke.texi (-Wshadow, -Wshadow=global
6459 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6460
6461 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6462
6463 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6464 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6465 and 'target exit data'.
6466
6467 2019-10-30 Martin Jambor <mjambor@suse.cz>
6468
6469 ipa/92278
6470 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6471 availability comparison.
6472
6473 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6474
6475 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6476 calls to __mspabi_mpy* functions.
6477 * config/msp430/msp430.md (mulhisi3): New define_expand.
6478 (umulhisi3): New define_expand.
6479 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6480 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6481
6482 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6483
6484 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6485 (msp430_check_plus_not_high_mem): New.
6486 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6487 might be in low memory.
6488 Indicate that a 16-bit absolute address is in lower memory.
6489
6490 2019-10-30 Martin Jambor <mjambor@suse.cz>
6491
6492 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6493 ultimate_alias_target.
6494
6495 2019-10-30 Richard Biener <rguenther@suse.de>
6496
6497 PR tree-optimization/92275
6498 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6499 Copy all loop-closed PHIs.
6500
6501 2019-10-30 Martin Liska <mliska@suse.cz>
6502
6503 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6504 const_tree as function argument.
6505 (func_checker::compare_decl): Likewise.
6506 (func_checker::operand_equal_p): Likewise.
6507 (func_checker::compare_variable_decl): Likewise.
6508 (func_checker::parse_labels): Likewise.
6509 * ipa-icf-gimple.h: Likewise.
6510
6511 2019-10-30 Martin Liska <mliska@suse.cz>
6512
6513 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6514 Do not compare alias sets. It's handled by operand_equal_p.
6515
6516 2019-10-30 Martin Liska <mliska@suse.cz>
6517
6518 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6519 initialize m_compare_polymorphic.
6520 (func_checker::compare_decl): Do not compare polymorphic types.
6521 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6522 * ipa-icf.c (sem_function::equals_private): Do not call
6523 compare_polymorphic_p.
6524
6525 2019-10-30 Martin Liska <mliska@suse.cz>
6526
6527 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6528 compare_operand.
6529 (func_checker::compare_memory_operand): Remove.
6530 (func_checker::compare_cst_or_decl): Remove.
6531 (func_checker::operand_equal_valueize): Do not handle
6532 FIELD_DECL.
6533 (func_checker::compare_gimple_call): Call compare_operand.
6534 (func_checker::compare_gimple_assign): Likewise.
6535 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6536 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6537 * ipa-icf.h (icf_handled_component_p): Remove.
6538
6539 2019-10-30 Martin Liska <mliska@suse.cz>
6540
6541 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6542 (func_checker::compare_cst_or_decl): Remove handling
6543 of FIELD_DECL.
6544 (func_checker::compare_operand): Transform to ...
6545 (func_checker::operand_equal_p): ... this.
6546 * ipa-icf-gimple.h (class func_checker): Add
6547 operand_equal_p and hash_operand.
6548 * ipa-icf.c (sem_function::equals_private): Fix
6549 pushing and popping of cfun.
6550
6551 2019-10-30 Martin Liska <mliska@suse.cz>
6552
6553 * fold-const.c (operand_equal_p): Move to ...
6554 (operand_compare::operand_equal_p): ... here.
6555 (operand_compare::verify_hash_value): New.
6556 (add_expr): Move to ...
6557 (operand_compare::hash_operand): ... here.
6558 * fold-const.h (operand_equal_p): Move to the class.
6559 (class operand_compare): New.
6560 * tree.c (add_expr): Remove.
6561
6562 2019-10-30 Martin Liska <mliska@suse.cz>
6563
6564 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6565 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6566
6567 2019-10-30 Martin Liska <mliska@suse.cz>
6568
6569 PR lto/91393
6570 PR lto/88220
6571 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6572 from a first_clone in order to get proper LTO section
6573 in LTO stream.
6574 (cgraph_node::get_untransformed_body):
6575 Use lto_get_section_data where symtab_node::order
6576 must be provided.
6577 * cgraphclones.c (cgraph_node::find_replacement):
6578 Update also symbol order.
6579 * ipa-fnsummary.c (ipa_fn_summary_read):
6580 Use new function lto_get_summary_section_data.
6581 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6582 * ipa-icf.c (sem_item_optimizer::read_summary):
6583 Likewise.
6584 * ipa-prop.c (ipa_prop_read_jump_functions):
6585 Likewise.
6586 (ipcp_read_transformation_summaries): Likewise.
6587 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6588 * lto-cgraph.c (input_node): Add also order_base.
6589 (input_varpool_node): Likewise.
6590 (input_cgraph_1): Assign the order_base.
6591 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6592 * lto-opts.c (lto_write_options): Pass new argument.
6593 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6594 (lto_get_summary_section_data): New.
6595 (lto_get_raw_section_data): Add order argument.
6596 (lto_create_simple_input_block): Likewise.
6597 * lto-section-out.c (lto_destroy_simple_output_block):
6598 Likewise.
6599 * lto-streamer-in.c (lto_input_toplevel_asms):
6600 Use lto_get_summary_section_data.
6601 (lto_input_mode_table): Likewise.
6602 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6603 (lto_output_toplevel_asms): Pass new argument.
6604 (copy_function_or_variable): Likewise.
6605 (produce_lto_section):Likewise.
6606 (produce_symtab): Likewise.
6607 (lto_write_mode_table): Likewise.
6608 (produce_asm_for_decls): Likewise.
6609 * lto-streamer.c (lto_get_section_name): Concat symbol name
6610 and symbol order.
6611 * lto-streamer.h (lto_get_section_data): Add order argument.
6612 (lto_get_summary_section_data): New.
6613 (lto_get_raw_section_data): Add order argument.
6614 (lto_get_section_name): Likewise.
6615 * varpool.c (varpool_node::get_constructor): Pass order argument.
6616
6617 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6618
6619 PR tree-optimization/92262
6620 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6621 ubase or cbase here.
6622 (remove_unused_ivs): Unshare comp before using it.
6623
6624 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6625
6626 * ipa-prop.c (update_jump_functions_after_inlining):
6627 Watch for missing summaries.
6628
6629 2019-10-30 Richard Biener <rguenther@suse.de>
6630
6631 PR tree-optimization/65930
6632 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6633 chains also allow a leading and trailing conversion.
6634 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6635 intermediate reduction chains.
6636 (vect_analyze_slp_instance): Likewise. Build a SLP
6637 node for a trailing conversion manually.
6638
6639 2019-10-30 Martin Liska <mliska@suse.cz>
6640
6641 * cgraph.c (cgraph_node::local_info): Transform to ...
6642 (cgraph_node::local_info_node): ... this.
6643 (cgraph_node::dump): Remove cgraph_local_info and
6644 put its fields directly into cgraph_node.
6645 (cgraph_node::get_availability): Likewise.
6646 (cgraph_node::make_local): Likewise.
6647 (cgraph_node::verify_node): Likewise.
6648 * cgraph.h (struct GTY): Likewise.
6649 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6650 (duplicate_thunk_for_node): Likewise.
6651 (cgraph_node::create_clone): Likewise.
6652 (cgraph_node::create_virtual_clone): Likewise.
6653 (cgraph_node::create_version_clone): Likewise.
6654 * cgraphunit.c (cgraph_node::reset): Likewise.
6655 (cgraph_node::finalize_function): Likewise.
6656 (cgraph_node::add_new_function): Likewise.
6657 (analyze_functions): Likewise.
6658 * combine.c (setup_incoming_promotions): Likewise.
6659 * config/i386/i386.c (ix86_function_regparm): Likewise.
6660 (ix86_function_sseregparm): Likewise.
6661 (init_cumulative_args): Likewise.
6662 * ipa-cp.c (determine_versionability): Likewise.
6663 (count_callers): Likewise.
6664 (set_single_call_flag): Likewise.
6665 (initialize_node_lattices): Likewise.
6666 (estimate_local_effects): Likewise.
6667 (create_specialized_node): Likewise.
6668 (identify_dead_nodes): Likewise.
6669 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6670 (ipa_fn_summary_generate): Likewise.
6671 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6672 (process_hsa_functions): Likewise.
6673 * ipa-icf.c (set_local): Likewise.
6674 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6675 * ipa-inline.c (speculation_useful_p): Likewise.
6676 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6677 (ipa_profile): Likewise.
6678 * ipa-split.c (split_function): Likewise.
6679 (execute_split_functions): Likewise.
6680 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6681 (ipa_sra_ipa_function_checks): Likewise.
6682 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6683 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6684 * lto-cgraph.c (lto_output_node): Likewise.
6685 (input_overwrite_node): Likewise.
6686 * multiple_target.c (expand_target_clones): Likewise.
6687 * omp-simd-clone.c (simd_clone_create): Likewise.
6688 * trans-mem.c (expand_call_tm): Likewise.
6689 (ipa_tm_mayenterirr_function): Likewise.
6690 (ipa_tm_diagnose_tm_safe): Likewise.
6691 (ipa_tm_diagnose_transaction): Likewise.
6692 (ipa_tm_create_version): Likewise.
6693 (ipa_tm_transform_calls_redirect): Likewise.
6694 (ipa_tm_execute): Likewise.
6695 * tree-inline.c (expand_call_inline): Likewise.
6696
6697 2019-10-29 Martin Liska <mliska@suse.cz>
6698
6699 * symbol-summary.h (function_summary): Pass memory location
6700 to underlaying hash_map (or vec).
6701 (V>::fast_function_summary): Likewise.
6702
6703 2019-10-29 Martin Liska <mliska@suse.cz>
6704
6705 * ggc.h (ggc_alloc_no_dtor): New function.
6706 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6707 destructor and ggc_free.
6708 (ipa_free_size_summary): Call delete instead
6709 of release.
6710 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6711 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6712 (ipa_free_all_edge_args): Call destructor and ggc_free.
6713 (ipa_free_all_node_params): Likewise.
6714 (ipcp_free_transformation_sum): Likewise.
6715 * ipa-prop.h (ipa_check_create_node_params):
6716 Call new ggc_alloc_no_dtor.
6717 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6718 (ipa_sra_analysis): Call destructor and ggc_free.
6719 Replace release with delete operator.
6720 * symbol-summary.h (release): Remove ..
6721 (V>::~fast_function_summary): and move logic here.
6722 Likewise for other classes.
6723
6724 2019-10-29 Richard Biener <rguenther@suse.de>
6725
6726 PR tree-optimization/92260
6727 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6728 lane-reducing ops.
6729
6730 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6731
6732 PR tree-optimization/88915
6733 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6734 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6735 and make the valueize function pointer also take a void pointer.
6736 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6737 around vn_valueize, to call it without a context.
6738 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6739 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6740 (~_loop_vec_info): Release epilogue_vinfos.
6741 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6742 number of iterations of epilogue.
6743 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6744 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6745 versioning threshold needed for main loop.
6746 (vect_analyze_loop): Likewise.
6747 (find_in_mapping): New helper function.
6748 (update_epilogue_loop_vinfo): New function.
6749 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6750 on main loop and call update_epilogue_loop_vinfo to update it.
6751 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6752 stmts on loop preheader edge.
6753 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6754 we decided to vectorize epilogues. Update epilogues NITERS and
6755 construct ADVANCE to update epilogues data references where needed.
6756 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6757 (vect_do_peeling, vect_update_inits_of_drs,
6758 determine_peel_for_niter, vect_analyze_loop): Add or update
6759 declarations.
6760 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6761 created loop_vec_info's for epilogues when available. Otherwise analyse
6762 epilogue separately.
6763
6764 2019-10-29 Richard Biener <rguenther@suse.de>
6765
6766 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6767 example.
6768
6769 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6770
6771 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6772 index for the COND_EXPR from stmt_info rather than reduc_info.
6773
6774 2019-10-29 Richard Biener <rguenther@suse.de>
6775
6776 PR tree-optimization/65930
6777 * tree-vect-loop.c (check_reduction_path): Relax single-use
6778 check allowing out-of-loop uses.
6779 (vect_is_simple_reduction): SLP reduction chains cannot have
6780 intermediate stmts used outside of the loop.
6781 (vect_create_epilog_for_reduction): The adjustment might need
6782 to be converted.
6783 (vectorizable_reduction): Annotate live stmts of the reduction
6784 chain with STMT_VINFO_REDUC_DEF.
6785 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6786
6787 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6788
6789 * calls.c (pass_by_reference): Leave the target to decide whether
6790 POLY_INT_CST-sized arguments should be passed by value or reference,
6791 rather than forcing them to be passed by reference.
6792 (must_pass_in_stack_var_size): Likewise.
6793 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6794 V31_REGNUM to P15_REGNUM.
6795 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6796 Take an extra "silent_p" parameter, defaulting to false.
6797 (aarch64_sve::svbool_type_p): Declare.
6798 (aarch64_sve::nvectors_if_data_type): Likewise.
6799 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6800 (aarch64_frame::reg_offset): Turn into poly_int64s.
6801 (aarch64_frame::save_regs_size): Likewise.
6802 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6803 (aarch64_frame::sve_callee_adjust): Likewise.
6804 (aarch64_frame::spare_reg_reg): Likewise.
6805 (ARM_PCS_SVE): New arm_pcs value.
6806 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6807 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6808 (CUMULATIVE_ARGS::silent_p): Likewise.
6809 (BITS_PER_SVE_PRED): New macro.
6810 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6811 function. Reject aarch64_vector_pcs attributes on SVE functions.
6812 (aarch64_attribute_table): Use the above handler.
6813 (aarch64_sve_abi): New function.
6814 (aarch64_sve_argument_p): Likewise.
6815 (aarch64_returns_value_in_sve_regs_p): Likewise.
6816 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6817 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6818 descriptor for them.
6819 (aarch64_simd_decl_p): Delete.
6820 (aarch64_emit_cfi_for_reg_p): New function.
6821 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6822 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6823 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6824 as partly clobbered for the SVE PCS.
6825 (aarch64_function_ok_for_sibcall): Check whether the two functions
6826 use the same ABI, rather than checking specifically for whether
6827 they're aarch64_vector_pcs functions.
6828 (aarch64_pass_by_reference): Raise an error for attempts to pass
6829 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6830 if there are not enough free registers left, or if the argument is
6831 variadic.
6832 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6833 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6834 tuples in memory.
6835 (aarch64_layout_arg): Take a function_arg_info rather than
6836 individual properties. Handle SVE predicates, vectors and tuples.
6837 Raise an error if they are passed to unprototyped functions.
6838 (aarch64_function_arg): If the silent_p flag is set, suppress the
6839 usual error about using float registers without TARGET_FLOAT.
6840 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6841 it in the cumulative_args structure. Initialize aapcs_nprn and
6842 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6843 error about using float registers without TARGET_FLOAT.
6844 If the silent_p flag is not set, also raise an error about
6845 using SVE functions when SVE is disabled.
6846 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6847 and call it for SVE functions too. Update aapcs_nprn similarly
6848 to the other register counts.
6849 (aarch64_layout_frame): If a big-endian function needs to save
6850 and restore Z8-Z15, search for a spare predicate that it can use.
6851 Store SVE predicates at the bottom of the register save area,
6852 followed by SVE vectors, then followed by the normal slots.
6853 Keep pointing the hard frame pointer at the base of the normal slots,
6854 above the SVE vectors. Update the various frame creation and
6855 tear-down strategies for the new layout, initializing the new
6856 sve_callee_adjust field. Add an additional layout for frames
6857 whose saved registers are all SVE registers.
6858 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6859 (aarch64_return_address_signing_enabled): Likewise.
6860 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6861 aarch64_reg_save_mode.
6862 (aarch64_adjust_sve_callee_save_base): New function.
6863 (aarch64_add_cfa_expression): Move earlier in file. Take the
6864 saved register as an rtx rather than a register number and use
6865 its mode for the MEM slot.
6866 (aarch64_save_callee_saves): Remove the mode argument and instead
6867 use aarch64_reg_save_mode to get the mode of each save slot.
6868 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6869 offsets. Allow GP offsets to be saved at a VL-based offset from
6870 the stack, handling this case using the frame pointer if available
6871 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6872 big-endian SVE functions; use normal moves for other SVE saves.
6873 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6874 returns true. Add explicit CFA notes when not storing via the
6875 stack pointer. Do not try to pair SVE saves.
6876 (aarch64_restore_callee_saves): Cope with poly_int64 register
6877 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6878 use normal moves for other SVE restores. Only add CFA restore notes
6879 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6880 SVE restores.
6881 (aarch64_get_separate_components): Always keep the first SVE save
6882 in the prologue if we need to use it as a stack probe. Don't allow
6883 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6884 Likewise the spare predicate register that they need. Update the
6885 offset calculation to account for the SVE save area. Use the
6886 appropriate range check for SVE LDR and STR instructions.
6887 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6888 (aarch64_process_components): Likewise. Update the offset
6889 calculation to account for the SVE save area. Only mark the
6890 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6891 Do not try to pair SVE saves.
6892 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6893 reg_offsets. When handling the final allocation, expect the
6894 first SVE register save to be part of the initial allocation
6895 and for it to act as a probe at SP. Account for the SVE callee
6896 save area in the dump information.
6897 (aarch64_expand_prologue): Update the frame diagram. Fold the
6898 SVE callee allocation into the initial allocation if stack clash
6899 protection is enabled. Use new variables to track the offset
6900 of the frame chain (and hard frame pointer) from the current
6901 stack pointer, and likewise the offset of the bottom of the
6902 register save area. Update calls to aarch64_save_callee_saves
6903 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6904 saving the FP&SIMD registers. Save the predicate registers.
6905 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6906 into account when setting the stack pointer from the frame pointer,
6907 and when deciding whether we can inherit the initial adjustment
6908 amount from the prologue. Restore the predicate registers after
6909 the vector registers, then apply sve_callee_adjust, then restore
6910 the general registers.
6911 (aarch64_secondary_reload): Don't use secondary SVE reloads
6912 for VNx16BImode.
6913 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6914 (aarch64_short_vector_p): Return false for SVE types.
6915 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6916 at the start of the function. Return false for SVE types.
6917 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6918 functions too.
6919 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6920 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6921 to big-endian targets for bytewise moves.
6922 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6923
6924 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6925 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6926 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6927
6928 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6929 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6930 aarch64-sve-builtins-base.o to extra_objs. Add
6931 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6932 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6933 (aarch64-sve-builtins-shapes.o): Likewise.
6934 (aarch64-sve-builtins-base.o): New rules.
6935 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6936 (aarch64_resolve_overloaded_builtin): Likewise.
6937 (aarch64_check_builtin_call): Likewise.
6938 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6939 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6940 pragma.
6941 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6942 (aarch64_svprfop): New enum.
6943 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6944 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6945 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6946 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6947 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6948 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6949 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6950 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6951 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6952 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6953 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6954 (aarch64_sve::mangle_builtin_type): Likewise.
6955 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6956 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6957 (aarch64_sve::expand_builtin): Likewise.
6958 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6959 (aarch64_sve_int_mode): Likewise.
6960 (aarch64_ptrue_all_mode): New function.
6961 (aarch64_convert_sve_data_to_pred): Make public.
6962 (svprfop_token): New function.
6963 (aarch64_output_sve_prefetch): Likewise.
6964 (aarch64_fold_sve_cnt_pat): Likewise.
6965 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6966 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6967 instead of gen_while_ult.
6968 (aarch64_replace_reg_mode): Make public.
6969 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6970 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6971 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6972 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6973 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6974 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6975 (aarch64_sve_ptrue_svpattern_p): Likewise.
6976 (aarch64_sve_pred_valid_immediate): Check
6977 aarch64_sve_ptrue_svpattern_p.
6978 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6979 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6980 functions.
6981 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6982 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6983 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6984 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6985 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6986 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6987 New unspecs.
6988 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6989 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6990 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6991 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6992 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6993 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6994 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6995 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6996 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6997 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6998 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6999 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
7000 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
7001 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
7002 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
7003 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
7004 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
7005 (Vesize): Handle partial vector modes.
7006 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
7007 mode attributes.
7008 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
7009 iterators.
7010 (s, paired_extend, inc_dec): New code attributes.
7011 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
7012 (SVE_INT_UNARY): Add UNSPEC_RBIT.
7013 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
7014 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
7015 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
7016 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7017 UNSPEC_COND_FMULX.
7018 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
7019 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
7020 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7021 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
7022 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
7023 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
7024 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
7025 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
7026 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
7027 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
7028 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
7029 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
7030 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
7031 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
7032 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
7033 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
7034 UNSPEC_COND_FSCALE.
7035 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7036 (binqops_op, binqops_op_rev, last_op): New int attributes.
7037 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
7038 (fn, ab): New int attributes.
7039 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
7040 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
7041 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
7042 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
7043 UNSPEC_RBIT.
7044 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
7045 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
7046 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
7047 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
7048 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7049 UNSPEC_COND_FMULX.
7050 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
7051 (brk_reg_con, brk_reg_opno): New int attributes.
7052 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
7053 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
7054 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
7055 UNSPEC_COND_FMIN.
7056 (max_elem_bits): New int attribute.
7057 (min_elem_bits): Handle UNSPEC_RBIT.
7058 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
7059 TRUNCATE as well as SUBREG.
7060 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
7061 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
7062 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
7063 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
7064 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
7065 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
7066 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
7067 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
7068 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
7069 (aarch64_gather_scale_operand_h): New predicates.
7070 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
7071 (vgd, vgh, vgw, vsQ, vsS): New constraints.
7072 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
7073 (*aarch64_sve_reinterpret<mode>): Allow any source register
7074 instead of requiring an exact match.
7075 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
7076 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
7077 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
7078 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
7079 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
7080 (aarch64_update_ffrt): New patterns.
7081 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7082 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7083 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7084 (@aarch64_ld<fn>f1<mode>): New patterns.
7085 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7086 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7087 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7088 (@aarch64_ldnt1<mode>): New patterns.
7089 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7090 the scalar part of the address.
7091 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
7092 scalar part of the addresse and add an alternative for handling
7093 nonzero offsets.
7094 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7095 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
7096 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7097 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7098 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7099 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7100 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
7101 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
7102 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7103 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7104 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7105 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7106 (@aarch64_sve_prefetch<mode>): New patterns.
7107 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
7108 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
7109 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
7110 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
7111 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
7112 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7113 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7114 (@aarch64_stnt1<mode>): New patterns.
7115 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7116 the scalar part of the address.
7117 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
7118 the scalar part of the addresse and add an alternative for handling
7119 nonzero offsets.
7120 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7121 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
7122 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7123 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7124 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
7125 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
7126 New patterns.
7127 (vec_duplicate<mode>): Use QI as the mode of the input operand.
7128 (extract_last_<mode>): Generalize to...
7129 (@extract_<LAST:last_op>_<mode>): ...this.
7130 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
7131 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
7132 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
7133 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
7134 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
7135 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
7136 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
7137 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
7138 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
7139 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
7140 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
7141 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
7142 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
7143 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
7144 (*aarch64_adr_uxtw_unspec): Likewise.
7145 (*aarch64_adr_uxtw): Rename to...
7146 (*aarch64_adr_uxtw_and): ...this.
7147 (@aarch64_adr<mode>_shift): New expander.
7148 (*aarch64_adr_shift_sxtw): New pattern.
7149 (aarch64_<su>abd<mode>_3): Rename to...
7150 (@aarch64_pred_<su>abd<mode>): ...this.
7151 (<su>abd<mode>_3): Update accordingly.
7152 (@aarch64_cond_<su>abd<mode>): New expander.
7153 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
7154 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
7155 (*<su>mul<mode>3_highpart): Rename to...
7156 (@aarch64_pred_<optab><mode>): ...this.
7157 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
7158 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
7159 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
7160 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
7161 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
7162 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
7163 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
7164 (*v<ASHIFT:optab><mode>3): Rename to...
7165 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
7166 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
7167 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
7168 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
7169 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
7170 (@cond_asrd<mode>): New expander.
7171 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
7172 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
7173 (*sdiv_pow2<mode>3): Delete.
7174 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
7175 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
7176 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
7177 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
7178 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
7179 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
7180 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
7181 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
7182 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
7183 (*add<SVE_F:mode>3): Rename to...
7184 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
7185 for SVE_STRICT_GP.
7186 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
7187 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
7188 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
7189 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
7190 (*sub<SVE_F:mode>3): Rename to...
7191 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
7192 for SVE_STRICT_GP.
7193 (@aarch64_pred_abd<SVE_F:mode>): New expander.
7194 (*fabd<SVE_F:mode>3): Rename to...
7195 (*aarch64_pred_abd<SVE_F:mode>): ...this.
7196 (@aarch64_cond_abd<SVE_F:mode>): New expander.
7197 (*mul<SVE_F:mode>3): Rename to...
7198 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
7199 for SVE_STRICT_GP.
7200 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
7201 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
7202 to...
7203 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
7204 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
7205 (*<nlogical><PRED_ALL:mode>3): Rename to...
7206 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
7207 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
7208 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
7209 (*<logical_nn><PRED_ALL:mode>3): Rename to...
7210 (aarch64_pred_<logical_nn><mode>_z): ...this.
7211 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
7212 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
7213 (*fma<SVE_I:mode>4): Rename to...
7214 (@aarch64_pred_fma<SVE_I:mode>): ...this.
7215 (*fnma<SVE_I:mode>4): Rename to...
7216 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
7217 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
7218 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
7219 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
7220 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
7221 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
7222 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
7223 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
7224 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
7225 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
7226 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
7227 (@aarch64_sve_tmad<mode>): Likewise.
7228 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
7229 (*aarch64_sel_dup<mode>): Rename to...
7230 (@aarch64_sel_dup<mode>): ...this.
7231 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
7232 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
7233 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
7234 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
7235 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
7236 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
7237 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
7238 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
7239 (*fcm<cmp_op><mode>): Rename to...
7240 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
7241 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7242 (*fcmuo<mode>): Rename to...
7243 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
7244 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7245 (@aarch64_pred_fac<cmp_op><mode>): New expander.
7246 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
7247 (fold_extract_last_<mode>): Generalize to...
7248 (@fold_extract_<last_op>_<mode>): ...this.
7249 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
7250 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
7251 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
7252 DImode result explicit.
7253 (reduc_plus_scal_<mode>): Update accordingly.
7254 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
7255 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
7256 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
7257 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
7258 (*aarch64_sve_tbl<mode>): Rename to...
7259 (@aarch64_sve_tbl<mode>): ...this.
7260 (@aarch64_sve_compact<mode>): New pattern.
7261 (*aarch64_sve_dup_lane<mode>): Rename to...
7262 (@aarch64_sve_dup_lane<mode>): ...this.
7263 (@aarch64_sve_dupq_lane<mode>): New pattern.
7264 (@aarch64_sve_splice<mode>): Likewise.
7265 (aarch64_sve_<perm_insn><mode>): Rename to...
7266 (@aarch64_sve_<perm_insn><mode>): ...this.
7267 (*aarch64_sve_ext<mode>): Rename to...
7268 (@aarch64_sve_ext<mode>): ...this.
7269 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
7270 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
7271 to...
7272 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
7273 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7274 Rename to...
7275 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7276 ...this.
7277 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
7278 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
7279 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
7280 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
7281 to...
7282 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
7283 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
7284 a "@" marker.
7285 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
7286 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
7287 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
7288 pattern.
7289 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
7290 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
7291 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
7292 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
7293 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
7294 "@" marker.
7295 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
7296 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
7297 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
7298 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
7299 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
7300 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
7301 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
7302 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
7303 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
7304 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
7305 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
7306 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
7307 (aarch64_sve_cnt_pat): Likewise.
7308 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7309 (*aarch64_sve_incsi_pat): Likewise.
7310 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7311 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7312 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7313 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7314 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7315 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7316 (*aarch64_sve_decsi_pat): Likewise.
7317 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7318 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7319 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7320 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7321 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7322 (@aarch64_pred_cntp<mode>): Likewise.
7323 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7324 New expander.
7325 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7326 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7327 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7328 New expander.
7329 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7330 New pattern.
7331 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
7332 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7333 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
7334 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7335 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
7336 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7337 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7338 New expander.
7339 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7340 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7341 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7342 New expander.
7343 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7344 New pattern.
7345 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
7346 expander.
7347 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7348 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
7349 expander.
7350 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7351 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
7352 expander.
7353 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7354 * config/aarch64/arm_sve.h: New file.
7355 * config/aarch64/aarch64-sve-builtins.h: Likewise.
7356 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
7357 * config/aarch64/aarch64-sve-builtins.def: Likewise.
7358 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
7359 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
7360 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
7361 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
7362 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
7363 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
7364
7365 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7366
7367 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7368 New pattern.
7369 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7370 SVE modes.
7371
7372 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7373
7374 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7375 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7376 FFRT_REGNUM + 1.
7377 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7378 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7379 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7380 (aarch64_hard_regno_nregs): Handle the new register classes.
7381 (aarch64_hard_regno_mode_ok): Likewise.
7382 (aarch64_regno_regclass): Likewise.
7383 (aarch64_class_max_nregs): Likewise.
7384 (aarch64_register_move_cost): Likewise.
7385 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7386 as general register_operands.
7387
7388 2019-10-29 Martin Liska <mliska@suse.cz>
7389
7390 * ggc-common.c: One can't subtract unsigned types
7391 in compare function.
7392
7393 2019-10-29 Martin Liska <mliska@suse.cz>
7394
7395 * cgraphunit.c (symbol_table::compile): Pass
7396 title as dump_memory_report argument.
7397 * toplev.c (dump_memory_report): New argument.
7398 (finalize): Pass new argument.
7399 * toplev.h (dump_memory_report): Add argument.
7400
7401 2019-10-29 Martin Liska <mliska@suse.cz>
7402
7403 * ggc-common.c: Move Leak to the first column.
7404
7405 2019-10-29 Martin Liska <mliska@suse.cz>
7406
7407 * cgraphunit.c (symbol_table::compile): Remove argument
7408 for dump_memory_report.
7409 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7410 (compare_final): Remove in order to make report
7411 better readable.
7412 * ggc.h (dump_ggc_loc_statistics): Remove argument.
7413 * mem-stats.h (mem_alloc_description::get_list):
7414 Do not pass cmp.
7415 (mem_alloc_description::dump): Likewise here.
7416 * toplev.c (dump_memory_report): Remove final
7417 argument.
7418 (finalize): Likewise.
7419 * toplev.h (dump_memory_report): Remove argument.
7420
7421 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7422
7423 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7424 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7425 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7426 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7427 accept "const".
7428
7429 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7430
7431 * coretypes.h (string_int_pair): New typedef.
7432 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7433 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7434 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7435
7436 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7437
7438 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7439 (simulate_builtin_function_decl): Declare.
7440 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7441 (LANG_HOOKS_INITIALIZER): Include it.
7442 * langhooks.c (add_builtin_function_common): Rename to...
7443 (build_builtin_function): ...this. Add a location parameter and use
7444 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7445 the decl instead.
7446 (add_builtin_function): Update accordingly, passing the returned
7447 decl to the lang hook.
7448 (add_builtin_function_ext_scope): Likewise
7449 (simulate_builtin_function_decl): New function.
7450
7451 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7452
7453 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7454 example, use actual names of supported offload targets.
7455
7456 PR target/92258
7457 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7458
7459 2019-10-28 Martin Sebor <msebor@redhat.com>
7460
7461 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7462 (handle_store): Pass argument to get_addr_stridx.
7463
7464 2019-10-28 Martin Sebor <msebor@redhat.com>
7465
7466 PR tree-optimization/92226
7467 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7468 the offset is in the open range outlined by SI's length.
7469
7470 2019-10-28 Martin Sebor <msebor@redhat.com>
7471
7472 PR c/66970
7473 * doc/cpp.texi (__has_builtin): Document.
7474 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7475
7476 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7477
7478 PR target/82981
7479 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7480 doubleword and low doubleword result of multiplication on
7481 MIPS64R6.
7482
7483 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7484 pure qualifier to the built-in.
7485 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7486 built-ins.
7487 (struct mips_builtin_description): Add is_pure flag.
7488 (mips_init_builtins): Mark built-in as pure if the flag in the
7489 corresponding mips_builtin_description struct is set.
7490
7491 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7492 alternative which covers the floating-point input value. Also
7493 forbid the split of insert.d pattern for floating-point values.
7494
7495 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7496
7497 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7498 * config/riscv/riscv-sr.c: New file.
7499 * config/riscv/riscv.c (riscv_reorg): New function.
7500 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7501 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7502 (riscv_remove_unneeded_save_restore_calls): Declare.
7503 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7504
7505 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7506
7507 PR tree-optimization/92163
7508 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7509 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7510 before calling bitmap_set_bit.
7511 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7512 delete_dead_or_redundant_assignment.
7513 (dse_dom_walker::dse_optimize_stmt): Likewise.
7514 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7515
7516 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7517
7518 PR middle-end/91272
7519 * tree-vect-stmts.c (vectorizable_condition): Support
7520 EXTRACT_LAST_REDUCTION with fully-masked loops.
7521
7522 2019-10-28 Richard Biener <rguenther@suse.de>
7523
7524 PR tree-optimization/92252
7525 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7526 STMT_VINFO_REDUC_IDX when swapping operands.
7527
7528 2019-10-28 Richard Biener <rguenther@suse.de>
7529
7530 PR tree-optimization/92241
7531 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7532 we failed to update the reduction index do not use the pattern
7533 stmts for the reduction chain.
7534 (vectorizable_reduction): When the reduction chain is corrupt,
7535 fail.
7536 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7537 fail to update the reduction chain.
7538
7539 2019-10-28 Richard Biener <rguenther@suse.de>
7540
7541 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7542 STMT_VINFO_REDUC_IDX from the actual stmt.
7543 (vect_transform_reduction): Likewise.
7544 (vectorizable_reduction): Compute the reduction chain length,
7545 do not recompute the reduction operand index. Remove no longer
7546 necessary restriction for condition reduction chains.
7547
7548 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7549
7550 PR target/92225
7551 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7552 condition for V2DImode.
7553
7554 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7555
7556 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7557 Remove %k operand modifier.
7558 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7559
7560 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7561
7562 PR rtl-optimization/92007
7563 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7564 call it after reload if hot/cold partitioning has been done.
7565 (class pass_postreload_jump): Rename to
7566 pass_jump_after_combine.
7567 (make_pass_postreload_jump): Rename to
7568 make_pass_jump_after_combine.
7569 * passes.def(pass_postreload_jump): Move before reload, rename
7570 to pass_jump_after_combine.
7571 * tree-pass.h (make_pass_postreload_jump): Rename to
7572 make_pass_jump_after_combine.
7573
7574 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7575
7576 PR ipa/92242
7577 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7578 for missing EDGE_REF
7579 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7580
7581 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7582
7583 PR tree-optimization/88760
7584 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7585 Enable -funroll-loops for -O2 and above.
7586 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7587 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7588 do not turn on web and rngreg implicitly, if the unroller is not
7589 explicitly enabled.
7590
7591 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7592
7593 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7594 jump functions.
7595
7596 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7597
7598 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7599 * cgraph.h (cgraph_node::rtl_info): Likewise.
7600
7601 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7602
7603 * ipa-cp.c (propagate_constants_across_call): If args are not available
7604 just drop everything to varying.
7605 (find_aggregate_values_for_callers_subset): Watch for missing
7606 edge summary.
7607 (find_more_scalar_values_for_callers_subs): Likewise.
7608 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7609 update_jump_functions_after_inlining, propagate_controlled_uses):
7610 Watch for missing summaries.
7611 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7612 is finished.
7613 (ipa_write_node_info): Watch for missing summaries.
7614 (ipa_read_edge_info): Create new ref.
7615 (ipa_edge_args_sum_t): Add remove.
7616 (IPA_EDGE_REF_GET_CREATE): New macro.
7617 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7618 edge summary.
7619 (remap_edge_change_prob): Likewise.
7620
7621 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7622
7623 * ipa-inline-transform.c (inline_call): update function summaries
7624 after expanidng thunk.
7625
7626 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7627
7628 * ipa-icf.c (sem_function::merge): Update function summaries.
7629 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7630
7631 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7632
7633 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7634 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7635 operand already has scalar mode.
7636 (iptr): Remove SF/DF.
7637
7638 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7639
7640 PR target/91289
7641 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7642 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7643 this.
7644
7645 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7646
7647 * config/i386/sse.md
7648 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7649 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7650 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7651 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7652 <sse>_vmmaskcmp<mode>3):
7653 Change predicates from vector_operand to nonimmediate_operand,
7654 constraints xBm to xm, since scalar operations don't need
7655 memory address alignment.
7656 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7657 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7658 round_saeonly_nimm_predicate with
7659 round_saeonly_nimm_scalar_predicate.
7660 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7661 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7662 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7663 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7664 avx512f_vmfmadd_<mode>_mask3<round_name>,
7665 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7666 *avx512f_vmfmsub_<mode>_mask<round_name>,
7667 avx512f_vmfmsub_<mode>_mask3<round_name>,
7668 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7669 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7670 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7671 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7672 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7673 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7674 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7675 cvtusi2<ssescalarmodesuffix>32<round_name>,
7676 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7677 round_nimm_predicate with round_nimm_scalr_predicate.
7678 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7679 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7680 avx512er_vmrcp28<mode><round_saeonly_name>,
7681 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7682 ): Replace round_saeonly_nimm_predicate with
7683 round_saeonly_nimm_scalar_predicate.
7684 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7685 vector_operand with nonimmediate_operand.
7686 * config/i386/subst.md (round_scalar_nimm_predicate,
7687 round_saeonly_scalar_nimm_predicate): Replace
7688 vector_operand with nonimmediate_operand.
7689
7690 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7691
7692 PR target/89071
7693 * config/i386/i386.md (*rcpsf2_sse): Add
7694 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7695 (*rsqrtsf2_sse): Ditto.
7696 (*sqrt<mode>2_sse): Ditto.
7697 (sse4_1_round<mode>2): separate constraint vm, add
7698 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7699 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7700 by pass rpad.
7701 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7702 Ditto.
7703 (*sse_vmrsqrtv4sf2): Ditto.
7704 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7705 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7706 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7707 <iptr> pointer size modifier since vround support memory operand.
7708
7709 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7710
7711 PR target/85969
7712 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7713 static function.
7714
7715 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7716 Tobias Burnus <tobias@codesourcery.com>
7717
7718 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7719 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7720 common block decls.
7721
7722 2019-10-25 Richard Biener <rguenther@suse.de>
7723
7724 PR tree-optimization/92222
7725 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7726 (_slp_oprnd_info::second_pattern): Likewise.
7727 (_slp_oprnd_info::any_pattern): New.
7728 (vect_create_oprnd_info): Adjust.
7729 (vect_get_and_check_slp_defs): Compute whether any stmt is
7730 in a pattern.
7731 (vect_build_slp_tree_2): Avoid building up a node from scalars
7732 if any of the operand defs, not just the first, is in a pattern.
7733
7734 2019-10-25 Richard Biener <rguenther@suse.de>
7735
7736 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7737 swapping if we actually have to modify the IL on a shared stmt.
7738 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7739 because we no longer modify the IL.
7740
7741 2019-10-25 Martin Liska <mliska@suse.cz>
7742
7743 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7744
7745 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7746
7747 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7748 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7749 handled by vect_transform_reduction. Allow fully-masked loops
7750 to be used with reduction chains.
7751 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7752 operations in fully-masked loops.
7753 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7754 operations in fully-masked loops.
7755
7756 2019-10-25 Richard Biener <rguenther@suse.de>
7757
7758 * tree-vect-loop.c (vectorizable_reduction): Verify
7759 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7760 correctly.
7761 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7762 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7763 stmts.
7764
7765 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7766
7767 * gimplify.h (omp_construct_selector_matches): Declare.
7768 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7769 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7770 called function if needed for flag_openmp.
7771 (gimplify_scan_omp_clauses): Set ctx->code.
7772 (omp_construct_selector_matches): New function.
7773 * omp-general.h (omp_constructor_traits_to_codes,
7774 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7775 * omp-general.c (omp_constructor_traits_to_codes,
7776 omp_context_selector_matches, omp_resolve_declare_variant): New
7777 functions.
7778
7779 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7780 literal.
7781 * config/rx/rx.c (rx_print_operand): Likewise.
7782 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7783 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7784 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7785 Likewise.
7786 * genemit.c (emit_c_code): Likewise.
7787 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7788
7789 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7790
7791 * symbols-summary.h (fast_function_summary<T *, V>::release,
7792 fast_call_summary<T *, V>::release): Free m_vector.
7793
7794 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7795
7796 * cgraphunit.c (symbol_table::process_new_functions): Call
7797 ipa_free_size_summary.
7798 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7799 (devirtualization_time_bonus): Update.
7800 (ipcp_propagate_stage): Update.
7801 * ipa-fnsummary.c (ipa_size_summaries): New.
7802 (ipa_fn_summary_alloc): Alloc size summary.
7803 (dump_ipa_call_summary): Update.
7804 (ipa_dump_fn_summary): Update.
7805 (analyze_function_body): Update.
7806 (compute_fn_summary): Likewise.
7807 (ipa_get_stack_frame_offset): New function.
7808 (inline_update_callee_summaries): Do not update frame offsets.
7809 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7810 remove call and function summary.
7811 (ipa_update_overall_fn_summary): Update.
7812 (inline_read_section): Update.
7813 (ipa_fn_summary_write): Update.
7814 (ipa_free_fn_summary): Do not remove summaries.
7815 (ipa_free_size_summary): New.
7816 (release summary pass): Also run at WPA.
7817 * ipa-fnsummary.h (ipa_size_summary): Declare.
7818 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7819 estimated_self_stack_size.
7820 (ipa_size_summary_t): New type.
7821 (ipa_size_summaries): Declare.
7822 (ipa_free_size_summary): Declare.
7823 (ipa_get_stack_frame_offset): Declare.
7824 * ipa-icf.c (sem_function::merge): Update.
7825 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7826 (estimate_growth): Update.
7827 (growth_likely_positive): Update.
7828 (clone_inlined_nodes): Update.
7829 (inline_call): Update.
7830 * ipa-inline.c (caller_growth_limits): Update.
7831 (edge_badness): Update.
7832 (recursive_inlining): Update.
7833 (inline_small_functions): Update.
7834 (inline_to_all_callers_1): Update.
7835 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7836
7837 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7838
7839 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7840 (uavg<mode>3_ceil): ... This.
7841 (altivec_vavgs<VI_char>): Rename to...
7842 (avg<mode>3_ceil): ... This.
7843 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7844 VAVGUW, VAVGSW): Adjust.
7845
7846 2019-10-24 Nathan Sidwell <nathan@acm.org>
7847
7848 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7849
7850 2019-10-24 Martin Liska <mliska@suse.cz>
7851
7852 * symbol-summary.h (gt_pch_nx): Mark all functions
7853 with gcc_unreachable as we do not expect to be called.
7854
7855 2019-10-24 Richard Biener <rguenther@suse.de>
7856
7857 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7858 chains try harder with operand swapping and instead of
7859 putting a shifted chain into the reduction operands put
7860 a repetition of the final reduction op there as if we'd
7861 reassociate the expression.
7862
7863 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7864
7865 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7866 statics_not_read and statics_not_written to statics_read and
7867 statics_written respectively.
7868 (no_module_statics): New static var.
7869 (ipa_reference_get_not_read_global): Rename to ...
7870 (ipa_reference_get_read_global): ... this.
7871 (ipa_reference_get_not_written_global): Rename to ...
7872 (ipa_reference_get_written_global): ... this.
7873 (dump_static_vars_set_to_file): Dump no_module_statics.
7874 (copy_static_var_set): Add for propagation parameter.
7875 (ipa_init): Initialize no_module_statics.
7876 (ipa_ref_opt_summary_t::duplicate): Update.
7877 (ipa_ref_opt_summary_t::remove): Update.
7878 (propagate): Update.
7879 (write_node_summary_p): Look correctly for bitmap differences.
7880 (ipa_reference_write_optimization_summary): Update.
7881 (ipa_reference_read_optimization_summary): Update.
7882 * ipa-reference.h
7883 (ipa_reference_get_not_read_global): Rename to ...
7884 (ipa_reference_get_read_global): ... this.
7885 (ipa_reference_get_not_written_global): Rename to ...
7886 (ipa_reference_get_written_global): ... this.
7887 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7888 (call_may_clobber_ref_p_1): Update.
7889
7890 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7891
7892 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7893 and add comment.
7894 (msp430_hard_regno_nregs_with_padding): Remove.
7895
7896 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7897
7898 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7899 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7900 shift amount is between 1 and 4.
7901 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7902 is between 1 and 4.
7903
7904 2019-10-24 Richard Biener <rguenther@suse.de>
7905
7906 PR tree-optimization/92205
7907 * tree-vect-loop.c (vectorizable_reduction): Restrict
7908 search for alternate vectype_in to lane-reducing patterns
7909 we support.
7910
7911 2019-10-24 Richard Biener <rguenther@suse.de>
7912
7913 PR tree-optimization/92203
7914 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7915 Skip eliminating conversion stmts inserted by insertion.
7916
7917 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7918
7919 * config/s390/s390.c (s390_get_thread_pointer): Use
7920 gen_get_thread_pointer.
7921 (s390_expand_split_stack_prologue): Likewise.
7922 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7923 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7924 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7925 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7926 parameterized name.
7927
7928 2019-10-24 Richard Biener <rguenther@suse.de>
7929
7930 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7931 SLP discovery fails try to handle the reduction as part
7932 of SLP reduction discovery.
7933
7934 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7935
7936 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7937 declaration.
7938 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7939 attribute if it exists, rather than the insn size. If we use the
7940 insn size, adjust the size to remove the extra size that prefixed
7941 instructions take.
7942 (rs6000_adjust_insn_length): New function.
7943 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7944 update the instruction sized if prefixed instructions are used.
7945 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7946 (non_prefixed_length attribute): Delete.
7947 (num_insns attribute): New insn attribute to return the number of
7948 instructions.
7949 (max_prefixed_insns attribute): New insn attribute to return the
7950 maximum number of prefixed instructions in an insn.
7951 (length attribute): Do not adjust for prefix instructions here,
7952 punt to ADJUST_INSN_LENGTH.
7953 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7954 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7955 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7956 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7957 max_prefixed_insns and num_insns.
7958
7959 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7960 (movtd_64bit_nodm): Reformat.
7961 (mov<mode>_32bit): Reformat.
7962 (mov<mode>_softfloat): Reformat.
7963 (FMOVE128_GPR splitter): Reformat.
7964 (DIFD splitter): Reformat.
7965 (TI2 splitter): Reformat.
7966 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7967 bits of the offset for the memory address are non-zero, use PLWA
7968 if prefixed instructions are available.
7969
7970 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7971
7972 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7973
7974 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7975
7976 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7977 previous patch.
7978
7979 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7980
7981 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7982 (cmp_symbol_files): New.
7983 (lto_output): Copy sections in file order.
7984 * lto-streamer.h (lto_file_decl_data): Add field order.
7985
7986 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7987
7988 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7989 * ipa-reference.c (reference_vars_map_t): new type.
7990 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7991 (ipa_reference_var_uid): Implement.
7992 (varpool_node_hooks): New static var.
7993 (varpool_removal_hook): New function.
7994 (is_improper): Do not check bitmap for id==-1
7995 (get_static_name): Update.
7996 (ipa_init): Initialize new datastructures.
7997 (analyze_function): Do not recompute ids.
7998 (propagate): Free reference_vars_to_consider.
7999 (stream_out_bitmap): Update.
8000 (ipa_reference_read_optimization_summary): Update.
8001
8002 2019-10-23 qing zhao <qing.zhao@oracle.com>
8003
8004 PR gcov-profile/91971
8005 * coverage.c (coverage_init): Mangle the full path of filename when
8006 filename is a absolute path.
8007
8008 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8009
8010 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
8011 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
8012 (msp430_has_hwmult): New.
8013 (msp430_output_labelref):
8014 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
8015 * config/msp430/msp430.md (mulhisi3): Likewise.
8016 (umulhisi3): Likewise.
8017 (mulsidi3): Likewise.
8018 (umulsidi3): Likewise.
8019
8020 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8021
8022 PR ipa/92074
8023 * params.def (inline-heuristics-hint-percent): Set to 600.
8024
8025 2019-10-23 Richard Biener <rguenther@suse.de>
8026
8027 PR tree-optimization/65930
8028 * tree-vect-loop.c (check_reduction_path): Allow conversions
8029 that only change the sign.
8030 (vectorizable_reduction): Relax latch def stmts we handle further.
8031
8032 2019-10-23 Jakub Jelinek <jakub@redhat.com>
8033
8034 PR debug/90231
8035 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
8036 (remove_unused_ivs): Use it instead of get_computation_at. When
8037 choosing best candidate, only consider candidates where
8038 get_debug_computation_at actually returns non-NULL.
8039
8040 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
8041
8042 PR tree-optimization/92131
8043 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
8044 range would be symbolic, drop to varying for any explicit overflow
8045 in the constant part or if neither range is a singleton.
8046
8047 2019-10-23 Martin Liska <mliska@suse.cz>
8048
8049 PR middle-end/81669
8050 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
8051 Initialize m_data.
8052
8053 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
8054
8055 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
8056 int_mode_for_mode rather than mode_for_int_vector for scalars.
8057
8058 2019-10-23 Richard Biener <rguenther@suse.de>
8059
8060 PR tree-optimization/92179
8061 * tree-vect-stmts.c (vectorizable_shift): For shift args
8062 that are all the same remove type restriction in the SLP case.
8063 Adjust SLP code to handle converting of the shift arg to
8064 only apply in case the modes are different.
8065
8066 2019-10-23 Martin Liska <mliska@suse.cz>
8067
8068 PR ipa/91969
8069 * ipa-inline.c (recursive_inlining): Do not print
8070 when curr->count is not initialized.
8071
8072 2019-10-23 Richard Biener <rguenther@suse.de>
8073
8074 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
8075 op from scalars in case there's a constant operand in its
8076 definition.
8077
8078 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
8079
8080 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
8081 against out of range max skip or log values.
8082
8083 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
8084
8085 * cgraph.c (dump_graphviz): Change name to dump_name
8086
8087 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8088
8089 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
8090 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8091 subtraction from a carry operation.
8092
8093 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8094
8095 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
8096
8097 2019-10-22 Richard Biener <rguenther@suse.de>
8098
8099 PR tree-optimization/92173
8100 * tree-vect-loop.c (vectorizable_reduction): If
8101 vect_transform_reduction cannot handle code-generation try without
8102 the single-def-use-cycle optimization. Pass optab_vector to
8103 optab_for_tree_code to get vector shifts as that's what we'd
8104 generate.
8105
8106 2019-10-22 Michael Matz <matz@suse.de>
8107
8108 PR middle-end/90796
8109 * gimple-loop-jam.c (any_access_function_variant_p): New function.
8110 (adjust_unroll_factor): Use it to constrain safety, new parameter.
8111 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
8112
8113 2019-10-22 Richard Biener <rguenther@suse.de>
8114
8115 PR tree-optimization/92173
8116 * tree-vect-loop.c (vectorizable_reduction): If
8117 vect_transform_reduction cannot handle code-generation try without
8118 the single-def-use-cycle optimization. Pass optab_vector to
8119 optab_for_tree_code to get vector shifts as that's what we'd
8120 generate.
8121
8122 2019-10-22 Martin Liska <mliska@suse.cz>
8123
8124 * diagnostic-format-json.cc (json_from_expanded_location):
8125 Use json::integer_number.
8126 * gcov.c (output_intermediate_json_line): Use new
8127 json::integer_number.
8128 (output_json_intermediate_file): Likewise.
8129 * json.cc (number::print): Move to ...
8130 (float_number::print): ... this.
8131 (integer_number::print): New.
8132 (test_writing_numbers): Move to ...
8133 (test_writing_float_numbers): ... this.
8134 (test_writing_integer_numbers): New.
8135 (json_cc_tests): Register test_writing_integer_numbers.
8136 * json.h (class value): Add forward declaration
8137 for float_number and integer_number.
8138 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
8139 (class number): Move to ...
8140 (class float_number): ... this.
8141 (class integer_number): New.
8142 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
8143 Use json::integer_number.
8144 (optrecord_json_writer::location_to_json): Likewise.
8145 (optrecord_json_writer::profile_count_to_json): Likewise.
8146 (optrecord_json_writer::pass_to_json): Likewise.
8147
8148 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
8149
8150 * tree-vect-slp.c (vect_slp_bb_region): Check whether
8151 autodetected_vector_size rather than vector_size is zero.
8152 * tree-vect-loop.c (vect_analyze_loop): Likewise.
8153 Set autodetected_vector_size immediately after calling
8154 vect_analyze_loop_2. Check for a fatal error before advancing
8155 next_size.
8156
8157 2019-10-21 Jason Merrill <jason@redhat.com>
8158
8159 * lock-and-run.sh: Check for process existence rather than timeout.
8160
8161 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8162
8163 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
8164 widening multiplication.
8165
8166 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
8167
8168 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
8169 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
8170 type attribute.
8171 (subsi3_carryin_shift): Separate into register and constant controlled
8172 alternatives. Use shift_amount_operand for operand 4. Set shift
8173 attribute and simplify type attribute.
8174 (subsi3_carryin_shift_alt): Likewise.
8175 (rsbsi3_carryin_shift): Likewise.
8176 (rsbsi3_carryin_shift_alt): Likewise.
8177 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
8178 and register controlled shifts into distinct alternatives.
8179 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
8180 (andsi_not_shiftsi_si_scc): Likewise.
8181 (arm_cmpsi_negshiftsi_si): Likewise.
8182 (not_shiftsi): Remove redundant M constraint from alternative 1.
8183 (not_shiftsi_compare0): Likewise.
8184 (arm_cmpsi_insn): Remove redundant alternative 2.
8185 (cmpsi_shift_swp): Likewise.
8186 (sub_shiftsi): Likewise.
8187 (sub_shiftsi_compare0_scratch): Likewise.
8188 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
8189 (thumb2_cmpsi_neg_shiftsi): Likewise.
8190
8191 2019-10-21 Richard Biener <rguenther@suse.de>
8192
8193 PR tree-optimization/92162
8194 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
8195 STMT_VINFO_REDUC_IDX in reduc_info.
8196 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8197
8198 2019-10-21 Richard Biener <rguenther@suse.de>
8199
8200 * tree-vectorizer.h (_slp_tree::ops): New member.
8201 (SLP_TREE_SCALAR_OPS): New.
8202 (vect_get_slp_defs): Adjust prototype.
8203 * tree-vect-slp.c (vect_free_slp_tree): Release
8204 SLP_TREE_SCALAR_OPS.
8205 (vect_create_new_slp_node): Initialize it. New overload for
8206 initializing by an operands array.
8207 (_slp_oprnd_info::ops): New member.
8208 (vect_create_oprnd_info): Initialize it.
8209 (vect_free_oprnd_info): Release it.
8210 (vect_get_and_check_slp_defs): Populate the operands array.
8211 Do not swap operands in the IL when not necessary.
8212 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
8213 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
8214 swap operands in the operands array. Do not swap operands in
8215 the IL.
8216 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
8217 (vect_gather_slp_loads): Fix.
8218 (vect_detect_hybrid_slp_stmts): Likewise.
8219 (vect_slp_analyze_node_operations_1): Search for a internal
8220 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
8221 (vect_slp_analyze_node_operations): Skip ops-only stmts for
8222 the def-type push/pop dance.
8223 (vect_get_constant_vectors): Compute number_of_vectors here.
8224 Use SLP_TREE_SCALAR_OPS and simplify greatly.
8225 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
8226 (vect_get_slp_defs): Simplify greatly.
8227 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
8228 (vect_transform_reduction): Likewise.
8229 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
8230 (vectorizable_call): Likewise.
8231 (vectorizable_operation): Likewise.
8232 (vectorizable_load): Likewise.
8233 (vectorizable_condition): Likewise.
8234 (vectorizable_comparison): Likewise.
8235
8236 2019-10-21 Richard Biener <rguenther@suse.de>
8237
8238 PR tree-optimization/92161
8239 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
8240 for reductions.
8241
8242 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8243
8244 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
8245 (aarch64_rndr): New define_insn.
8246 (aarch64_rndrrs): Likewise.
8247 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
8248 (TARGET_RNG): Likewise.
8249 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
8250 argument.
8251 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
8252 Add fourth argument in prototype.
8253 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
8254 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
8255 (aarch64_init_rng_builtins): Define.
8256 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
8257 (aarch64_expand_rng_builtin): Define.
8258 (aarch64_general_expand_builtin): Use IGNORE argument, handle
8259 RNG builtins.
8260 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8261 __ARM_FEATURE_RNG when TARGET_RNG.
8262 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
8263
8264 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
8265
8266 * tree-vect-stmts (ensure_base_align): Only change alignment if new
8267 alignment is more restrictive.
8268
8269 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8270
8271 * tree-vectorizer.h (vec_info::vector_size): New member variable.
8272 (vect_update_max_nunits): Update comment.
8273 (current_vector_size): Delete.
8274 * tree-vect-stmts.c (current_vector_size): Likewise.
8275 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
8276 of current_vector_size.
8277 (get_mask_type_for_scalar_type): Likewise.
8278 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
8279 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
8280 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
8281 (vect_double_mask_nunits, vect_transform_loop): Likewise.
8282 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8283 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
8284
8285 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8286
8287 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
8288 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
8289 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
8290 accordingly.
8291
8292 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8293
8294 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
8295 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
8296 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
8297 call accordingly.
8298 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8299
8300 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8301
8302 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
8303 a loop_vec_info.
8304 (vect_set_loop_condition_masked): Update call accordingly.
8305
8306 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8307
8308 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
8309 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
8310 (simple_integer_narrowing): Update call accordingly.
8311 (vectorizable_conversion): Likewise.
8312
8313 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8314
8315 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
8316 (vectorizable_call): Update call accordingly.
8317
8318 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8319
8320 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
8321 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8322 (duplicate_and_interleave): Update call accordingly.
8323 * tree-vect-loop.c (vectorizable_reduction): Likewise.
8324
8325 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8326
8327 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
8328 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
8329 (vect_get_constant_vectors): Update call accordingly.
8330 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
8331
8332 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8333
8334 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
8335 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
8336 (vect_prologue_cost_for_slp_op): Update call accordingly.
8337 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
8338 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
8339 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
8340 (get_mask_type_for_scalar_type): Likewise.
8341 (vect_get_vector_types_for_stmt): Likewise.
8342 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8343 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8344 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
8345 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
8346 (vect_split_statement, vect_convert_input): Likewise.
8347 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
8348 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
8349 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
8350 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
8351 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
8352 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
8353 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
8354 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
8355 (vect_recog_mask_conversion_pattern): Likewise.
8356 (vect_add_conversion_to_pattern): Likewise.
8357 (vect_recog_gather_scatter_pattern): Likewise.
8358 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
8359 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
8360
8361 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8362
8363 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
8364 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
8365 (vect_check_load_store_mask): Update call accordingly.
8366 (vect_get_mask_type_for_stmt): Likewise.
8367 * tree-vect-patterns.c (check_bool_pattern): Likewise.
8368 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8369 (vect_convert_mask_for_vectype): Likewise.
8370
8371 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8372
8373 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8374 a vec_info.
8375 (vect_recog_dot_prod_pattern): Update call accordingly.
8376 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8377 (vect_recog_widen_sum_pattern): Likewise.
8378
8379 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8380
8381 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8382 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8383 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8384 accordingly.
8385
8386 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8387
8388 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8389 get_vectype_for_scalar_type_and_size instead of
8390 get_vectype_for_scalar_type.
8391
8392 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8393
8394 * common.opt (-fcommon): Fix description.
8395
8396 2019-10-20 Jakub Jelinek <jakub@redhat.com>
8397
8398 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8399 * config/i386/i386.c (ix86_pre_reload_split): New function.
8400 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8401 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8402 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8403 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8404 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8405 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8406 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8407 *<shift_insn><dwi>3_doubleword_mask,
8408 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8409 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8410 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8411 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8412 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8413 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8414 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8415 *avx2_<code>v8qiv8si2<mask_name>_2,
8416 *sse4_1_<code>v4qiv4si2<mask_name>_2,
8417 *sse4_1_<code>v4hiv4si2<mask_name>_2,
8418 *avx512f_<code>v8qiv8di2<mask_name>_2,
8419 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8420 *sse4_1_<code>v2hiv2di2<mask_name>_2,
8421 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8422 sse4_2_pcmpistr): Likewise.
8423
8424 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
8425
8426 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8427 now defaults to https.
8428
8429 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
8430
8431 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8432 skip non-zero array accesses.
8433
8434 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8435
8436 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8437 and return a boolean success value. Move the allocation and
8438 initialization of the bb_vec_info to...
8439 (vect_slp_bb_region): ...here. Update call accordingly.
8440 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8441 than in vect_slp_analyze_bb_1.
8442
8443 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8444
8445 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8446 when processing the given datarefs for the first time and
8447 check_datarefs subsequently.
8448 (vect_slp_bb_region): New function, split out of...
8449 (vect_slp_bb): ...here. Don't recompute the region bounds and
8450 dataref sets when retrying with a different vector size.
8451
8452 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8453 Uroš Bizjak <ubizjak@gmail.com>
8454
8455 PR target/92140
8456 * config/i386/predicates.md (int_nonimmediate_operand): New special
8457 predicate.
8458 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8459 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8460 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8461 define_insn_and_split patterns.
8462
8463 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8464
8465 * config/rs6000/rs6000.md: Delete out--of-date comment about
8466 special-casing integer loads.
8467
8468 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8469
8470 * escaped_string.h (escaped_string): New header.
8471 * tree.c (escaped_string): Remove escaped_string class.
8472
8473 2019-10-18 Martin Sebor <msebor@redhat.com>
8474
8475 PR tree-optimization/92157
8476 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8477 compute_string_length to return a negative result.
8478
8479 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8480
8481 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8482 (negvsi3, negvdi3): Delete.
8483 (negdi2_compare): Delete.
8484
8485 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8486
8487 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8488 operations.
8489 (subdi3_compare1): Delete pattern.
8490 (subvsi3_borrow): New insn pattern.
8491 (subvsi3_borrow_imm): Likewise.
8492
8493 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8494
8495 * config/arm/arm.md (subv<mode>4): Delete.
8496 (subvdi4): New expander pattern.
8497 (subvsi4): Likewise. Handle some immediate values.
8498 (subvsi3_intmin): New insn pattern.
8499 (subvsi3): Likewise.
8500 (subvsi3_imm1): Likewise.
8501 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8502 idioms.
8503
8504 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8505
8506 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8507 incoming operands. Early split the calculation into SImode
8508 operations.
8509 (usubvsi3_borrow): New insn pattern.
8510 (usubvsi3_borrow_imm): Likewise.
8511
8512 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8513
8514 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8515 (usubvsi4): New pattern. Allow some immediate values for inputs.
8516 (usubvdi4): New pattern.
8517
8518 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8519
8520 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8521 or second operand of the PLUS inside a DImode equality test to be
8522 sign-extend when selecting CC_Vmode.
8523 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8524 instructions.
8525 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8526 expand patterns.
8527 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8528 (addsi3_cin_vout_0): Likewise.
8529 (adddi3_compareV): Delete.
8530
8531 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8532
8533 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8534 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8535 to transform this back into the summation version when that leads
8536 to smaller code.
8537
8538 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8539
8540 * config/arm/arm.md (addv<mode>4): Delete.
8541 (addvsi4): New pattern. Handle immediate values that the architecture
8542 supports.
8543 (addvdi4): New pattern.
8544 (addsi3_compareV): Rename to ...
8545 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8546 and use COMPARE rather than NE.
8547 (addsi3_compareV_imm): New pattern.
8548 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8549 a signed-overflow check.
8550
8551 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8552
8553 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8554 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8555 CC_ADCmode.
8556 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8557 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8558 with overflow.
8559 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8560 expand patterns.
8561 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8562 (addsi3_cin_cout_imm_insn): Likewise.
8563 (adddi3_compareC): Delete insn.
8564 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8565
8566 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8567
8568 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8569 * (uaddv<mode>4): Delete expansion pattern.
8570 (uaddvsi4): New pattern.
8571 (uaddvdi4): Likewise.
8572 (addsi3_compareC): Delete pattern, change callers to use
8573 addsi3_compare_op1.
8574 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8575 reduce the number of alternatives and re-work type attribute handling.
8576 (addsi3_compare_op2): Clean up constraints to reduce the number of
8577 alternatives and re-work type attribute handling.
8578 (compare_addsi2_op0): Likewise.
8579 (compare_addsi2_op1): Likewise.
8580
8581 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8582
8583 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8584 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8585 for DImode operands.
8586 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8587 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8588 CC_NCVmode.
8589 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8590 (arm_cmpdi_unsigned): Delete.
8591
8592 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8593
8594 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8595 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8596 unchanged only if that will be cheaper.
8597 (arm_select_cc_mode): Recognize a swapped comparison that will
8598 be regenerated using RSBS or RSCS. Relax restriction on selecting
8599 CC_RSBmode.
8600 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8601 a constant.
8602 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8603 is CC_RSBmode.
8604 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8605 as CCmode.
8606 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8607 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8608
8609 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8610
8611 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8612 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8613 need these modes.
8614 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8615 of EQ, NE, LT, GE, LTU and GEU.
8616 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8617 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8618 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8619 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8620 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8621
8622 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8623
8624 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8625 operand 2.
8626 (cstoredi4): Similarly, but for operand 3.
8627 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8628 canonicalization of unsigned compares with a constant on Arm.
8629 Prefer using const+1 and adjusting the comparison over swapping the
8630 operands whenever the original constant was not valid.
8631 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8632 register here.
8633 (arm_validize_comparison): Do not force invalid DImode operands to
8634 registers here.
8635
8636 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8637
8638 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8639 return CC_Zmode if comparing against a constant where one word is
8640 zero.
8641 (arm_gen_compare_reg): Split DImode handling to ...
8642 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8643 against simple constants.
8644 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8645
8646 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8647
8648 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8649 (rsbsi3_carryin_shift_alt): Likewise.
8650
8651 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8652
8653 * config/arm/arm.md (negscc_borrow): New pattern.
8654 (mov_negscc): Don't split if the insn would match negscc_borrow.
8655 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8656 (thumb2_mov_negscc_strict_it): Likewise.
8657
8658 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8659
8660 * config/arm/arm.c (arm_insn_cost): New function.
8661 (TARGET_INSN_COST): Override default definition.
8662
8663 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8664
8665 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8666 borrow operations.
8667
8668 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8669
8670 * config/arm/arm.c (strip_carry_operation): New function.
8671 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8672 for SImode.
8673
8674 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8675
8676 * config/arm/predicates.md (arm_carry_operation): New special
8677 predicate.
8678 * config/arm/iterators.md (LTUGEU): Delete iterator.
8679 (cnb): Delete code attribute.
8680 (optab): Delete ltu and geu elements.
8681 * config/arm/arm.md (addsi3_carryin): Renamed from
8682 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8683 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8684 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8685 (addsi3_carryin_clobercc): Similarly.
8686 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8687 Thumb2 state.
8688
8689 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8690
8691 * config/arm/arm.md (arm_subdi3): Delete insn.
8692 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8693
8694 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8695
8696 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8697 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8698 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8699 return CC_RSBmode.
8700 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8701 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8702 expand.
8703 (subdi3): Rewrite to early-expand the sub-operations.
8704 (rsb_im_compare): New pattern.
8705 (negdi2): Delete.
8706 (negdi2_insn): Delete.
8707 (arm_negsi2): Correct type attribute to alu_imm.
8708 (negsi2_0compare): New insn pattern.
8709 (negsi2_carryin): New insn pattern.
8710
8711 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8712
8713 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8714 operand 2.
8715
8716 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8717
8718 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8719 to match canonical form.
8720
8721 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8722
8723 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8724 (extend<mode>di2): Likewise.
8725
8726 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8727
8728 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8729 * config/arm/arm.c (arm_decompose_di_binop): New function.
8730 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8731 If not generating Thumb-1 code, decompose the operation into 32-bit
8732 pieces.
8733 * add0si_carryin_<optab>: New pattern.
8734
8735 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8736
8737 * arm.md (adddi3): Only accept register operands.
8738 (arm_adddi3): Convert to simple insn with no split. Do not accept
8739 constants.
8740 (adddi_sesidi_di): Delete patern.
8741 (adddi_zesidi_di): Likewise.
8742 (uaddv<mode>4): Use LTU as condition for branch.
8743 (adddi3_compareV): Convert to simple insn with no split.
8744 (addsi3_compareV_upper): Delete pattern.
8745 (adddi3_compareC): Convert to simple insn with no split. Correct
8746 flags setting expression.
8747 (addsi3_compareC_upper): Delete pattern.
8748 (addsi3_compareC): Correct flags setting expression.
8749 (subdi3_compare1): Convert to simple insn with no split.
8750 (subsi3_carryin_compare): Delete pattern.
8751 (arm_subdi3): Convert to simple insn with no split.
8752 (subdi_zesidi): Delete pattern.
8753 (subdi_di_sesidi): Delete pattern.
8754 (subdi_zesidi_di): Delete pattern.
8755 (subdi_sesidi_di): Delete pattern.
8756 (subdi_zesidi_zesidi): Delete pattern.
8757 (negvdi3): Use s_register_operand.
8758 (negdi2_compare): Convert to simple insn with no split.
8759 (negdi2_insn): Likewise.
8760 (negsi2_carryin_compare): Delete pattern.
8761 (negdi_zero_extendsidi): Delete pattern.
8762 (arm_cmpdi_insn): Convert to simple insn with no split.
8763 (negdi2): Don't call gen_negdi2_neon.
8764 * config/arm/neon.md (adddi3_neon): Delete pattern.
8765 (subdi3_neon): Delete pattern.
8766 (negdi2_neon): Delete pattern.
8767 (splits for negdi2_neon): Delete splits.
8768
8769 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8770
8771 PR middle-end/92153
8772 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8773 than after it.
8774
8775 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8776
8777 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8778 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8779 new multilib variants and new mappings.
8780
8781 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8782
8783 PR target/86040
8784 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8785
8786 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8787 Richard Sandiford <richard.sandiford@arm.com>
8788
8789 PR target/86753
8790 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8791 and define hashmap traits for it.
8792 (loop_vec_info::scalar_cond_masked_set): New member.
8793 (vect_record_loop_mask): Adjust prototype.
8794 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8795 Implement method.
8796 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8797 vect_record_loop_mask.
8798 (vectorizable_live_operation): Likewise.
8799 (vect_record_loop_mask): New param scalar_mask. Add entry
8800 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8801 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8802 Pass it as last arg to vect_record_loop_mask.
8803 (vectorizable_call): Pass scalar_mask as last arg to
8804 vect_record_loop_mask.
8805 (vectorizable_store): Likewise.
8806 (vectorizable_load): Likewise.
8807 (vectorizable_condition): Check if another part of vectorized code
8808 applies loop_mask to condition or to it's inverse, and if yes,
8809 apply loop_mask to result of vector comparison.
8810
8811 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8812
8813 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8814
8815 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8816
8817 PR tree-optimization/92056
8818 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8819 before calling compute_builtin_object_size.
8820
8821 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8822
8823 PR target/65342
8824 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8825 (movdi_low_st): Delete.
8826 * config/rs6000/rs6000.c
8827 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8828 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8829 * config/rs6000/rs6000.md (movsi_low): Delete.
8830
8831 2019-10-17 Jason Merrill <jason@redhat.com>
8832
8833 * gimplify.h (get_initialized_tmp_var): Add default argument to
8834 post_p.
8835 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8836 NULL post_p argument.
8837 * targhooks (std_gimplify_va_arg_expr): Likewise.
8838
8839 2019-10-17 Richard Biener <rguenther@suse.de>
8840
8841 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8842 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8843 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8844 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8845 * tree-vect-loop.c (vect_is_simple_reduction): Set
8846 STMT_VINFO_REDUC_CODE.
8847 (vectorizable_reduction): Remove dead and redundant code, use
8848 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8849
8850 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8851
8852 Fix breakage introduced by r276985.
8853
8854 * config/avr/avr.c (avr_option_override): Remove set of
8855 PARAM_ALLOW_STORE_DATA_RACES.
8856 * common/config/avr/avr-common.c (avr_option_optimization_table)
8857 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8858
8859 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8860
8861 * config/i386/i386.h (processor_costs): Add clear_ratio.
8862 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8863 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8864 of 6 and move_ratio in all cost models.
8865
8866 2019-10-17 Richard Biener <rguenther@suse.de>
8867
8868 * tree-vect-loop.c (check_reduction_path): Compute reduction
8869 operation here.
8870 (vect_is_simple_reduction): Remove special-case of single-stmt
8871 reduction path detection.
8872
8873 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8874
8875 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8876
8877 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8878
8879 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8880 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8881 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8882 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8883 New combine patterns.
8884 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8885 above.
8886 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8887
8888 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8889
8890 * tree-vrp.c (value_range_base::dump): Display +INF for both
8891 pointers and integers when appropriate.
8892
8893 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8894
8895 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8896 when to use versioning threshold.
8897
8898 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8899
8900 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8901 outlined code from ...
8902 (vect_analyze_loop_2): ... here.
8903
8904 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8905
8906 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8907 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8908 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8909
8910 2019-10-17 Richard Biener <rguenther@suse.de>
8911
8912 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8913 (vect_is_simple_reduction): Move all validity checks ...
8914 (vectorizable_reduction): ... here. Compute whether we
8915 need a fold-left reduction here.
8916 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8917 both overloads, check needs_fold_left_reduction_p directly.
8918 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8919
8920 2019-10-17 Richard Biener <rguenther@suse.de>
8921
8922 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8923 TARGET_MEM_REF creation.
8924
8925 2019-10-17 Richard Biener <rguenther@suse.de>
8926
8927 PR tree-optimization/92129
8928 * tree-vect-loop.c (vectorizable_reduction): Also fail
8929 on GIMPLE_SINGLE_RHS.
8930
8931 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8932
8933 PR tree-optimization/92056
8934 * tree-object-size.c (cond_expr_object_size): Return early if then_
8935 processing resulted in unknown size.
8936
8937 PR tree-optimization/92115
8938 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8939 temporary if it could trap.
8940
8941 2019-10-17 Richard Biener <rguenther@suse.de>
8942
8943 PR debug/91887
8944 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8945 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8946
8947 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8948
8949 * tree-ssa-strlen.c (maybe_invalidate): Use
8950 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8951
8952 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8953 Jim Wilson <jimw@sifive.com>
8954
8955 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8956 regs to SIBCALL_REGS.
8957 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8958 passing regs to SIBCALL_REGS.
8959
8960 2019-10-16 Martin Sebor <msebor@redhat.com>
8961
8962 PR tree-optimization/83821
8963 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8964 the length of a string when available.
8965 (handle_builtin_memset) Add argument.
8966 (handle_store, strlen_check_and_optimize_call): Same.
8967 (check_and_optimize_stmt): Same. Pass it to callees.
8968
8969 2019-10-16 Martin Sebor <msebor@redhat.com>
8970
8971 PR tree-optimization/91996
8972 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8973 information.
8974 (compare_nonzero_chars): Add an overload.
8975 (count_nonzero_bytes): Add an argument. Call overload above.
8976 Handle non-constant lengths in some range.
8977 (handle_store): Add an argument.
8978 (check_and_optimize_stmt): Pass an argument to handle_store.
8979
8980 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8981
8982 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8983
8984 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8985
8986 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8987 operands which correspond to the same input-output register to
8988 have the same pseudo assigned to them.
8989
8990 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8991
8992 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8993
8994 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8995
8996 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8997 Apply reasonable limit to symbol offsets.
8998
8999 2019-10-16 Richard Biener <rguenther@suse.de>
9000
9001 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
9002 (vect_is_simple_reduction): Delay checking to
9003 vectorizable_reduction and relax the checking.
9004 (vectorizable_reduction): Check we have a simple use. Check
9005 for bogus condition reductions.
9006 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
9007 are looking at the last stmt in a pattern sequence when
9008 filling in backedge PHI values.
9009
9010 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
9011 Jiufu Guo <guojiufu@linux.ibm.com>
9012
9013 PR target/70010
9014 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
9015 the callee explicitly disables some isa_flags the caller is using.
9016
9017 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9018
9019 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
9020
9021 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9022
9023 * genmodes.c (mode_data::order): New field.
9024 (blank_mode): Update accordingly.
9025 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
9026 (make_vector_modes): Likewise.
9027 (VECTOR_MODES): Update use accordingly.
9028 (cmp_modes): Sort by the new order field ahead of sorting by size.
9029 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
9030 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
9031 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
9032 (aarch64_classify_vector_mode): Handle the new partial modes.
9033 (aarch64_vl_bytes): New function.
9034 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
9035 when counting the number of registers in an SVE mode.
9036 (aarch64_class_max_nregs): Likewise.
9037 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
9038 in registers yet.
9039 (aarch64_classify_address): Treat partial vectors analogously
9040 to full vectors.
9041 (aarch64_print_address_internal): Consolidate the printing of
9042 MUL VL addresses, using aarch64_vl_bytes as the number of
9043 bytes represented by "VL".
9044 (aarch64_vector_mode_supported_p): Reject partial vector modes.
9045
9046 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9047
9048 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
9049 rather than known_lt when choosing frame layouts.
9050
9051 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9052
9053 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
9054 that all the adjustments add up to the full frame size.
9055 Use crtl->outgoing_args_size directly as the final adjustment
9056 where appropriate.
9057
9058 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9059
9060 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
9061 "frame" reference instead of always referring directly to
9062 "cfun->machine->frame".
9063
9064 2019-10-16 Richard Biener <rguenther@suse.de>
9065
9066 PR tree-optimization/92119
9067 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
9068 against missing bswap lhs.
9069
9070 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9071
9072 PR middle-end/92033
9073 * poly-int.h (constant_lower_bound_with_limit): New function.
9074 (constant_upper_bound_with_limit): Likewise.
9075 * doc/poly-int.texi: Document them.
9076 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
9077 into the worst-case INTEGER_CST bounds.
9078
9079 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
9080
9081 PR ipa/91088
9082 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
9083 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
9084 * ipa-predicat.h (struct expr_eval_op): New struct.
9085 (expr_eval_ops): New typedef.
9086 (struct condition): Add type and param_ops fields, remove size field.
9087 (add_condition): Replace size parameter with type parameter, add
9088 param_ops parameter.
9089 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
9090 (predicate::add_clause): Add comparisons on type and param_ops.
9091 (dump_condition): Add debug dump for param_ops.
9092 (remap_after_inlining): Adjust call arguments to add_condition.
9093 (add_condition): Replace size parameter with type parameter, add
9094 param_ops parameter. Unshare constant value used in conditions.
9095 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
9096 parameter expressions using param_ops.
9097 (decompose_param_expr): New function.
9098 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
9099 to replace call to unmodified_parm_or_parm_agg_item.
9100 (set_switch_stmt_execution_predicate): Likewise.
9101 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
9102 with type.
9103 (inline_read_section): Read param_ops from summary stream.
9104 (ipa_fn_summary_write): Write param_ops to summary stream.
9105
9106 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9107
9108 PR rtl-optimization/92107
9109 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
9110 expression written.
9111
9112 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9113
9114 * config/darwin.c: Update description of fix and continue.
9115
9116 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9117
9118 * config/darwin.c (darwin_binds_local_p): Update to call
9119 default_binds_local_p_3 () directly. amend comments.
9120
9121 2019-10-15 Richard Biener <rguenther@suse.de>
9122
9123 * lto-streamer-out.c (lto_variably_modified_type_p): New.
9124 (tree_is_indexable): Use it.
9125 * tree-streamer-out.c (pack_ts_type_common_value_fields):
9126 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
9127 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
9128
9129 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9130
9131 * config/msp430/msp430.md (zero_extendqipsi2): New.
9132 (zero_extendqisi2): Optimize case where src register and base dst
9133 register are the same.
9134 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
9135 (zero_extendpsisi2): Optimize r->m case.
9136 Add unnamed insn patterns to catch insns combine searches for when
9137 optimizing pointer manipulation.
9138
9139 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9140
9141 * config/msp430/msp430.md: Group zero_extend* insns together.
9142
9143 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9144
9145 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
9146 constraint.
9147 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
9148 POST_INC.
9149 (msp430_subreg): Likewise.
9150 (msp430_split_addsi): Likewise.
9151 (msp430_print_operand_addr): Likewise.
9152 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
9153 (USE_STORE_POST_INCREMENT): Define.
9154 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
9155 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
9156 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
9157 (msp430_general_dst_operand): New.
9158 (msp430_general_dst_nonv_operand): New.
9159 (msp430_nonsubreg_operand): Remove.
9160 (msp430_nonsubreg_dst_operand): New.
9161 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
9162 of defunct msp430_nonsubreg_operand.
9163 (msp430_nonsubregnonpostinc_or_imm_operand): New.
9164
9165 2019-10-15 Richard Biener <rguenther@suse.de>
9166
9167 PR tree-optimization/91929
9168 * tree-ssa-pre.c (pre_expr_d::loc): New member.
9169 (get_or_alloc_expr_for_name): Initialize it.
9170 (get_or_alloc_expr_for_constant): Likewise.
9171 (phi_translate_1): Copy it.
9172 (create_expression_by_pieces): Use the original location
9173 of the expression for the inserted stmt.
9174 (compute_avail): Record the location of the stmt for the
9175 expressions created.
9176
9177 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
9178
9179 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
9180 before using tree_to_uhwi.
9181
9182 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
9183
9184 * config/s390/s390.md: Run %a0:DI splitters only after reload.
9185
9186 2019-10-15 Richard Biener <rguenther@suse.de>
9187
9188 PR tree-optimization/92094
9189 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
9190 do not adjust the reduction definition def type.
9191 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
9192 defines the latch argument of the PHI.
9193
9194 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
9195
9196 PR target/92035
9197 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
9198 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
9199 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
9200 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
9201 _mm_maskz_roundscale_round_sd): New intrinsics.
9202 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
9203 __builtin_ia32_rndscales?_mask_round builtins instead of
9204 __builtin_ia32_rndscales?_round.
9205 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
9206 __builtin_ia32_rndscalesd_round): Remove.
9207 (__builtin_ia32_rndscaless_mask_round,
9208 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
9209 * config/i386/sse.md
9210 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
9211 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
9212 ... this, adjust and add subst atrributes to make it maskable.
9213
9214 2019-10-15 Richard Biener <rguenther@suse.de>
9215
9216 PR middle-end/92046
9217 * common.opt (fallow-store-data-races): New.
9218 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
9219 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
9220 * doc/invoke.texi (fallow-store-data-races): Document.
9221 (--param allow-store-data-races): Remove docs.
9222 * opts.c (default_options_table): Enable -fallow-store-data-races
9223 at -Ofast.
9224 (default_options_optimization): Do not enable --param
9225 allow-store-data-races at -Ofast.
9226 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
9227 instead of PARAM_ALLOW_STORE_DATA_RACES.
9228 * tree-ssa-loop-im.c (execute_sm): Likewise.
9229
9230 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9231
9232 PR tree-optimization/92085
9233 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
9234 instead of calling it unconditionally after
9235 delete_dead_or_redundant_assignment and fix indentation.
9236
9237 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9238
9239 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
9240 TARGET_VFP_DOUBLE.
9241 (*fmsub<SDF:mode>4): Likewise.
9242 *fnmsub<SDF:mode>4): Likewise.
9243 (*fnmadd<SDF:mode>4): Likewise.
9244
9245 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
9246
9247 * doc/tree-ssa.texi: Update renamed macro name.
9248
9249 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9250
9251 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
9252 vector constants.
9253
9254 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
9255
9256 * config/darwin.c: Use unsigned ints for the picbase label
9257 counters, initialise the vars explicitly.
9258 (update_pic_label_number_if_needed): Move a variable declaration
9259 to where it's needed.
9260 (machopic_output_function_base_name): Use a more strict checking
9261 assert, and and unsigned int for the picbase label counter.
9262 (machopic_get_function_picbase): Likewise.
9263
9264 2019-10-14 Richard Biener <rguenther@suse.de>
9265
9266 PR middle-end/92046
9267 * dse.c (scan_insn): Use param max_active_local_stores.
9268 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
9269 based on optimization level.
9270 * loop-invariant.c (move_loop_invariants): Adjust
9271 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
9272 * opts.c (default_options_optimization): Do not adjust
9273 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
9274 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
9275
9276 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9277
9278 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
9279
9280 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9281
9282 * config/arm/arm.c (arm_option_override): Don't override sched
9283 pressure algorithm.
9284
9285 2019-10-14 Richard Biener <rguenther@suse.de>
9286
9287 PR tree-optimization/92069
9288 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
9289 cycles do not set vect_nested_cycle on the latch definition.
9290
9291 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
9292
9293 * function-abi.h (expr_callee_abi): Declare.
9294 * function-abi.cc (expr_callee_abi): New function.
9295
9296 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
9297
9298 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
9299 into [1,MAX].
9300 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
9301 non-zero being represented as [1,MAX].
9302
9303 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
9304
9305 * tree-sra.c (dump_access): Add missing braces.
9306
9307 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9308
9309 * config/darwin.c (machopic_indirection_name): Rework the
9310 function to emit linker-visible symbols only for indirections
9311 in the data section. Clean up the code and update comments.
9312
9313 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9314
9315 * config/darwin.c (machopic_indirect_data_reference): Remove
9316 redundant code.
9317
9318 2019-10-13 Nathan Sidwell <nathan@acm.org>
9319
9320 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
9321
9322 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9323
9324 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
9325 c99_runtime.
9326
9327 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
9328
9329 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
9330 so non-virutal are before virutals.
9331 (output_function): Avoid body modifications.
9332
9333 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9334
9335 * config/pa/pa.c (pa_output_call): Load descriptor address to register
9336 %r22. Load function address before global pointer.
9337 (pa_attr_length_indirect_call): Adjust length of inline versions of
9338 $$dyncall.
9339 (pa_output_indirect_call): Remove fast inline version of $$dyncall
9340 before normal cases. Update inline $$dyncall sequences to preserve
9341 function descriptor address in register %r22.
9342 (TRAMPOLINE_CODE_SIZE): Adjust.
9343 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
9344 register %r22 contains trampoline address.
9345 (pa_trampoline_init): Adjust offsets.
9346 (pa_trampoline_adjust_address): Likewise.
9347 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
9348
9349 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9350
9351 PR target/67183
9352 * config/darwin.c (machopic_indirection): New field to flag
9353 non-lazy-symbol-pointers in the data section.
9354 (machopic_indirection_name): Compute if an indirection should
9355 appear in the data section.
9356 (machopic_output_data_section_indirection): New callback split
9357 from machopic_output_indirection.
9358 (machopic_output_stub_indirection): Likewise.
9359 (machopic_output_indirection): Retain the code for non-lazy
9360 symbol pointers in their regular section.
9361 (machopic_finish): Use the new callbacks to order the indirection
9362 output.
9363
9364 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9365
9366 * config/darwin-protos.h (machopic_finish): Delete.
9367 * config/darwin.c (machopic_finish): Make static.
9368
9369 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9370
9371 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9372 sections when building kernel extension code.
9373
9374 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
9375
9376 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9377 later standard."
9378
9379 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9380
9381 * config/pa/pa.c (pa_option_override): Remove trailing comma
9382 from warning.
9383
9384 2019-10-12 Jakub Jelinek <jakub@redhat.com>
9385
9386 PR middle-end/92063
9387 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9388 <case VEC_COND_EXPR>: Return false with *handled = false.
9389 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9390 recursing on the first operand.
9391 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9392 instead of tree_could_trap_p.
9393 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9394
9395 2019-10-11 Jim Wilson <jimw@sifive.com>
9396
9397 PR rtl-optimization/91860
9398 * combine.c (subst): If new_rtx is a constant, also check for
9399 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9400
9401 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
9402
9403 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9404 INTVAL when calling store_bit_field.
9405
9406 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
9407
9408 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9409 size.
9410
9411 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9412
9413 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9414 vectorizable_live_operation.
9415 (vectorizable_live_operation): Adjust parameters.
9416 * tree-vect-stmts.c (vect_init_vector,
9417 vect_gen_widened_results_half): Fix typo in function comment.
9418 (can_vectorize_live_stmts): Adjust function comment.
9419 Adjust parameters. Adjust call to vectorizable_live_operation.
9420 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9421 (vect_transform_stmt): Adjust function comment. Adjust call to
9422 can_vectorize_live_stmts.
9423 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9424
9425 2019-10-11 Richard Biener <rguenther@suse.de>
9426
9427 PR tree-optimization/90883
9428 PR tree-optimization/91091
9429 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9430 alias-sets both for recording VN table entries and continuing
9431 walking after translating through copies. Handle same-sized
9432 reads from SSA names by returning the plain SSA name.
9433 (eliminate_dom_walker::eliminate_stmt): Properly handle
9434 non-size precision stores in redundant store elimination.
9435
9436 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9437
9438 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9439 (ggc_collect): Dump later to not interfere with release_page dump.
9440 (ggc_trim): New function.
9441 * ggc-none.c (ggc_trim): New.
9442 * ggc.h (ggc_trim): Declare.
9443
9444 2019-10-11 Richard Biener <rguenther@suse.de>
9445
9446 PR tree-optimization/92066
9447 PR tree-optimization/92046
9448 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9449 Fix bogus cost model check.
9450
9451 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9452
9453 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9454 (LANG_HOOKS_DECLS): Add it.
9455 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9456 update comment for omp_is_optional_argument.
9457 * omp-general.c (omp_is_allocatable_or_ptr): New.
9458 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9459 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9460 Fortran's optional arguments and allocatable/pointer scalars
9461 with use_device_addr.
9462
9463 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9464
9465 PR target/77918
9466 * config/s390/2827.md: Add new opcodes.
9467 * config/s390/2964.md: Likewise.
9468 * config/s390/3906.md: Likewise.
9469 * config/s390/8561.md: Likewise.
9470 * config/s390/s390-builtins.def (s390_vfchesb): Use
9471 the new vec_cmpgev4sf_quiet_nocc.
9472 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9473 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9474 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9475 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9476 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9477 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9478 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9479 * config/s390/s390-modes.def (CCSFPS): New mode.
9480 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9481 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9482 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9483 (s390_expand_vec_compare): Use non-signaling patterns where
9484 necessary.
9485 (s390_reverse_condition): Support CCSFPS.
9486 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9487 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9488 (asm_fcmp_op): Likewise.
9489 (*smaxv2df3_vx): Use pattern for quiet comparison.
9490 (*sminv2df3_vx): Likewise.
9491 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9492 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9493 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9494 (vec_cmplt<mode>_quiet_nocc): New expander.
9495 (vec_cmpge<mode>_quiet_nocc): New pattern.
9496 (vec_cmple<mode>_quiet_nocc): New expander.
9497 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9498 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9499 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9500 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9501 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9502 (vec_cmpungt<mode>): New expander.
9503 (vec_cmpunge<mode>): Likewise.
9504 (vec_cmpuneq<mode>): Use quiet patterns.
9505 (vec_cmpltgt<mode>): Allow only on z14+.
9506 (vec_cmpordered<mode>): Use quiet patterns.
9507 (vec_cmpunordered<mode>): Likewise.
9508 (VEC_CMP_EXPAND): Add ungt and unge.
9509
9510 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9511
9512 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9513 parameter.
9514 * lto-streamer-out.c: Include tree-dfa.h.
9515 (output_cfg): Do not use cfun.
9516 (lto_prepare_function_for_streaming): New.
9517 (output_function): Do not push cfun; do not initialize loop optimizer.
9518 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9519 * passes.c (ipa_write_summaries): Use it.
9520 (ipa_write_optimization_summaries): Do not modify bodies.
9521 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9522 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9523 * tree-ssa-dse.c (pass_dse::execute): Update use of
9524 renumber_gimple_stmt_uids.
9525 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9526
9527 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9528
9529 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9530 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9531
9532 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9533
9534 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9535 macros.
9536 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9537 Also define DFP macros for these conditions.
9538 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9539 DEC128_SUBNORMAL_MIN): Do not define.
9540 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9541 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9542
9543 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9544 Sandra Loosemore <sandra@codesourcery.com>
9545
9546 PR middle-end/26241
9547 * doc/lto.texi (IPA): Reference to the IPA passes.
9548 * doc/passes.texi (Pass manager): Add node IPA passes and
9549 description for each IPA pass.
9550
9551 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9552
9553 * ipa-reference.c: Do not include splay-tree.h
9554 (reference_vars_to_consider): Turn to hash map.
9555 (get_static_name, ipa_init, analyze_function, propagate,
9556 stream_out_bitmap, ipa_reference_write_optimization_summary,
9557 ipa_reference_write_optimization_summary): Update.
9558
9559 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9560
9561 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9562
9563 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9564
9565 * config/darwin.c: Lookup Objective C metadata and force indirection
9566 for IVAR refs.
9567
9568 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9569
9570 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9571 addresses.
9572 (mem_operand_gpr): Add check for prefixed addresses.
9573 (mem_operand_ds_form): Add check for prefixed addresses.
9574 (rs6000_legitimate_offset_address_p): If we support prefixed
9575 addresses, check for a 34-bit offset instead of 16-bit.
9576 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9577 Do not allow load/store with update if the address is prefixed.
9578 (rs6000_mode_dependent_address): If we support prefixed
9579 addresses, check for a 34-bit offset instead of 16-bit.
9580
9581 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9582
9583 PR target/77918
9584 * config/s390/vector.md (vcond_comparison_operator): New
9585 predicate.
9586 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9587
9588 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9589
9590 PR 87488
9591 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9592 -D.
9593 * configure.ac (--with-documentation-root-url): New option.
9594 * configure: Regenerate.
9595 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9596 option URL, add it as a new string field of the diagnostic option.
9597 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9598 (print_option_information): If get_option_url is non-NULL, call
9599 it, and if the result is non-NULL, potentially emit an escape
9600 sequence to markup the option text with the resulting URL.
9601 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9602 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9603 example of JSON output.
9604 * opts-diagnostic.h (get_option_url): New decl.
9605 * opts.c (get_option_url): New function.
9606 * toplev.c (general_init): Initialize the get_option_url callback.
9607
9608 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9609
9610 PR 87488
9611 * common.opt (fdiagnostics-urls=): New option.
9612 (diagnostic-url.h): Add SourceInclude.
9613 (diagnostic_url_rule): New enum.
9614 * diagnostic-color.c: Include "diagnostic-url.h".
9615 (diagnostic_urls_enabled_p): New function.
9616 * diagnostic-url.h: New file.
9617 * diagnostic.c: Include "diagnostic-url.h".
9618 (diagnostic_urls_init): New function.
9619 * diagnostic.h (diagnostic_urls_init): New decl.
9620 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9621 -fdiagnostics-urls to the list.
9622 (-fdiagnostics-urls): New option.
9623 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9624 (driver::global_initializations): Call diagnostic_urls_init.
9625 * opts-global.c (init_options_once): Likewise.
9626 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9627 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9628 show_urls.
9629 (pp_begin_url): New function.
9630 (pp_end_url): New function.
9631 (selftest::test_urls): New selftest.
9632 (selftest::pretty_print_c_tests): Call it.
9633 * pretty-print.h (pretty_printer::show_urls): New field.
9634 (pp_begin_url): New decl.
9635 (pp_end_url): New decl.
9636
9637 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9638
9639 PR target/92022
9640 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9641
9642 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9643
9644 PR target/88630
9645 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9646 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9647 also for TARGET_FPU_SH4_300.
9648 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9649 TARGET_SH4_300.
9650 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9651 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9652 (*negsf2_i): Split into ...
9653 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9654 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9655 (**abssf2_i): Split into ...
9656 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9657 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9658 (*negdf2_i): Split into ...
9659 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9660 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9661 (**abssf2_i): Split into ...
9662 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9663
9664 2019-10-10 Richard Biener <rguenther@suse.de>
9665
9666 PR middle-end/92046
9667 * opts.c (finish_options): Do not influence global --params
9668 from options that are adjustable per function.
9669 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9670 Apply --param adjustment based on active cost-model.
9671 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9672 further store-sinking when vectorization or if-conversion
9673 are not enabled.
9674
9675 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9676
9677 PR middle-end/92037
9678 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9679 rather than ggc_alloc_cleared to alloc symbol table.
9680 * toplev.c (general_init): Likewise.
9681 * cgraph.h (symbol_table): Explicitly construct every field.
9682
9683 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9684
9685 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9686 (PF_Z15): ... this.
9687 * config.gcc: Add z15 as option for --with-arch and --with-tune
9688 configure switches.
9689 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9690 error reporting for unsupported builtins.
9691 * config/s390/s390-opts.h (enum processor_type): Rename
9692 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9693 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9694 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9695 Likewise.
9696 * config/s390/s390-builtins.def: Likewise.
9697 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9698 (s390_expand_builtin): Add missing check for unsupported builtins.
9699 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9700 (s390_rtx_costs): Likewise.
9701 (s390_get_sched_attrmask): Rename arch13 to z15.
9702 (s390_get_unit_mask): Likewise.
9703 (s390_is_fpd): Likewise.
9704 (s390_is_fxd): Likewise.
9705 * config/s390/s390.h (enum processor_flags): Likewise.
9706 * config/s390/s390.md: Likewise.
9707 * config/s390/vector.md: Likewise.
9708 * config/s390/vx-builtins.md: Likewise.
9709 * config/s390/s390.opt: Add z15 to processor_type value.
9710
9711 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9712
9713 PR target/91035
9714 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9715 prototype.
9716 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9717 ("split_stack_data", "split_stack_call")
9718 ("split_stack_call_<mode>", "split_stack_cond_call")
9719 ("split_stack_cond_call_<mode>"): Remove.
9720 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9721 insn definition.
9722 * config/s390/s390.c (s390_output_split_stack_data): New function.
9723 (s390_expand_split_stack_prologue): Use the merged expander.
9724
9725 2019-10-09 Martin Sebor <msebor@redhat.com>
9726
9727 PR tree-optimization/90879
9728 * builtins.c (check_access): Avoid using maxbound when null.
9729 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9730 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9731 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9732 conditional.
9733 (get_range_strlen): Overwrite initial maxbound when non-null.
9734 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9735 changes.
9736 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9737 (used_only_for_zero_equality): New function.
9738 (handle_builtin_memcmp): Call it.
9739 (determine_min_objsize): Return an integer instead of tree.
9740 (get_len_or_size, strxcmp_eqz_result): New functions.
9741 (maybe_warn_pointless_strcmp): New function.
9742 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9743 between a longer string and a smaller array.
9744 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9745
9746 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9747
9748 * config/darwin.c (darwin_override_options): Make the check for
9749 Objective-C ABI version more specific for 64bit code.
9750
9751 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9752
9753 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9754 indicate that the new symbol is an indirection.
9755 (machopic_indirect_call_target): Likewise.
9756 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9757 (MACHO_SYMBOL_INDIRECTION_P): New.
9758 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9759
9760 2019-10-08 Jason Merrill <jason@redhat.com>
9761
9762 * doc/invoke.texi: Document -fconcepts-ts.
9763
9764 2019-10-09 Richard Biener <rguenther@suse.de>
9765
9766 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9767 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9768
9769 2019-10-08 Richard Biener <rguenther@suse.de>
9770
9771 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9772 (_stmt_vec_info::force_single_cycle): Likewise.
9773 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9774 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9775 * tree-vect-loop.c (vectorizable_reduction): Set
9776 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9777 (vect_transform_reduction): Use them to remove redundant code.
9778 (vect_transform_cycle_phi): Likewise.
9779
9780 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9781
9782 PR tree-optimization/90836
9783 * match.pd (popcount): New pattern.
9784
9785 2019-10-08 Martin Sebor <msebor@redhat.com>
9786
9787 PR middle-end/92026
9788 PR middle-end/92014
9789 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9790 again once nbytes has been set. Set the access size when not yet set.
9791
9792 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9793
9794 * config/darwin.c (machopic_select_section): Remove dead code for
9795 old Objective-C section selection method, replace with unreachable.
9796
9797 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9798
9799 * config/darwin.c (machopic_indirect_data_reference): Check for
9800 required indirections before making direct access to defined
9801 values.
9802 (machopic_output_indirection): Place the indirected pointes for
9803 required indirections into the non-lazy symbol pointers section.
9804 (darwin_encode_section_info):
9805 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9806 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9807
9808 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9809
9810 PR target/91994
9811 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9812 instead of ALL_SSE_REG to check if function call preserves some
9813 256-bit SSE registers.
9814
9815 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9816
9817 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9818 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9819 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9820
9821 2019-10-08 Richard Biener <rguenther@suse.de>
9822
9823 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9824 (_stmt_vec_info::is_reduc_info): Add.
9825 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9826 (vectorizable_condition): Remove.
9827 (vectorizable_shift): Likewise.
9828 (vectorizable_reduction): Adjust.
9829 (info_for_reduction): New.
9830 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9831 (vect_analyze_scalar_cycles_1): ... here.
9832 (vect_analyze_loop_operations): Adjust.
9833 (needs_fold_left_reduction_p): Simplify for single caller.
9834 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9835 for nested cycles not part of double reductions.
9836 (vect_model_reduction_cost): Pass in the reduction type.
9837 (info_for_reduction): New function.
9838 (vect_create_epilog_for_reduction): Use it, access reduction
9839 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9840 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9841 (vectorize_fold_left_reduction): Remove pointless assert.
9842 (vectorizable_reduction): Analyze the full reduction when
9843 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9844 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9845 stmt code-generation to vectorizable_* in most cases. Verify
9846 code-generation only for cases handled by
9847 vect_transform_reductuon.
9848 (vect_transform_reduction): Use info_for_reduction to get at
9849 reduction meta. Simplify.
9850 (vect_transform_cycle_phi): Likewise.
9851 (vectorizable_live_operation): Likewise.
9852 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9853 at the PHI node for STMT_VINFO_REDUC_TYPE.
9854 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9855 longer necessary code.
9856 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9857 (vectorizable_condition): Likewise. Get at reduction related
9858 info via info_for_reduction.
9859 (vect_analyze_stmt): Adjust.
9860 (vect_transform_stmt): Likewise.
9861 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9862 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9863
9864 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9865
9866 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9867 -fno-fp-int-builtin-inexact default for C2X.
9868
9869 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9870 Richard Biener <rguenther@suse.de>
9871
9872 PR tree-optimization/91532
9873 * tree-if-conv.c: Include tree-ssa-dse.h.
9874 (ifcvt_local_dce): Change param from bb to loop,
9875 and call dse_classify_store.
9876 (tree_if_conversion): Pass loop instead of loop->header as arg
9877 to ifcvt_local_dce.
9878 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9879 (delete_dead_or_redundant_assignment): Remove static qualifier from
9880 declaration, and add prototype in tree-ssa-dse.h.
9881 (dse_store_status): Move to tree-ssa-dse.h.
9882 (dse_classify_store): Remove static qualifier and add new tree param
9883 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9884 * tree-ssa-dse.h: New header.
9885
9886 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9887
9888 * config/darwin.c (machopic_output_indirection): Don't put
9889 hidden symbol indirections into the .data section, use the
9890 non-lazy symbol pointers section as normal.
9891 (darwin_encode_section_info): Record if a symbol is hidden.
9892 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9893 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9894
9895 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9896
9897 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9898 predicates instead of accessing bits directly.
9899 (machopic_indirect_call_target): Likewise.
9900 (machopic_output_indirection): Likewise.
9901 (darwin_encode_section_info): Improve description. Use renamed
9902 symbol flags. Use predicate macros for variables and functions.
9903 * config/darwin.h:
9904 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9905 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9906 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9907 (MACHO_SYMBOL_VARIABLE_P): New.
9908 (MACHO_SYMBOL_DEFINED_P):New.
9909 (MACHO_SYMBOL_STATIC_P): New.
9910 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9911 (SYMBOL_FLAG_SUBT_DEP): New.
9912 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9913
9914 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9915
9916 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9917 (msp430_expand_epilogue): Likewise.
9918 * config/msp430/predicates.md: Likewise.
9919 * config/msp430/msp430.md: Likewise.
9920 Replace blocks of 8 spaces with tabs.
9921
9922 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9923
9924 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9925 * config/msp430/msp430.c (msp430_split_addsi): New.
9926 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9927 a block of C code for splitting addsi.
9928
9929 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9930
9931 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9932 ix86_expand_rounddf_32): Reorder functions.
9933 * config/i386/i386-protos.h: Update.
9934
9935 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9936
9937 * config.in: Regenerate.
9938 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9939 Add new "Yx" constraint.
9940 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9941 function.
9942 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9943 prototype.
9944 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9945 code/data region to be selected in the small memory model.
9946 (msp430_section_attr): Don't warn if the "section" and "lower"
9947 attributes are used together.
9948 (msp430_handle_generic_attribute): Likewise.
9949 (msp430_var_in_low_mem): New function.
9950 (TARGET_ENCODE_SECTION_INFO): Define.
9951 (msp430_encode_section_info): New function.
9952 (gen_prefix): Return early in the small memory model.
9953 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9954 ".lower" prefix if -m{code,data}-region=lower have been passed.
9955 (msp430_output_aligned_decl_common): Emit common symbols when
9956 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9957 set.
9958 (TARGET_ASM_FILE_END): Define.
9959 (msp430_file_end): New function.
9960 (msp430_do_not_relax_short_jumps): Allow relaxation when
9961 function will be in the lower region.
9962 (msp430_op_not_in_high_mem): New function.
9963 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9964 the 'X' operand selector.
9965 Clarify comment for 'x' operand selector.
9966 * config/msp430/msp430.h (LINK_SPEC): Propagate
9967 -m{code,data}-region to the linker via spec function
9968 msp430_propagate_region_opt.
9969 (msp430_propagate_region_opt): New prototype.
9970 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9971 (SYMBOL_FLAG_LOW_MEM): Define.
9972 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9973 selector.
9974 (zero_extendqihi2): Fix operand number used by "%X" selector.
9975 (zero_extendqisi2): Likewise.
9976 (zero_extendhisi2): Likewise.
9977 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9978 (movhi): Likewise.
9979 (addqi3): Likewise.
9980 (addhi3): Likewise.
9981 (addsi3): Likewise.
9982 (addhi3_cy): Likewise.
9983 (addchi4_cy): Likewise.
9984 (subqi3): Likewise.
9985 (subhi3): Likewise.
9986 (subsi3): Likewise.
9987 (bic<mode>3): Likewise.
9988 (and<mode>3): Likewise.
9989 (ior<mode>3): Likewise.
9990 (xor<mode>3): Likewise.
9991 (slli_1): Add missing "%X" operand selector.
9992 (slll_1): Likewise.
9993 (slll_2): Likewise.
9994 (srai_1): Likewise.
9995 (sral_1): Likewise.
9996 (sral_2): Likewise.
9997 (srli_1): Likewise.
9998 (srll_1): Likewise.
9999 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
10000 selector.
10001 (cbranchhi4_real): Likewise.
10002 (cbranchqi4_reversed): Likewise.
10003 (cbranchhi4_reversed): Likewise.
10004 (*bitbranch<mode>4): Likewise.
10005 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
10006 * config/msp430/msp430.opt (mcode-region=): Set default to
10007 MSP430_REGION_LOWER. Improve docstring.
10008 (mdata-region=): Likewise.
10009 (muse-lower-region-prefix): New option.
10010 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
10011 mdata-region=none multilib.
10012 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
10013 mdata-region=none multilib.
10014 MULTILIB_EXCEPTIONS: Remove.
10015 MULTILIB_REQUIRED: Define.
10016 * configure: Regenerate.
10017 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
10018 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
10019 * doc/extend.texi: Clarify comment for {upper,lower,either}
10020 function attributes.
10021 Add separate description for "lower" variable attribute.
10022
10023 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10024
10025 PR target/77918
10026 * optabs-tree.c (vcond_icode_p): New function.
10027 (vcond_eq_icode_p): Likewise.
10028 (expand_vec_cond_expr_p): Use vcond_icode_p and
10029 vcond_eq_icode_p.
10030 * optabs.c (can_vcond_compare_p): New function.
10031 * optabs.h (can_vcond_compare_p): Likewise.
10032
10033 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10034
10035 PR target/77918
10036 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
10037 caller passes a non-trapping condition.
10038 (is_gimple_condexpr): Allow trapping conditions.
10039 (is_gimple_condexpr_1): New helper function.
10040 (is_gimple_condexpr_for_cond): New function, acts like old
10041 is_gimple_condexpr.
10042 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
10043 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
10044 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
10045 * gimplify.c (gimplify_cond_expr): Use
10046 is_gimple_condexpr_for_cond.
10047 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
10048 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
10049 VEC_COND_EXPR.
10050 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
10051 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
10052 is_gimple_condexpr_for_cond, remove pointless tmp check
10053 (forward_propagate_into_cond): Remove pointless tmp check.
10054
10055 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10056
10057 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
10058 match that of other gsi_next_* functions. Adjust the comment.
10059 (gsi_start_nonvirtual_phis): New function.
10060 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
10061 gsi_next_nonvirtual_phi accordingly. (No functional change.)
10062
10063 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10064
10065 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
10066 setjmp situation here. Fix a verb's ending: "the exact variables or
10067 elements for which there are warnings depends" -> "... depend".
10068
10069 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10070
10071 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
10072
10073 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10074
10075 * ipa-prop.c (ipa_vr::nonzero_p): New.
10076 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
10077 non-zero range.
10078 * ipa-prop.h (class ipa_vr): Add nonzero_p.
10079 * tree-vrp.c (range_has_numeric_bounds_p): New.
10080 (range_int_cst_p): Use range_has_numeric_bounds_p.
10081 (get_range_op_handler): New.
10082 (supported_types_p): New.
10083 (defined_ranges_p): New.
10084 (drop_undefines_to_varying): New.
10085 (range_fold_binary_symbolics_p): New.
10086 (range_fold_unary_symbolics_p): New.
10087 (range_fold_unary_expr): Extract out into above functions.
10088 (range_fold_binary_expr): Same.
10089 (value_range_base::normalize_addresses): New.
10090 (value_range_base::normalize_symbolics): Normalize addresses.
10091 * tree-vrp.h (class value_range_base): Add normalize_addresses.
10092
10093 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10094
10095 * tree-vrp.c (value_range_base::singleton_p): Use
10096 value_range_base::num_pairs instead of vrp_val_is* to check
10097 if a range has one sub-range.
10098
10099 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10100
10101 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
10102 DEF is not a true earlyclobber but is tied to a specific input
10103 operand, and so is effectively earlyclobber wrt inputs that have
10104 different values.
10105 (make_early_clobber_and_input_conflicts): Pass this case to the above.
10106
10107 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10108
10109 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
10110 (pod_mode): Mark operators likewise.
10111 (scalar_int_mode): Mark non-default constructors and
10112 operators with CONSTEXPR.
10113 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
10114 (fixed_size_mode): Likewise.
10115
10116 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10117
10118 PR target/91994
10119 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
10120 and wrap the unspec_volatile in a parallel.
10121 (*avx_vzeroupper): New define_insn. Use a match_parallel around
10122 the unspec_volatile.
10123 * config/i386/predicates.md (vzeroupper_pattern): Expect the
10124 unspec_volatile to be wrapped in a parallel.
10125 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
10126 (ix86_add_reg_usage_to_vzerouppers): New functions.
10127 (rest_of_handle_insert_vzeroupper): Use them to add register
10128 usage information to the vzeroupper instructions.
10129
10130 2019-10-07 Richard Biener <rguenther@suse.de>
10131
10132 PR tree-optimization/91975
10133 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
10134 handle invariants.
10135
10136 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
10137
10138 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
10139 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
10140
10141 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
10142
10143 * config/darwin.c (darwin_override_options): Adjust objective-c
10144 ABI version error messages to avoid punctuation and contracted
10145 negations.
10146
10147 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
10148
10149 * ipa-inline.c: Fix type; compute size rather than self_size
10150 for size of caller function.
10151
10152 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
10153
10154 PR target/59888
10155 * config/darwin.c (darwin_rodata_section): Add relocation flag,
10156 choose const_data section for constants with relocations.
10157 (machopic_select_section): Pass relocation flag to
10158 darwin_rodata_section ().
10159
10160 2019-10-05 Jakub Jelinek <jakub@redhat.com>
10161
10162 PR tree-optimization/91734
10163 * generic-match-head.c: Include fold-const-call.h.
10164 * match.pd (sqrt(x) cmp c): Check the boundary value and
10165 in case inexact computation of c*c affects comparison of the boundary,
10166 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
10167 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
10168 for -frounding-math. For c2, try the next smaller or larger floating
10169 point constant depending on comparison code and if it has the same
10170 sqrt as c2, use it instead of c2.
10171
10172 2019-10-04 Martin Sebor <msebor@redhat.com>
10173
10174 PR middle-end/91977
10175 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
10176 MEM_REF right operand. Avoid failing for MEM_REF assignments from
10177 uninitialized objects.
10178
10179 2019-10-04 Martin Sebor <msebor@redhat.com>
10180
10181 * builtins.c (compute_objsize): Add an argument.
10182 * tree-object-size.c (addr_object_size): Same.
10183 (compute_builtin_object_size): Same.
10184 * tree-object-size.h (compute_builtin_object): Same.
10185
10186 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
10187
10188 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
10189
10190 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
10191
10192 * match.pd (sinh (x) / cosh (x)): New simplification rule.
10193
10194 2019-10-04 Martin Jambor <mjambor@suse.cz>
10195
10196 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
10197 fntype when switching to calling memcpy instead of memset.
10198
10199 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10200
10201 * hash-table.h (hash_table::empty_slow): Don't assign
10202 size_t values to int variables.
10203
10204 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10205
10206 * expr.c (convert_mode_scalar): Remove shadowing local var.
10207 (emit_block_move): Rename local vars.
10208 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
10209 (emit_push_insn): Rename local vars.
10210 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
10211 shadowing local vars.
10212 (store_constructor): Remove shadowing local vars. Rename local var.
10213 (store_field, expand_cond_expr_using_cmove,
10214 expand_expr_real_2): Remove shadowing local vars.
10215 (expand_expr_real_1,
10216 do_store_flag): Remove shadowing local vars. Rename local vars.
10217
10218 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10219
10220 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
10221
10222 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10223
10224 * genmatch.c (commutate): Rename local var.
10225 (lower_cond): Reuse local var.
10226 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
10227 dt_operand::gen, dt_operand::gen_gimple_expr,
10228 dt_simplify::gen): Add a param. Rename generated vars.
10229 (decision_tree::insert_operand,
10230 (capture_info::walk_match, capture_info::walk_result,
10231 capture_info::walk_c_expr): Rename local vars.
10232 (expr::gen_transform): Rename generated vars.
10233 Use snprintf. Rename local vars.
10234 (capture::gen_transform, dt_operand::get_name,
10235 dt_operand::gen_opname): Rename generated vars.
10236 (write_predicate): Adjust call to gen_kids.
10237 (parser::get_internal_capture_id): Rename generated vars.
10238 (parser::parse_expr): Rename local vars.
10239 (parser::parse_if): Remove local var.
10240 (parser::parse_pattern, add_operator): Rename local vars.
10241
10242 2019-10-04 Joseph Myers <joseph@codesourcery.com>
10243
10244 * builtins.def (DEF_C2X_BUILTIN): New macro.
10245 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
10246 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
10247 (strndup): Use DEF_C2X_BUILTIN.
10248 * coretypes.h (enum function_class): Add function_c2x_misc.
10249
10250 2019-10-04 Maya Rashish <coypu@sdf.org>
10251
10252 * ira-color.c (update_costs_from_allocno): Call
10253 ira_init_register_move_cost_if_necessary.
10254
10255 2019-10-04 Jeff Law <law@redhat.com>
10256
10257 * config/h8300/h8300.md (cpymemsi): Disable.
10258 (movmd, movmd_internal_<mode>, movstr, movsd):
10259 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
10260 (movmd splitter, movsd splitter): Likewise.
10261
10262 * range-op.cc (range_tests): Avoid two tests when ints and
10263 shorts are the same size.
10264
10265 2019-10-04 Richard Biener <rguenther@suse.de>
10266
10267 PR lto/91968
10268 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
10269 BLOCK_VARS.
10270
10271 2019-10-04 Richard Biener <rguenther@suse.de>
10272
10273 PR tree-optimization/91982
10274 * tree-vect-loop.c (vectorizable_live_operation): Also guard
10275 against EXTRACT_LAST_REDUCTION.
10276 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
10277
10278 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
10279
10280 * range-op.o (value_range_from_overflowed_bounds): Rename from
10281 adjust_overflow_bound.
10282 (value_range_with_overflow): Rename from
10283 create_range_with_overflow.
10284 (create_possibly_reversed_range): Adjusted for above renames.
10285 (operator_*::wi_fold): Same.
10286 (cross_product_operator::wi_cross_productor): Same.
10287
10288 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10289
10290 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
10291 -Wshadow=compatible-local): Fix description.
10292 Add an example where -Wshadow=compatible-local does not
10293 warn.
10294
10295 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
10296
10297 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
10298
10299 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
10300 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
10301
10302 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10303
10304 * expr.c (emit_block_move_hints): Slightly cleaner fix to
10305 can_move_by_pieces issue.
10306
10307 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
10308
10309 PR target/87243
10310 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
10311 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
10312 is available and the user has not set one on the command line.
10313
10314 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10315
10316 PR target/91769
10317 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
10318 instead of REGNO equality check on addr.reg.
10319
10320 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
10321
10322 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
10323 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
10324 * doc/invoke.texi (inline-heuristics-hint-percent,
10325 inline-heuristics-hint-percent-O2): Document.
10326 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
10327 hint attribute.
10328 (can_inline_edge_by_limits_p): Use it.
10329
10330 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
10331
10332 * config/arm/arm.c (arm_print_value): Use real_to_decimal
10333 to print CONST_DOUBLEs.
10334
10335 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
10336
10337 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
10338 * ipa-prop.c (ipcp_free_transformation_sum): New function.
10339 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
10340
10341 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
10342
10343 * Makefile.in (OBJS): Add range.o and range-op.o.
10344 Remove wide-int-range.o.
10345 * function-tests.c (test_ranges): New.
10346 (function_tests_c_tests): Call test_ranges.
10347 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
10348 range_fold_unary_expr instead of extract_range_from_unary_expr.
10349 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10350 * range-op.cc: New file.
10351 * range-op.h: New file.
10352 * range.cc: New file.
10353 * range.h: New file.
10354 * selftest.h (range_tests): New prototype.
10355 * ssa.h: Include range.h.
10356 * tree-vrp.c (value_range_base::value_range_base): New
10357 constructors.
10358 (value_range_base::singleton_p): Do not call
10359 ranges_from_anti_range until sure we will need to.
10360 (value_range_base::type): Rename gcc_assert to
10361 gcc_checking_assert.
10362 (vrp_val_is_max): New argument.
10363 (vrp_val_is_min): Same.
10364 (wide_int_range_set_zero_nonzero_bits): Move from
10365 wide-int-range.cc.
10366 (extract_range_into_wide_ints): Remove.
10367 (extract_range_from_multiplicative_op): Remove.
10368 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10369 from extract_range_from_binary_expr.
10370 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10371 from extract_range_from_binary_expr.
10372 (extract_range_from_binary_expr): Remove.
10373 (normalize_for_range_ops): New.
10374 (range_fold_binary_expr): New.
10375 (range_fold_unary_expr): New.
10376 (value_range_base::num_pairs): New.
10377 (value_range_base::lower_bound): New.
10378 (value_range_base::upper_bound): New.
10379 (value_range_base::upper_bound): New.
10380 (value_range_base::contains_p): New.
10381 (value_range_base::invert): New.
10382 (value_range_base::union_): New.
10383 (value_range_base::intersect): New.
10384 (range_compatible_p): New.
10385 (value_range_base::operator==): New.
10386 (determine_value_range_1): Call range_fold_*expr instead of
10387 extract_range_from_*expr.
10388 * tree-vrp.h (class value_range_base): Add new constructors.
10389 Add methods for union_, intersect, operator==, contains_p,
10390 num_pairs, lower_bound, upper_bound, invert.
10391 (vrp_val_is_min): Add handle_pointers argument.
10392 (vrp_val_is_max): Same.
10393 (extract_range_from_unary_expr): Remove.
10394 (extract_range_from_binary_expr): Remove.
10395 (range_fold_unary_expr): New.
10396 (range_fold_binary_expr): New.
10397 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10398 range_fold_binary_expr instead of extract_range_from_binary_expr.
10399 (vr_values::extract_range_basic): Same.
10400 (vr_values::extract_range_from_unary_expr): Call
10401 range_fold_unary_expr instead of extract_range_from_unary_expr.
10402 * wide-int-range.cc: Remove.
10403 * wide-int-range.h: Remove.
10404
10405 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
10406
10407 * config/rs6000/rs6000.c (mem_operand_gpr): Use
10408 SIGNED_16BIT_OFFSET_EXTRA_P macro.
10409 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10410 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10411 macro.
10412
10413 2019-10-02 Joseph Myers <joseph@codesourcery.com>
10414
10415 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10416 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10417 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10418 * glimits.h: Likewise.
10419
10420 2019-10-03 Jakub Jelinek <jakub@redhat.com>
10421
10422 PR rtl-optimization/91976
10423 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10424 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
10425 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
10426
10427 2019-10-02 Martin Sebor <msebor@redhat.com>
10428
10429 PR tree-optimization/80936
10430 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10431
10432 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10433
10434 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10435 instead of reg_class_contents[ALL_REGS].
10436
10437 2019-09-30 Jason Merrill <jason@redhat.com>
10438
10439 Add some hash_map_safe_* functions like vec_safe_*.
10440 * hash-map.h (default_hash_map_size): New variable.
10441 (create_ggc): Use it as default argument.
10442 (hash_map_maybe_create, hash_map_safe_get)
10443 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10444
10445 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10446
10447 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10448 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10449 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10450 (can_inline_edge_by_limits_p): Use it.
10451 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10452 (want_inline_small_function_p): Use O2 bounds.
10453 (edge_badness): LIkewise.
10454 * opts.c (default_options): Add OPT_finline_functions.
10455 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10456 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10457 New parameters.
10458 * doc/invoke.texi (-finline-functions): Update documentation.
10459 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10460 inline-min-speedup-O2): Document.
10461 (early-inlining-insns-O2): Simplify docs.
10462
10463 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10464
10465 PR rtl-optimization/87047
10466 * ifcvt.c (average_cost): New static function. Use it...
10467 (noce_process_if_block): ... here.
10468
10469 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10470
10471 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10472 * config/rs6000/rs6000-string.c (expand_block_move): Add
10473 might_overlap parm.
10474 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10475 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10476
10477 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10478
10479 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10480 (expand_builtin_memcpy): Use might_overlap parm.
10481 (expand_builtin_mempcpy_args): Use might_overlap parm.
10482 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10483 (expand_builtin_memory_copy_args): Add might_overlap parm.
10484 * expr.c (emit_block_move_via_cpymem): Rename to
10485 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10486 or movmem optab as appropriate.
10487 (emit_block_move_hints): Add might_overlap parm, do the right
10488 thing for might_overlap==true.
10489 * expr.h (emit_block_move_hints): Update prototype.
10490
10491 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10492
10493 * tree-eh.h (unsplit_eh_edges): Declare.
10494 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10495 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10496 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10497 (struct store_immediate_info): Add lp_nr field.
10498 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10499 initialize lp_nr with it.
10500 (struct merged_store_group): Add lp_nr and only_constants fields.
10501 (merged_store_group::merged_store_group): Initialize them.
10502 (merged_store_group::can_be_merged_into): Deal with them.
10503 (pass_store_merging): Rename terminate_and_release_chain into
10504 terminate_and_process_chain.
10505 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10506 renaming and remove useless assertions.
10507 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10508 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10509 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10510 instead of always recomputing it and compare lp_nr.
10511 (imm_store_chain_info::output_merged_store): If the group is in an
10512 active EH region, register new stores if they can throw. Moreover,
10513 if the insertion has created new basic blocks, adjust the PHI nodes
10514 of the post landing pad.
10515 (imm_store_chain_info::output_merged_stores): If the original stores
10516 are in an active EH region, deregister them.
10517 (lhs_valid_for_store_merging_p): Prettify.
10518 (adjust_bit_pos): New function extracted from...
10519 (mem_valid_for_store_merging): ...here. Use it for the base address
10520 and also for the offset if it is the addition of a constant.
10521 (lp_nr_for_store): New function.
10522 (pass_store_merging::process_store): Change return type to bool.
10523 Call lp_nr_for_store to initialize the store info. Propagate the
10524 return status of various called functions to the return value.
10525 (store_valid_for_store_merging_p): New predicate.
10526 (enum basic_block_status): New enumeration.
10527 (get_status_for_store_merging): New function.
10528 (pass_store_merging::execute): If the function can throw and catch
10529 non-call exceptions, unsplit the EH edges on entry and clean up the
10530 CFG on exit if something changed. Call get_status_for_store_merging
10531 for every basic block and keep the chains open across basic blocks
10532 when possible. Terminate and process open chains at the end, if any.
10533
10534 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10535
10536 * reginfo.c (globalize_reg): Fix shadowed variable in
10537 function_abis walk.
10538
10539 2019-10-02 Martin Jambor <mjambor@suse.cz>
10540
10541 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10542 do not compute some stuff when set.
10543 (cgraph_node::create_edge): Likewise.
10544 (cgraph_node::create_indirect_edge): Renamed last parameter to
10545 coning_p and flipped its meaning, don't even calculate
10546 inline_failed when set.
10547 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10548 (symbol_table::::create_edge): Likewise.
10549 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10550 the default value.
10551 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10552 call graph edge creating functions.
10553
10554 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10555
10556 PR c++/91222
10557 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10558 namespace types.
10559
10560 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10561
10562 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10563
10564 2019-10-02 Richard Biener <rguenther@suse.de>
10565
10566 * tree-vectorizer.h (vect_transform_reduction): Declare.
10567 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10568 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10569 stmt transform to ...
10570 (vect_transform_reduction): ... this.
10571
10572 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10573
10574 * omp-low.c (lower_omp_target): Dereference optional argument
10575 to work with the right pointer.
10576
10577 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10578
10579 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10580 false.
10581 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10582 * langhooks.h (omp_is_optional_argument): New hook.
10583 * omp-general.c (omp_is_optional_argument): New.
10584 * omp-general.h (omp_is_optional_argument): New declaration.
10585 * omp-low.c (lower_omp_target): Create temporary for received value
10586 and take the address for new_var if the original variable was a
10587 DECL_BY_REFERENCE. Use size of referenced object when a
10588 pass-by-reference optional argument used as argument to firstprivate.
10589
10590 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10591
10592 PR tree-optimization/91940
10593 * tree-vect-patterns.c: Include tree-vector-builder.h and
10594 vec-perm-indices.h.
10595 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10596 unpromoting the argument back to uint16_t, or by converting into a
10597 rotate, or into shifts plus ior.
10598
10599 2019-10-02 Richard Biener <rguenther@suse.de>
10600
10601 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10602 New.
10603 (vect_transform_cycle_phi): Declare.
10604 * tree-vect-stmts.c (vect_transform_stmt): Call
10605 vect_transform_cycle_phi.
10606 * tree-vect-loop.c (vectorizable_reduction): Split out
10607 PHI transformation stage to ...
10608 (vect_transform_cycle_phi): ... here.
10609
10610 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10611
10612 PR middle-end/91957
10613 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10614 eliminable registers.
10615 (make_hard_regno_live): Likewise, and don't make them live.
10616
10617 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10618
10619 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10620 Call pp_emit_prefix.
10621 (layout::print_source_line): Likewise.
10622 (layout::start_annotation_line): Likewise.
10623 (diagnostic_show_locus): Remove call to temporarily clear the
10624 prefix.
10625 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10626 interaction of pp_set_prefix with rulers and fix-it hints.
10627 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10628 prefix when calling diagnostic_show_locus, rather than destroying
10629 it afterwards.
10630 (print_parseable_fixits): Temporarily clear prefix.
10631 * pretty-print.c (pp_format): Save and restore line_length, rather
10632 than assuming it is zero.
10633 (pp_output_formatted_text): Remove assertion that line_length is
10634 zero.
10635
10636 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10637
10638 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10639 Rename to ...
10640 (nonoverlapping_refs_since_match_p): ... this; handle also
10641 ARRAY_REFs.
10642 (alias_stats): Update stats.
10643 (dump_alias_stats): Likewise.
10644 (cheap_array_ref_low_bound): New function.
10645 (aliasing_matching_component_refs_p): Add partial_overlap
10646 argument;
10647 pass it to nonoverlapping_refs_since_match_p.
10648 (aliasing_component_refs_walk): Update call of
10649 aliasing_matching_component_refs_p
10650 (nonoverlapping_array_refs_p): New function.
10651 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10652 indirect_refs_may_alias_p): Update calls of
10653 nonoverlapping_refs_since_match_p.
10654
10655 2019-10-01 Maya Rashish <coypu@sdf.org>
10656
10657 PR target/85401
10658 * ira-color.c (allocno_copy_cost_saving): Call
10659 ira_init_register_move_cost_if_necessary.
10660
10661 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10662
10663 * Makefile.in (gnat_install_lib): New variable.
10664 * configure.ac: Substitute it.
10665 * configure: Regenerate.
10666
10667 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10668
10669 PR lto/91222
10670 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10671 is matched with non-C++ type
10672
10673 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10674
10675 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10676 after local CSE.
10677
10678 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10679
10680 * doc/invoke.texi (early-inlining-insns-O2): Document.
10681 (early-inlining-insns): Update.
10682 * params.def (early-inlining-insns-O2): New bound.
10683 (early-inlining-insns): Update docs.
10684 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10685
10686 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10687
10688 PR target/88562
10689 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10690 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10691 a memory access insn.
10692
10693 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10694
10695 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10696 vpmsumd.
10697
10698 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10699
10700 PR target/77918
10701 * config/s390/s390.c (s390_expand_vec_compare): Use
10702 gen_vec_cmpordered and gen_vec_cmpunordered.
10703 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10704 vec_unordered): Delete.
10705 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10706 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10707 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10708 (vec_cmp<code>): Generic dispatcher.
10709
10710 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10711
10712 PR target/77918
10713 * config/s390/vector.md (V_HW): Add V1TI in order to make
10714 vcond$a$b generate vcondv1tiv1tf.
10715
10716 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10717
10718 PR rtl-optimization/91948
10719 * ira-build.c (ira_create_allocno): Initialize
10720 ALLOCNO_CROSSED_CALLS_ABIS.
10721 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10722 than regno to ira_need_caller_save_p.
10723
10724 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10725
10726 * config/i386/i386-options.c
10727 (ix86_recompute_optlev_based_flags): New, moved out of...
10728 (ix86_option_override_internal): ... this. Call it.
10729 (ix86_override_options_after_change): Call it here too.
10730
10731 PR debug/91507
10732 * dwarf2out.c (override_type_for_decl_p): New.
10733 (gen_variable_die): Use it.
10734
10735 2019-10-01 Richard Biener <rguenther@suse.de>
10736
10737 * tree-vect-loop.c (vectorizable_reduction): Move variables
10738 to where they are used.
10739
10740 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10741
10742 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10743 (build_def_use): Use PC instead of CC0 in a comment.
10744
10745 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10746
10747 * rtl.def (CLOBBER_HIGH): Delete.
10748 * doc/rtl.texi (clobber_high): Remove documentation.
10749 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10750 (reg_is_clobbered_by_clobber_high): Delete.
10751 (gen_hard_reg_clobber_high): Likewise.
10752 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10753 * cfgexpand.c (expand_gimple_stmt): Likewise.
10754 * combine-stack-adj.c (single_set_for_csa): Likewise.
10755 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10756 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10757 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10758 * cse.c (invalidate_reg): Remove clobber_high parameter.
10759 (invalidate): Update call accordingly.
10760 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10761 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10762 (count_reg_usage, insn_live_p): Likewise.
10763 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10764 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10765 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10766 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10767 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10768 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10769 (mark_nonreg_stores_2): Likewise.
10770 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10771 (df_get_call_refs): Likewise.
10772 * dwarf2out.c (mem_loc_descriptor): Likewise.
10773 * emit-rtl.c (verify_rtx_sharing): Likewise.
10774 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10775 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10776 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10777 * genemit.c (gen_exp, gen_insn): Likewise.
10778 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10779 * haifa-sched.c (haifa_classify_rtx): Likewise.
10780 * ira-build.c (create_insn_allocnos): Likewise.
10781 * ira-costs.c (scan_one_insn): Likewise.
10782 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10783 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10784 * jump.c (mark_jump_label_1): Likewise.
10785 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10786 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10787 handling.
10788 (mark_not_eliminable): Likewise.
10789 * lra-lives.c (process_bb_lives): Likewise.
10790 * lra.c (new_insn_reg): Remove clobber_high parameter.
10791 (collect_non_operand_hard_regs): Likewise. Update call to new
10792 insn_reg. Remove CLOBBER_HIGH handling.
10793 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10794 to collect_non_operand_hard_regs.
10795 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10796 Update call to new_insn_reg.
10797 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10798 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10799 (move2add_note_store): Likewise.
10800 * print-rtl.c (print_pattern): Likewise.
10801 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10802 (if_test_bypass_p): Likewise.
10803 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10804 * reginfo.c (reg_scan_mark_refs): Likewise.
10805 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10806 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10807 (forget_old_reloads_1): Likewise.
10808 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10809 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10810 (dbr_schedule): Likewise.
10811 * resource.c (update_live_status, mark_referenced_resources)
10812 (mark_set_resources): Likewise.
10813 * rtl.c (copy_rtx): Likewise.
10814 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10815 (note_pattern_stores): Likewise.
10816 (reg_is_clobbered_by_clobber_high): Delete.
10817 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10818 CLOBBER_HIGH handling.
10819
10820 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10821
10822 PR target/91452
10823 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10824 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10825 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10826 Handle ARM_PCS_TLSDESC.
10827 (aarch64_tlsdesc_abi_id): New function.
10828 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10829 rtx instead of a list of clobbers and clobber_highs.
10830 (tlsdesc_small_<mode>): Update accordingly.
10831
10832 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10833
10834 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10835 extra callee_abi argument.
10836 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10837 Insert a CALLEE_ABI unspec into the call pattern as the second
10838 element in the PARALLEL.
10839 (aarch64_simd_call_p): Delete.
10840 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10841 the new CALLEE_ABI element of the PARALLEL.
10842 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10843 from the function type, if given.
10844 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10845 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10846 when passed the function_arg_info end marker.
10847 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10848 final argument of gen_sibcall.
10849 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10850 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10851 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10852 pattern.
10853 (call_value): Likewise operand 3.
10854 (sibcall): Likewise operand 2. Place the unspec before rather than
10855 after the return.
10856 (sibcall_value): Likewise operand 3.
10857 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10858 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10859 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10860 constraint strings.
10861 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10862
10863 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10864
10865 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10866 choose_hard_reg_mode.
10867 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10868
10869 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10870
10871 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10872 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10873 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10874
10875 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10876
10877 * diagnostic-show-locus.c (line_label::line_label): Initialize
10878 m_has_vbar.
10879 (line_label::comparator): Reverse the sort order by m_state_idx,
10880 so that when the list is walked backwards the labels appear in
10881 order of insertion into the rich_location.
10882 (line_label::m_has_vbar): New field.
10883 (layout::print_any_labels): When dealing with multiple labels at
10884 the same line and column, only print vertical bars for the one
10885 with the highest label_line.
10886 (selftest::test_one_liner_labels): Update test for multiple labels
10887 to expect the labels to be in the order of insertion into the
10888 rich_location. Add a test for many such labels, where the column
10889 numbers are out-of-order relative to the insertion order.
10890
10891 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10892
10893 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10894 (ix86_frame::expensive_count): Likewise.
10895 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10896 of use_fast_prologue_epilogue robust against incidental changes
10897 in function size.
10898
10899 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10900
10901 PR target/77918
10902 * config/s390/vector.md (vec_unordered<mode>): Call
10903 gen_vec_ordered<mode>.
10904
10905 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10906
10907 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10908 New pattern for ASRD.
10909 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10910 * internal-fn.def (IFN_DIV_POW2): New internal function.
10911 * optabs.def (sdiv_pow2_optab): New optab.
10912 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10913 Modify pattern to support new operation.
10914 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10915 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10916 Document new target selector.
10917
10918 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10919
10920 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10921 to test whether we're compiling a vector PCS function and to test
10922 whether the function needs to save a particular register.
10923 Remove the vector PCS handling of df_set_regs_ever_live.
10924 (aarch64_components_for_bb): Use crtl->abi to test whether
10925 the function needs to save a particular register.
10926 (aarch64_process_components): Use crtl->abi to test whether
10927 we're compiling a vector PCS function.
10928 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10929 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10930
10931 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10932
10933 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10934 Delete.
10935 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10936 whether the block calls a function that clobbers more registers
10937 than the current function is allowed to.
10938 (aarch64_use_simple_return_insn_p): Delete.
10939 * config/aarch64/aarch64.md (simple_return): Remove condition.
10940
10941 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10942
10943 * function-abi.h (function_abi_aggregator): New class.
10944 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10945 function.
10946 * ira.c (update_equiv_regs_prescan): New function. Call
10947 set_paradoxical_subreg here rather than...
10948 (update_equiv_regs): ...here.
10949 (ira): Call update_equiv_regs_prescan.
10950
10951 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10952
10953 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10954 IN_TARGET_CODE.
10955 (call_used_or_fixed_regs): Likewise.
10956 (call_used_or_fixed_reg_p): Likewise.
10957 * reginfo.c (regs_invalidated_by_call): New macro.
10958
10959 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10960
10961 * shrink-wrap.c: Include function-abi.h.
10962 (requires_stack_frame_p): Use crtl->abi to test whether the
10963 current function can use a register without saving it first.
10964
10965 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10966
10967 * sel-sched-ir.h (_def::crosses_call): Replace with...
10968 (_def::crossed_call_abis): ..this new field.
10969 (def_list_add): Take a mask of ABIs instead of a crosses_call
10970 boolean.
10971 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10972 of _def accordingly.
10973 * sel-sched.c: Include function-abi.h.
10974 (hard_regs_data::regs_for_call_clobbered): Delete.
10975 (reg_rename::crosses_call): Replace with...
10976 (reg_rename::crossed_call_abis): ...this new field.
10977 (fur_static_params::crosses_call): Replace with...
10978 (fur_static_params::crossed_call_abis): ...this new field.
10979 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10980 (init_hard_regs_data): Use crtl->abi to test which registers the
10981 current function would need to save before it uses them.
10982 (mark_unavailable_hard_regs): Update handling of call-clobbered
10983 registers, using call_clobbers_in_region to find out which registers
10984 might be call-clobbered (but without taking -fipa-ra into account
10985 for now). Remove separate handling of partially call-clobbered
10986 registers.
10987 (verify_target_availability): Use crossed_call_abis instead of
10988 crosses_call.
10989 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10990 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10991
10992 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10993
10994 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10995 function to test whether a register is fully or partly clobbered.
10996
10997 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10998
10999 * rtlanal.c: Include function-abi.h.
11000 (reg_set_p): Use insn_callee_abi to get the ABI of the called
11001 function and clobbers_reg_p to test whether the register
11002 is call-clobbered.
11003 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
11004 to get the ABI of the called function and full_reg_clobbers to
11005 get the set of fully call-clobbered registers. Warn about the
11006 pitfalls of using this mode.
11007
11008 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11009
11010 * reload.c: Include function-abi.h.
11011 (find_equiv_reg): Use clobbers_reg_p to test whether either
11012 of the equivalent registers is clobbered by a call.
11013 * reload1.c: Include function-abi.h.
11014 (reg_reloaded_call_part_clobbered): Delete.
11015 (reload): Use crtl->abi to test which registers would need
11016 saving in the prologue before use.
11017 (find_reg): Likewise.
11018 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
11019 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
11020 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
11021
11022 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11023
11024 * regrename.h (du_head::call_clobber_mask): New field.
11025 (du_head::need_caller_save_reg): Replace with...
11026 (du_head::call_abis): ...this new field.
11027 * regrename.c: Include function-abi.h.
11028 (call_clobbered_in_chain_p): New function.
11029 (check_new_reg_p): Use crtl->abi when deciding whether a register
11030 is free for use after RA. Use call_clobbered_in_chain_p to test
11031 whether a candidate register would be clobbered by a call.
11032 (find_rename_reg): Don't add call-clobber conflicts here.
11033 (rename_chains): Check call_abis instead of need_caller_save_reg.
11034 (merge_chains): Update for changes to du_head.
11035 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
11036 target. Record the ABI identifier in call_abis and the set of
11037 fully or partially clobbered registers in call_clobber_mask.
11038 Add fully-clobbered registers to hard_conflicts here rather
11039 than in find_rename_reg.
11040 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
11041 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
11042 * config/aarch64/falkor-tag-collision-avoidance.c: Include
11043 function-abi.h.
11044 * config/c6x/c6x.c: Likewise.
11045
11046 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11047
11048 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
11049 mode of the register when deciding whether it is no longer
11050 available after a call.
11051
11052 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11053
11054 * recog.c: Include function-abi.h.
11055 (peep2_find_free_register): Use crtl->abi when deciding whether
11056 a register is free for use after RA.
11057
11058 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11059
11060 * postreload-gcse.c: Include regs.h and function-abi.h.
11061 (record_opr_changes): Use insn_callee_abi to get the ABI of the
11062 call insn target. Conservatively assume that partially-clobbered
11063 registers are altered.
11064
11065 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11066
11067 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
11068 when deciding whether a register is free for use after RA.
11069 (reload_combine): Remove unnecessary use of fixed_reg_set.
11070 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
11071 call insn target. Use reg_mode when testing whether a register
11072 is no longer available.
11073
11074 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11075
11076 * target.def (return_call_with_max_clobbers): Delete.
11077 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11078 * doc/tm.texi: Regenerate.
11079 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
11080 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11081 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
11082 (lra_reg::call_insn): Delete.
11083 * lra.c: Include function-abi.h.
11084 (initialize_lra_reg_info_element): Don't initialize the fields above.
11085 (lra): Use crtl->abi to test whether the current function needs to
11086 save a register in the prologue. Remove special pre-inheritance
11087 lra_create_live_ranges pass for flag_ipa_ra.
11088 * lra-assigns.c: Include function-abi.h
11089 (find_hard_regno_for_1): Use crtl->abi to test whether the current
11090 function needs to save a register in the prologue.
11091 (lra_assign): Assert that registers aren't allocated to a
11092 conflicting register, rather than checking only for overlaps
11093 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
11094 and for registers that are not live across a call.
11095 * lra-constraints.c (last_call_for_abi): New variable.
11096 (full_and_partial_call_clobbers): Likewise.
11097 (setup_next_usage_insn): Remove the register from
11098 full_and_partial_call_clobbers.
11099 (need_for_call_save_p): Use call_clobbered_in_region_p to test
11100 whether the register needs a caller save.
11101 (need_for_split_p): Use full_and_partial_reg_clobbers instead
11102 of call_used_or_fixed_regs.
11103 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
11104 full_and_partial_call_clobbers.
11105 * lra-lives.c (check_pseudos_live_through_calls): Replace
11106 last_call_used_reg_set and call_insn arguments with an abi argument.
11107 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
11108 as the set of conflicting registers.
11109 (calls_have_same_clobbers_p): Delete.
11110 (process_bb_lives): Track the ABI of the last call instead of an
11111 insn/HARD_REG_SET pair. Update calls to
11112 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
11113 the set of registers that could be clobbered by an EH edge.
11114 Include partially-clobbered as well as fully-clobbered registers.
11115 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
11116 * lra-remat.c: Include function-abi.h.
11117 (call_used_regs_arr_len, call_used_regs_arr): Delete.
11118 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
11119 registers and bitmap_view to combine them into dead_regs.
11120 (call_used_input_regno_present_p): Take a function_abi argument
11121 and use it to test whether a register is call-clobbered.
11122 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
11123 call insn target. Update tje call to call_used_input_regno_present_p.
11124 (do_remat): Likewise.
11125 (lra_remat): Remove the initialization of call_used_regs_arr_len
11126 and call_used_regs_arr.
11127
11128 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11129
11130 * loop-iv.c: Include regs.h and function-abi.h.
11131 (simplify_using_initial_values): Use insn_callee_abi to get the
11132 ABI of the call insn target. Conservatively assume that
11133 partially-clobbered registers are altered.
11134
11135 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11136
11137 * function-abi.h (call_clobbers_in_region): Declare.
11138 (call_clobbered_in_region_p): New function.
11139 * function-abi.cc (call_clobbers_in_region): Likewise.
11140 * ira-int.h: Include function-abi.h.
11141 (ira_allocno::crossed_calls_abis): New field.
11142 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
11143 (ira_need_caller_save_regs): New function.
11144 (ira_need_caller_save_p): Likewise.
11145 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
11146 of call_used_or_fixed_regs.
11147 (do_reload): Use crtl->abi to test whether the current function
11148 needs to save a register in the prologue. Count registers that
11149 need to be saved rather than registers that don't.
11150 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
11151 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11152 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
11153 (propagate_some_info_from_allocno): Likewise.
11154 (copy_info_to_removed_store_destinations): Likewise.
11155 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
11156 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
11157 (ira_build): Use ira_need_caller_save_regs instead of
11158 call_used_or_fixed_regs.
11159 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
11160 whether the current function would need to save a register
11161 before using it.
11162 (calculate_spill_cost): Likewise.
11163 (allocno_reload_assign): Use ira_need_caller_save_regs and
11164 ira_need_caller_save_p instead of call_used_or_fixed_regs.
11165 * ira-conflicts.c (ira_build_conflicts): Use
11166 ira_need_caller_save_regs rather than call_used_or_fixed_regs
11167 as the set of call-clobbered registers. Remove the
11168 call_used_or_fixed_regs mask from the calculation of
11169 temp_hard_reg_set and mask its use instead. Remove special
11170 handling of partially-clobbered registers.
11171 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
11172 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
11173 calculate the set of conflicting registers for calls that
11174 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
11175 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
11176 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11177 Use eh_edge_abi to calculate the set of registers that could
11178 be clobbered by an EH edge. Include partially-clobbered as
11179 well as fully-clobbered registers.
11180
11181 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11182
11183 * haifa-sched.c: Include function-abi.h.
11184 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
11185 the function would need to save a register before using it.
11186
11187 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11188
11189 * gcse.c: Include function-abi.h.
11190 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
11191 the call insn target. Invalidate partially call-clobbered
11192 registers as well as fully call-clobbered ones.
11193
11194 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11195
11196 * function.c (aggregate_value_p): Work out which ABI the
11197 function is using before testing which registers are at least
11198 partly preserved by a call.
11199
11200 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11201
11202 * early-remat.c: Include regs.h and function-abi.h.
11203 (early_remat::maybe_add_candidate): Don't check for call-clobbered
11204 registers here.
11205 (early_remat::restrict_remat_for_unavail_regs): New function.
11206 (early_remat::restrict_remat_for_call): Likewise.
11207 (early_remat::process_block): Before calling emit_remat_insns
11208 for a previous call in the block, invalidate any candidates
11209 that would clobber call-preserved registers.
11210 (early_remat::emit_remat_insns_for_block): Likewise for the
11211 final call in a block. Do the same thing for live-in registers
11212 when calling emit_remat_insns at the head of a block.
11213
11214 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11215
11216 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
11217 whether the current function needs to save at least part of a
11218 register before using it.
11219 (df_get_exit_block_use_set): Likewise for epilogue restores.
11220
11221 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11222
11223 * df-problems.c: Include regs.h and function-abi.h.
11224 (df_rd_problem_data): Rename sparse_invalidated_by_call to
11225 sparse_invalidated_by_eh and dense_invalidated_by_call to
11226 dense_invalidated_by_eh.
11227 (df_print_bb_index): Update accordingly.
11228 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
11229 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
11230 that are clobbered by an EH edge. Clobber partially-clobbered
11231 registers as well as fully-clobbered ones.
11232 (df_md_confluence_n): Likewise.
11233 (df_rd_local_compute): Likewise. Update for changes to
11234 df_rd_problem_data.
11235 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
11236 of registers that are clobbered by an EH edge. Includde partially-
11237 clobbered registers as well as fully-clobbered ones.
11238
11239 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11240
11241 * cselib.c (cselib_process_insn): If we know what mode a
11242 register was set in, check whether it is clobbered in that
11243 mode by a call. Only fall back to reg_raw_mode if that fails.
11244
11245 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11246
11247 * cse.c: Include regs.h and function-abi.h.
11248 (invalidate_for_call): Take the call insn as an argument.
11249 Use insn_callee_abi to get the ABI of the call and invalidate
11250 partially clobbered registers as well as fully clobbered ones.
11251 (cse_insn): Update call accordingly.
11252
11253 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11254
11255 * combine.c: Include function-abi.h.
11256 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
11257 of the target of call insns. Invalidate partially-clobbered
11258 registers as well as fully-clobbered ones.
11259
11260 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11261
11262 * cfgloopanal.c: Include regs.h and function-abi.h.
11263 (init_set_costs): Use default_function_abi to test whether
11264 a general register is call-clobbered.
11265
11266 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11267
11268 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
11269 instead of the call-clobbered sets.
11270
11271 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11272
11273 * caller-save.c (setup_save_areas): Remove redundant |s of
11274 fixed_reg_set.
11275 (save_call_clobbered_regs): Likewise. Use the call ABI rather
11276 than call_used_or_fixed_regs to decide whether a REG_RETURNED
11277 value is useful.
11278
11279 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11280
11281 * rtl.h (predefined_function_abi): Declare.
11282 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11283 instead of a boolean call_save flag.
11284 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
11285 accordingly.
11286 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11287 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11288 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
11289 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11290 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11291 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
11292 * reginfo.c (init_reg_modes_target): Likewise.
11293 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11294 instead of a boolean call_save flag.
11295 * targhooks.c: Include function-abi.h.
11296 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
11297 using eh_edge_abi to choose the mode.
11298
11299 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11300
11301 * target.def (hard_regno_call_part_clobbered): Take an ABI
11302 identifier instead of an rtx_insn.
11303 * doc/tm.texi: Regenerate.
11304 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
11305 (hook_bool_uint_uint_mode_false): New function.
11306 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
11307 (hook_bool_uint_uint_mode_false): New function.
11308 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11309 Take an ABI identifier instead of an rtx_insn.
11310 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
11311 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
11312 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
11313 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
11314 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
11315 Likewise.
11316 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
11317 * cselib.c: Include function-abi.h.
11318 (cselib_process_insn): Update call to
11319 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11320 to get the appropriate ABI identifier.
11321 * function-abi.cc (predefined_function_abi::initialize): Update call
11322 to targetm.hard_regno_call_part_clobbered.
11323 * ira-conflicts.c (ira_build_conflicts): Likewise.
11324 * ira-costs.c (ira_tune_allocno_costs): Likewise.
11325 * lra-constraints.c: Include function-abi.h.
11326 (need_for_call_save_p): Update call to
11327 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11328 to get the appropriate ABI identifier.
11329 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
11330 * regcprop.c (copyprop_hardreg_forward_1): Update call
11331 to targetm.hard_regno_call_part_clobbered.
11332 * reginfo.c (choose_hard_reg_mode): Likewise.
11333 * regrename.c (check_new_reg_p): Likewise.
11334 * reload.c (find_equiv_reg): Likewise.
11335 * reload1.c (emit_reload_insns): Likewise.
11336 * sched-deps.c: Include function-abi.h.
11337 (deps_analyze_insn): Update call to
11338 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11339 to get the appropriate ABI identifier.
11340 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
11341 call to targetm.hard_regno_call_part_clobbered.
11342 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
11343
11344 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11345
11346 * config/i386/i386.c: Include function-abi.h.
11347 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
11348 if they preserve some 256-bit or 512-bit SSE registers.
11349
11350 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11351
11352 * target.def (insn_callee_abi): New hook.
11353 (remove_extra_call_preserved_regs): Delete.
11354 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
11355 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11356 * doc/tm.texi: Regenerate.
11357 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
11358 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
11359 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
11360 insn argument.
11361 (aarch64_remove_extra_call_preserved_regs): Delete.
11362 (aarch64_insn_callee_abi): New function.
11363 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11364 (TARGET_INSN_CALLEE_ABI): New macro.
11365 * rtl.h (get_call_fndecl): Declare.
11366 (cgraph_rtl_info): Fix formatting. Tweak comment for
11367 function_used_regs. Remove function_used_regs_valid.
11368 * rtlanal.c (get_call_fndecl): Moved from final.c
11369 * function-abi.h (insn_callee_abi): Declare.
11370 (target_function_abi_info): Mention insn_callee_abi.
11371 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11372 way to get_call_reg_set_usage did.
11373 (insn_callee_abi): New function.
11374 * regs.h (get_call_reg_set_usage): Delete.
11375 * final.c: Include function-abi.h.
11376 (collect_fn_hard_reg_usage): Add fixed and stack registers to
11377 function_used_regs before the main loop rather than afterwards.
11378 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
11379 if function_used_regs ends up not being useful.
11380 (get_call_fndecl): Move to rtlanal.c
11381 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11382 * caller-save.c: Include function-abi.h.
11383 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11384 instead of get_call_reg_set_usage.
11385 * cfgcleanup.c: Include function-abi.h.
11386 (old_insns_match_p): Use insn_callee_abi instead of
11387 get_call_reg_set_usage.
11388 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11389 a tree.
11390 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
11391 function_used_regs.
11392 * df-scan.c: Include function-abi.h.
11393 (df_get_call_refs): Use insn_callee_abi instead of
11394 get_call_reg_set_usage.
11395 * ira-lives.c: Include function-abi.h.
11396 (process_bb_node_lives): Use insn_callee_abi instead of
11397 get_call_reg_set_usage.
11398 * lra-lives.c: Include function-abi.h.
11399 (process_bb_lives): Use insn_callee_abi instead of
11400 get_call_reg_set_usage.
11401 * postreload.c: Include function-abi.h.
11402 (reload_combine): Use insn_callee_abi instead of
11403 get_call_reg_set_usage.
11404 * regcprop.c: Include function-abi.h.
11405 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11406 get_call_reg_set_usage.
11407 * resource.c: Include function-abi.h.
11408 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11409 instead of get_call_reg_set_usage.
11410 * var-tracking.c: Include function-abi.h.
11411 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11412 get_call_reg_set_usage.
11413
11414 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11415
11416 * target.def (fntype_abi): New target hook.
11417 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11418 * doc/tm.texi: Regenerate.
11419 * target.h (predefined_function_abi): Declare.
11420 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11421 if defined.
11422 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11423 * config/aarch64/aarch64.c: Include function-abi.h.
11424 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11425 (TARGET_FNTYPE_ABI): Define.
11426
11427 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11428
11429 * Makefile.in (OBJS): Add function-abi.o.
11430 (GTFILES): Add function-abi.h.
11431 * function-abi.cc: New file.
11432 * function-abi.h: Likewise.
11433 * emit-rtl.h (rtl_data::abi): New field.
11434 * function.c: Include function-abi.h.
11435 (prepare_function_start): Initialize crtl->abi.
11436 * read-rtl-function.c: Include regs.h and function-abi.h.
11437 (read_rtl_function_body): Initialize crtl->abi.
11438 (read_rtl_function_body_from_file_range): Likewise.
11439 * reginfo.c: Include function-abi.h.
11440 (init_reg_sets_1): Initialize default_function_abi.
11441 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11442 when making a register global.
11443 * target-globals.h (this_target_function_abi_info): Declare.
11444 (target_globals::function_abi_info): New field.
11445 (restore_target_globals): Copy it.
11446 * target-globals.c: Include function-abi.h.
11447 (default_target_globals): Initialize the function_abi_info field.
11448 (target_globals): Allocate it.
11449 (save_target_globals): Free it.
11450
11451 2019-09-30 Nick Clifton <nickc@redhat.com>
11452
11453 PR target/85978
11454 * config/frv/frv.c (frv_register_move_cost): Add break statements
11455 to avoid falling through to the wrong cases. Tidy code.
11456
11457 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11458
11459 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11460 For multi-registers modes, test how big each register part is.
11461
11462 2019-09-30 Nick Clifton <nickc@redhat.com>
11463
11464 PR target/59205
11465 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11466 (TARGET_ASM_SELECT_SECTION): Remove definition.
11467 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11468
11469 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11470
11471 * emit-rtl.c (init_raw_REG): New function.
11472 (gen_raw_REG): Use init_raw_REG.
11473 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11474 macros.
11475 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11476 * rtl.h (rtx_init): New function.
11477 (rtx_alloca): New function.
11478 (init_raw_REG): New function.
11479 (alloca_raw_REG): New macro.
11480
11481 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11482
11483 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11484 (pcrel_local_address): Replace pcrel_address predicate, use the
11485 new function address_to_insn_form.
11486 (pcrel_external_address): Replace with new implementation using
11487 address_to_insn_form..
11488 (prefixed_mem_operand): Delete predicate which is now unused.
11489 (pcrel_external_mem_operand): Delete predicate which is now
11490 unused.
11491 * config/rs6000/rs6000-protos.h (enum insn_form): New
11492 enumeration.
11493 (enum non_prefixed_form): New enumeration.
11494 (address_to_insn_form): New declaration.
11495 (prefixed_load_p): New declaration.
11496 (prefixed_store_p): New declaration.
11497 (prefixed_paddi_p): New declaration.
11498 (rs6000_asm_output_opcode): New declaration.
11499 (rs6000_final_prescan_insn): Move declaration and update calling
11500 signature.
11501 (address_is_prefixed): New helper inline function.
11502 * config/rs6000/rs6000.c(print_operand_address): Check for either
11503 PC-relative local symbols or PC-relative external symbols.
11504 (rs6000_emit_move): Support loading PC-relative addresses.
11505 (mode_supports_prefixed_address_p): Delete, no longer used.
11506 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11507 (address_to_insn_form): New function to decode an address format.
11508 (reg_to_non_prefixed): New function to identify what the
11509 non-prefixed memory instruction format is for a register.
11510 (prefixed_load_p): New function to identify prefixed loads.
11511 (prefixed_store_p): New function to identify prefixed stores.
11512 (prefixed_paddi_p): New function to identify prefixed load
11513 immediates.
11514 (next_insn_prefixed_p): New static state variable.
11515 (rs6000_final_prescan_insn): New function to determine if an insn
11516 uses a prefixed instruction.
11517 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11518 prefixed instruction.
11519 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11520 (ASM_OUTPUT_OPCODE): New target hook.
11521 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11522 prefixed instructions.
11523 (prefixed_length): New insn attribute for the size of prefixed
11524 instructions.
11525 (non_prefixed_length): New insn attribute for the size of
11526 non-prefixed instructions.
11527 (pcrel_local_addr): New insn to load up a local PC-relative
11528 address.
11529 (pcrel_extern_addr): New insn to load up an external PC-relative
11530 address.
11531 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11532 GPR and loading a 128-bit floating point type to a GPR.
11533
11534 2019-09-30 Richard Biener <rguenther@suse.de>
11535
11536 * gimple.c (gimple_get_lhs): For PHIs return the result.
11537 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11538 SLP instance as argument.
11539 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11540 double-reduction PHIs with vectorizable_lc_phi.
11541 (vect_analyze_loop_operations): Adjust.
11542 (vect_create_epilog_for_reduction): Remove all code not dealing
11543 with reduction LC PHI or epilogue generation.
11544 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11545 for live stmts of reductions.
11546 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11547 do not handle defs that are not vect_internal_def.
11548 (can_vectorize_live_stmts): Adjust.
11549 (vect_analyze_stmt): When the vectorized stmt defined a value
11550 used on backedges adjust the backedge uses of vectorized PHIs.
11551
11552 2019-09-30 Martin Jambor <mjambor@suse.cz>
11553
11554 PR ipa/91853
11555 * tree-inline.c (force_value_to_type): New function.
11556 (setup_one_parameter): Use force_value_to_type to convert type.
11557 * tree-inline.c (force_value_to_type): Declare.
11558 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11559 with register type mismatches.
11560
11561 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11562
11563 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11564 32-bit PowerPC.
11565 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11566 * config/rs6000/t-freebsd64: Make use of the above define and build
11567 the 32-bit libraries with secure-plt.
11568
11569 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11570
11571 PR target/91931
11572 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11573 gen_int_mode instead of GEN_INT.
11574
11575 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11576
11577 * config/darwin.c (gen_macho_low): Amend to include the mode
11578 argument.
11579 (machopic_indirect_data_reference): Amend gen_macho_low call
11580 to include mode argument
11581 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11582 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11583 the macho_high expander and two define_insn entries.
11584
11585 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11586
11587 PR bootstrap/90543
11588 * optc-save-gen.awk: Fix up printing string option differences.
11589
11590 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11591
11592 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11593 vec_perm cost to 1 for non-Power7 VSX architectures.
11594
11595 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11596
11597 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11598 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11599 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11600
11601 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11602
11603 * config/darwin.c (gen_macho_high): Amend to include the mode
11604 argument.
11605 (machopic_indirect_data_reference): Amend gen_macho_high call
11606 to include mode argument.
11607 (machopic_legitimize_pic_address): Likewise.
11608 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11609 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11610 the macho_high expander and two define_insn entries.
11611
11612 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11613
11614 PR target/86805
11615 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11616
11617 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11618
11619 PR target/80672
11620 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11621 std::string::compare instead of std::string::find.
11622
11623 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11624
11625 * configure: Regenerate.
11626
11627 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11628
11629 PR middle-end/91920
11630 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11631 variables as shared.
11632
11633 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11634
11635 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11636 replaces the expander and two define_insn entries.
11637 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11638 call.
11639 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11640
11641 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11642
11643 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11644 (fibonacci_heap::nodes): Likewise.
11645 (fibonacci_heap::min_key): Likewise.
11646 (fibonacci_heap::min): Likewise.
11647
11648 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11649
11650 * cgraph.c (cgraph_node::get_fun): Make const.
11651 * cgraph.h (cgraph_node::get_fun): Likewise.
11652
11653 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11654
11655 PR target/91919
11656 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11657 of SImode MULT.
11658
11659 2019-09-27 Richard Biener <rguenther@suse.de>
11660
11661 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11662 (STMT_VINFO_REDUC_FN): Likewise.
11663 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11664 STMT_VINFO_REDUC_FN.
11665 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11666 for condition reductions.
11667 (vect_create_epilog_for_reduction): Compute all required state
11668 from the stmt to be vectorized.
11669 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11670 invocation and remove then dead code. For single def-use chains
11671 record only a single vector stmt.
11672
11673 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11674
11675 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11676 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11677 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11678 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11679 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11680 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11681 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11682 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11683 (aarch64_general_builtin_rsqrt): Declare.
11684 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11685 New function.
11686 (aarch64_mangle_builtin_type): Rename to...
11687 (aarch64_general_mangle_builtin_type): ...this.
11688 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11689 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11690 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11691 aarch64_general_add_builtin instead of add_builtin_function.
11692 (aarch64_init_builtins): Rename to...
11693 (aarch64_general_init_builtins): ...this. Use
11694 aarch64_general_add_builtin instead of add_builtin_function.
11695 (aarch64_builtin_decl): Rename to...
11696 (aarch64_general_builtin_decl): ...this and remove the unused
11697 arguments.
11698 (aarch64_expand_builtin): Rename to...
11699 (aarch64_general_expand_builtin): ...this and remove the unused
11700 arguments.
11701 (aarch64_builtin_rsqrt): Rename to...
11702 (aarch64_general_builtin_rsqrt): ...this.
11703 (aarch64_fold_builtin): Rename to...
11704 (aarch64_general_fold_builtin): ...this. Take the function subcode
11705 and return type as arguments. Remove the "ignored" argument.
11706 (aarch64_gimple_fold_builtin): Rename to...
11707 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11708 subcode and gcall as arguments, and return the new function call.
11709 * config/aarch64/aarch64.c (aarch64_init_builtins)
11710 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11711 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11712 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11713 instead of aarch64_builtin_rsqrt.
11714 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11715 instead of aarch64_mangle_builtin_type.
11716
11717 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11718
11719 * target.def (check_builtin_call): New target hook.
11720 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11721 * doc/tm.texi: Regenerate.
11722
11723 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11724
11725 PR tree-optimization/91909
11726 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11727 reduc_index parameter. When handling COND_REDUCTION, make sure
11728 that the reduction phi operand is in the correct arm of the
11729 VEC_COND_EXPR.
11730 (vectorizable_reduction): Pass reduc_index to the above.
11731
11732 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11733
11734 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11735 New combine pattern.
11736
11737 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11738
11739 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11740 loop instruction into new basic block before the loop when basic
11741 block that precedes the loop is empty.
11742
11743 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11744
11745 * function.c (gimplify_parameters): Use build_clobber function.
11746 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11747 * tree-inline.c (expand_call_inline): Likewise.
11748 * tree-sra.c (clobber_subtree): Likewise.
11749 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11750 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11751 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11752 lower_omp_target): Likewise.
11753 * omp-expand.c (expand_omp_for_generic): Likewise.
11754 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11755
11756 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11757
11758 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11759 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11760 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11761 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11762 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11763 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11764 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11765 LD_ELEMREV_V16QI): Use the PURE attribute.
11766
11767 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11768
11769 * config/rs6000/darwin.md: Replace the expanders for
11770 load_macho_picbase and reload_macho_picbase with use of '@'
11771 and <mode> in their respective define_insns.
11772 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11773 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11774 Pmode to gen_load_macho_picbase.
11775 * config/rs6000/rs6000.md: Likewise.
11776
11777 2019-09-25 Richard Biener <rguenther@suse.de>
11778
11779 PR tree-optimization/91896
11780 * tree-vect-loop.c (vectorizable_reduction): The single
11781 def-use cycle optimization cannot apply when there's more
11782 than one pattern stmt involved.
11783
11784 2019-09-26 Richard Biener <rguenther@suse.de>
11785
11786 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11787 loop-closed PHIs that are vect_internal_def.
11788 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11789 Simplify.
11790 (vectorizable_lc_phi): New.
11791 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11792 (vect_transform_stmt): Likewise.
11793 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11794 (vectorizable_lc_phi): Declare.
11795
11796 2019-09-26 Richard Biener <rguenther@suse.de>
11797
11798 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11799 vectorizable_reduction for vect_double_reduction_def.
11800 (vect_transform_loop): Likewise.
11801 (vect_create_epilog_for_reduction): Move double-reduction
11802 PHI creation and preheader argument setting of PHIs ...
11803 (vectorizable_reduction): ... here. Also process
11804 vect_double_reduction_def PHIs, creating the vectorized
11805 PHI nodes, remembering the scalar adjustment computed for
11806 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11807 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11808 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11809 Initialize STMT_VINFO_REDUC_CODE.
11810 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11811 (_stmt_vec_info::reduc_code): Likewise.
11812 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11813 (STMT_VINFO_REDUC_CODE): Likewise.
11814
11815 2019-09-26 Matt Turner <mattst88@gmail.com>
11816
11817 PR driver/69471
11818 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11819 (mtune=): Add Negative(mtune=).
11820 (mcpu=): Add Negative(mcpu=).
11821 * config/arm/arm.opt: Likewise.
11822
11823 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11824
11825 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11826 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11827 Define.
11828 * config/arm/arm_acle.h: Define builtins for the above.
11829 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11830 (simd32_op): Handle the above.
11831 * config/arm/unspecs.md: Define unspecs for the above.
11832
11833 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11834
11835 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11836 (arm_<sup>xtb16): Likewise.
11837 (arm_usada8): Likewise.
11838 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11839 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11840 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11841 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11842 __sxtb16, __uxtab16, __uxtb16): Define.
11843 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11844 * config/arm/unspecs.md: Define unspecs for the above.
11845 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11846 (USXTB16): Likewise.
11847 (simd32_op): New int_attribute.
11848 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11849 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11850
11851 2019-09-26 Martin Jambor <mjambor@suse.cz>
11852
11853 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11854 internal_error.
11855
11856 2019-09-26 Martin Jambor <mjambor@suse.cz>
11857
11858 * ipa-sra.c (process_scan_results): Fix continue condition.
11859
11860 2019-09-26 Martin Liska <mliska@suse.cz>
11861
11862 PR tree-optimization/91885
11863 * tree-vectorizer.c (try_vectorize_loop_1): Add
11864 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11865
11866 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11867
11868 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11869 aarch64_plus_immediate rather than aarch64_uimm12_shift
11870 to test for valid PLUS immediates.
11871
11872 2019-09-25 Martin Jambor <mjambor@suse.cz>
11873
11874 * tree-sra.c (no_accesses_p): Remove.
11875 (no_accesses_representant): Likewise.
11876
11877 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11878
11879 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11880 consistenly.
11881 (vaba_s16): Likewise.
11882 (vaba_s32): Likewise.
11883 (vaba_u8): Likewise.
11884 (vaba_u16): Likewise.
11885 (vaba_u32): Likewise.
11886 (vabal_high_s8): Likewise.
11887 (vabal_high_s16): Likewise.
11888 (vabal_high_s32): Likewise.
11889 (vabal_high_u8): Likewise.
11890 (vabal_high_u16): Likewise.
11891 (vabal_high_u32): Likewise.
11892 (vabal_s8): Likewise.
11893 (vabal_s16): Likewise.
11894 (vabal_s32): Likewise.
11895 (vabal_u8): Likewise.
11896 (vabal_u16): Likewise.
11897 (vabal_u32): Likewise.
11898 (vabaq_s8): Likewise.
11899 (vabaq_s16): Likewise.
11900 (vabaq_s32): Likewise.
11901 (vabaq_u8): Likewise.
11902 (vabaq_u16): Likewise.
11903 (vabaq_u32): Likewise.
11904 (vabd_s8): Likewise.
11905 (vabd_s16): Likewise.
11906 (vabd_s32): Likewise.
11907 (vabd_u8): Likewise.
11908 (vabd_u16): Likewise.
11909 (vabd_u32): Likewise.
11910 (vabdl_high_s8): Likewise.
11911 (vabdl_high_s16): Likewise.
11912 (vabdl_high_s32): Likewise.
11913 (vabdl_high_u8): Likewise.
11914 (vabdl_high_u16): Likewise.
11915 (vabdl_high_u32): Likewise.
11916 (vabdl_s8): Likewise.
11917 (vabdl_s16): Likewise.
11918 (vabdl_s32): Likewise.
11919 (vabdl_u8): Likewise.
11920 (vabdl_u16): Likewise.
11921 (vabdl_u32): Likewise.
11922 (vabdq_s8): Likewise.
11923 (vabdq_s16): Likewise.
11924 (vabdq_s32): Likewise.
11925 (vabdq_u8): Likewise.
11926 (vabdq_u16): Likewise.
11927 (vabdq_u32): Likewise.
11928 (vaddlv_s8): Likewise.
11929 (vaddlv_s16): Likewise.
11930 (vaddlv_u8): Likewise.
11931 (vaddlv_u16): Likewise.
11932 (vaddlvq_s8): Likewise.
11933 (vaddlvq_s16): Likewise.
11934 (vaddlvq_s32): Likewise.
11935 (vaddlvq_u8): Likewise.
11936 (vaddlvq_u16): Likewise.
11937 (vaddlvq_u32): Likewise.
11938 (vcvtx_f32_f64): Likewise.
11939 (vcvtx_high_f32_f64): Likewise.
11940 (vcvtxd_f32_f64): Likewise.
11941 (vmla_n_f32): Likewise.
11942 (vmla_n_s16): Likewise.
11943 (vmla_n_s32): Likewise.
11944 (vmla_n_u16): Likewise.
11945 (vmla_n_u32): Likewise.
11946 (vmla_s8): Likewise.
11947 (vmla_s16): Likewise.
11948 (vmla_s32): Likewise.
11949 (vmla_u8): Likewise.
11950 (vmla_u16): Likewise.
11951 (vmla_u32): Likewise.
11952 (vmlal_high_n_s16): Likewise.
11953 (vmlal_high_n_s32): Likewise.
11954 (vmlal_high_n_u16): Likewise.
11955 (vmlal_high_n_u32): Likewise.
11956 (vmlal_high_s8): Likewise.
11957 (vmlal_high_s16): Likewise.
11958 (vmlal_high_s32): Likewise.
11959 (vmlal_high_u8): Likewise.
11960 (vmlal_high_u16): Likewise.
11961 (vmlal_high_u32): Likewise.
11962 (vmlal_n_s16): Likewise.
11963 (vmlal_n_s32): Likewise.
11964 (vmlal_n_u16): Likewise.
11965 (vmlal_n_u32): Likewise.
11966 (vmlal_s8): Likewise.
11967 (vmlal_s16): Likewise.
11968 (vmlal_s32): Likewise.
11969 (vmlal_u8): Likewise.
11970 (vmlal_u16): Likewise.
11971 (vmlal_u32): Likewise.
11972 (vmlaq_n_f32): Likewise.
11973 (vmlaq_n_s16): Likewise.
11974 (vmlaq_n_s32): Likewise.
11975 (vmlaq_n_u16): Likewise.
11976 (vmlaq_n_u32): Likewise.
11977 (vmlaq_s8): Likewise.
11978 (vmlaq_s16): Likewise.
11979 (vmlaq_s32): Likewise.
11980 (vmlaq_u8): Likewise.
11981 (vmlaq_u16): Likewise.
11982 (vmlaq_u32): Likewise.
11983 (vmls_n_f32): Likewise.
11984 (vmls_n_s16): Likewise.
11985 (vmls_n_s32): Likewise.
11986 (vmls_n_u16): Likewise.
11987 (vmls_n_u32): Likewise.
11988 (vmls_s8): Likewise.
11989 (vmls_s16): Likewise.
11990 (vmls_s32): Likewise.
11991 (vmls_u8): Likewise.
11992 (vmls_u16): Likewise.
11993 (vmls_u32): Likewise.
11994 (vmlsl_high_n_s16): Likewise.
11995 (vmlsl_high_n_s32): Likewise.
11996 (vmlsl_high_n_u16): Likewise.
11997 (vmlsl_high_n_u32): Likewise.
11998 (vmlsl_high_s8): Likewise.
11999 (vmlsl_high_s16): Likewise.
12000 (vmlsl_high_s32): Likewise.
12001 (vmlsl_high_u8): Likewise.
12002 (vmlsl_high_u16): Likewise.
12003 (vmlsl_high_u32): Likewise.
12004 (vmlsl_n_s16): Likewise.
12005 (vmlsl_n_s32): Likewise.
12006 (vmlsl_n_u16): Likewise.
12007 (vmlsl_n_u32): Likewise.
12008 (vmlsl_s8): Likewise.
12009 (vmlsl_s16): Likewise.
12010 (vmlsl_s32): Likewise.
12011 (vmlsl_u8): Likewise.
12012 (vmlsl_u16): Likewise.
12013 (vmlsl_u32): Likewise.
12014 (vmlsq_n_f32): Likewise.
12015 (vmlsq_n_s16): Likewise.
12016 (vmlsq_n_s32): Likewise.
12017 (vmlsq_n_u16): Likewise.
12018 (vmlsq_n_u32): Likewise.
12019 (vmlsq_s8): Likewise.
12020 (vmlsq_s16): Likewise.
12021 (vmlsq_s32): Likewise.
12022 (vmlsq_u8): Likewise.
12023 (vmlsq_u16): Likewise.
12024 (vmlsq_u32): Likewise.
12025 (vmovl_high_s8): Likewise.
12026 (vmovl_high_s16): Likewise.
12027 (vmovl_high_s32): Likewise.
12028 (vmovl_high_u8): Likewise.
12029 (vmovl_high_u16): Likewise.
12030 (vmovl_high_u32): Likewise.
12031 (vmovl_s8): Likewise.
12032 (vmovl_s16): Likewise.
12033 (vmovl_s32): Likewise.
12034 (vmovl_u8): Likewise.
12035 (vmovl_u16): Likewise.
12036 (vmovl_u32): Likewise.
12037 (vmovn_high_s16): Likewise.
12038 (vmovn_high_s32): Likewise.
12039 (vmovn_high_s64): Likewise.
12040 (vmovn_high_u16): Likewise.
12041 (vmovn_high_u32): Likewise.
12042 (vmovn_high_u64): Likewise.
12043 (vmovn_s16): Likewise.
12044 (vmovn_s32): Likewise.
12045 (vmovn_s64): Likewise.
12046 (vmovn_u16): Likewise.
12047 (vmovn_u32): Likewise.
12048 (vmovn_u64): Likewise.
12049 (vmull_high_n_s16): Likewise.
12050 (vmull_high_n_s32): Likewise.
12051 (vmull_high_n_u16): Likewise.
12052 (vmull_high_n_u32): Likewise.
12053 (vmull_high_p8): Likewise.
12054 (vmull_high_s8): Likewise.
12055 (vmull_high_s16): Likewise.
12056 (vmull_high_s32): Likewise.
12057 (vmull_high_u8): Likewise.
12058 (vmull_high_u16): Likewise.
12059 (vmull_high_u32): Likewise.
12060 (vmull_n_s16): Likewise.
12061 (vmull_n_s32): Likewise.
12062 (vmull_n_u16): Likewise.
12063 (vmull_n_u32): Likewise.
12064 (vmull_p8): Likewise.
12065 (vmull_s8): Likewise.
12066 (vmull_s16): Likewise.
12067 (vmull_s32): Likewise.
12068 (vmull_u8): Likewise.
12069 (vmull_u16): Likewise.
12070 (vmull_u32): Likewise.
12071 (vpadal_s8): Likewise.
12072 (vpadal_s16): Likewise.
12073 (vpadal_s32): Likewise.
12074 (vpadal_u8): Likewise.
12075 (vpadal_u16): Likewise.
12076 (vpadal_u32): Likewise.
12077 (vpadalq_s8): Likewise.
12078 (vpadalq_s16): Likewise.
12079 (vpadalq_s32): Likewise.
12080 (vpadalq_u8): Likewise.
12081 (vpadalq_u16): Likewise.
12082 (vpadalq_u32): Likewise.
12083 (vpaddl_s8): Likewise.
12084 (vpaddl_s16): Likewise.
12085 (vpaddl_s32): Likewise.
12086 (vpaddl_u8): Likewise.
12087 (vpaddl_u16): Likewise.
12088 (vpaddl_u32): Likewise.
12089 (vpaddlq_s8): Likewise.
12090 (vpaddlq_s16): Likewise.
12091 (vpaddlq_s32): Likewise.
12092 (vpaddlq_u8): Likewise.
12093 (vpaddlq_u16): Likewise.
12094 (vpaddlq_u32): Likewise.
12095 (vpaddq_s8): Likewise.
12096 (vpaddq_s16): Likewise.
12097 (vpaddq_s32): Likewise.
12098 (vpaddq_s64): Likewise.
12099 (vpaddq_u8): Likewise.
12100 (vpaddq_u16): Likewise.
12101 (vpaddq_u32): Likewise.
12102 (vpaddq_u64): Likewise.
12103 (vqdmulh_n_s16): Likewise.
12104 (vqdmulh_n_s32): Likewise.
12105 (vqdmulhq_n_s16): Likewise.
12106 (vqdmulhq_n_s32): Likewise.
12107 (vqmovn_high_s16): Likewise.
12108 (vqmovn_high_s32): Likewise.
12109 (vqmovn_high_s64): Likewise.
12110 (vqmovn_high_u16): Likewise.
12111 (vqmovn_high_u32): Likewise.
12112 (vqmovn_high_u64): Likewise.
12113 (vqmovun_high_s16): Likewise.
12114 (vqmovun_high_s32): Likewise.
12115 (vqmovun_high_s64): Likewise.
12116 (vqrdmulh_n_s16): Likewise.
12117 (vqrdmulh_n_s32): Likewise.
12118 (vqrdmulhq_n_s16): Likewise.
12119 (vqrdmulhq_n_s32): Likewise.
12120 (vrsqrte_u32): Likewise.
12121 (vrsqrteq_u32): Likewise.
12122 (vtst_p8): Likewise.
12123 (vtst_p16): Likewise.
12124 (vtst_p64): Likewise.
12125 (vtstq_p8): Likewise.
12126 (vtstq_p16): Likewise.
12127 (vtstq_p64): Likewise.
12128 (vaddlv_s32): Likewise.
12129 (vaddlv_u32): Likewise.
12130 (vqtbl1_p8): Likewise.
12131 (vqtbl1_s8): Likewise.
12132 (vqtbl1_u8): Likewise.
12133 (vqtbl1q_p8): Likewise.
12134 (vqtbl1q_s8): Likewise.
12135 (vqtbl1q_u8): Likewise.
12136 (vqtbx1_s8): Likewise.
12137 (vqtbx1_u8): Likewise.
12138 (vqtbx1_p8): Likewise.
12139 (vqtbx1q_s8): Likewise.
12140 (vqtbx1q_u8): Likewise.
12141 (vqtbx1q_p8): Likewise.
12142 (vtbl1_s8): Likewise.
12143 (vtbl1_u8): Likewise.
12144 (vtbl1_p8): Likewise.
12145 (vtbl2_s8): Likewise.
12146 (vtbl2_u8): Likewise.
12147 (vtbl2_p8): Likewise.
12148 (vtbl3_s8): Likewise.
12149 (vtbl3_u8): Likewise.
12150 (vtbl3_p8): Likewise.
12151 (vtbl4_s8): Likewise.
12152 (vtbl4_u8): Likewise.
12153 (vtbl4_p8): Likewise.
12154 (vtbx2_s8): Likewise.
12155 (vtbx2_u8): Likewise.
12156 (vtbx2_p8): Likewise.
12157 (vld1_f32): Likewise.
12158 (vld1_f64): Likewise.
12159 (vld1_p8): Likewise.
12160 (vld1_p16): Likewise.
12161 (vld1_p64): Likewise.
12162 (vld1_s8): Likewise.
12163 (vld1_s16): Likewise.
12164 (vld1_s32): Likewise.
12165 (vld1_s64): Likewise.
12166 (vld1_u8): Likewise.
12167 (vld1_u16): Likewise.
12168 (vld1_u32): Likewise.
12169 (vld1_u64): Likewise.
12170 (vld1q_f32): Likewise.
12171 (vld1q_f64): Likewise.
12172 (vld1q_p8): Likewise.
12173 (vld1q_p16): Likewise.
12174 (vld1q_p64): Likewise.
12175 (vld1q_s8): Likewise.
12176 (vld1q_s16): Likewise.
12177 (vld1q_s32): Likewise.
12178 (vld1q_s64): Likewise.
12179 (vld1q_u8): Likewise.
12180 (vld1q_u16): Likewise.
12181 (vld1q_u32): Likewise.
12182 (vld1q_u64): Likewise.
12183 (vpmax_s8): Likewise.
12184 (vpmax_s16): Likewise.
12185 (vpmax_s32): Likewise.
12186 (vpmax_u8): Likewise.
12187 (vpmax_u16): Likewise.
12188 (vpmax_u32): Likewise.
12189 (vpmaxq_s8): Likewise.
12190 (vpmaxq_s16): Likewise.
12191 (vpmaxq_s32): Likewise.
12192 (vpmaxq_u8): Likewise.
12193 (vpmaxq_u16): Likewise.
12194 (vpmaxq_u32): Likewise.
12195 (vpmax_f32): Likewise.
12196 (vpmaxq_f32): Likewise.
12197 (vpmaxq_f64): Likewise.
12198 (vpmaxqd_f64): Likewise.
12199 (vpmaxs_f32): Likewise.
12200 (vpmaxnm_f32): Likewise.
12201 (vpmaxnmq_f32): Likewise.
12202 (vpmaxnmq_f64): Likewise.
12203 (vpmaxnmqd_f64): Likewise.
12204 (vpmaxnms_f32): Likewise.
12205 (vpmin_s8): Likewise.
12206 (vpmin_s16): Likewise.
12207 (vpmin_s32): Likewise.
12208 (vpmin_u8): Likewise.
12209 (vpmin_u16): Likewise.
12210 (vpmin_u32): Likewise.
12211 (vpminq_s8): Likewise.
12212 (vpminq_s16): Likewise.
12213 (vpminq_s32): Likewise.
12214 (vpminq_u8): Likewise.
12215 (vpminq_u16): Likewise.
12216 (vpminq_u32): Likewise.
12217 (vpmin_f32): Likewise.
12218 (vpminq_f32): Likewise.
12219 (vpminq_f64): Likewise.
12220 (vpminqd_f64): Likewise.
12221 (vpmins_f32): Likewise.
12222 (vpminnm_f32): Likewise.
12223 (vpminnmq_f32): Likewise.
12224 (vpminnmq_f64): Likewise.
12225 (vpminnmqd_f64): Likewise.
12226 (vpminnms_f32): Likewise.
12227 (vmla_f32): Likewise.
12228 (vmlaq_f32): Likewise.
12229 (vmlaq_f64): Likewise.
12230 (vmls_f32): Likewise.
12231 (vmlsq_f32): Likewise.
12232 (vmlsq_f64): Likewise.
12233 (vqtbl2_s8): Likewise.
12234 (vqtbl2_u8): Likewise.
12235 (vqtbl2_p8): Likewise.
12236 (vqtbl2q_s8): Likewise.
12237 (vqtbl2q_u8): Likewise.
12238 (vqtbl2q_p8): Likewise.
12239 (vqtbl3_s8): Likewise.
12240 (vqtbl3_u8): Likewise.
12241 (vqtbl3_p8): Likewise.
12242 (vqtbl3q_s8): Likewise.
12243 (vqtbl3q_u8): Likewise.
12244 (vqtbl3q_p8): Likewise.
12245 (vqtbl4_s8): Likewise.
12246 (vqtbl4_u8): Likewise.
12247 (vqtbl4_p8): Likewise.
12248 (vqtbl4q_s8): Likewise.
12249 (vqtbl4q_u8): Likewise.
12250 (vqtbl4q_p8): Likewise.
12251 (vqtbx2_s8): Likewise.
12252 (vqtbx2_u8): Likewise.
12253 (vqtbx2_p8): Likewise.
12254 (vqtbx2q_s8): Likewise.
12255 (vqtbx2q_u8): Likewise.
12256 (vqtbx2q_p8): Likewise.
12257 (vqtbx3_s8): Likewise.
12258 (vqtbx3_u8): Likewise.
12259 (vqtbx3_p8): Likewise.
12260 (vqtbx3q_s8): Likewise.
12261 (vqtbx3q_u8): Likewise.
12262 (vqtbx3q_p8): Likewise.
12263 (vqtbx4_s8): Likewise.
12264 (vqtbx4_u8): Likewise.
12265 (vqtbx4_p8): Likewise.
12266 (vqtbx4q_s8): Likewise.
12267 (vqtbx4q_u8): Likewise.
12268 (vqtbx4q_p8): Likewise.
12269 (vrev16_p8): Likewise.
12270 (vrev16_s8): Likewise.
12271 (vrev16_u8): Likewise.
12272 (vrev16q_p8): Likewise.
12273 (vrev16q_s8): Likewise.
12274 (vrev16q_u8): Likewise.
12275 (vrev32_p8): Likewise.
12276 (vrev32_p16): Likewise.
12277 (vrev32_s8): Likewise.
12278 (vrev32_s16): Likewise.
12279 (vrev32_u8): Likewise.
12280 (vrev32_u16): Likewise.
12281 (vrev32q_p8): Likewise.
12282 (vrev32q_p16): Likewise.
12283 (vrev32q_s8): Likewise.
12284 (vrev32q_s16): Likewise.
12285 (vrev32q_u8): Likewise.
12286 (vrev32q_u16): Likewise.
12287 (vrev64_f32): Likewise.
12288 (vrev64_p8): Likewise.
12289 (vrev64_p16): Likewise.
12290 (vrev64_s8): Likewise.
12291 (vrev64_s16): Likewise.
12292 (vrev64_s32): Likewise.
12293 (vrev64_u8): Likewise.
12294 (vrev64_u16): Likewise.
12295 (vrev64_u32): Likewise.
12296 (vrev64q_f32): Likewise.
12297 (vrev64q_p8): Likewise.
12298 (vrev64q_p16): Likewise.
12299 (vrev64q_s8): Likewise.
12300 (vrev64q_s16): Likewise.
12301 (vrev64q_s32): Likewise.
12302 (vrev64q_u8): Likewise.
12303 (vrev64q_u16): Likewise.
12304 (vrev64q_u32): Likewise.
12305 (vsha1cq_u32): Likewise.
12306 (vsha1mq_u32): Likewise.
12307 (vsha1pq_u32): Likewise.
12308 (vsha1h_u32): Likewise.
12309 (vsha1su0q_u32): Likewise.
12310 (vsha1su1q_u32): Likewise.
12311 (vsha256hq_u32): Likewise.
12312 (vsha256h2q_u32): Likewise.
12313 (vsha256su0q_u32): Likewise.
12314 (vsha256su1q_u32): Likewise.
12315 (vmull_p64): Likewise.
12316 (vmull_high_p64): Likewise.
12317 (vsqrt_f32): Likewise.
12318 (vsqrtq_f32): Likewise.
12319 (vsqrt_f64): Likewise.
12320 (vsqrtq_f64): Likewise.
12321 (vst1_f32): Likewise.
12322 (vst1_f64): Likewise.
12323 (vst1_p8): Likewise.
12324 (vst1_p16): Likewise.
12325 (vst1_p64): Likewise.
12326 (vst1_s8): Likewise.
12327 (vst1_s16): Likewise.
12328 (vst1_s32): Likewise.
12329 (vst1_s64): Likewise.
12330 (vst1_u8): Likewise.
12331 (vst1_u16): Likewise.
12332 (vst1_u32): Likewise.
12333 (vst1_u64): Likewise.
12334 (vst1q_f32): Likewise.
12335 (vst1q_f64): Likewise.
12336 (vst1q_p8): Likewise.
12337 (vst1q_p16): Likewise.
12338 (vst1q_p64): Likewise.
12339 (vst1q_s8): Likewise.
12340 (vst1q_s16): Likewise.
12341 (vst1q_s32): Likewise.
12342 (vst1q_s64): Likewise.
12343 (vst1q_u8): Likewise.
12344 (vst1q_u16): Likewise.
12345 (vst1q_u32): Likewise.
12346 (vst1q_u64): Likewise.
12347 (vst1_s64_x2): Likewise.
12348 (vst1_u64_x2): Likewise.
12349 (vst1_f64_x2): Likewise.
12350 (vst1_s8_x2): Likewise.
12351 (vst1_p8_x2): Likewise.
12352 (vst1_s16_x2): Likewise.
12353 (vst1_p16_x2): Likewise.
12354 (vst1_s32_x2): Likewise.
12355 (vst1_u8_x2): Likewise.
12356 (vst1_u16_x2): Likewise.
12357 (vst1_u32_x2): Likewise.
12358 (vst1_f16_x2): Likewise.
12359 (vst1_f32_x2): Likewise.
12360 (vst1_p64_x2): Likewise.
12361 (vst1q_s8_x2): Likewise.
12362 (vst1q_p8_x2): Likewise.
12363 (vst1q_s16_x2): Likewise.
12364 (vst1q_p16_x2): Likewise.
12365 (vst1q_s32_x2): Likewise.
12366 (vst1q_s64_x2): Likewise.
12367 (vst1q_u8_x2): Likewise.
12368 (vst1q_u16_x2): Likewise.
12369 (vst1q_u32_x2): Likewise.
12370 (vst1q_u64_x2): Likewise.
12371 (vst1q_f16_x2): Likewise.
12372 (vst1q_f32_x2): Likewise.
12373 (vst1q_f64_x2): Likewise.
12374 (vst1q_p64_x2): Likewise.
12375 (vst1_s64_x3): Likewise.
12376 (vst1_u64_x3): Likewise.
12377 (vst1_f64_x3): Likewise.
12378 (vst1_s8_x3): Likewise.
12379 (vst1_p8_x3): Likewise.
12380 (vst1_s16_x3): Likewise.
12381 (vst1_p16_x3): Likewise.
12382 (vst1_s32_x3): Likewise.
12383 (vst1_u8_x3): Likewise.
12384 (vst1_u16_x3): Likewise.
12385 (vst1_u32_x3): Likewise.
12386 (vst1_f16_x3): Likewise.
12387 (vst1_f32_x3): Likewise.
12388 (vst1_p64_x3): Likewise.
12389 (vst1q_s8_x3): Likewise.
12390 (vst1q_p8_x3): Likewise.
12391 (vst1q_s16_x3): Likewise.
12392 (vst1q_p16_x3): Likewise.
12393 (vst1q_s32_x3): Likewise.
12394 (vst1q_s64_x3): Likewise.
12395 (vst1q_u8_x3): Likewise.
12396 (vst1q_u16_x3): Likewise.
12397 (vst1q_u32_x3): Likewise.
12398 (vst1q_u64_x3): Likewise.
12399 (vst1q_f16_x3): Likewise.
12400 (vst1q_f32_x3): Likewise.
12401 (vst1q_f64_x3): Likewise.
12402 (vst1q_p64_x3): Likewise.
12403 (vst2_s64): Likewise.
12404 (vst2_u64): Likewise.
12405 (vst2_f64): Likewise.
12406 (vst2_s8): Likewise.
12407 (vst2_p8): Likewise.
12408 (vst2_s16): Likewise.
12409 (vst2_p16): Likewise.
12410 (vst2_s32): Likewise.
12411 (vst2_u8): Likewise.
12412 (vst2_u16): Likewise.
12413 (vst2_u32): Likewise.
12414 (vst2_f16): Likewise.
12415 (vst2_f32): Likewise.
12416 (vst2_p64): Likewise.
12417 (vst2q_s8): Likewise.
12418 (vst2q_p8): Likewise.
12419 (vst2q_s16): Likewise.
12420 (vst2q_p16): Likewise.
12421 (vst2q_s32): Likewise.
12422 (vst2q_s64): Likewise.
12423 (vst2q_u8): Likewise.
12424 (vst2q_u16): Likewise.
12425 (vst2q_u32): Likewise.
12426 (vst2q_u64): Likewise.
12427 (vst2q_f16): Likewise.
12428 (vst2q_f32): Likewise.
12429 (vst2q_f64): Likewise.
12430 (vst2q_p64): Likewise.
12431 (vst3_s64): Likewise.
12432 (vst3_u64): Likewise.
12433 (vst3_f64): Likewise.
12434 (vst3_s8): Likewise.
12435 (vst3_p8): Likewise.
12436 (vst3_s16): Likewise.
12437 (vst3_p16): Likewise.
12438 (vst3_s32): Likewise.
12439 (vst3_u8): Likewise.
12440 (vst3_u16): Likewise.
12441 (vst3_u32): Likewise.
12442 (vst3_f16): Likewise.
12443 (vst3_f32): Likewise.
12444 (vst3_p64): Likewise.
12445 (vst3q_s8): Likewise.
12446 (vst3q_p8): Likewise.
12447 (vst3q_s16): Likewise.
12448 (vst3q_p16): Likewise.
12449 (vst3q_s32): Likewise.
12450 (vst3q_s64): Likewise.
12451 (vst3q_u8): Likewise.
12452 (vst3q_u16): Likewise.
12453 (vst3q_u32): Likewise.
12454 (vst3q_u64): Likewise.
12455 (vst3q_f16): Likewise.
12456 (vst3q_f32): Likewise.
12457 (vst3q_f64): Likewise.
12458 (vst3q_p64): Likewise.
12459 (vst4_s64): Likewise.
12460 (vst4_u64): Likewise.
12461 (vst4_f64): Likewise.
12462 (vst4_s8): Likewise.
12463 (vst4_p8): Likewise.
12464 (vst4_s16): Likewise.
12465 (vst4_p16): Likewise.
12466 (vst4_s32): Likewise.
12467 (vst4_u8): Likewise.
12468 (vst4_u16): Likewise.
12469 (vst4_u32): Likewise.
12470 (vst4_f16): Likewise.
12471 (vst4_f32): Likewise.
12472 (vst4_p64): Likewise.
12473 (vst4q_s8): Likewise.
12474 (vst4q_p8): Likewise.
12475 (vst4q_s16): Likewise.
12476 (vst4q_p16): Likewise.
12477 (vst4q_s32): Likewise.
12478 (vst4q_s64): Likewise.
12479 (vst4q_u8): Likewise.
12480 (vst4q_u16): Likewise.
12481 (vst4q_u32): Likewise.
12482 (vst4q_u64): Likewise.
12483 (vst4q_f16): Likewise.
12484 (vst4q_f32): Likewise.
12485 (vst4q_f64): Likewise.
12486 (vst4q_p64): Likewise.
12487 (vtbx4_s8): Likewise.
12488 (vtbx4_u8): Likewise.
12489 (vtbx4_p8): Likewise.
12490 (vtrn_f32): Likewise.
12491 (vtrn_p8): Likewise.
12492 (vtrn_p16): Likewise.
12493 (vtrn_s8): Likewise.
12494 (vtrn_s16): Likewise.
12495 (vtrn_s32): Likewise.
12496 (vtrn_u8): Likewise.
12497 (vtrn_u16): Likewise.
12498 (vtrn_u32): Likewise.
12499 (vtrnq_f32): Likewise.
12500 (vtrnq_p8): Likewise.
12501 (vtrnq_p16): Likewise.
12502 (vtrnq_s8): Likewise.
12503 (vtrnq_s16): Likewise.
12504 (vtrnq_s32): Likewise.
12505 (vtrnq_u8): Likewise.
12506 (vtrnq_u16): Likewise.
12507 (vtrnq_u32): Likewise.
12508 (vrsqrte_f16): Likewise.
12509 (vrsqrteq_f16): Likewise.
12510 (vsqrt_f16): Likewise.
12511 (vsqrtq_f16): Likewise.
12512 (vabd_f16): Likewise.
12513 (vabdq_f16): Likewise.
12514 (vpadd_f16): Likewise.
12515 (vpaddq_f16): Likewise.
12516 (vpmax_f16): Likewise.
12517 (vpmaxq_f16): Likewise.
12518 (vpmaxnm_f16): Likewise.
12519 (vpmaxnmq_f16): Likewise.
12520 (vpmin_f16): Likewise.
12521 (vpminq_f16): Likewise.
12522 (vpminnm_f16): Likewise.
12523 (vpminnmq_f16): Likewise.
12524 (vrsqrts_f16): Likewise.
12525 (vrsqrtsq_f16): Likewise.
12526
12527 2019-09-25 Richard Biener <rguenther@suse.de>
12528
12529 PR tree-optimization/91896
12530 * tree-vect-loop.c (vectorizable_reduction): The single
12531 def-use cycle optimization cannot apply when there's more
12532 than one pattern stmt involved.
12533
12534 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12535
12536 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12537 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12538 (reload_macho_picbase_<mode>): Likewise.
12539
12540 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12541
12542 * config/rs6000/rs6000.md: Move darwin.md include until
12543 after the definition of the mode iterators.
12544
12545 2019-09-23 Martin Sebor <msebor@redhat.com>
12546
12547 PR tree-optimization/91570
12548 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12549 non-constant minlen, maxlen and maxbound.
12550
12551 2019-09-24 Richard Biener <rguenther@suse.de>
12552
12553 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12554 Rename to...
12555 (_stmt_vec_info::cond_reduc_code): ... this.
12556 (_stmt_vec_info::induc_cond_initial_val): Add.
12557 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12558 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12559 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12560 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12561 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12562 the reduction code.
12563 (vect_create_epilog_for_reduction): Drop special
12564 induction condition reduction params, pass in reduction code
12565 and simplify.
12566 (vectorizable_reduction): Perform condition reduction kind
12567 selection only at analysis time. Adjust passing on state.
12568
12569 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12570
12571 * config/aarch64/aarch64.md (mov<mode>): Don't call
12572 aarch64_split_dimode_const_store on volatile MEM.
12573
12574 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12575
12576 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12577 Update hwcap string for fp16fml.
12578
12579 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12580
12581 PR middle-end/91866
12582 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12583 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12584
12585 2019-09-24 Martin Liska <mliska@suse.cz>
12586
12587 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12588 instead of if-elseif-elseif-...
12589 * gimple-expr.c (extract_ops_from_tree): Likewise.
12590 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12591 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12592
12593 2019-09-24 Martin Jambor <mjambor@suse.cz>
12594
12595 PR ipa/91831
12596 * ipa-param-manipulation.c (carry_over_param): Make a method of
12597 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12598 in case of a context mismatch.
12599 (ipa_param_body_adjustments::common_initialization): Adjust call to
12600 carry_over_param.
12601 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12602 private method carry_over_param.
12603
12604 2019-09-24 Martin Jambor <mjambor@suse.cz>
12605
12606 PR ipa/91832
12607 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12608
12609 2019-09-24 Richard Biener <rguenther@suse.de>
12610
12611 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12612 base.
12613
12614 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12615
12616 * config/arm/t-arm (arm-builtins.o): Add dependency on
12617 arm_acle_builtins.def.
12618
12619 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12620
12621 PR target/91823
12622 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12623 canonical CONST_INTs. Use gen_rtvec.
12624
12625 2019-09-23 Richard Biener <rguenther@suse.de>
12626
12627 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12628 avoid adjusting by + 0 or * 1.
12629 (vect_create_epilog_for_reduction): Get reduction code only
12630 when necessary. Deal with adjustment_def only when necessary.
12631
12632 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12633
12634 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12635 memmodel index.
12636
12637 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12638
12639 PR ipa/91835
12640 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12641 "ipa-sra".
12642
12643 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12644
12645 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12646 code. Merge code blocks with common conditionals. Use declared
12647 macro instead of a magic number for PIC level.
12648
12649 2019-09-21 Martin Sebor <msebor@redhat.com>
12650
12651 PR middle-end/91830
12652 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12653 Simplify computation of the offset of the referenced subobject.
12654
12655 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12656
12657 * config/darwin.c (machopic_legitimize_pic_address): Check
12658 for lra not reload.
12659
12660 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12661
12662 * ira-conflicts.c (can_use_same_reg_p): New function.
12663 (process_reg_shuffles): Take an insn parameter. Ignore cases
12664 in which input operand op_num could seemingly never be allocated
12665 to the same register as the destination.
12666 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12667
12668 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12669
12670 * simplify-rtx.c (neg_const_int): Replace with...
12671 (neg_poly_int_rtx): ...this new function.
12672 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12673 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12674 (simplify_plus_minus): Likewise for constant terms here.
12675
12676 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12677
12678 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12679 HOST_WIDE_PRINT_UNSIGNED.
12680
12681 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12682
12683 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12684 character.
12685
12686 2019-09-20 Maya Rashish <coypu@sdf.org>
12687
12688 PR target/86811
12689 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12690 Define to speculation_safe_value_not_needed.
12691
12692 2019-09-20 Richard Biener <rguenther@suse.de>
12693 Uros Bizjak <ubizjak@gmail.com>
12694
12695 PR target/91814
12696 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12697 previous change.
12698 (general_scalar_chain::convert_op): Force not suitable memory
12699 operands to a register.
12700
12701 2019-09-20 Richard Biener <rguenther@suse.de>
12702
12703 PR tree-optimization/91821
12704 * tree-vect-loop.c (check_reduction_path): Check we can compute
12705 reduc_idx.
12706 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12707 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12708 operands in canonical order.
12709 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12710 STMT_VINFO_REDUC_IDX.
12711 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12712 (STMT_VINFO_REDUC_IDX): Likewise.
12713
12714 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12715
12716 PR target/91269
12717 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12718
12719 2019-09-20 Richard Biener <rguenther@suse.de>
12720
12721 PR tree-optimization/91822
12722 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12723 parameter.
12724 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12725 for reduc_index in nested cycles, adjust vectorizable_condition
12726 calls.
12727 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12728 parameter.
12729 (vect_analyze_stmt): Adjust.
12730 (vect_transform_stmt): Likewise.
12731
12732 2019-09-20 Richard Biener <rguenther@suse.de>
12733
12734 PR target/91767
12735 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12736 Ensure there's a sequence point between allocating the new register
12737 and passing a reference to a reg via regno_reg_rtx.
12738
12739 2019-09-20 Martin Jambor <mjambor@suse.cz>
12740
12741 * coretypes.h (cgraph_edge): Declare.
12742 * ipa-param-manipulation.c: Rewrite.
12743 * ipa-param-manipulation.h: Likewise.
12744 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12745 (OBJS): Added ipa-sra.o.
12746 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12747 and ref_p, added fields param_adjustments and performed_splits.
12748 (struct cgraph_clone_info): Remove ags_to_skip and
12749 combined_args_to_skip, new field param_adjustments.
12750 (cgraph_node::create_clone): Changed parameters to use
12751 ipa_param_adjustments.
12752 (cgraph_node::create_virtual_clone): Likewise.
12753 (cgraph_node::create_virtual_clone_with_body): Likewise.
12754 (tree_function_versioning): Likewise.
12755 (cgraph_build_function_type_skip_args): Removed.
12756 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12757 using ipa_param_adjustments.
12758 (clone_of_p): Likewise.
12759 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12760 (build_function_decl_skip_args): Likewise.
12761 (duplicate_thunk_for_node): Adjust parameters using
12762 ipa_param_body_adjustments, copy param_adjustments instead of
12763 args_to_skip.
12764 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12765 (cgraph_node::create_virtual_clone): Likewise.
12766 (cgraph_node::create_version_clone_with_body): Likewise.
12767 (cgraph_materialize_clone): Likewise.
12768 (symbol_table::materialize_all_clones): Likewise.
12769 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12770 ipa_replace_map check.
12771 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12772 (initialize_node_lattices): Make aware that some parameters might have
12773 already been removed.
12774 (want_remove_some_param_p): New function.
12775 (create_specialized_node): Convert to using ipa_param_adjustments and
12776 deal with possibly pre-existing adjustments.
12777 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12778 (output_node_opt_summary): Do not stream removed fields. Stream
12779 parameter adjustments instead of argumetns to skip.
12780 (input_node_opt_summary): Likewise.
12781 (input_node_opt_summary): Likewise.
12782 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12783 * lto-streamer.h (lto_section_type): Likewise.
12784 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12785 param_body_adjs.
12786 (copy_decl_to_var): Declare.
12787 * tree-inline.c (update_clone_info): Do not remap old_tree.
12788 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12789 statements, walk all extra generated statements and remap their
12790 operands.
12791 (redirect_all_calls): Add killed SSA names to a hash set.
12792 (remap_ssa_name): Do not remap killed SSA names.
12793 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12794 half of functionality moved to ipa_param_body_adjustments.
12795 (copy_decl_to_var): Make exported.
12796 (copy_body): Destroy killed_new_ssa_names hash set.
12797 (expand_call_inline): Remap performed splits.
12798 (update_clone_info): Likewise.
12799 (tree_function_versioning): Simplify tree_map processing. Updated to
12800 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12801 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12802 for the new interface.
12803 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12804 (simd_clone_compute_base_data_type): Likewise.
12805 (simd_clone_init_simd_arrays): Adjust for the new interface.
12806 (simd_clone_adjust_argument_types): Likewise.
12807 (struct modify_stmt_info): Likewise.
12808 (ipa_simd_modify_stmt_ops): Likewise.
12809 (ipa_simd_modify_function_body): Likewise.
12810 (simd_clone_adjust): Likewise.
12811 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12812 (type_internals_preclude_sra_p): Make public.
12813 * tree-sra.h: New file.
12814 * ipa-inline-transform.c (save_inline_function_body): Update to
12815 refelct new tree_function_versioning signature.
12816 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12817 ipa_param_adjustments to get current parameter indices.
12818 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12819 (ipcp_update_bits): Likewise.
12820 (ipcp_update_vr): Likewise.
12821 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12822 * ipa-sra.c: New file.
12823 * multiple_target.c (create_target_clone): Update to reflet new type
12824 of create_version_clone_with_body.
12825 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12826 tree_function_versioning.
12827 (modify_function): Update to reflect new type of
12828 tree_function_versioning.
12829 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12830 * passes.def: Remove old IPA-SRA and add new one.
12831 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12832 (make_pass_ipa_sra): Declare.
12833 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12834 ipa_sra_retvalues.
12835 * doc/invoke.texi (ipa-sra-max-replacements): New.
12836
12837 2019-09-19 Martin Sebor <msebor@redhat.com>
12838
12839 PR middle-end/91631
12840 * builtins.c (component_size): Correct trailing array computation,
12841 rename to component_ref_size and move...
12842 (compute_objsize): Adjust.
12843 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12844 (builtin_access::strict): Do not consider memmove.
12845 (builtin_access::write_off): New function.
12846 (builtin_memref::builtin_memref): Initialize refsize.
12847 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12848 refsize.
12849 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12850 Handle refsize.
12851 (builtin_access::builtin_access): Initialize dstoff to destination
12852 refeence offset here instead of in maybe_diag_overlap. Adjust
12853 referencess even to unrelated objects. Adjust sizrange of bounded
12854 string functions to reflect bound. For strcat, adjust destination
12855 sizrange by that of source.
12856 (builtin_access::strcat_overlap): Adjust offsets and sizes
12857 to reflect the increase in destination sizrange above.
12858 (builtin_access::overlap): Do not set dstoff here but instead
12859 in builtin_access::builtin_access.
12860 (check_bounds_or_overlap): Use builtin_access::write_off.
12861 (maybe_diag_access_bounds): Add argument. Add informational notes.
12862 (dump_builtin_memref, dump_builtin_access): New functions.
12863 * tree.c (component_ref_size): ...to here.
12864 * tree.h (component_ref_size): Declare.
12865 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12866 nul in the size of the source string.
12867
12868 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12869
12870 PR c/67224
12871 * doc/cpp.texi: Document support for extended characters in
12872 identifiers.
12873 * doc/cppopts.texi: Likewise.
12874
12875 2019-09-19 Richard Biener <rguenther@suse.de>
12876
12877 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12878 (check_reduction_path): New overload having the path as result.
12879 (vect_is_simple_reduction): From the detected reduction
12880 path build a SLP reduction chain if possible.
12881
12882 2019-09-19 Richard Biener <rguenther@suse.de>
12883
12884 PR target/91814
12885 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12886 Force operand to a register if it isn't nonimmediate_operand.
12887
12888 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12889
12890 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12891 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12892 (logical_op): Remove code attribute.
12893 (logical_OP): Likewise.
12894
12895 2019-09-19 Martin Liska <mliska@suse.cz>
12896
12897 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12898 Use proper casting.
12899
12900 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12901
12902 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12903 registers with %R.
12904
12905 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12906 for NE comparison of TImode values.
12907 (aarch64_emit_load_exclusive): Add support for TImode.
12908 (aarch64_emit_store_exclusive): Likewise.
12909 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12910 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12911 Change iterator from ALLI to ALLI_TI.
12912 (@atomic_compare_and_swap<JUST_TI>): New.
12913 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12914 (aarch64_load_exclusive_pair): New.
12915 (aarch64_store_exclusive_pair): New.
12916 * config/aarch64/iterators.md (JUST_TI): New.
12917
12918 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12919 strong_zero_p for aarch64_track_speculation; unify some code paths;
12920 use aarch64_gen_compare_reg instead of open-coding.
12921
12922 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12923 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12924 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12925 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12926 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12927 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12928 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12929 (atomic_<atomic_op><ALLI>): Likewise.
12930 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12931 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12932 * doc/invoke.texi: Document -moutline-atomics.
12933
12934 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12935
12936 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12937 trivial predicate for condition branch.
12938 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12939 for switch case.
12940 (compute_bb_predicates): Update predicate based on post-dominating
12941 relationship.
12942 (analyze_function_body): Calculate post-dominating information.
12943
12944 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12945
12946 * tree-vectorizer.h (vectorizable_condition): Take an int
12947 reduction index instead of a boolean flag.
12948 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12949 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12950 reductions if the reduction accumulator is the "then" rather
12951 than the "else" value.
12952 (vect_analyze_stmt): Update call accordingly.
12953 (vect_transform_stmt): Likewise.
12954 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12955 asserting that the index is > 0.
12956
12957 2019-09-19 Martin Liska <mliska@suse.cz>
12958
12959 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12960 (sort_congruence_classes_by_decl_uid): Likewise.
12961 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12962 easier sorting.
12963 (sem_item_optimizer::merge_classes): Likewise.
12964
12965 2019-09-19 Richard Biener <rguenther@suse.de>
12966
12967 PR tree-optimization/91812
12968 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12969 volatile loads.
12970
12971 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12972
12973 * defaults.h (TARGET_UNIT): New macro.
12974 (target_unit): New type.
12975 * rtl.h (native_encode_rtx, native_decode_rtx)
12976 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12977 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12978 * rtlanal.c (subreg_lsb_1): Delete.
12979 (subreg_size_lsb): New function.
12980 * simplify-rtx.c: Include rtx-vector-builder.h
12981 (simplify_immed_subreg): Delete.
12982 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12983 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12984 functions.
12985 (simplify_subreg): Use them.
12986 (test_vector_subregs_modes, test_vector_subregs_repeating)
12987 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12988 (test_vector_subregs): New functions.
12989 (test_vector_ops): Call test_vector_subregs for integer vector
12990 modes with at least 2 elements.
12991
12992 2019-09-19 Richard Biener <rguenther@suse.de>
12993
12994 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12995 LOOP_VINFO_OPERANDS_SWAPPED.
12996 (parloops_is_simple_reduction): Likewise.
12997 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12998 initialize operands_swapped.
12999 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
13000 (vect_is_slp_reduction): Do not swap operands.
13001 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
13002 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
13003
13004 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
13005
13006 PR target/87007
13007 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
13008 Add avx_partial_xmm_update.
13009
13010 2019-09-18 Jim Wilson <jimw@sifive.com>
13011
13012 PR target/91683
13013 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
13014 (riscv_move_integer): Likewise.
13015 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
13016 riscv_move_integer arg.
13017 (riscv_legitimize_move): Likewise.
13018 (riscv_force_temporary): New parameter in_splitter. Don't call
13019 force_reg if true.
13020 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
13021 arg.
13022 (riscv_add_offset): Likewise.
13023 (riscv_split_symbol): New parameter in_splitter. Pass to
13024 riscv_force_temporary.
13025 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
13026 arg.
13027 (riscv_move_integer): New parameter in_splitter. New local
13028 can_create_psuedo. Don't call riscv_split_integer or force_reg when
13029 in_splitter TRUE.
13030 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
13031 riscv_split_symbol, and riscv_force_temporary args.
13032 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
13033 riscv_move_integer arg.
13034 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
13035
13036 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13037
13038 PR target/90878
13039 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
13040 hard register store cost to 6.
13041
13042 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13043
13044 PR target/91446
13045 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
13046 pseudo register store cost from 3 to 6 to make it the same as
13047 QImode and HImode.
13048
13049 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13050
13051 PR target/91738
13052 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
13053 (one_cmpldi2): Likewise.
13054 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
13055 of the constant parts is simple.
13056 * config/arm/iterators.md (LOGICAL): Add new code iterator.
13057 (logical_op): Add new code attribute.
13058 (logical_OP): Likewise.
13059 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
13060 (arm_iordi_operand): Add predicate.
13061 (arm_xordi_operand): Add predicate.
13062
13063 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13064
13065 * config/arm/arm.md (maddsidi4): Remove expander.
13066 (mulsidi3adddi): Remove pattern.
13067 (mulsidi3adddi_v6): Likewise.
13068 (mulsidi3_nov6): Likewise.
13069 (mulsidi3_v6): Likewise.
13070 (umulsidi3): Remove expander.
13071 (umulsidi3_nov6): Remove pattern.
13072 (umulsidi3_v6): Likewise.
13073 (umulsidi3adddi): Likewise.
13074 (umulsidi3adddi_v6): Likewise.
13075 (<Us>mulsidi3): Add combined expander.
13076 (<Us>maddsidi4): Likewise.
13077 (<US>mull): Add combined umull and smull pattern.
13078 (<US>mlal): Likewise.
13079 * config/arm/iterators.md (Us): Add new iterator.
13080
13081 2019-09-18 Richard Biener <rguenther@suse.de>
13082
13083 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
13084 swapping.
13085 (vectorize_fold_left_reduction): Remove assert.
13086 (vectorizable_reduction): Also expect COND_EXPR non-reduction
13087 operand in position 2. Remove assert.
13088
13089 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13090
13091 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
13092 (smulsi3_highpart_nov6): Remove pattern.
13093 (smulsi3_highpart_v6): Likewise.
13094 (umulsi3_highpart): Likewise.
13095 (umulsi3_highpart_nov6): Likewise.
13096 (umulsi3_highpart_v6): Likewise.
13097 (<US>mull_high): Add new combined multiply pattern.
13098
13099 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13100
13101 * config/arm/arm.md (arm_mulsi3): Remove pattern.
13102 (arm_mulsi3_v6): Likewise.
13103 (mulsi3addsi_v6): Likewise.
13104 (mulsi3subsi): Likewise.
13105 (mul): Add new multiply pattern.
13106 (mla): Likewise.
13107 (mls): Likewise.
13108
13109 2019-09-18 Richard Biener <rguenther@suse.de>
13110
13111 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
13112 (parloops_valid_reduction_input_p): Copy from
13113 valid_reduction_input_p.
13114 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
13115 (parloops_needs_fold_left_reduction_p): Copy from
13116 needs_fold_left_reduction_p.
13117 (parloops_is_simple_reduction): Copy from
13118 vect_is_simple_reduction.
13119 (parloops_force_simple_reduction): Copy from
13120 vect_force_simple_reduction.
13121 (gather_scalar_reductions): Adjust.
13122 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
13123 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
13124
13125 2019-09-18 Richard Biener <rguenther@suse.de>
13126
13127 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
13128 * tree-vect-loop.c (get_initial_def_for_reduction): Make
13129 static.
13130 (vect_create_epilog_for_reduction): Remove dead code.
13131
13132 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13133
13134 * varasm.c (assemble_real): Generate canonical const_ints.
13135
13136 2019-09-18 Richard Biener <rguenther@suse.de>
13137
13138 PR lto/91763
13139 * lto-streamer-in.c (input_eh_regions): Move EH init to
13140 lto_materialize_function.
13141 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
13142 Likewise.
13143
13144 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13145
13146 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
13147 are INTEGER_CSTs.
13148
13149 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13150
13151 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
13152 of checking specifically for INTEGER_CST.
13153
13154 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13155
13156 * stor-layout.c (compute_record_mode): Operate on poly_uint64
13157 sizes instead of uhwi sizes.
13158
13159 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13160
13161 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
13162 (add_const_value_attribute): Handle CONST_POLY_INT.
13163
13164 2019-09-18 Martin Liska <mliska@suse.cz>
13165
13166 * dbgcnt.def (store_merging): New counter.
13167 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
13168 Use it in store merging.
13169
13170 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13171
13172 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
13173 function.
13174 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13175 * config/arm/arm.c (arm_sched_variable_issue): New function.
13176 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13177
13178 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13179
13180 * config/arm/types.md (no_reservation): New reservation.
13181 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
13182 no_insn here.
13183 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
13184 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
13185 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
13186 * config/arm/arm1020e.md (1020alu_op): Likewise.
13187 * config/arm/arm1026ejs.md (alu_op): Likewise.
13188 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13189 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13190 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13191 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
13192 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13193 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13194 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
13195 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
13196 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13197 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13198 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13199 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
13200 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
13201 * config/arm/fa526.md (526_alu_op): Likewise.
13202 * config/arm/fa606te.md (606te_alu_op): Likewise.
13203 * config/arm/fa626te.md (626te_alu_op): Likewise.
13204 * config/arm/fa726te.md (726te_alu_op): Likewise.
13205 * config/arm/xgene1.md (xgene1_nop): Likewise.
13206
13207 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13208
13209 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
13210 "no_insn" to "branch".
13211
13212 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13213
13214 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
13215
13216 2019-09-17 Richard Biener <rguenther@suse.de>
13217
13218 PR debug/91772
13219 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
13220 was missing generate locations only once.
13221
13222 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
13223
13224 PR ipa/91089
13225 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
13226 option.
13227 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
13228 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
13229 for switch default case using range analysis information.
13230
13231 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
13232
13233 PR target/91749
13234 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
13235 mode attributed is supported by FDPIC.
13236
13237 2019-09-17 Richard Biener <rguenther@suse.de>
13238
13239 PR tree-optimization/91790
13240 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
13241 use the correct DR for setting up realignment.
13242
13243 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
13244
13245 PR target/91719
13246 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
13247 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
13248 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
13249 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
13250
13251 2019-09-16 Jason Merrill <jason@redhat.com>
13252
13253 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
13254
13255 2019-09-16 Martin Liska <mliska@suse.cz>
13256
13257 * gimple-fold.c (or_comparisons_1): Remove rules moved
13258 to ...
13259 * match.pd: ... here.
13260
13261 2019-09-16 Martin Liska <mliska@suse.cz>
13262
13263 * gimple-fold.c (or_comparisons_1): Remove rules
13264 moved to ...
13265 * match.pd: ... here.
13266
13267 2019-09-16 Martin Liska <mliska@suse.cz>
13268
13269 * genmatch.c (dt_node::append_simplify): Do not print
13270 warning when we have duplicate patterns belonging
13271 to a same simplify rule.
13272 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
13273 (maybe_fold_comparisons_from_match_pd): Handle
13274 tcc_comparison as a results.
13275 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
13276
13277 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13278 Qi Feng <ffengqi@linux.ibm.com>
13279
13280 PR middle-end/88784
13281 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
13282 (x > y && x == XXX_MIN): Optimize into 'false'.
13283 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
13284 (x < y && x != XXX_MAX): Optimize into 'x < y'.
13285 (x < y && x == XXX_MAX): Optimize into 'false'.
13286 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
13287 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
13288 (x <= y || x != XXX_MIN): Optimize into 'true'.
13289 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
13290 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
13291 (x >= y || x != XXX_MAX): Optimize into 'true'.
13292 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
13293
13294 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13295 Martin Liska <mliska@suse.cz>
13296
13297 * gimple-fold.c (and_comparisons_1): Add type as first
13298 argument.
13299 (and_var_with_comparison): Likewise.
13300 (and_var_with_comparison_1): Likewise.
13301 (or_comparisons_1): Likewise.
13302 (or_var_with_comparison): Likewise.
13303 (or_var_with_comparison_1): Likewise.
13304 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
13305 (maybe_fold_or_comparisons): Likewise.
13306 (maybe_fold_comparisons_from_match_pd): New.
13307 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
13308 (maybe_fold_or_comparisons): Likewise.
13309 * gimple.c (gimple_size): Make it public and add num_ops argument.
13310 (gimple_init): New function.
13311 (gimple_alloc): Call gimple_init.
13312 * gimple.h (gimple_size): New.
13313 (gimple_init): Likewise.
13314 * tree-if-conv.c (fold_or_predicates): Pass type.
13315 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13316 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
13317 (optimize_vec_cond_expr): Likewise.
13318 (ovce_extract_ops): Return type of conditional expression.
13319 * tree-ssanames.c (init_ssa_name_imm_use): New.
13320 (make_ssa_name_fn): Use init_ssa_name_imm_use.
13321 * tree-ssanames.h (init_ssa_name_imm_use): New.
13322
13323 2019-09-16 Richard Biener <rguenther@suse.de>
13324
13325 PR tree-optimization/91756
13326 PR tree-optimization/87132
13327 * tree-ssa-alias.h (enum translate_flags): New.
13328 (get_continuation_for_phi): Use it instead of simple bool flag.
13329 (walk_non_aliased_vuses): Likewise.
13330 * tree-ssa-alias.c (maybe_skip_until): Adjust.
13331 (get_continuation_for_phi): When looking across backedges only
13332 disallow valueization.
13333 (walk_non_aliased_vuses): Adjust.
13334 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
13335 if requested.
13336
13337 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
13338
13339 PR middle-end/80791
13340 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
13341 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13342 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13343 * target.def (have_count_reg_decr_p): New hook.
13344 (doloop_cost_for_generic): Likewise.
13345 (doloop_cost_for_address): Likewise.
13346 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
13347 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13348 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13349 * doc/tm.texi: Regenerate.
13350 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
13351 addend.
13352 (record_group): Init doloop_p.
13353 (add_candidate_1): Add optional argument doloop, change the handlings
13354 accordingly.
13355 (add_candidate): Likewise.
13356 (generic_predict_doloop_p): Update attribute.
13357 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
13358 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
13359 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
13360 MIN_EXPR.
13361 (get_computation_cost): Update for doloop IV cand extra cost.
13362 (determine_group_iv_cost_cond): Update for doloop IV cand.
13363 (determine_iv_cost): Likewise.
13364 (ivopts_estimate_reg_pressure): Likewise.
13365 (may_eliminate_iv): Update handlings for doloop IV cand.
13366 (add_iv_candidate_for_doloop): New function.
13367 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13368 (iv_ca_set_no_cp): Update for doloop IV cand.
13369 (iv_ca_set_cp): Likewise.
13370 (iv_ca_dump): Dump register cost.
13371 (find_doloop_use): New function.
13372 (analyze_and_mark_doloop_use): Likewise.
13373 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13374
13375 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13376
13377 PR middle-end/91708
13378 * cse.c (cse_insn): Do not replace anything with a
13379 MEM.
13380
13381 2019-09-13 Ian Lance Taylor <iant@golang.org>
13382
13383 * doc/invoke.texi (Optimize Options): Fix typo.
13384
13385 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
13386
13387 PR tree-optimization/89386
13388 * config/i386/sse.md (smulhrs<mode>3): New expander.
13389 (smulhrsv4hi3): Ditto.
13390
13391 2019-09-12 Richard Biener <rguenther@suse.de>
13392
13393 PR tree-optimization/91750
13394 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13395 in the type of the evolution.
13396
13397 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
13398
13399 PR tree-optimization/89386
13400 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13401 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13402 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13403 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13404 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13405 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13406 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13407 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13408 (su, r): Handle the unspecs above.
13409 (bt): New int attribute.
13410 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13411 * internal-fn.c (first_commutative_argument): Commutativity info for
13412 above.
13413 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13414 (umulhrs_optab): New optabs.
13415 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13416 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13417 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13418 function.
13419 (vect_vect_recog_func_ptrs): Add it.
13420
13421 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
13422
13423 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13424 code.
13425
13426 2019-09-11 Nathan Sidwell <nathan@acm.org>
13427
13428 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13429 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13430
13431 2019-09-11 Richard Biener <rguenther@suse.de>
13432
13433 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13434 * lto-wrapper.c (merge_and_complain): Pick up -g.
13435 (append_compiler_options): Likewise.
13436 (run_gcc): Re-instantiate handling -g0 at link-time.
13437 * doc/invoke.texi (flto): Document debug info generation.
13438
13439 2019-09-11 Richard Biener <rguenther@suse.de>
13440
13441 PR tree-optimization/90387
13442 * vr-values.c (vr_values::extract_range_basic): After inlining
13443 simplify non-constant __builtin_constant_p to false.
13444
13445 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13446
13447 PR rtl-optimization/89795
13448 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13449 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13450
13451 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13452
13453 PR tree-optimization/91723
13454 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13455 instead of pointer equality when checking if argument vectypes are
13456 the same.
13457
13458 PR middle-end/91725
13459 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13460 of get_nonzero_bits, only call it for integral types.
13461
13462 2019-09-11 Richard Biener <rguenther@suse.de>
13463
13464 Revert
13465 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13466
13467 * match.pd: Add flag_unsafe_math_optimizations check
13468 before deciding on the widest type in a binary math operation.
13469
13470 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13471
13472 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13473 and CALL_REALLY_USED_REGISTERS must be defined, and that
13474 CALL_REALLY_USED_REGISTERS is preferred.
13475 * doc/tm.texi: Regenerate.
13476 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13477 (call_really_used_regs): Likewise.
13478 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13479 CALL_REALLY_USED_REGISTERS are defined.
13480 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13481 initial value if defined.
13482 (initial_call_really_used_regs): Delete.
13483 (saved_call_really_used_regs): Likewise.
13484 (CALL_REALLY_USED_REGNO_P): Likewise.
13485 (init_reg_sets): Remove handling of call_really_used_regs.
13486 (save_register_info, restore_register_info, globalize_reg): Likewise.
13487 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13488 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13489 outside operand_reg_set.
13490 (fix_register): Don't change call_used_regs if
13491 CALL_REALLY_USED_REGISTERS is defined.
13492 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13493 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13494 instead of call_really_used_regs.
13495 (csky_conditional_register_usage): Remove the old handling of
13496 call_used_regs and change the handling of call_really_used_regs
13497 to use call_used_regs instead.
13498 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13499 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13500 making a register fixed.
13501 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13502 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13503 instead of call_really_used_regs.
13504 (m32r_conditional_register_usage): Don't set call_used_regs when
13505 making a register fixed.
13506 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13507 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13508 instead of call_really_used_regs.
13509 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13510 (mips_cfun_call_saved_reg_p): Likewise.
13511 (mips_swap_registers): Remove the old handling of call_used_regs
13512 and change the handling of call_really_used_regs to use call_used_regs
13513 instead.
13514 (mips_conditional_register_usage): Likewise.
13515 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13516 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13517 instead of call_really_used_regs.
13518 (mn10300_get_live_callee_saved_regs): Likewise.
13519 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13520 (mn10300_conditional_register_usage): Don't set call_used_regs when
13521 making a register fixed.
13522 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13523 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13524 Remove the old handling of call_used_regs and change the handling
13525 of call_really_used_regs to use call_used_regs instead.
13526 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13527 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13528 instead of call_really_used_regs.
13529 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13530 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13531 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13532 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13533 (s390_conditional_register_usage): Remove the old handling of
13534 call_used_regs and change the handling of call_really_used_regs
13535 to use call_used_regs instead.
13536 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13537 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13538 (sh_fix_range, reg_unused_after): Likewise.
13539 (sh_conditional_register_usage): Remove the old handling of
13540 call_used_regs and change the handling of call_really_used_regs
13541 to use call_used_regs instead.
13542 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13543 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13544 call_used_regs when making a register fixed.
13545 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13546 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13547 call_used_regs when making a register fixed.
13548 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13549 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13550 set call_used_regs when making a register fixed.
13551 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13552 * config/visium/visium.c (visium_conditional_register_usage): Remove
13553 the old handling of call_used_regs and change the handling of
13554 call_really_used_regs to use call_used_regs instead.
13555
13556 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13557
13558 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13559 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13560 * reginfo.c (call_used_regs): New macro.
13561
13562 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13563
13564 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13565 fixed_regs test.
13566 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13567 (bpf_expand_epilogue): Likewise.
13568 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13569 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13570 (ft32_expand_epilogue): Likewise.
13571 * config/i386/i386.c (ix86_save_reg): Likewise.
13572 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13573 (moxie_expand_epilogue): Likewise.
13574 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13575 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13576 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13577
13578 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13579
13580 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13581 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13582 instead of testing call_used_regs directly.
13583 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13584 (aarch64_components_for_bb): Likewise.
13585 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13586 * config/arc/arc.c (arc_must_save_register): Likewise.
13587 (arc_epilogue_uses): Likewise.
13588 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13589 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13590 (arm_compute_save_reg0_reg12_mask): Likewise.
13591 (arm_compute_save_core_reg_mask): Likewise.
13592 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13593 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13594 (cmse_nonsecure_entry_clear_before_return): Likewise.
13595 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13596 (arm_expand_epilogue): Likewise.
13597 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13598 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13599 (_reg_unused_after): Likewise.
13600 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13601 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13602 (add_to_reg, hwloop_optimize): Likewise.
13603 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13604 (bpf_expand_epilogue): Likewise.
13605 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13606 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13607 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13608 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13609 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13610 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13611 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13612 * config/frv/frv.c (frv_stack_info): Likewise.
13613 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13614 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13615 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13616 (move_callee_saved_registers): Likewise.
13617 * config/h8300/h8300.c (byte_reg): Likewise.
13618 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13619 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13620 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13621 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13622 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13623 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13624 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13625 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13626 * config/m32c/m32c.c (need_to_save): Likewise.
13627 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13628 * config/mcore/mcore.c (calc_live_regs): Likewise.
13629 * config/microblaze/microblaze.c (microblaze_must_save_register):
13630 Likewise.
13631 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13632 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13633 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13634 (mmix_expand_epilogue): Likewise.
13635 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13636 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13637 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13638 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13639 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13640 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13641 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13642 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13643 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13644 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13645 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13646 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13647 * config/rl78/rl78.c (need_to_save): Likewise.
13648 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13649 (rs6000_stack_info, generate_set_vrsave): Likewise.
13650 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13651 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13652 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13653 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13654 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13655 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13656 (save_local_or_in_reg_p): Likewise.
13657 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13658 (xstormy16_epilogue_uses): Likewise.
13659 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13660 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13661 * config/v850/v850.c (compute_register_save_size): Likewise.
13662 * config/vax/vax.c (vax_expand_prologue): Likewise.
13663 * config/visium/visium.c (visium_save_reg_p): Likewise.
13664 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13665 * cselib.c (cselib_process_insn): Likewise.
13666 * df-scan.c (df_get_entry_block_def_set): Likewise.
13667 * function.c (aggregate_value_p): Likewise.
13668 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13669 * ira-lives.c (process_bb_node_lives): Likewise.
13670 * ira.c (do_reload): Likewise.
13671 * lra-lives.c (process_bb_lives): Likewise.
13672 * lra-remat.c (lra_remat): Likewise.
13673 * lra.c (lra): Likewise.
13674 * postreload.c (reload_combine_recognize_pattern): Likewise.
13675 (reload_cse_move2add): Likewise.
13676 * recog.c (peep2_find_free_register): Likewise.
13677 * regrename.c (check_new_reg_p): Likewise.
13678 * reload.c (find_equiv_reg): Likewise.
13679 * reload1.c (reload, find_reg): Likewise.
13680 * sel-sched.c (init_hard_regs_data): Likewise.
13681
13682 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13683
13684 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13685 regs_invalidated_by_call & ~fixed_reg_set instead of
13686 call_used_or_fixed_regs & ~fixed_reg_set.
13687 * config/sh/sh.c (output_stack_adjust): Likewise.
13688
13689 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13690
13691 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13692 (call_used_reg_set): Delete.
13693 (call_used_or_fixed_regs): New macro.
13694 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13695 of call_used_reg_set.
13696 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13697 instead of call_used_regs.
13698 (save_call_clobbered_regs): Likewise.
13699 * cfgcleanup.c (old_insns_match_p): Likewise.
13700 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13701 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13702 Likewise.
13703 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13704 * config/sh/sh.c (output_stack_adjust): Likewise.
13705 * final.c (collect_fn_hard_reg_usage): Likewise.
13706 * ira-build.c (ira_build): Likewise.
13707 * ira-color.c (calculate_saved_nregs): Likewise.
13708 (allocno_reload_assign, calculate_spill_cost): Likewise.
13709 * ira-conflicts.c (ira_build_conflicts): Likewise.
13710 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13711 * ira-lives.c (process_bb_node_lives): Likewise.
13712 * ira.c (setup_reg_renumber): Likewise.
13713 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13714 * lra-constraints.c (need_for_call_save_p): Likewise.
13715 (need_for_split_p, inherit_in_ebb): Likewise.
13716 * lra-lives.c (process_bb_lives): Likewise.
13717 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13718 * postreload.c (reload_combine): Likewise.
13719 * regrename.c (find_rename_reg): Likewise.
13720 * reload1.c (reload_as_needed): Likewise.
13721 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13722 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13723 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13724
13725 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13726
13727 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13728 (no_caller_save_reg_set): Delete.
13729 * caller-save.c (init_caller_save): Don't initialize it.
13730 * ira-conflicts.c (ira_build_conflicts): Calculate
13731 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13732
13733 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13734
13735 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13736 (target_hard_regs::x_savable_regs): New field.
13737 (call_fixed_reg_set): Delete.
13738 (savable_regs): New macro,
13739 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13740 (init_reg_sets_1): Likewise. Initialize savable_regs.
13741 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13742 for all registers. Set savable_regs instead of call_fixed_reg_set.
13743 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13744 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13745 * config/sh/sh.c (output_stack_adjust): Likewise.
13746
13747 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13748
13749 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13750 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13751 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13752
13753 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13754
13755 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13756 * rtlanal.c (get_call_rtx_from): Likewise.
13757 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13758 than the pattern to get_call_rtx_from.
13759 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13760 an rtx_insn * instead of an rtx.
13761 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13762
13763 2019-09-10 Martin Liska <mliska@suse.cz>
13764
13765 * common.opt: Use newly added WarnRemoved.
13766 * config/aarch64/aarch64.opt: Likewise.
13767 * config/arm/arm.opt: Likewise.
13768 * config/i386/i386.opt: Likewise.
13769 * config/ia64/ia64.opt: Likewise.
13770 * config/rs6000/rs6000.opt: Likewise.
13771 * doc/options.texi: Document WarnRemoved properly.
13772 * dwarf2out.c (gen_producer_string): Handle renamed
13773 OPT_SPECIAL_warn_removed.
13774 * lto-opts.c (lto_write_options): Likewise.
13775 * lto-wrapper.c (merge_and_complain): Likewise.
13776 * opts-common.c (decode_cmdline_option): Likewise.
13777 (prune_options): Likewise.
13778 (read_cmdline_option): Likewise.
13779 (control_warning_option): Likewise.
13780 * opts.c (print_filtered_help): Likewise.
13781 * optc-gen.awk: Parse for WarnRemoved and make usage
13782 of Deprecated an error.
13783 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13784
13785 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13786
13787 * doc/install.texi: Fix syntax for html generation.
13788
13789 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13790
13791 PR middle-end/91680
13792 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13793 the shift type to type.
13794
13795 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13796
13797 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13798 FDPIC mode.
13799 (stack_protect_combined_test_insn): Likewise.
13800
13801 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13802 Mickaël Guêné <mickael.guene@st.com>
13803
13804 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13805 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13806 (load_tp_soft_fdpic): New pattern.
13807 (load_tp_soft): Disable in FDPIC mode.
13808
13809 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13810 Mickaël Guêné <mickael.guene@st.com>
13811
13812 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13813 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13814 (arm_call_tls_get_addr): Add FDPIC support.
13815 (legitimize_tls_address): Likewise.
13816 (arm_emit_tls_decoration): Likewise.
13817
13818 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13819 Mickaël Guêné <mickael.guene@st.com>
13820
13821 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13822 support.
13823 (arm_trampoline_init): Likewise.
13824 (arm_trampoline_adjust_address): Likewise.
13825 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13826
13827 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13828 Mickaël Guêné <mickael.guene@st.com>
13829
13830 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13831 (legitimize_pic_address): Enforce binding rules on function
13832 pointers in FDPIC mode.
13833 (arm_assemble_integer): Likewise.
13834
13835 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13836 Mickaël Guêné <mickael.guene@st.com>
13837
13838 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13839 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13840 FDPIC.
13841
13842 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13843 Mickaël Guêné <mickael.guene@st.com>
13844
13845 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13846 field.
13847
13848 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13849 Mickaël Guêné <mickael.guene@st.com>
13850
13851 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13852 in FDPIC mode.
13853 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13854 new function.
13855 * config/arm/arm.c (arm_option_override): Define pic register to
13856 FDPIC_REGNUM.
13857 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13858 have no decl or go through PLT.
13859 (calculate_pic_address_constant): New function.
13860 (legitimize_pic_address): Call calculate_pic_address_constant.
13861 (arm_load_pic_register): Handle TARGET_FDPIC.
13862 (arm_is_segment_info_known): New function.
13863 (arm_pic_static_addr): Add support for FDPIC.
13864 (arm_load_function_descriptor): New function.
13865 (arm_emit_call_insn): Add support for FDPIC.
13866 (arm_assemble_integer): Add support for FDPIC.
13867 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13868 Define. (FDPIC_REGNUM): New define.
13869 * config/arm/arm.md (call): Add support for FDPIC.
13870 (call_value): Likewise.
13871 (restore_pic_register_after_call): New pattern.
13872 (untyped_call): Disable if FDPIC.
13873 (untyped_return): Likewise.
13874 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13875
13876 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13877 Mickaël Guêné <mickael.guene@st.com>
13878
13879 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13880 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13881 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13882 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13883 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13884 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13885 * config/arm/uclinuxfdpiceabi.h: New file.
13886
13887 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13888
13889 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13890
13891 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13892 Mickaël Guêné <mickael.guene@st.com>
13893
13894 * config/arm/arm.opt: Add -mfdpic option.
13895 * doc/invoke.texi: Add documentation for -mfdpic.
13896
13897 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13898
13899 * expmed.c (extract_bit_field): Update function comment
13900 regarding alt_rtl.
13901 * expr.c (expand_expr_real): Update function comment
13902 regarding alt_rtl.
13903 (expand_misaligned_mem_ref): New helper function.
13904 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13905 Remove duplicate assignment to "base" at case MEM_REF.
13906 Remove a shadowed variable "unsignedp" at case VCE.
13907
13908 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13909
13910 * regset.h (regs_invalidated_by_call_regset): Delete.
13911 (fixed_reg_set_regset): Likewise.
13912 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13913 (fixed_reg_set_regset, persistent_obstack): Likewise.
13914 (init_reg_sets_1, globalize_reg): Update accordingly.
13915 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13916 instead of a bitmap.
13917 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13918 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13919 instead of regs_invalidated_by_call_regset.
13920 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13921 * df-scan.c (df_scan_start_dump): Likewise.
13922 * dse.c (copy_fixed_regs): Likewise.
13923 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13924
13925 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13926
13927 * array-traits.h: New file.
13928 * coretypes.h (array_traits, bitmap_view): New types.
13929 * bitmap.h: Include "array-traits.h"
13930 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13931 (base_bitmap_view, bitmap_view): New classes.
13932 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13933 * hard-reg-set.h: Include array-traits.h.
13934 (array_traits<HARD_REG_SET>): New struct.
13935 * regset.h (IOR_REG_SET_HRS): New macro.
13936 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13937 rather than iterating over each hard register.
13938 * sched-deps.c (sched_analyze_insn): Likewise.
13939 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13940
13941 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13942
13943 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13944 instead of a HARD_REG_SET *.
13945 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13946 (ira_build): Update call accordingly.
13947 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13948
13949 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13950
13951 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13952 (HARD_REG_SET::operator!=): Likewise.
13953 (hard_reg_set_equal_p): Delete.
13954 * cfgcleanup.c (old_insns_match_p): Use == instead of
13955 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13956 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13957 (add_allocno_hard_regs_to_forest): Likewise.
13958 (setup_allocno_available_regs_num): Likewise.
13959 * ira.c (setup_pressure_classes): Likewise.
13960 (setup_allocno_and_important_classes): Likewise.
13961 (setup_reg_class_relations): Likewise.
13962 * lra-lives.c (process_bb_lives): Likewise.
13963 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13964
13965 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13966
13967 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13968 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13969 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13970 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13971 Likewise.
13972 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13973 * ira.c (setup_reg_renumber): Likewise.
13974 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13975 * regrename.c (regrename_find_superclass): Likewise.
13976 * reload1.c (find_reg): Likewise.
13977
13978 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13979
13980 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13981 * caller-save.c (setup_save_areas): Use "&~" instead of
13982 AND_COMPL_HARD_REG_SET.
13983 (save_call_clobbered_regs): Likewise.
13984 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13985 Likewise.
13986 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13987 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13988 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13989 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13990 (mips_conditional_register_usage): Likewise.
13991 * config/sh/sh.c (output_stack_adjust): Likewise.
13992 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13993 (setup_profitable_hard_regs): Likewise.
13994 (get_conflict_and_start_profitable_regs): Likewise.
13995 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13996 (ira_build_conflicts): Likewise.
13997 * ira-costs.c (restrict_cost_classes): Likewise.
13998 (setup_regno_cost_classes_by_aclass): Likewise.
13999 * ira-lives.c (process_bb_node_lives): Likewise.
14000 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
14001 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
14002 (setup_allocno_and_important_classes, setup_class_translate_array)
14003 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
14004 Likewise.
14005 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14006 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14007 (process_alt_operands, inherit_in_ebb): Likewise.
14008 * lra-eliminations.c (update_reg_eliminate): Likewise.
14009 * lra-lives.c (process_bb_lives): Likewise.
14010 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
14011 * resource.c (find_dead_or_set_registers): Likewise.
14012 (mark_target_live_regs): Likewise.
14013 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
14014 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14015 (implicit_clobber_conflict_p): Likewise.
14016 * shrink-wrap.c (requires_stack_frame_p): Likewise.
14017 (try_shrink_wrapping): Likewise.
14018
14019 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14020
14021 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
14022 (HARD_REG_SET::operator|=): Likewise.
14023 (IOR_HARD_REG_SET): Delete.
14024 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
14025 IOR_HARD_REG_SET.
14026 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14027 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
14028 * final.c (collect_fn_hard_reg_usage): Likewise.
14029 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
14030 * ira-build.c (merge_hard_reg_conflicts): Likewise.
14031 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
14032 (propagate_some_info_from_allocno): Likewise.
14033 (copy_info_to_removed_store_destinations): Likewise.
14034 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
14035 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
14036 (fast_allocation): Likewise.
14037 * ira-conflicts.c (ira_build_conflicts): Likewise.
14038 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
14039 (process_bb_node_lives): Likewise.
14040 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
14041 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14042 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14043 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
14044 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
14045 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
14046 (process_bb_lives): Likewise.
14047 * lra-spills.c (assign_spill_hard_regs): Likewise.
14048 * postreload.c (reload_combine): Likewise.
14049 * reginfo.c (init_reg_sets_1): Likewise.
14050 * regrename.c (merge_overlapping_regs, find_rename_reg)
14051 (merge_chains): Likewise.
14052 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
14053 (find_reload_regs, finish_spills, choose_reload_regs_init)
14054 (emit_reload_insns): Likewise.
14055 * reorg.c (redundant_insn): Likewise.
14056 * resource.c (find_dead_or_set_registers, mark_set_resources)
14057 (mark_target_live_regs): Likewise.
14058 * rtlanal.c (find_all_hard_reg_sets): Likewise.
14059 * sched-deps.c (sched_analyze_insn): Likewise.
14060 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14061 (find_best_reg_for_expr): Likewise.
14062 * shrink-wrap.c (try_shrink_wrapping): Likewise.
14063
14064 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14065
14066 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
14067 (HARD_REG_SET::operator&): Likewise.
14068 (AND_HARD_REG_SET): Delete.
14069 * caller-save.c (setup_save_areas): Use "&" instead of
14070 AND_HARD_REG_SET.
14071 (save_call_clobbered_regs): Likewise.
14072 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14073 * config/m32c/m32c.c (reduce_class): Likewise.
14074 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14075 * final.c (get_call_reg_set_usage): Likewise.
14076 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
14077 (setup_left_conflict_sizes_p): Likewise.
14078 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14079 (ira_build_conflicts): Likewise.
14080 * ira-costs.c (restrict_cost_classes): Likewise.
14081 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
14082 (setup_reg_class_relations): Likewise.
14083 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
14084 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
14085 * resource.c (find_dead_or_set_registers): Likewise.
14086 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14087
14088 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14089
14090 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
14091 (COMPL_HARD_REG_SET): Delete.
14092 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
14093 of COMPL_HARD_REG_SET.
14094 (try_rename_operands): Likewise.
14095 * config/sh/sh.c (push_regs): Likewise.
14096 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14097 * lra-constraints.c (contains_reg_p): Likewise.
14098 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
14099
14100 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14101
14102 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
14103 * caller-save.c (save_call_clobbered_regs): Use assignment instead
14104 of COPY_HARD_REG_SET.
14105 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
14106 (epiphany_conditional_register_usage): Likewise.
14107 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14108 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14109 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14110 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14111 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
14112 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14113 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
14114 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14115 * config/sh/sh.c (output_stack_adjust): Likewise.
14116 * final.c (collect_fn_hard_reg_usage): Likewise.
14117 (get_call_reg_set_usage): Likewise.
14118 * ira-build.c (ira_create_object, remove_low_level_allocnos)
14119 (ira_flattening): Likewise.
14120 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
14121 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
14122 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
14123 (ira_reassign_pseudos): Likewise.
14124 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14125 (ira_build_conflicts): Likewise.
14126 * ira-costs.c (restrict_cost_classes): Likewise.
14127 (setup_regno_cost_classes_by_aclass): Likewise.
14128 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
14129 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
14130 (setup_stack_reg_pressure_class, setup_pressure_classes)
14131 (setup_allocno_and_important_classes, setup_class_translate_array)
14132 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
14133 (ira_setup_eliminable_regset): Likewise.
14134 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14135 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14136 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14137 (process_alt_operands, inherit_in_ebb): Likewise.
14138 * lra-lives.c (process_bb_lives): Likewise.
14139 * lra-spills.c (assign_spill_hard_regs): Likewise.
14140 * lra.c (lra): Likewise.
14141 * mode-switching.c (new_seginfo): Likewise.
14142 * postreload.c (reload_combine): Likewise.
14143 * reg-stack.c (straighten_stack): Likewise.
14144 * reginfo.c (save_register_info, restore_register_info): Likewise.
14145 (init_reg_sets_1, record_subregs_of_mode): Likewise
14146 * regrename.c (create_new_chain, rename_chains): Likewise.
14147 * reload1.c (order_regs_for_reload, find_reg): Likewise.
14148 (find_reload_regs): Likewise.
14149 * resource.c (find_dead_or_set_registers): Likewise.
14150 (mark_target_live_regs): Likewise.
14151 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14152
14153 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14154
14155 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
14156 (note_pattern_stores): Declare.
14157 (note_stores): Take an rtx_insn *.
14158 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
14159 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
14160 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
14161 (note_stores): Take an rtx_insn * as argument and process
14162 CALL_INSN_FUNCTION_USAGE. Rename old function to...
14163 (note_pattern_stores): ...this.
14164 (find_first_parameter_load): Pass the insn rather than
14165 its pattern to note_stores.
14166 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
14167 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
14168 (insert_one_insn): Likewise.
14169 * combine.c (combine_instructions): Likewise.
14170 (likely_spilled_retval_p): Likewise.
14171 (try_combine): Use note_pattern_stores instead of note_stores.
14172 (record_dead_and_set_regs): Pass the insn rather than its pattern
14173 to note_stores.
14174 (reg_dead_at_p): Likewise.
14175 * config/bfin/bfin.c (workaround_speculation): Likewise.
14176 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
14177 rather than an rtx.
14178 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
14179 instead of note_stores.
14180 (frv_optimize_membar_local): Pass the insn rather than its pattern
14181 to note_stores.
14182 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14183 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
14184 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
14185 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
14186 (mips_reorg_process_insns): Likewise.
14187 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
14188 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
14189 rather than rtxes.
14190 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
14191 its pattern to note_stores.
14192 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
14193 of note_stores.
14194 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
14195 the insn to note_stores.
14196 (prescan_insns_for_dce): Update call accordingly.
14197 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
14198 to note_stores.
14199 * df-problems.c (can_move_insns_across): Likewise.
14200 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
14201 * function.c (assign_parm_setup_reg): Likewise.
14202 * gcse-common.c (record_last_mem_set_info_common): Likewise.
14203 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
14204 (single_set_gcse): Likewise.
14205 * ira.c (validate_equiv_mem): Likewise.
14206 (update_equiv_regs): Use note_pattern_stores rather than note_stores
14207 for no_equiv.
14208 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
14209 pattern to note_stores.
14210 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14211 * loop-iv.c (simplify_using_initial_values): Likewise.
14212 * mode-switching.c (optimize_mode_switching): Likewise.
14213 * optabs.c (emit_libcall_block_1): Likewise.
14214 (expand_atomic_compare_and_swap): Likewise.
14215 * postreload-gcse.c (load_killed_in_block_p): Likewise.
14216 (record_opr_changes): Likewise. Remove explicit handling of
14217 CALL_INSN_FUNCTION_USAGE.
14218 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
14219 * regcprop.c (kill_clobbered_values): Likewise.
14220 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
14221 to note_stores.
14222 * regrename.c (build_def_use): Likewise.
14223 * reload1.c (reload): Use note_pattern_stores instead of note_stores
14224 for mark_not_eliminable.
14225 (reload_as_needed): Pass the insn rather than its pattern
14226 to note_stores.
14227 (emit_output_reload_insns): Likewise.
14228 * resource.c (mark_target_live_regs): Likewise.
14229 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14230 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
14231 instead of note_stores.
14232 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
14233 its pattern to note_stores.
14234 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
14235 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
14236
14237 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14238
14239 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
14240 than a #define. Use a structure rather than an array as the
14241 fallback definition. Remove special cases for low array sizes.
14242 (const_hard_reg_set): New typedef.
14243 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
14244 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
14245 (hard_reg_set_empty_p): Likewise.
14246 (SET_HARD_REG_BIT): Use a function rather than a macro to
14247 handle the case in which HARD_REG_SET is a structure.
14248 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
14249 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
14250 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
14251 (IOR_COMPL_HARD_REG_SET): Likewise.
14252 (hard_reg_set_iterator::pset): Constify the pointer target.
14253 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
14254 of a "const HARD_REG_SET". Update the handling of non-integer
14255 HARD_REG_SETs.
14256 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
14257 * reload.h: Likewise.
14258 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
14259 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
14260 of a "const HARD_REG_SET".
14261 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
14262 (range_in_hard_reg_set_p): Likewise.
14263 * ira-costs.c (restrict_cost_classes): Likewise.
14264 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
14265 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14266 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
14267 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
14268 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
14269 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
14270 take an unsigned int and open-code the HARD_REG_SET operations.
14271
14272 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14273
14274 * Makefile.in (OBJS): Remove bt-load.o.
14275 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
14276 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14277 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
14278 document that the option no longer does anything.
14279 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14280 * target.def (branch_target_register_class): Delete.
14281 (branch_target_register_callee_saved): Likewise.
14282 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14283 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
14284 * doc/tm.texi: Regenerate.
14285 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
14286 (make_pass_branch_target_load_optimize2): Likewise.
14287 * passes.def (pass_branch_target_load_optimize1): Likewise.
14288 (pass_branch_target_load_optimize2): Likewise.
14289 * targhooks.h (default_branch_target_register_class): Likewise.
14290 * targhooks.c (default_branch_target_register_class): Likewise.
14291 * opt-suggestions.c (test_completion_valid_options): Remove
14292 -fbtr-bb-exclusive from the list of test options.
14293 * bt-load.c: Remove.
14294
14295 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
14296
14297 * match.pd: Add flag_unsafe_math_optimizations check
14298 before deciding on the widest type in a binary math operation.
14299
14300 2019-09-09 Martin Liska <mliska@suse.cz>
14301
14302 * config/i386/i386.opt: Update comment of removed
14303 options that are preserved only for backward
14304 compatibility.
14305
14306 2019-09-09 Jakub Jelinek <jakub@redhat.com>
14307
14308 PR target/87853
14309 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
14310 instead of __v16qs.
14311
14312 PR target/91704
14313 * config/i386/avxintrin.h (__v32qs): New typedef.
14314 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
14315 instead of __v32qi.
14316
14317 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14318
14319 * doc/invoke.texi (Option Summary): Cover eBPF.
14320 (eBPF Options): New section.
14321 * doc/extend.texi (BPF Built-in Functions): Likewise.
14322 (BPF Kernel Helpers): Likewise.
14323
14324 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14325
14326 * config.gcc: Support for bpf-*-* targets.
14327 * common/config/bpf/bpf-common.c: New file.
14328 * config/bpf/t-bpf: Likewise.
14329 * config/bpf/predicates.md: Likewise.
14330 * config/bpf/constraints.md: Likewise.
14331 * config/bpf/bpf.opt: Likewise.
14332 * config/bpf/bpf.md: Likewise.
14333 * config/bpf/bpf.h: Likewise.
14334 * config/bpf/bpf.c: Likewise.
14335 * config/bpf/bpf-protos.h: Likewise.
14336 * config/bpf/bpf-opts.h: Likewise.
14337 * config/bpf/bpf-helpers.h: Likewise.
14338 * config/bpf/bpf-helpers.def: Likewise.
14339
14340 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14341
14342 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14343 indirect_calls.
14344
14345 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14346
14347 * opt-functions.awk (integer_range_info): Make sure values are in
14348 numeric context before operating with them.
14349
14350 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
14351
14352 * genemit.c (gen_split): Print the filename and line number where the
14353 splitter (or peephole2) was defined, to the dump file.
14354
14355 2019-09-07 Jakub Jelinek <jakub@redhat.com>
14356
14357 PR tree-optimization/91665
14358 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
14359 incompatible with the type of PHI result.
14360
14361 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14362
14363 PR target/91684
14364 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
14365 gen_unaligned_storedi for 4-byte aligned addresses.
14366
14367 2019-09-06 Jim Wilson <jimw@sifive.com>
14368
14369 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14370 change.
14371
14372 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14373
14374 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14375
14376 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14377
14378 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14379 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14380
14381 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
14382
14383 PR target/91654
14384 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14385 cost of SSE->integer and integer->SSE moves from 2 to 6.
14386 (core_cost): Ditto.
14387
14388 2019-09-06 Jakub Jelinek <jakub@redhat.com>
14389
14390 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14391 before testing TYPE_TRANSPARENT_AGGR.
14392 * calls.c (initialize_argument_information, load_register_parameters):
14393 Likewise.
14394
14395 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
14396
14397 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14398 high regs.
14399 (cmp_ior): Likewise.
14400
14401 2019-09-06 Martin Liska <mliska@suse.cz>
14402
14403 * doc/match-and-simplify.texi: Separate tuples with ;.
14404
14405 2019-09-06 Martin Liska <mliska@suse.cz>
14406
14407 PR c++/91125
14408 * Makefile.in: Remove tlink.o.
14409 * collect2.c (do_link): New function isolated
14410 from do_tlink.
14411 (main): Use.
14412 * collect2.h (do_tlink): Remove declaration of do_tlink.
14413 * doc/extend.texi: Remove documentation of -frepo.
14414 * doc/invoke.texi: Likewise.
14415 * doc/sourcebuild.texi: Remove cleanup-repo-files.
14416 * tlink.c: Remove.
14417
14418 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14419 Jim Wilson <jimw@sifive.com>
14420
14421 PR target/91635
14422 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14423 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14424 paradoxical_subreg_p (operands[0]).
14425 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14426 use as intermediate value.
14427
14428 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
14429
14430 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14431 (sync_compare_and_swap<mode>_insn): Likewise.
14432
14433 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14434
14435 PR middle-end/91615
14436 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14437 without movmisalign optab.
14438
14439 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14440
14441 PR middle-end/91001
14442 PR middle-end/91105
14443 PR middle-end/91106
14444 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14445 types, use type of their first field instead of type of
14446 args[i].tree_value.
14447
14448 2019-09-05 Richard Biener <rguenther@suse.de>
14449
14450 PR rtl-optimization/91656
14451 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14452 of early out.
14453
14454 2019-09-05 Richard Biener <rguenther@suse.de>
14455
14456 PR middle-end/90501
14457 * tree-inline.c (declare_return_variable): Mark the return
14458 slot as addressable after building an address of it.
14459
14460 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14461
14462 * doc/install.texi: Update and clarify requirements to build GNAT.
14463
14464 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14465
14466 PR middle-end/91577
14467 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14468 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14469 call to be in memory.
14470 (pass_expand::execute): Call discover_nonconstant_array_refs before
14471 setting currently_expanding_to_rtl.
14472
14473 2019-09-04 Caroline Tice <cmtice@google.com>
14474
14475 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14476 specified together.
14477
14478 2019-09-04 Marek Polacek <polacek@redhat.com>
14479
14480 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14481
14482 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14483
14484 PR target/32413
14485 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14486 for QI and HImode moves between SSE and general registers.
14487
14488 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14489
14490 PR c/78736
14491 * doc/invoke.texi: Document -Wenum-conversion.
14492
14493 2019-09-04 Richard Biener <rguenther@suse.de>
14494
14495 PR rtl-optimization/36262
14496 * postreload-gcse.c: Include intl.h and gcse.h.
14497 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14498 to avoid linear list walk.
14499 (record_last_mem_set_info): Gate off if not computing transparentness.
14500 (get_bb_avail_insn): If transparentness isn't computed give up
14501 early.
14502 (gcse_after_reload_main): Skip compute_transp and extended PRE
14503 if gcse_or_cprop_is_too_expensive says so.
14504
14505 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14506
14507 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14508 noinit section.
14509 (msp430_select_section): Handle decls with the "noinit" attribute with
14510 default_elf_select_section.
14511 Handle SECCAT_RODATA_MERGE_* section types with
14512 default_elf_select_section.
14513 Add comments about handling of unsupported section types.
14514 (msp430_section_type_flags): Remove handling of the noinit section.
14515
14516 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14517
14518 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14519 conflicting msp430-specific attributes.
14520 (msp430_section_attr): Likewise.
14521 Add warnings about conflicts with generic "noinit" and "section"
14522 attributes.
14523 Fix grammar in -mlarge error message.
14524 (msp430_data_attr): Rename to msp430_persist_attr.
14525 Add warnings about conflicts with generic "noinit" and "section"
14526 attributes.
14527 Add warning for when variable is not initialized.
14528 Chain conditionals which prevent the attribute being added.
14529 (ATTR_EXCL): New helper.
14530 (attr_reent_exclusions): New exclusion table.
14531 (attr_naked_exclusions): Likewise.
14532 (attr_crit_exclusions): Likewise.
14533 (attr_lower_exclusions): Likewise.
14534 (attr_upper_exclusions): Likewise.
14535 (attr_either_exclusions): Likewise.
14536 (attr_persist_exclusions): Likewise.
14537 (msp430_attribute_table): Update with exclusion rules.
14538 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14539 has a section.
14540
14541 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14542
14543 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14544 (msp430_handle_generic_attribute): New function.
14545 * doc/tm.texi: Regenerate.
14546 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14547 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14548 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14549 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14550
14551 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14552
14553 PR tree-optimization/91504
14554 * match.pd: Add ((~a & b) ^a) --> (a | b).
14555
14556 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14557
14558 PR target/91604
14559 * config/i386/i386-expand.c (split_double_mode): If there is more than
14560 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14561 already split matching MEM operand instead of calling adjust_address
14562 again.
14563
14564 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14565
14566 * config.gcc: Obsolete spu target. Remove references to spu.
14567 * configure.ac: Remove references to spu.
14568 * configure: Regenerate.
14569 * config/spu/: Remove directory.
14570 * common/config/spu/: Remove directory.
14571
14572 * doc/extend.texi: Remove references to spu.
14573 * doc/invoke.texi: Likewise.
14574 * doc/md.texi: Likewise.
14575 * doc/sourcebuild.texi: Likewise.
14576
14577 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14578
14579 PR middle-end/91603
14580 PR middle-end/91612
14581 PR middle-end/91613
14582 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14583 and SSA_NAME referring to CONSTANT_P correctly.
14584
14585 2019-09-03 Richard Biener <rguenther@suse.de>
14586
14587 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14588 (vn_nary_op_insert): Likewise.
14589 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14590 (vn_nary_op_lookup): Likewise.
14591 (vn_nary_op_insert): Likewise.
14592
14593 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14594
14595 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14596 (*op0, 1) instead of XEXP (*op1, 0).
14597
14598 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14599
14600 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14601 (aarch64_fjcvtzs): New define_insn.
14602 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14603 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14604 Add AARCH64_JSCVT.
14605 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14606 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14607 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14608 __ARM_FEATURE_JCVT where appropriate.
14609 * config/aarch64/arm_acle.h (__jcvt): Define.
14610
14611 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14612
14613 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14614 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14615 (aarch64_<frintnzs_op><mode>): New define_insn.
14616 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14617 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14618 __ARM_FEATURE_FRINT when appropriate.
14619 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14620 frint32x, frint64z, frint64x.
14621 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14622 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14623 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14624 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14625 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14626 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14627 * config/aarch64/iterators.md (VSFDF): Define.
14628 (FRINTNZX): Likewise.
14629 (frintnzs_op): Likewise.
14630
14631 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14632
14633 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14634 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14635 Cortex-A34.
14636 * config/aarch64/aarch64-tune.md: Regenerated.
14637 * doc/invoke.texi: Document the new processors.
14638
14639 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14640
14641 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14642 string.
14643 (ssbs): Likewise.
14644 (sve2): Likewise.
14645 (sve2-sm4): Likewise.
14646 (sveaes): Likewise.
14647 (svesha3): Likewise.
14648 (svebitperm): Likewise.
14649
14650 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14651 Richard Biener <rguenther@suse.de>
14652
14653 PR tree-optimization/91597
14654 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14655 BIT_AND_EXPR optimization for pointers, even if both operand
14656 ranges don't include NULL, the result can be NULL.
14657
14658 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14659
14660 PR middle-end/91605
14661 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14662 (non_mem_decl_p): ...this.
14663 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14664 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14665 unconditionally as before.
14666
14667 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14668
14669 PR target/91323
14670 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14671 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14672 * tree.def (LTGT_EXPR): Likewise.
14673 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14674
14675 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14676
14677 PR go/91617
14678 * fold-const.c (range_check_type): For enumeral and boolean
14679 type, pass 1 to type_for_size langhook instead of
14680 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14681 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14682 (build_range_check): Don't call unsigned_type_for for pointer types.
14683 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14684 range_check_type result.
14685
14686 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14687
14688 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14689 (replace_ref): Do not replace a chain of only two candidates which are
14690 valid memory references.
14691
14692 2019-09-02 Martin Liska <mliska@suse.cz>
14693
14694 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14695 Bail out when we'll end up with the same number of clusters as
14696 at the beginning.
14697 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14698 (jump_table_cluster::can_be_handled): Remove the guard
14699 as it's already handled in ::is_enabled. Allocate output
14700 after early bail out.
14701
14702 2019-09-02 Martin Liska <mliska@suse.cz>
14703
14704 PR gcov-profile/91601
14705 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14706 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14707 also negative edges.
14708 (circuit): Handle also negative edges as they can happen
14709 in some situations.
14710
14711 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14712
14713 PR target/91472
14714 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14715 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14716 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14717
14718 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14719
14720 PR middle-end/91623
14721 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14722 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14723 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14724 zero vector.
14725
14726 PR lto/91572
14727 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14728 GIMPLE_ASM TREE_LIST operands.
14729
14730 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14731
14732 * doc/generic.texi (Unary and Binary Expressions): Mark up
14733 an instance of TYPE_MIN.
14734
14735 2019-08-31 Stafford Horne <shorne@gmail.com>
14736
14737 * config/or1k/constraints.md (t): New constraint.
14738 * config/or1k/or1k.h (GOT_REGS): New register class.
14739 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14740
14741 2019-08-30 Jim Wilson <jimw@sifive.com>
14742
14743 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14744 and -fpic and -mplt then disable -msave-restore and warn.
14745
14746 2019-08-30 Martin Sebor <msebor@redhat.com>
14747
14748 PR middle-end/91599
14749 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14750 the statement doesn't have one.
14751 * gimple-pretty-print.c (percent_G_format): Same.
14752
14753 PR middle-end/91584
14754 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14755 before using them to validate MEM_REF offset.
14756
14757 2019-08-30 Marek Polacek <polacek@redhat.com>
14758
14759 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14760
14761 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14762
14763 * config/arm/arm.md (unaligned_loaddi,
14764 unaligned_storedi): New unspec insn patterns.
14765 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14766 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14767 and unaligned_storedi for 4-byte aligned memory.
14768 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14769 4-byte aligned memory.
14770
14771 2019-08-30 Martin Jambor <mjambor@suse.cz>
14772
14773 tree-optimization/91579
14774 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14775 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14776 appropriate.
14777 (arg_needs_copy_p): Removed.
14778 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14779 arg_needs_copy_p.
14780 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14781
14782 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14783
14784 * config/i386/i386-features.c
14785 (general_scalar_chain::compute_convert_gain):
14786 Correct cost for double-word shifts.
14787 (general_scalar_to_vector_candidate_p): Reject count operands
14788 greater or equal to mode bitsize.
14789
14790 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14791
14792 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14793 for moves between SSE and non-general registers and between
14794 mask and non-general registers.
14795 (ix86_register_move_cost): Remove stalled comment.
14796
14797 2019-08-29 Richard Biener <rguenther@suse.de>
14798
14799 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14800 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14801
14802 2019-08-29 Richard Biener <rguenther@suse.de>
14803
14804 PR bootstrap/91580
14805 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14806 Do not emit scalar copies for debug-insns, instead replace
14807 their uses with the reg copy used in the chain or reset them
14808 if there is a reaching definition outside of the chain as well.
14809
14810 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14811
14812 PR target/91560
14813 * config/i386/i386-expand.c (expand_vec_perm_movs,
14814 expand_vec_perm_blend, expand_vec_perm_vpermil,
14815 expand_vec_perm_pshufb, expand_vec_perm_1,
14816 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14817 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14818 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14819 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14820 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14821 comments - replace ix86_expand_vec_perm_builtin_1 with
14822 ix86_expand_vec_perm_const_1.
14823 (expand_vec_perm2_vperm2f128_vblend): New function.
14824 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14825 expand_vec_perm2_vperm2f128_vblend as last resort.
14826 (canonicalize_perm): Formatting fix.
14827
14828 PR tree-optimization/91351
14829 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14830 unsigned_type_for.
14831 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14832 range_check_type returns NULL.
14833 * tree-switch-conversion.c (switch_conversion::build_one_array):
14834 Use range_check_type instead of unsigned_type_for, don't perform
14835 linear opt if it returns NULL.
14836 (bit_test_cluster::find_bit_tests): Formatting fix.
14837 (bit_test_cluster::emit): Use range_check_type instead of
14838 unsigned_type_for.
14839 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14840 returns NULL.
14841
14842 2019-08-29 Richard Biener <rguenther@suse.de>
14843
14844 PR tree-optimization/91568
14845 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14846 (vect_update_max_nunits): Add overload for poly_uint64.
14847 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14848 (vect_build_slp_tree): Record max_nunits into the subtree
14849 and merge it upwards.
14850 (vect_print_slp_tree): Print max_nunits.
14851
14852 2019-08-28 Marek Polacek <polacek@redhat.com>
14853
14854 Implement P1152R4: Deprecating some uses of volatile.
14855 PR c++/91361
14856 * doc/invoke.texi: Document -Wvolatile.
14857
14858 2019-08-28 Marek Polacek <polacek@redhat.com>
14859
14860 PR c++/91360 - Implement C++20 P1143R2: constinit.
14861 * doc/invoke.texi: Document -Wc++20-compat.
14862
14863 2019-08-28 Martin Sebor <msebor@redhat.com>
14864
14865 PR tree-optimization/91457
14866 * builtins.c (component_size): New function.
14867 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14868 * builtins.h (compute_objsize): Add argument.
14869 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14870 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14871 (vrp_prop::check_mem_ref): Same.
14872 (vrp_prop::search_for_addr_array): Set no-warning bit.
14873 (check_array_bounds): Same.
14874
14875 2019-08-28 Martin Sebor <msebor@redhat.com>
14876
14877 PR driver/80545
14878 * opts-common.c (option_enabled): Correct checking for language
14879 options.
14880
14881 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14882
14883 * config/i386/i386.c (ix86_register_move_cost): Do not
14884 limit the cost of moves to/from XMM register to minimum 8.
14885
14886 2019-08-28 Martin Jambor <mjambor@suse.cz>
14887
14888 PR ipa/91468
14889 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14890 checking assert a normal assert to test it really is redundant.
14891 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14892 redundant test.
14893 (update_jump_functions_after_inlining): Removed combining unary
14894 arithmetic operations with an ancestor jump function.
14895 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14896 instead of t.
14897
14898 2019-08-28 Richard Biener <rguenther@suse.de>
14899
14900 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14901 add the MD problem.
14902
14903 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14904 Richard Biener <rguenther@suse.de>
14905
14906 * expr.c (expand_assignment): Handle misaligned DECLs.
14907 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14908 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14909 too.
14910 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14911 * varasm.c (build_constant_desc): Align constants of misaligned types.
14912 * config/arm/predicates.md (aligned_operand): New predicate.
14913 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14914 aligned_operand to check restrictions on memory addresses.
14915 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14916 * config/arm/vec-common.md (mov<VALL>): Likewise.
14917
14918 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14919
14920 PR libgomp/91530
14921 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14922 V_128 iterator instead of VI_128.
14923
14924 2019-08-28 Martin Liska <mliska@suse.cz>
14925
14926 PR tree-optimization/90970
14927 * builtins.c (check_access): Remove assignment to maxread
14928 as it hasn't been used since when it was introduced in r255755.
14929
14930 2019-08-27 Martin Sebor <msebor@redhat.com>
14931
14932 PR tree-optimization/91567
14933 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14934 of unknown strings.
14935 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14936 to PTRDIFF_MAX - 2.
14937
14938 2019-08-27 Jeff Law <law@redhat.com>
14939
14940 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14941 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14942
14943 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14944
14945 PR target/91528
14946 * config/i386/i386-features.c (convert_scalars_to_vector):
14947 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14948 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14949 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14950 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14951
14952 2019-08-27 Richard Biener <rguenther@suse.de>
14953
14954 * config/i386/i386-features.h
14955 (general_scalar_chain::~general_scalar_chain): Add.
14956 (general_scalar_chain::insns_conv): New bitmap.
14957 (general_scalar_chain::n_sse_to_integer): New.
14958 (general_scalar_chain::n_integer_to_sse): Likewise.
14959 (general_scalar_chain::make_vector_copies): Adjust signature.
14960 * config/i386/i386-features.c
14961 (general_scalar_chain::general_scalar_chain): Outline,
14962 initialize new members.
14963 (general_scalar_chain::~general_scalar_chain): New.
14964 (general_scalar_chain::mark_dual_mode_def): Record insns
14965 we need to insert conversions at and count them.
14966 (general_scalar_chain::compute_convert_gain): Account
14967 for conversion instructions at chain boundary.
14968 (general_scalar_chain::make_vector_copies): Generate a single
14969 copy for a def by a specific insn.
14970 (general_scalar_chain::convert_registers): First populate
14971 defs_map, then make copies at out-of chain insns.
14972
14973 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14974
14975 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14976 comment.
14977 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14978
14979 2019-08-27 Martin Liska <mliska@suse.cz>
14980
14981 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14982 loop.
14983 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14984 Enclose in anonymous namespace.
14985 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14986 hard_register initialization in braces.
14987 * tree-vrp.h (value_range_base::supports_type_p): Return false
14988 for function with boolean return type.
14989
14990 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14991
14992 * config/i386/i386.c (emit_i387_cw_initialization)
14993 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14994
14995 2019-08-26 Martin Sebor <msebor@redhat.com>
14996
14997 PR c++/83431
14998 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14999 (sprintf_dom_walker): Remove class.
15000 (get_int_range): Make argument const.
15001 (directive::fmtfunc, directive::set_precision): Same.
15002 (format_none): Same.
15003 (build_intmax_type_nodes): Same.
15004 (adjust_range_for_overflow): Same.
15005 (format_floating): Same.
15006 (format_character): Same.
15007 (format_string): Same.
15008 (format_plain): Same.
15009 (get_int_range): Cast away constness.
15010 (format_integer): Same.
15011 (get_string_length): Call get_range_strlen_dynamic. Handle
15012 null lendata.maxbound.
15013 (should_warn_p): Adjust argument scope qualifier.
15014 (maybe_warn): Same.
15015 (format_directive): Same.
15016 (parse_directive): Same.
15017 (is_call_safe): Same.
15018 (try_substitute_return_value): Same.
15019 (sprintf_dom_walker::handle_printf_call): Rename...
15020 (handle_printf_call): ...to this. Initialize target to host charmap
15021 here instead of in pass_sprintf_length::execute.
15022 (struct call_info): Make global.
15023 (sprintf_dom_walker::compute_format_length): Make global.
15024 (sprintf_dom_walker::handle_gimple_call): Same.
15025 * passes.def (pass_sprintf_length): Replace with pass_strlen.
15026 * print-rtl.c (print_pattern): Reduce the number of spaces to
15027 avoid -Wformat-truncation.
15028 * tree-pass.h (make_pass_warn_printf): New function.
15029 * tree-ssa-strlen.c (strlen_optimize): New variable.
15030 (get_string_length): Add comments.
15031 (get_range_strlen_dynamic): New function.
15032 (check_and_optimize_call): New function.
15033 (handle_integral_assign): New function.
15034 (strlen_check_and_optimize_stmt): Factor code out into
15035 strlen_check_and_optimize_call and handle_integral_assign.
15036 (strlen_dom_walker::evrp): New member.
15037 (strlen_dom_walker::before_dom_children): Use evrp member.
15038 (strlen_dom_walker::after_dom_children): Use evrp member.
15039 (printf_strlen_execute): New function.
15040 (pass_strlen::gate): Update to handle printf calls.
15041 (dump_strlen_info): New function.
15042 (pass_data_warn_printf): New variable.
15043 (pass_warn_printf): New class.
15044 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
15045 (handle_printf_call): Same.
15046 * tree-vrp.c (value_range_base::type): Adjust assertion.
15047 * vr-values.c (vr_values::update_value_range): Use type of the first
15048 argument rather than the second.
15049
15050 2019-08-26 Richard Biener <rguenther@suse.de>
15051
15052 * config/i386/i386-features.c (general_remove_non_convertible_regs):
15053 Remove.
15054 (convert_scalars_to_vector): Do not call it.
15055
15056 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15057 Uros Bizjak <ubizjak@gmail.com>
15058
15059 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
15060 CASE_MATHFN_FLOATN for roundeven.
15061 * config/i386/i386.c (ix86_i387_mode_needed): Add case
15062 I387_ROUNDEVEN.
15063 (ix86_mode_needed): Likewise.
15064 (ix86_mode_after): Likewise.
15065 (ix86_mode_entry): Likewise.
15066 (ix86_mode_exit): Likewise.
15067 (ix86_emit_mode_set): Likewise.
15068 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
15069 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
15070 (ix86_entity): Add I387_ROUNDEVEN.
15071 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
15072 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
15073 (define_int_iterator): Likewise.
15074 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
15075 (define_constant): Define ROUND_ROUNDEVEN mode.
15076 (define_attr): Add roundeven mode for i387_cw.
15077 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
15078 * internal-fn.def (ROUNDEVEN): New builtin function.
15079 * optabs.def (roundeven_optab): New optab.
15080
15081 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15082
15083 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
15084 for ROUNDEVEN.
15085 * builtins.def: Added function definitions for roundeven function
15086 variants.
15087 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
15088 function call. Adjust condition for floor, ceil, trunc and round.
15089 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
15090 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
15091 (integer_valued_real_call_p): Added case for roundeven function.
15092 * real.c (is_even): New function. Returns true if real number is even,
15093 otherwise returns false.
15094 (is_halfway_below): New function. Returns true if real number is
15095 halfway between two integers, else return false.
15096 (real_roundeven): New function. Round real number to nearest integer,
15097 rounding halfway cases towards even.
15098 * real.h (real_value): Added descriptive comments. Added function
15099 declaration for roundeven function.
15100 * doc/extend.texi (Other Builtins): List roundeven variants among
15101 functions which can be handled as builtins.
15102
15103 2019-08-26 Richard Biener <rguenther@suse.de>
15104
15105 PR target/91522
15106 PR target/91527
15107 * config/i386/i386-features.h (general_scalar_chain::defs_map):
15108 New member.
15109 (general_scalar_chain::replace_with_subreg): Remove.
15110 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15111 (general_scalar_chain::convert_reg): Adjust signature.
15112 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
15113 iterate over all defs of a reg.
15114 (general_scalar_chain::replace_with_subreg): Remove.
15115 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15116 (general_scalar_chain::make_vector_copies): Populate defs_map,
15117 place copy only after defs that are used as vectors in the chain.
15118 (general_scalar_chain::convert_reg): Emit a copy for a specific
15119 def in a specific instruction.
15120 (general_scalar_chain::convert_op): All reg uses are converted here.
15121 (general_scalar_chain::convert_insn): Emit copies for scalar
15122 uses of defs here. Replace uses with the copies we created.
15123 Replace and convert the def. Adjust REG_DEAD notes, remove
15124 REG_EQUIV/EQUAL notes.
15125 (general_scalar_chain::convert_registers): Only handle copies
15126 into the chain here.
15127
15128 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15129
15130 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
15131
15132 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15133
15134 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
15135 Add nop_convert case.
15136 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
15137 Fold all statements if requested.
15138 * tree-ssa-propagate.h (class substitute_and_fold_engine):
15139 Allow to fold all statements.
15140 * tree-vrp.c (class vrp_folder):
15141 Let substitute_and_fold_engine fold all statements.
15142
15143 2019-08-26 Richard Biener <rguenther@suse.de>
15144
15145 PR tree-optimization/91526
15146 * passes.def: Note that after late FRE we do TODO_update_address_taken.
15147 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
15148 TODO_update_address_taken.
15149
15150 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
15151
15152 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
15153 __STDC_HOSTED__.
15154
15155 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
15156
15157 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
15158 machine mode for unspec_volatile operand.
15159
15160 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
15161
15162 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
15163 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
15164 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
15165 (prefer_neon_for_64bits): Remove.
15166 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
15167 (tune_params): Remove PREF_NEON_64_FALSE uses.
15168 (arm_option_override): Remove prefer_neon selection code.
15169 (arm_print_tune_info): Remove prefer_neon_for_64bits.
15170 * config/arm/arm-protos.h (tune_params): Remove
15171 prefer_neon_for_64bits.
15172 (prefer_neon_for_64bits): Remove.
15173
15174 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
15175
15176 PR pch/61250
15177 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
15178 and issue any diagnostics needed before collecting the pre-PCH
15179 state.
15180
15181 2019-08-23 Jakub Jelinek <jakub@redhat.com>
15182
15183 PR middle-end/91283
15184 * common.opt (fexcess-precision=): Add Optimization flag. Use
15185 flag_excess_precision variable instead of
15186 flag_excess_precision_cmdline.
15187 * flags.h (class target_flag_state): Remove x_flag_excess_precision
15188 member.
15189 (flag_excess_precision): Don't define.
15190 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
15191 flag_excess_precision_cmdline. Remove comment.
15192 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
15193 and x_flag_excess_precision instead of
15194 frontend_set_flag_excess_precision_cmdline and
15195 x_flag_excess_precision_cmdline.
15196 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
15197 x_flag_excess_precision_cmdline.
15198 * toplev.c (init_excess_precision): Remove.
15199 (lang_dependent_init_target): Don't call it.
15200
15201 2019-08-23 Martin Liska <mliska@suse.cz>
15202
15203 * lto-wrapper.c (run_gcc): When setting jobserver
15204 set also parallel to 1. This was done so before r273908.
15205
15206 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
15207
15208 * config/arm/arm-cpus.in (cortex-m35p): New entry.
15209 (cortex-a76ae): Likewise.
15210 (cortex-a77): Likewise
15211 * config/arm/arm-tables.opt: Regenerate.
15212 * config/arm/arm-tune.md: Likewise.
15213 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
15214 cortex-a77 CPU options.
15215
15216 2019-08-23 Martin Liska <mliska@suse.cz>
15217
15218 * profile.c (instrument_values): Do not set
15219 0 as last argument.
15220 * tree-profile.c (gimple_gen_interval_profiler): Remove
15221 last argument.
15222 (gimple_gen_pow2_profiler): Likewise.
15223 (gimple_gen_topn_values_profiler): Likewise.
15224 (gimple_gen_ic_profiler): Likewise.
15225 (gimple_gen_time_profiler): Likewise.
15226 (gimple_gen_average_profiler): Likewise.
15227 (gimple_gen_ior_profiler): Likewise.
15228 * value-prof.c (dump_histogram_value): Use default
15229 in switch statement instead of HIST_TYPE_MAX.
15230 (stream_in_histogram_value): Likewise.
15231 (gimple_duplicate_stmt_histograms): Do not
15232 use NULL for implicitly set arguments.
15233 (gimple_divmod_values_to_profile): Do not use
15234 reserve+quick_push.
15235 (gimple_indirect_call_to_profile): Likewise.
15236 (gimple_find_values_to_profile): Use implicit
15237 function call arguments.
15238 * value-prof.h (gimple_alloc_histogram_value):
15239 Set default values.
15240 (gimple_gen_interval_profiler): Remove last argument.
15241 (gimple_gen_pow2_profiler): Likewise.
15242 (gimple_gen_topn_values_profiler): Likewise.
15243 (gimple_gen_ic_profiler): Likewise.
15244 (gimple_gen_time_profiler): Likewise.
15245 (gimple_gen_average_profiler): Likewise.
15246 (gimple_gen_ior_profiler): Likewise.
15247
15248 2019-08-22 Martin Sebor <msebor@redhat.com>
15249
15250 PR middle-end/91490
15251 * builtins.c (c_strlen): Rename argument and introduce new local.
15252 Set no-warning bit on original argument.
15253 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
15254 Fold empty and zero constructors into empty strings.
15255 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
15256 for missing initializers.
15257 * tree.c (build_string_literal): Handle optional argument.
15258 * tree.h (build_string_literal): Add defaulted argument.
15259 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
15260 no-warning bit on original expression.
15261
15262 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15263
15264 PR target/91481
15265 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15266 and UNSPEC_DARN_RAW.
15267 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
15268 UNSPECV_DARN_RAW.
15269 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
15270 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
15271 (darn): Use an unspec_volatile, and UNSPECV_DARN.
15272
15273 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15274
15275 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15276 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
15277 * config/rs6000/rs6000.md (unspec): ... here.
15278 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
15279 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15280 cmpeqb, *cmpeqb_internal): Delete, move to...
15281 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
15282 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15283 cmpeqb, *cmpeqb_internal): ... here.
15284
15285 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15286
15287 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
15288 intrinsics if __ARM_FP.
15289 Use __ARM_FEATURE_CRC32 ifdef guard.
15290
15291 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15292
15293 * config/arm/arm.md (neon_for_64bits): Remove.
15294 (avoid_neon_for_64bits): Remove.
15295 (arm_adddi3): Always split early.
15296 (arm_subdi3): Always split early.
15297 (negdi2): Remove Neon expansion.
15298 (split zero_extend): Split before reload.
15299 (split sign_extend): Split before reload.
15300
15301 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15302
15303 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
15304 (qhs_extenddi_cstr): Likewise.
15305 * config/arm/arm.md (ashldi3): Always expand early.
15306 (ashlsi3): Likewise.
15307 (ashrsi3): Likewise.
15308 (zero_extend<mode>di2): Remove Neon variants.
15309 (extend<mode>di2): Likewise.
15310 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
15311 (signed_shift_di3_neon): Likewise.
15312 (unsigned_shift_di3_neon): Likewise.
15313 (ashrdi3_neon_imm_noclobber): Likewise.
15314 (lshrdi3_neon_imm_noclobber): Likewise.
15315 (<shift>di3_neon): Likewise.
15316 (split extend): Remove DI extend split patterns.
15317
15318 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15319
15320 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
15321 (split not): Add DImode not splitter.
15322 (anddi3): Remove pattern.
15323 (anddi3_insn): Likewise.
15324 (anddi_zesidi_di): Likewise.
15325 (anddi_sesdi_di): Likewise.
15326 (anddi_notdi_di): Likewise.
15327 (anddi_notzesidi_di): Likewise.
15328 (anddi_notsesidi_di): Likewise.
15329 (iordi3): Likewise.
15330 (iordi3_insn): Likewise.
15331 (iordi_zesidi_di): Likewise.
15332 (iordi_sesidi_di): Likewise.
15333 (xordi3): Likewise.
15334 (xordi3_insn): Likewise.
15335 (xordi_sesidi_di): Likewise.
15336 (xordi_zesidi_di): Likewise.
15337 (one_cmpldi2): Likewise.
15338 (one_cmpldi2_insn): Likewise.
15339 * config/arm/constraints.md: Remove De, Df, Dg constraints.
15340 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
15341 alternative.
15342 (iwmmxt_xordi3): Likewise.
15343 (iwmmxt_anddi3): Likewise.
15344 * config/arm/neon.md (orndi3_neon): Remove pattern.
15345 (anddi_notdi_di): Likewise.
15346 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
15347 (arm_iordi_operand_neon): Likewise.
15348 (arm_xordi_operand_neon): Likewise.
15349 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
15350 (iordi_notzesidi_di): Likewise.
15351 (iordi_notdi_zesidi): Likewise.
15352 (iordi_notsesidi_di): Likewise.
15353
15354 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
15355
15356 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
15357 insn.
15358 (iorsi3_compare0_scratch): Likewise.
15359
15360 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
15361
15362 * config/aarch64/aarch64-simd-builtins.def:
15363 (ld1x4): New.
15364 (st1x4): Likewise.
15365 * config/aarch64/aarch64-simd.md:
15366 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15367 (aarch64_st1x4<VALLDIF:mode>): Likewise.
15368 (aarch64_ld1_x4_<mode>): Likewise.
15369 (aarch64_st1_x4_<mode>): Likewise.
15370 * config/aarch64/arm_neon.h:
15371 (vld1_s8_x4): New function.
15372 (vld1q_s8_x4): Likewise.
15373 (vld1_s16_x4): Likewise.
15374 (vld1q_s16_x4): Likewise.
15375 (vld1_s32_x4): Likewise.
15376 (vld1q_s32_x4): Likewise.
15377 (vld1_u8_x4): Likewise.
15378 (vld1q_u8_x4): Likewise.
15379 (vld1_u16_x4): Likewise.
15380 (vld1q_u16_x4): Likewise.
15381 (vld1_u32_x4): Likewise.
15382 (vld1q_u32_x4): Likewise.
15383 (vld1_f16_x4): Likewise.
15384 (vld1q_f16_x4): Likewise.
15385 (vld1_f32_x4): Likewise.
15386 (vld1q_f32_x4): Likewise.
15387 (vld1_p8_x4): Likewise.
15388 (vld1q_p8_x4): Likewise.
15389 (vld1_p16_x4): Likewise.
15390 (vld1q_p16_x4): Likewise.
15391 (vld1_s64_x4): Likewise.
15392 (vld1_u64_x4): Likewise.
15393 (vld1_p64_x4): Likewise.
15394 (vld1q_s64_x4): Likewise.
15395 (vld1q_u64_x4): Likewise.
15396 (vld1q_p64_x4): Likewise.
15397 (vld1_f64_x4): Likewise.
15398 (vld1q_f64_x4): Likewise.
15399 (vst1_s8_x4): Likewise.
15400 (vst1q_s8_x4): Likewise.
15401 (vst1_s16_x4): Likewise.
15402 (vst1q_s16_x4): Likewise.
15403 (vst1_s32_x4): Likewise.
15404 (vst1q_s32_x4): Likewise.
15405 (vst1_u8_x4): Likewise.
15406 (vst1q_u8_x4): Likewise.
15407 (vst1_u16_x4): Likewise.
15408 (vst1q_u16_x4): Likewise.
15409 (vst1_u32_x4): Likewise.
15410 (vst1q_u32_x4): Likewise.
15411 (vst1_f16_x4): Likewise.
15412 (vst1q_f16_x4): Likewise.
15413 (vst1_f32_x4): Likewise.
15414 (vst1q_f32_x4): Likewise.
15415 (vst1_p8_x4): Likewise.
15416 (vst1q_p8_x4): Likewise.
15417 (vst1_p16_x4): Likewise.
15418 (vst1q_p16_x4): Likewise.
15419 (vst1_s64_x4): Likewise.
15420 (vst1_u64_x4): Likewise.
15421 (vst1_p64_x4): Likewise.
15422 (vst1q_s64_x4): Likewise.
15423 (vst1q_u64_x4): Likewise.
15424 (vst1q_p64_x4): Likewise.
15425 (vst1_f64_x4): Likewise.
15426 (vst1q_f64_x4): Likewise.
15427
15428 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15429
15430 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15431
15432 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15433 Richard Sandiford <richard.sandiford@arm.com>
15434
15435 PR target/88839
15436 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15437 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15438
15439 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15440
15441 PR target/90724
15442 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15443 in reg if it fails aarch64_plus_operand predicate.
15444
15445 2019-08-21 Richard Biener <rguenther@suse.de>
15446
15447 PR tree-optimization/91482
15448 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15449 BUILT_IN_ASSUME_ALIGNED calls.
15450
15451 2019-08-21 Richard Biener <rguenther@suse.de>
15452
15453 PR target/91498
15454 PR target/91503
15455 * config/i386/i386-features.c
15456 (general_scalar_chain::make_vector_copies): Copy stack temporary
15457 rtx when using it multiple times.
15458 (general_scalar_chain::convert_reg): Likewise.
15459
15460 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15461
15462 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15463
15464 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15465
15466 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15467 catch more redundant zero initialization cases.
15468 (dse_dom_walker::dse_optimize_stmt): Likewise.
15469
15470 2019-08-20 Richard Biener <rguenther@suse.de>
15471
15472 PR lto/91307
15473 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15474 by collect2 when targetm.have_ctors_dtors which avoids dragging
15475 in temporary filenames from LTO input objects.
15476
15477 2019-08-20 Richard Biener <rguenther@suse.de>
15478
15479 PR tree-optimization/37242
15480 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15481 to (T)a + (T)b if we know that a + b does not overflow.
15482
15483 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15484
15485 PR rtl-optimization/91347
15486 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15487 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15488
15489 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15490
15491 * calls.h (function_arg_info): Add a pass_by_reference field,
15492 defaulting to false.
15493 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15494 when applying pass-by-reference semantics.
15495 (initialize_argument_information): Likewise.
15496 (emit_library_call_value_1): Likewise.
15497 * function.c (assign_parm_data_one): Remove passed_pointer field.
15498 (assign_parm_find_data_types): Don't set it.
15499 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15500 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15501 arg.pass_by_reference instead of passed_pointer.
15502
15503 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15504
15505 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15506 into a single function_arg_info, updating its fields when we
15507 apply pass-by-reference and promotion semantics. Use the
15508 function_arg_info to track the mode rather than keeping it in
15509 a separate local variable.
15510 (initialize_argument_information): Likewise. Base the final
15511 arg_to_skip on this new function_arg_info rather than creating
15512 a new one from scratch.
15513
15514 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15515
15516 * function.c (assign_parm_data_one): Replace passed_type,
15517 promoted_mode and named_arg with a function_arg_info field.
15518 (assign_parm_find_data_types): Remove local variables and
15519 assign directly to "data". Make data->passed_mode shadow
15520 data->arg.mode until promotion, then assign the promoted
15521 mode to data->arg.mode.
15522 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15523 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15524 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15525 (assign_parm_setup_block, assign_parm_setup_reg)
15526 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15527 arg.mode instead of promoted_mode, arg.type instead of passed_type
15528 and arg.named instead of named_arg. Use data->arg for
15529 function_arg_info structures that had the field values passed_type,
15530 promoted_mode and named_arg. Base other function_arg_infos on
15531 data->arg, changing the necessary properties.
15532
15533 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15534
15535 * calls.h (apply_pass_by_reference_rules): Declare.
15536 * calls.c (apply_pass_by_reference_rules): New function.
15537 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15538 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15539 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15540 * function.c (assign_parm_find_data_types): Likewise.
15541 * var-tracking.c (prepare_call_arguments): Likewise.
15542
15543 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15544
15545 * target.def (must_pass_in_stack): Take a function_arg_info instead
15546 of a mode and a type.
15547 * doc/tm.texi: Regenerate.
15548 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15549 instead of a mode and a type.
15550 (must_pass_in_stack_var_size_or_pad): Likewise.
15551 * calls.c (must_pass_in_stack_var_size): Likewise.
15552 (must_pass_in_stack_var_size_or_pad): Likewise.
15553 (initialize_argument_information): Update call to
15554 targetm.calls.must_pass_in_stack.
15555 (must_pass_va_arg_on_stack): Likewise.
15556 * function.c (assign_parm_find_entry_rtl): Likewise.
15557 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15558 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15559 (alpha_function_arg_advance): Likewise.
15560 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15561 (cr16_function_arg_advance): Likewise.
15562 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15563 (cris_arg_partial_bytes): Likewise.
15564 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15565 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15566 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15567 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15568 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15569 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15570 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15571 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15572 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15573 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15574 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15575 instead of a mode and a type.
15576 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15577 (fr30_num_arg_regs): Likewise.
15578 (fr30_setup_incoming_varargs): Update calls accordingly.
15579 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15580 (fr30_function_arg_advance): Likewise.
15581 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15582 instead of a mode and a type.
15583 * config/gcn/gcn.c (num_arg_regs): Likewise.
15584 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15585 num_arg_regs and targetm.calls.must_pass_in_stack.
15586 (gcn_arg_partial_bytes): Likewise.
15587 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15588 function_arg_info instead of a mode and a type.
15589 (classify_argument): Update call accordingly.
15590 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15591 function_arg_info instead of a mode and a type.
15592 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15593 Likewise.
15594 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15595 (rs6000_parm_needs_stack): Update call accordingly.
15596 (setup_incoming_varargs): Likewise.
15597
15598 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15599
15600 * target.def (callee_copies): Take a function_arg_info instead
15601 of a mode, type and named flag.
15602 * doc/tm.texi: Regenerate.
15603 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15604 instead of a mode, type and named flag.
15605 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15606 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15607 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15608 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15609 instead of a mode, type and named flag.
15610 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15611 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15612 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15613 * calls.h (reference_callee_copied): Take a function_arg_info
15614 instead of a mode, type and named flag.
15615 * calls.c (reference_callee_copied): Likewise.
15616 (initialize_argument_information): Update call accordingly.
15617 (emit_library_call_value_1): Likewise.
15618 * function.c (gimplify_parameters): Likewise.
15619 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15620 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15621 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15622 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15623 (TARGET_CALLEE_COPIES): Define to
15624 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15625 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15626 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15627 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15628 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15629 instead of a mode, type and named flag.
15630 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15631 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15632 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15633 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15634 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15635 (TARGET_CALLEE_COPIES): Define to
15636 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15637 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15638 instead of a mode, type and named flag.
15639 * config/sh/sh.c (sh_callee_copies): Likewise.
15640 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15641 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15642 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15643
15644 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15645
15646 * target.def (function_arg_advance): Take a function_arg_info instead
15647 of a mode, type and named flag.
15648 * doc/tm.texi: Regenerate.
15649 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15650 instead of a mode, type and named flag.
15651 * targhooks.c (default_function_arg_advance): Likewise.
15652 * calls.c (initialize_argument_information): Update call to
15653 targetm.calls.function_arg_advance.
15654 (emit_library_call_value_1): Likewise.
15655 * dse.c (get_call_args): Likewise.
15656 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15657 * function.c (assign_parms, gimplify_parameters): Likewise.
15658 * var-tracking.c (prepare_call_arguments): Likewise.
15659 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15660 function_arg_info instead of a mode, type and named flag.
15661 (aarch64_setup_incoming_varargs): Update call accordingly.
15662 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15663 function_arg_info instead of a mode, type and named flag.
15664 (alpha_setup_incoming_varargs): Update call accordingly.
15665 * config/arc/arc.c (arc_function_arg_advance): Take a
15666 function_arg_info instead of a mode, type and named flag.
15667 (arc_setup_incoming_varargs): Update call accordingly.
15668 * config/arm/arm.c (arm_function_arg_advance): Take a
15669 function_arg_info instead of a mode, type and named flag.
15670 (cmse_func_args_or_return_in_stack): Update call accordingly.
15671 (arm_function_ok_for_sibcall): Likewise.
15672 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15673 * config/avr/avr.c (avr_function_arg_advance): Take a
15674 function_arg_info instead of a mode, type and named flag.
15675 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15676 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15677 (c6x_call_saved_register_used): Update call accordingly.
15678 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15679 function_arg_info instead of a mode, type and named flag.
15680 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15681 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15682 (csky_setup_incoming_varargs): Update call accordingly.
15683 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15684 function_arg_info instead of a mode, type and named flag.
15685 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15686 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15687 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15688 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15689 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15690 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15691 (ix86_setup_incoming_varargs): Update call accordingly.
15692 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15693 function_arg_info instead of a mode, type and named flag.
15694 (ia64_setup_incoming_varargs): Update call accordingly.
15695 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15696 function_arg_info instead of a mode, type and named flag.
15697 (iq2000_expand_prologue): Update call accordingly.
15698 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15699 function_arg_info instead of a mode, type and named flag.
15700 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15701 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15702 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15703 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15704 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15705 Likewise.
15706 (microblaze_expand_prologue): Update call accordingly.
15707 * config/mips/mips.c (mips_function_arg_advance): Take a
15708 function_arg_info instead of a mode, type and named flag.
15709 (mips_setup_incoming_varargs): Update call accordingly.
15710 (mips_output_args_xfer): Likewise.
15711 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15712 function_arg_info instead of a mode, type and named flag.
15713 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15714 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15715 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15716 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15717 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15718 (nios2_setup_incoming_varargs): Update call accordingly.
15719 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15720 function_arg_info instead of a mode, type and named flag.
15721 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15722 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15723 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15724 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15725 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15726 (riscv_setup_incoming_varargs): Update call accordingly.
15727 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15728 function_arg_info instead of a mode, type and named flag.
15729 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15730 Likewise.
15731 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15732 (rs6000_parm_needs_stack): Update call accordingly.
15733 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15734 instead of a mode, type and named flag.
15735 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15736 (s390_call_saved_register_used): Update call accordingly.
15737 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15738 instead of a mode, type and named flag.
15739 (sh_output_mi_thunk): Update call accordingly.
15740 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15741 function_arg_info instead of a mode, type and named flag.
15742 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15743 (spu_setup_incoming_varargs): Update call accordingly.
15744 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15745 function_arg_info instead of a mode, type and named flag.
15746 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15747 (tilegx_setup_incoming_varargs): Update call accordingly.
15748 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15749 function_arg_info instead of a mode, type and named flag.
15750 (tilegx_setup_incoming_varargs): Update call accordingly.
15751 * config/v850/v850.c (v850_function_arg_advance): Take a
15752 function_arg_info instead of a mode, type and named flag.
15753 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15754 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15755 (visium_setup_incoming_varargs): Update call accordingly.
15756 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15757 function_arg_info instead of a mode, type and named flag.
15758
15759 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15760
15761 * target.def (function_arg, function_incoming_arg): Take a
15762 function_arg_info instead of a mode, tree and named flag.
15763 * doc/tm.texi: Regenerate.
15764 * targhooks.h (default_function_arg): Take a function_arg_info
15765 instead of a mode, tree and named flag.
15766 (default_function_incoming_arg): Likewise.
15767 * targhooks.c (default_function_arg): Likewise.
15768 (default_function_incoming_arg): Likewise.
15769 * calls.h (function_arg_info::end_marker_p): New function.
15770 (function_arg_info::end_marker): Likewise.
15771 * calls.c (prepare_call_address, initialize_argument_information)
15772 (expand_call, emit_library_call_value_1): Update calls to
15773 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15774 * dse.c: Include calls.h.
15775 (get_call_args): Update call to targetm.calls.function_arg.
15776 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15777 * var-tracking.c (prepare_call_arguments): Likewise.
15778 * function.c (assign_parm_find_entry_rtl): Update call to
15779 targetm.calls.function_incoming_arg.
15780 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15781 function_arg_info instead of a mode, tree and named flag.
15782 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15783 * config/arc/arc.c (arc_function_arg): Likewise.
15784 * config/arm/arm.c (arm_function_arg): Likewise.
15785 (cmse_func_args_or_return_in_stack): Update call accordingly.
15786 (arm_function_ok_for_sibcall): Likewise.
15787 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15788 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15789 instead of a mode, tree and named flag.
15790 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15791 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15792 (c6x_call_saved_register_used): Update call accordingly.
15793 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15794 instead of a mode, tree and named flag.
15795 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15796 (cris_function_arg_1): Likewise.
15797 * config/csky/csky.c (csky_function_arg): Likewise.
15798 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15799 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15800 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15801 (frv_function_arg_1): Likewise.
15802 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15803 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15804 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15805 * config/i386/i386.c (ix86_function_arg): Likewise.
15806 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15807 (ia64_function_arg_1): Likewise.
15808 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15809 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15810 accordingly.
15811 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15812 instead of a mode, tree and named flag.
15813 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15814 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15815 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15816 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15817 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15818 (microblaze_expand_prologue): Update call accordingly.
15819 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15820 instead of a mode, tree and named flag.
15821 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15822 (mmix_function_arg_1): Likewise.
15823 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15824 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15825 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15826 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15827 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15828 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15829 (nvptx_function_incoming_arg): Likewise.
15830 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15831 * config/pa/pa.c (pa_function_arg): Likewise.
15832 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15833 * config/pru/pru.c (pru_function_arg): Likewise.
15834 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15835 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15836 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15837 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15838 (rs6000_parm_needs_stack): Update call accordingly.
15839 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15840 instead of a mode, tree and named flag.
15841 * config/s390/s390.c (s390_function_arg): Likewise.
15842 (s390_call_saved_register_used): Update call accordingly.
15843 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15844 instead of a mode, tree and named flag.
15845 (sh_output_mi_thunk): Update call accordingly.
15846 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15847 (sparc_function_incoming_arg): Take a function_arg_info instead of
15848 a mode, tree and named flag.
15849 * config/spu/spu.c (spu_function_arg): Likewise.
15850 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15851 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15852 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15853 * config/v850/v850.c (v850_function_arg): Likewise.
15854 * config/vax/vax.c (vax_function_arg): Likewise.
15855 * config/visium/visium.c (visium_function_arg): Likewise.
15856 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15857 (xtensa_function_incoming_arg): Likewise.
15858
15859 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15860
15861 * target.def (setup_incoming_varargs): Take a function_arg_info
15862 instead of a mode and tree.
15863 * doc/tm.texi: Regenerate.
15864 * targhooks.h (default_setup_incoming_varargs): Take a
15865 function_arg_info instead of a mode and tree.
15866 * targhooks.c (default_setup_incoming_varargs): Likewise.
15867 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15868 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15869 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15870 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15871 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15872 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15873 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15874 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15875 Likewise.
15876 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15877 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15878 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15879 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15880 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15881 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15882 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15883 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15884 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15885 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15886 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15887 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15888 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15889 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15890 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15891 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15892 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15893 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15894 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15895 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15896 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15897 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15898 * function.c (assign_parms_setup_varargs): Update call to
15899 targetm.calls.setup_incoming_varargs.
15900
15901 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15902
15903 * target.def (pass_by_reference): Take a function_arg_info instead
15904 of a mode, type and named flag.
15905 * doc/tm.texi: Regenerate.
15906 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15907 accordingly.
15908 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15909 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15910 function_arg_info instead of a mode, type and named flag.
15911 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15912 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15913 mode, type and named flag.
15914 * calls.c (pass_by_reference): Likewise.
15915 (pass_va_arg_by_reference): Update call accordingly.
15916 (initialize_argument_information): Likewise.
15917 (emit_library_call_value_1): Likewise.
15918 * function.c (assign_parm_find_data_types): Likewise.
15919 * var-tracking.c (prepare_call_arguments): Likewise.
15920 * stor-layout.c: Include calls.h.
15921 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15922 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15923 function_arg_info instead of a mode, type and named flag.
15924 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15925 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15926 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15927 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15928 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15929 (c6x_call_saved_register_used): Update call to pass_by_reference.
15930 * config/cris/cris.c (cris_pass_by_reference): Take a
15931 function_arg_info instead of a mode, type and named flag.
15932 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15933 function_arg_info instead of a mode, type and named flag.
15934 (epiphany_arg_partial_bytes): Update call accordingly.
15935 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15936 function_arg_info instead of a mode, type and named flag.
15937 (ft32_arg_partial_bytes): Update call accordingly.
15938 * config/i386/i386.c (ix86_pass_by_reference): Take a
15939 function_arg_info instead of a mode, type and named flag.
15940 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15941 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15942 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15943 (m32r_return_in_memory): Update call accordingly.
15944 * config/mips/mips.c (mips_pass_by_reference): Take a
15945 function_arg_info instead of a mode, type and named flag.
15946 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15947 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15948 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15949 (moxie_arg_partial_bytes): Update call accordingly.
15950 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15951 function_arg_info instead of a mode, type and named flag.
15952 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15953 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15954 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15955 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15956 (riscv_return_in_memory): Update call accordingly.
15957 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15958 function_arg_info instead of a mode, type and named flag.
15959 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15960 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15961 * config/s390/s390.c (s390_pass_by_reference): Take a
15962 function_arg_info instead of a mode, type and named flag.
15963 (s390_call_saved_register_used): Update call accordingly.
15964 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15965 instead of a mode, type and named flag.
15966 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15967 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15968 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15969 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15970 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15971 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15972
15973 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15974
15975 * target.def (arg_partial_bytes): Take a function_arg_info instead
15976 of a mode, type and named flag.
15977 * doc/tm.texi: Regenerate.
15978 * target.h (function_arg_info): Declare.
15979 * calls.h (function_arg_info): New class.
15980 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15981 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15982 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15983 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15984 * calls.c (initialize_argument_information): Update call to
15985 targetm.calls.partial_bytes.
15986 (emit_library_call_value_1): Likewise.
15987 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15988 * function.c (assign_parm_find_entry_rtl): Likewise.
15989 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15990 function_arg_info instead of a mode, type and named flag.
15991 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15992 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15993 (cmse_func_args_or_return_in_stack): Update accordingly.
15994 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15995 function_arg_info instead of a mode, type and named flag.
15996 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15997 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15998 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15999 * config/fr30/fr30.c: Include calls.h.
16000 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
16001 type and named flag.
16002 * config/frv/frv.c: Include calls.h.
16003 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
16004 type and named flag.
16005 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
16006 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
16007 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
16008 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
16009 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
16010 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
16011 * config/microblaze/microblaze.c (function_arg_partial_bytes):
16012 Likewise.
16013 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
16014 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
16015 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
16016 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
16017 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
16018 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
16019 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
16020 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
16021 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
16022 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
16023 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
16024 (rs6000_parm_needs_stack): Update call accordingly.
16025 * config/sh/sh.c (sh_arg_partial_bytes): Take a
16026 function_arg_info instead of a mode, type and named flag.
16027 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
16028 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
16029
16030 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16031
16032 * calls.h (must_pass_va_arg_in_stack): Declare.
16033 * calls.c (must_pass_va_arg_in_stack): New function.
16034 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
16035 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
16036 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
16037 Likewise.
16038 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16039
16040 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16041
16042 * calls.h (pass_va_arg_by_reference): Declare.
16043 * calls.c (pass_va_arg_by_reference): New function.
16044 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
16045 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
16046 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
16047 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
16048 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
16049 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
16050 (mips_gimplify_va_arg_expr): Likewise.
16051 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
16052 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
16053 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
16054 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
16055 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
16056 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
16057 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
16058 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
16059 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
16060 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16061 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
16062
16063 2019-08-20 Richard Biener <rguenther@suse.de>
16064
16065 PR target/91498
16066 * config/i386/i386-features.c (general_scalar_chain::convert_op):
16067 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
16068 (convert_scalars_to_vector): Add timode_p parameter and use it
16069 to guard TImode-only operation.
16070 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
16071 (pass_stv::execute): Pass down timode_p.
16072
16073 2019-08-20 Lili Cui <lili.cui@intel.com>
16074
16075 * common/config/i386/i386-common.c
16076 (processor_names): Add tigerlake and cooperlake.
16077 (processor_alias_table): Add tigerlake and cooperlake.
16078 * config.gcc: Add -march=tigerlake and cooperlake.
16079 * config/i386/driver-i386.c
16080 (host_detect_local_cpu): Detect tigerlake and cooperlake.
16081 Add "has_avx" to classify processor.
16082 * config/i386/i386-builtins.c (processor_model) :
16083 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
16084 (arch_names_table): Add tigerlake and cooperlake.
16085 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
16086 and PROCESSOR_COOPERLAKE.
16087 * config/i386/i386-c.c
16088 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
16089 * config/i386/i386-options.c
16090 (m_TIGERLAKE): Define.
16091 (m_COOPERLAKE): Ditto.
16092 (m_CORE_AVX512): Ditto.
16093 (processor_cost_table): Add cascadelake.
16094 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
16095 * config/i386/i386.h
16096 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
16097 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16098 (PTA_MOVDIRI): Ditto.
16099 (PTA_MOVDIR64B): Ditto.
16100 (PTA_COOPERLAKE): Ditto.
16101 (PTA_TIGERLAKE): Ditto.
16102 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16103 * doc/extend.texi: Add tigerlake and cooperlake.
16104 * doc/invoke.texi: Add tigerlake and cooperlake.
16105
16106 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
16107
16108 * doc/install.texi (Specific, alpha): Remove note to use
16109 binutils 2.11.2 or later.
16110
16111 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16112
16113 PR middle-end/89544
16114 * function.c (assign_parm_find_stack_rtl): Use larger alignment
16115 when possible.
16116
16117 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
16118
16119 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
16120 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
16121 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
16122 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
16123 * config/aarch64/constraints.md (Dt): New constraint
16124 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
16125
16126 2019-08-19 Richard Biener <rguenther@suse.de>
16127
16128 PR tree-optimization/91403
16129 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
16130 cases we can handle with tail-recursion...
16131 (follow_ssa_edge_expr): ... here. Do so.
16132
16133 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
16134
16135 PR target/91441
16136 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
16137 implemented for -fsanitize=kernel-address, and merge check logic
16138 with -fsanitize=address.
16139
16140 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
16141
16142 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
16143 for cpu and machine. Factor 64/32b builtins.
16144
16145 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
16146
16147 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
16148 gone, point to sourceforge.net.
16149
16150 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16151
16152 * doc/ux.texi (User Experience Guidelines): Update reference.
16153
16154 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16155
16156 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
16157 not LGPL".
16158
16159 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
16160
16161 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
16162 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
16163
16164 2019-08-16 Martin Sebor <msebor@redhat.com>
16165
16166 * tree.def (TYPE_SIZE): Clarify.
16167 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
16168
16169 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16170
16171 PR tree-optimization/91109
16172 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
16173 * lra.c (lra): Use lra_need_for_scratch_reg_p.
16174 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
16175
16176 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
16177
16178 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
16179 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
16180 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
16181 (uavg<mode>3_ceil): New expander.
16182 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
16183 mode iterator when creating CONST1_RTX.
16184 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
16185 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
16186 mode iterator for const1_operand predicate.
16187
16188 2019-08-16 Richard Biener <rguenther@suse.de>
16189
16190 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
16191 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
16192 follow_ssa_edge.
16193 (follow_ssa_edge_in_condition_phi_branch): Likewise.
16194 (analyze_evolution_in_loop): Likewise.
16195 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
16196 (follow_ssa_edge_expr): ... here. Refactor code.
16197
16198 2019-08-16 Richard Biener <rguenther@suse.de>
16199
16200 PR target/91469
16201 * config/i386/i386-features.c
16202 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
16203
16204 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16205
16206 PR other/91255
16207 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
16208 only if subst_name matches curr_attr string.
16209
16210 2019-08-16 Richard Biener <rguenther@suse.de>
16211
16212 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
16213 stmt at gsi_p, instead replace it with a NOP removed later.
16214 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
16215 that became dead because of that.
16216
16217 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
16218
16219 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
16220 for which we can't represent a range.
16221 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
16222 set_varying.
16223 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
16224 Set VR_UNDEFINED if type is not supported.
16225 * tree-ssanames.c (get_range_info): Pass type to set_varying.
16226 * tree-vrp.c (value_range_base::check): Assert that a varying has
16227 min/max set.
16228 (value_range_base::equal_p): Early bail for undefines.
16229 (value_range_base::set_varying): Accept a type.
16230 (value_range::set_varying): Same.
16231 (value_range_base::type): VARYING can have a type, while UNDEFINE
16232 is typeless.
16233 (value_range_base::dump): Print type for VARYING nodes.
16234 (value_range_base::set): Add type to VARYING.
16235 (extract_range_from_multiplicative_op): Pass type to set_varying.
16236 (extract_range_from_binary_expr): Same.
16237 (value_range_base::intersect_helper): Same.
16238 (value_range_base::union_helper): Same.
16239 (value_range_base::normalize_symbolics): Same.
16240 (determine_value_range_1): Same.
16241 * tree-vrp.h (class value_range_base): Add type to set_varying.
16242 Add prototype for dump(void).
16243 Add prototype for supports_type_p.
16244 (class value_range): Add type to set_varying.
16245 Add prototype for dump(void).
16246 * vr-values.c (set_value_range_to_truthvalue): Pass type to
16247 set_varying.
16248 (vr_values::get_lattice_entry): Set varying even if propagation
16249 finished.
16250 Pass type to set_varying.
16251 (vr_values::get_value_range): Remove vr_const_varying.
16252 Reallocate the lattice if needed.
16253 (vr_values::update_value_range): Pass type to set_varying.
16254 (vr_values::extract_range_for_var_from_comparison_expr): Same.
16255 (vr_values::extract_range_from_binary_expr): Same.
16256 (vr_values::extract_range_from_unary_expr): Same.
16257 (vr_values::extract_range_from_cond_expr): Same.
16258 (vr_values::check_for_binary_op_overflow): Same.
16259 (vr_values::extract_range_basic): Same.
16260 (vr_values::extract_range_from_assignment): Same.
16261 (vr_values::vr_values): Increase size of num_vr_values.
16262 (vr_values::extract_range_from_phi_node): Pass type to
16263 set_varying.
16264
16265 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
16266
16267 PR target/90878
16268 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
16269 for costs of hard register moves.
16270 (ix86_register_move_cost): Likewise.
16271 * config/i386/i386.h (processor_costs): Move costs of hard
16272 register moves to hard_register. Add int_load, int_store,
16273 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16274 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
16275 for costs of RTL expressions.
16276 * config/i386/x86-tune-costs.h: Move costs of hard register
16277 moves to hard_register. Duplicate int_load, int_store,
16278 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16279 sse_load, sse_store for costs of RTL expressions.
16280
16281 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16282
16283 * target.def (setup_incoming_vararg_bounds): Remove.
16284 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
16285 * doc/tm.texi: Regenerate.
16286 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
16287 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
16288 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
16289 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
16290
16291 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16292
16293 MSP430: Fix lines over 80 characters long in
16294 config/msp430/*.{c,h} files
16295
16296 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
16297 specifier in string.
16298 (msp430_select_hwmult_lib): Split line more than 80 characters long.
16299 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
16300 redundant old comment.
16301 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16302 Split line more than 80 characters long.
16303 * config/msp430/msp430.c (msp430_option_override): Likewise.
16304 (msp430_return_in_memory): Likewise.
16305 (msp430_gimplify_va_arg_expr): Likewise.
16306 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
16307 (msp430_legitimate_constant): Likewise.
16308 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
16309 (msp430_attr): Likewise.
16310 (msp430_data_attr): Likewise.
16311 (msp430_start_function): Likewise.
16312 (gen_prefix): Likewise.
16313 (msp430_init_sections): Likewise.
16314 (msp430_select_section): Likewise.
16315 (msp430_function_section): Likewise.
16316 (msp430_unique_section): Likewise.
16317 (msp430_output_aligned_decl_common): Likewise.
16318 (msp430_do_not_relax_short_jumps): Likewise.
16319 (msp430_init_builtins): Likewise.
16320 (msp430_expand_delay_cycles): Likewise.
16321 (msp430_expand_prologue): Likewise.
16322 (msp430_expand_epilogue): Likewise.
16323 (msp430_expand_helper): Likewise.
16324 (msp430_split_movsi): Likewise.
16325 (msp430_print_operand): Likewise.
16326 (msp430_return_addr_rtx): Likewise.
16327 (msp430x_extendhisi): Likewise.
16328 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
16329 (ASM_SPEC): Likewise.
16330 Remove very obvious comments.
16331 (LIB_SPEC): Split line more than 80 characters long.
16332 (EH_RETURN_HANDLER_RTX): Likewise.
16333 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16334
16335 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16336
16337 MSP430: Fix whitespace errors and incorrect indentation in
16338 config/msp430/*.{c,h} files
16339
16340 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
16341 (msp430_select_hwmult_lib): Likewise.
16342 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
16343 (msp430_extract_mcu_data): Likewise.
16344 (struct t_msp430_mcu_data): Likewise.
16345 * config/msp430/msp430.c (struct machine_function): Remove whitespace
16346 before left square bracket.
16347 (msp430_option_override): Fix indentation.
16348 (msp430_hard_regno_nregs_with_padding): Likewise.
16349 (msp430_initial_elimination_offset): Likewise.
16350 (msp430_special_register_convention_p): Remove whitespace before left
16351 square bracket and after exclamation mark.
16352 (msp430_evaluate_arg): Likewise.
16353 (msp430_callee_copies): Fix indentation.
16354 (msp430_gimplify_va_arg_expr): Likewise.
16355 (msp430_function_arg_advance): Remove whitespace before left square
16356 bracket.
16357 (reg_ok_for_addr): Likewise.
16358 (msp430_preserve_reg_p): Likewise.
16359 (msp430_compute_frame_info): Likewise.
16360 (msp430_asm_output_addr_const_extra): Add space between function name
16361 and open parenthesis.
16362 (has_section_name): Fix indentation.
16363 (msp430_attr): Remove trailing whitespace.
16364 (msp430_section_attr): Likewise.
16365 (msp430_data_attr): Likewise.
16366 (struct msp430_attribute_table): Fix comment and whitespace.
16367 (msp430_start_function): Remove whitespace before left square bracket.
16368 Add space between function name and open parenthesis.
16369 (msp430_select_section): Remove trailing whitespace.
16370 (msp430_section_type_flags): Remove trailing whitespace.
16371 (msp430_unique_section): Remove space before closing parenthesis.
16372 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16373 (msp430_builtins): Remove whitespace before left square bracket.
16374 (msp430_init_builtins): Fix indentation.
16375 (msp430_expand_prologue): Remove whitespace before left square bracket.
16376 Remove space before closing parenthesis.
16377 (msp430_expand_epilogue): Remove whitespace before left square bracket.
16378 (msp430_split_movsi): Remove space before closing parenthesis.
16379 (helper_function_name_mappings): Fix indentation.
16380 (msp430_use_f5_series_hwmult): Fix whitespace.
16381 (use_32bit_hwmult): Likewise.
16382 (msp430_no_hwmult): Likewise.
16383 (msp430_output_labelref): Remove whitespace before left square bracket.
16384 (msp430_print_operand_raw): Likewise.
16385 (msp430_print_operand_addr): Likewise.
16386 (msp430_print_operand): Add two spaces after '.' in comment.
16387 Fix trailing whitespace.
16388 (msp430x_extendhisi): Fix indentation.
16389 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16390 tab.
16391 (PC_REGNUM): Likewise.
16392 (STACK_POINTER_REGNUM): Likewise.
16393 (CC_REGNUM): Likewise.
16394
16395 2019-08-15 Richard Biener <rguenther@suse.de>
16396
16397 PR target/91454
16398 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16399 helper.
16400 (general_scalar_chain::make_vector_copies): Use it.
16401
16402 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16403
16404 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16405
16406 2019-08-15 Martin Liska <mliska@suse.cz>
16407
16408 * tree-ssa-dce.c (propagate_necessity): We can't reach now
16409 operators with no arguments.
16410 (eliminate_unnecessary_stmts): Likewise here.
16411
16412 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
16413
16414 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16415 <case COMPARE>: Revert 2019-08-14 change.
16416 (convertible_comparison_p): Revert 2019-08-14 change. Return false
16417 for (TARGET_64BIT || mode != DImode).
16418
16419 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
16420
16421 * tree-vrp.c (value_range_base::set): Merge in code from
16422 value_range_base::set_and_canonicalize.
16423 Enforce canonicalization at set time.
16424 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16425 (value_range_base::set_undefined): Inline call to set().
16426 (value_range_base::set_varying): Same.
16427 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16428 (vrp_val_max): New argument handle_pointers.
16429 (vrp_val_min): Same.
16430 (ranges_from_anti_range): Same.
16431 (extract_range_into_wide_ints): Use tree argument instead of sign
16432 and precision.
16433 (extract_range_from_multiplicative_op): Take in tree type instead
16434 of precision and sign. Adapt function for canonicalized ranges.
16435 (extract_range_from_binary_expr): Pass type to
16436 extract_range_from_multiplicative_op.
16437 Adapt for canonicalized ranges.
16438 (extract_range_from_unary_expr): Same.
16439 (value_range_base::intersect_helper): Adjust for canonicalized
16440 ranges.
16441 (value_range_base::union_helper): Same.
16442 (value_range_base::normalize_symbolics): New.
16443 * tree-vrp.h (class value_range_base): Remove
16444 set_and_canonicalize.
16445 New prototype for normalize_symbolics.
16446 (class value_range): Remove set_and_canonicalize.
16447 (vrp_val_min): Adjust prototype.
16448 (vrp_val_max): Same.
16449 * vr-values.c
16450 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16451 instead of set_and_canonicalize.
16452
16453 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16454
16455 PR middle-end/91444
16456 * tree-vect-stmts.c (vectorizable_call): Check that the function
16457 is a BUILT_IN_MD function before passing it to
16458 targetm.vectorize.builtin_md_vectorized_function.
16459
16460 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16461
16462 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16463 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16464 (aarch64_select_early_remat_modes): Use it.
16465
16466 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16467
16468 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16469 16 for SVE predicates even if they are fixed-length.
16470
16471 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16472
16473 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16474 operand order match the MOV /Z alias.
16475
16476 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16477
16478 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16479 the vector pattern as an aarch64_svpattern argument. Update the
16480 overloaded caller accordingly.
16481 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16482 (aarch64_output_sve_vector_inc_dec): Likewise.
16483
16484 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16485
16486 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16487 multiplication case, try to compute VG * (lowest set bit) directly
16488 rather than always basing the multiplication on VG. Use
16489 expand_mult for the multiplication if we can.
16490
16491 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16492
16493 * config/aarch64/aarch64-protos.h
16494 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16495 (aarch64_sve_inc_dec_immediate_p): Rename to...
16496 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16497 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16498 (aarch64_output_sve_scalar_inc_dec): Declare.
16499 (aarch64_output_sve_inc_dec_immediate): Rename to...
16500 (aarch64_output_sve_vector_inc_dec): ...this.
16501 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16502 (aarch64_output_sve_scalar_inc_dec): New functions.
16503 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16504 arguments. Only handle true ADDVL and ADDPL instructions;
16505 don't emit an INC or DEC.
16506 (aarch64_sve_inc_dec_immediate_p): Rename to...
16507 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16508 (aarch64_output_sve_inc_dec_immediate): Rename to...
16509 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16510 aarch64_sve_vector_inc_dec_immediate_p.
16511 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16512 (aarch64_sve_plus_immediate): New predicates.
16513 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16514 rather than aarch64_sve_addvl_addpl_immediate.
16515 (aarch64_sve_inc_dec_immediate): Rename to...
16516 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16517 aarch64_sve_vector_inc_dec_immediate_p.
16518 (aarch64_sve_add_operand): Update accordingly.
16519 * config/aarch64/constraints.md (Uai): New constraint.
16520 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16521 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16522 operand into a register if it satisfies aarch64_sve_plus_immediate.
16523 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16524 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16525 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16526 aarch64_output_sve_vector_inc_dec instead of
16527 aarch64_output_sve_inc_dec_immediate.
16528
16529 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16530
16531 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16532 (UNSPEC_REVW): New constants.
16533 (elem_bits): New mode attribute.
16534 (SVE_INT_UNARY): New int iterator.
16535 (optab): Handle UNSPEC_REV[BHW].
16536 (sve_int_op): New int attribute.
16537 (min_elem_bits): Handle VNx16QI and the predicate modes.
16538 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16539 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16540 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16541 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16542 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16543 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16544 unspecs based on the total width of the reversed data.
16545 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16546 reinterpret followed by a subreg on big-endian targets.
16547
16548 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16549 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16550
16551 * config/aarch64/aarch64-sve.md
16552 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16553 alternatives in which one of the inputs is in the same register
16554 as the output.
16555
16556 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16557
16558 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16559 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16560
16561 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16562
16563 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16564 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16565
16566 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16567 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16568
16569 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16570 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16571 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16572
16573 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16574 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16575
16576 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16577 Add an alternative that uses reversed shifts.
16578
16579 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16580
16581 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16582 struct.
16583
16584 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16585
16586 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16587 a commutativity marker.
16588
16589 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16590 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16591
16592 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16593 (aarch64_prepare_sve_cond_int_fma): Declare.
16594 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16595 (aarch64_prepare_sve_int_fma): New functions.
16596 (aarch64_prepare_sve_cond_int_fma): Likewise.
16597 * config/aarch64/aarch64-sve.md
16598 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16599 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16600 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16601 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16602 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16603 (*madd<mode>): Rename to...
16604 (*fma<mode>4): ...this.
16605 (*msub<mode>): Rename to...
16606 (*fnma<mode>4): ...this.
16607
16608 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16609 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16610
16611 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16612 Print 2.0 naturally.
16613 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16614 * config/aarch64/predicates.md
16615 (aarch64_sve_float_negated_arith_immediate): New predicate,
16616 renamed from aarch64_sve_float_arith_with_sub_immediate.
16617 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16618 positive and negative constants.
16619 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16620 or an aarch64_sve_float_arith_with_sub_immediate.
16621 * config/aarch64/constraints.md (vsN): Use
16622 aarch64_sve_float_negated_arith_immediate.
16623 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16624 iterator.
16625 (sve_pred_fp_rhs2_immediate): New int attribute.
16626 * config/aarch64/aarch64-sve.md
16627 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16628 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16629 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16630 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16631 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16632 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16633
16634 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16635 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16636
16637 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16638 (*aarch64_cond_abd<SVE_F:mode>_3)
16639 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16640
16641 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16642 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16643
16644 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16645 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16646
16647 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16648 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16649
16650 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16651 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16652 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16653 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16654 optabs.
16655 * optabs.h (create_convert_operand_from): Expand comment.
16656 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16657 when mapping scalar rtxes to vector operands.
16658 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16659 ashiftrt and lshiftrt.
16660 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16661 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16662 (*cond_<optab><mode>_any_const): New patterns.
16663
16664 2019-08-15 Martin Liska <mliska@suse.cz>
16665
16666 PR ipa/91438
16667 * cgraph.c (cgraph_node::remove): When setting
16668 n->origin = NULL for all nested functions, reset
16669 also next_nested.
16670
16671 2019-08-15 Martin Liska <mliska@suse.cz>
16672
16673 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16674 and next_nested.
16675
16676 2019-08-15 Martin Liska <mliska@suse.cz>
16677
16678 PR ipa/91404
16679 * passes.c (order): Remove.
16680 (uid_hash_t): Likewise).
16681 (remove_cgraph_node_from_order): Remove from set
16682 of pointers (cgraph_node *).
16683 (insert_cgraph_node_to_order): New.
16684 (duplicate_cgraph_node_to_order): New.
16685 (do_per_function_toporder): Register all 3 cgraph hooks.
16686 Skip removed_nodes now as we know about all of them.
16687
16688 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16689
16690 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16691 <case E_V8QImode>: Use vector_set path for
16692 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16693 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16694 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16695
16696 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16697
16698 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16699
16700 2019-08-14 Martin Sebor <msebor@redhat.com>
16701
16702 PR tree-optimization/91294
16703 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16704 source length as exact.
16705
16706 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16707
16708 * doc/extend.texi: Add "noinit" attribute documentation.
16709 * doc/sourcebuild.texi: Add noinit effective target documentation.
16710 * varasm.c (default_section_type_flags): Add support for "noinit"
16711 section.
16712 (default_elf_select_section): Add support for "noinit" attribute.
16713 * config/msp430/msp430.c (msp430_attribute_table): Remove
16714 "noinit" entry.
16715
16716 2019-08-14 Richard Biener <rguenther@suse.de>
16717 Uroš Bizjak <ubizjak@gmail.com>
16718
16719 PR target/91154
16720 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16721 mode arguments.
16722 (scalar_chain::smode): New member.
16723 (scalar_chain::vmode): Likewise.
16724 (dimode_scalar_chain): Rename to...
16725 (general_scalar_chain): ... this.
16726 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16727 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16728 base with TImode and V1TImode.
16729 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16730 (general_scalar_chain::vector_const_cost): Adjust for SImode
16731 chains.
16732 (general_scalar_chain::compute_convert_gain): Likewise. Add
16733 {S,U}{MIN,MAX} support.
16734 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16735 (general_scalar_chain::make_vector_copies): Likewise. Handle
16736 non-DImode chains appropriately.
16737 (general_scalar_chain::convert_reg): Likewise.
16738 (general_scalar_chain::convert_op): Likewise.
16739 (general_scalar_chain::convert_insn): Likewise. Add
16740 fatal_insn_not_found if the result is not recognized.
16741 (convertible_comparison_p): Pass in the scalar mode and use that.
16742 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16743 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16744 (scalar_to_vector_candidate_p): Remove by inlining into single
16745 caller.
16746 (general_remove_non_convertible_regs): Rename from
16747 dimode_remove_non_convertible_regs.
16748 (remove_non_convertible_regs): Remove by inlining into single caller.
16749 (convert_scalars_to_vector): Handle SImode and DImode chains
16750 in addition to TImode chains.
16751 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16752 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16753 (*<maxmin>di3_doubleword): Likewise.
16754
16755 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16756 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16757
16758 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16759 (*cond_bic<mode>_any): New patterns.
16760
16761 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16762
16763 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16764 take the equivalent mask, as well as a bit count.
16765 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16766 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16767 (aarch64_sve_pred_and_operand): New predicates.
16768 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16769 code attribute.
16770 * config/aarch64/aarch64-sve.md
16771 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16772 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16773
16774 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16775
16776 * config/aarch64/aarch64-sve.md
16777 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16778 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16779 New patterns.
16780
16781 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16782 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16783
16784 * config/aarch64/aarch64-sve.md
16785 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16786 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16787
16788 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16789 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16790
16791 * config/aarch64/aarch64-sve.md
16792 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16793 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16794
16795 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16796
16797 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16798 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16799 New pattern.
16800
16801 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16802 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16803
16804 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16805
16806 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16807 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16808
16809 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16810 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16811 (aarch64_print_operand): Add support for %I.
16812 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16813 Bitcast floating-point constants to the corresponding integer constant.
16814 (aarch64_float_const_representable_p): Handle vectors as well
16815 as scalars.
16816 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16817 for the new vcond_mask_<mode><vpred> expander.
16818 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16819 test aarch64_float_const_representable_p.
16820 (aarch64_sve_reg_or_dup_imm): New predicate.
16821 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16822 gen_vcond_mask_<mode><vpred> instead of
16823 gen_aarch64_sve_dup<mode>_const.
16824 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16825 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16826 for operands 1 and 2 respectively. Force operand 2 into a
16827 register if operand 1 is a register. Fold old define_insn...
16828 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16829 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16830 floating-point constants that can be moved as integers. Add
16831 alternatives for MOV /M and FMOV /M.
16832 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16833 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16834 1 and 2 respectively.
16835 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16836 as scalars.
16837 (vss): New constraint.
16838
16839 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16840
16841 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16842 (aarch64_sve_float_maxmin_operand): New predicates.
16843 * config/aarch64/constraints.md (vsB): New constraint.
16844 (vsM): Fix typo.
16845 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16846 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16847 UNSPEC_COND_FMINNM.
16848 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16849 Use aarch64_sve_float_maxmin_operand for operand 2.
16850 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16851 Add alternatives for the constant forms.
16852
16853 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16854
16855 * config/aarch64/constraints.md (vsb): New constraint.
16856 (vsm): Generalize description.
16857 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16858 iterator.
16859 (sve_imm_con): Handle smax, smin, umax and umin.
16860 (sve_imm_prefix): New code attribute.
16861 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16862 (aarch64_sve_vsb_operand): New predicates.
16863 (aarch64_sve_mul_immediate): Rename to...
16864 (aarch64_sve_vsm_immediate): ...this.
16865 (aarch64_sve_mul_operand): Rename to...
16866 (aarch64_sve_vsm_operand): ...this.
16867 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16868 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16869 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16870 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16871 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16872 add movprfx support for the immediate alternatives.
16873 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16874 of the above.
16875 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16876 for operand 3.
16877
16878 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16879
16880 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16881 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16882 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16883
16884 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16885
16886 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16887 (optab, sve_int_op): Handle them.
16888 * config/aarch64/aarch64-sve.md: Expand comment.
16889
16890 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16891
16892 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16893 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16894 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16895
16896 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16897
16898 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16899 (aarch64_expand_sve_const_pred_trn): New functions.
16900 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16901 use the above functions when the parameter is true.
16902 (aarch64_expand_sve_const_pred): Update call accordingly.
16903 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16904 Rename to...
16905 (@aarch64_sve_<perm_insn><mode>): ...this.
16906
16907 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16908
16909 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16910 Declare.
16911 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16912 (aarch64_sve_emit_int_cmp): New functions.
16913 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16914 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16915 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16916 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16917 (UNSPEC_PRED_Z): New unspec.
16918 (set_clobber_cc_nzc): Delete.
16919 * config/aarch64/aarch64-sve.md: Add a block comment about
16920 UNSPEC_PRED_Z.
16921 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16922 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16923 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16924 UNSPEC_MERGE_PTRUE.
16925 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16926 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16927 check for compatible predicates.
16928 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16929 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16930 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16931 comparisons above.
16932
16933 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16934
16935 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16936 * config/aarch64/aarch64-sve.md: Add a section describing it.
16937 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16938 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16939 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16940 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16941 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16942 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16943 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16944 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16945 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16946 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16947 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16948 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16949 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16950 (aarch64_evpc_rev_local): Update accordingly.
16951
16952 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16953
16954 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16955 iterators.
16956 (SVE_BHSI, SVE_SDI): Tweak comment.
16957 (SVE_HSDI): Likewise. Fix definition.
16958 (SVE_SDF): New mode iterator.
16959 (elem_bits): New mode attribute.
16960 (SVE_COND_FCVT): New int iterator.
16961 * config/aarch64/aarch64-sve.md
16962 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16963 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16964 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16965 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16966 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16967 ...these new patterns.
16968 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16969 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16970 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16971 Merge into...
16972 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16973 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16974 ...these new patterns.
16975 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16976 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16977 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16978 ...this new pattern.
16979 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16980 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16981 ...this new pattern.
16982 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16983
16984 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16985
16986 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16987 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16988 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16989 unspecs.
16990 (optab, su): Handle them.
16991 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16992 * config/aarch64/aarch64-sve.md
16993 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16994 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16995 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16996 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16997 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16998 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16999 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
17000 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
17001 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
17002 FIXUORS.
17003 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
17004 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
17005 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
17006 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
17007 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
17008 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
17009 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
17010 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
17011 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
17012 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
17013 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
17014 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
17015 of UNSPEC_FLOAT_CONVERT.
17016 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
17017 aarch64_sve_extend<mode><Vwide>2.
17018
17019 2019-08-14 Richard Biener <rguenther@suse.de>
17020
17021 PR target/91154
17022 * config/i386/i386-features.c
17023 (dimode_scalar_chain::compute_convert_gain): Compute and dump
17024 individual instruction gain. Fix reg-reg copy GRP cost. Use
17025 ix86_cost->sse_op for vector instruction costs.
17026
17027 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17028
17029 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
17030 (cmp_op): Handle it.
17031 (SVE_COND_FP_CMP): Rename to...
17032 (SVE_COND_FP_CMP_I0): ...this.
17033 (SVE_FP_CMP): Remove.
17034 * config/aarch64/aarch64-sve.md
17035 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
17036 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
17037 using unspecs to represent the comparison.
17038 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
17039 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
17040 accordingly.
17041 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
17042 (aarch64_unspec_cond_code): Move after integer code. Handle
17043 UNORDERED.
17044 (aarch64_emit_sve_predicated_cond): Replace with...
17045 (aarch64_emit_sve_fp_cond): ...this new function.
17046 (aarch64_emit_sve_or_conds): Replace with...
17047 (aarch64_emit_sve_or_fp_conds): ...this new function.
17048 (aarch64_emit_sve_inverted_cond): Replace with...
17049 (aarch64_emit_sve_invert_fp_cond): ...this new function.
17050 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
17051
17052 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17053
17054 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
17055 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
17056 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
17057 SVE_HSD instead of SVE_SD.
17058
17059 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17060 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17061
17062 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
17063 iterator.
17064 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
17065 attributes.
17066 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
17067 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
17068 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
17069 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
17070 (*div<SVE_F:mode>3): Generalize to...
17071 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
17072
17073 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17074 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17075
17076 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
17077 constants.
17078 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
17079 predicate.
17080 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
17081 Declare.
17082 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
17083 function.
17084 * config/aarch64/aarch64-sve.md: Add a block comment about the
17085 handling of predicated FP operations.
17086 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
17087 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
17088 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17089 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
17090 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
17091 operand.
17092 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
17093 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
17094 operand.
17095 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
17096 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
17097 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
17098 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
17099 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
17100 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17101 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17102 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
17103 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
17104 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
17105 strictness operands. Use aarch64_sve_pred_dominates_p to check
17106 whether the predicate on the conditional operation is suitable
17107 for merging. Split patterns into the canonical equal-predicate form.
17108 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
17109 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
17110
17111 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17112 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17113
17114 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
17115 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
17116 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
17117 rtx codes.
17118 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
17119 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
17120 unspecs.
17121
17122 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17123 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17124
17125 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
17126 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
17127 actually has, rather than relying on REG_EQUAL notes.
17128 Make the insn operand order match the SVE operand order.
17129 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
17130 the SVE operand order.
17131
17132 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17133
17134 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
17135 (aarch64_emit_set_immediate): Likewise.
17136 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
17137 (aarch64_pfalse_reg): Likewise.
17138 (aarch64_convert_sve_data_to_pred): New function.
17139 (aarch64_sve_move_pred_via_while): Take an optional target register
17140 and the required register mode.
17141 (aarch64_expand_sve_const_pred_1): New function.
17142 (aarch64_expand_sve_const_pred): Likewise.
17143 (aarch64_expand_mov_immediate): Build an all-true predicate
17144 if the significant bits of the immediate are all true. Use
17145 aarch64_expand_sve_const_pred for all compile-time predicate constants.
17146 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
17147 before register allocation.
17148 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
17149 a VNx16BI PTRUE when splitting the memory alternative.
17150 (vec_duplicate<mode>): Update accordingly.
17151 (*pred_cmp<cmp_op><mode>): Rename to...
17152 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
17153
17154 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17155
17156 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
17157 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
17158 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
17159 (UNSPEC_PTEST): New unspec.
17160 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
17161 * config/aarch64/iterators.md (data_bytes): New mode attribute.
17162 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
17163 * config/aarch64/aarch64-sve.md: Add a new section describing the
17164 handling of UNSPEC_PTEST.
17165 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
17166 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
17167 (ptest_ptrue<mode>): Replace with...
17168 (aarch64_ptest<mode>): ...this new pattern.
17169 (cbranch<mode>4): Update after above changes.
17170 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
17171 UNSPEC_PTEST_PTRUE.
17172 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
17173 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
17174 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
17175
17176 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
17177
17178 PR lto/91287
17179 * builtins.c (builtin_with_linkage_p): New function.
17180 * builtins.h (builtin_with_linkage_p): New function.
17181 * symtab.c (write_symbol): Remove redundant assert.
17182 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
17183 Remove FIXME and use builtin_with_linkage_p.
17184
17185 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17186
17187 PR middle-end/91421
17188 * tree-core.h (function_decl::function_code): Change type to
17189 unsigned int.
17190 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
17191 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
17192 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
17193 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
17194 is BUILT_IN_NORMAL.
17195 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
17196 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
17197 (fndecl_built_in_p): Change the type of the "name" argument to
17198 unsigned int.
17199 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
17200 after check for DECL_BUILT_IN_CLASS.
17201 * cgraphclones.c (build_function_decl_skip_args): Use
17202 set_decl_built_in_function.
17203 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
17204 * ipa-split.c (split_function): Likewise.
17205 * langhooks.c (add_builtin_function_common): Likewise.
17206 * omp-simd-clone.c (simd_clone_create): Likewise.
17207 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17208 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
17209 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
17210 DECL_FUNCTION_CODE.
17211 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
17212 instead of DECL_FUNCTION_CODE.
17213 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
17214 instead of DECL_FUNCTION_CODE.
17215 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17216 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
17217 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
17218 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
17219 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
17220 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
17221 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
17222 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
17223 (alpha_gimple_fold_builtin): Likewise.
17224 * config/arc/arc.c (arc_expand_builtin): Likewise.
17225 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
17226 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
17227 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
17228 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
17229 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
17230 * config/frv/frv.c (frv_expand_builtin): Likewise.
17231 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
17232 (gcn_expand_builtin): Likewise.
17233 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
17234 (fold_builtin_cpu): Likewise.
17235 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
17236 * config/i386/i386.c (ix86_fold_builtin): Likewise.
17237 (ix86_gimple_fold_builtin): Likewise.
17238 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
17239 (ia64_expand_builtin): Likewise.
17240 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
17241 * config/mips/mips.c (mips_expand_builtin): Likewise.
17242 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
17243 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17244 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
17245 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
17246 * config/pa/pa.c (pa_expand_builtin): Likewise.
17247 * config/pru/pru.c (pru_expand_builtin): Likewise.
17248 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
17249 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17250 Likewise.
17251 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
17252 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
17253 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
17254 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
17255 (rs6000_builtin_reciprocal): Likewise.
17256 * config/rx/rx.c (rx_expand_builtin): Likewise.
17257 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17258 * config/s390/s390.c (s390_expand_builtin): Likewise.
17259 * config/sh/sh.c (sh_expand_builtin): Likewise.
17260 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
17261 (sparc_fold_builtin): Likewise.
17262 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
17263 * config/spu/spu.c (spu_expand_builtin): Likewise.
17264 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
17265 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
17266 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
17267 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
17268 (xtensa_expand_builtin): Likewise.
17269
17270 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17271
17272 PR middle-end/91421
17273 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
17274 before the DECL_FUNCTION_CODE.
17275 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
17276 to check for a BUILT_IN_ALLOCA call.
17277 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
17278 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
17279 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
17280 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17281 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
17282 for BUILT_IN_NORMAL functions.
17283 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
17284 test for BUILT_IN_TM_ABORT.
17285 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
17286 to check for a BUILT_IN_STACK_RESTORE call.
17287 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
17288 * tree-ssa-threadedge.c
17289 (record_temporary_equivalences_from_stmts_at_dest): Check for a
17290 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
17291 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
17292 test for a BUILT_IN_NORMAL call instead of a negative test for
17293 an internal function call.
17294
17295 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17296
17297 * tree.h (build_vector_a_then_b): Declare.
17298 * tree.c (build_vector_a_then_b): New function.
17299 * fold-const-call.c (fold_while_ult): Likewise.
17300 (fold_const_call): Use it to handle IFN_WHILE_ULT.
17301 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
17302 (aarch64_svpattern): New enum.
17303 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
17304 constants through aarch64_expand_mov_immediate.
17305 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
17306 than general_operand as the predicate for operand 1.
17307 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
17308 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
17309 insn_type.
17310 (simd_immediate_info::simd_immediate_info): New overload that
17311 takes a scalar_int_mode and an svpattern.
17312 (simd_immediate_info::u): Add a "pattern" field.
17313 (svpattern_token): New function.
17314 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
17315 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
17316 (aarch64_sve_move_pred_via_while): New functions.
17317 (aarch64_expand_mov_immediate): Try using
17318 aarch64_sve_move_pred_via_while for predicates that contain N ones
17319 followed by M zeros but that do not correspond to a VLnnn pattern.
17320 (aarch64_sve_pred_valid_immediate): New function.
17321 (aarch64_simd_valid_immediate): Use it instead of dealing directly
17322 with PTRUE and PFALSE.
17323 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
17324 forms.
17325
17326 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
17327
17328 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
17329 flag.
17330 (darwin_override_options): Likewise.
17331 * config/darwin.h: Likewise.
17332 * config/darwin.opt: Likewise.
17333 * config/i386/i386.c (output_pic_addr_const): Likewise.
17334 * config/rs6000/darwin.h: Likewise.
17335 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
17336 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
17337 ... this TARGET_MACHO_SYMBOL_STUBS.
17338 (FUNCTION_PROFILER):Likewise.
17339 * config/i386/i386.h: Likewise.
17340
17341 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17342
17343 * config/i386/i386-expand.c (ix86_expand_vector_extract)
17344 <case E_V2SImode>: Use vec_extr path for
17345 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17346 <case E_V8QImode>: Ditto.
17347 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
17348 Use SWI48 mode iterator. Use %k to output operand 0.
17349 (*mmx_pextrw): New insn pattern.
17350 (*mmx_pextrb): Ditto.
17351 (*mmx_pextrb_zext): Ditto.
17352
17353 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
17354
17355 * target.def (libc_has_function, libc_has_fast_function): Improve
17356 documentation strings.
17357 * doc/tm.texi: Regenerate.
17358
17359 2019-08-13 Caroline Tice <cmtice@google.com>
17360
17361 PR other/91396
17362 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
17363 vtv_end.o or vtv_end_preinit.o files if !static.
17364
17365 2019-08-13 Olivier Hainque <hainque@adacore.com>
17366
17367 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17368
17369 2019-08-13 Olivier Hainque <hainque@adacore.com>
17370
17371 * rtlanal.c (tablejump_casesi_pattern): New function, to
17372 determine if a tablejump insn is a casesi dispatcher. Extracted
17373 from patch_jump_insn.
17374 * rtl.h (tablejump_casesi_pattern): Declare.
17375 * cfgrtl.c (patch_jump_insn): Use it.
17376 * dwarf2cfi.c (create_trace_edges): Use it.
17377
17378 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17379
17380 PR target/81800
17381 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17382 operand is larger than a long int.
17383
17384 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17385
17386 * machmode.h (opt_mode::else_mode): New function.
17387 (opt_mode::else_blk): Use it.
17388 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17389 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17390 (aarch64_gen_stepped_int_parallel): Likewise.
17391 (aarch64_stepped_int_parallel_p): Likewise.
17392 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17393 argument.
17394 * config/aarch64/aarch64.c
17395 (aarch64_expand_sve_widened_duplicate): Delete.
17396 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17397 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17398 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17399 argument. Use early returns in the !CONST_INT_P handling.
17400 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17401 than handling some inline.
17402 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17403 from...
17404 (aarch64_simd_container_mode): ...here.
17405 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17406 (aarch64_sve_ld1rq_operand_p): New functions.
17407 * config/aarch64/predicates.md (descending_int_parallel)
17408 (aarch64_sve_ld1rq_operand): New predicates.
17409 * config/aarch64/constraints.md (UtQ): New constraint.
17410 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17411 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17412 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17413 (@aarch64_sve_reinterpret<mode>): New expander.
17414 (*aarch64_sve_reinterpret<mode>): New pattern.
17415 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17416 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17417 (*sve_ld1rq<Vesize>): Replace with...
17418 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17419
17420 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17421
17422 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17423 16:12.
17424
17425 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17426
17427 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17428 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17429 (msp430_check_path_for_devices): New.
17430 (parse_devices_csv_1): New.
17431 (parse_devices_csv): New.
17432 (msp430_extract_mcu_data): Try to find devices.csv and search for the
17433 MCU data in devices.csv before using the hard-coded data.
17434 Warn if devices.csv isn't found and the MCU wasn't found in the
17435 hard-coded data either.
17436 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17437 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17438 Search for devices.csv on -I and -L paths.
17439 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17440 msp430_set_driver_var.
17441 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17442 -mdevices-csv-loc=.
17443 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17444 searched for devices.csv.
17445 (mwarn-devices-csv): Document option.
17446
17447 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17448
17449 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17450 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17451 Use a single Dn alternative instead of separate Dz and Dm
17452 alternatives. Use aarch64_output_sve_move_immediate.
17453 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17454 function.
17455 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17456 for predicates too.
17457 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17458 (aarch64_output_ptrue): Delete.
17459
17460 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17461
17462 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17463 INDEX.
17464 (simd_immediate_info::value, simd_immediate_info::step)
17465 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17466 with...
17467 (simd_immediate_info::u): ...this new union.
17468 (simd_immediate_info::simd_immediate_info): Update accordingly.
17469 (aarch64_output_simd_mov_immediate): Likewise.
17470 (aarch64_output_sve_mov_immediate): Likewise.
17471
17472 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17473
17474 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17475 extra_gcc_objs.
17476 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17477 (msp430_select_cpu): New spec function.
17478 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17479 MCU data.
17480 * config/msp430/msp430-devices.c: New file.
17481 * config/msp430/msp430-devices.h: New file.
17482 * config/msp430/msp430.c: Remove msp430_mcu_data.
17483 (msp430_option_override): Use msp430_extract_mcu_data to extract
17484 MCU data.
17485 (msp430_use_f5_series_hwmult): Likewise.
17486 (use_32bit_hwmult): Likewise.
17487 (msp430_no_hwmult): Likewise.
17488 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17489 assembler.
17490 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17491 and -mcpu option.
17492 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17493 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17494 Remove hard-coded MCU multilib data.
17495
17496 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17497
17498 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17499 based on the mode instead of testing properties of it.
17500
17501 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17502
17503 * doc/md.texi: Document the x and y constraints for AArch64.
17504 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17505 (FP_LO8_REGS): New reg_class.
17506 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17507 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17508 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17509 * config/aarch64/predicates.md (aarch64_simd_register): Use
17510 FP_REGNUM_P instead of checking the classes manually.
17511 * config/aarch64/constraints.md (y): New constraint.
17512
17513 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17514
17515 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17516 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17517 * config/aarch64/aarch64-simd.md
17518 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17519 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17520 from the asm template.
17521 * config/aarch64/aarch64-sve.md
17522 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17523 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17524 from the asm template.
17525 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17526 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17527 from the asm template.
17528 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17529
17530 2019-08-13 Martin Liska <mliska@suse.cz>
17531
17532 * value-prof.c (gimple_ic_transform): Add new line.
17533 Print details with MSG_NOTE.
17534
17535 2019-08-13 Martin Liska <mliska@suse.cz>
17536
17537 * doc/invoke.texi: Document automatic detection of jobserver.
17538 * lto-wrapper.c (run_gcc): Detect jobserver always.
17539
17540 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17541
17542 * config/i386/i386-expand.c (ix86_expand_vector_set)
17543 <case E_V2SImode>: Use vec_merge path for
17544 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17545 <case E_V8QImode>: Ditto.
17546 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17547 (*mmx_pinsrb): Ditto.
17548
17549 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17550
17551 PR target/83250
17552 PR target/91340
17553 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17554 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17555 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17556 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17557 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17558
17559 2019-08-12 Richard Biener <rguenther@suse.de>
17560
17561 PR lto/91375
17562 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17563 flag_devirtualize.
17564
17565 2019-08-12 Richard Biener <rguenther@suse.de>
17566
17567 PR driver/91130
17568 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17569 lang_mask option, always use CL_DRIVER.
17570 (get_options_from_collect_gcc_options): Adjust.
17571 (find_and_merge_options): Likewise.
17572 (run_gcc): Likewise.
17573
17574 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17575
17576 * ipa-predicate.c (add_condition): Restore inverted test.
17577
17578 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17579
17580 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17581 (enum omp_clause_device_type_kind): New enum.
17582 (struct tree_omp_clause): Add subcode.device_type_kind.
17583 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17584 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17585 for device_type clause.
17586 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17587 * tree-pretty-print.c (dump_omp_clause): Likewise.
17588
17589 PR target/91408
17590 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17591 vector_operand.
17592
17593 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17594
17595 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17596 handling spilled pseudos.
17597
17598 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17599
17600 PR target/91386
17601 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17602 to preserve the contents of the original insns.
17603
17604 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17605
17606 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17607 (addsi3_compare_op2): Likewise.
17608
17609 2019-08-09 Martin Liska <mliska@suse.cz>
17610
17611 * alias.c (alias_ptr_types_compatible_p): Strengten
17612 type comparison in LTO mode.
17613
17614 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17615
17616 PR middle-end/90313
17617 * tree-tailcall.c (find_tail_calls): Reject calls that might
17618 read from an escaped RESULT_DECL.
17619
17620 2019-08-09 Martin Liska <mliska@suse.cz>
17621
17622 * doc/invoke.texi: Document the option value.
17623 * lto-wrapper.c (run_gcc): Set auto_parallel
17624 only with -flto=auto.
17625
17626 2019-08-09 Martin Liska <mliska@suse.cz>
17627
17628 * opts.c (common_handle_option): Error for an invalid argument
17629 to -flto=.
17630
17631 2019-08-09 Martin Liska <mliska@suse.cz>
17632
17633 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17634 use dump_printf to report optimization.
17635 (sem_variable::merge): Likwise.
17636 (sem_item_optimizer::merge_classes): Use dump_printf to report
17637 ICF hits.
17638
17639 2019-08-09 Martin Liska <mliska@suse.cz>
17640
17641 * value-prof.c (gimple_divmod_fixed_value_transform):
17642 Use dump_printf_loc.
17643 (gimple_mod_pow2_value_transform): Likewise.
17644 (gimple_mod_subtract_transform): Likewise.
17645 (init_node_map): Likewise.
17646 (gimple_ic_transform): Likewise.
17647 (gimple_stringops_transform): Likewise.
17648
17649 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17650
17651 * doc/extend.texi: Add const qualifier to ld intrinsics.
17652
17653 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17654
17655 * config/rs6000/dfp.md (D64_D128): Rename to ...
17656 (DDTD): ... this, throughout.
17657 (dfp_suffix): Rename to ...
17658 (q): ... this, throughout.
17659
17660 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17661
17662 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17663 (dfp_suffix): Ditto.
17664 (adddd3, addtd3): Merge to ...
17665 (add<mode>3 for D64_D128): ... this.
17666 (subdd3, subtd3): Merge to ...
17667 (sub<mode>3 for D64_D128): ... this.
17668 (muldd3, multd3): Merge to ...
17669 (mul<mode>3 for D64_D128): ... this.
17670 (divdd3, divtd3): Merge to ...
17671 (div<mode>3 for D64_D128): ... this.
17672 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17673 (*cmp<mode>_internal1 for D64_D128): ... this.
17674 (ftruncdd2, ftrunctd2): Merge to ...
17675 (ftrunc<mode>2 for D64_D128): ... this.
17676 (fixdddi2, fixtddi2): Merge to ...
17677 (fix<mode>di2 for D64_D128): ... this.
17678
17679 2019-08-08 Jim Wilson <jimw@sifive.com>
17680
17681 PR target/91229
17682 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17683 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17684 Pass into recursive call.
17685 (riscv_flatten_aggregate_argument): New arg. Pass to
17686 riscv_flatten_aggregate_field.
17687 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17688 riscv_flatten_aggregate_argument twice, with false and true as last
17689 arg. Process result twice. Compare results and warn if different.
17690 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17691
17692 2019-08-08 Martin Liska <mliska@suse.cz>
17693
17694 PR bootstrap/91352
17695 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17696 * lto-wrapper.c (jobserver_active_p): Likewise.
17697
17698 2019-08-08 Martin Liska <mliska@suse.cz>
17699
17700 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17701 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17702 (create_version_clone_with_body): Likewise.
17703
17704 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17705
17706 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17707 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17708 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17709 GOVD_EXPLICIT flags.
17710 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17711 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17712 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17713 call install_var_field with mask 11 instead of 3.
17714 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17715 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17716
17717 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17718
17719 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17720 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17721
17722 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17723
17724 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17725 MOVPRFX alternatives. Make the GPR alternatives more expensive
17726 than the FPR ones.
17727
17728 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17729
17730 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17731 Disparage the GPR alternative relative to the FPR one.
17732 Fix handling of 8-bit and 16-bit FPR values.
17733
17734 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17735
17736 * config/aarch64/iterators.md (BITWISEV): Delete.
17737 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17738 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17739 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17740 UNSPEC_FMINNMV, UNSPEC_FMINV.
17741 (bit_reduc_op): Delete.
17742 (sve_int_op): New int attribute.
17743 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17744 UNSPEC_FMINNMV, UNSPEC_FMINV.
17745 * config/aarch64/aarch64-sve.md
17746 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17747 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17748 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17749 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17750 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17751 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17752 new patterns.
17753 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17754 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17755 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17756 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17757 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17758 new patterns.
17759
17760 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17761
17762 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17763 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17764 (fms<mode>4, *fms<mode>4): Replace with...
17765 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17766 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17767 Use unspecs instead of rtx codes.
17768 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17769 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17770
17771 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17772
17773 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17774 int iterator.
17775 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17776 * config/aarch64/aarch64-sve.md
17777 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17778 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17779 use a single unspec for the rhs.
17780 (*<su><maxmin><mode>3): Delete.
17781 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17782
17783 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17784
17785 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17786 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17787 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17788 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17789 (optab, sve_fp_op): Handle them.
17790 (SVE_FP_UNARY): Delete.
17791 (optab): Remove sqrt entry.
17792 (sve_fp_op): Remove neg, abs and sqrt entries.
17793 (SVE_COND_FP_UNARY): New int iterator.
17794 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17795 (*<frint_pattern><mode>2): Delete.
17796 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17797 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17798 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17799 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17800
17801 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17802
17803 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17804
17805 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17806
17807 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17808 (UNSPEC_COND_FADD): ...this.
17809 (UNSPEC_COND_SUB): Rename to...
17810 (UNSPEC_COND_FSUB): ...this.
17811 (UNSPEC_COND_MUL): Rename to...
17812 (UNSPEC_COND_FMUL): ...this.
17813 (UNSPEC_COND_DIV): Rename to...
17814 (UNSPEC_COND_FDIV): ...this.
17815 (UNSPEC_COND_MAX): Rename to...
17816 (UNSPEC_COND_FMAXNM): ...this.
17817 (UNSPEC_COND_MIN): Rename to...
17818 (UNSPEC_COND_FMINNM): ...this.
17819 (UNSPEC_COND_LT): Rename to...
17820 (UNSPEC_COND_FCMLT): ...this.
17821 (UNSPEC_COND_LE): Rename to...
17822 (UNSPEC_COND_FCMLE): ...this.
17823 (UNSPEC_COND_EQ): Rename to...
17824 (UNSPEC_COND_FCMEQ): ...this.
17825 (UNSPEC_COND_NE): Rename to...
17826 (UNSPEC_COND_FCMNE): ...this.
17827 (UNSPEC_COND_GE): Rename to...
17828 (UNSPEC_COND_FCMGE): ...this.
17829 (UNSPEC_COND_GT): Rename to...
17830 (UNSPEC_COND_FCMGT): ...this.
17831 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17832 (sve_fp_op_rev): Update accordingly.
17833 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17834
17835 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17836
17837 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17838 banner comments.
17839 * config/aarch64/check-sve-md.awk: New file.
17840 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17841 (insn-conditions.md): Depend on it.
17842
17843 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17844
17845 PR target/91385
17846 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17847 (*negsi2_cmpz_zext): Ditto.
17848
17849 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17850
17851 * config/aarch64/iterators.md (commutative): Remove.
17852
17853 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17854
17855 PR driver/91130
17856 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17857 processing COLLECT_GCC_OPTIONS.
17858 (run_gcc): Likewise.
17859
17860 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17861
17862 PR tree-optimization/91109
17863 * lra-remat.c (update_scratch_ops): Remove assignment of the
17864 hard register.
17865
17866 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17867
17868 * data-streamer.h (streamer_write_poly_uint64): Declare.
17869 (streamer_read_poly_uint64): Likewise.
17870 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17871 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17872 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17873 (add_condition): Take a poly_int64 size.
17874 * ipa-predicate.c (add_condition): Likewise.
17875 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17876 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17877 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17878 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17879 condition::size as a poly_int64.
17880 (unmodified_parm_1): Take a poly_int64 size pointer.
17881 (unmodified_parm): Likewise.
17882 (unmodified_parm_or_parm_agg_item): Likewise.
17883 (set_cond_stmt_execution_predicate): Update accordingly.
17884 (set_switch_stmt_execution_predicate): Likewise.
17885 (will_be_nonconstant_expr_predicate): Likewise.
17886 (will_be_nonconstant_predicate): Likewise.
17887 (inline_read_section): Stream condition::size as a poly_int.
17888 (ipa_fn_summary_write): Likewise.
17889
17890 2019-08-07 Martin Liska <mliska@suse.cz>
17891
17892 * fold-const.c (twoval_comparison_p): Replace int
17893 with bool as a return type.
17894 (simple_operand_p): Likewise.
17895 (operand_equal_p): Replace int with bool as a return type.
17896 * fold-const.h (operand_equal_p): Likewise.
17897
17898 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17899
17900 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17901 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17902 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17903 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17904 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17905 * tree-pretty-print.c (dump_omp_clause): Likewise.
17906 * tree-nested.c (convert_nonlocal_omp_clauses,
17907 convert_local_omp_clauses): Likewise.
17908 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17909 Likewise.
17910 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17911 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17912 clause with array or reference to array types, no matter what type
17913 except for reference it has.
17914
17915 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17916
17917 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17918
17919 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17920
17921 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17922 (arch_canonicalize): Support rv32g and rv64g and fix error
17923 handling.
17924
17925 2019-08-06 Martin Liska <mliska@suse.cz>
17926
17927 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17928 and DECL_IS_OPERATOR_DELETE_P.
17929
17930 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17931
17932 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17933 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17934 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17935 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17936 (gimplify_omp_for): Don't do C++ random access iterator clause
17937 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17938 don't predetermine the artificial iterator in case of C++ random
17939 access iterators as lastprivate, but private. For OMP_LOOP, force
17940 bind expr around simd body and force for_pre_body before the
17941 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17942 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17943 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17944 diff var of C++ random access iterators. Handle
17945 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17946 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17947 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17948 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17949 * omp-low.c (lower_rec_input_clauses): For
17950 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17951 variables instead of default constructing them.
17952 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17953 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17954 is_taskloop_ctx check from the assert to the guarding condition.
17955
17956 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17957
17958 * config/riscv/multilib-generator: (canonical_order): New.
17959 (arch_canonicalize): Dito.
17960 Apply arch_canonicalize for alts.
17961
17962 2019-08-05 Martin Sebor <msebor@redhat.com>
17963
17964 * doc/extend.texi (Common Variable Attributes): Document alias
17965 attribute.
17966
17967 2019-08-05 Marek Polacek <polacek@redhat.com>
17968
17969 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17970 * doc/invoke.texi: Document -Wcomma-subscript.
17971
17972 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17973
17974 * tree-core.h (tree_function_decl): Make function_code an
17975 independent field. Group the remaining bitfields into bytes
17976 and move decl_type so that it contines to be at a byte boundary.
17977 Leave 12 bits for future expansion.
17978
17979 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17980
17981 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17982 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17983 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17984 IFN_MASK_STORE.
17985
17986 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17987
17988 * gimple.h (gimple_move_vops): Declare.
17989 * gimple.c (gimple_move_vops): New function
17990 * gimple-fold.c (replace_call_with_call_and_fold)
17991 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17992 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17993 (gimple_fold_call): Use it.
17994 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17995 * tree-call-cdce.c (use_internal_fn): Likewise.
17996 * tree-if-conv.c (predicate_load_or_store): Likewise.
17997 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17998 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17999 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
18000 (update_call_from_tree): Likewise.
18001 * tree-vect-stmts.c (vectorizable_load): Likewise.
18002 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
18003
18004 2019-08-05 Martin Liska <mliska@suse.cz>
18005
18006 PR c++/91334
18007 * tree-ssa-dce.c (propagate_necessity): Handle new operators
18008 with not arguments.
18009 (eliminate_unnecessary_stmts): Likewise.
18010
18011 2019-08-05 Richard Biener <rguenther@suse.de>
18012
18013 PR middle-end/91169
18014 * fold-const.c (get_array_ctor_element_at_index): Create
18015 offset_ints according to the sign of the index type and treat
18016 that as signed if it is obviously so.
18017
18018 2019-08-05 Jakub Jelinek <jakub@redhat.com>
18019
18020 PR target/91341
18021 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
18022 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
18023 _mm256_storeu2_m128i): New function.
18024
18025 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
18026
18027 * config/riscv/riscv.c (riscv_promote_function_mode): New.
18028 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
18029
18030 2019-08-05 Alan Modra <amodra@gmail.com>
18031
18032 PR target/91349
18033 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
18034 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
18035
18036 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
18037
18038 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
18039 bug that was fixed in Tcl 8.6.1.
18040
18041 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
18042
18043 * config/rs6000/future.md: New file.
18044 * config/rs6000/rs6000.md: Include future.md.
18045 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
18046
18047 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
18048
18049 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
18050 check to use targetm.slow_unaligned_access instead.
18051
18052 * function.c (assign_param_data_one): Remove unused data members.
18053
18054 2019-08-02 Steve Ellcey <sellcey@marvell.com>
18055
18056 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
18057 build_distinct_type_copy.
18058 (simd_clone_adjust_argument_types): Ditto.
18059 (simd_clone_adjust): Call build_distinct_type_copy here.
18060 (expand_simd_clones): Ditto.
18061
18062 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18063
18064 PR target/91201
18065 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
18066
18067 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
18068
18069 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
18070 from 'const void *'.
18071 (sort_locs_in_loop_postorder_cmp): Likewise.
18072
18073 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
18074
18075 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
18076 (hot-bb-count-ws-permille): Likewise.
18077 (hot-bb-frequency-fraction): Likewise.
18078 (unlikely-bb-count-fraction): Likewise.
18079 * params.def (hot-bb-count-fraction): Rework description.
18080 (hot-bb-count-ws-permille): Likewise.
18081 (hot-bb-frequency-fraction): Likewise.
18082 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
18083 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
18084
18085 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18086
18087 PR target/91323
18088 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
18089 Return false.
18090
18091 2019-08-02 Richard Biener <rguenther@suse.de>
18092
18093 * vec.h (vec::sort): Add gcc_qsort_r support.
18094 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
18095 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
18096 to gcc_qsort_r style callback.
18097 (sort_locs_in_loop_postorder_cmp): Likewise.
18098 (analyze_memory_references): Use gcc_sort_r interfaces.
18099 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
18100
18101 2019-08-02 Martin Liska <mliska@suse.cz>
18102
18103 PR lto/91313
18104 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
18105 to detect working job server.
18106 (driver::detect_jobserver): Test whether jobserver
18107 is active from GCC driver. That will prevent situation where
18108 GCC is invoked from a LD plugin and the linker already uses
18109 file descriptors suggested by make. That leads to a wrong
18110 detection.
18111 * gcc.h (driver): Add detect_jobserver.
18112 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
18113 not scanning for --jobserver-auth prefix.
18114
18115 2019-08-02 Jakub Jelinek <jakub@redhat.com>
18116
18117 PR tree-optimization/91201
18118 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
18119 V16QImode extraction without sse4.1 try to use V4SImode lowpart
18120 extraction.
18121
18122 2019-08-01 Martin Sebor <msebor@redhat.com>
18123
18124 PR c++/90947
18125 * tree.c (type_initializer_zero_p): Define.
18126 * tree.h (type_initializer_zero_p): New function.
18127
18128 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18129
18130 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
18131
18132 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18133
18134 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
18135 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
18136 * predict.c (maybe_hot_count_p): Likewise.
18137 (maybe_hot_bb_p): Tweak comment.
18138 (maybe_hot_edge_p): Likewise.
18139 (probably_never_executed): Likewise. Minor tweak.
18140 (probably_never_executed_bb_p): Likewise.
18141 (unlikely_executed_edge_p): Likewise.
18142 (probably_never_executed_edge_p): Likewise.
18143 (optimize_function_for_size_p): Likewise.
18144 (optimize_function_for_speed_p): Likewise.
18145 (function_optimization_type): Likewise.
18146 (optimize_bb_for_size_p): Likewise.
18147 (optimize_bb_for_speed_p): Likewise.
18148 (bb_optimization_type): Likewise.
18149 (optimize_edge_for_size_p): Likewise.
18150 (optimize_edge_for_speed_p): Likewise.
18151 (optimize_insn_for_size_p): Likewise.
18152 (optimize_insn_for_speed_p): Likewise.
18153 (optimize_loop_for_size_p): Likewise.
18154 (optimize_loop_for_speed_p): Likewise.
18155 (optimize_loop_nest_for_speed_p): Likewise.
18156 (optimize_loop_nest_for_size_p): Likewise.
18157 (predictable_edge_p): Likewise.
18158 (handle_missing_profiles): Minor tweak.
18159
18160 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
18161
18162 * config/rs6000/predicates.md (pcrel_external_address): Update
18163 comment.
18164
18165 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18166
18167 PR target/85693
18168 * config/i386/mmx.md (usadv8qi): New expander.
18169
18170 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
18171
18172 PR c++/90590
18173 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
18174 with reserved names that are in a system header.
18175
18176 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18177
18178 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
18179 (*vec_extractv2si_0_zext_sse4): New insn pattern.
18180 (*vec_extractv2si_0_zext): Ditto.
18181 (*vec_extractv2si_1): Add (rm,x) alternative.
18182 (*vec_extractv2si_1_zext): New insn pattern.
18183 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
18184 insn constraint.
18185
18186 2019-08-01 Richard Biener <rguenther@suse.de>
18187
18188 * domwalk.c (bb_postorder): Remove static variable.
18189 (cmp_bb_postorder): Adjust.
18190 (sort_bbs_postorder): Adjust and use gcc_sort_r.
18191 (dom_walker::walk): Adjust.
18192
18193 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
18194
18195 * sort.cc (sort_r_ctx): New struct.
18196 (reorder23): Make templated on context type.
18197 (reorder45): Ditto.
18198 (cmp1): Ditto. Adjust signature.
18199 (netsort): Ditto.
18200 (mergesort): Ditto.
18201 [CHECKING_P] (cmp2to3): New static function. Use it...
18202 (gcc_qsort) [CHECKING_P]: ...here.
18203 (gcc_sort_r): New function.
18204 * system.h (sort_r_cmp_fn): New function typedef.
18205 (qsort_chk): Adjust signature.
18206 (gcc_sort_r): Declare.
18207 * vec.c (qsort_chk_error): Adjust.
18208 (qsort_chk): Adjust.
18209
18210 2019-08-01 Richard Biener <rguenther@suse.de>
18211
18212 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
18213 (compute_antic): Localize it here.
18214
18215 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
18216
18217 * common/config/riscv/riscv-common.c: Check -march string ends
18218 with null.
18219
18220 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
18221
18222 * ipa-devirt.c (type_warning_cmp): Make static.
18223 (decl_warning_cmp): Ditto.
18224
18225 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
18226
18227 PR target/91050
18228 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
18229 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
18230 use of deleted rs6000_dejagnu_cpu_index variable.
18231 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
18232 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18233 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
18234 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
18235 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
18236 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18237
18238 2019-07-31 Richard Biener <rguenther@suse.de>
18239
18240 PR tree-optimization/91280
18241 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18242 Decompose MEM_REF manually for offset handling.
18243
18244 2019-07-31 Richard Biener <rguenther@suse.de>
18245
18246 PR tree-optimization/91293
18247 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
18248 of reduction stmts.
18249
18250 2019-07-31 Matt Thomas <matt@3am-software.com>
18251 Nick Hudson <nick@nthcliff.demon.co.uk>
18252 Matthew Green <mrg@eterna.com.au>
18253 Maya Rashish <coypu@sdf.org>
18254
18255 * config.gcc (hppa*-*-netbsd*): New target.
18256 * config/pa/pa-netbsd.h: New file.
18257 * config/pa/pa32-netbsd.h: New file.
18258
18259 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18260
18261 PR tree-optimization/91201
18262 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
18263
18264 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
18265
18266 * config/gcn/gcn-valu.md
18267 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
18268 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
18269 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
18270 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
18271 struct ilist. Add nops for delayeduse insns.
18272 * config/gcn/gcn.md (delayeduse): New attribute.
18273 (*movbi): Remove s_waitcnt from stores.
18274 (*mov<mode>_insn): Likewise.
18275 (*movti_insn): Likewise. Add delayeduse attribute.
18276 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
18277 (atomic_store<mode>): Remove or adjust s_waitcnt.
18278
18279 2019-07-31 Richard Biener <rguenther@suse.de>
18280
18281 * vr-values.h (vr_values::swap_vr_value): New.
18282 (vr_values::free_value_range): likewise.
18283 * vr-values.c (vr_values::swap_vr_value): Implement.
18284 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
18285 Do not return a range or take a var.
18286 (evrp_range_analyzer::stack): Change back to recording a non-const
18287 value_range *.
18288 * gimple-ssa-evrp-analyze.c
18289 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
18290 value-range.
18291 (evrp_range_analyzer::pop_to_marker): Adjust.
18292 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
18293 (evrp_range_analyzer::pop_value_range): Likewise. Free the
18294 no longer needed value-range.
18295
18296 2019-07-31 Martin Liska <mliska@suse.cz>
18297
18298 * tree-ssa-dce.c (propagate_necessity): Delete operator can
18299 have size and (or) alignment as 2nd and later arguments.
18300 Mark all of them as necessary.
18301
18302 2019-07-31 Richard Biener <rguenther@suse.de>
18303
18304 PR tree-optimization/91178
18305 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18306 Use tail-recursion.
18307
18308 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18309
18310 PR tree-optimization/91201
18311 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
18312 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
18313 TARGET_AVX512F.
18314 (reduc_plus_scal_<mode>): Improve formatting by introducing
18315 a temporary.
18316
18317 2019-07-31 Sudakshina Das <sudi.das@arm.com>
18318
18319 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
18320 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
18321 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
18322 (aarch64_init_tme_builtins): New.
18323 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
18324 (aarch64_expand_builtin_tme): New.
18325 (aarch64_expand_builtin): Handle TME builtins.
18326 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
18327 __ARM_FEATURE_TME when enabled.
18328 * config/aarch64/aarch64-option-extensions.def: Add "tme".
18329 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
18330 (TARGET_TME): New.
18331 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
18332 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
18333 UNSPECV_TCANCEL.
18334 (tstart, ttest, tcommit, tcancel): New instructions.
18335 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
18336 (__tcancel, __ttest): New.
18337 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
18338 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
18339 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
18340 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
18341 * config/arm/types.md: Add new tme type attr.
18342 * doc/invoke.texi: Document "tme".
18343
18344 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
18345
18346 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
18347 warn_unused_result attribute.
18348 (cmse_check_address_range): Add warn_unused_result attribute.
18349
18350 2019-07-31 Richard Biener <rguenther@suse.de>
18351
18352 PR tree-optimization/91257
18353 * tree-vrp.c (union_ranges): Unify equality and less tests
18354 by using compare_values. Re-order cheap tests first.
18355
18356 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18357
18358 PR middle-end/91301
18359 * gimplify.c (gimplify_omp_for): If for class iterator on
18360 distribute parallel for there is no data sharing clause
18361 on inner_for_stmt, look for private clause on combined
18362 parallel too and if found, move it to inner_for_stmt.
18363
18364 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
18365
18366 * lra-int.h (lra_operand_data): Remove early_clobber field.
18367 (lra_insn_reg): Likewise.
18368 * lra.c (debug_operand_data): Update accordingly.
18369 (setup_operand_alternative): Likewise.
18370 (new_insn_reg): Likewise. Remove early_clobber parameter.
18371 (collect_non_operand_hard_regs): Update call accordingly.
18372 Don't assign to lra_insn_reg::early_clobber.
18373 (add_regs_to_insn_regno_info): Remove early_clobber parameter
18374 and update calls to new_insn_reg.
18375 (lra_update_insn_regno_info): Update calls accordingly.
18376 * lra-constraints.c (update_and_check_small_class_inputs): Take the
18377 alternative number as a parameter and test whether the operand
18378 is earlyclobbered in that particular alternative.
18379 (process_alt_operands): Update call accordingly. Use per-alternative
18380 checks for earyclobber here too.
18381 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18382 against zero for IRA_UNKNOWN_ALT.
18383
18384 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18385
18386 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18387
18388 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
18389
18390 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18391 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18392
18393 2019-07-30 Martin Liska <mliska@suse.cz>
18394
18395 PR ipa/89330
18396 * cgraph.c (cgraph_edge::make_direct): Use
18397 edge->indirect_unknown_callee as edge->resolve_speculation can
18398 deallocate edge which is this pointer.
18399
18400 2019-07-30 Richard Biener <rguenther@suse.de>
18401
18402 PR tree-optimization/91257
18403 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18404
18405 2019-07-30 Martin Liska <mliska@suse.cz>
18406
18407 * doc/invoke.texi: Document new behavior.
18408 * lto-wrapper.c (cpuset_popcount): New function
18409 is a copy of libgomp/config/linux/proc.c.
18410 (init_num_threads): Likewise.
18411 (run_gcc): Automatically detect core count for -flto.
18412 (jobserver_active_p): New function.
18413
18414 2019-07-30 Richard Biener <rguenther@suse.de>
18415
18416 PR tree-optimization/91257
18417 * bitmap.h (bitmap_ior_into_and_free): Declare.
18418 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18419 whether to add the unliked element to the freelist.
18420 (bitmap_list_insert_element_after): Add defaulted param for
18421 an already allocated element.
18422 (bitmap_ior_into_and_free): New function.
18423 * tree-ssa-structalias.c (condense_visit): Reduce the
18424 ponts-to and edge bitmaps of the SCC members in a
18425 logarithmic fashion rather than all to one.
18426
18427 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
18428
18429 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18430 parameter. When nonnull, make sure that the addition or subtraction
18431 has the same condition.
18432 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18433 for CFN_COND_MUL too.
18434
18435 2019-07-30 Richard Biener <rguenther@suse.de>
18436
18437 PR tree-optimization/91291
18438 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18439 constant values.
18440
18441 2019-07-30 Jakub Jelinek <jakub@redhat.com>
18442
18443 PR middle-end/91216
18444 * omp-low.c (global_nonaddressable_vars): New variable.
18445 (use_pointer_for_field): For global decls, if they are non-addressable,
18446 remember it in the global_nonaddressable_vars bitmap, if they are
18447 addressable and in the global_nonaddressable_vars bitmap, ignore their
18448 TREE_ADDRESSABLE bit.
18449 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18450 vars in global_nonaddressable_vars bitmap.
18451 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18452
18453 PR target/91150
18454 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18455 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18456 comparison to unsigned HOST_WIDE_INT before shifting it left.
18457
18458 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18459
18460 * config/i386/i386.md (movstrict<mode>): Use register_operand
18461 predicate for operand 0. Add expander condition. Assert that
18462 operand 0 is a SUBREG RTX.
18463 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18464 Update operand constraints and insn condition.
18465 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18466 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18467 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18468 Update operand 0 constraints.
18469 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18470
18471 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18472
18473 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18474 when -m{code,data}-region are used without -mlarge.
18475 * config/msp430/msp430.c (msp430_option_override): Error when a
18476 non-default code or data region is used without -mlarge.
18477 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18478 attributes when they are used without -mlarge.
18479
18480 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18481
18482 PR target/70320
18483 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18484
18485 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18486
18487 PR middle-end/91242
18488 * wide-int.h (generic_wide_int::sext_elt): New function.
18489 * inchash.h (hash::add_wide_int): Use it instead of elt.
18490
18491 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18492
18493 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18494 CODE_FOR_arm_##.
18495 * config/arm/arm.md (<crc_variant>): Rename to...
18496 (arm_<crc_variant>): ... This.
18497 (<cdp>): Rename to...
18498 (arm_<cdp>): ... This.
18499 (<ldc>): Rename to...
18500 (arm_<ldc>): ... This.
18501 (<stc>): Rename to...
18502 (arm_<stc>): ... This.
18503 (<mcr>): Rename to...
18504 (arm_<mcr>): ... This.
18505 (<mrc>): Rename to...
18506 (arm_<mrc>): ... This.
18507 (<mcrr>): Rename to...
18508 (arm_<mcrr>): ... This.
18509 (<mrrc>): Rename to...
18510 (arm_<mrrc>): ... This.
18511
18512 2019-07-29 Richard Biener <rguenther@suse.de>
18513
18514 PR tree-optimization/91257
18515 * tree-ssa-sccvn.h (struct vn_avail): New.
18516 (struct vn_ssa_aux): Add avail member.
18517 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18518 member, add m_avail_freelist one.
18519 (rpo_elim::~rpo_elim): Remove.
18520 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18521 data structure.
18522 (rpo_elim::eliminate_push_avail): Likewise.
18523 (do_unwind): Likewise.
18524 (do_rpo_vn): Likewise.
18525
18526 2019-07-29 Richard Biener <rguenther@suse.de>
18527
18528 PR tree-optimization/91257
18529 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18530 most cases, instead call compare_values which handles the
18531 symbolic ranges we handle specially.
18532 (compare_values_warnv): Do not call operand_less_p but open-code
18533 the effective fold calls. Avoid converting so much.
18534
18535 2019-07-29 Martin Liska <mliska@suse.cz>
18536
18537 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18538 remove LHS of operator new call. It's handled latter.
18539
18540 2019-07-29 Richard Biener <rguenther@suse.de>
18541
18542 PR tree-optimization/91267
18543 * vr-values.c (vr_values::update_value_range): Add early return
18544 for effectively VARYING lattice entry.
18545
18546 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18547
18548 PR debug/86638
18549 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18550 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18551 necessary if keep_all_vdefs_p is true.
18552 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18553 that keep_all_vdefs_p is false.
18554 (mark_all_reaching_defs_necessary): Likewise.
18555 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18556
18557 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18558
18559 * common.opt (Og): Change the initial value of flag_dse to 0.
18560 * opts.c (default_options_table): Move OPT_ftree_dse from
18561 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18562 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18563 entry before the OPT_ftree_sra entry.
18564 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18565 of flags disabled by Og.
18566
18567 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18568
18569 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18570 variables for -Og.
18571
18572 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18573
18574 * doc/sourcebuild.texi (check-function-bodies): Document.
18575
18576 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18577
18578 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18579 VEC_DUPLICATE of a fixed-length vector even if the result
18580 is variable-length. Likewise fold a duplicate of a
18581 variable-length vector if the variable-length vector is
18582 itself a duplicate of a fixed-length sequence.
18583 (test_vector_ops_duplicate): Test more cases.
18584
18585 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18586
18587 * vector-builder.h (vector_builder): Add a shape template parameter.
18588 (vector_builder::new_unary_operation): New function, generalizing
18589 the old tree_vector_builder function.
18590 (vector_builder::new_binary_operation): Likewise.
18591 (vector_builder::binary_encoded_nelts): Likewise.
18592 * int-vector-builder.h (int_vector_builder): Update template
18593 parameters to vector_builder.
18594 (int_vector_builder::shape_nelts): New function.
18595 * rtx-vector-builder.h (rtx_vector_builder): Update template
18596 parameters to vector_builder.
18597 (rtx_vector_builder::shape_nelts): New function.
18598 (rtx_vector_builder::nelts_of): Likewise.
18599 (rtx_vector_builder::npatterns_of): Likewise.
18600 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18601 * tree-vector-builder.h (tree_vector_builder): Update template
18602 parameters to vector_builder.
18603 (tree_vector_builder::shape_nelts): New function.
18604 (tree_vector_builder::nelts_of): Likewise.
18605 (tree_vector_builder::npatterns_of): Likewise.
18606 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18607 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18608 (tree_vector_builder::new_binary_operation): Delete.
18609 (tree_vector_builder::binary_encoded_nelts): Likewise.
18610 * simplify-rtx.c: Include rtx-vector-builder.h.
18611 (distributes_over_addition_p): New function.
18612 (simplify_const_unary_operation)
18613 (simplify_const_binary_operation): Generalize handling of vector
18614 constants to include variable-length vectors.
18615 (test_vector_ops_series): Add more tests.
18616
18617 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18618
18619 PR lto/91222
18620 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18621 than INDENTIFIER_POINTER.
18622
18623 2019-07-28 Martin Liska <mliska@suse.cz>
18624
18625 PR ipa/89330
18626 * cgraph.c (symbol_table::create_edge): Always allocate
18627 a cgraph_edge.
18628 (symbol_table::free_edge): Store summary_id to
18629 edge_released_summary_ids if != -1;
18630 * cgraph.h (NEXT_FREE_NODE): Remove.
18631 (SET_NEXT_FREE_NODE): Likewise.
18632 (NEXT_FREE_EDGE): Likewise.
18633 (symbol_table::release_symbol): Store summary_id to
18634 cgraph_released_summary_ids if != -1;
18635 (symbol_table::allocate_cgraph_symbol): Always allocate
18636 a cgraph_node.
18637
18638 2019-07-28 Alan Modra <amodra@gmail.com>
18639
18640 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18641 gen_sibcall.
18642
18643 2019-07-28 Alan Modra <amodra@gmail.com>
18644
18645 PR target/91135
18646 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18647 define.
18648 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18649 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18650 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18651
18652 2019-07-28 Alan Modra <amodra@gmail.com>
18653
18654 PR target/91050
18655 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18656 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18657 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18658 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18659 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18660 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18661 in asm_default spec.
18662 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18663 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18664
18665 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18666
18667 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18668
18669 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18670
18671 PR target/89517
18672 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18673 * config/aarch64/aarch64-option-extensions.def: Add new comments
18674 and restore easier to read options.
18675
18676 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18677
18678 * convert.c (convert_to_real_1): Move part of conversion code...
18679 * match.pd: ...To here.
18680
18681 2019-07-26 Martin Jambor <mjambor@suse.cz>
18682
18683 PR ipa/89330
18684 * ipa-inline-transform.c (check_speculations_1): New function.
18685 (push_all_edges_in_set_to_vec): Likewise.
18686 (check_speculations): Use check_speculations_1, new parameter
18687 new_edges.
18688 (inline_call): Pass new_edges to check_speculations.
18689 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18690 NULL.
18691 (speculation_useful_p): Early return true if edge is inlined, remove
18692 later checks for inline_failed.
18693
18694 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18695
18696 PR rtl-optimization/91223
18697 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18698 matching with INOUT operand.
18699
18700 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18701
18702 * stmt.c (expand_case): Try to narrow the index type if it's larger
18703 than a word. Tidy up.
18704
18705 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18706
18707 * cif-code.def (NEVER_CALL): New code.
18708 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18709 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18710
18711 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18712
18713 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18714 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18715
18716 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18717
18718 * ipa-devirt.c (add_type_duplicate): Fix return value.
18719
18720 2019-07-25 Richard Biener <rguenther@suse.de>
18721
18722 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18723 type parameter and use it instead of guessing expression
18724 type from the first operand.
18725 (extract_range_from_binary_expr): Pass expr_type down.
18726
18727 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18728
18729 * config/arm/arm.md (SATrev): Change to code attribute.
18730 (*satsi_<SAT:code>): Adjust for the above.
18731 (*satsi_<SAT:code>_shift): Likewise.
18732
18733 2019-07-25 Richard Biener <rguenther@suse.de>
18734
18735 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18736 Make value_range * temporary const.
18737 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18738 Likewise.
18739 (evrp_range_analyzer::record_ranges_from_): Likewise.
18740 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18741 deal with having recorded a const one.
18742 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18743 Return a const value_range *.
18744 (evrp_range_analyzer::pop_value_range): Likewise.
18745 (evrp_range_analyzer::stack): Record const value_range *s.
18746 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18747 Adjust.
18748 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18749 (format_integer): Likewise.
18750 (sprintf_dom_walker::handle_gimple_call): Likewise.
18751 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18752 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18753 (vrp_prop::get_value_range): Adjust.
18754 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18755 modifying the lattice in-place.
18756 (vrp_prop::visit_stmt): Likewise.
18757 * vr-values.c (vr_values::get_lattice_entry): New private method.
18758 (vr_values::get_value_range): Wrap it and return a const
18759 value_range *.
18760 (vr_values::set_def_to_varying): New.
18761 (vr_values::set_defs_to_varying): Use it.
18762 (vr_values::update_value_range): Likewise.
18763 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18764 (values::op_with_constant_singleton_va): Likewise.
18765 (vr_values::extract_range_for_var_from_co): Likewise.
18766 (vr_values::extract_range_from_ssa_name): Likewise.
18767 (vr_values::extract_range_from_cond_expr): Likewise.
18768 (vr_values::extract_range_basic): Likewise.
18769 (compare_ranges): Take const value_range *, adjust.
18770 (compare_range_with_value): Likewise.
18771 (vrp_valueize): Adjust.
18772 (vrp_valueize_1): Likewise.
18773 (vr_values::get_vr_for_comparison): Return a const value_range *.
18774 (vr_values::compare_name_with_value): Adjust.
18775 (vr_values::compare_names): Likewise.
18776 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18777 Likewise.
18778 (vr_values::vrp_evaluate_conditional): Likewise.
18779 (find_case_label_ranges): Take a const value_range *.
18780 (vr_values::vrp_visit_switch_stmt): Adjust.
18781 (vr_values::extract_range_from_phi_node): Likewise.
18782 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18783 (vr_values::simplify_abs_using_ranges): Likewise.
18784 (test_for_singularity): Take a const value_range *.
18785 (range_fits_type_p): Likewise.
18786 (vr_values::simplify_cond_using_ranges_1): Adjust.
18787 (vr_values::simplify_cond_using_ranges_2): Likewise.
18788 (vr_values::simplify_switch_using_ranges): Likewise.
18789 (vr_values::simplify_float_conversion_usi): Likewise.
18790 (vr_values::two_valued_val_range_p): Likewise.
18791 * vr-values.h (vr_values::get_value_range): Return a const
18792 value_range *.
18793 (vr_values::set_def_to_varying): New.
18794 (vr_values::get_lattice_entry): New private method.
18795 (vr_values::get_vr_for_comparison): Return a const value_range *.
18796
18797 2019-07-25 Martin Liska <mliska@suse.cz>
18798 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18799
18800 PR c++/23383
18801 * common.opt: Add -fallocation-dce
18802 * gimple.c (gimple_call_operator_delete_p): New.
18803 * gimple.h (gimple_call_operator_delete_p): Likewise.
18804 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18805 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18806 DECL_IS_OPERATOR_DELETE_P.
18807 (mark_all_reaching_defs_necessary_1): Likewise.
18808 (propagate_necessity): Likewise.
18809 (eliminate_unnecessary_stmts): Handle
18810 gimple_call_operator_delete_p.
18811 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18812 Add packing of OPERATOR_DELETE.
18813 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18814 Similarly here.
18815 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18816 (DECL_SET_IS_OPERATOR_DELETE): New.
18817 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18818
18819 2019-07-25 Martin Liska <mliska@suse.cz>
18820
18821 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18822 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18823 * coverage.c (coverage_begin_function): Likewise.
18824 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18825 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18826 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18827 (sem_item::hash_referenced_symbol_properties): Likewise.
18828 * lto-streamer-out.c (hash_tree): Likewise.
18829 * predict.c (expr_expected_value_1): Likewise.
18830 * tree-inline.c (expand_call_inline): Likewise.
18831 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18832 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18833 * tree-core.h (enum function_decl_type): New enum.
18834 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18835 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18836 (set_function_decl_type): Likewise.
18837 (DECL_IS_OPERATOR_NEW_P): New.
18838 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18839 (DECL_LAMBDA_FUNCTION): Likewise.
18840 (DECL_LAMBDA_FUNCTION_P): Likewise.
18841 (DECL_IS_OPERATOR_NEW): Remove.
18842 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18843
18844 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18845
18846 * ipa-profile.c (get_most_common_single_value): Use
18847 get_nth_most_common_value.
18848 * profile.c (sort_hist_value): New function.
18849 (compute_value_histograms): Call sort_hist_value to sort the
18850 values after loading from disk.
18851 * value-prof.c (get_most_common_single_value): Rename to ...
18852 get_nth_most_common_value. Add input params n, return
18853 the n_th value and count.
18854 (gimple_divmod_fixed_value_transform): Use
18855 get_nth_most_common_value.
18856 (gimple_ic_transform): Likewise.
18857 (gimple_stringops_transform): Likewise.
18858 * value-prof.h (get_most_common_single_value): Add input params
18859 n, default to 0.
18860
18861 2019-07-25 Richard Biener <rguenther@suse.de>
18862
18863 PR tree-optimization/91236
18864 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18865 size of CONSTRUCTOR write. Fix buffer size we pass to
18866 native_encode_expr.
18867
18868 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18869
18870 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18871 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18872 r273773.
18873
18874 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18875
18876 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18877 explicitly disabled with --disable-initfini-array.
18878
18879 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18880
18881 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18882 if-exists.
18883
18884 2019-07-24 Martin Sebor <msebor@redhat.com>
18885
18886 PR tree-optimization/91183
18887 PR tree-optimization/86688
18888 * builtins.c (compute_objsize): Handle MEM_REF.
18889 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18890 (get_min_string_length): Remove.
18891 (count_nonzero_bytes): New function.
18892 (handle_char_store): Rename...
18893 (handle_store): to this. Handle multibyte stores via integer types.
18894 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18895 function name.
18896
18897 2019-07-24 Martin Sebor <msebor@redhat.com>
18898
18899 PR driver/80545
18900 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18901 (diagnostic_report_diagnostic): Same.
18902 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18903 (diagnostic_context::lang_mask): New data member.
18904 * ipa-pure-const.c (suggest_attribute): Use
18905 lang_hooks.option_lang_mask ().
18906 * opts-common.c (option_enabled): Handle new argument.
18907 (get_option_state): Pass an additional argument.
18908 * opts.c (print_filtered_help): Print supported languages for
18909 unsupported options. Adjust printing of current state.
18910 * opts.h (option_enabled): Add argument.
18911 * toplev.c (print_switch_values): Use lang_mask.
18912 (general_init): Set global_dc->lang_mask.
18913
18914 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18915
18916 PR bootstrap/87030
18917 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18918
18919 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18920
18921 * cgraphunit.c (symbol_table::compile): Start and stop
18922 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18923 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18924
18925 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18926
18927 * gimplify.c (flag_instrument_functions_exclude_p): Include
18928 namespace/class information in the printable name.
18929 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18930 to tokens entered into the vector.
18931
18932 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18933
18934 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18935 (get_static_chain): Call it instead of build_simple_mem_ref.
18936 (get_frame_field): Likewise.
18937 (get_nonlocal_debug_decl): Likewise.
18938 (convert_nonlocal_reference_op): Likewise.
18939
18940 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18941
18942 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18943 declaration.
18944 (arc_compute_frame_size): Millicode is disabled when compiling
18945 ISR.
18946 (arc_return_address_register): Likewise.
18947 (arc_compute_function_type): Likewise.
18948 (arc_compute_frame_size): Likewise.
18949 (secondary_reload_info): Likewise.
18950 (arc_get_unalign): Likewise.
18951 (arc_can_use_return_insn): Declare.
18952 * config/arc/arc.c (AUX_LP_START): Define
18953 (AUX_LP_END): Likewise.
18954 (arc_frame_info): Update gmask member to 64-bit datum.
18955 (GMASK_LEN): Update.
18956 (arc_compute_function_type): Make it static, move it forward.
18957 (arc_must_save_register): Update, consider the extra regs.
18958 (arc_compute_millicode_save_restore_regs): Update to use the 64
18959 bit gmask.
18960 (arc_compute_frame_size): Likewise.
18961 (arc_enter_leave_p): Likewise.
18962 (arc_save_callee_saves): Likewise.
18963 (arc_restore_callee_saves): Likewise.
18964 (arc_save_callee_enter): Likewise.
18965 (arc_restore_callee_leave): Likewise.
18966 (arc_save_callee_milli): Likewise.
18967 (arc_restore_callee_milli): Likewise.
18968 (arc_expand_prologue): Add new interrupt handling.
18969 (arc_return_address_register): Make it static, move it forward.
18970 (arc_expand_epilogue): Add new interrupt handling.
18971 (arc_get_unalign): Delete.
18972 (arc_epilogue_uses): Make sure we do not remove the extra
18973 saved/restored registers when interrupt.
18974 (arc_can_use_return_insn): New function.
18975 (push_reg): Likewise.
18976 (pop_reg): Likewise.
18977 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18978 procedures.
18979 (arc_restore_callee_saves): Likewise, but restoring.
18980 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18981 (R33_REG): Likewise.
18982 (R34_REG): Likewise.
18983 (R35_REG): Likewise.
18984 (R36_REG): Likewise.
18985 (R37_REG): Likewise.
18986 (R38_REG): Likewise.
18987 (R39_REG): Likewise.
18988 (R45_REG): Likewise.
18989 (R46_REG): Likewise.
18990 (R47_REG): Likewise.
18991 (R48_REG): Likewise.
18992 (R49_REG): Likewise.
18993 (R50_REG): Likewise.
18994 (R51_REG): Likewise.
18995 (R52_REG): Likewise.
18996 (R53_REG): Likewise.
18997 (R54_REG): Likewise.
18998 (R55_REG): Likewise.
18999 (R56_REG): Likewise.
19000 (R58_REG): Likewise.
19001 (type): Add rtie attribute.
19002 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
19003 (movsi_insn): Accept moves to lp_count.
19004 (rtie): Update pattern.
19005 (simple_return): Simplify it, don't use this pattern as a return
19006 from an interrupt.
19007 (arc600_rtie): New pattern.
19008 (p_return_i): Clean up.
19009 (return): Likewise.
19010 * config/arc/builtins.def (rtie): Only available for non ARC6xx
19011 family CPUs.
19012 * config/arc/predicates.md (move_src_operand): Consider lp_count
19013 as a register.
19014
19015 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
19016
19017 * config/s390/predicates.md (addv_const_operand): New predicate.
19018 * config/s390/s390-modes.def (CCO): New condition code mode.
19019 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
19020 (s390_branch_condition_mask): Likewise.
19021 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
19022 ("mulv<mode>4"): New expanders.
19023 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
19024 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
19025 pattern definitions.
19026
19027 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19028
19029 PR middle-end/91166
19030 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
19031 (define_predicates): Add entry for uniform_vector_p.
19032 (vec_same_elem_p): New match pattern.
19033
19034 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19035
19036 PR bootstrap/87030
19037 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
19038 * config/i386/darwin32-biarch.h .. to here.
19039 * config/i386/darwin64-biarch.h: Adjust comments.
19040 * config/rs6000/darwin32-biarch.h: Likewise.
19041 * config/rs6000/darwin64-biarch.h: Likewise.
19042 * config.gcc: Missed commit from r273746
19043 (*-*-darwin*): Don't include CPU t-darwin here.
19044 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19045 an error message if i686-darwin configuration is attempted for
19046 Darwin >= 18.
19047
19048 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
19049
19050 PR bootstrap/87030
19051 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
19052 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19053 an error message if i686-darwin configuration is attempted for
19054 Darwin >= 18.
19055 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
19056 (powerpc-*-darwin*): Use biarch files where needed.
19057 (powerpc64-*-darwin*): Likewise.
19058 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
19059 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19060 arch case.
19061 * config/i386/darwin32-biarch.h: New.
19062 * config/i386/darwin64.h: Rename.
19063 * config/i386/darwin64-biarch.h: To this.
19064 * config/i386/t-darwin: Rename.
19065 * config/i386/t-darwin32-biarch: To this.
19066 * config/i386/t-darwin64: Rename.
19067 * config/i386/t-darwin64-biarch: To this.
19068 * config/rs6000/darwin32-biarch.h: New.
19069 * config/rs6000/darwin64.h: Rename.
19070 * config/rs6000/darwin64-biarch.h: To this.
19071 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19072 arch case.
19073 * config/rs6000/t-darwin8: Rename.
19074 * config/rs6000/t-darwin32-biarch: To this.
19075 * config/rs6000/t-darwin64 Rename.
19076 * config/rs6000/t-darwin64-biarch: To this.
19077
19078 2019-07-23 Martin Sebor <msebor@redhat.com>
19079
19080 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
19081
19082 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19083
19084 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
19085 (rh): New alias for it.
19086
19087 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19088
19089 * gdbhooks.py: Pass replace=True to
19090 gdb.printing.register_pretty_printer.
19091
19092 2019-07-23 Richard Biener <rguenther@suse.de>
19093
19094 PR debug/91231
19095 * lto-streamer-in.c (input_function): Drop inline-entry markers
19096 that ended up with an unknown location block.
19097
19098 2019-07-23 Richard Biener <rguenther@suse.de>
19099
19100 PR tree-optimization/83518
19101 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
19102 init from a constant even when partial defs are already recorded.
19103
19104 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19105
19106 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
19107 * config/i386/znver1.md: Enable patterns for znver2 and add store
19108 variants which use extra AGU unit.
19109
19110 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19111
19112 * config/i386/i386-options.c (ix86_option_override_internal): Default
19113 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
19114 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
19115 for ZNVER2.
19116
19117 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19118
19119 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
19120 (znver2_costs): Update 256 bit SSE costs and multiplication.
19121
19122 2019-07-23 Jan Beulich <jbeulich@suse.com>
19123
19124 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
19125 Require only AVX512F.
19126 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
19127 alternative expanding to vpternlog.
19128
19129 2019-07-23 Martin Liska <mliska@suse.cz>
19130
19131 * dwarf2out.c (gen_producer_string): Canonize -flto=N
19132 to -flto in dwarf producer string.
19133
19134 2019-07-23 Richard Biener <rguenther@suse.de>
19135
19136 * tree-cfg.c (label_for_bb): Remove global var.
19137 (main_block_label): Take label_for_bb as argument.
19138 (cleanup_dead_labels_eh): Likewise, adjust.
19139 (cleanup_dead_labels): Adjust.
19140
19141 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19142
19143 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
19144 Configurations): Add documentation for __builtin_mtfsf.
19145
19146 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
19147
19148 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
19149 * config/riscv/riscv.c (riscv_constant_alignment): Use
19150 riscv_align_data_type.
19151 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
19152 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19153 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19154 * config/riscv/riscv.opt (malign-data): New.
19155 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
19156
19157 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
19158
19159 * cgraph.c (dump_graphviz): New function.
19160 * cgraph.h (dump_graphviz): New function.
19161 * symtab.c (dump_graphviz): New function.
19162
19163 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
19164
19165 * config/aarch64/aarch64-simd.md
19166 (*aarch64_simd_sra<mode>): New.
19167 * config/aarch64/iterators.md
19168 (SHIFTRT): New iterator.
19169 (sra_op): New attribute.
19170
19171 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19172
19173 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
19174 callee-saved regs R4->R10 in an interrupt function that calls another
19175 function.
19176
19177 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19178
19179 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
19180 (_mm_blendv_epi8): New.
19181
19182 2019-07-22 Richard Biener <rguenther@suse.de>
19183
19184 PR tree-optimization/91221
19185 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
19186 restrict partial-def handling of empty constructors and
19187 memset to refs with known offset.
19188
19189 2019-07-22 Jan Beulich <jbeulich@suse.com>
19190
19191 * config/i386/sse.md (ternlogsuffix): New.
19192 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
19193 AVX512F is in use.
19194 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
19195
19196 2019-07-22 Martin Liska <mliska@suse.cz>
19197
19198 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
19199 comment.
19200 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
19201
19202 2019-07-22 Martin Liska <mliska@suse.cz>
19203
19204 * lto-section-in.c (lto_get_section_data):
19205 Use new function get_compression.
19206 * lto-streamer-out.c (produce_lto_section): Use
19207 set_compression to encode compression algorithm.
19208 * lto-streamer.h (struct lto_section): Do not
19209 use bitfields in the format.
19210
19211 2019-07-22 Martin Liska <mliska@suse.cz>
19212
19213 PR driver/91172
19214 * opts-common.c (decode_cmdline_option): Decode
19215 argument of -Werror and check it for a wrong language.
19216 * opts-global.c (complain_wrong_lang): Remove such case.
19217
19218 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
19219
19220 * config/arc/arc.c (prepare_move_operands): Always use an
19221 intermediate register when storing a TLS symbols.
19222
19223 2019-07-22 Stafford Horne <shorne@gmail.com>
19224
19225 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
19226 force_reg.
19227
19228 2019-07-22 Stafford Horne <shorne@gmail.com>
19229
19230 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
19231 and munordered-float validations.
19232 * config/or1k/constraints.md (d): New register constraint.
19233 * config/or1k/predicates.md (fp_comparison_operator): New.
19234 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
19235 operands.
19236 (or1k_expand_compare): Normalize unordered comparisons.
19237 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
19238 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
19239 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
19240 * config/or1k/or1k.md (type): Add fpu.
19241 (fpu): New instruction reservation.
19242 (F, f, fr, fi, FI, FOP, fop): New.
19243 (<fop><F:mode>3): New ALU instruction definition.
19244 (float<fi><F:mode>2): New conversion instruction definition.
19245 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
19246 (fpcmpcc): New code iterator.
19247 (*sf_fp_insn): New instruction definition.
19248 (cstore<F:mode>4): New expand definition.
19249 (cbranch<F:mode>4): New expand definition.
19250 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
19251 munordered-float): New options.
19252 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
19253 munordered-float.
19254
19255 2019-07-22 Stafford Horne <shorne@gmail.com>
19256
19257 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
19258 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
19259 documenation to be more clear.
19260 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
19261 more clear.
19262 * config/or1k/or1k.opt (mrori): New option.
19263 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
19264 msfimm, mshftimm): Rewrite documentation to be more clear.
19265 * config/or1k/or1k.md (insn_support): Add ror and rori.
19266 (enabled): Add conditions for ror and rori.
19267 (rotrsi3): Replace condition for shftimm with ror and rori.
19268
19269 2019-07-22 Stafford Horne <shorne@gmail.com>
19270
19271 PR target/90363
19272 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
19273 (extend<mode>si2): Update predicate.
19274 * config/or1k/predicates.md (volatile_mem_operand): New.
19275 (reg_or_mem_operand): New.
19276
19277 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
19278
19279 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
19280 * config/rs6000/rs6000-call.c: ... to here.
19281
19282 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19283
19284 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
19285 memory.
19286
19287 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19288
19289 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
19290
19291 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19292
19293 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
19294
19295 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19296
19297 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
19298 (any_memory_operand): New predicate.
19299 (reg_or_mem_operand): Use it.
19300
19301 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19302
19303 PR target/91204
19304 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
19305
19306 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
19307
19308 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
19309 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
19310
19311 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19312
19313 * tree.def (OMP_LOOP): New tree code.
19314 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
19315 (enum omp_clause_bind_kind): New enum.
19316 (struct tree_omp_clause): Add subcode.bind_kind.
19317 * tree.h (OMP_LOOP_CHECK): Rename to ...
19318 (OMP_LOOPING_CHECK): ... this.
19319 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
19320 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
19321 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
19322 (OMP_CLAUSE_BIND_KIND): Define.
19323 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19324 bind clause entries.
19325 (walk_tree_1): Handle OMP_CLAUSE_BIND.
19326 * tree-pretty-print.c (dump_omp_clause): Likewise.
19327 (dump_generic_node): Handle OMP_LOOP.
19328 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
19329 (in_omp_construct): New variable.
19330 (is_gimple_stmt): Handle OMP_LOOP.
19331 (gimplify_scan_omp_clauses): For lastprivate don't set
19332 check_non_private if code == OMP_LOOP. For reduction clause
19333 on OMP_LOOP combined with parallel or teams propagate as shared
19334 on the combined construct. Handle OMP_CLAUSE_BIND.
19335 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
19336 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
19337 for constructs from a loop construct to gimplify_scan_omp_clauses.
19338 Don't predetermine iterator linear on OMP_SIMD from loop construct.
19339 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
19340 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
19341 to match the implicit ORT_TARGET construct around whole body.
19342 Temporarily clear in_omp_construct when processing body.
19343 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
19344 etc. temporarily set in_omp_construct when processing body.
19345 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
19346 * omp-low.c (struct omp_context): Add loop_p.
19347 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
19348 in that the original var might be private.
19349 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
19350 (check_omp_nesting_restrictions): Adjust nesting restrictions for
19351 addition of loop construct.
19352 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
19353
19354 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
19355 lastprivate non-addressable iterator of a collapse(1) simd.
19356
19357 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
19358
19359 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
19360 as in rs6000.c.
19361
19362 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
19363
19364 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
19365 refer to default conditions. Warn for the 'y' spec which is ignored
19366 by current linkers.
19367
19368 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
19369
19370 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19371 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19372 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19373 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19374 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19375 init_cumulative_args, rs6000_promote_function_mode,
19376 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19377 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19378 rs6000_function_arg_boundary, rs6000_parm_offset,
19379 rs6000_parm_start, rs6000_arg_size,
19380 rs6000_darwin64_record_arg_advance_flush,
19381 rs6000_darwin64_record_arg_advance_recurse,
19382 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19383 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19384 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19385 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19386 rs6000_finish_function_arg, rs6000_function_arg,
19387 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19388 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19389 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19390 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19391 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19392 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19393 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19394 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19395 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19396 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19397 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19398 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19399 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19400 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19401 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19402 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19403 get_element_number, altivec_expand_vec_set_builtin,
19404 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19405 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19406 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19407 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19408 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19409 rs6000_expand_builtin, rs6000_vector_type,
19410 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19411 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19412 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19413 to rs6000-call.c.
19414 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19415 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19416 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19417 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19418 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19419 init_cumulative_args, rs6000_promote_function_mode,
19420 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19421 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19422 rs6000_function_arg_boundary, rs6000_parm_offset,
19423 rs6000_parm_start, rs6000_arg_size,
19424 rs6000_darwin64_record_arg_advance_flush,
19425 rs6000_darwin64_record_arg_advance_recurse,
19426 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19427 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19428 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19429 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19430 rs6000_finish_function_arg, rs6000_function_arg,
19431 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19432 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19433 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19434 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19435 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19436 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19437 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19438 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19439 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19440 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19441 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19442 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19443 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19444 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19445 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19446 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19447 get_element_number, altivec_expand_vec_set_builtin,
19448 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19449 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19450 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19451 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19452 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19453 rs6000_expand_builtin, rs6000_vector_type,
19454 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19455 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19456 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19457 to here from rs6000.c.
19458 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19459 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19460 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19461 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19462 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19463 rs6000_return_in_memory, rs6000_return_in_msb,
19464 rs6000_pass_by_reference, setup_incoming_varargs,
19465 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19466 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19467 rs6000_function_arg_padding, rs6000_function_arg,
19468 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19469 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19470 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19471 rs6000_passes_long_double, rs6000_passes_vector,
19472 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19473 altivec_builtin_mask_for_load) Add declarations.
19474 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19475 * config/config.gcc: Add new source file rs6000-call.c to garbage
19476 collector and extra_objs.
19477
19478 2019-07-19 Jeff Law <law@redhat.com>
19479
19480 PR tree-optimization/86061
19481 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19482 strncpy. Drop some trivial dead code.
19483 (maybe_trim_memstar_call): Handle strncpy.
19484
19485 2019-07-19 Richard Biener <rguenther@suse.de>
19486
19487 PR tree-optimization/91211
19488 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19489 memset encoding size.
19490
19491 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19492
19493 PR target/91204
19494 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19495
19496 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19497
19498 PR ipa/91194
19499 * ipa-inline.c (recursive_inlining): Fix limits check.
19500
19501 2019-07-19 Richard Biener <rguenther@suse.de>
19502
19503 PR tree-optimization/91200
19504 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19505 no PHI nodes in middle-bb.
19506
19507 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19508
19509 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19510 to +sve-bitperm.
19511 * config/aarch64/aarch64-option-extensions.def: Likewise.
19512
19513 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19514
19515 PR middle-end/91190
19516 * function.c (insert_temp_slot_address): Store into the hash table
19517 a copy of address to avoid RTL sharing issues.
19518
19519 2019-07-19 Richard Biener <rguenther@suse.de>
19520
19521 PR tree-optimization/91207
19522 Revert
19523 2019-07-17 Richard Biener <rguenther@suse.de>
19524
19525 PR tree-optimization/91178
19526 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19527 loads with a gap larger than the vector size always use
19528 VMAT_STRIDED_SLP.
19529 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19530 avoid loading vectors that are only contained in the gap
19531 and thus are not needed.
19532
19533 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19534
19535 * config/i386/i386.md (*addqi_2_slp): Remove.
19536 (*<code>qi_2_slp): Ditto.
19537
19538 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19539
19540 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19541 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19542 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19543 Rename function from rs6000_prefixed_address.
19544 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19545 TARGET_HAS_TOC.
19546 (TARGET_TOC): Likewise.
19547 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19548 rs6000.h.
19549 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19550 TARGET_HAS_TOC.
19551 (TARGET_TOC): Likewise.
19552 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19553 rs6000.h.
19554 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19555 TARGET_HAS_TOC.
19556 (TARGET_TOC): Likewise.
19557 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19558 check to require -mcmodel=medium for pc-relative addressing.
19559 (create_TOC_reference): Add assertion for TARGET_TOC.
19560 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19561 TARGET_NO_TOC.
19562 (rs6000_emit_move): Likewise.
19563 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19564 to 'TOC_alias_set'.
19565 (get_TOC_alias_set): Likewise.
19566 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19567 TARGET_NO_TOC.
19568 (rs6000_can_eliminate): Likewise.
19569 (rs6000_prefixed_address_mode_p): Rename function from
19570 rs6000_prefixed_address.
19571 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19572 TARGET_HAS_TOC and not pc-relative.
19573 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19574 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19575 TARGET_HAS_TOC.
19576 (TARGET_TOC): Likewise.
19577 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19578 rs6000.h.
19579
19580 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19581
19582 PR target/91188
19583 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19584 for operand 0. Do not use (match_dup) to match operand 1 with
19585 operand 0. Add check in insn constraint that either input operand
19586 matches operand 0. Use SWI12 mode iterator to also handle
19587 HImode operands.
19588 (*and<mode>_1_slp): Ditto.
19589 (*<code>qi_1_slp): Ditto.
19590 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19591 Do not use (match_dup) to match operand 1 with operand 0. Add
19592 check in insn constraint that operand 1 matches operand 0.
19593 Use SWI12 mode iterator to also handle HImode operands.
19594 (*ashl<mode>3_1_slp): Ditto.
19595 (*<shift_insn><mode>3_1_slp): Ditto.
19596 (*<rotate_insn><mode>3_1_slp): Ditto.
19597
19598 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19599
19600 * config/arm/arm-builtins.c
19601 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19602 (arm_expand_unop_builtin): Likewise.
19603 * config/arm/crypto.md
19604 (crypto_sha1h): Convert from define_insn to define_expand.
19605 (crypto_<crypto_pattern>): Likewise.
19606 (crypto_sha1h_lb): New define_insn.
19607 (crypto_<crypto_pattern>_lb): Likewise.
19608
19609 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19610
19611 PR target/90317
19612 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19613 (vsha1cq_u32): Likewise.
19614 (vsha1pq_u32): Likewise.
19615 (vsha1mq_u32): Likewise.
19616 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19617 vec select.
19618 (crypto_sha1c): Correct vec select.
19619 (crypto_sha1m): Likewise.
19620 (crypto_sha1p): Likewise.
19621
19622 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19623
19624 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19625 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19626 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19627 (subdi_zesidi_zesidi): Likewise.
19628 (negdi2_compare, negdi2_insn): Likewise.
19629 (negdi_extensidi): Likewise.
19630 (negdi_zero_extendsidi): Likewise.
19631 (arm_cmpdi_insn): Likewise.
19632 (subsi3_carryin): Use arm_borrow_operation.
19633 (subsi3_carryin_const): Likewise.
19634 (subsi3_carryin_const0): Likewise.
19635 (subsi3_carryin_compare): Likewise.
19636 (subsi3_carryin_compare_const): Likewise.
19637 (subsi3_carryin_compare_const0): Likewise.
19638 (subsi3_carryin_shift): Likewise.
19639 (rsbsi3_carryin_shift): Likewise.
19640 (negsi2_carryin_compare): Likewise.
19641
19642 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19643
19644 PR tree-optimization/91137
19645 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19646 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19647 Init, use and fini the above new field.
19648 (determine_base_object_1): New function.
19649 (determine_base_object): Reimplement using walk_tree.
19650
19651 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19652
19653 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19654 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19655 CLEANUP_FORCE_FAST_DCE is set.
19656 * ifcvt.c (rest_of_handle_if_conversion): Pass
19657 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19658 if-conversion succeeded.
19659
19660 2019-07-18 Richard Biener <rguenther@suse.de>
19661
19662 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19663 branches to make code less indented.
19664
19665 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19666
19667 PR middle-end/81824
19668 * attribs.c (decls_mismatched_attributes): Simplify the logic
19669 that avoids duplicates and false positives.
19670
19671 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19672
19673 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19674 data into data section when generating PIC code.
19675 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19676 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19677 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19678 return 2 for SOM and 0 for other targets.
19679
19680 2019-07-17 Jeff Law <law@redhat.com>
19681
19682 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19683 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19684 avoid unexpected switch statement fallthru.
19685
19686 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19687
19688 * config/i386/i386.md (*add<dwi>3_doubleword):
19689 Remove redundant constraints.
19690 (*add<mode>_1): Ditto.
19691 (*addhi_1): Ditto.
19692 (*addqi_1): Ditto.
19693 (*addqi_1_slp): Ditto.
19694 (*add<mode>_2): Ditto.
19695 (*addv<mode>4): Ditto.
19696 (*sub<dwi>3_doubleword): Ditto.
19697 (*sub<mode>_1): Ditto.
19698 (*subqi_1_slp): Ditto.
19699 (*sub<mode>_2): Ditto.
19700 (*subv<mode>4): Ditto.
19701 (*sub<mode>_3): Ditto.
19702 (@add<mode>3_carry): Ditto.
19703 (@sub<mode>3_carry): Ditto.
19704 (*add<mode>3_cc_overflow_1): Ditto.
19705 (*add<mode>3_zext_cc_overflow_2): Ditto.
19706 (*anddi_1): Ditto.
19707 (*and<mode>_1): Ditto.
19708 (*andqi_1): Ditto.
19709 (*andqi_1_slp): Ditto.
19710 (*anddi_2): Ditto.
19711 (*andqi_2_maybe_si): Ditto.
19712 (*and<mode>_2): Ditto.
19713 (*andqi_2_slp): Ditto.
19714 (*<code><mode>_1): Ditto.
19715 (*<code>qi_1): Ditto.
19716 (*<code>qi_1_slp): Ditto.
19717 (*<code><mode>_2): Ditto.
19718 (*<code>qi_2_slp): Ditto.
19719
19720 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19721
19722 * alias.c (record_component_aliases): Do not simplify pointed-to
19723 types of ODR types.
19724
19725 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19726
19727 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19728 partial reg stall on alternative 2.
19729
19730 2019-07-17 Richard Biener <rguenther@suse.de>
19731
19732 PR tree-optimization/91178
19733 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19734 lower SSA names to avoid quadratic behavior in the common case.
19735 * tree-data-ref.c (split_constant_offset): Add limit argument
19736 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19737 (split_constant_offset_1): Add limit argument and use it to
19738 limit SSA def walking. Optimize the common plus/minus case.
19739
19740 2019-07-17 Richard Biener <rguenther@suse.de>
19741
19742 PR tree-optimization/91178
19743 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19744 loads with a gap larger than the vector size always use
19745 VMAT_STRIDED_SLP.
19746 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19747 avoid loading vectors that are only contained in the gap
19748 and thus are not needed.
19749
19750 2019-07-17 Richard Biener <rguenther@suse.de>
19751
19752 PR tree-optimization/91180
19753 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19754 computation for memset partial defs.
19755
19756 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19757
19758 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19759 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19760 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19761 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19762 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19763 * omp-grid.c (grid_process_grid_body,
19764 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19765 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19766 == GF_OMP_FOR_KIND_SIMD.
19767 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19768 check_omp_nesting_restrictions, scan_omp_1_stmt,
19769 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19770 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19771 omp_find_scan): Likewise.
19772 * omp-expand.c (expand_omp_for): Likewise.
19773 * omp-general.c (omp_extract_for_data): Likewise.
19774
19775 PR tree-optimization/91157
19776 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19777 a vector boolean with scalar mode.
19778 (expand_vector_condition): Handle first operand being a vector boolean
19779 with scalar mode.
19780 (expand_vector_operations_1): For comparisons, don't bail out early
19781 if the return type is vector boolean with scalar mode, but comparison
19782 operand type is not.
19783
19784 2019-07-17 Richard Biener <rguenther@suse.de>
19785
19786 PR tree-optimization/91181
19787 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19788 IFN_LOADs as calls.
19789
19790 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19791
19792 * config/i386/i386.md (*testdi_1): Match CCZmode for
19793 constants that might have the SImode sign bit set.
19794 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19795 Use correct constraints for pentium pairing.
19796 (*test<mode>_1): Ditto.
19797
19798 2019-07-16 Jeff Law <law@redhat.com>
19799
19800 PR rtl-optimization/91173
19801 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19802 SSA_NAME with a constant value, fold its value into the offset
19803 and clear the base before calling gen_addr_rtx.
19804
19805 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19806
19807 PR rtl-optimization/91164
19808 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19809 invalidate dominance info.
19810
19811 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19812
19813 * read-md.h (md_reader::record_potential_iterator_use): Add a
19814 file_location parameter.
19815 * read-rtl.c (attribute_use::loc): New field.
19816 (map_attr_string): Take a file_location parameter. Report cases
19817 in which attributes map to multiple distinct values.
19818 (apply_attribute_uses): Update call accordingly.
19819 (md_reader::handle_overloaded_name): Likewise.
19820 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19821 nonnull strings.
19822 (record_attribute_use): Take a file_location parameter.
19823 Initialize attribute_use::loc.
19824 (md_reader::record_potential_iterator_use): Take a file_location
19825 parameter. Update call to record_attribute_use.
19826 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19827 (rtx_reader::read_rtx_code): Likewise.
19828 (rtx_reader::read_rtx_operand): Likewise. Record a location
19829 for implicitly-expanded empty strings.
19830
19831 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19832
19833 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19834 Use file_location instead of separate fields.
19835 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19836 separate filename and line number.
19837 * read-md.c (ptr_loc): As above.
19838 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19839 (md_reader::fprint_md_ptr_loc): Likewise.
19840 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19841 instead of a separate filename and line number.
19842 (md_reader::read_string): Update call accordingly.
19843
19844 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19845
19846 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19847 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19848 leaving the choice between SFDF and P implicit.
19849 (*mov<mode>_update2): Likewise.
19850 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19851 rather than leaving the choice betweem IBM128 and GPR implicit.
19852 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19853 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19854 QHSI implicit.
19855 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19856 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19857 * config/rs6000/vsx.md
19858 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19859 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19860 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19861 and VSX_EXTRACT_I implicit.
19862
19863 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19864
19865 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19866 Explicitly use <MOVEP1:MODE> for the mode attribute.
19867
19868 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19869
19870 PR bootstrap/91176
19871 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19872
19873 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19874
19875 PR target/91050
19876 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19877 .machine directive.
19878
19879 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19880
19881 * config/i386/i386.md (@test<mode>_ccno_1):
19882 Rename from test<mode>_ccno_1.
19883 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19884 (*testqi_1_maybe_si): Remove modrm attribute.
19885 (*test<mode>_1): Ditto.
19886 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19887 gen_test_ccno_1 and gen_extend_insn.
19888
19889 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19890
19891 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19892 to 0.
19893
19894 2019-07-15 Richard Biener <rguenther@suse.de>
19895
19896 PR middle-end/91162
19897 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19898 node make sure to replace all uses with something valid.
19899
19900 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19901
19902 PR tree-optimization/88497
19903 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19904 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19905 function undistribute_bitref_for_vector.
19906 (undistribute_bitref_for_vector): New function.
19907 (cleanup_vinfo_map): Likewise.
19908 (sort_by_mach_mode): Likewise.
19909
19910 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19911
19912 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19913 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19914 and testdi_ccno_1 using SWI48 mode attribute.
19915 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19916 x86_64_szext_general_operand.
19917 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19918 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19919 instead of genera_operand mode attribute.
19920
19921 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19922
19923 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19924 fopen and fclose to their respective types.
19925 (DotFn.invoke): Ditto.
19926
19927 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19928
19929 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19930 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19931 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19932 (array_index_predicate): Remove.
19933 (analyze_function_body): Account cost for variable ofsetted array
19934 indexing.
19935 (estimate_node_size_and_time): Do not compute array index hint.
19936 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19937 (inline_read_section): Do not read array index hint.
19938 (ipa_fn_summary_write): Do not write array index hint.
19939 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19940 * ipa-cp.c (hint_time_bonus): Remove.
19941 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19942 (ipa_fnsummary): Remove array_index.
19943 * ipa-inline.c (want_inline_small_function_p): Do not use
19944 array_index.
19945 (edge_badness): Likewise.
19946 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19947
19948 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19949
19950 PR target/91148
19951 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19952 superfluous "builtin function" phrasing.
19953
19954 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19955
19956 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19957 Break out from ...
19958 (aliasing_component_refs_walk): Break out from ...
19959 (aliasing_component_refs_p): ... here.
19960
19961 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19962
19963 PR target/91148
19964 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19965 "builtin function" phrasing.
19966
19967 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19968
19969 PR target/90723
19970 * recog.h (temporary_volatile_ok): New class.
19971 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19972 volatile_ok temporarily to true using temporary_volatile_ok.
19973 * expr.c (emit_block_move_via_cpymem): Likewise.
19974 * optabs.c (maybe_legitimize_operand): Likewise.
19975
19976 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19977
19978 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19979 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19980 uses inside of order(concurrent) constructs.
19981 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19982 OMP_CLAUSE_ORDER is seen.
19983 * omp-low.c (struct omp_context): Add order_concurrent member.
19984 (scan_sharing_clauses): Set ctx->order_concurrent if
19985 OMP_CLAUSE_ORDER is seen.
19986 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19987 of simd order(concurrent). Diagnose constructs not allowed inside of
19988 for order(concurrent).
19989 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19990 complaining about static double setjmp (double); or class static
19991 methods or non-global namespace setjmps.
19992 (omp_runtime_api_call): New function.
19993 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19994 order(concurrent) loops.
19995
19996 2019-07-12 Martin Sebor <msebor@redhat.com>
19997
19998 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19999 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
20000 * tree-vrp.c (vrp_prop::check_mem_ref): Use
20001 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
20002
20003 2019-07-12 Jan Hubicka <jh@suse.cz>
20004
20005 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
20006 (indirect_refs_may_alias_p): ... here.
20007 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
20008 mem refs in the access paths.
20009
20010 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
20011
20012 PR tree-optimization/89430
20013 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
20014 store elimination for local variable without address escape.
20015
20016 2019-07-12 Jeff Law <law@redhat.com>
20017
20018 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
20019 for the ".far" section.
20020
20021 2019-07-12 Richard Biener <rguenther@suse.de>
20022
20023 PR tree-optimization/91145
20024 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
20025 chain check.
20026
20027 2019-07-12 Alexandre Oliva <oliva@adacore.com>
20028
20029 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
20030 rather than this_state as the lowering context for the ELSE
20031 seq in a GIMPLE_EH_ELSE.
20032
20033 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20034
20035 * vector-builder.h (vector_builder::elt): Allow already-supplied
20036 elements to be read back before building is complete.
20037
20038 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20039
20040 PR rtl-optimization/91136
20041 * df-core.c (ACCESSING REFS): Fix typos in comment.
20042 * resource.c (mark_target_live_reg): Add artificial defs that occur at
20043 the beginning of the block to the initial set of live registers.
20044
20045 2019-07-12 Richard Biener <rguenther@suse.de>
20046
20047 * fold-const.h (get_array_ctor_element_at_index): Adjust.
20048 * fold-const.c (get_array_ctor_element_at_index): Add
20049 ctor_idx output parameter informing the caller where in
20050 the constructor the element was (not) found. Add early exit
20051 for when the ctor is sorted.
20052 * gimple-fold.c (fold_array_ctor_reference): Support constant
20053 folding across multiple array elements.
20054
20055 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20056
20057 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
20058 doesn't have location, set the current location to the function's end.
20059
20060 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20061
20062 * config/aarch64/aarch64.md (*compare_condjump<mode>)
20063 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
20064 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
20065 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
20066 * config/aarch64/aarch64-simd.md
20067 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
20068 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
20069 * config/aarch64/aarch64-sve.md
20070 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
20071 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
20072
20073 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20074
20075 * doc/md.texi: Document that @ patterns can have different
20076 numbers of operands.
20077 * genemit.c (handle_overloaded_gen): Handle this case.
20078 * genopinit.c (handle_overloaded_gen): Likewise.
20079 * gensupport.c (replace_operands_with_dups): Iterate over
20080 the new rtx's format rather than the old one's.
20081
20082 2019-07-12 Jakub Jelinek <jakub@redhat.com>
20083
20084 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
20085 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
20086 order clause entries.
20087 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
20088 * tree-pretty-print.c (dump_omp_clause): Likewise.
20089 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
20090 Likewise.
20091 * omp-low.c (scan_sharing_clauses): Likewise.
20092 * tree-nested.c (convert_nonlocal_omp_clauses,
20093 convert_local_omp_clauses): Likewise.
20094
20095 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
20096
20097 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
20098 fallthrough target of current basic block isn't the placed
20099 right next.
20100
20101 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
20102
20103 PR target/90980
20104 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
20105 (_mm512_storeu_epi64): Likewise.
20106 (_mm512_loadu_epi32): Likewise.
20107 (_mm512_storeu_epi32): Likewise.
20108 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
20109 (_mm_storeu_epi64): Likewise.
20110 (_mm256_storeu_epi32): Likewise.
20111 (_mm_storeu_epi32): Likewise.
20112
20113 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20114
20115 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
20116
20117 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20118
20119 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
20120 Handle Modula-2.
20121
20122 2019-07-11 Jakub Jelinek <jakub@redhat.com>
20123
20124 PR target/91124
20125 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
20126 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20127 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
20128 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
20129 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
20130 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
20131 define_insns.
20132 (ufix_truncv2dfv2si2<mask_name>): Change into ...
20133 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
20134 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
20135 define_insns.
20136 (sse2_cvttpd2dq<mask_name>): Change into ...
20137 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
20138 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
20139 (*sse2_cvtpd2dq<mask_name>): Change into ...
20140 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20141 Add "C" constraint to const0_operand.
20142 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
20143 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
20144 changes.
20145
20146 PR target/91124
20147 * config/i386/i386-builtin-types.def
20148 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
20149 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
20150 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
20151 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
20152 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
20153 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
20154 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
20155 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
20156 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
20157 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
20158 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
20159 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
20160 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
20161 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
20162 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
20163 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
20164 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
20165 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
20166 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
20167 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
20168 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
20169 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
20170 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
20171 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
20172 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
20173 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
20174 __builtin_ia32_vpdpbusd_v4si_maskz,
20175 __builtin_ia32_vpdpbusds_v16si_mask,
20176 __builtin_ia32_vpdpbusds_v16si_maskz,
20177 __builtin_ia32_vpdpbusds_v8si_mask,
20178 __builtin_ia32_vpdpbusds_v8si_maskz,
20179 __builtin_ia32_vpdpbusds_v4si_mask,
20180 __builtin_ia32_vpdpbusds_v4si_maskz,
20181 __builtin_ia32_vpdpwssd_v16si_mask,
20182 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
20183 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
20184 __builtin_ia32_vpdpwssd_v4si_maskz,
20185 __builtin_ia32_vpdpwssds_v16si_mask,
20186 __builtin_ia32_vpdpwssds_v16si_maskz,
20187 __builtin_ia32_vpdpwssds_v8si_mask,
20188 __builtin_ia32_vpdpwssds_v8si_maskz,
20189 __builtin_ia32_vpdpwssds_v4si_mask,
20190 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
20191 suffixed types rather than *_INT.
20192 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
20193 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
20194 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
20195 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
20196 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
20197 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
20198
20199 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
20200
20201 * tree-vrp.c (intersect_ranges): If we know the intersection is
20202 empty, there is no need to conservatively add anything else to
20203 the set.
20204
20205 2019-07-11 Richard Biener <rguenther@suse.de>
20206
20207 PR middle-end/91131
20208 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
20209 when the object is volatile and we have not cleared it even though
20210 there are no nonzero elements.
20211
20212 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
20213
20214 * config/rs6000/predicates.md (cint34_operand): Update
20215 SIGNED_34BIT_OFFSET_P call.
20216 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
20217 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
20218 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
20219 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
20220 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
20221 argument.
20222 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
20223 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
20224 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
20225 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
20226 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
20227
20228 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
20229
20230 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
20231 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
20232 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
20233 (DEF_MIN_OSX_VERSION): New.
20234
20235 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20236
20237 * fold-const.c (fold_relational_const): Fix folding of
20238 vector-to-scalar NE_EXPRs.
20239 (test_vector_folding): Add more tests.
20240
20241 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20242
20243 PR target/91060
20244 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
20245 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
20246 (vec_setv2di_internal): Reexpress as...
20247 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
20248 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
20249 rather than gen_neon_vset_lane<mode>.
20250
20251 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
20252
20253 PR target/91102
20254 * lra-constraints.c (process_alt_operands): Don't match user
20255 defined regs only if they are early clobbers.
20256
20257 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
20258
20259 * wide-int.h (wi::lshift): Reject negative values for the fast path.
20260
20261 2019-07-10 Richard Biener <rguenther@suse.de>
20262
20263 PR tree-optimization/91126
20264 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
20265 native encoding offset for BYTES_BIG_ENDIAN.
20266 (vn_reference_lookup_3): Likewise.
20267
20268 2019-07-10 Richard Biener <rguenther@suse.de>
20269
20270 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
20271 LHS whenever possible.
20272
20273 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
20274
20275 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
20276 from ...; work also on duplicated types.
20277 (nonoverlapping_component_refs_since_match): ... here
20278 (ncr_type_uid): Break out from ...
20279 (ncr_compar): ... here; look for TYPE_UID of canonical type if
20280 available.
20281 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
20282 the types and nonoverlapping_component_refs_p_1 to disambiguate.
20283
20284 2019-07-09 Martin Sebor <msebor@redhat.com>
20285
20286 PR tree-optimization/90989
20287 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
20288 optimization to just single character stores.
20289
20290 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
20291
20292 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
20293 Swap operands only once.
20294
20295 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
20296
20297 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
20298 for both call instructions.
20299
20300 2019-07-09 John Darrington <john@darrington.wattle.id.au>
20301
20302 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
20303 rather than GET_MODE_BITSIZE to better handle partial integer modes.
20304
20305 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
20306
20307 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
20308 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
20309 function from rs6000-logue.c back to rs6000.c.
20310 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
20311
20312 2019-07-09 Martin Sebor <msebor@redhat.com>
20313
20314 PR c++/61339
20315 * auto-profile.c: Change class-key of PODs to struct and others
20316 to class.
20317 * basic-block.h: Same.
20318 * bitmap.c (bitmap_alloc): Same.
20319 * bitmap.h: Same.
20320 * builtins.c (expand_builtin_prefetch): Same.
20321 (expand_builtin_interclass_mathfn): Same.
20322 (expand_builtin_strlen): Same.
20323 (expand_builtin_mempcpy_args): Same.
20324 (expand_cmpstr): Same.
20325 (expand_builtin___clear_cache): Same.
20326 (expand_ifn_atomic_bit_test_and): Same.
20327 (expand_builtin_thread_pointer): Same.
20328 (expand_builtin_set_thread_pointer): Same.
20329 * caller-save.c (setup_save_areas): Same.
20330 (replace_reg_with_saved_mem): Same.
20331 (insert_restore): Same.
20332 (insert_save): Same.
20333 (add_used_regs): Same.
20334 * cfg.c (get_bb_copy): Same.
20335 (set_loop_copy): Same.
20336 * cfg.h: Same.
20337 * cfganal.h: Same.
20338 * cfgexpand.c (alloc_stack_frame_space): Same.
20339 (add_stack_var): Same.
20340 (add_stack_var_conflict): Same.
20341 (add_scope_conflicts_1): Same.
20342 (update_alias_info_with_stack_vars): Same.
20343 (expand_used_vars): Same.
20344 * cfghooks.c (redirect_edge_and_branch_force): Same.
20345 (delete_basic_block): Same.
20346 (split_edge): Same.
20347 (make_forwarder_block): Same.
20348 (force_nonfallthru): Same.
20349 (duplicate_block): Same.
20350 (lv_flush_pending_stmts): Same.
20351 * cfghooks.h: Same.
20352 * cfgloop.c (flow_loops_cfg_dump): Same.
20353 (flow_loop_nested_p): Same.
20354 (superloop_at_depth): Same.
20355 (get_loop_latch_edges): Same.
20356 (flow_loop_dump): Same.
20357 (flow_loops_dump): Same.
20358 (flow_loops_free): Same.
20359 (flow_loop_nodes_find): Same.
20360 (establish_preds): Same.
20361 (flow_loop_tree_node_add): Same.
20362 (flow_loop_tree_node_remove): Same.
20363 (flow_loops_find): Same.
20364 (find_subloop_latch_edge_by_profile): Same.
20365 (find_subloop_latch_edge_by_ivs): Same.
20366 (mfb_redirect_edges_in_set): Same.
20367 (form_subloop): Same.
20368 (merge_latch_edges): Same.
20369 (disambiguate_multiple_latches): Same.
20370 (disambiguate_loops_with_multiple_latches): Same.
20371 (flow_bb_inside_loop_p): Same.
20372 (glb_enum_p): Same.
20373 (get_loop_body_with_size): Same.
20374 (get_loop_body): Same.
20375 (fill_sons_in_loop): Same.
20376 (get_loop_body_in_dom_order): Same.
20377 (get_loop_body_in_custom_order): Same.
20378 (release_recorded_exits): Same.
20379 (get_loop_exit_edges): Same.
20380 (num_loop_branches): Same.
20381 (remove_bb_from_loops): Same.
20382 (find_common_loop): Same.
20383 (delete_loop): Same.
20384 (cancel_loop): Same.
20385 (verify_loop_structure): Same.
20386 (loop_preheader_edge): Same.
20387 (loop_exit_edge_p): Same.
20388 (single_exit): Same.
20389 (loop_exits_to_bb_p): Same.
20390 (loop_exits_from_bb_p): Same.
20391 (get_loop_location): Same.
20392 (record_niter_bound): Same.
20393 (get_estimated_loop_iterations_int): Same.
20394 (max_stmt_executions_int): Same.
20395 (likely_max_stmt_executions_int): Same.
20396 (get_estimated_loop_iterations): Same.
20397 (get_max_loop_iterations): Same.
20398 (get_max_loop_iterations_int): Same.
20399 (get_likely_max_loop_iterations): Same.
20400 * cfgloop.h (simple_loop_desc): Same.
20401 (get_loop): Same.
20402 (loop_depth): Same.
20403 (loop_outer): Same.
20404 (loop_iterator::next): Same.
20405 (loop_outermost): Same.
20406 * cfgloopanal.c (mark_irreducible_loops): Same.
20407 (num_loop_insns): Same.
20408 (average_num_loop_insns): Same.
20409 (expected_loop_iterations_unbounded): Same.
20410 (expected_loop_iterations): Same.
20411 (mark_loop_exit_edges): Same.
20412 (single_likely_exit): Same.
20413 * cfgloopmanip.c (fix_bb_placement): Same.
20414 (fix_bb_placements): Same.
20415 (remove_path): Same.
20416 (place_new_loop): Same.
20417 (add_loop): Same.
20418 (scale_loop_frequencies): Same.
20419 (scale_loop_profile): Same.
20420 (create_empty_if_region_on_edge): Same.
20421 (create_empty_loop_on_edge): Same.
20422 (loopify): Same.
20423 (unloop): Same.
20424 (fix_loop_placements): Same.
20425 (copy_loop_info): Same.
20426 (duplicate_loop): Same.
20427 (duplicate_subloops): Same.
20428 (loop_redirect_edge): Same.
20429 (can_duplicate_loop_p): Same.
20430 (duplicate_loop_to_header_edge): Same.
20431 (mfb_keep_just): Same.
20432 (has_preds_from_loop): Same.
20433 (create_preheader): Same.
20434 (create_preheaders): Same.
20435 (lv_adjust_loop_entry_edge): Same.
20436 (loop_version): Same.
20437 * cfgloopmanip.h: Same.
20438 * cgraph.h: Same.
20439 * cgraphbuild.c: Same.
20440 * combine.c (make_extraction): Same.
20441 * config/i386/i386-features.c: Same.
20442 * config/i386/i386-features.h: Same.
20443 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20444 (ix86_emit_outlined_ms2sysv_restore): Same.
20445 (ix86_noce_conversion_profitable_p): Same.
20446 (ix86_init_cost): Same.
20447 (ix86_simd_clone_usable): Same.
20448 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20449 Wstruct-not-pod.
20450 * coretypes.h: Same.
20451 * data-streamer-in.c (string_for_index): Change class-key of PODs
20452 to struct and others to class.
20453 (streamer_read_indexed_string): Same.
20454 (streamer_read_string): Same.
20455 (bp_unpack_indexed_string): Same.
20456 (bp_unpack_string): Same.
20457 (streamer_read_uhwi): Same.
20458 (streamer_read_hwi): Same.
20459 (streamer_read_gcov_count): Same.
20460 (streamer_read_wide_int): Same.
20461 * data-streamer.h (streamer_write_bitpack): Same.
20462 (bp_unpack_value): Same.
20463 (streamer_write_char_stream): Same.
20464 (streamer_write_hwi_in_range): Same.
20465 (streamer_write_record_start): Same.
20466 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20467 (add_cross_iteration_register_deps): Same.
20468 (build_intra_loop_deps): Same.
20469 * df-core.c (df_analyze): Same.
20470 (loop_post_order_compute): Same.
20471 (loop_inverted_post_order_compute): Same.
20472 * df-problems.c (df_rd_alloc): Same.
20473 (df_rd_simulate_one_insn): Same.
20474 (df_rd_local_compute): Same.
20475 (df_rd_init_solution): Same.
20476 (df_rd_confluence_n): Same.
20477 (df_rd_transfer_function): Same.
20478 (df_rd_free): Same.
20479 (df_rd_dump_defs_set): Same.
20480 (df_rd_top_dump): Same.
20481 (df_lr_alloc): Same.
20482 (df_lr_reset): Same.
20483 (df_lr_local_compute): Same.
20484 (df_lr_init): Same.
20485 (df_lr_confluence_n): Same.
20486 (df_lr_free): Same.
20487 (df_lr_top_dump): Same.
20488 (df_lr_verify_transfer_functions): Same.
20489 (df_live_alloc): Same.
20490 (df_live_reset): Same.
20491 (df_live_init): Same.
20492 (df_live_confluence_n): Same.
20493 (df_live_finalize): Same.
20494 (df_live_free): Same.
20495 (df_live_top_dump): Same.
20496 (df_live_verify_transfer_functions): Same.
20497 (df_mir_alloc): Same.
20498 (df_mir_reset): Same.
20499 (df_mir_init): Same.
20500 (df_mir_confluence_n): Same.
20501 (df_mir_free): Same.
20502 (df_mir_top_dump): Same.
20503 (df_word_lr_alloc): Same.
20504 (df_word_lr_reset): Same.
20505 (df_word_lr_init): Same.
20506 (df_word_lr_confluence_n): Same.
20507 (df_word_lr_free): Same.
20508 (df_word_lr_top_dump): Same.
20509 (df_md_alloc): Same.
20510 (df_md_simulate_one_insn): Same.
20511 (df_md_reset): Same.
20512 (df_md_init): Same.
20513 (df_md_free): Same.
20514 (df_md_top_dump): Same.
20515 * df-scan.c (df_insn_delete): Same.
20516 (df_insn_rescan): Same.
20517 (df_notes_rescan): Same.
20518 (df_sort_and_compress_mws): Same.
20519 (df_install_mws): Same.
20520 (df_refs_add_to_chains): Same.
20521 (df_ref_create_structure): Same.
20522 (df_ref_record): Same.
20523 (df_def_record_1): Same.
20524 (df_find_hard_reg_defs): Same.
20525 (df_uses_record): Same.
20526 (df_get_conditional_uses): Same.
20527 (df_get_call_refs): Same.
20528 (df_recompute_luids): Same.
20529 (df_get_entry_block_def_set): Same.
20530 (df_entry_block_defs_collect): Same.
20531 (df_get_exit_block_use_set): Same.
20532 (df_exit_block_uses_collect): Same.
20533 (df_mws_verify): Same.
20534 (df_bb_verify): Same.
20535 * df.h (df_scan_get_bb_info): Same.
20536 * doc/tm.texi: Same.
20537 * dse.c (record_store): Same.
20538 * dumpfile.h: Same.
20539 * emit-rtl.c (const_fixed_hasher::equal): Same.
20540 (set_mem_attributes_minus_bitpos): Same.
20541 (change_address): Same.
20542 (adjust_address_1): Same.
20543 (offset_address): Same.
20544 * emit-rtl.h: Same.
20545 * except.c (dw2_build_landing_pads): Same.
20546 (sjlj_emit_dispatch_table): Same.
20547 * explow.c (allocate_dynamic_stack_space): Same.
20548 (emit_stack_probe): Same.
20549 (probe_stack_range): Same.
20550 * expmed.c (store_bit_field_using_insv): Same.
20551 (store_bit_field_1): Same.
20552 (store_integral_bit_field): Same.
20553 (extract_bit_field_using_extv): Same.
20554 (extract_bit_field_1): Same.
20555 (emit_cstore): Same.
20556 * expr.c (emit_block_move_via_cpymem): Same.
20557 (expand_cmpstrn_or_cmpmem): Same.
20558 (set_storage_via_setmem): Same.
20559 (emit_single_push_insn_1): Same.
20560 (expand_assignment): Same.
20561 (store_constructor): Same.
20562 (expand_expr_real_2): Same.
20563 (expand_expr_real_1): Same.
20564 (try_casesi): Same.
20565 * flags.h: Same.
20566 * function.c (try_fit_stack_local): Same.
20567 (assign_stack_local_1): Same.
20568 (assign_stack_local): Same.
20569 (cut_slot_from_list): Same.
20570 (insert_slot_to_list): Same.
20571 (max_slot_level): Same.
20572 (move_slot_to_level): Same.
20573 (temp_address_hasher::equal): Same.
20574 (remove_unused_temp_slot_addresses): Same.
20575 (assign_temp): Same.
20576 (combine_temp_slots): Same.
20577 (update_temp_slot_address): Same.
20578 (preserve_temp_slots): Same.
20579 * function.h: Same.
20580 * fwprop.c: Same.
20581 * gcc-rich-location.h: Same.
20582 * gcov.c: Same.
20583 * genattrtab.c (check_attr_test): Same.
20584 (check_attr_value): Same.
20585 (convert_set_attr_alternative): Same.
20586 (convert_set_attr): Same.
20587 (check_defs): Same.
20588 (copy_boolean): Same.
20589 (get_attr_value): Same.
20590 (expand_delays): Same.
20591 (make_length_attrs): Same.
20592 (min_fn): Same.
20593 (make_alternative_compare): Same.
20594 (simplify_test_exp): Same.
20595 (tests_attr_p): Same.
20596 (get_attr_order): Same.
20597 (clear_struct_flag): Same.
20598 (gen_attr): Same.
20599 (compares_alternatives_p): Same.
20600 (gen_insn): Same.
20601 (gen_delay): Same.
20602 (find_attrs_to_cache): Same.
20603 (write_test_expr): Same.
20604 (walk_attr_value): Same.
20605 (write_attr_get): Same.
20606 (eliminate_known_true): Same.
20607 (write_insn_cases): Same.
20608 (write_attr_case): Same.
20609 (write_attr_valueq): Same.
20610 (write_attr_value): Same.
20611 (write_dummy_eligible_delay): Same.
20612 (next_comma_elt): Same.
20613 (find_attr): Same.
20614 (make_internal_attr): Same.
20615 (copy_rtx_unchanging): Same.
20616 (gen_insn_reserv): Same.
20617 (check_tune_attr): Same.
20618 (make_automaton_attrs): Same.
20619 (handle_arg): Same.
20620 * genextract.c (gen_insn): Same.
20621 (VEC_char_to_string): Same.
20622 * genmatch.c (print_operand): Same.
20623 (lower): Same.
20624 (parser::parse_operation): Same.
20625 (parser::parse_capture): Same.
20626 (parser::parse_c_expr): Same.
20627 (parser::parse_simplify): Same.
20628 (main): Same.
20629 * genoutput.c (output_operand_data): Same.
20630 (output_get_insn_name): Same.
20631 (compare_operands): Same.
20632 (place_operands): Same.
20633 (process_template): Same.
20634 (validate_insn_alternatives): Same.
20635 (validate_insn_operands): Same.
20636 (gen_expand): Same.
20637 (note_constraint): Same.
20638 * genpreds.c (write_one_predicate_function): Same.
20639 (add_constraint): Same.
20640 (process_define_register_constraint): Same.
20641 (write_lookup_constraint_1): Same.
20642 (write_lookup_constraint_array): Same.
20643 (write_insn_constraint_len): Same.
20644 (write_reg_class_for_constraint_1): Same.
20645 (write_constraint_satisfied_p_array): Same.
20646 * genrecog.c (optimize_subroutine_group): Same.
20647 * gensupport.c (process_define_predicate): Same.
20648 (queue_pattern): Same.
20649 (remove_from_queue): Same.
20650 (process_rtx): Same.
20651 (is_predicable): Same.
20652 (change_subst_attribute): Same.
20653 (subst_pattern_match): Same.
20654 (alter_constraints): Same.
20655 (alter_attrs_for_insn): Same.
20656 (shift_output_template): Same.
20657 (alter_output_for_subst_insn): Same.
20658 (process_one_cond_exec): Same.
20659 (subst_dup): Same.
20660 (process_define_cond_exec): Same.
20661 (mnemonic_htab_callback): Same.
20662 (gen_mnemonic_attr): Same.
20663 (read_md_rtx): Same.
20664 * ggc-page.c: Same.
20665 * gimple-loop-interchange.cc (dump_reduction): Same.
20666 (dump_induction): Same.
20667 (loop_cand::~loop_cand): Same.
20668 (free_data_refs_with_aux): Same.
20669 (tree_loop_interchange::interchange_loops): Same.
20670 (tree_loop_interchange::map_inductions_to_loop): Same.
20671 (tree_loop_interchange::move_code_to_inner_loop): Same.
20672 (compute_access_stride): Same.
20673 (compute_access_strides): Same.
20674 (proper_loop_form_for_interchange): Same.
20675 (tree_loop_interchange_compute_ddrs): Same.
20676 (prune_datarefs_not_in_loop): Same.
20677 (prepare_data_references): Same.
20678 (pass_linterchange::execute): Same.
20679 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20680 (unroll_jam_possible_p): Same.
20681 (fuse_loops): Same.
20682 (adjust_unroll_factor): Same.
20683 (tree_loop_unroll_and_jam): Same.
20684 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20685 (loop_versioning::expensive_stmt_p): Same.
20686 (loop_versioning::version_for_unity): Same.
20687 (loop_versioning::dump_inner_likelihood): Same.
20688 (loop_versioning::find_per_loop_multiplication): Same.
20689 (loop_versioning::analyze_term_using_scevs): Same.
20690 (loop_versioning::record_address_fragment): Same.
20691 (loop_versioning::analyze_expr): Same.
20692 (loop_versioning::analyze_blocks): Same.
20693 (loop_versioning::prune_conditions): Same.
20694 (loop_versioning::merge_loop_info): Same.
20695 (loop_versioning::add_loop_to_queue): Same.
20696 (loop_versioning::decide_whether_loop_is_versionable): Same.
20697 (loop_versioning::make_versioning_decisions): Same.
20698 (loop_versioning::implement_versioning_decisions): Same.
20699 * gimple-ssa-evrp-analyze.c
20700 (evrp_range_analyzer::record_ranges_from_phis): Same.
20701 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20702 (count_multiple_uses): Same.
20703 (split_group): Same.
20704 (imm_store_chain_info::output_merged_store): Same.
20705 (pass_store_merging::process_store): Same.
20706 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20707 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20708 (is_max): Same.
20709 (alloca_call_type): Same.
20710 (pass_walloca::execute): Same.
20711 * gimple-streamer-in.c (input_phi): Same.
20712 (input_gimple_stmt): Same.
20713 * gimple-streamer.h: Same.
20714 * godump.c (go_force_record_alignment): Same.
20715 (go_format_type): Same.
20716 (go_output_type): Same.
20717 (go_output_fndecl): Same.
20718 (go_output_typedef): Same.
20719 (keyword_hash_init): Same.
20720 (find_dummy_types): Same.
20721 * graph.c (draw_cfg_nodes_no_loops): Same.
20722 (draw_cfg_nodes_for_loop): Same.
20723 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20724 * hsa-brig.c: Same.
20725 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20726 * hsa-dump.c (dump_hsa_cfun): Same.
20727 * hsa-gen.c (gen_function_def_parameters): Same.
20728 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20729 * input.c (dump_line_table_statistics): Same.
20730 (test_lexer): Same.
20731 * input.h: Same.
20732 * internal-fn.c (get_multi_vector_move): Same.
20733 (expand_load_lanes_optab_fn): Same.
20734 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20735 (expand_GOMP_SIMT_EXIT): Same.
20736 (expand_GOMP_SIMT_LAST_LANE): Same.
20737 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20738 (expand_GOMP_SIMT_VOTE_ANY): Same.
20739 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20740 (expand_GOMP_SIMT_XCHG_IDX): Same.
20741 (expand_addsub_overflow): Same.
20742 (expand_neg_overflow): Same.
20743 (expand_mul_overflow): Same.
20744 (expand_call_mem_ref): Same.
20745 (expand_mask_load_optab_fn): Same.
20746 (expand_scatter_store_optab_fn): Same.
20747 (expand_gather_load_optab_fn): Same.
20748 * ipa-cp.c (ipa_get_parm_lattices): Same.
20749 (print_all_lattices): Same.
20750 (ignore_edge_p): Same.
20751 (build_toporder_info): Same.
20752 (free_toporder_info): Same.
20753 (push_node_to_stack): Same.
20754 (ipcp_lattice<valtype>::set_contains_variable): Same.
20755 (set_agg_lats_to_bottom): Same.
20756 (ipcp_bits_lattice::meet_with): Same.
20757 (set_single_call_flag): Same.
20758 (initialize_node_lattices): Same.
20759 (ipa_get_jf_ancestor_result): Same.
20760 (ipcp_verify_propagated_values): Same.
20761 (propagate_scalar_across_jump_function): Same.
20762 (propagate_context_across_jump_function): Same.
20763 (propagate_bits_across_jump_function): Same.
20764 (ipa_vr_operation_and_type_effects): Same.
20765 (propagate_vr_across_jump_function): Same.
20766 (set_check_aggs_by_ref): Same.
20767 (set_chain_of_aglats_contains_variable): Same.
20768 (merge_aggregate_lattices): Same.
20769 (agg_pass_through_permissible_p): Same.
20770 (propagate_aggs_across_jump_function): Same.
20771 (call_passes_through_thunk_p): Same.
20772 (propagate_constants_across_call): Same.
20773 (devirtualization_time_bonus): Same.
20774 (good_cloning_opportunity_p): Same.
20775 (context_independent_aggregate_values): Same.
20776 (gather_context_independent_values): Same.
20777 (perform_estimation_of_a_value): Same.
20778 (estimate_local_effects): Same.
20779 (value_topo_info<valtype>::add_val): Same.
20780 (add_all_node_vals_to_toposort): Same.
20781 (value_topo_info<valtype>::propagate_effects): Same.
20782 (ipcp_propagate_stage): Same.
20783 (ipcp_discover_new_direct_edges): Same.
20784 (same_node_or_its_all_contexts_clone_p): Same.
20785 (cgraph_edge_brings_value_p): Same.
20786 (gather_edges_for_value): Same.
20787 (create_specialized_node): Same.
20788 (find_more_scalar_values_for_callers_subset): Same.
20789 (find_more_contexts_for_caller_subset): Same.
20790 (copy_plats_to_inter): Same.
20791 (intersect_aggregates_with_edge): Same.
20792 (find_aggregate_values_for_callers_subset): Same.
20793 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20794 (decide_about_value): Same.
20795 (decide_whether_version_node): Same.
20796 (spread_undeadness): Same.
20797 (identify_dead_nodes): Same.
20798 (ipcp_store_vr_results): Same.
20799 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20800 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20801 (redirect_to_unreachable): Same.
20802 (edge_set_predicate): Same.
20803 (evaluate_conditions_for_known_args): Same.
20804 (evaluate_properties_for_edge): Same.
20805 (ipa_fn_summary_t::duplicate): Same.
20806 (ipa_call_summary_t::duplicate): Same.
20807 (dump_ipa_call_summary): Same.
20808 (ipa_dump_fn_summary): Same.
20809 (eliminated_by_inlining_prob): Same.
20810 (set_cond_stmt_execution_predicate): Same.
20811 (set_switch_stmt_execution_predicate): Same.
20812 (compute_bb_predicates): Same.
20813 (will_be_nonconstant_expr_predicate): Same.
20814 (phi_result_unknown_predicate): Same.
20815 (analyze_function_body): Same.
20816 (compute_fn_summary): Same.
20817 (estimate_edge_devirt_benefit): Same.
20818 (estimate_edge_size_and_time): Same.
20819 (estimate_calls_size_and_time): Same.
20820 (estimate_node_size_and_time): Same.
20821 (remap_edge_change_prob): Same.
20822 (remap_edge_summaries): Same.
20823 (ipa_merge_fn_summary_after_inlining): Same.
20824 (ipa_fn_summary_generate): Same.
20825 (inline_read_section): Same.
20826 (ipa_fn_summary_read): Same.
20827 (ipa_fn_summary_write): Same.
20828 * ipa-fnsummary.h: Same.
20829 * ipa-hsa.c (ipa_hsa_read_section): Same.
20830 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20831 * ipa-icf.c (sem_function::param_used_p): Same.
20832 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20833 * ipa-inline.c (edge_badness): Same.
20834 (inline_small_functions): Same.
20835 * ipa-polymorphic-call.c
20836 (ipa_polymorphic_call_context::stream_out): Same.
20837 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20838 (predicate::remap_after_inlining): Same.
20839 (predicate::stream_out): Same.
20840 * ipa-predicate.h: Same.
20841 * ipa-profile.c (ipa_profile_read_summary): Same.
20842 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20843 (count_formal_params): Same.
20844 (ipa_dump_param): Same.
20845 (ipa_alloc_node_params): Same.
20846 (ipa_print_node_jump_functions_for_edge): Same.
20847 (ipa_print_node_jump_functions): Same.
20848 (ipa_load_from_parm_agg): Same.
20849 (get_ancestor_addr_info): Same.
20850 (ipa_compute_jump_functions_for_edge): Same.
20851 (ipa_analyze_virtual_call_uses): Same.
20852 (ipa_analyze_stmt_uses): Same.
20853 (ipa_analyze_params_uses_in_bb): Same.
20854 (update_jump_functions_after_inlining): Same.
20855 (try_decrement_rdesc_refcount): Same.
20856 (ipa_impossible_devirt_target): Same.
20857 (update_indirect_edges_after_inlining): Same.
20858 (combine_controlled_uses_counters): Same.
20859 (ipa_edge_args_sum_t::duplicate): Same.
20860 (ipa_write_jump_function): Same.
20861 (ipa_write_indirect_edge_info): Same.
20862 (ipa_write_node_info): Same.
20863 (ipa_read_edge_info): Same.
20864 (ipa_prop_read_section): Same.
20865 (read_replacements_section): Same.
20866 * ipa-prop.h (ipa_get_param_count): Same.
20867 (ipa_get_param): Same.
20868 (ipa_get_type): Same.
20869 (ipa_get_param_move_cost): Same.
20870 (ipa_set_param_used): Same.
20871 (ipa_get_controlled_uses): Same.
20872 (ipa_set_controlled_uses): Same.
20873 (ipa_get_cs_argument_count): Same.
20874 * ipa-pure-const.c (analyze_function): Same.
20875 (pure_const_read_summary): Same.
20876 * ipa-ref.h: Same.
20877 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20878 * ipa-split.c (test_nonssa_use): Same.
20879 (dump_split_point): Same.
20880 (dominated_by_forbidden): Same.
20881 (split_part_set_ssa_name_p): Same.
20882 (find_split_points): Same.
20883 * ira-build.c (finish_loop_tree_nodes): Same.
20884 (low_pressure_loop_node_p): Same.
20885 * ira-color.c (ira_reuse_stack_slot): Same.
20886 * ira-int.h: Same.
20887 * ira.c (setup_reg_equiv): Same.
20888 (print_insn_chain): Same.
20889 (ira): Same.
20890 * loop-doloop.c (doloop_condition_get): Same.
20891 (add_test): Same.
20892 (record_reg_sets): Same.
20893 (doloop_optimize): Same.
20894 * loop-init.c (loop_optimizer_init): Same.
20895 (fix_loop_structure): Same.
20896 * loop-invariant.c (merge_identical_invariants): Same.
20897 (compute_always_reached): Same.
20898 (find_exits): Same.
20899 (may_assign_reg_p): Same.
20900 (find_invariants_bb): Same.
20901 (find_invariants_body): Same.
20902 (replace_uses): Same.
20903 (can_move_invariant_reg): Same.
20904 (free_inv_motion_data): Same.
20905 (move_single_loop_invariants): Same.
20906 (change_pressure): Same.
20907 (mark_ref_regs): Same.
20908 (calculate_loop_reg_pressure): Same.
20909 * loop-iv.c (biv_entry_hasher::equal): Same.
20910 (iv_extend_to_rtx_code): Same.
20911 (check_iv_ref_table_size): Same.
20912 (clear_iv_info): Same.
20913 (latch_dominating_def): Same.
20914 (iv_get_reaching_def): Same.
20915 (iv_constant): Same.
20916 (iv_subreg): Same.
20917 (iv_extend): Same.
20918 (iv_neg): Same.
20919 (iv_add): Same.
20920 (iv_mult): Same.
20921 (get_biv_step): Same.
20922 (record_iv): Same.
20923 (analyzed_for_bivness_p): Same.
20924 (record_biv): Same.
20925 (iv_analyze_biv): Same.
20926 (iv_analyze_expr): Same.
20927 (iv_analyze_def): Same.
20928 (iv_analyze_op): Same.
20929 (iv_analyze): Same.
20930 (iv_analyze_result): Same.
20931 (biv_p): Same.
20932 (eliminate_implied_conditions): Same.
20933 (simplify_using_initial_values): Same.
20934 (shorten_into_mode): Same.
20935 (canonicalize_iv_subregs): Same.
20936 (determine_max_iter): Same.
20937 (check_simple_exit): Same.
20938 (find_simple_exit): Same.
20939 (get_simple_loop_desc): Same.
20940 * loop-unroll.c (report_unroll): Same.
20941 (decide_unrolling): Same.
20942 (unroll_loops): Same.
20943 (loop_exit_at_end_p): Same.
20944 (decide_unroll_constant_iterations): Same.
20945 (unroll_loop_constant_iterations): Same.
20946 (compare_and_jump_seq): Same.
20947 (unroll_loop_runtime_iterations): Same.
20948 (decide_unroll_stupid): Same.
20949 (unroll_loop_stupid): Same.
20950 (referenced_in_one_insn_in_loop_p): Same.
20951 (reset_debug_uses_in_loop): Same.
20952 (analyze_iv_to_split_insn): Same.
20953 * lra-eliminations.c (lra_debug_elim_table): Same.
20954 (setup_can_eliminate): Same.
20955 (form_sum): Same.
20956 (lra_get_elimination_hard_regno): Same.
20957 (lra_eliminate_regs_1): Same.
20958 (eliminate_regs_in_insn): Same.
20959 (update_reg_eliminate): Same.
20960 (init_elimination): Same.
20961 (lra_eliminate): Same.
20962 * lra-int.h: Same.
20963 * lra-lives.c (initiate_live_solver): Same.
20964 * lra-remat.c (create_remat_bb_data): Same.
20965 * lra-spills.c (lra_spill): Same.
20966 * lra.c (lra_set_insn_recog_data): Same.
20967 (lra_set_used_insn_alternative_by_uid): Same.
20968 (init_reg_info): Same.
20969 (expand_reg_info): Same.
20970 * lto-cgraph.c (output_symtab): Same.
20971 (read_identifier): Same.
20972 (get_alias_symbol): Same.
20973 (input_node): Same.
20974 (input_varpool_node): Same.
20975 (input_ref): Same.
20976 (input_edge): Same.
20977 (input_cgraph_1): Same.
20978 (input_refs): Same.
20979 (input_symtab): Same.
20980 (input_offload_tables): Same.
20981 (output_cgraph_opt_summary): Same.
20982 (input_edge_opt_summary): Same.
20983 (input_cgraph_opt_section): Same.
20984 * lto-section-in.c (lto_free_raw_section_data): Same.
20985 (lto_create_simple_input_block): Same.
20986 (lto_free_function_in_decl_state_for_node): Same.
20987 * lto-streamer-in.c (lto_tag_check_set): Same.
20988 (lto_location_cache::revert_location_cache): Same.
20989 (lto_location_cache::input_location): Same.
20990 (lto_input_location): Same.
20991 (stream_input_location_now): Same.
20992 (lto_input_tree_ref): Same.
20993 (lto_input_eh_catch_list): Same.
20994 (input_eh_region): Same.
20995 (lto_init_eh): Same.
20996 (make_new_block): Same.
20997 (input_cfg): Same.
20998 (fixup_call_stmt_edges): Same.
20999 (input_struct_function_base): Same.
21000 (input_function): Same.
21001 (lto_read_body_or_constructor): Same.
21002 (lto_read_tree_1): Same.
21003 (lto_read_tree): Same.
21004 (lto_input_scc): Same.
21005 (lto_input_tree_1): Same.
21006 (lto_input_toplevel_asms): Same.
21007 (lto_input_mode_table): Same.
21008 (lto_reader_init): Same.
21009 (lto_data_in_create): Same.
21010 * lto-streamer-out.c (output_cfg): Same.
21011 * lto-streamer.h: Same.
21012 * modulo-sched.c (duplicate_insns_of_cycles): Same.
21013 (generate_prolog_epilog): Same.
21014 (mark_loop_unsched): Same.
21015 (dump_insn_location): Same.
21016 (loop_canon_p): Same.
21017 (sms_schedule): Same.
21018 * omp-expand.c (expand_omp_for_ordered_loops): Same.
21019 (expand_omp_for_generic): Same.
21020 (expand_omp_for_static_nochunk): Same.
21021 (expand_omp_for_static_chunk): Same.
21022 (expand_omp_simd): Same.
21023 (expand_omp_taskloop_for_inner): Same.
21024 (expand_oacc_for): Same.
21025 (expand_omp_atomic_pipeline): Same.
21026 (mark_loops_in_oacc_kernels_region): Same.
21027 * omp-offload.c (oacc_xform_loop): Same.
21028 * omp-simd-clone.c (simd_clone_adjust): Same.
21029 * optabs-query.c (get_traditional_extraction_insn): Same.
21030 * optabs.c (expand_vector_broadcast): Same.
21031 (expand_binop_directly): Same.
21032 (expand_twoval_unop): Same.
21033 (expand_twoval_binop): Same.
21034 (expand_unop_direct): Same.
21035 (emit_indirect_jump): Same.
21036 (emit_conditional_move): Same.
21037 (emit_conditional_neg_or_complement): Same.
21038 (emit_conditional_add): Same.
21039 (vector_compare_rtx): Same.
21040 (expand_vec_perm_1): Same.
21041 (expand_vec_perm_const): Same.
21042 (expand_vec_cond_expr): Same.
21043 (expand_vec_series_expr): Same.
21044 (maybe_emit_atomic_exchange): Same.
21045 (maybe_emit_sync_lock_test_and_set): Same.
21046 (expand_atomic_compare_and_swap): Same.
21047 (expand_atomic_load): Same.
21048 (expand_atomic_store): Same.
21049 (maybe_emit_op): Same.
21050 (valid_multiword_target_p): Same.
21051 (create_integer_operand): Same.
21052 (maybe_legitimize_operand_same_code): Same.
21053 (maybe_legitimize_operand): Same.
21054 (create_convert_operand_from_type): Same.
21055 (can_reuse_operands_p): Same.
21056 (maybe_legitimize_operands): Same.
21057 (maybe_gen_insn): Same.
21058 (maybe_expand_insn): Same.
21059 (maybe_expand_jump_insn): Same.
21060 (expand_insn): Same.
21061 * optabs.h (create_expand_operand): Same.
21062 (create_fixed_operand): Same.
21063 (create_output_operand): Same.
21064 (create_input_operand): Same.
21065 (create_convert_operand_to): Same.
21066 (create_convert_operand_from): Same.
21067 * optinfo.h: Same.
21068 * poly-int.h: Same.
21069 * predict.c (optimize_insn_for_speed_p): Same.
21070 (optimize_loop_for_size_p): Same.
21071 (optimize_loop_for_speed_p): Same.
21072 (optimize_loop_nest_for_speed_p): Same.
21073 (get_base_value): Same.
21074 (predicted_by_loop_heuristics_p): Same.
21075 (predict_extra_loop_exits): Same.
21076 (predict_loops): Same.
21077 (predict_paths_for_bb): Same.
21078 (predict_paths_leading_to): Same.
21079 (propagate_freq): Same.
21080 (pass_profile::execute): Same.
21081 * predict.h: Same.
21082 * profile-count.c (profile_count::differs_from_p): Same.
21083 (profile_probability::differs_lot_from_p): Same.
21084 * profile-count.h: Same.
21085 * profile.c (branch_prob): Same.
21086 * regrename.c (free_chain_data): Same.
21087 (mark_conflict): Same.
21088 (create_new_chain): Same.
21089 (merge_overlapping_regs): Same.
21090 (init_rename_info): Same.
21091 (merge_chains): Same.
21092 (regrename_analyze): Same.
21093 (regrename_do_replace): Same.
21094 (scan_rtx_reg): Same.
21095 (record_out_operands): Same.
21096 (build_def_use): Same.
21097 * regrename.h: Same.
21098 * reload.h: Same.
21099 * reload1.c (init_reload): Same.
21100 (maybe_fix_stack_asms): Same.
21101 (copy_reloads): Same.
21102 (count_pseudo): Same.
21103 (count_spilled_pseudo): Same.
21104 (find_reg): Same.
21105 (find_reload_regs): Same.
21106 (select_reload_regs): Same.
21107 (spill_hard_reg): Same.
21108 (fixup_eh_region_note): Same.
21109 (set_reload_reg): Same.
21110 (allocate_reload_reg): Same.
21111 (compute_reload_subreg_offset): Same.
21112 (reload_adjust_reg_for_icode): Same.
21113 (emit_input_reload_insns): Same.
21114 (emit_output_reload_insns): Same.
21115 (do_input_reload): Same.
21116 (inherit_piecemeal_p): Same.
21117 * rtl.h: Same.
21118 * sanopt.c (maybe_get_dominating_check): Same.
21119 (maybe_optimize_ubsan_ptr_ifn): Same.
21120 (can_remove_asan_check): Same.
21121 (maybe_optimize_asan_check_ifn): Same.
21122 (sanopt_optimize_walker): Same.
21123 * sched-deps.c (add_dependence_list): Same.
21124 (chain_to_prev_insn): Same.
21125 (add_insn_mem_dependence): Same.
21126 (create_insn_reg_set): Same.
21127 (maybe_extend_reg_info_p): Same.
21128 (sched_analyze_reg): Same.
21129 (sched_analyze_1): Same.
21130 (get_implicit_reg_pending_clobbers): Same.
21131 (chain_to_prev_insn_p): Same.
21132 (deps_analyze_insn): Same.
21133 (deps_start_bb): Same.
21134 (sched_free_deps): Same.
21135 (init_deps): Same.
21136 (init_deps_reg_last): Same.
21137 (free_deps): Same.
21138 * sched-ebb.c: Same.
21139 * sched-int.h: Same.
21140 * sched-rgn.c (add_branch_dependences): Same.
21141 (concat_insn_mem_list): Same.
21142 (deps_join): Same.
21143 (sched_rgn_compute_dependencies): Same.
21144 * sel-sched-ir.c (reset_target_context): Same.
21145 (copy_deps_context): Same.
21146 (init_id_from_df): Same.
21147 (has_dependence_p): Same.
21148 (change_loops_latches): Same.
21149 (bb_top_order_comparator): Same.
21150 (make_region_from_loop_preheader): Same.
21151 (sel_init_pipelining): Same.
21152 (get_loop_nest_for_rgn): Same.
21153 (make_regions_from_the_rest): Same.
21154 (sel_is_loop_preheader_p): Same.
21155 * sel-sched-ir.h (inner_loop_header_p): Same.
21156 (get_all_loop_exits): Same.
21157 * selftest.h: Same.
21158 * sese.c (sese_build_liveouts): Same.
21159 (sese_insert_phis_for_liveouts): Same.
21160 * sese.h (defined_in_sese_p): Same.
21161 * sreal.c (sreal::stream_out): Same.
21162 * sreal.h: Same.
21163 * streamer-hooks.h: Same.
21164 * target-globals.c (save_target_globals): Same.
21165 * target-globals.h: Same.
21166 * target.def: Same.
21167 * target.h: Same.
21168 * targhooks.c (default_has_ifunc_p): Same.
21169 (default_empty_mask_is_expensive): Same.
21170 (default_init_cost): Same.
21171 * targhooks.h: Same.
21172 * toplev.c: Same.
21173 * tree-affine.c (aff_combination_mult): Same.
21174 (aff_combination_expand): Same.
21175 (aff_combination_constant_multiple_p): Same.
21176 * tree-affine.h: Same.
21177 * tree-cfg.c (build_gimple_cfg): Same.
21178 (replace_loop_annotate_in_block): Same.
21179 (replace_uses_by): Same.
21180 (remove_bb): Same.
21181 (dump_cfg_stats): Same.
21182 (gimple_duplicate_sese_region): Same.
21183 (gimple_duplicate_sese_tail): Same.
21184 (move_block_to_fn): Same.
21185 (replace_block_vars_by_duplicates): Same.
21186 (move_sese_region_to_fn): Same.
21187 (print_loops_bb): Same.
21188 (print_loop): Same.
21189 (print_loops): Same.
21190 (debug): Same.
21191 (debug_loops): Same.
21192 * tree-cfg.h: Same.
21193 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
21194 (chrec_fold_multiply_poly_poly): Same.
21195 (chrec_evaluate): Same.
21196 (chrec_component_in_loop_num): Same.
21197 (reset_evolution_in_loop): Same.
21198 (is_multivariate_chrec): Same.
21199 (chrec_contains_symbols): Same.
21200 (nb_vars_in_chrec): Same.
21201 (chrec_convert_1): Same.
21202 (chrec_convert_aggressive): Same.
21203 * tree-chrec.h: Same.
21204 * tree-core.h: Same.
21205 * tree-data-ref.c (dump_data_dependence_relation): Same.
21206 (canonicalize_base_object_address): Same.
21207 (data_ref_compare_tree): Same.
21208 (prune_runtime_alias_test_list): Same.
21209 (get_segment_min_max): Same.
21210 (create_intersect_range_checks): Same.
21211 (conflict_fn_no_dependence): Same.
21212 (object_address_invariant_in_loop_p): Same.
21213 (analyze_ziv_subscript): Same.
21214 (analyze_siv_subscript_cst_affine): Same.
21215 (analyze_miv_subscript): Same.
21216 (analyze_overlapping_iterations): Same.
21217 (build_classic_dist_vector_1): Same.
21218 (add_other_self_distances): Same.
21219 (same_access_functions): Same.
21220 (build_classic_dir_vector): Same.
21221 (subscript_dependence_tester_1): Same.
21222 (subscript_dependence_tester): Same.
21223 (access_functions_are_affine_or_constant_p): Same.
21224 (get_references_in_stmt): Same.
21225 (loop_nest_has_data_refs): Same.
21226 (graphite_find_data_references_in_stmt): Same.
21227 (find_data_references_in_bb): Same.
21228 (get_base_for_alignment): Same.
21229 (find_loop_nest_1): Same.
21230 (find_loop_nest): Same.
21231 * tree-data-ref.h (dr_alignment): Same.
21232 (ddr_dependence_level): Same.
21233 * tree-if-conv.c (fold_build_cond_expr): Same.
21234 (add_to_predicate_list): Same.
21235 (add_to_dst_predicate_list): Same.
21236 (phi_convertible_by_degenerating_args): Same.
21237 (idx_within_array_bound): Same.
21238 (all_preds_critical_p): Same.
21239 (pred_blocks_visited_p): Same.
21240 (predicate_bbs): Same.
21241 (build_region): Same.
21242 (if_convertible_loop_p_1): Same.
21243 (is_cond_scalar_reduction): Same.
21244 (predicate_scalar_phi): Same.
21245 (remove_conditions_and_labels): Same.
21246 (combine_blocks): Same.
21247 (version_loop_for_if_conversion): Same.
21248 (versionable_outer_loop_p): Same.
21249 (ifcvt_local_dce): Same.
21250 (tree_if_conversion): Same.
21251 (pass_if_conversion::gate): Same.
21252 * tree-if-conv.h: Same.
21253 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
21254 * tree-loop-distribution.c (bb_top_order_cmp): Same.
21255 (free_rdg): Same.
21256 (stmt_has_scalar_dependences_outside_loop): Same.
21257 (copy_loop_before): Same.
21258 (create_bb_after_loop): Same.
21259 (const_with_all_bytes_same): Same.
21260 (generate_memset_builtin): Same.
21261 (generate_memcpy_builtin): Same.
21262 (destroy_loop): Same.
21263 (build_rdg_partition_for_vertex): Same.
21264 (compute_access_range): Same.
21265 (data_ref_segment_size): Same.
21266 (latch_dominated_by_data_ref): Same.
21267 (compute_alias_check_pairs): Same.
21268 (fuse_memset_builtins): Same.
21269 (finalize_partitions): Same.
21270 (find_seed_stmts_for_distribution): Same.
21271 (prepare_perfect_loop_nest): Same.
21272 * tree-parloops.c (lambda_transform_legal_p): Same.
21273 (loop_parallel_p): Same.
21274 (reduc_stmt_res): Same.
21275 (add_field_for_name): Same.
21276 (create_call_for_reduction_1): Same.
21277 (replace_uses_in_bb_by): Same.
21278 (transform_to_exit_first_loop_alt): Same.
21279 (try_transform_to_exit_first_loop_alt): Same.
21280 (transform_to_exit_first_loop): Same.
21281 (num_phis): Same.
21282 (gen_parallel_loop): Same.
21283 (gather_scalar_reductions): Same.
21284 (get_omp_data_i_param): Same.
21285 (try_create_reduction_list): Same.
21286 (oacc_entry_exit_single_gang): Same.
21287 (parallelize_loops): Same.
21288 * tree-pass.h: Same.
21289 * tree-predcom.c (determine_offset): Same.
21290 (last_always_executed_block): Same.
21291 (split_data_refs_to_components): Same.
21292 (suitable_component_p): Same.
21293 (valid_initializer_p): Same.
21294 (find_looparound_phi): Same.
21295 (insert_looparound_copy): Same.
21296 (add_looparound_copies): Same.
21297 (determine_roots_comp): Same.
21298 (predcom_tmp_var): Same.
21299 (initialize_root_vars): Same.
21300 (initialize_root_vars_store_elim_1): Same.
21301 (initialize_root_vars_store_elim_2): Same.
21302 (finalize_eliminated_stores): Same.
21303 (initialize_root_vars_lm): Same.
21304 (remove_stmt): Same.
21305 (determine_unroll_factor): Same.
21306 (execute_pred_commoning_cbck): Same.
21307 (base_names_in_chain_on): Same.
21308 (combine_chains): Same.
21309 (pcom_stmt_dominates_stmt_p): Same.
21310 (try_combine_chains): Same.
21311 (prepare_initializers_chain_store_elim): Same.
21312 (prepare_initializers_chain): Same.
21313 (prepare_initializers): Same.
21314 (prepare_finalizers_chain): Same.
21315 (prepare_finalizers): Same.
21316 (insert_init_seqs): Same.
21317 * tree-scalar-evolution.c (loop_phi_node_p): Same.
21318 (compute_overall_effect_of_inner_loop): Same.
21319 (add_to_evolution_1): Same.
21320 (add_to_evolution): Same.
21321 (follow_ssa_edge_binary): Same.
21322 (follow_ssa_edge_expr): Same.
21323 (backedge_phi_arg_p): Same.
21324 (follow_ssa_edge_in_condition_phi_branch): Same.
21325 (follow_ssa_edge_in_condition_phi): Same.
21326 (follow_ssa_edge_inner_loop_phi): Same.
21327 (follow_ssa_edge): Same.
21328 (analyze_evolution_in_loop): Same.
21329 (analyze_initial_condition): Same.
21330 (interpret_loop_phi): Same.
21331 (interpret_condition_phi): Same.
21332 (interpret_rhs_expr): Same.
21333 (interpret_expr): Same.
21334 (interpret_gimple_assign): Same.
21335 (analyze_scalar_evolution_1): Same.
21336 (analyze_scalar_evolution): Same.
21337 (analyze_scalar_evolution_for_address_of): Same.
21338 (get_instantiated_value_entry): Same.
21339 (loop_closed_phi_def): Same.
21340 (instantiate_scev_name): Same.
21341 (instantiate_scev_poly): Same.
21342 (instantiate_scev_binary): Same.
21343 (instantiate_scev_convert): Same.
21344 (instantiate_scev_not): Same.
21345 (instantiate_scev_r): Same.
21346 (instantiate_scev): Same.
21347 (resolve_mixers): Same.
21348 (initialize_scalar_evolutions_analyzer): Same.
21349 (scev_reset_htab): Same.
21350 (scev_reset): Same.
21351 (derive_simple_iv_with_niters): Same.
21352 (simple_iv_with_niters): Same.
21353 (expression_expensive_p): Same.
21354 (final_value_replacement_loop): Same.
21355 * tree-scalar-evolution.h (block_before_loop): Same.
21356 * tree-ssa-address.h: Same.
21357 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
21358 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
21359 (record_edge_info): Same.
21360 * tree-ssa-live.c (var_map_base_fini): Same.
21361 (remove_unused_locals): Same.
21362 * tree-ssa-live.h: Same.
21363 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
21364 (pass_ch_vect::execute): Same.
21365 (pass_ch::process_loop_p): Same.
21366 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21367 (movement_possibility): Same.
21368 (outermost_invariant_loop): Same.
21369 (stmt_cost): Same.
21370 (determine_max_movement): Same.
21371 (invariantness_dom_walker::before_dom_children): Same.
21372 (move_computations): Same.
21373 (may_move_till): Same.
21374 (force_move_till_op): Same.
21375 (force_move_till): Same.
21376 (memref_free): Same.
21377 (record_mem_ref_loc): Same.
21378 (set_ref_stored_in_loop): Same.
21379 (mark_ref_stored): Same.
21380 (sort_bbs_in_loop_postorder_cmp): Same.
21381 (sort_locs_in_loop_postorder_cmp): Same.
21382 (analyze_memory_references): Same.
21383 (mem_refs_may_alias_p): Same.
21384 (find_ref_loc_in_loop_cmp): Same.
21385 (rewrite_mem_ref_loc::operator): Same.
21386 (first_mem_ref_loc_1::operator): Same.
21387 (sm_set_flag_if_changed::operator): Same.
21388 (execute_sm_if_changed_flag_set): Same.
21389 (execute_sm): Same.
21390 (hoist_memory_references): Same.
21391 (ref_always_accessed::operator): Same.
21392 (refs_independent_p): Same.
21393 (record_dep_loop): Same.
21394 (ref_indep_loop_p_1): Same.
21395 (ref_indep_loop_p): Same.
21396 (can_sm_ref_p): Same.
21397 (find_refs_for_sm): Same.
21398 (loop_suitable_for_sm): Same.
21399 (store_motion_loop): Same.
21400 (store_motion): Same.
21401 (fill_always_executed_in): Same.
21402 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21403 (estimated_unrolled_size): Same.
21404 (loop_edge_to_cancel): Same.
21405 (remove_exits_and_undefined_stmts): Same.
21406 (remove_redundant_iv_tests): Same.
21407 (unloop_loops): Same.
21408 (estimated_peeled_sequence_size): Same.
21409 (try_peel_loop): Same.
21410 (canonicalize_loop_induction_variables): Same.
21411 (canonicalize_induction_variables): Same.
21412 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21413 (name_info): Same.
21414 (stmt_after_inc_pos): Same.
21415 (contains_abnormal_ssa_name_p): Same.
21416 (niter_for_exit): Same.
21417 (find_bivs): Same.
21418 (mark_bivs): Same.
21419 (find_givs_in_bb): Same.
21420 (find_induction_variables): Same.
21421 (find_interesting_uses_cond): Same.
21422 (outermost_invariant_loop_for_expr): Same.
21423 (idx_find_step): Same.
21424 (add_candidate_1): Same.
21425 (add_iv_candidate_derived_from_uses): Same.
21426 (alloc_use_cost_map): Same.
21427 (prepare_decl_rtl): Same.
21428 (generic_predict_doloop_p): Same.
21429 (computation_cost): Same.
21430 (determine_common_wider_type): Same.
21431 (get_computation_aff_1): Same.
21432 (get_use_type): Same.
21433 (determine_group_iv_cost_address): Same.
21434 (iv_period): Same.
21435 (difference_cannot_overflow_p): Same.
21436 (may_eliminate_iv): Same.
21437 (determine_set_costs): Same.
21438 (cheaper_cost_pair): Same.
21439 (compare_cost_pair): Same.
21440 (iv_ca_cand_for_group): Same.
21441 (iv_ca_recount_cost): Same.
21442 (iv_ca_set_remove_invs): Same.
21443 (iv_ca_set_no_cp): Same.
21444 (iv_ca_set_add_invs): Same.
21445 (iv_ca_set_cp): Same.
21446 (iv_ca_add_group): Same.
21447 (iv_ca_cost): Same.
21448 (iv_ca_compare_deps): Same.
21449 (iv_ca_delta_reverse): Same.
21450 (iv_ca_delta_commit): Same.
21451 (iv_ca_cand_used_p): Same.
21452 (iv_ca_delta_free): Same.
21453 (iv_ca_new): Same.
21454 (iv_ca_free): Same.
21455 (iv_ca_dump): Same.
21456 (iv_ca_extend): Same.
21457 (iv_ca_narrow): Same.
21458 (iv_ca_prune): Same.
21459 (cheaper_cost_with_cand): Same.
21460 (iv_ca_replace): Same.
21461 (try_add_cand_for): Same.
21462 (get_initial_solution): Same.
21463 (try_improve_iv_set): Same.
21464 (find_optimal_iv_set_1): Same.
21465 (create_new_iv): Same.
21466 (rewrite_use_compare): Same.
21467 (remove_unused_ivs): Same.
21468 (determine_scaling_factor): Same.
21469 * tree-ssa-loop-ivopts.h: Same.
21470 * tree-ssa-loop-manip.c (create_iv): Same.
21471 (compute_live_loop_exits): Same.
21472 (add_exit_phi): Same.
21473 (add_exit_phis): Same.
21474 (find_uses_to_rename_use): Same.
21475 (find_uses_to_rename_def): Same.
21476 (find_uses_to_rename_in_loop): Same.
21477 (rewrite_into_loop_closed_ssa): Same.
21478 (check_loop_closed_ssa_bb): Same.
21479 (split_loop_exit_edge): Same.
21480 (ip_end_pos): Same.
21481 (ip_normal_pos): Same.
21482 (copy_phi_node_args): Same.
21483 (gimple_duplicate_loop_to_header_edge): Same.
21484 (can_unroll_loop_p): Same.
21485 (determine_exit_conditions): Same.
21486 (scale_dominated_blocks_in_loop): Same.
21487 (niter_for_unrolled_loop): Same.
21488 (tree_transform_and_unroll_loop): Same.
21489 (rewrite_all_phi_nodes_with_iv): Same.
21490 * tree-ssa-loop-manip.h: Same.
21491 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21492 (number_of_iterations_ne): Same.
21493 (assert_no_overflow_lt): Same.
21494 (assert_loop_rolls_lt): Same.
21495 (number_of_iterations_lt): Same.
21496 (adjust_cond_for_loop_until_wrap): Same.
21497 (tree_simplify_using_condition): Same.
21498 (simplify_using_initial_conditions): Same.
21499 (simplify_using_outer_evolutions): Same.
21500 (loop_only_exit_p): Same.
21501 (ssa_defined_by_minus_one_stmt_p): Same.
21502 (number_of_iterations_popcount): Same.
21503 (number_of_iterations_exit): Same.
21504 (find_loop_niter): Same.
21505 (finite_loop_p): Same.
21506 (chain_of_csts_start): Same.
21507 (get_val_for): Same.
21508 (loop_niter_by_eval): Same.
21509 (derive_constant_upper_bound_ops): Same.
21510 (do_warn_aggressive_loop_optimizations): Same.
21511 (record_estimate): Same.
21512 (get_cst_init_from_scev): Same.
21513 (record_nonwrapping_iv): Same.
21514 (idx_infer_loop_bounds): Same.
21515 (infer_loop_bounds_from_ref): Same.
21516 (infer_loop_bounds_from_array): Same.
21517 (infer_loop_bounds_from_pointer_arith): Same.
21518 (infer_loop_bounds_from_signedness): Same.
21519 (bound_index): Same.
21520 (discover_iteration_bound_by_body_walk): Same.
21521 (maybe_lower_iteration_bound): Same.
21522 (estimate_numbers_of_iterations): Same.
21523 (estimated_loop_iterations): Same.
21524 (estimated_loop_iterations_int): Same.
21525 (max_loop_iterations): Same.
21526 (max_loop_iterations_int): Same.
21527 (likely_max_loop_iterations): Same.
21528 (likely_max_loop_iterations_int): Same.
21529 (estimated_stmt_executions_int): Same.
21530 (max_stmt_executions): Same.
21531 (likely_max_stmt_executions): Same.
21532 (estimated_stmt_executions): Same.
21533 (stmt_dominates_stmt_p): Same.
21534 (nowrap_type_p): Same.
21535 (loop_exits_before_overflow): Same.
21536 (scev_var_range_cant_overflow): Same.
21537 (scev_probably_wraps_p): Same.
21538 (free_numbers_of_iterations_estimates): Same.
21539 * tree-ssa-loop-niter.h: Same.
21540 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21541 (idx_analyze_ref): Same.
21542 (analyze_ref): Same.
21543 (gather_memory_references_ref): Same.
21544 (mark_nontemporal_store): Same.
21545 (emit_mfence_after_loop): Same.
21546 (may_use_storent_in_loop_p): Same.
21547 (mark_nontemporal_stores): Same.
21548 (should_unroll_loop_p): Same.
21549 (volume_of_dist_vector): Same.
21550 (add_subscript_strides): Same.
21551 (self_reuse_distance): Same.
21552 (insn_to_prefetch_ratio_too_small_p): Same.
21553 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21554 (patch_loop_exit): Same.
21555 (find_or_create_guard_phi): Same.
21556 (easy_exit_values): Same.
21557 (connect_loop_phis): Same.
21558 (connect_loops): Same.
21559 (compute_new_first_bound): Same.
21560 (split_loop): Same.
21561 (tree_ssa_split_loops): Same.
21562 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21563 (is_maybe_undefined): Same.
21564 (tree_may_unswitch_on): Same.
21565 (simplify_using_entry_checks): Same.
21566 (tree_unswitch_single_loop): Same.
21567 (tree_unswitch_loop): Same.
21568 (tree_unswitch_outer_loop): Same.
21569 (empty_bb_without_guard_p): Same.
21570 (used_outside_loop_p): Same.
21571 (get_vop_from_header): Same.
21572 (hoist_guard): Same.
21573 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21574 (get_lsm_tmp_name): Same.
21575 * tree-ssa-loop.h: Same.
21576 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21577 (build_and_add_sum): Same.
21578 (no_side_effect_bb): Same.
21579 (get_ops): Same.
21580 (linearize_expr): Same.
21581 (should_break_up_subtract): Same.
21582 (linearize_expr_tree): Same.
21583 * tree-ssa-scopedtables.c: Same.
21584 * tree-ssa-scopedtables.h: Same.
21585 * tree-ssa-structalias.c (condense_visit): Same.
21586 (label_visit): Same.
21587 (dump_pred_graph): Same.
21588 (perform_var_substitution): Same.
21589 (move_complex_constraints): Same.
21590 (remove_preds_and_fake_succs): Same.
21591 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21592 (determine_bb_domination_status): Same.
21593 (duplicate_thread_path): Same.
21594 (thread_through_all_blocks): Same.
21595 * tree-ssa-threadupdate.h: Same.
21596 * tree-streamer-in.c (streamer_read_string_cst): Same.
21597 (input_identifier): Same.
21598 (unpack_ts_type_common_value_fields): Same.
21599 (unpack_ts_block_value_fields): Same.
21600 (unpack_ts_translation_unit_decl_value_fields): Same.
21601 (unpack_ts_omp_clause_value_fields): Same.
21602 (streamer_read_tree_bitfields): Same.
21603 (streamer_alloc_tree): Same.
21604 (lto_input_ts_common_tree_pointers): Same.
21605 (lto_input_ts_vector_tree_pointers): Same.
21606 (lto_input_ts_poly_tree_pointers): Same.
21607 (lto_input_ts_complex_tree_pointers): Same.
21608 (lto_input_ts_decl_minimal_tree_pointers): Same.
21609 (lto_input_ts_decl_common_tree_pointers): Same.
21610 (lto_input_ts_decl_non_common_tree_pointers): Same.
21611 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21612 (lto_input_ts_field_decl_tree_pointers): Same.
21613 (lto_input_ts_function_decl_tree_pointers): Same.
21614 (lto_input_ts_type_common_tree_pointers): Same.
21615 (lto_input_ts_type_non_common_tree_pointers): Same.
21616 (lto_input_ts_list_tree_pointers): Same.
21617 (lto_input_ts_vec_tree_pointers): Same.
21618 (lto_input_ts_exp_tree_pointers): Same.
21619 (lto_input_ts_block_tree_pointers): Same.
21620 (lto_input_ts_binfo_tree_pointers): Same.
21621 (lto_input_ts_constructor_tree_pointers): Same.
21622 (lto_input_ts_omp_clause_tree_pointers): Same.
21623 (streamer_read_tree_body): Same.
21624 * tree-streamer.h: Same.
21625 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21626 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21627 (vect_analyze_possibly_independent_ddr): Same.
21628 (vect_analyze_data_ref_dependence): Same.
21629 (vect_compute_data_ref_alignment): Same.
21630 (vect_enhance_data_refs_alignment): Same.
21631 (vect_analyze_data_ref_access): Same.
21632 (vect_check_gather_scatter): Same.
21633 (vect_find_stmt_data_reference): Same.
21634 (vect_create_addr_base_for_vector_ref): Same.
21635 (vect_setup_realignment): Same.
21636 (vect_supportable_dr_alignment): Same.
21637 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21638 (adjust_phi_and_debug_stmts): Same.
21639 (vect_set_loop_mask): Same.
21640 (add_preheader_seq): Same.
21641 (vect_maybe_permute_loop_masks): Same.
21642 (vect_set_loop_masks_directly): Same.
21643 (vect_set_loop_condition_masked): Same.
21644 (vect_set_loop_condition_unmasked): Same.
21645 (slpeel_duplicate_current_defs_from_edges): Same.
21646 (slpeel_add_loop_guard): Same.
21647 (slpeel_can_duplicate_loop_p): Same.
21648 (create_lcssa_for_virtual_phi): Same.
21649 (iv_phi_p): Same.
21650 (vect_update_ivs_after_vectorizer): Same.
21651 (vect_gen_vector_loop_niters_mult_vf): Same.
21652 (slpeel_update_phi_nodes_for_loops): Same.
21653 (slpeel_update_phi_nodes_for_guard1): Same.
21654 (find_guard_arg): Same.
21655 (slpeel_update_phi_nodes_for_guard2): Same.
21656 (slpeel_update_phi_nodes_for_lcssa): Same.
21657 (vect_do_peeling): Same.
21658 (vect_create_cond_for_alias_checks): Same.
21659 (vect_loop_versioning): Same.
21660 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21661 (vect_inner_phi_in_double_reduction_p): Same.
21662 (vect_analyze_scalar_cycles_1): Same.
21663 (vect_fixup_scalar_cycles_with_patterns): Same.
21664 (vect_get_loop_niters): Same.
21665 (bb_in_loop_p): Same.
21666 (vect_get_max_nscalars_per_iter): Same.
21667 (vect_verify_full_masking): Same.
21668 (vect_compute_single_scalar_iteration_cost): Same.
21669 (vect_analyze_loop_form_1): Same.
21670 (vect_analyze_loop_form): Same.
21671 (vect_active_double_reduction_p): Same.
21672 (vect_analyze_loop_operations): Same.
21673 (neutral_op_for_slp_reduction): Same.
21674 (vect_is_simple_reduction): Same.
21675 (vect_model_reduction_cost): Same.
21676 (get_initial_def_for_reduction): Same.
21677 (get_initial_defs_for_reduction): Same.
21678 (vect_create_epilog_for_reduction): Same.
21679 (vectorize_fold_left_reduction): Same.
21680 (vectorizable_reduction): Same.
21681 (vectorizable_induction): Same.
21682 (vectorizable_live_operation): Same.
21683 (loop_niters_no_overflow): Same.
21684 (vect_get_loop_mask): Same.
21685 (vect_transform_loop_stmt): Same.
21686 (vect_transform_loop): Same.
21687 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21688 (vect_determine_precisions): Same.
21689 (vect_pattern_recog_1): Same.
21690 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21691 * tree-vect-stmts.c (stmt_vectype): Same.
21692 (process_use): Same.
21693 (vect_init_vector_1): Same.
21694 (vect_truncate_gather_scatter_offset): Same.
21695 (get_group_load_store_type): Same.
21696 (vect_build_gather_load_calls): Same.
21697 (vect_get_strided_load_store_ops): Same.
21698 (vectorizable_simd_clone_call): Same.
21699 (vectorizable_store): Same.
21700 (permute_vec_elements): Same.
21701 (vectorizable_load): Same.
21702 (vect_transform_stmt): Same.
21703 (supportable_widening_operation): Same.
21704 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21705 (vec_info::free_stmt_vec_info): Same.
21706 (vect_free_loop_info_assumptions): Same.
21707 (vect_loop_vectorized_call): Same.
21708 (set_uid_loop_bbs): Same.
21709 (vectorize_loops): Same.
21710 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21711 * tree.c (add_tree_to_fld_list): Same.
21712 (fld_type_variant_equal_p): Same.
21713 (fld_decl_context): Same.
21714 (fld_incomplete_type_of): Same.
21715 (free_lang_data_in_binfo): Same.
21716 (need_assembler_name_p): Same.
21717 (find_decls_types_r): Same.
21718 (get_eh_types_for_runtime): Same.
21719 (find_decls_types_in_eh_region): Same.
21720 (find_decls_types_in_node): Same.
21721 (assign_assembler_name_if_needed): Same.
21722 * value-prof.c (stream_out_histogram_value): Same.
21723 * value-prof.h: Same.
21724 * var-tracking.c (use_narrower_mode): Same.
21725 (prepare_call_arguments): Same.
21726 (vt_expand_loc_callback): Same.
21727 (resolve_expansions_pending_recursion): Same.
21728 (vt_expand_loc): Same.
21729 * varasm.c (const_hash_1): Same.
21730 (compare_constant): Same.
21731 (tree_output_constant_def): Same.
21732 (simplify_subtraction): Same.
21733 (get_pool_constant): Same.
21734 (output_constant_pool_2): Same.
21735 (output_constant_pool_1): Same.
21736 (mark_constants_in_pattern): Same.
21737 (mark_constant_pool): Same.
21738 (get_section_anchor): Same.
21739 * vr-values.c (compare_range_with_value): Same.
21740 (vr_values::extract_range_from_phi_node): Same.
21741 * vr-values.h: Same.
21742 * web.c (unionfind_union): Same.
21743 * wide-int.h: Same.
21744
21745 2019-07-09 Martin Sebor <msebor@redhat.com>
21746
21747 PR c++/61339
21748 * align.h: Change class-key from class to struct and vice versa
21749 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21750 * alloc-pool.h: Same.
21751 * asan.c (shadow_mem_size): Same.
21752 * auto-profile.c: Same.
21753 * basic-block.h: Same.
21754 * bitmap.h: Same.
21755 * cfgexpand.c (set_rtl): Same.
21756 (expand_one_stack_var_at): Same.
21757 * cfghooks.h: Same.
21758 * cfgloop.h: Same.
21759 * cgraph.h: Same.
21760 * config/i386/i386.h: Same.
21761 * df-problems.c (df_print_bb_index): Same.
21762 * df-scan.c: Same.
21763 * df.h (df_single_use): Same.
21764 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21765 (layout::annotation_line_showed_range_p): Same.
21766 (get_printed_columns): Same.
21767 (correction::ensure_terminated): Same.
21768 (line_corrections::~line_corrections): Same.
21769 * dojump.h: Same.
21770 * dse.c: Same.
21771 * dump-context.h: Same.
21772 * dumpfile.h: Same.
21773 * dwarf2out.c: Same.
21774 * edit-context.c: Same.
21775 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21776 * flags.h: Same.
21777 * function.c (assign_stack_local): Same.
21778 * function.h: Same.
21779 * gcc.c: Same.
21780 * gcov.c (block_info::block_info): Same.
21781 * genattrtab.c: Same.
21782 * genextract.c: Same.
21783 * genmatch.c (comparison_code_p): Same.
21784 (id_base::id_base): Same.
21785 (decision_tree::print): Same.
21786 * genoutput.c: Same.
21787 * genpreds.c (write_one_predicate_function): Same.
21788 * genrecog.c (validate_pattern): Same.
21789 (find_operand_positions): Same.
21790 (optimize_subroutine_group): Same.
21791 (merge_pattern_transition::merge_pattern_transition): Same.
21792 (merge_pattern_info::merge_pattern_info): Same.
21793 (merge_state_result::merge_state_result): Same.
21794 (merge_into_state): Same.
21795 * gensupport.c: Same.
21796 * gensupport.h: Same.
21797 * ggc-common.c (init_ggc_heuristics): Same.
21798 * ggc-tests.c (test_union): Same.
21799 * gimple-loop-interchange.cc (dump_induction): Same.
21800 * gimple-loop-versioning.cc: Same.
21801 * gimple-match.h (gimple_match_cond::any_else): Same.
21802 * gimple-ssa-backprop.c: Same.
21803 * gimple-ssa-sprintf.c: Same.
21804 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21805 Same.
21806 (store_immediate_info::store_immediate_info): Same.
21807 (merged_store_group::apply_stores): Same.
21808 (get_location_for_stmts): Same.
21809 * gimple-ssa-strength-reduction.c: Same.
21810 * gimple-ssa-warn-alloca.c: Same.
21811 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21812 * godump.c (go_type_decl): Same.
21813 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21814 * hash-map.h: Same.
21815 * hash-set-tests.c (test_set_of_strings): Same.
21816 * hsa-brig.c: Same.
21817 * hsa-common.h: Same.
21818 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21819 * input.c (assert_loceq): Same.
21820 * input.h: Same.
21821 * ipa-cp.c: Same.
21822 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21823 * ipa-fnsummary.h: Same.
21824 * ipa-inline.h: Same.
21825 * ipa-prop.h: Same.
21826 * ipa-split.c (visit_bb): Same.
21827 * ira-int.h (minmax_set_iter_next): Same.
21828 * loop-invariant.c: Same.
21829 * loop-iv.c: Same.
21830 * lra-eliminations.c: Same.
21831 * lra-int.h: Same.
21832 * lra-lives.c (mark_regno_dead): Same.
21833 * lra-remat.c: Same.
21834 * lra-spills.c: Same.
21835 * lto-streamer.h: Same.
21836 * mem-stats.h: Same.
21837 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21838 * omp-low.c (omp_clause_aligned_alignment): Same.
21839 * optabs-query.h (get_vcond_eq_icode): Same.
21840 * optabs.h: Same.
21841 * opts.c (wrap_help): Same.
21842 * poly-int.h: Same.
21843 * predict.c (predict_paths_leading_to_edge): Same.
21844 * pretty-print.h: Same.
21845 * profile-count.h: Same.
21846 * read-md.h: Same.
21847 * read-rtl-function.c: Same.
21848 * ree.c: Same.
21849 * reginfo.c: Same.
21850 * regrename.c: Same.
21851 * regrename.h: Same.
21852 * reload.h: Same.
21853 * rtl-iter.h: Same.
21854 * rtl.h (costs_add_n_insns): Same.
21855 * sanopt.c: Same.
21856 * sched-int.h: Same.
21857 * sel-sched-ir.h: Same.
21858 * selftest.h: Same.
21859 * sese.h (vec_find): Same.
21860 * stmt.c: Same.
21861 * target-globals.h: Same.
21862 * tree-affine.c (aff_combination_find_elt): Same.
21863 * tree-affine.h: Same.
21864 * tree-data-ref.h: Same.
21865 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21866 * tree-predcom.c: Same.
21867 * tree-scalar-evolution.c (find_var_scev_info): Same.
21868 * tree-ssa-alias.h: Same.
21869 * tree-ssa-ccp.c: Same.
21870 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21871 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21872 (rewrite_mem_refs): Same.
21873 (execute_sm_if_changed): Same.
21874 (hoist_memory_references): Same.
21875 * tree-ssa-loop-ivopts.c (operator<=): Same.
21876 * tree-ssa-loop.h: Same.
21877 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21878 * tree-ssa-structalias.c: Same.
21879 * tree-switch-conversion.h (cluster::cluster): Same.
21880 (simple_cluster::simple_cluster): Same.
21881 * tree-vect-patterns.c (type_conversion_p): Same.
21882 * tree-vectorizer.c (dump_stmt_cost): Same.
21883 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21884 * tree.c (protected_set_expr_location): Same.
21885 * tree.h (desired_pro_or_demotion_p): Same.
21886 (fndecl_built_in_p): Same.
21887 * unique-ptr-tests.cc: Same.
21888 * var-tracking.c (delete_variable_part): Same.
21889 * varasm.c (assemble_real): Same.
21890 (tree_output_constant_def): Same.
21891 * vec.c: Same.
21892 * wide-int-bitmask.h: Same.
21893 * wide-int.h (decompose): Same.
21894
21895 2019-07-09 Richard Biener <rguenther@suse.de>
21896
21897 PR tree-optimization/91114
21898 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21899 find a vector type isn't fatal.
21900
21901 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21902
21903 * config/aarch64/aarch64-simd.md
21904 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21905 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21906 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21907 (*aarch64_crypto_aese_fused,
21908 *aarch64_crypto_aesd_fused): Update to new definition.
21909 * config/aarch64/aarch64.c
21910 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21911
21912 2019-07-09 Richard Biener <rguenther@suse.de>
21913
21914 * gimple-match.h (gimple_match_op::resimplify): New.
21915 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21916 gimple_resimplify4, gimple_resimplify5): Remove.
21917 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21918 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21919 Make static.
21920 (gimple_match_op::resimplify): New.
21921 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21922 according to availability. Use gimple_match_op::resimplify.
21923
21924 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21925
21926 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21927
21928 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21929
21930 * config/arm/crypto.md:
21931 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21932 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21933 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21934 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21935 * config/arm/arm.c
21936 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21937 * config/arm/aarch-common-protos.h
21938 (aarch_crypto_can_dual_issue): Remove.
21939 * config/arm/aarch-common.c
21940 (aarch_crypto_can_dual_issue): Likewise.
21941 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21942 * config/arm/cortex-a53.md: Likewise.
21943 * config/arm/cortex-a57.md: Likewise.
21944 * config/arm/iterators.md:
21945 (CRYPTO_BINARY): Redefine.
21946 (CRYPTO_UNARY): Removed.
21947 (CRYPTO_AES, CRYPTO_AESMC): New.
21948
21949 2019-07-09 Richard Biener <rguenther@suse.de>
21950
21951 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21952 (vn_reference_lookup_3): If the main ref has no access path recorded
21953 but orig_ref has use it to do access-path based disambiguation.
21954 (vn_reference_lookup_pieces): Adjust.
21955 (vn_reference_lookup): Pass down original ref if we valueized.
21956
21957 2019-07-09 Martin Liska <mliska@suse.cz>
21958
21959 * doc/extend.texi: Document influence on loop
21960 optimizers.
21961
21962 2019-07-09 Martin Liska <mliska@suse.cz>
21963
21964 * lto-compress.c (lto_normalized_zstd_level): Do not use
21965 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21966 of libzstd. One can use 0 as a default compression level.
21967
21968 2019-07-09 Martin Liska <mliska@suse.cz>
21969
21970 * doc/invoke.texi: Add link from -fprofile-dir option.
21971 Use better wording for 'gcno filename'.
21972
21973 2019-07-08 Martin Sebor <msebor@redhat.com>
21974
21975 PR middle-end/71924
21976 PR middle-end/90549
21977 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21978 comment.
21979 (args_loc_t): New type.
21980 (args_loc_t, locmap_t): same.
21981 (diag_returned_locals): New function.
21982 (is_addr_local): Same.
21983 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21984 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21985 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21986
21987 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21988
21989 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21990 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21991 and casts in offset when different, both through gimple stmts
21992 and through trees. Rewritten using loops to minimize code duplication
21993 for each operand.
21994
21995 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21996
21997 * emit-rtl.c (set_insn_locations): New function moved from...
21998 * function.c (set_insn_locations): ...here.
21999 * ira-emit.c (emit_moves): Propagate location of the first instruction
22000 to the inserted move instructions.
22001 * reg-stack.c (compensate_edge): Set the location if the sequence is
22002 inserted on the edge.
22003 * rtl.h (set_insn_locations): Declare.
22004
22005 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22006
22007 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
22008 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
22009 .machine string.
22010
22011 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22012
22013 PR rtl-optimization/88233
22014 * common.opt (fsplit-wide-types-early): New option.
22015 * common/config/rs6000/rs6000-common.c
22016 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
22017 OPT_LEVELS_ALL.
22018 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
22019 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
22020 flag_split_wide_types_early.
22021 (pass_data_lower_subreg3): New.
22022 (pass_lower_subreg3): New.
22023 (make_pass_lower_subreg3): New.
22024 * passes.def (pass_lower_subreg2): Move after the loop passes.
22025 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
22026 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
22027 the pass pipeline; its previous place is taken by ...
22028 (make_pass_lower_subreg3): ... this.
22029
22030 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22031
22032 * config/s390/s390.c (s390_shift_truncation_mask): Define.
22033 (TARGET_SHIFT_TRUNCATION_MASK): Define.
22034
22035 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22036
22037 * config/s390/constraints.md: Add new jsc constraint.
22038 * config/s390/predicates.md: New predicates.
22039 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
22040 * config/s390/s390.c (s390_valid_shift_count): New function.
22041 (print_shift_count_operand): Use s390_valid_shift_count.
22042 (print_operand): Likewise.
22043 * config/s390/s390.md: Use new predicate.
22044 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
22045 * config/s390/vector.md: Use new predicate.
22046
22047 2019-07-08 Andrew Waterman <andrew@sifive.com>
22048 Jim Wilson <jimw@sifive.com>
22049
22050 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
22051 bitsize instead of BITS_PER_WORD.
22052
22053 2019-07-08 Martin Liska <mliska@suse.cz>
22054
22055 * collect2.c (defined): Revert to before r254460.
22056 (scan_prog_file): Revert to before r254460.
22057
22058 2019-07-08 Richard Biener <rguenther@suse.de>
22059
22060 PR tree-optimization/83518
22061 * tree-ssa-sccvn.c: Include splay-tree.h.
22062 (struct pd_range, struct pd_data): New.
22063 (struct vn_walk_cb_data): Add data to track partial definitions.
22064 (vn_walk_cb_data::~vn_walk_cb_data): New.
22065 (vn_walk_cb_data::push_partial_def): New.
22066 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
22067 (vn_reference_lookup_2): When partial defs are registered give up.
22068 (vn_reference_lookup_3): Track partial defs for memset and
22069 constructor zeroing and for defs from constants.
22070
22071 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22072
22073 * doc/install.texi (bootstrap-Og): Document.
22074
22075 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22076
22077 * config/riscv/pic.md (*local_pic_load_s<mode>)
22078 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
22079 referenced by <mode>, giving...
22080 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
22081 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
22082 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
22083 use <X:MODE> for the mode attribute.
22084
22085 2019-07-07 Jeff Law <law@redhat.com>
22086
22087 PR tree-optimization/91090
22088 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
22089 in handling of ranges to simplify switch statements.
22090
22091 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22092
22093 * config/darwin.c (darwin_override_options): Make a final check on PIC
22094 options.
22095
22096 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22097
22098 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
22099 on for kernel code.
22100
22101 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22102
22103 PR target/91068
22104 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
22105 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
22106 instead of matching them to "l" output operands.
22107
22108 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22109
22110 * config/mips/mips.c (mips_split_move): Zero-initialize addr
22111 and check whether addr.reg is nonnull before using it.
22112
22113 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22114
22115 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
22116 ctx->for_simd_scan_phase simd copy the outer var to the privatized
22117 variable(s). For conditional lastprivate look through outer
22118 GIMPLE_OMP_SCAN context.
22119 (lower_omp_1): For conditional lastprivate look through outer
22120 GIMPLE_OMP_SCAN context.
22121
22122 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
22123 member to combined_into_simd_safelen1.
22124 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
22125 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
22126 clauses if ctx->combined_into_simd_safelen1 put statements after the
22127 predicate conditionalized block rather than into it.
22128
22129 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22130
22131 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
22132 operand 1.
22133 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
22134 Make the choice of <mode> explicit, giving...
22135 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
22136
22137 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22138
22139 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
22140 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
22141 of .md attributes.
22142 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
22143 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
22144 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
22145 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
22146 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
22147 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
22148 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
22149 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
22150 (*avx512f_scatterdi<mode>): Likewise.
22151 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
22152
22153 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22154
22155 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
22156 specify the mode iterator referenced by <mode>, giving...
22157 (*push1_h8300hs_<QHI:mode>): ...this.
22158
22159 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22160
22161 * config/gcn/gcn-valu.md
22162 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
22163 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
22164 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
22165 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
22166 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
22167 but using the _exec comparison patterns.
22168 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
22169 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
22170 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
22171 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
22172 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
22173 but using the _exec comparison patterns.
22174
22175 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22176
22177 * config/arm/sync.md
22178 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
22179 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
22180 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
22181 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
22182 <SIDI:cas_cmp_str>.
22183
22184 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22185
22186 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
22187 (maybe_lookup_ctx): Add forward declaration.
22188 (omp_find_scan): Likewise. Walk into body of simd if composited
22189 with worksharing loop.
22190 (scan_omp_simd_scan): New function.
22191 (scan_omp_1_stmt): Call it.
22192 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
22193 ctx->for_simd_scan_phase.
22194 (lower_rec_input_clauses): Do much less work for inscan reductions
22195 in ctx->for_simd_scan_phase is_simd regions.
22196 (lower_omp_scan): Set is_simd also on simd constructs composited
22197 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
22198 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
22199 emit their body after in simd constructs composited with worksharing
22200 loop.
22201 (lower_omp_for_scan): Handle worksharing loop composited with simd.
22202
22203 * omp-low.c (omp_find_scan): Make static.
22204 (lower_omp_for_scan): Fix order of merge arguments in input phase of
22205 the second loop, var2 represents the first partial sum and so needs
22206 to go before rprivb[ivar].
22207
22208 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
22209
22210 * config/rs6000/rs6000-logue.c: Remove unused code.
22211
22212 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22213
22214 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
22215
22216 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
22217
22218 PR target/90712
22219 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
22220 check with a frame laid out check.
22221
22222 2019-07-05 Richard Biener <rguenther@suse.de>
22223
22224 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
22225 when comparing against a store with possibly the same value.
22226
22227 2019-07-05 Richard Biener <rguenther@suse.de>
22228
22229 PR tree-optimization/91091
22230 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
22231 (walk_non_aliased_vuses): Likewise.
22232 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
22233 (get_continuation_for_phi): New tbaa_p parameter and pass
22234 it down.
22235 (walk_non_aliased_vuses): Likewise.
22236 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
22237 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
22238 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
22239 Likewise.
22240 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
22241 (adjust_offsets_for_equal_base_address): New function.
22242 (vn_reference_lookup_3): Use it to catch more base equivalences.
22243 Handle and pass down tbaa_p flag.
22244 (vn_reference_lookup_pieces): Adjust.
22245 (vn_reference_lookup): Remove alias-set altering, instead pass
22246 down false as tbaa_p.
22247
22248 2019-07-05 Richard Biener <rguenther@suse.de>
22249
22250 PR tree-optimization/91091
22251 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
22252 accesses can happen with -fno-strict-aliasing.
22253
22254 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
22255
22256 * tree-ssa-alias.c (alias_stats): Add
22257 nonoverlapping_component_refs_since_match_p_must_overlap.
22258 (dump_alias_stats): Print it.
22259 (nonoverlapping_component_refs_since_match_p): Add early exit.
22260 (nonoverlapping_component_refs_p): Do not account early exit.
22261
22262 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22263
22264 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
22265 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
22266 (emit_eh_dispatch): Delete.
22267 (lower_catch): Emit the eh_dispatch manually and set the location of
22268 the first catch statement onto it.
22269 (lower_eh_filter): Emit the eh_dispatch manually and set location.
22270 (lower_eh_dispatch): Propagate location.
22271 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
22272 (eliminate_build): Likewise.
22273
22274 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22275
22276 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
22277 phi nodes if possible.
22278 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
22279 location info on the newly created statement.
22280 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
22281 newly created increment if needed.
22282
22283 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22284
22285 PR middle-end/78884
22286 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
22287 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
22288 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
22289 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
22290 ctx->add_safelen1 is set.
22291
22292 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
22293 GOMP_loop_start at the start of second worksharing loop in a scan.
22294 For nowait, don't emit GOMP_loop_end_nowait at the end of first
22295 worksharing loop in a scan even if there are conditional lastprivates,
22296 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
22297
22298 2019-07-04 Jan Hubicka <jh@suse.cz>
22299
22300 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
22301 Fix check for match in the ref walk.
22302
22303 2019-07-04 Martin Liska <mliska@suse.cz>
22304
22305 * tree-ssa-loop-niter.c
22306 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
22307 (estimate_numbers_of_iterations):
22308 Support __builtin_expect_with_probability for analysis
22309 of # of loop iterations.
22310
22311 2019-07-04 Alexandre Oliva <oliva@adacore.com>
22312
22313 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
22314 * except.c: Likewise.
22315 * expr.c (expand_expr_real_1): Reject it.
22316 * gimplify.c (gimplify_expr): Gimplify it, within
22317 TRY_FINALLY_EXPR.
22318 * tree-dump.c (dequeue_and_dump): Dump it.
22319 * tree-pretty-print.c (dump_generic_node): Likewise.
22320 * tree.c (block_may_fallthru): Handle it.
22321 * tree.def (EH_ELSE_EXPR): Introduce it.
22322 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
22323 with GIMPLE_EH_ELSE as try/finally/else.
22324
22325 2019-07-04 Richard Biener <rguenther@suse.de>
22326
22327 PR ipa/91062
22328 * tree-pass.h (execute_all_ipa_transforms): Add a flag
22329 parameter whether to disable GC collection.
22330 * passes.c (execute_one_ipa_transform_pass): Likewise, and
22331 honor it.
22332 (execute_all_ipa_transforms): Likewise and pass it down.
22333 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
22334 collection from applying IPA transforms.
22335 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
22336 from applying IPA transforms.
22337
22338 2019-07-04 Richard Biener <rguenther@suse.de>
22339
22340 PR tree-optimization/90911
22341 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
22342 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
22343 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22344 scalar_loop_scaling.
22345 (vect_transform_loop): Scale scalar loop profile if needed.
22346 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
22347 the loop copy from if-conversion adjust edge probabilities
22348 and scale the vectorized loop body profile, queue the scalar
22349 profile for updating after peeling.
22350
22351 2019-07-04 Jan Hubicka <jh@suse.cz>
22352
22353 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
22354 parameters; return early for must-alias.
22355 (indirect_ref_may_alias_decl_p): Likewise; when establishing
22356 outer types match, try nonoverlapping_component_refs
22357 if must-alias is not obvious.
22358 (indirect_refs_may_alias_p): Likewise.
22359 (refs_may_alias_p_2): Likewise.
22360
22361 2019-07-04 Richard Biener <rguenther@suse.de>
22362
22363 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
22364 argument.
22365 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22366 globals into...
22367 (struct vn_walk_cb_data): New callback data struct.
22368 (vn_reference_lookup_2): Adjust.
22369 (vn_reference_lookup_3): Likewise.
22370 (vn_reference_lookup_pieces): Likewise.
22371 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22372 (visit_reference_op_load): Adjust.
22373
22374 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22375
22376 PR tree-optimization/91063
22377 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22378 stmt from stmts sequence before calling vect_init_vector_1.
22379 Formatting fix.
22380
22381 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22382
22383 PR target/88833
22384 * fwprop.c (reg_single_def_p): New function.
22385 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22386 (forward_propagate_into): New parameter reg_prop_only
22387 with default value false.
22388 Propagate def's src into loop only if SET_SRC and SET_DEST
22389 of def_set have single definitions.
22390 Likewise if reg_prop_only is set to true.
22391 (fwprop): New param fwprop_addr_p.
22392 Integrate fwprop_addr into fwprop.
22393 (fwprop_addr): Remove.
22394 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22395 to true.
22396 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22397 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22398 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22399
22400 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22401
22402 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22403 in worksharing loop scans.
22404
22405 PR tree-optimization/91074
22406 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22407 temporary.
22408
22409 PR rtl-optimization/90756
22410 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22411 for VECTOR_TYPE_P.
22412
22413 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
22414
22415 * config/aarch64/aarch64.md: Remove redundant constraints from
22416 define_expand but keep some patterns untouched if they are
22417 specially selected by TARGET_SECONDARY_RELOAD hook.
22418 * config/aarch64/aarch64-sve.md: Likewise.
22419 * config/aarch64/atomics.md: Remove redundant constraints from
22420 define_expand.
22421 * config/aarch64/aarch64-simd.md: Likewise.
22422
22423 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22424
22425 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22426 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22427 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22428 clauses.
22429 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22430 DARWIN_NOPIE_SPEC.
22431
22432 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22433
22434 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22435 (STARTFILE_SPEC): Split crt3 into a separate spec.
22436 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22437 (DARWIN_CRT2_SPEC): New.
22438 (DARWIN_CRT3_SPEC): New.
22439 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22440 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22441 (DARWIN_CRT3_SPEC): New.
22442
22443 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22444
22445 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22446 Change the RTL attribute "length" from "4" to "*" to allow the
22447 length attribute to be adjusted automatically for prefixed load,
22448 store, and add immediate instructions.
22449 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22450 Likewise.
22451 (extendsi<mode>2, EXTSI iterator): Likewise.
22452 (movsi_internal1): Likewise.
22453 (movsi_from_sf): Likewise.
22454 (movdi_from_sf_zero_ext): Likewise.
22455 (mov<mode>_internal): Likewise.
22456 (movcc_internal1, QHI iterator): Likewise.
22457 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22458 (movsf_from_si): Likewise.
22459 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22460 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22461 (mov<mode>, FMOVE128 iterator): Likewise.
22462 (movdi_internal64): Likewise.
22463 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22464 Likewise.
22465 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22466 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22467 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22468 (vsx_splat_v4sf): Likewise.
22469
22470 2019-07-03 Mark Wielaard <mark@klomp.org>
22471
22472 PR debug/90981
22473 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22474 DW_AT_addr_base if there is actually a .debug_addr section with
22475 addresses.
22476 (output_addr_table): Add DWARF5 table header generation here after
22477 checking there are actually any addresses from...
22478 (dwarf2out_finish): ...here.
22479
22480 2019-07-03 Richard Biener <rguenther@suse.de>
22481
22482 PR middle-end/91069
22483 * match.pd (vec_perm -> bit_insert): Fix element read from
22484 first vector.
22485
22486 2019-07-03 Martin Liska <mliska@suse.cz>
22487
22488 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22489 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22490 condition.
22491 * generic-match-head.c: Include dbgcnt.h.
22492 * gimple-match-head.c: Likewise.
22493
22494 2019-07-03 Martin Liska <mliska@suse.cz>
22495
22496 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22497 (GCOV_COUNTER_V_TOPN): New.
22498 (GCOV_COUNTER_V_INDIR): Use _topn.
22499 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22500 (GCOV_TOPN_VALUES): New.
22501 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22502 (GCOV_TOPN_VALUES_COUNTERS): New.
22503 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22504 * tree-profile.c:
22505 (gimple_init_gcov_profiler): Rename variables from one_value
22506 to topn_values.
22507 (gimple_gen_one_value_profiler): Remove.
22508 (gimple_gen_topn_values_profiler): New function.
22509 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22510 names instead of SINGLE_VALUE.
22511 (stream_out_histogram_value): Likewise.
22512 (stream_in_histogram_value): Likewise.
22513 (get_most_common_single_value): Likewise.
22514 (gimple_divmod_fixed_value_transform): Likewise.
22515 (gimple_stringops_transform): Likewise.
22516 (gimple_divmod_values_to_profile): Likewise.
22517 (gimple_stringops_values_to_profile): Likewise.
22518 (gimple_find_values_to_profile): Likewise.
22519 * value-prof.h (enum hist_type): Rename to TOPN.
22520 (gimple_gen_one_value_profiler): Remove.
22521 (gimple_gen_topn_values_profiler): New.
22522
22523 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22524
22525 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22526 if it has the DW_AT_data_member_location attribute.
22527
22528 2019-07-03 Richard Biener <rguenther@suse.de>
22529
22530 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22531 dumping.
22532
22533 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22534
22535 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22536 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22537 (tlsdesc_small_sve_<mode>): Likewise.
22538
22539 2019-07-03 Martin Liska <mliska@suse.cz>
22540
22541 * Makefile.in: Define ZSTD_LIB.
22542 * common.opt: Adjust compression level
22543 to support also zstd levels.
22544 * config.in: Regenerate.
22545 * configure: Likewise.
22546 * configure.ac: Add --with-zstd and --with-zstd-include options
22547 and detect ZSTD.
22548 * doc/install.texi: Mention zstd dependency.
22549 * gcc.c: Print supported LTO compression algorithms.
22550 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22551 (lto_compression_zstd): Likewise.
22552 (lto_uncompression_zstd): Likewise.
22553 (lto_end_compression): Dispatch in between zlib and zstd.
22554 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22555 (lto_uncompression_zlib): Make it static.
22556 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22557 * lto-section-in.c (lto_get_section_data): Pass info
22558 about used compression.
22559 * lto-streamer-out.c: By default use zstd when possible.
22560 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22561 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22562
22563 2019-07-03 Martin Liska <mliska@suse.cz>
22564
22565 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22566 * lto-section-out.c (lto_destroy_simple_output_block): Never
22567 compress LTO_section_lto section.
22568 * lto-streamer-out.c (produce_asm): Do not set major_version
22569 and minor_version.
22570 (lto_output_toplevel_asms): Likewise.
22571 (produce_lto_section): New function.
22572 (lto_output): Call produce_lto_section.
22573 (lto_write_mode_table): Do not set major_version and
22574 minor_version.
22575 (produce_asm_for_decls): Likewise.
22576 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22577 type.
22578 (struct lto_header): Remove.
22579 (struct lto_section): New struct.
22580 (struct lto_simple_header): Do not inherit from lto_header.
22581 (struct lto_file_decl_data): Add lto_section_header field.
22582
22583 2019-07-03 Martin Liska <mliska@suse.cz>
22584
22585 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22586 dead assignemts.
22587 * reg-stack.c (check_asm_stack_operands): Likewise.
22588 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22589 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22590 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22591 force_expand_binop.
22592
22593 2019-07-03 Martin Liska <mliska@suse.cz>
22594
22595 PR tree-optimization/90892
22596 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22597 in string constants.
22598
22599 2019-07-03 Martin Liska <mliska@suse.cz>
22600
22601 PR middle-end/90899
22602 * multiple_target.c (create_dispatcher_calls): Add to comdat
22603 group only if set for ifunc.
22604
22605 2019-07-03 Martin Liska <mliska@suse.cz>
22606
22607 PR target/88056
22608 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22609 Define local_object_name in outer scope in order to handle
22610 use-after-scope issue.
22611
22612 2019-07-03 Martin Liska <mliska@suse.cz>
22613
22614 * common.opt: Add fprofile-note.
22615 * coverage.c (coverage_init): Append the option
22616 to bbg_file_name.
22617 * doc/invoke.texi: Document -fprofile-note.
22618
22619 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22620
22621 PR tree-optimization/91033
22622 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22623 vect_analyze_data_refs): Add bool * arguments.
22624 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22625 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22626 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22627 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22628 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22629 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22630 vect_analyze_data_refs caller.
22631
22632 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22633 clause.
22634 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22635 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22636 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22637 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22638 OMP_CLAUSE__SCANTEMP_ entry.
22639 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22640 * tree-pretty-print.c (dump_omp_clause): Likewise.
22641 * tree-nested.c (convert_nonlocal_omp_clauses,
22642 convert_local_omp_clauses): Likewise.
22643 * omp-general.h (struct omp_for_data): Add have_scantemp and
22644 have_nonctrl_scantemp members.
22645 * omp-general.c (omp_extract_for_data): Initialize them.
22646 * omp-low.c (struct omp_context): Add scan_exclusive member.
22647 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22648 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22649 ctx->scan_exclusive.
22650 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22651 of !ctx->scan_inclusive.
22652 (lower_rec_input_clauses): Simplify gimplification of dtors using
22653 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22654 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22655 loops. Don't add barrier for reduction_omp_orig_ref if
22656 ctx->scan_??xclusive.
22657 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22658 (lower_omp_scan): Use ctx->scan_exclusive instead
22659 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22660 reductions. Use new_vard != new_var instead of repeated
22661 omp_is_reference calls.
22662 (omp_find_scan, lower_omp_for_scan): New functions.
22663 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22664 inscan reductions.
22665 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22666 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22667 and fd->have_scantemp.
22668
22669 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22670 on worksharing loop propagate it as shared clause to containing
22671 combined parallel.
22672
22673 * omp-expand.c (expand_omp_for_static_nochunk,
22674 expand_omp_for_static_chunk): For nowait worksharing loop with
22675 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22676 at the end.
22677
22678 2019-07-02 qing zhao <qing.zhao@oracle.com>
22679
22680 PR preprocessor/90581
22681 * doc/cppopts.texi: Add document for -fmax-include-depth.
22682 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22683
22684 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22685
22686 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22687 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22688 (mmx_packssdw): Ditto.
22689 (mmx_punpckhbw): Ditto.
22690 (mmx_punpcklbw): Ditto.
22691 (mmx_punpckhwd): Ditto.
22692 (mmx_punpcklwd): Ditto.
22693 (mmx_punpckhdq): Ditto.
22694 (mmx_punpckldq): Ditto.
22695 (*vec_dupv4hi): Ditto.
22696 (*vec_dupv2si): Ditto.
22697 (mmx_pmovmskb): Ditto.
22698 * config/i386/sse.md (sse_cvtpi2ps): Use
22699 TARGET_SSE2 && SSE_REG_P in split condition.
22700 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22701 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22702 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22703 (ssse3_pshufbv8qi3): Ditto.
22704 (ssse3_palignrdi): Ditto.
22705
22706 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22707
22708 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22709 with inlined save and restore.
22710
22711 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22712
22713 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22714 to be inserted on single successor edge of the entry block. Then call
22715 commit_edge_insertions instead of inserting the instructions manually.
22716 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22717 RTL expansion and rebuild jump labels chain.
22718
22719 2019-07-02 Richard Biener <rguenther@suse.de>
22720
22721 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22722 TI_CHREC_KNOWN.
22723 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22724 Define here.
22725 * tree.c (build_common_tree_nodes): Initialize them.
22726 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22727 Make declarations comments.
22728 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22729 chrec_known): Remove definitions.
22730 (initialize_scalar_evolutions_analyzer): Remove.
22731 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22732 * tree-streamer.c (preload_common_nodes): Do not preload
22733 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22734
22735 2019-07-02 Jan Hubicka <jh@suse.cz>
22736
22737 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22738 sanity check.
22739
22740 2019-07-02 Jan Hubicka <jh@suse.cz>
22741
22742 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22743 to ..
22744 (nonoverlapping_component_refs_since_match_p): ... this one;
22745 handle also non-decl bases; return -1 if search gave up.
22746 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22747 nonoverlapping_component_refs_of_decl_p_no_alias to
22748 nonoverlapping_component_refs_since_match_p_may_alias,
22749 nonoverlapping_component_refs_since_match_p_no_alias.
22750 (dump_alias_stats): Update dumping.
22751 (aliasing_matching_component_refs_p): Break out from ...;
22752 dispatch to nonoverlapping_component_refs_for_decl_p
22753 and nonoverlapping_component_refs_since_match_p.
22754 (aliasing_component_refs_p): ... here; call
22755 nonoverlapping_component_refs_p in scenarios where we can not
22756 precisely determine base match.
22757 (decl_refs_may_alias_p): Use
22758 nonoverlapping_component_refs_since_match_p.
22759 (indirect_ref_may_alias_decl_p): Do not call
22760 nonoverlapping_component_refs_p.
22761 (indirect_refs_may_alias_p): Likewise.
22762
22763 2019-07-02 Jan Hubicka <jh@suse.cz>
22764
22765 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22766 to clobber of return value.
22767
22768 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22769
22770 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22771 for is_neon_type instructions that have not already been categorized.
22772
22773 2019-07-02 Richard Biener <rguenther@suse.de>
22774
22775 PR tree-optimization/58483
22776 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22777 for MEM_REF base hashing.
22778 (equal_mem_array_ref_p): Likewise for base comparison.
22779
22780 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22781
22782 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22783 parameterized name.
22784 (signbit<mode>2): Use that name. Simplify.
22785
22786 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22787
22788 PR middle-end/66726
22789 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22790 Tune heuristic from PR71016 to allow MIN / MAX.
22791
22792 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22793
22794 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22795 parameterized name.
22796 (abs<mode>2): Use that name. Simplify.
22797
22798 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22799
22800 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22801 parameterized name.
22802 (neg<mode>2): Use that name. Simplify.
22803
22804 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22805
22806 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22807 name.
22808 (abs<mode>2): Use that name. Simplify.
22809
22810 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22811
22812 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22813 name.
22814 (neg<mode>2): Use that name. Simplify.
22815
22816 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22817
22818 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22819 ("enabled" attribute): Handle sse_noavx isa attribute.
22820 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22821 Use TARGET_SSE && SSE_REGNO_P in split condition.
22822 (*vec_dupv2sf): Ditto.
22823
22824 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22825
22826 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22827 name.
22828 (floatsi<mode>2): Use that name. Simplify.
22829
22830 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22831
22832 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22833 parameterized name.
22834 (extenddf<mode>2_vsx): Make this a parameterized name.
22835 (extenddf<mode>2): Use those names. Simplify.
22836
22837 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22838
22839 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22840 name.
22841 (eh_return): Use that name. Simplify.
22842
22843 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22844
22845 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22846 (doloop_end): Use that name. Simplify.
22847
22848 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22849
22850 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22851 parameterized name.
22852 (indirect_jump): Use that name. Simplify.
22853
22854 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22855
22856 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22857 parameterized name.
22858 (abs<mode>2): Use that name. Simplify.
22859
22860 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22861
22862 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22863 parameterized name.
22864 (fix_trunc<mode>si2): Use that name. Simplify.
22865
22866 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22867
22868 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22869 (allocate_stack): Use that name. Simplify.
22870
22871 2019-07-01 Martin Sebor <msebor@redhat.com>
22872
22873 PR middle-end/90923
22874 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22875 (hash_map::get_or_insert): Same. Reformat comment.
22876 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22877 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22878 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22879 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22880 (hash_table::hash_table (const hash_table&)): Use copy ctor
22881 instead of assignment to copy elements.
22882
22883 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22884 John David Anglin <danglin@gcc.gnu.org>
22885
22886 PR target/90963
22887 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22888 using saved frame pointer.
22889
22890 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22891
22892 PR middle-end/64242
22893 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22894 Add frame clobber and schedule blockage.
22895
22896 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22897
22898 * doc/invoke.texi (Link Options): Further editorial changes to
22899 -flinker-output docs.
22900
22901 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22902
22903 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22904 Load both operands of a PLUS into registers separately.
22905
22906 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22907
22908 * config/s390/vector.md: Fix shift count operand printing.
22909
22910 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22911
22912 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22913
22914 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22915
22916 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22917 Use recog_data to test for an output operand.
22918
22919 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22920
22921 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22922 exclude any others that are disparaged or that are bound to need
22923 a reload or spill.
22924 (ira_get_dup_out_num): Expand comment.
22925
22926 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22927
22928 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22929 constraint string for each operand/alternative combo. Only handle
22930 '%' at the start of constraint strings, and look for it outside
22931 the main loop.
22932
22933 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22934
22935 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22936 alternative_mask instead of HARD_REG_SET to represent a
22937 bitmask of alternatives.
22938 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22939 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22940
22941 2019-07-01 Martin Liska <mliska@suse.cz>
22942
22943 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22944 use () for a constructor call.
22945 (test_applying_fixits_line_out_of_range): Likewise.
22946 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22947 argument.
22948 (free_page): Likewise.
22949
22950 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22951
22952 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22953 parameter names to match usage (no functional change).
22954 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22955
22956 2019-07-01 Richard Biener <rguenther@suse.de>
22957
22958 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22959 pass parameter.
22960 (pass_fre::execute): Honor it.
22961 * passes.def: Adjust pass_fre invocations to allow iterating,
22962 add non-iterating pass_fre before late threading/dom.
22963
22964 2019-07-01 Richard Biener <rguenther@suse.de>
22965
22966 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22967 TARGET_MEM_REF handling to also handle address-taken ones.
22968
22969 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22970
22971 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22972 hardware attributes): Document avx512vp2intersect.
22973
22974 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22975
22976 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22977 (abs<mode>2): New expander.
22978 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22979 Use CODE_FOR_ssse3_absv8qi2.
22980 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22981 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22982
22983 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22984
22985 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22986 to sse, sse_noavx and avx. Update all uses.
22987
22988 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22989
22990 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22991 (*mmx_<plusminus_insn><mode>3): Ditto.
22992 (*mmx_mulv4hi3"): Ditto.
22993 (*mmx_smulv4hi3_highpart): Ditto.
22994 (*mmx_umulv4hi3_highpart): Ditto.
22995 (*mmx_pmaddwd): Ditto.
22996 (*sse2_umulv1siv1di3): Ditto.
22997 (*mmx_<code>v4hi3): Ditto.
22998 (*mmx_<code>v8qi3): Ditto.
22999 (mmx_ashr<mode>3): Ditto.
23000 ("mmx_<shift_insn><mode>3): Ditto.
23001 (*mmx_eq<mode>3): Ditto.
23002 (mmx_gt<mode>3): Ditto.
23003 (mmx_andnot<mode>3): Ditto.
23004 (*mmx_<code><mode>3): Ditto.
23005 (*mmx_pinsrw): Ditto.
23006 (*mmx_pextrw): Ditto.
23007 (mmx_pshufw_1): Ditto.
23008 (*mmx_uavgv8qi3): Ditto.
23009 (*mmx_uavgv4hi3): Ditto.
23010 ("mmx_psadbw): Ditto.
23011 * config/i386/sse.md (sse_cvtps2pi): Ditto.
23012 (sse_cvttps2pi): Ditto.
23013 (ssse3_pmaddubsw): Ditto.
23014 (*ssse3_pmulhrswv4hi3): Ditto.
23015 (ssse3_psign<mode>3): Ditto.
23016
23017 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
23018
23019 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
23020 adjustment for bit-fields to all aggregate types.
23021
23022 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
23023
23024 * config/rs6000/predicates.md (pcrel_address): Use
23025 SYMBOL_REF_LOCAL_P to determine if a label is local.
23026 (pcrel_external_address): New predicate.
23027 (non_prefixed_mem_operand): Delete, predicate not used.
23028 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
23029 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
23030 addressing.
23031 (SYMBOL_REF_PCREL_P): Likewise.
23032
23033 PR target/91009
23034 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
23035 alternative.
23036 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
23037 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
23038 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
23039
23040 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23041
23042 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
23043 override on extra_headers.
23044
23045 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23046
23047 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
23048 * config/darwin-driver.c (darwin_default_min_version): Remove newline
23049 from warning.
23050 (darwin_driver_init): Likewise.
23051
23052 2019-06-28 Jan Beulich <jbeulich@suse.com>
23053
23054 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23055 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
23056 Eliminate redundant alternative.
23057
23058 2019-06-28 Jan Beulich <jbeulich@suse.com>
23059
23060 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23061 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
23062 Use vector_operand.
23063
23064 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
23065
23066 * config/arc/arc.c (arc_rtx_costs): All short instructions are
23067 having a lower cost regardless of the speed option.
23068
23069 2019-06-28 Jan Beulich <jbeulich@suse.com>
23070
23071 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
23072 vector_operand plus, on both alternatives, "Bm" constraint.
23073
23074 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
23075
23076 * config/arm/arm.md: Remove redundant constraints from
23077 define_expand but leave reload_inm and reload_outm patterns
23078 untouched since they need special constraints to work.
23079 * config/arm/arm-fixed.md: Remove redundant constraints from
23080 define_expand.
23081 * config/arm/iwmmxt.md: Likewise.
23082 * config/arm/neon.md: Likewise.
23083 * config/arm/sync.md: Likewise.
23084 * config/arm/thumb1.md: Likewise.
23085 * config/arm/vec-common.md: Likewise.
23086
23087 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
23088
23089 * doc/install.texi: Document --disable-tm-clone-registry.
23090
23091 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23092
23093 PR c++/91024
23094 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
23095 statements.
23096
23097 PR tree-optimization/91010
23098 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
23099 return true. Otherwise, don't call operand_equal_p if offset1 or
23100 offset2 is NULL and just return false.
23101
23102 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23103
23104 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
23105 user-specified float mode choice for kernel mode code.
23106
23107 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23108
23109 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
23110 spec.
23111
23112 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23113
23114 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
23115 use longcall for 64b code.
23116
23117 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
23118
23119 * builtins.c (get_memory_rtx): Fix comment.
23120 * optabs.def (movmem_optab): Change to cpymem_optab.
23121 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
23122 (emit_block_move_hints): Change movmem to cpymem.
23123 * defaults.h: Change movmem to cpymem.
23124 * targhooks.c (get_move_ratio): Change movmem to cpymem.
23125 (default_use_by_pieces_infrastructure_p): Ditto.
23126 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
23127 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
23128 to cpymem.
23129 * config/aarch64/aarch64.h: Change movmem to cpymem.
23130 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
23131 * config/alpha/alpha.h: Change movmem to cpymem in comment.
23132 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
23133 movmem to cpymem.
23134 * config/arc/arc-protos.h: Change movmem to cpymem.
23135 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
23136 * config/arc/arc.h: Change movmem to cpymem in comment.
23137 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
23138 * config/arm/arm-protos.h: Change movmem to cpymem in names.
23139 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
23140 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
23141 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
23142 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
23143 * config/avr/avr-protos.h: Change movmem to cpymem.
23144 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
23145 avr_out_movmem): Change movmem to cpymem.
23146 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
23147 Change movmem to cpymem.
23148 * config/bfin/bfin-protos.h: Change movmem to cpymem.
23149 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
23150 Change movmem to cpymem.
23151 * config/bfin/bfin.h: Change movmem to cpymem in comment.
23152 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
23153 * config/c6x/c6x-protos.h: Change movmem to cpymem.
23154 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
23155 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
23156 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
23157 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
23158 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
23159 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
23160 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
23161 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
23162 expand_small_cpymem_or_setmem,
23163 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
23164 expand_set_or_cpymem_constant_prologue,
23165 ix86_expand_set_or_cpymem): Change movmem to cpymem.
23166 * config/i386/i386-protos.h: Change movmem to cpymem.
23167 * config/i386/i386.h: Change movmem to cpymem in comment.
23168 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
23169 (setmem<mode>): Change expansion function name.
23170 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
23171 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
23172 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
23173 * config/m32c/m32c-protos.h: Change movmem to cpymem.
23174 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
23175 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
23176 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
23177 to cpymem.
23178 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
23179 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
23180 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
23181 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
23182 Change movmem to cpymem.
23183 * config/mips/mips.h: Change movmem to cpymem.
23184 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
23185 * config/nds32/nds32-memory-manipulation.c
23186 (nds32_expand_movmemsi_loop_unknown_size,
23187 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
23188 nds32_expand_movmemsi_unroll,
23189 nds32_expand_movmemsi): Change movmem to cpymem.
23190 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
23191 * config/nds32/nds32-protos.h: Change movmem to cpymem.
23192 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
23193 (pa_adjust_insn_length): Change call to compute_movmem_length.
23194 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
23195 movmemdi, movmemdi_prereload,
23196 movmemdi_postreload): Change movmem to cpymem.
23197 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
23198 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
23199 * config/riscv/riscv.c: Change movmem to cpymem in comment.
23200 * config/riscv/riscv.h: Change movmem to cpymem.
23201 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
23202 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
23203 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
23204 movmem to cpymem.
23205 * config/s390/s390-protos.h: Change movmem to cpymem.
23206 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
23207 s390_expand_insv): Change movmem to cpymem.
23208 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
23209 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
23210 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
23211 * config/sparc/sparc.h: Change movmem to cpymem in comment.
23212 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
23213 for nonexistent function.
23214 * config/vax/vax.h: Change movmem to cpymem in comment.
23215 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
23216 * config/visium/visium.h: Change movmem to cpymem in comment.
23217 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
23218 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
23219 * doc/md.texi: Change movmem to cpymem and update description to match.
23220 * doc/rtl.texi: Change movmem to cpymem.
23221 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
23222 * doc/tm.texi: Regenerate.
23223
23224 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
23225
23226 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
23227 -fvariable-expansion-in-unroller by default.
23228 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
23229 default for Power.
23230
23231 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
23232
23233 Revert
23234 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23235 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23236
23237 * config.gcc(rs6000-*-*): Define target_gtfiles.
23238
23239 2019-06-27 Jan Hubicka <jh@suse.cz>
23240
23241 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
23242 (add_type_duplicate): When odr hash is not allocated, to nothing.
23243 (odr_based_tbaa_p): New function.
23244 (set_type_canonical_for_odr_type): New function.
23245 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
23246 set_type_canonical_for_odr_type): New.
23247 * tree.c (gimple_canonical_types_compatible_p): ODR types with
23248 ODR based TBAA are not equivalent to non-ODR types.
23249
23250 2019-06-27 Martin Liska <mliska@suse.cz>
23251
23252 PR tree-optimization/90974
23253 PR rtl-optimization/90975
23254 PR rtl-optimization/90976
23255 PR target/91016
23256 PR tree-optimization/91017
23257 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
23258 unused tmp.
23259 * lra.c (lra_set_insn_recog_data): Remove a leftover from
23260 initial commit of IRA.
23261 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
23262 of op0 and op1.
23263 * tree-vect-loop.c (vect_create_epilog_for_reduction):
23264 Remove unused mode1.
23265 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
23266 to new_stmt_info.
23267
23268 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23269
23270 PR target/90991
23271 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
23272 instead of register_operand for operands[1], add m to its constraints
23273 if operands[2] uses "C" constraint. Ensure in condition that if
23274 operands[2] is not 0, then operands[1] is not a MEM. For last two
23275 alternatives, use unaligned loads instead of aligned if operands[1] is
23276 misaligned_operand.
23277
23278 2019-06-27 Martin Liska <mliska@suse.cz>
23279
23280 * asan.c (asan_emit_allocas_unpoison): Remove obviously
23281 dead assignments.
23282 * bt-load.c (move_btr_def): Likewise.
23283 * builtins.c (expand_builtin_apply_args_1): Likewise.
23284 (expand_builtin_apply): Likewise.
23285 * cfgexpand.c (expand_asm_stmt): Likewise.
23286 (construct_init_block): Likewise.
23287 * cfghooks.c (verify_flow_info): Likewise.
23288 * cfgloopmanip.c (remove_path): Likewise.
23289 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
23290 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
23291 * combine.c (simplify_if_then_else): Likewise.
23292 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
23293 (choose_basereg): Likewise.
23294 (ix86_expand_prologue): Likewise.
23295 (ix86_preferred_output_reload_class): Likewise.
23296 * cselib.c (cselib_record_sets): Likewise.
23297 * df-scan.c (df_scan_alloc): Likewise.
23298 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
23299 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
23300 * emit-rtl.c (try_split): Likewise.
23301 * graphite-scop-detection.c (assign_parameter_index_in_region):
23302 Likewise.
23303 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
23304 * ira-color.c (setup_profitable_hard_regs): Likewise.
23305 * ira.c (rtx_moveable_p): Likewise.
23306 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23307 * read-rtl.c (read_subst_mapping): Likewise.
23308 * regrename.c (scan_rtx): Likewise.
23309 * reorg.c (fill_slots_from_thread): Likewise.
23310 * tree-inline.c (tree_function_versioning): Likewise.
23311 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
23312 * tree-ssa-sink.c (statement_sink_location): Likewise.
23313 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
23314 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
23315 (vect_create_epilog_for_reduction): Likewise.
23316 * tree.c (build_nonstandard_integer_type): Likewise.
23317
23318 2019-06-27 Richard Biener <rguenther@suse.de>
23319
23320 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
23321
23322 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
23323
23324 PR tree-optimization/89772
23325 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
23326 out-of-bound accesses checking.
23327
23328 2019-06-27 Martin Liska <mliska@suse.cz>
23329
23330 PR tree-optimization/91014
23331 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
23332 when LHS is NULL_TREE.
23333
23334 2019-06-27 Martin Liska <mliska@suse.cz>
23335
23336 * symbol-summary.h (traverse): Pass
23337 argument a to the call of callback.
23338 (gt_ggc_mx): Mark arguments as unused.
23339 (gt_pch_nx): Likewise.
23340
23341 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
23342
23343 PR target/62147
23344 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
23345 finiteness.
23346
23347 2019-06-26 Jeff Law <law@redhat.com>
23348
23349 PR tree-optimization/90883
23350 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
23351 (delete_dead_or_redundant_assignment): Likewise.
23352
23353 PR tree-optimization/90883
23354 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
23355 * tree-ssa-dse.c: Update various comments to distinguish between
23356 dead and redundant stores.
23357 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
23358 (dse_optimize_redundant_stores): New function.
23359 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
23360 Distinguish between dead and redundant calls in dump output. All
23361 callers updated.
23362 (delete_dead_or_redundant_assignment): Similarly for assignments.
23363 (dse_optimize_stmt): Handle _CHK variants. For statements which
23364 store 0 into multiple memory locations, try to prove a subsequent
23365 store is redundant.
23366
23367 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
23368
23369 PR target/89021
23370 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23371 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23372
23373 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23374
23375 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23376 (branch_islands): New extern.
23377 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23378 * config/rs6000/rs6000.c: .. here.
23379
23380 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23381
23382 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23383 (powerpc*-*-*) ... to here.
23384
23385 2019-06-26 Jeff Law <law@redhat.com>
23386
23387 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23388 memcpy, memmove and memset builtins.
23389 (maybe_trim_memstar_call): Likewise.
23390
23391 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23392
23393 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23394
23395 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23396
23397 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23398
23399 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23400
23401 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23402 declaration.
23403 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23404 "static".
23405 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23406 declaration.
23407
23408 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23409
23410 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23411
23412 2019-06-26 Richard Biener <rguenther@suse.de>
23413
23414 PR ipa/90982
23415 * tree-inline.c (remap_ssa_name): Copy SSA range info.
23416
23417 2019-06-26 Richard Biener <rguenther@suse.de>
23418
23419 * lto-streamer.h (lto_bitmap_alloc): Remove.
23420 (lto_bitmap_free): Likewise.
23421 * lto-streamer.c (lto_bitmap_alloc): Remove.
23422 (lto_bitmap_free): Likewise.
23423 (lto_obstack): Likewise.
23424 (lto_obstack_initialized): Likewise.
23425 * lto-streamer-out.c (lto_output): Use own obstack for local
23426 bitmap, free it consistently.
23427
23428 2019-06-26 Jakub Jelinek <jakub@redhat.com>
23429
23430 PR target/90991
23431 * config/i386/sse.md
23432 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23433 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23434 insns if operands[2] is misaligned_operand.
23435
23436 2019-06-26 Li Jia He <helijia@linux.ibm.com>
23437
23438 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23439 TARGET_POWERPC64.
23440 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23441 to GPR.
23442
23443 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23444
23445 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23446
23447 2019-06-26 Martin Liska <mliska@suse.cz>
23448
23449 PR tree-optimization/90973
23450 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23451 epilogue_cost_vec instead of prologue_cost_vec for
23452 a epilogue cost.
23453
23454 2019-06-26 Martin Liska <mliska@suse.cz>
23455
23456 * bb-reorder.c (connect_better_edge_p): Add missing else
23457 statement in the middle of if-else statements.
23458
23459 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23460 H.J. Lu <hongjiu.lu@intel.com>
23461 Olga Makhotina <olga.makhotina@intel.com>
23462
23463 * common/config/i386/i386-common.c
23464 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23465 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23466 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23467 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23468 (ix86_handle_option): Handle -mavx512vp2intersect.
23469 * config/i386/avx512vp2intersectintrin.h: New.
23470 * config/i386/avx512vp2intersectvlintrin.h: New.
23471 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23472 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23473 AVX512VP2INTERSECT.
23474 * config/i386/i386-builtin-types.def: Add new types.
23475 * config/i386/i386-builtin.def: Add new builtins.
23476 * config/i386/i386-builtins.c: (enum processor_features): Add
23477 F_AVX512VP2INTERSECT.
23478 (static const _isa_names_table isa_names_table): Ditto.
23479 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23480 __AVX512VP2INTERSECT__.
23481 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23482 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23483 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23484 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23485 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23486 * config/i386/i386-options.c (ix86_target_string): Add
23487 -mavx512vp2intersect.
23488 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23489 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23490 P2HImode and P2QImode.
23491 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23492 number for P2QImode and P2HImode.
23493 (ix86_regmode_natural_size): New function.
23494 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23495 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23496 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23497 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23498 * config/i386/i386.opt: Add -mavx512vp2intersect.
23499 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23500 avx512vp2intersectvlintrin.h.
23501 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23502 (define_mode_iterator VI48_AVX512VP2VL): New.
23503 (avx512vp2intersect_2intersect<mode>,
23504 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23505 * config.gcc: Add avx512vp2intersectvlintrin.h and
23506 avx512vp2intersectintrin.h to extra_headers.
23507 * doc/invoke.texi: Document -mavx512vp2intersect.
23508
23509 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23510
23511 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23512
23513 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23514
23515 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23516 savres_routine_syms, savres_routine_name, morestack_ref,
23517 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23518 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23519 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23520 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23521 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23522 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23523 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23524 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23525 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23526 get_stack_clash_protection_probe_interval,
23527 get_stack_clash_protection_guard_size,
23528 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23529 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23530 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23531 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23532 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23533 gen_frame_mem_offset, rs6000_savres_routine_name,
23534 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23535 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23536 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23537 rs6000_global_entry_point_prologue_needed_p,
23538 rs6000_get_separate_components, rs6000_components_for_bb,
23539 rs6000_disqualify_components, rs6000_emit_prologue_components,
23540 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23541 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23542 rs6000_output_savres_externs, rs6000_output_function_prologue,
23543 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23544 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23545 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23546 rs6000_output_function_epilogue, gen_add3_const,
23547 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23548 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23549 to rs6000-logue.c.
23550 (machine_function): Moved to rs6000.h.
23551 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23552 rs6000-internal.h.
23553 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23554 savres_routine_syms, savres_routine_name, morestack_ref,
23555 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23556 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23557 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23558 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23559 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23560 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23561 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23562 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23563 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23564 get_stack_clash_protection_probe_interval,
23565 get_stack_clash_protection_guard_size,
23566 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23567 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23568 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23569 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23570 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23571 gen_frame_mem_offset, rs6000_savres_routine_name,
23572 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23573 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23574 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23575 rs6000_global_entry_point_prologue_needed_p,
23576 rs6000_get_separate_components, rs6000_components_for_bb,
23577 rs6000_disqualify_components, rs6000_emit_prologue_components,
23578 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23579 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23580 rs6000_output_savres_externs, rs6000_output_function_prologue,
23581 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23582 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23583 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23584 rs6000_output_function_epilogue, gen_add3_const,
23585 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23586 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23587 to here from rs6000.c.
23588 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23589 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23590 quad_address_offset_p) Moved to here from rs6000.c.
23591 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23592 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23593 collector.
23594
23595 2019-06-25 Martin Liska <mliska@suse.cz>
23596
23597 * hash-table.c (hashtab_chk_error): Move here from ...
23598 * hash-table.h (hashtab_chk_error): ... here.
23599
23600 2019-06-25 Martin Liska <mliska@suse.cz>
23601
23602 PR tree-optimization/90978
23603 * df-scan.c (df_update_entry_block_defs): Remove dead else
23604 branch.
23605 (df_update_exit_block_uses): Likewise.
23606
23607 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23608 Andrew Stubbs <ams@codesourcery.com>
23609
23610 * config.gcc (thread_file): Set to gcn for AMD GCN.
23611 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23612 (TARGET_EMUTLS_VAR_INIT): New hook.
23613
23614 2019-06-25 Martin Jambor <mjambor@suse.cz>
23615
23616 PR ipa/90939
23617 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23618
23619 2019-06-25 Richard Biener <rguenther@suse.de>
23620
23621 PR tree-optimization/90930
23622 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23623 into parallel form in the last pass instance.
23624
23625 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23626
23627 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23628 (arc_legitimize_pic_address): Simplify and cleanup the function.
23629 (SYMBOLIC_CONST): Remove.
23630 (prepare_pic_move): Likewise.
23631 (prepare_move_operands): Handle complex mov cases here.
23632 (arc_legitimize_address_0): Remove call to
23633 arc_legitimize_pic_address.
23634 (arc_legitimize_address): Remove call to
23635 arc_legitimize_tls_address.
23636 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23637 (movhi_insn): Likewise.
23638
23639 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23640
23641 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23642 PTRDIFF_TYPE.
23643 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23644 format of "__intN" types for UINTMAX_TYPE.
23645 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23646 format of "__intN" types for SIZETYPE.
23647 * tree.c (build_common_tree_nodes): Accept "__intN__"
23648 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23649 * doc/invoke.texi: Document that __intN__ disables pedantic
23650 warnings.
23651
23652 2019-06-25 Jan Hubicka <jh@suse.cz>
23653
23654 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23655 base2_alias_set is non-zero before doing TBAA based disambiguation.
23656
23657 2019-06-25 Martin Liska <mliska@suse.cz>
23658
23659 PR tree-optimization/90973
23660 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23661 of prologue and epilogue.
23662
23663 2019-06-24 Jan Hubicka <jh@suse.cz>
23664
23665 * ipa-utils.h (type_with_linkage_p): Verify that type is
23666 CXX_ODR_P.
23667 (odr_type_p): Remove extra return.
23668 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23669 hash STRING_FLAG only for arrays and integers.
23670 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23671 Update analogously.
23672 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23673 Likewise.
23674 * print-tree.c (print_node): Print cxx-odr-p
23675 and string-flag.
23676 * tree.c (need_assembler_name_p): Also check that type
23677 is CXX_ODR_TYPE_P
23678 (verify_type_variant): Update verification of SRING_FLAG;
23679 also check CXX_ODR_P.
23680 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23681 (TYPE_STRING_FLAG): Use it.
23682 (TYPE_CXX_ODR_P): New macro.
23683 * dwarf2out.c (gen_array_type_die): First check that type
23684 is an array and then test string flag.
23685
23686 2019-06-24 Richard Biener <rguenther@suse.de>
23687
23688 PR tree-optimization/90972
23689 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23690 in common code, dealing with STRING_CST properly.
23691
23692 2019-06-24 Richard Biener <rguenther@suse.de>
23693
23694 PR tree-optimization/90930
23695 PR tree-optimization/90316
23696 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23697 decrement of limit.
23698
23699 2019-06-24 Martin Sebor <msebor@redhat.com>
23700
23701 * tree-pretty-print.h: Remove unnecessary punctuation characters
23702 from a diagnostic.
23703 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23704
23705 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23706
23707 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23708 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23709 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23710
23711 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23712
23713 * config/rs6000/darwin.h: Handle GCC target pragma.
23714
23715 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23716
23717 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23718
23719 2019-06-22 Jeff Law <law@redhat.com>
23720
23721 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23722
23723 2019-06-22 Jan Hubicka <jh@suse.cz>
23724
23725 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23726 give up on bitfields; continue searching for different refs
23727 appearing later.
23728
23729 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23730
23731 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23732 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23733 containing the offset as possible simd lane access. Look through
23734 widening conversion. Move the
23735 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23736
23737 2019-06-21 Richard Biener <rguenther@suse.de>
23738
23739 PR tree-optimization/90930
23740 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23741 flag on new stmts to avoid re-processing them.
23742
23743 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23744
23745 PR c++/90875 - added -Wswitch-outside-range option
23746 * doc/invoke.texi (Wswitch-outside-range): Document.
23747
23748 2019-06-21 Jeff Law <law@redhat.com>
23749
23750 PR tree-optimization/90949
23751 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23752 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23753
23754 2019-06-21 Richard Biener <rguenther@suse.de>
23755
23756 PR debug/90914
23757 * dwarf2out.c (prune_unused_types_walk): Always consider
23758 function-local extern declarations as used.
23759
23760 2019-06-21 Richard Biener <rguenther@suse.de>
23761
23762 PR tree-optimization/90913
23763 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23764 the scalar variant of if-conversion versioning.
23765
23766 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23767
23768 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23769 create another "omp scan inscan exclusive" array if
23770 !ctx->scan_inclusive.
23771 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23772 (lower_omp_scan): Likewise.
23773 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23774 2-bit bitfield for simd_lane_access_p member.
23775 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23776 aux == (void *)-4 as simd lane access.
23777 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23778 comment with permutations to show the canonical permutation order.
23779 (vectorizable_scan_store): Handle exclusive scan.
23780 (vectorizable_store): Call vectorizable_scan_store even for
23781 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23782
23783 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23784 "omp simd array" arrays with one byte elements.
23785
23786 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23787
23788 * config/alpha/alpha.md (@unaligned_store<mode>):
23789 Rename from unaligned_store<mode>.
23790 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23791 * config/alpha/sync.md (@load_locked_<mode>): Rename
23792 from load_locked_<mode>.
23793 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23794 (@atomic_compare_and_swap<mode>_1): Rename
23795 from atomic_compare_and_swap<mode>_1.
23796 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23797 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23798 Use gen_reload_in_aligned and gen_unaligned_store.
23799 (emit_load_locked): Remove.
23800 (emit_store_conditional): Ditto.
23801 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23802 (alpha_split_compare_and_swap): Ditto.
23803 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23804 (alpha_split_compare_and_swap_12): Use gen_load_locked
23805 and gen_store_conditional.
23806 (alpha_split_atomic_exchange): Ditto.
23807 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23808 (alpha_split_atomic_exchange_12): Use gen_load_locked
23809 and gen_store_conditional.
23810
23811 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23812
23813 * config/aarch64/aarch64-errata.h: New file.
23814 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23815 (CA53_ERR_843419_SPEC): Delete.
23816 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23817 * config/aarch64/aarch64-linux.h: Likewise.
23818 * config/aarch64/aarch64-netbsd.h: Likewise.
23819 * config/aarch64/aarch64-freebsd.h: Likewise.
23820
23821 2019-06-20 Marek Polacek <polacek@redhat.com>
23822
23823 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23824
23825 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23826
23827 * config/rs6000/rs6000.md (isa attribute): Add support for
23828 for a future processor.
23829
23830 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23831
23832 PR target/54855
23833 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23834 standard scalar operation pattern for V2DF.
23835 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23836 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23837 (*ieee_<ieee_maxmin><mode>3): Likewise.
23838 (vec_setv2df_0): Likewise.
23839
23840 2019-06-20 Jan Hubicka <jh@suse.cz>
23841
23842 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23843 parameter; it has no use in gimple memory model.
23844 (indirect_ref_may_alias_decl_p): Update.
23845
23846 2019-06-20 Martin Liska <mliska@suse.cz>
23847
23848 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23849 to 10.
23850
23851 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23852
23853 * tree-vect-stmts.c (enum scan_store_kind): New type.
23854 (scan_store_can_perm_p): Change last argument from int * to
23855 vec<enum scan_store_kind> *, record precisely which permutations
23856 need whole vector left shift or that plus VEC_COND_EXPR.
23857 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23858 and additional VEC_COND_EXPR only for those iterations that need it.
23859
23860 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23861
23862 * config.gcc: Fix ARM --with-fpu checking and error message.
23863
23864 2019-06-19 Marek Polacek <polacek@redhat.com>
23865
23866 PR c++/60364 - noreturn after first decl not diagnosed.
23867 * attribs.c (get_attribute_namespace): No longer static.
23868 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23869 attributes.
23870 (attr_noreturn_exclusions): Make it extern.
23871 * attribs.h (get_attribute_namespace): Declare.
23872 * tree-inline.c (function_attribute_inlinable_p): Use
23873 get_attribute_name.
23874
23875 2019-06-19 Martin Sebor <msebor@redhat.com>
23876
23877 PR tree-optimization/90626
23878 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23879
23880 PR tree-optimization/90626
23881 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23882 (handle_builtin_string_cmp): Call it.
23883
23884 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23885
23886 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23887 and DARWIN_NOPIE_SPEC.
23888 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23889 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23890 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23891 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23892 (DARWIN_EXPORT_DYNAMIC): Delete.
23893 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23894 and pie options processing to darwin.h.
23895 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23896
23897 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23898
23899 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23900 in computing the number of options to be moved.
23901
23902 2019-06-19 Maya Rashish <coypu@sdf.org>
23903
23904 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23905 (CLEAR_INSN_CACHE) Use it.
23906
23907 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23908
23909 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23910
23911 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23912
23913 PR middle-end/84521
23914 * builtins.c (expand_builtin_setjmp_setup): Save
23915 hard_frame_pointer_rtx.
23916 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23917 restore fp.
23918 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23919 non-local goto.
23920 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23921 elimination code.
23922 (remove_reg_equal_offset_note): Remove unused function.
23923 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23924 code.
23925 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23926 (arc_builtin_setjmp_frame_value): Remove function.
23927 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23928 (avr_builtin_setjmp_frame_value): Remove function.
23929 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23930 (ix86_builtin_setjmp_frame_value): Remove function.
23931 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23932 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23933 (sparc_builtin_setjmp_frame_value): Remove function.
23934 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23935 (vax_builtin_setjmp_frame_value): Remove function.
23936 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23937 pointer if has_nonlocal_label.
23938
23939 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23940
23941 * doc/md.texi: Document vec_shl_<mode> pattern.
23942 * optabs.def (vec_shl_optab): New optab.
23943 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23944 argument, if == vec_shl_optab, check for left whole vector shift
23945 pattern rather than right shift.
23946 (expand_vec_perm_const): Add vec_shl_optab support.
23947 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23948 in the comment.
23949 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23950 can be handled by vec_shl_optab.
23951 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23952 (check_scan_store): Use it.
23953 (vectorizable_scan_store): If target can't do normal permutations,
23954 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23955 after it.
23956 * config/i386/sse.md (vec_shl_<mode>): New expander.
23957
23958 * omp-low.c (lower_rec_input_clauses): Handle references properly
23959 in inscan clauses.
23960 (lower_omp_scan): Likewise.
23961
23962 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23963
23964 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23965 mem_mode is BLKmode.
23966
23967 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23968
23969 PR target/90922
23970 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23971 pointer adjustment for the case of no callee-saved registers and
23972 stack frame bigger than 128 bytes.
23973
23974 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23975
23976 PR middle-end/90862
23977 * omp-low.c (check_omp_nesting_restrictions): Handle
23978 GF_OMP_TARGET_KIND_OACC_DECLARE.
23979
23980 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23981
23982 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23983 (@add<mode>3_carry): Rename from add<mode>3_carry.
23984 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23985 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23986 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23987 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23988 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23989 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23990 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23991 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23992 (cmpstrnsi): Use gen_cmp_1.
23993 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23994 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23995 (@umonitor_<mode>): Rename from umonitor_<mode>.
23996 * config/i386/i386-expand.c (ix86_expand_copysign):
23997 Use gen_copysign3_const and gen_copysign3_var.
23998 (ix86_expand_xorsign): Use gen_xorsign3_1.
23999 (ix86_expand_branch): Use gen_sub3_carry_ccc,
24000 gen_sub3_carry_ccgz and gen_cmp1.
24001 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
24002 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
24003 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
24004 (ix86_split_lshr): Ditto.
24005 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
24006
24007 2019-06-18 Jason Merrill <jason@redhat.com>
24008
24009 * tree.c (build_constructor): Add MEM_STAT_DECL.
24010
24011 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24012
24013 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
24014 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
24015 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
24016 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
24017 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
24018 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
24019 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
24020 Use CC_NZC instead of CC.
24021 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
24022 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
24023 (aarch64_print_operand): Handle E_CC_NZCmode.
24024 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
24025 of gen_set_clobber_cc.
24026
24027 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24028
24029 * config/aarch64/aarch64-sve.md: Tabify file.
24030
24031 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24032
24033 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
24034 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
24035 * config/aarch64/aarch64-sve.md: Use it.
24036
24037 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24038
24039 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
24040 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
24041 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
24042 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
24043 (aarch64_expand_sve_vec_cmp_int): Use it.
24044 (aarch64_expand_sve_vec_cmp_float): Likewise.
24045 * config/aarch64/aarch64-sve.md: Likewise throughout.
24046
24047 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24048 Kugan Vivekanandarajah <kuganv@linaro.org>
24049
24050 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
24051 (*cond_<optab><mode>_z): Fold into...
24052 (*cond_<optab><mode>_any): ...here. Also handle cases in which
24053 operand 4 can be tied to operand 0 (either inherently or via RA).
24054
24055 2019-06-18 Richard Biener <rguenther@suse.de>
24056
24057 PR debug/90900
24058 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
24059 as if optimized away.
24060
24061 2019-06-18 Tom de Vries <tdevries@suse.de>
24062
24063 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
24064 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
24065 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
24066 Rename to ...
24067 (define_insn "@set_softstack_<mode>"): ... this.
24068 (define_insn "omp_simt_enter_<mode>"): Rename to ...
24069 (define_insn "@omp_simt_enter_<mode>"): ... this.
24070 (define_insn "omp_simt_exit_<mode>"): Rename to ...
24071 (define_insn "@omp_simt_exit_<mode>"): ... this.
24072
24073 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24074
24075 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
24076 vf parameter. Restore the previous iv step of nscalars_step,
24077 but give it iv_type rather than compare_type. Tweak code order
24078 to match the comments.
24079 (vect_set_loop_condition_masked): Update accordingly.
24080 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
24081 for iv_precision. Tweak comment formatting.
24082
24083 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24084
24085 * config/darwin.c: Strip trailing whitespace.
24086
24087 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24088
24089 * config/darwin.c (darwin_emit_unwind_label): New default to false.
24090 (darwin_override_options): Set darwin_emit_unwind_label as needed.
24091
24092 2019-06-18 Martin Jambor <mjambor@suse.cz>
24093
24094 PR ipa/90889
24095 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
24096 caller does not have flag_ipa_cp set.
24097
24098 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24099
24100 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
24101 from "*fold_left_plus_<mode>", updated operands order.
24102 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
24103 * internal-fn.c (mask_fold_left_direct): New define.
24104 (expand_mask_fold_left_optab_fn): Likewise.
24105 (direct_mask_fold_left_optab_supported_p): Likewise.
24106 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
24107 * optabs.def (mask_fold_left_plus_optab): New optab.
24108 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
24109 masked internal_fn for a reduction ifn.
24110 (vectorize_fold_left_reduction): Add support for masking reductions.
24111
24112 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
24113
24114 PR middle-end/80791
24115 * target.def (predict_doloop_p): New hook.
24116 * targhooks.h (default_predict_doloop_p): New declaration.
24117 * targhooks.c (default_predict_doloop_p): New function.
24118 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
24119 * doc/tm.texi: Regenerate.
24120 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
24121 (TARGET_PREDICT_DOLOOP_P): New macro.
24122 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
24123
24124 2019-06-17 Jakub Jelinek <jakub@redhat.com>
24125
24126 * omp-low.c (struct omp_context): Add scan_inclusive field.
24127 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
24128 if inclusive scan.
24129 (struct omplow_simd_context): Add lastlane member.
24130 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
24131 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
24132 1 or 2 argument.
24133 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
24134 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
24135 (lower_omp_scan): New function.
24136 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
24137 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
24138 check 3rd argument if present rather than 2nd.
24139 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
24140 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
24141 2-bit bitfield.
24142 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
24143 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
24144 than 2nd.
24145 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
24146 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
24147 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
24148 init.
24149 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
24150 IFN_GOMP_SIMD_LANE argument.
24151 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
24152 encoded ->aux value.
24153 * tree-vect-stmts.c: Include attribs.h.
24154 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
24155 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
24156 functions.
24157 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
24158 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
24159
24160 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
24161
24162 PR target/62055
24163 * config/i386/i386.md (*nabstf2_1): New insn pattern.
24164 (*nabs<mode>2_1): Ditto.
24165 (nabs sse-reg splitter): New splitter.
24166 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
24167
24168 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24169
24170 PR bootstrap/90873.
24171 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
24172 TMR index check.
24173
24174 2019-06-17 Tom de Vries <tdevries@suse.de>
24175
24176 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
24177 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
24178 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
24179 ...
24180 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
24181 match_operand 0.
24182 (define_insn "omp_simt_enter_insn"): Rename to ...
24183 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
24184 match_operand 0, 1 and 2, as well as the unspec_volatile result.
24185 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
24186 gen_omp_simt_enter_si.
24187 (define_expand "omp_simt_exit"): New.
24188 (define_insn "omp_simt_exit"): Rename to ...
24189 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
24190 match_operand 0.
24191
24192 2019-06-17 Matthew Green <mrg@eterna.com.au>
24193 Maya Rashish <coypu@sdf.org>
24194
24195 * config.gcc (aarch64*-*-netbsd*): New target.
24196 * config/aarch64/aarch64-netbsd.h: New file.
24197 * config/aarch64/t-aarch64-netbsd: Likewise.
24198
24199 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24200
24201 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
24202 the access path from base to first VIEW_CONVERT_EXPR or
24203 BIT_FIELD_REF.
24204
24205 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24206
24207 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
24208 access path on BIT_FIELD_REFs.
24209
24210 2019-06-17 Martin Liska <mliska@suse.cz>
24211
24212 PR ipa/90874
24213 * ipa-utils.h (odr_type_p): Remove dead code.
24214
24215 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24216
24217 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
24218 alternative Solaris 11.4 format.
24219 * configure: Regenerate.
24220
24221 2019-06-17 Tom de Vries <tdevries@suse.de>
24222
24223 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
24224 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
24225 match_operand 0.
24226 (define_insn "call_value_insn"): Rename to ...
24227 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
24228 match_operand 0.
24229 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
24230 DI.
24231
24232 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
24233
24234 PR middle-end/64242
24235 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
24236 frame clobbers and schedule block.
24237 (builtin_longjmp): Likewise.
24238
24239 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24240
24241 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
24242 describe how to perform MSPABI compliant 64-bit shift.
24243 * config/msp430/msp430.md (ashldi3): New define_expand.
24244 (ashrdi3): New define_expand.
24245 (lshrdi3): New define_expand.
24246
24247 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24248
24249 * doc/sourcebuild.texi: Document new effective target keyword
24250 longlong64.
24251
24252 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24253
24254 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
24255 indirect_refs_may_alias_p): Revert accidental commits.
24256
24257 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
24258 at the end of structures.
24259
24260 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24261
24262 * config/darwin.c (machopic_indirect_call_target): Use renamed
24263 darwin_picsymbol_stubs to decide on output.
24264 (darwin_override_options): Handle darwin_picsymbol_stubs.
24265 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
24266 (LD64_VERSION): Revise default.
24267 * config/darwin.opt: (mpic-symbol-stubs): New option.
24268 (darwin_picsymbol_stubs): New variable.
24269 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
24270 rename to TARGET_MACHO_PICSYM_STUBS.
24271 * config/i386/i386.c (output_pic_addr_const): Likewise.
24272 * config/i386/i386.h Likewise.
24273 * config/rs6000/darwin.h: Likewise.
24274 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
24275 darwin_picsymbol_stubs.
24276
24277 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24278
24279 * config/darwin.opt (prebind, noprebind, seglinkedit,
24280 noseglinkedit): Add RejectNegative.
24281
24282 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24283
24284 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
24285 in my previous patch.
24286
24287 2019-06-16 Tom de Vries <tdevries@suse.de>
24288
24289 PR tree-optimization/89376
24290 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
24291
24292 2019-06-15 Maya Rashish <coypu@sdf.org>
24293
24294 * doc/invoke.texi (Spec Files): Update location of the
24295 Fortran spec file.
24296
24297 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
24298
24299 * doc/extend.texi (Common Function Attributes): Clarify
24300 no_sanitize. Fix grammar.
24301
24302 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
24303
24304 * tree-ssa-alias.c (alias_stats): Add
24305 nonoverlapping_component_refs_p_may_alias,
24306 nonoverlapping_component_refs_p_no_alias,
24307 nonoverlapping_component_refs_of_decl_p_may_alias,
24308 nonoverlapping_component_refs_of_decl_p_no_alias.
24309 (dump_alias_stats): Dump them.
24310 (nonoverlapping_component_refs_of_decl_p): Add stats.
24311 (nonoverlapping_component_refs_p): Add stats; do not stop on first
24312 ARRAY_REF.
24313
24314 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
24315
24316 * config/i386/i386.md (and<mode>3): Generate zero-extends for
24317 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
24318 only.
24319 (*anddi3_doubleword): Split before reload. Merge with
24320 anddi->zext pre-reload splitter.
24321 (*andndi3_doubleword): Split before reload.
24322 (*<code>di3_doubleword): Ditto.
24323 (*one_cmpldi2_doubleword): Ditto.
24324
24325 2019-06-15 Jakub Jelinek <jakub@redhat.com>
24326
24327 PR middle-end/90779
24328 * gimplify.c: Include omp-offload.h and context.h.
24329 (gimplify_bind_expr): Add "omp declare target" attributes
24330 to static block scope variables inside of target region or target
24331 functions.
24332
24333 2019-06-15 Tom de Vries <tdevries@suse.de>
24334
24335 PR tree-optimization/90009
24336 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
24337 Return NULL if bb contains IFN_UNIQUE.
24338
24339 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
24340
24341 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
24342 (un): New define_mode_attr.
24343 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
24344 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
24345 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
24346 merge into ...
24347 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
24348
24349 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
24350
24351 * config/darwin.opt: Add RejectNegative where needed, reorder
24352 and add minimal functional descriptions.
24353
24354 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24355
24356 PR rtl-optimization/90765
24357 * calls.c (update_stack_alignment_for_call): New function.
24358 (expand_call): Call update_stack_alignment_for_call when
24359 outgoing parameter is passed in the stack.
24360 (emit_library_call_value_1): Likewise.
24361 * function.c (locate_and_pad_parm): Don't update
24362 stack_alignment_needed and preferred_stack_boundary.
24363
24364 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24365
24366 PR target/90877
24367 * config/i386/i386-features.c
24368 (dimode_scalar_chain::compute_convert_gain): Replace
24369 mmxsse_to_integer with sse_to_integer.
24370 * config/i386/i386.c (ix86_register_move_cost): Verify that
24371 moves between MMX and non-MMX units require secondary memory.
24372 Correct costs of moves between SSE and integer units.
24373 * config/i386/i386.h (processor_costs): Rename cost of moving
24374 SSE register to integer to sse_to_integer. Rename cost of
24375
24376 2019-06-14 Matt Thomas <matt@3am-software.com>
24377 Matthew Green <mrg@eterna.com.au>
24378 Nick Hudson <skrll@netbsd.org>
24379 Maya Rashish <coypu@sdf.org>
24380 Richard Earnshaw <rearnsha@arm.com>
24381
24382 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24383 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24384 * config/arm/netbsd-eabi.h: New file.
24385 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24386 redefining.
24387 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24388 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24389 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24390 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24391
24392 2019-06-14 Richard Biener <rguenther@suse.de>
24393
24394 * tree-loop-distribution.c (classify_partition): Return
24395 whether a reduction appeared in all partitions and do not
24396 stop builtin detection because of this.
24397 (distribute_loop): Sort a non-builtin partition last if
24398 there's a reduction in all partitions and make sure the
24399 partition prevailing as last is not a builtin.
24400
24401 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
24402
24403 PR ipa/90401
24404 * ipa-prop.c (add_to_agg_contents_list): New function.
24405 (clobber_by_agg_contents_list_p): Likewise.
24406 (extract_mem_content): Likewise.
24407 (get_place_in_agg_contents_list): Delete.
24408 (determine_known_aggregate_parts): Renamed from
24409 determine_locally_known_aggregate_parts. New parameter
24410 aa_walk_budget_p.
24411
24412 2019-06-13 Martin Sebor <msebor@redhat.com>
24413
24414 PR tree-optimization/90662
24415 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24416 to the same type.
24417
24418 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24419
24420 PR bootstrap/90873
24421 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24422 dbase is not TARGET_MEM_REF.
24423
24424 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24425
24426 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24427 Update all uses.
24428 (and<mode>3): Use gen_extend_insn instead of indirect functions.
24429 Do not generate DImode extends for 32bit targets.
24430 (and->zext post-reload splitter): Use gen_extend_insn
24431 instead of indirect functions.
24432 (anddi->zext pre-reload splitter): New.
24433 (*zext<mode>_doubleword_and): Remove.
24434 (*zext<mode>_doubleword): Ditto.
24435 (*zextsi_doubleword): Dittto.
24436
24437 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24438
24439 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24440 Use gen_sub3_insn instead of indirect function.
24441 (ix86_expand_ashl_const): Use gen_add2_insn instead of
24442 indirect function.
24443 (ix86_adjust_counter): Ditto.
24444
24445 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24446 Lijia He <helijia@linux.ibm.com>
24447
24448 PR tree-optimization/77820
24449 * tree-ssa-threadedge.c
24450 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24451 function.
24452 (thread_across_edge): Add call to
24453 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24454
24455 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24456
24457 * config/darwin-driver.c (validate_macosx_version_min): New.
24458 (darwin_default_min_version): Cleanup and validate supplied version.
24459 (darwin_driver_init): Likewise and push cleaned version into opts.
24460
24461 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24462
24463 PR tree-optimization/90869
24464 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24465 converts in MEM_REF referencing decl rather than view converts
24466 from decl type to MEM_REF type.
24467
24468 2019-06-13 Richard Biener <rguenther@suse.de>
24469
24470 PR tree-optimization/90856
24471 * tree-sra.c (build_ref_for_model): Only use
24472 build_reconstructed_reference when address-spaces are the same.
24473
24474 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24475
24476 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24477 wrap ei variable name in the declaration in ()s.
24478 (nvptx_single): Actually use mode_label variable. Formatting fix.
24479
24480 2019-06-13 Richard Biener <rguenther@suse.de>
24481
24482 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24483 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24484 also return the condition stmt.
24485 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24486 loop we can version and version that, reusing the loop version
24487 created by if-conversion instead of versioning again.
24488
24489 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24490
24491 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24492 may_contain_p.
24493 * tree-vrp (value_range_base::may_contain_p): Call into
24494 value_inside_range.
24495 (value_inside_range): Make private inside value_range_base class.
24496 Take min/max from *this.
24497 (range_includes_p): Remove.
24498 * tree-vrp.h (value_range_base): Add value_inside_range.
24499 (range_includes_p): Remove.
24500 (range_includes_zero_p): Call may_contain_p.
24501 * vr-values.c (compare_range_with_value): Same.
24502
24503 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24504
24505 * doc/extend.texi (ARC Function Attributes): Update info.
24506
24507 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24508
24509 PR tree-optimization/89713
24510 * doc/invoke.texi (-ffinite-loops): Document new option.
24511 * common.opt (-ffinite-loops): New option.
24512 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24513 IFN_GOACC_LOOP calls as necessary.
24514 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24515 is finite.
24516 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24517 IFN_GOACC_LOOP call is not used.
24518 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24519
24520 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24521
24522 PR target/88838
24523 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24524 compare_type is not with Pmode size, we will create an IV with
24525 Pmode size with truncated use (i.e. converted to the correct type).
24526 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24527 (vect_iv_limit_for_full_masking): New. Factored out of
24528 vect_set_loop_condition_masked.
24529 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24530 (vect_iv_limit_for_full_masking): Declare.
24531
24532 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24533
24534 PR target/88834
24535 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24536 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24537 (get_alias_ptr_type_for_ptr_address): Likewise.
24538 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24539 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24540 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24541 allow_reg_index_p.
24542
24543 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24544
24545 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24546
24547 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24548
24549 * common/config/pru/pru-common.c: New file.
24550 * config.gcc: Add PRU target.
24551 * config/pru/alu-zext.md: New file.
24552 * config/pru/constraints.md: New file.
24553 * config/pru/predicates.md: New file.
24554 * config/pru/pru-opts.h: New file.
24555 * config/pru/pru-passes.c: New file.
24556 * config/pru/pru-pragma.c: New file.
24557 * config/pru/pru-protos.h: New file.
24558 * config/pru/pru.c: New file.
24559 * config/pru/pru.h: New file.
24560 * config/pru/pru.md: New file.
24561 * config/pru/pru.opt: New file.
24562 * config/pru/t-pru: New file.
24563 * doc/extend.texi: Document PRU pragmas.
24564 * doc/invoke.texi: Document PRU-specific options.
24565 * doc/md.texi: Document PRU asm constraints.
24566
24567 2019-06-12 Martin Sebor <msebor@redhat.com>
24568
24569 PR middle-end/90676
24570 * tree-pretty-print.c (dump_mem_ref): New function. Include
24571 MEM_REF type in output when different size than operand.
24572 (dump_generic_node): Move code to dump_mem_ref and call it.
24573
24574 2019-06-12 Martin Sebor <msebor@redhat.com>
24575
24576 PR tree-optimization/90662
24577 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24578 to arrays.
24579
24580 2019-06-12 Tom de Vries <tdevries@suse.de>
24581
24582 PR tree-optimization/90009
24583 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24584
24585 2019-06-12 Martin Liska <mliska@suse.cz>
24586
24587 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24588 the created map.
24589 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24590 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24591 Do not sanitize created maps.
24592
24593 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24594
24595 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24596 value_range::singleton_p.
24597 * tree-vrp.c (value_range_constant_singleton): Remove.
24598 * tree-vrp.h (value_range_constant_singleton): Remove.
24599 * vr-values.c (vr_values::singleton): Use
24600 value_range::singleton_p.
24601
24602 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24603
24604 PR target/90811
24605 * cfgexpand.c (align_local_variable): Add really_expand argument,
24606 don't SET_DECL_ALIGN if it is false.
24607 (add_stack_var): Add really_expand argument, pass it through to
24608 align_local_variable.
24609 (expand_one_stack_var_1): Pass true as really_expand to
24610 align_local_variable.
24611 (expand_one_ssa_partition): Pass true as really_expand to
24612 add_stack_var.
24613 (expand_one_var): Pass really_expand through to add_stack_var.
24614
24615 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24616
24617 * config/arm/iterators.md (VABAL): New int iterator.
24618 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24619 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24620 UNSPEC_VABAL_U values.
24621
24622 2019-06-12 Martin Liska <mliska@suse.cz>
24623
24624 * value-prof.c (stream_out_histogram_value): Only first value
24625 can't be negative.
24626
24627 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24628
24629 PR c/90760
24630 * symtab.c (symtab_node::set_section): Allow being called on aliases
24631 as long as they aren't analyzed yet.
24632
24633 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24634
24635 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24636 to `mips_set_text_contents_type' to indicate whether a
24637 non-debug insn follows.
24638
24639 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24640
24641 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24642 enabling -mpcrel by default.
24643 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24644 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24645 that the test against -mcpu=future is done first. Then test if
24646 -mprefixed-addr is on for -mpcrel.
24647 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24648
24649 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24650
24651 PR target/90811
24652 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24653 instead of and.u%d.
24654
24655 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24656
24657 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24658
24659 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24660
24661 PR c++/90449 - add -Winaccessible-base option.
24662 * doc/invoke.texi (Winaccessible-base): Document.
24663
24664 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24665
24666 PR tree-optimization/62041
24667 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24668
24669 2019-06-11 Jason Merrill <jason@redhat.com>
24670
24671 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24672 * tree.c (get_tree_code_name): Likewise.
24673 * print-tree.c (print_node): Only briefly print a node with an
24674 invalid code.
24675
24676 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24677
24678 PR bootstrap/90819
24679 * trans-mem.c (tm_memopt_compute_available): Add assertion
24680 that blocks is not empty. Formatting fix.
24681
24682 2019-06-11 Martin Liska <mliska@suse.cz>
24683
24684 PR c++/87847
24685 * hash-table.h: Extend create_gcc, add one parameter
24686 that is passed into hash_table::hash_table.
24687
24688 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24689
24690 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24691 New prototype.
24692 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24693 Emit clobber also for non-sse operations.
24694 (ix86_split_fp_absneg_operator): New function.
24695 * config/i386/i386.md (SSEMODEF): New mode iterator.
24696 (ssevecmodef): New mode attribute.
24697 (<code>tf2): Use absneg code iterator.
24698 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24699 Add three-operand AVX alternatives.
24700 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24701 Use absneg code iterator and X87MODEF mode iterator.
24702 (absneg fp_reg non-sse splitter): Call absneg code iterator
24703 and X87MODEF mode iterator.
24704 (absneg general_reg non-sse splitter): Use absneg code iterator
24705 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24706 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24707 code iterator. Add three-operand AVX alternative.
24708 (absneg sse_reg splitter): Use absneg code iterator
24709 and SSEMODEF mode iterator. Handle AVX operands.
24710 (absneg fp_reg splitter): Use absneg code iterator
24711 and MODEF mode iterator.
24712 (absneg general_reg splitter): Merge splitters using MODEF mode
24713 iterator. Use absneg code iterator. Call
24714 ix86_split_fp_absneg_operator.
24715 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24716 Do not enable for non-sse modes before reload.
24717 (CSGNMODE): Remove.
24718 (CSGNVMODE): Ditto.
24719 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24720 ssevecmodef mode attribute instaed of CSGNVMODE.
24721 (copysign<mode>3_const): Ditto.
24722 (copysign<mode>3_var): Ditto.
24723 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24724 Use absneg code iterator. Simplify code using std::swap.
24725 * config/i386/predicates.md (absneg_operator): Remove.
24726
24727 2019-06-10 Martin Sebor <msebor@redhat.com>
24728
24729 * gimple-fold.c (get_range_strlen): Update comment that didn't
24730 make it into r267503 or related commits.
24731
24732 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24733
24734 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24735 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24736
24737 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24738
24739 * tree.def (OMP_SCAN): New tree code.
24740 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24741 OMP_CLAUSE_EXCLUSIVE.
24742 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24743 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24744 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24745 OMP_CLAUSE_{IN,EX}CLUSIVE.
24746 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24747 * tree-nested.c (convert_nonlocal_reference_stmt,
24748 convert_local_reference_stmt, convert_gimple_call): Handle
24749 GIMPLE_OMP_SCAN.
24750 * tree-pretty-print.c (dump_omp_clause): Handle
24751 OMP_CLAUSE_{IN,EX}CLUSIVE.
24752 (dump_generic_node): Handle OMP_SCAN.
24753 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24754 * gimple.h (gomp_scan): New type.
24755 (is_a_helper <gomp_scan *>::test,
24756 is_a_helper <const gomp_scan *>::test): New templates.
24757 (gimple_build_omp_scan): Declare.
24758 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24759 gimple_omp_scan_set_clauses): New inline functions.
24760 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24761 * gimple.c (gimple_build_omp_scan): New function.
24762 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24763 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24764 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24765 GIMPLE_OMP_TASKGROUP.
24766 (dump_gimple_omp_scan): New function.
24767 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24768 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24769 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24770 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24771 (is_gimple_stmt): Handle OMP_SCAN.
24772 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24773 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24774 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24775 mentioned in nested #pragma omp scan. Handle
24776 OMP_CLAUSE_{IN,EX}CLUSIVE.
24777 (gimplify_expr): Handle OMP_SCAN.
24778 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24779 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24780 simd constructs.
24781 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24782 GIMPLE_OMP_SCAN.
24783
24784 2019-06-10 Martin Liska <mliska@suse.cz>
24785
24786 * ipa-cp.c (ignore_edge_p): New function.
24787 (build_toporder_info): Use it.
24788 * ipa-inline.c (ignore_edge_p): New function.
24789 (inline_small_functions): Use it.
24790 * ipa-pure-const.c (ignore_edge_for_nothrow):
24791 Verify opt_for_fn for caller and callee.
24792 (ignore_edge_for_pure_const): Likewise.
24793 * ipa-reference.c (ignore_edge_p): Extend to check
24794 for opt_for_fn.
24795 * ipa-utils.c (searchc): Refactor.
24796 * ipa-utils.h: Fix coding style.
24797
24798 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24799
24800 * config/arc/arc.c (arc_rtx_costs): Update costs.
24801
24802 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24803
24804 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24805 (arc_split_ior): Likewise.
24806 (arc_check_mov_const): Likewise.
24807 (arc_split_mov_const): Likewise.
24808 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24809 (arc_rtx_costs): Replace check Crr with Cax constraint.
24810 (prepare_move_operands): Cleanup, remove unused code.
24811 (arc_split_ior): New function.
24812 (arc_check_ior_const): Likewise.
24813 (arc_split_mov_const): Likewise.
24814 (arc_check_mov_const): Likewise.
24815 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24816 in define_insn_and_split pattern.
24817 (iorsi3): Likewise.
24818 (mulsi3_v2): Add new matching variant.
24819 (andsi3_i): Cleanup pattern.
24820 (rotrsi3_cnt1): Update pattern.
24821 (rotrsi3_cnt8): New pattern.
24822 (ashlsi2_cnt8): Likewise.
24823 (ashlsi2_cnt16): Likewise.
24824 * config/arc/constraints.md (C0p): Update constraint.
24825 (Crr): Remove it.
24826 (C0x): New pattern.
24827 (Cax): New pattern.
24828
24829 2019-06-10 Martin Liska <mliska@suse.cz>
24830
24831 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24832 Update coding style.
24833 (sem_item_optimizer::dump_cong_classes):
24834 Print how many items are in a non-singular class. Improve
24835 coding style.
24836
24837 2019-06-10 Martin Liska <mliska@suse.cz>
24838
24839 * value-prof.c (dump_histogram_value): Change dump format.
24840 (gimple_mod_subtract_transform): Remove legacy comment.
24841
24842 2019-06-10 Martin Liska <mliska@suse.cz>
24843
24844 * value-prof.c (dump_histogram_value): Print histogram values
24845 only if present.
24846
24847 2019-06-10 Martin Liska <mliska@suse.cz>
24848
24849 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24850 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24851 * ipa-profile.c (ipa_profile_generate_summary):
24852 Use get_most_common_single_value.
24853 * tree-profile.c (gimple_init_gcov_profiler):
24854 Instrument with __gcov_one_value_profiler_v2
24855 and __gcov_indirect_call_profiler_v4.
24856 * value-prof.c (dump_histogram_value):
24857 Print all values for HIST_TYPE_SINGLE_VALUE.
24858 (stream_out_histogram_value): Update assert for
24859 N values.
24860 (stream_in_histogram_value): Set number of
24861 counters for HIST_TYPE_SINGLE_VALUE.
24862 (get_most_common_single_value): New.
24863 (gimple_divmod_fixed_value_transform):
24864 Use get_most_common_single_value.
24865 (gimple_ic_transform): Likewise.
24866 (gimple_stringops_transform): Likewise.
24867 (gimple_find_values_to_profile): Set number
24868 of counters for HIST_TYPE_SINGLE_VALUE.
24869 * value-prof.h (get_most_common_single_value): New.
24870
24871 2019-06-10 Martin Liska <mliska@suse.cz>
24872
24873 * hash-map.h: Pass default value to hash_table ctor.
24874 * hash-table.h: Add default value to call of a ctor.
24875
24876 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24877
24878 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24879 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24880
24881 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24882
24883 PR target/90751
24884 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24885 Call pa_output_function_label.
24886 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24887 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24888 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24889 to declaration.
24890 (pa_linux_output_function_prologue): Declare.
24891 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24892 (pa_output_function_label): New.
24893 (pa_output_function_prologue): Revise to use pa_output_function_label.
24894 (pa_linux_output_function_prologue): New.
24895 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24896
24897 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24898
24899 * tree-vrp.h (value_range_base::intersect): New.
24900 (value_range::intersect_helper): Move from here...
24901 (value_range_base::intersect_helper): ...to here.
24902 * tree-vrp.c (value_range::intersect_helper): Rename to...
24903 (value_range_base::intersect_helper): ...this, and rewrite to
24904 return a value instead of modifying THIS in place.
24905 Also, move equivalence handling...
24906 (value_range::intersect): ...here, while calling intersect_helper.
24907 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24908 calling intersect.
24909 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24910 Same.
24911 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24912
24913 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24914
24915 * Makefile.in (genprogerr): Add condmd.
24916 (genprog): Remove it here.
24917
24918 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24919
24920 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24921
24922 2019-06-07 Richard Biener <rguenther@suse.de>
24923
24924 PR debug/90574
24925 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24926 that appear after user labels.
24927
24928 2019-06-07 Martin Liska <mliska@suse.cz>
24929
24930 * cselib.c (cselib_init): Disable hash table
24931 sanitization.
24932 * hash-set.h: Pass new default argument to m_table.
24933 * hash-table.c: Add global variable with hash table
24934 sanitization limit.
24935 * hash-table.h (Allocator>::hash_table): Add new argument
24936 to ctor.
24937 (hashtab_chk_error): New.
24938 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24939 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24940 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24941
24942 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24943
24944 * common.opt (flto-odr-type-merging): Ignore.
24945 * invoke.texi (-flto-odr-type-merging): Remove.
24946 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24947 (can_be_vtable_hashed_p): Remove.
24948 (hash_odr_vtable): Remove.
24949 (odr_vtable_hasher::hash): Remove.
24950 (types_same_for_odr): Remove.
24951 (types_odr_comparable): Remove.
24952 (odr_vtable_hasher::equal): Remove.
24953 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24954 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24955 (get_odr_type): Do not use vtable hash.
24956 (dump_odr_type): Remove commented out code.
24957 (build_type_inheritance_graph): Do not allocate vtable hash.
24958 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24959 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24960 (odr_type_p): Likewise.
24961 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24962 test.
24963
24964 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24965
24966 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24967 immediately after same_types_for_tbaa_p returns -1 and continue
24968 looking for possible exact match; if matching types are arrays
24969 watch for partial overlaps.
24970 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24971 (indirect_refs_may_alias_p): Do type based disambiguation first;
24972 update comment.
24973
24974 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24975
24976 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24977
24978 2019-06-07 Martin Liska <mliska@suse.cz>
24979
24980 * doc/invoke.texi: Remove param.
24981 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24982 Remove.
24983 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24984 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24985 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24986 * profile.c (instrument_values): Remove
24987 HIST_TYPE_INDIR_CALL_TOPN.
24988 * tree-profile.c (init_ic_make_global_vars):
24989 Always build __gcov_indirect_call only.
24990 (gimple_init_gcov_profiler): Remove usage
24991 of PARAM_INDIR_CALL_TOPN_PROFILE.
24992 (gimple_gen_ic_profiler): Likewise.
24993 * value-prof.c (dump_histogram_value): Likewise.
24994 (stream_in_histogram_value): Likewise.
24995 (gimple_indirect_call_to_profile): Likewise.
24996 (gimple_find_values_to_profile): Likewise.
24997 * value-prof.h (enum hist_type): Likewise.
24998
24999 2019-06-07 Martin Liska <mliska@suse.cz>
25000
25001 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
25002 function.
25003
25004 2019-06-07 Martin Liska <mliska@suse.cz>
25005
25006 PR tree-optimization/78902
25007 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
25008 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
25009 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25010 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25011 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
25012 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25013 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
25014 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
25015 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25016 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25017 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25018 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
25019 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
25020 New.
25021 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
25022 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
25023 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
25024 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25025 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25026 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
25027 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25028 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25029 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
25030 warn_unused_result attribute.
25031 (BUILT_IN_STRDUP): Likewise.
25032 (BUILT_IN_STRNDUP): Likewise.
25033 (BUILT_IN_ALLOCA): Likewise.
25034 (BUILT_IN_CALLOC): Likewise.
25035 (BUILT_IN_MALLOC): Likewise.
25036 (BUILT_IN_REALLOC): Likewise.
25037
25038 2019-06-06 Jim Wilson <jimw@sifive.com>
25039
25040 PR target/89955
25041 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
25042 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
25043 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
25044
25045 2019-06-06 Martin Sebor <msebor@redhat.com>
25046
25047 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
25048 (handle_builtin_malloc): Remove trailing spaces.
25049 (handle_builtin_memset): Same.
25050 (handle_builtin_memcmp): Same.
25051 (compute_string_length): Same.
25052 (determine_min_objsize): Same.
25053 (handle_builtin_string_cmp): Same.
25054 (handle_char_store): Same. Break up excessively long line.
25055
25056 2019-06-06 Martin Jambor <mjambor@suse.cz>
25057
25058 * tree-sra.c (build_reconstructed_reference): Drop the alignment
25059 check.
25060
25061 2019-06-06 Martin Jambor <mjambor@suse.cz>
25062
25063 * tree-sra.c (struct access): New field grp_same_access_path.
25064 (dump_access): Dump it.
25065 (build_reconstructed_reference): New function.
25066 (build_ref_for_model): Use it if possible.
25067 (path_comparable_for_same_access): New function.
25068 (same_access_path_p): Likewise.
25069 (sort_and_splice_var_accesses): Set the new flag.
25070 (analyze_access_subtree): Likewise.
25071 (propagate_subaccesses_across_link): Propagate zero value of the new
25072 flag down the access tree.
25073
25074 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
25075
25076 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
25077 * config/gcn/gcn.opt (gpu_type): Add gfx906.
25078 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
25079 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
25080 Add gfx906.
25081
25082 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25083
25084 PR tree-optimization/90332
25085 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
25086 Handle VALS containing two vectors.
25087 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
25088 to...
25089 (@aarch64_combinez<mode>): ... This.
25090 (*aarch64_combinez_be<mode>): Rename to...
25091 (@aarch64_combinez_be<mode>): ... This.
25092 (vec_init<mode><Vhalf>): New define_expand.
25093 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
25094
25095 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25096
25097 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
25098 library functions only when not optimizing for size.
25099 (ashlsi3): Likewise.
25100 (ashrhi3): Likewise.
25101 (ashrsi3): Likewise.
25102 (lshrhi3): Likewise.
25103 (lshrsi3): Likewise.
25104
25105 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
25106
25107 PR rtl-optimization/88751
25108 * ira.c (ira): Use the number of the actually referenced registers
25109 when calculating the threshold.
25110
25111 2019-06-06 Jakub Jelinek <jakub@redhat.com>
25112
25113 * configure: Regenerate.
25114
25115 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25116
25117 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
25118 register if it is in memory, so the shift can be emulated with a rotate
25119 instruction.
25120 (ashrhi3): Likewise.
25121 (lshrhi3): Likewise.
25122
25123 2019-06-06 Martin Liska <mliska@suse.cz>
25124
25125 PR tree-optimization/87954
25126 * match.pd: Simplify mult where both arguments are 0 or 1.
25127
25128 2019-06-06 Richard Biener <rguenther@suse.de>
25129
25130 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
25131 put equivalences on UNDEFINED ranges.
25132 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
25133 Make sure to drop defs of stmts added during simplification
25134 to VARYING.
25135
25136 2019-06-06 Richard Biener <rguenther@suse.de>
25137
25138 * tree-ssa-structalias.c: Include tree-cfg.h.
25139 (make_heapvar): Do not make heap vars artificial.
25140 (find_func_aliases_for_builtin_call): Handle stack allocation
25141 functions.
25142 (find_func_aliases): Delay processing of simple enough returns
25143 in non-IPA mode.
25144 (set_uids_in_ptset): Adjust.
25145 (find_what_var_points_to): Likewise.
25146 (solve_constraints): Do not dump points-to sets here.
25147 (compute_points_to_sets): Post-process return statements,
25148 amending the escaped solution. Dump points-to sets afterwards.
25149 (ipa_pta_execute): Dump points-to sets.
25150
25151 2019-06-06 Martin Liska <mliska@suse.cz>
25152
25153 PR web/87933
25154 * doc/install.texi: Fix HTML headers and
25155 titles for 'Installing GCC' pages.
25156
25157 2019-06-06 Martin Liska <mliska@suse.cz>
25158
25159 * ipa-icf-gimple.h (dump_message_1): Remove.
25160 (dump_message): Likewise.
25161 (return_false_with_message_1): Print also file.
25162 (return_false_with_msg): Likewise.
25163 (return_with_result): Likewise.
25164 (return_with_debug): Likewise.
25165 * ipa-icf.c (sem_function::equals_private): Remove call
25166 to dump_message.
25167
25168 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25169
25170 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
25171 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
25172 memory operand for it.
25173 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
25174
25175 2019-06-05 Martin Sebor <msebor@redhat.com>
25176
25177 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
25178 Adjust quoting and hyphenation.
25179 * convert.c (convert_to_real_1): Same.
25180 * gcc.c (driver_wrong_lang_callback): Same.
25181 (driver::handle_unrecognized_options): Same.
25182 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
25183 * opts-common.c (cmdline_handle_error): Same.
25184 (read_cmdline_option): Same.
25185 * opts-global.c (complain_wrong_lang): Same.
25186 (print_ignored_options): Same.
25187 (handle_common_deferred_options): Same.
25188 * pretty-print.h: Same.
25189 * print-rtl.c (debug_bb_n_slim): Same.
25190 * sched-rgn.c (make_pass_sched_fusion): Same.
25191 * tree-cfg.c (verify_gimple_assign_unary): Same.
25192 (verify_gimple_label): Same.
25193 * tree-ssa-operands.c (verify_ssa_operands): Same.
25194 * varasm.c (do_assemble_alias): Same.
25195 (assemble_alias): Same.
25196
25197 2019-06-05 Richard Henderson <rth@twiddle.net>
25198
25199 * config/alpha/alpha.c (direct_return): Move down after
25200 struct machine_function definition; use saved frame_size;
25201 return bool.
25202 (struct machine_function): Add sa_mask, sa_size, frame_size.
25203 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
25204 (alpha_compute_frame_layout): ... new function.
25205 (TARGET_COMPUTE_FRAME_LAYOUT): New.
25206 (alpha_initial_elimination_offset): Use saved sa_size.
25207 (alpha_vms_initial_elimination_offset): Likewise.
25208 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
25209 (alpha_expand_prologue): Use saved frame data. Merge integer
25210 and fp register save loops.
25211 (alpha_expand_epilogue): Likewise.
25212 (alpha_start_function): Use saved frame data.
25213 * config/alpha/alpha-protos.h (direct_return): Update.
25214 (alpha_sa_size): Remove.
25215
25216 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
25217
25218 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
25219 multiplication by a power-of-two value.
25220 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
25221 and turn the modulo operation into a masking operation.
25222
25223 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25224
25225 PR debug/90733
25226 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
25227 with VOIDmode inner operands.
25228
25229 2019-06-05 Richard Biener <rguenther@suse.de>
25230
25231 PR middle-end/90726
25232 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
25233 turn an expression graph into a tree.
25234
25235 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25236
25237 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
25238 member.
25239 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
25240 treat it like explicit monotonic schedule modifier.
25241 (expand_omp_for): Initialize has_lastprivate_conditional.
25242 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
25243 schedule modifier.
25244
25245 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
25246 references, lookup in in hash map MEM_REF operand instead of the
25247 MEM_REF itself.
25248 (lower_omp_1): When looking for lastprivate conditional assignments,
25249 handle MEM_REFs with REFERENCE_TYPE operands.
25250
25251 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
25252 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
25253 and references a VLA. Handle references to non-VLAs if is_simd
25254 all privatization clauses like reductions.
25255 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
25256 If omp_is_reference, use always omp simd arrays and set
25257 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
25258 fails, emit reference initialization.
25259
25260 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25261
25262 PR target/89803
25263 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
25264 _mm_mask_fpclass_sd_mask): New intrinsics.
25265 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
25266 * config/i386/i386-builtin.def
25267 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
25268 New builtins.
25269 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
25270 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
25271 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
25272 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
25273 case QI_FTYPE_V2SF_INT): Ditto.
25274 * config/i386/sse.md
25275 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
25276 Extended to insnstructions with mask operands.
25277
25278 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25279
25280 * config/rs6000/constraints.md (define_register_constraint "wp"):
25281 Delete.
25282 (define_register_constraint "wq"): Delete.
25283 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25284 (rs6000_init_hard_regno_mode_ok): Adjust.
25285 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25286 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
25287 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
25288 (define_mode_attr VSa): Delete.
25289 (define_mode_attr VSisa): New.
25290 (rest of file): Adjust.
25291 * doc/md.texi (Machine Constraints): Adjust.
25292
25293 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25294
25295 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
25296 (define_attr "enabled"): Handle those new isa values.
25297
25298 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25299
25300 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
25301 (define_mode_attr VSr5): Delete.
25302 (define_mode_attr VStype_sqrt): Delete.
25303 (define_mode_iterator VSX_SPDP): Delete.
25304 (define_mode_attr VS_spdp_res): Delete.
25305 (define_mode_attr VS_spdp_insn): Delete.
25306 (define_mode_attr VS_spdp_type): Delete.
25307 (*vsx_sqrt<mode>2): Adjust.
25308 (vsx_<VS_spdp_insn>): Delete, split to...
25309 (vsx_xscvdpsp): ... this. New. And...
25310 (vsx_xvcvspdp): ... this. New. And...
25311 (vsx_xvcvdpsp): ... this. New.
25312
25313 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25314
25315 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
25316 and V2DF.
25317 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
25318 (rest of file): Adjust.
25319
25320 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25321
25322 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
25323 (vsx_extract_<mode>_var): Ditto.
25324
25325 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25326
25327 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
25328 with just "wa".
25329
25330 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25331
25332 * config/rs6000/constraints.md (define_register_constraint "ww"):
25333 Delete.
25334 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25335 (rs6000_init_hard_regno_mode_ok): Adjust.
25336 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25337 RS6000_CONSTRAINT_ww.
25338 * config/rs6000/rs6000.md: Adjust.
25339 * config/rs6000/vsx.md: Adjust.
25340 * doc/md.texi (Machine Constraints): Adjust.
25341
25342 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25343
25344 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
25345 (define_mode_attr sd): New.
25346 (define_mode_attr s): New.
25347 (define_mode_attr Ftrad): Delete.
25348 (define_mode_attr Fvsx): Delete.
25349 (define_mode_attr Fs): Delete.
25350 (rest of file): Use the new mode attributes.
25351 * config.rs6000/vsx.md: Use the new mode attributes.
25352
25353 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25354
25355 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
25356 with just "wa".
25357
25358 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25359
25360 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
25361 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
25362 used with VSX_B, VSX_D, or VSX_F, with just "wa".
25363
25364 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
25365
25366 PR target/78263
25367 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25368 C++ with strict ANSI requirements.
25369
25370 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
25371
25372 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25373 computations when step is 1.
25374
25375 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25376
25377 * config/rs6000/constraints.md (define_register_constraint "wf"):
25378 Delete.
25379 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25380 (rs6000_init_hard_regno_mode_ok): Adjust.
25381 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25382 RS6000_CONSTRAINT_wf.
25383 * config/rs6000/rs6000.md: Adjust.
25384 * config/rs6000/vsx.md: Adjust.
25385 * doc/md.texi (Machine Constraints): Adjust.
25386
25387 2019-06-04 Andrew Pinski <apinski@marvell.com>
25388
25389 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25390 Fix ILP32 value.
25391
25392 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25393
25394 * config/rs6000/constraints.md (define_register_constraint "wd"):
25395 Delete.
25396 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25397 (rs6000_init_hard_regno_mode_ok): Adjust.
25398 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25399 RS6000_CONSTRAINT_wd.
25400 * config/rs6000/rs6000.md: Adjust.
25401 * config/rs6000/vsx.md: Adjust.
25402 * doc/md.texi (Machine Constraints): Adjust.
25403
25404 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25405
25406 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25407 (rest of file): Adjust.
25408
25409 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25410
25411 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25412 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25413 (vsx_splat_<mode>_reg): Adjust.
25414
25415 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25416
25417 * config/rs6000/constraints.md (define_register_constraint "ws"):
25418 Delete.
25419 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25420 (rs6000_init_hard_regno_mode_ok): Adjust.
25421 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25422 RS6000_CONSTRAINT_ws.
25423 * config/rs6000/rs6000.md: Adjust.
25424 * config/rs6000/vsx.md: Adjust.
25425 * doc/md.texi (Machine Constraints): Adjust.
25426
25427 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25428
25429 * config/rs6000/constraints.md (define_register_constraint "wv"):
25430 Delete.
25431 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25432 (rs6000_init_hard_regno_mode_ok): Adjust.
25433 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25434 RS6000_CONSTRAINT_wv.
25435 * config/rs6000/rs6000.md: Adjust.
25436 * config/rs6000/vsx.md: Adjust.
25437 * doc/md.texi (Machine Constraints): Adjust.
25438
25439 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25440
25441 * config/rs6000/constraints.md (define_register_constraint "wi"):
25442 Delete.
25443 (define_register_constraint "wt"): Delete.
25444 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25445 (rs6000_init_hard_regno_mode_ok): Adjust.
25446 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25447 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25448 * config/rs6000/rs6000.md: Adjust.
25449 * config/rs6000/vsx.md: Adjust.
25450 * doc/md.texi (Machine Constraints): Adjust.
25451
25452 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25453
25454 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25455 const.
25456 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25457 default_elf_asm_output_external.
25458
25459 2019-06-04 Martin Liska <mliska@suse.cz>
25460
25461 * ipa-icf.c (INCLUDE_LIST): Remove.
25462 (sem_item_optimizer::execute): Remove call to init_wpa.
25463 * ipa-icf.h (init_wpa): Remove.
25464
25465 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25466
25467 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25468 conditional on combined for simd.
25469 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25470 member.
25471 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25472 constructs, don't remove lastprivate_conditional_map, but instead set
25473 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25474 to parent construct temporaries.
25475 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25476 like !ctx->lastprivate_conditional_map.
25477 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25478 use up->outer context instead of up.
25479 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25480 gimple_omp_for_combined_p.
25481 (expand_omp_for_static_nochunk): Likewise.
25482 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25483 probably moved over into expand_omp_for_generic rather than being copied
25484 there.
25485
25486 2019-06-04 Martin Liska <mliska@suse.cz>
25487
25488 * value-prof.c (dump_histogram_value): Fix typo.
25489 (gimple_mod_subtract_transform): Likewise.
25490
25491 2019-06-04 Richard Biener <rguenther@suse.de>
25492
25493 PR middle-end/90726
25494 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25495 (tree_contains_chrecs): Likewise.
25496 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25497 exponential behaivor from ...
25498 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25499 ... here.
25500 (expression_expensive_p): Avoid exponential behavior and compute
25501 expanded size, rejecting any expansion.
25502 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25503 (idx_contains_abnormal_ssa_name_p): Likewise.
25504 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25505 (contains_abnormal_ssa_name_p): Simplify and use
25506 walk_tree_without_duplicates.
25507
25508 2019-06-04 Richard Biener <rguenther@suse.de>
25509
25510 PR tree-optimization/90738
25511 Revert
25512 2019-06-03 Richard Biener <rguenther@suse.de>
25513
25514 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25515 full reference tree and record in ref->ref.
25516 (vn_reference_lookup_3): Pass in original ref to
25517 ao_ref_init_from_vn_reference.
25518 (vn_reference_lookup): Likewise.
25519 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25520 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25521 Handle non-decl bases in the original reference.
25522
25523 2019-06-04 Martin Liska <mliska@suse.cz>
25524
25525 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25526 number of references.
25527 (sem_item_optimizer::do_congruence_step):
25528 (sem_item_optimizer::worklist_push): Dump how references
25529 a class has.
25530 (sem_item_optimizer::worklist_pop): Use heap.
25531 (sem_item_optimizer::process_cong_reduction): Likewise.
25532 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25533
25534 2019-06-04 Martin Liska <mliska@suse.cz>
25535
25536 * ipa-icf.h (struct sem_usage_pair_hash): New.
25537 (sem_usage_pair_hash::hash): Likewise.
25538 (sem_usage_pair_hash::equal): Likewise.
25539 (struct sem_usage_hash): Likewise.
25540 * ipa-icf.c (sem_item::sem_item): Initialize
25541 referenced_by_count.
25542 (sem_item::add_reference): Register a reference
25543 in ref_map and not in target->usages.
25544 (sem_item::setup): Remove initialization of
25545 dead vectors.
25546 (sem_item::~sem_item): Remove usage of dead vectors.
25547 (sem_item::dump): Remove dump of references.
25548 (sem_item_optimizer::sem_item_optimizer): Initialize
25549 m_references.
25550 (sem_item_optimizer::read_section): Remove useless
25551 dump.
25552 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25553 (sem_item_optimizer::build_graph): Pass m_references
25554 to ::add_reference.
25555 (sem_item_optimizer::verify_classes): Remove usage of dead
25556 vectors.
25557 (sem_item_optimizer::traverse_congruence_split): Return true
25558 when a class is split.
25559 (sem_item_optimizer::do_congruence_step_for_index): Use
25560 hash_map for look up of (sem_item *, index). That brings
25561 significant speed up.
25562 (sem_item_optimizer::do_congruence_step): Return true
25563 when a split is done.
25564 (congruence_class::is_class_used): Use referenced_by_count.
25565
25566 2019-06-04 Alan Modra <amodra@gmail.com>
25567
25568 PR target/90689
25569 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25570 error.
25571
25572 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25573
25574 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25575 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25576 (rs6000_secondary_reload_simple_move): Adjust.
25577 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25578 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25579 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25580 comment.
25581 (power6x): Adjust.
25582 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25583 (floatunssi<mode>2_lfiwzx): Adjust.
25584 (fix_trunc<mode>si2_stfiwx): Adjust.
25585 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25586 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25587 (mfpgpr): Mark as deprecated.
25588 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25589 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25590 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25591
25592 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25593
25594 * config/rs6000/constraints.md (define_register_constraint "wg"):
25595 Delete.
25596 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25597 RS6000_CONSTRAINT_wg.
25598 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25599 (rs6000_init_hard_regno_mode_ok): Adjust.
25600 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25601 Delete "wg" alternatives.
25602 * doc/md.texi (Machine Constraints): Adjust.
25603
25604 2019-06-03 Alan Modra <amodra@gmail.com>
25605
25606 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25607 (get_uncond_jump_length): Assert length less than INT_MAX and
25608 non-negative.
25609
25610 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25611
25612 PR middle-end/64242
25613 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25614 block.
25615 (expand_builtin_nonlocal_goto): Likewise.
25616
25617 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25618
25619 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25620 (aarch64_asm_output_external): Declare.
25621 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25622 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25623 (aarch64_asm_output_alias): New.
25624 (aarch64_asm_output_external): New.
25625 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25626 (ASM_OUTPUT_EXTERNAL): Define.
25627
25628 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25629 * tree-vrp.h (value_range_base::nonzero_p): New.
25630 (value_range_base::set_nonnull): Rename to...
25631 (value_range_base::set_nonzero): ...this.
25632 (value_range_base::set_null): Rename to...
25633 (value_range_base::set_zero): ...this.
25634 (value_range::set_nonnull): Remove.
25635 (value_range::set_null): Remove.
25636 * tree-vrp.c (range_is_null): Remove.
25637 (range_is_nonnull): Remove.
25638 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25639 instead of range_is_*null.
25640 (extract_range_from_unary_expr): Same.
25641 (value_range_base::set_nonnull): Rename to...
25642 (value_range_base::set_nonzero): ...this.
25643 (value_range::set_nonnull): Remove.
25644 (value_range_base::set_null): Rename to...
25645 (value_range_base::set_zero): ...this.
25646 (value_range::set_null): Remove.
25647 (extract_range_from_binary_expr): Rename set_*null uses to
25648 set_*zero.
25649 (extract_range_from_unary_expr): Same.
25650 (union_helper): Same.
25651 * vr-values.c (get_value_range): Use set_*zero instead of
25652 set_*null.
25653 (vr_values::extract_range_from_binary_expr): Same.
25654 (vr_values::extract_range_basic): Same.
25655
25656 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25657
25658 PR driver/90684
25659 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25660
25661 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25662
25663 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25664 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25665 Rename to...
25666 (aarch64_<su>abd<mode>_3): ... This.
25667 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25668
25669 2019-06-03 Richard Biener <rguenther@suse.de>
25670
25671 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25672 full reference tree and record in ref->ref.
25673 (vn_reference_lookup_3): Pass in original ref to
25674 ao_ref_init_from_vn_reference.
25675 (vn_reference_lookup): Likewise.
25676 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25677 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25678 Handle non-decl bases in the original reference.
25679
25680 2019-06-03 Martin Liska <mliska@suse.cz>
25681
25682 * doc/generic.texi: Remove Java Trees.
25683
25684 2019-06-03 Martin Liska <mliska@suse.cz>
25685
25686 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25687 returns 0 when operands are equal.
25688
25689 2019-06-03 Richard Biener <rguenther@suse.de>
25690
25691 PR tree-optimization/90716
25692 * tree-loop-distribution.c (destroy_loop): Process blocks in
25693 correct order.
25694
25695 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25696
25697 PR target/88837
25698 * vector-builder.h (vector_builder::count_dups): New method.
25699 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25700 Declare prototype.
25701 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25702 (vec_init<mode><Vel>): New pattern.
25703 * config/aarch64/aarch64.c (emit_insr): New function.
25704 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25705 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25706 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25707 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25708
25709 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25710
25711 PR tree-optimization/90681
25712 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25713 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25714 special case for SLP, but fail on non-groupped loads.
25715
25716 2019-06-03 Martin Liska <mliska@suse.cz>
25717
25718 * cfg.c (debug): Use TDF_DETAILS for debug and
25719 print edge info only once.
25720
25721 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25722
25723 PR fortran/90539
25724 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25725
25726 2019-06-01 Martin Sebor <msebor@redhat.com>
25727
25728 PR middle-end/90694
25729 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25730
25731 2019-05-31 Jan Hubicka <jh@suse.cz>
25732
25733 * alias.c: Include ipa-utils.h.
25734 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25735 * ipa-devirt.c (prevailing_odr_type): New.
25736 * ipa-utils.h (previaling_odr_type): Declare.
25737
25738 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25739 Hongtao Liu <hongtao.liu@intel.com>
25740
25741 PR target/89355
25742 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25743 NOTE_INSN_DELETED_LABEL check.
25744
25745 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25746 Robert Suchanek <robert.suchanek@mips.com>
25747
25748 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25749 and 3rd operands of the fmadd/fmsub/maddv builtin.
25750
25751 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25752
25753 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25754 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25755 on OMP_SIMD if not nested inside of worksharing loop that also has
25756 lastprivate conditional clause for the same decl.
25757 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25758 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25759 on simd.
25760 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25761 on simd construct.
25762 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25763 on simd construct.
25764 (lower_lastprivate_clauses): Likewise.
25765 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25766 calling lower_rec_input_clauses.
25767 (lower_omp_for): Likewise.
25768 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25769 clause on simd construct.
25770 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25771 OMP_CLAUSE__CONDTEMP_ clause is present.
25772
25773 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25774 ivar and lvar.
25775
25776 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25777
25778 PR c/43673
25779 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25780 TEX_D32, TEX_D64 or TEX_D128.
25781
25782 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25783
25784 * match.pd (~(vec?cst1:cst2)): New transformation.
25785
25786 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25787
25788 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25789 ((size_t)(A /[ex] B) CMP C): New transformation.
25790
25791 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25792
25793 * doc/md.texi: Document define_insn_and_rewrite.
25794 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25795 * gensupport.c (queue_elem): Update comment.
25796 (replace_operands_with_dups): New function.
25797 (gen_rewrite_sequence): Likewise.
25798 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25799 * read-rtl.c (apply_subst_iterator): Likewise.
25800 (add_condition_to_rtx, named_rtx_p): Likewise.
25801 (rtx_reader::read_rtx_operand): Likewise.
25802 * config/aarch64/aarch64-sve.md
25803 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25804 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25805 define_insn_and_rewrite.
25806 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25807 Remove separate define_split.
25808
25809 2019-05-31 Jan Hubicka <jh@suse.cz>
25810
25811 * tree-ssa-alias.c (type_has_components_p): New function.
25812 (aliasing_component_refs_p): Use it.
25813
25814 2019-05-31 Martin Liska <mliska@suse.cz>
25815
25816 * gdbhooks.py: Add const_tree to TreePrinter.
25817
25818 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25819
25820 PR debug/86964
25821 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25822 * doc/invoke.texi (Debugging Options): Document new default of
25823 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25824
25825 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25826
25827 PR tree-optimization/90671
25828 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25829 template_block used to be empty on the first call, don't use
25830 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25831 seq with bb_seq and set it with set_bb_seq.
25832
25833 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25834
25835 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25836
25837 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25838 Michael Meissner <meissner@linux.ibm.com>
25839
25840 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25841 (prefixed_mem_operand): Likewise.
25842 (non_prefixed_mem_operand): Likewise.
25843 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25844 prototype.
25845 * config/rs6000/rs6000.c (print_operand_address): Handle
25846 PC-relative addresses.
25847 (mode_supports_prefixed_address_p): New function.
25848 (rs6000_prefixed_address): New function.
25849 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25850 (SYMBOL_REF_PCREL_P): Likewise.
25851
25852 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25853
25854 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25855 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25856 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25857 is nested inside of parallel region, add _condtemp_ clause to both.
25858 * tree-nested.c (convert_nonlocal_omp_clauses,
25859 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25860 assertion failure.
25861 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25862 member.
25863 * omp-general.c (omp_extract_for_data): Compute it.
25864 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25865 (lower_rec_input_clauses): Likewise.
25866 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25867 clause is already present, just add one further one after it.
25868 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25869 (lower_send_shared_vars): Clear _condtemp_ vars.
25870 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25871 or section or taskgroup.
25872 * omp-expand.c (determine_parallel_type): Disallow combining only if
25873 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25874 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25875 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25876 expand_omp_for_static_chunk, expand_omp_for): Use
25877 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25878 determine if a special set of API routines are needed and if condtemp
25879 needs to be initialized, while always initialize cond_var if
25880 fd->lastprivate_conditional is non-zero.
25881
25882 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25883 Michael Meissner <meissner@linux.ibm.com>
25884
25885 * config/rs6000/constraints.md (eI): New constraint.
25886 * config/rs6000/predicates.md (cint34_operand): New predicate.
25887 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25888 (SIGNED_34BIT_OFFSET_P): Likewise.
25889 * doc/md.texi (eI): Document constraint.
25890
25891 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25892
25893 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25894
25895 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25896 Michael Meissner <meissner@linux.ibm.com>
25897
25898 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25899 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25900 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25901 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25902 (OTHER_FUTURE_MASKS): Likewise.
25903 (POWERPC_MASKS): Likewise.
25904 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25905 specified without -mprefixed-addr or -mcpu=future. Error if
25906 -mprefixed-addr is specified without -mcpu=future.
25907 (rs6000_opt_masks): Add entry for prefixed-addr.
25908 * rs6000.opt (mprefixed-addr): New option.
25909
25910 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25911
25912 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25913 cfun->is_thunk check.
25914
25915 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25916
25917 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25918 to length.
25919
25920 2019-05-30 Martin Liska <mliska@suse.cz>
25921
25922 * gdbinit.in: Fix 'ptc' command. Add trt
25923 that prints TREE_TYPE($).
25924
25925 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25926 Alan Modra <amodra@gmail.com>
25927
25928 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25929 calls here...
25930 (rs6000_indirect_call_template_1): ...and here.
25931 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25932 plt16_ha, plt16_lo, mtctr indirect calls. Use
25933 rs6000_pltseq_enum.
25934 (rs6000_decl_ok_for_sibcall): New function.
25935 (rs6000_function_ok_for_sibcall): Refactor.
25936 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25937 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25938 when pcrel. Reorganize.
25939 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25940 * rs6000.h (rs6000_pltseq_enum): New enum.
25941 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25942 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25943 (*pltseq_plt16_ha): Likewise.
25944 (*pltseq_plt16_lo): Likewise.
25945 (*pltseq_mtctr): Likewise.
25946 (*pltseq_plt_pcrel): New insn.
25947 (*call_local_aix): Handle @notoc calls.
25948 (*call_value_local_aix): Likewise.
25949 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25950 (*call_value_nonlocal_aix): Likewise.
25951 (*call_indirect_pcrel): New insn.
25952 (*call_value_indirect_pcrel): Likewise.
25953
25954 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25955
25956 * config/i386/sse.md (*save_multiple<mode>): Rename from
25957 save_multiple<mode>.
25958 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25959 (*restore_multiple_and_return<mode>): Rename from
25960 restore_multiple_and_return<mode>.
25961 (*restore_multiple_leave_return<mode>): Rename from
25962 restore_multiple_leave_return<mode>.
25963
25964 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25965
25966 * config.gcc (rx-*-linux*): New target.
25967 * config/rx/elf.opt: New file.
25968 * config/rx/linux.h: Likewise.
25969 * config/rx/t-linux: Likewise.
25970 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25971 make it zero.
25972 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25973 (ASM_APP_OFF): Likewise.
25974 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25975 moved elsewhere.
25976
25977 2019-05-29 Jan Hubicka <jh@suse.cz>
25978
25979 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25980 variants are pointer equivalent.
25981
25982 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25983
25984 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25985 * config/aarch64/aarch64-sve2.md: New file.
25986 (<u>avg<mode>3_floor): New pattern.
25987 (<u>avg<mode>3_ceil): Likewise.
25988 (*<sur>h<addsub><mode>): Likewise.
25989 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25990 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25991
25992 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25993
25994 PR bootstrap/90543
25995 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25996 for var_opt_string printing. In cl_optimization_print_diff, print
25997 (null) instead of invoking undefined behavior if one of the
25998 var_opt_string pointers is NULL and use && instead of first || in the
25999 guarding condition. For var_target_other options, handle const char *
26000 target variables similarly to const char * optimize node variables.
26001
26002 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
26003
26004 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
26005 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
26006 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
26007 Add autib1716 and pacib1716 initialisation.
26008 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
26009 for autib1716 and pacib1716.
26010 * config/aarch64/aarch64-protos.h (aarch64_key_type,
26011 aarch64_post_cfi_startproc): Define.
26012 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
26013 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
26014 aarch64_handle_pac_ret_protection): Set default sign key to A.
26015 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
26016 aarch64_expand_prologue): Add check for b-key.
26017 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
26018 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
26019 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
26020 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
26021 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
26022 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
26023 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26024 * config/aarch64/aarch64.md (do_return): Add check for b-key.
26025 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
26026 pauth_hint_num_a with pauth_hint_num.
26027 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
26028 pauth_hint_num_a with pauth_hint_num.
26029 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
26030 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
26031 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26032 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
26033 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
26034 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
26035 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
26036 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26037 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
26038 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
26039 UNSPEC_AUTIA1716 respectively.
26040 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
26041 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
26042 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
26043 * doc/invoke.texi (-mbranch-protection): Add b-key type.
26044 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
26045 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
26046
26047 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26048
26049 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
26050 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
26051 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
26052 explicit clause on combined parallel into implicit shared clause.
26053 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
26054 and firstprivate if the decl has one too from combined parallel to
26055 the worksharing construct.
26056
26057 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
26058 Michael Meissner <meissner@linux.ibm.com>
26059
26060 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
26061
26062 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
26063
26064 * rtl.h (LABEL_REF_P): New #define.
26065
26066 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
26067
26068 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
26069
26070 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26071
26072 * internal-fn.c: Marked mask_load_direct as vectorizable.
26073 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
26074 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
26075 combined even if masks different with allow_slp_p param.
26076 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
26077 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
26078 dissolve SLP-only vectorizable groups when SLP has been discarded.
26079 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
26080 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
26081 masks.
26082 (vect_build_slp_tree_1): Fixed comment typo.
26083 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
26084 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
26085 loads for SLP only.
26086 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
26087 vectorizable.
26088 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
26089
26090 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26091
26092 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
26093 Remove obsolete use_thunk reference.
26094 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26095 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26096 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26097 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26098 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26099 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26100 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26101 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26102 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26103
26104 2019-05-28 Nathan Sidwell <nathan@acm.org>
26105
26106 * tree.h (IDENTIFIER_ANON_P): New.
26107 (anon_aggrname_format, anon_aggname_p): Don't declare.
26108 (make_anon_name): Declare.
26109 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
26110 (hash_tree): Likewise.
26111 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
26112 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
26113 (anon_cnt, make_anon_name): New.
26114
26115 2019-05-28 Martin Liska <mliska@suse.cz>
26116
26117 PR other/90315
26118 * opts-global.c (decode_options): Print help for all
26119 help_option_arguments.
26120 * opts.c (print_help): Add new argument.
26121 (common_handle_option): Remember all values into
26122 help_option_arguments.
26123 * opts.h (print_help): Add new argument.
26124
26125 2019-05-28 Martin Liska <mliska@suse.cz>
26126
26127 PR ipa/90555
26128 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
26129 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
26130 (func_checker::compare_bb): Call compare_loops.
26131
26132 2019-05-27 Jakub Jelinek <jakub@redhat.com>
26133
26134 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26135 on sections construct.
26136 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
26137 construct.
26138 (lower_omp_sections): Handle lastprivate conditional.
26139 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
26140 lastprivate_conditional_map.
26141 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
26142
26143 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
26144 critical, taskgroup and section regions when looking for a region
26145 with non-NULL lastprivate_conditional_map.
26146
26147 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26148
26149 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
26150 (*ix86_gen_sub3): Ditto.
26151 (*ix86_gen_sub3_carry): Ditto.
26152 (*ix86_gen_one_cmpl2): Ditto.
26153 (*ix86_gen_andsp): Ditto.
26154 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
26155 (gen_and2_insn): New static function.
26156 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
26157 Use gen_add3_insn instead of ix86_gen_add3.
26158 (ix86_expand_split_stack_prologue): Use gen_add2_insn
26159 instead of ix86_gen_add3.
26160 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
26161 Use gen_sub3_insn instead of ix86_gen_sub3.
26162 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
26163 instead of ix86_gen_add3.
26164 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
26165 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
26166 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
26167 * config/i386/i386-options.c (ix86_option_override_internal):
26168 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
26169 ix86_gen_one_cmpl2 and ix86_gen_andsp.
26170
26171 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
26172
26173 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
26174 and DW_OP_GNU_const_index opcodes.
26175
26176 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26177
26178 * config/i386/i386.h (STACK_SIZE_MODE): Define.
26179
26180 2019-05-27 Richard Biener <rguenther@suse.de>
26181
26182 PR tree-optimization/90637
26183 * tree-ssa-sink.c (statement_sink_location): Honor the
26184 computed sink location for single-uses.
26185
26186 2019-05-27 Richard Biener <rguenther@suse.de>
26187
26188 PR middle-end/90610
26189 * match.pd (vec_perm): Avoid clobbering op0 when not generating
26190 a bit-insert.
26191
26192 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26193
26194 * config/i386/i386.md (@sub<mode>3_carry): Rename
26195 from sub<mode>3_carry.
26196 (@leave_<mode>): New expander.
26197 (*leave): Rename from leave.
26198 (*leave_rex64): Rename from leave_rex64.
26199 (@monitorx_<mode>): Rename from monitorx_<mode>.
26200 (@clzero_<mode>): Rename from clzero_<mode>.
26201 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
26202 from sse3_monitor_<mode>.
26203 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
26204 (*ix86_gen_leave): Ditto.
26205 (*ix86_gen_monitor): Ditto.
26206 (*ix86_gen_monitorx): Ditto.
26207 (*ix86_gen_clzero): Ditto.
26208 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
26209 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
26210 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
26211 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
26212 Use gen_sse3_monitor instead of ix86_gen_monitor.
26213 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
26214 instead of ix86_gen_monitorx.
26215 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
26216 instead of ix86_gen_clzero.
26217 * config/i386/i386-options.c (ix86_option_override_internal):
26218 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
26219 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
26220
26221 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26222
26223 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
26224 Rename from tls_global_dynamic_64_<mode>.
26225 (@tls_local_dynamic_base_64_<mode>): Rename from
26226 tls_local_dynamic_base_64_<mode>.
26227 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
26228 Remove indirect function.
26229 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
26230 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
26231 instead of ix86_gen_tls_global_dynamic_64.
26232 Use gen_tls_local_dynamic_base_64 instead of
26233 ix86_gen_tls_local_dynamic_base_64.
26234 * config/i386/i386-options.c (ix86_option_override_internal):
26235 Do not initialize ix86_gen_tls_global_dynamic_64 and
26236 ix86_gen_tls_local_dynamic_base_64.
26237
26238 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26239
26240 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
26241 Rename from pro_epilogue_adjust_stack_<mode>_add.
26242 (@pro_epilogue_adjust_stack_sub_<mode>)
26243 Rename from pro_epilogue_adjust_stack_<mode>_sub.
26244 (@allocate_stack_worker_probe_<mode>):
26245 Rename from allocate_stack_worker_probe_<mode>.
26246 (allocate_stack): Use gen_allocate_stack_worker_probe.
26247 (probe_stack): Use gen_probe_stack_1.
26248 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
26249 (@adjust_stack_and_probe_<mode>): Rename from
26250 adjust_stack_and_probe<mode>.
26251 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
26252 (stack_protect_set): Use gen_stack_protect_set_1.
26253 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
26254 (stack_protect_test): Use gen_stack_protect_test_1.
26255 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
26256 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
26257 Remove indirect function.
26258 (*ix86_gen_adjust_stack_and_probe): Ditto.
26259 (*ix86_gen_probe_stack_range): Ditto.
26260 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
26261 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
26262 (ix86_adjust_stack_and_probe_stack_clash): Use
26263 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
26264 (ix86_adjust_stack_and_probe): Ditto.
26265 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
26266 of ix86_gen_probe_stack_range.
26267 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
26268 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
26269 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
26270 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
26271 CODE_FOR_stack_protect_test_{si,di}.
26272 * config/i386/i386-options.c (ix86_option_override_internal):
26273 Do not initialize ix86_gen_allocate_stack_worker,
26274 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
26275
26276 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
26277
26278 * doc/invoke.texi (Link Options): Many editorial changes around
26279 -flinker-output.
26280
26281 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26282
26283 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
26284 pre-Solaris 11 referene and most Studio compiler details.
26285
26286 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
26287
26288 PR target/90530
26289 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
26290 DImode to SImode in floating-point registers on 64-bit target.
26291 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
26292 register_operand in xmpyu patterns.
26293
26294 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26295
26296 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
26297 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
26298 OMP_CLAUSE__REDUCTEMP_.
26299 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
26300 OMP_CLAUSE__CONDTEMP_.
26301 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
26302 * tree-pretty-print.c (dump_omp_clause): Likewise.
26303 * tree-nested.c (convert_nonlocal_omp_clauses,
26304 convert_local_omp_clauses): Likewise.
26305 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
26306 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
26307 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
26308 on OMP_FOR.
26309 (gimplify_omp_for): Warn and disable conditional modifier from
26310 lastprivate on loop iterators.
26311 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
26312 member.
26313 * omp-general.c (omp_extract_for_data): Initialize it.
26314 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
26315 member.
26316 (delete_omp_context): Delete it.
26317 (lower_lastprivate_conditional_clauses): New function.
26318 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
26319 handle lastprivate conditional clauses.
26320 (lower_reduction_clauses): Add CLIST argument, emit it into
26321 the critical section if any.
26322 (lower_omp_sections): Adjust lower_lastprivate_clauses and
26323 lower_reduction_clauses callers.
26324 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
26325 to lower_lastprivate_clauses.
26326 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
26327 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
26328 clist into a critical section if not emitted there already by
26329 lower_reduction_clauses.
26330 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
26331 callers.
26332 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
26333 conditional variables.
26334 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
26335 clause is present.
26336 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26337 expand_omp_for_static_chunk): Handle lastprivate conditional.
26338 (expand_omp_for): Handle fd.lastprivate_conditional like
26339 fd.have_reductemp.
26340
26341 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26342
26343 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
26344 kernel does not exit cleanly.
26345 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
26346
26347 2019-05-24 Jason Merrill <jason@redhat.com>
26348
26349 Revert:
26350 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26351
26352 2019-05-24 Richard Biener <rguenther@suse.de>
26353
26354 PR testsuite/90607
26355 * tree-loop-distribution.c (struct partition): Add location
26356 member.
26357 (partition_alloc): Initialize all fields.
26358 (generate_memset_builtin): Use the location recorded in the
26359 partition for the generated call.
26360 (generate_memcpy_builtin): Likewise.
26361 (classify_partition): Record the location of a single store
26362 as location for the partition.
26363
26364 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26365
26366 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26367 for lo-part.
26368
26369 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
26370
26371 PR target/90588
26372 * common/config/aarch64/aarch64-common.c
26373 (aarch64_rewrite_selected_cpu): Change local temporary variable
26374 type from unsigned long to uint64_t.
26375 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26376 aarch64_get_extension_string_for_isa_flags): Change declaration to
26377 match new definition by replacing unsigned long with uint64_t.
26378
26379 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26380
26381 PR target/90568
26382 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26383 gen_attr_type just once instead of 4-7 times. Formatting fixes.
26384 Handle stack_protect_test_<mode> codegen similarly to corresponding
26385 sub instruction.
26386
26387 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
26388
26389 * config/i386/darwin.h: Reject -mfentry*.
26390 * doc/sourcebuild.texi: Document mfentry target support.
26391
26392 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26393
26394 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26395 Rename to rs6000_global_entry_point_prologue_needed_p. Return
26396 false for PC-relative functions.
26397 (rs6000_output_function_prologue): Change called function name to
26398 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
26399 name,1" for PC-relative functions.
26400 (rs6000_elf_declare_function_name): Change called function name to
26401 rs6000_global_entry_point_prologue_needed_p.
26402
26403 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
26404
26405 PR target/90552
26406 * config/i386/i386.c (gen_rtx_cost):
26407 Use ix86_tune_cost instead of ix86_cost.
26408
26409 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26410 Michael Meissner <meissner@linux.ibm.com>
26411 Segher Boessenkool <segher@kernel.crashing.org>
26412
26413 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26414 OPTION_MASK_PCREL.
26415 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26416 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26417 (rs6000_fndecl_pcrel_p): Likewise.
26418 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26419 error if -mpcrel is requested without -mcpu=future.
26420 (rs6000_opt_masks): Add entry for pcrel.
26421 (rs6000_fndecl_pcrel_p): New function.
26422 (rs6000_pcrel_p): Likewise.
26423 * config/rs6000/rs6000.opt (mpcrel): New option.
26424 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26425
26426 2019-05-23 Jan Hubicka <jh@suse.cz>
26427 Martin Liska <mliska@suse.cz>
26428
26429 PR tree-optimization/90576
26430 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26431 poly_int_tree_p.
26432 (aliasing_component_refs_p): Fix three way size compare conditional;
26433 give up earlier in case we can not decide on equivalence.
26434
26435 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26436 Michael Meissner <meissner@linux.ibm.com>
26437 Segher Boessenkool <segher@kernel.crashing.org>
26438
26439 * config.gcc: Add future cpu.
26440 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26441 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26442 #define.
26443 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26444 (RS6000_CPU): New instantiation for future cpu.
26445 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26446 PROCESSOR_FUTURE.
26447 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26448 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26449 * config/rs6000/rs6000-tables.opt: Regenerate.
26450 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26451 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26452 (rs6000_machine_from_flags): Handle future cpu.
26453 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26454 PROCESSOR_POWER9 for now.
26455 (rs6000_adjust_cost): Likewise.
26456 (rs6000_issue_rate): Likewise.
26457 (rs6000_register_move_cost): Likewise.
26458 (rs6000_opt_masks): Add entry for future.
26459 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26460 (MASK_FUTURE): New #define.
26461 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26462 * config/rs6000/rs6000.opt (mfuture): New target option.
26463 * doc/invoke.texi (mcpu): Add future cpu.
26464
26465 2019-05-23 Martin Liska <mliska@suse.cz>
26466
26467 PR c++/90587
26468 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26469 operation points to a temporary (pointed via tree_to_wide_ref)
26470 that is out of scope after the &.
26471
26472 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26473
26474 PR c++/90592
26475 * doc/extend.texi (Function Names): Add missing word.
26476
26477 2019-05-23 Richard Biener <rguenther@suse.de>
26478
26479 PR tree-optimization/88440
26480 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26481 at -O[2s]+.
26482 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26483 generated call.
26484 (generate_memcpy_builtin): Likewise.
26485 (distribute_loop): Pass in whether to only distribute patterns.
26486 (prepare_perfect_loop_nest): Also allow size optimization.
26487 (pass_loop_distribution::execute): When optimizing a loop
26488 nest for size allow pattern replacement.
26489
26490 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26491
26492 PR target/90568
26493 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26494 of xor.
26495
26496 2019-05-23 Martin Liska <mliska@suse.cz>
26497
26498 PR sanitizer/90570
26499 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26500 expression similarly to gimplify_decl_expr.
26501
26502 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26503
26504 * cse.c (cse_dump_path): s/dump_file/f.
26505
26506 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26507
26508 PR c++/90462
26509 * diagnostic-format-json.cc: Include "selftest.h".
26510 (json_from_expanded_location): Only add "file" key for non-NULL
26511 file strings.
26512 (json_from_location_range): Don't add "start" and "finish"
26513 children if they are UNKNOWN_LOCATION.
26514 (selftest::test_unknown_location): New selftest.
26515 (selftest::test_bad_endpoints): New selftest.
26516 (selftest::diagnostic_format_json_cc_tests): New function.
26517 * json.cc (json::object::get): New function.
26518 (selftest::test_object_get): New selftest.
26519 (selftest::json_cc_tests): Call it.
26520 * json.h (json::object::get): New decl.
26521 * selftest-run-tests.c (selftest::run_tests): Call
26522 selftest::diagnostic_format_json_cc_tests.
26523 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26524 decl.
26525
26526 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26527 Andrew Stubbs <amd@codesourcery.com>
26528
26529 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26530 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26531 (kernel): Rename to...
26532 (main_kernel): ... this.
26533 (load_image): Load _init_array and _fini_array kernels.
26534 (run): Add argument for kernel to run.
26535 (main): Run init_array_kernel before main_kernel, and
26536 fini_array_kernel after.
26537 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26538 amdgpu_hsa_kernel attribute on functions.
26539 (gcn_disable_constructors): Delete.
26540 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26541 * config/gcn/crt0.c (size_t): Define.
26542 (_init_array, _fini_array): New.
26543 (__preinit_array_start, __preinit_array_end,
26544 __init_array_start, __init_array_end,
26545 __fini_array_start, __fini_array_end): Declare weak references.
26546
26547 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26548
26549 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26550
26551 2019-05-22 Jason Merrill <jason@redhat.com>
26552
26553 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26554
26555 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26556
26557 PR target/88483
26558 * config/i386/i386-options.c (ix86_init_machine_status): Set
26559 stack_frame_required to true.
26560 * config/i386/i386.c (ix86_get_frame_size): New function.
26561 (ix86_frame_pointer_required): Replace get_frame_size with
26562 ix86_get_frame_size.
26563 (ix86_compute_frame_layout): Likewise.
26564 (ix86_find_max_used_stack_alignment): Changed to void. Set
26565 stack_frame_required.
26566 (ix86_finalize_stack_frame_flags): Always call
26567 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26568 ix86_get_frame_size.
26569 * config/i386/i386.h (machine_function): Add stack_frame_required.
26570
26571 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26572
26573 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26574
26575 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26576
26577 * common/config/aarch64/aarch64-common.c
26578 (struct aarch64_option_extension, struct processor_name_to_arch,
26579 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26580 aarch64_contains_opt,
26581 aarch64_get_extension_string_for_isa_flags): Change type of
26582 variables storing flags to uint64_t.
26583 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26584 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26585 * config/aarch64/aarch64.c (struct processor,
26586 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26587 aarch64_validate_march, aarch64_override_options,
26588 aarch64_option_print, aarch64_handle_attr_isa_flags,
26589 aarch64_declare_function_name, aarch64_start_file): Make flag
26590 variables uint64_t.
26591 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26592 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26593 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26594 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26595 * config/aarch64/driver-aarch64.c
26596 (struct aarch64_arch_extension, struct aarch64_core_data,
26597 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26598 flag variables uint64_t.
26599 * doc/invoke.texi: Add documentation for new arguments.
26600
26601 2019-05-22 Richard Biener <rguenther@suse.de>
26602
26603 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26604 rewrite ...
26605 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26606
26607 2019-05-22 Martin Liska <mliska@suse.cz>
26608
26609 PR lto/90500
26610 * doc/extend.texi: Document the change.
26611
26612 2019-05-22 Richard Biener <rguenther@suse.de>
26613
26614 PR tree-optimization/90450
26615 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26616 (mem_ref_hasher::equal): Check it.
26617 (mem_ref_alloc): Initialize it.
26618 (gather_mem_refs_stmt): Set it.
26619
26620 2019-05-22 Richard Biener <rguenther@suse.de>
26621
26622 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26623 Add ABS_EXPR.
26624 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26625 as ABSU_EXPR.
26626
26627 2019-05-22 Alan Modra <amodra@gmail.com>
26628
26629 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26630 (ASM_CPU_SPEC): Conditionally add -many.
26631 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26632 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26633 (rs6000_file_start): ..extracted from here, and modified to
26634 test all ISA bits.
26635 (rs6000_output_function_prologue): Emit .machine as necessary.
26636
26637 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26638
26639 PR middle-end/90553
26640 * ira-lives.c (process_bb_node_lives): Consider defs
26641 for a call insn to be die before the call, not after.
26642
26643 * function.c (assign_parm_setup_block): Raise alignment of
26644 stacked parameter only for STRICT_ALIGNMENT targets.
26645
26646 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26647
26648 * config/rs6000/constraints.md (define_register_constraint "wz"):
26649 Delete.
26650 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26651 RS6000_CONSTRAINT_wz.
26652 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26653 (rs6000_init_hard_regno_mode_ok): Adjust.
26654 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26655 * doc/md.texi (Machine Constraints): Adjust.
26656
26657 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26658
26659 * config/rs6000/constraints.md (define_register_constraint "wl"):
26660 Delete.
26661 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26662 RS6000_CONSTRAINT_wl.
26663 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26664 (rs6000_init_hard_regno_mode_ok): Adjust.
26665 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26666 * doc/md.texi (Machine Constraints): Adjust.
26667
26668 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26669
26670 * config/rs6000/constraints.md (define_register_constraint "wm"):
26671 Delete.
26672 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26673 RS6000_CONSTRAINT_wm.
26674 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26675 (rs6000_init_hard_regno_mode_ok): Adjust.
26676 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26677 * doc/md.texi (Machine Constraints): Adjust.
26678
26679 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26680
26681 * config/rs6000/constraints.md (define_register_constraint "wk"):
26682 Delete.
26683 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26684 RS6000_CONSTRAINT_wk.
26685 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26686 (rs6000_init_hard_regno_mode_ok): Adjust.
26687 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26688 * doc/md.texi (Machine Constraints): Adjust.
26689
26690 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26691
26692 * config/rs6000/constraints.md (define_register_constraint "wj"):
26693 Delete.
26694 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26695 RS6000_CONSTRAINT_wj.
26696 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26697 (rs6000_init_hard_regno_mode_ok): Adjust.
26698 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26699 (VS_64dm): Delete.
26700 * config/rs6000/vsx.md: Ditto.
26701 * doc/md.texi (Machine Constraints): Adjust.
26702
26703 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26704
26705 * config/rs6000/constraints.md (define_register_constraint "wh"):
26706 Delete.
26707 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26708 RS6000_CONSTRAINT_wh.
26709 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26710 (rs6000_init_hard_regno_mode_ok): Adjust.
26711 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26712 * doc/md.texi (Machine Constraints): Adjust.
26713
26714 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26715
26716 PR target/90547
26717 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26718 Avoid calling gen_lowpart with CONST operand.
26719
26720 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26721
26722 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26723 field template_last_to_copy.
26724 (ssa_create_duplicates): Set it, and use it. Attempt to
26725 preserve more debug stmts.
26726
26727 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26728
26729 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26730 (signbit<mode>2): New expander
26731
26732 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26733
26734 PR bootstrap/87338
26735 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26736 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26737
26738 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26739
26740 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26741 %ebx and %ecx bafore calling cpuid with leaf 1 or
26742 non-constant leaf argument.
26743
26744 2019-05-21 Alan Modra <amodra@gmail.com>
26745
26746 PR target/90545
26747 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26748 power9 direct move cost.
26749
26750 2019-05-21 Richard Biener <rguenther@suse.de>
26751
26752 PR middle-end/90510
26753 * fold-const.c (fold_read_from_vector): New function.
26754 * fold-const.h (fold_read_from_vector): Declare.
26755 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26756 single-element insert permutations. Canonicalize selector
26757 further and fix issue with last commit.
26758
26759 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26760
26761 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26762 parameter with default value false to declaration.
26763 (split_edges_for_insertion): New inline function. Wrapper for
26764 split_critical_edges with for_edge_insertion_p = true.
26765 * tree-cfg.c (split_critical_edges): Don't split non-critical
26766 edges if for_edge_insertion_p is false. Fix whitespace.
26767 * tree-ssa-pre.c (pass_pre::execute): Call
26768 split_edges_for_insertion instead of split_critical_edges.
26769 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26770 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26771 (pass_data_sink_code): Update function name in the comment.
26772
26773 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26774
26775 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26776 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26777 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26778 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26779 positives.
26780
26781 2019-05-21 Martin Liska <mliska@suse.cz>
26782
26783 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26784 an extra newline.
26785 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26786 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26787 vec_lvsr.
26788 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26789 Quote a C type.
26790 (rs6000_function_arg): Likewise.
26791 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26792 (rs6000_expand_ternop_builtin): Use interval syntax.
26793 (get_element_number): Likewise.
26794 (altivec_expand_builtin): Likewise.
26795 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26796
26797 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26798
26799 PR c++/59813
26800 PR target/90418
26801 * function.h (struct function): Add calls_eh_return member.
26802 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26803 gimplifying __builtin_eh_return call.
26804 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26805 to cfun.
26806 (expand_call_inline): Or in src_cfun->calls_eh_return into
26807 dst_cfun->calls_eh_return.
26808 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26809 cfun->calls_eh_return.
26810 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26811 * lto-streamer-out.c (output_struct_function_base): Write
26812 calls_eh_return.
26813
26814 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26815
26816 PR rtl-optimization/43147
26817 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26818 IX86_BUILTIN_SHUFPD.
26819
26820 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26821
26822 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26823 (refs_may_alias_p_1): ... here; update stats.
26824 (refs_may_alias_p): Do not update stats here.
26825
26826 2019-05-20 Richard Biener <rguenther@suse.de>
26827
26828 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26829 doesn't produce pointers.
26830 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26831 the first operand points to.
26832
26833 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26834
26835 * tree-ssa-alias.c (compare_sizes): New function.
26836 (sompare_type_sizes): New function
26837 (aliasing_component_refs_p): Use it.
26838 (indirect_ref_may_alias_decl_p): Likewise.
26839
26840 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26841
26842 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26843
26844 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26845
26846 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26847 (LIBLSAN_EARLY_SPEC): Likewise.
26848 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26849
26850 2019-05-20 Martin Liska <mliska@suse.cz>
26851
26852 * config/i386/i386.c (ix86_libc_has_fast_function):
26853 Add ATTRIBUTE_UNUSED for the argument.
26854
26855 2019-05-20 Richard Biener <rguenther@suse.de>
26856
26857 * gimple-match-head.c: Include vec-perm-indices.h.
26858 * generic-match-head.c: Likewise.
26859 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26860 is included.
26861 * fold-const.c (fold_vec_perm): Export.
26862 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26863 (match.pd): ...here.
26864
26865 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26866
26867 * cfgloop.h (struct loop): Add simdlen member.
26868 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26869 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26870 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26871 as new argument to autovectorize_vector_sizes target hook. If
26872 loop->simdlen, pick up vector size where the vectorization factor
26873 is equal to loop->simd, and if there is none, fall back to the first
26874 successful one.
26875 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26876 caller.
26877 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26878 * omp-general.c (omp_max_vf): Likewise.
26879 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26880 * tree-vect-slp.c (vect_slp_bb): Likewise.
26881 * target.def (autovectorize_vector_sizes): Add ALL argument and
26882 document it.
26883 * doc/tm.texi: Adjust documentation.
26884 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26885 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26886 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26887 bool argument.
26888 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26889 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26890 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26891 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26892 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26893 preferred vector size is not 512-bit or 256-bit, just put those
26894 unpreferred ones last.
26895
26896 2019-05-20 Martin Liska <mliska@suse.cz>
26897
26898 * targhooks.c (default_libc_has_fast_function): New function.
26899 * targhooks.h (default_libc_has_fast_function): Likewise.
26900
26901 2019-05-20 Martin Liska <mliska@suse.cz>
26902
26903 PR middle-end/90263
26904 * builtins.c (expand_builtin_memory_copy_args): When having a
26905 target with fast mempcpy implementation do now use memcpy.
26906 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26907 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26908 * doc/tm.texi: Likewise.
26909 * doc/tm.texi.in: Likewise.
26910 * target.def:
26911 * expr.c (emit_block_move_hints): Add 2 new arguments.
26912 * expr.h (emit_block_move_hints): Bail out when libcall
26913 to memcpy would be used.
26914
26915 2019-05-20 Martin Liska <mliska@suse.cz>
26916
26917 * profile-count.c: Add vertical spacing in order
26918 to separate functions.
26919 * profile-count.h: Likewise.
26920
26921 2019-05-20 Martin Liska <mliska@suse.cz>
26922
26923 * profile-count.h: Do not use full qualified
26924 names if possible.
26925 * profile-count.c (profile_count::to_frequency): Likewise.
26926
26927 2019-05-20 Martin Liska <mliska@suse.cz>
26928
26929 * profile-count.h (enum profile_quality): Use capital letters
26930 for enum value names. Use the adjusted names.
26931 * profile-count.c: Use the adjusted names.
26932
26933 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26934
26935 * config/rs6000/constraints.md (define_register_constraint "wH"):
26936 Delete.
26937 (define_register_constraint "wI"): Delete.
26938 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26939 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26940 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26941 (rs6000_init_hard_regno_mode_ok): Adjust.
26942 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26943 resp. "d", or with "wa" as appropriate, all with "p8v".
26944 * config/rs6000/vsx.md: Ditto.
26945 * doc/md.texi (Machine Constraints): Adjust.
26946
26947 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26948
26949 * config/rs6000/constraints.md (define_register_constraint "wy"):
26950 Delete.
26951 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26952 RS6000_CONSTRAINT_wy.
26953 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26954 (rs6000_init_hard_regno_mode_ok): Adjust.
26955 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26956 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26957 (define_mode_attr Fisa): New.
26958 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26959 * doc/md.texi (Machine Constraints): Adjust.
26960
26961 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26962
26963 * config/rs6000/constraints.md (define_register_constraint "wu"):
26964 Delete.
26965 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26966 RS6000_CONSTRAINT_wu.
26967 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26968 (rs6000_init_hard_regno_mode_ok): Adjust.
26969 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26970 both with "p8v".
26971 (define_mode_attr Fa): Delete.
26972 * config/rs6000/vsx.md: Ditto.
26973 * doc/md.texi (Machine Constraints): Adjust.
26974
26975 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26976
26977 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26978 Delete.
26979 (define_register_constraint "wK"): Delete.
26980 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26981 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26982 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26983 (rs6000_init_hard_regno_mode_ok): Adjust.
26984 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26985 Replace "wK" constraint by "wH" with "p9v".
26986 * config/rs6000/vsx.md: Ditto.
26987 * doc/md.texi (Machine Constraints): Adjust.
26988
26989 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26990
26991 * config/rs6000/constraints.md (define_register_constraint "wb"):
26992 Delete.
26993 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26994 RS6000_CONSTRAINT_wb.
26995 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26996 (rs6000_init_hard_regno_mode_ok): Adjust.
26997 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26998 * config/rs6000/vsx.md: Ditto.
26999 * doc/md.texi (Machine Constraints): Adjust.
27000
27001 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27002
27003 * config/rs6000/constraints.md (define_register_constraint "wo"):
27004 Delete.
27005 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27006 RS6000_CONSTRAINT_wo.
27007 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27008 (rs6000_init_hard_regno_mode_ok): Adjust.
27009 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
27010 * config/rs6000/altivec.md: Ditto.
27011 * doc/md.texi (Machine Constraints): Adjust.
27012
27013 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27014
27015 * config/darwin-c.c (darwin_register_objc_includes): Do not
27016 prepend the sysroot when building gnu-runtime header search
27017 paths.
27018
27019 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27020
27021 * config/darwin.c (darwin_file_end): Use switch_to_section ()
27022 instead of direct output of the asm.
27023
27024 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27025
27026 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
27027 argument to be type bool (was int before).
27028 (rs6000_emit_epilogue): Simplify some code. Declare some variables
27029 at first use. Use type bool for some variables. Fix a theoretical
27030 eh_return bug for svr4.
27031
27032 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27033
27034 * config/rs6000/rs6000.md (isa): New attribute.
27035 (enabled): New attribute.
27036
27037 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
27038
27039 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
27040 assemble_start_function and assemble_end_function.
27041
27042 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
27043
27044 PR middle-end/89433
27045 * omp-general.c (oacc_verify_routine_clauses): Change formal
27046 parameters. Add checking if already marked with an OpenACC
27047 'routine' directive. Adjust all users.
27048
27049 PR middle-end/89433
27050 * omp-general.c (oacc_build_routine_dims): Move some of its
27051 processing into...
27052 (oacc_verify_routine_clauses): ... this new function.
27053 * omp-general.h (oacc_verify_routine_clauses): New prototype.
27054
27055 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27056
27057 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
27058 formating of picbase labels to match other ports.
27059
27060 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27061
27062 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
27063 in the generated code.
27064
27065 2019-05-16 Martin Sebor <msebor@redhat.com>
27066
27067 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
27068 identifiers, keywords, operators, and types in diagnostics. Correct
27069 quoting, spelling, and sentence capitalization issues.
27070 (expand_builtin_atomic_is_lock_free): Same.
27071 (fold_builtin_next_arg): Same.
27072 * cfgexpand.c (expand_one_var): Same.
27073 (tree_conflicts_with_clobbers_p): Same.
27074 (expand_asm_stmt): Same.
27075 (verify_loop_structure): Same.
27076 * cgraphunit.c (process_function_and_variable_attributes): Same.
27077 * collect-utils.c (collect_execute): Same.
27078 * collect2.c (maybe_run_lto_and_relink): Same.
27079 (is_lto_object_file): Same.
27080 (scan_prog_file): Same.
27081 * convert.c (convert_to_real_1): Same.
27082 * dwarf2out.c (dwarf2out_begin_prologue): Same.
27083 * except.c (verify_eh_tree): Same.
27084 * gcc.c (execute): Same.
27085 (eval_spec_function): Same.
27086 (run_attempt): Same.
27087 (driver::set_up_specs): Same.
27088 (compare_debug_auxbase_opt_spec_function): Same.
27089 * gcov-tool.c (unlink_gcda_file): Same.
27090 (do_merge): Same.
27091 (do_rewrite): Same.
27092 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
27093 * gimplify.c (gimplify_asm_expr): Same.
27094 (gimplify_adjust_omp_clauses): Same.
27095 * hsa-gen.c (gen_hsa_addr_insns): Same.
27096 (gen_hsa_insns_for_load): Same.
27097 (gen_hsa_cmp_insn_from_gimple): Same.
27098 (gen_hsa_insns_for_operation_assignment): Same.
27099 (gen_get_level): Same.
27100 (gen_hsa_alloca): Same.
27101 (omp_simple_builtin::generate): Same.
27102 (gen_hsa_atomic_for_builtin): Same.
27103 (gen_hsa_insns_for_call): Same.
27104 * input.c (dump_location_info): Same.
27105 * ipa-devirt.c (compare_virtual_tables): Same.
27106 * ira.c (ira_setup_eliminable_regset): Same.
27107 * lra-assigns.c (lra_assign): Same.
27108 * lra-constraints.c (lra_constraints): Same.
27109 * lto-streamer-in.c (lto_input_mode_table): Same.
27110 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
27111 (merge_and_complain): Same.
27112 (compile_offload_image): Same.
27113 (compile_images_for_offload_targets): Same.
27114 (debug_objcopy): Same.
27115 (run_gcc): Same.
27116 (main): Same.
27117 * opts.c (print_specific_help): Same.
27118 (parse_no_sanitize_attribute): Same.
27119 (print_help): Same.
27120 (handle_param): Same.
27121 * plugin.c (add_new_plugin): Same.
27122 (parse_plugin_arg_opt): Same.
27123 (try_init_one_plugin): Same.
27124 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
27125 operators, and types in diagnostics. Correct quoting and spelling
27126 issues.
27127 * read-rtl-function.c (parse_edge_flag_token): Same.
27128 (function_reader::parse_enum_value): Same.
27129 * reg-stack.c (check_asm_stack_operands): Same.
27130 * regcprop.c (validate_value_data): Same.
27131 * sched-rgn.c (make_pass_sched_fusion): Same.
27132 * stmt.c (check_unique_operand_names): Same.
27133 * targhooks.c (default_target_option_pragma_parse): Same.
27134 * tlink.c (recompile_files): Same.
27135 * toplev.c (process_options): Same.
27136 (do_compile): Same.
27137 * trans-mem.c (diagnose_tm_1): Same.
27138 (ipa_tm_scan_irr_block): Same.
27139 (ipa_tm_diagnose_transaction): Same.
27140 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
27141 format a tree code name in a diagnostic.
27142 (verify_types_in_gimple_min_lval): Same.
27143 (verify_types_in_gimple_reference): Same.
27144 (verify_gimple_call): Same.
27145 (verify_gimple_assign_unary): Same.
27146 (verify_gimple_assign_binary): Same.
27147 (verify_gimple_assign_ternary): Same.
27148 (verify_gimple_assign_single): Same.
27149 (verify_gimple_switch): Same.
27150 (verify_gimple_label): Same.
27151 (verify_gimple_phi): Same.
27152 (verify_gimple_in_seq): Same.
27153 (verify_eh_throw_stmt_node): Same.
27154 (collect_subblocks): Same.
27155 (gimple_verify_flow_info): Same.
27156 (do_warn_unused_result): Same.
27157 * tree-inline.c (expand_call_inline): Same.
27158 * tree-into-ssa.c (update_ssa): Same.
27159 * tree.c (tree_int_cst_elt_check_failed): Same.
27160 (tree_vec_elt_check_failed): Same.
27161 (omp_clause_operand_check_failed): Same.
27162 (verify_type_variant): Same.
27163 (verify_type): Same.
27164 * value-prof.c (verify_histograms): Same.
27165 * varasm.c (assemble_start_function): Same.
27166
27167 2019-05-16 Martin Sebor <msebor@redhat.com>
27168
27169 * config/i386/i386-expand.c (get_element_number): Quote keywords
27170 and other internal names in diagnostics. Adjust other diagnostic
27171 formatting issues noted by -Wformat-diag.
27172 * config/i386/i386-features.c
27173 (ix86_mangle_function_version_assembler_name): Same.
27174 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
27175 * config/i386/i386.c (ix86_function_type_abi): Same.
27176 (ix86_function_ms_hook_prologue): Same.
27177 (classify_argument): Same.
27178 (ix86_expand_prologue): Same.
27179 (ix86_md_asm_adjust): Same.
27180 (ix86_memmodel_check): Same.
27181
27182 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
27183
27184 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
27185 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
27186 and fpxx modes.
27187
27188 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
27189
27190 PR target/90497
27191 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
27192 intrinsics without SSE/SSE2/SSSE3.
27193 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
27194 check.
27195 (*mmx_uavgv8qi3): Likewise.
27196
27197 2019-05-17 Richard Biener <rguenther@suse.de>
27198
27199 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
27200 VEC_PERM_EXPR as __VEC_PERM with -gimple.
27201
27202 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
27203
27204 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
27205 vec_sldw insn pattern.
27206
27207 2019-05-17 Richard Biener <rguenther@suse.de>
27208
27209 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
27210
27211 2019-05-17 Martin Liska <mliska@suse.cz>
27212
27213 PR driver/90496
27214 * toplev.c (output_stack_usage): With LTO and sanitizer it
27215 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
27216 has no file location.
27217
27218 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27219
27220 PR c++/90484
27221 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
27222 sz0 is equal to sz1, instead return false in that case.
27223
27224 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
27225 has non-constant expression, force sctx.lane and use two
27226 argument IFN_GOMP_SIMD_LANE instead of single argument.
27227 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
27228 two argument IFN_GOMP_SIMD_LANE without lhs.
27229 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
27230 member.
27231 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
27232 Define.
27233 (LOOP_REQUIRES_VERSIONING): Or in
27234 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
27235 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
27236 simd_if_cond.
27237 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
27238 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
27239 from simd if clause if needed.
27240
27241 2019-05-16 Richard Biener <rguenther@suse.de>
27242
27243 * tree-affine.c (expr_to_aff_combination): New function split
27244 out from...
27245 (tree_to_aff_combination): ... here.
27246 (aff_combination_expand): Avoid building a GENERIC tree.
27247
27248 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
27249
27250 * cgraphunit.c (cgraph_node::expand_thunk): Remove
27251 assemble_start_function and assemble_end_function calls.
27252 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
27253 assemble_start_function and assemble_end_function.
27254 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
27255 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
27256 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
27257 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
27258 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
27259 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
27260 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
27261 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
27262 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
27263 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
27264 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
27265 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
27266 Likewise.
27267 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
27268 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
27269 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
27270 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
27271 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
27272 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
27273 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
27274 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
27275 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
27276 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27277 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
27278 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
27279 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
27280 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
27281 Likewise.
27282 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
27283 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
27284 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
27285
27286 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
27287
27288 * tree-ssa-alias.c (alias_stats): Add
27289 aliasing_component_refs_p_may_alias and
27290 aliasing_component_refs_p_no_alias.
27291 (dump_alias_stats): Print aliasing_component_refs_p stats.
27292 (aliasing_component_refs_p): Update stats.
27293
27294 2019-05-16 Martin Liska <mliska@suse.cz>
27295
27296 PR lto/90500
27297 * multiple_target.c (expand_target_clones): Do not allow
27298 target_clones being used with a symbol that is an alias.
27299
27300 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
27301
27302 PR tree-optimization/90394
27303 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
27304 positives rather than ICE for cases where (code2 == NE_EXPR
27305 && code1 == BIT_AND_EXPR).
27306
27307 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27308
27309 PR fortran/90329
27310 * tree-core.h (struct tree_decl_common): Document
27311 decl_nonshareable_flag for PARM_DECLs.
27312 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
27313 * calls.c (expand_call): Don't try tail call if caller
27314 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
27315 passed on the stack and callee needs to pass any arguments on the
27316 stack.
27317 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27318 else if instead of series of mutually exclusive ifs. Handle
27319 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
27320 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27321
27322 * lto-streamer.h (LTO_major_version): Bump to 9.
27323
27324 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
27325
27326 PR tree-optimization/90106
27327 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
27328 new parameter as new internal function call, also move it to new
27329 basic block.
27330 (use_internal_fn): Pass internal function call to
27331 shrink_wrap_one_built_in_call_with_conds.
27332
27333 2019-05-15 Jakub Jelinek <jakub@redhat.com>
27334
27335 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
27336 max_vf to 1.
27337 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
27338 safelen_int and set loop->dont_vectorize.
27339
27340 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27341
27342 PR target/89021
27343 * config/i386/i386-builtin.def: Enable MMX intrinsics with
27344 SSE/SSE2/SSSE3.
27345 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27346 Likewise.
27347 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
27348 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
27349 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
27350 is defined.
27351
27352 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27353
27354 PR target/89021
27355 * config/i386/mmx.md (*vec_dupv2sf): Changed to
27356 define_insn_and_split to support SSE emulation.
27357 (*vec_extractv2sf_0): Likewise.
27358 (*vec_extractv2sf_1): Likewise.
27359 (*vec_extractv2si_0): Likewise.
27360 (*vec_extractv2si_1): Likewise.
27361 (*vec_extractv2si_zext_mem): Likewise.
27362 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
27363 (vec_extractv2sf_1 splitter): Likewise.
27364 (vec_extractv2sfsf): Likewise.
27365 (vec_setv2si): Likewise.
27366 (vec_extractv2si_1 splitter): Likewise.
27367 (vec_extractv2sisi): Likewise.
27368 (vec_setv4hi): Likewise.
27369 (vec_extractv4hihi): Likewise.
27370 (vec_setv8qi): Likewise.
27371 (vec_extractv8qiqi): Likewise.
27372 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27373 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27374 (vec_extractv2sisi): Likewise.
27375 (vec_extractv4hihi): Likewise.
27376 (vec_extractv8qiqi): Likewise.
27377 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27378 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27379 (vec_initv2sisi): Likewise.
27380 (vec_initv4hihi): Likewise.
27381 (vec_initv8qiqi): Likewise.
27382 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
27383 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27384 (vec_setv4hi): Likewise.
27385 (vec_setv8qi): Likewise.
27386
27387 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27388
27389 PR target/89021
27390 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27391 TARGET_MMX_WITH_SSE.
27392 (MMXMODE:*mov<mode>_internal): Likewise.
27393 (MMXMODE:movmisalign<mode>): Likewise.
27394
27395 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
27396
27397 PR target/89021
27398 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27399 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27400 (sse2_cvtpd2pi): Ditto.
27401 (sse2_cvttpd2pi): Ditto.
27402 (*vec_concatv2sf_sse4_1): Ditto.
27403 (*vec_concatv2sf_sse): Ditto.
27404 (*vec_concatv2si_sse4_1): Ditto.
27405 (*vec_concatv2si): Ditto.
27406 (*vec_concatv4si_0): Ditto.
27407 (*vec_concatv2di_0): Ditto.
27408
27409 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27410
27411 PR target/89021
27412 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27413
27414 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27415
27416 PR target/89021
27417 * config/i386/sse.md (ssse3_palignrdi): Changed to
27418 define_insn_and_split to support SSE emulation.
27419
27420 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27421
27422 PR target/89021
27423 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27424
27425 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27426
27427 PR target/89021
27428 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27429 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27430 SSE emulation.
27431
27432 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27433
27434 PR target/89021
27435 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27436 or TARGET_MMX_WITH_SSE.
27437 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27438
27439 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27440
27441 PR target/89021
27442 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27443
27444 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27445
27446 PR target/89021
27447 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27448 Changed to define_insn_and_split to support SSE emulation.
27449
27450 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27451
27452 PR target/89021
27453 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27454 Changed to define_insn_and_split to support SSE emulation.
27455
27456 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27457
27458 PR target/89021
27459 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27460 (*mmx_<emms>): This.
27461 (mmx_<emms>): New expander.
27462
27463 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27464
27465 PR target/89021
27466 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27467 support.
27468 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27469
27470 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27471
27472 PR target/89021
27473 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27474
27475 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27476
27477 PR target/89021
27478 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27479
27480 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27481
27482 PR target/89021
27483 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27484 TARGET_MMX_WITH_SSE.
27485 (*mmx_uavgv4hi3): Add SSE emulation.
27486
27487 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27488
27489 PR target/89021
27490 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27491 and TARGET_MMX_WITH_SSE.
27492 (*mmx_uavgv8qi3): Add SSE emulation.
27493
27494 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27495
27496 PR target/89021
27497 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27498 maskmovdqu for __MMX_WITH_SSE__.
27499
27500 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27501
27502 PR target/89021
27503 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27504 TARGET_MMX and TARGET_MMX_WITH_SSE.
27505 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27506
27507 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27508
27509 PR target/89021
27510 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27511 define_insn_and_split to support SSE emulation.
27512
27513 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27514
27515 PR target/89021
27516 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27517 and TARGET_MMX_WITH_SSE.
27518 (mmx_<code>v8qi3): Likewise.
27519 (smaxmin:<code>v4hi3): New.
27520 (umaxmin:<code>v8qi3): Likewise.
27521 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27522 (umaxmin:*mmx_<code>v8qi3): Likewise.
27523
27524 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27525
27526 PR target/89021
27527 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27528 TARGET_MMX_WITH_SSE.
27529 (*mmx_pinsrw): Add SSE emulation.
27530
27531 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27532
27533 PR target/89021
27534 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27535
27536 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27537
27538 PR target/89021
27539 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27540 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27541 SSE emulation.
27542
27543 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27544
27545 PR target/89021
27546 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27547 (sse_cvttps2pi): Likewise.
27548
27549 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27550
27551 PR target/89021
27552 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27553 TARGET_MMX_WITH_SSE.
27554 (mmx_pshufw_1): Add SSE emulation.
27555 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27556 TARGET_MMX_WITH_SSE to support SSE emulation.
27557
27558 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27559
27560 PR target/89021
27561 * config/i386/constraints.md (Yw): New constraint.
27562 * config/i386/mmx.md (*vec_dupv2si): Changed to
27563 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27564 support SSE emulation.
27565
27566 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27567
27568 PR target/89021
27569 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27570 TARGET_MMX_WITH_SSE.
27571 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27572 support.
27573 (mmx_gt<mode>3): Likewise.
27574
27575 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27576
27577 PR target/89021
27578 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27579 TARGET_MMX_WITH_SSE. Add SSE support.
27580
27581 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27582
27583 PR target/89021
27584 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27585 TARGET_MMX_WITH_SSE.
27586 (any_logic:<code><mode>3): New.
27587 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27588 Add SSE support.
27589
27590 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27591
27592 PR target/89021
27593 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27594 TARGET_MMX_WITH_SSE. Add SSE emulation.
27595 (mmx_<shift_insn><mode>3): Likewise.
27596 (ashr<mode>3): New.
27597 (<shift_insn><mode>3): Likewise.
27598
27599 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27600
27601 PR target/89021
27602 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27603 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27604
27605 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27606
27607 PR target/89021
27608 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27609 TARGET_MMX_WITH_SSE.
27610 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27611 SSE support.
27612
27613 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27614
27615 PR target/89021
27616 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27617 TARGET_MMX_WITH_SSE.
27618 (mulv4hi3): New.
27619 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27620 support.
27621
27622 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27623
27624 PR target/89021
27625 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27626 (plusminus:mmx_<plusminus_insn><mode>3): Check
27627 TARGET_MMX_WITH_SSE.
27628 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27629 (<plusminus_insn><mode>3): New.
27630 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27631 (*mmx_<plusminus_insn><mode>3): Likewise.
27632
27633 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27634
27635 PR target/89021
27636 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27637 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27638 prototype.
27639 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27640 define_insn_and_split to support SSE emulation.
27641 (mmx_punpcklbw): Likewise.
27642 (mmx_punpckhwd): Likewise.
27643 (mmx_punpcklwd): Likewise.
27644 (mmx_punpckhdq): Likewise.
27645 (mmx_punpckldq): Likewise.
27646
27647 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27648 Uros Bizjak <ubizjak@gmail.com>
27649
27650 PR target/89021
27651 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27652 New function.
27653 (ix86_split_mmx_pack): Likewise.
27654 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27655 New prototype.
27656 (ix86_split_mmx_pack): Likewise.
27657 * config/i386/i386.md (mmx_isa): New.
27658 (enabled): Also check mmx_isa.
27659 * config/i386/mmx.md (any_s_truncate): New code iterator.
27660 (s_trunsuffix): New code attr.
27661 (mmx_packsswb): Removed.
27662 (mmx_packssdw): Likewise.
27663 (mmx_packuswb): Likewise.
27664 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27665 MMX packsswb/packuswb with SSE2.
27666 (mmx_packssdw): Likewise.
27667 * config/i386/predicates.md (register_mmxmem_operand): New.
27668
27669 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27670
27671 PR target/89021
27672 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27673 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27674 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27675 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27676 (ix86_vector_mode_supported_p): Likewise.
27677 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27678
27679 2019-05-15 Martin Liska <mliska@suse.cz>
27680
27681 PR middle-end/90478
27682 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27683 Check for overflow.
27684
27685 2019-05-15 Richard Biener <rguenther@suse.de>
27686
27687 * tree-into-ssa.c (pass_build_ssa::execute): Run
27688 update_address_taken before going into SSA.
27689
27690 2019-05-15 Richard Biener <rguenther@suse.de>
27691
27692 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27693 as __BIT_FIELD_REF with type with -gimple.
27694
27695 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27696
27697 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27698 semantically equivalent branches (left over after prior refactorings).
27699
27700 2019-05-15 Richard Biener <rguenther@suse.de>
27701
27702 PR tree-optimization/88828
27703 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27704 bogus check.
27705
27706 2019-05-14 Richard Biener <rguenther@suse.de>
27707
27708 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27709 as __VIEW_CONVERT with -gimple.
27710
27711 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27712
27713 PR target/82920
27714 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27715 Darwin.
27716
27717 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27718
27719 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27720 define_split to become a define_insn_and_split.
27721
27722 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27723
27724 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27725 arguments.
27726 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27727 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27728 (sibcall_epilogue): Adjust.
27729 (epilogue): Adjust.
27730
27731 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27732
27733 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27734 to unsupported ones.
27735 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27736 * config.host: Likewise.
27737 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27738 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27739 __svr4__]: Remove "brand" fallback.
27740 [!KSTAT_DATA_STRING]: Remove.
27741 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27742 to *-*-solaris2*.
27743 (comdat_group): Likewise.
27744 (set_have_as_tls): Likewise.
27745 (gcc_cv_target_dl_iterate_phdr): Likewise.
27746 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27747 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27748 * configure: Regenerate.
27749 * doc/install.texi: Simplify Solaris target triplets.
27750 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27751 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27752 Remove Solaris 10 references.
27753 Remove obsolete Solaris bug reference.
27754 (Specific, sparc-sun-solaris2.10): Remove.
27755
27756 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27757
27758 * config/i386/i386.md (any_div): New code iterator.
27759 (paired_mod): New code attribute.
27760 (sgnprefix): Handle DIV and UDIV RTXes.
27761 (u): Ditto.
27762 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27763 and udivmod<mode>4 patterns using any_div code iterator.
27764 (divmod splitters): Macroize splitters using any_div code iterator.
27765 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27766 (*udivmodsi4_pow2_zext_2): Ditto.
27767 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27768 and *udivmod<mode>4_noext patterns using any_div code iterator.
27769 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27770 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27771 patterns using any_div code iterator.
27772 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27773 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27774 patterns using any_div code iterator.
27775 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27776 udivmodhiqi3 patterns using any_extend code iterator.
27777
27778 2019-05-14 Richard Biener <rguenther@suse.de>
27779 H.J. Lu <hongjiu.lu@intel.com>
27780
27781 PR tree-optimization/88828
27782 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27783 permuting in a single non-constant element not extracted
27784 from a vector.
27785
27786 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27787
27788 * internal-fn.def (SIGNBIT): New.
27789 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27790 defined.
27791 (signbitv4sf2): Likewise.
27792
27793 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27794
27795 PR target/90357
27796 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27797 next insn when the SRC reg is dead.
27798
27799 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27800
27801 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27802 (alloc_cand_and_find_basis): Ditto.
27803 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27804 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27805 (create_add_imm_cand, slsr_process_cast): Ditto.
27806 (slsr_process_copy, replace_mult_candidate): Ditto.
27807 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27808 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27809 (pass_strength_reduction::execute): Init the first NULL element.
27810
27811 2019-05-13 Nathan Sidwell <nathan@acm.org>
27812
27813 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27814 (run_attempt): Reformat line break.
27815
27816 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27817
27818 PR target/90418
27819 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27820 data registers in sibcall epilogues.
27821 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27822
27823 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27824
27825 PR target/89221
27826 * configure.ac (--enable-frame-pointer):
27827 Disable by default for cygwin and mingw.
27828 * configure: Regenerate.
27829
27830 2019-05-13 Nathan Sidwell <nathan@acm.org>
27831
27832 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27833 piece of code.
27834 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27835 (gen_member_die): Move abstract origin check earlier. Only VARs
27836 can be static_inline_p. Simplify splicing control flow.
27837
27838 2019-05-13 Richard Biener <rguenther@suse.de>
27839
27840 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27841 VIEW_CONVERT_EXPR.
27842 (vect_build_slp_tree_1): Likewise.
27843
27844 2019-05-13 Richard Biener <rguenther@suse.de>
27845
27846 PR tree-optimization/90402
27847 * tree-if-conv.c (tree_if_conversion): Value number only
27848 the loop body by making the latch an exit of the region
27849 as well.
27850 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27851 processing PHIs.
27852 (do_rpo_vn): Deal with multiple edges into the entry block
27853 that are not backedges inside the region by skipping PHIs
27854 of the entry block.
27855
27856 2019-05-13 Richard Biener <rguenther@suse.de>
27857
27858 PR tree-optimization/90316
27859 * tree-ssa-pre.c (insert_aux): Fold into ...
27860 (insert): ... this function. Use a RPO walk to reduce the
27861 number of required iterations.
27862
27863 2019-05-13 Martin Liska <mliska@suse.cz>
27864
27865 PR tree-optimization/90416
27866 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27867 string instead of passing the second part as va_arg argument.
27868
27869 2019-05-13 Martin Liska <mliska@suse.cz>
27870
27871 PR gcov-profile/90380
27872 * gcov.c (handle_cycle): Do not support zero cycle count,
27873 it should not be possible.
27874 (path_contains_zero_cycle_arc): New function.
27875 (circuit): Ignore zero cycle arc counts.
27876
27877 2019-05-13 Martin Liska <mliska@suse.cz>
27878
27879 PR gcov-profile/90380
27880 * gcov.c (enum loop_type): Remove the enum and
27881 the operator.
27882 (handle_cycle): Assert that we should not reach
27883 a negative count.
27884 (circuit): Use loop_found instead of a tri-state loop_type.
27885 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27886 happen.
27887
27888 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27889
27890 PR target/82920
27891 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27892 (ix86_output_indirect_branch_via_reg): Use output mechanism
27893 accounting for __USER_LABEL_PREFIX__.
27894 (ix86_output_indirect_branch_via_push): Likewise.
27895 (ix86_output_function_return): Likewise.
27896 (ix86_output_indirect_function_return): Likewise.
27897
27898 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27899
27900 * doc/md.texi: Document use of code attributes in rtx patterns.
27901 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27902 * read-rtl.c (find_code): Split out search loops into...
27903 (maybe_find_code): ...this new function.
27904 (check_code_iterator): Make the error message more informative.
27905 (check_code_attribute): New function.
27906 (rtx_reader::rtx_alloc_for_name): Likewise.
27907 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27908 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27909 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27910 <max_opp> directly as an rtx code instead of via a match_operator.
27911 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27912 (<su>abd<mode>_3): Update accordingly.
27913
27914 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27915
27916 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27917 is given, print the state of the EH "save world" computation for
27918 Darwin.
27919
27920 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27921
27922 PR c++/59813
27923 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27924 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27925
27926 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27927
27928 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27929 Use pinsrd for TARGET_SSE4_1.
27930 * config/i386/sse.md (movdi_to_sse): Ditto.
27931
27932 2019-05-10 Richard Biener <rguenther@suse.de>
27933
27934 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27935 (do_rpo_vn): Initialize next_value_id.
27936
27937 2019-05-10 Martin Liska <mliska@suse.cz>
27938
27939 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27940 Fix plural form.
27941
27942 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27943
27944 PR tree-optimization/90385
27945 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27946 arguments of the exit phis.
27947
27948 PR c++/90383
27949 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27950 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27951 id->do_not_fold.
27952 (copy_tree_body_r): Likewise.
27953 (copy_fn): Set id.do_not_fold to true.
27954
27955 2019-05-10 Martin Liska <mliska@suse.cz>
27956
27957 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27958 Reapply changes from r269790.
27959
27960 2019-05-10 Martin Liska <mliska@suse.cz>
27961
27962 PR middle-end/90340
27963 * doc/invoke.texi: New params.
27964 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27965 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27966 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27967 Use it.
27968 * tree-switch-conversion.h (struct jump_table_cluster):
27969 Likewise.
27970
27971 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27972
27973 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27974
27975 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27976
27977 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27978
27979 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27980
27981 PR rtl-optimization/88879
27982 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27983
27984 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27985
27986 PR target/90405
27987 * config/arm/arm.c (callee_saved_reg_p): Move before
27988 thumb_find_work_register.
27989 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27990 thumb_find_work_register. Only call df_get_live_out once.
27991 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27992 (thumb_find_work_register): Use
27993 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27994 algorithms to locate a spare call clobbered reg.
27995
27996 2019-05-09 Martin Liska <mliska@suse.cz>
27997
27998 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27999 and MAX_EXPR in GIMPLE FE format.
28000
28001 2019-05-09 Martin Liska <mliska@suse.cz>
28002
28003 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
28004 * gimple-pretty-print.c (dump_gimple_bb_header):
28005 Dump BB count.
28006 (pp_cfg_jump): Dump edge probability.
28007 * profile-count.c (profile_quality_as_string): Simplify
28008 with a static array.
28009 (parse_profile_quality): New function.
28010 (profile_count::dump): Simplify with a static array.
28011 (profile_count::from_gcov_type): Add new argument.
28012 * profile-count.h (parse_profile_quality): Likewise.
28013 * predict.h (set_hot_bb_threshold): New.
28014 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28015 New param.
28016 * predict.c (get_hot_bb_threshold): Set from the new param.
28017 (set_hot_bb_threshold): New.
28018
28019 2019-05-09 Richard Biener <rguenther@suse.de>
28020
28021 PR tree-optimization/90395
28022 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
28023 rewrite vector stores that throw internally.
28024
28025 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
28026
28027 * cif-code.def (CHKP): Remove.
28028
28029 PR target/89221
28030 * configure.ac (--enable-frame-pointer): Disable by default for
28031 GNU systems.
28032 * configure: Regenerate.
28033
28034 2019-05-09 Alan Modra <amodra@gmail.com>
28035
28036 PR target/89271
28037 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
28038 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
28039 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
28040 cost for general <-> vsx when direct moves are available.
28041 Cost union classes at minimal cost for any reg in the class.
28042 Correct calculation for moves between vsx, float, and altivec.
28043 Don't return a low cost for moves between special regs. Don't
28044 use hard coded register numbers.
28045 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
28046 (rs6000_ira_change_pseudo_allocno_class): New function.
28047 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
28048 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
28049 alternatives.
28050 (movsi_internal1): Don't disparage vector alternatives.
28051 (mov<mode>_internal): Likewise, excepting alternative that
28052 will be split.
28053 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
28054 we <- b alternative.
28055
28056 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28057
28058 PR c++/59813
28059 PR tree-optimization/89060
28060 * tree-ssa-live.h (live_vars_map): New typedef.
28061 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
28062 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
28063 (struct compute_live_vars_data): New type.
28064 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
28065 live_vars_at_stmt, destroy_live_vars): New functions.
28066 * tree-tailcall.c: Include tree-ssa-live.h.
28067 (live_vars, live_vars_vec): New global variables.
28068 (find_tail_calls): Perform variable life analysis before punting.
28069 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
28070 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
28071 member.
28072 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
28073 Perform variable life analysis to select variables that really need
28074 clobbers added.
28075 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
28076 instead set id->eh_landing_pad_dest and assert it is the same.
28077 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
28078
28079 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
28080 Richard Earnshaw <rearnsha@arm.com>
28081
28082 PR target/88167
28083 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
28084 function.
28085 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
28086 (thumb1_compute_save_core_reg_mask): Don't force a spare work
28087 register if both the epilogue and prologue can use call-clobbered
28088 regs.
28089 (thumb1_unexpanded_epilogue): Use
28090 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
28091 picking temporaries for restoring high regs to match that of the
28092 prologue where possible.
28093 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
28094 the list of work registers. Detect if the return address is still live
28095 at the end of the prologue and avoid using it for a work register if so.
28096 If the return address is not live, add LR to the list of pushable regs
28097 after the first pass.
28098
28099 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28100
28101 PR tree-optimization/90078
28102 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
28103 (INFTY): Increase the value for infinite cost.
28104 (struct comp_cost): Promote type of members to int64_t.
28105 (infinite_cost): Don't set complexity in initialization.
28106 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
28107 overflows to infinite_cost.
28108 (adjust_setup_cost): Promote type of parameter and cost computation
28109 to int64_t.
28110 (struct ainc_cost_data, struct iv_ca): Promote type of member to
28111 int64_t.
28112 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
28113 cost computation to int64_t.
28114 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
28115 int64_t's format specifier in dump.
28116
28117 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28118
28119 PR tree-optimization/90240
28120 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
28121 with respect to scaling factor pre-computed for each basic block.
28122 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
28123 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
28124 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
28125 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
28126 live range for array of loop's basic blocks. Cleanup aux field of
28127 loop's basic blocks.
28128
28129 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28130
28131 PR tree-optimization/90356
28132 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
28133
28134 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
28135
28136 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
28137 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
28138 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
28139 (ix86_handle_option): Handle -mavx512bf16.
28140 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
28141 to extra_headers.
28142 * config/i386/avx512bf16vlintrin.h: New.
28143 * config/i386/avx512bf16intrin.h: New.
28144 * config/i386/cpuid.h (bit_AVX512BF16): New.
28145 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
28146 * config/i386/i386-builtin-types.def: Add new types.
28147 * config/i386/i386-builtin.def: Add new builtins.
28148 * config/i386/i386-c.c (ix86_target_macros_internal): Define
28149 __AVX512BF16__.
28150 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
28151 (ix86_option_override_internal): Handle BF16.
28152 (ix86_valid_target_attribute_inner_p): Ditto.
28153 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
28154 * config/i386/i386-builtin.c (enum processor_features): Add
28155 F_AVX512BF16.
28156 (static const _isa_names_table isa_names_table): Ditto.
28157 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
28158 (PTA_AVX512BF16): Ditto.
28159 * config/i386/i386.opt: Add -mavx512bf16.
28160 * config/i386/immintrin.h: Include avx512bf16intrin.h
28161 and avx512bf16vlintrin.h.
28162 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
28163 avx512f_cvtneps2bf16_<mode><mask_name>,
28164 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
28165 * config/i386/subst.md (mask_half): Add new subst.
28166 * doc/invoke.texi: Document -mavx512bf16.
28167
28168 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
28169
28170 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
28171 Delete declaration.
28172 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
28173 (rs6000_debug_legitimize_reload_address): Delete.
28174 (rs6000_legitimize_reload_address_ptr): Delete.
28175 (rs6000_option_override_internal): Adjust.
28176 (mem_operand_gpr): Adjust comment.
28177 (legitimate_lo_sum_address_p): Ditto.
28178 (rs6000_legitimize_reload_address): Delete.
28179 (rs6000_debug_legitimize_reload_address): Delete.
28180 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
28181
28182 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
28183
28184 PR target/89765
28185 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28186 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
28187 to compute vector element selector for both constant and variable
28188 operands.
28189
28190 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28191
28192 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
28193 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
28194 ashrdi3_cvt using SWI48 mode iterator.
28195
28196 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28197
28198 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
28199 (aarch64_<su>abd<mode>_3): Likewise.
28200 (*aarch64_<su>abd<mode>_3): New define_insn.
28201 (<sur>sad<vsi2qi>): New define_expand.
28202 * config/aarch64/iterators.md: Added MAX_OPP attribute.
28203 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
28204 (build_vect_cond_expr): Likewise.
28205
28206 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28207
28208 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
28209 clobbers outside of accessible_reg_set.
28210 * config/i386/i386.c (ix86_conditional_register_usage):
28211 Disable register sets by clearing corresponding bits in
28212 accessible_reg_set. Do not set corresponding bits in fixed_regs,
28213 call_used_regs and don't clear corresponding reg_names array members.
28214
28215 2019-05-07 Richard Biener <rguenther@suse.de>
28216
28217 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
28218 not specified still compute a comp_vectype for invariant
28219 compares.
28220
28221 2019-05-07 Richard Biener <rguenther@suse.de>
28222
28223 PR tree-optimization/90316
28224 * tree-ssa-pre.c (translate_vuse_through_block): When
28225 same_valid is NULL do not bother to search for a virtual
28226 PHI continuation.
28227 (phi_translate_1): When operands changed we cannot keep
28228 the same value-number so do not bother to ask whether
28229 that's possible from translate_vuse_through_block.
28230
28231 2019-05-07 Martin Liska <mliska@suse.cz>
28232
28233 * bitmap.c (bitmap_register): Come up with
28234 alloc_descriptor_max_uid and assign it for
28235 a new bitmap.
28236 (register_overhead): Use get_descriptor as
28237 a descriptor.
28238 (release_overhead): New.
28239 (bitmap_elem_to_freelist): Call it.
28240 (bitmap_elt_clear_from): Likewise.
28241 (bitmap_obstack_free): Likewise.
28242 (bitmap_move): Sensitively release memory.
28243 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
28244 (bitmap_initialize): Initialize alloc_descriptor to zero.
28245 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
28246
28247 2019-05-07 Richard Biener <rguenther@suse.de>
28248
28249 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
28250 we build a SLP node. Remove max_size and limiting.
28251 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
28252
28253 2019-05-07 Richard Biener <rguenther@suse.de>
28254
28255 PR tree-optimization/90316
28256 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
28257 limit by reference.
28258 (walk_non_aliased_vuses): Take walking limit argument.
28259 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
28260 walking if it is reached instead of just counting.
28261 (get_continuation_for_phi): Likewise.
28262 (walk_non_aliased_vuses): Likewise, instead of leaving counter
28263 limiting to the callback.
28264 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
28265 (vn_reference_lookup_3): Likewise.
28266 (vn_reference_lookup_pieces): Likewise.
28267 (vn_reference_lookup): Likewise.
28268 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
28269 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
28270 (avail_exprs_stack::lookup_avail_expr): Likewise.
28271
28272 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
28273
28274 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
28275 for comparaible types in the second direction even if first one
28276 hits incomparable type.
28277
28278 2019-05-07 Richard Biener <rguenther@suse.de>
28279
28280 PR lto/90369
28281 * lto-wrapper.c (debug_objcopy): Use the original filename
28282 including archive offset for the filename used for -save-temps.
28283
28284 2019-05-07 Li Jia He <helijia@linux.ibm.com>
28285
28286 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
28287 detection.
28288
28289 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
28290 Hongtao Liu <hongtao.liu@intel.com>
28291
28292 PR target/89750
28293 PR target/86444
28294 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
28295 Modified, original implementation isn't correct.
28296
28297 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28298
28299 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
28300 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
28301 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
28302 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
28303 (FRAME_POINTER_REGNUM): Change numbering.
28304 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
28305 (alt_reg_names): Adjust.
28306 (rs6000_conditional_register_usage): Don't mark hard register 64 as
28307 fixed.
28308 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28309 (DWARF_FRAME_REGISTERS): Delete.
28310 (DWARF2_FRAME_REG_OUT): Fix whitespace.
28311 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28312 Adjust.
28313 (REG_ALLOC_ORDER): Adjust.
28314 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
28315 (REG_CLASS_CONTENTS): Adjust.
28316 (RETURN_ADDR_RTX): Change comment.
28317 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
28318 instead of 67.
28319 (REGISTER_NAMES): Adjust.
28320 (ADDITIONAL_REGISTER_NAMES): Adjust.
28321 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28322
28323 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28324
28325 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
28326 Delete.
28327 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28328 (DWARF_FRAME_REGISTERS): Adjust.
28329 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28330 Adjust.
28331 (REG_ALLOC_ORDER): Adjust.
28332 (enum reg_class): Delete SPR_REGS.
28333 (REG_CLASS_NAMES): Delete SPR_REGS.
28334 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
28335 (REGISTER_NAMES): Adjust.
28336 (ADDITIONAL_REGISTER_NAMES): Adjust.
28337 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28338 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
28339 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
28340 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
28341 (htm_spr_regno): Delete.
28342 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
28343 argument.
28344 (rs6000_dbx_register_number): Adjust.
28345
28346 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28347
28348 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
28349
28350 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28351
28352 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
28353 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
28354
28355 2019-05-06 Jakub Jelinek <jakub@redhat.com>
28356
28357 PR tree-optimization/88709
28358 PR tree-optimization/90271
28359 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
28360 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
28361 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
28362 variable.
28363 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
28364 of the store merging group is larger than
28365 PARAM_STORE_MERGING_MAX_SIZE parameter.
28366 (split_group): Add bzero_first argument. If set, always emit first
28367 the first store which must be = {} of the whole area and then for the
28368 rest of the stores consider all zero bytes as paddings.
28369 (imm_store_chain_info::output_merged_store): Check if first store
28370 is = {} of the whole area and if yes, determine which setting of
28371 bzero_first for split_group gives smaller number of stores. Adjust
28372 split_group callers.
28373 (lhs_valid_for_store_merging_p): Allow decls.
28374 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28375 no elts.
28376 (pass_store_merging::process_store): Likewise.
28377
28378 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
28379
28380 PR target/89424
28381 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28382 handling of V1TImode.
28383
28384 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
28385
28386 PR target/89221
28387 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28388 and enable_frame_pointer ...
28389 * configure.ac: ... here. Update help strings for
28390 --enable-frame-pointer.
28391 * configure: Regenerate.
28392 * config/i386/i386-options.c (ix86_option_override_internal): Remove
28393 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28394 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28395 (USE_X86_64_FRAME_POINTER): Ditto.
28396
28397 2019-05-06 Martin Liska <mliska@suse.cz>
28398
28399 * config.gcc: Append to target_gtfiles and fix indentation.
28400
28401 2019-05-06 Richard Biener <rguenther@suse.de>
28402
28403 PR tree-optimization/90358
28404 * tree-vect-stmts.c (get_group_load_store_type): Properly
28405 detect unused upper half of load.
28406 (vectorizable_load): Likewise.
28407
28408 2019-05-06 Richard Biener <rguenther@suse.de>
28409
28410 PR tree-optimization/88828
28411 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28412 (simplify_vector_constructor): ...here. Handle constants in
28413 the constructor.
28414
28415 2019-05-06 Richard Biener <rguenther@suse.de>
28416
28417 PR tree-optimization/90328
28418 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28419 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28420 is valid in the loop nest before using it.
28421 (initialize_data_dependence_relation): Adjust.
28422 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28423 loop as loop-nest to dr_may_alias_p.
28424
28425 2019-05-06 Richard Biener <rguenther@suse.de>
28426
28427 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28428
28429 2019-05-06 Richard Biener <rguenther@suse.de>
28430
28431 PR tree-optimization/90316
28432 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28433 compute target on demand.
28434 (get_continuation_for_phi): Remove code walking stmts to
28435 get to a target virtual operand which could end up being
28436 quadratic.
28437
28438 2019-05-06 Martin Liska <mliska@suse.cz>
28439
28440 PR sanitizer/90312
28441 * config/i386/i386-options.c (ix86_option_override_internal): Error only
28442 when -mabi is selected to a non-default version.
28443
28444 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28445 Martin Liska <mliska@suse.cz>
28446
28447 * Makefile.in: Add lto-dump.texi.
28448 * cgraph.h: Add new functions get_visibility_string and
28449 get_symtab_type_string.
28450 * doc/gcc.texi: Include lto-dump section.
28451 * doc/lto-dump.texi: New file.
28452 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28453 (parse_dump_option): Factor out this function.
28454 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28455 (parse_dump_option): Export the function.
28456 * symtab.c (symtab_node::get_visibility_string): New function.
28457 (symtab_node::get_symtab_type_string): Likewise.
28458
28459 2019-05-06 Martin Liska <mliska@suse.cz>
28460
28461 * config/i386/i386-builtins.c: New file.
28462 * config/i386/i386-builtins.h: New file.
28463 * config/i386/i386-expand.c: New file.
28464 * config/i386/i386-expand.h: New file.
28465 * config/i386/i386-features.c: New file.
28466 * config/i386/i386-features.h: New file.
28467 * config/i386/i386-options.c: New file.
28468 * config/i386/i386-options.h: New file.
28469 * config.gcc: Add new files into extra_objs and
28470 target_gtfiles.
28471 * config/i386/i386.c: Split content of the file
28472 into newly introduced files.
28473 * config/i386/i386.h: Declare common variables
28474 and macros.
28475 * config/i386/t-i386: Define dependencies for new files.
28476
28477 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28478
28479 PR target/89400
28480 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28481 Restrict 'all' variant to 32-bit configurations.
28482 (unaligned_loadhiu): Likewise.
28483 (unaligned_storehi): Likewise.
28484 (unaligned_storesi): Likewise.
28485 (unaligned_loadhis): Disable when compiling for thumb1.
28486
28487 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28488
28489 PR tree-optimization/90269
28490 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28491 Ignore clobbers.
28492
28493 2019-05-03 Martin Liska <mliska@suse.cz>
28494
28495 * hash-map.h: Add is_empty function.
28496 * hash-set.h: Likewise.
28497 * hash-table.h: Likewise.
28498 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28499 elements () == 0 (and similar usages).
28500 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28501 * gimplify.c (gimplify_bind_expr): Likewise.
28502 (gimplify_switch_expr): Likewise.
28503 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28504 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28505 * postreload-gcse.c (dump_hash_table): Likewise.
28506 (gcse_after_reload_main): Likewise.
28507 * predict.c (combine_predictions_for_bb): Likewise.
28508 * tree-parloops.c (reduction_phi): Likewise.
28509 (separate_decls_in_region): Likewise.
28510 (transform_to_exit_first_loop): Likewise.
28511 (gen_parallel_loop): Likewise.
28512 (gather_scalar_reductions): Likewise.
28513 (try_create_reduction_list): Likewise.
28514 * var-tracking.c (dump_vars): Likewise.
28515 (emit_notes_for_changes): Likewise.
28516 (vt_emit_notes): Likewise.
28517
28518 2019-05-03 Richard Biener <rguenther@suse.de>
28519
28520 PR tree-optimization/90316
28521 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28522 before running VN.
28523
28524 2019-05-03 Richard Biener <rguenther@suse.de>
28525
28526 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28527 peeling for gaps by loading only lower halves of vectors
28528 if possible.
28529 (vectorizable_load): Likewise.
28530
28531 2019-05-03 Richard Biener <rguenther@suse.de>
28532
28533 PR middle-end/89518
28534 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28535
28536 2019-05-03 Richard Biener <rguenther@suse.de>
28537
28538 PR middle-end/87314
28539 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28540 Handle STRING_CST vs DECL or STRING_CST.
28541
28542 2019-05-03 Richard Biener <rguenther@suse.de>
28543
28544 PR tree-optimization/88963
28545 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28546 vector loads feeding only BIT_FIELD_REFs to component
28547 loads. Rewrite stores fed by CONSTRUCTORs to component
28548 stores.
28549
28550 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28551
28552 * opts.h (finish_options): Remove lang_mask argument.
28553 (print_help, help_option_argument): Declare.
28554 * opts.c (print_help): Remove forward declaration, no longer static.
28555 (finish_options): Remove lang_mask argument, don't call print_help
28556 here.
28557 * opts-global.c (decode_options): Adjust finish_option caller, call
28558 print_help here.
28559
28560 PR tree-optimization/90303
28561 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28562 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28563
28564 2019-05-03 Richard Biener <rguenther@suse.de>
28565
28566 PR tree-optimization/89698
28567 * gimple-fold.c (canonicalize_constructor_val): Early out
28568 for constants, handle unfolded INTEGER_CSTs as they appear in
28569 C++ virtual table ctors.
28570
28571 2019-05-03 Richard Biener <rguenther@suse.de>
28572
28573 * passes.c (execute_function_todo): Remove dead code.
28574
28575 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28576
28577 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28578 the internal register number, for any "real" register.
28579
28580 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28581
28582 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28583 correct numbers for TFHAR, TFIAR, TEXASR.
28584
28585 2019-05-02 Richard Biener <rguenther@suse.de>
28586
28587 PR tree-optimization/89653
28588 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28589 update-address-taken before the pass.
28590 * passes.def (pass_tree_loop_init): Put comment before it.
28591
28592 2019-05-02 Richard Biener <rguenther@suse.de>
28593
28594 PR tree-optimization/89509
28595 * tree-ssa-structalias.c (compute_dependence_clique): Look
28596 at the first subvar when determining whether it is restrict.
28597
28598 2019-05-02 Richard Biener <rguenther@suse.de>
28599
28600 PR tree-optimization/90273
28601 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28602 useless debug stmts.
28603
28604 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28605
28606 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28607 ACLE branch.
28608 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28609 SVE ACLE branch.
28610 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28611 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28612 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28613 (vectorizable_reduction): Use the functions above to vectorize in a
28614 fully masked loop codes that don't have a conditional internal
28615 function.
28616
28617 2019-05-02 Martin Liska <mliska@suse.cz>
28618
28619 * cgraphclones.c: Call valid_attribute_p with 1 for
28620 target_clone.
28621 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28622 it's for target attribute.
28623 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28624 Add new boolean argument.
28625 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28626 Likewise.
28627 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28628 to ix86_valid_target_attribute_inner_p.
28629 (ix86_valid_target_attribute_p): Pass flags argument to
28630 ix86_valid_target_attribute_inner_p.
28631 (get_builtin_code_for_version): Use 0 as it's target attribute.
28632
28633 2019-05-02 Martin Liska <mliska@suse.cz>
28634
28635 * gcc.c (process_command): Add dummy file only
28636 if n_infiles == 0.
28637 * opts-global.c (decode_options): Pass lang_mask.
28638 * opts.c (print_help): New function.
28639 (finish_options): Print --help if help_option_argument
28640 is set.
28641 (common_handle_option): Factor out content of OPT__help_
28642 into print_help.
28643 * opts.h (finish_options): Add new argument.
28644
28645 2019-05-02 Martin Liska <mliska@suse.cz>
28646
28647 PR target/88809
28648 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28649 With -minline-all-stringops use inline expansion using 4B loop.
28650 * doc/invoke.texi: Document the change of
28651 -minline-all-stringops.
28652
28653 2019-05-01 Jeff Law <law@redhat.com>
28654
28655 PR tree-optimization/88797
28656 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28657 PHI feeds a conditional on the RHS of an assignment.
28658
28659 2019-04-30 Andrew Waterman <andrew@sifive.com>
28660 Jim Wilson <jimw@sifive.com>
28661
28662 * config/riscv/constraints.md (L): New.
28663 * config/riscv/predicates.md (lui_operand): New.
28664 (sfb_alu_operand): New.
28665 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28666 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28667 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28668 * config/riscv/risc.md (type): Add sfb_alu.
28669 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28670 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28671 (branch_zero<mode>): Delete.
28672 (mov<mode>cc): New.
28673 (mov<GPR:mode><X:mode>cc): Likewise.
28674 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28675
28676 2019-04-30 Nathan Sidwell <nathan@acm.org>
28677
28678 * tree.h (MARK_TS_EXP): New.
28679
28680 2019-04-30 Martin Liska <mliska@suse.cz>
28681
28682 * opts.c (enable_warning_as_error): Provide hints
28683 for unknown options.
28684
28685 2019-04-30 Martin Liska <mliska@suse.cz>
28686
28687 PR debug/90288
28688 * doc/invoke.texi: Add missing dash for gas-locview-support
28689 and gno-as-locview-support.
28690
28691 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28692
28693 PR target/89093
28694 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28695 whitespace at the start of target attribute string.
28696
28697 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28698
28699 PR target/86538
28700 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28701 Define __ARM_FEATURE_ATOMICS.
28702
28703 2019-04-30 Martin Liska <mliska@suse.cz>
28704
28705 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28706 into built_in_function enum. Remove code for endp == 2 and
28707 use BUILT_IN_* constants.
28708 (gimple_fold_builtin): Call the function with fcode.
28709
28710 2019-04-30 Martin Liska <mliska@suse.cz>
28711
28712 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28713 DECL_FUNCTION_CODE into ix86_builtins enum before
28714 the switch statement.
28715
28716 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28717
28718 PR tree-optimization/89475
28719 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28720 calls.
28721
28722 2019-04-30 Martin Liska <mliska@suse.cz>
28723
28724 PR translation/90274
28725 * opts.c (print_filtered_help): Wrap string in _(...).
28726
28727 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28728
28729 PR tree-optimization/90240
28730 Revert:
28731 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28732
28733 PR tree-optimization/90078
28734 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28735 checks for infinite_cost overflow.
28736
28737 2019-04-29 Jeff Law <law@redhat.com>
28738
28739 * passes.def: Move -Wrestrict pass after copy propagation.
28740
28741 2019-04-29 Maya Rashish <coypu@sdf.org>
28742
28743 * config.gcc (default_gnu_indirect_function): Default to yes
28744 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28745 sparc*-*-netbsd*, x86_64-*-netbsd*.
28746
28747 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28748
28749 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28750 where cond2 is NE_EXPR.
28751 (is_value_included_in): Update comment.
28752
28753 2019-04-29 Richard Biener <rguenther@suse.de>
28754
28755 PR tree-optimization/90278
28756 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28757 EH on comparison simplification.
28758
28759 2019-04-29 Jason Merrill <jason@redhat.com>
28760
28761 PR c++/82081 - tail call optimization breaks noexcept
28762 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28763 nothrow function to a might-throw function into a tail call.
28764
28765 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28766
28767 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28768 (DDR_INNER_LOOP): Likewise.
28769 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28770 (initialize_data_dependence_relation): Likewise.
28771 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28772
28773 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28774
28775 PR rtl-optimization/90257
28776 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28777 return value.
28778
28779 Revert the revert:
28780 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28781
28782 PR target/90178
28783 Revert:
28784 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28785
28786 Revert the revert:
28787 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28788
28789 Revert:
28790 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28791
28792 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28793
28794 2019-04-29 Richard Biener <rguenther@suse.de>
28795
28796 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28797 rhs issue a reset.
28798
28799 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28800
28801 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28802 varasm.h, and netbsd-protos.h.
28803
28804 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28805
28806 PR target/89261
28807 * config/i386/i386-protos.h (ix86_data_alignment): Change
28808 the second argument type to unsigned int.
28809 * config/i386/i386.c (ix86_data_alignment): Change "align"
28810 argument type to unsigned int.
28811
28812 2019-04-27 Martin Liska <mliska@suse.cz>
28813
28814 PR middle-end/90258
28815 * opt-suggestions.c (option_proposer::build_option_suggestions):
28816 When get_valid_option_values returns empty values, add the
28817 misspelling candidate.
28818
28819 2019-04-26 Jim Wilson <jimw@sifive.com>
28820
28821 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28822 parameter.
28823 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28824 Pass orig_mode to riscv_build_integer.
28825 (riscv_split_integer): Pass mode to riscv_move_integer.
28826 (riscv_legitimize_const_move): Likewise.
28827 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28828 promoted_mode. Replace force_reg call with code to load constant into
28829 promoted reg and then subreg it for the store.
28830 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28831 riscv_move_integer.
28832
28833 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28834
28835 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28836 corrupt codes.
28837
28838 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28839
28840 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28841 commentary about the encoding of precision.
28842
28843 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28844
28845 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28846 * config/i386/t-freebsd64: New file.
28847 * config.gcc: Add the t-freebsd64 for multilib support.
28848
28849 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28850
28851 * doc/extend.texi (vector_size): Add missing comma after @xref.
28852
28853 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28854
28855 * BASE-VER: Set to 10.0.0.
28856
28857 2019-04-25 Richard Biener <rguenther@suse.de>
28858
28859 PR middle-end/89765
28860 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28861 VIEW_CONVERT_EXPR into one operating on an rvalue.
28862
28863 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28864
28865 PR target/89929
28866 * config/i386/i386.c (feature_priority): Moved to file scope.
28867 (processor_features): Likewise.
28868 (processor_model): Likewise.
28869 (_arch_names_table): Likewise.
28870 (arch_names_table): Likewise.
28871 (_feature_list): Removed.
28872 (feature_list): Likewise.
28873 (_isa_names_table): Moved to file scope. Add priority.
28874 (isa_names_table): Likewise.
28875 (get_builtin_code_for_version): Replace feature_list with
28876 isa_names_table. Update error message for P_ZERO priority.
28877
28878 2019-04-25 Richard Biener <rguenther@suse.de>
28879
28880 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28881 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28882
28883 2019-04-24 Jeff Law <law@redhat.com>
28884
28885 PR tree-optimization/90037
28886 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28887 * passes.def: Replace all instance of phi-only cprop with the
28888 lattice propagator. Move propagation pass from after erroneous
28889 path isolation to before erroneous path isolation.
28890 * tree-ssa-phionlycprop.c: Remove.
28891
28892 2019-04-24 Richard Biener <rguenther@suse.de>
28893
28894 PR middle-end/90213
28895 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28896 by size and BITS_PER_UNIT on poly-wide-ints.
28897
28898 2019-04-25 Richard Biener <rguenther@suse.de>
28899
28900 PR middle-end/90194
28901 * match.pd: Add pattern to simplify view-conversion of an
28902 empty constructor.
28903
28904 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28905
28906 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28907 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28908 for Go on 32 bit AIX.
28909 * config/rs6000/aix72.h: Likewise.
28910
28911 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28912
28913 PR target/90193
28914 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28915 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28916
28917 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28918
28919 PR target/89952
28920 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28921 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28922 for restored hard frame pointer.
28923 (s390_sched_dependencies_evaluation): Implement new target hook.
28924 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28925
28926 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28927
28928 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28929 * config/arc/arc.c (arc_init): Cleanup warning message.
28930 (arc_override_options): Likewise.
28931
28932 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28933
28934 PR target/90187
28935 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28936 a register if both if_true and if_false are MEMs.
28937
28938 PR tree-optimization/90208
28939 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28940 after labels of new_bb, not before them.
28941
28942 PR tree-optimization/90211
28943 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28944 which are not SSA_NAMEs.
28945
28946 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28947
28948 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28949 AArch64.
28950 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28951
28952 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28953
28954 PR rtl-optimization/87979
28955 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28956 not equal zero.
28957
28958 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28959
28960 PR rtl-optimization/84032
28961 * modulo-sched.c (ps_insn_find_column): Change condition so that
28962 branch will always be the last insn in a row inside partial
28963 schedule.
28964
28965 2019-04-23 Richard Biener <rguenther@suse.de>
28966
28967 PR debug/90131
28968 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28969 dest_single_pred_p argument.
28970 (remove_forwarder_block): Adjust.
28971 (remove_forwarder_block_with_phi): Likewise.
28972
28973 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28974 Bernd Edlinger <bernd.edlinger@hotmail.de>
28975 Jakub Jelinek <jakub@redhat.com>
28976
28977 PR target/89093
28978 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28979 if used with general-regs-only.
28980 (arm_conditional_register_usage): Don't add non-general regs if
28981 general-regs-only.
28982 (arm_valid_target_attribute_rec): Handle general-regs-only.
28983 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28984 general-regs-only.
28985 (TARGET_HARD_FLOAT_SUB): Define.
28986 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28987 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28988 (TARGET_REALLY_IWMMXT2): Likewise.
28989 * config/arm/arm.opt: Add -mgeneral-regs-only.
28990 * doc/extend.texi: Document ARM general-regs-only target.
28991 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28992
28993 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28994
28995 PR tree-optimization/90078
28996 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28997 checks for infinite_cost overflow.
28998
28999 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29000
29001 PR tree-optimization/90021
29002 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
29003 and check univariate against it.
29004 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
29005 * tree-data-ref.c (add_other_self_distances): Pass new argument.
29006
29007 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
29008
29009 PR target/90178
29010 Revert:
29011 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
29012
29013 Revert the revert:
29014 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
29015
29016 Revert:
29017 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
29018
29019 * lra-spills.c (lra_final_code_change): Remove useless move insns.
29020
29021 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
29022
29023 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
29024 names using operand format, rather than hard-wired.
29025 (speculation_barrier): Likewise.
29026
29027 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
29028
29029 PR tree-optimization/88055
29030 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
29031 (gen_one_condition): Use it if !HONOR_NANS.
29032
29033 2019-04-19 Jakub Jelinek <jakub@redhat.com>
29034
29035 PR middle-end/90139
29036 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
29037 assign_temp instead of gen_reg_rtx.
29038
29039 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
29040
29041 PR translation/90118
29042 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29043 Add missing space before %<.
29044
29045 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
29046
29047 PR rtl-optimization/87871
29048 * ira-lives.c (make_object_dead): Don't add conflicts to
29049 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
29050
29051 2019-04-18 Martin Sebor <msebor@redhat.com>
29052
29053 PR middle-end/89797
29054 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
29055 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
29056 assuming type size fits in SHWI.
29057
29058 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
29059
29060 PR ipa/85051
29061 * ipa-inline.c (flatten_function): New parameter UPDATE.
29062 (ipa_inline, early_inliner): Use it.
29063
29064 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29065
29066 * fold-const.c (int_const_binop): Return early on failure.
29067
29068 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29069
29070 PR middle-end/85164
29071 * combine.c (force_int_to_mode): Cast the argument rather than
29072 the result of known_alignment.
29073 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
29074
29075 2019-04-18 Richard Biener <rguenther@suse.de>
29076
29077 PR debug/90131
29078 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
29079 out from ...
29080 (remove_forwarder_block): ... here.
29081 (remove_forwarder_block_with_phi): Also move debug stmts here.
29082
29083 2019-04-18 Jakub Jelinek <jakub@redhat.com>
29084
29085 PR translation/79183
29086 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
29087 inform where appropriate.
29088
29089 2019-04-18 Richard Biener <rguenther@suse.de>
29090
29091 * tree.c (get_qualified_type): Put found type variants at the
29092 head of the variant list.
29093
29094 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29095
29096 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
29097
29098 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
29099
29100 PR target/90125
29101 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
29102 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
29103 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
29104 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
29105 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
29106
29107 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
29108
29109 * ira-conflicts.c (print_allocno_conflicts): Always print something,
29110 even for allocno's with no conflicts.
29111 (print_conflicts): Print an extra newline.
29112
29113 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29114
29115 * auto-inc-dec.c (attempt_change): Set the alignment of the
29116 temporary memory to that of the original.
29117
29118 2019-04-17 Joao Moreira <jmoreira@suse.de>
29119
29120 * targhooks.c (default_print_patchable_function_entry): Emit
29121 __patchable_function_entries section with writable flags to allow
29122 relocation resolution.
29123
29124 2019-04-17 Jonny Grant <jg@jguk.org>
29125
29126 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
29127
29128 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29129
29130 PR middle-end/90095
29131 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
29132 on lowpart SUBREGs.
29133
29134 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
29135
29136 * config/arc/arc.c (arc_init): Format diagnostic string.
29137 (arc_override_options): Likewise.
29138 (check_if_valid_regno_const): Likewise.
29139 (arc_reorg): Likewise.
29140
29141 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29142
29143 PR target/17108
29144 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
29145 name.
29146 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
29147 name.
29148 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
29149 (*movdi_update1): Use Pmode.
29150 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
29151 (movdi_<mode>_update_stack): Rename to ...
29152 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
29153 use Pmode.
29154 (*movsi_update1): Use Pmode.
29155 (*movsi_update2): Use Pmode.
29156 (movsi_update): Rename to ...
29157 (movsi_<mode>_update): ... this. Use Pmode.
29158 (movsi_update_stack): Fix condition.
29159 (*movhi_update1): Use Pmode. Fix argument to
29160 avoiding_indexed_address_p.
29161 (*movhi_update2): Ditto.
29162 (*movhi_update3): Ditto.
29163 (*movhi_update4): Ditto.
29164 (*movqi_update1): Ditto.
29165 (*movqi_update2): Ditto.
29166 (*movqi_update3): Ditto.
29167 (*movsf_update1, *movdf_update1): Merge, rename to...
29168 (*mov<mode>_update1): This. Use Pmode. Fix argument to
29169 avoiding_indexed_address_p. Add "size" attribute.
29170 (*movsf_update2, *movdf_update2): Merge, rename to...
29171 (*mov<mode>_update2): This. Ditto.
29172 (*movsf_update3): Use Pmode. Fix argument to
29173 avoiding_indexed_address_p.
29174 (*movsf_update4): Ditto.
29175 (allocate_stack): Simplify condition. Adjust pattern names.
29176
29177 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29178
29179 PR target/89093
29180 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
29181 whitespace at the start of target attribute string.
29182
29183 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
29184
29185 PR target/84369
29186 * config/rs6000/power9.md: Add store forwarding bypass.
29187
29188 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
29189
29190 PR debug/89528
29191 * valtrack.c (dead_debug_insert_temp): Reset debug references
29192 to the return value of a call being removed.
29193
29194 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29195
29196 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
29197 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
29198 implement target hook.
29199 (arc_memory_move_cost): New function.
29200 (TARGET_REGISTER_MOVE_COST): Define.
29201 (TARGET_MEMORY_MOVE_COST): Likewise.
29202 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
29203 (MEMORY_MOVE_COST): Likewise.
29204
29205 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29206
29207 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
29208 (sibcall_value_insn): Likewise.
29209 * config/arc/constraints.md (Rs5): Remove.
29210
29211 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29212
29213 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
29214 for last two fake registers.
29215 (arc_conditional_register_usage): Make sure fake frame and arg
29216 pointer regs are in general regs class.
29217 (FRAME_POINTER_MASK): Remove.
29218 (RETURN_ADDR_MASK): Remove.
29219 (arc_must_save_register): Use hard frame regnum.
29220 (frame_restore_reg): Use hard_frame_pointer_rtx.
29221 (arc_save_callee_saves): Likewise.
29222 (arc_restore_callee_saves): Likewise.
29223 (arc_save_callee_enter): Likewise.
29224 (arc_restore_callee_leave): Likewise.
29225 (arc_save_callee_milli): Likewise.
29226 (arc_eh_return_address_location): Likewise.
29227 (arc_check_multi): Use hard frame regnum.
29228 (arc_can_eliminate): Likewise.
29229 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
29230 for register allocator.
29231 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
29232 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
29233 (FRAME_POINTER_REGNUM): Change it to a fake register.
29234 (HARD_FRAME_POINTER_REGNUM): Defined.
29235 (ARG_POINTER_REGNUM): Change it to a new fake register.
29236 (ELIMINABLE_REGS): Update.
29237 (REGISTER_NAMES): Update names.
29238 * config/arc/arc.md (LP_START): Remove.
29239 (LP_END): Likewise.
29240 (shift_si3_loop): Update pattern.
29241
29242 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29243
29244 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
29245 to avoid delay slot scheduling.
29246 (arc_must_save_register): Don't save SP.
29247 * config/arc/arc.md (stack_tie): Remove.
29248 (UNSPEC_ARC_STKTIE): Likewise.
29249
29250 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
29251 Shiva Chen <shiva0217@gmail.com>
29252
29253 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
29254 code gen with large shift amount.
29255
29256 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
29257
29258 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
29259 subreg.
29260
29261 2019-04-16 Jakub Jelinek <jakub@redhat.com>
29262
29263 PR target/90096
29264 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
29265 print -m64/-mx32/-m32 if it is true.
29266 (ix86_debug_options, ix86_function_specific_print): Pass true as
29267 ADD_ABI_P to ix86_target_string.
29268 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
29269 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
29270 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
29271
29272 PR rtl-optimization/90082
29273 * dce.c (can_delete_call): New function.
29274 (deletable_insn_p, mark_insn): Use it.
29275
29276 PR tree-optimization/90090
29277 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
29278 throw internally.
29279 (is_division_by_square): Likewise. Formatting fix.
29280
29281 2019-04-16 Richard Biener <rguenther@suse.de>
29282
29283 PR tree-optimization/56049
29284 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
29285 equality check if alias-set zero will prevail.
29286
29287 2019-04-15 Jeff Law <law@redhat.com>
29288
29289 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
29290 size and alignment as unsigned.
29291
29292 2019-04-15 Richard Biener <rguenther@suse.de>
29293
29294 PR debug/90074
29295 * tree-loop-distribution.c (destroy_loop): Preserve correct
29296 debug info.
29297
29298 2019-04-15 Richard Biener <rguenther@suse.de>
29299
29300 PR tree-optimization/90071
29301 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
29302 abnormal operands from def stmts.
29303
29304 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
29305
29306 PR rtl-optimization/89794
29307 * combine.c (count_auto_inc): New function.
29308 (try_combine): Count how many auto_inc expressions there were in the
29309 original instructions. Ensure we have the same number in the new
29310 instructions. Remove the code that tried to ensure auto_inc side
29311 effects on i1 and i0 are not lost.
29312
29313 2019-04-15 Richard Biener <rguenther@suse.de>
29314
29315 PR ipa/88936
29316 * tree.h (auto_var_p): Declare.
29317 * tree.c (auto_var_p): New function, split out from ...
29318 (auto_var_in_fn_p): ... here.
29319 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
29320 member.
29321 (new_var_info): Initialize it.
29322 (set_uids_in_ptset): Also set the shadow variable uid if required.
29323 (ipa_pta_execute): Postprocess points-to solutions assigning
29324 shadow variable uids for locals that may reach their containing
29325 function recursively.
29326 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
29327 assert but instead check whether the points-to solution is
29328 a singleton.
29329
29330 2019-04-15 Martin Jambor <mjambor@suse.cz>
29331
29332 PR ipa/pr89693
29333 * cgraph.c (clone_of_p): Loop over clone chain for each step in
29334 the thunk chain.
29335
29336 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29337
29338 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
29339
29340 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29341 Kito Cheng <kito.cheng@gmail.com>
29342 Shiva Chen <shiva0217@gmail.com>
29343
29344 * config/nds32/nds32-md-auxiliary.c
29345 (nds32_legitimize_pic_address): Use new PIC pattern.
29346 (nds32_legitimize_tls_address): Use new TLS pattern.
29347 (nds32_output_symrel): New.
29348 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
29349 (nds32_alloc_relax_group_id): Ditto.
29350 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
29351 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
29352 relax_group_id.
29353 (nds32_group_tls_insn): Ditto.
29354 (nds32_group_float_insns): Ditto.
29355 * config/nds32/nds32.md (tls_le): New.
29356 (sym_got): Ditto.
29357
29358 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
29359
29360 * configure: Add nds32 target for dwarf2 debug_line checking.
29361 * configure.ac: Regenerated.
29362
29363 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
29364
29365 PR lto/89358
29366 * ipa-devirt.c (skip_in_fields_list_p): New.
29367 (odr_types_equivalent_p): Use it.
29368
29369 2019-04-13 Jakub Jelinek <jakub@redhat.com>
29370
29371 PR target/89093
29372 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29373 instead of strncmp when checking for thumb and arm. Formatting fixes.
29374
29375 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
29376
29377 * doc/install.texi: Document --with-target-system-zlib.
29378
29379 2019-04-12 Martin Sebor <msebor@redhat.com>
29380
29381 PR c/88383
29382 PR c/89288
29383 PR c/89798
29384 PR c/89797
29385 * targhooks.c (default_vector_alignment): Avoid assuming
29386 argument fits in SHWI.
29387 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29388 a shift expression.
29389 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29390
29391 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29392
29393 PR rtl-optimization/89965
29394 * dce.c: Include rtl-iter.h.
29395 (struct check_argument_load_data): New type.
29396 (check_argument_load): New function.
29397 (find_call_stack_args): Check for loads from stack slots still tracked
29398 in sp_bytes and punt if any is found.
29399
29400 * config/mips/loongson-mmiintrin.h: Fix up #error message.
29401
29402 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
29403
29404 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29405 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29406
29407 2019-04-12 Martin Liska <mliska@suse.cz>
29408
29409 PR middle-end/89970
29410 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29411 in error message.
29412 (separate_attrs): Handle multiple 'default's.
29413 (expand_target_clones): Rework error handling code.
29414
29415 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
29416
29417 PR target/87532
29418 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29419 mode of vector rather than mode of destination for move instruction.
29420 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29421 Use QI inner mode with V16QI vector mode.
29422
29423 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29424
29425 PR target/52726
29426 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29427 "invalid %%t operand" in output_operand_lossage message.
29428
29429 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
29430
29431 * config/s390/predicates.md (permute_pattern_operand): New
29432 predicate.
29433 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29434 operand for the permute pattern.
29435 ("*vec_perm<mode>"): New insn definition.
29436 ("bswap<mode>"): Generate the permute pattern operand in the
29437 expander and perform the operand reloads for pre arch13 level
29438 already.
29439 ("*bswap<mode>_emu"): Rename to ...
29440 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29441 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29442 Add the USE operand for the permute pattern.
29443 ("*vec_set_bswap_vec<mode>"): Likewise.
29444
29445 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29446
29447 PR c/89946
29448 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29449 and gcc_unreachable if it fails, just call tree_to_uhwi which
29450 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29451 Start warning message with a lower-case letter. Formatting fixes.
29452
29453 PR rtl-optimization/90026
29454 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29455 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29456 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29457 in cfglayout mode, use emit_barrier_after_bb.
29458
29459 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29460
29461 PR rtl-optimization/87763
29462 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29463 New Instruction.
29464
29465 2019-04-11 Tom de Vries <tdevries@suse.de>
29466
29467 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29468 max macro using statement expression.
29469
29470 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29471
29472 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29473 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29474 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29475 read_only_private_data_section using xcoff_private_rodata_section_name.
29476 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29477
29478 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29479
29480 PR target/90016
29481 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29482
29483 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29484
29485 PR rtl-optimization/89965
29486 * dce.c (sp_based_mem_offset): New function.
29487 (find_call_stack_args): Use sp_based_mem_offset.
29488
29489 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29490
29491 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29492
29493 2019-04-11 Richard Biener <rguenther@suse.de>
29494
29495 PR tree-optimization/90020
29496 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29497 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29498 * tree-ssa-pre.c (compute_avail): Use it to not put
29499 possibly trapping references after a call that might not
29500 return into EXP_GEN.
29501 * gcse.c (compute_hash_table_work): Do not elide
29502 marking a block containing a call if the call might not
29503 return.
29504
29505 2019-04-11 Richard Biener <rguenther@suse.de>
29506
29507 PR tree-optimization/90018
29508 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29509 Test both SLP and interleaving variants.
29510
29511 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29512
29513 * config/s390/8561.md: New file.
29514 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29515 Add arch13 cpu model.
29516 * config/s390/s390-opts.h (enum processor_type): Likewise.
29517 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29518 (s390_get_unit_mask): Likewise.
29519 (s390_is_fpd): Likewise.
29520 (s390_is_fxd): Likewise.
29521 * config/s390/s390.h (s390_tune_attr): Likewise.
29522 * config/s390/s390.md: Include arch13 pipeline description.
29523 * config/s390/s390.opt: Add arch13.
29524
29525 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29526
29527 PR rtl-optimization/87763
29528 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29529 New prototype.
29530 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29531 New function.
29532 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29533 New instruction.
29534 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29535 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29536 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29537 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29538
29539 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29540
29541 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29542 "Although" in -fipa-icf documentation.
29543
29544 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29545 of using multiple -g options.
29546
29547 2019-04-10 Martin Liska <mliska@suse.cz>
29548
29549 PR gcov-profile/89959
29550 * doc/gcov.texi: Make documentation of -x option
29551 more precise.
29552
29553 2019-04-10 Richard Biener <rguenther@suse.de>
29554
29555 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29556 member.
29557 (DR_GROUP_SAME_DR_STMT): Remove.
29558 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29559 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29560 replace with assert.
29561 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29562 (vect_record_grouped_load_vectors): Remove unreachable code.
29563
29564 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29565
29566 PR target/90016
29567 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29568 obsolete reference to N.
29569
29570 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29571
29572 PR middle-end/90025
29573 * expr.c (store_expr): Set properly size on the MEM passed to
29574 clear_storage.
29575
29576 PR c++/90010
29577 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29578 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29579 translation is needed, and when translation is needed, only append
29580 ... if the string length is hostsz or more bytes long. Avoid using
29581 strncpy or strcat.
29582
29583 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29584
29585 PR target/90024
29586 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29587 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29588 into three.
29589 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29590 differences directly.
29591 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29592
29593 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29594
29595 PR translation/90011
29596 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29597 from diagnostics.
29598 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29599 diagnostics.
29600 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29601 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29602 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29603 trailing space from -gsplit-dwarf diagnostics.
29604
29605 PR tree-optimization/89998
29606 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29607 instead of integer_type_node if possible, don't add ranges if return
29608 type is not compatible with int.
29609 * gimple-fold.c (gimple_fold_builtin_sprintf,
29610 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29611 integer_type_node.
29612
29613 2019-04-09 Martin Liska <mliska@suse.cz>
29614
29615 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29616 * doc/install.texi: Document the new config.
29617
29618 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29619
29620 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29621 use gimple_expr_type for load and store calls. Skip over the
29622 condition argument in a conditional internal function.
29623 Protect use of TREE_INT_CST_LOW.
29624
29625 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29626
29627 PR target/90015
29628 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29629 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29630 trailing period from it too.
29631
29632 2019-04-08 wu yuan <wuyuan5@huawei.com>
29633
29634 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29635 * config/aarch64/aarch64.md: Add "tsv110.md".
29636 * config/aarch64/tsv110.md: New file.
29637
29638 2019-04-08 Richard Biener <rguenther@suse.de>
29639
29640 PR tree-optimization/90006
29641 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29642 calls like lrint.
29643
29644 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29645
29646 PR target/83033
29647 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29648 construction.
29649 (fma_root_node): Likewise.
29650 (func_fma_steering): Likewise.
29651
29652 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29653
29654 PR rtl-optimization/89865
29655 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29656
29657 PR rtl-optimization/89865
29658 * config/i386/i386.md
29659 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29660 numbers not to clash with the additional operands[4].
29661 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29662 with extra register copy in the middle.
29663
29664 2019-04-08 Martin Liska <mliska@suse.cz>
29665
29666 PR gcov-profile/89961
29667 * doc/gcov.texi: Document data_file.
29668 * gcov.c (generate_results): Add data_info into JSON output.
29669
29670 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29671
29672 PR tree-optimization/89725
29673 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29674 loop's chrec as invariant symbol.
29675 * tree-chrec.h (chrec_contains_symbols): New parameter.
29676 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29677 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29678 function of loops not in DDR's loop_nest.
29679 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29680
29681 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29682
29683 PR target/89623
29684 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29685 Mask.
29686
29687 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29688
29689 PR target/89945
29690 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29691 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29692
29693 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29694
29695 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29696 targetm.fixed_condition_code_regs.
29697
29698 2019-04-05 Richard Biener <rguenther@suse.de>
29699
29700 PR debug/89892
29701 PR debug/89905
29702 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29703 debug bind stmts but reset them if they are not valid at the
29704 destination.
29705
29706 2019-04-05 Martin Liska <mliska@suse.cz>
29707
29708 PR translation/89936
29709 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29710 order to wrap keywords or arguments.
29711 * collect2.c (main): Likewise.
29712 (scan_prog_file): Likewise.
29713 (scan_libraries): Likewise.
29714 * common/config/riscv/riscv-common.c
29715 (riscv_subset_list::parsing_subset_version): Likewise.
29716 (riscv_subset_list::parse_std_ext): Likewise.
29717 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29718 Likewise.
29719 * config/arm/arm.c (arm_option_override): Likewise.
29720 * config/cris/cris.c (cris_print_operand): Likewise.
29721 * config/darwin-c.c (darwin_pragma_options): Likewise.
29722 (darwin_pragma_unused): Likewise.
29723 (darwin_pragma_ms_struct): Likewise.
29724 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29725 * config/i386/i386.c (print_reg): Likewise.
29726 (ix86_print_operand): Likewise.
29727 * config/i386/xm-djgpp.h: Likewise.
29728 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29729 * config/m32c/m32c.c (m32c_option_override): Likewise.
29730 * config/msp430/msp430.c (msp430_option_override): Likewise.
29731 * config/nds32/nds32.c (nds32_option_override): Likewise.
29732 * config/nvptx/mkoffload.c (main): Likewise.
29733 * config/rx/rx.c (rx_print_operand): Likewise.
29734 (valid_psw_flag): Likewise.
29735 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29736 (vms_pragma_nomember_alignment): Likewise.
29737 (vms_pragma_extern_model): Likewise.
29738 * lto-wrapper.c (compile_offload_image): Likewise.
29739 * omp-offload.c (oacc_parse_default_dims): Likewise.
29740 * symtab.c (symtab_node::verify_base): Likewise.
29741 * tlink.c (recompile_files): Likewise.
29742 (start_tweaking): Likewise.
29743 * tree-profile.c (parse_profile_filter): Likewise.
29744
29745 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29746
29747 PR tree-optimization/89956
29748 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29749 multiple negates of the same value.
29750
29751 2019-04-04 Martin Sebor <msebor@redhat.com>
29752
29753 PR middle-end/89957
29754 PR middle-end/89911
29755 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29756 have the same precision since the function crashes otherwise.
29757 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29758 has non-zero arguments.
29759
29760 2019-04-04 Martin Sebor <msebor@redhat.com>
29761
29762 PR middle-end/89934
29763 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29764 out if the number of arguments is less than expected.
29765
29766 2019-04-04 Jeff Law <law@redhat.com>
29767
29768 PR rtl-optimization/89399
29769 * ree.c (combine_set_extension): Use single_set rather than
29770 digging into PATTERN for items on the candidate list.
29771 (combine_reaching_defs): Likewise.
29772
29773 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29774
29775 PR rtl-optimization/46590
29776 * loop-invariant.c (find_defs): Move df_remove_problem and
29777 df_process_deferred_rescans to move_invariants.
29778 Move df_live_add_problem and df_live_set_all_dirty calls
29779 to move_invariants.
29780 (move_invariants): Likewise.
29781 (move_loop_invariants): Likewise, making the df_live calls
29782 conditional on -O. Remove the problem again if we added it
29783 locally.
29784
29785 2019-04-03 qing zhao <qing.zhao@oracle.com>
29786
29787 PR tree-optimization/89730
29788 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29789 -flive-patching=inline-only-static.
29790 (can_inline_edge_by_limits_p): Add the checking for
29791 -flive-patching=inline-only-static and grant always_inline
29792 even when -flive-patching=inline-only-static is specified.
29793
29794 2019-04-03 Jeff Law <law@redhat.com>
29795
29796 PR rtl-optimization/81025
29797 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29798
29799 2019-04-03 Richard Biener <rguenther@suse.de>
29800
29801 PR tree-optimization/84101
29802 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29803 regs.h for hard_regno_nregs.
29804 (cfun_returns): New helper.
29805 (vect_model_store_cost): When vectorizing a store to a decl
29806 we return and the function ABI returns in a multi-reg location
29807 account for the possible spilling that will happen.
29808
29809 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29810
29811 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29812 displacement addresses for vector mode operands.
29813
29814 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29815
29816 * config/arc/arc.c (GMASK_LEN): Define.
29817 (arc_restore_callee_saves): Restore first blink when
29818 !optimize_size.
29819
29820 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29821
29822 * doc/extend.texi: Add deprecated comment on sign-return-address
29823 function attribute and add mbranch-protection.
29824 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29825
29826 2019-04-03 Richard Biener <rguenther@suse.de>
29827
29828 PR lto/89896
29829 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29830 the all target phony.
29831
29832 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29833
29834 PR target/89902
29835 PR target/89903
29836 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29837 Return false for variable DImode shifts.
29838 (dimode_scalar_chain::compute_convert_gain): Do not handle
29839 register count operand in variable DImode shifts.
29840 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29841 count argument of a variable shift instruction to a vector register.
29842 (dimode_scalar_chain::convert_reg): Remove support to convert
29843 count argument of a variable shift instruction.
29844
29845 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29846
29847 PR rtl-optimization/84206
29848 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29849 iterating over loop headers.
29850
29851 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29852
29853 PR rtl-optimization/85876
29854 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29855 beyond the original fence.
29856
29857 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29858
29859 * config.gcc: Mark spu* targets as deprecated/obsolete.
29860
29861 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29862
29863 * config/s390/s390-builtin-types.def: New builtin function type
29864 definitions. Remove unused types.
29865 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29866 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29867 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29868 overloaded builtins.
29869 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29870 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29871 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29872 (vec_double, vec_signed, vec_unsigned): Define to use the new
29873 overloaded builtins.
29874 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29875 Remove expanders.
29876
29877 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29878
29879 * config/s390/s390-builtin-types.def: New builtin function type
29880 definitions.
29881 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29882 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29883 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29884 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29885 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29886 constant definitions.
29887 * config/s390/vecintrin.h (vec_search_string_cc)
29888 (vec_search_string_until_zero_cc): New builtin name definitions.
29889 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29890 expanders.
29891 ("vec_vstrs<mode>"): New insn definition.
29892
29893 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29894
29895 * config/s390/s390-builtin-types.def: Add new builtin function
29896 types.
29897 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29898 New overloaded builtins.
29899 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29900 s390_vsrd.
29901 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29902 (UNSPEC_VEC_SLDBYTE): ... this.
29903 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29904 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29905 definitions.
29906 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29907 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29908 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29909
29910 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29911
29912 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29913 New insn definition.
29914 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29915 * config/s390/vector.md (V_HW_HSD): ... here.
29916
29917 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29918
29919 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29920 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29921 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29922 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29923 New insn definitions.
29924
29925 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29926
29927 * config/s390/s390-builtin-types.def: Add new builtin function type.
29928 * config/s390/s390-builtins.def: Add overloaded builtin
29929 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29930 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29931 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29932 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29933 ("eltswap<mode>"): New expander.
29934 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29935 insn definitions.
29936
29937 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29938
29939 * config/s390/s390-builtin-types.def: Add new builtin function types.
29940 * config/s390/s390-builtins.def: Add overloaded builtin
29941 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29942 instructions.
29943 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29944 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29945 ("bswap<mode>"): New expander.
29946 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29947
29948 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29949
29950 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29951 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29952 vector builtin version number in __VEC__.
29953
29954 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29955
29956 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29957 iterators.
29958 (SFSI): New mode attribute.
29959 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29960 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29961 rename to ...
29962 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29963 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29964 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29965 ("floatsi<mode>2"): Add wcefb instruction.
29966
29967 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29968
29969 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29970 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29971 mode iterators.
29972 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29973 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29974 support 32 bit fp-int conversions. Rename to ...
29975 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29976 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29977 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29978 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29979 ... to these.
29980
29981 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29982
29983 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29984 if-then-else constructs if we can use the select instruction.
29985 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29986
29987 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29988
29989 * config/s390/s390.md ("*popcountdi_arch13_cc")
29990 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29991 definition.
29992 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29993 Append _z196 to make it ...
29994 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29995 ("popcounthi2_z196"): ... this.
29996 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29997 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29998
29999 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30000
30001 * config/s390/s390.c (s390_canonicalize_comparison): Convert
30002 certain compares for arch13 in order to make use of the condition
30003 code result produced by the new instructions.
30004 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
30005 nxrk, and nxgrk instruction patterns.
30006 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
30007 (inv_no): Add new code iterator together with some attributes.
30008 ("*andc_split_<mode>"): Disable splitter for arch13.
30009 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
30010 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
30011 ("*<ANDOR:bitops_name>c<GPR:mode>")
30012 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
30013 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
30014 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
30015 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
30016
30017 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30018
30019 * common/config/s390/s390-common.c (processor_flags_table): New
30020 entry for arch13.
30021 * config.gcc: Support arch13 with the --with-arch= configure flag.
30022 * config/s390/driver-native.c (s390_host_detect_local_cpu):
30023 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
30024 * config/s390/s390.c (s390_get_sched_attrmask)
30025 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
30026 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
30027 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
30028 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
30029 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
30030 definitions.
30031 * config/s390/s390.opt: Support arch13 as processor type in
30032 command line options.
30033
30034 2019-04-02 Martin Liska <mliska@suse.cz>
30035
30036 PR translation/89912
30037 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
30038 Fix param description of graphite-max-arrays-per-scop.
30039
30040 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
30041
30042 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
30043 (ASAN_CC1_SPEC): Use it in 64-bit mode.
30044 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
30045
30046 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30047
30048 PR rtl-optimization/85412
30049 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
30050 sel_sched_region_1, not after.
30051
30052 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30053
30054 PR rtl-optimization/86928
30055 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
30056 compute_live if necessary.
30057 (sel_redirect_edge_and_branch): Likewise.
30058
30059 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
30060
30061 PR rtl-optimization/89865
30062 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
30063 register if it is a part of small class.
30064
30065 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30066
30067 PR rtl-optimization/87273
30068 * sel-sched-ir.c (merge_fences): Remove assert.
30069
30070 2019-04-01 Richard Biener <rguenther@suse.de>
30071
30072 PR tree-optimization/46590
30073 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
30074 (dom_walker::m_reachability): Add in place of...
30075 (dom_walker::m_skip_unreachable_blocks): ...this.
30076 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
30077 Move complex initialization ...
30078 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
30079 lazily and initialize edge flags on each invocation.
30080 (dom_walker::bb_reachable): Use m_reachability.
30081
30082 2019-04-01 Martin Liska <mliska@suse.cz>
30083
30084 PR driver/89861
30085 * opt-suggestions.c (option_proposer::build_option_suggestions):
30086 Add variant without any argument in order to provide better
30087 hints.
30088
30089 2019-04-01 Richard Biener <rguenther@suse.de>
30090
30091 PR c/71598
30092 * gimple.c: Include langhooks.h.
30093 (gimple_get_alias_set): Treat enumeral types as the underlying
30094 integer type.
30095
30096 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
30097 Eric Botcazou <ebotcazou@adacore.com>
30098
30099 PR rtl-optimization/89862
30100 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
30101 that operates on the full registers for WORD_REGISTER_OPERATIONS
30102 architectures.
30103
30104 2019-03-29 Jim Wilson <jimw@sifive.com>
30105
30106 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
30107 Clear MASK_RVC and then set if C subset supported.
30108
30109 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30110
30111 PR c/89872
30112 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
30113 non-addressable complit into its initializer if it is volatile.
30114
30115 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
30116
30117 * opts-common.c (integral_argument): Set errno properly in one case.
30118
30119 2019-03-29 Martin Liska <mliska@suse.cz>
30120
30121 * doc/invoke.texi: Remove -Wchkp from documentation.
30122
30123 2019-03-29 Martin Liska <mliska@suse.cz>
30124
30125 * dbgcnt.c (print_limit_reach): New function.
30126 (dbg_cnt): Use it.
30127
30128 2019-03-29 Martin Liska <mliska@suse.cz>
30129
30130 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
30131 (dbg_cnt_process_opt): Parse first tokens aas
30132 dbg_cnt_process_single_pair is also using strtok.
30133
30134 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30135
30136 PR rtl-optimization/87485
30137 * function.c (expand_function_end): Move stack_protect_epilogue
30138 before loading of return value into hard register(s).
30139
30140 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30141
30142 PR middle-end/89621
30143 * tree-inline.h (struct copy_body_data): Add
30144 dont_remap_vla_if_no_change flag.
30145 * tree-inline.c (remap_type_3, remap_type_2): New functions.
30146 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
30147 and remap_type_2 returns false.
30148 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
30149 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
30150 only from where it is copied to nested contexts.
30151
30152 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30153
30154 PR target/89865
30155 * config/i386/i386.md (RMW operation with LEA peephole):
30156 Use LEAMODE mode attribute instead of SWI mode iterator for
30157 LEA pattern.
30158
30159 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30160
30161 PR target/89848
30162 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
30163 Also process XEXP (src, 0) of a shift insn.
30164
30165 2019-03-28 David Malcolm <dmalcolm@redhat.com>
30166
30167 PR middle-end/89725
30168 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
30169 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
30170
30171 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30172
30173 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
30174 test.
30175 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
30176 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
30177 immediately after first one with df_analyze in between, but rather
30178 process all bbs, queueing ones that need second pass in a worklist,
30179 df_analyze, process queued debug insn changes and if second pass is
30180 needed, process bbs from worklist, df_analyze, process queued debug
30181 insns again.
30182
30183 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
30184 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
30185 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
30186
30187 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
30188
30189 PR c/79022
30190 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
30191 definition.
30192
30193 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
30194
30195 PR target/85667
30196 * config/i386/i386.c (ix86_function_value_1): Call the newly added
30197 function for 32-bit MS_ABI.
30198 (function_value_ms_32): New function.
30199
30200 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
30201
30202 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
30203 (movdi): Call gen_movdi_symbol_save_scc.
30204 (gen_movdi_symbol_save_scc): New insn and split.
30205
30206 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
30207
30208 PR rtl-optimization/89313
30209 * function.c (matching_constraint_num): New static function.
30210 (match_asm_constraints_1): Use it. Fixup white space and comment.
30211 Don't replace inputs with non-matching constraints which conflict
30212 with early clobber outputs.
30213
30214 2019-03-27 Jeff Law <law@redhat.com>
30215
30216 PR rtl-optimization/87761
30217 PR rtl-optimization/89826
30218 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
30219 slightly later.
30220 (pass_cprop_hardreg::execute): Call df_analyze after adding the
30221 note problem to get REG_DEAD/REG_UNUSED notes updated.
30222
30223 2019-03-27 Richard Biener <rguenther@suse.de>
30224
30225 PR tree-optimization/89463
30226 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
30227 queue edges to remove.
30228 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
30229 dead stmts. Delay edge removal until PHIs are removed to
30230 make debug-stmt creation not confused by seemingly degenerate
30231 PHIs.
30232
30233 2019-03-27 Alan Modra <amodra@gmail.com>
30234
30235 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
30236 throughout file.
30237 * config/rs6000/darwin.h: Likewise.
30238 * config/rs6000/rs6000.c: Likewise.
30239
30240 2019-03-27 Alan Modra <amodra@gmail.com>
30241
30242 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
30243 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
30244
30245 2019-03-26 Andrew Waterman <andrew@sifive.com>
30246 Jim Wilson <jimw@sifive.com>
30247
30248 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
30249 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
30250 (generic_idivdi, generic_fmul_single, generic_fmul_double)
30251 (generic_fdiv, generic_fsqrt): Add check for generic tune.
30252 (generic_alu): Add auipc to type list.
30253 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
30254 (riscv_microarchitecture): Declare.
30255 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
30256 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
30257 field.
30258 (riscv_microarchitecture): New.
30259 (sifive_7_tune_info): New.
30260 (riscv_cpu_info_table): Add microarchitecture value for rocket and
30261 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
30262 entries.
30263 (riscv_store_data_bypass_p): New.
30264 (riscv_option_override): Set riscv_microarchitecture from
30265 cpu->microarchitecture.
30266 * config/riscv/riscv.md: Include sifive-7.md.
30267 (type): Add auipc.
30268 (tune): New.
30269 (auipc<mode>): Change type to auipc.
30270 (restore_stack_nonlocal): New.
30271 * config/riscv/sifive-7.md: New.
30272 * doc/invoke.texi (RISC-V Options): Update mtune docs.
30273
30274 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
30275
30276 PR target/89827
30277 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
30278 Also process XEXP (src, 0) of a shift insn.
30279
30280 2019-03-26 Richard Biener <rguenther@suse.de>
30281
30282 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
30283 (copy_debug_stmt): Likewise.
30284 (expand_call_inline): Likewise.
30285 (copy_bb): Avoid redundant lookup & set of gimple_block.
30286 * gimple-low.c (lower_gimple_return): Likewise.
30287 (lower_builtin_setjmp): Likewise.
30288
30289 2019-03-26 Jakub Jelinek <jakub@redhat.com>
30290
30291 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
30292 is constant 0, turn into static const data member initialized to false.
30293 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
30294 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
30295
30296 2019-03-26 Jason Merrill <jason@redhat.com>
30297 Jakub Jelinek <jakub@redhat.com>
30298
30299 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
30300 method.
30301 (mem_alloc_description::release_object_overhead): Fix comment typos.
30302 * hash-table.h (hash_table::~hash_table): Call
30303 release_instance_overhead only if m_entries is non-NULL, otherwise
30304 call unregister_descriptor.
30305
30306 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
30307
30308 PR tree-optimization/81740
30309 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30310 In case of outer loop vectorization, check for backward dependence
30311 at the inner loop if outer loop dependence is reversed.
30312
30313 2019-03-26 Alan Modra <amodra@gmail.com>
30314
30315 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
30316 rs6000_vector_mem init. Correct wI and wJ comment.
30317
30318 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
30319
30320 PR rtl-optimization/88347
30321 PR rtl-optimization/88423
30322 * sched-deps.c (sched_analyze_insn): Take into account that for
30323 tablejumps the barrier appears after a label and a jump_table_data.
30324
30325 2019-03-25 Martin Sebor <msebor@redhat.com>
30326
30327 PR c/89812
30328 * c-common.c (check_user_alignment): Rename local. Correct maximum
30329 alignment in diagnostic. Avoid assuming argument fits in SHWI,
30330 convert it to UHWI when it fits.
30331
30332 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
30333
30334 PR debug/86964
30335 * dwarf2out.c (premark_used_variables): New function.
30336 (prune_unused_types_walk): Do not mark not premarked external
30337 variables.
30338 (prune_unused_types): Call premark_used_variables.
30339
30340 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
30341
30342 PR rtl-optimization/89676
30343 * lra-constraints.c (curr_insn_transform): Do match reload for
30344 early clobbers when the match was successful only for different
30345 registers.
30346
30347 2019-03-25 Martin Sebor <msebor@redhat.com>
30348
30349 * doc/extend.texi (Common Type Attributes): Document vector_size.
30350 (Common Variable Attributes): Mention size constraint. Correct
30351 quoting and typos.
30352 (Vector Extensions): Use @dfn when defining bas type. Clarify
30353 base type and size constraints.
30354
30355 2019-03-25 Richard Biener <rguenther@suse.de>
30356
30357 PR tree-optimization/89789
30358 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
30359 changes from non-undefined back to undefined.
30360
30361 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
30362
30363 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
30364 heap string and a gc string, but since this variable is unknown to
30365 ggc the gc string might get reused and corrupted. Fixed by always
30366 using a heap string.
30367
30368 2019-03-25 Richard Biener <rguenther@suse.de>
30369
30370 PR tree-optimization/89779
30371 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30372 to remove IV defs, delay actual removal.
30373 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
30374 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30375 very end, properly also reset loop control IV information.
30376
30377 2019-03-25 Richard Biener <rguenther@suse.de>
30378
30379 PR tree-optimization/89802
30380 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30381 move EH data to folded stmt.
30382
30383 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30384
30385 * config/s390/s390-builtin-types.def: Remove few unused types and
30386 fix sort order for others.
30387
30388 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30389
30390 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30391 expected and found types with -mdebug during builtin matching.
30392
30393 2019-03-25 Richard Biener <rguenther@suse.de>
30394
30395 PR middle-end/89790
30396 * fold-const.c (operand_equal_p): Revert last change with
30397 updated comment.
30398
30399 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
30400
30401 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30402 notes for the result of the __tls_get_addr calls.
30403 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30404
30405 2019-03-24 Jeff Law <law@redhat.com>
30406
30407 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30408
30409 PR rtl-optimization/87761
30410 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30411 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
30412 as needed.
30413 (pass_cprop_hardreg::execute): Add df note problem and defer insn
30414 rescans. Reprocess blocks as needed, calling df_analyze before
30415 reprocessing. Always call df_analyze before fixing up debug bind
30416 insns.
30417
30418 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
30419
30420 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30421 big endian.
30422
30423 2019-03-22 Andrew Pinski <apinski@marvell.com>
30424
30425 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30426 attrribute for uxtw.
30427
30428 2019-03-26 Jeff Law <law@redhat.com>
30429
30430 PR rtl-optimization/87761
30431 * config/mips/mips-protos.h (mips_split_move): Add new argument.
30432 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30433 (mips_split_move): Accept new INSN argument. Try to forward SRC
30434 into the next instruction.
30435 (mips_split_move_insn): Pass INSN through to mips_split_move.
30436
30437 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
30438
30439 PR rtl-optimization/89676
30440 * lra-constraints.c (curr_insn_transform): Do match reload for
30441 early clobbers even if the match was successful.
30442
30443 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30444
30445 PR c++/87481
30446 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30447
30448 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30449
30450 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30451
30452 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30453
30454 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30455 <avx512>_fmsub_<mode>_mask3<round_name>,
30456 <avx512>_fnmadd_<mode>_mask3<round_name>,
30457 <avx512>_fnmsub_<mode>_mask3<round_name>,
30458 avx512f_vmfmadd_<mode>_mask3<round_name>,
30459 avx512f_vmfmsub_<mode>_mask3<round_name>,
30460 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30461 instead of register_operand and %v instead of v for match_operand 1.
30462 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30463 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30464 <round_nimm_predicate> instead of register_operand and %v instead of v
30465 for match_operand 1.
30466
30467 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30468 <avx512>_fmadd_<mode>_mask3<round_name>,
30469 <avx512>_fmsub_<mode>_mask<round_name>,
30470 <avx512>_fmsub_<mode>_mask3<round_name>,
30471 <avx512>_fnmadd_<mode>_mask<round_name>,
30472 <avx512>_fnmadd_<mode>_mask3<round_name>,
30473 <avx512>_fnmsub_<mode>_mask<round_name>,
30474 <avx512>_fnmsub_<mode>_mask3<round_name>,
30475 <avx512>_fmaddsub_<mode>_mask<round_name>,
30476 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30477 <avx512>_fmsubadd_<mode>_mask<round_name>,
30478 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30479 <round_nimm_predicate> instead of nonimmediate_operand.
30480 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30481 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30482 Use register_operand instead of <round_nimm_predicate> for the
30483 operand that needs to match output.
30484 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30485 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30486 Likewise. Formatting fixes.
30487
30488 PR target/89784
30489 * config/i386/i386.c (enum ix86_builtins): Remove
30490 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30491 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30492 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30493 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30494 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30495 __builtin_ia32_vfmsubss3_mask3): New builtins.
30496 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30497 avx512f_vmfmadd_<mode>_mask3<round_name>,
30498 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30499 *avx512f_vmfmsub_<mode>_mask<round_name>,
30500 avx512f_vmfmsub_<mode>_mask3<round_name>,
30501 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30502 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30503 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30504 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30505 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30506 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30507 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30508 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30509 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30510 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30511 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30512 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30513 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30514 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30515 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30516 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30517 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30518 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30519 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30520 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30521 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30522 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30523 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30524 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30525 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30526 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30527 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30528 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30529
30530 2019-03-21 Martin Sebor <msebor@redhat.com>
30531
30532 PR tree-optimization/89350
30533 * builtins.c (compute_objsize): Also ignore offsets whose upper
30534 bound is negative.
30535 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30536 (builtin_memref::builtin_memref): Initialize new member.
30537 Allow EXPR to be null.
30538 (builtin_memref::extend_offset_range): Replace local with a member.
30539 Avoid assuming pointer offsets are unsigned.
30540 (builtin_memref::set_base_and_offset): Determine base object
30541 before computing offset range.
30542 (builtin_access::builtin_access): Handle memset.
30543 (builtin_access::generic_overlap): Replace local with a member.
30544 (builtin_access::strcat_overlap): Same.
30545 (builtin_access::overlap): Same.
30546 (maybe_diag_overlap): Same.
30547 (maybe_diag_access_bounds): Same.
30548 (wrestrict_dom_walker::check_call): Handle memset.
30549 (check_bounds_or_overlap): Same.
30550
30551 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30552 Jakub Jelinek <jakub@redhat.com>
30553
30554 PR lto/89692
30555 * tree.c (fld_type_variant, fld_incomplete_type_of,
30556 fld_process_array_type): Call fld->pset.add and don't call
30557 add_tree_to_fld_list if it returns true.
30558 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30559 non-marked types from TYPE_NEXT_VARIANT list.
30560 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30561
30562 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30563
30564 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30565 to false, if true, don't alloc_entries during construction, but defer
30566 it to the first method that needs m_entries allocated.
30567 (hash_table::hash_table, hash_table::~hash_table,
30568 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30569 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30570 hash_table::clear_slot, hash_table::traverse_noresize,
30571 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30572 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30573 false.
30574 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30575 NO_INSERT instead of find_with_hash.
30576 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30577 hash_set::m_table): Add Lazy to template params of hash_table.
30578 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30579 * attribs.c (test_attribute_exclusions): Likewise.
30580 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30581 hash_set. Add tests for hash_set with Lazy = true.
30582
30583 2019-03-21 Richard Biener <rguenther@suse.de>
30584
30585 PR tree-optimization/89779
30586 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30587 checks with respect to released SSA names now having error_mark_node
30588 type.
30589 * fold-const.c (operand_equal_p): Likewise.
30590
30591 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30592
30593 PR target/89775
30594 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30595 available to ...
30596 (s390_optimize_register_info): Use global_not_special_regno_p to
30597 check for global regs.
30598
30599 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30600
30601 PR target/89752
30602 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30603 update this_alternative nor this_alternative_set.
30604
30605 2019-03-19 Jim Wilson <jimw@sifive.com>
30606
30607 PR target/89411
30608 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30609 align, size, offset. Use them to handle a BLKmode reference. Update
30610 comment.
30611 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30612
30613 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30614
30615 PR rtl-optimization/89768
30616 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30617 instead of GEN_INT.
30618 (unroll_loop_runtime_iterations): Likewise.
30619
30620 2019-03-19 Martin Sebor <msebor@redhat.com>
30621
30622 PR tree-optimization/89644
30623 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30624 rather than endptr as an indicator of nul-termination.
30625
30626 PR tree-optimization/89644
30627 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30628 arrays in determining sequence sizes in strncpy and stpncpy.
30629
30630 2019-03-19 Martin Liska <mliska@suse.cz>
30631
30632 PR middle-end/89737
30633 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30634 unlikely_edges if there's an edge that belongs to both these sets.
30635
30636 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30637
30638 PR target/89746
30639 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30640 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30641 go via a stack temporary.
30642
30643 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30644
30645 PR target/89378
30646 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30647 instead of gen_rtx_SUBREG.
30648 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30649
30650 2019-03-19 Richard Biener <rguenther@suse.de>
30651
30652 PR debug/88389
30653 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30654
30655 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30656
30657 PR lto/87809
30658 PR lto/89335
30659 * tree.c (free_lang_data_in_decl): Do not free context of C++
30660 destrutors.
30661
30662 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30663
30664 PR target/89506
30665 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30666 subs for the first alternative except when operands[3] is 1.
30667
30668 PR target/89752
30669 * gimplify.c (gimplify_asm_expr): For output argument with
30670 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30671 diagnose error.
30672
30673 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30674
30675 PR rtl-optimization/89753
30676 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30677 explicit unrolling factor even more robust.
30678
30679 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30680
30681 PR target/89726
30682 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30683 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30684 signed zeros, do another copysign after the compensation.
30685
30686 2019-03-18 Martin Sebor <msebor@redhat.com>
30687
30688 PR tree-optimization/89720
30689 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30690 more conservatively, the same as anti-range.
30691
30692 2019-03-18 Richard Biener <rguenther@suse.de>
30693
30694 PR middle-end/88945
30695 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30696 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30697 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30698 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30699
30700 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30701
30702 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30703 Extend queue to 1024 entries.
30704 Add "consumed" field.
30705 (gomp_print_output): Remove print_index parameter.
30706 Add final parameter.
30707 Change limit to unsigned.
30708 Use consumed field to implement circular buffer.
30709 Detect interrupted print in final pass.
30710 Flush output at the end.
30711 (run): Update gomp_print_output usage.
30712 (main): Initialize kernargs->output_data.consumed.
30713
30714 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30715
30716 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30717 calculation of the minimum number of scalar iterations for
30718 fully-predicated loops.
30719
30720 2019-03-18 Martin Jambor <mjambor@suse.cz>
30721
30722 PR tree-optimization/89546
30723 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30724 any propagation to its children took place.
30725
30726 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30727
30728 PR target/89627
30729 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30730 parameter, and make use of it.
30731 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30732
30733 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30734
30735 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30736 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30737 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30738 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30739 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30740 match what the ops is doing.
30741 (push_multi_fp_blink): Likewise.
30742 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30743 compiling for size and elf target.
30744 (arc_save_callee_enter): Adjust note to match what enter/leave
30745 operation does.
30746
30747 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30748
30749 * config/arc/arc.md (tst_movb): Fix constraint.
30750
30751 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30752
30753 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30754
30755 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30756
30757 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30758 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30759 reg_alloc_order references.
30760 (size_alloc_order): Define.
30761 (arc_adjust_reg_alloc_order): New function.
30762 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30763 order.
30764 (ADJUST_REG_ALLOC_ORDER): Define.
30765 (HONOR_REG_ALLOC_ORDER): Likewise.
30766
30767 2019-03-18 Richard Biener <rguenther@suse.de>
30768
30769 PR target/87561
30770 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30771 loads and stores a bit more.
30772
30773 2019-03-18 Richard Biener <rguenther@suse.de>
30774
30775 PR target/87561
30776 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30777 load pessimization to stores as well.
30778
30779 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30780
30781 PR middle-end/86979
30782 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30783 successor, use NULL as its av set.
30784
30785 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30786
30787 PR rtl-optimization/89721
30788 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30789
30790 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30791
30792 PR target/87532
30793 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30794 When handling vec_extract, use modular arithmetic to allow
30795 constant selectors greater than vector length.
30796 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30797 V1TImode vectors to have constant selector values greater than 0.
30798 Use modular arithmetic to compute vector index.
30799 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30800 index for in-memory vectors. Correct code generation for
30801 in-register vectors.
30802 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30803 compute index.
30804
30805 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30806
30807 PR c++/88534
30808 PR c++/88537
30809 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30810 VAR_DECL args.
30811
30812 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30813
30814 PR c++/89709
30815 * tree.c (inchash::add_expr): Strip any location wrappers.
30816 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30817 after hash verification.
30818
30819 PR debug/89704
30820 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30821 SIGN_EXTEND and ZERO_EXTEND.
30822
30823 2019-03-14 Jason Merrill <jason@redhat.com>
30824 Jakub Jelinek <jakub@redhat.com>
30825
30826 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30827 than if is_empty (*slot).
30828 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30829 existing elt and for elt removal.
30830 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30831 of already removed elt.
30832
30833 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30834
30835 PR target/89650
30836 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30837 REG_EH_REGION note.
30838
30839 2019-03-14 Martin Liska <mliska@suse.cz>
30840
30841 PR other/89712
30842 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30843
30844 2019-03-14 Richard Biener <rguenther@suse.de>
30845
30846 PR target/89711
30847 * config/i386/i386.c (make_resolver_func): Properly set
30848 DECL_CONTEXT on the RESULT_DECL.
30849 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30850
30851 2019-03-14 Richard Biener <rguenther@suse.de>
30852
30853 * gimple-pretty-print.c: Include cfgloop.h.
30854 (dump_gimple_phi): Adjust.
30855 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30856 (pp_cfg_jump): Adjust.
30857 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30858 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30859 (lower_phi_internal_fn): Remove.
30860 (verify_gimple_call): Remove IFN_PHI special-casing.
30861 (dump_function_to_file): Dump IL state.
30862 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30863 done to deal with PHI nodes being present in non-SSA state.
30864
30865 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30866
30867 PR ipa/89684
30868 * multiple_target.c (create_dispatcher_calls): Change
30869 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30870 In the node->iterate_referring loop, push *ref rather than ref, call
30871 ref->remove_reference () and always pass 0 to iterate_referring.
30872
30873 PR rtl-optimization/89679
30874 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30875 would contain a paradoxical SUBREG.
30876
30877 2019-03-14 Richard Biener <rguenther@suse.de>
30878
30879 PR tree-optimization/89710
30880 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30881 safe_dyn_cast.
30882
30883 2019-03-14 Martin Liska <mliska@suse.cz>
30884
30885 * coverage.c (coverage_begin_function): Stream also
30886 end_column.
30887 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30888 documentation about function declaration location.
30889 * gcov-dump.c (tag_function): Print whole range
30890 of function declaration.
30891 * gcov.c (struct function_info): Add end_column field.
30892 (function_info::function_info): Initialize it.
30893 (output_json_intermediate_file): Output {start,end}_column
30894 fields.
30895 (read_graph_file): Read end_column.
30896
30897 2019-03-14 Richard Biener <rguenther@suse.de>
30898
30899 PR middle-end/89698
30900 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30901 that the access types are similar.
30902
30903 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30904
30905 PR tree-optimization/89703
30906 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30907 aren't compatible also with builtin_decl_explicit. Check pure
30908 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30909 and BUILT_IN_STPNCPY{,_CHK}.
30910
30911 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30912
30913 PR target/89523
30914 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30915 addr32 prefix to VSIB address for X32.
30916 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30917 "%M2" to opcode.
30918 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30919 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30920 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30921 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30922 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30923 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30924 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30925 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30926 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30927 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30928 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30929 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30930 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30931 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30932 (*avx512f_scatterdi<mode>): Likewise.
30933
30934 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30935
30936 PR target/85860
30937 * lra-constraints.c (inherit_in_ebb): Update
30938 potential_reload_hard_regs along with live_hard_regs.
30939
30940 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30941
30942 PR debug/89498
30943 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30944 DWARF_OFFSET_SIZE.
30945 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30946
30947 2019-03-13 Martin Sebor <msebor@redhat.com>
30948
30949 PR tree-optimization/89662
30950 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30951 has a size.
30952
30953 2019-03-13 Richard Biener <rguenther@suse.de>
30954
30955 PR middle-end/89677
30956 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30957 throw FP expressions at tree-affine.
30958
30959 2019-03-14 Richard Biener <rguenther@suse.de>
30960
30961 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30962 dump negative integer constants using _Literal (type) -num.
30963
30964 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30965
30966 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30967 nonlocal_value member.
30968
30969 PR middle-end/88588
30970 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30971 (ipa_simd_modify_function_body): Handle PHIs.
30972
30973 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30974
30975 * config/s390/s390.c (s390_option_override_internal): Use more
30976 aggressive inlining parameters.
30977
30978 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30979
30980 * config/s390/3906.md: New file.
30981 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30982 (LONGRUNNING_THRESHOLD): Remove.
30983 (MAX_SCHED_MIX_SCORE): Decrease.
30984 (MAX_SCHED_MIX_DISTANCE): Decrease.
30985 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30986 (struct s390_sched_state): New struct to hold scheduling state.
30987 (S390_SCHED_STATE_NORMAL): Remove.
30988 (S390_SCHED_STATE_CRACKED): Remove.
30989 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30990 (s390_get_sched_attrmask): Use new attribute.
30991 (s390_get_unit_mask): Use new units.
30992 (s390_is_fpd): New function.
30993 (s390_is_fxd): New function.
30994 (s390_is_longrunning): New function.
30995 (s390_sched_score): Use new functions.
30996 (s390_sched_reorder): Likewise.
30997 (s390_sched_variable_issue): Rework and use new functions.
30998 (s390_sched_init): Use new functions.
30999 * config/s390/s390.h (s390_tune_attr): Add z14.
31000 * config/s390/s390.md: Add z14.
31001
31002 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31003
31004 * config/s390/2964.md: Update pipeline description.
31005 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31006 (LONGRUNNING_THRESHOLD): Remove.
31007 (LATENCY_FACTOR): Remove.
31008 (s390_get_unit_mask): Add unit.
31009 (s390_sched_score): Use fxd/fpd.
31010 (s390_sched_variable_issue): Use fxd/fpd.
31011
31012 2019-03-12 Martin Liska <mliska@suse.cz>
31013
31014 * config/i386/i386.c: Reword an error message.
31015
31016 2019-03-12 Martin Jambor <mjambor@suse.cz>
31017
31018 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
31019 terminate with newline.
31020
31021 2019-03-12 Jakub Jelinek <jakub@redhat.com>
31022
31023 PR target/52726
31024 * config/s390/s390.md (tabort): Use %wd instead of
31025 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
31026 letters and periods.
31027 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
31028 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
31029 's with %< and %>.
31030
31031 PR middle-end/89663
31032 * builtins.c (expand_builtin_int_roundingfn,
31033 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
31034 gcc_unreachable if validate_arglist fails.
31035
31036 2019-03-12 Richard Biener <rguenther@suse.de>
31037
31038 PR tree-optimization/89664
31039 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
31040 free the occurance tree after the early out.
31041
31042 2019-03-11 Jakub Jelinek <jakub@redhat.com>
31043
31044 PR middle-end/89655
31045 PR bootstrap/89656
31046 * vr-values.c (vr_values::update_value_range): If
31047 old_vr->varying_p (), don't update it, make new_vr also VARYING
31048 and return false.
31049
31050 2019-03-11 Martin Liska <mliska@suse.cz>
31051
31052 * config/aarch64/aarch64.c (aarch64_override_options_internal):
31053 Fix double string quoting.
31054
31055 2019-03-11 Martin Liska <mliska@suse.cz>
31056
31057 * collect-utils.c (collect_wait): Wrap apostrophes
31058 in gcc internal format with %'.
31059 * collect2.c (main): Likewise.
31060 (scan_prog_file): Likewise.
31061 (scan_libraries): Likewise.
31062 * config/i386/i386.c (ix86_expand_call): Likewise.
31063 (ix86_handle_interrupt_attribute): Likewise.
31064 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
31065 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
31066 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
31067 * lto-wrapper.c (find_crtoffloadtable): Likewise.
31068 * symtab.c (symtab_node::verify_base): Likewise.
31069 * tree-cfg.c (verify_gimple_label): Likewise.
31070 * tree.c (verify_type_variant): Likewise.
31071
31072 2019-03-11 Martin Liska <mliska@suse.cz>
31073
31074 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
31075 in a string format message and fix GNU coding style.
31076 (expand_builtin_set_thread_pointer): Likewise.
31077 * common/config/aarch64/aarch64-common.c
31078 (aarch64_rewrite_selected_cpu): Likewise.
31079 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
31080 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
31081 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
31082 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
31083 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
31084 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
31085 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
31086 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
31087 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
31088 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
31089 Likewise.
31090 * common/config/riscv/riscv-common.c
31091 (riscv_subset_list::parsing_subset_version): Likewise.
31092 (riscv_subset_list::parse_std_ext): Likewise.
31093 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31094 (riscv_subset_list::parse): Likewise.
31095 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
31096 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
31097 (aarch64_override_options_internal): Likewise.
31098 (aarch64_validate_mcpu): Likewise.
31099 (aarch64_validate_march): Likewise.
31100 (aarch64_validate_mtune): Likewise.
31101 (aarch64_override_options): Likewise.
31102 * config/alpha/alpha.c (alpha_option_override): Likewise.
31103 * config/arc/arc.c (arc_init): Likewise.
31104 (parse_mrgf_banked_regs_option): Likewise.
31105 (arc_override_options): Likewise.
31106 (arc_expand_builtin_aligned): Likewise.
31107 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
31108 (arm_expand_builtin): Likewise.
31109 * config/arm/arm.c (arm_option_check_internal): Likewise.
31110 (arm_configure_build_target): Likewise.
31111 (arm_option_override): Likewise.
31112 (arm_options_perform_arch_sanity_checks): Likewise.
31113 (arm_handle_cmse_nonsecure_entry): Likewise.
31114 (arm_handle_cmse_nonsecure_call): Likewise.
31115 (arm_tls_referenced_p): Likewise.
31116 (thumb1_expand_prologue): Likewise.
31117 * config/avr/avr.c (avr_option_override): Likewise.
31118 * config/bfin/bfin.c (bfin_option_override): Likewise.
31119 * config/c6x/c6x.c (c6x_option_override): Likewise.
31120 * config/cr16/cr16.c (cr16_override_options): Likewise.
31121 * config/cris/cris.c (cris_option_override): Likewise.
31122 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
31123 * config/darwin-c.c (macosx_version_as_macro): Likewise.
31124 * config/darwin.c (darwin_override_options): Likewise.
31125 * config/frv/frv.c (frv_expand_builtin): Likewise.
31126 * config/h8300/h8300.c (h8300_option_override): Likewise.
31127 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
31128 (ix86_option_override_internal): Likewise.
31129 (warn_once_call_ms2sysv_xlogues): Likewise.
31130 (ix86_expand_prologue): Likewise.
31131 (split_stack_prologue_scratch_regno): Likewise.
31132 (ix86_warn_parameter_passing_abi): Likewise.
31133 * config/ia64/ia64.c (fix_range): Likewise.
31134 * config/m68k/m68k.c (m68k_option_override): Likewise.
31135 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
31136 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
31137 (mips_set_compression_mode): Likewise.
31138 * config/mmix/mmix.c (mmix_option_override): Likewise.
31139 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
31140 * config/msp430/msp430.c (msp430_option_override): Likewise.
31141 * config/nds32/nds32.c (nds32_option_override): Likewise.
31142 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
31143 (nios2_option_override): Likewise.
31144 (nios2_expand_custom_builtin): Likewise.
31145 * config/nvptx/mkoffload.c (main): Likewise.
31146 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
31147 * config/pa/pa.c (fix_range): Likewise.
31148 (pa_option_override): Likewise.
31149 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
31150 (riscv_option_override): Likewise.
31151 * config/rl78/rl78.c (rl78_option_override): Likewise.
31152 * config/rs6000/aix61.h: Likewise.
31153 * config/rs6000/aix71.h: Likewise.
31154 * config/rs6000/aix72.h: Likewise.
31155 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
31156 * config/rs6000/freebsd64.h: Likewise.
31157 * config/rs6000/linux64.h: Likewise.
31158 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
31159 (rs6000_expand_zeroop_builtin): Likewise.
31160 (rs6000_expand_mtfsb_builtin): Likewise.
31161 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
31162 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
31163 (rs6000_invalid_builtin): Likewise.
31164 (rs6000_expand_split_stack_prologue): Likewise.
31165 * config/rs6000/rtems.h: Likewise.
31166 * config/rx/rx.c (valid_psw_flag): Likewise.
31167 (rx_expand_builtin): Likewise.
31168 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
31169 * config/s390/s390.c (s390_expand_builtin): Likewise.
31170 (s390_function_profiler): Likewise.
31171 (s390_option_override_internal): Likewise.
31172 (s390_option_override): Likewise.
31173 * config/sh/sh.c (sh_option_override): Likewise.
31174 (sh_builtin_saveregs): Likewise.
31175 (sh_fix_range): Likewise.
31176 * config/sh/vxworks.h: Likewise.
31177 * config/sparc/sparc.c (sparc_option_override): Likewise.
31178 * config/spu/spu.c (spu_option_override): Likewise.
31179 (fix_range): Likewise.
31180 * config/visium/visium.c (visium_option_override): Likewise.
31181 (visium_handle_interrupt_attr): Likewise.
31182 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
31183 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
31184 (dbg_cnt_process_opt): Likewise.
31185 * dwarf2out.c (output_dwarf_version): Likewise.
31186 * except.c (expand_eh_return): Likewise.
31187 * gcc.c (defined): Likewise.
31188 (driver_handle_option): Likewise.
31189 (process_command): Likewise.
31190 (compare_files): Likewise.
31191 (driver::prepare_infiles): Likewise.
31192 (driver::do_spec_on_infiles): Likewise.
31193 (driver::maybe_run_linker): Likewise.
31194 * omp-offload.c (oacc_parse_default_dims): Likewise.
31195 * opts-global.c (handle_common_deferred_options): Likewise.
31196 * opts.c (parse_sanitizer_options): Likewise.
31197 (common_handle_option): Likewise.
31198 (enable_warning_as_error): Likewise.
31199 * passes.c (enable_disable_pass): Likewise.
31200 * plugin.c (parse_plugin_arg_opt): Likewise.
31201 (default_plugin_dir_name): Likewise.
31202 * targhooks.c (default_expand_builtin_saveregs): Likewise.
31203 (default_pch_valid_p): Likewise.
31204 * toplev.c (init_asm_output): Likewise.
31205 (process_options): Likewise.
31206 (toplev::run_self_tests): Likewise.
31207 * tree-cfg.c (verify_gimple_call): Likewise.
31208 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
31209 (tree_inlinable_function_p): Likewise.
31210 * var-tracking.c (vt_find_locations): Likewise.
31211
31212 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
31213
31214 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
31215 only on the else branch.
31216
31217 2019-03-11 Martin Liska <mliska@suse.cz>
31218
31219 * gcov.c (output_intermediate_json_line): Print function
31220 name of each line.
31221 (output_json_intermediate_file): Add new argument.
31222 * doc/gcov.texi: Document the change.
31223
31224 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
31225
31226 PR rtl-optimization/89588
31227 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31228 explicit unrolling factor more robust.
31229
31230 2019-03-11 Richard Biener <rguenther@suse.de>
31231
31232 PR tree-optimization/89649
31233 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
31234 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
31235 on the prolog and epilog loops.
31236 (vect_loop_versioning): Return copy of loop.
31237 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
31238 on the non-vectorized version of the loop.
31239
31240 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
31241
31242 PR target/68924
31243 * config/i386/sse.md (*vec_extractv2di_0_sse):
31244 Add (=r,x) alternative and corresponding splitter.
31245
31246 2019-03-10 Martin Jambor <mjambor@suse.cz>
31247
31248 PR tree-optimization/85762
31249 PR tree-optimization/87008
31250 PR tree-optimization/85459
31251 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
31252 it points to if there is a type changing MEM_REF. Adjust all callers.
31253 (build_accesses_from_assign): Disable total scalarization if
31254 contains_vce_or_bfcref_p returns true through the new parameter, for
31255 both rhs and lhs.
31256
31257 2019-03-09 Jakub Jelinek <jakub@redhat.com>
31258
31259 PR c/88568
31260 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
31261 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
31262
31263 PR target/79645
31264 * common.opt (fdiagnostics-show-labels,
31265 fdiagnostics-show-line-numbers, fdiagnostics-format=,
31266 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
31267 gas-locview-support, ginline-points, ginternal-reset-location-views):
31268 Terminate description text with a dot.
31269 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
31270 * config/mcore/mcore.opt (m210, m340): Likewise.
31271 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
31272 mnops=): Start description text with a capital letter.
31273 * config/arc/arc.opt (msize-level=): Likewise.
31274 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
31275 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
31276 mnewlib): Likewise.
31277 * config/ft32/ft32.opt (msim): Likewise.
31278 (mft32b, mcompress): Likewise. Terminate description text with a dot.
31279 (mnodiv, mnopm): Terminate description text with a dot.
31280 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
31281 a colon.
31282 * config/i386/i386.opt (prefer_vector_width, instrument_return):
31283 Likewise.
31284 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
31285 text.
31286
31287 PR rtl-optimization/89634
31288 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
31289 are modified in BB_END (e->src) instruction.
31290
31291 2019-03-08 David Malcolm <dmalcolm@redhat.com>
31292
31293 PR target/79926
31294 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
31295 messages more amenable to translation, and improve wording.
31296
31297 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
31298
31299 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
31300 ud- and du-chains between phases.
31301
31302 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
31303
31304 PR debug/89631
31305 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
31306 instead of POLY_INT_CST.
31307
31308 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
31309
31310 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
31311 requirement.
31312
31313 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
31314
31315 PR target/68924
31316 PR target/78782
31317 PR target/87558
31318 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
31319 (_mm_storeu_si64): Ditto.
31320
31321 2019-03-08 Martin Liska <mliska@suse.cz>
31322
31323 PR target/86952
31324 * config/i386/i386.c (ix86_option_override_internal): Disable
31325 jump tables when retpolines are used.
31326
31327 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
31328
31329 PR go/63560
31330 * ipa-split.c (execute_split_functions): Do not split
31331 'noinline' or 'section' function.
31332
31333 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31334
31335 PR target/79846
31336 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
31337 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
31338 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
31339
31340 PR ipa/80000
31341 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
31342 from diagnostics. Formatting fixes.
31343
31344 PR target/85665
31345 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
31346 warn_odr diagnostics.
31347
31348 PR other/80058
31349 * lra-constraints.c (process_alt_operands): Avoid one space before
31350 " at the end of line and another after " on another line in a string
31351 literal.
31352 * attribs.c (handle_dll_attribute): Likewise.
31353 * config/avr/avr-devices.c (avr_texinfo): Likewise.
31354
31355 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
31356 warning_at or inform messages in G_() if there is no ?:.
31357
31358 PR tree-optimization/89550
31359 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
31360 returned true. Formatting fixes.
31361 (expand_builtin_strnlen): Formatting fixes.
31362 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
31363 if warning_at returned true.
31364 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
31365
31366 2019-03-08 Richard Biener <rguenther@suse.de>
31367
31368 PR middle-end/89578
31369 * cfgloop.h (struct loop): Add owned_clique field.
31370 * cfgloopmanip.c (copy_loop_info): Copy it.
31371 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31372 cliques.
31373 * tree-inline.c (copy_loops): Remap owned_clique.
31374 * lto-streamer-in.c (input_cfg): Stream owned_clique.
31375 * lto-streamer-out.c (output_cfg): Likewise.
31376
31377 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31378
31379 PR target/80190
31380 * config/darwin.c: Include intl.h.
31381 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31382 composing the message out of two separate parts.
31383
31384 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31385
31386 PR target/80003
31387 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31388 doesn't start with a capital letter and doesn't end with a dot.
31389 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31390 with a capital letter.
31391 (ix86_mangle_function_version_assembler_name): Likewise.
31392 (ix86_generate_version_dispatcher_body): Likewise.
31393 (fold_builtin_cpu): Likewise.
31394 (get_builtin_code_for_version): Likewise. Remove extraneous space.
31395 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31396 translators, wrap full type name in %qs.
31397
31398 PR translation/79999
31399 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31400 depend clause with source (or sink) modifier.
31401 * omp-expand.c (expand_omp_ordered_sink): Likewise.
31402
31403 PR target/89602
31404 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31405 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31406 (avx512f_load<mode>_mask): New define_expand.
31407 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31408 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31409 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31410 __builtin_ia32_movess_mask): New builtins.
31411 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31412 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31413 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31414 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31415
31416 2019-03-07 Martin Jambor <mjambor@suse.cz>
31417
31418 PR lto/87525
31419 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31420 for extern inline functions.
31421
31422 2019-03-07 Martin Jambor <mjambor@suse.cz>
31423
31424 PR ipa/88235
31425 * cgraph.h (cgraph_node): New inline method former_thunk_p.
31426 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31427 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31428 have multiple callees. At the end check if declarations match as
31429 opposed to cgraph_nodes.
31430
31431 2019-03-07 Martin Liska <mliska@suse.cz>
31432
31433 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31434 which is equivalent to searching for this in clones chain.
31435 * symtab.c (symtab_node::verify_base): Similarly compare ASM
31436 names with a neighbour and special case first node in a chain.
31437
31438 2019-01-25 Jason Merrill <jason@redhat.com>
31439
31440 PR c++/80916 - spurious "static but not defined" warning.
31441 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31442 for an internal symbol with DECL_EXTERNAL.
31443
31444 2019-04-07 Richard Biener <rguenther@suse.de>
31445
31446 PR middle-end/89618
31447 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31448 * tree-inline.c (copy_loops): Simplify.
31449
31450 2019-03-07 Martin Liska <mliska@suse.cz>
31451
31452 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31453
31454 2019-03-07 Richard Biener <rguenther@suse.de>
31455
31456 PR tree-optimization/89595
31457 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31458 stmt iterator as reference, take boolean output parameter to
31459 indicate whether the stmt was removed and thus the iterator
31460 already advanced.
31461 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31462 stmts created by folding.
31463
31464 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31465
31466 PR c++/89585
31467 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31468 at toplevel.
31469
31470 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31471
31472 PR rtl-optimization/88845
31473 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31474 LRA.
31475 * lra.c (remove_scratches_1): New function.
31476 (remove_scratches): Use it.
31477 (lra_emit_move): Likewise.
31478
31479 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31480
31481 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31482 unaligned_access variable.
31483 * config/arc/arc.c (arc_override_options): Set unaligned access
31484 default on for HS CPUs.
31485 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31486
31487 2019-03-06 Martin Liska <mliska@suse.cz>
31488
31489 PR gcov-profile/89577
31490 * doc/gcov.texi: Prefer to use --coverage.
31491 * doc/sourcebuild.texi: Likewise.
31492
31493 2019-03-02 Jason Merrill <jason@redhat.com>
31494
31495 PR c++/86485 - -Wmaybe-unused with empty class ?:
31496 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31497
31498 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31499
31500 PR target/89587
31501 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31502 if_multiarch.
31503
31504 PR middle-end/89590
31505 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31506 exactly one argument.
31507
31508 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31509 Richard Sandiford <richard.sandiford@arm.com>
31510
31511 PR tree-optimization/89570
31512 * match.pd (vec_cond into cond_op simplification): Don't use
31513 get_conditional_internal_fn, use as_internal_fn (cond_op).
31514
31515 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31516
31517 PR target/89222
31518 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31519 to decide when to split off a non-zero offset from a symbol.
31520 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31521 in function symbols.
31522
31523 2019-03-05 Richard Biener <rguenther@suse.de>
31524
31525 PR tree-optimization/89594
31526 * tree-if-conv.c (pass_if_conversion::execute): Handle
31527 case where .LOOP_VECTORIZED_FUNCTION was removed.
31528
31529 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31530
31531 PR bootstrap/89560
31532 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31533 instead alloca it only when needed with the needed size.
31534
31535 PR tree-optimization/89570
31536 * match.pd (vec_cond into cond_op simplification): Guard with
31537 vectorized_internal_fn_supported_p test and #if GIMPLE.
31538
31539 PR tree-optimization/89566
31540 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31541 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31542 Punt if get_user_idx_format succeeds, but idx_format argument is
31543 not provided or doesn't have pointer type, or if idx_args is above
31544 number of provided arguments.
31545
31546 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31547
31548 PR tree-optimization/89437
31549 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31550
31551 2019-03-04 Richard Biener <rguenther@suse.de>
31552
31553 PR middle-end/89572
31554 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31555 safe_dyn_cast.
31556
31557 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31558
31559 PR tree-optimization/89487
31560 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31561 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31562 (distribute_loop): Don't do runtime alias check if there is non-
31563 addressable data reference.
31564 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31565 is a register variable.
31566
31567 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31568
31569 PR target/89506
31570 * config/arm/arm.md (cmpsi2_addneg): Use
31571 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31572 If operands[2] is 0 or INT_MIN, force use of subs.
31573 (*compare_scc splitter): Use gen_int_mode.
31574 (*negscc): Likewise.
31575 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31576
31577 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31578 Monk Chiang <sh.chiang04@gmail.com>
31579
31580 * common/config/riscv/riscv-common.c: Include sstream.
31581 (riscv_subset_list::to_string): New.
31582 (riscv_arch_str): Likewise.
31583 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31584 * config.in: Regen.
31585 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31586 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31587 (riscv_emit_attribute): New.
31588 (riscv_file_start): Emit attribute if needed.
31589 (riscv_option_override): Init riscv_emit_attribute_p.
31590 * config/riscv/riscv.opt (mriscv-attribute): New option.
31591 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31592 * configure: Regen.
31593 * doc/install.texi: Document --with-riscv-attribute.
31594 * doc/invoke.texi: Document -mriscv-attribute.
31595
31596 * common/config/riscv/riscv-common.c:
31597 Include config/riscv/riscv-protos.h.
31598 (INCLUDE_STRING): Defined.
31599 (RISCV_DONT_CARE_VERSION): Defined.
31600 (riscv_subset_t): Declare.
31601 (riscv_subset_t::riscv_subset_t): New.
31602 (riscv_subset_list): Declare.
31603 (riscv_subset_list::riscv_subset_list): New.
31604 (riscv_subset_list::~riscv_subset_list): Likewise.
31605 (riscv_subset_list::parsing_subset_version): Likewise.
31606 (riscv_subset_list::parse_std_ext): Likewise.
31607 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31608 (riscv_subset_list::add): Likewise.
31609 (riscv_subset_list::lookup): Likewise.
31610 (riscv_subset_list::xlen): Likewise.
31611 (riscv_subset_list::parse): Likewise.
31612 (riscv_supported_std_ext): Likewise.
31613 (current_subset_list): Likewise.
31614 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31615 parse.
31616
31617 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31618
31619 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31620 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31621 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31622
31623 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31624
31625 PR rtl-optimization/85899
31626 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31627 fallthru edges leading to the exit block.
31628
31629 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31630
31631 PR target/89517
31632 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31633 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31634
31635 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31636
31637 PR tree-optimization/89535
31638 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31639 for each operand. Calculate the fallback choice for mask operands
31640 and pass it to vect_get_vec_def_for_operand.
31641
31642 2019-03-01 Richard Biener <rguenther@suse.de>
31643
31644 PR middle-end/89541
31645 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31646 get virtual operands.
31647 (get_expr_operands): Handle CONST_DECL like other decls.
31648
31649 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31650
31651 PR middle-end/89503
31652 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31653 on DECL_P and EXPR_P.
31654
31655 2019-03-01 Richard Biener <rguenther@suse.de>
31656
31657 PR middle-end/89497
31658 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31659 argument, defaulted to zero.
31660 * passes.c (execute_function_todo): Pass down SSA update flags
31661 to cleanup_tree_cfg.
31662 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31663 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31664 form if requested.
31665 (cleanup_tree_cfg): Get and pass down SSA update flags.
31666
31667 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31668
31669 PR bootstrap/89539
31670 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31671 early_lto_debug argument.
31672
31673 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31674
31675 PR tree-optimization/89536
31676 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31677 only whether bit #0 of the value is 0 instead of the entire value.
31678
31679 2019-02-28 Marek Polacek <polacek@redhat.com>
31680
31681 PR c++/87068 - missing diagnostic with fallthrough statement.
31682 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31683 at the end of a seq, save its location to walk_stmt_info.
31684 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31685 a switch.
31686
31687 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31688
31689 PR lto/88585
31690 * tree.c (find_atomic_core_type): Move ahead in file.
31691 (check_base_type): Correctly compare alignments of atomic types.
31692
31693 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31694
31695 PR target/89455
31696 * config/i386/i386.c (get_builtin_code_for_version): Identify
31697 Westmere from PCLMUL, instead of AES.
31698
31699 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31700
31701 PR target/89434
31702 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31703 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31704 -UINTVAL (...).
31705
31706 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31707
31708 PR target/88530
31709 * config/aarch64/aarch64-option-extensions.def: Document it.
31710 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31711 if empty hwcaps.
31712
31713 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31714
31715 PR c/89520
31716 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31717 builtins if they don't have a single scalar floating point argument.
31718 Formatting fixes.
31719
31720 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31721
31722 PR rtl-optimization/89490
31723 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31724 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31725 block section is not mergeable.
31726
31727 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31728
31729 PR target/70341
31730 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31731 old define_insn to ...
31732 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31733 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31734 Rename old define_insn to ...
31735 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31736 (thumb2_casesi_internal_pic): New define_expand. Rename old
31737 define_insn to ...
31738 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31739 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31740 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31741
31742 2019-02-27 Richard Biener <rguenther@suse.de>
31743
31744 PR debug/88878
31745 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31746
31747 2019-02-27 Richard Biener <rguenther@suse.de>
31748
31749 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31750 building.
31751
31752 2019-02-27 Richard Biener <rguenther@suse.de>
31753
31754 PR debug/88878
31755 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31756 parameter, prefix section name with .gnu.debuglto_ if true.
31757 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31758 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31759
31760 2019-02-27 Richard Biener <rguenther@suse.de>
31761
31762 PR debug/89514
31763 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31764 rather than on use_debug_types, doing what output_die does.
31765 (value_format): Likewise.
31766
31767 2019-02-27 Martin Jambor <mjambor@suse.cz>
31768 Martin Sebor <msebor@redhat.com>
31769
31770 * doc/invoke.texi (Warning Options): Reword description of
31771 -Wno-absolute-value.
31772
31773 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31774
31775 PR tree-optimization/89280
31776 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31777 builtin_setjmp_setup_bb): New functions.
31778 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31779 When visiting __builtin_setjmp_setup block, queue in special
31780 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31781 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31782 from visited after the loop if they don't have any visited successor
31783 blocks.
31784
31785 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31786
31787 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31788 New function.
31789 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31790
31791 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31792
31793 PR c++/89507
31794 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31795 with types other than sizetype/ssizetype.
31796
31797 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31798
31799 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31800 (enum sparc_processor_type): ...this.
31801 (enum sparc_code_model_type): New enumeration type.
31802 (enum sparc_memory_model_type): Tweak comments.
31803 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31804 (mtune): Likewise.
31805 (mcmodel): Use sparc_code_model enumeration and variable.
31806 (sparc_code_model): New enumeration.
31807 (mdebug): Add Undocumented marker.
31808 * config/sparc/sparc.h (enum cmodel): Delete.
31809 (sparc_cmodel): Likewise.
31810 (TARGET_CM_MEDLOW): Adjust to above renaming.
31811 (TARGET_CM_MEDMID): Likewise.
31812 (TARGET_CM_MEDANY): Likewise.
31813 (TARGET_CM_EMBMEDANY): Likewise.
31814 * config/sparc/sparc.c (sparc_cmodel): Delete.
31815 (sparc_option_override): Remove string/value mapping support for the
31816 code model. Move code and memory model support to after the handling
31817 of target flags. Do private machine setup last.
31818 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31819 (sparc_legitimize_reload_address): Likewise.
31820 (sparc_output_mi_thunk): Likewise.
31821 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31822
31823 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31824
31825 PR tree-optimization/89500
31826 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31827 (handle_builtin_strlen): Remove noncst_bound variable. Always
31828 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31829 cst if the first cst bytes starting at x are known to be non-zero,
31830 even if the string is not zero terminated. Don't try to modify
31831 *si for strnlen. Update strlen_to_stridx only for strlen or if
31832 we can prove strnlen returns the same value as strlen would.
31833
31834 2019-02-26 Martin Liska <mliska@suse.cz>
31835
31836 * alloc-pool.h (struct pool_usage): Remove extra
31837 print_dash_line.
31838 * bitmap.h (struct bitmap_usage): Likewise.
31839 * ggc-common.c (struct ggc_usage): Likewise.
31840 * mem-stats.h (struct mem_usage): Likewise.
31841 (mem_alloc_description::dump): Print dash lines
31842 here and repeat header at the end of a table report.
31843 It's then more readable.
31844 * tree-phinodes.c (phinodes_print_statistics): Make
31845 horizontal alignment.
31846 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31847 * vec.c (struct vec_usage): Remove extra print_dash_line.
31848 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31849
31850 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31851
31852 * doc/extend.texi (__builtin_object_size):
31853 Use @pxref instead of @xref inside parenthesis.
31854 (__builtin_has_attribute): Add missing comma after @xref.
31855 (__builtin_object_size): Ditto.
31856 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31857
31858 2019-02-26 Jeff Law <law@redhat.com>
31859
31860 PR rtl-optimization/87761
31861 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31862 detect obviously dead insns and delete them.
31863
31864 2019-02-26 Richard Biener <rguenther@suse.de>
31865
31866 PR tree-optimization/89505
31867 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31868 to handle restrict pointed-to vars with multiple subvars
31869 correctly.
31870
31871 2019-02-26 Richard Biener <rguenther@suse.de>
31872
31873 PR tree-optimization/89489
31874 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31875
31876 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31877
31878 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31879 and move around comment.
31880 <BIT_AND_EXPR>: Likewise.
31881 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31882
31883 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31884
31885 PR target/89474
31886 * config/i386/i386.c (remove_partial_avx_dependency): Call
31887 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31888 after changing possibly many instructions to use that pseudo. Fix up
31889 insertion of v4sf_const0 setter at the start of bb.
31890
31891 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31892
31893 PR c/80409
31894 * doc/extend.texi (Variadic Pointer Args): New section.
31895
31896 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31897 Martin Sebor <msebor@gmail.com>
31898
31899 * common.opt (Wattribute-alias): Likewise.
31900 * doc/invoke.texi (Option Summary): List general form of
31901 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31902 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31903 Add cross-references.
31904 (-Wattribute-alias): Rewrite and correct default. Mention
31905 considered attributes (same as for -Wmissing-attributes).
31906
31907 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31908
31909 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31910 (_mm_cvtpd_ps): Likewise.
31911 (_mm_cvttpd_epi32): Likewise.
31912
31913 PR target/89338
31914 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31915 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31916
31917 PR target/89339
31918 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31919
31920 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31921
31922 PR target/88530
31923 * common/config/aarch64/aarch64-common.c
31924 (struct aarch64_option_extension): Add is_synthetic.
31925 (all_extensions): Use it.
31926 (TARGET_OPTION_INIT_STRUCT): Define hook.
31927 (struct gcc_targetm_common): Moved to end.
31928 (all_extensions_by_on): New.
31929 (opt_ext_cmp, typedef opt_ext): New.
31930 (aarch64_option_init_struct): New.
31931 (aarch64_contains_opt): New.
31932 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31933 * config/aarch64/aarch64-option-extensions.def
31934 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31935 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31936 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31937 Set is_synthetic to false.
31938 (crypto): Set is_synthetic to true.
31939 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31940 SYNTHETIC.
31941
31942 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31943
31944 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31945 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31946 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31947 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31948 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31949 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31950 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31951 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31952 Rename ...
31953 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31954 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31955 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31956 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31957 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31958 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31959 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31960 vfmlsl_laneq_high_f16): ... To this.
31961 * config/arm/neon.md: Update comments.
31962
31963 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31964
31965 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31966 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31967 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31968 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31969 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31970 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31971 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31972 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31973 Rename ...
31974 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31975 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31976 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31977 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31978 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31979 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31980 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31981 vfmlslq_laneq_high_f16): ... To this.
31982
31983 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31984
31985 PR rtl-optimization/86096
31986 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31987 comparing mw_order values.
31988
31989 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31990
31991 PR target/89434
31992 * config/arm/arm.md (*subsi3_carryin_const): Use
31993 arm_neg_immediate_operand predicate instead of
31994 arm_not_immediate_operand, "L" constraint instead of "K" and
31995 print it using %n2 instead of %B2.
31996 (*subsi3_carryin_const0): New define_insn.
31997 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31998 instead of arm_not_operand and "I" constraint instead of "K" and
31999 print it using %n3 instead of %B2. Instead of using match_dup 2 add
32000 another match_operand and in the condition check that it is negation
32001 of operands[2].
32002 (*subsi3_carryin_compare_const0): New define_ins.
32003 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
32004 *subsi3_carryin_const.
32005 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
32006 split into *subsi3_carryin_compare_const0 if the highpart is zero.
32007
32008 PR target/89438
32009 * config/arm.vfp.md (*negdf2_vfp): Use
32010 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
32011 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
32012
32013 2019-02-24 Jakub Jelinek <jakub@redhat.com>
32014
32015 PR rtl-optimization/89445
32016 * simplify-rtx.c (simplify_ternary_operation): Don't use
32017 simplify_merge_mask on operands that may trap.
32018 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
32019 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
32020 second operand is CONST_VECTOR, check if any element could be zero.
32021 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
32022 their operands can trap.
32023
32024 2019-02-23 Martin Sebor <msebor@redhat.com>
32025
32026 * gimple-ssa-sprintf.c (target_strtol): Rename...
32027 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
32028 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
32029 check for range error.
32030
32031 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
32032
32033 PR driver/69471
32034 * opts-common.c (prune_options): Also prune joined switches
32035 with Negative and RejectNegative.
32036 * config/i386/i386.opt (march=): Add Negative(march=).
32037 (mtune=): Add Negative(mtune=).
32038 * doc/options.texi: Document Negative used together with Joined
32039 and RejectNegative.
32040
32041 2019-02-22 Martin Sebor <msebor@redhat.com>
32042
32043 * doc/extend.texi (Other Builtins): Add
32044 __builtin_is_constant_evaluated.
32045
32046 2019-02-22 Richard Biener <rguenther@suse.de>
32047
32048 PR tree-optimization/87609
32049 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
32050
32051 2019-02-22 Jeff Law <law@redhat.com>
32052
32053 PR rtl-optimization/87761
32054 * config/mips/mips.md: Add new combiner pattern to recognize
32055 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
32056
32057 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
32058
32059 PR target/89324
32060 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
32061 destination register in peepholes generating patterns for ADDS/SUBS.
32062 (add<mode>3_compare0,
32063 *addsi3_compare0_uxtw, add<mode>3_compareC,
32064 add<mode>3_compareV_imm, add<mode>3_compareV,
32065 *adds_<optab><ALLX:mode>_<GPI:mode>,
32066 *subs_<optab><ALLX:mode>_<GPI:mode>,
32067 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
32068 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
32069 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
32070 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
32071 sub<mode>3_compare1): Allow stack pointer for source register.
32072 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
32073
32074 2019-02-22 Martin Sebor <msebor@redhat.com>
32075
32076 PR tree-optimization/88993
32077 PR tree-optimization/88853
32078 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
32079 New helper.
32080 (sprintf_dom_walker::call_info::is_string_func): New helper.
32081 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
32082 for formatted string functions.
32083 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
32084
32085 2019-02-22 Martin Sebor <msebor@redhat.com>
32086
32087 PR c/89425
32088 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
32089 unreachable subexpressions.
32090
32091 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
32092 Hongtao Liu <hongtao.liu@intel.com>
32093 Sunil K Pandey <sunil.k.pandey@intel.com>
32094
32095 PR target/87007
32096 * config/i386/i386-passes.def: Add
32097 pass_remove_partial_avx_dependency.
32098 * config/i386/i386-protos.h
32099 (make_pass_remove_partial_avx_dependency): New.
32100 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
32101 New function.
32102 (pass_data_remove_partial_avx_dependency): New.
32103 (pass_remove_partial_avx_dependency): Likewise.
32104 (make_pass_remove_partial_avx_dependency): Likewise.
32105 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
32106 (*extendsfdf2): Add avx_partial_xmm_update.
32107 (truncdfsf2): Likewise.
32108 (*float<SWI48:mode><MODEF:mode>2): Likewise.
32109 (SF/DF conversion splitters): Disabled for TARGET_AVX.
32110
32111 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
32112
32113 PR middle-end/85598
32114 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
32115 analysis for pass.
32116
32117 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
32118
32119 PR target/89444
32120 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
32121 (PTA_SKYLAKE): Add PTA_AES.
32122 (PTA_GOLDMONT): Likewise.
32123
32124 2019-02-22 Sudakshina Das <sudi.das@arm.com>
32125
32126 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
32127 instruction if enabled.
32128 (aarch64_override_options): Remove reference to return address key.
32129
32130 2019-02-22 Richard Biener <rguenther@suse.de>
32131
32132 PR tree-optimization/89440
32133 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
32134 not necessary assert.
32135
32136 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
32137
32138 PR fortran/72741
32139 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
32140 (oacc_replace_fn_attrib_attr): ... this new function.
32141 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
32142 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
32143
32144 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32145
32146 * config/arm/arm-cpus.in (ares): Rename to...
32147 (neoverse-n1): ... This. Add ares as alias.
32148 * config/arm/arm-tables.opt: Regenerate.
32149 * config/arm/arm-tune.md: Likewise.
32150 * doc/invoke.txt (ARM Options): Document neoverse-n1.
32151
32152 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32153
32154 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
32155 * config/aarch64/aarch64-tune.md: Regenerate.
32156 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
32157
32158 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32159
32160 * config/aarch64/aarch64.c (ares_tunings): Rename to...
32161 (neoversen1_tunings): ... This.
32162 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
32163 (neoverse-n1): New CPU.
32164 * config/aarch64/aarch64-tune.md: Regenerate.
32165 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
32166
32167 2019-02-22 Richard Biener <rguenther@suse.de>
32168
32169 PR middle-end/87609
32170 * cfghooks.h (dependence_hash): New typedef.
32171 (struct copy_bb_data): New type.
32172 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
32173 (duplicate_block): Likewise.
32174 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
32175 (copy_bbs): Create and pass down copy_bb_data.
32176 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
32177 (rtl_duplicate_bb): Likewise.
32178 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
32179 remap dependence info.
32180
32181 2019-02-22 Richard Biener <rguenther@suse.de>
32182
32183 PR tree-optimization/87609
32184 * tree-core.h (tree_base): Document special clique values.
32185 * tree-inline.c (remap_dependence_clique): Do not use the
32186 special clique value of one.
32187 (maybe_set_dependence_info): Use clique one.
32188 (clear_dependence_clique): New callback.
32189 (compute_dependence_clique): Clear clique one from all refs
32190 before assigning it (again).
32191
32192 2019-02-21 Martin Sebor <msebor@redhat.com>
32193
32194 * doc/extend.texi (__clear_cache): Correct signature.
32195
32196 2019-02-21 Ian Lance Taylor <iant@golang.org>
32197
32198 PR go/89170
32199 * varasm.c (decode_addr_const): Call lookup_constant_def rather
32200 than output_constant_def.
32201 (add_constant_to_table): New static function.
32202 (output_constant_def): Call add_constant_to_table.
32203 (tree_output_constant_def): Likewise.
32204
32205 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32206
32207 PR c++/89285
32208 * builtins.c (fold_builtin_arith_overflow): If first two args are
32209 INTEGER_CSTs, set intres and ovfres to constants rather than calls
32210 to ifn.
32211
32212 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
32213
32214 PR target/87412
32215 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
32216 error for -mindirect-branch/-mfunction-return with incompatible
32217 -fcf-protection.
32218
32219 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32220
32221 PR bootstrap/88714
32222 * constraints.md (q): Remove.
32223 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
32224 instead of q.
32225
32226 2019-02-21 Martin Jambor <mjambor@suse.cz>
32227
32228 PR hsa/89302
32229 * omp-general.c (omp_extract_for_data): Removed a duplicate call
32230 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
32231 (omp_adjust_for_condition): ...here. Added necessary parameters.
32232 * omp-general.h (omp_adjust_for_condition): Updated declaration.
32233 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
32234 proper values to new parameters of omp_adjust_for_condition.
32235
32236 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32237
32238 PR middle-end/89412
32239 * expr.c (expand_assignment): If result is a MEM, use change_address
32240 instead of simplify_gen_subreg.
32241
32242 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32243 David Malcolm <dmalcolm@redhat.com>
32244
32245 PR middle-end/89091
32246 * fold-const.c (decode_field_reference): Return NULL_TREE if
32247 lang_hooks.types.type_for_size returns NULL. Check it before
32248 overwriting *exp_. Use return NULL_TREE instead of return 0.
32249
32250 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32251
32252 PR middle-end/88074
32253 PR middle-end/89415
32254 * toplev.c (do_compile): Double the emin/emax exponents to workaround
32255 buggy mpc_norm.
32256
32257 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
32258
32259 PR target/89397
32260 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
32261 TARGET_SSE in addition to TARGET_SSE_MATH.
32262
32263 (ix86_excess_precision): Ditto.
32264 (ix86_float_exceptions_rounding_supported_p): Ditto.
32265 (use_rsqrt_p): Ditto.
32266 * config/i386/sse.md (rsqrt<mode>2): Ditto.
32267
32268 2019-02-20 David Malcolm <dmalcolm@redhat.com>
32269
32270 PR c/89410
32271 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
32272 linenum_arith_t when determining if two adjacent line spans are
32273 close enough to merge.
32274 (diagnostic_show_locus): Use linenum_arith_t when iterating over
32275 lines within each line_span.
32276
32277 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
32278
32279 PR target/86487
32280 * lra-constraints.c(uses_hard_regs_p): Fix handling of
32281 paradoxical SUBREGS.
32282
32283 2019-02-20 Li Jia He <helijia@linux.ibm.com>
32284
32285 PR target/88100
32286 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
32287 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
32288 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
32289 range checking it.
32290
32291 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
32292
32293 * config/gcn/gcn.c (print_operand): Fix typo.
32294
32295 2019-02-19 Richard Biener <rguenther@suse.de>
32296
32297 PR middle-end/88074
32298 * toplev.c (do_compile): Initialize mpfr's exponent range
32299 based on available float modes.
32300
32301 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
32302
32303 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
32304 as long as the epilogue isn't completed.
32305
32306 2019-02-18 Martin Sebor <msebor@redhat.com>
32307
32308 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
32309 __has_cpp_attribute, and __has_include.
32310
32311 2019-02-18 Martin Sebor <msebor@redhat.com>
32312
32313 * doc/invoke.texi (-Wreturn-type): Correct and expand.
32314
32315 2019-02-18 Martin Sebor <msebor@redhat.com>
32316
32317 PR middle-end/89294
32318 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
32319 expression.
32320 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
32321
32322 2019-02-18 Richard Biener <rguenther@suse.de>
32323
32324 PR tree-optimization/89296
32325 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
32326 of no-warning flag to cases that might emit the bogus warning.
32327
32328 2019-02-18 Jakub Jelinek <jakub@redhat.com>
32329
32330 PR bootstrap/88714
32331 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
32332 "q" constraint.
32333 * config/arm/vfp.md (*movdi_vfp): Likewise.
32334 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
32335 "q" constraint for operands[0].
32336
32337 PR target/89369
32338 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
32339 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
32340 pattern in a temporary buffer.
32341 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
32342 than 64-operands[2].
32343
32344 PR target/89361
32345 * config/s390/s390.c (s390_indirect_branch_attrvalue,
32346 s390_indirect_branch_settings): Define unconditionally.
32347 (s390_set_current_function): Likewise, but guard the whole body except
32348 the s390_indirect_branch_settings call with
32349 #if S390_USE_TARGET_ATTRIBUTE.
32350 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
32351
32352 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
32353 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
32354 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
32355 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
32356 HOST_WIDE_INT_1U instead of 1ULL.
32357 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
32358 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
32359 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
32360 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
32361 instead of 1UL.
32362 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
32363 instead of 1ul.
32364
32365 2019-02-18 Martin Jambor <mjambor@suse.cz>
32366
32367 PR tree-optimization/89209
32368 * tree-sra.c (create_access_replacement): New optional parameter
32369 reg_tree. Use it as a type if non-NULL and access type is not of
32370 a register type.
32371 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32372 to create_access_replacement.
32373 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32374 Check lacc is non-NULL before attempting to re-create it on the RHS.
32375
32376 2019-02-18 Martin Liska <mliska@suse.cz>
32377
32378 PR ipa/89306
32379 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32380 by default.
32381 (symbol_table::free_edge): Recycle m_summary_id.
32382 * cgraph.h (get_summary_id): New.
32383 (symbol_table::release_symbol): Set m_summary_id to -1
32384 by default.
32385 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32386 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32387 function_summary to fast_function_summary.
32388 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32389 * ipa-pure-const.c (class funct_state_summary_t):
32390 Switch from function_summary to fast_function_summary.
32391 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32392 (class ipa_ref_opt_summary_t): Switch from function_summary
32393 to fast_function_summary.
32394 * symbol-summary.h (class function_summary_base): New class
32395 that is created from base of former function_summary.
32396 (function_summary_base::unregister_hooks): New.
32397 (class function_summary): Inherit from function_summary_base.
32398 (class call_summary_base): New class
32399 that is created from base of former call_summary.
32400 (class call_summary): Inherit from call_summary_base.
32401 (struct is_same): New.
32402 (class fast_function_summary): New summary class.
32403 (class fast_call_summary): New summary class.
32404 * vec.h (vec_safe_grow_cleared): New function.
32405
32406 2019-02-18 Martin Liska <mliska@suse.cz>
32407
32408 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32409 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32410 * doc/tm.texi: Document new target hook.
32411 * doc/tm.texi.in: Likewise.
32412 * target.def: Add new target macro.
32413 * gcc.c (find_fortran_preinclude_file): Do not search multilib
32414 suffixes.
32415
32416 2019-02-17 Alan Modra <amodra@gmail.com>
32417
32418 PR target/89271
32419 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32420 output reg on add insn.
32421 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
32422
32423 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32424
32425 PR target/89372
32426 * config/i386/sse.md (ssedoublemode): Remove V4HI.
32427 (PMULHRSW): Likewise.
32428 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32429 TARGET_AVX2.
32430 (ssse3_pmulhrswv4hi3): New expander.
32431
32432 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32433
32434 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32435 MMX. Add isa attribute.
32436
32437 2019-02-16 Jakub Jelinek <jakub@redhat.com>
32438
32439 PR rtl-optimization/66152
32440 * builtins.h (c_readstr): Declare.
32441 * builtins.c (c_readstr): Remove forward declaration. Add
32442 null_terminated_p argument, if false, read all bytes from the
32443 string instead of stopping after '\0'.
32444 * expr.c (string_cst_read_str): New function.
32445 (store_expr): Use string_cst_read_str instead of
32446 builtin_strncpy_read_str. Try to store by pieces the whole
32447 exp_len first, and only if that fails, split it up into
32448 store by pieces followed by clear_storage. Formatting fix.
32449
32450 * config/i386/i386.md (*movqi_internal): Remove static from
32451 buf variable. Use output_asm_insn (buf, operands); return "";
32452 instead of return buf;.
32453 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32454 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32455 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32456
32457 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32458
32459 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32460 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32461 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32462 (CC1_SPEC): Likewise.
32463 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32464
32465 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32466
32467 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32468 the base address on 64-bit strict-alignment platforms.
32469
32470 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32471
32472 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32473
32474 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32475
32476 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32477
32478 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32479
32480 PR rtl-optimization/88308
32481 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32482 on copied instruction.
32483
32484 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32485
32486 * final.c (insn_current_reference_address): Replace test on JUMP_P
32487 with test on jump_to_label_p.
32488 * config/visium/visium-passes.def: New file.
32489 * config/visium/t-visium (PASSES_EXTRA): Define.
32490 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32491 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32492 (TRAMPOLINE_ALIGNMENT): Define.
32493 * config/visium/visium.c (visium_option_override): Do not register
32494 the machine-specific reorg pass here.
32495 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32496 for the GR6.
32497 (output_branch): Adjust threshold for long branch instruction.
32498 * config/visium/visium.md (cpu): Move around.
32499 (length): Adjust for the GR6.
32500
32501 2019-02-15 Richard Biener <rguenther@suse.de>
32502 Jakub Jelinek <jakub@redhat.com>
32503
32504 PR tree-optimization/89278
32505 * tree-loop-distribution.c: Include tree-eh.h.
32506 (generate_memset_builtin, generate_memcpy_builtin): Call
32507 rewrite_to_non_trapping_overflow on builtin->size before passing it
32508 to force_gimple_operand_gsi.
32509
32510 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32511
32512 PR other/89342
32513 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32514 optimize_debug.
32515 * opth-gen.awk: Likewise.
32516
32517 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32518
32519 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32520 Enable MMX, SSE and SSE2 by default.
32521 * config/i386/i386.c (ix86_option_override_internal): Do not
32522 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32523
32524 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32525
32526 PR rtl-optimization/89354
32527 * combine.c (make_extraction): Punt if extraction_mode is narrower
32528 than len bits.
32529
32530 2019-02-14 Maya Rashish <coypu@sdf.org>
32531
32532 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32533 * config/netbsd-d.c: New file.
32534 * config/t-netbsd: Add netbsd-d.o
32535
32536 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32537
32538 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32539 affects_type_identity to true for aarch64_vector_pcs.
32540 (aarch64_comp_type_attributes): New function.
32541 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32542
32543 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32544
32545 PR target/88850
32546 * config/arm/iterators.md (ANY64): Add V4HF.
32547
32548 2019-02-14 Martin Liska <mliska@suse.cz>
32549
32550 PR rtl-optimization/89242
32551 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32552 process a transformation.
32553
32554 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32555
32556 PR tree-optimization/89314
32557 * fold-const.c (fold_binary_loc): Cast strlen argument to
32558 const char * before dereferencing it. Formatting fixes.
32559
32560 PR middle-end/89284
32561 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32562
32563 2019-02-13 Ian Lance Taylor <iant@golang.org>
32564
32565 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32566 and set current index for other optimizations.
32567
32568 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32569
32570 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32571 nonimmediate_operand as operand 2 predicate.
32572 (vec_set<VF2_512_256:mode>_0): Ditto.
32573 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32574 (*vec_concatv2si): Remove alternative 2.
32575 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32576 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32577 (vec_concatv2di): Split alternatives 4,5,6 to ...
32578 (*vec_concatv2di_0) ... new pattern.
32579
32580 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32581
32582 PR target/89190
32583 * config/arm/arm.c (ldm_stm_operation_p) Set
32584 addr_reg_in_reglist correctly for first register.
32585 (load_multiple_sequence): Remove dead base check.
32586 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32587
32588 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32589
32590 PR target/88847
32591 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32592 Expose as @aarch64_pred_mov.
32593 * config/aarch64/aarch64.c (aarch64_classify_address):
32594 Use expand_insn which legitimizes operands.
32595
32596 2019-02-13 Martin Liska <mliska@suse.cz>
32597
32598 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32599 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32600 and pointer_offset fields.
32601 (initialize_argument_information): Remove usage of dead
32602 fields.
32603 * cgraph.h (struct cgraph_thunk_info): Remove
32604 add_pointer_bounds_args.
32605 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32606 fields.
32607 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32608 fields.
32609 * config/i386/i386.c (ix86_function_arg_advance): Remove
32610 unrelated comment.
32611 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32612 (def_builtin): Remove usage of dead fields.
32613 (ix86_add_new_builtins): Likewise.
32614 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32615 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32616 (sem_function::init): Likewise.
32617 (sem_variable::merge): Likewise.
32618 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32619 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32620 * lto-cgraph.c (lto_output_node): Likewise.
32621 (lto_output_varpool_node): Likewise.
32622 (input_node): Likewise.
32623 (input_varpool_node): Likewise.
32624 * lto-streamer-out.c (lto_output): Likewise.
32625 * tree-inline.c (expand_call_inline): Remove usage of
32626 assign_stmts.
32627 * tree-inline.h (struct copy_body_data): Likewise.
32628 * varpool.c (varpool_node::dump): Likewise.
32629
32630 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32631
32632 PR middle-end/89303
32633 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32634 into pt->vars_contains_escaped_heap instead of setting
32635 pt->vars_contains_escaped_heap to it.
32636
32637 PR middle-end/89281
32638 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32639 INTVAL (size), compare it to GET_MODE_MASK instead of
32640 1 << GET_MODE_BITSIZE.
32641
32642 PR target/89290
32643 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32644 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32645 -mcmodel=large.
32646
32647 2019-02-13 Martin Liska <mliska@suse.cz>
32648
32649 PR lto/88858
32650 * cfgrtl.c (remove_barriers_from_footer): New function.
32651 (try_redirect_by_replacing_jump): Use it.
32652 (cfg_layout_redirect_edge_and_branch): Likewise.
32653
32654 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32655
32656 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32657 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32658 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32659 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32660 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32661 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32662 New BU_CRYPTO_2.
32663 * config/rs6000/rs6000.c (builtin_function_type)
32664 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32665 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32666 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32667 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32668 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32669
32670 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32671
32672 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32673 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32674
32675 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32676
32677 PR target/89229
32678 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32679 268678 and revision 268657.
32680 (*movti_internal): Likewise.
32681
32682 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32683
32684 PR target/89233
32685 * config/s390/s390.c (s390_decompose_address): Update comment.
32686 (s390_check_qrst_address): Reject invalid address forms after
32687 LRA.
32688
32689 2019-02-12 Martin Liska <mliska@suse.cz>
32690
32691 PR lto/88876
32692 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32693 we need default values of funct_state for a function that
32694 is not optimized.
32695
32696 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32697
32698 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32699 the object to pick the size of stores on strict-alignment platforms.
32700
32701 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32702 (*movdi_insn_sp32): Likewise.
32703 (*movdi_insn_sp64): Likewise.
32704
32705 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32706
32707 PR lto/88677
32708 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32709 types that needs constructiong.
32710 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32711
32712 2019-02-12 Richard Biener <rguenther@suse.de>
32713
32714 PR tree-optimization/89253
32715 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32716 duplicate the loop.
32717
32718 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32719
32720 PR lto/88147
32721 * input.c (selftest::test_line_offset_overflow): New selftest.
32722 (selftest::input_c_tests): Call it.
32723
32724 2019-02-11 Martin Sebor <msebor@redhat.com>
32725
32726 PR tree-optimization/88771
32727 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32728 when -Wstringop-overflow is set.
32729 (builtin_memref::builtin_memref): Adjust excessive upper bound
32730 only when lower bound is not excessive.
32731 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32732 -Wstringop-ovefflow.
32733 (maybe_diag_offset_bounds): Rename...
32734 (maybe_diag_access_bounds): ...to this.
32735 (check_bounds_or_overlap): Adjust for name change above.
32736
32737 2019-02-11 Martin Sebor <msebor@redhat.com>
32738
32739 PR c++/87996
32740 * builtins.c (max_object_size): Move from here...
32741 * builtins.h (max_object_size): ...and here...
32742 * tree.c (max_object_size): ...to here...
32743 * tree.h (max_object_size): ...and here.
32744
32745 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32746
32747 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32748 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32749 for correct semantics.
32750
32751 2019-02-11 Alan Modra <amodra@gmail.com>
32752
32753 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32754 -mlongcall and -mpltseq.
32755 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32756 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32757 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32758 * config/rs6000/sysv4.opt (mpltseq): New option.
32759 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32760 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32761 support is lacking. Don't allow -mpltseq with -mbss-plt.
32762 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32763 -mpltseq given for ELFv1.
32764 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32765 Only use UNSPEC_PLTSEQ for inline PLT calls.
32766 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32767 use UNSPEC_PLTSEQ for inline PLT calls.
32768 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32769 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32770 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32771 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32772 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32773 (pltseq_mtctr_<mode>): Likewise.
32774
32775 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32776
32777 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32778 Solaris ld.
32779 * configure: Regenerate.
32780
32781 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32782
32783 PR bootstrap/88714
32784 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32785 instead of r.
32786
32787 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32788
32789 * function.c (assign_parm_setup_block): Use the stored
32790 size, not the passed size, when allocating stack-space,
32791 also for a parameter with alignment larger than
32792 MAX_SUPPORTED_STACK_ALIGNMENT.
32793
32794 2019-02-11 Martin Liska <mliska@suse.cz>
32795
32796 PR ipa/89009
32797 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32798 * ipa-inline.c (inline_small_functions): Likewise.
32799 * ipa-pure-const.c (propagate_pure_const): Likewise.
32800 (propagate_nothrow): Likewise.
32801 * ipa-reference.c (propagate): Likewise.
32802 * ipa-utils.c (struct searchc_env): Remove unused field.
32803 (searchc): Always search across AVAIL_INTERPOSABLE.
32804 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32805 the only called IPA pure const can properly not propagate
32806 across interposable boundary.
32807 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32808
32809 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32810
32811 * config/nds32/nds32.md (call_internal, call_value_internal,
32812 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32813
32814 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32815
32816 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32817 typo.
32818
32819 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32820
32821 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32822 in comments
32823
32824 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32825
32826 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32827
32828 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32829
32830 PR tree-optimization/89268
32831 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32832 if preds is non-NULL.
32833
32834 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32835
32836 PR lto/89272
32837 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32838 polymorphic types.
32839
32840 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32841
32842 * config/nds32/nds32.md (trap): New pattern.
32843
32844 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32845
32846 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32847 dwarf span.
32848
32849 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32850
32851 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32852 to split POST_INC.
32853
32854 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32855
32856 * ipa-visibility.c (localize_node): Also do not localize
32857 LDPR_PREVAILING_DEF_IRONLY_EXP.
32858
32859 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32860
32861 PR lto/87957
32862 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32863 instead of type_with_linkage.
32864
32865 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32866
32867 PR ipa/88755
32868 * params.def (uninlined-function-insns, uninlined-function-time,
32869 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32870 bound so we don't get overflows.
32871
32872 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32873
32874 * config/rs6000/rs6000-string.c (expand_compare_loop,
32875 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32876 memcmp/strncmp.
32877
32878 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32879
32880 PR middle-end/89246
32881 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32882 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32883 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32884
32885 2019-02-09 Alan Modra <amodra@gmail.com>
32886
32887 PR target/88343
32888 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32889 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32890 setup.
32891
32892 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32893
32894 PR middle-end/88560
32895 * lra-constraints.c (process_alt_operands): Don't increase reject
32896 for memory when offset memory is required.
32897
32898 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32899
32900 * config/s390/vector.md: Implement vector copysign.
32901
32902 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32903
32904 * expr.c (expand_constructor): Correct indentations.
32905
32906 2019-02-08 Richard Biener <rguenther@suse.de>
32907
32908 PR tree-optimization/89247
32909 * tree-if-conv.c: Include tree-cfgcleanup.h.
32910 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32911 (tree_if_conversion): Pass through predicate vector.
32912 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32913 inline, see if any if-converted loops we refrece in
32914 LOOP_VECTORIZED calls vanished and fixup.
32915 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32916
32917 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32918
32919 * config/s390/constraints.md (jdd): New constraint.
32920
32921 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32922
32923 PR target/89229
32924 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32925 upper 16 vector registers without TARGET_AVX512VL.
32926 (*movti_internal): Likewise.
32927
32928 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32929
32930 PR rtl-optimization/89234
32931 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32932 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32933 (copy_reg_eh_region_note_backward): Likewise.
32934
32935 2019-02-08 Richard Biener <rguenther@suse.de>
32936
32937 PR middle-end/89223
32938 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32939 doesn't fit in HWI.
32940 (analyze_subscript_affine_affine): Handle failure from
32941 initialize_matrix_A.
32942
32943 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32944
32945 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32946 cfun everywhere.
32947
32948 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32949
32950 PR tree-optimization/86637
32951 PR tree-optimization/89235
32952 * tree-vect-loop.c (optimize_mask_stores): Add an
32953 auto_purge_vect_location sentinel to ensure that vect_location is
32954 purged on exit.
32955 * tree-vectorizer.c
32956 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32957 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32958 to ensure that vect_location is purged on exit.
32959 (pass_slp_vectorize::execute): Likewise, replacing the manual
32960 reset.
32961 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32962
32963 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32964
32965 * config/aarch64/iterators.md (max_opp): New code_attr.
32966 (USMAX): New code iterator.
32967 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32968 (aarch64_smax): Likewise.
32969 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32970 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32971 MINUS (MAX MIN).
32972
32973 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32974
32975 PR target/89229
32976 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32977 for TARGET_AVX512VL.
32978 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32979
32980 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32981
32982 * config/s390/s390-builtin-types.def: Add new types.
32983 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32984 (s390_vec_xlw4): Make the memory operand into a const pointer.
32985 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32986 float.
32987 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32988 a new vector type with the alignment of the scalar memory operand.
32989
32990 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32991 Jakub Jelinek <jakub@redhat.com>
32992
32993 PR bootstrap/88714
32994 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32995 arm_count_ldrdstrd_insns): New declarations.
32996 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32997 MINUS.
32998 (valid_operands_ldrd_strd): New function.
32999 (arm_count_ldrdstrd_insns): New function.
33000 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
33001 sets instead of single DImode set and define new insns to match this.
33002
33003 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33004
33005 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
33006 Make it a C initializer.
33007
33008 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33009
33010 PR/target 88850
33011 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
33012
33013 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33014
33015 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
33016 Use neon_dot<q> for type.
33017 (neon_<sup>dot_lane<vsi2qi>): Likewise.
33018
33019 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33020
33021 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
33022 Use neon_dot<q> for type.
33023 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
33024 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
33025
33026 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
33027
33028 PR rtl-optimization/89225
33029 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
33030 sizes check.
33031
33032 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
33033
33034 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
33035 after restoring registers saved to allocate the frame on Windows.
33036
33037 2019-02-06 Richard Biener <rguenther@suse.de>
33038
33039 PR tree-optimization/89182
33040 * graphite.h (cached_scalar_evolution_in_region): Declare.
33041 * graphite.c (struct seir_cache_key): New.
33042 (struct sese_scev_hash): Likewise.
33043 (seir_cache): New global.
33044 (cached_scalar_evolution_in_region): New function.
33045 (graphite_transform_loops): Allocate and release seir_cache.
33046 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
33047 cached_scalar_evolution_in_region.
33048 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33049 Simplify.
33050 (scop_detection::graphite_can_represent_expr: Use
33051 cached_scalar_evolution_in_region.
33052 (scop_detection::stmt_simple_for_scop_p): Likewise.
33053 (find_params_in_bb): Likewise.
33054 (gather_bbs::before_dom_children): Likewise.
33055 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
33056 (add_loop_constraints): Likewise.
33057
33058 2019-02-06 Jakub Jelinek <jakub@redhat.com>
33059
33060 PR middle-end/89210
33061 * fold-const-call.c (fold_const_vec_convert): Pass true as last
33062 operand to new_unary_operation only if both element types are integral
33063 and it isn't a widening conversion. Return NULL_TREE if
33064 new_unary_operation failed.
33065
33066 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
33067
33068 PR target/88856
33069 * config/s390/s390.md: Remove load and test FP splitter.
33070
33071 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33072
33073 PR target/89112
33074 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
33075 expand_compare_loop, expand_block_compare_gpr,
33076 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
33077 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
33078 #include "profile-count.h" and "predict.h" for types and functions
33079 needed to work with REG_BR_PROB notes.
33080
33081 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33082
33083 PR target/89112
33084 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
33085 for the long branch case.
33086
33087 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33088
33089 PR target/89188
33090 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
33091 can throw, non-call exceptions are enabled and we can't delete
33092 dead exceptions or alter cfg. Set must_clean if
33093 delete_insn_and_edges returns true, don't set it blindly for calls.
33094 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
33095
33096 PR rtl-optimization/89195
33097 * combine.c (make_extraction): For MEMs, don't extract bytes outside
33098 of the original MEM.
33099
33100 2019-02-05 Martin Liska <mliska@suse.cz>
33101
33102 PR gcov-profile/89000
33103 * gcov.c (function_summary): Remove argument.
33104 (file_summary): New function.
33105 (print_usage): Replace tabs with spaces.
33106 (generate_results): Use new function file_summary.
33107
33108 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33109
33110 PR target/89186
33111 * optabs.c (prepare_cmp_insn): Pass x and y to
33112 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
33113
33114 2019-02-05 Richard Biener <rguenther@suse.de>
33115
33116 PR middle-end/89150
33117 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
33118 (struct bitmap_element): Drop chain_prev so we properly recurse on
33119 the prev member, supporting tree views.
33120 (struct bitmap_head): GTY skip the obstack member.
33121
33122 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
33123
33124 PR c/88698
33125 * doc/extend.texi (Vector Extensions): Add an example of using vector
33126 types together with x86 intrinsics.
33127
33128 2019-02-04 Alan Modra <amodra@gmail.com>
33129
33130 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
33131 str[] size to 160, and comment.
33132
33133 2019-02-04 Alan Modra <amodra@gmail.com>
33134
33135 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
33136 (rs6000_pltseq_template): Guard output of TLS markers with
33137 TARGET_TLS_MARKERS.
33138 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
33139 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
33140 to use inline PLT sequences.
33141 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33142 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33143 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
33144
33145 2019-02-04 Martin Liska <mliska@suse.cz>
33146
33147 PR ipa/88985
33148 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
33149 out when ipa_fn_summaries does not contain entry for callee.
33150
33151 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
33152
33153 * config/sparc/sparc.h: Remove superfluous blank lines.
33154 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
33155 (got_register_rtx): ...this.
33156 (sparc_got): Adjust to above renaming.
33157 (sparc_tls_got): Likewise.
33158 (sparc_delegitimize_address): Likewise.
33159 (sparc_output_mi_thunk): Likewise.
33160 (sparc_init_pic_reg): Likewise.
33161 (save_local_or_in_reg_p): Fix test on the GOT register.
33162 (USE_HIDDEN_LINKONCE): Move around.
33163 (get_pc_thunk_name): Likewise.
33164 (gen_load_pcrel_sym): Likewise.
33165 (load_got_register): Likewise.
33166
33167 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
33168
33169 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
33170 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
33171
33172 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33173
33174 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
33175 into consideration.
33176
33177 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33178
33179 * config.gcc (with_nds32_lib, glibc):
33180 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
33181 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
33182 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
33183
33184 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
33185
33186 PR target/89071
33187 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
33188 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
33189 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
33190 (*rcpsf2_sse): Ditto.
33191 (*rsqrtsf2_sse): Ditto.
33192 (sse4_1_round<mode<2): Ditto.
33193
33194 2019-02-03 Richard Biener <rguenther@suse.de>
33195
33196 PR debug/87295
33197 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
33198 orig.
33199
33200 2019-02-02 Jakub Jelinek <jakub@redhat.com>
33201
33202 PR middle-end/87887
33203 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33204 Punt with warning on aggregate return or argument types. Ignore
33205 type/mode checking for uniform arguments.
33206
33207 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
33208
33209 * combine.c (try_combine): Do not print "Can't combine" messages unless
33210 printing failed combination attempts.
33211
33212 2019-02-01 Martin Jambor <mjambor@suse.cz>
33213
33214 PR hsa/87863
33215 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
33216 segment and global segment variables before making them static.
33217
33218 2019-02-01 Martin Jambor <mjambor@suse.cz>
33219
33220 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
33221 missed optimization dump with dump_enabled_p.
33222
33223 2019-02-01 Richard Biener <rguenther@suse.de>
33224
33225 PR middle-end/88597
33226 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
33227 the instantiate cache.
33228 (instantiate_scev_binary): Elide second operand procesing
33229 if equal to the first.
33230 * tree-chrec.c (chrec_contains_symbols): Add visited set.
33231 (chrec_contains_undetermined): Likewise.
33232 (tree_contains_chrecs): Likewise.
33233
33234 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
33235
33236 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
33237
33238 2019-02-01 Jakub Jelinek <jakub@redhat.com>
33239
33240 PR tree-optimization/89143
33241 * wide-int-range.h (wide_int_range_absu): Declare.
33242 * wide-int-range.cc (wide_int_range_absu): New function.
33243 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
33244
33245 PR tree-optimization/88107
33246 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
33247 instead of assertion that eh_region_outermost is non-NULL, if it
33248 is NULL, set *ALL to true and return NULL.
33249 (move_sese_region_to_fn): Adjust caller, if all is set, call
33250 duplicate_eh_regions with NULL region.
33251
33252 2019-02-01 Richard Biener <rguenth@suse.de>
33253
33254 PR rtl-optimization/88593
33255 * mode-switching.c (optimize_mode_switching): Free dominators before
33256 calling cleanup_cfg.
33257
33258 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
33259
33260 PR tree-optimization/88932
33261 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
33262
33263 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33264
33265 PR middle-end/89137
33266 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
33267 bogus clang warning.
33268
33269 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
33270
33271 PR target/89071
33272 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
33273 alternative to avoid partial SSE register stall for TARGET_AVX.
33274 (truncdfsf2): Ditto.
33275 (sse4_1_round<mode>2): Ditto.
33276
33277 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
33278
33279 PR tree-optimization/89008
33280 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
33281 process anything of the form X * 0.
33282
33283 2019-01-31 Richard Biener <rguenther@suse.de>
33284
33285 PR tree-optimization/89135
33286 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
33287 with abnormal preds.
33288
33289 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33290
33291 PR sanitizer/89124
33292 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
33293 always_inline callees into no_sanitize_address callers.
33294
33295 2019-01-31 Richard Biener <rguenther@suse.de>
33296
33297 PR rtl-optimization/89115
33298 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
33299
33300 2019-01-30 Martin Sebor <msebor@redhat.com>
33301
33302 PR other/89106
33303 * doc/extend.texi (cast to a union): Correct and expand.
33304
33305 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
33306
33307 PR rtl-optimization/87246
33308 * lra-constraints.c (simplify_operand_subreg): Reload memory
33309 in subreg if the address became invalid.
33310
33311 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
33312
33313 PR target/87064
33314 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
33315 Disable for little-endian.
33316
33317 2019-01-30 Richard Biener <rguenther@suse.de>
33318
33319 PR rtl-optimization/89115
33320 * opts.c (default_options_optimization): Reduce
33321 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
33322 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
33323 to the default.
33324
33325 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
33326
33327 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
33328 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
33329 type of vector element when vec_extract is implemented by direct
33330 move.
33331
33332 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
33333
33334 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
33335
33336 2019-01-30 Richard Biener <rguenther@suse.de>
33337
33338 PR tree-optimization/89111
33339 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
33340 canonicalization to appropriately sized access types.
33341
33342 2019-01-30 Jakub Jelinek <jakub@redhat.com>
33343
33344 PR c++/89105
33345 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
33346 for arguments to functions that are TU-local and shouldn't be
33347 referenced by assembly.
33348
33349 2019-01-30 Ulrich Drepper <drepper@redhat.com>
33350
33351 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
33352 after '='.
33353
33354 2019-01-29 Martin Sebor <msebor@redhat.com>
33355
33356 PR c/88956
33357 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
33358
33359 2019-01-29 Jakub Jelinek <jakub@redhat.com>
33360
33361 PR c++/66676
33362 PR ipa/89104
33363 * omp-simd-clone.c (simd_clone_clauses_extract)
33364 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
33365 OMP_CLAUSE_ALIGNED_ALIGNMENT.
33366
33367 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
33368
33369 * config.gcc: Force .init_array for ARC.
33370
33371 2019-01-29 Richard Biener <rguenther@suse.de>
33372
33373 PR debug/87295
33374 * dwarf2out.c (collect_skeleton_dies): New helper.
33375 (copy_decls_for_unworthy_types): Call it.
33376 (build_abbrev_table): Assert we do not try to replace
33377 DW_AT_signature refs with local refs.
33378
33379 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33380
33381 PR middle-end/89002
33382 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33383 for lastprivate/linear IV, push gimplify context around gimplify_assign
33384 and, if it needed any temporaries, pop it into a gimple bind around the
33385 sequence.
33386
33387 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33388
33389 * common.opt (-Wattribute-alias): Remove "no-" from name.
33390 Make -Wattribute-alias command line option and
33391 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33392
33393 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33394
33395 PR target/89073
33396 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33397 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33398 x86 ISA options.
33399 (bmi2): Add missing @opindex.
33400 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33401 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
33402 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33403 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33404 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33405 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33406 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33407 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33408 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33409 xsavec, xsaveopt and xsaves options.
33410
33411 2019-01-28 Richard Biener <rguenther@suse.de>
33412
33413 PR debug/89076
33414 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33415 support removal.
33416
33417 2019-01-28 Richard Biener <rguenther@suse.de>
33418
33419 PR tree-optimization/88739
33420 * tree-cfg.c (verify_types_in_gimple_reference): Verify
33421 BIT_FIELD_REFs only are applied to mode-precision operands
33422 when they are integral.
33423 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33424 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33425 BIT_FIELD_REFs of non-mode-precision integral operands.
33426
33427 2019-01-27 Jakub Jelinek <jakub@redhat.com>
33428
33429 PR target/87214
33430 * config/i386/sse.md
33431 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33432 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33433 first constants in pairs are multiples of 2. Formatting fixes.
33434 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33435 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33436 first constants in each quadruple are multiples of 4. Formatting fixes.
33437
33438 2019-01-26 Martin Jambor <mjambor@suse.cz>
33439
33440 PR ipa/88933
33441 * tree-inline.c: Include tree-cfgcleanup.h.
33442 (delete_unreachable_blocks_update_callgraph): Move...
33443 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33444 ...here, make externally visible, make second argument bool, adjust
33445 all callers.
33446 * tree-cfgcleanup.c: Include cgraph.h.
33447 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33448 Declare.
33449 * ipa-prop.c: Include tree-cfgcleanup.h.
33450 (ipcp_transform_function): Call
33451 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33452
33453 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33454
33455 PR rtl-optimization/88846
33456 * ira.c (process_set_for_memref_referenced_p): New.
33457 (memref_referenced_p): Add new param. Use
33458 process_set_for_memref_referenced_p. Add new switch cases.
33459 (memref_used_between_p): Pass new arg to memref_referenced_p.
33460
33461 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33462
33463 PR target/88469
33464 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33465 argument ABI_BREAK. Set to true if the calculated alignment has
33466 changed in gcc-9. Check bit-fields for their base type alignment.
33467 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33468 (aarch64_function_arg_boundary): Likewise.
33469 (aarch64_gimplify_va_arg_expr): Likewise.
33470
33471 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33472
33473 PR middle-end/89037
33474 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33475 instead of accessing TREE_INT_CST_ELT directly.
33476
33477 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33478
33479 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33480 fenv_exceptions description.
33481
33482 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33483
33484 PR rtl-optimization/87763
33485 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33486 Allow SUBREG when matching CC_NZmode compare.
33487
33488 2019-01-25 Richard Biener <rguenther@suse.de>
33489
33490 PR tree-optimization/89049
33491 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33492 Look at the pattern stmt to determine if the stmt is vectorized.
33493
33494 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33495
33496 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33497 (pred_mov<mode>): Handle all-register forms using both a new
33498 alternative and a split.
33499
33500 2019-01-25 Richard Biener <rguenther@suse.de>
33501
33502 PR tree-optimization/86865
33503 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33504 Reject non-do-while loops.
33505
33506 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33507
33508 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33509 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33510 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33511 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33512 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33513 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33514 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33515 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33516 vlogical_operand, gpc_reg_operand, int_reg_operand,
33517 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33518 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33519 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33520 (save_world_operation, restore_world_operation, lmw_operation,
33521 stmw_operation): Use MEM_P and REG_P.
33522 (tie_operand): Use MEM_P.
33523 (vrsave_operation, crsave_operation): Use REG_P.
33524 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33525 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33526 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33527 (call_operand): Use HARD_REGISTER_P.
33528 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33529 Use CONST_INT_P.
33530 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33531 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33532 quad_aligned_load_p, replace_swapped_aligned_store,
33533 recombine_lvx_pattern, replace_swapped_aligned_load,
33534 recombine_stvx_pattern): Use MEM_P.
33535 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33536 Use MEM_P and SYMBOL_REF_P.
33537 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33538 (insn_is_swappable_p): Use REG_P and MEM_P.
33539 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33540 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33541 Use CONST_INT_P.
33542 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33543 Use CONST_DOUBLE_P.
33544 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33545 CONST_WIDE_INT_P.
33546 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33547 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33548 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33549 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33550 reg_or_subregno:
33551 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33552 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33553 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33554 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33555 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33556 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33557 rs6000_split_logical_di): Use CONST_INT_P.
33558 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33559 REG_P and SYMBOL_REF_P.
33560 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33561 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33562 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33563 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33564 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33565 (small_data_operand, print_operand_address): Use CONST_INT_P and
33566 SYMBOL_REF_P.
33567 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33568 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33569 Use HARD_REGISTER_NUM_P.
33570 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33571 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33572 SUBREG_P and SYMBOL_REF_P.
33573 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33574 and HARD_REGISTER_NUM_P.
33575 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33576 reg_or_subregno.
33577 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33578 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33579 MEM_P and REG_P.
33580 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33581 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33582 find_addr_reg): Use REG_P.
33583 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33584 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33585 (offsettable_ok_by_alignment, constant_pool_expr_p,
33586 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33587 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33588 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33589 rs6000_assemble_integer, create_TOC_reference,
33590 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33591 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33592 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33593 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33594 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33595 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33596 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33597 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33598 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33599 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33600 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33601 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33602 and cbranch<mode>4): Use CONST_INT_P.
33603 (multiple define_splits): Use REG_P and SUBREG_P.
33604 (define_expands call, call_value): Use MEM_P.
33605 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33606 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33607 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33608 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33609 and HARD_REGISTER_NUM_P.
33610 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33611
33612 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33613
33614 PR rtl-optimization/88948
33615 * rtl.h (prepare_copy_insn): New prototype.
33616 * gcse.c (prepare_copy_insn): New function, split out from
33617 process_insert_insn.
33618 (process_insert_insn): Use prepare_copy_insn.
33619 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33620 instead of gen_move_insn.
33621
33622 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33623
33624 PR debug/89006
33625 * config/i386/i386.c (ix86_pic_register_p): Return true for
33626 UNSPEC_SET_GOT too.
33627
33628 PR tree-optimization/88964
33629 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33630 punt if HONOR_SNANS (chrec).
33631
33632 PR middle-end/89015
33633 * tree-nested.c (convert_nonlocal_reference_stmt,
33634 convert_local_reference_stmt, convert_tramp_reference_stmt,
33635 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33636 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33637 or GIMPLE_OMP_TASK.
33638
33639 PR tree-optimization/89027
33640 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33641 for "omp simd array" variables.
33642
33643 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33644
33645 PR target/88469
33646 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33647 force the alignment of m_val.
33648
33649 2019-01-24 Richard Biener <rguenther@suse.de>
33650
33651 PR lto/87187
33652 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33653 When in "legacy" debug mode make sure to reset self-origins.
33654
33655 2019-01-24 Martin Liska <mliska@suse.cz>
33656
33657 PR gcov-profile/88994
33658 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33659 result will be always smaller or equal to the original.
33660 * gcov.c (mangle_name): Fix else branch where we should
33661 also copy to PTR and shift the pointer.
33662
33663 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33664
33665 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33666 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33667
33668 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33669
33670 * common/config/i386/i386-common.c
33671 (OPTION_MASK_ISA_ENQCMD_SET,
33672 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33673 (ix86_handle_option): Handle -menqcmd.
33674 * config.gcc (enqcmdintrin.h): New header file.
33675 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33676 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33677 -menqcmd.
33678 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33679 function type.
33680 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33681 __builtin_ia32_enqcmds): New builtins.
33682 * config/i386/i386-c.c (__ENQCMD__): New macro.
33683 * config/i386/i386-option.c (ix86_target_string): Add
33684 -menqcmd.
33685 (ix86_valid_target_attribute_inner_p): Likewise.
33686 * config/i386/i386-expand.c
33687 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33688 IX86_BUILTIN_ENQCMDS.
33689 * config/i386/i386.h (TARGET_ENQCMD): New.
33690 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33691 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33692 (movdir64b_<mode>): Parameterize to enable share expansion code
33693 with ENQCMD in function ix86_expand_builtin.
33694 * config/i386/i386.opt: Add -menqcmd.
33695 * config/i386/immintrin.h: Include enqcmdintrin.h.
33696 * config/i386/enqcmdintrin.h: New intrinsic file.
33697 * doc/invoke.texi: Add -menqcmd.
33698
33699 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33700 Steve Ellcey <sellcey@marvell.com>
33701
33702 PR target/85711
33703 * recog.c (address_operand): Return false on wrong mode for address.
33704 (constrain_operands): Check for mode with 'p' constraint.
33705
33706 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33707
33708 PR target/88998
33709 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33710 Disparage MMX alternative.
33711 (sse2_cvtpd2pi): Ditto.
33712 (sse2_cvttpd2pi): Ditto.
33713
33714 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33715
33716 PR driver/89014
33717 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33718 use-after-free of the result of
33719 aarch64_get_extension_string_for_isa_flags.
33720
33721 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33722
33723 PR c/44715
33724 * doc/extend.texi: Document break and continue behavior in
33725 statement expressions.
33726
33727 2019-01-23 Richard Biener <rguenther@suse.de>
33728
33729 PR tree-optimization/89008
33730 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33731 not leave another stray operand.
33732
33733 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33734
33735 * BASE-VER: Bump to 9.0.1.
33736
33737 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33738
33739 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33740 thunk that returns by reference, use the type of the return object
33741 of the thunk instead of that of the alias to build the dereference.
33742
33743 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33744
33745 * config/arc/atomic.md: Add operand to DMB instruction.
33746
33747 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33748
33749 PR tree-optimization/88964
33750 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33751 build_zero_cst instead of build_int_cst. Return false for loop
33752 invariants which honor signed zeros.
33753
33754 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33755
33756 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33757
33758 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33759
33760 PR target/88965
33761 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33762 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33763 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33764
33765 PR middle-end/88968
33766 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33767 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33768
33769 PR target/87064
33770 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33771 Disable for little endian.
33772
33773 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33774
33775 PR target/88469
33776 * config/arm/arm.c (arm_needs_double_word_align): Check
33777 DECL_BIT_FIELD_TYPE.
33778
33779 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33780 H.J. Lu <hongjiu.lu@intel.com>
33781
33782 PR target/88909
33783 * config/i386/i386-builtin.def: Add mask2 to all builtin
33784 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33785 SPECIAL_ARGS.
33786 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33787 (BDESC_FIRST): Likewise.
33788 (define_builtin): Add an argument for mask2. Updated to handle
33789 both ix86_isa_flags and ix86_isa_flags2.
33790 (define_builtin_const): Likewise.
33791 (define_builtin_pure): Likewise.
33792 (define_builtin2): Deleted.
33793 (define_builtin_const2): Likewise.
33794 (builtin_description): Add a member, mask2.
33795 (bdesc_*): Add mask2 to builtin initializations.
33796 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33797 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33798 support.
33799 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33800
33801 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33802
33803 PR target/88954
33804 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33805 noplt attribute.
33806
33807 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33808
33809 PR target/88469
33810 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33811 alignment is dominated by a bitfield with 64-bit aligned base type.
33812 (arm_function_arg): Emit a warning if the alignment has changed since
33813 earlier GCC releases.
33814 (arm_function_arg_boundary): Likewise.
33815 (arm_setup_incoming_varargs): Likewise.
33816
33817 2019-01-22 Richard Biener <rguenther@suse.de>
33818
33819 PR tree-optimization/88862
33820 * graphite-scop-detection.c
33821 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33822
33823 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33824
33825 * doc/extend.tex (AMD GCN Function Attributes): New section.
33826 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33827 * doc/invoke.texi (AMD GCN Options): New section.
33828 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33829
33830 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33831
33832 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33833 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33834
33835 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33836
33837 PR tree-optimization/88044
33838 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33839 is false in the first iteration, but !every_iteration, return false
33840 instead of true with niter->niter zero.
33841
33842 PR rtl-optimization/88904
33843 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33844 any nonequal registers before processing BB_END (b).
33845
33846 PR target/88905
33847 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33848 GET_MODE (op0).
33849 (expand_binop_directly, expand_doubleword_clz,
33850 expand_doubleword_popcount, expand_ctz, expand_ffs,
33851 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33852
33853 PR rtl-optimization/49429
33854 PR target/49454
33855 PR rtl-optimization/86334
33856 PR target/88906
33857 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33858 addressable from here...
33859 (emit_block_op_via_libcall): ... to here.
33860
33861 2019-01-22 Richard Biener <rguenther@suse.de>
33862
33863 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33864 auto_vec for cost vector to fix memleak.
33865 (vectorize_fold_left_reduction): Properly gather SLP defs.
33866 (vectorizable_comparison): Do not swap operands to properly
33867 gather SLP defs.
33868
33869 2019-01-22 Alan Modra <amodra@gmail.com>
33870
33871 PR target/88614
33872 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33873 stays a reg. Allow a const_int.
33874 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33875 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33876 (IS_NOMARK_TLSGETADDR): Define.
33877 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33878 (rs6000_output_tlsargs): New function.
33879 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33880 __tls_get_addr call takes an arg.
33881 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33882 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33883 delete split..
33884 (call_value_nonlocal_sysv): ..or here, delete split.
33885 (tls_gdld_nomark): Delete.
33886 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33887 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33888 (call_value_nonlocal_sysv): Likewise.
33889 (call_value_nonlocal_sysv_secure): Likewise.
33890 (call_value_nonlocal_aix): Likewise.
33891 (call_value_indirect_aix): Likewise.
33892 (call_value_indirect_elfv2): Likewise.
33893 (call_value_local32, call_value_local64): Disable for no-mark tls.
33894 (call_value_local_aix): Likewise.
33895
33896 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33897
33898 PR target/88938
33899 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33900 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33901
33902 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33903
33904 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33905 string contents as hash_map keys.
33906
33907 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33908
33909 PR c/88928
33910 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33911 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33912 instead of TYPE_ALIGN.
33913 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33914 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33915 pointer from TYPE_STUB_DECL.
33916
33917 2019-01-21 Richard Biener <rguenther@suse.de>
33918
33919 PR tree-optimization/88934
33920 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33921 at the possibly non-constant operand.
33922 (vect_get_constant_vectors): Adjust.
33923
33924 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33925
33926 PR target/71659
33927 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33928 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33929 instead of _X86INTRIN_H_INCLUDED.
33930 * onfig/i386/clwbintrin.h: Likewise.
33931 * config/i386/pkuintrin.h: Likewise.
33932 * config/i386/prfchwintrin.h: Likewise.
33933 * config/i386/rdseedintrin.h: Likewise.
33934 * config/i386/wbnoinvdintrin.h: Likewise.
33935 * config/i386/xsavecintrin.h: Likewise.
33936 * config/i386/xsavesintrin.h: Likewise.
33937 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33938 * config/i386/xsaveintrin.h: Likewise.
33939 * config/i386/xsaveoptintrin.h: Likewise.
33940 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33941 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33942 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33943 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33944 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33945 * config/i386/immintrin.h: Here.
33946
33947 2019-01-20 Martin Jambor <mjambor@suse.cz>
33948
33949 PR ipa/87615
33950 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33951 with aa_walk_budget.
33952 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33953 aa_walk_budget_p parameter.
33954 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33955 walk. Updated all callers.
33956 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33957 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33958 unmodified_parm.
33959 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33960 parameter info. Extract info from fbi. Pass fbi to recursive calls
33961 and to unmodified_parm.
33962 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33963 info, updated call to will_be_nonconstant_expr_predicate.
33964 (param_change_prob): New parameter fbi, limit AA walking.
33965 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33966 calls to various above functions.
33967 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33968 parameter. Use it to limit AA walking.
33969 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33970 fbi, limit AA walk.
33971 (detect_type_change): New parameter fbi, pass it on to
33972 detect_type_change_from_memory_writes.
33973 (detect_type_change_ssa): Likewise.
33974 (aa_overwalked): Removed.
33975 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33976 accordingly, adjust to the neew AA limiting scheme.
33977 (parm_ref_data_preserved_p): Likewise.
33978 (ipa_compute_jump_functions_for_edge): Adjust call to
33979 get_dynamic_type.
33980 (ipa_analyze_call_uses): Likewise.
33981 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33982 (ipa_analyze_node): Initialize aa_walk_budget.
33983 (ipcp_transform_function): Likewise.
33984 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33985 to get_dynamic_type.
33986
33987 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33988
33989 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33990 outside of #if CHECKING_P code.
33991
33992 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33993
33994 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33995 New function, split out from...
33996 (loop_versioning::analyze_stride): ...here.
33997 (loop_versioning::find_per_loop_multiplication): Use gassign.
33998 (loop_versioning::analyze_term_using_scevs): Return a success code.
33999 (loop_versioning::analyze_arbitrary_term): New function.
34000 (loop_versioning::analyze_address_fragment): Use
34001 analyze_arbitrary_term if all else fails.
34002
34003 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
34004
34005 PR target/88892
34006 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
34007 operands.
34008
34009 2019-01-18 Richard Biener <rguenther@suse.de>
34010
34011 PR tree-optimization/88903
34012 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
34013 scalar stmts a SLP shift amount is composed of when detecting
34014 shifts by scalars.
34015
34016 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
34017
34018 PR target/88799
34019 * config/arm/arm-cpus.in (mp): New feature.
34020 (sec): New feature.
34021 (fgroup ARMv7ve): Add mp and sec features.
34022 (arch armv7-a): Add options to allow mp and sec extensions.
34023 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
34024 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
34025 extenstions to the base architecture.
34026 (cpu cortex-a8): Add sec extension to the base architecture.
34027 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
34028 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
34029 variants down to the base v7-a varaint.
34030 * config/arm/t-multilib (v7_a_arch_variants): New variable.
34031 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
34032 of permitted extensions for -march=armv7-a and for
34033 -mcpu=generic-armv7-a.
34034
34035 2019-01-18 Martin Liska <mliska@suse.cz>
34036
34037 * params.def: Fix comment.
34038 * tree-profile.c (gimple_init_gcov_profiler): Bump function
34039 name.
34040 (gimple_gen_ic_func_profiler): Likewise.
34041
34042 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34043
34044 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
34045 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
34046 and put in error checks for stack protector guard options.
34047 (aarch64_stack_protect_guard): New.
34048 (TARGET_STACK_PROTECT_GUARD): Define.
34049 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
34050 (reg_stack_protect_address<mode>): New.
34051 (stack_protect_set): Adjust for SSP_GLOBAL.
34052 (stack_protect_test): Likewise.
34053 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
34054 (-mstack-protector-guard): Likewise.
34055 (-mstack-protector-guard-offset): Likewise.
34056
34057 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34058
34059 PR tree-optimization/86214
34060 * tree-inline.h (struct copy_body_data): Add
34061 add_clobbers_to_eh_landing_pads member.
34062 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
34063 (copy_edges_for_bb): Call it if EH edge destination is <
34064 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
34065 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
34066 if flag_stack_reuse != SR_NONE and clear it afterwards.
34067
34068 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
34069
34070 PR target/85596
34071 * doc/install.texi (with-multilib-list): Document for aarch64.
34072
34073 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34074
34075 PR target/88734
34076 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
34077 (("..."))) with ("...").
34078
34079 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
34080
34081 * doc/extend.texi (Built-in Functions for Memory Model Aware
34082 Atomic Operations): Document atomic fetch and nand.
34083
34084 2019-01-18 Martin Liska <mliska@suse.cz>
34085 Richard Biener <rguenther@suse.de>
34086
34087 PR middle-end/88587
34088 * cgraph.h (create_version_clone_with_body): Add new argument
34089 with attributes.
34090 * cgraphclones.c (cgraph_node::create_version_clone): Add
34091 DECL_ATTRIBUTES to a newly created decl. And call
34092 valid_attribute_p so that proper cl_target_optimization_node
34093 is set for the newly created declaration.
34094 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
34095 for declaration.
34096 (expand_target_clones): Do not call valid_attribute_p, it must
34097 be already done.
34098 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
34099 vector types.
34100
34101 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34102
34103 PR target/88734
34104 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
34105 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
34106 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
34107
34108 2019-01-17 Martin Sebor <msebor@redhat.com>
34109
34110 PR middle-end/88273
34111 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
34112 Handle anti-ranges the same as no range at all.
34113
34114 2018-01-17 Steve Ellcey <sellcey@cavium.com>
34115
34116 * config/aarch64/aarch64.c (cgraph.h): New include.
34117 (intl.h): New include.
34118 (supported_simd_type): New function.
34119 (currently_supported_simd_type): Ditto.
34120 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
34121 (aarch64_simd_clone_adjust): Ditto.
34122 (aarch64_simd_clone_usable): Ditto.
34123 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
34124 (TARGET_SIMD_CLONE_ADJUST): Ditto.
34125 (TARGET_SIMD_CLONE_USABLE): Ditto.
34126 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
34127 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
34128 call.
34129
34130 2019-01-17 Martin Sebor <msebor@redhat.com>
34131
34132 PR tree-optimization/88800
34133 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
34134 NO_WARNING bit here. Avoid folding out-of-bounds calls.
34135 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
34136 redundant argument. Add new argument and issue diagnostics under
34137 its control. Detect out-of-bounds access even with warnings
34138 disabled.
34139 (check_bounds_or_overlap): Change return type. Add argument.
34140 (wrestrict_dom_walker::check_call): Adjust.
34141 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
34142 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
34143 check_bounds_or_overlap's return value.
34144 (handle_builtin_stxncpy): Same.
34145 (handle_builtin_strcat): Same.
34146
34147 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34148 Kwok Cheung Yeung <kcy@codesourcery.com>
34149 Julian Brown <julian@codesourcery.com>
34150 Tom de Vries <tom@codesourcery.com>
34151
34152 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
34153
34154 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34155
34156 * doc/sourcebuild.texi: Document dg-require-effective-target
34157 llvm_binutils and offload_gcn.
34158
34159 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34160 Kwok Cheung Yeung <kcy@codesourcery.com>
34161 Julian Brown <julian@codesourcery.com>
34162 Tom de Vries <tom@codesourcery.com>
34163
34164 * doc/sourcebuild.texi: Document dg-required-effective-target
34165 exceptions.
34166
34167 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34168 Kwok Cheung Yeung <kcy@codesourcery.com>
34169 Julian Brown <julian@codesourcery.com>
34170 Tom de Vries <tom@codesourcery.com>
34171 Jan Hubicka <hubicka@ucw.cz>
34172 Martin Jambor <mjambor@suse.cz>
34173
34174 * config.gcc: Add amdgcn*-*-amdhsa configuration.
34175 * configure.ac: Check for dlopen.
34176 * configure: Regenerate.
34177
34178 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34179 Kwok Cheung Yeung <kcy@codesourcery.com>
34180 Julian Brown <julian@codesourcery.com>
34181 Tom de Vries <tom@codesourcery.com>
34182 Jan Hubicka <hubicka@ucw.cz>
34183 Martin Jambor <mjambor@suse.cz>
34184
34185 * common/config/gcn/gcn-common.c: New file.
34186 * config/gcn/driver-gcn.c: New file.
34187 * config/gcn/gcn-builtins.def: New file.
34188 * config/gcn/gcn-hsa.h: New file.
34189 * config/gcn/gcn-modes.def: New file.
34190 * config/gcn/gcn-opts.h: New file.
34191 * config/gcn/gcn-passes.def: New file.
34192 * config/gcn/gcn-protos.h: New file.
34193 * config/gcn/gcn-run.c: New file.
34194 * config/gcn/gcn-tree.c: New file.
34195 * config/gcn/gcn.c: New file.
34196 * config/gcn/gcn.h: New file.
34197 * config/gcn/gcn.opt: New file.
34198 * config/gcn/t-gcn-hsa: New file.
34199
34200 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34201 Kwok Cheung Yeung <kcy@codesourcery.com>
34202 Julian Brown <julian@codesourcery.com>
34203 Tom de Vries <tom@codesourcery.com>
34204 Jan Hubicka <hubicka@ucw.cz>
34205 Martin Jambor <mjambor@suse.cz>
34206
34207 * config/gcn/constraints.md: New file.
34208 * config/gcn/gcn-valu.md: New file.
34209 * config/gcn/gcn.md: New file.
34210 * config/gcn/predicates.md: New file.
34211
34212 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
34213
34214 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
34215 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
34216 (stmt_uses_0_or_null_in_undefined_way): Likewise.
34217 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
34218
34219 2019-01-17 Tamar Christina <tamar.christina@arm.com>
34220
34221 PR target/88851
34222 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
34223 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
34224 it and document registers.
34225
34226 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34227
34228 * config/aarch64/aarch64.c (ares_tunings): Define.
34229 * config/aarch64/aarch64-cores.def (ares): Use the above.
34230
34231 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34232
34233 PR target/88794
34234 Revert:
34235 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
34236
34237 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
34238 (_mm512_fixupimm_round_pd): Update parameters and builtin.
34239 (_mm512_maskz_fixupimm_round_pd): Ditto.
34240 (_mm512_fixupimm_round_ps): Ditto.
34241 (_mm512_maskz_fixupimm_round_ps): Ditto.
34242 (_mm_fixupimm_round_sd): Ditto.
34243 (_mm_maskz_fixupimm_round_sd): Ditto.
34244 (_mm_fixupimm_round_ss): Ditto.
34245 (_mm_maskz_fixupimm_round_ss): Ditto.
34246 (_mm512_fixupimm_pd): Ditto.
34247 (_mm512_maskz_fixupimm_pd): Ditto.
34248 (_mm512_fixupimm_ps): Ditto.
34249 (_mm512_maskz_fixupimm_ps): Ditto.
34250 (_mm_fixupimm_sd): Ditto.
34251 (_mm_maskz_fixupimm_sd): Ditto.
34252 (_mm_fixupimm_ss): Ditto.
34253 (_mm_maskz_fixupimm_ss): Ditto.
34254 (_mm512_mask_fixupimm_round_pd): Update builtin.
34255 (_mm512_mask_fixupimm_round_ps): Ditto.
34256 (_mm_mask_fixupimm_round_sd): Ditto.
34257 (_mm_mask_fixupimm_round_ss): Ditto.
34258 (_mm512_mask_fixupimm_pd): Ditto.
34259 (_mm512_mask_fixupimm_ps): Ditto.
34260 (_mm_mask_fixupimm_sd): Ditto.
34261 (_mm_mask_fixupimm_ss): Ditto.
34262 * config/i386/avx512vlintrin.h:
34263 (_mm256_fixupimm_pd): Update parameters and builtin.
34264 (_mm256_maskz_fixupimm_pd): Ditto.
34265 (_mm256_fixupimm_ps): Ditto.
34266 (_mm256_maskz_fixupimm_ps): Ditto.
34267 (_mm_fixupimm_pd): Ditto.
34268 (_mm_maskz_fixupimm_pd): Ditto.
34269 (_mm_fixupimm_ps): Ditto.
34270 (_mm_maskz_fixupimm_ps): Ditto.
34271 (_mm256_mask_fixupimm_pd): Update builtin.
34272 (_mm256_mask_fixupimm_ps): Ditto.
34273 (_mm_mask_fixupimm_pd): Ditto.
34274 (_mm_mask_fixupimm_ps): Ditto.
34275 * config/i386/i386-builtin-types.def: Add new types and remove
34276 useless ones.
34277 * config/i386/i386-builtin.def: Update builtin definitions.
34278 * config/i386/i386.c: Handle new builtin types and remove useless ones.
34279 * config/i386/sse.md: Update VFIXUPIMM* patterns.
34280 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34281 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34282 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
34283 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34284 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34285 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
34286 * config/i386/subst.md:
34287 (round_saeonly_sd_mask_operand4): Add new subst_attr.
34288 (round_saeonly_sd_mask_op4): Ditto.
34289 (round_saeonly_expand_operand5): Ditto.
34290 (round_saeonly_expand): Update.
34291
34292 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34293
34294 PR target/88794
34295 Revert:
34296 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
34297
34298 * config/i386/sse.md: Combine VFIXUPIMM* patterns
34299 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34300 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34301 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
34302 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34303 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34304 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
34305
34306 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34307
34308 PR target/88794
34309 Revert:
34310 2018-12-15 Jakub Jelinek <jakub@redhat.com>
34311
34312 PR target/88489
34313 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
34314 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
34315 instead of UNSPEC_FIXUPIMM.
34316
34317 2019-01-17 Richard Biener <rguenther@suse.de>
34318
34319 PR lto/86736
34320 * dwarf2out.c (want_pubnames): Never generate pubnames sections
34321 and friends for the LTO part of debug info.
34322
34323 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34324
34325 PR tree-optimization/86214
34326 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
34327 if x == y.
34328
34329 PR rtl-optimization/88870
34330 * dce.c (deletable_insn_p): Never delete const/pure calls that can
34331 throw if we can't alter the cfg or delete dead exceptions.
34332 (mark_insn): Don't call find_call_stack_args for such calls.
34333
34334 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
34335
34336 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
34337 prototypes for vec_st.
34338 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
34339 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
34340 mainly on signed/unsigned long long and double.
34341
34342 2019-01-16 David Malcolm <dmalcolm@redhat.com>
34343
34344 PR target/88861
34345 * combine.c (delete_noop_moves): Convert to "bool" return,
34346 returning true if any edges are eliminated.
34347 (combine_instructions): Also return true if delete_noop_moves
34348 returns true.
34349
34350 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34351
34352 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
34353 correct max nunits for endian swap.
34354 (aarch64_expand_fcmla_builtin): Correct subreg code.
34355 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34356 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
34357 lane endianness.
34358
34359 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
34360
34361 * config/alpha/alpha.c (alpha_gimplify_va_arg):
34362 Handle split indirect COMPLEX_TYPE arguments.
34363
34364 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
34365
34366 PR target/86891
34367 * config/aarch64/aarch64-modes.def: Add comment about how the carry
34368 bit is set by add and compare.
34369 (CC_ADC): New CC_MODE.
34370 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34371 to cache the code and mode of X. Adjust the shape of a CC_Cmode
34372 comparison. Add detection for CC_ADCmode.
34373 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
34374 CC_ADCmode.
34375 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34376 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34377 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
34378 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
34379 to eliminate the need for zero-extending the operands.
34380 (add<mode>3_compareC_imm): Delete. Merge into ...
34381 (add<mode>3_compareC): ... this. Restructure the comparison to
34382 eliminate the need for zero-extending the operands.
34383 (add<mode>3_carryin): Use LTU for the overflow detection.
34384 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34385 Reexpress comparison for overflow.
34386 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34387 (add<mode>3_carryinC): Likewise.
34388 (add<mode>3_carryinV): Use LTU for carry between partials.
34389 * config/aarch64/predicates.md (aarch64_carry_operation): Update
34390 handling of CC_Cmode and add CC_ADCmode.
34391 (aarch64_borrow_operation): Likewise.
34392
34393 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34394
34395 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34396 Remove patternmode.
34397 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34398 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34399 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34400 Remove endianness conversion.
34401
34402 2019-01-16 Martin Liska <mliska@suse.cz>
34403
34404 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34405 for GCC driver.
34406 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34407 a new argument.
34408 * gcc.c (add_sysrooted_hdrs_prefix): New function.
34409 (path_prefix_reset): Move up in the source file.
34410 (find_fortran_preinclude_file): Make complex search for the
34411 fortran header files.
34412
34413 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
34414
34415 * godump.c (go_output_typedef): When outputting a typedef, refer
34416 to the underlying type by its name and not its structure.
34417
34418 2019-01-15 David Malcolm <dmalcolm@redhat.com>
34419
34420 PR c++/88795
34421 * tree.c (build_function_type): Assert that arg_types is not
34422 error_mark_node.
34423
34424 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
34425
34426 PR inline-asm/52813
34427 * doc/extend.texi: Document that listing the stack pointer in the
34428 clobber list of an asm is a deprecated feature.
34429 * common.opt (Wdeprecated): Moved from c-family/c.opt.
34430 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34431 warning instead of an error for clobbers of the stack pointer.
34432 Add a note explaining why.
34433
34434 2019-01-15 Richard Biener <rguenther@suse.de>
34435
34436 PR debug/88046
34437 * dwarf2out.c (gen_member_die): Do not generate inheritance
34438 DIEs late.
34439
34440 2019-01-15 Richard Biener <rguenther@suse.de>
34441
34442 PR tree-optimization/88855
34443 * tree-if-conv.c (combine_blocks): Collect
34444 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34445
34446 2019-01-15 Tom de Vries <tdevries@suse.de>
34447
34448 PR target/80547
34449 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34450 lhs == NULL_TREE for gang-level reduction.
34451
34452 2019-01-15 Richard Biener <rguenther@suse.de>
34453 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34454
34455 PR ipa/88788
34456 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34457 return true if SSA_NAME is already marked in visited bitmap.
34458 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34459
34460 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34461
34462 PR tree-optimization/88775
34463 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34464 equal == 0 equality pointer comparisons some more if compared in
34465 integral types and either one points to an automatic var and the
34466 other to a global, or we can prove at least one points to the middle
34467 or both point to start or both point to end.
34468
34469 2019-01-14 Andi Kleen <ak@linux.intel.com>
34470
34471 * Makefile.in: Lower autofdo sampling rate by 10x.
34472 * Makefile.tpl: Dito.
34473
34474 2019-01-14 Tom Honermann <tom@honermann.net>
34475
34476 * defaults.h: Define CHAR8_TYPE.
34477
34478 2019-01-14 Martin Sebor <msebor@redhat.com>
34479
34480 PR target/88638
34481 * doc/extend.texi (Darwin Format Checks): Clarify.
34482
34483 2019-01-14 Richard Biener <rguenther@suse.de>
34484
34485 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34486 whether we are in (simplify ...) or (match ...) context.
34487
34488 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34489
34490 PR rtl-optimization/88796
34491 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34492 * cfgexpand.c (stack_protect_prologue): Initialize
34493 crtl->stack_protect_guard_decl.
34494 * function.c (stack_protect_epilogue): Use it instead of calling
34495 targetm.stack_protect_guard again.
34496 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34497 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34498 crtl->stack_protect_guard_decl.
34499 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34500 on the returned MEM_EXPR.
34501
34502 2019-01-12 Tom de Vries <tdevries@suse.de>
34503
34504 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34505 vector length using -fopenacc-dim.
34506
34507 2019-01-12 Tom de Vries <tdevries@suse.de>
34508
34509 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34510 lengths into account.
34511
34512 2019-01-12 Svante Signell <svante.signell@gmail.com>
34513
34514 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34515 (TARGET_CAN_SPLIT_STACK): Define.
34516 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34517
34518 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34519
34520 * params.def (inline-unit-growth): Set to 40.
34521
34522 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34523
34524 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34525
34526 2019-01-12 Tom de Vries <tdevries@suse.de>
34527
34528 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34529 region calling vector-partitionable routine, set default_vector_length
34530 to WARP_SIZE.
34531
34532 2019-01-12 Tom de Vries <tdevries@suse.de>
34533
34534 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34535 variable default_vector_length.
34536
34537 2019-01-12 Tom de Vries <tdevries@suse.de>
34538
34539 PR middle-end/88703
34540 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34541 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34542 dimensions limits.
34543
34544 2019-01-12 Tom de Vries <tdevries@suse.de>
34545
34546 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34547 (nvptx_goacc_validate_dims): Add used parameter.
34548 * doc/tm.texi: Regenerate.
34549 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34550 argument to call to targetm.goacc.validate_dims.
34551 (default_goacc_validate_dims): Add used
34552 parameter.
34553 * target.def (validate_dims): Add used parameter in DEFHOOK.
34554 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34555
34556 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34557
34558 PR middle-end/85956
34559 PR lto/88733
34560 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34561 field.
34562 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34563 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34564 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34565 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34566
34567 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34568
34569 PR rtl-optimization/87305
34570 * lra-assigns.c
34571 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34572 for little endian pseudos used as paradoxical subreg.
34573
34574 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34575
34576 PR tree-optimization/88693
34577 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34578 for STRING_CSTs that don't contain any NUL characters in the first
34579 TREE_STRING_LENGTH bytes.
34580
34581 2019-01-11 Alan Modra <amodra@gmail.com>
34582
34583 PR 88777
34584 PR 88614
34585 * genattrtab.c (min_fn): Don't translate values.
34586 (min_attr_value): Return INT_MAX when the value can't be calculated.
34587 Return minimum among any values that can be calculated.
34588 (max_attr_value): Adjust.
34589
34590 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34591
34592 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34593
34594 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34595
34596 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34597 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34598 (aarch64_return_call_with_max_clobbers): New function.
34599 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34600 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34601 argument.
34602 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34603 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34604 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34605 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34606 * cselib.c (cselib_process_insn): Add argument to
34607 targetm.hard_regno_call_part_clobbered call.
34608 * ira-conflicts.c (ira_build_conflicts): Ditto.
34609 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34610 * lra-constraints.c (inherit_reload_reg): Ditto.
34611 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34612 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34613 argument. Call targetm.return_call_with_max_clobbers.
34614 Add argument to targetm.hard_regno_call_part_clobbered call.
34615 (calls_have_same_clobbers_p): New function.
34616 (process_bb_lives): Add call_insn and last_call_insn variables.
34617 Pass call_insn to check_pseudos_live_through_calls.
34618 Modify if stmt to check targetm.return_call_with_max_clobbers.
34619 Update setting of flush variable.
34620 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34621 to false.
34622 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34623 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34624 targetm.hard_regno_call_part_clobbered call.
34625 * reginfo.c (choose_hard_reg_mode): Ditto.
34626 * regrename.c (check_new_reg_p): Ditto.
34627 * reload.c (find_equiv_reg): Ditto.
34628 * reload1.c (emit_reload_insns): Ditto.
34629 * sched-deps.c (deps_analyze_insn): Ditto.
34630 * sel-sched.c (init_regs_for_mode): Ditto.
34631 (mark_unavailable_hard_regs): Ditto.
34632 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34633 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34634 (return_call_with_max_clobbers): New target function.
34635 * doc/tm.texi: Regenerate.
34636 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34637 * hooks.c (hook_bool_uint_mode_false): Change to
34638 hook_bool_insn_uint_mode_false.
34639 * hooks.h (hook_bool_uint_mode_false): Ditto.
34640
34641 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34642
34643 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34644 (aarch64_remove_extra_call_preserved_regs): New function.
34645 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34646 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34647 * doc/tm.texi: Regenerate.
34648 * final.c (get_call_reg_set_usage): Call new hook.
34649 * target.def (remove_extra_call_preserved_regs): New hook.
34650 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34651 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34652
34653 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34654
34655 PR bootstrap/88714
34656 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34657 inside of pass_combine_1 dump rather than pass_profile_1.
34658
34659 2019-01-11 Tom de Vries <tdevries@suse.de>
34660
34661 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34662 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34663 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34664 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34665 num_workers 16.
34666
34667 2019-01-11 Tom de Vries <tdevries@suse.de>
34668
34669 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34670
34671 2019-01-11 Jan Beulich <jbeulich@suse.com>
34672
34673 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34674 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34675 sse2_cvtsi2sd): Add {l}.
34676 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34677 syntax.
34678
34679 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34680
34681 PR target/88785
34682 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34683 define_expand.
34684 (*float<floatunssuffix>v2div2sf2): New define_insn.
34685 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34686 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34687 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34688 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34689 match_operands with "const0_operand" "C".
34690
34691 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34692
34693 * config/aarch64/aarch64-builtins.c
34694 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34695 (aarch64_init_simd_builtins): ...Here
34696
34697 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34698
34699 PR rtl-optimization/87305
34700 * lra-assigns.c
34701 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34702 allocation for big endian pseudos used as paradoxical subregs and
34703 spill them if it is wrong.
34704 * lra-constraints.c (lra_constraints): Add a comment.
34705
34706 2019-01-10 Richard Biener <rguenther@suse.de>
34707
34708 PR tree-optimization/88792
34709 * tree-ssa-pre.c (get_representative_for): Do not return a
34710 value-number here.
34711
34712 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34713
34714 PR middle-end/84877
34715 PR bootstrap/88450
34716 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34717 (assign_parm_setup_block): Do the argument slot realignment here
34718 instead.
34719
34720 2019-01-10 Stefan Agner <stefan@agner.ch>
34721
34722 PR target/88648
34723 * config/arm/arm.c (arm_option_override_internal): Force
34724 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34725
34726 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34727
34728 PR c/88568
34729 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34730 DECL_EXTERNAL.
34731
34732 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34733
34734 * config/arm/arm-builtins.c
34735 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34736 (MAC_LANE_PAIR_QUALIFIERS): New.
34737 (arm_expand_builtin_args): Use it.
34738 (arm_expand_builtin_1): Likewise.
34739 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34740 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34741 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34742 * config/arm/arm_neon.h:
34743 (vcadd_rot90_f16): New.
34744 (vcaddq_rot90_f16): New.
34745 (vcadd_rot270_f16): New.
34746 (vcaddq_rot270_f16): New.
34747 (vcmla_f16): New.
34748 (vcmlaq_f16): New.
34749 (vcmla_lane_f16): New.
34750 (vcmla_laneq_f16): New.
34751 (vcmlaq_lane_f16): New.
34752 (vcmlaq_laneq_f16): New.
34753 (vcmla_rot90_f16): New.
34754 (vcmlaq_rot90_f16): New.
34755 (vcmla_rot90_lane_f16): New.
34756 (vcmla_rot90_laneq_f16): New.
34757 (vcmlaq_rot90_lane_f16): New.
34758 (vcmlaq_rot90_laneq_f16): New.
34759 (vcmla_rot180_f16): New.
34760 (vcmlaq_rot180_f16): New.
34761 (vcmla_rot180_lane_f16): New.
34762 (vcmla_rot180_laneq_f16): New.
34763 (vcmlaq_rot180_lane_f16): New.
34764 (vcmlaq_rot180_laneq_f16): New.
34765 (vcmla_rot270_f16): New.
34766 (vcmlaq_rot270_f16): New.
34767 (vcmla_rot270_lane_f16): New.
34768 (vcmla_rot270_laneq_f16): New.
34769 (vcmlaq_rot270_lane_f16): New.
34770 (vcmlaq_rot270_laneq_f16): New.
34771 (vcadd_rot90_f32): New.
34772 (vcaddq_rot90_f32): New.
34773 (vcadd_rot270_f32): New.
34774 (vcaddq_rot270_f32): New.
34775 (vcmla_f32): New.
34776 (vcmlaq_f32): New.
34777 (vcmla_lane_f32): New.
34778 (vcmla_laneq_f32): New.
34779 (vcmlaq_lane_f32): New.
34780 (vcmlaq_laneq_f32): New.
34781 (vcmla_rot90_f32): New.
34782 (vcmlaq_rot90_f32): New.
34783 (vcmla_rot90_lane_f32): New.
34784 (vcmla_rot90_laneq_f32): New.
34785 (vcmlaq_rot90_lane_f32): New.
34786 (vcmlaq_rot90_laneq_f32): New.
34787 (vcmla_rot180_f32): New.
34788 (vcmlaq_rot180_f32): New.
34789 (vcmla_rot180_lane_f32): New.
34790 (vcmla_rot180_laneq_f32): New.
34791 (vcmlaq_rot180_lane_f32): New.
34792 (vcmlaq_rot180_laneq_f32): New.
34793 (vcmla_rot270_f32): New.
34794 (vcmlaq_rot270_f32): New.
34795 (vcmla_rot270_lane_f32): New.
34796 (vcmla_rot270_laneq_f32): New.
34797 (vcmlaq_rot270_lane_f32): New.
34798 (vcmlaq_rot270_laneq_f32): New.
34799 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34800 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34801 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34802 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34803 vcmlaq_lane270): New.
34804 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34805 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34806 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34807 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34808 (arm_option_reconfigure_globals): Use them.
34809 * config/arm/iterators.md (VDF, VQ_HSF): New.
34810 (VCADD, VCMLA): New.
34811 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34812 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34813 New.
34814 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34815 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34816
34817 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34818
34819 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34820 Add qualifier_lane_pair_index.
34821 (emit-rtl.h): Include.
34822 (TYPES_QUADOP_LANE_PAIR): New.
34823 (aarch64_simd_expand_args): Use it.
34824 (aarch64_simd_expand_builtin): Likewise.
34825 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34826 New.
34827 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34828 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34829 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34830 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34831 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34832 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34833 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34834 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34835 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34836 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34837 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34838 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34839 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34840 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34841 Add __ARM_FEATURE_COMPLEX.
34842 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34843 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34844 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34845 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34846 fcmlaq_lane270): New.
34847 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34848 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34849 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34850 * config/aarch64/arm_neon.h:
34851 (vcadd_rot90_f16): New.
34852 (vcaddq_rot90_f16): New.
34853 (vcadd_rot270_f16): New.
34854 (vcaddq_rot270_f16): New.
34855 (vcmla_f16): New.
34856 (vcmlaq_f16): New.
34857 (vcmla_lane_f16): New.
34858 (vcmla_laneq_f16): New.
34859 (vcmlaq_lane_f16): New.
34860 (vcmlaq_rot90_lane_f16): New.
34861 (vcmla_rot90_laneq_f16): New.
34862 (vcmla_rot90_lane_f16): New.
34863 (vcmlaq_rot90_f16): New.
34864 (vcmla_rot90_f16): New.
34865 (vcmlaq_laneq_f16): New.
34866 (vcmla_rot180_laneq_f16): New.
34867 (vcmla_rot180_lane_f16): New.
34868 (vcmlaq_rot180_f16): New.
34869 (vcmla_rot180_f16): New.
34870 (vcmlaq_rot90_laneq_f16): New.
34871 (vcmlaq_rot270_laneq_f16): New.
34872 (vcmlaq_rot270_lane_f16): New.
34873 (vcmla_rot270_laneq_f16): New.
34874 (vcmlaq_rot270_f16): New.
34875 (vcmla_rot270_f16): New.
34876 (vcmlaq_rot180_laneq_f16): New.
34877 (vcmlaq_rot180_lane_f16): New.
34878 (vcmla_rot270_lane_f16): New.
34879 (vcadd_rot90_f32): New.
34880 (vcaddq_rot90_f32): New.
34881 (vcaddq_rot90_f64): New.
34882 (vcadd_rot270_f32): New.
34883 (vcaddq_rot270_f32): New.
34884 (vcaddq_rot270_f64): New.
34885 (vcmla_f32): New.
34886 (vcmlaq_f32): New.
34887 (vcmlaq_f64): New.
34888 (vcmla_lane_f32): New.
34889 (vcmla_laneq_f32): New.
34890 (vcmlaq_lane_f32): New.
34891 (vcmlaq_laneq_f32): New.
34892 (vcmla_rot90_f32): New.
34893 (vcmlaq_rot90_f32): New.
34894 (vcmlaq_rot90_f64): New.
34895 (vcmla_rot90_lane_f32): New.
34896 (vcmla_rot90_laneq_f32): New.
34897 (vcmlaq_rot90_lane_f32): New.
34898 (vcmlaq_rot90_laneq_f32): New.
34899 (vcmla_rot180_f32): New.
34900 (vcmlaq_rot180_f32): New.
34901 (vcmlaq_rot180_f64): New.
34902 (vcmla_rot180_lane_f32): New.
34903 (vcmla_rot180_laneq_f32): New.
34904 (vcmlaq_rot180_lane_f32): New.
34905 (vcmlaq_rot180_laneq_f32): New.
34906 (vcmla_rot270_f32): New.
34907 (vcmlaq_rot270_f32): New.
34908 (vcmlaq_rot270_f64): New.
34909 (vcmla_rot270_lane_f32): New.
34910 (vcmla_rot270_laneq_f32): New.
34911 (vcmlaq_rot270_lane_f32): New.
34912 (vcmlaq_rot270_laneq_f32): New.
34913 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34914 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34915 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34916 (FCADD, FCMLA): New.
34917 (rot): New.
34918 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34919
34920 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34921
34922 PR other/16615
34923
34924 * config/pa/pa.c: Change "can not" to "cannot".
34925 * gimple-ssa-evrp-analyze.c: Likewise.
34926 * ipa-icf.c: Likewise.
34927 * ipa-polymorphic-call.c: Likewise.
34928 * ipa-pure-const.c: Likewise.
34929 * lra-constraints.c: Likewise.
34930 * lra-remat.c: Likewise.
34931 * reload1.c: Likewise.
34932 * reorg.c: Likewise.
34933 * tree-ssa-uninit.c: Likewise.
34934
34935 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34936
34937 PR other/16615
34938
34939 * Makefile.in: Mechanically replace "can not" with "cannot".
34940 * alias.c: Likewise.
34941 * builtins.c: Likewise.
34942 * calls.c: Likewise.
34943 * cgraph.c: Likewise.
34944 * cgraph.h: Likewise.
34945 * cgraphclones.c: Likewise.
34946 * cgraphunit.c: Likewise.
34947 * combine-stack-adj.c: Likewise.
34948 * combine.c: Likewise.
34949 * common/config/i386/i386-common.c: Likewise.
34950 * config/aarch64/aarch64.c: Likewise.
34951 * config/alpha/sync.md: Likewise.
34952 * config/arc/arc.c: Likewise.
34953 * config/arc/predicates.md: Likewise.
34954 * config/arm/arm-c.c: Likewise.
34955 * config/arm/arm.c: Likewise.
34956 * config/arm/arm.h: Likewise.
34957 * config/arm/arm.md: Likewise.
34958 * config/arm/cortex-r4f.md: Likewise.
34959 * config/csky/csky.c: Likewise.
34960 * config/csky/csky.h: Likewise.
34961 * config/darwin-f.c: Likewise.
34962 * config/epiphany/epiphany.md: Likewise.
34963 * config/i386/i386.c: Likewise.
34964 * config/i386/sol2.h: Likewise.
34965 * config/m68k/m68k.c: Likewise.
34966 * config/mcore/mcore.h: Likewise.
34967 * config/microblaze/microblaze.md: Likewise.
34968 * config/mips/20kc.md: Likewise.
34969 * config/mips/sb1.md: Likewise.
34970 * config/nds32/nds32.c: Likewise.
34971 * config/nds32/predicates.md: Likewise.
34972 * config/pa/pa.c: Likewise.
34973 * config/rs6000/e300c2c3.md: Likewise.
34974 * config/rs6000/rs6000.c: Likewise.
34975 * config/s390/s390.h: Likewise.
34976 * config/sh/sh.c: Likewise.
34977 * config/sh/sh.md: Likewise.
34978 * config/spu/vmx2spu.h: Likewise.
34979 * cprop.c: Likewise.
34980 * dbxout.c: Likewise.
34981 * df-scan.c: Likewise.
34982 * doc/cfg.texi: Likewise.
34983 * doc/extend.texi: Likewise.
34984 * doc/fragments.texi: Likewise.
34985 * doc/gty.texi: Likewise.
34986 * doc/invoke.texi: Likewise.
34987 * doc/lto.texi: Likewise.
34988 * doc/md.texi: Likewise.
34989 * doc/objc.texi: Likewise.
34990 * doc/rtl.texi: Likewise.
34991 * doc/tm.texi: Likewise.
34992 * dse.c: Likewise.
34993 * emit-rtl.c: Likewise.
34994 * emit-rtl.h: Likewise.
34995 * except.c: Likewise.
34996 * expmed.c: Likewise.
34997 * expr.c: Likewise.
34998 * fold-const.c: Likewise.
34999 * genautomata.c: Likewise.
35000 * gimple-fold.c: Likewise.
35001 * hard-reg-set.h: Likewise.
35002 * ifcvt.c: Likewise.
35003 * ipa-comdats.c: Likewise.
35004 * ipa-cp.c: Likewise.
35005 * ipa-devirt.c: Likewise.
35006 * ipa-fnsummary.c: Likewise.
35007 * ipa-icf.c: Likewise.
35008 * ipa-inline-transform.c: Likewise.
35009 * ipa-inline.c: Likewise.
35010 * ipa-polymorphic-call.c: Likewise.
35011 * ipa-profile.c: Likewise.
35012 * ipa-prop.c: Likewise.
35013 * ipa-pure-const.c: Likewise.
35014 * ipa-reference.c: Likewise.
35015 * ipa-split.c: Likewise.
35016 * ipa-visibility.c: Likewise.
35017 * ipa.c: Likewise.
35018 * ira-build.c: Likewise.
35019 * ira-color.c: Likewise.
35020 * ira-conflicts.c: Likewise.
35021 * ira-costs.c: Likewise.
35022 * ira-int.h: Likewise.
35023 * ira-lives.c: Likewise.
35024 * ira.c: Likewise.
35025 * ira.h: Likewise.
35026 * loop-invariant.c: Likewise.
35027 * loop-unroll.c: Likewise.
35028 * lower-subreg.c: Likewise.
35029 * lra-assigns.c: Likewise.
35030 * lra-constraints.c: Likewise.
35031 * lra-eliminations.c: Likewise.
35032 * lra-lives.c: Likewise.
35033 * lra-remat.c: Likewise.
35034 * lra-spills.c: Likewise.
35035 * lra.c: Likewise.
35036 * lto-cgraph.c: Likewise.
35037 * lto-streamer-out.c: Likewise.
35038 * postreload-gcse.c: Likewise.
35039 * predict.c: Likewise.
35040 * profile-count.h: Likewise.
35041 * profile.c: Likewise.
35042 * recog.c: Likewise.
35043 * ree.c: Likewise.
35044 * reload.c: Likewise.
35045 * reload1.c: Likewise.
35046 * reorg.c: Likewise.
35047 * resource.c: Likewise.
35048 * rtl.def: Likewise.
35049 * rtl.h: Likewise.
35050 * rtlanal.c: Likewise.
35051 * sched-deps.c: Likewise.
35052 * sched-ebb.c: Likewise.
35053 * sched-rgn.c: Likewise.
35054 * sel-sched-ir.c: Likewise.
35055 * sel-sched.c: Likewise.
35056 * shrink-wrap.c: Likewise.
35057 * simplify-rtx.c: Likewise.
35058 * symtab.c: Likewise.
35059 * target.def: Likewise.
35060 * toplev.c: Likewise.
35061 * tree-call-cdce.c: Likewise.
35062 * tree-cfg.c: Likewise.
35063 * tree-complex.c: Likewise.
35064 * tree-core.h: Likewise.
35065 * tree-eh.c: Likewise.
35066 * tree-inline.c: Likewise.
35067 * tree-loop-distribution.c: Likewise.
35068 * tree-nrv.c: Likewise.
35069 * tree-profile.c: Likewise.
35070 * tree-sra.c: Likewise.
35071 * tree-ssa-alias.c: Likewise.
35072 * tree-ssa-dce.c: Likewise.
35073 * tree-ssa-dom.c: Likewise.
35074 * tree-ssa-forwprop.c: Likewise.
35075 * tree-ssa-loop-im.c: Likewise.
35076 * tree-ssa-loop-ivcanon.c: Likewise.
35077 * tree-ssa-loop-ivopts.c: Likewise.
35078 * tree-ssa-loop-niter.c: Likewise.
35079 * tree-ssa-phionlycprop.c: Likewise.
35080 * tree-ssa-phiopt.c: Likewise.
35081 * tree-ssa-propagate.c: Likewise.
35082 * tree-ssa-threadedge.c: Likewise.
35083 * tree-ssa-threadupdate.c: Likewise.
35084 * tree-ssa-uninit.c: Likewise.
35085 * tree-ssanames.c: Likewise.
35086 * tree-streamer-out.c: Likewise.
35087 * tree.c: Likewise.
35088 * tree.h: Likewise.
35089 * vr-values.c: Likewise.
35090
35091 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
35092
35093 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
35094 (ix86_split_xorsign): Ditto.
35095 * config/i386/i386.c (ix86_expand_xorsign): New function.
35096 (ix86_split_xorsign): Ditto.
35097 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
35098 (xorsign<mode>3): New expander.
35099 (xorsign<mode>3_1): New insn_and_split pattern.
35100 * config/i386/sse.md (xorsign<mode>3): New expander.
35101
35102 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35103
35104 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
35105 (*tablejump_sp64): Likewise.
35106 (*tablejump<P:mode>): ...this.
35107 (*call_address_sp32): Merge into...
35108 (*call_address_sp64): Likewise.
35109 (*call_address<P:mode>): ...this.
35110 (*call_symbolic_sp32): Merge into...
35111 (*call_symbolic_sp64): Likewise.
35112 (*call_symbolic<P:mode>): ...this.
35113 (call_value): Remove constraint and add predicate.
35114 (*call_value_address_sp32): Merge into...
35115 (*call_value_address_sp64): Likewise.
35116 (*call_value_address<P:mode>): ...this.
35117 (*call_value_symbolic_sp32): Merge into...
35118 (*call_value_symbolic_sp64): Likewise.
35119 (*call_value_symbolic<P:mode>): ...this.
35120 (*sibcall_symbolic_sp32): Merge into...
35121 (*sibcall_symbolic_sp64): Likewise.
35122 (*sibcall_symbolic<P:mode>): ...this.
35123 (sibcall_value): Remove constraint and add predicate.
35124 (*sibcall_value_symbolic_sp32): Merge into...
35125 (*sibcall_value_symbolic_sp64): Likewise.
35126 (*sibcall_value_symbolic<P:mode>): ...this.
35127 (window_save): Minor tweak.
35128 (*branch_sp32): Merge into...
35129 (*branch_sp64): Likewise.
35130 (*branch<P:mode>): ...this.
35131
35132 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35133 James Clarke <jrtc27@jrtc27.com>
35134
35135 PR target/84010
35136 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
35137 consistently in TLS address generation and adjust code to the renaming
35138 of patterns. Mark calls to __tls_get_addr as const.
35139 * config/sparc/sparc.md (tgd_hi22): Turn into...
35140 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
35141 (tgd_lo10): Turn into...
35142 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
35143 (tgd_add32): Merge into...
35144 (tgd_add64): Likewise.
35145 (tgd_add<P:mode>): ...this and use Pmode throughout.
35146 (tldm_hi22): Turn into...
35147 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
35148 (tldm_lo10): Turn into...
35149 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
35150 (tldm_add32): Merge into...
35151 (tldm_add64): Likewise.
35152 (tldm_add<P:mode>): ...this and use Pmode throughout.
35153 (tldm_call32): Merge into...
35154 (tldm_call64): Likewise.
35155 (tldm_call<P:mode>): ...this and use Pmode throughout.
35156 (tldo_hix22): Turn into...
35157 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
35158 (tldo_lox10): Turn into...
35159 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
35160 (tldo_add32): Merge into...
35161 (tldo_add64): Likewise.
35162 (tldo_add<P:mode>): ...this and use Pmode throughout.
35163 (tie_hi22): Turn into...
35164 (tie_hi22<P:mode>): ...this and use Pmode throughout.
35165 (tie_lo10): Turn into...
35166 (tie_lo10<P:mode>): ...this and use Pmode throughout.
35167 (tie_ld64): Use DImode throughout.
35168 (tie_add32): Merge into...
35169 (tie_add64): Likewise.
35170 (tie_add<P:mode>): ...this and use Pmode throughout.
35171 (tle_hix22_sp32): Merge into...
35172 (tle_hix22_sp64): Likewise.
35173 (tle_hix22<P:mode>): ...this and use Pmode throughout.
35174 (tle_lox22_sp32): Merge into...
35175 (tle_lox22_sp64): Likewise.
35176 (tle_lox22<P:mode>): ...this and use Pmode throughout.
35177 (*tldo_ldub_sp32): Merge into...
35178 (*tldo_ldub_sp64): Likewise.
35179 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
35180 (*tldo_ldub1_sp32): Merge into...
35181 (*tldo_ldub1_sp64): Likewise.
35182 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
35183 (*tldo_ldub2_sp32): Merge into...
35184 (*tldo_ldub2_sp64): Likewise.
35185 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
35186 (*tldo_ldsb1_sp32): Merge into...
35187 (*tldo_ldsb1_sp64): Likewise.
35188 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
35189 (*tldo_ldsb2_sp32): Merge into...
35190 (*tldo_ldsb2_sp64): Likewise.
35191 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
35192 (*tldo_ldub3_sp64): Use DImode throughout.
35193 (*tldo_ldsb3_sp64): Likewise.
35194 (*tldo_lduh_sp32): Merge into...
35195 (*tldo_lduh_sp64): Likewise.
35196 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
35197 (*tldo_lduh1_sp32): Merge into...
35198 (*tldo_lduh1_sp64): Likewise.
35199 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
35200 (*tldo_ldsh1_sp32): Merge into...
35201 (*tldo_ldsh1_sp64): Likewise.
35202 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
35203 (*tldo_lduh2_sp64): Use DImode throughout.
35204 (*tldo_ldsh2_sp64): Likewise.
35205 (*tldo_lduw_sp32): Merge into...
35206 (*tldo_lduw_sp64): Likewise.
35207 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
35208 (*tldo_lduw1_sp64): Use DImode throughout.
35209 (*tldo_ldsw1_sp64): Likewise.
35210 (*tldo_ldx_sp64): Likewise.
35211 (*tldo_stb_sp32): Merge into...
35212 (*tldo_stb_sp64): Likewise.
35213 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
35214 (*tldo_sth_sp32): Merge into...
35215 (*tldo_sth_sp64): Likewise.
35216 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
35217 (*tldo_stw_sp32): Merge into...
35218 (*tldo_stw_sp64): Likewise.
35219 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
35220 (*tldo_stx_sp64): Use DImode throughout.
35221
35222 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35223
35224 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
35225 check configure option to set BTI and Return Address Signing.
35226 * configure.ac: Add --enable-standard-branch-protection and
35227 --disable-standard-branch-protection.
35228 * configure: Regenerated.
35229 * doc/install.texi: Document the same.
35230
35231 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35232 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35233
35234 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
35235 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
35236 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
35237 if bti is enabled.
35238 * config/aarch64/aarch64-bti-insert.c: New file.
35239 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
35240 pass.
35241 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
35242 new bti pass.
35243 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
35244 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
35245 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
35246 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
35247
35248 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35249
35250 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
35251 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
35252 Disable bti for -mbranch-protection=none.
35253 (aarch64_handle_standard_branch_protection): Enable bti for
35254 -mbranch-protection=standard.
35255 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
35256 -mbranch-protection.
35257 (aarch64_bti_enabled): Check if bti is enabled.
35258 * config/aarch64/aarch64.opt: Declare target variable.
35259 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
35260
35261 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35262
35263 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
35264 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
35265 (aarch64_expand_epilogue): Likewise.
35266 (aarch64_output_mi_thunk): Likewise.
35267 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
35268 TAILCALL_ADDR_REGS to x16 and x17.
35269 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
35270
35271 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35272
35273 * config/aarch64/aarch64-option-extensions.def: Define
35274 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
35275 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
35276 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
35277 (AARCH64_FL_PREDRES): New.
35278 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
35279 AARCH64_FL_PREDRES by default.
35280 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
35281
35282 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35283
35284 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
35285 ARMv8.5-A.
35286 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
35287 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
35288 * doc/invoke.texi: Document ARMv8.5-A.
35289
35290 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
35291
35292 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
35293 (xorsign<mode>3): Likewise.
35294
35295 2019-01-09 Jelinek <jakub@redhat.com>
35296
35297 PR middle-end/88758
35298 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
35299 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
35300
35301 PR rtl-optimization/88331
35302 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
35303 not currently_expanding_to_rtl.
35304
35305 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35306
35307 * doc/invoke.texi (-Os): Remove trailing spaces.
35308 (-finline-functions): Remove reference to -O2.
35309
35310 2019-01-08 Jakub Jelinek <jakub@redhat.com>
35311
35312 PR rtl-optimization/79593
35313 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
35314
35315 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
35316 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
35317
35318 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
35319
35320 PR bootstrap/88721
35321 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
35322 to -1 on entry.
35323
35324 PR debug/88723
35325 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
35326 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
35327
35328 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
35329
35330 PR target/88717
35331 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
35332 ix86_avx_u128_mode_entry.
35333
35334 2019-01-08 Martin Liska <mliska@suse.cz>
35335
35336 PR tree-optimization/88753
35337 * tree-switch-conversion.c (switch_conversion::build_one_array):
35338 Come up with local variable constructor. Convert first to
35339 type of constructor values.
35340
35341 2019-01-08 Richard Biener <rguenther@suse.de>
35342
35343 PR tree-optimization/86554
35344 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
35345 rpo_avail): Move earlier.
35346 (visit_nary_op): When value-numbering to expressions
35347 with different overflow behavior make sure there's an
35348 available expression on the path.
35349
35350 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
35351
35352 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
35353 aarch64_parse_branch_protection,
35354 struct aarch64_branch_protect_type,
35355 aarch64_handle_no_branch_protection,
35356 aarch64_handle_standard_branch_protection,
35357 aarch64_validate_mbranch_protection,
35358 aarch64_handle_pac_ret_protection,
35359 aarch64_handle_attr_branch_protection,
35360 accepted_branch_protection_string,
35361 aarch64_pac_ret_subtypes,
35362 aarch64_branch_protect_types,
35363 aarch64_handle_pac_ret_leaf): Define.
35364 (aarch64_override_options_after_change_1, aarch64_override_options):
35365 Add check for accepted_branch_protection_string.
35366 (aarch64_option_save): Save accepted_branch_protection_string.
35367 (aarch64_option_restore): Save accepted_branch_protection_string.
35368 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35369 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35370 msign-return-address.
35371 * doc/invoke.texi: Add mbranch-protection.
35372
35373 2019-01-08 Alan Modra <amodra@gmail.com>
35374
35375 PR target/88614
35376 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35377 Delete "unknownp" parameter. Adjust callers. Handle
35378 CONST_INT, PLUS, MINUS, and MULT.
35379 (attr_value_aligned): Renamed from or_attr_value.
35380 (min_attr_value): Return INT_MIN for unhandled rtl case..
35381 (min_fn): ..and translate to INT_MAX here.
35382 (write_length_unit_log): Modify to cope without "unknown".
35383 (write_attr_value): Handle IF_THEN_ELSE.
35384
35385 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35386
35387 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35388 optimization for masked stores.
35389
35390 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35391
35392 PR middle-end/88567
35393 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35394 output vector directly to duplicate_and_interleave instead of
35395 going through a temporary. Postpone insertion of ctor_seq to
35396 the end of the loop.
35397
35398 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
35399
35400 PR target/86891
35401 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35402 unsigned_p. Handle signed and unsigned overflow correction as
35403 required.
35404 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35405 prototype.
35406 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35407 for operand 2.
35408 (add<mode>3_compareV_imm): Make this callable for expanding.
35409 (subv<GPI:mode>4): Use register_operand for operand 1. Use
35410 aarch64_plus_operand for operand 2.
35411 (subv<GPI:mode>_insn): New insn pattern.
35412 (subv<GPI:mode>_imm): Likewise.
35413 (negv<GPI:mode>3): New expand pattern.
35414 (negv<GPI:mode>_insn): New insn pattern.
35415 (negv<GPI:mode>_cmp_only): Likewise.
35416 (cmpv<GPI:mode>_insn): Likewise.
35417 (subvti4): Use register_operand for operand 1. Update call to
35418 aarch64_expand_subvti.
35419 (usubvti4): Likewise.
35420 (negvti3): New expand pattern.
35421 (negdi_carryout): New insn pattern.
35422 (negvdi_carryinV): New insn pattern.
35423 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35424 version the named version.
35425 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35426 operands.
35427 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35428 patterns.
35429 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35430 patterns.
35431 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35432 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35433 (sub<mode>3_carryinCV): Delete.
35434 (sub<GPI:mode>3_carryinV): New expand pattern.
35435 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35436
35437 2019-01-07 Richard Biener <rguenther@suse.de>
35438
35439 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35440 of tree_operand_hash.
35441
35442 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35443
35444 PR tree-optimization/88598
35445 * tree.h (single_nonzero_element): Declare.
35446 * tree.c (single_nonzero_element): New function.
35447 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35448 if I is the only nonzero element of CST.
35449
35450 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35451
35452 PR tree-optimization/88598
35453 * tree.h (initializer_each_zero_or_onep): Declare.
35454 * tree.c (initializer_each_zero_or_onep): New function.
35455 (signed_or_unsigned_type_for): Handle float types too.
35456 (unsigned_type_for, signed_type_for): Update comments accordingly.
35457 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35458 x & { 0 or -1, 0 or -1, ... }.
35459
35460 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35461
35462 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35463 with x86_64-pc-linux-gnu.
35464
35465 2019-01-07 Tom de Vries <tdevries@suse.de>
35466
35467 PR target/85486
35468 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35469 function.
35470 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35471 routines.
35472
35473 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35474
35475 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35476 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35477 TARGET_AVX512F as condition.
35478
35479 PR debug/88723
35480 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35481 const_not_ok_for_debug_p target hook.
35482 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35483 on UNSPEC and subexpressions thereof if all subexpressions of the
35484 UNSPEC are CONSTANT_P.
35485
35486 PR tree-optimization/88676
35487 * tree-ssa-phiopt.c (two_value_replacement): New function.
35488 (tree_ssa_phiopt_worker): Call it.
35489
35490 PR sanitizer/88619
35491 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35492 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35493
35494 PR c++/85052
35495 * tree-vect-generic.c: Include insn-config.h and recog.h.
35496 (expand_vector_piecewise): Add defaulted ret_type argument,
35497 if non-NULL, use that in preference to type for the result type.
35498 (expand_vector_parallel): Formatting fix.
35499 (do_vec_conversion, do_vec_narrowing_conversion,
35500 expand_vector_conversion): New functions.
35501 (expand_vector_operations_1): Call expand_vector_conversion
35502 for VEC_CONVERT ifn calls.
35503 * internal-fn.def (VEC_CONVERT): New internal function.
35504 * internal-fn.c (expand_VEC_CONVERT): New function.
35505 * fold-const-call.c (fold_const_vec_convert): New function.
35506 (fold_const_call): Use it for CFN_VEC_CONVERT.
35507 * doc/extend.texi (__builtin_convertvector): Document.
35508
35509 2019-01-07 Tom de Vries <tdevries@suse.de>
35510
35511 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35512 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35513 vector_red_partition, vector_red_sym): New global variables.
35514 (nvptx_option_override): Initialize vector_red_sym.
35515 (nvptx_declare_function_name): Restore red_partition register.
35516 (nvptx_file_end): Emit code to declare the vector reduction variables.
35517 (nvptx_output_red_partition): New function.
35518 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35519 large vector reductions.
35520 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35521 (nvptx_init_builtins): Add VECTOR_ADDR.
35522 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35523 Handle nvptx_expand_shared_addr.
35524 (nvptx_get_shared_red_addr): Add vector argument and handle large
35525 vectors.
35526 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35527 large vectors.
35528 (nvptx_goacc_reduction_init): Likewise.
35529 (nvptx_goacc_reduction_fini): Likewise.
35530 (nvptx_goacc_reduction_teardown): Likewise.
35531 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35532 init,fini,teardown}.
35533 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35534 (nvptx_set_current_function): Init vector_red_partition.
35535 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35536 (nvptx_red_partition): New insn.
35537 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35538
35539 2019-01-07 Tom de Vries <tdevries@suse.de>
35540
35541 PR target/85381
35542 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35543 empty loops.
35544
35545 2019-01-07 Tom de Vries <tdevries@suse.de>
35546
35547 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35548 (nvptx_option_override): Init oacc_bcast_partition.
35549 (nvptx_init_oacc_workers): New function.
35550 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35551 (nvptx_needs_shared_bcast): New function.
35552 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35553 to propagate state.
35554 (nvptx_shared_propagate): Initialize vector bcast partition and
35555 synchronization state.
35556 (nvptx_single): Generalize to enable vectors to use shared-memory
35557 to propagate state.
35558 (nvptx_process_pars): Likewise.
35559 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35560 * config/nvptx/nvptx.h (struct machine_function): Add
35561 bcast_partition and sync_bar members.
35562
35563 2019-01-07 Tom de Vries <tdevries@suse.de>
35564
35565 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35566 (nvptx_apply_dim_limits): New function.
35567 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35568 PTX_WARP_SIZE.
35569
35570 2019-01-07 Tom de Vries <tdevries@suse.de>
35571
35572 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35573 as late as possible.
35574
35575 2019-01-07 Tom de Vries <tdevries@suse.de>
35576
35577 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35578 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35579 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35580 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35581 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35582
35583 2019-01-07 Tom de Vries <tdevries@suse.de>
35584
35585 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35586
35587 2019-01-07 Tom de Vries <tdevries@suse.de>
35588
35589 * omp-offload.c (oacc_get_min_dim): New function.
35590 * omp-offload.h (oacc_get_min_dim): Declare.
35591
35592 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35593
35594 PR target/88521
35595 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35596 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35597
35598 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35599
35600 PR tree-opt/86020
35601 Revert:
35602 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35603
35604 * ipa-inline.c (edge_badness): Use inlined_time instead of
35605 inline_summaries->get.
35606
35607 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35608
35609 * opts.c (enable_fdo_optimizations): Enable
35610 version-loops-for-strides, loop-interchange, unrol-and-jam
35611 and tree-loop-distribution.
35612 * invoke.texi: Document newly enabled options.
35613
35614 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35615
35616 * doc/invoke.texi (max-inline-insns-small): New parameters.
35617 * ipa-inline.c (want_early_inline_function_p): simplify.
35618 (want_inline_small_function_p): Fix pasto from previous patch;
35619 use max-inline-insns-small bound.
35620 * params.def (max-inline-insns-small): New param.
35621 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35622 variables correctly.
35623
35624 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35625
35626 * doc/invoke.texi: Document max-inline-insns-size,
35627 uninlined-function-insns, uninlined-function-time,
35628 uninlined-thunk-insns and uninlined-thunk-time.
35629 * params.def: Add max-inline-insns-size,
35630 uninlined-function-insns, uninlined-function-time,
35631 uninlined-thunk-insns and uninlined-thunk-time.
35632 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35633 new parameters.
35634 * ipa-inline.c (can_inline_edge_by_limits_p,
35635 want_inline_small_function_p): Use new parameters.
35636
35637 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35638
35639 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35640
35641 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35642
35643 PR middle-end/82564
35644 PR target/88620
35645 * expr.c (expand_assignment): For calls returning VLA structures
35646 if to_rtx is not a MEM, force it into a stack temporary.
35647
35648 PR debug/88635
35649 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35650 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35651 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35652 subexpressions of both operands.
35653 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35654 subrtxes are CONSTANT_P.
35655 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35656 2018-11-09 changes.
35657
35658 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35659
35660 * params.def (hot-bb-count-ws-permille): Set to 990.
35661
35662 2019-01-04 Martin Sebor <msebor@redhat.com>
35663
35664 PR c/88546
35665 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35666 leaf.
35667
35668 2019-01-04 Martin Sebor <msebor@redhat.com>
35669
35670 PR c/88363
35671 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35672
35673 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35674
35675 * gdbinit.in: Turn off pagination for the skip commands, restore
35676 it to previous state afterwards.
35677
35678 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35679
35680 PR target/88594
35681 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35682 of GET_MODE (opN) as modes of the libcall arguments.
35683
35684 2019-01-04 Jan Beulich <jbeulich@suse.com>
35685
35686 * config/i386/sse.md
35687 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35688 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35689 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35690 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35691 avx512f_vmcmp<mode>3<round_saeonly_name>,
35692 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35693 avx512f_maskcmp<mode>3,
35694 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35695 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35696 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35697 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35698 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35699 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35700 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35701 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35702 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35703 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35704 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35705 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35706 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35707 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35708 avx512cd_maskb_vec_dup<mode>,
35709 avx512cd_maskw_vec_dup<mode>,
35710 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35711 avx512dq_vmfpclass<mode>,
35712 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35713 instead of =Yk.
35714
35715 2019-01-03 Martin Sebor <msebor@redhat.com>
35716
35717 PR tree-optimization/88659
35718 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35719
35720 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35721
35722 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35723 unaligned vsx and avoid lxvd2x/stxvd2x.
35724 (gen_lvx_v4si_move): New function.
35725
35726 2019-01-03 Tom de Vries <tdevries@suse.de>
35727
35728 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35729 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35730 function.
35731 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35732
35733 2019-01-03 Tom de Vries <tdevries@suse.de>
35734
35735 * config/nvptx/nvptx.c (struct offload_attrs): New.
35736 (populate_offload_attrs): New function. Factor mask extraction out of
35737 nvptx_reorg. Add extraction of dimensions.
35738 (nvptx_reorg): Use populate_offload_attrs.
35739
35740 2019-01-03 Tom de Vries <tdevries@suse.de>
35741
35742 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35743 cases for oacc_min_dims_p and routine_p. Add asserts for
35744 oacc_default_dims_p and offload_region_p.
35745
35746 2019-01-03 Tom de Vries <tdevries@suse.de>
35747
35748 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35749 factored out of ...
35750 (nvptx_goacc_validate_dims): ... here.
35751
35752 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35753
35754 PR tree-optimization/85574
35755 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35756 structure.
35757 (struct ssa_equip_hash_traits): Declare.
35758 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35759
35760 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35761
35762 PR debug/88644
35763 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35764 change it to qualified_type.
35765
35766 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35767
35768 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35769 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35770
35771 2019-01-02 Martin Sebor <msebor@redhat.com>
35772 Jeff Law <law@redhat.com>
35773
35774 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35775 (get_range_strlen_tree): Update appropriately.
35776 (get_range_strlen)
35777 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35778
35779 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35780 rather than set_range_info.
35781 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35782 maybe_set_strlen_range. Handle potentially boundary crossing
35783 cases more conservatively.
35784 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35785 Call set_strlen_range.
35786 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35787
35788 PR middle-end/88663
35789 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35790 need the flexp argument.
35791 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35792 from calls to get_range_strlen. Update comments. Just update
35793 VAL for an unterminated const char array and let the reset of the
35794 code handle it normally. No longer try to set *flexp. Adjust
35795 return value.
35796 (get_range_strlen): Update for the new get_range_strlen API.
35797 (get_maxval_strlen): Similarly.
35798 (gimple_fold_builtin_strlen): Handle update meaning of return value
35799 from get_range_strlen.
35800 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35801 get_range_strlen API.
35802
35803 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35804
35805 PR lto/88130
35806 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35807 false at WPA time when body was removed.
35808
35809 2019-01-02 Martin Liska <mliska@suse.cz>
35810
35811 PR tree-optimization/88650
35812 * predict.c (set_even_probabilities): Calculate probability
35813 remainer only when really used.
35814
35815 2019-01-02 Richard Biener <rguenther@suse.de>
35816
35817 PR middle-end/88651
35818 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35819 widest_ints when mangling max_stmt_execution results.
35820
35821 2019-01-02 Richard Biener <rguenther@suse.de>
35822
35823 PR tree-optimization/88621
35824 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35825 bitfields when canoncalizing.
35826
35827 2019-01-02 Richard Biener <rguenther@suse.de>
35828
35829 PR target/87545
35830 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35831 cost of cheap SSE instruction.
35832
35833 2019-01-02 Richard Biener <rguenther@suse.de>
35834
35835 PR ipa/85574
35836 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35837 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35838 function.
35839 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35840 set after UIDs before splitting them.
35841
35842 2019-01-01 Martin Sebor <msebor@redhat.com>
35843 Jeff Law <law@redhat.com>
35844
35845 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35846 length is optimistic. If it is, then arrange to compute the
35847 conservative length as well.
35848
35849 * gimple-fold.h (get_range_strlen): Update prototype.
35850 * builtins.c (check_access): Update call to get_range_strlen to use
35851 c_strlen_data pointer. Change various variable accesses to instead
35852 pull data from the c_strlen_data structure.
35853 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35854 * calls.c (maybe_warn_nonstring_arg): Likewise.
35855 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35856 minimum length if maximum lengh is unknown.
35857 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35858 that used c_strlen, it's no longer needed. Restructure slightly.
35859 (format_string): Set unlikely range appropriately.
35860 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35861 formatting issues.
35862 (get_range_strlen): Accept c_strlen_data pointer for external
35863 call sites as well. Pass through to call to internal get_range_strlen.
35864 Adjust minlen, maxlen and maxbound as needed.
35865 (get_maxval_strlen): Update comments.
35866 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35867 to use c_strlen_data pointer. Change variable accesses to instead
35868 use c_strlen_data data members.
35869
35870 * gimple-fold.c (get_range_strlen): Update prototype.
35871 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35872 local variables. Use pdata to return information to caller.
35873 Update calls to get_range_strlen. Update pdata->maxbound.
35874 (get_range_strlen -- static version): Similarly.
35875 (get_range_strlen -- extern version): Update for internal
35876 get_range_strlen API change. Convert to external data format.
35877 (get_maxval_strlen): Similarly.
35878
35879 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35880
35881 * coverage.c (get_coverage_counts): Use current_function_decl.
35882 * profile.c (read_thunk_profile): New function.
35883 (branch_prob): Add THUNK parameter.
35884 * tree-profile.c (tree_profiling): Handle thunks.
35885 * value-prof.c (init_node_map): Handle thunks.
35886 * value-prof.h (branch_prob): Upate prototype.
35887 (read_thunk_profile): Declare.
35888
35889 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35890
35891 Update copyright years.
35892
35893 * gcc.c (process_command): Update copyright notice dates.
35894 * gcov-dump.c (print_version): Ditto.
35895 * gcov.c (print_version): Ditto.
35896 * gcov-tool.c (print_version): Ditto.
35897 * gengtype.c (create_file): Ditto.
35898 * doc/cpp.texi: Bump @copying's copyright year.
35899 * doc/cppinternals.texi: Ditto.
35900 * doc/gcc.texi: Ditto.
35901 * doc/gccint.texi: Ditto.
35902 * doc/gcov.texi: Ditto.
35903 * doc/install.texi: Ditto.
35904 * doc/invoke.texi: Ditto.
35905 \f
35906 Copyright (C) 2019 Free Software Foundation, Inc.
35907
35908 Copying and distribution of this file, with or without modification,
35909 are permitted in any medium without royalty provided the copyright
35910 notice and this notice are preserved.