Disallow EXTRACT_LAST_REDUCTION for reduction chains
[gcc.git] / gcc / ChangeLog
1 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
2
3 * tree-vect-loop.c (vectorizable_reduction): Don't use
4 EXTRACT_LAST_REDUCTION for chained reductions.
5
6 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
7
8 * ipa-utils.h (get_odr_name_for_type): Check for a TYPE_DECL.
9 * ipa-devirt.c (warn_types_mismatch): Don't call xstrdup for the
10 second demangled name.
11
12 2019-12-10 Jakub Jelinek <jakub@redhat.com>
13
14 * config/i386/i386.c (IX86_LEA_PRIORITY): Fix comment typos.
15
16 2019-12-10 Martin Liska <mliska@suse.cz>
17
18 PR tree-optimization/92862
19 * predict.c (predict_paths_leading_to_edge): Fix typo from e to e2.
20 * tree-ssa-loop-niter.c (loop_only_exit_p): Return false
21 instead of true;
22
23 2019-12-09 David Malcolm <dmalcolm@redhat.com>
24
25 * gcc-rich-location.c
26 (maybe_range_label_for_tree_type_mismatch::get_text): Replace
27 label_text ctor call with label_text::borrow.
28 * gcc-rich-location.h (text_range_label::get_text): Replace
29 label_text ctor called with false with label_text::borrow.
30
31 2019-12-09 David Malcolm <dmalcolm@redhat.com>
32
33 * diagnostic-show-locus.c (diagnostic_show_locus): Remove initial
34 newline.
35 (selftest::test_diagnostic_show_locus_unknown_location): Remove
36 initial newline from expected outputs.
37 (selftest::test_one_liner_simple_caret): Likewise.
38 (selftest::test_one_liner_caret_and_range): Likewise.
39 (selftest::test_one_liner_multiple_carets_and_ranges): Likewise.
40 (selftest::test_one_liner_fixit_insert_before): Likewise.
41 (selftest::test_one_liner_fixit_insert_after): Likewise.
42 (selftest::test_one_liner_fixit_remove): Likewise.
43 (selftest::test_one_liner_fixit_replace): Likewise.
44 (selftest::test_one_liner_fixit_replace_non_equal_range):
45 Likewise.
46 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
47 Likewise.
48 (selftest::test_one_liner_fixit_validation_adhoc_locations):
49 Likewise.
50 (selftest::test_one_liner_many_fixits_1): Likewise.
51 (selftest::test_one_liner_many_fixits_2): Likewise.
52 (selftest::test_one_liner_labels): Likewise.
53 (selftest::test_one_liner_simple_caret_utf8): Likewise.
54 (selftest::test_one_liner_caret_and_range_utf8): Likewise.
55 (selftest::test_one_liner_multiple_carets_and_ranges_utf8):
56 Likewise.
57 (selftest::test_one_liner_fixit_insert_before_utf8): Likewise.
58 (selftest::test_one_liner_fixit_insert_after_utf8): Likewise.
59 (selftest::test_one_liner_fixit_remove_utf8): Likewise.
60 (selftest::test_one_liner_fixit_replace_utf8): Likewise.
61 (selftest::test_one_liner_fixit_replace_non_equal_range_utf8):
62 Likewise.
63 (selftest::test_one_liner_fixit_replace_equal_secondary_range_utf8):
64 Likewise.
65 (selftest::test_one_liner_fixit_validation_adhoc_locations_utf8):
66 Likewise.
67 (selftest::test_one_liner_many_fixits_1_utf8): Likewise.
68 (selftest::test_one_liner_many_fixits_2_utf8): Likewise.
69 (selftest::test_one_liner_labels_utf8): Likewise.
70 (selftest::test_add_location_if_nearby): Likewise.
71 (selftest::test_diagnostic_show_locus_fixit_lines): Likewise.
72 (selftest::test_overlapped_fixit_printing): Likewise.
73 (selftest::test_overlapped_fixit_printing_utf8): Likewise.
74 (selftest::test_overlapped_fixit_printing_2): Likewise.
75 (selftest::test_fixit_insert_containing_newline): Likewise.
76 (selftest::test_fixit_insert_containing_newline_2): Likewise.
77 (selftest::test_fixit_replace_containing_newline): Likewise.
78 (selftest::test_fixit_deletion_affecting_newline): Likewise.
79 (selftest::test_line_numbers_multiline_range): Likewise.
80 * diagnostic.c (default_diagnostic_finalizer): Add pp_newline call
81 before call to diagnostic_show_locus.
82 (diagnostic_append_note): Likewise.
83
84 2019-12-09 Martin Sebor <msebor@redhat.com>
85
86 PR middle-end/92761
87 PR middle-end/92762
88 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Tighten
89 up tests.
90 * hash-table.h (hash_table::expand): Use placement new to copy
91 construct objects in uninitialized storage.
92 (hash_table::empty_slow): Avoid invoking copy assignment on
93 uninitialized objects.
94
95 2019-12-09 Lewis Hyatt <lhyatt@gmail.com>
96
97 PR preprocessor/49973
98 * input.c (location_compute_display_column): New function to help with
99 multibyte awareness in diagnostics.
100 (test_cpp_utf8): New self-test.
101 (input_c_tests): Call the new test.
102 * input.h (location_compute_display_column): Declare.
103 * diagnostic-show-locus.c: Pervasive changes to add multibyte awareness
104 to all classes and functions.
105 (enum column_unit): New enum.
106 (class exploc_with_display_col): New class.
107 (class layout_point): Convert m_column member to array m_columns[2].
108 (layout_range::contains_point): Add col_unit argument.
109 (test_layout_range_for_single_point): Pass new argument.
110 (test_layout_range_for_single_line): Likewise.
111 (test_layout_range_for_multiple_lines): Likewise.
112 (line_bounds::convert_to_display_cols): New function.
113 (layout::get_state_at_point): Add col_unit argument.
114 (make_range): Use empty filename rather than dummy filename.
115 (get_line_width_without_trailing_whitespace): Rename to...
116 (get_line_bytes_without_trailing_whitespace): ...this.
117 (test_get_line_width_without_trailing_whitespace): Rename to...
118 (test_get_line_bytes_without_trailing_whitespace): ...this.
119 (class layout): m_exploc changed to exploc_with_display_col from
120 plain expanded_location.
121 (layout::get_linenum_width): New accessor member function.
122 (layout::get_x_offset_display): Likewise.
123 (layout::calculate_linenum_width): New subroutine for the constuctor.
124 (layout::calculate_x_offset_display): Likewise.
125 (layout::layout): Use the new subroutines. Add multibyte awareness.
126 (layout::print_source_line): Add multibyte awareness.
127 (layout::print_line): Likewise.
128 (layout::print_annotation_line): Likewise.
129 (line_label::line_label): Likewise.
130 (layout::print_any_labels): Likewise.
131 (layout::annotation_line_showed_range_p): Likewise.
132 (get_printed_columns): Likewise.
133 (class line_label): Rename m_length to m_display_width.
134 (get_affected_columns): Rename to...
135 (get_affected_range): ...this; add col_unit argument and multibyte
136 awareness.
137 (class correction): Add m_affected_bytes and m_display_cols
138 members. Rename m_len to m_byte_length for clarity. Add multibyte
139 awareness throughout.
140 (correction::insertion_p): Add multibyte awareness.
141 (correction::compute_display_cols): New function.
142 (correction::ensure_terminated): Use new member name m_byte_length.
143 (line_corrections::add_hint): Add multibyte awareness.
144 (layout::print_trailing_fixits): Likewise.
145 (layout::get_x_bound_for_row): Likewise.
146 (test_one_liner_simple_caret_utf8): New self-test analogous to the one
147 with _utf8 suffix removed, testing multibyte awareness.
148 (test_one_liner_caret_and_range_utf8): Likewise.
149 (test_one_liner_multiple_carets_and_ranges_utf8): Likewise.
150 (test_one_liner_fixit_insert_before_utf8): Likewise.
151 (test_one_liner_fixit_insert_after_utf8): Likewise.
152 (test_one_liner_fixit_remove_utf8): Likewise.
153 (test_one_liner_fixit_replace_utf8): Likewise.
154 (test_one_liner_fixit_replace_non_equal_range_utf8): Likewise.
155 (test_one_liner_fixit_replace_equal_secondary_range_utf8): Likewise.
156 (test_one_liner_fixit_validation_adhoc_locations_utf8): Likewise.
157 (test_one_liner_many_fixits_1_utf8): Likewise.
158 (test_one_liner_many_fixits_2_utf8): Likewise.
159 (test_one_liner_labels_utf8): Likewise.
160 (test_diagnostic_show_locus_one_liner_utf8): Likewise.
161 (test_overlapped_fixit_printing_utf8): Likewise.
162 (test_overlapped_fixit_printing): Adapt for changes to
163 get_affected_columns, get_printed_columns and class corrections.
164 (test_overlapped_fixit_printing_2): Likewise.
165 (test_linenum_sep): New constant.
166 (test_left_margin): Likewise.
167 (test_offset_impl): Helper function for new test.
168 (test_layout_x_offset_display_utf8): New test.
169 (diagnostic_show_locus_c_tests): Call new tests.
170
171 2019-12-09 Eric Botcazou <ebotcazou@adacore.com>
172
173 * tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute
174 TYPE_CANONICAL from the element type only if it is true. Remove a few
175 obsolete lines and adjust recursive call.
176 (fld_process_array_type): Adjust call to build_array_type_1.
177 (build_array_type): Likewise.
178 (build_nonshared_array_type): Likewise.
179
180 2019-12-09 Andrew Stubbs <ams@codesourcery.com>
181
182 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Change
183 %s to %o in asm output.
184 (gather<mode>_insn_2offsets<exec>): Likewise.
185
186 2019-12-09 Richard Earnshaw <rearnsha@arm.com>
187
188 * config/arm/t-multilib: Use arm->thumb multilib reuse rules
189 on a-profile.
190
191 2019-12-09 Segher Boessenkool <segher@kernel.crashing.org>
192
193 * config/rs6000/rs6000.md (unnamed mfcr define_insn): Name this
194 set<mode>_cc.
195 (unnamed define_insn_and_split): Delete.
196 (unnamed define_insn): Delete.
197 (unnamed define_insn): Delete.
198 (unnamed define_split): Delete.
199
200 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
201
202 * regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
203 avoid a warning.
204
205 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
206
207 PR middle-end/92410
208 * bb-reorder.c (pass_reorder_blocks::execute): Recompute
209 dataflow luids once basic blocks have been reordered.
210 * haifa-sched.c (reemit_notes): Create df insn record for each
211 new note.
212 * regstat.c (regstat_bb_compute_calls_crossed): Assert every
213 insn has an insn record before trying to use it.
214
215 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
216
217 * common/config/i386/i386-common.c
218 (OPTION_MASK_ISA_AVX5124FMAPS_SET): Rename to
219 OPTION_MASK_ISA2_AVX5124FMAPS_SET.
220 (OPTION_MASK_ISA_AVX5124VNNIW_SET, OPTION_MASK_ISA_AVX512BF16_SET,
221 OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
222 OPTION_MASK_ISA_PCONFIG_SET, OPTION_MASK_ISA_WBNOINVD_SET,
223 OPTION_MASK_ISA_SGX_SET, OPTION_MASK_ISA_CX16_SET,
224 OPTION_MASK_ISA_MOVBE_SET, OPTION_MASK_ISA_PTWRITE_SET,
225 OPTION_MASK_ISA_MWAITX_SET, OPTION_MASK_ISA_CLZERO_SET,
226 OPTION_MASK_ISA_RDPID_SET, OPTION_MASK_ISA_VAES_SET,
227 OPTION_MASK_ISA_MOVDIR64B_SET, OPTION_MASK_ISA_WAITPKG_SET,
228 OPTION_MASK_ISA_CLDEMOTE_SET, OPTION_MASK_ISA_ENQCMD_SET,
229 OPTION_MASK_ISA_AVX5124FMAPS_UNSET,
230 OPTION_MASK_ISA_AVX5124VNNIW_UNSET,
231 OPTION_MASK_ISA_AVX512BF16_UNSET,
232 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET,
233 OPTION_MASK_ISA_PCONFIG_UNSET, OPTION_MASK_ISA_WBNOINVD_UNSET,
234 OPTION_MASK_ISA_SGX_UNSET, OPTION_MASK_ISA_CX16_UNSET,
235 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_PTWRITE_UNSET,
236 OPTION_MASK_ISA_MWAITX_UNSET, OPTION_MASK_ISA_CLZERO_UNSET,
237 OPTION_MASK_ISA_RDPID_UNSET, OPTION_MASK_ISA_VAES_UNSET,
238 OPTION_MASK_ISA_MOVDIR64B_UNSET, OPTION_MASK_ISA_WAITPKG_UNSET,
239 OPTION_MASK_ISA_CLDEMOTE_UNSET, OPTION_MASK_ISA_ENQCMD_UNSET,
240 OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
241 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
242 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
243 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
244 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
245 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
246 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
247 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
248 OPTION_MASK_ISA_ENQCMD): Ditto.
249 * config/i386/i386-builtin.def
250 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
251 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
252 OPTION_MASK_ISA_WBNOINVD, OPTION_MASK_ISA_PTWRITE,
253 OPTION_MASK_ISA_RDPID, OPTION_MASK_ISA_VAES,
254 OPTION_MASK_ISA_MOVDIR64B, OPTION_MASK_ISA_ENQCMD): Ditto.
255 * config/i386/i386-builtins.c (OPTION_MASK_ISA_MWAITX,
256 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_WAITPKG,
257 OPTION_MASK_ISA_CLDEMOTE, OPTION_MASK_ISA_WBNOINVD): Ditto.
258 * config/i386/i386-c.c
259 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
260 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
261 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
262 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
263 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
264 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
265 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
266 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
267 OPTION_MASK_ISA_ENQCMD): Ditto.
268 * config/i386/i386-option.c: Ditto
269 * config/i386/i386.opt: Ditto..
270 * config/i386/i386.h: (TARGET_ISA_AVX5124FMAPS,
271 TARGET_ISA_AVX5124VNNIW, TARGET_ISA_AVX512BF16,
272 TARGET_ISA_AVX512VP2INTERSECT, TARGET_ISA_PCONFIG,
273 TARGET_ISA_WBNOINVD, TARGET_ISA_SGX, TARGET_ISA_CX16,
274 TARGET_ISA_MOVBE, TARGET_ISA_PTWRITE, TARGET_ISA_MWAITX,
275 TARGET_ISA_CLZERO, TARGET_ISA_RDPID, TARGET_ISA_VAES,
276 TARGET_ISA_MOVDIR64B, TARGET_ISA_WAITPKG, TARGET_ISA_CLDEMOTE)
277 TARGET_ISA_ENQCMD): Ditto.
278
279 2019-12-09 Sudakshina Das <sudi.das@arm.com>
280 Richard Sandiford <richard.sandiford@arm.com>
281
282 * tree-vect-stmt.c (vectorizable_shift): Condition ndts for
283 vect_model_simple_cost call on scalar_shift_arg.
284
285 2019-12-09 Jakub Jelinek <jakub@redhat.com>
286
287 PR tree-optimization/92834
288 * match.pd (A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
289 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): New simplifications.
290
291 2019-12-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
292
293 PR tree-optimization/89007
294 * tree-vect-patterns.c (vect_recog_average_pattern): If there is no
295 target support available, generate code to distribute rshift over plus
296 and add a carry.
297
298 2019-12-09 Martin Liska <mliska@suse.cz>
299
300 PR ipa/92737
301 * cgraph.c (symbol_table_test::symbol_table_test): Fix
302 coding style.
303 * cgraph.h (symtab_node::symtab_node): New constructor.
304 (cgraph_node::cgraph_node): Likewise.
305 (varpool_node::varpool_node): Likewise.
306 (symbol_table::allocate_cgraph_symbol): Use newly
307 created constructor.
308 (symbol_table::allocate_cgraph_symbol): Remove.
309 * cgraphunit.c (symtab_terminator): Likewise.
310 * varpool.c (varpool_node::create_empty): Use newly
311 created constructor.
312
313 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
314
315 PR target/92686
316 * config/i386/sse.md
317 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
318 *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
319 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
320 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
321 * config/i386/i386.c (ix86_print_operand): New operand substitution.
322 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
323 New function.
324 (ix86_expand_sse_cmp): Relax condition for integer mask from
325 512-bit vector to all 128/256/512-bit vector. Delete code gen
326 for avx512f compare patterns since we have generic pattern now.
327 (ix86_expand_sse_movcc): Adjust condition and codegen for
328 maskcmp.
329 (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
330 when corresponding vector compare is available.
331
332 2019-12-08 Sandra Loosemore <sandra@codesourcery.com>
333
334 Revert:
335 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
336
337 * config/nios2/linux.h (LINK_EH_SPEC): Define.
338
339 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
340
341 * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
342 * cgraph.h (cgrpah_node): Likewise.
343 (tp_first_run_node_cmp): Deeclare.
344 * cgraphunit.c (node_cmp): Rename to ...
345 (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
346 clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
347 (expand_all_functions): Collect tp_first_run and normal functions to
348 two vectors so the other functions remain sorted. Do not check for
349 flag_profile_reorder_functions it is function local flag.
350 * profile.c (compute_value_histograms): Update tp_first_run printing.
351
352 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
353
354 * opts.c (common_handle_option): Do not clear ipa_reference for
355 -fprofile-use.
356
357 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
358
359 * ipa-split.c (split_function): Preserve 0 tp_first_run.
360
361 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
362
363 * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
364 sanity check.
365
366 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
367
368 PR tree-optimization/92860
369 * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
370 Optimization flag.
371
372 2019-12-07 Marek Polacek <polacek@redhat.com>
373
374 PR c++/91678 - wrong error with decltype and location wrapper.
375 * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
376
377 2019-12-07 Eric Botcazou <ebotcazou@adacore.com>
378
379 PR middle-end/90840
380 * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
381 sure to pass a valid inner mode in calls to simplify_gen_subreg.
382
383 2019-12-07 Tobias Burnus <tobias@codesourcery.com>
384 David Malcolm <dmalcolm@redhat.com>
385 Jakub Jelinek <jakub@redhat.com>
386
387 PR c/87488
388 * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
389 instead of ST sequence to terminate OSC 8 strings.
390
391 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com>
392 Vladimir Makarov <vmakarov@redhat.com>
393
394 PR rtl-optimization/92176
395 * lra.c (simplify_subreg_regno): Don't permit unconditional
396 changing mode for LRA too.
397
398 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
399
400 * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
401 (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
402 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
403 Handle them.
404
405 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
406
407 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
408 in the asm output.
409
410 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
411
412 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
413 (VEC_1REG_ALT): Likewise.
414 (VEC_ALL1REG_MODE): New mode iterator.
415 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
416 (VEC_1REG_INT_ALT): Likewise.
417 (VEC_ALL1REG_INT_MODE): New mode interator.
418 (VEC_ALL1REG_INT_ALT): Likewise.
419 (VEC_REG_MODE): Remove V64QI and V64HI.
420 (VEC_ALLREG_MODE): New mode interator.
421 (vec_merge): Change to VEC_ALLREG_MODE.
422 (vec_merge_with_clobber): Likewise.
423 (vec_merge_with_vcc): Likewise.
424 (mov<mode>): Likewise.
425 (mov<mode>_unspec): Likewise.
426 (*mov<mode>): Change to VEC_ALL1REG_MODE.
427 (mov<mode>_exec): Likewise.
428 (*mov<mode>_exec_match): Likewise.
429 (mov<mode>_sgprbase): Likewise.
430 (reload_in<mode>): Change to VEC_ALLREG_MODE.
431 (reload_out<mode>): Likewise.
432 (scalar address splits): Likewise.
433 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
434 (vec_set<mode>): Change to VEC_ALLREG_MODE.
435 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
436 (vec_duplicate<mode><exec>): Likewise.
437 (vec_extract<mode><scalar_mode>): Likewise.
438 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
439 (gather_load<mode>): Likewise.
440 (gather<mode>_exec): Likewise.
441 (gather<mode>_expr<exec>): Likewise.
442 (gather<mode>_insn_1offset<exec>): Likewise.
443 (gather<mode>_insn_1offset_ds<exec>): Likewise.
444 (gather<mode>_insn_2offsets<exec>): Likewise.
445 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
446 (VEC_INT_MODE): Remove V64QI and V64HI.
447 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
448 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
449 VEC_ALL1REG_MODE.
450 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
451 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
452 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
453 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
454 (maskstore<mode>di): Likewise.
455 (mask_gather_load<mode>): Likewise.
456 (mov_from_lane63_<mode>): Likewise.
457 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
458 and V64HImode vectorization.
459 (gcn_related_vector_mode): New function.
460 (TARGET_VECTORIZE_RELATED_MODE): New define.
461
462 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
463 Kwok Cheung Yeung <kcy@codesourcery.com>
464
465 * omp-low.c (lower_omp_target): For optional arguments, deref once
466 more to obtain the type.
467
468 2019-12-06 Richard Biener <rguenther@suse.de>
469
470 * match.pd (nop_convert): Remove empty match. Use nop_convert?
471 everywhere.
472
473 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
474
475 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
476 for empty vectors. Avoid using ordered_remove and instead
477 shuffle the vector as we go.
478
479 2019-12-06 Richard Biener <rguenther@suse.de>
480
481 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
482 VIEW_CONVERT{0,1,2}.
483 (expr::opt_grp): Add and initialize.
484 (lower_opt_convert): Rename to ...
485 (lower_opt): ... and work on opt_grp, simply switching operations
486 from being optional to being present or not.
487 (has_opt_convert): Rename to ...
488 (has_opt): ... and adjust.
489 (parser::parse_operation): Return the optional opt_grp,
490 remove special-casing of conditional operations and more generally
491 parse [digit]'?'.
492 (parser::parse_expr): Stick on the parsed opt_grp and perform
493 rough verification.
494 (parser::parse_for): Remove now unnecessary code.
495 (main): Likewise.
496 * doc/match-and-simplify.texi: Mention ? now works on all
497 unary operations and also match predicates.
498
499 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
500
501 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
502 functions, not inline clones.
503
504 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
505
506 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
507
508 2019-12-06 Richard Biener <rguenther@suse.de>
509
510 * genmatch.c (c_expr::gen_transform): Emit newlines from line
511 number changes rather than after every semicolon.
512
513 2019-12-06 Richard Biener <rguenther@suse.de>
514
515 PR tree-optimization/92819
516 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
517 into the last lane. For two-element vectors try inserting
518 into the last lane when inserting into the first fails.
519
520 2019-12-06 Jakub Jelinek <jakub@redhat.com>
521
522 * common.opt (fprofile-partial-training): Terminate description with
523 full stop.
524
525 2019-12-05 Martin Sebor <msebor@redhat.com>
526
527 PR middle-end/92622
528 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
529 left uninitialized by get_addr_base_and_unit_offset on failure.
530
531 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
532
533 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
534 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
535 (detect_type_change): Likewise.
536 (detect_type_change_ssa): Likewise.
537 (ipa_analyze_virtual_call_uses): Update.
538
539 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
540
541 * config/nios2/linux.h (LINK_EH_SPEC): Define.
542
543 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
544
545 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
546
547 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
548
549 * cgraphclones.c (localize_profile): New function.
550 (cgraph_node::create_clone): Use it for partial profiles.
551 * common.opt (fprofile-partial-training): New flag.
552 * doc/invoke.texi (-fprofile-partial-training): Document.
553 * ipa-cp.c (update_profiling_info): For partial profiles do not
554 set function profile to zero.
555 * profile.c (compute_branch_probabilities): With partial profile
556 watch if edge count is zero and turn all probabilities to guessed.
557 (compute_branch_probabilities): For partial profiles do not apply
558 profile when entry count is zero.
559 * tree-profile.c (tree_profiling): Only do value_profile_transformations
560 when profile is read.
561
562 2019-12-05 Sudakshina Das <sudi.das@arm.com>
563
564 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
565 check from if condition.
566
567 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
568
569 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
570 and Fortran's optional arguments, unconditionally add the is-present
571 condition before the libgomp call.
572
573 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
574
575 PR middle-end/92768
576 * tree-core.h (OEP_BITWISE): New flag.
577 * fold-const.c (operand_compare::operand_equal_p): Handle it.
578 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
579
580 2019-12-05 Richard Biener <rguenther@suse.de>
581
582 PR middle-end/92818
583 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
584 heuristics on what don't care element to choose.
585 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
586
587 2019-12-05 Martin Liska <mliska@suse.cz>
588
589 PR gcov-profile/92817
590 * coverage.c (build_gcov_exit_decl): Remove superfluous
591 void_type_node.
592
593 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
594
595 * config/msp430/msp430.md (cbranch<mode>4): Use
596 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
597 dest operand of CMP instruction.
598 (cbranchpsi4_real): Likewise.
599 (cbranchqi4_real): Likewise.
600 (cbranchhi4_real): Likewise.
601 (cbranchpsi4_reversed): Likewise.
602 (cbranchqi4_reversed): Likewise.
603 (cbranchhi4_reversed): Likewise.
604
605 2019-12-05 Richard Biener <rguenther@suse.de>
606
607 PR tree-optimization/92803
608 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
609 invariant vector construction.
610
611 2019-12-05 Martin Liska <mliska@suse.cz>
612
613 PR gcov-profile/91971
614 * coverage.c (coverage_init): Mangle full path
615 only when -fprofile-dir is used.
616
617 2019-12-05 Jakub Jelinek <jakub@redhat.com>
618
619 PR target/92791
620 * config/i386/i386.md (movstrict<mode>): Move test for
621 TARGET_PARTIAL_REG_STALL and not optimizing for size from
622 expander's condition to the body - FAIL; in that case.
623
624 2019-12-03 Martin Sebor <msebor@redhat.com>
625
626 PR middle-end/91582
627 * builtins.c (gimple_call_alloc_size): New function.
628 (compute_objsize): Add argument. Call gimple_call_alloc_size.
629 Handle variable offsets and indices.
630 * builtins.h (gimple_call_alloc_size): Declare.
631 (compute_objsize): Add argument.
632 * gimple-ssa-warn-restrict.c: Remove assertions.
633 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
634
635 2019-12-04 Julian Brown <julian@codesourcery.com>
636
637 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
638
639 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
640
641 PR bootstrap/92661
642 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
643 rs6000.h.
644 (altivec_overloaded_builtins): Move to rs6000-call.c.
645 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
646 rs6000-c.c.
647 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
648 (altivec_overloaded_builtins): Moved from rs6000-c.c.
649 (rs6000_common_init_builtins): Do no define builtins that overload
650 builtins that have been disabled.
651
652 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
653
654 * config/arm/arm.c (arm_option_override_internal):
655 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
656
657 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
658
659 * config/aarch64/aarch64.c
660 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
661 (thunderx_tunings): Likewise.
662 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
663 (thunderx2t99_tunings): Likewise.
664 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
665 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
666
667 2019-12-04 Richard Biener <rguenther@suse.de>
668
669 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
670 empty CTOR and memset partial-def registering. Take advantage
671 of fancy offset analysis in memset handling.
672
673 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
674
675 * fold-const.c (native_encode_vector_part): Handle
676 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
677 (native_decode_vector_tree): Delete, moving the bulk of the code to...
678 (native_interpret_vector_part): ...this new function. Use a pointer
679 and length instead of a vec<> and start index.
680 (native_interpret_vector): Use native_interpret_vector_part.
681 (fold_view_convert_vector_encoding): Likewise.
682
683 2019-12-04 Richard Biener <rguenther@suse.de>
684
685 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
686 non-constant defs in the most trivial way.
687 (vn_reference_lookup_3): Also push down SSA partial defs.
688
689 2019-12-04 Martin Liska <mliska@suse.cz>
690
691 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
692 Initialize count of newly created BB.
693
694 2019-12-04 Jakub Jelinek <jakub@redhat.com>
695
696 PR tree-optimization/92734
697 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
698 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
699
700 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
701
702 PR target/92760
703 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
704 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
705
706 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
707
708 * ipa-fnsummary.c: Include tree-into-ssa.h.
709 (compute_fn_summary): Call update_ssa.
710
711 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
712
713 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
714 is set only for symbol in comdat group.
715 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
716
717 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
718
719 * cgraph.c: Include tree-into-ssa.h
720 (cgraph_node::get_body): Call update_ssa.
721 * cgraphunit.c (cgraph_node::expand): Likewise.
722 * lto-streamer-in.c (input_function): Do not call update_ssa.
723
724 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
725
726 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
727 an array element size if array_element_size is already an invariant.
728 Similarly don't gimplify and install a field offset if
729 component_ref_field_offset is already an invariant.
730
731 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
732
733 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
734 with POLY_INT_CST size is made to a fixed-size object, force the
735 object to live in memory.
736
737 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
738
739 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
740 for the data mode.
741
742 2019-12-03 Richard Biener <rguenther@suse.de>
743
744 PR tree-optimization/92758
745 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
746 operation on uniform vectors.
747
748 2019-12-03 Richard Biener <rguenther@suse.de>
749
750 PR tree-optimization/92645
751 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
752 from or to a properly aligned register variable.
753
754 2019-12-03 Matthias Klose <doko@ubuntu.com>
755
756 * Makefile.in (SOURCES): Add doc/lto-dump.1.
757 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
758 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
759
760 2019-12-03 Richard Biener <rguenther@suse.de>
761
762 PR tree-optimization/92751
763 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
764 when a clobber ends up in the partial-def vector.
765 (vn_reference_lookup_3): Let clobbers be handled by the
766 assignment from CTOR handling.
767
768 2019-12-03 Jakub Jelinek <jakub@redhat.com>
769
770 PR tree-optimization/92734
771 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
772 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
773 inner subtraction.
774
775 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
776 Jakub Jelinek <jakub@redhat.com>
777
778 PR target/92744
779 * config/i386/i386.md (peephole2 for *swap<mode>): Use
780 general_reg_operand predicates instead of register_operand.
781
782 2019-12-03 Richard Biener <rguenther@suse.de>
783
784 PR tree-optimization/92645
785 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
786 a full def of a vector via a BIT_INSERT_EXPR.
787
788 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
789
790 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
791 static.
792 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
793 decl.
794
795 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
796
797 PR middle-end/92741
798 * fold-const.c (fold_convertible_p): Check vector types more
799 thoroughly.
800
801 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
802
803 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
804 (aarch64_expand_mov_immediate): Use it when attempting to measure
805 the length of an SVE vector.
806 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
807 SVE is enabled.
808
809 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
810
811 * config/aarch64/aarch64-sve-builtins.h
812 (gimple_folder::force_vector): Declare.
813 * config/aarch64/aarch64-sve-builtins.cc
814 (gimple_folder::force_vector): New function.
815 * config/aarch64/aarch64-sve-builtins-base.cc
816 (svcmp_impl::fold): Likewise.
817 (svdup_impl::fold): Handle svdup_z too.
818
819 2019-12-02 Martin Liska <mliska@suse.cz>
820
821 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
822 function.
823 (debug_tree_odr_name): New.
824 * ipa-utils.h (get_odr_name_for_type): New.
825
826 2019-12-02 Richard Biener <rguenther@suse.de>
827
828 PR tree-optimization/92742
829 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
830 touch the def-type but verify it is consistent with the
831 original stmts.
832
833 2019-12-02 Jakub Jelinek <jakub@redhat.com>
834
835 PR tree-optimization/92712
836 * match.pd ((A * B) +- A -> (B +- 1) * A,
837 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
838 even when we don't know anything about range of A, but do know
839 something about range of B and the simplification won't introduce
840 new UB.
841
842 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
843
844 PR ipa/92133
845 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
846 (ipa-cp-min-recursive-probability): Likewise.
847 * params.opt (ipa-cp-max-recursive-depth): New.
848 (ipa-cp-min-recursive-probability): Likewise.
849 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
850 val_p and unlimited.
851 (self_recursively_generated_p): New function.
852 (get_val_across_arith_op): Likewise.
853 (propagate_vals_across_arith_jfunc): Add constant propagation for
854 self-recursive function.
855 (incorporate_penalties): Do not penalize pure self-recursive function.
856 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
857 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
858 (get_info_about_necessary_edges): Relax hotness check for edge to
859 self-recursive function.
860 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
861
862 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
863
864 PR target/92499
865
866 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
867 objects of flexible types to be small if they have internal linkage
868 or are declared extern.
869 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
870 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
871 instead of the size of the object initializer.
872 * tree.c (flexible_array_type_p): Move from C front end, and
873 generalize to handle fields in non-C structures.
874 * tree.h (flexible_array_type_p): Declare.
875
876 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
877
878 * profile-count.h (profile_count::operator<): Use IPA value for
879 comparsion.
880 (profile_count::operator>): Likewise.
881 (profile_count::operator<=): Likewise.
882 (profile_count::operator>=): Likewise.
883 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
884
885 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
886
887 * ipa-inline.c (compute_max_insns): Return int64_t.
888 (inline_small_functions): Simplify.
889
890 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
891
892 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
893 scaling happen.
894
895 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
896
897 * cgraph.h (symtab_node): Add symver flag.
898 * cgraphunit.c (process_symver_attribute): New.
899 (process_common_attributes): Use process_symver_attribute.
900 * lto-cgraph.c (lto_output_node): Stream symver.
901 (lto_output_varpool_node): Stream symver.
902 (input_overwrite_node): Stream symver.
903 (input_varpool_node): Stream symver.
904 * output.h (do_assemble_symver): Decalre.
905 * symtab.c (symtab_node::dump_base): Dump symver.
906 (symtab_node::verify_base): Verify symver.
907 (symtab_node::resolve_alias): Handle symver.
908 * varasm.c (do_assemble_symver): New function.
909 * varpool.c (varpool_node::assemble_aliases): Use it.
910 * doc/extend.texi: (symver attribute): Document.
911 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
912
913 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
914
915 * target.h (type_context_kind): New enum.
916 (verify_type_context): Declare.
917 * target.def (verify_type_context): New target hook.
918 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
919 * doc/tm.texi: Regenerate.
920 * tree.c (verify_type_context): New function.
921 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
922 Declare.
923 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
924 New function.
925 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
926 (TARGET_VERIFY_TYPE_CONTEXT): Define.
927
928 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
929
930 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
931 * cgraph.h (cgraph_node): Add unit_id and
932 merged_extern_inline.
933 (symbol_table): Add max_unit.
934 (symbol_table::symbol_table): Initialize it.
935 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
936 merged_comdat, merged_extern_inline.
937 (cgraph_node::create_clone): Likewise.
938 (cgraph_node::create_version_clone): Likewise.
939 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
940 calls.
941 * ipa-fnsummary.h (cross_module_call_p): New inline function.
942 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
943 * ipa-inline.c (inline_small_functions): Likewise.
944 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
945 copy merged_comdat and merged_extern_inline.
946 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
947 merged_extern_inline and unit_id.
948 (input_overwrite_node): Stream in these.
949 (input_cgraph_1): Set unit_base.
950 * lto-streamer.h (lto_file_decl_data): Add unit_base.
951 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
952
953 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
954
955 * gcc.c (process_command): Only warn about an ineffective `-x'
956 option if any input files have actually been supplied.
957
958 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
959
960 * doc/install.texi (Options specification): Remove the list of
961 target library subdirectories supporting
962 `--enable-version-specific-runtime-libs'. Document defaults for
963 the option.
964
965 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
966
967 PR rtl-optimization/92283
968 * lra.c (lra): Update reg notes after inheritance sub-pass and
969 before constraint sub-pass.
970
971 2019-11-29 Richard Biener <rguenther@suse.de>
972
973 PR tree-optimization/91003
974 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
975 operand number, avoid handling the non-condition operands of
976 COND_EXPRs as comparisons.
977 (vect_get_constant_vectors): Pass down the operand number.
978 (vect_get_slp_defs): Likewise.
979
980 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
981
982 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
983 generic_expr_could_trap_p to check if the condition of COND_EXPR or
984 VEC_COND_EXPR can trap.
985
986 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
987
988 PR tree-optimization/92677
989 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
990 to zero when dissolving a group of strided accesses.
991
992 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
993
994 PR tree-optimization/92596
995 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
996 operations.
997 (vectorizable_operation): Likewise, instead of relying on
998 vect_get_mask_type_for_stmt to do this.
999 (vect_get_vector_types_for_stmt): Always return a vector type
1000 immediately, rather than deferring the choice for boolean results.
1001 Use a vector mask type instead of a normal vector if
1002 vect_use_mask_type_p.
1003 (vect_get_mask_type_for_stmt): Delete.
1004 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
1005 mask_producers argument and special boolean_type_node handling.
1006 (vect_determine_vf_for_stmt): Remove mask_producers argument and
1007 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
1008 (vect_determine_vectorization_factor): Update call accordingly.
1009 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
1010 boolean_type_node handling.
1011 (vect_slp_analyze_node_operations_1): Likewise.
1012
1013 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1014
1015 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
1016 (vect_use_mask_type_p): New function.
1017 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
1018 mask precision to the pattern statement.
1019 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
1020 and use it to initialize the new stmt's mask precision.
1021 (search_type_for_mask_1): Delete.
1022 (search_type_for_mask): Replace with...
1023 (integer_type_for_mask): ...this new function. Use the information
1024 cached in the stmt_vec_info.
1025 (vect_recog_bool_pattern): Update accordingly.
1026 (build_mask_conversion): Pass the scalar type associated with the
1027 mask type to append_pattern_def_seq.
1028 (vect_recog_mask_conversion_pattern): Likewise. Call
1029 integer_type_for_mask instead of search_type_for_mask.
1030 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
1031 of search_type_for_mask.
1032 (possible_vector_mask_operation_p): New function.
1033 (vect_determine_mask_precision): Likewise.
1034 (vect_determine_stmt_precisions): Call it.
1035
1036 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1037
1038 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
1039 the slp_tree parameter with a group size parameter.
1040 (vect_get_mask_type_for_stmt): Likewise.
1041 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
1042 (vect_get_mask_type_for_stmt): Likewise.
1043 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
1044 call accordingly.
1045
1046 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1047
1048 * tree-vect-stmts.c (vectorizable_operation): Punt early
1049 on codes that are handled elsewhere.
1050
1051 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1052
1053 * doc/sourcebuild.texi (vect_bool_cmp): Document.
1054 * tree-vect-patterns.c (search_type_for_mask_1): If neither
1055 operand to a boolean comparison is a natural vector mask,
1056 handle both operands like normal integers instead.
1057
1058 2019-11-29 Richard Biener <rguenther@suse.de>
1059
1060 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
1061 out early for too large objects.
1062
1063 2019-11-29 Martin Jambor <mjambor@suse.cz>
1064
1065 PR ipa/92476
1066 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
1067 the summary only if the summary exists.
1068 (find_more_scalar_values_for_callers_subset): Check node_dead in
1069 the summary only if the summary exists.
1070 (ipcp_store_bits_results): Ignore nodes without lattices.
1071 (ipcp_store_vr_results): Likewise.
1072 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
1073 header files required by them.
1074 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
1075
1076 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1077
1078 PR tree-optimization/92710
1079 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
1080 vector mask arguments.
1081
1082 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
1083
1084 * profile-count.c (profile_count::to_cgraph_frequency,
1085 profile_count::to_sreal_scale): Check for compaibility of counts.
1086 * profile-count.h (compatible_p): Make public; add checking for
1087 global0 versus global types.
1088 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
1089
1090 2019-11-29 Richard Biener <rguenther@suse.de>
1091
1092 PR tree-optimization/92715
1093 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
1094 out for uniform vectors and source vectors with less elements
1095 than the destination.
1096
1097 2019-11-29 Martin Liska <mliska@suse.cz>
1098
1099 PR lto/91574
1100 * ipa-devirt.c (types_same_for_odr): Check for existence
1101 of TYPE_NAMEs first.
1102
1103 2019-11-29 Richard Biener <rguenther@suse.de>
1104
1105 PR tree-optimization/92704
1106 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
1107 in loops performing only loads.
1108
1109 2019-11-29 Julian Brown <julian@codesourcery.com>
1110
1111 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
1112 BT_DFLOAT128_PTR) Remove.
1113 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
1114 TI_DFLOAT128_PTR_TYPE): Remove.
1115 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
1116 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
1117 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
1118 dfloat128_ptr_type_node): Remove macros.
1119
1120 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1121
1122 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
1123 formatting.
1124 (*movdi_internal64): Ditto.
1125
1126 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1127
1128 PR target/92602
1129 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
1130 indexed_or_indirect_operand to be memory_operand.
1131 (bswap<mode>2_store for HSI): Ditto.
1132 (bswapdi2_load): Ditto.
1133 (bswapdi2_store): Ditto.
1134
1135 2019-11-28 Martin Liska <mliska@suse.cz>
1136
1137 PR debug/46558
1138 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
1139 headers for translation.
1140
1141 2019-11-28 Martin Liska <mliska@suse.cz>
1142
1143 PR lto/92609
1144 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
1145 consistently.
1146
1147 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1148
1149 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
1150 checks.
1151
1152 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1153
1154 * profile-count.c (profile_count::combine_with_ipa_count): Return
1155 uninitialized count if called on ininitialized count.
1156
1157 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1158
1159 * ipa-inline-transform.c (inline_transform): Scale profile before
1160 redirecting.
1161
1162 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1163
1164 * profile-count.h (profile_count::max): Work on profiles of different
1165 type.
1166 (profile_count::apply_scale): Be sure that ret is not local or global0
1167 type if num is global.
1168
1169 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1170
1171 * profile-count.h (profile_count::max): Work on profiles of different
1172 type.
1173 (profile_count::apply_scale): Be sure that ret is not local or global0
1174 type if num is global.
1175
1176 2019-11-28 Martin Jambor <mjambor@suse.cz>
1177
1178 PR ipa/92697
1179 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
1180 ifunc_resolvers.
1181 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
1182 Removed trailig whitespace.
1183
1184 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1185
1186 * profile-count.h (profile_count::combine_with_ipa_count_within):
1187 Declare.
1188 * profile-count.c (profile_count::combine_with_ipa_count_within):
1189 New.
1190 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
1191 it.
1192
1193 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1194
1195 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
1196 of counters are done same way.
1197
1198 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1199
1200 * ipa-cp.c (update_profiling_info): Fix scaling.
1201
1202 2019-11-28 Richard Biener <rguenther@suse.de>
1203
1204 PR tree-optimization/92645
1205 * tree-inline.c (remap_gimple_stmt): When the return value
1206 is not wanted, elide GIMPLE_RETURN.
1207
1208 2019-11-28 Richard Biener <rguenther@suse.de>
1209
1210 PR tree-optimization/92645
1211 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
1212 conversions inside a mode class. Remove restriction on
1213 preserving the element size.
1214 (simplify_vector_constructor): Deal with the above and for
1215 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
1216 and VEC_PACK_TRUNC_EXPR.
1217
1218 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
1219
1220 Must use push insn to pass varargs arguments of DFmode because
1221 otherwise the middle-end generates wrong code.
1222
1223 PR target/92055
1224 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
1225
1226 2019-11-28 Jakub Jelinek <jakub@redhat.com>
1227
1228 PR tree-optimization/92691
1229 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
1230 in function comment.
1231 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
1232 calls, return !handle_printf_call rather than always returning true.
1233 (check_and_optimize_stmt): Describe return value meaning in function
1234 comment. Formatting fix.
1235
1236 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1237
1238 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
1239 combination of globa0 and global counters..
1240
1241 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
1242
1243 PR target/92566
1244 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
1245 by VECTOR_UNIT_NONE_P instead.
1246
1247 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
1248
1249 * config/i386/sse.md (avx512f_maskcmp<mode>3):
1250 Refine VF to VF_AVX512VL.
1251
1252 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
1253
1254 * config/rs6000/rs6000.md (movsi_internal): Reformat.
1255 (movdi_internal64): Reformat.
1256
1257 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
1258
1259 PR bootstrap/92661
1260 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
1261 builtin if we don't have an actual type.
1262 (builtin_function_type): If the builtin function uses a DFP type
1263 and decimal float has been disabled, then return NULL_TREE.
1264
1265 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1266
1267 PR rtl-optimization/92510
1268 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
1269 of comparison into a comparison with different mode if both imode and
1270 omode are scalar integral modes.
1271
1272 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
1273
1274 PR rtl-optimization/90007
1275 * recog.c (constrain_operands): Permit hard registers too for
1276 memory when LRA is used.
1277
1278 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1279
1280 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
1281 between Coldfire and regular m68k.
1282 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
1283
1284 2019-11-27 Richard Biener <rguenther@suse.de>
1285
1286 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1287 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
1288 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
1289 * optabs-tree.c (supportable_convert_operation): Do not call
1290 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
1291 * optabs-tree.h (supportable_convert_operation): Adjust.
1292 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1293 * doc/tm.texi: Regenerate.
1294 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
1295 * tree-vect-generic.c (expand_vector_conversion): Likewise.
1296 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
1297 unused decl parameter and adjust.
1298 (vect_create_vectorized_promotion_stmts): Likewise.
1299 (vectorizable_conversion): Adjust.
1300
1301 2019-11-27 Richard Biener <rguenther@suse.de>
1302
1303 PR tree-optimization/92690
1304 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
1305 converting elements not originally converted.
1306
1307 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
1308
1309 PR middle-end/92463
1310 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
1311 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
1312 mpfr_rnd_t instead of mp_rnd_t.
1313 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
1314 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
1315 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
1316 Use mpfr_exp_t instead of mp_exp_t.
1317 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
1318 MPFR_RNDx instead of GMP_RNDx.
1319 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
1320 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
1321 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
1322 of mp_rnd_t and remove MPFR_RNDx poisoning.
1323 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
1324
1325 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
1326
1327 PR tree-optimization/91790
1328 * tree-vect-stmts.c (vectorizable_load): Use the adjusted
1329 DR for vect_setup_realignment when first_stmt_info is different
1330 from first_stmt_info_for_drptr.
1331
1332 2019-11-27 Richard Biener <rguenther@suse.de>
1333
1334 PR tree-optimization/92645
1335 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1336 CTORs with just a subset of the original vectors.
1337
1338 2019-11-27 Richard Biener <rguenther@suse.de>
1339
1340 PR middle-end/92674
1341 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
1342 edges and instead record blocks in bitmap.
1343 (gimple_expand_calls_inline): Adjust.
1344 (fold_marked_statements): Delay EH cleanup until all folding is
1345 done.
1346 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
1347 inlining finished.
1348
1349 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1350
1351 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
1352 LRA is enabled.
1353 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
1354 disabled.
1355
1356 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1357
1358 PR debug/92664
1359 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
1360
1361 2019-11-26 Martin Sebor <msebor@redhat.com>
1362
1363 PR tree-optimization/92683
1364 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
1365 inadvertently removed in a previous change. Rename local variable
1366 for clarity.
1367
1368 2019-11-26 Richard Biener <rguenther@suse.de>
1369
1370 PR middle-end/92669
1371 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
1372 NULL pre_order.
1373
1374 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
1375
1376 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
1377
1378 2019-11-26 Jakub Jelinek <jakub@redhat.com>
1379
1380 PR tree-optimization/92644
1381 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1382 next to INTEGER_CST checks.
1383
1384 2019-11-26 Richard Biener <rguenther@suse.de>
1385
1386 PR tree-optimization/92645
1387 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1388 do not build the operation from scalars if the operand is.
1389
1390 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1391
1392 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1393 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1394 definitions.
1395
1396 2019-11-25 Martin Liska <mliska@suse.cz>
1397
1398 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1399 up used dump message.
1400
1401 2019-11-25 Martin Liska <mliska@suse.cz>
1402
1403 PR bootstrap/92653
1404 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1405 too strict checking assert.
1406
1407 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1408
1409 PR c/91985
1410 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1411 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1412 error_mark_node if corresponding global tree node is NULL.
1413 * tree.c (build_common_tree_nodes): Do not initialize
1414 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1415 decimal floating-point not supported.
1416
1417 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1418
1419 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1420 types.
1421
1422 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
1423
1424 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1425 Replace code for non-CONST_INT constants with gcc_unreachable.
1426 * config/m68k/m68k.md (cbranchdi): Don't generate individual
1427 compare and test.
1428 (CMPMODE): New mode_iterator.
1429 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1430 cbranch<mode>4.
1431 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1432 cstore<mode>4.
1433 (cmp<mode>_68881): Remove 'F' constraint from first comparison
1434 operand.
1435 (bit test insns patterns): Use nonimmediate_operand, not
1436 register_operand, for source operands that allow memory in
1437 their constraints.
1438 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1439 Use register_operand, not nonimmediate_operand, for the
1440 destinations.
1441 (DBCC): New mode_iterator.
1442 (dbcc peepholes): Use it to reduce duplication.
1443 (trap): Use const_true_rtx, not const1_rtx.
1444 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1445 from m68k_subword_comparison_operand and changed to handle
1446 SImode.
1447
1448 PR target/91851
1449 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1450 declaration.
1451 (m68k_init_cc): New declaration.
1452 (m68k_output_compare_di, m68k_output_compare_si)
1453 (m68k_output_compare_hi, m68k_output_compare_qi)
1454 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1455 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1456 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1457 m68k_output_branch_float, m68k_output_branch_float_rev):
1458 Likewise.
1459 (valid_dbcc_comparison_p_2, flags_in_68881)
1460 (output_btst): Remove declaration.
1461 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1462 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1463 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1464 (flags_compare_op0, flags_compare_op1, flags_operand1,
1465 flags_operand2, flags_valid): New static variables.
1466 (m68k_find_flags_value, m68k_init_cc): New functions.
1467 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1468 remember_compare_flags): New static functions.
1469 (output_dbcc_and_branch): New argument CODE. Use it, and add
1470 PLUS and MINUS to the possible codes. All callers changed.
1471 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1472 and INSN arguments, add CODE arg. Return the comparison code
1473 to use. All callers changed. Use CODE instead of
1474 next_insn_tests_no_inequality, and replace cc_status management
1475 with changing the return code.
1476 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1477 RTX_COMPARE or RTX_COMM_COMPARE.
1478 (output_move_simode, output_move_qimode): Call
1479 handle_flags_for_move.
1480 (notice_update_cc): Delete function.
1481 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1482 m68k_output_compare_hi, m68k_output_compare_qi,
1483 m68k_output_compare_fp, m68k_output_branch_integer,
1484 m68k_output_branch_integer_rev, m68k_output_scc,
1485 m68k_output_branch_float, m68k_output_branch_float_rev,
1486 m68k_output_scc_float): New functions.
1487 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1488 once at the start, and set flags_valid and flags_operand1 if the
1489 flags are usable.
1490 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1491 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1492 definitions.
1493 (CC_STATUS_INIT): Define.
1494 * config/m68k/m68k.md (flags_valid): New define_attr.
1495 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1496 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1497 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1498 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1499 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1500 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1501 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1502 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1503 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1504 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1505 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1506 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1507 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1508 ctrapqi4, conditional_trap): Delete patterns.
1509 (cbranchdi4_insn): New pattern.
1510 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1511 test high part only. When testing EQ or NE, generate beq0_di
1512 and bne0_di patterns directly.
1513 (cstoredi4): When testing LT or GE, test high part only.
1514 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1515 patterns.
1516 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1517 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1518 cmp2_cf_predicate): New define_mode_attrs.
1519 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1520 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1521 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1522 New patterns.
1523 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1524 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1525 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1526 New patterns.
1527 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1528 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1529 Likewise.
1530 (BTST): New define_mode_iterator.
1531 (btst_predicate, btst_constraint, btst_range): New
1532 define_mode_attrs.
1533 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1534 patterns.
1535 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1536 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1537 patterns): Set attr "flags_valid".
1538 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1539 management. Set attr "flags_valid".
1540 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1541 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1542 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1543 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1544 manual CC_STATUS management.
1545 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1546 unnamed strict_lowpart subhi and subqi patterns): Set attr
1547 "flags_valid".
1548 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1549 Remove code to operate on address regs and assert the case
1550 does not occur.
1551 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1552 manual CC_STATUS_INIT.
1553 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1554 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1555 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1556 one_cmplqi2, unnamed strict_lowpart patterns
1557 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1558 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1559 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1560 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1561 CC_STATUS_INIT.
1562 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1563 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1564 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1565 unnamed strict_low_part patterns for HI and
1566 QI versions): Set attr "flags_valid".
1567 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1568 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1569 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1570 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1571 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1572 (various unnamed peepholes): Adjust compare/branch sequences
1573 for new cbranch patterns.
1574 (dbcc peepholes): Likewise, and output the comparison here
1575 as well.
1576 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1577 (fp_src_operand): Allow constant zero.
1578 (address_reg_operand): New predicate.
1579
1580 * rtl.h (inequality_comparisons_p): Remove declaration.
1581 * recog.h (next_insn_tests_no_inequality): Likewise.
1582 * rtlanal.c (inequality_comparisons_p): Delete function.
1583 * recog.c (next_insn_tests_no_inequality): Likewise.
1584
1585 2019-11-25 Richard Biener <rguenther@suse.de>
1586
1587 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1588 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1589 properly re-building the visited hash-map for each lane.
1590
1591 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1592
1593 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1594 gcn_md_reorg): Remove unused variables.
1595 (gcn_emutls_var_init): Add missing (but unreachable) return
1596 to silence warning.
1597 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1598 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1599 an uninitialized variable.
1600
1601 2019-11-25 Martin Jambor <mjambor@suse.cz>
1602
1603 PR ipa/92109
1604 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1605 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1606 (cgraph_materialize_clone): Move removel from clone tree to the
1607 the new method and use it instead.
1608 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1609 bodies of clones, also remove it from the clone tree.
1610
1611 2019-11-25 Martin Jambor <mjambor@suse.cz>
1612
1613 PR ipa/91956
1614 * ipa-sra.c (process_isra_node_results): Put the new node to the
1615 same comdat group as the original node.
1616
1617 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1618
1619 Build double32 / long-double32 multilibs if needed.
1620
1621 PR target/92055
1622 * config/avr/t-avr:
1623 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1624 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1625 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1626 tm_defines and pass to genmultilib.awk.
1627 * config/avr/genmultilib.awk: Use these variables to add double32
1628 and / or long-double32 multilib(s) as needed.
1629 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1630
1631 2019-11-25 Richard Biener <rguenther@suse.de>
1632
1633 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1634 loop body, defaulted to NULL.
1635 (single_likely_exit): Add exit vector argument
1636 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1637 (number_of_iterations_exit): Likewise.
1638 (number_of_iterations_exit_assumptions): Likewise.
1639 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1640 if not NULL.
1641 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1642 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1643 Compute exit vector around call to single_likely_exit.
1644 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1645 loop body to loop_only_exit_p.
1646 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1647 caller.
1648 (number_of_iterations_exit_assumptions): Get loop body from caller
1649 if not NULL.
1650 (number_of_iterations_exit): Pass through new loop body arg.
1651 (infer_loop_bounds_from_undefined): Get loop body from caller.
1652 (estimate_numbers_of_iterations): Compute loop body once.
1653
1654 2019-11-25 Richard Biener <rguenther@suse.de>
1655
1656 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1657 auto_bb_flag instead of an sbitmap for visited handling.
1658
1659 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1660
1661 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1662 iterator.
1663 (vector_fp_comparison_complex): Likewise.
1664 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1665 define_and_split.
1666 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1667 Likewise.
1668 (vector_lt<mode> for VEC_F): Refactor with
1669 vector_fp_comparison_simple.
1670 (vector_le<mode> for VEC_F): Likewise.
1671 (vector_unge<mode> for VEC_F): Likewise.
1672 (vector_unle<mode> for VEC_F): Likewise.
1673 (vector_ne<mode> for VEC_F): Likewise.
1674 (vector_ungt<mode> for VEC_F): Likewise.
1675 (vector_unlt<mode> for VEC_F): Likewise.
1676 (vector_ltgt<mode> for VEC_F): Refactor with
1677 vector_fp_comparison_complex.
1678 (vector_ordered<mode> for VEC_F): Likewise.
1679 (vector_uneq<mode> for VEC_F): Likewise.
1680 (vector_unordered<mode> for VEC_F): Likewise.
1681
1682 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1683
1684 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1685 COMPARE, representing an overflow detection.
1686
1687 * combine.c (combine_instructions): Record costs for jumps.
1688
1689 * combine.c (can_combine_p): Allow autoinc in jumps.
1690
1691 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1692
1693 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1694 * doc/invoke.texi (max-inline-insns-single-O2,
1695 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1696 early-inlining-insns-O2): Remove documentation.
1697 * ipa-fnsummary.c (analyze_function_body,
1698 compute_fn_summary): Use opt_for_fn when accessing parameters.
1699 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1700 inline_insns_auto, can_inline_edge_by_limits_p,
1701 want_early_inline_function_p, big_speedup_p,
1702 want_inline_small_function_p, want_inline_self_recursive_call_p,
1703 recursive_inlining, compute_max_insns, inline_small_functions):
1704 Likewise.
1705 * opts.c (default_options): Add -O3 defaults for
1706 OPT__param_early_inlining_insns_,
1707 OPT__param_inline_heuristics_hint_percent_,
1708 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1709 * params.opt (-param=early-inlining-insns-O2=,
1710 -param=inline-heuristics-hint-percent-O2=,
1711 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1712 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1713 -param=inline-min-speedup=, -param=inline-unit-growth=,
1714 -param=large-function-growth=, -param=large-stack-frame=,
1715 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1716 -param=max-inline-insns-recursive=,
1717 -param=max-inline-insns-recursive-auto=,
1718 -param=max-inline-insns-single=,
1719 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1720 -param=max-inline-recursive-depth=,
1721 -param=max-inline-recursive-depth-auto=,
1722 -param=min-inline-recursive-probability=,
1723 -param=partial-inlining-entry-probability=,
1724 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1725 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1726 Optimization.
1727
1728 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1729
1730 * ipa-fnsummary.c: Fix comment typos.
1731 * ipa-ref.h: Likewise.
1732 * ipa-predicate.h: Likewise.
1733 * ipa-split.c: Likewise.
1734 * ipa-inline-analysis.c: Likewise.
1735 * ipa-predicate.c: Likewise.
1736 * ipa-devirt.c: Likewise.
1737 * ipa-icf.h: Likewise.
1738 * profile-count.c: Likewise.
1739 * ipa-icf.c: Likewise.
1740 (sem_function::equals_wpa): Fix typos in dump messages.
1741 * ipa-icf-gimple.h: Fix comment typos.
1742 * ipa-inline-transform.c: Likewise.
1743 * ipa-polymorphic-call.c: Likewise.
1744 * ipa-fnsummary.h: Likewise.
1745 * ipa-inline.c: Likewise.
1746 (dump_inline_stats): Fix typo in debug dump message.
1747 * profile-count.h: Fix comment typos.
1748
1749 PR target/92615
1750 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1751 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1752 register_operand, force x into register before storing it into dest.
1753 Formatting fix.
1754
1755 PR middle-end/83859
1756 * doc/extend.texi (attribute access): Fix a typo.
1757
1758 PR rtl-optimization/92610
1759 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1760 cse_cfg_altered is set, even when tem is 0.
1761 (rest_of_handle_cse_after_global_opts): Likewise.
1762
1763 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1764
1765 PR c++/92458
1766 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1767 tree_hash): Move to ...
1768 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1769 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1770 types.
1771 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1772
1773 PR tree-optimization/92618
1774 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1775 containing the auto_vec and a tree.
1776 (undistribute_bitref_for_vector): Handle the case when element type
1777 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1778 fixes.
1779
1780 2019-11-22 Martin Sebor <msebor@redhat.com>
1781
1782 PR middle-end/83859
1783 * attribs.h (struct attr_access): New.
1784 * attribs.c (decl_attributes): Add an informational note.
1785 * builtins.c (check_access): Make extern. Consistently set no-warning
1786 after issuing a warning. Handle calls through function pointers. Set
1787 no-warning.
1788 * builtins.h (check_access): Declare.
1789 * calls.c (rdwr_access_hash): New type.
1790 (rdwr_map): Same.
1791 (init_attr_rdwr_indices): New function.
1792 (maybe_warn_rdwr_sizes): Same.
1793 (initialize_argument_information): Call init_attr_rdwr_indices.
1794 Call maybe_warn_rdwr_sizes.
1795 (get_size_range): Avoid null argument.
1796 * doc/extend.texi (attribute access): Document new attribute.
1797
1798 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1799
1800 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1801 (ACC_LDS_SIZE): Define.
1802 (OTHER_LDS_SIZE): Define.
1803 (LDS_SIZE): Redefine using above.
1804 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1805
1806 2019-11-22 Martin Sebor <msebor@redhat.com>
1807
1808 PR middle-end/88226
1809 * builtins.c (check_nul_terminated_array): New function.
1810 (fold_builtin_0): Remove declaration.
1811 (fold_builtin_1): Same.
1812 (fold_builtin_2): Same.
1813 (fold_builtin_3): Same.
1814 (fold_builtin_strpbrk): Add argument.
1815 (fold_builtin_strspn): Same.
1816 (fold_builtin_strcspn): Same.
1817 (expand_builtin_strcat): Call it. Remove unused argument.
1818 (expand_builtin_stpncpy): Same.
1819 (expand_builtin_strncat): Same.
1820 (expand_builtin_strncpy): Same. Adjust indentation.
1821 (expand_builtin_strcmp): Same.
1822 (expand_builtin_strncmp): Same.
1823 (expand_builtin_fork_or_exec): Same.
1824 (expand_builtin): Handle more built-ins.
1825 (fold_builtin_2): Add argument.
1826 (fold_builtin_n): Make static. Add argument.
1827 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1828 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1829 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1830 (fold_call_stmt): Pass new argument to fold_builtin_n.
1831 * builtins.h: Correct a comment.
1832 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1833 check_nul_terminated_array.
1834 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1835 check_nul_terminated_array.
1836 (handle_builtin_strchr): Same.
1837 (handle_builtin_string_cmp): Same.
1838
1839 2019-11-22 Martin Sebor <msebor@redhat.com>
1840
1841 PR tree-optimization/92501
1842 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1843 handle unterminated arrays. Rename local variables for clarity.
1844
1845 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1846
1847 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1848 granulated_sgprs according to architecture.
1849
1850 2019-11-22 Jan Hubicka <jh@suse.cz>
1851
1852 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1853 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1854 (memory_block_pool::reduce_free_list): ... this one.
1855 (memory_block_pool::trim): New static function.
1856 * memory-block.h (memory_block_pool::freelist_size): New constant
1857 (memory_block_pool::clear_free_list): Rename to ...
1858 (memory_block_pool::reduce_free_list): ... this one.
1859 (memory_block_pool::trim): Declare.
1860
1861 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1862
1863 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1864 vect_cost_for_stmt.
1865 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1866 here rather than...
1867 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1868
1869 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1870
1871 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1872 (bic_cmp0_noout): New pattern.
1873 (bic_cmp0): Likewise.
1874 (neg_scc_insn): Remove pattern.
1875 (not_scc_insn): Likewise.
1876
1877 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1878
1879 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1880
1881 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1882
1883 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1884 pedwarn instead of warning_at for fallthrough not preceding a case
1885 or default label.
1886
1887 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1888
1889 PR tree-optimization/92608
1890 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1891 of dyn_cast.
1892
1893 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1894
1895 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1896 New predicate.
1897 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1898 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1899 special for FP comparisons that need a cror instruction eventually.
1900 (rs6000_emit_fp_cror): New function.
1901 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1902 instruction, for normal FP modes, with HONOR_NANS.
1903 (rs6000_emit_cbranch): Reformat.
1904 * config/rs6000/rs6000.md (fp_rev): New iterator.
1905 (fp_two): New iterator.
1906 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1907 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1908 *cbranch_2insn: New define_insn_and_split.
1909
1910 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1911
1912 PR tree-optimization/92526
1913 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1914 versioning for alignment if the accesses do not have a consistent
1915 mask, rather than asserting that the masks are consistent.
1916
1917 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1918
1919 PR tree-optimization/92595
1920 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1921 check.
1922 (vectorizable_store, vectorizable_load): Likewise.
1923
1924 2019-11-21 Jan Hubicka <jh@suse.cz>
1925
1926 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1927 (resolve_noninline_speculation, inline_small_functions): Avoid
1928 redundant updates.
1929
1930 2019-11-21 Richard Biener <rguenther@suse.de>
1931
1932 * lra.c (lra_insn_recog_data_pool): New.
1933 (free_insn_recog_data): Adjust.
1934 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1935 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1936
1937 2019-11-21 Richard Biener <rguenther@suse.de>
1938
1939 PR tree-optimization/92596
1940 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1941
1942 2019-11-21 Jan Hubicka <jh@suse.cz>
1943
1944 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1945 ready for some vectors to not be allocated.
1946 (evaluate_properties_for_edge): Document better; make
1947 known_vals and known_aggs caller allocated; avoid determining
1948 values of parameters which are not used.
1949 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1950 known_aggs.
1951 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1952 (do_estimate_edge_size): Likewise.
1953 (do_estimate_edge_hints): Likewise.
1954 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1955 values are not known.
1956 (ipa_release_agg_values): Add option to not release vector itself.
1957 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1958
1959 2019-11-21 Richard Biener <rguenther@suse.de>
1960
1961 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1962 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1963 (loop_iterator::loop_iterator): Adjust.
1964 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1965 (compute_dominance_frontiers): ... this. Hoist invariant
1966 get_immediate_dominator call.
1967 (compute_idf): Use a work-set instead of a work-list for more
1968 optimal iteration order and duplicate avoidance.
1969 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1970 the vector all the time, instead pre-allocate the vector only
1971 once.
1972 (delete_update_ssa): Simplify.
1973 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1974
1975 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1976
1977 PR tree-optimization/91355
1978 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1979 for early_bb scaled count with best_bb count comparison.
1980
1981 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1982 preffer -> prefer.
1983 * ipa-inline.c (edge_badness): Likewise.
1984 * lto-streamer.h (class lto_location_cache): Likewise.
1985 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1986 gratutious -> gratuitous.
1987
1988 2019-11-21 Richard Biener <rguenther@suse.de>
1989
1990 Revert
1991 2019-09-17 Richard Biener <rguenther@suse.de>
1992
1993 PR tree-optimization/91790
1994 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1995 use the correct DR for setting up realignment.
1996
1997 2019-11-21 Richard Biener <rguenther@suse.de>
1998
1999 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
2000 (equiv_class_obstack): New.
2001 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
2002 (perform_var_substitution): Initialize equiv_class_obstack.
2003 (free_var_substitution_info): Free equiv_class_obstack.
2004
2005 2019-11-20 Jan Hubicka <jh@suse.cz>
2006
2007 * ipa-inline.c (want_early_inline_function_p): Do not estimate
2008 edge growth when callee function is very large.
2009 * ipa-inline.h (estimate_min_edge_growth): New.
2010
2011 2019-11-20 Jan Hubicka <jh@suse.cz>
2012
2013 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
2014 negative time in calls summary; correct roundoff errors
2015 leading to negative times.
2016 (ipa_merge_fn_summary_after_inlining): Update calls size time table
2017 if present.
2018 (ipa_update_overall_fn_summary): Add RESET parameter.
2019 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
2020 * ipa-inline-transform.c (inline_call): Enable incremental updates.
2021
2022 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2023
2024 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
2025 def types for two-operation SLP.
2026
2027 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2028
2029 PR testsuite/92366
2030 * doc/sourcebuild.texi (vect_char_add): Document.
2031
2032 2019-11-20 Alexandre Oliva <oliva@adacore.com>
2033
2034 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
2035 * function.c (record_final_call): Record even calls that might
2036 have been in the cgraph.
2037 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
2038 callees.
2039
2040 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
2041
2042 * configure.ac: Use https for gcc.gnu.org
2043 * configure: Regenerated.
2044 * doc/install.texi: Use https for gcc.gnu.org.
2045 * doc/sourcebuild.texi: Likewise.
2046
2047 2019-11-20 Julian Brown <julian@codesourcery.com>
2048
2049 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
2050
2051 2019-11-20 Jan Hubicka <jh@suse.cz>
2052
2053 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
2054 parameter and update call_size_time_table.
2055 (ipa_fn_summary::max_size_time_table_size): New constant.
2056 (estimate_calls_size_and_time_1): Break out from ...
2057 (estimate_calls_size_and_time): ... here; implement summary production.
2058 (summarize_calls_size_and_time): New function.
2059 (ipa_call_context::estimate_size_and_time): Bypass
2060 estimate_calls_size_and_time for leaf functions.
2061 (ipa_update_overall_fn_summary): Likewise.
2062 * ipa-fnsummary.h (call_size_time_table): New.
2063 (ipa_fn_summary::account_size_time): Update prototype.
2064
2065 2019-11-20 Joseph Myers <joseph@codesourcery.com>
2066
2067 * doc/invoke.texi (-Wc11-c2x-compat): Document.
2068
2069 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
2070
2071 PR85678
2072 * common.opt (fcommon): Change init to 1.
2073 * doc/invoke.texi (-fcommon): Update documentation.
2074
2075 2019-11-20 Jan Hubicka <jh@suse.cz>
2076
2077 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
2078 to ordinary array.
2079
2080 2019-11-20 Jan Hubicka <jh@suse.cz>
2081
2082 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
2083 Add allocator parameter.
2084 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
2085 (fibonacci_heap<K,V>::m_allocator): New.
2086 (fibonacci_heap<K,V>::m_own_allocator): New.
2087 (fibonacci_heap<K,V>::insert): Use allocator.
2088 (fibonacci_heap<K,V>::extract_min): Likewise.
2089 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
2090 allocator.
2091 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
2092 on stack.
2093 * fibonacci_heap.c: Include alloc-pool
2094 (test_empty_heap): Initialize allocator.
2095 (test_union): Likewise.
2096 * bb-reorder.c: Include alloc-pool.h.
2097 * tracer.c: Inlclude alloc-pool.h.
2098
2099 2019-11-20 Jan Hubicka <jh@suse.cz>
2100
2101 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
2102 Preallocate for 32 entries.
2103 (DFS::worklist): Likewise.
2104 (DFS::DFS): Do not initialize sccstack and worklist.
2105 (DFS::~DFS): Do not release sccstack.
2106
2107 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
2108
2109 PR target/92573
2110 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
2111 Handle UNORDERED if !HONOR_NANS.
2112
2113 2019-11-20 Jan Hubicka <jh@suse.cz>
2114
2115 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
2116 (edge_badness): ... here.
2117 (inline_small_functions): Use monotonicity of badness calculation
2118 to avoid redundant updates.
2119
2120 2019-11-20 Richard Biener <rguenther@suse.de>
2121
2122 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
2123 constructors we are actually analyzing.
2124 (vect_slp_check_for_constructors): Do not vectorize uniform
2125 constuctors, do not dump here.
2126
2127 2019-11-20 Richard Biener <rguenther@suse.de>
2128
2129 PR tree-optimization/92537
2130 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
2131 vectorization validity check...
2132 (vect_slp_analyze_operations): ... here.
2133
2134 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
2135
2136 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
2137 (make_pass_arc_predicate_delay_insns): Likewise.
2138 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
2139 method, remove clone.
2140 (class pass_arc_predicate_delay_insns): Likewise.
2141 (arc_init): Remove registering of ARC specific passes.
2142 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
2143 * config/arc/arc-passes.def: New file.
2144
2145 2019-11-20 Jakub Jelinek <jakub@redhat.com>
2146
2147 PR middle-end/90840
2148 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
2149 and has a mode that doesn't have corresponding integral type.
2150
2151 PR target/90867
2152 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
2153 clear opts->x_ix86_isa_flags{,2} here...
2154 (ix86_valid_target_attribute_inner_p): ... but here when seeing
2155 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
2156
2157 PR c/90898
2158 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
2159 assertion.
2160 (insert_clobbers_for_var): Fix a typo in function comment.
2161
2162 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
2163 Jakub Jelinek <jakub@redhat.com>
2164
2165 PR middle-end/91195
2166 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
2167 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
2168 load.
2169
2170 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
2171
2172 Make 0-series device specs work with older versions of avr-gcc.
2173
2174 PR target/92545
2175 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
2176 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2177 <*link_pm_base_address>: Don't write spec.
2178 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
2179
2180 2019-11-20 Richard Biener <rguenther@suse.de>
2181
2182 PR c/92088
2183 * builtins.c (compute_objsize): Deal with VLAs.
2184
2185 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
2186
2187 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
2188 from common code.
2189 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
2190 call new function.
2191 (power9_sched_reorder2): Call new function.
2192 (rs6000_sched_reorder2): Likewise.
2193
2194 2019-11-18 Jan Hubicka <jh@suse.cz>
2195
2196 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
2197 (estimate_calls_size_and_time): Update.
2198
2199 2019-11-18 Jan Hubicka <jh@suse.cz>
2200
2201 * ipa-inline.c (inlining_speedup): New function.
2202 (edge_badness): Use it.
2203
2204 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
2205 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2206
2207 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
2208 Mark as not having "likely" version.
2209 * config/mips/mips.md (insn_count): The simd_div instruction with
2210 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
2211 (can_delay): Exclude simd_branch.
2212 (defile_delay *): Add simd_branch instructions.
2213 They have one regular delay slot.
2214
2215 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
2216
2217 Revert:
2218 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2219
2220 * cse.c (cse_insn): Delete no-op register moves too.
2221 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2222 Take a second comparison to control the value for NE.
2223 (mask_to_comparison): Handle unsigned comparisons.
2224 (simplify_logical_relational_operation): Likewise. Update call
2225 to comparison_to_mask. Handle AND if !HONOR_NANs.
2226 (simplify_binary_operation_1): Call the above for AND too.
2227
2228 2019-11-19 Martin Liska <mliska@suse.cz>
2229
2230 * toplev.c (general_init): Move the call...
2231 (toplev::main): ... here as we need init_options_struct
2232 being called.
2233
2234 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2235
2236 PR target/79262
2237 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
2238 vec_to_scalar_cost.
2239
2240 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2241
2242 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
2243 (armv7-a): Likewise.
2244 (armv7ve): Likewise.
2245
2246 2019-11-19 Richard Biener <rguenther@suse.de>
2247
2248 PR tree-optimization/92581
2249 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
2250 condition reduction chains gather all conditions involved
2251 for computing the index reduction vector.
2252
2253 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
2254
2255 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2256 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
2257 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
2258 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
2259 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
2260 (aarch64_init_memtag_builtins): New.
2261 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
2262 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
2263 (aarch64_expand_builtin_memtag): New.
2264 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
2265 (AARCH64_BUILTIN_SUBCODE): New macro.
2266 (aarch64_resolve_overloaded_memtag): New.
2267 (aarch64_resolve_overloaded_builtin_general): New. Call
2268 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
2269 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2270 __ARM_FEATURE_MEMORY_TAGGING when enabled.
2271 (aarch64_resolve_overloaded_builtin): Call
2272 aarch64_resolve_overloaded_builtin_general.
2273 * config/aarch64/aarch64-protos.h
2274 (aarch64_resolve_overloaded_builtin_general): New declaration.
2275 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
2276 (TARGET_MEMTAG): Likewise.
2277 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
2278 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
2279 (irg, gmi, subp, addg, ldg, stg): New instructions.
2280 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
2281 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
2282 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
2283 (__arm_mte_get_tag): Likewise.
2284 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
2285 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
2286 * config/arm/types.md (memtag): New.
2287 * doc/invoke.texi (-memtag): Update description.
2288
2289 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
2290
2291 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2292 to define __GCC_ASM_FLAG_OUTPUTS__.
2293 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
2294 (arm_option_params_internal): Swap out targetm.md_asm_adjust
2295 depending on TARGET_THUMB1.
2296 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
2297
2298 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2299
2300 PR target/92549
2301 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
2302
2303 PR middle-end/91450
2304 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
2305 operand is negative and one non-negative, compare the non-negative
2306 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
2307 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
2308 and s2 == 0, unless one of them is known to be negative. Remove
2309 tem2 variable, use tem where tem2 has been used before.
2310
2311 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
2312
2313 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
2314
2315 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2316
2317 PR tree-optimization/92557
2318 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
2319 vmode rather than asserting it always is.
2320
2321 2019-11-19 Richard Biener <rguenther@suse.de>
2322
2323 PR tree-optimization/92554
2324 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
2325 for the actual condition stmt and deal with sign-changes.
2326
2327 2019-11-19 Richard Biener <rguenther@suse.de>
2328
2329 PR tree-optimization/92555
2330 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
2331 for non-SLP stmts.
2332
2333 2019-11-19 Martin Liska <mliska@suse.cz>
2334
2335 PR bootstrap/92540
2336 * config/riscv/riscv.c (riscv_address_insns): Initialize
2337 addr in order to remove boostrap -Wmaybe-uninitialized
2338 error.
2339
2340 2019-11-18 Martin Sebor <msebor@redhat.com>
2341
2342 PR tree-optimization/92493
2343 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
2344 assignment.
2345
2346 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
2347
2348 * cfgloop.c (get_loop_body_in_custom_order): New.
2349 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
2350 * tree-loop-distribution.c (class loop_distribution): New.
2351 (bb_top_order_cmp): Remove.
2352 (bb_top_order_cmp_r): New.
2353 (create_rdg_vertices): Move into class loop_distribution.
2354 (stmts_from_loop): Same as above.
2355 (update_for_merge): Same as above.
2356 (partition_merge_into): Same as above.
2357 (get_data_dependence): Same as above.
2358 (data_dep_in_cycle_p): Same as above.
2359 (update_type_for_merge): Same as above.
2360 (build_rdg_partition_for-vertex): Same as above.
2361 (classify_builtin_ldst): Same as above.
2362 (classify_partition): Same as above.
2363 (share_memory_accesses): Same as above.
2364 (rdg_build_partitions): Same as above.
2365 (pg_add_dependence_edges): Same as above.
2366 (build_partition_graph): Same as above.
2367 (merge_dep_scc_partitions): Same as above.
2368 (break_alias_scc_partitions): Same as above.
2369 (finalize_partitions): Same as above.
2370 (distribute_loop): Same as above.
2371 (bb_top_order_init): New method
2372 (bb_top_order_destroy): New method.
2373 (get_bb_top_order_index_size): New method.
2374 (get_bb_top_order_index_index): New method.
2375 (get_bb_top_order_index_index): New method.
2376 (loop_distribution::execute): New method.
2377 (pass_loop_distribution::execute): Instantiate loop_distribution.
2378
2379 2019-11-18 Jan Hubicka <jh@suse.cz>
2380
2381 PR ipa/92508
2382 * ipa-inline.c (inline_small_functions): Add new edges after reseting
2383 caches.
2384 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2385
2386 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2387
2388 * doc/sourcebuild.texi (vect_check_ptrs): Document.
2389 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2390 * doc/md.texi: Document them.
2391 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2392 internal functions.
2393 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2394 * internal-fn.c (check_ptrs_direct): New macro.
2395 (expand_check_ptrs_optab_fn): Likewise.
2396 (direct_check_ptrs_optab_supported_p): Likewise.
2397 (internal_check_ptrs_fn_supported_p): New fuction.
2398 * tree-data-ref.c: Include internal-fn.h.
2399 (create_ifn_alias_checks): New function.
2400 (create_intersect_range_checks): Use it.
2401 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2402 (optab, cmp_op): Handle it.
2403 (raw_war, unspec): New int attributes.
2404 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2405 constants.
2406 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2407 New predicate.
2408 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2409 expander.
2410 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2411 pattern.
2412
2413 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2414
2415 * tree.c (build_vector_from_ctor): Directly return a zero vector for
2416 empty constructors.
2417
2418 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2419
2420 * cse.c (cse_insn): Delete no-op register moves too.
2421 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2422 Take a second comparison to control the value for NE.
2423 (mask_to_comparison): Handle unsigned comparisons.
2424 (simplify_logical_relational_operation): Likewise. Update call
2425 to comparison_to_mask. Handle AND if !HONOR_NANs.
2426 (simplify_binary_operation_1): Call the above for AND too.
2427
2428 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2429
2430 * fold-const.c (native_encode_vector): Turn into a wrapper function,
2431 splitting the main code out into...
2432 (native_encode_vector_part): ...this new function.
2433 (native_decode_vector_tree): New function.
2434 (fold_view_convert_vector_encoding): Likewise.
2435 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2436 to VECTOR_TYPEs.
2437
2438 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2439
2440 * tree-data-ref.c (create_intersect_range_checks_index): If the
2441 alias pair describes simple WAW and WAR dependencies, just check
2442 whether the first B access overlaps later A accesses.
2443 (create_waw_or_war_checks): New function that performs the same
2444 optimization on addresses.
2445 (create_intersect_range_checks): Call it.
2446
2447 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2448
2449 * lra-constraints.c (valid_address_p): Take the operand and a
2450 constraint as argument. If the operand is a MEM and the constraint
2451 is a memory constraint, check whether the eliminated form of the
2452 MEM already satisfies the constraint.
2453 (process_address_1): Update calls accordingly.
2454
2455 2019-11-18 Tom Tromey <tromey@adacore.com>
2456
2457 * doc/tm.texi: Rebuild.
2458 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2459 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2460
2461 2019-11-18 Richard Biener <rguenther@suse.de>
2462
2463 PR tree-optimization/92516
2464 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2465 argument, hoist bst_map creation/destruction to ...
2466 (vect_analyze_slp): ... here, forming a true graph with
2467 SLP instances being the entries.
2468 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2469 (vect_detect_hybrid_slp): Use one visited set for all
2470 graph entries.
2471 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2472 to hash-sets of slp_tree.
2473 (vect_slp_analyze_operations): Likewise.
2474 (vect_bb_slp_scalar_cost): Remove wrapper.
2475 (vect_bb_vectorization_profitable_p): Use one visited set for
2476 all graph entries.
2477 (vect_schedule_slp_instance): Elide bst_map use.
2478 (vect_schedule_slp): Likewise.
2479
2480 2019-11-18 Richard Biener <rguenther@suse.de>
2481
2482 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2483 was vectorized with just external refs fail.
2484
2485 2019-11-18 Martin Liska <mliska@suse.cz>
2486
2487 PR ipa/92525
2488 * ipa-icf.c (sem_function::init): Unset m_checker
2489 at the end of the function.
2490
2491 2019-11-18 Richard Biener <rguenther@suse.de>
2492
2493 PR tree-optimization/92558
2494 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2495 reducting the width of a reduction vector def update new_phis.
2496
2497 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2498
2499 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2500 and s390*-*-linux-musl* targets.
2501 * configure: Regenerate.
2502
2503 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2504
2505 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2506 (MUSL_DYNAMIC_LINKER64): Define.
2507
2508 2019-11-18 Martin Liska <mliska@suse.cz>
2509
2510 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2511 message for an unknown counter.
2512 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2513 (dbg_cnt_process_opt): Remove unreachable code.
2514
2515 2019-11-18 Martin Liska <mliska@suse.cz>
2516
2517 PR ipa/92529
2518 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2519 Compare LHS types of NOP_EXPR.
2520
2521 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2522
2523 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2524 "initial_pass_name" argument -- by running "*clean_state" pass.
2525 Also free the "initial_pass_name" when done.
2526
2527 2019-11-18 Richard Biener <rguenther@suse.de>
2528
2529 PR rtl-optimization/92462
2530 * alias.c (find_base_term): Restrict the look through ANDs.
2531 (find_base_value): Likewise.
2532
2533 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2534
2535 Add support for AVR devices from the 0-series.
2536
2537 PR target/92545
2538 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2539 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2540 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2541 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2542 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2543 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2544 for spec definitions.
2545 * doc/avr-mmcu.texi: Regenerate.
2546
2547 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2548
2549 PR target/92448
2550 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2551 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2552 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2553 (ix86_reassociation_width): Ditto.
2554 * config/i386/i386-options.c (ix86_option_override_internal):
2555 Replace TARGET_AVX128_OPTIAML with
2556 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2557 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2558 (TARGET_AVX128_OPTIMAL): Deleted.
2559 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2560 DEF_TUNE.
2561
2562 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2563
2564 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2565 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2566 just SI.
2567 (cceq_rev_compare): Rename to...
2568 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2569 just SI.
2570 (define_split for <bd>tf_<mode>): Add SImode first argument to
2571 gen_cceq_ior_compare.
2572
2573 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2574
2575 * common/config/powerpcspe: Delete.
2576
2577 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2578
2579 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2580 output in UNSPEC_WRFFR.
2581
2582 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2583
2584 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2585 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2586
2587 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2588
2589 * tree-data-ref.c (create_intersect_range_checks_index)
2590 (create_intersect_range_checks): Print dump messages.
2591
2592 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2593
2594 * tree-data-ref.c (dump_alias_pair): New function.
2595 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2596
2597 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2598
2599 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2600 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2601 merging data references with different steps.
2602 (create_intersect_range_checks_index): Take a
2603 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2604 Bail out if DR_ALIAS_MIXED_STEPS is set.
2605 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2606 instead of two dr_with_seg_lens. Update call to
2607 create_intersect_range_checks_index.
2608 (create_runtime_alias_checks): Update call accordingly.
2609
2610 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2611
2612 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2613 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2614 (dr_with_seg_len_pair_t::sequencing): New enum.
2615 (dr_with_seg_len_pair_t::flags): New member variable.
2616 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2617 parameter and initialize the flags member variable.
2618 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2619 call accordingly.
2620 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2621 Ensure the two data references in an alias pair are in statement
2622 order, if there is a defined order.
2623 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2624 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2625 swapped the references in a dr_with_seg_len_pair_t. OR together
2626 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2627 try to restore the original dr_with_seg_len order, updating the
2628 flags if that fails.
2629
2630 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2631
2632 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2633 swapping the dr_as based on init values until we've decided
2634 whether to merge them.
2635
2636 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2637
2638 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2639 two accesses in each dr_with_seg_len_pair_t before trying to
2640 combine separate dr_with_seg_len_pair_ts.
2641 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2642 that here.
2643 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2644
2645 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2646
2647 * config/aarch64/aarch64-sve.md
2648 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2649 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2650 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2651 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2652 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2653 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2654 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2655 pattern.
2656 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2657 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2658 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2659 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2660
2661 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2662
2663 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2664 (SVE_4HSI): New mode iterators.
2665 (ANY_EXTEND2): New code iterator.
2666 * config/aarch64/aarch64-sve.md
2667 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2668 Extend to...
2669 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2670 ...this, handling extension to partial modes as well as full modes.
2671 Describe the extension as a predicated rather than unpredicated
2672 extension.
2673 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2674 Likewise extend to...
2675 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2676 ...this, making the same adjustments.
2677 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2678 Likewise extend to...
2679 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2680 ...this, making the same adjustments.
2681 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2682 Likewise extend to...
2683 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2684 ...this, making the same adjustments.
2685 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2686 New pattern.
2687 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2688 extension predicate.
2689 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2690 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2691 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2692 Describe the extension as a predicated rather than unpredicated
2693 extension.
2694 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2695 Likewise. Canonicalize to a constant extension predicate.
2696 * config/aarch64/aarch64-sve-builtins-base.cc
2697 (svld1_gather_extend_impl::expand): Add an extra predicate for
2698 the extension.
2699 (svldff1_gather_extend_impl::expand): Likewise.
2700
2701 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2702
2703 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2704 iterators.
2705 * config/aarch64/aarch64-sve.md
2706 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2707 (gather_load<SVE_24:mode><v_int_container>): ...this.
2708 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2709 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2710 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2711 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2712 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2713 New pattern.
2714 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2715 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2716 Allow the nominal extension predicate to be different from the
2717 load predicate.
2718 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2719 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2720
2721 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2722
2723 * config/aarch64/aarch64-sve.md
2724 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2725 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2726 function.
2727 (aarch64_sve_adjust_stmt_cost): Call it.
2728
2729 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2730
2731 * config/aarch64/aarch64-sve.md
2732 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2733 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2734 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2735 Combine into...
2736 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2737 ...this new pattern, handling extension to partial modes as well
2738 as full modes. Describe the extension as a predicated rather than
2739 unpredicated extension.
2740 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2741 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2742 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2743 Combine into...
2744 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2745 ...this new pattern, handling extension to partial modes as well
2746 as full modes. Describe the extension as a predicated rather than
2747 unpredicated extension.
2748 * config/aarch64/aarch64-sve-builtins.cc
2749 (function_expander::use_contiguous_load_insn): Add an extra
2750 predicate for extending loads.
2751 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2752 (aarch64_sve_adjust_stmt_cost): Likewise.
2753 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2754 the cost of SVE vector stmts.
2755
2756 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2757
2758 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2759 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2760 * config/aarch64/aarch64-sve.md
2761 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2762 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2763 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2764 comment. Avoid new narrower_mask ambiguity.
2765 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2766 (*cond_uxt<mode>_2): Update comment.
2767 (*cond_uxt<mode>_any): Likewise.
2768
2769 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2770
2771 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2772 float modes.
2773 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2774 function.
2775 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2776 new vector float modes.
2777 (aarch64_sve_container_bits): New function.
2778 (aarch64_sve_pred_mode): Likewise.
2779 (aarch64_get_mask_mode): Use it.
2780 (aarch64_sve_element_int_mode): Handle structure modes and partial
2781 modes.
2782 (aarch64_sve_container_int_mode): New function.
2783 (aarch64_vectorize_related_mode): Return SVE modes when given
2784 SVE modes. Handle partial modes, taking the preferred number
2785 of units from the size of the given mode.
2786 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2787 in registers.
2788 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2789 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2790 (aarch64_split_sve_subreg_move): Use the mode form of
2791 aarch64_sve_pred_mode.
2792 (aarch64_secondary_reload): Handle partial modes in the same way
2793 as full big-endian vectors.
2794 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2795 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2796 merging with the Advanced SIMD modes. If two modes have the
2797 same size, try the Advanced SIMD mode first.
2798 (aarch64_simd_valid_immediate): Use the container rather than
2799 the element mode for INDEX constants.
2800 (aarch64_simd_vector_alignment): Make the alignment of partial
2801 SVE vector modes the same as their minimum size.
2802 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2803 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2804 (mov<SVE_ALL:mode>): ...this.
2805 (movmisalign<SVE_FULL:mode>): Extend to...
2806 (movmisalign<SVE_ALL:mode>): ...this.
2807 (*aarch64_sve_mov<mode>_le): Rename to...
2808 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2809 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2810 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2811 partial modes regardless of endianness.
2812 (aarch64_sve_reload_be): Rename to...
2813 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2814 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2815 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2816 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2817 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2818 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2819 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2820 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2821 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2822 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2823 (maskload<SVE_FULL:mode><vpred>): Extend to...
2824 (maskload<SVE_ALL:mode><vpred>): ...this.
2825 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2826 (maskstore<SVE_ALL:mode><vpred>): ...this.
2827 (vec_duplicate<SVE_FULL:mode>): Extend to...
2828 (vec_duplicate<SVE_ALL:mode>): ...this.
2829 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2830 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2831 (sve_ld1r<SVE_FULL:mode>): Extend to...
2832 (sve_ld1r<SVE_ALL:mode>): ...this.
2833 (vec_series<SVE_FULL_I:mode>): Extend to...
2834 (vec_series<SVE_I:mode>): ...this.
2835 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2836 (*vec_series<SVE_I:mode>_plus): ...this.
2837 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2838 new VPRED ambiguity.
2839 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2840 (add<SVE_FULL_I:mode>3): Extend to...
2841 (add<SVE_I:mode>3): ...this.
2842 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2843 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2844 (VPRED, vpred): Likewise.
2845 (Vctype): New iterator.
2846 (vw): Remove SVE modes.
2847
2848 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2849
2850 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2851 (SVE_PARTIAL_I): ...this.
2852 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2853
2854 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2855
2856 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2857 (SVE_FULL): ...this.
2858 (SVE_I): Rename to...
2859 (SVE_FULL_I): ...this.
2860 (SVE_F): Rename to...
2861 (SVE_FULL_F): ...this.
2862 (SVE_BHSI): Rename to...
2863 (SVE_FULL_BHSI): ...this.
2864 (SVE_HSD): Rename to...
2865 (SVE_FULL_HSD): ...this.
2866 (SVE_HSDI): Rename to...
2867 (SVE_FULL_HSDI): ...this.
2868 (SVE_HSF): Rename to...
2869 (SVE_FULL_HSF): ...this.
2870 (SVE_SD): Rename to...
2871 (SVE_FULL_SD): ...this.
2872 (SVE_SDI): Rename to...
2873 (SVE_FULL_SDI): ...this.
2874 (SVE_SDF): Rename to...
2875 (SVE_FULL_SDF): ...this.
2876 (SVE_S): Rename to...
2877 (SVE_FULL_S): ...this.
2878 (SVE_D): Rename to...
2879 (SVE_FULL_D): ...this.
2880 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2881 * config/aarch64/aarch64-sve2.md: Likewise.
2882
2883 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2884
2885 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2886 New option.
2887 * doc/invoke.texi: Document it.
2888 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2889 By default, return VECT_COMPARE_COSTS for SVE.
2890
2891 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2892
2893 * target.h (VECT_COMPARE_COSTS): New constant.
2894 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2895 * doc/tm.texi: Regenerate.
2896 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2897 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2898 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2899 Likewise.
2900 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2901 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2902 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2903 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2904 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2905 (_loop_vec_info::vec_inside_cost): New member variables.
2906 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2907 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2908 (vect_analyze_loop): When autovectorize_vector_modes returns
2909 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2910 vector mode and picking the one with the lowest cost.
2911 (vect_estimate_min_profitable_iters): Record the computed costs
2912 in the loop_vec_info.
2913
2914 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2915
2916 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2917 element type rather than an element mode.
2918 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2919 Use get_vectype_for_scalar_type to query the natural types
2920 for a given element type rather than basing everything on
2921 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2922 query to MAX_FIXED_MODE_SIZE.
2923 (duplicate_and_interleave): Update call accordingly.
2924 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2925
2926 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2927
2928 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2929 optional maximum nunits.
2930 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2931 takes an slp_tree.
2932 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2933 (vect_get_mask_type_for_stmt): Likewise.
2934 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2935 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2936 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2937 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2938 to get an assumed vector type for data references.
2939 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2940 (vect_update_all_shared_vectypes): Likewise.
2941 (vect_build_slp_tree_1): Pass the group size to
2942 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2943 for BB vectorization.
2944 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2945 before building the vectof from scalars.
2946 (vect_analyze_slp_instance): Pass the group size to
2947 get_vectype_for_scalar_type.
2948 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2949 types for BB vectorization here; just handle the case in which
2950 we deferred the choice for booleans.
2951 (vect_get_constant_vectors): Pass the slp_tree to
2952 get_vectype_for_scalar_type.
2953 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2954 (vectorizable_call): Likewise.
2955 (vectorizable_simd_clone_call): Likewise.
2956 (vectorizable_conversion): Likewise.
2957 (vectorizable_shift): Likewise.
2958 (vectorizable_operation): Likewise.
2959 (vectorizable_comparison): Likewise.
2960 (vect_is_simple_cond): Take the slp_tree as argument and
2961 pass it to get_vectype_for_scalar_type.
2962 (vectorizable_condition): Update call accordingly.
2963 (get_vectype_for_scalar_type): Take a group_size argument.
2964 For BB vectorization, limit the the vector to that number
2965 of elements. Also define an overload that takes an slp_tree.
2966 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2967 pass it to get_vectype_for_scalar_type.
2968 (vect_get_vector_types_for_stmt): Add a group_size argument
2969 and pass it to get_vectype_for_scalar_type. Don't use the
2970 cached vector type for BB vectorization if a group size is given.
2971 Handle data references in that case.
2972 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2973 pass it to get_mask_type_for_scalar_type.
2974
2975 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2976
2977 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2978 parameter.
2979 (estimate_edge_time): Use it.
2980 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2981 ret_nonspec_time parameter.
2982
2983 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2984
2985 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2986
2987 2019-11-15 Nick Clifton <nickc@redhat.com>
2988 Szabolcs Nagy <szabolcs.nagy@arm.com>
2989
2990 PR target/65649
2991 * config/microblaze/microblaze.c (print_operand): Print value as long.
2992
2993 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2994
2995 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2996 accidental commit.
2997
2998 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2999
3000 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
3001 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
3002
3003 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3004
3005 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
3006 (gcn_conditional_register_usage): Use constants in place of hard-coded
3007 values.
3008 (gcn_hsa_declare_function_name): Set lower bound for number of
3009 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
3010 MAX_NORMAL_VGPR_COUNT.
3011
3012 2019-11-15 Martin Jambor <mjambor@suse.cz>
3013
3014 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
3015 declaration.
3016
3017 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3018
3019 * config/gcn/gcn.c (default_requested_args): New.
3020 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
3021 set with default_requested_args.
3022 (gcn_conditional_register_usage): Limit register usage of non-kernel
3023 functions. Reassign fixed registers if a non-standard set of args is
3024 requested.
3025 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
3026
3027 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
3028
3029 PR ipa/92528
3030 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
3031 aggregate jump function when inlined-to caller has no edge summary.
3032
3033 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3034
3035 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
3036
3037 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3038
3039 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
3040 prologue use of v0.
3041 (print_operand_address): Use v1 for zero vector offset.
3042
3043 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3044
3045 PR tree-optimization/92515
3046 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
3047 types when converting a vector/scalar shift into a vector/vector one,
3048 using tree_nop_conversion_p instead of useless_type_conversion_p.
3049 Move the conversion code to the transform block.
3050
3051 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3052
3053 * read-rtl-function.c
3054 (function_reader::add_fixup_source_location): Take additional
3055 parameter of a column.
3056 (function_reader::maybe_read_location): Optionally parse column
3057 information and pass to add_fixup_source_location.
3058
3059 2019-11-15 Richard Biener <rguenther@suse.de>
3060
3061 PR tree-optimization/92512
3062 * tree-vect-loop.c (check_reduction_path): Fix operand index
3063 computability check. Add check for second use in COND_EXPRs.
3064
3065 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3066
3067 PR target/92515
3068 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
3069 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
3070
3071 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3072
3073 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
3074 register class for VCC_LO and VCC_HI.
3075 (gcn_spill_class): Use SGPR_REGS to spill registers in
3076 VCC_CONDITIONAL_REG.
3077
3078 2019-11-15 Richard Biener <rguenther@suse.de>
3079
3080 PR tree-optimization/92324
3081 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3082 singedness of SLP reduction epilouge operations. Also reduce
3083 the vector width for SLP reductions before doing elementwise
3084 operations if possible.
3085
3086 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3087
3088 * passes.c (skip_pass): Set epilogue_completed if skipping the
3089 pro_and_epilogue pass.
3090
3091 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3092
3093 * passes.c (should_skip_pass_p): Always run "dfinish".
3094
3095 2019-11-15 Richard Biener <rguenther@suse.de>
3096
3097 * ipa-inline.c (inline_small_functions): Move assignment
3098 to next before call destroying edge.
3099
3100 2019-11-15 Richard Biener <rguenther@suse.de>
3101
3102 PR tree-optimization/92039
3103 PR tree-optimization/91975
3104 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
3105 previous change, treat invariants consistently as non-constant.
3106 (tree_estimate_loop_size): Ternary ops with just the first op
3107 constant are not optimized away.
3108
3109 2019-11-15 Jakub Jelinek <jakub@redhat.com>
3110
3111 * gimplify.c (gimplify_call_expr): Don't call
3112 omp_resolve_declare_variant after gimplification.
3113 * omp-general.c (omp_context_selector_matches): For isa that might
3114 match in some other function, defer if in declare simd function.
3115 (omp_context_compute_score): Don't look for " score" in construct
3116 trait set. Set *score to -1 if it can't ever match.
3117 (omp_resolve_declare_variant): If any variants need to be deferred,
3118 don't punt immediately, but compute scores of all variants and if
3119 ther eis a score winner that doesn't need to be deferred, return that.
3120
3121 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
3122
3123 * ipa-comdats.c: Fix comments typo.
3124 * ipa-profile.c: Fix comments typo.
3125 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
3126 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
3127 (gimple_gen_ic_func_profiler): Likewise.
3128 (pass_ipa_tree_profile::gate): Fix comments typo.
3129
3130 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
3131
3132 * ipa-inline.c (inline_small_functions): Update iterator of next.
3133
3134 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3135
3136 * lra-spills.c (assign_spill_hard_regs): Check that the spill
3137 register is suitable for the mode.
3138
3139 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3140
3141 * range-op.h (range_operator::fold_range): Return a bool.
3142 * range-op.cc (range_operator::wi_fold): Assert supported type.
3143 (range_operator::fold_range): Assert supported type and return true.
3144 (operator_equal::fold_range): Return true.
3145 (operator_not_equal::fold_range): Same.
3146 (operator_lt::fold_range): Same.
3147 (operator_le::fold_range): Same.
3148 (operator_gt::fold_range): Same.
3149 (operator_ge::fold_range): Same.
3150 (operator_plus::op1_range): Adjust call to fold_range.
3151 (operator_plus::op2_range): Same.
3152 (operator_minus::op1_range): Same.
3153 (operator_minus::op2_range): Same.
3154 (operator_exact_divide::op1_range): Same.
3155 (operator_lshift::fold_range): Return true and adjust fold_range call.
3156 (operator_rshift::fold_range): Same.
3157 (operator_cast::fold_range): Return true.
3158 (operator_logical_and::fold_range): Same.
3159 (operator_logical_or::fold_range): Same.
3160 (operator_logical_not::fold_range): Same.
3161 (operator_bitwise_not::fold_range): Adjust call to fold_range.
3162 (operator_bitwise_not::op1_range): Same.
3163 (operator_cst::fold_range): Return true.
3164 (operator_identity::fold_range): Return true.
3165 (operator_negate::fold_range): Return true and adjust fold_range call.
3166 (operator_addr_expr::fold_range): Return true.
3167 (operator_addr_expr::op1_range): Adjust call to fold_range.
3168 (range_cast): Same.
3169 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
3170 (range_fold_unary_symbolics_p): Same.
3171
3172 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3173
3174 PR tree-optimization/92506
3175 * range-op.cc (range_operator::fold_range): Start with range undefined.
3176 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
3177 overflow is varying.
3178
3179 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3180
3181 * range-op.cc (*operator*::*range): Remove calls to
3182 range_intersect, range_invert, and range_union in favor of calling
3183 the in-place API methods.
3184 (range_tests): Same.
3185 * range.cc (range_intersect): Remove.
3186 (range_union): Remove.
3187 (range_invert): Remove.
3188 * range.h (range_intersect): Remove.
3189 (range_union): Remove.
3190 (range_intersect): Remove.
3191
3192 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
3193
3194 PR rtl-optimization/92430
3195 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
3196 (pass_jump_after_combine::execute): Perform jump threading
3197 unconditionally.
3198
3199 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3200 Doug Rupp <rupp@adacore.com>
3201 Olivier Hainque <hainque@adacore.com>
3202
3203 * config.gcc: Collapse the arm-vxworks entries into
3204 a single arm-wrs-vxworks7* one, bpabi based. Update
3205 the default cpu from arm8 to armv7-a
3206 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
3207 we always use ARM_UNWIND_INFO.
3208 (DWARF2_UNWIND_INFO): Remove redefinition.
3209 (ARM_TARGET2_DWARF_FORMAT): Likewise.
3210 (VXWORKS_PERSONALITY): Define, to "llvm".
3211 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
3212
3213 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3214
3215 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
3216 _VX_CPU instead of CPU and handle arm_arch8.
3217
3218 2019-11-14 Doug Rupp <rupp@adacore.com>
3219 Olivier Hainque <hainque@adacore.com>
3220 Jerome Lambourg <lambourg@adacore.com>
3221
3222 * config.gcc: Handle aarch64*-wrs-vxworks7*.
3223 * config/aarch64/aarch64-vxworks.h: New file.
3224 * config/aarch64/t-aarch64-vxworks: New file.
3225
3226 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
3227 Olivier Hainque <hainque@adacore.com>
3228
3229 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
3230 definition, pointless with a VxWorks specific version
3231 of crtstuff.
3232 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
3233 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
3234 New local macros, controlling the addition of vxworks specific
3235 crtstuff objects depending on the EH mechanism and kind of
3236 module being linked.
3237 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
3238
3239 2019-11-06 Pat Bernardi <bernardi@adacore.com>
3240 Jerome Lambourg <lambourg@adacore.com>
3241 Olivier Hainque <hainque@adacore.com>
3242
3243 * config.gcc: Add comment to introduce the TARGET_VXWORKS
3244 common macro definitions, conveying VXWORKS7 or 64bit general
3245 variations. Add a block to set gcc_cv_initfini_array
3246 unconditionally to "yes" for VxWorks7.
3247 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
3248 by default. Update some comments.
3249 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
3250 default, to be added the end of VXWORKS_LIBS_RTP.
3251 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
3252 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
3253 redefine.
3254 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
3255 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
3256 to account for the now available TLS abilities.
3257 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
3258 (VXWORKS_HAVE_TLS): Likewise.
3259
3260 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3261
3262 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
3263 (vect_slp_convert_to_external): Likewise.
3264 (vect_slp_analyze_node_operations): If analysis fails, try building
3265 the node from scalars instead.
3266
3267 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3268
3269 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
3270 between vector types.
3271 * tree-vect-stmts.c (vectorizable_conversion): Extend the
3272 non-widening and non-narrowing path to handle standard
3273 conversion codes, if the target supports them.
3274 * expr.c (convert_move): Try using the extend and truncate optabs
3275 for vectors.
3276 * optabs-tree.c (supportable_convert_operation): Likewise.
3277 * config/aarch64/iterators.md (Vnarroqw): New iterator.
3278 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
3279 (trunc<mode><Vnarrowq>2): New patterns.
3280
3281 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3282
3283 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
3284 require vectype and nunits_vectype to have the same size;
3285 instead assert that nunits_vectype has at least as many
3286 elements as vectype. Don't compute a separate nunits_vectype
3287 if the scalar type is obviously the same as vectype's.
3288 Tweak dump messages.
3289
3290 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3291
3292 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
3293 function.
3294 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
3295 (TARGET_VECTORIZE_RELATED_MODE): Define.
3296
3297 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3298
3299 * tree-vectorizer.h (vec_info::mode_set): New typedef.
3300 (vec_info::used_vector_mode): New member variable.
3301 (vect_chooses_same_modes_p): Declare.
3302 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
3303 chosen vector mode in vec_info::used_vector_mode.
3304 (vect_chooses_same_modes_p): New function.
3305 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
3306 the same vector statements multiple times.
3307 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3308
3309 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3310
3311 * machmode.h (opt_machine_mode::operator==): New function.
3312 (opt_machine_mode::operator!=): Likewise.
3313 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
3314 (get_related_vectype_for_scalar_type): Delete.
3315 (get_vectype_for_scalar_type_and_size): Declare.
3316 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
3317 whether analysis passed or failed, and with what vector modes.
3318 Use related_vector_mode to check whether trying a particular
3319 vector mode would be redundant with the autodetected mode,
3320 and print a dump message if we decide to skip it.
3321 * tree-vect-loop.c (vect_analyze_loop): Likewise.
3322 (vect_create_epilog_for_reduction): Use
3323 get_related_vectype_for_scalar_type instead of
3324 get_vectype_for_scalar_type_and_size.
3325 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
3326 with...
3327 (get_related_vectype_for_scalar_type): ...this new function.
3328 Take a starting/"prevailing" vector mode rather than a vector size.
3329 Take an optional nunits argument, with the same meaning as for
3330 related_vector_mode. Use related_vector_mode when not
3331 auto-detecting a mode, falling back to mode_for_vector if no
3332 target mode exists.
3333 (get_vectype_for_scalar_type): Update accordingly.
3334 (get_same_sized_vectype): Likewise.
3335 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
3336
3337 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3338
3339 * tree-vect-stmts.c (vectorizable_call): Require the types
3340 to have the same size.
3341
3342 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3343
3344 * tree-vect-stmts.c (vectorizable_call): If an operand is
3345 constant or external, use get_vectype_for_scalar_type
3346 rather than get_same_sized_vectype to get its vector type.
3347 (vectorizable_conversion, vectorizable_shift): Likewise.
3348 (vectorizable_operation): Likewise.
3349
3350 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3351
3352 * tree-vectorizer.h (vec_info::vector_size): Replace with...
3353 (vec_info::vector_mode): ...this new field.
3354 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
3355 (vect_analyze_loop, vect_transform_loop): Likewise.
3356 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
3357 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3358 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3359 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3360 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3361
3362 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3363
3364 * target.h (vector_sizes, auto_vector_sizes): Delete.
3365 (vector_modes, auto_vector_modes): New typedefs.
3366 * target.def (autovectorize_vector_sizes): Replace with...
3367 (autovectorize_vector_modes): ...this new hook.
3368 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3369 Replace with...
3370 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
3371 * doc/tm.texi: Regenerate.
3372 * targhooks.h (default_autovectorize_vector_sizes): Delete.
3373 (default_autovectorize_vector_modes): New function.
3374 * targhooks.c (default_autovectorize_vector_sizes): Delete.
3375 (default_autovectorize_vector_modes): New function.
3376 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
3377 of autovectorize_vector_sizes. Use the number of units in the mode
3378 to calculate the maximum VF.
3379 * omp-low.c (omp_clause_aligned_alignment): Use
3380 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3381 Use a loop based on related_mode to iterate through all supported
3382 vector modes for a given scalar mode.
3383 * optabs-query.c (can_vec_mask_load_store_p): Use
3384 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3385 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3386 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3387 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3388 Replace with...
3389 (aarch64_autovectorize_vector_modes): ...this new function.
3390 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3391 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3392 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3393 (arc_autovectorize_vector_modes): ...this new function.
3394 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3395 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3396 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3397 (arm_autovectorize_vector_modes): ...this new function.
3398 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3399 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3400 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3401 (ix86_autovectorize_vector_modes): ...this new function.
3402 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3403 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3404 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3405 (mips_autovectorize_vector_modes): ...this new function.
3406 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3407 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3408
3409 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3410
3411 * tree-vect-stmts.c (vectorizable_shift): Check the number
3412 of vector elements as well as the type mode when deciding
3413 whether an op1_vectype is compatible. Reuse the result of
3414 this check when generating vector statements.
3415
3416 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3417
3418 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3419 targetm.vectorize.preferred_simd_mode returns an integer mode,
3420 use mode_for_vector to decide what the vector type's mode
3421 should actually be. Use build_vector_type_for_mode instead
3422 of build_vector_type.
3423
3424 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3425
3426 * target.def (get_mask_mode): Take a vector mode itself as argument,
3427 instead of properties about the vector mode.
3428 * doc/tm.texi: Regenerate.
3429 * targhooks.h (default_get_mask_mode): Update to reflect new
3430 get_mode_mask interface.
3431 * targhooks.c (default_get_mask_mode): Likewise. Use
3432 related_int_vector_mode.
3433 * optabs-query.c (can_vec_mask_load_store_p): Update call
3434 to get_mask_mode.
3435 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3436 first that the original mode really is a vector.
3437 * tree.c (build_truth_vector_type_for): Likewise.
3438 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3439 get_mode_mask interface.
3440 (aarch64_expand_sve_vcond): Update call accordingly.
3441 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3442 get_mode_mask interface.
3443 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3444
3445 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3446
3447 * tree.h (build_truth_vector_type): Delete.
3448 (build_same_sized_truth_vector_type): Likewise.
3449 * tree.c (build_truth_vector_type): Rename to...
3450 (build_truth_vector_type_for): ...this. Make static and take
3451 a vector type as argument.
3452 (truth_type_for): Update accordingly.
3453 (build_same_sized_truth_vector_type): Delete.
3454 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3455 instead of build_same_sized_truth_vector_type.
3456 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3457 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3458 * tree-vect-patterns.c (build_mask_conversion): Likeise.
3459 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3460 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3461 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3462 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3463 (vectorizable_store, vectorizable_condition): Likewise.
3464 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3465 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3466 build_truth_vector_type.
3467 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3468 Use truth_type_for instead of build_same_sized_truth_vector_type.
3469 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3470
3471 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3472
3473 * tree.h (build_truth_vector_type_for_mode): Declare.
3474 * tree.c (build_truth_vector_type_for_mode): New function,
3475 split out from...
3476 (build_truth_vector_type): ...here.
3477 (build_opaque_vector_type): Fix head comment.
3478 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3479 vec_info parameter.
3480 (vect_halve_mask_nunits): Replace vec_info parameter with the
3481 mode of the new vector.
3482 (vect_double_mask_nunits): Likewise.
3483 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3484 (vect_double_mask_nunits): Likewise.
3485 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3486 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3487 to vect_halve_mask_nunits, getting the required mode from the unpack
3488 patterns.
3489 (vect_set_loop_condition_masked): Update call accordingly.
3490 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3491 parameter and update call to vect_double_mask_nunits.
3492 (vectorizable_conversion): Update call accordingly.
3493 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3494 (vectorizable_call): Update call accordingly.
3495 (supportable_widening_operation): Update call to
3496 vect_halve_mask_nunits.
3497 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3498 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3499
3500 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3501
3502 * machmode.h (mode_for_int_vector): Delete.
3503 (related_int_vector_mode): Declare.
3504 * stor-layout.c (mode_for_int_vector): Delete.
3505 (related_int_vector_mode): New function.
3506 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3507 instead of mode_for_int_vector.
3508 (expand_vec_perm_const): Likewise.
3509 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3510 (aarch64_evpc_sve_tbl): Likewise.
3511 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3512 (s390_expand_vcond): Likewise.
3513
3514 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3515
3516 * target.def (related_mode): New hook.
3517 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3518 * doc/tm.texi: Regenerate.
3519 * targhooks.h (default_vectorize_related_mode): Declare.
3520 * targhooks.c (default_vectorize_related_mode): New function.
3521 * machmode.h (related_vector_mode): Declare.
3522 * stor-layout.c (related_vector_mode): New function.
3523 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3524 * optabs-query.c (qimode_for_vec_perm): Likewise.
3525 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3526 (vectorizable_store, vectorizable_load): Likewise
3527
3528 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3529
3530 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3531 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3532 * config/arm/arm-c.c (arm_cpu_builtins): Define
3533 __GCC_ASM_FLAG_OUTPUTS__.
3534 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3535 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3536 Define __GCC_ASM_FLAG_OUTPUTS__.
3537 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3538 * doc/extend.texi (FlagOutputOperands): Add documentation
3539 for ARM and AArch64.
3540
3541 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3542 * config/arm/predicates.md (nz_comparison_operator): Rename
3543 from noov_comparison_operator.
3544 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3545 (arm_gen_dicompare_reg): Likewise.
3546 (maybe_get_arm_condition_code): Likewise.
3547 (thumb1_final_prescan_insn): Likewise.
3548 (arm_emit_coreregs_64bit_shift): Likewise.
3549 * config/arm/arm.md (addsi3_compare0): Likewise.
3550 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3551 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3552 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3553 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3554 (*mulsi3addsi_compare0_scratch): Likewise.
3555 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3556 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3557 (*zeroextractsi_compare0_scratch): Likewise.
3558 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3559 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3560 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3561 (andsi_not_shiftsi_si_scc): Likewise.
3562 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3563 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3564 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3565 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3566 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3567 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3568 (return_addr_mask, *check_arch2): Likewise.
3569 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3570 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3571 (compare_scc splitters): Likewise.
3572 (movcond_addsi): Likewise.
3573 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3574 (*thumb2_addsi3_compare0_scratch): Likewise.
3575 (*thumb2_mulsi_short_compare0): Likewise.
3576 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3577 (compare peephole2s): Likewise.
3578 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3579 nz_comparison_operator names.
3580 (cbranchsi4_insn): Likewise.
3581
3582 * config/arm/constraints.md (c): Use cc_register predicate.
3583
3584 * config/aarch64/constraints.md (c): New constraint.
3585
3586 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3587
3588 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3589 ipa_merge_fn_summary_after_inlining): Micro optimize.
3590
3591 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3592
3593 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3594
3595 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3596
3597 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3598 (ipa_value_range_from_jfunc): New function.
3599 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3600 known_value_ranges parameter; use it to evalulate conditions.
3601 (evaluate_properties_for_edge): Compute known value ranges.
3602 (ipa_fn_summary_t::duplicate): Update use of
3603 evaluate_conditions_for_known_args.
3604 (estimate_ipcp_clone_size_and_time): Likewise.
3605 (ipa_merge_fn_summary_after_inlining): Likewise.
3606 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3607
3608 2019-11-14 Martin Liska <mliska@suse.cz>
3609
3610 * ipa-inline.c (want_inline_small_function_p): Use
3611 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3612 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3613
3614 2019-11-14 Martin Liska <mliska@suse.cz>
3615
3616 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3617 of a callee to get value of the param.
3618 * ipa-inline.c (inline_insns_auto): Use proper
3619 opt_for_fn.
3620 * opts.c (maybe_default_option): Do not overwrite param
3621 value if optimization level does not match. Note that
3622 params usually have default value set via Init() keyword.
3623 * params.opt: Remove -param=max-inline-insns-auto-O2.
3624 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3625 * doc/invoke.texi: Remove documentation of
3626 max-inline-insns-auto-O2.
3627
3628 2019-11-14 Martin Liska <mliska@suse.cz>
3629
3630 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3631 Do not initialize m_other_count.
3632 (switch_conversion::collect): Do not count m_default_count and
3633 m_other_count as we use frequencies for edges.
3634 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3635
3636 2019-11-14 Martin Liska <mliska@suse.cz>
3637
3638 PR other/92329
3639 * doc/invoke.texi: Document -fallocation-dce.
3640
3641 2019-11-14 Martin Liska <mliska@suse.cz>
3642
3643 PR target/92389
3644 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3645 PTA_ICELAKE_CLIENT which is later interited by
3646 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3647
3648 2019-11-14 Martin Liska <mliska@suse.cz>
3649
3650 * ipa-icf.c (sem_item_optimizer::execute): Save
3651 loaded_symbols.
3652 (sem_item_optimizer::parse_nonsingleton_classes):
3653 Return number of loaded symbols.
3654 (sem_item_optimizer::merge_classes): Print
3655 statistics about totally needed symbols.
3656 * ipa-icf.h (parse_nonsingleton_classes): Change return
3657 type.
3658 (merge_classes): Add one argument.
3659
3660 2019-11-14 Martin Liska <mliska@suse.cz>
3661
3662 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3663 func_checker::hash_operand by handling of FIELD_DECLs.
3664
3665 2019-11-14 Martin Liska <mliska@suse.cz>
3666
3667 * ipa-icf-gimple.h (func_checker::func_checker): Add
3668 default constructor.
3669 * ipa-icf.c (sem_function::init): Make operand_equal_p
3670 and hash_operand public.
3671 (sem_item::add_expr): Remove.
3672 (sem_item::add_type): Remove.
3673 (sem_function::hash_stmt): Use m_checker for hashing
3674 of GIMPLE statements.
3675 (sem_function::parse): Init with checker.
3676 (sem_variable::parse): Pass NULL as checker.
3677 (sem_item_optimizer::parse_funcs_and_vars):
3678 Pass checker to ::parse function.
3679 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3680 (sem_variable::parse): New function.
3681 (sem_variable::get_hash): Only return computed hash value.
3682 (sem_variable::init): Initialize hash of a variable.
3683 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3684 to couple of functions as a new argument.
3685
3686 2019-11-14 Martin Liska <mliska@suse.cz>
3687
3688 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3689 bail out reason.
3690 (func_checker::compare_gimple_assign): Likewise.
3691
3692 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3693
3694 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3695 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3696 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3697
3698 * omp-general.c (omp_context_name_list_prop): New function.
3699 (omp_context_selector_matches): Use it. Return 0 if it returns
3700 NULL.
3701 (omp_context_selector_props_compare): Allow equivalency of an
3702 identifier and a string literal containing no embedded zeros.
3703
3704 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3705
3706 * range-op.cc (RANGE3): Remove.
3707 (range_tests): Remove all selftest that check for multi-ranges.
3708 Put tests in namespace selftest.
3709 * selftest.h: Move range_tests into namespace selftest.
3710 * value-range.h (class value_range): Unfriend range_tests.
3711
3712 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3713
3714 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3715 normalize_symbolics and normalize_addresses working in place.
3716 (range_fold_unary_symbolics_p): Same.
3717 (range_fold_unary_symbolics_p): Same.
3718 * value-range.cc (num_pairs): Same.
3719 (lower_bound): Same.
3720 (upper_bound): Same.
3721 (contains_p): Same.
3722 (normalize_addresses): Same.
3723 (normalize_symbolics): Same.
3724 * value-range.h (normalize_symbolics): Same.
3725 (normalize_addresses): Same.
3726
3727 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3728
3729 PR ipa/91682
3730 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3731 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3732 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3733 (ipa_agg_jump_function): Remove member function equal_to.
3734 (ipa_agg_jump_function_p): Remove typedef.
3735 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3736 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3737 information for aggregate jump function.
3738 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3739 record last definition statement.
3740 (load_from_unmodified_param_or_agg): New function.
3741 (ipa_known_agg_contents_list): Add new field type and value, remove
3742 field constant.
3743 (build_agg_jump_func_from_list): Rename parameter const_count to
3744 value_count, build aggregate jump function from ipa_load_agg_data.
3745 (analyze_agg_content_value): New function.
3746 (extract_mem_content): Analyze memory store assignment to prepare
3747 information for aggregate jump function generation.
3748 (determine_known_aggregate_parts): Add new parameter fbi, remove
3749 parameter aa_walk_budeget_p.
3750 (update_jump_functions_after_inlining): Update aggregate jump function.
3751 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3752 (try_make_edge_direct_simple_call): Add new parameter new_root.
3753 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3754 new_root_info.
3755 (update_indirect_edges_after_inlining): Pass new argument to
3756 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3757 (ipa_write_jump_function): Write aggregate jump function to file.
3758 (ipa_read_jump_function): Read aggregate jump function from file.
3759 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3760 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3761 (ipa_agg_value_from_node): Likewise.
3762 (ipa_agg_value_set_from_jfunc): Likewise.
3763 (propagate_vals_across_arith_jfunc): Likewise.
3764 (propagate_aggregate_lattice): Likewise.
3765 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3766 (propagate_vals_across_pass_through): Call
3767 propagate_vals_across_arith_jfunc.
3768 (get_clone_agg_value): Move forward.
3769 (propagate_aggs_across_jump_function): Handle value propagation for
3770 aggregate jump function.
3771 (agg_jmp_p_vec_for_t_vec): Remove.
3772 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3773 with vec<ipa_agg_value>.
3774 (copy_plats_to_inter, intersect_with_plats): Likewise.
3775 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3776 (intersect_aggregate_with_edge): Likewise.
3777 (find_aggregate_values_for_callers_subset): Likewise.
3778 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3779 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3780 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3781 (gather_context_independent_values): Likewise.
3782 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3783 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3784 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3785 (evaluate_properties_for_edge): Likewise.
3786 (estimate_edge_devirt_benefit): Likewise.
3787 (estimate_edge_size_and_time): Likewise.
3788 (estimate_calls_size_and_time): Likewise.
3789 (ipa_call_context::ipa_call_context): Likewise.
3790 (estimate_ipcp_clone_size_and_time): Likewise.
3791 * ipa-fnsummary.h (ipa_call_context): Replace
3792 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3793 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3794 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3795 (do_estimate_edge_size): Likewise.
3796 (do_estimate_edge_hints): Likewise.
3797
3798 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3799
3800 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3801 binary operations.
3802
3803 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3804
3805 * ipa-profile.c (check_argument_count): Check properly that e_info
3806 is non-NULL; do not check descriptors.
3807
3808 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3809
3810 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3811 check for ipa profiles.
3812
3813 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3814
3815 PR c++/92421
3816 * ipa-prop.c (update_indirect_edges_after_inlining):
3817 Mark parameter as used.
3818 * ipa-inline.c (recursive_inlining): Reset node cache
3819 after inlining.
3820 (inline_small_functions): Remove checking ifdef.
3821 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3822 cache consistency.
3823
3824 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3825
3826 PR ipa/92498
3827 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3828 is NULL.
3829 (ipa_profile): Fix reversed test.
3830
3831 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3832
3833 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3834 (propagate_constants_topo): Fix typo.
3835
3836 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3837
3838 * Makefile.in (OBJS): Add value-range.o.
3839 (GTFILES): Add value-range.h.
3840 * gengtype.c (open_base_files): Add value-range.h to list of
3841 header files.
3842 * tree-vrp.c: Move the following value_range related functions:
3843 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3844 constant_p, set_undefined, set_varying, may_contain_p,
3845 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3846 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3847 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3848 value_inside_range, ranges_from_anti_range, union_ranges,
3849 intersect_ranges, intersect_helper, union_helper, union_,
3850 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3851 upper_bound, contains_p, invert, intersect...
3852 * value-range.cc: ...to here.
3853 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3854 associated inline methods from here...
3855 * value-range.h: ...to here.
3856
3857 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3858
3859 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3860 instead of asserting its value.
3861
3862 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3863
3864 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3865 constructors and set methods so value_range_kind is the last
3866 argument and defaults to VR_RANGE.
3867 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3868 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3869 * ipa-prop.c (ipa_get_value_range): Same.
3870 (ipa_compute_jump_functions_for_edge): Same.
3871 * range-op.cc (value_range_from_overflowed_bounds): Same.
3872 (operator_cast::op1_range): Same.
3873 (range_tests): Same.
3874 * range.cc (range_nonzero): Same.
3875 * tree-ssanames.c (get_range_info): Same.
3876 * tree-vrp.c (value_range_equiv::set): Same.
3877 (value_range::value_range): Same.
3878 (value_range_equiv::value_range_equiv): Same.
3879 (value_range_equiv::update): Same.
3880 (value_range_equiv::deep_copy): Same.
3881 (value_range_equiv::move): Same.
3882 (value_range_equiv::set_undefined): Same.
3883 (value_range::set): Same.
3884 (value_range::set_nonzero): Same.
3885 (ranges_from_anti_range): Same.
3886 (extract_range_from_plus_minus_expr): Same.
3887 (value_range::intersect_helper): Same.
3888 (value_range_equiv::intersect): Same.
3889 (value_range::union_helper): Same.
3890 (value_range_equiv::union_): Same.
3891 (value_range::normalize_symbolics): Same.
3892 (value_range::invert): Same.
3893 (determine_value_range_1): Same.
3894 * tree-vrp.h (class value_range): Same.
3895 (class value_range_equiv): Same.
3896 * vr-values.c (set_value_range_to_nonnegative): Same.
3897 (set_value_range_to_truthvalue): Same.
3898 (vr_values::update_value_range): Same.
3899 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3900 (vr_values::extract_range_from_binary_expr): Same.
3901 (vr_values::extract_range_from_comparison): Same.
3902 (vr_values::extract_range_basic): Same.
3903 (vr_values::adjust_range_with_scev): Same.
3904 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3905 (vr_values::extract_range_from_phi_node): Same.
3906
3907 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3908
3909 * tree-dump.c (dequeue_and_dump): Print first tree operand
3910 for VIEW_CONVERT_EXPR.
3911
3912 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3913
3914 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3915 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3916 * real.c (get_max_float): Add norm_max argument.
3917 * real.h (get_max_float): Update prototype.
3918 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3919 get_max_float.
3920
3921 2019-11-13 Martin Liska <mliska@suse.cz>
3922
3923 * dbgcnt.c (test_sorted_dbg_counters): New.
3924 (dbgcnt_c_tests): Likewise.
3925 * selftest-run-tests.c (selftest::run_tests): Likewise.
3926 * selftest.h (dbgcnt_c_tests): Likewise.
3927
3928 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3929 Martin Jambor <mjambor@suse.cz>
3930
3931 PR ipa/92454
3932 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3933 (identify_dead_nodes): Likewise.
3934
3935 2019-11-13 Martin Liska <mliska@suse.cz>
3936
3937 * ipa-icf.c (sem_function::equals_private): Do not overuse
3938 push/pop_cfun functions.
3939
3940 2019-11-13 Martin Liska <mliska@suse.cz>
3941
3942 * common.opt: Document change of -fdbg-cnt option.
3943 * dbgcnt.c (DEBUG_COUNTER): Remove.
3944 (dbg_cnt_is_enabled): Remove.
3945 (dbg_cnt): Work with new intervals.
3946 (dbg_cnt_set_limit_by_index): Set to new
3947 list of intervals.
3948 (dbg_cnt_set_limit_by_name): Likewise.
3949 (dbg_cnt_process_single_pair): Process new format.
3950 (dbg_cnt_process_opt): Likewise.
3951 (dbg_cnt_list_all_counters): Likewise.
3952 * doc/invoke.texi: Document change of -fdbg-cnt option.
3953 (cmp_tuples): New.
3954
3955 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3956
3957 * ipa-inline.c (ipa_inline): Check that function is defined before
3958 flattening.
3959
3960 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3961 Julian Brown <julian@codesourcery.com>
3962
3963 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3964 flag_worker_partitioning is not set.
3965 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3966 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3967
3968 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3969
3970 * config/gcn/gcn-run.c (heap_region): New global variable.
3971 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3972 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3973 (get_kernarg_region): Move contents to ....
3974 (get_memory_region): .... here.
3975 (get_heap_region): New function.
3976 (init_device): Initialize the heap_region.
3977 (device_malloc): Add region parameter.
3978 (struct kernargs): Move heap ....
3979 (heap): ... to global scope.
3980 (main): Allocate heap separate to kernargs.
3981
3982 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3983
3984 * ipa-prop.c (ipa_print_node_jump_functions,
3985 ipa_print_node_params): Print info about missing summaries.
3986
3987 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3988
3989 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3990 the cost of generating loop masks.
3991
3992 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3993
3994 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3995 New function.
3996 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3997 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3998 (vect_transform_loop): Likewise.
3999 (vect_analyze_loop_costing): Don't take the cost of versioning
4000 into account for the static profitability threshold if it turns
4001 out that no versioning is needed.
4002
4003 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4004
4005 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
4006 and target_option_default_node to get -fprofile-generate ctors working
4007 right with LTO.
4008
4009 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4010
4011 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
4012 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
4013 (vectorizable_assignment): Don't add a cost for nop conversions.
4014 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
4015 Likewise.
4016 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
4017
4018 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4019
4020 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
4021 number of ncopies as an additional argument.
4022 (vectorizable_conversion): Update call accordingly. Use "modifier"
4023 to check whether a conversion is between vectors with the same
4024 numbers of units.
4025
4026 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4027
4028 * config/aarch64/aarch64-sve-builtins-functions.h
4029 (unary_count::expand): Use aarch64_sve_int_mode instead of
4030 mode_for_int_vector.
4031
4032 2019-11-13 Martin Liska <mliska@suse.cz>
4033
4034 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
4035
4036 2019-11-13 Martin Liska <mliska@suse.cz>
4037
4038 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4039 Remove call to finalize_options_struct.
4040
4041 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
4042
4043 PR target/92055
4044 * config/avr/t-avr (avr-mcus): Do not depend on
4045 $(srcdir)/config/avr/t-multilib.
4046
4047 2019-11-13 Richard Biener <rguenther@suse.de>
4048
4049 PR tree-optimization/92473
4050 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
4051 direct optab reduction in the correct type.
4052
4053 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4054
4055 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
4056 hexadecimal literal.
4057
4058 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4059
4060 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
4061 UNORDERED if !HONOR_NANS (DFmode).
4062 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
4063 if !HONOR_NANS (<MODE>mode).
4064
4065 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4066
4067 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
4068 (ipcp_verify_propagated_values): Likewise.
4069 (propagate_constants_across_call): Likewise.
4070 (propagate_constants_topo): Likewise.
4071 (ipcp_propagate_stage): Likewise.
4072
4073 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4074
4075 PR ipa/92471
4076 * ipa-profile.c (check_argument_count): Break out from ...;
4077 watch for missing summaries.
4078 (ipa_profile): Here.
4079
4080 2019-11-12 Martin Sebor <msebor@redhat.com>
4081
4082 PR tree-optimization/92412
4083 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
4084 extern variables.
4085
4086 2019-11-12 Martin Sebor <msebor@redhat.com>
4087
4088 PR middle-end/83688
4089 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
4090 (directive::argno): New member.
4091 (format_result::aliases, format_result::alias_count): New data members.
4092 (format_result::append_alias): New member function.
4093 (fmtresult::dst_offset): New data member.
4094 (pass_sprintf_length::call_info::dst_origin): New data member.
4095 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
4096 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
4097 (get_origin_and_offset): Same.
4098 (format_string): Call it.
4099 (format_directive): Call append_alias and set directive argument
4100 number.
4101 (maybe_warn_overlap): New function.
4102 (pass_sprintf_length::compute_format_length): Call it.
4103 (pass_sprintf_length::handle_gimple_call): Initialize new members.
4104 * tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
4105
4106 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
4107
4108 PR rtl-optimization/92430
4109 * cfgcleanup.c (pass_jump_after_combine::execute): Free
4110 dominance info at the beginning.
4111
4112 2019-11-12 Richard Biener <rguenther@suse.de>
4113
4114 PR tree-optimization/92460
4115 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
4116 expression before gimplifying.
4117
4118 2019-11-12 Richard Biener <rguenther@suse.de>
4119
4120 PR tree-optimization/92461
4121 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
4122 stmt after propagation.
4123
4124 2019-11-12 Martin Liska <mliska@suse.cz>
4125
4126 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
4127 Use SET_OPTION_IF_UNSET.
4128 (ix86_option_override_internal): Likewise.
4129 * opts.c (default_options_optimization): Likewise.
4130 (finish_options): Likewise.
4131 (enable_fdo_optimizations): Likewise.
4132 (common_handle_option): Likewise.
4133
4134 2019-11-12 Martin Liska <mliska@suse.cz>
4135
4136 * common/common-target.def: Remove option_validate_param and
4137 option_default_params.
4138 * common/common-targhooks.c (default_option_validate_param):
4139 Remove.
4140 * common/common-targhooks.h (default_option_validate_param):
4141 Remove.
4142 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
4143 Remove usage of this.
4144 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
4145 (aarch64_option_validate_param): Likewise.
4146 (aarch64_option_default_params): Likewise
4147 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
4148 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4149 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4150 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4151 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4152 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4153 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4154 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4155 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4156 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4157 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
4158 guard_size here.
4159 * doc/tm.texi: Remove option_default_params and option_validate_param.
4160 * doc/tm.texi.in: Likewise.
4161
4162 2019-11-12 Martin Liska <mliska@suse.cz>
4163
4164 * common/common-target.def:
4165 Do not mention set_default_param_value
4166 and set_param_value.
4167 * doc/tm.texi: Likewise.
4168
4169 2019-11-12 Martin Liska <mliska@suse.cz>
4170
4171 * common.opt: Remove param_values.
4172 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
4173 Remove finalize_options_struct.
4174 * gcc.c (driver::decode_argv): Do not call global_init_params
4175 and finish_params.
4176 (driver::finalize): Do not call params_c_finalize
4177 and finalize_options_struct.
4178 * opt-suggestions.c (option_proposer::get_completions): Remove
4179 special casing of params.
4180 (option_proposer::find_param_completions): Remove.
4181 (test_completion_partial_match): Update expected output.
4182 * opt-suggestions.h: Remove find_param_completions.
4183 * opts-common.c (add_misspelling_candidates): Add
4184 --param with a space.
4185 * opts.c (handle_param): Remove.
4186 (init_options_struct):. Remove init_options_struct and
4187 similar calls.
4188 (finalize_options_struct): Remove.
4189 (common_handle_option): Use SET_OPTION_IF_UNSET.
4190 * opts.h (finalize_options_struct): Remove.
4191 * toplev.c (general_init): Do not call global_init_params.
4192 (toplev::finalize): Do not call params_c_finalize and
4193 finalize_options_struct.
4194
4195 2019-11-12 Martin Liska <mliska@suse.cz>
4196
4197 * Makefile.in: Remove PARAMS_H and params.list
4198 and params.options.
4199 * params-enum.h: Remove.
4200 * params-list.h: Remove.
4201 * params-options.h: Remove.
4202 * params.c: Remove.
4203 * params.def: Remove.
4204 * params.h: Remove.
4205 * asan.c: Do not include params.h.
4206 * auto-profile.c: Likewise.
4207 * bb-reorder.c: Likewise.
4208 * builtins.c: Likewise.
4209 * cfgcleanup.c: Likewise.
4210 * cfgexpand.c: Likewise.
4211 * cfgloopanal.c: Likewise.
4212 * cgraph.c: Likewise.
4213 * combine.c: Likewise.
4214 * common/config/aarch64/aarch64-common.c: Likewise.
4215 * common/config/gcn/gcn-common.c: Likewise.
4216 * common/config/ia64/ia64-common.c: Likewise.
4217 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
4218 * common/config/rs6000/rs6000-common.c: Likewise.
4219 * common/config/sh/sh-common.c: Likewise.
4220 * config/aarch64/aarch64.c: Likewise.
4221 * config/alpha/alpha.c: Likewise.
4222 * config/arm/arm.c: Likewise.
4223 * config/avr/avr.c: Likewise.
4224 * config/csky/csky.c: Likewise.
4225 * config/i386/i386-builtins.c: Likewise.
4226 * config/i386/i386-expand.c: Likewise.
4227 * config/i386/i386-features.c: Likewise.
4228 * config/i386/i386-options.c: Likewise.
4229 * config/i386/i386.c: Likewise.
4230 * config/ia64/ia64.c: Likewise.
4231 * config/rs6000/rs6000-logue.c: Likewise.
4232 * config/rs6000/rs6000.c: Likewise.
4233 * config/s390/s390.c: Likewise.
4234 * config/sparc/sparc.c: Likewise.
4235 * config/visium/visium.c: Likewise.
4236 * coverage.c: Likewise.
4237 * cprop.c: Likewise.
4238 * cse.c: Likewise.
4239 * cselib.c: Likewise.
4240 * dse.c: Likewise.
4241 * emit-rtl.c: Likewise.
4242 * explow.c: Likewise.
4243 * final.c: Likewise.
4244 * fold-const.c: Likewise.
4245 * gcc.c: Likewise.
4246 * gcse.c: Likewise.
4247 * ggc-common.c: Likewise.
4248 * ggc-page.c: Likewise.
4249 * gimple-loop-interchange.cc: Likewise.
4250 * gimple-loop-jam.c: Likewise.
4251 * gimple-loop-versioning.cc: Likewise.
4252 * gimple-ssa-split-paths.c: Likewise.
4253 * gimple-ssa-sprintf.c: Likewise.
4254 * gimple-ssa-store-merging.c: Likewise.
4255 * gimple-ssa-strength-reduction.c: Likewise.
4256 * gimple-ssa-warn-alloca.c: Likewise.
4257 * gimple-ssa-warn-restrict.c: Likewise.
4258 * graphite-isl-ast-to-gimple.c: Likewise.
4259 * graphite-optimize-isl.c: Likewise.
4260 * graphite-scop-detection.c: Likewise.
4261 * graphite-sese-to-poly.c: Likewise.
4262 * graphite.c: Likewise.
4263 * haifa-sched.c: Likewise.
4264 * hsa-gen.c: Likewise.
4265 * ifcvt.c: Likewise.
4266 * ipa-cp.c: Likewise.
4267 * ipa-fnsummary.c: Likewise.
4268 * ipa-inline-analysis.c: Likewise.
4269 * ipa-inline.c: Likewise.
4270 * ipa-polymorphic-call.c: Likewise.
4271 * ipa-profile.c: Likewise.
4272 * ipa-prop.c: Likewise.
4273 * ipa-split.c: Likewise.
4274 * ipa-sra.c: Likewise.
4275 * ira-build.c: Likewise.
4276 * ira-conflicts.c: Likewise.
4277 * loop-doloop.c: Likewise.
4278 * loop-invariant.c: Likewise.
4279 * loop-unroll.c: Likewise.
4280 * lra-assigns.c: Likewise.
4281 * lra-constraints.c: Likewise.
4282 * modulo-sched.c: Likewise.
4283 * opt-suggestions.c: Likewise.
4284 * opts.c: Likewise.
4285 * postreload-gcse.c: Likewise.
4286 * predict.c: Likewise.
4287 * reload.c: Likewise.
4288 * reorg.c: Likewise.
4289 * resource.c: Likewise.
4290 * sanopt.c: Likewise.
4291 * sched-deps.c: Likewise.
4292 * sched-ebb.c: Likewise.
4293 * sched-rgn.c: Likewise.
4294 * sel-sched-ir.c: Likewise.
4295 * sel-sched.c: Likewise.
4296 * shrink-wrap.c: Likewise.
4297 * stmt.c: Likewise.
4298 * targhooks.c: Likewise.
4299 * toplev.c: Likewise.
4300 * tracer.c: Likewise.
4301 * trans-mem.c: Likewise.
4302 * tree-chrec.c: Likewise.
4303 * tree-data-ref.c: Likewise.
4304 * tree-if-conv.c: Likewise.
4305 * tree-inline.c: Likewise.
4306 * tree-loop-distribution.c: Likewise.
4307 * tree-parloops.c: Likewise.
4308 * tree-predcom.c: Likewise.
4309 * tree-profile.c: Likewise.
4310 * tree-scalar-evolution.c: Likewise.
4311 * tree-sra.c: Likewise.
4312 * tree-ssa-ccp.c: Likewise.
4313 * tree-ssa-dom.c: Likewise.
4314 * tree-ssa-dse.c: Likewise.
4315 * tree-ssa-ifcombine.c: Likewise.
4316 * tree-ssa-loop-ch.c: Likewise.
4317 * tree-ssa-loop-im.c: Likewise.
4318 * tree-ssa-loop-ivcanon.c: Likewise.
4319 * tree-ssa-loop-ivopts.c: Likewise.
4320 * tree-ssa-loop-manip.c: Likewise.
4321 * tree-ssa-loop-niter.c: Likewise.
4322 * tree-ssa-loop-prefetch.c: Likewise.
4323 * tree-ssa-loop-unswitch.c: Likewise.
4324 * tree-ssa-math-opts.c: Likewise.
4325 * tree-ssa-phiopt.c: Likewise.
4326 * tree-ssa-pre.c: Likewise.
4327 * tree-ssa-reassoc.c: Likewise.
4328 * tree-ssa-sccvn.c: Likewise.
4329 * tree-ssa-scopedtables.c: Likewise.
4330 * tree-ssa-sink.c: Likewise.
4331 * tree-ssa-strlen.c: Likewise.
4332 * tree-ssa-structalias.c: Likewise.
4333 * tree-ssa-tail-merge.c: Likewise.
4334 * tree-ssa-threadbackward.c: Likewise.
4335 * tree-ssa-threadedge.c: Likewise.
4336 * tree-ssa-uninit.c: Likewise.
4337 * tree-switch-conversion.c: Likewise.
4338 * tree-vect-data-refs.c: Likewise.
4339 * tree-vect-loop.c: Likewise.
4340 * tree-vect-slp.c: Likewise.
4341 * tree-vrp.c: Likewise.
4342 * tree.c: Likewise.
4343 * value-prof.c: Likewise.
4344 * var-tracking.c: Likewise.
4345
4346 2019-11-12 Martin Liska <mliska@suse.cz>
4347
4348 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
4349 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
4350 macro.
4351 (asan_sanitize_allocas_p): Likewise.
4352 (asan_emit_stack_protection): Likewise.
4353 (asan_protect_global): Likewise.
4354 (instrument_derefs): Likewise.
4355 (instrument_builtin_call): Likewise.
4356 (asan_expand_mark_ifn): Likewise.
4357 * auto-profile.c (auto_profile): Likewise.
4358 * bb-reorder.c (copy_bb_p): Likewise.
4359 (duplicate_computed_gotos): Likewise.
4360 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
4361 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
4362 (try_crossjump_bb): Likewise.
4363 * cfgexpand.c (defer_stack_allocation): Likewise.
4364 (stack_protect_classify_type): Likewise.
4365 (pass_expand::execute): Likewise.
4366 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4367 (estimate_reg_pressure_cost): Likewise.
4368 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
4369 * combine.c (combine_instructions): Likewise.
4370 (record_value_for_reg): Likewise.
4371 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
4372 (aarch64_option_default_params): Likewise.
4373 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4374 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4375 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4376 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4377 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
4378 (aarch64_allocate_and_probe_stack_space): Likewise.
4379 (aarch64_expand_epilogue): Likewise.
4380 (aarch64_override_options_internal): Likewise.
4381 * config/alpha/alpha.c (alpha_option_override): Likewise.
4382 * config/arm/arm.c (arm_option_override): Likewise.
4383 (arm_valid_target_attribute_p): Likewise.
4384 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4385 * config/i386/i386.c (get_probe_interval): Likewise.
4386 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4387 (ix86_max_noce_ifcvt_seq_cost): Likewise.
4388 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4389 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4390 (get_stack_clash_protection_guard_size): Likewise.
4391 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4392 * config/s390/s390.c (allocate_stack_space): Likewise.
4393 (s390_emit_prologue): Likewise.
4394 (s390_option_override_internal): Likewise.
4395 * config/sparc/sparc.c (sparc_option_override): Likewise.
4396 * config/visium/visium.c (visium_option_override): Likewise.
4397 * coverage.c (get_coverage_counts): Likewise.
4398 (coverage_compute_profile_id): Likewise.
4399 (coverage_begin_function): Likewise.
4400 (coverage_end_function): Likewise.
4401 * cse.c (cse_find_path): Likewise.
4402 (cse_extended_basic_block): Likewise.
4403 (cse_main): Likewise.
4404 * cselib.c (cselib_invalidate_mem): Likewise.
4405 * dse.c (dse_step1): Likewise.
4406 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4407 (get_max_insn_count): Likewise.
4408 (make_debug_insn_raw): Likewise.
4409 (init_emit): Likewise.
4410 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4411 * final.c (compute_alignments): Likewise.
4412 * fold-const.c (fold_range_test): Likewise.
4413 (fold_truth_andor): Likewise.
4414 (tree_single_nonnegative_warnv_p): Likewise.
4415 (integer_valued_real_single_p): Likewise.
4416 * gcse.c (want_to_gcse_p): Likewise.
4417 (prune_insertions_deletions): Likewise.
4418 (hoist_code): Likewise.
4419 (gcse_or_cprop_is_too_expensive): Likewise.
4420 * ggc-common.c: Likewise.
4421 * ggc-page.c (ggc_collect): Likewise.
4422 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4423 (MAX_DATAREFS): Likewise.
4424 (OUTER_STRIDE_RATIO): Likewise.
4425 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4426 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4427 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4428 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4429 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4430 (imm_store_chain_info::output_merged_store): Likewise.
4431 (pass_store_merging::process_store): Likewise.
4432 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4433 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4434 (scop_to_isl_ast): Likewise.
4435 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4436 (optimize_isl): Likewise.
4437 * graphite-scop-detection.c (build_scops): Likewise.
4438 * haifa-sched.c (set_modulo_params): Likewise.
4439 (rank_for_schedule): Likewise.
4440 (model_add_to_worklist): Likewise.
4441 (model_promote_insn): Likewise.
4442 (model_choose_insn): Likewise.
4443 (queue_to_ready): Likewise.
4444 (autopref_multipass_dfa_lookahead_guard): Likewise.
4445 (schedule_block): Likewise.
4446 (sched_init): Likewise.
4447 * hsa-gen.c (init_prologue): Likewise.
4448 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4449 (cond_move_process_if_block): Likewise.
4450 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4451 (merge_agg_lats_step): Likewise.
4452 (devirtualization_time_bonus): Likewise.
4453 (hint_time_bonus): Likewise.
4454 (incorporate_penalties): Likewise.
4455 (good_cloning_opportunity_p): Likewise.
4456 (ipcp_propagate_stage): Likewise.
4457 * ipa-fnsummary.c (decompose_param_expr): Likewise.
4458 (set_switch_stmt_execution_predicate): Likewise.
4459 (analyze_function_body): Likewise.
4460 (compute_fn_summary): Likewise.
4461 * ipa-inline-analysis.c (estimate_growth): Likewise.
4462 * ipa-inline.c (caller_growth_limits): Likewise.
4463 (inline_insns_single): Likewise.
4464 (inline_insns_auto): Likewise.
4465 (can_inline_edge_by_limits_p): Likewise.
4466 (want_early_inline_function_p): Likewise.
4467 (big_speedup_p): Likewise.
4468 (want_inline_small_function_p): Likewise.
4469 (want_inline_self_recursive_call_p): Likewise.
4470 (edge_badness): Likewise.
4471 (recursive_inlining): Likewise.
4472 (compute_max_insns): Likewise.
4473 (early_inliner): Likewise.
4474 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4475 * ipa-profile.c (ipa_profile): Likewise.
4476 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4477 (ipa_analyze_node): Likewise.
4478 (ipcp_transform_function): Likewise.
4479 * ipa-split.c (consider_split): Likewise.
4480 * ipa-sra.c (allocate_access): Likewise.
4481 (process_scan_results): Likewise.
4482 (ipa_sra_summarize_function): Likewise.
4483 (pull_accesses_from_callee): Likewise.
4484 * ira-build.c (loop_compare_func): Likewise.
4485 (mark_loops_for_removal): Likewise.
4486 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4487 * loop-doloop.c (doloop_optimize): Likewise.
4488 * loop-invariant.c (gain_for_invariant): Likewise.
4489 (move_loop_invariants): Likewise.
4490 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4491 (decide_unroll_runtime_iterations): Likewise.
4492 (decide_unroll_stupid): Likewise.
4493 (expand_var_during_unrolling): Likewise.
4494 * lra-assigns.c (spill_for): Likewise.
4495 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4496 * modulo-sched.c (sms_schedule): Likewise.
4497 (DFA_HISTORY): Likewise.
4498 * opts.c (default_options_optimization): Likewise.
4499 (finish_options): Likewise.
4500 (common_handle_option): Likewise.
4501 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4502 (if): Likewise.
4503 * predict.c (get_hot_bb_threshold): Likewise.
4504 (maybe_hot_count_p): Likewise.
4505 (probably_never_executed): Likewise.
4506 (predictable_edge_p): Likewise.
4507 (predict_loops): Likewise.
4508 (expr_expected_value_1): Likewise.
4509 (tree_predict_by_opcode): Likewise.
4510 (handle_missing_profiles): Likewise.
4511 * reload.c (find_equiv_reg): Likewise.
4512 * reorg.c (redundant_insn): Likewise.
4513 * resource.c (mark_target_live_regs): Likewise.
4514 (incr_ticks_for_insn): Likewise.
4515 * sanopt.c (pass_sanopt::execute): Likewise.
4516 * sched-deps.c (sched_analyze_1): Likewise.
4517 (sched_analyze_2): Likewise.
4518 (sched_analyze_insn): Likewise.
4519 (deps_analyze_insn): Likewise.
4520 * sched-ebb.c (schedule_ebbs): Likewise.
4521 * sched-rgn.c (find_single_block_region): Likewise.
4522 (too_large): Likewise.
4523 (haifa_find_rgns): Likewise.
4524 (extend_rgns): Likewise.
4525 (new_ready): Likewise.
4526 (schedule_region): Likewise.
4527 (sched_rgn_init): Likewise.
4528 * sel-sched-ir.c (make_region_from_loop): Likewise.
4529 * sel-sched-ir.h (MAX_WS): Likewise.
4530 * sel-sched.c (process_pipelined_exprs): Likewise.
4531 (sel_setup_region_sched_flags): Likewise.
4532 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4533 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4534 * toplev.c (print_version): Likewise.
4535 (process_options): Likewise.
4536 * tracer.c (tail_duplicate): Likewise.
4537 * trans-mem.c (tm_log_add): Likewise.
4538 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4539 * tree-data-ref.c (split_constant_offset): Likewise.
4540 (compute_all_dependences): Likewise.
4541 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4542 * tree-inline.c (remap_gimple_stmt): Likewise.
4543 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4544 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4545 (create_parallel_loop): Likewise.
4546 * tree-predcom.c (determine_unroll_factor): Likewise.
4547 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4548 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4549 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4550 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4551 (dse_optimize_redundant_stores): Likewise.
4552 (dse_classify_store): Likewise.
4553 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4554 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4555 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4556 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4557 (try_peel_loop): Likewise.
4558 (tree_unroll_loops_completely): Likewise.
4559 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4560 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4561 (MAX_CONSIDERED_GROUPS): Likewise.
4562 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4563 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4564 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4565 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4566 (L1_CACHE_SIZE_BYTES): Likewise.
4567 (L2_CACHE_SIZE_BYTES): Likewise.
4568 (should_issue_prefetch_p): Likewise.
4569 (schedule_prefetches): Likewise.
4570 (determine_unroll_factor): Likewise.
4571 (volume_of_references): Likewise.
4572 (add_subscript_strides): Likewise.
4573 (self_reuse_distance): Likewise.
4574 (mem_ref_count_reasonable_p): Likewise.
4575 (insn_to_prefetch_ratio_too_small_p): Likewise.
4576 (loop_prefetch_arrays): Likewise.
4577 (tree_ssa_prefetch_arrays): Likewise.
4578 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4579 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4580 (convert_mult_to_fma): Likewise.
4581 (math_opts_dom_walker::after_dom_children): Likewise.
4582 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4583 (hoist_adjacent_loads): Likewise.
4584 (gate_hoist_loads): Likewise.
4585 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4586 (compute_partial_antic_aux): Likewise.
4587 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4588 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4589 (vn_reference_lookup): Likewise.
4590 (do_rpo_vn): Likewise.
4591 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4592 * tree-ssa-sink.c (select_best_block): Likewise.
4593 * tree-ssa-strlen.c (new_stridx): Likewise.
4594 (new_addr_stridx): Likewise.
4595 (get_range_strlen_dynamic): Likewise.
4596 (class ssa_name_limit_t): Likewise.
4597 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4598 (create_variable_info_for_1): Likewise.
4599 (init_alias_vars): Likewise.
4600 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4601 (tail_merge_optimize): Likewise.
4602 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4603 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4604 (thread_jumps::find_jump_threads_backwards): Likewise.
4605 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4606 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4607 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4608 (jump_table_cluster::can_be_handled): Likewise.
4609 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4610 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4611 (param_switch_conversion_branch_ratio): Likewise.
4612 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4613 (vect_enhance_data_refs_alignment): Likewise.
4614 (vect_prune_runtime_alias_test_list): Likewise.
4615 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4616 (vect_get_datarefs_in_loop): Likewise.
4617 (vect_analyze_loop): Likewise.
4618 * tree-vect-slp.c (vect_slp_bb): Likewise.
4619 * tree-vectorizer.h: Likewise.
4620 * tree-vrp.c (find_switch_asserts): Likewise.
4621 (vrp_prop::check_mem_ref): Likewise.
4622 * tree.c (wide_int_to_tree_1): Likewise.
4623 (cache_integer_cst): Likewise.
4624 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4625 (reverse_op): Likewise.
4626 (vt_find_locations): Likewise.
4627
4628 2019-11-12 Martin Liska <mliska@suse.cz>
4629
4630 * Makefile.in: Include params.opt.
4631 * flag-types.h (enum parloops_schedule_type): Add
4632 parloops_schedule_type used in params.opt.
4633 * params.opt: New file.
4634
4635 2019-11-12 Martin Liska <mliska@suse.cz>
4636
4637 * common.opt: Remove --param and --param= options.
4638 * opt-functions.awk: Mark CL_PARAMS for options
4639 that have Param keyword.
4640 * opts-common.c (decode_cmdline_options_to_array):
4641 Replace --param key=value with --param=key=value.
4642 * opts.c (print_filtered_help): Remove special
4643 printing of params.
4644 (print_specific_help): Update title for params.
4645 (common_handle_option): Do not handle OPT__param.
4646 opts.h (SET_OPTION_IF_UNSET): New macro.
4647 * doc/options.texi: Document Param keyword.
4648
4649 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4650 Frederik Harwath <frederik@codesourcery.com>
4651 Thomas Schwinge <thomas@codesourcery.com>
4652
4653 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4654 enumeration constant.
4655 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4656 (is_gimple_omp_offloaded): Likewise.
4657 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4658 constant. Adjust the value of ORT_NONE accordingly.
4659 (is_gimple_stmt): Handle OACC_SERIAL.
4660 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4661 (gomp_needs_data_present): Likewise.
4662 (gimplify_adjust_omp_clauses): Likewise.
4663 (gimplify_omp_workshare): Handle OACC_SERIAL.
4664 (gimplify_expr): Likewise.
4665 * omp-expand.c (expand_omp_target):
4666 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4667 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4668 * omp-low.c (is_oacc_parallel): Rename function to...
4669 (is_oacc_parallel_or_serial): ... this.
4670 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4671 (scan_sharing_clauses): Adjust accordingly.
4672 (scan_omp_for): Likewise.
4673 (lower_oacc_head_mark): Likewise.
4674 (convert_from_firstprivate_int): Likewise.
4675 (lower_omp_target): Likewise.
4676 (check_omp_nesting_restrictions): Handle
4677 GF_OMP_TARGET_KIND_OACC_SERIAL.
4678 (lower_oacc_reductions): Likewise.
4679 (lower_omp_target): Likewise.
4680 * tree.def (OACC_SERIAL): New tree code.
4681 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4682
4683 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4684
4685 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4686
4687 PR target/92449
4688 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4689 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4690
4691 PR tree-optimization/92452
4692 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4693 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4694 MINUS_EXPR on it.
4695
4696 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4697
4698 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4699 safelen with 0.
4700
4701 2019-11-12 Alan Modra <amodra@gmail.com>
4702
4703 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4704 element of unspec vec.
4705 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4706 PC-relative TLS.
4707 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4708 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4709 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4710 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4711
4712 2019-11-12 Alan Modra <amodra@gmail.com>
4713
4714 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4715 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4716 (IS_NOMARK_TLSGETADDR): Likewise.
4717 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4718 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4719 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4720 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4721 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4722 (rs6000_indirect_call_template_1): Likewise.
4723 (rs6000_pltseq_template): Likewise.
4724 (rs6000_opt_vars): Remove "tls-markers" entry.
4725 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4726 with TARGET_ELF.
4727 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4728 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4729 (pltseq_plt_pcrel<mode>): Likewise.
4730 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4731 (call_value_local64): Likewise.
4732 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4733 output and length attribute sub-expression.
4734 (call_value_nonlocal_sysv<mode>),
4735 (call_value_nonlocal_sysv_secure<mode>),
4736 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4737 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4738 (call_value_indirect_pcrel<mode>): Likewise.
4739 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4740 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4741 * configure: Regenerate.
4742 * config.in: Regenerate.
4743
4744 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4745
4746 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4747 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4748 address being a prefixed load/store.
4749 (stack_protect_testdi): Deal with either address being a prefixed
4750 load.
4751
4752 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4753
4754 PR bootstrap/92433
4755 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4756 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4757 std::swap.
4758
4759 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4760
4761 PR tree-optimization/92420
4762 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4763 up file.
4764 (get_group_load_store_type): Use it for reversed SLP accesses.
4765
4766 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4767
4768 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4769 summary.
4770 (ipcp_transformation_t::duplicate): Break out from ...
4771 (ipa_node_params_t::duplicate): ... here; add copying of agg
4772 replacements.
4773 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4774 (ipcp_transformation_t): Add duplicate.
4775
4776 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4777
4778 PR fortran/91828
4779 * doc/install.texi: Document that the minimum MPFR version is
4780 3.1.0.
4781
4782 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4783
4784 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4785 use new register constraint letters.
4786
4787 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4788
4789 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4790 as well, if interesting recover the symbol and re-legitimize the
4791 pic address.
4792
4793 2019-11-11 Martin Liska <mliska@suse.cz>
4794
4795 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4796 alphabetically.
4797
4798 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4799
4800 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4801 account when checking if there are enough iterations to vectorize
4802 epilogue.
4803
4804 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4805 Kwok Cheung Yeung <kcy@codesourcery.com>
4806
4807 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4808 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4809 (LANG_HOOKS_DECLS): Rename also here.
4810 * langhooks.h (lang_hooks_for_decls): Rename
4811 omp_is_optional_argument to omp_check_optional_argument; take
4812 additional bool argument.
4813 * omp-general.h (omp_check_optional_argument): Likewise.
4814 * omp-general.h (omp_check_optional_argument): Likewise.
4815 * omp-low.c (lower_omp_target): Update calls; handle absent
4816 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4817
4818 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4819
4820 PR target/87833
4821 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4822 -fPIC and -shared the last to create offload image.
4823
4824 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4825
4826 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4827 of 'offset'.
4828
4829 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4830 (config.status): Use/depend on it.
4831 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4832 * configure: Regenerate.
4833
4834 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4835
4836 PR tree-optimization/88760
4837 * config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4838 * common/config/rs6000/rs6000-common.c
4839 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4840 Turn on -funroll-loops and -munroll-only-small-loops.
4841 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4842 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4843 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4844 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4845 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4846 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4847
4848 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4849
4850 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4851 Make scalar_load, vector_load, unaligned_load and
4852 vector_gather_load cost more to conform hardware latency and
4853 insn cost settings.
4854
4855 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4856
4857 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4858 (MACHO_SYMBOL_LINKER_VIS_P): New.
4859
4860 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4861
4862 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4863 registers in eliminable_regset.
4864
4865 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4866
4867 * ipa-inline.c (compute_uninlined_call_time,
4868 compute_inlined_call_time): Take edge frequency as
4869 parameter rather than computing it by itself.
4870 (big_speedup_p, edge_badness): Manually CSE sreal
4871 frequency calculations.
4872
4873 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4874
4875 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4876 case where profiles are same.
4877
4878 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4879
4880 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4881
4882 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4883
4884 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4885 args summaries of inlined edge unless it holds info about
4886 described reference.
4887
4888 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4889
4890 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4891 (*movcc_internal1): Rename to...
4892 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4893
4894 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4895
4896 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4897 (cgraph_node::create_virtual_clone): Copy it.
4898 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4899 summaries.
4900 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4901 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4902 is disabled.
4903 (propagate_constants_across_call): If callee is not analyzed, give up.
4904 (propagate_constants_topo): Lower to bottom latties of all callees of
4905 functions with ipa-cp disabled.
4906 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4907 (cgraph_edge_brings_value_p): Check for availability first.
4908 (create_specialized_node): Set ipcp_clone.
4909 (ipcp_store_bits_results): Check that info is present.
4910 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4911 thunks.
4912 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4913 conservative when callee summary is missing.
4914 (remap_edge_summaries): Lookup call summary only when needed.
4915 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4916 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4917 Use get_create.
4918 (ipa_analyze_node): Use get_create.
4919 (propagate_controlled_uses): Do not propagate when function is not
4920 analyzed.
4921 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4922 (ipa_read_node_info): Use get_create.
4923 * ipa-prop.h (IPA_NODE_REF): Use get.
4924 (IPA_NODE_REF_GET_CREATE): New.
4925
4926 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4927
4928 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4929 on function symbol.
4930
4931 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4932
4933 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4934 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4935 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4936 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4937
4938 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4939
4940 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4941 capping the growth cumulated.
4942 (offline_size): Break out from ...
4943 (estimate_growth): ... here.
4944 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4945 parameters.
4946 (growth_likely_positive): Turn to ...
4947 (growth_positive_p): Re-implement.
4948 * ipa-inline.h (growth_likely_positive): Remove.
4949 (growth_positive_p): Declare.
4950 * ipa-inline.c (want_inline_small_function_p): Use
4951 growth_positive_p.
4952 (want_inline_function_to_all_callers_p): Likewise.
4953
4954 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4955
4956 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4957 calculation of min_size.
4958 (ipa_update_overall_fn_summary): Likewise.
4959
4960 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4961
4962 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4963 estimate_edge_devirt_benefit when not computing hints;
4964 do not compute time when not asked for.
4965 (estimate_calls_size_and_time): Pass NULL hints and time when
4966 these are not computed; do not evaluate hint predicates when these are
4967 not computed.
4968 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4969 frequency.
4970
4971 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4972
4973 PR tree-optimization/92401
4974 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4975 if res_op->code is an expression with code length 1.
4976 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4977 if res_op->code is an expression with code length 2.
4978 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4979 if res_op->code is an expression with code length 3.
4980
4981 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4982
4983 * config/darwin.c (machopic_mcount_stub_name): Validate the
4984 symbol stub name when it is created.
4985 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4986 stub validation.
4987
4988 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4989
4990 * symtab.c: Fix comment typos.
4991 * cgraphunit.c: Likewise.
4992 * cgraph.h: Likewise.
4993 * cgraphclones.c: Likewise.
4994 * cgraph.c: Likewise.
4995 * varpool.c: Likewise.
4996 * tree-ssa-strlen.c: Likewise.
4997 * ipa-sra.c: Likewise.
4998 (scan_expr_access, check_all_callers_for_issues): Fix typo
4999 in a dump message.
5000
5001 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
5002
5003 * config/darwin-protos.h: Add include quard.
5004
5005 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
5006
5007 * range-op.h (range_operator::fold_range): Return result in a
5008 reference parameter instead of by value.
5009 (range_operator::wi_fold): Same.
5010 * range-op.cc (range_operator::wi_fold): Return result in a reference
5011 parameter instead of by value.
5012 (range_operator::fold_range): Same.
5013 (value_range_from_overflowed_bounds): Same.
5014 (value_range_with_overflow): Same
5015 (create_possibly_reversed_range): Same.
5016 (operator_equal::fold_range): Same.
5017 (operator_not_equal::fold_range): Same.
5018 (operator_lt::fold_range): Same.
5019 (operator_le::fold_range): Same.
5020 (operator_gt::fold_range): Same.
5021 (operator_ge::fold_range): Same.
5022 (operator_plus::wi_fold): Same.
5023 (operator_plus::op1_range): Change call to fold_range.
5024 (operator_plus::op2_range): Change call to fold_range.
5025 (operator_minus::wi_fold): Return result via reference parameter.
5026 (operator_minus::op1_range): Change call to fold_range.
5027 (operator_minus::op2_range): Change call to fold_range.
5028 (operator_min::wi_fold): Return result via reference parameter.
5029 (operator_max::wi_fold): Same.
5030 (cross_product_operator::wi_cross_product): Same.
5031 (operator_mult::wi_fold): Same.
5032 (operator_div::wi_fold): Same.
5033 (operator_div op_floor_div): Fix whitespace.
5034 (operator_exact_divide::op1_range): Change call to fold_range.
5035 (operator_lshift::fold_range): Return result via reference parameter.
5036 (operator_lshift::wi_fold): Same.
5037 (operator_rshift::fold_range): Same.
5038 (operator_rshift::wi_fold): Same.
5039 (operator_cast::fold_range): Same.
5040 (operator_cast::op1_range): Change calls to fold_range.
5041 (operator_logical_and::fold_range): Return result via reference.
5042 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
5043 (operator_bitwise_and::wi_fold): Return result via reference.
5044 (operator_logical_or::fold_range): Same.
5045 (operator_bitwise_or::wi_fold): Same.
5046 (operator_bitwise_xor::wi_fold): Same.
5047 (operator_trunc_mod::wi_fold): Same.
5048 (operator_logical_not::fold_range): Same.
5049 (operator_bitwise_not::fold_range): Same.
5050 (operator_bitwise_not::op1_range): Change call to fold_range.
5051 (operator_cst::fold_range): Return result via reference.
5052 (operator_identity::fold_range): Same.
5053 (operator_abs::wi_fold): Same.
5054 (operator_absu::wi_fold): Same.
5055 (operator_negate::fold_range): Same.
5056 (operator_negate::op1_range): Change call to fold_range.
5057 (operator_addr_expr::fold_range): Return result via reference.
5058 (operator_addr_expr::op1_range): Change call to fold_range.
5059 (operator_pointer_plus::wi_fold): Return result via reference.
5060 (operator_pointer_min_max::wi_fold): Same.
5061 (operator_pointer_and::wi_fold): Same.
5062 (operator_pointer_or::wi_fold): Same.
5063 (range_op_handler): Change call to fold_range.
5064 (range_cast): Same.
5065 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
5066 fold_range.
5067 (range_fold_unary_symbolics_p): Same.
5068 (range_fold_binary_expr): Same.
5069 (range_fold_unary_expr): Same.
5070
5071 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5072
5073 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
5074 vector type as an argument rather than reading it from the
5075 stmt_vec_info.
5076 (vect_create_epilog_for_reduction): Update accordingly.
5077 (vectorizable_reduction): Likewise.
5078 (vect_transform_cycle_phi): Likewise.
5079
5080 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
5081
5082 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
5083 the comparison codes that make sense for the mode used, and only the
5084 codes that can be done with a single branch instruction.
5085
5086 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5087
5088 PR tree-optimization/92351
5089 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
5090 peeling the main loop for alignment, make sure to set the misalignment
5091 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
5092
5093 2019-11-08 Richard Biener <rguenther@suse.de>
5094
5095 * dbgcnt.def (ivopts_loop): Add.
5096 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
5097 ivopts_loop before optimizing a loop.
5098
5099 2019-11-08 Richard Biener <rguenther@suse.de>
5100
5101 PR ipa/92409
5102 * tree-inline.c (declare_return_variable): Properly handle
5103 type mismatches for the return slot.
5104
5105 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
5106
5107 PR target/92095
5108 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
5109 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
5110 change.
5111 (got_helper_needed): New static variable.
5112 (output_load_pcrel_sym): New function.
5113 (get_pc_thunk_name): Remove after inlining...
5114 (load_got_register): ...here. Rework the initialization of the GOT
5115 register and of the GOT helper.
5116 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
5117 (sparc_file_end): Test got_helper_needed to decide whether the GOT
5118 helper must be emitted. Use output_asm_insn instead of fprintf.
5119 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
5120 if optimization is enabled.
5121 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
5122 by calling output_load_pcrel_sym.
5123
5124 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5125
5126 * tree-sra.c (create_access): Delay disqualifying the base
5127 for poly_int values until we know we have a base.
5128
5129 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5130
5131 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
5132 for loops with SIMDUID set. Enable epilogue vectorization for loops
5133 with SIMDLEN set after finding a main loop with a VF that matches it.
5134
5135 2019-11-08 Jakub Jelinek <jakub@redhat.com>
5136
5137 PR target/92038
5138 * gimple-ssa-store-merging.c (find_constituent_stores): For return
5139 value only, return non-NULL if there is a single non-clobber
5140 constituent store even if there are constituent clobbers and return
5141 one of clobber constituent stores if all constituent stores are
5142 clobbers.
5143 (split_group): Handle clobbers.
5144 (imm_store_chain_info::output_merged_store): When computing
5145 bzero_first, look after all clobbers at the start. Don't count
5146 clobber stmts in orig_num_stmts, except if the first orig store is
5147 a clobber covering the whole area and split_stores cover the whole
5148 area, consider equal number of stmts ok. Punt if split_stores
5149 contains only ->orig stores and their number plus number of original
5150 clobbers is equal to original number of stmts. For ->orig, look past
5151 clobbers in the constituent stores.
5152 (imm_store_chain_info::output_merged_stores): Don't remove clobber
5153 stmts.
5154 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
5155 rhs.
5156 (store_valid_for_store_merging_p): Allow clobber stmts.
5157 (verify_clear_bit_region_be): Fix up a thinko in function comment.
5158
5159 PR c++/92384
5160 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
5161 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
5162 slot.
5163 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
5164 force creation of a unique data.stack_parm slot.
5165
5166 2019-11-08 Richard Biener <rguenther@suse.de>
5167
5168 * genmatch.c (expr::gen_transform): Use the resimplify
5169 member function instead of hard-coding the gimple_resimplifyN variant.
5170 (dt_simplify::gen_1): Likewise.
5171
5172 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5173
5174 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5175 POLY_INT_CST.
5176
5177 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5178
5179 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
5180 instead of INTEGER_CST.
5181
5182 2019-11-08 Richard Biener <rguenther@suse.de>
5183
5184 PR tree-optimization/92324
5185 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5186 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
5187 sign-conversions as necessary.
5188 (vectorizable_reduction): Reject conversions in the chain
5189 that are not sign-conversions, base analysis on a non-converting
5190 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
5191 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
5192 for debug stmts.
5193 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
5194 (STMT_VINFO_REDUC_VECTYPE): Likewise.
5195
5196 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
5197
5198 PR target/92055
5199 * config/avr/avr.opt (-mdouble=, -mlong-double=):
5200 Fix a missing '-' when displaying these options in the
5201 help screen.
5202
5203 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5204
5205 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
5206
5207 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5208
5209 * config/aarch64/aarch64-builtins.c
5210 (aarch64_builtin_vectorized_function): Remove bswap handling.
5211
5212 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5213
5214 * tree-core.h (tree_type_common::indivisible_p): New member variable.
5215 * tree.h (TYPE_INDIVISIBLE_P): New macro.
5216 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5217 Treat the vector types as indivisible.
5218
5219 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5220
5221 * optabs.def (gather_load_optab, mask_gather_load_optab)
5222 (scatter_store_optab, mask_scatter_store_optab): Turn into
5223 conversion optabs, with the offset mode given explicitly.
5224 * doc/md.texi: Update accordingly.
5225 * config/aarch64/aarch64-sve-builtins-base.cc
5226 (svld1_gather_impl::expand): Likewise.
5227 (svst1_scatter_impl::expand): Likewise.
5228 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
5229 (expand_scatter_store_optab_fn): Likewise.
5230 (direct_gather_load_optab_supported_p): Likewise.
5231 (direct_scatter_store_optab_supported_p): Likewise.
5232 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
5233 to be argument 4.
5234 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
5235 (internal_gather_scatter_fn_supported_p): Replace the offset sign
5236 argument with the offset vector type. Require the two vector
5237 types to have the same number of elements but allow their element
5238 sizes to be different. Treat the optabs as conversion optabs.
5239 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
5240 prototype accordingly.
5241 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
5242 (supports_vec_convert_optab_p): ...this new function.
5243 (supports_vec_gather_load_p): Update accordingly.
5244 (supports_vec_scatter_store_p): Likewise.
5245 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
5246 Replace the offset sign and bits parameters with a scalar type tree.
5247 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
5248 Pass back the offset vector type instead of the scalar element type.
5249 Allow the offset to be wider than the memory elements. Search for
5250 an offset type that the target supports, stopping once we've
5251 reached the maximum of the element size and pointer size.
5252 Update call to internal_gather_scatter_fn_supported_p.
5253 (vect_check_gather_scatter): Update calls accordingly.
5254 When testing a new scale before knowing the final offset type,
5255 check whether the scale is supported for any signed or unsigned
5256 offset type. Check whether the target supports the source and
5257 target types of a conversion before deciding whether to look
5258 through the conversion. Record the chosen offset_vectype.
5259 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
5260 (vect_recog_gather_scatter_pattern): Get the scalar offset type
5261 directly from the gs_info's offset_vectype instead. Pass a zero
5262 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
5263 * tree-vect-stmts.c (check_load_store_masking): Update call to
5264 internal_gather_scatter_fn_supported_p, passing the offset vector
5265 type recorded in the gs_info.
5266 (vect_truncate_gather_scatter_offset): Update call to
5267 vect_check_gather_scatter, leaving it to search for a valid
5268 offset vector type.
5269 (vect_use_strided_gather_scatters_p): Convert the offset to the
5270 element type of the gs_info's offset_vectype.
5271 (vect_get_gather_scatter_ops): Get the offset vector type directly
5272 from the gs_info.
5273 (vect_get_strided_load_store_ops): Likewise.
5274 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
5275 and IFN_MASK_GATHER_LOAD.
5276 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
5277 (gather_load<mode><v_int_equiv>): ...this.
5278 (mask_gather_load<mode>): Rename to...
5279 (mask_gather_load<mode><v_int_equiv>): ...this.
5280 (scatter_store<mode>): Rename to...
5281 (scatter_store<mode><v_int_equiv>): ...this.
5282 (mask_scatter_store<mode>): Rename to...
5283 (mask_scatter_store<mode><v_int_equiv>): ...this.
5284
5285 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
5286
5287 PR target/92132
5288 * config/rs6000/predicates.md
5289 (signed_or_equality_comparison_operator): New predicate.
5290 (unsigned_or_equality_comparison_operator): Likewise.
5291 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
5292 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
5293 * config/rs6000/vector.md
5294 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
5295 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
5296 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
5297 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
5298 vector modes and same-size integer vector modes.
5299 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
5300 (vector_lt<mode> for VEC_F): New expand.
5301 (vector_le<mode> for VEC_F): Likewise.
5302 (vector_ne<mode> for VEC_F): Likewise.
5303 (vector_unge<mode> for VEC_F): Likewise.
5304 (vector_ungt<mode> for VEC_F): Likewise.
5305 (vector_unle<mode> for VEC_F): Likewise.
5306 (vector_unlt<mode> for VEC_F): Likewise.
5307 (vector_uneq<mode>): Expose name.
5308 (vector_ltgt<mode>): Likewise.
5309 (vector_unordered<mode>): Likewise.
5310 (vector_ordered<mode>): Likewise.
5311
5312 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
5313
5314 PR target/92295
5315 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
5316 Enhance ix86_expand_vector_init_concat.
5317
5318 2019-11-08 Joseph Myers <joseph@codesourcery.com>
5319
5320 * doc/invoke.texi (-Wold-style-definition): Document () not being
5321 considered an old-style definition for C2x.
5322
5323 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
5324
5325 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
5326 Enhance comment.
5327 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
5328 insn patterns using ldcw instruction.
5329 (memory_barrier): Remove insn pattern using sync instruction.
5330 * config/pa/pa.opt (coherent-ldcw): New option.
5331 (ordered): New option.
5332
5333 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5334
5335 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
5336 valid conditions.
5337
5338 2019-11-07 Jakub Jelinek <jakub@redhat.com>
5339
5340 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
5341 typo - mistmatch -> mismatch.
5342 * ipa-profile.c (ipa_profile): Likewise.
5343 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
5344 - mistmatch -> mismatch.
5345
5346 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5347
5348 * simplify-rtx.c (comparison_to_mask): New function.
5349 (mask_to_comparison): New function.
5350 (simplify_logical_relational_operation): New function.
5351 (simplify_binary_operation_1): Call
5352 simplify_logical_relational_operation.
5353
5354 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
5355
5356 PR other/92090
5357 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
5358 modes for integer constants.
5359
5360 2019-11-07 Jan Hubicka <jh@suse.cz>
5361
5362 PR ipa/92406
5363 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
5364 summary.
5365
5366 2019-11-07 Jan Hubicka <jh@suse.cz>
5367
5368 * optc-save-gen.awk: Generate cl_target_option_free
5369 and cl_optimization_option_free.
5370 * opth-en.awk: Declare cl_target_option_free
5371 and cl_optimization_option_free.
5372 * tree.c (free_node): Use it.
5373
5374 2019-11-06 Jan Hubicka <jh@suse.cz>
5375
5376 * lto-streamer-in.c: Include alloc-pool.h.
5377 (freeing_string_slot_hasher): Remove.
5378 (string_slot_allocator): New object allocator.
5379 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
5380 (file_name_obstack): New obstack.
5381 (canon_file_name): Allocate in obstack and allocator.
5382 (lto_reader_init): Initialize obstack and allocator.
5383 (lto_free_file_name_hash): New function.
5384 * lto-streamer.h (lto_free_file_name_hash): New.
5385
5386 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
5387
5388 PR tree-optimization/89134
5389 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5390 * params.def: Add min-loop-cond-split-prob.
5391 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5392 outside checks on loop into the function.
5393 (split_info): New class.
5394 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5395 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5396 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5397 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5398 (stmt_semi_invariant_p, branch_removable_p): Likewise.
5399 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5400 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5401 (split_loop_on_cond): Likewise.
5402 (tree_ssa_split_loops): Add loop split on conditional statement.
5403
5404 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
5405
5406 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5407 pattern.
5408
5409 2019-11-07 Richard Biener <rguenther@suse.de>
5410
5411 PR tree-optimization/92405
5412 * tree-vect-loop.c (vectorizable_reduction): Appropriately
5413 restrict lane-reducing ops to single stmt chains.
5414
5415 2019-11-07 Martin Jambor <mjambor@suse.cz>
5416
5417 PR lto/70929
5418 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5419 * cgraph.h (gimple_check_call_matching_types): Remove
5420 * cgraph.c (gimple_check_call_args): Likewise.
5421 (gimple_check_call_matching_types): Likewise.
5422 (symbol_table::create_edge): Do not call
5423 gimple_check_call_matching_types.
5424 (cgraph_edge::make_direct): Likewise.
5425 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5426 * value-prof.h (check_ic_target): Remove.
5427 * value-prof.c (check_ic_target): Remove.
5428 (gimple_ic_transform): Do nat call check_ic_target.
5429 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5430 (afdo_indirect_call): Likewise.
5431 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5432 gimple_check_call_matching_types.
5433 * ipa-inline.c (early_inliner): Likewise.
5434
5435 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5436
5437 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5438 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5439 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5440 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5441 * config/arm/iterators.md (USSAT16): New int_iterator.
5442 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5443 (sup): Likewise.
5444 * config/arm/predicates.md (ssat16_imm): New predicate.
5445 (usat16_imm): Likewise.
5446 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5447
5448 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5449
5450 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5451 New define_insns.
5452 (arm_<simd32_op>): New define_expands.
5453 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5454 __smuad, __smuadx): Define.
5455 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5456 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5457 (SIMD32_BINOP_Q): Likewise.
5458 (simd32_op): Handle the above.
5459 * config/arm/unspecs.md: Define unspecs for the above.
5460
5461 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5462
5463 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5464 * config/arm/arm.md (APSRGE_REGNUM): Define.
5465 (arm_<simd32_op>): New define_insn.
5466 (arm_sel): Likewise.
5467 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5468 (CALL_USED_REGISTERS): Likewise.
5469 (REG_ALLOC_ORDER): Likewise.
5470 (FIRST_PSEUDO_REGISTER): Update value.
5471 (ARM_GE_BITS_READ): Define.
5472 * config/arm/arm.c (arm_conditional_register_usage): Clear
5473 APSRGE_REGNUM from operand_reg_set.
5474 (arm_ge_bits_access): Define.
5475 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5476 ARM_BUIILTIN_sel.
5477 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5478 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5479 FAIL if ARM_GE_BITS_READ.
5480 (*arm_add<mode>3): New define_insn.
5481 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5482 (*arm_sub<mode>3): New define_insn.
5483 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5484 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5485 __usub16): Define.
5486 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5487 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5488 (simd32_op): Handle the above.
5489 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5490 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5491 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5492 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5493
5494 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5495
5496 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5497 (arm_smlabb): New define_expand.
5498 (*maddhisi4tb): Rename to...
5499 (maddhisi4tb): ... This.
5500 (*maddhisi4tt): Rename to...
5501 (maddhisi4tt): ... This.
5502 (arm_smlatb_setq): New define_insn.
5503 (arm_smlatb): New define_expand.
5504 (arm_smlatt_setq): New define_insn.
5505 (arm_smlatt): New define_expand.
5506 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5507 (arm_<smlaw_op>): New define_expand.
5508 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5509 __smlawb, __smlawt): Define.
5510 * config/arm_acle_builtins.def: Define builtins for the above.
5511 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5512 (slaw_op): New int_attribute.
5513 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5514
5515 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5516
5517 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5518 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5519 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5520 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5521 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5522 (ss_op): New code_attr.
5523
5524 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5525
5526 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5527 * config/arm/arm.md (APSRQ_REGNUM): Define.
5528 (add_setq): New define_subst.
5529 (add_clobber_q_name): New define_subst_attr.
5530 (add_clobber_q_pred): Likewise.
5531 (maddhisi4): Change to define_expand. Split into mult and add if
5532 ARM_Q_BIT_READ.
5533 (arm_maddhisi4): New define_insn.
5534 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5535 (*maddhisi4tt): Likewise.
5536 (arm_ssat): New define_expand.
5537 (arm_usat): Likewise.
5538 (arm_get_apsr): New define_insn.
5539 (arm_set_apsr): Likewise.
5540 (arm_saturation_occurred): New define_expand.
5541 (arm_set_saturation): Likewise.
5542 (*satsi_<SAT:code>): Rename to...
5543 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5544 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5545 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5546 (CALL_USED_REGISTERS): Mark apsrq.
5547 (FIRST_PSEUDO_REGISTER): Update value.
5548 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5549 (machine_function): Add q_bit_access.
5550 (ARM_Q_BIT_READ): Define.
5551 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5552 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5553 operand_reg_set.
5554 (arm_q_bit_access): Define.
5555 * config/arm/arm-builtins.c: Include stringpool.h.
5556 (arm_sat_binop_imm_qualifiers,
5557 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5558 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5559 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5560 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5561 SET_SAT_QUALIFIERS): Likewise.
5562 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5563 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5564 Handle 0 argument expander.
5565 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5566 (arm_check_builtin_call): Define.
5567 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5568 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5569 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5570 (arm_q_bit_access): Likewise.
5571 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5572 __saturation_occurred, __set_saturation_occurred): Define.
5573 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5574 saturation_occurred, set_saturation_occurred.
5575 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5576 (UNSPEC_APSR_READ): Likewise.
5577 (VUNSPEC_APSR_WRITE): Likewise.
5578 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5579 (*arm_ssadd<mode>3): New define_insn.
5580 (sssub<mode>3): Convert to define_expand.
5581 (*arm_sssub<mode>3): New define_insn.
5582 (ssmulsa3): Convert to define_expand.
5583 (*arm_ssmulsa3): New define_insn.
5584 (usmulusa3): Convert to define_expand.
5585 (*arm_usmulusa3): New define_insn.
5586 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5587 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5588 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5589
5590 2019-11-07 Martin Liska <mliska@suse.cz>
5591
5592 PR c++/92354
5593 * cgraph.c (delete_function_version): Clear global
5594 variable version_info_node if equal to deleted
5595 function.
5596
5597 2019-11-07 Martin Liska <mliska@suse.cz>
5598
5599 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5600 of CONSTRUCTOR_NO_CLEARING.
5601 (operand_compare::hash_operand): Likewise.
5602
5603 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5604
5605 Support 64-bit double and 64-bit long double configurations.
5606
5607 PR target/92055
5608 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5609 --with-long-double=.
5610 * config/avr/t-multilib: Remove.
5611 * config/avr/t-avr: Output of genmultilib.awk is now fully
5612 dynamically generated and no more part of the repo.
5613 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5614 Pass them down to...
5615 * config/avr/genmultilib.awk: ...here and handle them.
5616 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5617 (-mlong-double=, avr_long_double). New option and var.
5618 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5619 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5620 Set default as requested by --with-double=
5621 (TARGET_HANDLE_OPTION): Define to this...
5622 (avr_handle_option): ...new hook worker.
5623 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5624 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5625 (avr_double_lib): New proto for spec function.
5626 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5627 (DRIVER_SELF_SPECS): Call %:double-lib.
5628 * config/avr/avr.c (avr_option_override): Assert
5629 sizeof(long double) >= sizeof(double) for the target.
5630 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5631 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5632 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5633 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5634 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5635 New built-in define depending on --with-double=, --with-long-double=.
5636 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5637 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5638 * doc/install.texi (Cross-Compiler-Specific Options)
5639 <--with-double=, --with-long-double=>: Doc.
5640
5641 2019-11-07 Richard Biener <rguenther@suse.de>
5642
5643 * dbgcnt.def (gimple_unroll): New.
5644 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5645 gimple_unroll debug counter before applying transform.
5646 (try_peel_loop): Likewise.
5647
5648 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5649
5650 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5651 frame pointer in multiple registers.
5652 (ira_setup_eliminable_regset): Setup eliminable_regset,
5653 ira_no_alloc_regs and regs_ever_live for frame pointer in
5654 multiple registers.
5655
5656 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5657
5658 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5659 V2DI modes.
5660
5661 2019-11-06 Jan Hubicka <jh@suse.cz>
5662
5663 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5664 allocations.
5665 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5666 Do not silently ignore summary corruptions.
5667
5668 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5669
5670 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5671 the epilogue if there are peeled iterations for it to handle.
5672
5673 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5674
5675 * config/arc/arc.c (arc_split_ior): Add asserts.
5676 (arc_split_mov_const): Likewise.
5677 (arc_check_ior_const): Do not match known short immediate values.
5678 * config/arc/arc.md (movsi): Don't split predicated instructions
5679 (iorsi): Likewise.
5680
5681 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5682
5683 * config/arc/arc.opt (mea): Update help string.
5684 * doc/invoke.texi(ARC): Update mea option info.
5685
5686 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5687
5688 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5689 (zero_extendqisi2_ac): Likewise.
5690 (zero_extendhisi2_i): Likewise.
5691 (extendqihi2_i): Likewise.
5692 (extendqisi2_ac): Likewise.
5693 (extendhisi2_i): Likewise.
5694
5695 2019-11-06 Richard Biener <rguenther@suse.de>
5696
5697 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5698 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5699 Simplify single_defuse_cycle condition.
5700
5701 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5702
5703 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5704 epilogue loop, make sure that the VF is small enough or that
5705 the epilogue loop can be fully-masked.
5706
5707 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5708
5709 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5710 loop when we've finished, rather than returning directly from
5711 the loop. Use a local variable to track whether we're still
5712 searching for the preferred simdlen. Make vect_epilogues
5713 record whether the next iteration should try to treat the
5714 loop as an epilogue.
5715
5716 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5717
5718 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5719 __arc_hard_float__, __ARC_HARD_FLOAT__,
5720 __arc_soft_float__, __ARC_SOFT_FLOAT__
5721
5722 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5723
5724 PR tree-optimization/92317
5725 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5726 update phi's with constant phi arguments.
5727
5728 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5729 Alexandre Oliva <oliva@adacore.com>
5730
5731 * common.opt (-fcallgraph-info[=]): New option.
5732 * doc/invoke.texi (Developer options): Document it.
5733 * opts.c (common_handle_option): Handle it.
5734 * builtins.c (expand_builtin_alloca): Record allocation if
5735 -fcallgraph-info=da.
5736 * calls.c (expand_call): If -fcallgraph-info, record the call.
5737 (emit_library_call_value_1): Likewise.
5738 * flag-types.h (enum callgraph_info_type): New type.
5739 * explow.c: Include stringpool.h.
5740 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5741 * function.c (allocate_stack_usage_info): New.
5742 (allocate_struct_function): Call it for -fcallgraph-info.
5743 (prepare_function_start): Call it otherwise.
5744 (record_final_call, record_dynamic_alloc): New.
5745 * function.h (struct callinfo_callee): New.
5746 (CALLEE_FROM_CGRAPH_P): New.
5747 (struct callinfo_dalloc): New.
5748 (struct stack_usage): Add callees and dallocs.
5749 (record_final_call, record_dynamic_alloc): Declare.
5750 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5751 object if -fcallgraph-info=da.
5752 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5753 * print-tree.h (print_decl_identifier): Declare.
5754 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5755 * print-tree.c: Include print-tree.h.
5756 (print_decl_identifier): New function.
5757 * toplev.c: Include print-tree.h.
5758 (callgraph_info_file): New global variable.
5759 (callgraph_info_external_printed): Likewise.
5760 (output_stack_usage): Rename to...
5761 (output_stack_usage_1): ... this. Make it static, add cf
5762 parameter. If -fcallgraph-info=su, print stack usage to cf.
5763 If -fstack-usage, use print_decl_identifier for
5764 pretty-printing.
5765 (INDIRECT_CALL_NAME): New.
5766 (dump_final_node_vcg_start): New.
5767 (dump_final_callee_vcg, dump_final_node_vcg): New.
5768 (output_stack_usage): New.
5769 (lang_dependent_init): Open and start file if
5770 -fcallgraph-info. Allocated callgraph_info_external_printed.
5771 (finalize): If callgraph_info_file is not null, finish it,
5772 close it, and release callgraph_info_external_printed.
5773
5774 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5775 Frederik Harwath <frederik@codesourcery.com>
5776 Thomas Schwinge <thomas@codesourcery.com>
5777
5778 * omp-low.c (struct omp_context): New fields
5779 local_reduction_clauses, outer_reduction_clauses.
5780 (new_omp_context): Initialize these.
5781 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5782 (scan_omp_for): Check reduction clauses for incorrect nesting.
5783
5784 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5785
5786 PR inline-asm/92352
5787 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5788 operands with non-memory constraints.
5789
5790 2019-11-05 Martin Sebor <msebor@redhat.com>
5791
5792 PR tree-optimization/92373
5793 * tree.c (component_ref_size): Only consider initializers of objects
5794 of matching struct types.
5795 Return null for instances of interior zero-length arrays.
5796
5797 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5798
5799 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5800
5801 2019-11-05 Jason Merrill <jason@redhat.com>
5802
5803 PR tree-optimization/91825
5804 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5805
5806 2019-11-05 Jim Wilson <jimw@sifive.com>
5807
5808 PR middle-end/92263
5809 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5810 optimize_insn_for_speed_p is true.
5811
5812 2019-11-05 Martin Sebor <msebor@redhat.com>
5813
5814 PR middle-end/92333
5815 PR middle-end/82608
5816 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5817 size.
5818 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5819 name and location for a temporary variable.
5820
5821 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5822
5823 * tree-vrp.c (value_range::value_range): Fix whitespace.
5824 (defined_ranges_p): Same.
5825 (range_fold_binary_symbolics_p): Same.
5826 (value_range::intersect_helper): Same.
5827 (value_range::union_helper): Same.
5828 * tree-vrp.h (range_fold_binary_expr): Same.
5829
5830 2019-11-04 Martin Sebor <msebor@redhat.com>
5831
5832 PR middle-end/92341
5833 PR middle-end/82612
5834 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5835 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5836 of message printed in a warning for empty arrays.
5837 (vrp_prop::check_mem_ref): Also handle function parameters and
5838 empty arrays.
5839
5840 2019-11-05 Richard Biener <rguenther@suse.de>
5841
5842 PR tree-optimization/92371
5843 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5844 on the original stmt of live stmts in the chain.
5845 (vectorizable_live_operation): Look at the original stmt when
5846 checking STMT_VINFO_REDUC_DEF.
5847
5848 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5849
5850 * gimple-fold.c, gimple-loop-versioning.cc,
5851 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5852 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5853 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5854 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5855 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5856 value_range_equiv, and value_range_base to value_range.
5857
5858 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5859
5860 * expr.c (build_personality_function): Fix generated type to
5861 match actual personality functions.
5862
5863 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5864
5865 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5866 enough bytes for the NULL character.
5867
5868 2019-11-05 Richard Biener <rguenther@suse.de>
5869
5870 PR tree-optimization/92280
5871 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5872 had a single use do not create a new CTOR.
5873 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5874 BIT_FIELD_REF of a CTOR via GENERIC.
5875
5876 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5877
5878 * config/s390/s390.c (s390_vector_alignment): Check if the value
5879 fits into uhwi before using it.
5880
5881 2019-11-05 Martin Liska <mliska@suse.cz>
5882
5883 * symbol-summary.h: Use ggc_delete.
5884
5885 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5886
5887 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5888 Change vec_perm field to 10.
5889
5890 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5891
5892 * doc/install.texi: Further fix syntax for html generation.
5893
5894 2019-11-05 Martin Liska <mliska@suse.cz>
5895
5896 * symbol-summary.h: Rename allocator to m_allocator and
5897 add comment.
5898
5899 2019-11-05 Richard Biener <rguenther@suse.de>
5900
5901 PR tree-optimization/92324
5902 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5903 all signed or unsigned operations.
5904
5905 2019-11-05 Jan Hubicka <jh@suse.cz>
5906
5907 * hsa-brig.c: Include alloc-pool.h
5908 * hsa-dump.c: Likewise.
5909 * hsa-gen.c: Likewise.
5910 * hse-regalloc.c: Likewise.
5911 * ipa-hsa.c: Likewise.
5912 * ipa-predicate.c: Likewise.
5913 * ipa-reference.c: Likewise.
5914 * ipa-sra.c: Likewise.
5915 * omp-expand.c: Likewise.
5916 * omp-general.c: Likewise.
5917 * omp-low.c: Likewise.
5918 * sumbol-summary.h (function_summary_base): Add allocator.
5919 (function_summary<T *>::function_summary): Update construction.
5920 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5921 (call_summary_base): Add allcator.
5922 (call_summary<T *>::call_summary): Update construction.
5923 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5924
5925 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5926
5927 PR tree-optimization/91945
5928 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5929 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5930 Formatting fix.
5931
5932 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5933
5934 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5935 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5936 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5937 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5938 (vrp_set_zero_nonzero_bits): Move to...
5939 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5940 (vr_values::simplify_bit_ops_using_ranges): Rename
5941 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5942
5943 2019-11-05 Martin Liska <mliska@suse.cz>
5944
5945 PR c++/92339
5946 * fold-const.c (operand_compare::hash_operand): Remove
5947 FIELD_DECL handling.
5948
5949 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5950
5951 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5952 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5953 static.
5954
5955 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5956
5957 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5958 properly handle symbolics.
5959 (range_compatible_p): Remove.
5960
5961 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5962
5963 * common.opt (-fabi-version): Document =14.
5964 * doc/invoke.texi (C++ Dialect Options): Likewise.
5965
5966 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5967
5968 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5969
5970 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5971
5972 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5973 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5974 gcn_omp_device_kind_arch_isa.
5975 * config/gcn/t-omp-device: New file.
5976 * configure.ac: Support gcn for omp_device_property.
5977 * configure: Regenerate.
5978
5979 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5980
5981 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5982 (vrp_val_max): Same.
5983 (vrp_val_is_min): Same.
5984 (vrp_val_is_max): Same.
5985 (value_range_base::nonzero_p): Remove last argument to
5986 vrp_val_is_max.
5987 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5988 (vrp_val_max): Same.
5989 (vrp_val_is_min): Same.
5990 (vrp_val_is_max): Same.
5991 (value_range_base::set_varying): Remove last argument to vrp_val*.
5992 (value_range_base::dump): Same.
5993 (value_range_base::set): Same.
5994 (value_range_base::normalize_symbolics): Same.
5995 (value_range_base::num_pairs): Same.
5996 (value_range_base::lower_bound): Same.
5997 (value_range_base::upper_bound): Same.
5998 (ranges_from_anti_range): Remove handle_pointers argument.
5999 (value_range_base::singleton_p): Remove last argument to
6000 ranges_from_anti_range.
6001
6002 2019-11-04 Jan Hubicka <jh@suse.cz>
6003
6004 * ipa-reference.c (init_function_info): Initialize
6005 info->global.statics_read.
6006
6007 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6008
6009 * tree-vrp.c (value_range_base::invert): Use constructors to build
6010 range.
6011
6012 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6013
6014 * tree-vrp.c (range_int_cst_singleton_p): Remove.
6015 * tree-vrp.h (range_int_cst_singleton_p): Remove.
6016
6017 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6018
6019 * tree-vrp.c (value_range_base::normalize_addresses): Handle
6020 VR_UNDEFINED.
6021
6022 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6023
6024 * tree-vrp.c (dump_assert_info): New.
6025 (dump_asserts_info): New.
6026
6027 2019-11-04 Jan Hubicka <jh@suse.cz>
6028
6029 * ipa-inline-transform.c: Include ipa-utils.h
6030 (inline_call): Set thunk_expansion flag.
6031 * ipa-utils.h (thunk_expansion): Declare.
6032 * ipa-devirt.c (thunk_expansion): New global var.
6033 (devirt_node_removal_hook): Do not invalidate cache while
6034 doing thunk expansion.
6035
6036 2019-11-04 Tamar Christina <tamar.christina@arm.com>
6037
6038 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
6039
6040 2019-11-04 Martin Sebor <msebor@redhat.com>
6041
6042 PR tree-optimization/92349
6043 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
6044 memebers have constant sizes.
6045
6046 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
6047
6048 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
6049 parameter.
6050 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
6051 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
6052 vect_analyze_loop.
6053
6054 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
6055
6056 * expr.c (store_constructor): Modify to handle single element vectors.
6057 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
6058 constructors.
6059 (vect_slp_check_for_constructors): New function.
6060 (vect_slp_analyze_bb_1): Call new function to check for vector
6061 constructors.
6062 (vectorize_slp_instance_root_stmt): New function.
6063 (vect_schedule_slp): Call new function to vectorize root stmt of vector
6064 constructors.
6065 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
6066
6067 2019-11-04 Richard Biener <rguenther@suse.de>
6068
6069 PR tree-optimization/92345
6070 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
6071 we produced a reduction chain.
6072 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
6073 LOOP_VINFO_REDUCTIONS.
6074
6075 2019-11-04 Jan Hubicka <jh@suse.cz>
6076
6077 * cgraphclones.c (cgraph_node::create_version_clone): Do not
6078 duplicate summaries.
6079 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
6080 first.
6081 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
6082 access call summaries.
6083 (dump_ipa_call_summary): Be ready for missing edge summaries.
6084 (analyze_function_body): Use get instead of get_create to access
6085 edge summary.
6086 (estimate_calls_size_and_time): Do not access summaries of
6087 inlined edges; sanity check they are missing.
6088 (ipa_call_context::estimate_size_and_time): Use get instead
6089 of get_create to access node summary.
6090 (inline_update_callee_summaries): Do not update depth of
6091 inlined edge.
6092 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
6093 growth caches.
6094 (ipa_merge_fn_summary_after_inlining): Use get instead
6095 of get_create.
6096 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
6097 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
6098 fast summary.
6099 (initialize_growth_caches): Update.
6100 (do_estimate_edge_time): Remove redundant copy of context.
6101 (ipa_remove_from_growth_caches): New function.
6102 * ipa-inline.c (flatten_function): Update overall summary
6103 only when optimizing.
6104 (inline_to_all_callers): Update overall summary of function
6105 inlined to.
6106 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
6107 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
6108 to false.
6109
6110 2019-11-04 Richard Biener <rguenther@suse.de>
6111
6112 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
6113 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
6114
6115 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
6116
6117 * ggc-common.c: Include system.h before malloc.h.
6118
6119 2019-11-04 Alexandre Oliva <oliva@adacore.com>
6120
6121 * configure.ac: Pass --enable-obsolete=* and
6122 --enable-option-checking=* down to build configure, and fail
6123 if it fails. AC_SUBST HAVE_AUTO_BUILD.
6124 * configure: Rebuild.
6125 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
6126 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
6127
6128 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6129
6130 * config.in: Regenerate.
6131 * config/msp430/msp430.c (msp430_option_override): Emit an error if
6132 -mtiny-printf is used without GCC being configured with
6133 --enable-newlib-nano-formatted-io.
6134 * config/msp430/msp430.h (LINK_SPEC): Pass
6135 "--wrap puts --wrap printf" when -mtiny-printf is used.
6136 * config/msp430/msp430.opt: Document -mtiny-printf.
6137 * configure: Regenerate.
6138 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
6139 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
6140 --enable-newlib-nano-formatted-io is passed.
6141 * doc/invoke.texi: Document -mtiny-printf.
6142
6143 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6144
6145 * configure: Regenerate.
6146
6147 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6148
6149 * config/msp430/driver-msp430.c
6150 (msp430_get_linker_devices_include_path): New spec function.
6151 * config/msp430/msp430-devices.c (msp430_dirname): New function.
6152 (extract_devices_dir_from_exec_prefix): New function.
6153 (extract_devices_dir_from_collect_gcc): New function.
6154 (msp430_check_env_var_for_devices): New function.
6155 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
6156 (parse_devices_csv): Call msp430_check_env_var_for_devices if
6157 devices.csv was not found using other methods.
6158 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
6159 New prototype.
6160 (msp430_dirname): Likewise.
6161 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
6162 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
6163 msp430_get_linker_devices_include_path.
6164 (TARGET_EXTRA_PRE_INCLUDES): Define.
6165 * doc/invoke.texi: Document new ways of searching for support files.
6166
6167 2019-11-04 Richard Biener <rguenther@suse.de>
6168
6169 PR tree-optimization/92301
6170 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
6171 as required by epilogue generation
6172
6173 2019-11-04 Martin Liska <mliska@suse.cz>
6174
6175 PR ipa/92304
6176 * fold-const.c (operand_compare::hash_operand): Fix field
6177 hashing of CONSTRUCTOR.
6178
6179 2019-11-04 Martin Liska <mliska@suse.cz>
6180
6181 * ggc.h (ggc_delete): New function.
6182 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
6183 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
6184 (ipa_free_all_node_params): Likewise.
6185 * ipa-sra.c (ipa_sra_analysis): Likewise.
6186
6187 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6188
6189 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
6190 set_switch_stmt_execution_predicate, compute_bb_predicates,
6191 will_be_nonconstant_expr_predicate,
6192 phi_result_unknown_predicate,
6193 analyze_function_body): Pass arround params summary.
6194 (ipa_call_context::duplicate_from): New comment;
6195 only duplicate useful values.
6196 (ipa_call_context::equal_to): Only compare useful values.
6197 (remap_edge_summaries): Pass params_summary.
6198 (remap_hint_predicate): Likewise.
6199 (ipa_merge_fn_summary_after_inlining): Likewise.
6200 (inline_read_section): Initialize params summary used flags.
6201 * ipa-predicate.c (predicate::remap_after_inlining): Pass
6202 around param_summary.
6203 (add_condition): Initialized used params summary flags.
6204 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
6205 (inline_param_summary::useless_p): New predicate.
6206 (remap_after_inlining, add_condition): Update prototype
6207 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
6208 move_cost.
6209 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
6210 summaries.
6211 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
6212 (ipa_analyze_virtual_call_uses): Likewise.
6213 (update_indirect_edges_after_inlining): Update param summaries.
6214 (ipa_print_node_params): Print used flags.
6215 (ipa_read_indirect_edge_info): Update param summareis.
6216 * ipa-prop.h (ipa_param_descriptor): Add
6217 used_by_ipa_predicates, used_by_indirect_call
6218 and used_by_polymorphic_call.
6219 (ipa_set_param_used_by_ipa_predicates,
6220 ipa_set_param_used_by_indirect_call,
6221 ipa_set_param_used_by_polymorphic_call,
6222 ipa_is_param_used_by_ipa_predicates,
6223 ipa_is_param_used_by_indirect_call,
6224 ipa_is_param_used_by_polymorphic_call): New inline functions.
6225
6226 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6227
6228 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
6229 member function.
6230 (ipa_call_context::release): Add ALL parameter.
6231 (ipa_call_context::equal_to): New member function.
6232 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
6233 duplicate_form, release, equal_to and exists_p member functoins.
6234 * ipa-inline-analysis.c (node_context_cache_entry): New
6235 class.
6236 (node_context_summary): Likewise.
6237 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
6238 node_context_clear): New static vars.
6239 (initialize_growth_caches): New function.
6240 (free_growth_caches): Also delete node_context_cache; output stats.
6241 (do_estimate_edge_time): Cache contexts.
6242 (reset_node_cache): New function.
6243 * ipa-inline.c (reset_edge_caches): Reset also node cache.
6244 (inline_small_functions): Initialize growth caches.
6245 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
6246 Declare.
6247 * ipa-predicate.h (inline_param_summary::equal_to): New.
6248 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
6249 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
6250 (ipa_agg_jump_function): Implement equal_to member function.
6251
6252 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6253
6254 * ipa-fnsummary.c (inline_read_section): Set vector size
6255 ahead of time.
6256
6257 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6258
6259 * ipa-fnsummary.c (ipa_call_context): New constructor.
6260 (estimate_node_size_and_time): Turn to ...
6261 (ipa_call_context::estimate_size_and_time): ... this one.
6262 (ipa_call_context::release): New.
6263 * ipa-fnsummary.h (ipa_call_context): New class.
6264 (estimate_node_size_and_time): Remove.
6265 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
6266 do_estimate_edge_hints): Update.
6267
6268 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6269
6270 * config.in: Regenerate.
6271 * configure: Regenerate.
6272 * configure.ac: Check for mallinfo.
6273 * ggc-common.c: Include malloc.h if available;
6274 include options.h
6275 (report_heap_memory_use): New functoin.
6276 * ggc-page.c (ggc_grow): Do not print "start".
6277 * ggc.h (report_heap_memory_use): Declare.
6278 * pases.c (execute_one_pass): Report memory after IPA passes.
6279 (ipa_read_summaries_1): Likewise.
6280 (ipa_read_optimization_summaries_1): Likewise.
6281
6282 2019-11-02 Jakub Jelinek <jakub@redhat.com>
6283
6284 * gimplify.h (omp_construct_selector_matches): Change return
6285 type to int, add a new SCORES argument.
6286 * gimplify.c (omp_construct_selector_matches): Likewise. If
6287 SCORES is non-NULL, compute scores of each construct.
6288 * omp-general.h (omp_get_context_selector): Declare.
6289 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
6290 Adjust omp_construct_selector_matches callers.
6291 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
6292 (omp_context_compute_score): New function.
6293 (omp_resolve_declare_variant): Compute scores and decide based on
6294 that.
6295
6296 PR bootstrap/92314
6297 * configure.ac: Don't look for omp-device-properties files from
6298 installed offloading compilers. Instead add tmake_file snippets
6299 for configured offloading targets and use files they generate.
6300 * Makefile.in (install): Don't depend on
6301 install-omp-device-properties.
6302 (install-omp-device-properties): Remove goal.
6303 * config/i386/t-omp-device: New file.
6304 * config/i386/t-intelmic (omp-device-properties): Remove goal.
6305 * config/nvptx/t-omp-device: New file.
6306 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
6307 * configure: Regenerated.
6308
6309 * omp-general.h (omp_context_selector_set_compare): Declare.
6310 * omp-general.c (omp_construct_simd_compare,
6311 omp_context_selector_props_compare, omp_context_selector_set_compare,
6312 omp_context_selector_compare): New functions.
6313 (omp_resolve_declare_variant): Prune variants that are strict subset
6314 of another variant.
6315
6316 2019-11-01 Martin Sebor <msebor@redhat.com>
6317
6318 PR middle-end/91679
6319 PR middle-end/91647
6320 PR middle-end/91463
6321 PR middle-end/92312
6322 * doc/invoke.texi (-Wzero-length-bounds): Document.
6323 * gimple-match-head.c (try_conditional_simplification): Use memcpy
6324 instead of a hand-rolled loop to avoid PR 92323.
6325 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
6326 with initializers.
6327 (vrp_prop::check_mem_ref): Handle declared struct objects.
6328 * tree.c (last_field): New function.
6329 (array_at_struct_end_p): Handle MEM_REF.
6330 (get_initializer_for): New helper.
6331 (component_ref_size): Add argument. Rename locals. Call
6332 get_initializer_for instead of fold_ctor_reference. Correct handling
6333 of flexible array members.
6334 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
6335
6336 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6337
6338 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
6339 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
6340 UNSPEC_VSX_CVSPUXDS): Remove.
6341 (vsx_xvcvspdp): New define_expand, old define_insn split to...
6342 (vsx_xvcvspdp_be): ... this. New. And...
6343 (vsx_xvcvspdp_le): ... this. New.
6344 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
6345 (vsx_xvcv<su>xwdp_be): ... this. New. And...
6346 (vsx_xvcv<su>xwdp_le): ... this. New.
6347 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
6348 (vsx_xvcvsp<su>xds_be): ... this. New. And...
6349 (vsx_xvcvsp<su>xds_le): ... this. New.
6350
6351 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6352
6353 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
6354 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
6355 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
6356 UNSPEC_VSX_XVCVSPSXWS): Remove.
6357 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
6358 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
6359
6360 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6361
6362 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
6363 (UNSPEC_VSX_XVCDPSP): Remove.
6364 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
6365 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
6366
6367 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6368
6369 * hooks.c (hook_tree_tree_bool_null): New.
6370 * hooks.h (hook_tree_tree_bool_null): Declare.
6371 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
6372 (LANG_HOOKS_DECLS): Add it.
6373 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
6374 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
6375 (lower_omp_target): Handle Fortran array with descriptor in
6376 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
6377
6378 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
6379
6380 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6381 Assert that the type we store in abi_vector_types is its own
6382 main variant.
6383 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6384
6385 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6386
6387 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6388 from a CONST_INT address when TARGET_THUMB2.
6389
6390 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6391
6392 * config/arm/arm.md (add_not_cin): New insn.
6393 (add_not_shift_cin): Likewise.
6394
6395 2019-10-31 Martin Liska <mliska@suse.cz>
6396
6397 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6398 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6399 and compare_memory_operand.
6400
6401 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6402
6403 * configure.ac: Compute and substitute omp_device_properties and
6404 omp_device_property_deps.
6405 * Makefile.in (generated_files): Add omp-device-properties.h.
6406 (omp-general.o): Depend on omp-device-properties.h.
6407 (omp_device_properties): New make variable.
6408 (omp-device-properties.h, s-omp-device-properties-h,
6409 install-omp-device-properties): New goals.
6410 (install): Depend on install-omp-device-properties for accelerators.
6411 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6412 * target.h (enum omp_device_kind_arch_isa): New enum.
6413 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6414 documentation.
6415 * omp-general.c: Include omp-device-properties.h.
6416 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6417 colon instead of comma.
6418 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6419 functions.
6420 (omp_context_selector_matches): Implement device set arch/isa
6421 selectors, improve device set kind selector handling.
6422 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6423 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6424 TARGET_SIMD_CLONE_USABLE): Formatting fix.
6425 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6426 ix86_omp_device_kind_arch_isa.
6427 * config/i386/i386-options.c (struct ix86_target_opts): Move type
6428 definition from ix86_target_string to file scope.
6429 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6430 to file scope.
6431 (ix86_omp_device_kind_arch_isa): New function.
6432 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6433 isa_opts definitions to file scope.
6434 * config/i386/t-intelmic (omp-device-properties): New goal.
6435 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6436 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6437 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6438 nvptx_omp_device_kind_arch_isa.
6439 * configure: Regenerate.
6440 * doc/tm.texi: Regenerate.
6441
6442 PR middle-end/92231
6443 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6444 DECL_BUILT_IN in comment. Remove redundant ()s around return
6445 argument.
6446 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6447 before calling fndecl_built_in_p.
6448 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6449 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6450 fndecl_built_in_p on it.
6451
6452 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6453
6454 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6455
6456 2019-10-31 Martin Liska <mliska@suse.cz>
6457
6458 * config/arm/arm.c (arm_get_pcs_model): Remove usage
6459 of cgraph_local_info and use local_info_node instead.
6460 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6461 (bfin_function_ok_for_sibcall): Likewise.
6462 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6463 (must_reload_pic_reg_p): Likewise.
6464
6465 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6466
6467 PR c++/90947
6468 * tree.h (type_initializer_zero_p): Remove.
6469 * tree.c (type_initializer_zero_p): Remove.
6470
6471 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6472
6473 * doc/invoke.texi (-Wshadow, -Wshadow=global
6474 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6475
6476 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6477
6478 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6479 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6480 and 'target exit data'.
6481
6482 2019-10-30 Martin Jambor <mjambor@suse.cz>
6483
6484 ipa/92278
6485 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6486 availability comparison.
6487
6488 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6489
6490 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6491 calls to __mspabi_mpy* functions.
6492 * config/msp430/msp430.md (mulhisi3): New define_expand.
6493 (umulhisi3): New define_expand.
6494 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6495 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6496
6497 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6498
6499 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6500 (msp430_check_plus_not_high_mem): New.
6501 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6502 might be in low memory.
6503 Indicate that a 16-bit absolute address is in lower memory.
6504
6505 2019-10-30 Martin Jambor <mjambor@suse.cz>
6506
6507 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6508 ultimate_alias_target.
6509
6510 2019-10-30 Richard Biener <rguenther@suse.de>
6511
6512 PR tree-optimization/92275
6513 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6514 Copy all loop-closed PHIs.
6515
6516 2019-10-30 Martin Liska <mliska@suse.cz>
6517
6518 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6519 const_tree as function argument.
6520 (func_checker::compare_decl): Likewise.
6521 (func_checker::operand_equal_p): Likewise.
6522 (func_checker::compare_variable_decl): Likewise.
6523 (func_checker::parse_labels): Likewise.
6524 * ipa-icf-gimple.h: Likewise.
6525
6526 2019-10-30 Martin Liska <mliska@suse.cz>
6527
6528 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6529 Do not compare alias sets. It's handled by operand_equal_p.
6530
6531 2019-10-30 Martin Liska <mliska@suse.cz>
6532
6533 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6534 initialize m_compare_polymorphic.
6535 (func_checker::compare_decl): Do not compare polymorphic types.
6536 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6537 * ipa-icf.c (sem_function::equals_private): Do not call
6538 compare_polymorphic_p.
6539
6540 2019-10-30 Martin Liska <mliska@suse.cz>
6541
6542 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6543 compare_operand.
6544 (func_checker::compare_memory_operand): Remove.
6545 (func_checker::compare_cst_or_decl): Remove.
6546 (func_checker::operand_equal_valueize): Do not handle
6547 FIELD_DECL.
6548 (func_checker::compare_gimple_call): Call compare_operand.
6549 (func_checker::compare_gimple_assign): Likewise.
6550 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6551 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6552 * ipa-icf.h (icf_handled_component_p): Remove.
6553
6554 2019-10-30 Martin Liska <mliska@suse.cz>
6555
6556 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6557 (func_checker::compare_cst_or_decl): Remove handling
6558 of FIELD_DECL.
6559 (func_checker::compare_operand): Transform to ...
6560 (func_checker::operand_equal_p): ... this.
6561 * ipa-icf-gimple.h (class func_checker): Add
6562 operand_equal_p and hash_operand.
6563 * ipa-icf.c (sem_function::equals_private): Fix
6564 pushing and popping of cfun.
6565
6566 2019-10-30 Martin Liska <mliska@suse.cz>
6567
6568 * fold-const.c (operand_equal_p): Move to ...
6569 (operand_compare::operand_equal_p): ... here.
6570 (operand_compare::verify_hash_value): New.
6571 (add_expr): Move to ...
6572 (operand_compare::hash_operand): ... here.
6573 * fold-const.h (operand_equal_p): Move to the class.
6574 (class operand_compare): New.
6575 * tree.c (add_expr): Remove.
6576
6577 2019-10-30 Martin Liska <mliska@suse.cz>
6578
6579 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6580 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6581
6582 2019-10-30 Martin Liska <mliska@suse.cz>
6583
6584 PR lto/91393
6585 PR lto/88220
6586 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6587 from a first_clone in order to get proper LTO section
6588 in LTO stream.
6589 (cgraph_node::get_untransformed_body):
6590 Use lto_get_section_data where symtab_node::order
6591 must be provided.
6592 * cgraphclones.c (cgraph_node::find_replacement):
6593 Update also symbol order.
6594 * ipa-fnsummary.c (ipa_fn_summary_read):
6595 Use new function lto_get_summary_section_data.
6596 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6597 * ipa-icf.c (sem_item_optimizer::read_summary):
6598 Likewise.
6599 * ipa-prop.c (ipa_prop_read_jump_functions):
6600 Likewise.
6601 (ipcp_read_transformation_summaries): Likewise.
6602 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6603 * lto-cgraph.c (input_node): Add also order_base.
6604 (input_varpool_node): Likewise.
6605 (input_cgraph_1): Assign the order_base.
6606 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6607 * lto-opts.c (lto_write_options): Pass new argument.
6608 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6609 (lto_get_summary_section_data): New.
6610 (lto_get_raw_section_data): Add order argument.
6611 (lto_create_simple_input_block): Likewise.
6612 * lto-section-out.c (lto_destroy_simple_output_block):
6613 Likewise.
6614 * lto-streamer-in.c (lto_input_toplevel_asms):
6615 Use lto_get_summary_section_data.
6616 (lto_input_mode_table): Likewise.
6617 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6618 (lto_output_toplevel_asms): Pass new argument.
6619 (copy_function_or_variable): Likewise.
6620 (produce_lto_section):Likewise.
6621 (produce_symtab): Likewise.
6622 (lto_write_mode_table): Likewise.
6623 (produce_asm_for_decls): Likewise.
6624 * lto-streamer.c (lto_get_section_name): Concat symbol name
6625 and symbol order.
6626 * lto-streamer.h (lto_get_section_data): Add order argument.
6627 (lto_get_summary_section_data): New.
6628 (lto_get_raw_section_data): Add order argument.
6629 (lto_get_section_name): Likewise.
6630 * varpool.c (varpool_node::get_constructor): Pass order argument.
6631
6632 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6633
6634 PR tree-optimization/92262
6635 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6636 ubase or cbase here.
6637 (remove_unused_ivs): Unshare comp before using it.
6638
6639 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6640
6641 * ipa-prop.c (update_jump_functions_after_inlining):
6642 Watch for missing summaries.
6643
6644 2019-10-30 Richard Biener <rguenther@suse.de>
6645
6646 PR tree-optimization/65930
6647 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6648 chains also allow a leading and trailing conversion.
6649 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6650 intermediate reduction chains.
6651 (vect_analyze_slp_instance): Likewise. Build a SLP
6652 node for a trailing conversion manually.
6653
6654 2019-10-30 Martin Liska <mliska@suse.cz>
6655
6656 * cgraph.c (cgraph_node::local_info): Transform to ...
6657 (cgraph_node::local_info_node): ... this.
6658 (cgraph_node::dump): Remove cgraph_local_info and
6659 put its fields directly into cgraph_node.
6660 (cgraph_node::get_availability): Likewise.
6661 (cgraph_node::make_local): Likewise.
6662 (cgraph_node::verify_node): Likewise.
6663 * cgraph.h (struct GTY): Likewise.
6664 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6665 (duplicate_thunk_for_node): Likewise.
6666 (cgraph_node::create_clone): Likewise.
6667 (cgraph_node::create_virtual_clone): Likewise.
6668 (cgraph_node::create_version_clone): Likewise.
6669 * cgraphunit.c (cgraph_node::reset): Likewise.
6670 (cgraph_node::finalize_function): Likewise.
6671 (cgraph_node::add_new_function): Likewise.
6672 (analyze_functions): Likewise.
6673 * combine.c (setup_incoming_promotions): Likewise.
6674 * config/i386/i386.c (ix86_function_regparm): Likewise.
6675 (ix86_function_sseregparm): Likewise.
6676 (init_cumulative_args): Likewise.
6677 * ipa-cp.c (determine_versionability): Likewise.
6678 (count_callers): Likewise.
6679 (set_single_call_flag): Likewise.
6680 (initialize_node_lattices): Likewise.
6681 (estimate_local_effects): Likewise.
6682 (create_specialized_node): Likewise.
6683 (identify_dead_nodes): Likewise.
6684 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6685 (ipa_fn_summary_generate): Likewise.
6686 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6687 (process_hsa_functions): Likewise.
6688 * ipa-icf.c (set_local): Likewise.
6689 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6690 * ipa-inline.c (speculation_useful_p): Likewise.
6691 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6692 (ipa_profile): Likewise.
6693 * ipa-split.c (split_function): Likewise.
6694 (execute_split_functions): Likewise.
6695 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6696 (ipa_sra_ipa_function_checks): Likewise.
6697 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6698 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6699 * lto-cgraph.c (lto_output_node): Likewise.
6700 (input_overwrite_node): Likewise.
6701 * multiple_target.c (expand_target_clones): Likewise.
6702 * omp-simd-clone.c (simd_clone_create): Likewise.
6703 * trans-mem.c (expand_call_tm): Likewise.
6704 (ipa_tm_mayenterirr_function): Likewise.
6705 (ipa_tm_diagnose_tm_safe): Likewise.
6706 (ipa_tm_diagnose_transaction): Likewise.
6707 (ipa_tm_create_version): Likewise.
6708 (ipa_tm_transform_calls_redirect): Likewise.
6709 (ipa_tm_execute): Likewise.
6710 * tree-inline.c (expand_call_inline): Likewise.
6711
6712 2019-10-29 Martin Liska <mliska@suse.cz>
6713
6714 * symbol-summary.h (function_summary): Pass memory location
6715 to underlaying hash_map (or vec).
6716 (V>::fast_function_summary): Likewise.
6717
6718 2019-10-29 Martin Liska <mliska@suse.cz>
6719
6720 * ggc.h (ggc_alloc_no_dtor): New function.
6721 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6722 destructor and ggc_free.
6723 (ipa_free_size_summary): Call delete instead
6724 of release.
6725 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6726 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6727 (ipa_free_all_edge_args): Call destructor and ggc_free.
6728 (ipa_free_all_node_params): Likewise.
6729 (ipcp_free_transformation_sum): Likewise.
6730 * ipa-prop.h (ipa_check_create_node_params):
6731 Call new ggc_alloc_no_dtor.
6732 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6733 (ipa_sra_analysis): Call destructor and ggc_free.
6734 Replace release with delete operator.
6735 * symbol-summary.h (release): Remove ..
6736 (V>::~fast_function_summary): and move logic here.
6737 Likewise for other classes.
6738
6739 2019-10-29 Richard Biener <rguenther@suse.de>
6740
6741 PR tree-optimization/92260
6742 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6743 lane-reducing ops.
6744
6745 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6746
6747 PR tree-optimization/88915
6748 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6749 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6750 and make the valueize function pointer also take a void pointer.
6751 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6752 around vn_valueize, to call it without a context.
6753 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6754 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6755 (~_loop_vec_info): Release epilogue_vinfos.
6756 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6757 number of iterations of epilogue.
6758 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6759 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6760 versioning threshold needed for main loop.
6761 (vect_analyze_loop): Likewise.
6762 (find_in_mapping): New helper function.
6763 (update_epilogue_loop_vinfo): New function.
6764 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6765 on main loop and call update_epilogue_loop_vinfo to update it.
6766 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6767 stmts on loop preheader edge.
6768 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6769 we decided to vectorize epilogues. Update epilogues NITERS and
6770 construct ADVANCE to update epilogues data references where needed.
6771 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6772 (vect_do_peeling, vect_update_inits_of_drs,
6773 determine_peel_for_niter, vect_analyze_loop): Add or update
6774 declarations.
6775 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6776 created loop_vec_info's for epilogues when available. Otherwise analyse
6777 epilogue separately.
6778
6779 2019-10-29 Richard Biener <rguenther@suse.de>
6780
6781 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6782 example.
6783
6784 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6785
6786 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6787 index for the COND_EXPR from stmt_info rather than reduc_info.
6788
6789 2019-10-29 Richard Biener <rguenther@suse.de>
6790
6791 PR tree-optimization/65930
6792 * tree-vect-loop.c (check_reduction_path): Relax single-use
6793 check allowing out-of-loop uses.
6794 (vect_is_simple_reduction): SLP reduction chains cannot have
6795 intermediate stmts used outside of the loop.
6796 (vect_create_epilog_for_reduction): The adjustment might need
6797 to be converted.
6798 (vectorizable_reduction): Annotate live stmts of the reduction
6799 chain with STMT_VINFO_REDUC_DEF.
6800 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6801
6802 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6803
6804 * calls.c (pass_by_reference): Leave the target to decide whether
6805 POLY_INT_CST-sized arguments should be passed by value or reference,
6806 rather than forcing them to be passed by reference.
6807 (must_pass_in_stack_var_size): Likewise.
6808 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6809 V31_REGNUM to P15_REGNUM.
6810 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6811 Take an extra "silent_p" parameter, defaulting to false.
6812 (aarch64_sve::svbool_type_p): Declare.
6813 (aarch64_sve::nvectors_if_data_type): Likewise.
6814 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6815 (aarch64_frame::reg_offset): Turn into poly_int64s.
6816 (aarch64_frame::save_regs_size): Likewise.
6817 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6818 (aarch64_frame::sve_callee_adjust): Likewise.
6819 (aarch64_frame::spare_reg_reg): Likewise.
6820 (ARM_PCS_SVE): New arm_pcs value.
6821 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6822 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6823 (CUMULATIVE_ARGS::silent_p): Likewise.
6824 (BITS_PER_SVE_PRED): New macro.
6825 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6826 function. Reject aarch64_vector_pcs attributes on SVE functions.
6827 (aarch64_attribute_table): Use the above handler.
6828 (aarch64_sve_abi): New function.
6829 (aarch64_sve_argument_p): Likewise.
6830 (aarch64_returns_value_in_sve_regs_p): Likewise.
6831 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6832 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6833 descriptor for them.
6834 (aarch64_simd_decl_p): Delete.
6835 (aarch64_emit_cfi_for_reg_p): New function.
6836 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6837 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6838 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6839 as partly clobbered for the SVE PCS.
6840 (aarch64_function_ok_for_sibcall): Check whether the two functions
6841 use the same ABI, rather than checking specifically for whether
6842 they're aarch64_vector_pcs functions.
6843 (aarch64_pass_by_reference): Raise an error for attempts to pass
6844 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6845 if there are not enough free registers left, or if the argument is
6846 variadic.
6847 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6848 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6849 tuples in memory.
6850 (aarch64_layout_arg): Take a function_arg_info rather than
6851 individual properties. Handle SVE predicates, vectors and tuples.
6852 Raise an error if they are passed to unprototyped functions.
6853 (aarch64_function_arg): If the silent_p flag is set, suppress the
6854 usual error about using float registers without TARGET_FLOAT.
6855 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6856 it in the cumulative_args structure. Initialize aapcs_nprn and
6857 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6858 error about using float registers without TARGET_FLOAT.
6859 If the silent_p flag is not set, also raise an error about
6860 using SVE functions when SVE is disabled.
6861 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6862 and call it for SVE functions too. Update aapcs_nprn similarly
6863 to the other register counts.
6864 (aarch64_layout_frame): If a big-endian function needs to save
6865 and restore Z8-Z15, search for a spare predicate that it can use.
6866 Store SVE predicates at the bottom of the register save area,
6867 followed by SVE vectors, then followed by the normal slots.
6868 Keep pointing the hard frame pointer at the base of the normal slots,
6869 above the SVE vectors. Update the various frame creation and
6870 tear-down strategies for the new layout, initializing the new
6871 sve_callee_adjust field. Add an additional layout for frames
6872 whose saved registers are all SVE registers.
6873 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6874 (aarch64_return_address_signing_enabled): Likewise.
6875 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6876 aarch64_reg_save_mode.
6877 (aarch64_adjust_sve_callee_save_base): New function.
6878 (aarch64_add_cfa_expression): Move earlier in file. Take the
6879 saved register as an rtx rather than a register number and use
6880 its mode for the MEM slot.
6881 (aarch64_save_callee_saves): Remove the mode argument and instead
6882 use aarch64_reg_save_mode to get the mode of each save slot.
6883 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6884 offsets. Allow GP offsets to be saved at a VL-based offset from
6885 the stack, handling this case using the frame pointer if available
6886 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6887 big-endian SVE functions; use normal moves for other SVE saves.
6888 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6889 returns true. Add explicit CFA notes when not storing via the
6890 stack pointer. Do not try to pair SVE saves.
6891 (aarch64_restore_callee_saves): Cope with poly_int64 register
6892 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6893 use normal moves for other SVE restores. Only add CFA restore notes
6894 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6895 SVE restores.
6896 (aarch64_get_separate_components): Always keep the first SVE save
6897 in the prologue if we need to use it as a stack probe. Don't allow
6898 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6899 Likewise the spare predicate register that they need. Update the
6900 offset calculation to account for the SVE save area. Use the
6901 appropriate range check for SVE LDR and STR instructions.
6902 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6903 (aarch64_process_components): Likewise. Update the offset
6904 calculation to account for the SVE save area. Only mark the
6905 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6906 Do not try to pair SVE saves.
6907 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6908 reg_offsets. When handling the final allocation, expect the
6909 first SVE register save to be part of the initial allocation
6910 and for it to act as a probe at SP. Account for the SVE callee
6911 save area in the dump information.
6912 (aarch64_expand_prologue): Update the frame diagram. Fold the
6913 SVE callee allocation into the initial allocation if stack clash
6914 protection is enabled. Use new variables to track the offset
6915 of the frame chain (and hard frame pointer) from the current
6916 stack pointer, and likewise the offset of the bottom of the
6917 register save area. Update calls to aarch64_save_callee_saves
6918 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6919 saving the FP&SIMD registers. Save the predicate registers.
6920 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6921 into account when setting the stack pointer from the frame pointer,
6922 and when deciding whether we can inherit the initial adjustment
6923 amount from the prologue. Restore the predicate registers after
6924 the vector registers, then apply sve_callee_adjust, then restore
6925 the general registers.
6926 (aarch64_secondary_reload): Don't use secondary SVE reloads
6927 for VNx16BImode.
6928 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6929 (aarch64_short_vector_p): Return false for SVE types.
6930 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6931 at the start of the function. Return false for SVE types.
6932 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6933 functions too.
6934 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6935 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6936 to big-endian targets for bytewise moves.
6937 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6938
6939 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6940 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6941 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6942
6943 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6944 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6945 aarch64-sve-builtins-base.o to extra_objs. Add
6946 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6947 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6948 (aarch64-sve-builtins-shapes.o): Likewise.
6949 (aarch64-sve-builtins-base.o): New rules.
6950 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6951 (aarch64_resolve_overloaded_builtin): Likewise.
6952 (aarch64_check_builtin_call): Likewise.
6953 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6954 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6955 pragma.
6956 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6957 (aarch64_svprfop): New enum.
6958 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6959 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6960 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6961 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6962 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6963 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6964 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6965 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6966 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6967 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6968 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6969 (aarch64_sve::mangle_builtin_type): Likewise.
6970 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6971 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6972 (aarch64_sve::expand_builtin): Likewise.
6973 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6974 (aarch64_sve_int_mode): Likewise.
6975 (aarch64_ptrue_all_mode): New function.
6976 (aarch64_convert_sve_data_to_pred): Make public.
6977 (svprfop_token): New function.
6978 (aarch64_output_sve_prefetch): Likewise.
6979 (aarch64_fold_sve_cnt_pat): Likewise.
6980 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6981 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6982 instead of gen_while_ult.
6983 (aarch64_replace_reg_mode): Make public.
6984 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6985 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6986 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6987 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6988 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6989 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6990 (aarch64_sve_ptrue_svpattern_p): Likewise.
6991 (aarch64_sve_pred_valid_immediate): Check
6992 aarch64_sve_ptrue_svpattern_p.
6993 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6994 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6995 functions.
6996 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6997 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6998 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6999 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
7000 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
7001 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
7002 New unspecs.
7003 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
7004 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
7005 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
7006 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
7007 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
7008 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
7009 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
7010 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
7011 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
7012 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
7013 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
7014 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
7015 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
7016 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
7017 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
7018 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
7019 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
7020 (Vesize): Handle partial vector modes.
7021 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
7022 mode attributes.
7023 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
7024 iterators.
7025 (s, paired_extend, inc_dec): New code attributes.
7026 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
7027 (SVE_INT_UNARY): Add UNSPEC_RBIT.
7028 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
7029 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
7030 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
7031 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7032 UNSPEC_COND_FMULX.
7033 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
7034 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
7035 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7036 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
7037 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
7038 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
7039 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
7040 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
7041 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
7042 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
7043 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
7044 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
7045 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
7046 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
7047 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
7048 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
7049 UNSPEC_COND_FSCALE.
7050 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7051 (binqops_op, binqops_op_rev, last_op): New int attributes.
7052 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
7053 (fn, ab): New int attributes.
7054 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
7055 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
7056 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
7057 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
7058 UNSPEC_RBIT.
7059 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
7060 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
7061 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
7062 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
7063 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7064 UNSPEC_COND_FMULX.
7065 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
7066 (brk_reg_con, brk_reg_opno): New int attributes.
7067 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
7068 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
7069 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
7070 UNSPEC_COND_FMIN.
7071 (max_elem_bits): New int attribute.
7072 (min_elem_bits): Handle UNSPEC_RBIT.
7073 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
7074 TRUNCATE as well as SUBREG.
7075 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
7076 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
7077 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
7078 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
7079 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
7080 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
7081 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
7082 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
7083 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
7084 (aarch64_gather_scale_operand_h): New predicates.
7085 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
7086 (vgd, vgh, vgw, vsQ, vsS): New constraints.
7087 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
7088 (*aarch64_sve_reinterpret<mode>): Allow any source register
7089 instead of requiring an exact match.
7090 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
7091 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
7092 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
7093 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
7094 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
7095 (aarch64_update_ffrt): New patterns.
7096 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7097 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7098 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7099 (@aarch64_ld<fn>f1<mode>): New patterns.
7100 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7101 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7102 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7103 (@aarch64_ldnt1<mode>): New patterns.
7104 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7105 the scalar part of the address.
7106 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
7107 scalar part of the addresse and add an alternative for handling
7108 nonzero offsets.
7109 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7110 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
7111 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7112 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7113 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7114 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7115 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
7116 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
7117 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7118 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7119 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7120 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7121 (@aarch64_sve_prefetch<mode>): New patterns.
7122 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
7123 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
7124 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
7125 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
7126 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
7127 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7128 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7129 (@aarch64_stnt1<mode>): New patterns.
7130 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7131 the scalar part of the address.
7132 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
7133 the scalar part of the addresse and add an alternative for handling
7134 nonzero offsets.
7135 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7136 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
7137 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7138 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7139 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
7140 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
7141 New patterns.
7142 (vec_duplicate<mode>): Use QI as the mode of the input operand.
7143 (extract_last_<mode>): Generalize to...
7144 (@extract_<LAST:last_op>_<mode>): ...this.
7145 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
7146 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
7147 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
7148 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
7149 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
7150 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
7151 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
7152 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
7153 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
7154 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
7155 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
7156 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
7157 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
7158 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
7159 (*aarch64_adr_uxtw_unspec): Likewise.
7160 (*aarch64_adr_uxtw): Rename to...
7161 (*aarch64_adr_uxtw_and): ...this.
7162 (@aarch64_adr<mode>_shift): New expander.
7163 (*aarch64_adr_shift_sxtw): New pattern.
7164 (aarch64_<su>abd<mode>_3): Rename to...
7165 (@aarch64_pred_<su>abd<mode>): ...this.
7166 (<su>abd<mode>_3): Update accordingly.
7167 (@aarch64_cond_<su>abd<mode>): New expander.
7168 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
7169 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
7170 (*<su>mul<mode>3_highpart): Rename to...
7171 (@aarch64_pred_<optab><mode>): ...this.
7172 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
7173 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
7174 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
7175 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
7176 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
7177 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
7178 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
7179 (*v<ASHIFT:optab><mode>3): Rename to...
7180 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
7181 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
7182 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
7183 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
7184 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
7185 (@cond_asrd<mode>): New expander.
7186 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
7187 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
7188 (*sdiv_pow2<mode>3): Delete.
7189 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
7190 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
7191 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
7192 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
7193 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
7194 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
7195 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
7196 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
7197 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
7198 (*add<SVE_F:mode>3): Rename to...
7199 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
7200 for SVE_STRICT_GP.
7201 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
7202 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
7203 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
7204 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
7205 (*sub<SVE_F:mode>3): Rename to...
7206 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
7207 for SVE_STRICT_GP.
7208 (@aarch64_pred_abd<SVE_F:mode>): New expander.
7209 (*fabd<SVE_F:mode>3): Rename to...
7210 (*aarch64_pred_abd<SVE_F:mode>): ...this.
7211 (@aarch64_cond_abd<SVE_F:mode>): New expander.
7212 (*mul<SVE_F:mode>3): Rename to...
7213 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
7214 for SVE_STRICT_GP.
7215 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
7216 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
7217 to...
7218 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
7219 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
7220 (*<nlogical><PRED_ALL:mode>3): Rename to...
7221 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
7222 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
7223 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
7224 (*<logical_nn><PRED_ALL:mode>3): Rename to...
7225 (aarch64_pred_<logical_nn><mode>_z): ...this.
7226 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
7227 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
7228 (*fma<SVE_I:mode>4): Rename to...
7229 (@aarch64_pred_fma<SVE_I:mode>): ...this.
7230 (*fnma<SVE_I:mode>4): Rename to...
7231 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
7232 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
7233 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
7234 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
7235 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
7236 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
7237 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
7238 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
7239 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
7240 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
7241 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
7242 (@aarch64_sve_tmad<mode>): Likewise.
7243 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
7244 (*aarch64_sel_dup<mode>): Rename to...
7245 (@aarch64_sel_dup<mode>): ...this.
7246 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
7247 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
7248 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
7249 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
7250 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
7251 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
7252 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
7253 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
7254 (*fcm<cmp_op><mode>): Rename to...
7255 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
7256 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7257 (*fcmuo<mode>): Rename to...
7258 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
7259 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7260 (@aarch64_pred_fac<cmp_op><mode>): New expander.
7261 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
7262 (fold_extract_last_<mode>): Generalize to...
7263 (@fold_extract_<last_op>_<mode>): ...this.
7264 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
7265 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
7266 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
7267 DImode result explicit.
7268 (reduc_plus_scal_<mode>): Update accordingly.
7269 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
7270 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
7271 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
7272 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
7273 (*aarch64_sve_tbl<mode>): Rename to...
7274 (@aarch64_sve_tbl<mode>): ...this.
7275 (@aarch64_sve_compact<mode>): New pattern.
7276 (*aarch64_sve_dup_lane<mode>): Rename to...
7277 (@aarch64_sve_dup_lane<mode>): ...this.
7278 (@aarch64_sve_dupq_lane<mode>): New pattern.
7279 (@aarch64_sve_splice<mode>): Likewise.
7280 (aarch64_sve_<perm_insn><mode>): Rename to...
7281 (@aarch64_sve_<perm_insn><mode>): ...this.
7282 (*aarch64_sve_ext<mode>): Rename to...
7283 (@aarch64_sve_ext<mode>): ...this.
7284 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
7285 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
7286 to...
7287 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
7288 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7289 Rename to...
7290 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7291 ...this.
7292 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
7293 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
7294 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
7295 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
7296 to...
7297 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
7298 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
7299 a "@" marker.
7300 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
7301 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
7302 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
7303 pattern.
7304 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
7305 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
7306 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
7307 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
7308 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
7309 "@" marker.
7310 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
7311 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
7312 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
7313 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
7314 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
7315 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
7316 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
7317 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
7318 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
7319 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
7320 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
7321 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
7322 (aarch64_sve_cnt_pat): Likewise.
7323 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7324 (*aarch64_sve_incsi_pat): Likewise.
7325 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7326 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7327 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7328 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7329 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7330 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7331 (*aarch64_sve_decsi_pat): Likewise.
7332 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7333 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7334 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7335 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7336 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7337 (@aarch64_pred_cntp<mode>): Likewise.
7338 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7339 New expander.
7340 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7341 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7342 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7343 New expander.
7344 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7345 New pattern.
7346 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
7347 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7348 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
7349 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7350 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
7351 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7352 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7353 New expander.
7354 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7355 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7356 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7357 New expander.
7358 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7359 New pattern.
7360 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
7361 expander.
7362 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7363 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
7364 expander.
7365 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7366 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
7367 expander.
7368 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7369 * config/aarch64/arm_sve.h: New file.
7370 * config/aarch64/aarch64-sve-builtins.h: Likewise.
7371 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
7372 * config/aarch64/aarch64-sve-builtins.def: Likewise.
7373 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
7374 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
7375 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
7376 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
7377 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
7378 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
7379
7380 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7381
7382 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7383 New pattern.
7384 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7385 SVE modes.
7386
7387 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7388
7389 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7390 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7391 FFRT_REGNUM + 1.
7392 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7393 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7394 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7395 (aarch64_hard_regno_nregs): Handle the new register classes.
7396 (aarch64_hard_regno_mode_ok): Likewise.
7397 (aarch64_regno_regclass): Likewise.
7398 (aarch64_class_max_nregs): Likewise.
7399 (aarch64_register_move_cost): Likewise.
7400 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7401 as general register_operands.
7402
7403 2019-10-29 Martin Liska <mliska@suse.cz>
7404
7405 * ggc-common.c: One can't subtract unsigned types
7406 in compare function.
7407
7408 2019-10-29 Martin Liska <mliska@suse.cz>
7409
7410 * cgraphunit.c (symbol_table::compile): Pass
7411 title as dump_memory_report argument.
7412 * toplev.c (dump_memory_report): New argument.
7413 (finalize): Pass new argument.
7414 * toplev.h (dump_memory_report): Add argument.
7415
7416 2019-10-29 Martin Liska <mliska@suse.cz>
7417
7418 * ggc-common.c: Move Leak to the first column.
7419
7420 2019-10-29 Martin Liska <mliska@suse.cz>
7421
7422 * cgraphunit.c (symbol_table::compile): Remove argument
7423 for dump_memory_report.
7424 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7425 (compare_final): Remove in order to make report
7426 better readable.
7427 * ggc.h (dump_ggc_loc_statistics): Remove argument.
7428 * mem-stats.h (mem_alloc_description::get_list):
7429 Do not pass cmp.
7430 (mem_alloc_description::dump): Likewise here.
7431 * toplev.c (dump_memory_report): Remove final
7432 argument.
7433 (finalize): Likewise.
7434 * toplev.h (dump_memory_report): Remove argument.
7435
7436 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7437
7438 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7439 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7440 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7441 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7442 accept "const".
7443
7444 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7445
7446 * coretypes.h (string_int_pair): New typedef.
7447 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7448 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7449 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7450
7451 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7452
7453 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7454 (simulate_builtin_function_decl): Declare.
7455 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7456 (LANG_HOOKS_INITIALIZER): Include it.
7457 * langhooks.c (add_builtin_function_common): Rename to...
7458 (build_builtin_function): ...this. Add a location parameter and use
7459 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7460 the decl instead.
7461 (add_builtin_function): Update accordingly, passing the returned
7462 decl to the lang hook.
7463 (add_builtin_function_ext_scope): Likewise
7464 (simulate_builtin_function_decl): New function.
7465
7466 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7467
7468 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7469 example, use actual names of supported offload targets.
7470
7471 PR target/92258
7472 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7473
7474 2019-10-28 Martin Sebor <msebor@redhat.com>
7475
7476 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7477 (handle_store): Pass argument to get_addr_stridx.
7478
7479 2019-10-28 Martin Sebor <msebor@redhat.com>
7480
7481 PR tree-optimization/92226
7482 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7483 the offset is in the open range outlined by SI's length.
7484
7485 2019-10-28 Martin Sebor <msebor@redhat.com>
7486
7487 PR c/66970
7488 * doc/cpp.texi (__has_builtin): Document.
7489 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7490
7491 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7492
7493 PR target/82981
7494 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7495 doubleword and low doubleword result of multiplication on
7496 MIPS64R6.
7497
7498 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7499 pure qualifier to the built-in.
7500 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7501 built-ins.
7502 (struct mips_builtin_description): Add is_pure flag.
7503 (mips_init_builtins): Mark built-in as pure if the flag in the
7504 corresponding mips_builtin_description struct is set.
7505
7506 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7507 alternative which covers the floating-point input value. Also
7508 forbid the split of insert.d pattern for floating-point values.
7509
7510 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7511
7512 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7513 * config/riscv/riscv-sr.c: New file.
7514 * config/riscv/riscv.c (riscv_reorg): New function.
7515 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7516 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7517 (riscv_remove_unneeded_save_restore_calls): Declare.
7518 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7519
7520 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7521
7522 PR tree-optimization/92163
7523 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7524 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7525 before calling bitmap_set_bit.
7526 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7527 delete_dead_or_redundant_assignment.
7528 (dse_dom_walker::dse_optimize_stmt): Likewise.
7529 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7530
7531 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7532
7533 PR middle-end/91272
7534 * tree-vect-stmts.c (vectorizable_condition): Support
7535 EXTRACT_LAST_REDUCTION with fully-masked loops.
7536
7537 2019-10-28 Richard Biener <rguenther@suse.de>
7538
7539 PR tree-optimization/92252
7540 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7541 STMT_VINFO_REDUC_IDX when swapping operands.
7542
7543 2019-10-28 Richard Biener <rguenther@suse.de>
7544
7545 PR tree-optimization/92241
7546 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7547 we failed to update the reduction index do not use the pattern
7548 stmts for the reduction chain.
7549 (vectorizable_reduction): When the reduction chain is corrupt,
7550 fail.
7551 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7552 fail to update the reduction chain.
7553
7554 2019-10-28 Richard Biener <rguenther@suse.de>
7555
7556 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7557 STMT_VINFO_REDUC_IDX from the actual stmt.
7558 (vect_transform_reduction): Likewise.
7559 (vectorizable_reduction): Compute the reduction chain length,
7560 do not recompute the reduction operand index. Remove no longer
7561 necessary restriction for condition reduction chains.
7562
7563 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7564
7565 PR target/92225
7566 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7567 condition for V2DImode.
7568
7569 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7570
7571 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7572 Remove %k operand modifier.
7573 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7574
7575 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7576
7577 PR rtl-optimization/92007
7578 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7579 call it after reload if hot/cold partitioning has been done.
7580 (class pass_postreload_jump): Rename to
7581 pass_jump_after_combine.
7582 (make_pass_postreload_jump): Rename to
7583 make_pass_jump_after_combine.
7584 * passes.def(pass_postreload_jump): Move before reload, rename
7585 to pass_jump_after_combine.
7586 * tree-pass.h (make_pass_postreload_jump): Rename to
7587 make_pass_jump_after_combine.
7588
7589 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7590
7591 PR ipa/92242
7592 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7593 for missing EDGE_REF
7594 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7595
7596 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7597
7598 PR tree-optimization/88760
7599 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7600 Enable -funroll-loops for -O2 and above.
7601 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7602 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7603 do not turn on web and rngreg implicitly, if the unroller is not
7604 explicitly enabled.
7605
7606 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7607
7608 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7609 jump functions.
7610
7611 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7612
7613 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7614 * cgraph.h (cgraph_node::rtl_info): Likewise.
7615
7616 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7617
7618 * ipa-cp.c (propagate_constants_across_call): If args are not available
7619 just drop everything to varying.
7620 (find_aggregate_values_for_callers_subset): Watch for missing
7621 edge summary.
7622 (find_more_scalar_values_for_callers_subs): Likewise.
7623 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7624 update_jump_functions_after_inlining, propagate_controlled_uses):
7625 Watch for missing summaries.
7626 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7627 is finished.
7628 (ipa_write_node_info): Watch for missing summaries.
7629 (ipa_read_edge_info): Create new ref.
7630 (ipa_edge_args_sum_t): Add remove.
7631 (IPA_EDGE_REF_GET_CREATE): New macro.
7632 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7633 edge summary.
7634 (remap_edge_change_prob): Likewise.
7635
7636 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7637
7638 * ipa-inline-transform.c (inline_call): update function summaries
7639 after expanidng thunk.
7640
7641 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7642
7643 * ipa-icf.c (sem_function::merge): Update function summaries.
7644 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7645
7646 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7647
7648 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7649 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7650 operand already has scalar mode.
7651 (iptr): Remove SF/DF.
7652
7653 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7654
7655 PR target/91289
7656 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7657 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7658 this.
7659
7660 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7661
7662 * config/i386/sse.md
7663 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7664 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7665 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7666 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7667 <sse>_vmmaskcmp<mode>3):
7668 Change predicates from vector_operand to nonimmediate_operand,
7669 constraints xBm to xm, since scalar operations don't need
7670 memory address alignment.
7671 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7672 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7673 round_saeonly_nimm_predicate with
7674 round_saeonly_nimm_scalar_predicate.
7675 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7676 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7677 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7678 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7679 avx512f_vmfmadd_<mode>_mask3<round_name>,
7680 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7681 *avx512f_vmfmsub_<mode>_mask<round_name>,
7682 avx512f_vmfmsub_<mode>_mask3<round_name>,
7683 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7684 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7685 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7686 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7687 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7688 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7689 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7690 cvtusi2<ssescalarmodesuffix>32<round_name>,
7691 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7692 round_nimm_predicate with round_nimm_scalr_predicate.
7693 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7694 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7695 avx512er_vmrcp28<mode><round_saeonly_name>,
7696 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7697 ): Replace round_saeonly_nimm_predicate with
7698 round_saeonly_nimm_scalar_predicate.
7699 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7700 vector_operand with nonimmediate_operand.
7701 * config/i386/subst.md (round_scalar_nimm_predicate,
7702 round_saeonly_scalar_nimm_predicate): Replace
7703 vector_operand with nonimmediate_operand.
7704
7705 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7706
7707 PR target/89071
7708 * config/i386/i386.md (*rcpsf2_sse): Add
7709 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7710 (*rsqrtsf2_sse): Ditto.
7711 (*sqrt<mode>2_sse): Ditto.
7712 (sse4_1_round<mode>2): separate constraint vm, add
7713 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7714 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7715 by pass rpad.
7716 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7717 Ditto.
7718 (*sse_vmrsqrtv4sf2): Ditto.
7719 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7720 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7721 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7722 <iptr> pointer size modifier since vround support memory operand.
7723
7724 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7725
7726 PR target/85969
7727 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7728 static function.
7729
7730 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7731 Tobias Burnus <tobias@codesourcery.com>
7732
7733 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7734 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7735 common block decls.
7736
7737 2019-10-25 Richard Biener <rguenther@suse.de>
7738
7739 PR tree-optimization/92222
7740 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7741 (_slp_oprnd_info::second_pattern): Likewise.
7742 (_slp_oprnd_info::any_pattern): New.
7743 (vect_create_oprnd_info): Adjust.
7744 (vect_get_and_check_slp_defs): Compute whether any stmt is
7745 in a pattern.
7746 (vect_build_slp_tree_2): Avoid building up a node from scalars
7747 if any of the operand defs, not just the first, is in a pattern.
7748
7749 2019-10-25 Richard Biener <rguenther@suse.de>
7750
7751 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7752 swapping if we actually have to modify the IL on a shared stmt.
7753 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7754 because we no longer modify the IL.
7755
7756 2019-10-25 Martin Liska <mliska@suse.cz>
7757
7758 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7759
7760 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7761
7762 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7763 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7764 handled by vect_transform_reduction. Allow fully-masked loops
7765 to be used with reduction chains.
7766 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7767 operations in fully-masked loops.
7768 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7769 operations in fully-masked loops.
7770
7771 2019-10-25 Richard Biener <rguenther@suse.de>
7772
7773 * tree-vect-loop.c (vectorizable_reduction): Verify
7774 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7775 correctly.
7776 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7777 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7778 stmts.
7779
7780 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7781
7782 * gimplify.h (omp_construct_selector_matches): Declare.
7783 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7784 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7785 called function if needed for flag_openmp.
7786 (gimplify_scan_omp_clauses): Set ctx->code.
7787 (omp_construct_selector_matches): New function.
7788 * omp-general.h (omp_constructor_traits_to_codes,
7789 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7790 * omp-general.c (omp_constructor_traits_to_codes,
7791 omp_context_selector_matches, omp_resolve_declare_variant): New
7792 functions.
7793
7794 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7795 literal.
7796 * config/rx/rx.c (rx_print_operand): Likewise.
7797 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7798 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7799 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7800 Likewise.
7801 * genemit.c (emit_c_code): Likewise.
7802 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7803
7804 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7805
7806 * symbols-summary.h (fast_function_summary<T *, V>::release,
7807 fast_call_summary<T *, V>::release): Free m_vector.
7808
7809 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7810
7811 * cgraphunit.c (symbol_table::process_new_functions): Call
7812 ipa_free_size_summary.
7813 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7814 (devirtualization_time_bonus): Update.
7815 (ipcp_propagate_stage): Update.
7816 * ipa-fnsummary.c (ipa_size_summaries): New.
7817 (ipa_fn_summary_alloc): Alloc size summary.
7818 (dump_ipa_call_summary): Update.
7819 (ipa_dump_fn_summary): Update.
7820 (analyze_function_body): Update.
7821 (compute_fn_summary): Likewise.
7822 (ipa_get_stack_frame_offset): New function.
7823 (inline_update_callee_summaries): Do not update frame offsets.
7824 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7825 remove call and function summary.
7826 (ipa_update_overall_fn_summary): Update.
7827 (inline_read_section): Update.
7828 (ipa_fn_summary_write): Update.
7829 (ipa_free_fn_summary): Do not remove summaries.
7830 (ipa_free_size_summary): New.
7831 (release summary pass): Also run at WPA.
7832 * ipa-fnsummary.h (ipa_size_summary): Declare.
7833 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7834 estimated_self_stack_size.
7835 (ipa_size_summary_t): New type.
7836 (ipa_size_summaries): Declare.
7837 (ipa_free_size_summary): Declare.
7838 (ipa_get_stack_frame_offset): Declare.
7839 * ipa-icf.c (sem_function::merge): Update.
7840 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7841 (estimate_growth): Update.
7842 (growth_likely_positive): Update.
7843 (clone_inlined_nodes): Update.
7844 (inline_call): Update.
7845 * ipa-inline.c (caller_growth_limits): Update.
7846 (edge_badness): Update.
7847 (recursive_inlining): Update.
7848 (inline_small_functions): Update.
7849 (inline_to_all_callers_1): Update.
7850 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7851
7852 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7853
7854 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7855 (uavg<mode>3_ceil): ... This.
7856 (altivec_vavgs<VI_char>): Rename to...
7857 (avg<mode>3_ceil): ... This.
7858 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7859 VAVGUW, VAVGSW): Adjust.
7860
7861 2019-10-24 Nathan Sidwell <nathan@acm.org>
7862
7863 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7864
7865 2019-10-24 Martin Liska <mliska@suse.cz>
7866
7867 * symbol-summary.h (gt_pch_nx): Mark all functions
7868 with gcc_unreachable as we do not expect to be called.
7869
7870 2019-10-24 Richard Biener <rguenther@suse.de>
7871
7872 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7873 chains try harder with operand swapping and instead of
7874 putting a shifted chain into the reduction operands put
7875 a repetition of the final reduction op there as if we'd
7876 reassociate the expression.
7877
7878 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7879
7880 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7881 statics_not_read and statics_not_written to statics_read and
7882 statics_written respectively.
7883 (no_module_statics): New static var.
7884 (ipa_reference_get_not_read_global): Rename to ...
7885 (ipa_reference_get_read_global): ... this.
7886 (ipa_reference_get_not_written_global): Rename to ...
7887 (ipa_reference_get_written_global): ... this.
7888 (dump_static_vars_set_to_file): Dump no_module_statics.
7889 (copy_static_var_set): Add for propagation parameter.
7890 (ipa_init): Initialize no_module_statics.
7891 (ipa_ref_opt_summary_t::duplicate): Update.
7892 (ipa_ref_opt_summary_t::remove): Update.
7893 (propagate): Update.
7894 (write_node_summary_p): Look correctly for bitmap differences.
7895 (ipa_reference_write_optimization_summary): Update.
7896 (ipa_reference_read_optimization_summary): Update.
7897 * ipa-reference.h
7898 (ipa_reference_get_not_read_global): Rename to ...
7899 (ipa_reference_get_read_global): ... this.
7900 (ipa_reference_get_not_written_global): Rename to ...
7901 (ipa_reference_get_written_global): ... this.
7902 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7903 (call_may_clobber_ref_p_1): Update.
7904
7905 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7906
7907 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7908 and add comment.
7909 (msp430_hard_regno_nregs_with_padding): Remove.
7910
7911 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7912
7913 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7914 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7915 shift amount is between 1 and 4.
7916 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7917 is between 1 and 4.
7918
7919 2019-10-24 Richard Biener <rguenther@suse.de>
7920
7921 PR tree-optimization/92205
7922 * tree-vect-loop.c (vectorizable_reduction): Restrict
7923 search for alternate vectype_in to lane-reducing patterns
7924 we support.
7925
7926 2019-10-24 Richard Biener <rguenther@suse.de>
7927
7928 PR tree-optimization/92203
7929 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7930 Skip eliminating conversion stmts inserted by insertion.
7931
7932 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7933
7934 * config/s390/s390.c (s390_get_thread_pointer): Use
7935 gen_get_thread_pointer.
7936 (s390_expand_split_stack_prologue): Likewise.
7937 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7938 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7939 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7940 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7941 parameterized name.
7942
7943 2019-10-24 Richard Biener <rguenther@suse.de>
7944
7945 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7946 SLP discovery fails try to handle the reduction as part
7947 of SLP reduction discovery.
7948
7949 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7950
7951 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7952 declaration.
7953 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7954 attribute if it exists, rather than the insn size. If we use the
7955 insn size, adjust the size to remove the extra size that prefixed
7956 instructions take.
7957 (rs6000_adjust_insn_length): New function.
7958 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7959 update the instruction sized if prefixed instructions are used.
7960 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7961 (non_prefixed_length attribute): Delete.
7962 (num_insns attribute): New insn attribute to return the number of
7963 instructions.
7964 (max_prefixed_insns attribute): New insn attribute to return the
7965 maximum number of prefixed instructions in an insn.
7966 (length attribute): Do not adjust for prefix instructions here,
7967 punt to ADJUST_INSN_LENGTH.
7968 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7969 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7970 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7971 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7972 max_prefixed_insns and num_insns.
7973
7974 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7975 (movtd_64bit_nodm): Reformat.
7976 (mov<mode>_32bit): Reformat.
7977 (mov<mode>_softfloat): Reformat.
7978 (FMOVE128_GPR splitter): Reformat.
7979 (DIFD splitter): Reformat.
7980 (TI2 splitter): Reformat.
7981 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7982 bits of the offset for the memory address are non-zero, use PLWA
7983 if prefixed instructions are available.
7984
7985 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7986
7987 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7988
7989 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7990
7991 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7992 previous patch.
7993
7994 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7995
7996 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7997 (cmp_symbol_files): New.
7998 (lto_output): Copy sections in file order.
7999 * lto-streamer.h (lto_file_decl_data): Add field order.
8000
8001 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8002
8003 * ipa-reference.h (ipa_reference_var_uid): Move offline.
8004 * ipa-reference.c (reference_vars_map_t): new type.
8005 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
8006 (ipa_reference_var_uid): Implement.
8007 (varpool_node_hooks): New static var.
8008 (varpool_removal_hook): New function.
8009 (is_improper): Do not check bitmap for id==-1
8010 (get_static_name): Update.
8011 (ipa_init): Initialize new datastructures.
8012 (analyze_function): Do not recompute ids.
8013 (propagate): Free reference_vars_to_consider.
8014 (stream_out_bitmap): Update.
8015 (ipa_reference_read_optimization_summary): Update.
8016
8017 2019-10-23 qing zhao <qing.zhao@oracle.com>
8018
8019 PR gcov-profile/91971
8020 * coverage.c (coverage_init): Mangle the full path of filename when
8021 filename is a absolute path.
8022
8023 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8024
8025 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
8026 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
8027 (msp430_has_hwmult): New.
8028 (msp430_output_labelref):
8029 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
8030 * config/msp430/msp430.md (mulhisi3): Likewise.
8031 (umulhisi3): Likewise.
8032 (mulsidi3): Likewise.
8033 (umulsidi3): Likewise.
8034
8035 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8036
8037 PR ipa/92074
8038 * params.def (inline-heuristics-hint-percent): Set to 600.
8039
8040 2019-10-23 Richard Biener <rguenther@suse.de>
8041
8042 PR tree-optimization/65930
8043 * tree-vect-loop.c (check_reduction_path): Allow conversions
8044 that only change the sign.
8045 (vectorizable_reduction): Relax latch def stmts we handle further.
8046
8047 2019-10-23 Jakub Jelinek <jakub@redhat.com>
8048
8049 PR debug/90231
8050 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
8051 (remove_unused_ivs): Use it instead of get_computation_at. When
8052 choosing best candidate, only consider candidates where
8053 get_debug_computation_at actually returns non-NULL.
8054
8055 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
8056
8057 PR tree-optimization/92131
8058 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
8059 range would be symbolic, drop to varying for any explicit overflow
8060 in the constant part or if neither range is a singleton.
8061
8062 2019-10-23 Martin Liska <mliska@suse.cz>
8063
8064 PR middle-end/81669
8065 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
8066 Initialize m_data.
8067
8068 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
8069
8070 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
8071 int_mode_for_mode rather than mode_for_int_vector for scalars.
8072
8073 2019-10-23 Richard Biener <rguenther@suse.de>
8074
8075 PR tree-optimization/92179
8076 * tree-vect-stmts.c (vectorizable_shift): For shift args
8077 that are all the same remove type restriction in the SLP case.
8078 Adjust SLP code to handle converting of the shift arg to
8079 only apply in case the modes are different.
8080
8081 2019-10-23 Martin Liska <mliska@suse.cz>
8082
8083 PR ipa/91969
8084 * ipa-inline.c (recursive_inlining): Do not print
8085 when curr->count is not initialized.
8086
8087 2019-10-23 Richard Biener <rguenther@suse.de>
8088
8089 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
8090 op from scalars in case there's a constant operand in its
8091 definition.
8092
8093 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
8094
8095 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
8096 against out of range max skip or log values.
8097
8098 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
8099
8100 * cgraph.c (dump_graphviz): Change name to dump_name
8101
8102 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8103
8104 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
8105 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8106 subtraction from a carry operation.
8107
8108 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8109
8110 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
8111
8112 2019-10-22 Richard Biener <rguenther@suse.de>
8113
8114 PR tree-optimization/92173
8115 * tree-vect-loop.c (vectorizable_reduction): If
8116 vect_transform_reduction cannot handle code-generation try without
8117 the single-def-use-cycle optimization. Pass optab_vector to
8118 optab_for_tree_code to get vector shifts as that's what we'd
8119 generate.
8120
8121 2019-10-22 Michael Matz <matz@suse.de>
8122
8123 PR middle-end/90796
8124 * gimple-loop-jam.c (any_access_function_variant_p): New function.
8125 (adjust_unroll_factor): Use it to constrain safety, new parameter.
8126 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
8127
8128 2019-10-22 Richard Biener <rguenther@suse.de>
8129
8130 PR tree-optimization/92173
8131 * tree-vect-loop.c (vectorizable_reduction): If
8132 vect_transform_reduction cannot handle code-generation try without
8133 the single-def-use-cycle optimization. Pass optab_vector to
8134 optab_for_tree_code to get vector shifts as that's what we'd
8135 generate.
8136
8137 2019-10-22 Martin Liska <mliska@suse.cz>
8138
8139 * diagnostic-format-json.cc (json_from_expanded_location):
8140 Use json::integer_number.
8141 * gcov.c (output_intermediate_json_line): Use new
8142 json::integer_number.
8143 (output_json_intermediate_file): Likewise.
8144 * json.cc (number::print): Move to ...
8145 (float_number::print): ... this.
8146 (integer_number::print): New.
8147 (test_writing_numbers): Move to ...
8148 (test_writing_float_numbers): ... this.
8149 (test_writing_integer_numbers): New.
8150 (json_cc_tests): Register test_writing_integer_numbers.
8151 * json.h (class value): Add forward declaration
8152 for float_number and integer_number.
8153 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
8154 (class number): Move to ...
8155 (class float_number): ... this.
8156 (class integer_number): New.
8157 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
8158 Use json::integer_number.
8159 (optrecord_json_writer::location_to_json): Likewise.
8160 (optrecord_json_writer::profile_count_to_json): Likewise.
8161 (optrecord_json_writer::pass_to_json): Likewise.
8162
8163 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
8164
8165 * tree-vect-slp.c (vect_slp_bb_region): Check whether
8166 autodetected_vector_size rather than vector_size is zero.
8167 * tree-vect-loop.c (vect_analyze_loop): Likewise.
8168 Set autodetected_vector_size immediately after calling
8169 vect_analyze_loop_2. Check for a fatal error before advancing
8170 next_size.
8171
8172 2019-10-21 Jason Merrill <jason@redhat.com>
8173
8174 * lock-and-run.sh: Check for process existence rather than timeout.
8175
8176 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8177
8178 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
8179 widening multiplication.
8180
8181 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
8182
8183 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
8184 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
8185 type attribute.
8186 (subsi3_carryin_shift): Separate into register and constant controlled
8187 alternatives. Use shift_amount_operand for operand 4. Set shift
8188 attribute and simplify type attribute.
8189 (subsi3_carryin_shift_alt): Likewise.
8190 (rsbsi3_carryin_shift): Likewise.
8191 (rsbsi3_carryin_shift_alt): Likewise.
8192 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
8193 and register controlled shifts into distinct alternatives.
8194 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
8195 (andsi_not_shiftsi_si_scc): Likewise.
8196 (arm_cmpsi_negshiftsi_si): Likewise.
8197 (not_shiftsi): Remove redundant M constraint from alternative 1.
8198 (not_shiftsi_compare0): Likewise.
8199 (arm_cmpsi_insn): Remove redundant alternative 2.
8200 (cmpsi_shift_swp): Likewise.
8201 (sub_shiftsi): Likewise.
8202 (sub_shiftsi_compare0_scratch): Likewise.
8203 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
8204 (thumb2_cmpsi_neg_shiftsi): Likewise.
8205
8206 2019-10-21 Richard Biener <rguenther@suse.de>
8207
8208 PR tree-optimization/92162
8209 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
8210 STMT_VINFO_REDUC_IDX in reduc_info.
8211 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8212
8213 2019-10-21 Richard Biener <rguenther@suse.de>
8214
8215 * tree-vectorizer.h (_slp_tree::ops): New member.
8216 (SLP_TREE_SCALAR_OPS): New.
8217 (vect_get_slp_defs): Adjust prototype.
8218 * tree-vect-slp.c (vect_free_slp_tree): Release
8219 SLP_TREE_SCALAR_OPS.
8220 (vect_create_new_slp_node): Initialize it. New overload for
8221 initializing by an operands array.
8222 (_slp_oprnd_info::ops): New member.
8223 (vect_create_oprnd_info): Initialize it.
8224 (vect_free_oprnd_info): Release it.
8225 (vect_get_and_check_slp_defs): Populate the operands array.
8226 Do not swap operands in the IL when not necessary.
8227 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
8228 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
8229 swap operands in the operands array. Do not swap operands in
8230 the IL.
8231 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
8232 (vect_gather_slp_loads): Fix.
8233 (vect_detect_hybrid_slp_stmts): Likewise.
8234 (vect_slp_analyze_node_operations_1): Search for a internal
8235 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
8236 (vect_slp_analyze_node_operations): Skip ops-only stmts for
8237 the def-type push/pop dance.
8238 (vect_get_constant_vectors): Compute number_of_vectors here.
8239 Use SLP_TREE_SCALAR_OPS and simplify greatly.
8240 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
8241 (vect_get_slp_defs): Simplify greatly.
8242 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
8243 (vect_transform_reduction): Likewise.
8244 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
8245 (vectorizable_call): Likewise.
8246 (vectorizable_operation): Likewise.
8247 (vectorizable_load): Likewise.
8248 (vectorizable_condition): Likewise.
8249 (vectorizable_comparison): Likewise.
8250
8251 2019-10-21 Richard Biener <rguenther@suse.de>
8252
8253 PR tree-optimization/92161
8254 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
8255 for reductions.
8256
8257 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8258
8259 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
8260 (aarch64_rndr): New define_insn.
8261 (aarch64_rndrrs): Likewise.
8262 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
8263 (TARGET_RNG): Likewise.
8264 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
8265 argument.
8266 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
8267 Add fourth argument in prototype.
8268 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
8269 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
8270 (aarch64_init_rng_builtins): Define.
8271 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
8272 (aarch64_expand_rng_builtin): Define.
8273 (aarch64_general_expand_builtin): Use IGNORE argument, handle
8274 RNG builtins.
8275 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8276 __ARM_FEATURE_RNG when TARGET_RNG.
8277 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
8278
8279 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
8280
8281 * tree-vect-stmts (ensure_base_align): Only change alignment if new
8282 alignment is more restrictive.
8283
8284 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8285
8286 * tree-vectorizer.h (vec_info::vector_size): New member variable.
8287 (vect_update_max_nunits): Update comment.
8288 (current_vector_size): Delete.
8289 * tree-vect-stmts.c (current_vector_size): Likewise.
8290 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
8291 of current_vector_size.
8292 (get_mask_type_for_scalar_type): Likewise.
8293 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
8294 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
8295 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
8296 (vect_double_mask_nunits, vect_transform_loop): Likewise.
8297 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8298 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
8299
8300 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8301
8302 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
8303 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
8304 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
8305 accordingly.
8306
8307 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8308
8309 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
8310 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
8311 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
8312 call accordingly.
8313 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8314
8315 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8316
8317 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
8318 a loop_vec_info.
8319 (vect_set_loop_condition_masked): Update call accordingly.
8320
8321 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8322
8323 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
8324 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
8325 (simple_integer_narrowing): Update call accordingly.
8326 (vectorizable_conversion): Likewise.
8327
8328 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8329
8330 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
8331 (vectorizable_call): Update call accordingly.
8332
8333 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8334
8335 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
8336 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8337 (duplicate_and_interleave): Update call accordingly.
8338 * tree-vect-loop.c (vectorizable_reduction): Likewise.
8339
8340 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8341
8342 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
8343 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
8344 (vect_get_constant_vectors): Update call accordingly.
8345 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
8346
8347 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8348
8349 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
8350 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
8351 (vect_prologue_cost_for_slp_op): Update call accordingly.
8352 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
8353 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
8354 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
8355 (get_mask_type_for_scalar_type): Likewise.
8356 (vect_get_vector_types_for_stmt): Likewise.
8357 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8358 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8359 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
8360 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
8361 (vect_split_statement, vect_convert_input): Likewise.
8362 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
8363 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
8364 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
8365 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
8366 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
8367 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
8368 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
8369 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
8370 (vect_recog_mask_conversion_pattern): Likewise.
8371 (vect_add_conversion_to_pattern): Likewise.
8372 (vect_recog_gather_scatter_pattern): Likewise.
8373 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
8374 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
8375
8376 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8377
8378 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
8379 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
8380 (vect_check_load_store_mask): Update call accordingly.
8381 (vect_get_mask_type_for_stmt): Likewise.
8382 * tree-vect-patterns.c (check_bool_pattern): Likewise.
8383 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8384 (vect_convert_mask_for_vectype): Likewise.
8385
8386 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8387
8388 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8389 a vec_info.
8390 (vect_recog_dot_prod_pattern): Update call accordingly.
8391 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8392 (vect_recog_widen_sum_pattern): Likewise.
8393
8394 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8395
8396 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8397 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8398 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8399 accordingly.
8400
8401 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8402
8403 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8404 get_vectype_for_scalar_type_and_size instead of
8405 get_vectype_for_scalar_type.
8406
8407 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8408
8409 * common.opt (-fcommon): Fix description.
8410
8411 2019-10-20 Jakub Jelinek <jakub@redhat.com>
8412
8413 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8414 * config/i386/i386.c (ix86_pre_reload_split): New function.
8415 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8416 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8417 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8418 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8419 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8420 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8421 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8422 *<shift_insn><dwi>3_doubleword_mask,
8423 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8424 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8425 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8426 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8427 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8428 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8429 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8430 *avx2_<code>v8qiv8si2<mask_name>_2,
8431 *sse4_1_<code>v4qiv4si2<mask_name>_2,
8432 *sse4_1_<code>v4hiv4si2<mask_name>_2,
8433 *avx512f_<code>v8qiv8di2<mask_name>_2,
8434 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8435 *sse4_1_<code>v2hiv2di2<mask_name>_2,
8436 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8437 sse4_2_pcmpistr): Likewise.
8438
8439 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
8440
8441 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8442 now defaults to https.
8443
8444 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
8445
8446 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8447 skip non-zero array accesses.
8448
8449 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8450
8451 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8452 and return a boolean success value. Move the allocation and
8453 initialization of the bb_vec_info to...
8454 (vect_slp_bb_region): ...here. Update call accordingly.
8455 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8456 than in vect_slp_analyze_bb_1.
8457
8458 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8459
8460 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8461 when processing the given datarefs for the first time and
8462 check_datarefs subsequently.
8463 (vect_slp_bb_region): New function, split out of...
8464 (vect_slp_bb): ...here. Don't recompute the region bounds and
8465 dataref sets when retrying with a different vector size.
8466
8467 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8468 Uroš Bizjak <ubizjak@gmail.com>
8469
8470 PR target/92140
8471 * config/i386/predicates.md (int_nonimmediate_operand): New special
8472 predicate.
8473 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8474 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8475 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8476 define_insn_and_split patterns.
8477
8478 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8479
8480 * config/rs6000/rs6000.md: Delete out--of-date comment about
8481 special-casing integer loads.
8482
8483 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8484
8485 * escaped_string.h (escaped_string): New header.
8486 * tree.c (escaped_string): Remove escaped_string class.
8487
8488 2019-10-18 Martin Sebor <msebor@redhat.com>
8489
8490 PR tree-optimization/92157
8491 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8492 compute_string_length to return a negative result.
8493
8494 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8495
8496 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8497 (negvsi3, negvdi3): Delete.
8498 (negdi2_compare): Delete.
8499
8500 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8501
8502 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8503 operations.
8504 (subdi3_compare1): Delete pattern.
8505 (subvsi3_borrow): New insn pattern.
8506 (subvsi3_borrow_imm): Likewise.
8507
8508 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8509
8510 * config/arm/arm.md (subv<mode>4): Delete.
8511 (subvdi4): New expander pattern.
8512 (subvsi4): Likewise. Handle some immediate values.
8513 (subvsi3_intmin): New insn pattern.
8514 (subvsi3): Likewise.
8515 (subvsi3_imm1): Likewise.
8516 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8517 idioms.
8518
8519 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8520
8521 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8522 incoming operands. Early split the calculation into SImode
8523 operations.
8524 (usubvsi3_borrow): New insn pattern.
8525 (usubvsi3_borrow_imm): Likewise.
8526
8527 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8528
8529 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8530 (usubvsi4): New pattern. Allow some immediate values for inputs.
8531 (usubvdi4): New pattern.
8532
8533 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8534
8535 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8536 or second operand of the PLUS inside a DImode equality test to be
8537 sign-extend when selecting CC_Vmode.
8538 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8539 instructions.
8540 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8541 expand patterns.
8542 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8543 (addsi3_cin_vout_0): Likewise.
8544 (adddi3_compareV): Delete.
8545
8546 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8547
8548 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8549 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8550 to transform this back into the summation version when that leads
8551 to smaller code.
8552
8553 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8554
8555 * config/arm/arm.md (addv<mode>4): Delete.
8556 (addvsi4): New pattern. Handle immediate values that the architecture
8557 supports.
8558 (addvdi4): New pattern.
8559 (addsi3_compareV): Rename to ...
8560 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8561 and use COMPARE rather than NE.
8562 (addsi3_compareV_imm): New pattern.
8563 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8564 a signed-overflow check.
8565
8566 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8567
8568 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8569 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8570 CC_ADCmode.
8571 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8572 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8573 with overflow.
8574 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8575 expand patterns.
8576 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8577 (addsi3_cin_cout_imm_insn): Likewise.
8578 (adddi3_compareC): Delete insn.
8579 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8580
8581 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8582
8583 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8584 * (uaddv<mode>4): Delete expansion pattern.
8585 (uaddvsi4): New pattern.
8586 (uaddvdi4): Likewise.
8587 (addsi3_compareC): Delete pattern, change callers to use
8588 addsi3_compare_op1.
8589 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8590 reduce the number of alternatives and re-work type attribute handling.
8591 (addsi3_compare_op2): Clean up constraints to reduce the number of
8592 alternatives and re-work type attribute handling.
8593 (compare_addsi2_op0): Likewise.
8594 (compare_addsi2_op1): Likewise.
8595
8596 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8597
8598 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8599 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8600 for DImode operands.
8601 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8602 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8603 CC_NCVmode.
8604 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8605 (arm_cmpdi_unsigned): Delete.
8606
8607 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8608
8609 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8610 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8611 unchanged only if that will be cheaper.
8612 (arm_select_cc_mode): Recognize a swapped comparison that will
8613 be regenerated using RSBS or RSCS. Relax restriction on selecting
8614 CC_RSBmode.
8615 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8616 a constant.
8617 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8618 is CC_RSBmode.
8619 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8620 as CCmode.
8621 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8622 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8623
8624 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8625
8626 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8627 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8628 need these modes.
8629 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8630 of EQ, NE, LT, GE, LTU and GEU.
8631 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8632 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8633 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8634 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8635 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8636
8637 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8638
8639 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8640 operand 2.
8641 (cstoredi4): Similarly, but for operand 3.
8642 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8643 canonicalization of unsigned compares with a constant on Arm.
8644 Prefer using const+1 and adjusting the comparison over swapping the
8645 operands whenever the original constant was not valid.
8646 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8647 register here.
8648 (arm_validize_comparison): Do not force invalid DImode operands to
8649 registers here.
8650
8651 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8652
8653 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8654 return CC_Zmode if comparing against a constant where one word is
8655 zero.
8656 (arm_gen_compare_reg): Split DImode handling to ...
8657 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8658 against simple constants.
8659 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8660
8661 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8662
8663 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8664 (rsbsi3_carryin_shift_alt): Likewise.
8665
8666 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8667
8668 * config/arm/arm.md (negscc_borrow): New pattern.
8669 (mov_negscc): Don't split if the insn would match negscc_borrow.
8670 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8671 (thumb2_mov_negscc_strict_it): Likewise.
8672
8673 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8674
8675 * config/arm/arm.c (arm_insn_cost): New function.
8676 (TARGET_INSN_COST): Override default definition.
8677
8678 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8679
8680 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8681 borrow operations.
8682
8683 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8684
8685 * config/arm/arm.c (strip_carry_operation): New function.
8686 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8687 for SImode.
8688
8689 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8690
8691 * config/arm/predicates.md (arm_carry_operation): New special
8692 predicate.
8693 * config/arm/iterators.md (LTUGEU): Delete iterator.
8694 (cnb): Delete code attribute.
8695 (optab): Delete ltu and geu elements.
8696 * config/arm/arm.md (addsi3_carryin): Renamed from
8697 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8698 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8699 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8700 (addsi3_carryin_clobercc): Similarly.
8701 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8702 Thumb2 state.
8703
8704 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8705
8706 * config/arm/arm.md (arm_subdi3): Delete insn.
8707 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8708
8709 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8710
8711 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8712 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8713 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8714 return CC_RSBmode.
8715 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8716 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8717 expand.
8718 (subdi3): Rewrite to early-expand the sub-operations.
8719 (rsb_im_compare): New pattern.
8720 (negdi2): Delete.
8721 (negdi2_insn): Delete.
8722 (arm_negsi2): Correct type attribute to alu_imm.
8723 (negsi2_0compare): New insn pattern.
8724 (negsi2_carryin): New insn pattern.
8725
8726 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8727
8728 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8729 operand 2.
8730
8731 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8732
8733 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8734 to match canonical form.
8735
8736 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8737
8738 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8739 (extend<mode>di2): Likewise.
8740
8741 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8742
8743 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8744 * config/arm/arm.c (arm_decompose_di_binop): New function.
8745 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8746 If not generating Thumb-1 code, decompose the operation into 32-bit
8747 pieces.
8748 * add0si_carryin_<optab>: New pattern.
8749
8750 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8751
8752 * arm.md (adddi3): Only accept register operands.
8753 (arm_adddi3): Convert to simple insn with no split. Do not accept
8754 constants.
8755 (adddi_sesidi_di): Delete patern.
8756 (adddi_zesidi_di): Likewise.
8757 (uaddv<mode>4): Use LTU as condition for branch.
8758 (adddi3_compareV): Convert to simple insn with no split.
8759 (addsi3_compareV_upper): Delete pattern.
8760 (adddi3_compareC): Convert to simple insn with no split. Correct
8761 flags setting expression.
8762 (addsi3_compareC_upper): Delete pattern.
8763 (addsi3_compareC): Correct flags setting expression.
8764 (subdi3_compare1): Convert to simple insn with no split.
8765 (subsi3_carryin_compare): Delete pattern.
8766 (arm_subdi3): Convert to simple insn with no split.
8767 (subdi_zesidi): Delete pattern.
8768 (subdi_di_sesidi): Delete pattern.
8769 (subdi_zesidi_di): Delete pattern.
8770 (subdi_sesidi_di): Delete pattern.
8771 (subdi_zesidi_zesidi): Delete pattern.
8772 (negvdi3): Use s_register_operand.
8773 (negdi2_compare): Convert to simple insn with no split.
8774 (negdi2_insn): Likewise.
8775 (negsi2_carryin_compare): Delete pattern.
8776 (negdi_zero_extendsidi): Delete pattern.
8777 (arm_cmpdi_insn): Convert to simple insn with no split.
8778 (negdi2): Don't call gen_negdi2_neon.
8779 * config/arm/neon.md (adddi3_neon): Delete pattern.
8780 (subdi3_neon): Delete pattern.
8781 (negdi2_neon): Delete pattern.
8782 (splits for negdi2_neon): Delete splits.
8783
8784 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8785
8786 PR middle-end/92153
8787 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8788 than after it.
8789
8790 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8791
8792 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8793 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8794 new multilib variants and new mappings.
8795
8796 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8797
8798 PR target/86040
8799 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8800
8801 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8802 Richard Sandiford <richard.sandiford@arm.com>
8803
8804 PR target/86753
8805 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8806 and define hashmap traits for it.
8807 (loop_vec_info::scalar_cond_masked_set): New member.
8808 (vect_record_loop_mask): Adjust prototype.
8809 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8810 Implement method.
8811 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8812 vect_record_loop_mask.
8813 (vectorizable_live_operation): Likewise.
8814 (vect_record_loop_mask): New param scalar_mask. Add entry
8815 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8816 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8817 Pass it as last arg to vect_record_loop_mask.
8818 (vectorizable_call): Pass scalar_mask as last arg to
8819 vect_record_loop_mask.
8820 (vectorizable_store): Likewise.
8821 (vectorizable_load): Likewise.
8822 (vectorizable_condition): Check if another part of vectorized code
8823 applies loop_mask to condition or to it's inverse, and if yes,
8824 apply loop_mask to result of vector comparison.
8825
8826 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8827
8828 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8829
8830 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8831
8832 PR tree-optimization/92056
8833 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8834 before calling compute_builtin_object_size.
8835
8836 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8837
8838 PR target/65342
8839 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8840 (movdi_low_st): Delete.
8841 * config/rs6000/rs6000.c
8842 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8843 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8844 * config/rs6000/rs6000.md (movsi_low): Delete.
8845
8846 2019-10-17 Jason Merrill <jason@redhat.com>
8847
8848 * gimplify.h (get_initialized_tmp_var): Add default argument to
8849 post_p.
8850 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8851 NULL post_p argument.
8852 * targhooks (std_gimplify_va_arg_expr): Likewise.
8853
8854 2019-10-17 Richard Biener <rguenther@suse.de>
8855
8856 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8857 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8858 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8859 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8860 * tree-vect-loop.c (vect_is_simple_reduction): Set
8861 STMT_VINFO_REDUC_CODE.
8862 (vectorizable_reduction): Remove dead and redundant code, use
8863 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8864
8865 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8866
8867 Fix breakage introduced by r276985.
8868
8869 * config/avr/avr.c (avr_option_override): Remove set of
8870 PARAM_ALLOW_STORE_DATA_RACES.
8871 * common/config/avr/avr-common.c (avr_option_optimization_table)
8872 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8873
8874 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8875
8876 * config/i386/i386.h (processor_costs): Add clear_ratio.
8877 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8878 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8879 of 6 and move_ratio in all cost models.
8880
8881 2019-10-17 Richard Biener <rguenther@suse.de>
8882
8883 * tree-vect-loop.c (check_reduction_path): Compute reduction
8884 operation here.
8885 (vect_is_simple_reduction): Remove special-case of single-stmt
8886 reduction path detection.
8887
8888 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8889
8890 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8891
8892 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8893
8894 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8895 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8896 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8897 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8898 New combine patterns.
8899 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8900 above.
8901 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8902
8903 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8904
8905 * tree-vrp.c (value_range_base::dump): Display +INF for both
8906 pointers and integers when appropriate.
8907
8908 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8909
8910 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8911 when to use versioning threshold.
8912
8913 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8914
8915 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8916 outlined code from ...
8917 (vect_analyze_loop_2): ... here.
8918
8919 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8920
8921 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8922 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8923 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8924
8925 2019-10-17 Richard Biener <rguenther@suse.de>
8926
8927 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8928 (vect_is_simple_reduction): Move all validity checks ...
8929 (vectorizable_reduction): ... here. Compute whether we
8930 need a fold-left reduction here.
8931 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8932 both overloads, check needs_fold_left_reduction_p directly.
8933 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8934
8935 2019-10-17 Richard Biener <rguenther@suse.de>
8936
8937 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8938 TARGET_MEM_REF creation.
8939
8940 2019-10-17 Richard Biener <rguenther@suse.de>
8941
8942 PR tree-optimization/92129
8943 * tree-vect-loop.c (vectorizable_reduction): Also fail
8944 on GIMPLE_SINGLE_RHS.
8945
8946 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8947
8948 PR tree-optimization/92056
8949 * tree-object-size.c (cond_expr_object_size): Return early if then_
8950 processing resulted in unknown size.
8951
8952 PR tree-optimization/92115
8953 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8954 temporary if it could trap.
8955
8956 2019-10-17 Richard Biener <rguenther@suse.de>
8957
8958 PR debug/91887
8959 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8960 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8961
8962 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8963
8964 * tree-ssa-strlen.c (maybe_invalidate): Use
8965 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8966
8967 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8968 Jim Wilson <jimw@sifive.com>
8969
8970 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8971 regs to SIBCALL_REGS.
8972 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8973 passing regs to SIBCALL_REGS.
8974
8975 2019-10-16 Martin Sebor <msebor@redhat.com>
8976
8977 PR tree-optimization/83821
8978 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8979 the length of a string when available.
8980 (handle_builtin_memset) Add argument.
8981 (handle_store, strlen_check_and_optimize_call): Same.
8982 (check_and_optimize_stmt): Same. Pass it to callees.
8983
8984 2019-10-16 Martin Sebor <msebor@redhat.com>
8985
8986 PR tree-optimization/91996
8987 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8988 information.
8989 (compare_nonzero_chars): Add an overload.
8990 (count_nonzero_bytes): Add an argument. Call overload above.
8991 Handle non-constant lengths in some range.
8992 (handle_store): Add an argument.
8993 (check_and_optimize_stmt): Pass an argument to handle_store.
8994
8995 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8996
8997 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8998
8999 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9000
9001 * config/mips/mips.c (mips_expand_builtin_insn): Force the
9002 operands which correspond to the same input-output register to
9003 have the same pseudo assigned to them.
9004
9005 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
9006
9007 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
9008
9009 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
9010
9011 * config/aarch64/aarch64.c (aarch64_classify_symbol):
9012 Apply reasonable limit to symbol offsets.
9013
9014 2019-10-16 Richard Biener <rguenther@suse.de>
9015
9016 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
9017 (vect_is_simple_reduction): Delay checking to
9018 vectorizable_reduction and relax the checking.
9019 (vectorizable_reduction): Check we have a simple use. Check
9020 for bogus condition reductions.
9021 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
9022 are looking at the last stmt in a pattern sequence when
9023 filling in backedge PHI values.
9024
9025 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
9026 Jiufu Guo <guojiufu@linux.ibm.com>
9027
9028 PR target/70010
9029 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
9030 the callee explicitly disables some isa_flags the caller is using.
9031
9032 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9033
9034 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
9035
9036 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9037
9038 * genmodes.c (mode_data::order): New field.
9039 (blank_mode): Update accordingly.
9040 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
9041 (make_vector_modes): Likewise.
9042 (VECTOR_MODES): Update use accordingly.
9043 (cmp_modes): Sort by the new order field ahead of sorting by size.
9044 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
9045 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
9046 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
9047 (aarch64_classify_vector_mode): Handle the new partial modes.
9048 (aarch64_vl_bytes): New function.
9049 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
9050 when counting the number of registers in an SVE mode.
9051 (aarch64_class_max_nregs): Likewise.
9052 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
9053 in registers yet.
9054 (aarch64_classify_address): Treat partial vectors analogously
9055 to full vectors.
9056 (aarch64_print_address_internal): Consolidate the printing of
9057 MUL VL addresses, using aarch64_vl_bytes as the number of
9058 bytes represented by "VL".
9059 (aarch64_vector_mode_supported_p): Reject partial vector modes.
9060
9061 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9062
9063 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
9064 rather than known_lt when choosing frame layouts.
9065
9066 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9067
9068 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
9069 that all the adjustments add up to the full frame size.
9070 Use crtl->outgoing_args_size directly as the final adjustment
9071 where appropriate.
9072
9073 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9074
9075 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
9076 "frame" reference instead of always referring directly to
9077 "cfun->machine->frame".
9078
9079 2019-10-16 Richard Biener <rguenther@suse.de>
9080
9081 PR tree-optimization/92119
9082 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
9083 against missing bswap lhs.
9084
9085 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9086
9087 PR middle-end/92033
9088 * poly-int.h (constant_lower_bound_with_limit): New function.
9089 (constant_upper_bound_with_limit): Likewise.
9090 * doc/poly-int.texi: Document them.
9091 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
9092 into the worst-case INTEGER_CST bounds.
9093
9094 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
9095
9096 PR ipa/91088
9097 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
9098 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
9099 * ipa-predicat.h (struct expr_eval_op): New struct.
9100 (expr_eval_ops): New typedef.
9101 (struct condition): Add type and param_ops fields, remove size field.
9102 (add_condition): Replace size parameter with type parameter, add
9103 param_ops parameter.
9104 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
9105 (predicate::add_clause): Add comparisons on type and param_ops.
9106 (dump_condition): Add debug dump for param_ops.
9107 (remap_after_inlining): Adjust call arguments to add_condition.
9108 (add_condition): Replace size parameter with type parameter, add
9109 param_ops parameter. Unshare constant value used in conditions.
9110 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
9111 parameter expressions using param_ops.
9112 (decompose_param_expr): New function.
9113 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
9114 to replace call to unmodified_parm_or_parm_agg_item.
9115 (set_switch_stmt_execution_predicate): Likewise.
9116 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
9117 with type.
9118 (inline_read_section): Read param_ops from summary stream.
9119 (ipa_fn_summary_write): Write param_ops to summary stream.
9120
9121 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9122
9123 PR rtl-optimization/92107
9124 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
9125 expression written.
9126
9127 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9128
9129 * config/darwin.c: Update description of fix and continue.
9130
9131 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9132
9133 * config/darwin.c (darwin_binds_local_p): Update to call
9134 default_binds_local_p_3 () directly. amend comments.
9135
9136 2019-10-15 Richard Biener <rguenther@suse.de>
9137
9138 * lto-streamer-out.c (lto_variably_modified_type_p): New.
9139 (tree_is_indexable): Use it.
9140 * tree-streamer-out.c (pack_ts_type_common_value_fields):
9141 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
9142 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
9143
9144 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9145
9146 * config/msp430/msp430.md (zero_extendqipsi2): New.
9147 (zero_extendqisi2): Optimize case where src register and base dst
9148 register are the same.
9149 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
9150 (zero_extendpsisi2): Optimize r->m case.
9151 Add unnamed insn patterns to catch insns combine searches for when
9152 optimizing pointer manipulation.
9153
9154 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9155
9156 * config/msp430/msp430.md: Group zero_extend* insns together.
9157
9158 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9159
9160 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
9161 constraint.
9162 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
9163 POST_INC.
9164 (msp430_subreg): Likewise.
9165 (msp430_split_addsi): Likewise.
9166 (msp430_print_operand_addr): Likewise.
9167 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
9168 (USE_STORE_POST_INCREMENT): Define.
9169 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
9170 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
9171 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
9172 (msp430_general_dst_operand): New.
9173 (msp430_general_dst_nonv_operand): New.
9174 (msp430_nonsubreg_operand): Remove.
9175 (msp430_nonsubreg_dst_operand): New.
9176 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
9177 of defunct msp430_nonsubreg_operand.
9178 (msp430_nonsubregnonpostinc_or_imm_operand): New.
9179
9180 2019-10-15 Richard Biener <rguenther@suse.de>
9181
9182 PR tree-optimization/91929
9183 * tree-ssa-pre.c (pre_expr_d::loc): New member.
9184 (get_or_alloc_expr_for_name): Initialize it.
9185 (get_or_alloc_expr_for_constant): Likewise.
9186 (phi_translate_1): Copy it.
9187 (create_expression_by_pieces): Use the original location
9188 of the expression for the inserted stmt.
9189 (compute_avail): Record the location of the stmt for the
9190 expressions created.
9191
9192 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
9193
9194 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
9195 before using tree_to_uhwi.
9196
9197 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
9198
9199 * config/s390/s390.md: Run %a0:DI splitters only after reload.
9200
9201 2019-10-15 Richard Biener <rguenther@suse.de>
9202
9203 PR tree-optimization/92094
9204 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
9205 do not adjust the reduction definition def type.
9206 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
9207 defines the latch argument of the PHI.
9208
9209 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
9210
9211 PR target/92035
9212 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
9213 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
9214 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
9215 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
9216 _mm_maskz_roundscale_round_sd): New intrinsics.
9217 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
9218 __builtin_ia32_rndscales?_mask_round builtins instead of
9219 __builtin_ia32_rndscales?_round.
9220 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
9221 __builtin_ia32_rndscalesd_round): Remove.
9222 (__builtin_ia32_rndscaless_mask_round,
9223 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
9224 * config/i386/sse.md
9225 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
9226 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
9227 ... this, adjust and add subst atrributes to make it maskable.
9228
9229 2019-10-15 Richard Biener <rguenther@suse.de>
9230
9231 PR middle-end/92046
9232 * common.opt (fallow-store-data-races): New.
9233 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
9234 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
9235 * doc/invoke.texi (fallow-store-data-races): Document.
9236 (--param allow-store-data-races): Remove docs.
9237 * opts.c (default_options_table): Enable -fallow-store-data-races
9238 at -Ofast.
9239 (default_options_optimization): Do not enable --param
9240 allow-store-data-races at -Ofast.
9241 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
9242 instead of PARAM_ALLOW_STORE_DATA_RACES.
9243 * tree-ssa-loop-im.c (execute_sm): Likewise.
9244
9245 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9246
9247 PR tree-optimization/92085
9248 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
9249 instead of calling it unconditionally after
9250 delete_dead_or_redundant_assignment and fix indentation.
9251
9252 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9253
9254 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
9255 TARGET_VFP_DOUBLE.
9256 (*fmsub<SDF:mode>4): Likewise.
9257 *fnmsub<SDF:mode>4): Likewise.
9258 (*fnmadd<SDF:mode>4): Likewise.
9259
9260 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
9261
9262 * doc/tree-ssa.texi: Update renamed macro name.
9263
9264 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9265
9266 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
9267 vector constants.
9268
9269 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
9270
9271 * config/darwin.c: Use unsigned ints for the picbase label
9272 counters, initialise the vars explicitly.
9273 (update_pic_label_number_if_needed): Move a variable declaration
9274 to where it's needed.
9275 (machopic_output_function_base_name): Use a more strict checking
9276 assert, and and unsigned int for the picbase label counter.
9277 (machopic_get_function_picbase): Likewise.
9278
9279 2019-10-14 Richard Biener <rguenther@suse.de>
9280
9281 PR middle-end/92046
9282 * dse.c (scan_insn): Use param max_active_local_stores.
9283 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
9284 based on optimization level.
9285 * loop-invariant.c (move_loop_invariants): Adjust
9286 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
9287 * opts.c (default_options_optimization): Do not adjust
9288 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
9289 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
9290
9291 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9292
9293 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
9294
9295 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9296
9297 * config/arm/arm.c (arm_option_override): Don't override sched
9298 pressure algorithm.
9299
9300 2019-10-14 Richard Biener <rguenther@suse.de>
9301
9302 PR tree-optimization/92069
9303 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
9304 cycles do not set vect_nested_cycle on the latch definition.
9305
9306 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
9307
9308 * function-abi.h (expr_callee_abi): Declare.
9309 * function-abi.cc (expr_callee_abi): New function.
9310
9311 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
9312
9313 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
9314 into [1,MAX].
9315 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
9316 non-zero being represented as [1,MAX].
9317
9318 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
9319
9320 * tree-sra.c (dump_access): Add missing braces.
9321
9322 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9323
9324 * config/darwin.c (machopic_indirection_name): Rework the
9325 function to emit linker-visible symbols only for indirections
9326 in the data section. Clean up the code and update comments.
9327
9328 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9329
9330 * config/darwin.c (machopic_indirect_data_reference): Remove
9331 redundant code.
9332
9333 2019-10-13 Nathan Sidwell <nathan@acm.org>
9334
9335 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
9336
9337 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9338
9339 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
9340 c99_runtime.
9341
9342 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
9343
9344 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
9345 so non-virutal are before virutals.
9346 (output_function): Avoid body modifications.
9347
9348 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9349
9350 * config/pa/pa.c (pa_output_call): Load descriptor address to register
9351 %r22. Load function address before global pointer.
9352 (pa_attr_length_indirect_call): Adjust length of inline versions of
9353 $$dyncall.
9354 (pa_output_indirect_call): Remove fast inline version of $$dyncall
9355 before normal cases. Update inline $$dyncall sequences to preserve
9356 function descriptor address in register %r22.
9357 (TRAMPOLINE_CODE_SIZE): Adjust.
9358 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
9359 register %r22 contains trampoline address.
9360 (pa_trampoline_init): Adjust offsets.
9361 (pa_trampoline_adjust_address): Likewise.
9362 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
9363
9364 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9365
9366 PR target/67183
9367 * config/darwin.c (machopic_indirection): New field to flag
9368 non-lazy-symbol-pointers in the data section.
9369 (machopic_indirection_name): Compute if an indirection should
9370 appear in the data section.
9371 (machopic_output_data_section_indirection): New callback split
9372 from machopic_output_indirection.
9373 (machopic_output_stub_indirection): Likewise.
9374 (machopic_output_indirection): Retain the code for non-lazy
9375 symbol pointers in their regular section.
9376 (machopic_finish): Use the new callbacks to order the indirection
9377 output.
9378
9379 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9380
9381 * config/darwin-protos.h (machopic_finish): Delete.
9382 * config/darwin.c (machopic_finish): Make static.
9383
9384 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9385
9386 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9387 sections when building kernel extension code.
9388
9389 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
9390
9391 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9392 later standard."
9393
9394 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9395
9396 * config/pa/pa.c (pa_option_override): Remove trailing comma
9397 from warning.
9398
9399 2019-10-12 Jakub Jelinek <jakub@redhat.com>
9400
9401 PR middle-end/92063
9402 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9403 <case VEC_COND_EXPR>: Return false with *handled = false.
9404 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9405 recursing on the first operand.
9406 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9407 instead of tree_could_trap_p.
9408 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9409
9410 2019-10-11 Jim Wilson <jimw@sifive.com>
9411
9412 PR rtl-optimization/91860
9413 * combine.c (subst): If new_rtx is a constant, also check for
9414 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9415
9416 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
9417
9418 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9419 INTVAL when calling store_bit_field.
9420
9421 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
9422
9423 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9424 size.
9425
9426 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9427
9428 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9429 vectorizable_live_operation.
9430 (vectorizable_live_operation): Adjust parameters.
9431 * tree-vect-stmts.c (vect_init_vector,
9432 vect_gen_widened_results_half): Fix typo in function comment.
9433 (can_vectorize_live_stmts): Adjust function comment.
9434 Adjust parameters. Adjust call to vectorizable_live_operation.
9435 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9436 (vect_transform_stmt): Adjust function comment. Adjust call to
9437 can_vectorize_live_stmts.
9438 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9439
9440 2019-10-11 Richard Biener <rguenther@suse.de>
9441
9442 PR tree-optimization/90883
9443 PR tree-optimization/91091
9444 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9445 alias-sets both for recording VN table entries and continuing
9446 walking after translating through copies. Handle same-sized
9447 reads from SSA names by returning the plain SSA name.
9448 (eliminate_dom_walker::eliminate_stmt): Properly handle
9449 non-size precision stores in redundant store elimination.
9450
9451 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9452
9453 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9454 (ggc_collect): Dump later to not interfere with release_page dump.
9455 (ggc_trim): New function.
9456 * ggc-none.c (ggc_trim): New.
9457 * ggc.h (ggc_trim): Declare.
9458
9459 2019-10-11 Richard Biener <rguenther@suse.de>
9460
9461 PR tree-optimization/92066
9462 PR tree-optimization/92046
9463 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9464 Fix bogus cost model check.
9465
9466 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9467
9468 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9469 (LANG_HOOKS_DECLS): Add it.
9470 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9471 update comment for omp_is_optional_argument.
9472 * omp-general.c (omp_is_allocatable_or_ptr): New.
9473 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9474 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9475 Fortran's optional arguments and allocatable/pointer scalars
9476 with use_device_addr.
9477
9478 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9479
9480 PR target/77918
9481 * config/s390/2827.md: Add new opcodes.
9482 * config/s390/2964.md: Likewise.
9483 * config/s390/3906.md: Likewise.
9484 * config/s390/8561.md: Likewise.
9485 * config/s390/s390-builtins.def (s390_vfchesb): Use
9486 the new vec_cmpgev4sf_quiet_nocc.
9487 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9488 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9489 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9490 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9491 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9492 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9493 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9494 * config/s390/s390-modes.def (CCSFPS): New mode.
9495 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9496 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9497 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9498 (s390_expand_vec_compare): Use non-signaling patterns where
9499 necessary.
9500 (s390_reverse_condition): Support CCSFPS.
9501 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9502 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9503 (asm_fcmp_op): Likewise.
9504 (*smaxv2df3_vx): Use pattern for quiet comparison.
9505 (*sminv2df3_vx): Likewise.
9506 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9507 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9508 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9509 (vec_cmplt<mode>_quiet_nocc): New expander.
9510 (vec_cmpge<mode>_quiet_nocc): New pattern.
9511 (vec_cmple<mode>_quiet_nocc): New expander.
9512 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9513 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9514 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9515 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9516 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9517 (vec_cmpungt<mode>): New expander.
9518 (vec_cmpunge<mode>): Likewise.
9519 (vec_cmpuneq<mode>): Use quiet patterns.
9520 (vec_cmpltgt<mode>): Allow only on z14+.
9521 (vec_cmpordered<mode>): Use quiet patterns.
9522 (vec_cmpunordered<mode>): Likewise.
9523 (VEC_CMP_EXPAND): Add ungt and unge.
9524
9525 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9526
9527 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9528 parameter.
9529 * lto-streamer-out.c: Include tree-dfa.h.
9530 (output_cfg): Do not use cfun.
9531 (lto_prepare_function_for_streaming): New.
9532 (output_function): Do not push cfun; do not initialize loop optimizer.
9533 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9534 * passes.c (ipa_write_summaries): Use it.
9535 (ipa_write_optimization_summaries): Do not modify bodies.
9536 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9537 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9538 * tree-ssa-dse.c (pass_dse::execute): Update use of
9539 renumber_gimple_stmt_uids.
9540 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9541
9542 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9543
9544 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9545 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9546
9547 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9548
9549 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9550 macros.
9551 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9552 Also define DFP macros for these conditions.
9553 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9554 DEC128_SUBNORMAL_MIN): Do not define.
9555 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9556 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9557
9558 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9559 Sandra Loosemore <sandra@codesourcery.com>
9560
9561 PR middle-end/26241
9562 * doc/lto.texi (IPA): Reference to the IPA passes.
9563 * doc/passes.texi (Pass manager): Add node IPA passes and
9564 description for each IPA pass.
9565
9566 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9567
9568 * ipa-reference.c: Do not include splay-tree.h
9569 (reference_vars_to_consider): Turn to hash map.
9570 (get_static_name, ipa_init, analyze_function, propagate,
9571 stream_out_bitmap, ipa_reference_write_optimization_summary,
9572 ipa_reference_write_optimization_summary): Update.
9573
9574 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9575
9576 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9577
9578 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9579
9580 * config/darwin.c: Lookup Objective C metadata and force indirection
9581 for IVAR refs.
9582
9583 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9584
9585 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9586 addresses.
9587 (mem_operand_gpr): Add check for prefixed addresses.
9588 (mem_operand_ds_form): Add check for prefixed addresses.
9589 (rs6000_legitimate_offset_address_p): If we support prefixed
9590 addresses, check for a 34-bit offset instead of 16-bit.
9591 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9592 Do not allow load/store with update if the address is prefixed.
9593 (rs6000_mode_dependent_address): If we support prefixed
9594 addresses, check for a 34-bit offset instead of 16-bit.
9595
9596 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9597
9598 PR target/77918
9599 * config/s390/vector.md (vcond_comparison_operator): New
9600 predicate.
9601 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9602
9603 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9604
9605 PR 87488
9606 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9607 -D.
9608 * configure.ac (--with-documentation-root-url): New option.
9609 * configure: Regenerate.
9610 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9611 option URL, add it as a new string field of the diagnostic option.
9612 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9613 (print_option_information): If get_option_url is non-NULL, call
9614 it, and if the result is non-NULL, potentially emit an escape
9615 sequence to markup the option text with the resulting URL.
9616 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9617 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9618 example of JSON output.
9619 * opts-diagnostic.h (get_option_url): New decl.
9620 * opts.c (get_option_url): New function.
9621 * toplev.c (general_init): Initialize the get_option_url callback.
9622
9623 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9624
9625 PR 87488
9626 * common.opt (fdiagnostics-urls=): New option.
9627 (diagnostic-url.h): Add SourceInclude.
9628 (diagnostic_url_rule): New enum.
9629 * diagnostic-color.c: Include "diagnostic-url.h".
9630 (diagnostic_urls_enabled_p): New function.
9631 * diagnostic-url.h: New file.
9632 * diagnostic.c: Include "diagnostic-url.h".
9633 (diagnostic_urls_init): New function.
9634 * diagnostic.h (diagnostic_urls_init): New decl.
9635 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9636 -fdiagnostics-urls to the list.
9637 (-fdiagnostics-urls): New option.
9638 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9639 (driver::global_initializations): Call diagnostic_urls_init.
9640 * opts-global.c (init_options_once): Likewise.
9641 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9642 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9643 show_urls.
9644 (pp_begin_url): New function.
9645 (pp_end_url): New function.
9646 (selftest::test_urls): New selftest.
9647 (selftest::pretty_print_c_tests): Call it.
9648 * pretty-print.h (pretty_printer::show_urls): New field.
9649 (pp_begin_url): New decl.
9650 (pp_end_url): New decl.
9651
9652 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9653
9654 PR target/92022
9655 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9656
9657 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9658
9659 PR target/88630
9660 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9661 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9662 also for TARGET_FPU_SH4_300.
9663 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9664 TARGET_SH4_300.
9665 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9666 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9667 (*negsf2_i): Split into ...
9668 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9669 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9670 (**abssf2_i): Split into ...
9671 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9672 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9673 (*negdf2_i): Split into ...
9674 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9675 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9676 (**abssf2_i): Split into ...
9677 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9678
9679 2019-10-10 Richard Biener <rguenther@suse.de>
9680
9681 PR middle-end/92046
9682 * opts.c (finish_options): Do not influence global --params
9683 from options that are adjustable per function.
9684 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9685 Apply --param adjustment based on active cost-model.
9686 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9687 further store-sinking when vectorization or if-conversion
9688 are not enabled.
9689
9690 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9691
9692 PR middle-end/92037
9693 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9694 rather than ggc_alloc_cleared to alloc symbol table.
9695 * toplev.c (general_init): Likewise.
9696 * cgraph.h (symbol_table): Explicitly construct every field.
9697
9698 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9699
9700 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9701 (PF_Z15): ... this.
9702 * config.gcc: Add z15 as option for --with-arch and --with-tune
9703 configure switches.
9704 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9705 error reporting for unsupported builtins.
9706 * config/s390/s390-opts.h (enum processor_type): Rename
9707 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9708 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9709 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9710 Likewise.
9711 * config/s390/s390-builtins.def: Likewise.
9712 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9713 (s390_expand_builtin): Add missing check for unsupported builtins.
9714 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9715 (s390_rtx_costs): Likewise.
9716 (s390_get_sched_attrmask): Rename arch13 to z15.
9717 (s390_get_unit_mask): Likewise.
9718 (s390_is_fpd): Likewise.
9719 (s390_is_fxd): Likewise.
9720 * config/s390/s390.h (enum processor_flags): Likewise.
9721 * config/s390/s390.md: Likewise.
9722 * config/s390/vector.md: Likewise.
9723 * config/s390/vx-builtins.md: Likewise.
9724 * config/s390/s390.opt: Add z15 to processor_type value.
9725
9726 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9727
9728 PR target/91035
9729 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9730 prototype.
9731 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9732 ("split_stack_data", "split_stack_call")
9733 ("split_stack_call_<mode>", "split_stack_cond_call")
9734 ("split_stack_cond_call_<mode>"): Remove.
9735 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9736 insn definition.
9737 * config/s390/s390.c (s390_output_split_stack_data): New function.
9738 (s390_expand_split_stack_prologue): Use the merged expander.
9739
9740 2019-10-09 Martin Sebor <msebor@redhat.com>
9741
9742 PR tree-optimization/90879
9743 * builtins.c (check_access): Avoid using maxbound when null.
9744 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9745 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9746 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9747 conditional.
9748 (get_range_strlen): Overwrite initial maxbound when non-null.
9749 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9750 changes.
9751 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9752 (used_only_for_zero_equality): New function.
9753 (handle_builtin_memcmp): Call it.
9754 (determine_min_objsize): Return an integer instead of tree.
9755 (get_len_or_size, strxcmp_eqz_result): New functions.
9756 (maybe_warn_pointless_strcmp): New function.
9757 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9758 between a longer string and a smaller array.
9759 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9760
9761 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9762
9763 * config/darwin.c (darwin_override_options): Make the check for
9764 Objective-C ABI version more specific for 64bit code.
9765
9766 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9767
9768 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9769 indicate that the new symbol is an indirection.
9770 (machopic_indirect_call_target): Likewise.
9771 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9772 (MACHO_SYMBOL_INDIRECTION_P): New.
9773 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9774
9775 2019-10-08 Jason Merrill <jason@redhat.com>
9776
9777 * doc/invoke.texi: Document -fconcepts-ts.
9778
9779 2019-10-09 Richard Biener <rguenther@suse.de>
9780
9781 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9782 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9783
9784 2019-10-08 Richard Biener <rguenther@suse.de>
9785
9786 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9787 (_stmt_vec_info::force_single_cycle): Likewise.
9788 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9789 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9790 * tree-vect-loop.c (vectorizable_reduction): Set
9791 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9792 (vect_transform_reduction): Use them to remove redundant code.
9793 (vect_transform_cycle_phi): Likewise.
9794
9795 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9796
9797 PR tree-optimization/90836
9798 * match.pd (popcount): New pattern.
9799
9800 2019-10-08 Martin Sebor <msebor@redhat.com>
9801
9802 PR middle-end/92026
9803 PR middle-end/92014
9804 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9805 again once nbytes has been set. Set the access size when not yet set.
9806
9807 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9808
9809 * config/darwin.c (machopic_select_section): Remove dead code for
9810 old Objective-C section selection method, replace with unreachable.
9811
9812 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9813
9814 * config/darwin.c (machopic_indirect_data_reference): Check for
9815 required indirections before making direct access to defined
9816 values.
9817 (machopic_output_indirection): Place the indirected pointes for
9818 required indirections into the non-lazy symbol pointers section.
9819 (darwin_encode_section_info):
9820 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9821 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9822
9823 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9824
9825 PR target/91994
9826 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9827 instead of ALL_SSE_REG to check if function call preserves some
9828 256-bit SSE registers.
9829
9830 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9831
9832 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9833 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9834 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9835
9836 2019-10-08 Richard Biener <rguenther@suse.de>
9837
9838 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9839 (_stmt_vec_info::is_reduc_info): Add.
9840 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9841 (vectorizable_condition): Remove.
9842 (vectorizable_shift): Likewise.
9843 (vectorizable_reduction): Adjust.
9844 (info_for_reduction): New.
9845 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9846 (vect_analyze_scalar_cycles_1): ... here.
9847 (vect_analyze_loop_operations): Adjust.
9848 (needs_fold_left_reduction_p): Simplify for single caller.
9849 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9850 for nested cycles not part of double reductions.
9851 (vect_model_reduction_cost): Pass in the reduction type.
9852 (info_for_reduction): New function.
9853 (vect_create_epilog_for_reduction): Use it, access reduction
9854 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9855 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9856 (vectorize_fold_left_reduction): Remove pointless assert.
9857 (vectorizable_reduction): Analyze the full reduction when
9858 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9859 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9860 stmt code-generation to vectorizable_* in most cases. Verify
9861 code-generation only for cases handled by
9862 vect_transform_reductuon.
9863 (vect_transform_reduction): Use info_for_reduction to get at
9864 reduction meta. Simplify.
9865 (vect_transform_cycle_phi): Likewise.
9866 (vectorizable_live_operation): Likewise.
9867 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9868 at the PHI node for STMT_VINFO_REDUC_TYPE.
9869 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9870 longer necessary code.
9871 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9872 (vectorizable_condition): Likewise. Get at reduction related
9873 info via info_for_reduction.
9874 (vect_analyze_stmt): Adjust.
9875 (vect_transform_stmt): Likewise.
9876 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9877 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9878
9879 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9880
9881 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9882 -fno-fp-int-builtin-inexact default for C2X.
9883
9884 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9885 Richard Biener <rguenther@suse.de>
9886
9887 PR tree-optimization/91532
9888 * tree-if-conv.c: Include tree-ssa-dse.h.
9889 (ifcvt_local_dce): Change param from bb to loop,
9890 and call dse_classify_store.
9891 (tree_if_conversion): Pass loop instead of loop->header as arg
9892 to ifcvt_local_dce.
9893 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9894 (delete_dead_or_redundant_assignment): Remove static qualifier from
9895 declaration, and add prototype in tree-ssa-dse.h.
9896 (dse_store_status): Move to tree-ssa-dse.h.
9897 (dse_classify_store): Remove static qualifier and add new tree param
9898 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9899 * tree-ssa-dse.h: New header.
9900
9901 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9902
9903 * config/darwin.c (machopic_output_indirection): Don't put
9904 hidden symbol indirections into the .data section, use the
9905 non-lazy symbol pointers section as normal.
9906 (darwin_encode_section_info): Record if a symbol is hidden.
9907 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9908 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9909
9910 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9911
9912 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9913 predicates instead of accessing bits directly.
9914 (machopic_indirect_call_target): Likewise.
9915 (machopic_output_indirection): Likewise.
9916 (darwin_encode_section_info): Improve description. Use renamed
9917 symbol flags. Use predicate macros for variables and functions.
9918 * config/darwin.h:
9919 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9920 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9921 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9922 (MACHO_SYMBOL_VARIABLE_P): New.
9923 (MACHO_SYMBOL_DEFINED_P):New.
9924 (MACHO_SYMBOL_STATIC_P): New.
9925 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9926 (SYMBOL_FLAG_SUBT_DEP): New.
9927 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9928
9929 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9930
9931 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9932 (msp430_expand_epilogue): Likewise.
9933 * config/msp430/predicates.md: Likewise.
9934 * config/msp430/msp430.md: Likewise.
9935 Replace blocks of 8 spaces with tabs.
9936
9937 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9938
9939 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9940 * config/msp430/msp430.c (msp430_split_addsi): New.
9941 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9942 a block of C code for splitting addsi.
9943
9944 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9945
9946 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9947 ix86_expand_rounddf_32): Reorder functions.
9948 * config/i386/i386-protos.h: Update.
9949
9950 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9951
9952 * config.in: Regenerate.
9953 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9954 Add new "Yx" constraint.
9955 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9956 function.
9957 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9958 prototype.
9959 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9960 code/data region to be selected in the small memory model.
9961 (msp430_section_attr): Don't warn if the "section" and "lower"
9962 attributes are used together.
9963 (msp430_handle_generic_attribute): Likewise.
9964 (msp430_var_in_low_mem): New function.
9965 (TARGET_ENCODE_SECTION_INFO): Define.
9966 (msp430_encode_section_info): New function.
9967 (gen_prefix): Return early in the small memory model.
9968 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9969 ".lower" prefix if -m{code,data}-region=lower have been passed.
9970 (msp430_output_aligned_decl_common): Emit common symbols when
9971 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9972 set.
9973 (TARGET_ASM_FILE_END): Define.
9974 (msp430_file_end): New function.
9975 (msp430_do_not_relax_short_jumps): Allow relaxation when
9976 function will be in the lower region.
9977 (msp430_op_not_in_high_mem): New function.
9978 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9979 the 'X' operand selector.
9980 Clarify comment for 'x' operand selector.
9981 * config/msp430/msp430.h (LINK_SPEC): Propagate
9982 -m{code,data}-region to the linker via spec function
9983 msp430_propagate_region_opt.
9984 (msp430_propagate_region_opt): New prototype.
9985 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9986 (SYMBOL_FLAG_LOW_MEM): Define.
9987 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9988 selector.
9989 (zero_extendqihi2): Fix operand number used by "%X" selector.
9990 (zero_extendqisi2): Likewise.
9991 (zero_extendhisi2): Likewise.
9992 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9993 (movhi): Likewise.
9994 (addqi3): Likewise.
9995 (addhi3): Likewise.
9996 (addsi3): Likewise.
9997 (addhi3_cy): Likewise.
9998 (addchi4_cy): Likewise.
9999 (subqi3): Likewise.
10000 (subhi3): Likewise.
10001 (subsi3): Likewise.
10002 (bic<mode>3): Likewise.
10003 (and<mode>3): Likewise.
10004 (ior<mode>3): Likewise.
10005 (xor<mode>3): Likewise.
10006 (slli_1): Add missing "%X" operand selector.
10007 (slll_1): Likewise.
10008 (slll_2): Likewise.
10009 (srai_1): Likewise.
10010 (sral_1): Likewise.
10011 (sral_2): Likewise.
10012 (srli_1): Likewise.
10013 (srll_1): Likewise.
10014 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
10015 selector.
10016 (cbranchhi4_real): Likewise.
10017 (cbranchqi4_reversed): Likewise.
10018 (cbranchhi4_reversed): Likewise.
10019 (*bitbranch<mode>4): Likewise.
10020 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
10021 * config/msp430/msp430.opt (mcode-region=): Set default to
10022 MSP430_REGION_LOWER. Improve docstring.
10023 (mdata-region=): Likewise.
10024 (muse-lower-region-prefix): New option.
10025 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
10026 mdata-region=none multilib.
10027 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
10028 mdata-region=none multilib.
10029 MULTILIB_EXCEPTIONS: Remove.
10030 MULTILIB_REQUIRED: Define.
10031 * configure: Regenerate.
10032 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
10033 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
10034 * doc/extend.texi: Clarify comment for {upper,lower,either}
10035 function attributes.
10036 Add separate description for "lower" variable attribute.
10037
10038 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10039
10040 PR target/77918
10041 * optabs-tree.c (vcond_icode_p): New function.
10042 (vcond_eq_icode_p): Likewise.
10043 (expand_vec_cond_expr_p): Use vcond_icode_p and
10044 vcond_eq_icode_p.
10045 * optabs.c (can_vcond_compare_p): New function.
10046 * optabs.h (can_vcond_compare_p): Likewise.
10047
10048 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10049
10050 PR target/77918
10051 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
10052 caller passes a non-trapping condition.
10053 (is_gimple_condexpr): Allow trapping conditions.
10054 (is_gimple_condexpr_1): New helper function.
10055 (is_gimple_condexpr_for_cond): New function, acts like old
10056 is_gimple_condexpr.
10057 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
10058 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
10059 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
10060 * gimplify.c (gimplify_cond_expr): Use
10061 is_gimple_condexpr_for_cond.
10062 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
10063 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
10064 VEC_COND_EXPR.
10065 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
10066 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
10067 is_gimple_condexpr_for_cond, remove pointless tmp check
10068 (forward_propagate_into_cond): Remove pointless tmp check.
10069
10070 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10071
10072 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
10073 match that of other gsi_next_* functions. Adjust the comment.
10074 (gsi_start_nonvirtual_phis): New function.
10075 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
10076 gsi_next_nonvirtual_phi accordingly. (No functional change.)
10077
10078 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10079
10080 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
10081 setjmp situation here. Fix a verb's ending: "the exact variables or
10082 elements for which there are warnings depends" -> "... depend".
10083
10084 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10085
10086 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
10087
10088 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10089
10090 * ipa-prop.c (ipa_vr::nonzero_p): New.
10091 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
10092 non-zero range.
10093 * ipa-prop.h (class ipa_vr): Add nonzero_p.
10094 * tree-vrp.c (range_has_numeric_bounds_p): New.
10095 (range_int_cst_p): Use range_has_numeric_bounds_p.
10096 (get_range_op_handler): New.
10097 (supported_types_p): New.
10098 (defined_ranges_p): New.
10099 (drop_undefines_to_varying): New.
10100 (range_fold_binary_symbolics_p): New.
10101 (range_fold_unary_symbolics_p): New.
10102 (range_fold_unary_expr): Extract out into above functions.
10103 (range_fold_binary_expr): Same.
10104 (value_range_base::normalize_addresses): New.
10105 (value_range_base::normalize_symbolics): Normalize addresses.
10106 * tree-vrp.h (class value_range_base): Add normalize_addresses.
10107
10108 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10109
10110 * tree-vrp.c (value_range_base::singleton_p): Use
10111 value_range_base::num_pairs instead of vrp_val_is* to check
10112 if a range has one sub-range.
10113
10114 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10115
10116 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
10117 DEF is not a true earlyclobber but is tied to a specific input
10118 operand, and so is effectively earlyclobber wrt inputs that have
10119 different values.
10120 (make_early_clobber_and_input_conflicts): Pass this case to the above.
10121
10122 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10123
10124 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
10125 (pod_mode): Mark operators likewise.
10126 (scalar_int_mode): Mark non-default constructors and
10127 operators with CONSTEXPR.
10128 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
10129 (fixed_size_mode): Likewise.
10130
10131 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10132
10133 PR target/91994
10134 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
10135 and wrap the unspec_volatile in a parallel.
10136 (*avx_vzeroupper): New define_insn. Use a match_parallel around
10137 the unspec_volatile.
10138 * config/i386/predicates.md (vzeroupper_pattern): Expect the
10139 unspec_volatile to be wrapped in a parallel.
10140 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
10141 (ix86_add_reg_usage_to_vzerouppers): New functions.
10142 (rest_of_handle_insert_vzeroupper): Use them to add register
10143 usage information to the vzeroupper instructions.
10144
10145 2019-10-07 Richard Biener <rguenther@suse.de>
10146
10147 PR tree-optimization/91975
10148 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
10149 handle invariants.
10150
10151 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
10152
10153 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
10154 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
10155
10156 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
10157
10158 * config/darwin.c (darwin_override_options): Adjust objective-c
10159 ABI version error messages to avoid punctuation and contracted
10160 negations.
10161
10162 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
10163
10164 * ipa-inline.c: Fix type; compute size rather than self_size
10165 for size of caller function.
10166
10167 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
10168
10169 PR target/59888
10170 * config/darwin.c (darwin_rodata_section): Add relocation flag,
10171 choose const_data section for constants with relocations.
10172 (machopic_select_section): Pass relocation flag to
10173 darwin_rodata_section ().
10174
10175 2019-10-05 Jakub Jelinek <jakub@redhat.com>
10176
10177 PR tree-optimization/91734
10178 * generic-match-head.c: Include fold-const-call.h.
10179 * match.pd (sqrt(x) cmp c): Check the boundary value and
10180 in case inexact computation of c*c affects comparison of the boundary,
10181 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
10182 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
10183 for -frounding-math. For c2, try the next smaller or larger floating
10184 point constant depending on comparison code and if it has the same
10185 sqrt as c2, use it instead of c2.
10186
10187 2019-10-04 Martin Sebor <msebor@redhat.com>
10188
10189 PR middle-end/91977
10190 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
10191 MEM_REF right operand. Avoid failing for MEM_REF assignments from
10192 uninitialized objects.
10193
10194 2019-10-04 Martin Sebor <msebor@redhat.com>
10195
10196 * builtins.c (compute_objsize): Add an argument.
10197 * tree-object-size.c (addr_object_size): Same.
10198 (compute_builtin_object_size): Same.
10199 * tree-object-size.h (compute_builtin_object): Same.
10200
10201 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
10202
10203 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
10204
10205 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
10206
10207 * match.pd (sinh (x) / cosh (x)): New simplification rule.
10208
10209 2019-10-04 Martin Jambor <mjambor@suse.cz>
10210
10211 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
10212 fntype when switching to calling memcpy instead of memset.
10213
10214 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10215
10216 * hash-table.h (hash_table::empty_slow): Don't assign
10217 size_t values to int variables.
10218
10219 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10220
10221 * expr.c (convert_mode_scalar): Remove shadowing local var.
10222 (emit_block_move): Rename local vars.
10223 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
10224 (emit_push_insn): Rename local vars.
10225 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
10226 shadowing local vars.
10227 (store_constructor): Remove shadowing local vars. Rename local var.
10228 (store_field, expand_cond_expr_using_cmove,
10229 expand_expr_real_2): Remove shadowing local vars.
10230 (expand_expr_real_1,
10231 do_store_flag): Remove shadowing local vars. Rename local vars.
10232
10233 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10234
10235 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
10236
10237 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10238
10239 * genmatch.c (commutate): Rename local var.
10240 (lower_cond): Reuse local var.
10241 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
10242 dt_operand::gen, dt_operand::gen_gimple_expr,
10243 dt_simplify::gen): Add a param. Rename generated vars.
10244 (decision_tree::insert_operand,
10245 (capture_info::walk_match, capture_info::walk_result,
10246 capture_info::walk_c_expr): Rename local vars.
10247 (expr::gen_transform): Rename generated vars.
10248 Use snprintf. Rename local vars.
10249 (capture::gen_transform, dt_operand::get_name,
10250 dt_operand::gen_opname): Rename generated vars.
10251 (write_predicate): Adjust call to gen_kids.
10252 (parser::get_internal_capture_id): Rename generated vars.
10253 (parser::parse_expr): Rename local vars.
10254 (parser::parse_if): Remove local var.
10255 (parser::parse_pattern, add_operator): Rename local vars.
10256
10257 2019-10-04 Joseph Myers <joseph@codesourcery.com>
10258
10259 * builtins.def (DEF_C2X_BUILTIN): New macro.
10260 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
10261 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
10262 (strndup): Use DEF_C2X_BUILTIN.
10263 * coretypes.h (enum function_class): Add function_c2x_misc.
10264
10265 2019-10-04 Maya Rashish <coypu@sdf.org>
10266
10267 * ira-color.c (update_costs_from_allocno): Call
10268 ira_init_register_move_cost_if_necessary.
10269
10270 2019-10-04 Jeff Law <law@redhat.com>
10271
10272 * config/h8300/h8300.md (cpymemsi): Disable.
10273 (movmd, movmd_internal_<mode>, movstr, movsd):
10274 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
10275 (movmd splitter, movsd splitter): Likewise.
10276
10277 * range-op.cc (range_tests): Avoid two tests when ints and
10278 shorts are the same size.
10279
10280 2019-10-04 Richard Biener <rguenther@suse.de>
10281
10282 PR lto/91968
10283 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
10284 BLOCK_VARS.
10285
10286 2019-10-04 Richard Biener <rguenther@suse.de>
10287
10288 PR tree-optimization/91982
10289 * tree-vect-loop.c (vectorizable_live_operation): Also guard
10290 against EXTRACT_LAST_REDUCTION.
10291 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
10292
10293 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
10294
10295 * range-op.o (value_range_from_overflowed_bounds): Rename from
10296 adjust_overflow_bound.
10297 (value_range_with_overflow): Rename from
10298 create_range_with_overflow.
10299 (create_possibly_reversed_range): Adjusted for above renames.
10300 (operator_*::wi_fold): Same.
10301 (cross_product_operator::wi_cross_productor): Same.
10302
10303 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10304
10305 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
10306 -Wshadow=compatible-local): Fix description.
10307 Add an example where -Wshadow=compatible-local does not
10308 warn.
10309
10310 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
10311
10312 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
10313
10314 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
10315 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
10316
10317 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10318
10319 * expr.c (emit_block_move_hints): Slightly cleaner fix to
10320 can_move_by_pieces issue.
10321
10322 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
10323
10324 PR target/87243
10325 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
10326 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
10327 is available and the user has not set one on the command line.
10328
10329 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10330
10331 PR target/91769
10332 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
10333 instead of REGNO equality check on addr.reg.
10334
10335 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
10336
10337 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
10338 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
10339 * doc/invoke.texi (inline-heuristics-hint-percent,
10340 inline-heuristics-hint-percent-O2): Document.
10341 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
10342 hint attribute.
10343 (can_inline_edge_by_limits_p): Use it.
10344
10345 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
10346
10347 * config/arm/arm.c (arm_print_value): Use real_to_decimal
10348 to print CONST_DOUBLEs.
10349
10350 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
10351
10352 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
10353 * ipa-prop.c (ipcp_free_transformation_sum): New function.
10354 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
10355
10356 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
10357
10358 * Makefile.in (OBJS): Add range.o and range-op.o.
10359 Remove wide-int-range.o.
10360 * function-tests.c (test_ranges): New.
10361 (function_tests_c_tests): Call test_ranges.
10362 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
10363 range_fold_unary_expr instead of extract_range_from_unary_expr.
10364 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10365 * range-op.cc: New file.
10366 * range-op.h: New file.
10367 * range.cc: New file.
10368 * range.h: New file.
10369 * selftest.h (range_tests): New prototype.
10370 * ssa.h: Include range.h.
10371 * tree-vrp.c (value_range_base::value_range_base): New
10372 constructors.
10373 (value_range_base::singleton_p): Do not call
10374 ranges_from_anti_range until sure we will need to.
10375 (value_range_base::type): Rename gcc_assert to
10376 gcc_checking_assert.
10377 (vrp_val_is_max): New argument.
10378 (vrp_val_is_min): Same.
10379 (wide_int_range_set_zero_nonzero_bits): Move from
10380 wide-int-range.cc.
10381 (extract_range_into_wide_ints): Remove.
10382 (extract_range_from_multiplicative_op): Remove.
10383 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10384 from extract_range_from_binary_expr.
10385 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10386 from extract_range_from_binary_expr.
10387 (extract_range_from_binary_expr): Remove.
10388 (normalize_for_range_ops): New.
10389 (range_fold_binary_expr): New.
10390 (range_fold_unary_expr): New.
10391 (value_range_base::num_pairs): New.
10392 (value_range_base::lower_bound): New.
10393 (value_range_base::upper_bound): New.
10394 (value_range_base::upper_bound): New.
10395 (value_range_base::contains_p): New.
10396 (value_range_base::invert): New.
10397 (value_range_base::union_): New.
10398 (value_range_base::intersect): New.
10399 (range_compatible_p): New.
10400 (value_range_base::operator==): New.
10401 (determine_value_range_1): Call range_fold_*expr instead of
10402 extract_range_from_*expr.
10403 * tree-vrp.h (class value_range_base): Add new constructors.
10404 Add methods for union_, intersect, operator==, contains_p,
10405 num_pairs, lower_bound, upper_bound, invert.
10406 (vrp_val_is_min): Add handle_pointers argument.
10407 (vrp_val_is_max): Same.
10408 (extract_range_from_unary_expr): Remove.
10409 (extract_range_from_binary_expr): Remove.
10410 (range_fold_unary_expr): New.
10411 (range_fold_binary_expr): New.
10412 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10413 range_fold_binary_expr instead of extract_range_from_binary_expr.
10414 (vr_values::extract_range_basic): Same.
10415 (vr_values::extract_range_from_unary_expr): Call
10416 range_fold_unary_expr instead of extract_range_from_unary_expr.
10417 * wide-int-range.cc: Remove.
10418 * wide-int-range.h: Remove.
10419
10420 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
10421
10422 * config/rs6000/rs6000.c (mem_operand_gpr): Use
10423 SIGNED_16BIT_OFFSET_EXTRA_P macro.
10424 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10425 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10426 macro.
10427
10428 2019-10-02 Joseph Myers <joseph@codesourcery.com>
10429
10430 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10431 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10432 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10433 * glimits.h: Likewise.
10434
10435 2019-10-03 Jakub Jelinek <jakub@redhat.com>
10436
10437 PR rtl-optimization/91976
10438 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10439 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
10440 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
10441
10442 2019-10-02 Martin Sebor <msebor@redhat.com>
10443
10444 PR tree-optimization/80936
10445 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10446
10447 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10448
10449 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10450 instead of reg_class_contents[ALL_REGS].
10451
10452 2019-09-30 Jason Merrill <jason@redhat.com>
10453
10454 Add some hash_map_safe_* functions like vec_safe_*.
10455 * hash-map.h (default_hash_map_size): New variable.
10456 (create_ggc): Use it as default argument.
10457 (hash_map_maybe_create, hash_map_safe_get)
10458 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10459
10460 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10461
10462 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10463 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10464 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10465 (can_inline_edge_by_limits_p): Use it.
10466 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10467 (want_inline_small_function_p): Use O2 bounds.
10468 (edge_badness): LIkewise.
10469 * opts.c (default_options): Add OPT_finline_functions.
10470 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10471 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10472 New parameters.
10473 * doc/invoke.texi (-finline-functions): Update documentation.
10474 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10475 inline-min-speedup-O2): Document.
10476 (early-inlining-insns-O2): Simplify docs.
10477
10478 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10479
10480 PR rtl-optimization/87047
10481 * ifcvt.c (average_cost): New static function. Use it...
10482 (noce_process_if_block): ... here.
10483
10484 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10485
10486 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10487 * config/rs6000/rs6000-string.c (expand_block_move): Add
10488 might_overlap parm.
10489 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10490 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10491
10492 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10493
10494 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10495 (expand_builtin_memcpy): Use might_overlap parm.
10496 (expand_builtin_mempcpy_args): Use might_overlap parm.
10497 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10498 (expand_builtin_memory_copy_args): Add might_overlap parm.
10499 * expr.c (emit_block_move_via_cpymem): Rename to
10500 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10501 or movmem optab as appropriate.
10502 (emit_block_move_hints): Add might_overlap parm, do the right
10503 thing for might_overlap==true.
10504 * expr.h (emit_block_move_hints): Update prototype.
10505
10506 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10507
10508 * tree-eh.h (unsplit_eh_edges): Declare.
10509 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10510 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10511 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10512 (struct store_immediate_info): Add lp_nr field.
10513 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10514 initialize lp_nr with it.
10515 (struct merged_store_group): Add lp_nr and only_constants fields.
10516 (merged_store_group::merged_store_group): Initialize them.
10517 (merged_store_group::can_be_merged_into): Deal with them.
10518 (pass_store_merging): Rename terminate_and_release_chain into
10519 terminate_and_process_chain.
10520 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10521 renaming and remove useless assertions.
10522 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10523 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10524 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10525 instead of always recomputing it and compare lp_nr.
10526 (imm_store_chain_info::output_merged_store): If the group is in an
10527 active EH region, register new stores if they can throw. Moreover,
10528 if the insertion has created new basic blocks, adjust the PHI nodes
10529 of the post landing pad.
10530 (imm_store_chain_info::output_merged_stores): If the original stores
10531 are in an active EH region, deregister them.
10532 (lhs_valid_for_store_merging_p): Prettify.
10533 (adjust_bit_pos): New function extracted from...
10534 (mem_valid_for_store_merging): ...here. Use it for the base address
10535 and also for the offset if it is the addition of a constant.
10536 (lp_nr_for_store): New function.
10537 (pass_store_merging::process_store): Change return type to bool.
10538 Call lp_nr_for_store to initialize the store info. Propagate the
10539 return status of various called functions to the return value.
10540 (store_valid_for_store_merging_p): New predicate.
10541 (enum basic_block_status): New enumeration.
10542 (get_status_for_store_merging): New function.
10543 (pass_store_merging::execute): If the function can throw and catch
10544 non-call exceptions, unsplit the EH edges on entry and clean up the
10545 CFG on exit if something changed. Call get_status_for_store_merging
10546 for every basic block and keep the chains open across basic blocks
10547 when possible. Terminate and process open chains at the end, if any.
10548
10549 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10550
10551 * reginfo.c (globalize_reg): Fix shadowed variable in
10552 function_abis walk.
10553
10554 2019-10-02 Martin Jambor <mjambor@suse.cz>
10555
10556 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10557 do not compute some stuff when set.
10558 (cgraph_node::create_edge): Likewise.
10559 (cgraph_node::create_indirect_edge): Renamed last parameter to
10560 coning_p and flipped its meaning, don't even calculate
10561 inline_failed when set.
10562 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10563 (symbol_table::::create_edge): Likewise.
10564 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10565 the default value.
10566 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10567 call graph edge creating functions.
10568
10569 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10570
10571 PR c++/91222
10572 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10573 namespace types.
10574
10575 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10576
10577 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10578
10579 2019-10-02 Richard Biener <rguenther@suse.de>
10580
10581 * tree-vectorizer.h (vect_transform_reduction): Declare.
10582 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10583 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10584 stmt transform to ...
10585 (vect_transform_reduction): ... this.
10586
10587 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10588
10589 * omp-low.c (lower_omp_target): Dereference optional argument
10590 to work with the right pointer.
10591
10592 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10593
10594 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10595 false.
10596 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10597 * langhooks.h (omp_is_optional_argument): New hook.
10598 * omp-general.c (omp_is_optional_argument): New.
10599 * omp-general.h (omp_is_optional_argument): New declaration.
10600 * omp-low.c (lower_omp_target): Create temporary for received value
10601 and take the address for new_var if the original variable was a
10602 DECL_BY_REFERENCE. Use size of referenced object when a
10603 pass-by-reference optional argument used as argument to firstprivate.
10604
10605 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10606
10607 PR tree-optimization/91940
10608 * tree-vect-patterns.c: Include tree-vector-builder.h and
10609 vec-perm-indices.h.
10610 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10611 unpromoting the argument back to uint16_t, or by converting into a
10612 rotate, or into shifts plus ior.
10613
10614 2019-10-02 Richard Biener <rguenther@suse.de>
10615
10616 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10617 New.
10618 (vect_transform_cycle_phi): Declare.
10619 * tree-vect-stmts.c (vect_transform_stmt): Call
10620 vect_transform_cycle_phi.
10621 * tree-vect-loop.c (vectorizable_reduction): Split out
10622 PHI transformation stage to ...
10623 (vect_transform_cycle_phi): ... here.
10624
10625 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10626
10627 PR middle-end/91957
10628 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10629 eliminable registers.
10630 (make_hard_regno_live): Likewise, and don't make them live.
10631
10632 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10633
10634 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10635 Call pp_emit_prefix.
10636 (layout::print_source_line): Likewise.
10637 (layout::start_annotation_line): Likewise.
10638 (diagnostic_show_locus): Remove call to temporarily clear the
10639 prefix.
10640 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10641 interaction of pp_set_prefix with rulers and fix-it hints.
10642 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10643 prefix when calling diagnostic_show_locus, rather than destroying
10644 it afterwards.
10645 (print_parseable_fixits): Temporarily clear prefix.
10646 * pretty-print.c (pp_format): Save and restore line_length, rather
10647 than assuming it is zero.
10648 (pp_output_formatted_text): Remove assertion that line_length is
10649 zero.
10650
10651 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10652
10653 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10654 Rename to ...
10655 (nonoverlapping_refs_since_match_p): ... this; handle also
10656 ARRAY_REFs.
10657 (alias_stats): Update stats.
10658 (dump_alias_stats): Likewise.
10659 (cheap_array_ref_low_bound): New function.
10660 (aliasing_matching_component_refs_p): Add partial_overlap
10661 argument;
10662 pass it to nonoverlapping_refs_since_match_p.
10663 (aliasing_component_refs_walk): Update call of
10664 aliasing_matching_component_refs_p
10665 (nonoverlapping_array_refs_p): New function.
10666 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10667 indirect_refs_may_alias_p): Update calls of
10668 nonoverlapping_refs_since_match_p.
10669
10670 2019-10-01 Maya Rashish <coypu@sdf.org>
10671
10672 PR target/85401
10673 * ira-color.c (allocno_copy_cost_saving): Call
10674 ira_init_register_move_cost_if_necessary.
10675
10676 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10677
10678 * Makefile.in (gnat_install_lib): New variable.
10679 * configure.ac: Substitute it.
10680 * configure: Regenerate.
10681
10682 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10683
10684 PR lto/91222
10685 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10686 is matched with non-C++ type
10687
10688 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10689
10690 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10691 after local CSE.
10692
10693 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10694
10695 * doc/invoke.texi (early-inlining-insns-O2): Document.
10696 (early-inlining-insns): Update.
10697 * params.def (early-inlining-insns-O2): New bound.
10698 (early-inlining-insns): Update docs.
10699 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10700
10701 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10702
10703 PR target/88562
10704 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10705 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10706 a memory access insn.
10707
10708 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10709
10710 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10711 vpmsumd.
10712
10713 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10714
10715 PR target/77918
10716 * config/s390/s390.c (s390_expand_vec_compare): Use
10717 gen_vec_cmpordered and gen_vec_cmpunordered.
10718 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10719 vec_unordered): Delete.
10720 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10721 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10722 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10723 (vec_cmp<code>): Generic dispatcher.
10724
10725 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10726
10727 PR target/77918
10728 * config/s390/vector.md (V_HW): Add V1TI in order to make
10729 vcond$a$b generate vcondv1tiv1tf.
10730
10731 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10732
10733 PR rtl-optimization/91948
10734 * ira-build.c (ira_create_allocno): Initialize
10735 ALLOCNO_CROSSED_CALLS_ABIS.
10736 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10737 than regno to ira_need_caller_save_p.
10738
10739 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10740
10741 * config/i386/i386-options.c
10742 (ix86_recompute_optlev_based_flags): New, moved out of...
10743 (ix86_option_override_internal): ... this. Call it.
10744 (ix86_override_options_after_change): Call it here too.
10745
10746 PR debug/91507
10747 * dwarf2out.c (override_type_for_decl_p): New.
10748 (gen_variable_die): Use it.
10749
10750 2019-10-01 Richard Biener <rguenther@suse.de>
10751
10752 * tree-vect-loop.c (vectorizable_reduction): Move variables
10753 to where they are used.
10754
10755 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10756
10757 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10758 (build_def_use): Use PC instead of CC0 in a comment.
10759
10760 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10761
10762 * rtl.def (CLOBBER_HIGH): Delete.
10763 * doc/rtl.texi (clobber_high): Remove documentation.
10764 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10765 (reg_is_clobbered_by_clobber_high): Delete.
10766 (gen_hard_reg_clobber_high): Likewise.
10767 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10768 * cfgexpand.c (expand_gimple_stmt): Likewise.
10769 * combine-stack-adj.c (single_set_for_csa): Likewise.
10770 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10771 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10772 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10773 * cse.c (invalidate_reg): Remove clobber_high parameter.
10774 (invalidate): Update call accordingly.
10775 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10776 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10777 (count_reg_usage, insn_live_p): Likewise.
10778 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10779 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10780 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10781 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10782 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10783 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10784 (mark_nonreg_stores_2): Likewise.
10785 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10786 (df_get_call_refs): Likewise.
10787 * dwarf2out.c (mem_loc_descriptor): Likewise.
10788 * emit-rtl.c (verify_rtx_sharing): Likewise.
10789 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10790 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10791 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10792 * genemit.c (gen_exp, gen_insn): Likewise.
10793 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10794 * haifa-sched.c (haifa_classify_rtx): Likewise.
10795 * ira-build.c (create_insn_allocnos): Likewise.
10796 * ira-costs.c (scan_one_insn): Likewise.
10797 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10798 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10799 * jump.c (mark_jump_label_1): Likewise.
10800 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10801 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10802 handling.
10803 (mark_not_eliminable): Likewise.
10804 * lra-lives.c (process_bb_lives): Likewise.
10805 * lra.c (new_insn_reg): Remove clobber_high parameter.
10806 (collect_non_operand_hard_regs): Likewise. Update call to new
10807 insn_reg. Remove CLOBBER_HIGH handling.
10808 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10809 to collect_non_operand_hard_regs.
10810 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10811 Update call to new_insn_reg.
10812 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10813 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10814 (move2add_note_store): Likewise.
10815 * print-rtl.c (print_pattern): Likewise.
10816 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10817 (if_test_bypass_p): Likewise.
10818 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10819 * reginfo.c (reg_scan_mark_refs): Likewise.
10820 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10821 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10822 (forget_old_reloads_1): Likewise.
10823 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10824 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10825 (dbr_schedule): Likewise.
10826 * resource.c (update_live_status, mark_referenced_resources)
10827 (mark_set_resources): Likewise.
10828 * rtl.c (copy_rtx): Likewise.
10829 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10830 (note_pattern_stores): Likewise.
10831 (reg_is_clobbered_by_clobber_high): Delete.
10832 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10833 CLOBBER_HIGH handling.
10834
10835 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10836
10837 PR target/91452
10838 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10839 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10840 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10841 Handle ARM_PCS_TLSDESC.
10842 (aarch64_tlsdesc_abi_id): New function.
10843 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10844 rtx instead of a list of clobbers and clobber_highs.
10845 (tlsdesc_small_<mode>): Update accordingly.
10846
10847 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10848
10849 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10850 extra callee_abi argument.
10851 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10852 Insert a CALLEE_ABI unspec into the call pattern as the second
10853 element in the PARALLEL.
10854 (aarch64_simd_call_p): Delete.
10855 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10856 the new CALLEE_ABI element of the PARALLEL.
10857 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10858 from the function type, if given.
10859 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10860 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10861 when passed the function_arg_info end marker.
10862 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10863 final argument of gen_sibcall.
10864 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10865 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10866 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10867 pattern.
10868 (call_value): Likewise operand 3.
10869 (sibcall): Likewise operand 2. Place the unspec before rather than
10870 after the return.
10871 (sibcall_value): Likewise operand 3.
10872 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10873 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10874 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10875 constraint strings.
10876 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10877
10878 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10879
10880 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10881 choose_hard_reg_mode.
10882 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10883
10884 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10885
10886 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10887 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10888 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10889
10890 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10891
10892 * diagnostic-show-locus.c (line_label::line_label): Initialize
10893 m_has_vbar.
10894 (line_label::comparator): Reverse the sort order by m_state_idx,
10895 so that when the list is walked backwards the labels appear in
10896 order of insertion into the rich_location.
10897 (line_label::m_has_vbar): New field.
10898 (layout::print_any_labels): When dealing with multiple labels at
10899 the same line and column, only print vertical bars for the one
10900 with the highest label_line.
10901 (selftest::test_one_liner_labels): Update test for multiple labels
10902 to expect the labels to be in the order of insertion into the
10903 rich_location. Add a test for many such labels, where the column
10904 numbers are out-of-order relative to the insertion order.
10905
10906 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10907
10908 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10909 (ix86_frame::expensive_count): Likewise.
10910 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10911 of use_fast_prologue_epilogue robust against incidental changes
10912 in function size.
10913
10914 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10915
10916 PR target/77918
10917 * config/s390/vector.md (vec_unordered<mode>): Call
10918 gen_vec_ordered<mode>.
10919
10920 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10921
10922 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10923 New pattern for ASRD.
10924 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10925 * internal-fn.def (IFN_DIV_POW2): New internal function.
10926 * optabs.def (sdiv_pow2_optab): New optab.
10927 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10928 Modify pattern to support new operation.
10929 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10930 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10931 Document new target selector.
10932
10933 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10934
10935 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10936 to test whether we're compiling a vector PCS function and to test
10937 whether the function needs to save a particular register.
10938 Remove the vector PCS handling of df_set_regs_ever_live.
10939 (aarch64_components_for_bb): Use crtl->abi to test whether
10940 the function needs to save a particular register.
10941 (aarch64_process_components): Use crtl->abi to test whether
10942 we're compiling a vector PCS function.
10943 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10944 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10945
10946 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10947
10948 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10949 Delete.
10950 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10951 whether the block calls a function that clobbers more registers
10952 than the current function is allowed to.
10953 (aarch64_use_simple_return_insn_p): Delete.
10954 * config/aarch64/aarch64.md (simple_return): Remove condition.
10955
10956 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10957
10958 * function-abi.h (function_abi_aggregator): New class.
10959 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10960 function.
10961 * ira.c (update_equiv_regs_prescan): New function. Call
10962 set_paradoxical_subreg here rather than...
10963 (update_equiv_regs): ...here.
10964 (ira): Call update_equiv_regs_prescan.
10965
10966 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10967
10968 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10969 IN_TARGET_CODE.
10970 (call_used_or_fixed_regs): Likewise.
10971 (call_used_or_fixed_reg_p): Likewise.
10972 * reginfo.c (regs_invalidated_by_call): New macro.
10973
10974 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10975
10976 * shrink-wrap.c: Include function-abi.h.
10977 (requires_stack_frame_p): Use crtl->abi to test whether the
10978 current function can use a register without saving it first.
10979
10980 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10981
10982 * sel-sched-ir.h (_def::crosses_call): Replace with...
10983 (_def::crossed_call_abis): ..this new field.
10984 (def_list_add): Take a mask of ABIs instead of a crosses_call
10985 boolean.
10986 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10987 of _def accordingly.
10988 * sel-sched.c: Include function-abi.h.
10989 (hard_regs_data::regs_for_call_clobbered): Delete.
10990 (reg_rename::crosses_call): Replace with...
10991 (reg_rename::crossed_call_abis): ...this new field.
10992 (fur_static_params::crosses_call): Replace with...
10993 (fur_static_params::crossed_call_abis): ...this new field.
10994 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10995 (init_hard_regs_data): Use crtl->abi to test which registers the
10996 current function would need to save before it uses them.
10997 (mark_unavailable_hard_regs): Update handling of call-clobbered
10998 registers, using call_clobbers_in_region to find out which registers
10999 might be call-clobbered (but without taking -fipa-ra into account
11000 for now). Remove separate handling of partially call-clobbered
11001 registers.
11002 (verify_target_availability): Use crossed_call_abis instead of
11003 crosses_call.
11004 (get_spec_check_type_for_insn, find_used_regs): Likewise.
11005 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
11006
11007 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11008
11009 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
11010 function to test whether a register is fully or partly clobbered.
11011
11012 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11013
11014 * rtlanal.c: Include function-abi.h.
11015 (reg_set_p): Use insn_callee_abi to get the ABI of the called
11016 function and clobbers_reg_p to test whether the register
11017 is call-clobbered.
11018 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
11019 to get the ABI of the called function and full_reg_clobbers to
11020 get the set of fully call-clobbered registers. Warn about the
11021 pitfalls of using this mode.
11022
11023 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11024
11025 * reload.c: Include function-abi.h.
11026 (find_equiv_reg): Use clobbers_reg_p to test whether either
11027 of the equivalent registers is clobbered by a call.
11028 * reload1.c: Include function-abi.h.
11029 (reg_reloaded_call_part_clobbered): Delete.
11030 (reload): Use crtl->abi to test which registers would need
11031 saving in the prologue before use.
11032 (find_reg): Likewise.
11033 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
11034 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
11035 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
11036
11037 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11038
11039 * regrename.h (du_head::call_clobber_mask): New field.
11040 (du_head::need_caller_save_reg): Replace with...
11041 (du_head::call_abis): ...this new field.
11042 * regrename.c: Include function-abi.h.
11043 (call_clobbered_in_chain_p): New function.
11044 (check_new_reg_p): Use crtl->abi when deciding whether a register
11045 is free for use after RA. Use call_clobbered_in_chain_p to test
11046 whether a candidate register would be clobbered by a call.
11047 (find_rename_reg): Don't add call-clobber conflicts here.
11048 (rename_chains): Check call_abis instead of need_caller_save_reg.
11049 (merge_chains): Update for changes to du_head.
11050 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
11051 target. Record the ABI identifier in call_abis and the set of
11052 fully or partially clobbered registers in call_clobber_mask.
11053 Add fully-clobbered registers to hard_conflicts here rather
11054 than in find_rename_reg.
11055 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
11056 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
11057 * config/aarch64/falkor-tag-collision-avoidance.c: Include
11058 function-abi.h.
11059 * config/c6x/c6x.c: Likewise.
11060
11061 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11062
11063 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
11064 mode of the register when deciding whether it is no longer
11065 available after a call.
11066
11067 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11068
11069 * recog.c: Include function-abi.h.
11070 (peep2_find_free_register): Use crtl->abi when deciding whether
11071 a register is free for use after RA.
11072
11073 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11074
11075 * postreload-gcse.c: Include regs.h and function-abi.h.
11076 (record_opr_changes): Use insn_callee_abi to get the ABI of the
11077 call insn target. Conservatively assume that partially-clobbered
11078 registers are altered.
11079
11080 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11081
11082 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
11083 when deciding whether a register is free for use after RA.
11084 (reload_combine): Remove unnecessary use of fixed_reg_set.
11085 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
11086 call insn target. Use reg_mode when testing whether a register
11087 is no longer available.
11088
11089 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11090
11091 * target.def (return_call_with_max_clobbers): Delete.
11092 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11093 * doc/tm.texi: Regenerate.
11094 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
11095 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11096 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
11097 (lra_reg::call_insn): Delete.
11098 * lra.c: Include function-abi.h.
11099 (initialize_lra_reg_info_element): Don't initialize the fields above.
11100 (lra): Use crtl->abi to test whether the current function needs to
11101 save a register in the prologue. Remove special pre-inheritance
11102 lra_create_live_ranges pass for flag_ipa_ra.
11103 * lra-assigns.c: Include function-abi.h
11104 (find_hard_regno_for_1): Use crtl->abi to test whether the current
11105 function needs to save a register in the prologue.
11106 (lra_assign): Assert that registers aren't allocated to a
11107 conflicting register, rather than checking only for overlaps
11108 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
11109 and for registers that are not live across a call.
11110 * lra-constraints.c (last_call_for_abi): New variable.
11111 (full_and_partial_call_clobbers): Likewise.
11112 (setup_next_usage_insn): Remove the register from
11113 full_and_partial_call_clobbers.
11114 (need_for_call_save_p): Use call_clobbered_in_region_p to test
11115 whether the register needs a caller save.
11116 (need_for_split_p): Use full_and_partial_reg_clobbers instead
11117 of call_used_or_fixed_regs.
11118 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
11119 full_and_partial_call_clobbers.
11120 * lra-lives.c (check_pseudos_live_through_calls): Replace
11121 last_call_used_reg_set and call_insn arguments with an abi argument.
11122 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
11123 as the set of conflicting registers.
11124 (calls_have_same_clobbers_p): Delete.
11125 (process_bb_lives): Track the ABI of the last call instead of an
11126 insn/HARD_REG_SET pair. Update calls to
11127 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
11128 the set of registers that could be clobbered by an EH edge.
11129 Include partially-clobbered as well as fully-clobbered registers.
11130 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
11131 * lra-remat.c: Include function-abi.h.
11132 (call_used_regs_arr_len, call_used_regs_arr): Delete.
11133 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
11134 registers and bitmap_view to combine them into dead_regs.
11135 (call_used_input_regno_present_p): Take a function_abi argument
11136 and use it to test whether a register is call-clobbered.
11137 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
11138 call insn target. Update tje call to call_used_input_regno_present_p.
11139 (do_remat): Likewise.
11140 (lra_remat): Remove the initialization of call_used_regs_arr_len
11141 and call_used_regs_arr.
11142
11143 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11144
11145 * loop-iv.c: Include regs.h and function-abi.h.
11146 (simplify_using_initial_values): Use insn_callee_abi to get the
11147 ABI of the call insn target. Conservatively assume that
11148 partially-clobbered registers are altered.
11149
11150 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11151
11152 * function-abi.h (call_clobbers_in_region): Declare.
11153 (call_clobbered_in_region_p): New function.
11154 * function-abi.cc (call_clobbers_in_region): Likewise.
11155 * ira-int.h: Include function-abi.h.
11156 (ira_allocno::crossed_calls_abis): New field.
11157 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
11158 (ira_need_caller_save_regs): New function.
11159 (ira_need_caller_save_p): Likewise.
11160 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
11161 of call_used_or_fixed_regs.
11162 (do_reload): Use crtl->abi to test whether the current function
11163 needs to save a register in the prologue. Count registers that
11164 need to be saved rather than registers that don't.
11165 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
11166 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11167 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
11168 (propagate_some_info_from_allocno): Likewise.
11169 (copy_info_to_removed_store_destinations): Likewise.
11170 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
11171 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
11172 (ira_build): Use ira_need_caller_save_regs instead of
11173 call_used_or_fixed_regs.
11174 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
11175 whether the current function would need to save a register
11176 before using it.
11177 (calculate_spill_cost): Likewise.
11178 (allocno_reload_assign): Use ira_need_caller_save_regs and
11179 ira_need_caller_save_p instead of call_used_or_fixed_regs.
11180 * ira-conflicts.c (ira_build_conflicts): Use
11181 ira_need_caller_save_regs rather than call_used_or_fixed_regs
11182 as the set of call-clobbered registers. Remove the
11183 call_used_or_fixed_regs mask from the calculation of
11184 temp_hard_reg_set and mask its use instead. Remove special
11185 handling of partially-clobbered registers.
11186 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
11187 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
11188 calculate the set of conflicting registers for calls that
11189 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
11190 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
11191 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11192 Use eh_edge_abi to calculate the set of registers that could
11193 be clobbered by an EH edge. Include partially-clobbered as
11194 well as fully-clobbered registers.
11195
11196 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11197
11198 * haifa-sched.c: Include function-abi.h.
11199 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
11200 the function would need to save a register before using it.
11201
11202 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11203
11204 * gcse.c: Include function-abi.h.
11205 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
11206 the call insn target. Invalidate partially call-clobbered
11207 registers as well as fully call-clobbered ones.
11208
11209 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11210
11211 * function.c (aggregate_value_p): Work out which ABI the
11212 function is using before testing which registers are at least
11213 partly preserved by a call.
11214
11215 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11216
11217 * early-remat.c: Include regs.h and function-abi.h.
11218 (early_remat::maybe_add_candidate): Don't check for call-clobbered
11219 registers here.
11220 (early_remat::restrict_remat_for_unavail_regs): New function.
11221 (early_remat::restrict_remat_for_call): Likewise.
11222 (early_remat::process_block): Before calling emit_remat_insns
11223 for a previous call in the block, invalidate any candidates
11224 that would clobber call-preserved registers.
11225 (early_remat::emit_remat_insns_for_block): Likewise for the
11226 final call in a block. Do the same thing for live-in registers
11227 when calling emit_remat_insns at the head of a block.
11228
11229 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11230
11231 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
11232 whether the current function needs to save at least part of a
11233 register before using it.
11234 (df_get_exit_block_use_set): Likewise for epilogue restores.
11235
11236 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11237
11238 * df-problems.c: Include regs.h and function-abi.h.
11239 (df_rd_problem_data): Rename sparse_invalidated_by_call to
11240 sparse_invalidated_by_eh and dense_invalidated_by_call to
11241 dense_invalidated_by_eh.
11242 (df_print_bb_index): Update accordingly.
11243 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
11244 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
11245 that are clobbered by an EH edge. Clobber partially-clobbered
11246 registers as well as fully-clobbered ones.
11247 (df_md_confluence_n): Likewise.
11248 (df_rd_local_compute): Likewise. Update for changes to
11249 df_rd_problem_data.
11250 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
11251 of registers that are clobbered by an EH edge. Includde partially-
11252 clobbered registers as well as fully-clobbered ones.
11253
11254 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11255
11256 * cselib.c (cselib_process_insn): If we know what mode a
11257 register was set in, check whether it is clobbered in that
11258 mode by a call. Only fall back to reg_raw_mode if that fails.
11259
11260 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11261
11262 * cse.c: Include regs.h and function-abi.h.
11263 (invalidate_for_call): Take the call insn as an argument.
11264 Use insn_callee_abi to get the ABI of the call and invalidate
11265 partially clobbered registers as well as fully clobbered ones.
11266 (cse_insn): Update call accordingly.
11267
11268 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11269
11270 * combine.c: Include function-abi.h.
11271 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
11272 of the target of call insns. Invalidate partially-clobbered
11273 registers as well as fully-clobbered ones.
11274
11275 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11276
11277 * cfgloopanal.c: Include regs.h and function-abi.h.
11278 (init_set_costs): Use default_function_abi to test whether
11279 a general register is call-clobbered.
11280
11281 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11282
11283 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
11284 instead of the call-clobbered sets.
11285
11286 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11287
11288 * caller-save.c (setup_save_areas): Remove redundant |s of
11289 fixed_reg_set.
11290 (save_call_clobbered_regs): Likewise. Use the call ABI rather
11291 than call_used_or_fixed_regs to decide whether a REG_RETURNED
11292 value is useful.
11293
11294 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11295
11296 * rtl.h (predefined_function_abi): Declare.
11297 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11298 instead of a boolean call_save flag.
11299 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
11300 accordingly.
11301 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11302 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11303 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
11304 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11305 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11306 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
11307 * reginfo.c (init_reg_modes_target): Likewise.
11308 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11309 instead of a boolean call_save flag.
11310 * targhooks.c: Include function-abi.h.
11311 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
11312 using eh_edge_abi to choose the mode.
11313
11314 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11315
11316 * target.def (hard_regno_call_part_clobbered): Take an ABI
11317 identifier instead of an rtx_insn.
11318 * doc/tm.texi: Regenerate.
11319 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
11320 (hook_bool_uint_uint_mode_false): New function.
11321 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
11322 (hook_bool_uint_uint_mode_false): New function.
11323 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11324 Take an ABI identifier instead of an rtx_insn.
11325 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
11326 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
11327 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
11328 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
11329 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
11330 Likewise.
11331 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
11332 * cselib.c: Include function-abi.h.
11333 (cselib_process_insn): Update call to
11334 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11335 to get the appropriate ABI identifier.
11336 * function-abi.cc (predefined_function_abi::initialize): Update call
11337 to targetm.hard_regno_call_part_clobbered.
11338 * ira-conflicts.c (ira_build_conflicts): Likewise.
11339 * ira-costs.c (ira_tune_allocno_costs): Likewise.
11340 * lra-constraints.c: Include function-abi.h.
11341 (need_for_call_save_p): Update call to
11342 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11343 to get the appropriate ABI identifier.
11344 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
11345 * regcprop.c (copyprop_hardreg_forward_1): Update call
11346 to targetm.hard_regno_call_part_clobbered.
11347 * reginfo.c (choose_hard_reg_mode): Likewise.
11348 * regrename.c (check_new_reg_p): Likewise.
11349 * reload.c (find_equiv_reg): Likewise.
11350 * reload1.c (emit_reload_insns): Likewise.
11351 * sched-deps.c: Include function-abi.h.
11352 (deps_analyze_insn): Update call to
11353 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11354 to get the appropriate ABI identifier.
11355 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
11356 call to targetm.hard_regno_call_part_clobbered.
11357 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
11358
11359 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11360
11361 * config/i386/i386.c: Include function-abi.h.
11362 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
11363 if they preserve some 256-bit or 512-bit SSE registers.
11364
11365 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11366
11367 * target.def (insn_callee_abi): New hook.
11368 (remove_extra_call_preserved_regs): Delete.
11369 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
11370 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11371 * doc/tm.texi: Regenerate.
11372 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
11373 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
11374 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
11375 insn argument.
11376 (aarch64_remove_extra_call_preserved_regs): Delete.
11377 (aarch64_insn_callee_abi): New function.
11378 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11379 (TARGET_INSN_CALLEE_ABI): New macro.
11380 * rtl.h (get_call_fndecl): Declare.
11381 (cgraph_rtl_info): Fix formatting. Tweak comment for
11382 function_used_regs. Remove function_used_regs_valid.
11383 * rtlanal.c (get_call_fndecl): Moved from final.c
11384 * function-abi.h (insn_callee_abi): Declare.
11385 (target_function_abi_info): Mention insn_callee_abi.
11386 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11387 way to get_call_reg_set_usage did.
11388 (insn_callee_abi): New function.
11389 * regs.h (get_call_reg_set_usage): Delete.
11390 * final.c: Include function-abi.h.
11391 (collect_fn_hard_reg_usage): Add fixed and stack registers to
11392 function_used_regs before the main loop rather than afterwards.
11393 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
11394 if function_used_regs ends up not being useful.
11395 (get_call_fndecl): Move to rtlanal.c
11396 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11397 * caller-save.c: Include function-abi.h.
11398 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11399 instead of get_call_reg_set_usage.
11400 * cfgcleanup.c: Include function-abi.h.
11401 (old_insns_match_p): Use insn_callee_abi instead of
11402 get_call_reg_set_usage.
11403 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11404 a tree.
11405 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
11406 function_used_regs.
11407 * df-scan.c: Include function-abi.h.
11408 (df_get_call_refs): Use insn_callee_abi instead of
11409 get_call_reg_set_usage.
11410 * ira-lives.c: Include function-abi.h.
11411 (process_bb_node_lives): Use insn_callee_abi instead of
11412 get_call_reg_set_usage.
11413 * lra-lives.c: Include function-abi.h.
11414 (process_bb_lives): Use insn_callee_abi instead of
11415 get_call_reg_set_usage.
11416 * postreload.c: Include function-abi.h.
11417 (reload_combine): Use insn_callee_abi instead of
11418 get_call_reg_set_usage.
11419 * regcprop.c: Include function-abi.h.
11420 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11421 get_call_reg_set_usage.
11422 * resource.c: Include function-abi.h.
11423 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11424 instead of get_call_reg_set_usage.
11425 * var-tracking.c: Include function-abi.h.
11426 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11427 get_call_reg_set_usage.
11428
11429 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11430
11431 * target.def (fntype_abi): New target hook.
11432 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11433 * doc/tm.texi: Regenerate.
11434 * target.h (predefined_function_abi): Declare.
11435 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11436 if defined.
11437 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11438 * config/aarch64/aarch64.c: Include function-abi.h.
11439 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11440 (TARGET_FNTYPE_ABI): Define.
11441
11442 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11443
11444 * Makefile.in (OBJS): Add function-abi.o.
11445 (GTFILES): Add function-abi.h.
11446 * function-abi.cc: New file.
11447 * function-abi.h: Likewise.
11448 * emit-rtl.h (rtl_data::abi): New field.
11449 * function.c: Include function-abi.h.
11450 (prepare_function_start): Initialize crtl->abi.
11451 * read-rtl-function.c: Include regs.h and function-abi.h.
11452 (read_rtl_function_body): Initialize crtl->abi.
11453 (read_rtl_function_body_from_file_range): Likewise.
11454 * reginfo.c: Include function-abi.h.
11455 (init_reg_sets_1): Initialize default_function_abi.
11456 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11457 when making a register global.
11458 * target-globals.h (this_target_function_abi_info): Declare.
11459 (target_globals::function_abi_info): New field.
11460 (restore_target_globals): Copy it.
11461 * target-globals.c: Include function-abi.h.
11462 (default_target_globals): Initialize the function_abi_info field.
11463 (target_globals): Allocate it.
11464 (save_target_globals): Free it.
11465
11466 2019-09-30 Nick Clifton <nickc@redhat.com>
11467
11468 PR target/85978
11469 * config/frv/frv.c (frv_register_move_cost): Add break statements
11470 to avoid falling through to the wrong cases. Tidy code.
11471
11472 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11473
11474 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11475 For multi-registers modes, test how big each register part is.
11476
11477 2019-09-30 Nick Clifton <nickc@redhat.com>
11478
11479 PR target/59205
11480 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11481 (TARGET_ASM_SELECT_SECTION): Remove definition.
11482 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11483
11484 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11485
11486 * emit-rtl.c (init_raw_REG): New function.
11487 (gen_raw_REG): Use init_raw_REG.
11488 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11489 macros.
11490 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11491 * rtl.h (rtx_init): New function.
11492 (rtx_alloca): New function.
11493 (init_raw_REG): New function.
11494 (alloca_raw_REG): New macro.
11495
11496 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11497
11498 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11499 (pcrel_local_address): Replace pcrel_address predicate, use the
11500 new function address_to_insn_form.
11501 (pcrel_external_address): Replace with new implementation using
11502 address_to_insn_form..
11503 (prefixed_mem_operand): Delete predicate which is now unused.
11504 (pcrel_external_mem_operand): Delete predicate which is now
11505 unused.
11506 * config/rs6000/rs6000-protos.h (enum insn_form): New
11507 enumeration.
11508 (enum non_prefixed_form): New enumeration.
11509 (address_to_insn_form): New declaration.
11510 (prefixed_load_p): New declaration.
11511 (prefixed_store_p): New declaration.
11512 (prefixed_paddi_p): New declaration.
11513 (rs6000_asm_output_opcode): New declaration.
11514 (rs6000_final_prescan_insn): Move declaration and update calling
11515 signature.
11516 (address_is_prefixed): New helper inline function.
11517 * config/rs6000/rs6000.c(print_operand_address): Check for either
11518 PC-relative local symbols or PC-relative external symbols.
11519 (rs6000_emit_move): Support loading PC-relative addresses.
11520 (mode_supports_prefixed_address_p): Delete, no longer used.
11521 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11522 (address_to_insn_form): New function to decode an address format.
11523 (reg_to_non_prefixed): New function to identify what the
11524 non-prefixed memory instruction format is for a register.
11525 (prefixed_load_p): New function to identify prefixed loads.
11526 (prefixed_store_p): New function to identify prefixed stores.
11527 (prefixed_paddi_p): New function to identify prefixed load
11528 immediates.
11529 (next_insn_prefixed_p): New static state variable.
11530 (rs6000_final_prescan_insn): New function to determine if an insn
11531 uses a prefixed instruction.
11532 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11533 prefixed instruction.
11534 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11535 (ASM_OUTPUT_OPCODE): New target hook.
11536 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11537 prefixed instructions.
11538 (prefixed_length): New insn attribute for the size of prefixed
11539 instructions.
11540 (non_prefixed_length): New insn attribute for the size of
11541 non-prefixed instructions.
11542 (pcrel_local_addr): New insn to load up a local PC-relative
11543 address.
11544 (pcrel_extern_addr): New insn to load up an external PC-relative
11545 address.
11546 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11547 GPR and loading a 128-bit floating point type to a GPR.
11548
11549 2019-09-30 Richard Biener <rguenther@suse.de>
11550
11551 * gimple.c (gimple_get_lhs): For PHIs return the result.
11552 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11553 SLP instance as argument.
11554 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11555 double-reduction PHIs with vectorizable_lc_phi.
11556 (vect_analyze_loop_operations): Adjust.
11557 (vect_create_epilog_for_reduction): Remove all code not dealing
11558 with reduction LC PHI or epilogue generation.
11559 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11560 for live stmts of reductions.
11561 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11562 do not handle defs that are not vect_internal_def.
11563 (can_vectorize_live_stmts): Adjust.
11564 (vect_analyze_stmt): When the vectorized stmt defined a value
11565 used on backedges adjust the backedge uses of vectorized PHIs.
11566
11567 2019-09-30 Martin Jambor <mjambor@suse.cz>
11568
11569 PR ipa/91853
11570 * tree-inline.c (force_value_to_type): New function.
11571 (setup_one_parameter): Use force_value_to_type to convert type.
11572 * tree-inline.c (force_value_to_type): Declare.
11573 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11574 with register type mismatches.
11575
11576 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11577
11578 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11579 32-bit PowerPC.
11580 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11581 * config/rs6000/t-freebsd64: Make use of the above define and build
11582 the 32-bit libraries with secure-plt.
11583
11584 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11585
11586 PR target/91931
11587 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11588 gen_int_mode instead of GEN_INT.
11589
11590 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11591
11592 * config/darwin.c (gen_macho_low): Amend to include the mode
11593 argument.
11594 (machopic_indirect_data_reference): Amend gen_macho_low call
11595 to include mode argument
11596 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11597 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11598 the macho_high expander and two define_insn entries.
11599
11600 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11601
11602 PR bootstrap/90543
11603 * optc-save-gen.awk: Fix up printing string option differences.
11604
11605 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11606
11607 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11608 vec_perm cost to 1 for non-Power7 VSX architectures.
11609
11610 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11611
11612 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11613 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11614 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11615
11616 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11617
11618 * config/darwin.c (gen_macho_high): Amend to include the mode
11619 argument.
11620 (machopic_indirect_data_reference): Amend gen_macho_high call
11621 to include mode argument.
11622 (machopic_legitimize_pic_address): Likewise.
11623 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11624 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11625 the macho_high expander and two define_insn entries.
11626
11627 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11628
11629 PR target/86805
11630 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11631
11632 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11633
11634 PR target/80672
11635 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11636 std::string::compare instead of std::string::find.
11637
11638 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11639
11640 * configure: Regenerate.
11641
11642 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11643
11644 PR middle-end/91920
11645 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11646 variables as shared.
11647
11648 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11649
11650 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11651 replaces the expander and two define_insn entries.
11652 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11653 call.
11654 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11655
11656 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11657
11658 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11659 (fibonacci_heap::nodes): Likewise.
11660 (fibonacci_heap::min_key): Likewise.
11661 (fibonacci_heap::min): Likewise.
11662
11663 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11664
11665 * cgraph.c (cgraph_node::get_fun): Make const.
11666 * cgraph.h (cgraph_node::get_fun): Likewise.
11667
11668 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11669
11670 PR target/91919
11671 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11672 of SImode MULT.
11673
11674 2019-09-27 Richard Biener <rguenther@suse.de>
11675
11676 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11677 (STMT_VINFO_REDUC_FN): Likewise.
11678 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11679 STMT_VINFO_REDUC_FN.
11680 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11681 for condition reductions.
11682 (vect_create_epilog_for_reduction): Compute all required state
11683 from the stmt to be vectorized.
11684 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11685 invocation and remove then dead code. For single def-use chains
11686 record only a single vector stmt.
11687
11688 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11689
11690 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11691 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11692 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11693 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11694 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11695 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11696 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11697 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11698 (aarch64_general_builtin_rsqrt): Declare.
11699 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11700 New function.
11701 (aarch64_mangle_builtin_type): Rename to...
11702 (aarch64_general_mangle_builtin_type): ...this.
11703 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11704 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11705 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11706 aarch64_general_add_builtin instead of add_builtin_function.
11707 (aarch64_init_builtins): Rename to...
11708 (aarch64_general_init_builtins): ...this. Use
11709 aarch64_general_add_builtin instead of add_builtin_function.
11710 (aarch64_builtin_decl): Rename to...
11711 (aarch64_general_builtin_decl): ...this and remove the unused
11712 arguments.
11713 (aarch64_expand_builtin): Rename to...
11714 (aarch64_general_expand_builtin): ...this and remove the unused
11715 arguments.
11716 (aarch64_builtin_rsqrt): Rename to...
11717 (aarch64_general_builtin_rsqrt): ...this.
11718 (aarch64_fold_builtin): Rename to...
11719 (aarch64_general_fold_builtin): ...this. Take the function subcode
11720 and return type as arguments. Remove the "ignored" argument.
11721 (aarch64_gimple_fold_builtin): Rename to...
11722 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11723 subcode and gcall as arguments, and return the new function call.
11724 * config/aarch64/aarch64.c (aarch64_init_builtins)
11725 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11726 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11727 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11728 instead of aarch64_builtin_rsqrt.
11729 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11730 instead of aarch64_mangle_builtin_type.
11731
11732 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11733
11734 * target.def (check_builtin_call): New target hook.
11735 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11736 * doc/tm.texi: Regenerate.
11737
11738 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11739
11740 PR tree-optimization/91909
11741 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11742 reduc_index parameter. When handling COND_REDUCTION, make sure
11743 that the reduction phi operand is in the correct arm of the
11744 VEC_COND_EXPR.
11745 (vectorizable_reduction): Pass reduc_index to the above.
11746
11747 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11748
11749 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11750 New combine pattern.
11751
11752 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11753
11754 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11755 loop instruction into new basic block before the loop when basic
11756 block that precedes the loop is empty.
11757
11758 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11759
11760 * function.c (gimplify_parameters): Use build_clobber function.
11761 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11762 * tree-inline.c (expand_call_inline): Likewise.
11763 * tree-sra.c (clobber_subtree): Likewise.
11764 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11765 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11766 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11767 lower_omp_target): Likewise.
11768 * omp-expand.c (expand_omp_for_generic): Likewise.
11769 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11770
11771 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11772
11773 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11774 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11775 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11776 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11777 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11778 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11779 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11780 LD_ELEMREV_V16QI): Use the PURE attribute.
11781
11782 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11783
11784 * config/rs6000/darwin.md: Replace the expanders for
11785 load_macho_picbase and reload_macho_picbase with use of '@'
11786 and <mode> in their respective define_insns.
11787 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11788 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11789 Pmode to gen_load_macho_picbase.
11790 * config/rs6000/rs6000.md: Likewise.
11791
11792 2019-09-25 Richard Biener <rguenther@suse.de>
11793
11794 PR tree-optimization/91896
11795 * tree-vect-loop.c (vectorizable_reduction): The single
11796 def-use cycle optimization cannot apply when there's more
11797 than one pattern stmt involved.
11798
11799 2019-09-26 Richard Biener <rguenther@suse.de>
11800
11801 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11802 loop-closed PHIs that are vect_internal_def.
11803 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11804 Simplify.
11805 (vectorizable_lc_phi): New.
11806 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11807 (vect_transform_stmt): Likewise.
11808 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11809 (vectorizable_lc_phi): Declare.
11810
11811 2019-09-26 Richard Biener <rguenther@suse.de>
11812
11813 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11814 vectorizable_reduction for vect_double_reduction_def.
11815 (vect_transform_loop): Likewise.
11816 (vect_create_epilog_for_reduction): Move double-reduction
11817 PHI creation and preheader argument setting of PHIs ...
11818 (vectorizable_reduction): ... here. Also process
11819 vect_double_reduction_def PHIs, creating the vectorized
11820 PHI nodes, remembering the scalar adjustment computed for
11821 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11822 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11823 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11824 Initialize STMT_VINFO_REDUC_CODE.
11825 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11826 (_stmt_vec_info::reduc_code): Likewise.
11827 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11828 (STMT_VINFO_REDUC_CODE): Likewise.
11829
11830 2019-09-26 Matt Turner <mattst88@gmail.com>
11831
11832 PR driver/69471
11833 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11834 (mtune=): Add Negative(mtune=).
11835 (mcpu=): Add Negative(mcpu=).
11836 * config/arm/arm.opt: Likewise.
11837
11838 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11839
11840 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11841 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11842 Define.
11843 * config/arm/arm_acle.h: Define builtins for the above.
11844 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11845 (simd32_op): Handle the above.
11846 * config/arm/unspecs.md: Define unspecs for the above.
11847
11848 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11849
11850 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11851 (arm_<sup>xtb16): Likewise.
11852 (arm_usada8): Likewise.
11853 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11854 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11855 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11856 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11857 __sxtb16, __uxtab16, __uxtb16): Define.
11858 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11859 * config/arm/unspecs.md: Define unspecs for the above.
11860 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11861 (USXTB16): Likewise.
11862 (simd32_op): New int_attribute.
11863 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11864 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11865
11866 2019-09-26 Martin Jambor <mjambor@suse.cz>
11867
11868 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11869 internal_error.
11870
11871 2019-09-26 Martin Jambor <mjambor@suse.cz>
11872
11873 * ipa-sra.c (process_scan_results): Fix continue condition.
11874
11875 2019-09-26 Martin Liska <mliska@suse.cz>
11876
11877 PR tree-optimization/91885
11878 * tree-vectorizer.c (try_vectorize_loop_1): Add
11879 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11880
11881 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11882
11883 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11884 aarch64_plus_immediate rather than aarch64_uimm12_shift
11885 to test for valid PLUS immediates.
11886
11887 2019-09-25 Martin Jambor <mjambor@suse.cz>
11888
11889 * tree-sra.c (no_accesses_p): Remove.
11890 (no_accesses_representant): Likewise.
11891
11892 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11893
11894 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11895 consistenly.
11896 (vaba_s16): Likewise.
11897 (vaba_s32): Likewise.
11898 (vaba_u8): Likewise.
11899 (vaba_u16): Likewise.
11900 (vaba_u32): Likewise.
11901 (vabal_high_s8): Likewise.
11902 (vabal_high_s16): Likewise.
11903 (vabal_high_s32): Likewise.
11904 (vabal_high_u8): Likewise.
11905 (vabal_high_u16): Likewise.
11906 (vabal_high_u32): Likewise.
11907 (vabal_s8): Likewise.
11908 (vabal_s16): Likewise.
11909 (vabal_s32): Likewise.
11910 (vabal_u8): Likewise.
11911 (vabal_u16): Likewise.
11912 (vabal_u32): Likewise.
11913 (vabaq_s8): Likewise.
11914 (vabaq_s16): Likewise.
11915 (vabaq_s32): Likewise.
11916 (vabaq_u8): Likewise.
11917 (vabaq_u16): Likewise.
11918 (vabaq_u32): Likewise.
11919 (vabd_s8): Likewise.
11920 (vabd_s16): Likewise.
11921 (vabd_s32): Likewise.
11922 (vabd_u8): Likewise.
11923 (vabd_u16): Likewise.
11924 (vabd_u32): Likewise.
11925 (vabdl_high_s8): Likewise.
11926 (vabdl_high_s16): Likewise.
11927 (vabdl_high_s32): Likewise.
11928 (vabdl_high_u8): Likewise.
11929 (vabdl_high_u16): Likewise.
11930 (vabdl_high_u32): Likewise.
11931 (vabdl_s8): Likewise.
11932 (vabdl_s16): Likewise.
11933 (vabdl_s32): Likewise.
11934 (vabdl_u8): Likewise.
11935 (vabdl_u16): Likewise.
11936 (vabdl_u32): Likewise.
11937 (vabdq_s8): Likewise.
11938 (vabdq_s16): Likewise.
11939 (vabdq_s32): Likewise.
11940 (vabdq_u8): Likewise.
11941 (vabdq_u16): Likewise.
11942 (vabdq_u32): Likewise.
11943 (vaddlv_s8): Likewise.
11944 (vaddlv_s16): Likewise.
11945 (vaddlv_u8): Likewise.
11946 (vaddlv_u16): Likewise.
11947 (vaddlvq_s8): Likewise.
11948 (vaddlvq_s16): Likewise.
11949 (vaddlvq_s32): Likewise.
11950 (vaddlvq_u8): Likewise.
11951 (vaddlvq_u16): Likewise.
11952 (vaddlvq_u32): Likewise.
11953 (vcvtx_f32_f64): Likewise.
11954 (vcvtx_high_f32_f64): Likewise.
11955 (vcvtxd_f32_f64): Likewise.
11956 (vmla_n_f32): Likewise.
11957 (vmla_n_s16): Likewise.
11958 (vmla_n_s32): Likewise.
11959 (vmla_n_u16): Likewise.
11960 (vmla_n_u32): Likewise.
11961 (vmla_s8): Likewise.
11962 (vmla_s16): Likewise.
11963 (vmla_s32): Likewise.
11964 (vmla_u8): Likewise.
11965 (vmla_u16): Likewise.
11966 (vmla_u32): Likewise.
11967 (vmlal_high_n_s16): Likewise.
11968 (vmlal_high_n_s32): Likewise.
11969 (vmlal_high_n_u16): Likewise.
11970 (vmlal_high_n_u32): Likewise.
11971 (vmlal_high_s8): Likewise.
11972 (vmlal_high_s16): Likewise.
11973 (vmlal_high_s32): Likewise.
11974 (vmlal_high_u8): Likewise.
11975 (vmlal_high_u16): Likewise.
11976 (vmlal_high_u32): Likewise.
11977 (vmlal_n_s16): Likewise.
11978 (vmlal_n_s32): Likewise.
11979 (vmlal_n_u16): Likewise.
11980 (vmlal_n_u32): Likewise.
11981 (vmlal_s8): Likewise.
11982 (vmlal_s16): Likewise.
11983 (vmlal_s32): Likewise.
11984 (vmlal_u8): Likewise.
11985 (vmlal_u16): Likewise.
11986 (vmlal_u32): Likewise.
11987 (vmlaq_n_f32): Likewise.
11988 (vmlaq_n_s16): Likewise.
11989 (vmlaq_n_s32): Likewise.
11990 (vmlaq_n_u16): Likewise.
11991 (vmlaq_n_u32): Likewise.
11992 (vmlaq_s8): Likewise.
11993 (vmlaq_s16): Likewise.
11994 (vmlaq_s32): Likewise.
11995 (vmlaq_u8): Likewise.
11996 (vmlaq_u16): Likewise.
11997 (vmlaq_u32): Likewise.
11998 (vmls_n_f32): Likewise.
11999 (vmls_n_s16): Likewise.
12000 (vmls_n_s32): Likewise.
12001 (vmls_n_u16): Likewise.
12002 (vmls_n_u32): Likewise.
12003 (vmls_s8): Likewise.
12004 (vmls_s16): Likewise.
12005 (vmls_s32): Likewise.
12006 (vmls_u8): Likewise.
12007 (vmls_u16): Likewise.
12008 (vmls_u32): Likewise.
12009 (vmlsl_high_n_s16): Likewise.
12010 (vmlsl_high_n_s32): Likewise.
12011 (vmlsl_high_n_u16): Likewise.
12012 (vmlsl_high_n_u32): Likewise.
12013 (vmlsl_high_s8): Likewise.
12014 (vmlsl_high_s16): Likewise.
12015 (vmlsl_high_s32): Likewise.
12016 (vmlsl_high_u8): Likewise.
12017 (vmlsl_high_u16): Likewise.
12018 (vmlsl_high_u32): Likewise.
12019 (vmlsl_n_s16): Likewise.
12020 (vmlsl_n_s32): Likewise.
12021 (vmlsl_n_u16): Likewise.
12022 (vmlsl_n_u32): Likewise.
12023 (vmlsl_s8): Likewise.
12024 (vmlsl_s16): Likewise.
12025 (vmlsl_s32): Likewise.
12026 (vmlsl_u8): Likewise.
12027 (vmlsl_u16): Likewise.
12028 (vmlsl_u32): Likewise.
12029 (vmlsq_n_f32): Likewise.
12030 (vmlsq_n_s16): Likewise.
12031 (vmlsq_n_s32): Likewise.
12032 (vmlsq_n_u16): Likewise.
12033 (vmlsq_n_u32): Likewise.
12034 (vmlsq_s8): Likewise.
12035 (vmlsq_s16): Likewise.
12036 (vmlsq_s32): Likewise.
12037 (vmlsq_u8): Likewise.
12038 (vmlsq_u16): Likewise.
12039 (vmlsq_u32): Likewise.
12040 (vmovl_high_s8): Likewise.
12041 (vmovl_high_s16): Likewise.
12042 (vmovl_high_s32): Likewise.
12043 (vmovl_high_u8): Likewise.
12044 (vmovl_high_u16): Likewise.
12045 (vmovl_high_u32): Likewise.
12046 (vmovl_s8): Likewise.
12047 (vmovl_s16): Likewise.
12048 (vmovl_s32): Likewise.
12049 (vmovl_u8): Likewise.
12050 (vmovl_u16): Likewise.
12051 (vmovl_u32): Likewise.
12052 (vmovn_high_s16): Likewise.
12053 (vmovn_high_s32): Likewise.
12054 (vmovn_high_s64): Likewise.
12055 (vmovn_high_u16): Likewise.
12056 (vmovn_high_u32): Likewise.
12057 (vmovn_high_u64): Likewise.
12058 (vmovn_s16): Likewise.
12059 (vmovn_s32): Likewise.
12060 (vmovn_s64): Likewise.
12061 (vmovn_u16): Likewise.
12062 (vmovn_u32): Likewise.
12063 (vmovn_u64): Likewise.
12064 (vmull_high_n_s16): Likewise.
12065 (vmull_high_n_s32): Likewise.
12066 (vmull_high_n_u16): Likewise.
12067 (vmull_high_n_u32): Likewise.
12068 (vmull_high_p8): Likewise.
12069 (vmull_high_s8): Likewise.
12070 (vmull_high_s16): Likewise.
12071 (vmull_high_s32): Likewise.
12072 (vmull_high_u8): Likewise.
12073 (vmull_high_u16): Likewise.
12074 (vmull_high_u32): Likewise.
12075 (vmull_n_s16): Likewise.
12076 (vmull_n_s32): Likewise.
12077 (vmull_n_u16): Likewise.
12078 (vmull_n_u32): Likewise.
12079 (vmull_p8): Likewise.
12080 (vmull_s8): Likewise.
12081 (vmull_s16): Likewise.
12082 (vmull_s32): Likewise.
12083 (vmull_u8): Likewise.
12084 (vmull_u16): Likewise.
12085 (vmull_u32): Likewise.
12086 (vpadal_s8): Likewise.
12087 (vpadal_s16): Likewise.
12088 (vpadal_s32): Likewise.
12089 (vpadal_u8): Likewise.
12090 (vpadal_u16): Likewise.
12091 (vpadal_u32): Likewise.
12092 (vpadalq_s8): Likewise.
12093 (vpadalq_s16): Likewise.
12094 (vpadalq_s32): Likewise.
12095 (vpadalq_u8): Likewise.
12096 (vpadalq_u16): Likewise.
12097 (vpadalq_u32): Likewise.
12098 (vpaddl_s8): Likewise.
12099 (vpaddl_s16): Likewise.
12100 (vpaddl_s32): Likewise.
12101 (vpaddl_u8): Likewise.
12102 (vpaddl_u16): Likewise.
12103 (vpaddl_u32): Likewise.
12104 (vpaddlq_s8): Likewise.
12105 (vpaddlq_s16): Likewise.
12106 (vpaddlq_s32): Likewise.
12107 (vpaddlq_u8): Likewise.
12108 (vpaddlq_u16): Likewise.
12109 (vpaddlq_u32): Likewise.
12110 (vpaddq_s8): Likewise.
12111 (vpaddq_s16): Likewise.
12112 (vpaddq_s32): Likewise.
12113 (vpaddq_s64): Likewise.
12114 (vpaddq_u8): Likewise.
12115 (vpaddq_u16): Likewise.
12116 (vpaddq_u32): Likewise.
12117 (vpaddq_u64): Likewise.
12118 (vqdmulh_n_s16): Likewise.
12119 (vqdmulh_n_s32): Likewise.
12120 (vqdmulhq_n_s16): Likewise.
12121 (vqdmulhq_n_s32): Likewise.
12122 (vqmovn_high_s16): Likewise.
12123 (vqmovn_high_s32): Likewise.
12124 (vqmovn_high_s64): Likewise.
12125 (vqmovn_high_u16): Likewise.
12126 (vqmovn_high_u32): Likewise.
12127 (vqmovn_high_u64): Likewise.
12128 (vqmovun_high_s16): Likewise.
12129 (vqmovun_high_s32): Likewise.
12130 (vqmovun_high_s64): Likewise.
12131 (vqrdmulh_n_s16): Likewise.
12132 (vqrdmulh_n_s32): Likewise.
12133 (vqrdmulhq_n_s16): Likewise.
12134 (vqrdmulhq_n_s32): Likewise.
12135 (vrsqrte_u32): Likewise.
12136 (vrsqrteq_u32): Likewise.
12137 (vtst_p8): Likewise.
12138 (vtst_p16): Likewise.
12139 (vtst_p64): Likewise.
12140 (vtstq_p8): Likewise.
12141 (vtstq_p16): Likewise.
12142 (vtstq_p64): Likewise.
12143 (vaddlv_s32): Likewise.
12144 (vaddlv_u32): Likewise.
12145 (vqtbl1_p8): Likewise.
12146 (vqtbl1_s8): Likewise.
12147 (vqtbl1_u8): Likewise.
12148 (vqtbl1q_p8): Likewise.
12149 (vqtbl1q_s8): Likewise.
12150 (vqtbl1q_u8): Likewise.
12151 (vqtbx1_s8): Likewise.
12152 (vqtbx1_u8): Likewise.
12153 (vqtbx1_p8): Likewise.
12154 (vqtbx1q_s8): Likewise.
12155 (vqtbx1q_u8): Likewise.
12156 (vqtbx1q_p8): Likewise.
12157 (vtbl1_s8): Likewise.
12158 (vtbl1_u8): Likewise.
12159 (vtbl1_p8): Likewise.
12160 (vtbl2_s8): Likewise.
12161 (vtbl2_u8): Likewise.
12162 (vtbl2_p8): Likewise.
12163 (vtbl3_s8): Likewise.
12164 (vtbl3_u8): Likewise.
12165 (vtbl3_p8): Likewise.
12166 (vtbl4_s8): Likewise.
12167 (vtbl4_u8): Likewise.
12168 (vtbl4_p8): Likewise.
12169 (vtbx2_s8): Likewise.
12170 (vtbx2_u8): Likewise.
12171 (vtbx2_p8): Likewise.
12172 (vld1_f32): Likewise.
12173 (vld1_f64): Likewise.
12174 (vld1_p8): Likewise.
12175 (vld1_p16): Likewise.
12176 (vld1_p64): Likewise.
12177 (vld1_s8): Likewise.
12178 (vld1_s16): Likewise.
12179 (vld1_s32): Likewise.
12180 (vld1_s64): Likewise.
12181 (vld1_u8): Likewise.
12182 (vld1_u16): Likewise.
12183 (vld1_u32): Likewise.
12184 (vld1_u64): Likewise.
12185 (vld1q_f32): Likewise.
12186 (vld1q_f64): Likewise.
12187 (vld1q_p8): Likewise.
12188 (vld1q_p16): Likewise.
12189 (vld1q_p64): Likewise.
12190 (vld1q_s8): Likewise.
12191 (vld1q_s16): Likewise.
12192 (vld1q_s32): Likewise.
12193 (vld1q_s64): Likewise.
12194 (vld1q_u8): Likewise.
12195 (vld1q_u16): Likewise.
12196 (vld1q_u32): Likewise.
12197 (vld1q_u64): Likewise.
12198 (vpmax_s8): Likewise.
12199 (vpmax_s16): Likewise.
12200 (vpmax_s32): Likewise.
12201 (vpmax_u8): Likewise.
12202 (vpmax_u16): Likewise.
12203 (vpmax_u32): Likewise.
12204 (vpmaxq_s8): Likewise.
12205 (vpmaxq_s16): Likewise.
12206 (vpmaxq_s32): Likewise.
12207 (vpmaxq_u8): Likewise.
12208 (vpmaxq_u16): Likewise.
12209 (vpmaxq_u32): Likewise.
12210 (vpmax_f32): Likewise.
12211 (vpmaxq_f32): Likewise.
12212 (vpmaxq_f64): Likewise.
12213 (vpmaxqd_f64): Likewise.
12214 (vpmaxs_f32): Likewise.
12215 (vpmaxnm_f32): Likewise.
12216 (vpmaxnmq_f32): Likewise.
12217 (vpmaxnmq_f64): Likewise.
12218 (vpmaxnmqd_f64): Likewise.
12219 (vpmaxnms_f32): Likewise.
12220 (vpmin_s8): Likewise.
12221 (vpmin_s16): Likewise.
12222 (vpmin_s32): Likewise.
12223 (vpmin_u8): Likewise.
12224 (vpmin_u16): Likewise.
12225 (vpmin_u32): Likewise.
12226 (vpminq_s8): Likewise.
12227 (vpminq_s16): Likewise.
12228 (vpminq_s32): Likewise.
12229 (vpminq_u8): Likewise.
12230 (vpminq_u16): Likewise.
12231 (vpminq_u32): Likewise.
12232 (vpmin_f32): Likewise.
12233 (vpminq_f32): Likewise.
12234 (vpminq_f64): Likewise.
12235 (vpminqd_f64): Likewise.
12236 (vpmins_f32): Likewise.
12237 (vpminnm_f32): Likewise.
12238 (vpminnmq_f32): Likewise.
12239 (vpminnmq_f64): Likewise.
12240 (vpminnmqd_f64): Likewise.
12241 (vpminnms_f32): Likewise.
12242 (vmla_f32): Likewise.
12243 (vmlaq_f32): Likewise.
12244 (vmlaq_f64): Likewise.
12245 (vmls_f32): Likewise.
12246 (vmlsq_f32): Likewise.
12247 (vmlsq_f64): Likewise.
12248 (vqtbl2_s8): Likewise.
12249 (vqtbl2_u8): Likewise.
12250 (vqtbl2_p8): Likewise.
12251 (vqtbl2q_s8): Likewise.
12252 (vqtbl2q_u8): Likewise.
12253 (vqtbl2q_p8): Likewise.
12254 (vqtbl3_s8): Likewise.
12255 (vqtbl3_u8): Likewise.
12256 (vqtbl3_p8): Likewise.
12257 (vqtbl3q_s8): Likewise.
12258 (vqtbl3q_u8): Likewise.
12259 (vqtbl3q_p8): Likewise.
12260 (vqtbl4_s8): Likewise.
12261 (vqtbl4_u8): Likewise.
12262 (vqtbl4_p8): Likewise.
12263 (vqtbl4q_s8): Likewise.
12264 (vqtbl4q_u8): Likewise.
12265 (vqtbl4q_p8): Likewise.
12266 (vqtbx2_s8): Likewise.
12267 (vqtbx2_u8): Likewise.
12268 (vqtbx2_p8): Likewise.
12269 (vqtbx2q_s8): Likewise.
12270 (vqtbx2q_u8): Likewise.
12271 (vqtbx2q_p8): Likewise.
12272 (vqtbx3_s8): Likewise.
12273 (vqtbx3_u8): Likewise.
12274 (vqtbx3_p8): Likewise.
12275 (vqtbx3q_s8): Likewise.
12276 (vqtbx3q_u8): Likewise.
12277 (vqtbx3q_p8): Likewise.
12278 (vqtbx4_s8): Likewise.
12279 (vqtbx4_u8): Likewise.
12280 (vqtbx4_p8): Likewise.
12281 (vqtbx4q_s8): Likewise.
12282 (vqtbx4q_u8): Likewise.
12283 (vqtbx4q_p8): Likewise.
12284 (vrev16_p8): Likewise.
12285 (vrev16_s8): Likewise.
12286 (vrev16_u8): Likewise.
12287 (vrev16q_p8): Likewise.
12288 (vrev16q_s8): Likewise.
12289 (vrev16q_u8): Likewise.
12290 (vrev32_p8): Likewise.
12291 (vrev32_p16): Likewise.
12292 (vrev32_s8): Likewise.
12293 (vrev32_s16): Likewise.
12294 (vrev32_u8): Likewise.
12295 (vrev32_u16): Likewise.
12296 (vrev32q_p8): Likewise.
12297 (vrev32q_p16): Likewise.
12298 (vrev32q_s8): Likewise.
12299 (vrev32q_s16): Likewise.
12300 (vrev32q_u8): Likewise.
12301 (vrev32q_u16): Likewise.
12302 (vrev64_f32): Likewise.
12303 (vrev64_p8): Likewise.
12304 (vrev64_p16): Likewise.
12305 (vrev64_s8): Likewise.
12306 (vrev64_s16): Likewise.
12307 (vrev64_s32): Likewise.
12308 (vrev64_u8): Likewise.
12309 (vrev64_u16): Likewise.
12310 (vrev64_u32): Likewise.
12311 (vrev64q_f32): Likewise.
12312 (vrev64q_p8): Likewise.
12313 (vrev64q_p16): Likewise.
12314 (vrev64q_s8): Likewise.
12315 (vrev64q_s16): Likewise.
12316 (vrev64q_s32): Likewise.
12317 (vrev64q_u8): Likewise.
12318 (vrev64q_u16): Likewise.
12319 (vrev64q_u32): Likewise.
12320 (vsha1cq_u32): Likewise.
12321 (vsha1mq_u32): Likewise.
12322 (vsha1pq_u32): Likewise.
12323 (vsha1h_u32): Likewise.
12324 (vsha1su0q_u32): Likewise.
12325 (vsha1su1q_u32): Likewise.
12326 (vsha256hq_u32): Likewise.
12327 (vsha256h2q_u32): Likewise.
12328 (vsha256su0q_u32): Likewise.
12329 (vsha256su1q_u32): Likewise.
12330 (vmull_p64): Likewise.
12331 (vmull_high_p64): Likewise.
12332 (vsqrt_f32): Likewise.
12333 (vsqrtq_f32): Likewise.
12334 (vsqrt_f64): Likewise.
12335 (vsqrtq_f64): Likewise.
12336 (vst1_f32): Likewise.
12337 (vst1_f64): Likewise.
12338 (vst1_p8): Likewise.
12339 (vst1_p16): Likewise.
12340 (vst1_p64): Likewise.
12341 (vst1_s8): Likewise.
12342 (vst1_s16): Likewise.
12343 (vst1_s32): Likewise.
12344 (vst1_s64): Likewise.
12345 (vst1_u8): Likewise.
12346 (vst1_u16): Likewise.
12347 (vst1_u32): Likewise.
12348 (vst1_u64): Likewise.
12349 (vst1q_f32): Likewise.
12350 (vst1q_f64): Likewise.
12351 (vst1q_p8): Likewise.
12352 (vst1q_p16): Likewise.
12353 (vst1q_p64): Likewise.
12354 (vst1q_s8): Likewise.
12355 (vst1q_s16): Likewise.
12356 (vst1q_s32): Likewise.
12357 (vst1q_s64): Likewise.
12358 (vst1q_u8): Likewise.
12359 (vst1q_u16): Likewise.
12360 (vst1q_u32): Likewise.
12361 (vst1q_u64): Likewise.
12362 (vst1_s64_x2): Likewise.
12363 (vst1_u64_x2): Likewise.
12364 (vst1_f64_x2): Likewise.
12365 (vst1_s8_x2): Likewise.
12366 (vst1_p8_x2): Likewise.
12367 (vst1_s16_x2): Likewise.
12368 (vst1_p16_x2): Likewise.
12369 (vst1_s32_x2): Likewise.
12370 (vst1_u8_x2): Likewise.
12371 (vst1_u16_x2): Likewise.
12372 (vst1_u32_x2): Likewise.
12373 (vst1_f16_x2): Likewise.
12374 (vst1_f32_x2): Likewise.
12375 (vst1_p64_x2): Likewise.
12376 (vst1q_s8_x2): Likewise.
12377 (vst1q_p8_x2): Likewise.
12378 (vst1q_s16_x2): Likewise.
12379 (vst1q_p16_x2): Likewise.
12380 (vst1q_s32_x2): Likewise.
12381 (vst1q_s64_x2): Likewise.
12382 (vst1q_u8_x2): Likewise.
12383 (vst1q_u16_x2): Likewise.
12384 (vst1q_u32_x2): Likewise.
12385 (vst1q_u64_x2): Likewise.
12386 (vst1q_f16_x2): Likewise.
12387 (vst1q_f32_x2): Likewise.
12388 (vst1q_f64_x2): Likewise.
12389 (vst1q_p64_x2): Likewise.
12390 (vst1_s64_x3): Likewise.
12391 (vst1_u64_x3): Likewise.
12392 (vst1_f64_x3): Likewise.
12393 (vst1_s8_x3): Likewise.
12394 (vst1_p8_x3): Likewise.
12395 (vst1_s16_x3): Likewise.
12396 (vst1_p16_x3): Likewise.
12397 (vst1_s32_x3): Likewise.
12398 (vst1_u8_x3): Likewise.
12399 (vst1_u16_x3): Likewise.
12400 (vst1_u32_x3): Likewise.
12401 (vst1_f16_x3): Likewise.
12402 (vst1_f32_x3): Likewise.
12403 (vst1_p64_x3): Likewise.
12404 (vst1q_s8_x3): Likewise.
12405 (vst1q_p8_x3): Likewise.
12406 (vst1q_s16_x3): Likewise.
12407 (vst1q_p16_x3): Likewise.
12408 (vst1q_s32_x3): Likewise.
12409 (vst1q_s64_x3): Likewise.
12410 (vst1q_u8_x3): Likewise.
12411 (vst1q_u16_x3): Likewise.
12412 (vst1q_u32_x3): Likewise.
12413 (vst1q_u64_x3): Likewise.
12414 (vst1q_f16_x3): Likewise.
12415 (vst1q_f32_x3): Likewise.
12416 (vst1q_f64_x3): Likewise.
12417 (vst1q_p64_x3): Likewise.
12418 (vst2_s64): Likewise.
12419 (vst2_u64): Likewise.
12420 (vst2_f64): Likewise.
12421 (vst2_s8): Likewise.
12422 (vst2_p8): Likewise.
12423 (vst2_s16): Likewise.
12424 (vst2_p16): Likewise.
12425 (vst2_s32): Likewise.
12426 (vst2_u8): Likewise.
12427 (vst2_u16): Likewise.
12428 (vst2_u32): Likewise.
12429 (vst2_f16): Likewise.
12430 (vst2_f32): Likewise.
12431 (vst2_p64): Likewise.
12432 (vst2q_s8): Likewise.
12433 (vst2q_p8): Likewise.
12434 (vst2q_s16): Likewise.
12435 (vst2q_p16): Likewise.
12436 (vst2q_s32): Likewise.
12437 (vst2q_s64): Likewise.
12438 (vst2q_u8): Likewise.
12439 (vst2q_u16): Likewise.
12440 (vst2q_u32): Likewise.
12441 (vst2q_u64): Likewise.
12442 (vst2q_f16): Likewise.
12443 (vst2q_f32): Likewise.
12444 (vst2q_f64): Likewise.
12445 (vst2q_p64): Likewise.
12446 (vst3_s64): Likewise.
12447 (vst3_u64): Likewise.
12448 (vst3_f64): Likewise.
12449 (vst3_s8): Likewise.
12450 (vst3_p8): Likewise.
12451 (vst3_s16): Likewise.
12452 (vst3_p16): Likewise.
12453 (vst3_s32): Likewise.
12454 (vst3_u8): Likewise.
12455 (vst3_u16): Likewise.
12456 (vst3_u32): Likewise.
12457 (vst3_f16): Likewise.
12458 (vst3_f32): Likewise.
12459 (vst3_p64): Likewise.
12460 (vst3q_s8): Likewise.
12461 (vst3q_p8): Likewise.
12462 (vst3q_s16): Likewise.
12463 (vst3q_p16): Likewise.
12464 (vst3q_s32): Likewise.
12465 (vst3q_s64): Likewise.
12466 (vst3q_u8): Likewise.
12467 (vst3q_u16): Likewise.
12468 (vst3q_u32): Likewise.
12469 (vst3q_u64): Likewise.
12470 (vst3q_f16): Likewise.
12471 (vst3q_f32): Likewise.
12472 (vst3q_f64): Likewise.
12473 (vst3q_p64): Likewise.
12474 (vst4_s64): Likewise.
12475 (vst4_u64): Likewise.
12476 (vst4_f64): Likewise.
12477 (vst4_s8): Likewise.
12478 (vst4_p8): Likewise.
12479 (vst4_s16): Likewise.
12480 (vst4_p16): Likewise.
12481 (vst4_s32): Likewise.
12482 (vst4_u8): Likewise.
12483 (vst4_u16): Likewise.
12484 (vst4_u32): Likewise.
12485 (vst4_f16): Likewise.
12486 (vst4_f32): Likewise.
12487 (vst4_p64): Likewise.
12488 (vst4q_s8): Likewise.
12489 (vst4q_p8): Likewise.
12490 (vst4q_s16): Likewise.
12491 (vst4q_p16): Likewise.
12492 (vst4q_s32): Likewise.
12493 (vst4q_s64): Likewise.
12494 (vst4q_u8): Likewise.
12495 (vst4q_u16): Likewise.
12496 (vst4q_u32): Likewise.
12497 (vst4q_u64): Likewise.
12498 (vst4q_f16): Likewise.
12499 (vst4q_f32): Likewise.
12500 (vst4q_f64): Likewise.
12501 (vst4q_p64): Likewise.
12502 (vtbx4_s8): Likewise.
12503 (vtbx4_u8): Likewise.
12504 (vtbx4_p8): Likewise.
12505 (vtrn_f32): Likewise.
12506 (vtrn_p8): Likewise.
12507 (vtrn_p16): Likewise.
12508 (vtrn_s8): Likewise.
12509 (vtrn_s16): Likewise.
12510 (vtrn_s32): Likewise.
12511 (vtrn_u8): Likewise.
12512 (vtrn_u16): Likewise.
12513 (vtrn_u32): Likewise.
12514 (vtrnq_f32): Likewise.
12515 (vtrnq_p8): Likewise.
12516 (vtrnq_p16): Likewise.
12517 (vtrnq_s8): Likewise.
12518 (vtrnq_s16): Likewise.
12519 (vtrnq_s32): Likewise.
12520 (vtrnq_u8): Likewise.
12521 (vtrnq_u16): Likewise.
12522 (vtrnq_u32): Likewise.
12523 (vrsqrte_f16): Likewise.
12524 (vrsqrteq_f16): Likewise.
12525 (vsqrt_f16): Likewise.
12526 (vsqrtq_f16): Likewise.
12527 (vabd_f16): Likewise.
12528 (vabdq_f16): Likewise.
12529 (vpadd_f16): Likewise.
12530 (vpaddq_f16): Likewise.
12531 (vpmax_f16): Likewise.
12532 (vpmaxq_f16): Likewise.
12533 (vpmaxnm_f16): Likewise.
12534 (vpmaxnmq_f16): Likewise.
12535 (vpmin_f16): Likewise.
12536 (vpminq_f16): Likewise.
12537 (vpminnm_f16): Likewise.
12538 (vpminnmq_f16): Likewise.
12539 (vrsqrts_f16): Likewise.
12540 (vrsqrtsq_f16): Likewise.
12541
12542 2019-09-25 Richard Biener <rguenther@suse.de>
12543
12544 PR tree-optimization/91896
12545 * tree-vect-loop.c (vectorizable_reduction): The single
12546 def-use cycle optimization cannot apply when there's more
12547 than one pattern stmt involved.
12548
12549 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12550
12551 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12552 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12553 (reload_macho_picbase_<mode>): Likewise.
12554
12555 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12556
12557 * config/rs6000/rs6000.md: Move darwin.md include until
12558 after the definition of the mode iterators.
12559
12560 2019-09-23 Martin Sebor <msebor@redhat.com>
12561
12562 PR tree-optimization/91570
12563 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12564 non-constant minlen, maxlen and maxbound.
12565
12566 2019-09-24 Richard Biener <rguenther@suse.de>
12567
12568 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12569 Rename to...
12570 (_stmt_vec_info::cond_reduc_code): ... this.
12571 (_stmt_vec_info::induc_cond_initial_val): Add.
12572 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12573 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12574 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12575 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12576 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12577 the reduction code.
12578 (vect_create_epilog_for_reduction): Drop special
12579 induction condition reduction params, pass in reduction code
12580 and simplify.
12581 (vectorizable_reduction): Perform condition reduction kind
12582 selection only at analysis time. Adjust passing on state.
12583
12584 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12585
12586 * config/aarch64/aarch64.md (mov<mode>): Don't call
12587 aarch64_split_dimode_const_store on volatile MEM.
12588
12589 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12590
12591 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12592 Update hwcap string for fp16fml.
12593
12594 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12595
12596 PR middle-end/91866
12597 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12598 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12599
12600 2019-09-24 Martin Liska <mliska@suse.cz>
12601
12602 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12603 instead of if-elseif-elseif-...
12604 * gimple-expr.c (extract_ops_from_tree): Likewise.
12605 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12606 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12607
12608 2019-09-24 Martin Jambor <mjambor@suse.cz>
12609
12610 PR ipa/91831
12611 * ipa-param-manipulation.c (carry_over_param): Make a method of
12612 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12613 in case of a context mismatch.
12614 (ipa_param_body_adjustments::common_initialization): Adjust call to
12615 carry_over_param.
12616 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12617 private method carry_over_param.
12618
12619 2019-09-24 Martin Jambor <mjambor@suse.cz>
12620
12621 PR ipa/91832
12622 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12623
12624 2019-09-24 Richard Biener <rguenther@suse.de>
12625
12626 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12627 base.
12628
12629 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12630
12631 * config/arm/t-arm (arm-builtins.o): Add dependency on
12632 arm_acle_builtins.def.
12633
12634 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12635
12636 PR target/91823
12637 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12638 canonical CONST_INTs. Use gen_rtvec.
12639
12640 2019-09-23 Richard Biener <rguenther@suse.de>
12641
12642 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12643 avoid adjusting by + 0 or * 1.
12644 (vect_create_epilog_for_reduction): Get reduction code only
12645 when necessary. Deal with adjustment_def only when necessary.
12646
12647 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12648
12649 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12650 memmodel index.
12651
12652 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12653
12654 PR ipa/91835
12655 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12656 "ipa-sra".
12657
12658 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12659
12660 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12661 code. Merge code blocks with common conditionals. Use declared
12662 macro instead of a magic number for PIC level.
12663
12664 2019-09-21 Martin Sebor <msebor@redhat.com>
12665
12666 PR middle-end/91830
12667 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12668 Simplify computation of the offset of the referenced subobject.
12669
12670 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12671
12672 * config/darwin.c (machopic_legitimize_pic_address): Check
12673 for lra not reload.
12674
12675 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12676
12677 * ira-conflicts.c (can_use_same_reg_p): New function.
12678 (process_reg_shuffles): Take an insn parameter. Ignore cases
12679 in which input operand op_num could seemingly never be allocated
12680 to the same register as the destination.
12681 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12682
12683 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12684
12685 * simplify-rtx.c (neg_const_int): Replace with...
12686 (neg_poly_int_rtx): ...this new function.
12687 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12688 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12689 (simplify_plus_minus): Likewise for constant terms here.
12690
12691 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12692
12693 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12694 HOST_WIDE_PRINT_UNSIGNED.
12695
12696 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12697
12698 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12699 character.
12700
12701 2019-09-20 Maya Rashish <coypu@sdf.org>
12702
12703 PR target/86811
12704 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12705 Define to speculation_safe_value_not_needed.
12706
12707 2019-09-20 Richard Biener <rguenther@suse.de>
12708 Uros Bizjak <ubizjak@gmail.com>
12709
12710 PR target/91814
12711 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12712 previous change.
12713 (general_scalar_chain::convert_op): Force not suitable memory
12714 operands to a register.
12715
12716 2019-09-20 Richard Biener <rguenther@suse.de>
12717
12718 PR tree-optimization/91821
12719 * tree-vect-loop.c (check_reduction_path): Check we can compute
12720 reduc_idx.
12721 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12722 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12723 operands in canonical order.
12724 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12725 STMT_VINFO_REDUC_IDX.
12726 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12727 (STMT_VINFO_REDUC_IDX): Likewise.
12728
12729 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12730
12731 PR target/91269
12732 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12733
12734 2019-09-20 Richard Biener <rguenther@suse.de>
12735
12736 PR tree-optimization/91822
12737 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12738 parameter.
12739 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12740 for reduc_index in nested cycles, adjust vectorizable_condition
12741 calls.
12742 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12743 parameter.
12744 (vect_analyze_stmt): Adjust.
12745 (vect_transform_stmt): Likewise.
12746
12747 2019-09-20 Richard Biener <rguenther@suse.de>
12748
12749 PR target/91767
12750 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12751 Ensure there's a sequence point between allocating the new register
12752 and passing a reference to a reg via regno_reg_rtx.
12753
12754 2019-09-20 Martin Jambor <mjambor@suse.cz>
12755
12756 * coretypes.h (cgraph_edge): Declare.
12757 * ipa-param-manipulation.c: Rewrite.
12758 * ipa-param-manipulation.h: Likewise.
12759 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12760 (OBJS): Added ipa-sra.o.
12761 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12762 and ref_p, added fields param_adjustments and performed_splits.
12763 (struct cgraph_clone_info): Remove ags_to_skip and
12764 combined_args_to_skip, new field param_adjustments.
12765 (cgraph_node::create_clone): Changed parameters to use
12766 ipa_param_adjustments.
12767 (cgraph_node::create_virtual_clone): Likewise.
12768 (cgraph_node::create_virtual_clone_with_body): Likewise.
12769 (tree_function_versioning): Likewise.
12770 (cgraph_build_function_type_skip_args): Removed.
12771 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12772 using ipa_param_adjustments.
12773 (clone_of_p): Likewise.
12774 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12775 (build_function_decl_skip_args): Likewise.
12776 (duplicate_thunk_for_node): Adjust parameters using
12777 ipa_param_body_adjustments, copy param_adjustments instead of
12778 args_to_skip.
12779 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12780 (cgraph_node::create_virtual_clone): Likewise.
12781 (cgraph_node::create_version_clone_with_body): Likewise.
12782 (cgraph_materialize_clone): Likewise.
12783 (symbol_table::materialize_all_clones): Likewise.
12784 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12785 ipa_replace_map check.
12786 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12787 (initialize_node_lattices): Make aware that some parameters might have
12788 already been removed.
12789 (want_remove_some_param_p): New function.
12790 (create_specialized_node): Convert to using ipa_param_adjustments and
12791 deal with possibly pre-existing adjustments.
12792 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12793 (output_node_opt_summary): Do not stream removed fields. Stream
12794 parameter adjustments instead of argumetns to skip.
12795 (input_node_opt_summary): Likewise.
12796 (input_node_opt_summary): Likewise.
12797 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12798 * lto-streamer.h (lto_section_type): Likewise.
12799 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12800 param_body_adjs.
12801 (copy_decl_to_var): Declare.
12802 * tree-inline.c (update_clone_info): Do not remap old_tree.
12803 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12804 statements, walk all extra generated statements and remap their
12805 operands.
12806 (redirect_all_calls): Add killed SSA names to a hash set.
12807 (remap_ssa_name): Do not remap killed SSA names.
12808 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12809 half of functionality moved to ipa_param_body_adjustments.
12810 (copy_decl_to_var): Make exported.
12811 (copy_body): Destroy killed_new_ssa_names hash set.
12812 (expand_call_inline): Remap performed splits.
12813 (update_clone_info): Likewise.
12814 (tree_function_versioning): Simplify tree_map processing. Updated to
12815 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12816 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12817 for the new interface.
12818 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12819 (simd_clone_compute_base_data_type): Likewise.
12820 (simd_clone_init_simd_arrays): Adjust for the new interface.
12821 (simd_clone_adjust_argument_types): Likewise.
12822 (struct modify_stmt_info): Likewise.
12823 (ipa_simd_modify_stmt_ops): Likewise.
12824 (ipa_simd_modify_function_body): Likewise.
12825 (simd_clone_adjust): Likewise.
12826 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12827 (type_internals_preclude_sra_p): Make public.
12828 * tree-sra.h: New file.
12829 * ipa-inline-transform.c (save_inline_function_body): Update to
12830 refelct new tree_function_versioning signature.
12831 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12832 ipa_param_adjustments to get current parameter indices.
12833 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12834 (ipcp_update_bits): Likewise.
12835 (ipcp_update_vr): Likewise.
12836 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12837 * ipa-sra.c: New file.
12838 * multiple_target.c (create_target_clone): Update to reflet new type
12839 of create_version_clone_with_body.
12840 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12841 tree_function_versioning.
12842 (modify_function): Update to reflect new type of
12843 tree_function_versioning.
12844 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12845 * passes.def: Remove old IPA-SRA and add new one.
12846 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12847 (make_pass_ipa_sra): Declare.
12848 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12849 ipa_sra_retvalues.
12850 * doc/invoke.texi (ipa-sra-max-replacements): New.
12851
12852 2019-09-19 Martin Sebor <msebor@redhat.com>
12853
12854 PR middle-end/91631
12855 * builtins.c (component_size): Correct trailing array computation,
12856 rename to component_ref_size and move...
12857 (compute_objsize): Adjust.
12858 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12859 (builtin_access::strict): Do not consider memmove.
12860 (builtin_access::write_off): New function.
12861 (builtin_memref::builtin_memref): Initialize refsize.
12862 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12863 refsize.
12864 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12865 Handle refsize.
12866 (builtin_access::builtin_access): Initialize dstoff to destination
12867 refeence offset here instead of in maybe_diag_overlap. Adjust
12868 referencess even to unrelated objects. Adjust sizrange of bounded
12869 string functions to reflect bound. For strcat, adjust destination
12870 sizrange by that of source.
12871 (builtin_access::strcat_overlap): Adjust offsets and sizes
12872 to reflect the increase in destination sizrange above.
12873 (builtin_access::overlap): Do not set dstoff here but instead
12874 in builtin_access::builtin_access.
12875 (check_bounds_or_overlap): Use builtin_access::write_off.
12876 (maybe_diag_access_bounds): Add argument. Add informational notes.
12877 (dump_builtin_memref, dump_builtin_access): New functions.
12878 * tree.c (component_ref_size): ...to here.
12879 * tree.h (component_ref_size): Declare.
12880 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12881 nul in the size of the source string.
12882
12883 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12884
12885 PR c/67224
12886 * doc/cpp.texi: Document support for extended characters in
12887 identifiers.
12888 * doc/cppopts.texi: Likewise.
12889
12890 2019-09-19 Richard Biener <rguenther@suse.de>
12891
12892 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12893 (check_reduction_path): New overload having the path as result.
12894 (vect_is_simple_reduction): From the detected reduction
12895 path build a SLP reduction chain if possible.
12896
12897 2019-09-19 Richard Biener <rguenther@suse.de>
12898
12899 PR target/91814
12900 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12901 Force operand to a register if it isn't nonimmediate_operand.
12902
12903 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12904
12905 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12906 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12907 (logical_op): Remove code attribute.
12908 (logical_OP): Likewise.
12909
12910 2019-09-19 Martin Liska <mliska@suse.cz>
12911
12912 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12913 Use proper casting.
12914
12915 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12916
12917 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12918 registers with %R.
12919
12920 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12921 for NE comparison of TImode values.
12922 (aarch64_emit_load_exclusive): Add support for TImode.
12923 (aarch64_emit_store_exclusive): Likewise.
12924 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12925 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12926 Change iterator from ALLI to ALLI_TI.
12927 (@atomic_compare_and_swap<JUST_TI>): New.
12928 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12929 (aarch64_load_exclusive_pair): New.
12930 (aarch64_store_exclusive_pair): New.
12931 * config/aarch64/iterators.md (JUST_TI): New.
12932
12933 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12934 strong_zero_p for aarch64_track_speculation; unify some code paths;
12935 use aarch64_gen_compare_reg instead of open-coding.
12936
12937 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12938 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12939 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12940 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12941 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12942 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12943 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12944 (atomic_<atomic_op><ALLI>): Likewise.
12945 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12946 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12947 * doc/invoke.texi: Document -moutline-atomics.
12948
12949 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12950
12951 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12952 trivial predicate for condition branch.
12953 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12954 for switch case.
12955 (compute_bb_predicates): Update predicate based on post-dominating
12956 relationship.
12957 (analyze_function_body): Calculate post-dominating information.
12958
12959 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12960
12961 * tree-vectorizer.h (vectorizable_condition): Take an int
12962 reduction index instead of a boolean flag.
12963 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12964 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12965 reductions if the reduction accumulator is the "then" rather
12966 than the "else" value.
12967 (vect_analyze_stmt): Update call accordingly.
12968 (vect_transform_stmt): Likewise.
12969 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12970 asserting that the index is > 0.
12971
12972 2019-09-19 Martin Liska <mliska@suse.cz>
12973
12974 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12975 (sort_congruence_classes_by_decl_uid): Likewise.
12976 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12977 easier sorting.
12978 (sem_item_optimizer::merge_classes): Likewise.
12979
12980 2019-09-19 Richard Biener <rguenther@suse.de>
12981
12982 PR tree-optimization/91812
12983 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12984 volatile loads.
12985
12986 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12987
12988 * defaults.h (TARGET_UNIT): New macro.
12989 (target_unit): New type.
12990 * rtl.h (native_encode_rtx, native_decode_rtx)
12991 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12992 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12993 * rtlanal.c (subreg_lsb_1): Delete.
12994 (subreg_size_lsb): New function.
12995 * simplify-rtx.c: Include rtx-vector-builder.h
12996 (simplify_immed_subreg): Delete.
12997 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12998 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12999 functions.
13000 (simplify_subreg): Use them.
13001 (test_vector_subregs_modes, test_vector_subregs_repeating)
13002 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
13003 (test_vector_subregs): New functions.
13004 (test_vector_ops): Call test_vector_subregs for integer vector
13005 modes with at least 2 elements.
13006
13007 2019-09-19 Richard Biener <rguenther@suse.de>
13008
13009 * tree-parloops.c (parloops_is_slp_reduction): Do not set
13010 LOOP_VINFO_OPERANDS_SWAPPED.
13011 (parloops_is_simple_reduction): Likewise.
13012 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
13013 initialize operands_swapped.
13014 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
13015 (vect_is_slp_reduction): Do not swap operands.
13016 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
13017 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
13018
13019 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
13020
13021 PR target/87007
13022 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
13023 Add avx_partial_xmm_update.
13024
13025 2019-09-18 Jim Wilson <jimw@sifive.com>
13026
13027 PR target/91683
13028 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
13029 (riscv_move_integer): Likewise.
13030 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
13031 riscv_move_integer arg.
13032 (riscv_legitimize_move): Likewise.
13033 (riscv_force_temporary): New parameter in_splitter. Don't call
13034 force_reg if true.
13035 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
13036 arg.
13037 (riscv_add_offset): Likewise.
13038 (riscv_split_symbol): New parameter in_splitter. Pass to
13039 riscv_force_temporary.
13040 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
13041 arg.
13042 (riscv_move_integer): New parameter in_splitter. New local
13043 can_create_psuedo. Don't call riscv_split_integer or force_reg when
13044 in_splitter TRUE.
13045 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
13046 riscv_split_symbol, and riscv_force_temporary args.
13047 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
13048 riscv_move_integer arg.
13049 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
13050
13051 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13052
13053 PR target/90878
13054 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
13055 hard register store cost to 6.
13056
13057 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13058
13059 PR target/91446
13060 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
13061 pseudo register store cost from 3 to 6 to make it the same as
13062 QImode and HImode.
13063
13064 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13065
13066 PR target/91738
13067 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
13068 (one_cmpldi2): Likewise.
13069 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
13070 of the constant parts is simple.
13071 * config/arm/iterators.md (LOGICAL): Add new code iterator.
13072 (logical_op): Add new code attribute.
13073 (logical_OP): Likewise.
13074 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
13075 (arm_iordi_operand): Add predicate.
13076 (arm_xordi_operand): Add predicate.
13077
13078 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13079
13080 * config/arm/arm.md (maddsidi4): Remove expander.
13081 (mulsidi3adddi): Remove pattern.
13082 (mulsidi3adddi_v6): Likewise.
13083 (mulsidi3_nov6): Likewise.
13084 (mulsidi3_v6): Likewise.
13085 (umulsidi3): Remove expander.
13086 (umulsidi3_nov6): Remove pattern.
13087 (umulsidi3_v6): Likewise.
13088 (umulsidi3adddi): Likewise.
13089 (umulsidi3adddi_v6): Likewise.
13090 (<Us>mulsidi3): Add combined expander.
13091 (<Us>maddsidi4): Likewise.
13092 (<US>mull): Add combined umull and smull pattern.
13093 (<US>mlal): Likewise.
13094 * config/arm/iterators.md (Us): Add new iterator.
13095
13096 2019-09-18 Richard Biener <rguenther@suse.de>
13097
13098 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
13099 swapping.
13100 (vectorize_fold_left_reduction): Remove assert.
13101 (vectorizable_reduction): Also expect COND_EXPR non-reduction
13102 operand in position 2. Remove assert.
13103
13104 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13105
13106 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
13107 (smulsi3_highpart_nov6): Remove pattern.
13108 (smulsi3_highpart_v6): Likewise.
13109 (umulsi3_highpart): Likewise.
13110 (umulsi3_highpart_nov6): Likewise.
13111 (umulsi3_highpart_v6): Likewise.
13112 (<US>mull_high): Add new combined multiply pattern.
13113
13114 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13115
13116 * config/arm/arm.md (arm_mulsi3): Remove pattern.
13117 (arm_mulsi3_v6): Likewise.
13118 (mulsi3addsi_v6): Likewise.
13119 (mulsi3subsi): Likewise.
13120 (mul): Add new multiply pattern.
13121 (mla): Likewise.
13122 (mls): Likewise.
13123
13124 2019-09-18 Richard Biener <rguenther@suse.de>
13125
13126 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
13127 (parloops_valid_reduction_input_p): Copy from
13128 valid_reduction_input_p.
13129 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
13130 (parloops_needs_fold_left_reduction_p): Copy from
13131 needs_fold_left_reduction_p.
13132 (parloops_is_simple_reduction): Copy from
13133 vect_is_simple_reduction.
13134 (parloops_force_simple_reduction): Copy from
13135 vect_force_simple_reduction.
13136 (gather_scalar_reductions): Adjust.
13137 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
13138 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
13139
13140 2019-09-18 Richard Biener <rguenther@suse.de>
13141
13142 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
13143 * tree-vect-loop.c (get_initial_def_for_reduction): Make
13144 static.
13145 (vect_create_epilog_for_reduction): Remove dead code.
13146
13147 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13148
13149 * varasm.c (assemble_real): Generate canonical const_ints.
13150
13151 2019-09-18 Richard Biener <rguenther@suse.de>
13152
13153 PR lto/91763
13154 * lto-streamer-in.c (input_eh_regions): Move EH init to
13155 lto_materialize_function.
13156 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
13157 Likewise.
13158
13159 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13160
13161 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
13162 are INTEGER_CSTs.
13163
13164 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13165
13166 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
13167 of checking specifically for INTEGER_CST.
13168
13169 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13170
13171 * stor-layout.c (compute_record_mode): Operate on poly_uint64
13172 sizes instead of uhwi sizes.
13173
13174 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13175
13176 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
13177 (add_const_value_attribute): Handle CONST_POLY_INT.
13178
13179 2019-09-18 Martin Liska <mliska@suse.cz>
13180
13181 * dbgcnt.def (store_merging): New counter.
13182 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
13183 Use it in store merging.
13184
13185 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13186
13187 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
13188 function.
13189 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13190 * config/arm/arm.c (arm_sched_variable_issue): New function.
13191 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13192
13193 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13194
13195 * config/arm/types.md (no_reservation): New reservation.
13196 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
13197 no_insn here.
13198 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
13199 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
13200 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
13201 * config/arm/arm1020e.md (1020alu_op): Likewise.
13202 * config/arm/arm1026ejs.md (alu_op): Likewise.
13203 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13204 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13205 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13206 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
13207 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13208 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13209 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
13210 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
13211 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13212 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13213 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13214 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
13215 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
13216 * config/arm/fa526.md (526_alu_op): Likewise.
13217 * config/arm/fa606te.md (606te_alu_op): Likewise.
13218 * config/arm/fa626te.md (626te_alu_op): Likewise.
13219 * config/arm/fa726te.md (726te_alu_op): Likewise.
13220 * config/arm/xgene1.md (xgene1_nop): Likewise.
13221
13222 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13223
13224 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
13225 "no_insn" to "branch".
13226
13227 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13228
13229 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
13230
13231 2019-09-17 Richard Biener <rguenther@suse.de>
13232
13233 PR debug/91772
13234 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
13235 was missing generate locations only once.
13236
13237 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
13238
13239 PR ipa/91089
13240 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
13241 option.
13242 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
13243 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
13244 for switch default case using range analysis information.
13245
13246 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
13247
13248 PR target/91749
13249 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
13250 mode attributed is supported by FDPIC.
13251
13252 2019-09-17 Richard Biener <rguenther@suse.de>
13253
13254 PR tree-optimization/91790
13255 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
13256 use the correct DR for setting up realignment.
13257
13258 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
13259
13260 PR target/91719
13261 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
13262 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
13263 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
13264 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
13265
13266 2019-09-16 Jason Merrill <jason@redhat.com>
13267
13268 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
13269
13270 2019-09-16 Martin Liska <mliska@suse.cz>
13271
13272 * gimple-fold.c (or_comparisons_1): Remove rules moved
13273 to ...
13274 * match.pd: ... here.
13275
13276 2019-09-16 Martin Liska <mliska@suse.cz>
13277
13278 * gimple-fold.c (or_comparisons_1): Remove rules
13279 moved to ...
13280 * match.pd: ... here.
13281
13282 2019-09-16 Martin Liska <mliska@suse.cz>
13283
13284 * genmatch.c (dt_node::append_simplify): Do not print
13285 warning when we have duplicate patterns belonging
13286 to a same simplify rule.
13287 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
13288 (maybe_fold_comparisons_from_match_pd): Handle
13289 tcc_comparison as a results.
13290 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
13291
13292 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13293 Qi Feng <ffengqi@linux.ibm.com>
13294
13295 PR middle-end/88784
13296 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
13297 (x > y && x == XXX_MIN): Optimize into 'false'.
13298 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
13299 (x < y && x != XXX_MAX): Optimize into 'x < y'.
13300 (x < y && x == XXX_MAX): Optimize into 'false'.
13301 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
13302 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
13303 (x <= y || x != XXX_MIN): Optimize into 'true'.
13304 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
13305 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
13306 (x >= y || x != XXX_MAX): Optimize into 'true'.
13307 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
13308
13309 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13310 Martin Liska <mliska@suse.cz>
13311
13312 * gimple-fold.c (and_comparisons_1): Add type as first
13313 argument.
13314 (and_var_with_comparison): Likewise.
13315 (and_var_with_comparison_1): Likewise.
13316 (or_comparisons_1): Likewise.
13317 (or_var_with_comparison): Likewise.
13318 (or_var_with_comparison_1): Likewise.
13319 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
13320 (maybe_fold_or_comparisons): Likewise.
13321 (maybe_fold_comparisons_from_match_pd): New.
13322 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
13323 (maybe_fold_or_comparisons): Likewise.
13324 * gimple.c (gimple_size): Make it public and add num_ops argument.
13325 (gimple_init): New function.
13326 (gimple_alloc): Call gimple_init.
13327 * gimple.h (gimple_size): New.
13328 (gimple_init): Likewise.
13329 * tree-if-conv.c (fold_or_predicates): Pass type.
13330 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13331 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
13332 (optimize_vec_cond_expr): Likewise.
13333 (ovce_extract_ops): Return type of conditional expression.
13334 * tree-ssanames.c (init_ssa_name_imm_use): New.
13335 (make_ssa_name_fn): Use init_ssa_name_imm_use.
13336 * tree-ssanames.h (init_ssa_name_imm_use): New.
13337
13338 2019-09-16 Richard Biener <rguenther@suse.de>
13339
13340 PR tree-optimization/91756
13341 PR tree-optimization/87132
13342 * tree-ssa-alias.h (enum translate_flags): New.
13343 (get_continuation_for_phi): Use it instead of simple bool flag.
13344 (walk_non_aliased_vuses): Likewise.
13345 * tree-ssa-alias.c (maybe_skip_until): Adjust.
13346 (get_continuation_for_phi): When looking across backedges only
13347 disallow valueization.
13348 (walk_non_aliased_vuses): Adjust.
13349 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
13350 if requested.
13351
13352 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
13353
13354 PR middle-end/80791
13355 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
13356 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13357 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13358 * target.def (have_count_reg_decr_p): New hook.
13359 (doloop_cost_for_generic): Likewise.
13360 (doloop_cost_for_address): Likewise.
13361 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
13362 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13363 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13364 * doc/tm.texi: Regenerate.
13365 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
13366 addend.
13367 (record_group): Init doloop_p.
13368 (add_candidate_1): Add optional argument doloop, change the handlings
13369 accordingly.
13370 (add_candidate): Likewise.
13371 (generic_predict_doloop_p): Update attribute.
13372 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
13373 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
13374 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
13375 MIN_EXPR.
13376 (get_computation_cost): Update for doloop IV cand extra cost.
13377 (determine_group_iv_cost_cond): Update for doloop IV cand.
13378 (determine_iv_cost): Likewise.
13379 (ivopts_estimate_reg_pressure): Likewise.
13380 (may_eliminate_iv): Update handlings for doloop IV cand.
13381 (add_iv_candidate_for_doloop): New function.
13382 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13383 (iv_ca_set_no_cp): Update for doloop IV cand.
13384 (iv_ca_set_cp): Likewise.
13385 (iv_ca_dump): Dump register cost.
13386 (find_doloop_use): New function.
13387 (analyze_and_mark_doloop_use): Likewise.
13388 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13389
13390 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13391
13392 PR middle-end/91708
13393 * cse.c (cse_insn): Do not replace anything with a
13394 MEM.
13395
13396 2019-09-13 Ian Lance Taylor <iant@golang.org>
13397
13398 * doc/invoke.texi (Optimize Options): Fix typo.
13399
13400 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
13401
13402 PR tree-optimization/89386
13403 * config/i386/sse.md (smulhrs<mode>3): New expander.
13404 (smulhrsv4hi3): Ditto.
13405
13406 2019-09-12 Richard Biener <rguenther@suse.de>
13407
13408 PR tree-optimization/91750
13409 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13410 in the type of the evolution.
13411
13412 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
13413
13414 PR tree-optimization/89386
13415 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13416 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13417 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13418 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13419 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13420 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13421 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13422 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13423 (su, r): Handle the unspecs above.
13424 (bt): New int attribute.
13425 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13426 * internal-fn.c (first_commutative_argument): Commutativity info for
13427 above.
13428 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13429 (umulhrs_optab): New optabs.
13430 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13431 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13432 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13433 function.
13434 (vect_vect_recog_func_ptrs): Add it.
13435
13436 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
13437
13438 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13439 code.
13440
13441 2019-09-11 Nathan Sidwell <nathan@acm.org>
13442
13443 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13444 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13445
13446 2019-09-11 Richard Biener <rguenther@suse.de>
13447
13448 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13449 * lto-wrapper.c (merge_and_complain): Pick up -g.
13450 (append_compiler_options): Likewise.
13451 (run_gcc): Re-instantiate handling -g0 at link-time.
13452 * doc/invoke.texi (flto): Document debug info generation.
13453
13454 2019-09-11 Richard Biener <rguenther@suse.de>
13455
13456 PR tree-optimization/90387
13457 * vr-values.c (vr_values::extract_range_basic): After inlining
13458 simplify non-constant __builtin_constant_p to false.
13459
13460 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13461
13462 PR rtl-optimization/89795
13463 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13464 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13465
13466 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13467
13468 PR tree-optimization/91723
13469 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13470 instead of pointer equality when checking if argument vectypes are
13471 the same.
13472
13473 PR middle-end/91725
13474 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13475 of get_nonzero_bits, only call it for integral types.
13476
13477 2019-09-11 Richard Biener <rguenther@suse.de>
13478
13479 Revert
13480 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13481
13482 * match.pd: Add flag_unsafe_math_optimizations check
13483 before deciding on the widest type in a binary math operation.
13484
13485 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13486
13487 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13488 and CALL_REALLY_USED_REGISTERS must be defined, and that
13489 CALL_REALLY_USED_REGISTERS is preferred.
13490 * doc/tm.texi: Regenerate.
13491 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13492 (call_really_used_regs): Likewise.
13493 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13494 CALL_REALLY_USED_REGISTERS are defined.
13495 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13496 initial value if defined.
13497 (initial_call_really_used_regs): Delete.
13498 (saved_call_really_used_regs): Likewise.
13499 (CALL_REALLY_USED_REGNO_P): Likewise.
13500 (init_reg_sets): Remove handling of call_really_used_regs.
13501 (save_register_info, restore_register_info, globalize_reg): Likewise.
13502 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13503 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13504 outside operand_reg_set.
13505 (fix_register): Don't change call_used_regs if
13506 CALL_REALLY_USED_REGISTERS is defined.
13507 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13508 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13509 instead of call_really_used_regs.
13510 (csky_conditional_register_usage): Remove the old handling of
13511 call_used_regs and change the handling of call_really_used_regs
13512 to use call_used_regs instead.
13513 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13514 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13515 making a register fixed.
13516 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13517 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13518 instead of call_really_used_regs.
13519 (m32r_conditional_register_usage): Don't set call_used_regs when
13520 making a register fixed.
13521 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13522 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13523 instead of call_really_used_regs.
13524 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13525 (mips_cfun_call_saved_reg_p): Likewise.
13526 (mips_swap_registers): Remove the old handling of call_used_regs
13527 and change the handling of call_really_used_regs to use call_used_regs
13528 instead.
13529 (mips_conditional_register_usage): Likewise.
13530 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13531 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13532 instead of call_really_used_regs.
13533 (mn10300_get_live_callee_saved_regs): Likewise.
13534 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13535 (mn10300_conditional_register_usage): Don't set call_used_regs when
13536 making a register fixed.
13537 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13538 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13539 Remove the old handling of call_used_regs and change the handling
13540 of call_really_used_regs to use call_used_regs instead.
13541 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13542 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13543 instead of call_really_used_regs.
13544 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13545 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13546 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13547 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13548 (s390_conditional_register_usage): Remove the old handling of
13549 call_used_regs and change the handling of call_really_used_regs
13550 to use call_used_regs instead.
13551 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13552 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13553 (sh_fix_range, reg_unused_after): Likewise.
13554 (sh_conditional_register_usage): Remove the old handling of
13555 call_used_regs and change the handling of call_really_used_regs
13556 to use call_used_regs instead.
13557 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13558 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13559 call_used_regs when making a register fixed.
13560 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13561 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13562 call_used_regs when making a register fixed.
13563 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13564 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13565 set call_used_regs when making a register fixed.
13566 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13567 * config/visium/visium.c (visium_conditional_register_usage): Remove
13568 the old handling of call_used_regs and change the handling of
13569 call_really_used_regs to use call_used_regs instead.
13570
13571 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13572
13573 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13574 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13575 * reginfo.c (call_used_regs): New macro.
13576
13577 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13578
13579 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13580 fixed_regs test.
13581 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13582 (bpf_expand_epilogue): Likewise.
13583 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13584 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13585 (ft32_expand_epilogue): Likewise.
13586 * config/i386/i386.c (ix86_save_reg): Likewise.
13587 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13588 (moxie_expand_epilogue): Likewise.
13589 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13590 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13591 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13592
13593 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13594
13595 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13596 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13597 instead of testing call_used_regs directly.
13598 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13599 (aarch64_components_for_bb): Likewise.
13600 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13601 * config/arc/arc.c (arc_must_save_register): Likewise.
13602 (arc_epilogue_uses): Likewise.
13603 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13604 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13605 (arm_compute_save_reg0_reg12_mask): Likewise.
13606 (arm_compute_save_core_reg_mask): Likewise.
13607 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13608 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13609 (cmse_nonsecure_entry_clear_before_return): Likewise.
13610 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13611 (arm_expand_epilogue): Likewise.
13612 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13613 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13614 (_reg_unused_after): Likewise.
13615 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13616 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13617 (add_to_reg, hwloop_optimize): Likewise.
13618 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13619 (bpf_expand_epilogue): Likewise.
13620 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13621 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13622 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13623 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13624 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13625 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13626 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13627 * config/frv/frv.c (frv_stack_info): Likewise.
13628 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13629 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13630 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13631 (move_callee_saved_registers): Likewise.
13632 * config/h8300/h8300.c (byte_reg): Likewise.
13633 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13634 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13635 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13636 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13637 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13638 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13639 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13640 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13641 * config/m32c/m32c.c (need_to_save): Likewise.
13642 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13643 * config/mcore/mcore.c (calc_live_regs): Likewise.
13644 * config/microblaze/microblaze.c (microblaze_must_save_register):
13645 Likewise.
13646 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13647 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13648 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13649 (mmix_expand_epilogue): Likewise.
13650 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13651 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13652 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13653 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13654 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13655 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13656 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13657 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13658 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13659 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13660 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13661 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13662 * config/rl78/rl78.c (need_to_save): Likewise.
13663 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13664 (rs6000_stack_info, generate_set_vrsave): Likewise.
13665 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13666 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13667 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13668 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13669 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13670 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13671 (save_local_or_in_reg_p): Likewise.
13672 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13673 (xstormy16_epilogue_uses): Likewise.
13674 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13675 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13676 * config/v850/v850.c (compute_register_save_size): Likewise.
13677 * config/vax/vax.c (vax_expand_prologue): Likewise.
13678 * config/visium/visium.c (visium_save_reg_p): Likewise.
13679 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13680 * cselib.c (cselib_process_insn): Likewise.
13681 * df-scan.c (df_get_entry_block_def_set): Likewise.
13682 * function.c (aggregate_value_p): Likewise.
13683 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13684 * ira-lives.c (process_bb_node_lives): Likewise.
13685 * ira.c (do_reload): Likewise.
13686 * lra-lives.c (process_bb_lives): Likewise.
13687 * lra-remat.c (lra_remat): Likewise.
13688 * lra.c (lra): Likewise.
13689 * postreload.c (reload_combine_recognize_pattern): Likewise.
13690 (reload_cse_move2add): Likewise.
13691 * recog.c (peep2_find_free_register): Likewise.
13692 * regrename.c (check_new_reg_p): Likewise.
13693 * reload.c (find_equiv_reg): Likewise.
13694 * reload1.c (reload, find_reg): Likewise.
13695 * sel-sched.c (init_hard_regs_data): Likewise.
13696
13697 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13698
13699 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13700 regs_invalidated_by_call & ~fixed_reg_set instead of
13701 call_used_or_fixed_regs & ~fixed_reg_set.
13702 * config/sh/sh.c (output_stack_adjust): Likewise.
13703
13704 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13705
13706 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13707 (call_used_reg_set): Delete.
13708 (call_used_or_fixed_regs): New macro.
13709 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13710 of call_used_reg_set.
13711 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13712 instead of call_used_regs.
13713 (save_call_clobbered_regs): Likewise.
13714 * cfgcleanup.c (old_insns_match_p): Likewise.
13715 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13716 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13717 Likewise.
13718 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13719 * config/sh/sh.c (output_stack_adjust): Likewise.
13720 * final.c (collect_fn_hard_reg_usage): Likewise.
13721 * ira-build.c (ira_build): Likewise.
13722 * ira-color.c (calculate_saved_nregs): Likewise.
13723 (allocno_reload_assign, calculate_spill_cost): Likewise.
13724 * ira-conflicts.c (ira_build_conflicts): Likewise.
13725 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13726 * ira-lives.c (process_bb_node_lives): Likewise.
13727 * ira.c (setup_reg_renumber): Likewise.
13728 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13729 * lra-constraints.c (need_for_call_save_p): Likewise.
13730 (need_for_split_p, inherit_in_ebb): Likewise.
13731 * lra-lives.c (process_bb_lives): Likewise.
13732 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13733 * postreload.c (reload_combine): Likewise.
13734 * regrename.c (find_rename_reg): Likewise.
13735 * reload1.c (reload_as_needed): Likewise.
13736 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13737 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13738 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13739
13740 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13741
13742 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13743 (no_caller_save_reg_set): Delete.
13744 * caller-save.c (init_caller_save): Don't initialize it.
13745 * ira-conflicts.c (ira_build_conflicts): Calculate
13746 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13747
13748 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13749
13750 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13751 (target_hard_regs::x_savable_regs): New field.
13752 (call_fixed_reg_set): Delete.
13753 (savable_regs): New macro,
13754 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13755 (init_reg_sets_1): Likewise. Initialize savable_regs.
13756 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13757 for all registers. Set savable_regs instead of call_fixed_reg_set.
13758 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13759 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13760 * config/sh/sh.c (output_stack_adjust): Likewise.
13761
13762 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13763
13764 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13765 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13766 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13767
13768 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13769
13770 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13771 * rtlanal.c (get_call_rtx_from): Likewise.
13772 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13773 than the pattern to get_call_rtx_from.
13774 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13775 an rtx_insn * instead of an rtx.
13776 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13777
13778 2019-09-10 Martin Liska <mliska@suse.cz>
13779
13780 * common.opt: Use newly added WarnRemoved.
13781 * config/aarch64/aarch64.opt: Likewise.
13782 * config/arm/arm.opt: Likewise.
13783 * config/i386/i386.opt: Likewise.
13784 * config/ia64/ia64.opt: Likewise.
13785 * config/rs6000/rs6000.opt: Likewise.
13786 * doc/options.texi: Document WarnRemoved properly.
13787 * dwarf2out.c (gen_producer_string): Handle renamed
13788 OPT_SPECIAL_warn_removed.
13789 * lto-opts.c (lto_write_options): Likewise.
13790 * lto-wrapper.c (merge_and_complain): Likewise.
13791 * opts-common.c (decode_cmdline_option): Likewise.
13792 (prune_options): Likewise.
13793 (read_cmdline_option): Likewise.
13794 (control_warning_option): Likewise.
13795 * opts.c (print_filtered_help): Likewise.
13796 * optc-gen.awk: Parse for WarnRemoved and make usage
13797 of Deprecated an error.
13798 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13799
13800 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13801
13802 * doc/install.texi: Fix syntax for html generation.
13803
13804 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13805
13806 PR middle-end/91680
13807 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13808 the shift type to type.
13809
13810 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13811
13812 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13813 FDPIC mode.
13814 (stack_protect_combined_test_insn): Likewise.
13815
13816 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13817 Mickaël Guêné <mickael.guene@st.com>
13818
13819 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13820 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13821 (load_tp_soft_fdpic): New pattern.
13822 (load_tp_soft): Disable in FDPIC mode.
13823
13824 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13825 Mickaël Guêné <mickael.guene@st.com>
13826
13827 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13828 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13829 (arm_call_tls_get_addr): Add FDPIC support.
13830 (legitimize_tls_address): Likewise.
13831 (arm_emit_tls_decoration): Likewise.
13832
13833 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13834 Mickaël Guêné <mickael.guene@st.com>
13835
13836 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13837 support.
13838 (arm_trampoline_init): Likewise.
13839 (arm_trampoline_adjust_address): Likewise.
13840 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13841
13842 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13843 Mickaël Guêné <mickael.guene@st.com>
13844
13845 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13846 (legitimize_pic_address): Enforce binding rules on function
13847 pointers in FDPIC mode.
13848 (arm_assemble_integer): Likewise.
13849
13850 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13851 Mickaël Guêné <mickael.guene@st.com>
13852
13853 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13854 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13855 FDPIC.
13856
13857 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13858 Mickaël Guêné <mickael.guene@st.com>
13859
13860 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13861 field.
13862
13863 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13864 Mickaël Guêné <mickael.guene@st.com>
13865
13866 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13867 in FDPIC mode.
13868 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13869 new function.
13870 * config/arm/arm.c (arm_option_override): Define pic register to
13871 FDPIC_REGNUM.
13872 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13873 have no decl or go through PLT.
13874 (calculate_pic_address_constant): New function.
13875 (legitimize_pic_address): Call calculate_pic_address_constant.
13876 (arm_load_pic_register): Handle TARGET_FDPIC.
13877 (arm_is_segment_info_known): New function.
13878 (arm_pic_static_addr): Add support for FDPIC.
13879 (arm_load_function_descriptor): New function.
13880 (arm_emit_call_insn): Add support for FDPIC.
13881 (arm_assemble_integer): Add support for FDPIC.
13882 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13883 Define. (FDPIC_REGNUM): New define.
13884 * config/arm/arm.md (call): Add support for FDPIC.
13885 (call_value): Likewise.
13886 (restore_pic_register_after_call): New pattern.
13887 (untyped_call): Disable if FDPIC.
13888 (untyped_return): Likewise.
13889 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13890
13891 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13892 Mickaël Guêné <mickael.guene@st.com>
13893
13894 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13895 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13896 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13897 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13898 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13899 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13900 * config/arm/uclinuxfdpiceabi.h: New file.
13901
13902 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13903
13904 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13905
13906 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13907 Mickaël Guêné <mickael.guene@st.com>
13908
13909 * config/arm/arm.opt: Add -mfdpic option.
13910 * doc/invoke.texi: Add documentation for -mfdpic.
13911
13912 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13913
13914 * expmed.c (extract_bit_field): Update function comment
13915 regarding alt_rtl.
13916 * expr.c (expand_expr_real): Update function comment
13917 regarding alt_rtl.
13918 (expand_misaligned_mem_ref): New helper function.
13919 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13920 Remove duplicate assignment to "base" at case MEM_REF.
13921 Remove a shadowed variable "unsignedp" at case VCE.
13922
13923 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13924
13925 * regset.h (regs_invalidated_by_call_regset): Delete.
13926 (fixed_reg_set_regset): Likewise.
13927 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13928 (fixed_reg_set_regset, persistent_obstack): Likewise.
13929 (init_reg_sets_1, globalize_reg): Update accordingly.
13930 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13931 instead of a bitmap.
13932 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13933 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13934 instead of regs_invalidated_by_call_regset.
13935 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13936 * df-scan.c (df_scan_start_dump): Likewise.
13937 * dse.c (copy_fixed_regs): Likewise.
13938 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13939
13940 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13941
13942 * array-traits.h: New file.
13943 * coretypes.h (array_traits, bitmap_view): New types.
13944 * bitmap.h: Include "array-traits.h"
13945 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13946 (base_bitmap_view, bitmap_view): New classes.
13947 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13948 * hard-reg-set.h: Include array-traits.h.
13949 (array_traits<HARD_REG_SET>): New struct.
13950 * regset.h (IOR_REG_SET_HRS): New macro.
13951 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13952 rather than iterating over each hard register.
13953 * sched-deps.c (sched_analyze_insn): Likewise.
13954 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13955
13956 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13957
13958 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13959 instead of a HARD_REG_SET *.
13960 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13961 (ira_build): Update call accordingly.
13962 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13963
13964 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13965
13966 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13967 (HARD_REG_SET::operator!=): Likewise.
13968 (hard_reg_set_equal_p): Delete.
13969 * cfgcleanup.c (old_insns_match_p): Use == instead of
13970 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13971 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13972 (add_allocno_hard_regs_to_forest): Likewise.
13973 (setup_allocno_available_regs_num): Likewise.
13974 * ira.c (setup_pressure_classes): Likewise.
13975 (setup_allocno_and_important_classes): Likewise.
13976 (setup_reg_class_relations): Likewise.
13977 * lra-lives.c (process_bb_lives): Likewise.
13978 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13979
13980 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13981
13982 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13983 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13984 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13985 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13986 Likewise.
13987 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13988 * ira.c (setup_reg_renumber): Likewise.
13989 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13990 * regrename.c (regrename_find_superclass): Likewise.
13991 * reload1.c (find_reg): Likewise.
13992
13993 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13994
13995 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13996 * caller-save.c (setup_save_areas): Use "&~" instead of
13997 AND_COMPL_HARD_REG_SET.
13998 (save_call_clobbered_regs): Likewise.
13999 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
14000 Likewise.
14001 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14002 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14003 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
14004 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14005 (mips_conditional_register_usage): Likewise.
14006 * config/sh/sh.c (output_stack_adjust): Likewise.
14007 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
14008 (setup_profitable_hard_regs): Likewise.
14009 (get_conflict_and_start_profitable_regs): Likewise.
14010 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14011 (ira_build_conflicts): Likewise.
14012 * ira-costs.c (restrict_cost_classes): Likewise.
14013 (setup_regno_cost_classes_by_aclass): Likewise.
14014 * ira-lives.c (process_bb_node_lives): Likewise.
14015 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
14016 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
14017 (setup_allocno_and_important_classes, setup_class_translate_array)
14018 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
14019 Likewise.
14020 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14021 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14022 (process_alt_operands, inherit_in_ebb): Likewise.
14023 * lra-eliminations.c (update_reg_eliminate): Likewise.
14024 * lra-lives.c (process_bb_lives): Likewise.
14025 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
14026 * resource.c (find_dead_or_set_registers): Likewise.
14027 (mark_target_live_regs): Likewise.
14028 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
14029 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14030 (implicit_clobber_conflict_p): Likewise.
14031 * shrink-wrap.c (requires_stack_frame_p): Likewise.
14032 (try_shrink_wrapping): Likewise.
14033
14034 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14035
14036 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
14037 (HARD_REG_SET::operator|=): Likewise.
14038 (IOR_HARD_REG_SET): Delete.
14039 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
14040 IOR_HARD_REG_SET.
14041 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14042 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
14043 * final.c (collect_fn_hard_reg_usage): Likewise.
14044 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
14045 * ira-build.c (merge_hard_reg_conflicts): Likewise.
14046 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
14047 (propagate_some_info_from_allocno): Likewise.
14048 (copy_info_to_removed_store_destinations): Likewise.
14049 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
14050 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
14051 (fast_allocation): Likewise.
14052 * ira-conflicts.c (ira_build_conflicts): Likewise.
14053 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
14054 (process_bb_node_lives): Likewise.
14055 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
14056 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14057 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14058 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
14059 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
14060 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
14061 (process_bb_lives): Likewise.
14062 * lra-spills.c (assign_spill_hard_regs): Likewise.
14063 * postreload.c (reload_combine): Likewise.
14064 * reginfo.c (init_reg_sets_1): Likewise.
14065 * regrename.c (merge_overlapping_regs, find_rename_reg)
14066 (merge_chains): Likewise.
14067 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
14068 (find_reload_regs, finish_spills, choose_reload_regs_init)
14069 (emit_reload_insns): Likewise.
14070 * reorg.c (redundant_insn): Likewise.
14071 * resource.c (find_dead_or_set_registers, mark_set_resources)
14072 (mark_target_live_regs): Likewise.
14073 * rtlanal.c (find_all_hard_reg_sets): Likewise.
14074 * sched-deps.c (sched_analyze_insn): Likewise.
14075 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14076 (find_best_reg_for_expr): Likewise.
14077 * shrink-wrap.c (try_shrink_wrapping): Likewise.
14078
14079 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14080
14081 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
14082 (HARD_REG_SET::operator&): Likewise.
14083 (AND_HARD_REG_SET): Delete.
14084 * caller-save.c (setup_save_areas): Use "&" instead of
14085 AND_HARD_REG_SET.
14086 (save_call_clobbered_regs): Likewise.
14087 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14088 * config/m32c/m32c.c (reduce_class): Likewise.
14089 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14090 * final.c (get_call_reg_set_usage): Likewise.
14091 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
14092 (setup_left_conflict_sizes_p): Likewise.
14093 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14094 (ira_build_conflicts): Likewise.
14095 * ira-costs.c (restrict_cost_classes): Likewise.
14096 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
14097 (setup_reg_class_relations): Likewise.
14098 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
14099 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
14100 * resource.c (find_dead_or_set_registers): Likewise.
14101 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14102
14103 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14104
14105 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
14106 (COMPL_HARD_REG_SET): Delete.
14107 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
14108 of COMPL_HARD_REG_SET.
14109 (try_rename_operands): Likewise.
14110 * config/sh/sh.c (push_regs): Likewise.
14111 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14112 * lra-constraints.c (contains_reg_p): Likewise.
14113 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
14114
14115 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14116
14117 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
14118 * caller-save.c (save_call_clobbered_regs): Use assignment instead
14119 of COPY_HARD_REG_SET.
14120 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
14121 (epiphany_conditional_register_usage): Likewise.
14122 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14123 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14124 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14125 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14126 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
14127 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14128 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
14129 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14130 * config/sh/sh.c (output_stack_adjust): Likewise.
14131 * final.c (collect_fn_hard_reg_usage): Likewise.
14132 (get_call_reg_set_usage): Likewise.
14133 * ira-build.c (ira_create_object, remove_low_level_allocnos)
14134 (ira_flattening): Likewise.
14135 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
14136 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
14137 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
14138 (ira_reassign_pseudos): Likewise.
14139 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14140 (ira_build_conflicts): Likewise.
14141 * ira-costs.c (restrict_cost_classes): Likewise.
14142 (setup_regno_cost_classes_by_aclass): Likewise.
14143 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
14144 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
14145 (setup_stack_reg_pressure_class, setup_pressure_classes)
14146 (setup_allocno_and_important_classes, setup_class_translate_array)
14147 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
14148 (ira_setup_eliminable_regset): Likewise.
14149 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14150 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14151 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14152 (process_alt_operands, inherit_in_ebb): Likewise.
14153 * lra-lives.c (process_bb_lives): Likewise.
14154 * lra-spills.c (assign_spill_hard_regs): Likewise.
14155 * lra.c (lra): Likewise.
14156 * mode-switching.c (new_seginfo): Likewise.
14157 * postreload.c (reload_combine): Likewise.
14158 * reg-stack.c (straighten_stack): Likewise.
14159 * reginfo.c (save_register_info, restore_register_info): Likewise.
14160 (init_reg_sets_1, record_subregs_of_mode): Likewise
14161 * regrename.c (create_new_chain, rename_chains): Likewise.
14162 * reload1.c (order_regs_for_reload, find_reg): Likewise.
14163 (find_reload_regs): Likewise.
14164 * resource.c (find_dead_or_set_registers): Likewise.
14165 (mark_target_live_regs): Likewise.
14166 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14167
14168 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14169
14170 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
14171 (note_pattern_stores): Declare.
14172 (note_stores): Take an rtx_insn *.
14173 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
14174 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
14175 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
14176 (note_stores): Take an rtx_insn * as argument and process
14177 CALL_INSN_FUNCTION_USAGE. Rename old function to...
14178 (note_pattern_stores): ...this.
14179 (find_first_parameter_load): Pass the insn rather than
14180 its pattern to note_stores.
14181 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
14182 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
14183 (insert_one_insn): Likewise.
14184 * combine.c (combine_instructions): Likewise.
14185 (likely_spilled_retval_p): Likewise.
14186 (try_combine): Use note_pattern_stores instead of note_stores.
14187 (record_dead_and_set_regs): Pass the insn rather than its pattern
14188 to note_stores.
14189 (reg_dead_at_p): Likewise.
14190 * config/bfin/bfin.c (workaround_speculation): Likewise.
14191 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
14192 rather than an rtx.
14193 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
14194 instead of note_stores.
14195 (frv_optimize_membar_local): Pass the insn rather than its pattern
14196 to note_stores.
14197 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14198 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
14199 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
14200 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
14201 (mips_reorg_process_insns): Likewise.
14202 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
14203 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
14204 rather than rtxes.
14205 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
14206 its pattern to note_stores.
14207 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
14208 of note_stores.
14209 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
14210 the insn to note_stores.
14211 (prescan_insns_for_dce): Update call accordingly.
14212 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
14213 to note_stores.
14214 * df-problems.c (can_move_insns_across): Likewise.
14215 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
14216 * function.c (assign_parm_setup_reg): Likewise.
14217 * gcse-common.c (record_last_mem_set_info_common): Likewise.
14218 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
14219 (single_set_gcse): Likewise.
14220 * ira.c (validate_equiv_mem): Likewise.
14221 (update_equiv_regs): Use note_pattern_stores rather than note_stores
14222 for no_equiv.
14223 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
14224 pattern to note_stores.
14225 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14226 * loop-iv.c (simplify_using_initial_values): Likewise.
14227 * mode-switching.c (optimize_mode_switching): Likewise.
14228 * optabs.c (emit_libcall_block_1): Likewise.
14229 (expand_atomic_compare_and_swap): Likewise.
14230 * postreload-gcse.c (load_killed_in_block_p): Likewise.
14231 (record_opr_changes): Likewise. Remove explicit handling of
14232 CALL_INSN_FUNCTION_USAGE.
14233 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
14234 * regcprop.c (kill_clobbered_values): Likewise.
14235 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
14236 to note_stores.
14237 * regrename.c (build_def_use): Likewise.
14238 * reload1.c (reload): Use note_pattern_stores instead of note_stores
14239 for mark_not_eliminable.
14240 (reload_as_needed): Pass the insn rather than its pattern
14241 to note_stores.
14242 (emit_output_reload_insns): Likewise.
14243 * resource.c (mark_target_live_regs): Likewise.
14244 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14245 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
14246 instead of note_stores.
14247 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
14248 its pattern to note_stores.
14249 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
14250 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
14251
14252 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14253
14254 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
14255 than a #define. Use a structure rather than an array as the
14256 fallback definition. Remove special cases for low array sizes.
14257 (const_hard_reg_set): New typedef.
14258 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
14259 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
14260 (hard_reg_set_empty_p): Likewise.
14261 (SET_HARD_REG_BIT): Use a function rather than a macro to
14262 handle the case in which HARD_REG_SET is a structure.
14263 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
14264 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
14265 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
14266 (IOR_COMPL_HARD_REG_SET): Likewise.
14267 (hard_reg_set_iterator::pset): Constify the pointer target.
14268 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
14269 of a "const HARD_REG_SET". Update the handling of non-integer
14270 HARD_REG_SETs.
14271 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
14272 * reload.h: Likewise.
14273 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
14274 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
14275 of a "const HARD_REG_SET".
14276 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
14277 (range_in_hard_reg_set_p): Likewise.
14278 * ira-costs.c (restrict_cost_classes): Likewise.
14279 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
14280 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14281 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
14282 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
14283 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
14284 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
14285 take an unsigned int and open-code the HARD_REG_SET operations.
14286
14287 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14288
14289 * Makefile.in (OBJS): Remove bt-load.o.
14290 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
14291 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14292 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
14293 document that the option no longer does anything.
14294 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14295 * target.def (branch_target_register_class): Delete.
14296 (branch_target_register_callee_saved): Likewise.
14297 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14298 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
14299 * doc/tm.texi: Regenerate.
14300 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
14301 (make_pass_branch_target_load_optimize2): Likewise.
14302 * passes.def (pass_branch_target_load_optimize1): Likewise.
14303 (pass_branch_target_load_optimize2): Likewise.
14304 * targhooks.h (default_branch_target_register_class): Likewise.
14305 * targhooks.c (default_branch_target_register_class): Likewise.
14306 * opt-suggestions.c (test_completion_valid_options): Remove
14307 -fbtr-bb-exclusive from the list of test options.
14308 * bt-load.c: Remove.
14309
14310 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
14311
14312 * match.pd: Add flag_unsafe_math_optimizations check
14313 before deciding on the widest type in a binary math operation.
14314
14315 2019-09-09 Martin Liska <mliska@suse.cz>
14316
14317 * config/i386/i386.opt: Update comment of removed
14318 options that are preserved only for backward
14319 compatibility.
14320
14321 2019-09-09 Jakub Jelinek <jakub@redhat.com>
14322
14323 PR target/87853
14324 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
14325 instead of __v16qs.
14326
14327 PR target/91704
14328 * config/i386/avxintrin.h (__v32qs): New typedef.
14329 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
14330 instead of __v32qi.
14331
14332 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14333
14334 * doc/invoke.texi (Option Summary): Cover eBPF.
14335 (eBPF Options): New section.
14336 * doc/extend.texi (BPF Built-in Functions): Likewise.
14337 (BPF Kernel Helpers): Likewise.
14338
14339 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14340
14341 * config.gcc: Support for bpf-*-* targets.
14342 * common/config/bpf/bpf-common.c: New file.
14343 * config/bpf/t-bpf: Likewise.
14344 * config/bpf/predicates.md: Likewise.
14345 * config/bpf/constraints.md: Likewise.
14346 * config/bpf/bpf.opt: Likewise.
14347 * config/bpf/bpf.md: Likewise.
14348 * config/bpf/bpf.h: Likewise.
14349 * config/bpf/bpf.c: Likewise.
14350 * config/bpf/bpf-protos.h: Likewise.
14351 * config/bpf/bpf-opts.h: Likewise.
14352 * config/bpf/bpf-helpers.h: Likewise.
14353 * config/bpf/bpf-helpers.def: Likewise.
14354
14355 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14356
14357 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14358 indirect_calls.
14359
14360 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14361
14362 * opt-functions.awk (integer_range_info): Make sure values are in
14363 numeric context before operating with them.
14364
14365 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
14366
14367 * genemit.c (gen_split): Print the filename and line number where the
14368 splitter (or peephole2) was defined, to the dump file.
14369
14370 2019-09-07 Jakub Jelinek <jakub@redhat.com>
14371
14372 PR tree-optimization/91665
14373 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
14374 incompatible with the type of PHI result.
14375
14376 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14377
14378 PR target/91684
14379 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
14380 gen_unaligned_storedi for 4-byte aligned addresses.
14381
14382 2019-09-06 Jim Wilson <jimw@sifive.com>
14383
14384 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14385 change.
14386
14387 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14388
14389 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14390
14391 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14392
14393 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14394 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14395
14396 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
14397
14398 PR target/91654
14399 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14400 cost of SSE->integer and integer->SSE moves from 2 to 6.
14401 (core_cost): Ditto.
14402
14403 2019-09-06 Jakub Jelinek <jakub@redhat.com>
14404
14405 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14406 before testing TYPE_TRANSPARENT_AGGR.
14407 * calls.c (initialize_argument_information, load_register_parameters):
14408 Likewise.
14409
14410 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
14411
14412 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14413 high regs.
14414 (cmp_ior): Likewise.
14415
14416 2019-09-06 Martin Liska <mliska@suse.cz>
14417
14418 * doc/match-and-simplify.texi: Separate tuples with ;.
14419
14420 2019-09-06 Martin Liska <mliska@suse.cz>
14421
14422 PR c++/91125
14423 * Makefile.in: Remove tlink.o.
14424 * collect2.c (do_link): New function isolated
14425 from do_tlink.
14426 (main): Use.
14427 * collect2.h (do_tlink): Remove declaration of do_tlink.
14428 * doc/extend.texi: Remove documentation of -frepo.
14429 * doc/invoke.texi: Likewise.
14430 * doc/sourcebuild.texi: Remove cleanup-repo-files.
14431 * tlink.c: Remove.
14432
14433 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14434 Jim Wilson <jimw@sifive.com>
14435
14436 PR target/91635
14437 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14438 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14439 paradoxical_subreg_p (operands[0]).
14440 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14441 use as intermediate value.
14442
14443 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
14444
14445 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14446 (sync_compare_and_swap<mode>_insn): Likewise.
14447
14448 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14449
14450 PR middle-end/91615
14451 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14452 without movmisalign optab.
14453
14454 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14455
14456 PR middle-end/91001
14457 PR middle-end/91105
14458 PR middle-end/91106
14459 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14460 types, use type of their first field instead of type of
14461 args[i].tree_value.
14462
14463 2019-09-05 Richard Biener <rguenther@suse.de>
14464
14465 PR rtl-optimization/91656
14466 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14467 of early out.
14468
14469 2019-09-05 Richard Biener <rguenther@suse.de>
14470
14471 PR middle-end/90501
14472 * tree-inline.c (declare_return_variable): Mark the return
14473 slot as addressable after building an address of it.
14474
14475 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14476
14477 * doc/install.texi: Update and clarify requirements to build GNAT.
14478
14479 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14480
14481 PR middle-end/91577
14482 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14483 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14484 call to be in memory.
14485 (pass_expand::execute): Call discover_nonconstant_array_refs before
14486 setting currently_expanding_to_rtl.
14487
14488 2019-09-04 Caroline Tice <cmtice@google.com>
14489
14490 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14491 specified together.
14492
14493 2019-09-04 Marek Polacek <polacek@redhat.com>
14494
14495 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14496
14497 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14498
14499 PR target/32413
14500 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14501 for QI and HImode moves between SSE and general registers.
14502
14503 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14504
14505 PR c/78736
14506 * doc/invoke.texi: Document -Wenum-conversion.
14507
14508 2019-09-04 Richard Biener <rguenther@suse.de>
14509
14510 PR rtl-optimization/36262
14511 * postreload-gcse.c: Include intl.h and gcse.h.
14512 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14513 to avoid linear list walk.
14514 (record_last_mem_set_info): Gate off if not computing transparentness.
14515 (get_bb_avail_insn): If transparentness isn't computed give up
14516 early.
14517 (gcse_after_reload_main): Skip compute_transp and extended PRE
14518 if gcse_or_cprop_is_too_expensive says so.
14519
14520 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14521
14522 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14523 noinit section.
14524 (msp430_select_section): Handle decls with the "noinit" attribute with
14525 default_elf_select_section.
14526 Handle SECCAT_RODATA_MERGE_* section types with
14527 default_elf_select_section.
14528 Add comments about handling of unsupported section types.
14529 (msp430_section_type_flags): Remove handling of the noinit section.
14530
14531 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14532
14533 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14534 conflicting msp430-specific attributes.
14535 (msp430_section_attr): Likewise.
14536 Add warnings about conflicts with generic "noinit" and "section"
14537 attributes.
14538 Fix grammar in -mlarge error message.
14539 (msp430_data_attr): Rename to msp430_persist_attr.
14540 Add warnings about conflicts with generic "noinit" and "section"
14541 attributes.
14542 Add warning for when variable is not initialized.
14543 Chain conditionals which prevent the attribute being added.
14544 (ATTR_EXCL): New helper.
14545 (attr_reent_exclusions): New exclusion table.
14546 (attr_naked_exclusions): Likewise.
14547 (attr_crit_exclusions): Likewise.
14548 (attr_lower_exclusions): Likewise.
14549 (attr_upper_exclusions): Likewise.
14550 (attr_either_exclusions): Likewise.
14551 (attr_persist_exclusions): Likewise.
14552 (msp430_attribute_table): Update with exclusion rules.
14553 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14554 has a section.
14555
14556 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14557
14558 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14559 (msp430_handle_generic_attribute): New function.
14560 * doc/tm.texi: Regenerate.
14561 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14562 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14563 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14564 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14565
14566 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14567
14568 PR tree-optimization/91504
14569 * match.pd: Add ((~a & b) ^a) --> (a | b).
14570
14571 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14572
14573 PR target/91604
14574 * config/i386/i386-expand.c (split_double_mode): If there is more than
14575 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14576 already split matching MEM operand instead of calling adjust_address
14577 again.
14578
14579 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14580
14581 * config.gcc: Obsolete spu target. Remove references to spu.
14582 * configure.ac: Remove references to spu.
14583 * configure: Regenerate.
14584 * config/spu/: Remove directory.
14585 * common/config/spu/: Remove directory.
14586
14587 * doc/extend.texi: Remove references to spu.
14588 * doc/invoke.texi: Likewise.
14589 * doc/md.texi: Likewise.
14590 * doc/sourcebuild.texi: Likewise.
14591
14592 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14593
14594 PR middle-end/91603
14595 PR middle-end/91612
14596 PR middle-end/91613
14597 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14598 and SSA_NAME referring to CONSTANT_P correctly.
14599
14600 2019-09-03 Richard Biener <rguenther@suse.de>
14601
14602 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14603 (vn_nary_op_insert): Likewise.
14604 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14605 (vn_nary_op_lookup): Likewise.
14606 (vn_nary_op_insert): Likewise.
14607
14608 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14609
14610 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14611 (*op0, 1) instead of XEXP (*op1, 0).
14612
14613 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14614
14615 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14616 (aarch64_fjcvtzs): New define_insn.
14617 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14618 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14619 Add AARCH64_JSCVT.
14620 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14621 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14622 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14623 __ARM_FEATURE_JCVT where appropriate.
14624 * config/aarch64/arm_acle.h (__jcvt): Define.
14625
14626 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14627
14628 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14629 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14630 (aarch64_<frintnzs_op><mode>): New define_insn.
14631 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14632 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14633 __ARM_FEATURE_FRINT when appropriate.
14634 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14635 frint32x, frint64z, frint64x.
14636 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14637 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14638 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14639 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14640 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14641 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14642 * config/aarch64/iterators.md (VSFDF): Define.
14643 (FRINTNZX): Likewise.
14644 (frintnzs_op): Likewise.
14645
14646 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14647
14648 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14649 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14650 Cortex-A34.
14651 * config/aarch64/aarch64-tune.md: Regenerated.
14652 * doc/invoke.texi: Document the new processors.
14653
14654 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14655
14656 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14657 string.
14658 (ssbs): Likewise.
14659 (sve2): Likewise.
14660 (sve2-sm4): Likewise.
14661 (sveaes): Likewise.
14662 (svesha3): Likewise.
14663 (svebitperm): Likewise.
14664
14665 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14666 Richard Biener <rguenther@suse.de>
14667
14668 PR tree-optimization/91597
14669 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14670 BIT_AND_EXPR optimization for pointers, even if both operand
14671 ranges don't include NULL, the result can be NULL.
14672
14673 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14674
14675 PR middle-end/91605
14676 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14677 (non_mem_decl_p): ...this.
14678 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14679 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14680 unconditionally as before.
14681
14682 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14683
14684 PR target/91323
14685 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14686 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14687 * tree.def (LTGT_EXPR): Likewise.
14688 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14689
14690 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14691
14692 PR go/91617
14693 * fold-const.c (range_check_type): For enumeral and boolean
14694 type, pass 1 to type_for_size langhook instead of
14695 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14696 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14697 (build_range_check): Don't call unsigned_type_for for pointer types.
14698 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14699 range_check_type result.
14700
14701 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14702
14703 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14704 (replace_ref): Do not replace a chain of only two candidates which are
14705 valid memory references.
14706
14707 2019-09-02 Martin Liska <mliska@suse.cz>
14708
14709 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14710 Bail out when we'll end up with the same number of clusters as
14711 at the beginning.
14712 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14713 (jump_table_cluster::can_be_handled): Remove the guard
14714 as it's already handled in ::is_enabled. Allocate output
14715 after early bail out.
14716
14717 2019-09-02 Martin Liska <mliska@suse.cz>
14718
14719 PR gcov-profile/91601
14720 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14721 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14722 also negative edges.
14723 (circuit): Handle also negative edges as they can happen
14724 in some situations.
14725
14726 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14727
14728 PR target/91472
14729 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14730 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14731 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14732
14733 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14734
14735 PR middle-end/91623
14736 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14737 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14738 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14739 zero vector.
14740
14741 PR lto/91572
14742 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14743 GIMPLE_ASM TREE_LIST operands.
14744
14745 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14746
14747 * doc/generic.texi (Unary and Binary Expressions): Mark up
14748 an instance of TYPE_MIN.
14749
14750 2019-08-31 Stafford Horne <shorne@gmail.com>
14751
14752 * config/or1k/constraints.md (t): New constraint.
14753 * config/or1k/or1k.h (GOT_REGS): New register class.
14754 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14755
14756 2019-08-30 Jim Wilson <jimw@sifive.com>
14757
14758 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14759 and -fpic and -mplt then disable -msave-restore and warn.
14760
14761 2019-08-30 Martin Sebor <msebor@redhat.com>
14762
14763 PR middle-end/91599
14764 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14765 the statement doesn't have one.
14766 * gimple-pretty-print.c (percent_G_format): Same.
14767
14768 PR middle-end/91584
14769 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14770 before using them to validate MEM_REF offset.
14771
14772 2019-08-30 Marek Polacek <polacek@redhat.com>
14773
14774 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14775
14776 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14777
14778 * config/arm/arm.md (unaligned_loaddi,
14779 unaligned_storedi): New unspec insn patterns.
14780 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14781 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14782 and unaligned_storedi for 4-byte aligned memory.
14783 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14784 4-byte aligned memory.
14785
14786 2019-08-30 Martin Jambor <mjambor@suse.cz>
14787
14788 tree-optimization/91579
14789 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14790 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14791 appropriate.
14792 (arg_needs_copy_p): Removed.
14793 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14794 arg_needs_copy_p.
14795 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14796
14797 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14798
14799 * config/i386/i386-features.c
14800 (general_scalar_chain::compute_convert_gain):
14801 Correct cost for double-word shifts.
14802 (general_scalar_to_vector_candidate_p): Reject count operands
14803 greater or equal to mode bitsize.
14804
14805 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14806
14807 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14808 for moves between SSE and non-general registers and between
14809 mask and non-general registers.
14810 (ix86_register_move_cost): Remove stalled comment.
14811
14812 2019-08-29 Richard Biener <rguenther@suse.de>
14813
14814 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14815 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14816
14817 2019-08-29 Richard Biener <rguenther@suse.de>
14818
14819 PR bootstrap/91580
14820 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14821 Do not emit scalar copies for debug-insns, instead replace
14822 their uses with the reg copy used in the chain or reset them
14823 if there is a reaching definition outside of the chain as well.
14824
14825 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14826
14827 PR target/91560
14828 * config/i386/i386-expand.c (expand_vec_perm_movs,
14829 expand_vec_perm_blend, expand_vec_perm_vpermil,
14830 expand_vec_perm_pshufb, expand_vec_perm_1,
14831 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14832 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14833 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14834 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14835 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14836 comments - replace ix86_expand_vec_perm_builtin_1 with
14837 ix86_expand_vec_perm_const_1.
14838 (expand_vec_perm2_vperm2f128_vblend): New function.
14839 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14840 expand_vec_perm2_vperm2f128_vblend as last resort.
14841 (canonicalize_perm): Formatting fix.
14842
14843 PR tree-optimization/91351
14844 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14845 unsigned_type_for.
14846 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14847 range_check_type returns NULL.
14848 * tree-switch-conversion.c (switch_conversion::build_one_array):
14849 Use range_check_type instead of unsigned_type_for, don't perform
14850 linear opt if it returns NULL.
14851 (bit_test_cluster::find_bit_tests): Formatting fix.
14852 (bit_test_cluster::emit): Use range_check_type instead of
14853 unsigned_type_for.
14854 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14855 returns NULL.
14856
14857 2019-08-29 Richard Biener <rguenther@suse.de>
14858
14859 PR tree-optimization/91568
14860 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14861 (vect_update_max_nunits): Add overload for poly_uint64.
14862 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14863 (vect_build_slp_tree): Record max_nunits into the subtree
14864 and merge it upwards.
14865 (vect_print_slp_tree): Print max_nunits.
14866
14867 2019-08-28 Marek Polacek <polacek@redhat.com>
14868
14869 Implement P1152R4: Deprecating some uses of volatile.
14870 PR c++/91361
14871 * doc/invoke.texi: Document -Wvolatile.
14872
14873 2019-08-28 Marek Polacek <polacek@redhat.com>
14874
14875 PR c++/91360 - Implement C++20 P1143R2: constinit.
14876 * doc/invoke.texi: Document -Wc++20-compat.
14877
14878 2019-08-28 Martin Sebor <msebor@redhat.com>
14879
14880 PR tree-optimization/91457
14881 * builtins.c (component_size): New function.
14882 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14883 * builtins.h (compute_objsize): Add argument.
14884 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14885 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14886 (vrp_prop::check_mem_ref): Same.
14887 (vrp_prop::search_for_addr_array): Set no-warning bit.
14888 (check_array_bounds): Same.
14889
14890 2019-08-28 Martin Sebor <msebor@redhat.com>
14891
14892 PR driver/80545
14893 * opts-common.c (option_enabled): Correct checking for language
14894 options.
14895
14896 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14897
14898 * config/i386/i386.c (ix86_register_move_cost): Do not
14899 limit the cost of moves to/from XMM register to minimum 8.
14900
14901 2019-08-28 Martin Jambor <mjambor@suse.cz>
14902
14903 PR ipa/91468
14904 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14905 checking assert a normal assert to test it really is redundant.
14906 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14907 redundant test.
14908 (update_jump_functions_after_inlining): Removed combining unary
14909 arithmetic operations with an ancestor jump function.
14910 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14911 instead of t.
14912
14913 2019-08-28 Richard Biener <rguenther@suse.de>
14914
14915 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14916 add the MD problem.
14917
14918 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14919 Richard Biener <rguenther@suse.de>
14920
14921 * expr.c (expand_assignment): Handle misaligned DECLs.
14922 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14923 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14924 too.
14925 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14926 * varasm.c (build_constant_desc): Align constants of misaligned types.
14927 * config/arm/predicates.md (aligned_operand): New predicate.
14928 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14929 aligned_operand to check restrictions on memory addresses.
14930 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14931 * config/arm/vec-common.md (mov<VALL>): Likewise.
14932
14933 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14934
14935 PR libgomp/91530
14936 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14937 V_128 iterator instead of VI_128.
14938
14939 2019-08-28 Martin Liska <mliska@suse.cz>
14940
14941 PR tree-optimization/90970
14942 * builtins.c (check_access): Remove assignment to maxread
14943 as it hasn't been used since when it was introduced in r255755.
14944
14945 2019-08-27 Martin Sebor <msebor@redhat.com>
14946
14947 PR tree-optimization/91567
14948 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14949 of unknown strings.
14950 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14951 to PTRDIFF_MAX - 2.
14952
14953 2019-08-27 Jeff Law <law@redhat.com>
14954
14955 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14956 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14957
14958 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14959
14960 PR target/91528
14961 * config/i386/i386-features.c (convert_scalars_to_vector):
14962 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14963 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14964 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14965 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14966
14967 2019-08-27 Richard Biener <rguenther@suse.de>
14968
14969 * config/i386/i386-features.h
14970 (general_scalar_chain::~general_scalar_chain): Add.
14971 (general_scalar_chain::insns_conv): New bitmap.
14972 (general_scalar_chain::n_sse_to_integer): New.
14973 (general_scalar_chain::n_integer_to_sse): Likewise.
14974 (general_scalar_chain::make_vector_copies): Adjust signature.
14975 * config/i386/i386-features.c
14976 (general_scalar_chain::general_scalar_chain): Outline,
14977 initialize new members.
14978 (general_scalar_chain::~general_scalar_chain): New.
14979 (general_scalar_chain::mark_dual_mode_def): Record insns
14980 we need to insert conversions at and count them.
14981 (general_scalar_chain::compute_convert_gain): Account
14982 for conversion instructions at chain boundary.
14983 (general_scalar_chain::make_vector_copies): Generate a single
14984 copy for a def by a specific insn.
14985 (general_scalar_chain::convert_registers): First populate
14986 defs_map, then make copies at out-of chain insns.
14987
14988 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14989
14990 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14991 comment.
14992 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14993
14994 2019-08-27 Martin Liska <mliska@suse.cz>
14995
14996 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14997 loop.
14998 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14999 Enclose in anonymous namespace.
15000 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
15001 hard_register initialization in braces.
15002 * tree-vrp.h (value_range_base::supports_type_p): Return false
15003 for function with boolean return type.
15004
15005 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
15006
15007 * config/i386/i386.c (emit_i387_cw_initialization)
15008 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
15009
15010 2019-08-26 Martin Sebor <msebor@redhat.com>
15011
15012 PR c++/83431
15013 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
15014 (sprintf_dom_walker): Remove class.
15015 (get_int_range): Make argument const.
15016 (directive::fmtfunc, directive::set_precision): Same.
15017 (format_none): Same.
15018 (build_intmax_type_nodes): Same.
15019 (adjust_range_for_overflow): Same.
15020 (format_floating): Same.
15021 (format_character): Same.
15022 (format_string): Same.
15023 (format_plain): Same.
15024 (get_int_range): Cast away constness.
15025 (format_integer): Same.
15026 (get_string_length): Call get_range_strlen_dynamic. Handle
15027 null lendata.maxbound.
15028 (should_warn_p): Adjust argument scope qualifier.
15029 (maybe_warn): Same.
15030 (format_directive): Same.
15031 (parse_directive): Same.
15032 (is_call_safe): Same.
15033 (try_substitute_return_value): Same.
15034 (sprintf_dom_walker::handle_printf_call): Rename...
15035 (handle_printf_call): ...to this. Initialize target to host charmap
15036 here instead of in pass_sprintf_length::execute.
15037 (struct call_info): Make global.
15038 (sprintf_dom_walker::compute_format_length): Make global.
15039 (sprintf_dom_walker::handle_gimple_call): Same.
15040 * passes.def (pass_sprintf_length): Replace with pass_strlen.
15041 * print-rtl.c (print_pattern): Reduce the number of spaces to
15042 avoid -Wformat-truncation.
15043 * tree-pass.h (make_pass_warn_printf): New function.
15044 * tree-ssa-strlen.c (strlen_optimize): New variable.
15045 (get_string_length): Add comments.
15046 (get_range_strlen_dynamic): New function.
15047 (check_and_optimize_call): New function.
15048 (handle_integral_assign): New function.
15049 (strlen_check_and_optimize_stmt): Factor code out into
15050 strlen_check_and_optimize_call and handle_integral_assign.
15051 (strlen_dom_walker::evrp): New member.
15052 (strlen_dom_walker::before_dom_children): Use evrp member.
15053 (strlen_dom_walker::after_dom_children): Use evrp member.
15054 (printf_strlen_execute): New function.
15055 (pass_strlen::gate): Update to handle printf calls.
15056 (dump_strlen_info): New function.
15057 (pass_data_warn_printf): New variable.
15058 (pass_warn_printf): New class.
15059 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
15060 (handle_printf_call): Same.
15061 * tree-vrp.c (value_range_base::type): Adjust assertion.
15062 * vr-values.c (vr_values::update_value_range): Use type of the first
15063 argument rather than the second.
15064
15065 2019-08-26 Richard Biener <rguenther@suse.de>
15066
15067 * config/i386/i386-features.c (general_remove_non_convertible_regs):
15068 Remove.
15069 (convert_scalars_to_vector): Do not call it.
15070
15071 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15072 Uros Bizjak <ubizjak@gmail.com>
15073
15074 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
15075 CASE_MATHFN_FLOATN for roundeven.
15076 * config/i386/i386.c (ix86_i387_mode_needed): Add case
15077 I387_ROUNDEVEN.
15078 (ix86_mode_needed): Likewise.
15079 (ix86_mode_after): Likewise.
15080 (ix86_mode_entry): Likewise.
15081 (ix86_mode_exit): Likewise.
15082 (ix86_emit_mode_set): Likewise.
15083 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
15084 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
15085 (ix86_entity): Add I387_ROUNDEVEN.
15086 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
15087 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
15088 (define_int_iterator): Likewise.
15089 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
15090 (define_constant): Define ROUND_ROUNDEVEN mode.
15091 (define_attr): Add roundeven mode for i387_cw.
15092 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
15093 * internal-fn.def (ROUNDEVEN): New builtin function.
15094 * optabs.def (roundeven_optab): New optab.
15095
15096 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15097
15098 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
15099 for ROUNDEVEN.
15100 * builtins.def: Added function definitions for roundeven function
15101 variants.
15102 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
15103 function call. Adjust condition for floor, ceil, trunc and round.
15104 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
15105 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
15106 (integer_valued_real_call_p): Added case for roundeven function.
15107 * real.c (is_even): New function. Returns true if real number is even,
15108 otherwise returns false.
15109 (is_halfway_below): New function. Returns true if real number is
15110 halfway between two integers, else return false.
15111 (real_roundeven): New function. Round real number to nearest integer,
15112 rounding halfway cases towards even.
15113 * real.h (real_value): Added descriptive comments. Added function
15114 declaration for roundeven function.
15115 * doc/extend.texi (Other Builtins): List roundeven variants among
15116 functions which can be handled as builtins.
15117
15118 2019-08-26 Richard Biener <rguenther@suse.de>
15119
15120 PR target/91522
15121 PR target/91527
15122 * config/i386/i386-features.h (general_scalar_chain::defs_map):
15123 New member.
15124 (general_scalar_chain::replace_with_subreg): Remove.
15125 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15126 (general_scalar_chain::convert_reg): Adjust signature.
15127 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
15128 iterate over all defs of a reg.
15129 (general_scalar_chain::replace_with_subreg): Remove.
15130 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15131 (general_scalar_chain::make_vector_copies): Populate defs_map,
15132 place copy only after defs that are used as vectors in the chain.
15133 (general_scalar_chain::convert_reg): Emit a copy for a specific
15134 def in a specific instruction.
15135 (general_scalar_chain::convert_op): All reg uses are converted here.
15136 (general_scalar_chain::convert_insn): Emit copies for scalar
15137 uses of defs here. Replace uses with the copies we created.
15138 Replace and convert the def. Adjust REG_DEAD notes, remove
15139 REG_EQUIV/EQUAL notes.
15140 (general_scalar_chain::convert_registers): Only handle copies
15141 into the chain here.
15142
15143 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15144
15145 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
15146
15147 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15148
15149 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
15150 Add nop_convert case.
15151 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
15152 Fold all statements if requested.
15153 * tree-ssa-propagate.h (class substitute_and_fold_engine):
15154 Allow to fold all statements.
15155 * tree-vrp.c (class vrp_folder):
15156 Let substitute_and_fold_engine fold all statements.
15157
15158 2019-08-26 Richard Biener <rguenther@suse.de>
15159
15160 PR tree-optimization/91526
15161 * passes.def: Note that after late FRE we do TODO_update_address_taken.
15162 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
15163 TODO_update_address_taken.
15164
15165 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
15166
15167 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
15168 __STDC_HOSTED__.
15169
15170 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
15171
15172 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
15173 machine mode for unspec_volatile operand.
15174
15175 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
15176
15177 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
15178 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
15179 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
15180 (prefer_neon_for_64bits): Remove.
15181 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
15182 (tune_params): Remove PREF_NEON_64_FALSE uses.
15183 (arm_option_override): Remove prefer_neon selection code.
15184 (arm_print_tune_info): Remove prefer_neon_for_64bits.
15185 * config/arm/arm-protos.h (tune_params): Remove
15186 prefer_neon_for_64bits.
15187 (prefer_neon_for_64bits): Remove.
15188
15189 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
15190
15191 PR pch/61250
15192 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
15193 and issue any diagnostics needed before collecting the pre-PCH
15194 state.
15195
15196 2019-08-23 Jakub Jelinek <jakub@redhat.com>
15197
15198 PR middle-end/91283
15199 * common.opt (fexcess-precision=): Add Optimization flag. Use
15200 flag_excess_precision variable instead of
15201 flag_excess_precision_cmdline.
15202 * flags.h (class target_flag_state): Remove x_flag_excess_precision
15203 member.
15204 (flag_excess_precision): Don't define.
15205 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
15206 flag_excess_precision_cmdline. Remove comment.
15207 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
15208 and x_flag_excess_precision instead of
15209 frontend_set_flag_excess_precision_cmdline and
15210 x_flag_excess_precision_cmdline.
15211 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
15212 x_flag_excess_precision_cmdline.
15213 * toplev.c (init_excess_precision): Remove.
15214 (lang_dependent_init_target): Don't call it.
15215
15216 2019-08-23 Martin Liska <mliska@suse.cz>
15217
15218 * lto-wrapper.c (run_gcc): When setting jobserver
15219 set also parallel to 1. This was done so before r273908.
15220
15221 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
15222
15223 * config/arm/arm-cpus.in (cortex-m35p): New entry.
15224 (cortex-a76ae): Likewise.
15225 (cortex-a77): Likewise
15226 * config/arm/arm-tables.opt: Regenerate.
15227 * config/arm/arm-tune.md: Likewise.
15228 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
15229 cortex-a77 CPU options.
15230
15231 2019-08-23 Martin Liska <mliska@suse.cz>
15232
15233 * profile.c (instrument_values): Do not set
15234 0 as last argument.
15235 * tree-profile.c (gimple_gen_interval_profiler): Remove
15236 last argument.
15237 (gimple_gen_pow2_profiler): Likewise.
15238 (gimple_gen_topn_values_profiler): Likewise.
15239 (gimple_gen_ic_profiler): Likewise.
15240 (gimple_gen_time_profiler): Likewise.
15241 (gimple_gen_average_profiler): Likewise.
15242 (gimple_gen_ior_profiler): Likewise.
15243 * value-prof.c (dump_histogram_value): Use default
15244 in switch statement instead of HIST_TYPE_MAX.
15245 (stream_in_histogram_value): Likewise.
15246 (gimple_duplicate_stmt_histograms): Do not
15247 use NULL for implicitly set arguments.
15248 (gimple_divmod_values_to_profile): Do not use
15249 reserve+quick_push.
15250 (gimple_indirect_call_to_profile): Likewise.
15251 (gimple_find_values_to_profile): Use implicit
15252 function call arguments.
15253 * value-prof.h (gimple_alloc_histogram_value):
15254 Set default values.
15255 (gimple_gen_interval_profiler): Remove last argument.
15256 (gimple_gen_pow2_profiler): Likewise.
15257 (gimple_gen_topn_values_profiler): Likewise.
15258 (gimple_gen_ic_profiler): Likewise.
15259 (gimple_gen_time_profiler): Likewise.
15260 (gimple_gen_average_profiler): Likewise.
15261 (gimple_gen_ior_profiler): Likewise.
15262
15263 2019-08-22 Martin Sebor <msebor@redhat.com>
15264
15265 PR middle-end/91490
15266 * builtins.c (c_strlen): Rename argument and introduce new local.
15267 Set no-warning bit on original argument.
15268 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
15269 Fold empty and zero constructors into empty strings.
15270 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
15271 for missing initializers.
15272 * tree.c (build_string_literal): Handle optional argument.
15273 * tree.h (build_string_literal): Add defaulted argument.
15274 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
15275 no-warning bit on original expression.
15276
15277 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15278
15279 PR target/91481
15280 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15281 and UNSPEC_DARN_RAW.
15282 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
15283 UNSPECV_DARN_RAW.
15284 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
15285 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
15286 (darn): Use an unspec_volatile, and UNSPECV_DARN.
15287
15288 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15289
15290 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15291 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
15292 * config/rs6000/rs6000.md (unspec): ... here.
15293 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
15294 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15295 cmpeqb, *cmpeqb_internal): Delete, move to...
15296 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
15297 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15298 cmpeqb, *cmpeqb_internal): ... here.
15299
15300 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15301
15302 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
15303 intrinsics if __ARM_FP.
15304 Use __ARM_FEATURE_CRC32 ifdef guard.
15305
15306 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15307
15308 * config/arm/arm.md (neon_for_64bits): Remove.
15309 (avoid_neon_for_64bits): Remove.
15310 (arm_adddi3): Always split early.
15311 (arm_subdi3): Always split early.
15312 (negdi2): Remove Neon expansion.
15313 (split zero_extend): Split before reload.
15314 (split sign_extend): Split before reload.
15315
15316 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15317
15318 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
15319 (qhs_extenddi_cstr): Likewise.
15320 * config/arm/arm.md (ashldi3): Always expand early.
15321 (ashlsi3): Likewise.
15322 (ashrsi3): Likewise.
15323 (zero_extend<mode>di2): Remove Neon variants.
15324 (extend<mode>di2): Likewise.
15325 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
15326 (signed_shift_di3_neon): Likewise.
15327 (unsigned_shift_di3_neon): Likewise.
15328 (ashrdi3_neon_imm_noclobber): Likewise.
15329 (lshrdi3_neon_imm_noclobber): Likewise.
15330 (<shift>di3_neon): Likewise.
15331 (split extend): Remove DI extend split patterns.
15332
15333 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15334
15335 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
15336 (split not): Add DImode not splitter.
15337 (anddi3): Remove pattern.
15338 (anddi3_insn): Likewise.
15339 (anddi_zesidi_di): Likewise.
15340 (anddi_sesdi_di): Likewise.
15341 (anddi_notdi_di): Likewise.
15342 (anddi_notzesidi_di): Likewise.
15343 (anddi_notsesidi_di): Likewise.
15344 (iordi3): Likewise.
15345 (iordi3_insn): Likewise.
15346 (iordi_zesidi_di): Likewise.
15347 (iordi_sesidi_di): Likewise.
15348 (xordi3): Likewise.
15349 (xordi3_insn): Likewise.
15350 (xordi_sesidi_di): Likewise.
15351 (xordi_zesidi_di): Likewise.
15352 (one_cmpldi2): Likewise.
15353 (one_cmpldi2_insn): Likewise.
15354 * config/arm/constraints.md: Remove De, Df, Dg constraints.
15355 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
15356 alternative.
15357 (iwmmxt_xordi3): Likewise.
15358 (iwmmxt_anddi3): Likewise.
15359 * config/arm/neon.md (orndi3_neon): Remove pattern.
15360 (anddi_notdi_di): Likewise.
15361 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
15362 (arm_iordi_operand_neon): Likewise.
15363 (arm_xordi_operand_neon): Likewise.
15364 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
15365 (iordi_notzesidi_di): Likewise.
15366 (iordi_notdi_zesidi): Likewise.
15367 (iordi_notsesidi_di): Likewise.
15368
15369 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
15370
15371 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
15372 insn.
15373 (iorsi3_compare0_scratch): Likewise.
15374
15375 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
15376
15377 * config/aarch64/aarch64-simd-builtins.def:
15378 (ld1x4): New.
15379 (st1x4): Likewise.
15380 * config/aarch64/aarch64-simd.md:
15381 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15382 (aarch64_st1x4<VALLDIF:mode>): Likewise.
15383 (aarch64_ld1_x4_<mode>): Likewise.
15384 (aarch64_st1_x4_<mode>): Likewise.
15385 * config/aarch64/arm_neon.h:
15386 (vld1_s8_x4): New function.
15387 (vld1q_s8_x4): Likewise.
15388 (vld1_s16_x4): Likewise.
15389 (vld1q_s16_x4): Likewise.
15390 (vld1_s32_x4): Likewise.
15391 (vld1q_s32_x4): Likewise.
15392 (vld1_u8_x4): Likewise.
15393 (vld1q_u8_x4): Likewise.
15394 (vld1_u16_x4): Likewise.
15395 (vld1q_u16_x4): Likewise.
15396 (vld1_u32_x4): Likewise.
15397 (vld1q_u32_x4): Likewise.
15398 (vld1_f16_x4): Likewise.
15399 (vld1q_f16_x4): Likewise.
15400 (vld1_f32_x4): Likewise.
15401 (vld1q_f32_x4): Likewise.
15402 (vld1_p8_x4): Likewise.
15403 (vld1q_p8_x4): Likewise.
15404 (vld1_p16_x4): Likewise.
15405 (vld1q_p16_x4): Likewise.
15406 (vld1_s64_x4): Likewise.
15407 (vld1_u64_x4): Likewise.
15408 (vld1_p64_x4): Likewise.
15409 (vld1q_s64_x4): Likewise.
15410 (vld1q_u64_x4): Likewise.
15411 (vld1q_p64_x4): Likewise.
15412 (vld1_f64_x4): Likewise.
15413 (vld1q_f64_x4): Likewise.
15414 (vst1_s8_x4): Likewise.
15415 (vst1q_s8_x4): Likewise.
15416 (vst1_s16_x4): Likewise.
15417 (vst1q_s16_x4): Likewise.
15418 (vst1_s32_x4): Likewise.
15419 (vst1q_s32_x4): Likewise.
15420 (vst1_u8_x4): Likewise.
15421 (vst1q_u8_x4): Likewise.
15422 (vst1_u16_x4): Likewise.
15423 (vst1q_u16_x4): Likewise.
15424 (vst1_u32_x4): Likewise.
15425 (vst1q_u32_x4): Likewise.
15426 (vst1_f16_x4): Likewise.
15427 (vst1q_f16_x4): Likewise.
15428 (vst1_f32_x4): Likewise.
15429 (vst1q_f32_x4): Likewise.
15430 (vst1_p8_x4): Likewise.
15431 (vst1q_p8_x4): Likewise.
15432 (vst1_p16_x4): Likewise.
15433 (vst1q_p16_x4): Likewise.
15434 (vst1_s64_x4): Likewise.
15435 (vst1_u64_x4): Likewise.
15436 (vst1_p64_x4): Likewise.
15437 (vst1q_s64_x4): Likewise.
15438 (vst1q_u64_x4): Likewise.
15439 (vst1q_p64_x4): Likewise.
15440 (vst1_f64_x4): Likewise.
15441 (vst1q_f64_x4): Likewise.
15442
15443 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15444
15445 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15446
15447 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15448 Richard Sandiford <richard.sandiford@arm.com>
15449
15450 PR target/88839
15451 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15452 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15453
15454 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15455
15456 PR target/90724
15457 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15458 in reg if it fails aarch64_plus_operand predicate.
15459
15460 2019-08-21 Richard Biener <rguenther@suse.de>
15461
15462 PR tree-optimization/91482
15463 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15464 BUILT_IN_ASSUME_ALIGNED calls.
15465
15466 2019-08-21 Richard Biener <rguenther@suse.de>
15467
15468 PR target/91498
15469 PR target/91503
15470 * config/i386/i386-features.c
15471 (general_scalar_chain::make_vector_copies): Copy stack temporary
15472 rtx when using it multiple times.
15473 (general_scalar_chain::convert_reg): Likewise.
15474
15475 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15476
15477 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15478
15479 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15480
15481 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15482 catch more redundant zero initialization cases.
15483 (dse_dom_walker::dse_optimize_stmt): Likewise.
15484
15485 2019-08-20 Richard Biener <rguenther@suse.de>
15486
15487 PR lto/91307
15488 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15489 by collect2 when targetm.have_ctors_dtors which avoids dragging
15490 in temporary filenames from LTO input objects.
15491
15492 2019-08-20 Richard Biener <rguenther@suse.de>
15493
15494 PR tree-optimization/37242
15495 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15496 to (T)a + (T)b if we know that a + b does not overflow.
15497
15498 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15499
15500 PR rtl-optimization/91347
15501 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15502 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15503
15504 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15505
15506 * calls.h (function_arg_info): Add a pass_by_reference field,
15507 defaulting to false.
15508 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15509 when applying pass-by-reference semantics.
15510 (initialize_argument_information): Likewise.
15511 (emit_library_call_value_1): Likewise.
15512 * function.c (assign_parm_data_one): Remove passed_pointer field.
15513 (assign_parm_find_data_types): Don't set it.
15514 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15515 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15516 arg.pass_by_reference instead of passed_pointer.
15517
15518 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15519
15520 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15521 into a single function_arg_info, updating its fields when we
15522 apply pass-by-reference and promotion semantics. Use the
15523 function_arg_info to track the mode rather than keeping it in
15524 a separate local variable.
15525 (initialize_argument_information): Likewise. Base the final
15526 arg_to_skip on this new function_arg_info rather than creating
15527 a new one from scratch.
15528
15529 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15530
15531 * function.c (assign_parm_data_one): Replace passed_type,
15532 promoted_mode and named_arg with a function_arg_info field.
15533 (assign_parm_find_data_types): Remove local variables and
15534 assign directly to "data". Make data->passed_mode shadow
15535 data->arg.mode until promotion, then assign the promoted
15536 mode to data->arg.mode.
15537 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15538 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15539 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15540 (assign_parm_setup_block, assign_parm_setup_reg)
15541 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15542 arg.mode instead of promoted_mode, arg.type instead of passed_type
15543 and arg.named instead of named_arg. Use data->arg for
15544 function_arg_info structures that had the field values passed_type,
15545 promoted_mode and named_arg. Base other function_arg_infos on
15546 data->arg, changing the necessary properties.
15547
15548 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15549
15550 * calls.h (apply_pass_by_reference_rules): Declare.
15551 * calls.c (apply_pass_by_reference_rules): New function.
15552 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15553 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15554 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15555 * function.c (assign_parm_find_data_types): Likewise.
15556 * var-tracking.c (prepare_call_arguments): Likewise.
15557
15558 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15559
15560 * target.def (must_pass_in_stack): Take a function_arg_info instead
15561 of a mode and a type.
15562 * doc/tm.texi: Regenerate.
15563 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15564 instead of a mode and a type.
15565 (must_pass_in_stack_var_size_or_pad): Likewise.
15566 * calls.c (must_pass_in_stack_var_size): Likewise.
15567 (must_pass_in_stack_var_size_or_pad): Likewise.
15568 (initialize_argument_information): Update call to
15569 targetm.calls.must_pass_in_stack.
15570 (must_pass_va_arg_on_stack): Likewise.
15571 * function.c (assign_parm_find_entry_rtl): Likewise.
15572 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15573 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15574 (alpha_function_arg_advance): Likewise.
15575 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15576 (cr16_function_arg_advance): Likewise.
15577 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15578 (cris_arg_partial_bytes): Likewise.
15579 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15580 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15581 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15582 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15583 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15584 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15585 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15586 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15587 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15588 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15589 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15590 instead of a mode and a type.
15591 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15592 (fr30_num_arg_regs): Likewise.
15593 (fr30_setup_incoming_varargs): Update calls accordingly.
15594 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15595 (fr30_function_arg_advance): Likewise.
15596 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15597 instead of a mode and a type.
15598 * config/gcn/gcn.c (num_arg_regs): Likewise.
15599 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15600 num_arg_regs and targetm.calls.must_pass_in_stack.
15601 (gcn_arg_partial_bytes): Likewise.
15602 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15603 function_arg_info instead of a mode and a type.
15604 (classify_argument): Update call accordingly.
15605 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15606 function_arg_info instead of a mode and a type.
15607 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15608 Likewise.
15609 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15610 (rs6000_parm_needs_stack): Update call accordingly.
15611 (setup_incoming_varargs): Likewise.
15612
15613 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15614
15615 * target.def (callee_copies): Take a function_arg_info instead
15616 of a mode, type and named flag.
15617 * doc/tm.texi: Regenerate.
15618 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15619 instead of a mode, type and named flag.
15620 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15621 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15622 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15623 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15624 instead of a mode, type and named flag.
15625 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15626 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15627 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15628 * calls.h (reference_callee_copied): Take a function_arg_info
15629 instead of a mode, type and named flag.
15630 * calls.c (reference_callee_copied): Likewise.
15631 (initialize_argument_information): Update call accordingly.
15632 (emit_library_call_value_1): Likewise.
15633 * function.c (gimplify_parameters): Likewise.
15634 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15635 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15636 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15637 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15638 (TARGET_CALLEE_COPIES): Define to
15639 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15640 * config/epiphany/epiphany.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 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15644 instead of a mode, type and named flag.
15645 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15646 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15647 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15648 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15649 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15650 (TARGET_CALLEE_COPIES): Define to
15651 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15652 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15653 instead of a mode, type and named flag.
15654 * config/sh/sh.c (sh_callee_copies): Likewise.
15655 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15656 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15657 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15658
15659 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15660
15661 * target.def (function_arg_advance): Take a function_arg_info instead
15662 of a mode, type and named flag.
15663 * doc/tm.texi: Regenerate.
15664 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15665 instead of a mode, type and named flag.
15666 * targhooks.c (default_function_arg_advance): Likewise.
15667 * calls.c (initialize_argument_information): Update call to
15668 targetm.calls.function_arg_advance.
15669 (emit_library_call_value_1): Likewise.
15670 * dse.c (get_call_args): Likewise.
15671 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15672 * function.c (assign_parms, gimplify_parameters): Likewise.
15673 * var-tracking.c (prepare_call_arguments): Likewise.
15674 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15675 function_arg_info instead of a mode, type and named flag.
15676 (aarch64_setup_incoming_varargs): Update call accordingly.
15677 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15678 function_arg_info instead of a mode, type and named flag.
15679 (alpha_setup_incoming_varargs): Update call accordingly.
15680 * config/arc/arc.c (arc_function_arg_advance): Take a
15681 function_arg_info instead of a mode, type and named flag.
15682 (arc_setup_incoming_varargs): Update call accordingly.
15683 * config/arm/arm.c (arm_function_arg_advance): Take a
15684 function_arg_info instead of a mode, type and named flag.
15685 (cmse_func_args_or_return_in_stack): Update call accordingly.
15686 (arm_function_ok_for_sibcall): Likewise.
15687 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15688 * config/avr/avr.c (avr_function_arg_advance): Take a
15689 function_arg_info instead of a mode, type and named flag.
15690 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15691 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15692 (c6x_call_saved_register_used): Update call accordingly.
15693 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15694 function_arg_info instead of a mode, type and named flag.
15695 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15696 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15697 (csky_setup_incoming_varargs): Update call accordingly.
15698 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15699 function_arg_info instead of a mode, type and named flag.
15700 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15701 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15702 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15703 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15704 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15705 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15706 (ix86_setup_incoming_varargs): Update call accordingly.
15707 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15708 function_arg_info instead of a mode, type and named flag.
15709 (ia64_setup_incoming_varargs): Update call accordingly.
15710 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15711 function_arg_info instead of a mode, type and named flag.
15712 (iq2000_expand_prologue): Update call accordingly.
15713 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15714 function_arg_info instead of a mode, type and named flag.
15715 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15716 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15717 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15718 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15719 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15720 Likewise.
15721 (microblaze_expand_prologue): Update call accordingly.
15722 * config/mips/mips.c (mips_function_arg_advance): Take a
15723 function_arg_info instead of a mode, type and named flag.
15724 (mips_setup_incoming_varargs): Update call accordingly.
15725 (mips_output_args_xfer): Likewise.
15726 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15727 function_arg_info instead of a mode, type and named flag.
15728 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15729 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15730 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15731 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15732 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15733 (nios2_setup_incoming_varargs): Update call accordingly.
15734 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15735 function_arg_info instead of a mode, type and named flag.
15736 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15737 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15738 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15739 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15740 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15741 (riscv_setup_incoming_varargs): Update call accordingly.
15742 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15743 function_arg_info instead of a mode, type and named flag.
15744 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15745 Likewise.
15746 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15747 (rs6000_parm_needs_stack): Update call accordingly.
15748 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15749 instead of a mode, type and named flag.
15750 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15751 (s390_call_saved_register_used): Update call accordingly.
15752 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15753 instead of a mode, type and named flag.
15754 (sh_output_mi_thunk): Update call accordingly.
15755 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15756 function_arg_info instead of a mode, type and named flag.
15757 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15758 (spu_setup_incoming_varargs): Update call accordingly.
15759 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15760 function_arg_info instead of a mode, type and named flag.
15761 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15762 (tilegx_setup_incoming_varargs): Update call accordingly.
15763 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15764 function_arg_info instead of a mode, type and named flag.
15765 (tilegx_setup_incoming_varargs): Update call accordingly.
15766 * config/v850/v850.c (v850_function_arg_advance): Take a
15767 function_arg_info instead of a mode, type and named flag.
15768 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15769 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15770 (visium_setup_incoming_varargs): Update call accordingly.
15771 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15772 function_arg_info instead of a mode, type and named flag.
15773
15774 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15775
15776 * target.def (function_arg, function_incoming_arg): Take a
15777 function_arg_info instead of a mode, tree and named flag.
15778 * doc/tm.texi: Regenerate.
15779 * targhooks.h (default_function_arg): Take a function_arg_info
15780 instead of a mode, tree and named flag.
15781 (default_function_incoming_arg): Likewise.
15782 * targhooks.c (default_function_arg): Likewise.
15783 (default_function_incoming_arg): Likewise.
15784 * calls.h (function_arg_info::end_marker_p): New function.
15785 (function_arg_info::end_marker): Likewise.
15786 * calls.c (prepare_call_address, initialize_argument_information)
15787 (expand_call, emit_library_call_value_1): Update calls to
15788 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15789 * dse.c: Include calls.h.
15790 (get_call_args): Update call to targetm.calls.function_arg.
15791 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15792 * var-tracking.c (prepare_call_arguments): Likewise.
15793 * function.c (assign_parm_find_entry_rtl): Update call to
15794 targetm.calls.function_incoming_arg.
15795 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15796 function_arg_info instead of a mode, tree and named flag.
15797 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15798 * config/arc/arc.c (arc_function_arg): Likewise.
15799 * config/arm/arm.c (arm_function_arg): Likewise.
15800 (cmse_func_args_or_return_in_stack): Update call accordingly.
15801 (arm_function_ok_for_sibcall): Likewise.
15802 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15803 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15804 instead of a mode, tree and named flag.
15805 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15806 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15807 (c6x_call_saved_register_used): Update call accordingly.
15808 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15809 instead of a mode, tree and named flag.
15810 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15811 (cris_function_arg_1): Likewise.
15812 * config/csky/csky.c (csky_function_arg): Likewise.
15813 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15814 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15815 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15816 (frv_function_arg_1): Likewise.
15817 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15818 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15819 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15820 * config/i386/i386.c (ix86_function_arg): Likewise.
15821 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15822 (ia64_function_arg_1): Likewise.
15823 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15824 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15825 accordingly.
15826 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15827 instead of a mode, tree and named flag.
15828 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15829 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15830 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15831 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15832 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15833 (microblaze_expand_prologue): Update call accordingly.
15834 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15835 instead of a mode, tree and named flag.
15836 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15837 (mmix_function_arg_1): Likewise.
15838 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15839 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15840 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15841 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15842 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15843 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15844 (nvptx_function_incoming_arg): Likewise.
15845 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15846 * config/pa/pa.c (pa_function_arg): Likewise.
15847 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15848 * config/pru/pru.c (pru_function_arg): Likewise.
15849 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15850 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15851 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15852 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15853 (rs6000_parm_needs_stack): Update call accordingly.
15854 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15855 instead of a mode, tree and named flag.
15856 * config/s390/s390.c (s390_function_arg): Likewise.
15857 (s390_call_saved_register_used): Update call accordingly.
15858 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15859 instead of a mode, tree and named flag.
15860 (sh_output_mi_thunk): Update call accordingly.
15861 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15862 (sparc_function_incoming_arg): Take a function_arg_info instead of
15863 a mode, tree and named flag.
15864 * config/spu/spu.c (spu_function_arg): Likewise.
15865 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15866 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15867 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15868 * config/v850/v850.c (v850_function_arg): Likewise.
15869 * config/vax/vax.c (vax_function_arg): Likewise.
15870 * config/visium/visium.c (visium_function_arg): Likewise.
15871 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15872 (xtensa_function_incoming_arg): Likewise.
15873
15874 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15875
15876 * target.def (setup_incoming_varargs): Take a function_arg_info
15877 instead of a mode and tree.
15878 * doc/tm.texi: Regenerate.
15879 * targhooks.h (default_setup_incoming_varargs): Take a
15880 function_arg_info instead of a mode and tree.
15881 * targhooks.c (default_setup_incoming_varargs): Likewise.
15882 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15883 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15884 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15885 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15886 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15887 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15888 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15889 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15890 Likewise.
15891 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15892 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15893 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15894 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15895 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15896 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15897 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15898 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15899 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15900 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15901 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15902 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15903 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15904 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15905 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15906 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15907 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15908 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15909 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15910 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15911 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15912 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15913 * function.c (assign_parms_setup_varargs): Update call to
15914 targetm.calls.setup_incoming_varargs.
15915
15916 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15917
15918 * target.def (pass_by_reference): Take a function_arg_info instead
15919 of a mode, type and named flag.
15920 * doc/tm.texi: Regenerate.
15921 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15922 accordingly.
15923 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15924 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15925 function_arg_info instead of a mode, type and named flag.
15926 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15927 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15928 mode, type and named flag.
15929 * calls.c (pass_by_reference): Likewise.
15930 (pass_va_arg_by_reference): Update call accordingly.
15931 (initialize_argument_information): Likewise.
15932 (emit_library_call_value_1): Likewise.
15933 * function.c (assign_parm_find_data_types): Likewise.
15934 * var-tracking.c (prepare_call_arguments): Likewise.
15935 * stor-layout.c: Include calls.h.
15936 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15937 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15938 function_arg_info instead of a mode, type and named flag.
15939 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15940 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15941 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15942 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15943 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15944 (c6x_call_saved_register_used): Update call to pass_by_reference.
15945 * config/cris/cris.c (cris_pass_by_reference): Take a
15946 function_arg_info instead of a mode, type and named flag.
15947 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15948 function_arg_info instead of a mode, type and named flag.
15949 (epiphany_arg_partial_bytes): Update call accordingly.
15950 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15951 function_arg_info instead of a mode, type and named flag.
15952 (ft32_arg_partial_bytes): Update call accordingly.
15953 * config/i386/i386.c (ix86_pass_by_reference): Take a
15954 function_arg_info instead of a mode, type and named flag.
15955 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15956 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15957 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15958 (m32r_return_in_memory): Update call accordingly.
15959 * config/mips/mips.c (mips_pass_by_reference): Take a
15960 function_arg_info instead of a mode, type and named flag.
15961 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15962 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15963 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15964 (moxie_arg_partial_bytes): Update call accordingly.
15965 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15966 function_arg_info instead of a mode, type and named flag.
15967 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15968 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15969 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15970 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15971 (riscv_return_in_memory): Update call accordingly.
15972 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15973 function_arg_info instead of a mode, type and named flag.
15974 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15975 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15976 * config/s390/s390.c (s390_pass_by_reference): Take a
15977 function_arg_info instead of a mode, type and named flag.
15978 (s390_call_saved_register_used): Update call accordingly.
15979 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15980 instead of a mode, type and named flag.
15981 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15982 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15983 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15984 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15985 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15986 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15987
15988 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15989
15990 * target.def (arg_partial_bytes): Take a function_arg_info instead
15991 of a mode, type and named flag.
15992 * doc/tm.texi: Regenerate.
15993 * target.h (function_arg_info): Declare.
15994 * calls.h (function_arg_info): New class.
15995 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15996 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15997 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15998 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15999 * calls.c (initialize_argument_information): Update call to
16000 targetm.calls.partial_bytes.
16001 (emit_library_call_value_1): Likewise.
16002 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16003 * function.c (assign_parm_find_entry_rtl): Likewise.
16004 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
16005 function_arg_info instead of a mode, type and named flag.
16006 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
16007 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
16008 (cmse_func_args_or_return_in_stack): Update accordingly.
16009 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
16010 function_arg_info instead of a mode, type and named flag.
16011 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
16012 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
16013 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
16014 * config/fr30/fr30.c: Include calls.h.
16015 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
16016 type and named flag.
16017 * config/frv/frv.c: Include calls.h.
16018 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
16019 type and named flag.
16020 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
16021 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
16022 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
16023 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
16024 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
16025 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
16026 * config/microblaze/microblaze.c (function_arg_partial_bytes):
16027 Likewise.
16028 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
16029 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
16030 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
16031 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
16032 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
16033 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
16034 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
16035 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
16036 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
16037 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
16038 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
16039 (rs6000_parm_needs_stack): Update call accordingly.
16040 * config/sh/sh.c (sh_arg_partial_bytes): Take a
16041 function_arg_info instead of a mode, type and named flag.
16042 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
16043 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
16044
16045 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16046
16047 * calls.h (must_pass_va_arg_in_stack): Declare.
16048 * calls.c (must_pass_va_arg_in_stack): New function.
16049 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
16050 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
16051 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
16052 Likewise.
16053 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16054
16055 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16056
16057 * calls.h (pass_va_arg_by_reference): Declare.
16058 * calls.c (pass_va_arg_by_reference): New function.
16059 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
16060 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
16061 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
16062 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
16063 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
16064 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
16065 (mips_gimplify_va_arg_expr): Likewise.
16066 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
16067 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
16068 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
16069 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
16070 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
16071 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
16072 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
16073 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
16074 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
16075 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16076 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
16077
16078 2019-08-20 Richard Biener <rguenther@suse.de>
16079
16080 PR target/91498
16081 * config/i386/i386-features.c (general_scalar_chain::convert_op):
16082 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
16083 (convert_scalars_to_vector): Add timode_p parameter and use it
16084 to guard TImode-only operation.
16085 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
16086 (pass_stv::execute): Pass down timode_p.
16087
16088 2019-08-20 Lili Cui <lili.cui@intel.com>
16089
16090 * common/config/i386/i386-common.c
16091 (processor_names): Add tigerlake and cooperlake.
16092 (processor_alias_table): Add tigerlake and cooperlake.
16093 * config.gcc: Add -march=tigerlake and cooperlake.
16094 * config/i386/driver-i386.c
16095 (host_detect_local_cpu): Detect tigerlake and cooperlake.
16096 Add "has_avx" to classify processor.
16097 * config/i386/i386-builtins.c (processor_model) :
16098 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
16099 (arch_names_table): Add tigerlake and cooperlake.
16100 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
16101 and PROCESSOR_COOPERLAKE.
16102 * config/i386/i386-c.c
16103 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
16104 * config/i386/i386-options.c
16105 (m_TIGERLAKE): Define.
16106 (m_COOPERLAKE): Ditto.
16107 (m_CORE_AVX512): Ditto.
16108 (processor_cost_table): Add cascadelake.
16109 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
16110 * config/i386/i386.h
16111 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
16112 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16113 (PTA_MOVDIRI): Ditto.
16114 (PTA_MOVDIR64B): Ditto.
16115 (PTA_COOPERLAKE): Ditto.
16116 (PTA_TIGERLAKE): Ditto.
16117 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16118 * doc/extend.texi: Add tigerlake and cooperlake.
16119 * doc/invoke.texi: Add tigerlake and cooperlake.
16120
16121 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
16122
16123 * doc/install.texi (Specific, alpha): Remove note to use
16124 binutils 2.11.2 or later.
16125
16126 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16127
16128 PR middle-end/89544
16129 * function.c (assign_parm_find_stack_rtl): Use larger alignment
16130 when possible.
16131
16132 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
16133
16134 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
16135 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
16136 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
16137 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
16138 * config/aarch64/constraints.md (Dt): New constraint
16139 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
16140
16141 2019-08-19 Richard Biener <rguenther@suse.de>
16142
16143 PR tree-optimization/91403
16144 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
16145 cases we can handle with tail-recursion...
16146 (follow_ssa_edge_expr): ... here. Do so.
16147
16148 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
16149
16150 PR target/91441
16151 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
16152 implemented for -fsanitize=kernel-address, and merge check logic
16153 with -fsanitize=address.
16154
16155 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
16156
16157 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
16158 for cpu and machine. Factor 64/32b builtins.
16159
16160 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
16161
16162 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
16163 gone, point to sourceforge.net.
16164
16165 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16166
16167 * doc/ux.texi (User Experience Guidelines): Update reference.
16168
16169 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16170
16171 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
16172 not LGPL".
16173
16174 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
16175
16176 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
16177 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
16178
16179 2019-08-16 Martin Sebor <msebor@redhat.com>
16180
16181 * tree.def (TYPE_SIZE): Clarify.
16182 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
16183
16184 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16185
16186 PR tree-optimization/91109
16187 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
16188 * lra.c (lra): Use lra_need_for_scratch_reg_p.
16189 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
16190
16191 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
16192
16193 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
16194 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
16195 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
16196 (uavg<mode>3_ceil): New expander.
16197 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
16198 mode iterator when creating CONST1_RTX.
16199 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
16200 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
16201 mode iterator for const1_operand predicate.
16202
16203 2019-08-16 Richard Biener <rguenther@suse.de>
16204
16205 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
16206 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
16207 follow_ssa_edge.
16208 (follow_ssa_edge_in_condition_phi_branch): Likewise.
16209 (analyze_evolution_in_loop): Likewise.
16210 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
16211 (follow_ssa_edge_expr): ... here. Refactor code.
16212
16213 2019-08-16 Richard Biener <rguenther@suse.de>
16214
16215 PR target/91469
16216 * config/i386/i386-features.c
16217 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
16218
16219 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16220
16221 PR other/91255
16222 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
16223 only if subst_name matches curr_attr string.
16224
16225 2019-08-16 Richard Biener <rguenther@suse.de>
16226
16227 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
16228 stmt at gsi_p, instead replace it with a NOP removed later.
16229 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
16230 that became dead because of that.
16231
16232 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
16233
16234 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
16235 for which we can't represent a range.
16236 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
16237 set_varying.
16238 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
16239 Set VR_UNDEFINED if type is not supported.
16240 * tree-ssanames.c (get_range_info): Pass type to set_varying.
16241 * tree-vrp.c (value_range_base::check): Assert that a varying has
16242 min/max set.
16243 (value_range_base::equal_p): Early bail for undefines.
16244 (value_range_base::set_varying): Accept a type.
16245 (value_range::set_varying): Same.
16246 (value_range_base::type): VARYING can have a type, while UNDEFINE
16247 is typeless.
16248 (value_range_base::dump): Print type for VARYING nodes.
16249 (value_range_base::set): Add type to VARYING.
16250 (extract_range_from_multiplicative_op): Pass type to set_varying.
16251 (extract_range_from_binary_expr): Same.
16252 (value_range_base::intersect_helper): Same.
16253 (value_range_base::union_helper): Same.
16254 (value_range_base::normalize_symbolics): Same.
16255 (determine_value_range_1): Same.
16256 * tree-vrp.h (class value_range_base): Add type to set_varying.
16257 Add prototype for dump(void).
16258 Add prototype for supports_type_p.
16259 (class value_range): Add type to set_varying.
16260 Add prototype for dump(void).
16261 * vr-values.c (set_value_range_to_truthvalue): Pass type to
16262 set_varying.
16263 (vr_values::get_lattice_entry): Set varying even if propagation
16264 finished.
16265 Pass type to set_varying.
16266 (vr_values::get_value_range): Remove vr_const_varying.
16267 Reallocate the lattice if needed.
16268 (vr_values::update_value_range): Pass type to set_varying.
16269 (vr_values::extract_range_for_var_from_comparison_expr): Same.
16270 (vr_values::extract_range_from_binary_expr): Same.
16271 (vr_values::extract_range_from_unary_expr): Same.
16272 (vr_values::extract_range_from_cond_expr): Same.
16273 (vr_values::check_for_binary_op_overflow): Same.
16274 (vr_values::extract_range_basic): Same.
16275 (vr_values::extract_range_from_assignment): Same.
16276 (vr_values::vr_values): Increase size of num_vr_values.
16277 (vr_values::extract_range_from_phi_node): Pass type to
16278 set_varying.
16279
16280 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
16281
16282 PR target/90878
16283 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
16284 for costs of hard register moves.
16285 (ix86_register_move_cost): Likewise.
16286 * config/i386/i386.h (processor_costs): Move costs of hard
16287 register moves to hard_register. Add int_load, int_store,
16288 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16289 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
16290 for costs of RTL expressions.
16291 * config/i386/x86-tune-costs.h: Move costs of hard register
16292 moves to hard_register. Duplicate int_load, int_store,
16293 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16294 sse_load, sse_store for costs of RTL expressions.
16295
16296 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16297
16298 * target.def (setup_incoming_vararg_bounds): Remove.
16299 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
16300 * doc/tm.texi: Regenerate.
16301 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
16302 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
16303 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
16304 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
16305
16306 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16307
16308 MSP430: Fix lines over 80 characters long in
16309 config/msp430/*.{c,h} files
16310
16311 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
16312 specifier in string.
16313 (msp430_select_hwmult_lib): Split line more than 80 characters long.
16314 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
16315 redundant old comment.
16316 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16317 Split line more than 80 characters long.
16318 * config/msp430/msp430.c (msp430_option_override): Likewise.
16319 (msp430_return_in_memory): Likewise.
16320 (msp430_gimplify_va_arg_expr): Likewise.
16321 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
16322 (msp430_legitimate_constant): Likewise.
16323 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
16324 (msp430_attr): Likewise.
16325 (msp430_data_attr): Likewise.
16326 (msp430_start_function): Likewise.
16327 (gen_prefix): Likewise.
16328 (msp430_init_sections): Likewise.
16329 (msp430_select_section): Likewise.
16330 (msp430_function_section): Likewise.
16331 (msp430_unique_section): Likewise.
16332 (msp430_output_aligned_decl_common): Likewise.
16333 (msp430_do_not_relax_short_jumps): Likewise.
16334 (msp430_init_builtins): Likewise.
16335 (msp430_expand_delay_cycles): Likewise.
16336 (msp430_expand_prologue): Likewise.
16337 (msp430_expand_epilogue): Likewise.
16338 (msp430_expand_helper): Likewise.
16339 (msp430_split_movsi): Likewise.
16340 (msp430_print_operand): Likewise.
16341 (msp430_return_addr_rtx): Likewise.
16342 (msp430x_extendhisi): Likewise.
16343 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
16344 (ASM_SPEC): Likewise.
16345 Remove very obvious comments.
16346 (LIB_SPEC): Split line more than 80 characters long.
16347 (EH_RETURN_HANDLER_RTX): Likewise.
16348 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16349
16350 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16351
16352 MSP430: Fix whitespace errors and incorrect indentation in
16353 config/msp430/*.{c,h} files
16354
16355 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
16356 (msp430_select_hwmult_lib): Likewise.
16357 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
16358 (msp430_extract_mcu_data): Likewise.
16359 (struct t_msp430_mcu_data): Likewise.
16360 * config/msp430/msp430.c (struct machine_function): Remove whitespace
16361 before left square bracket.
16362 (msp430_option_override): Fix indentation.
16363 (msp430_hard_regno_nregs_with_padding): Likewise.
16364 (msp430_initial_elimination_offset): Likewise.
16365 (msp430_special_register_convention_p): Remove whitespace before left
16366 square bracket and after exclamation mark.
16367 (msp430_evaluate_arg): Likewise.
16368 (msp430_callee_copies): Fix indentation.
16369 (msp430_gimplify_va_arg_expr): Likewise.
16370 (msp430_function_arg_advance): Remove whitespace before left square
16371 bracket.
16372 (reg_ok_for_addr): Likewise.
16373 (msp430_preserve_reg_p): Likewise.
16374 (msp430_compute_frame_info): Likewise.
16375 (msp430_asm_output_addr_const_extra): Add space between function name
16376 and open parenthesis.
16377 (has_section_name): Fix indentation.
16378 (msp430_attr): Remove trailing whitespace.
16379 (msp430_section_attr): Likewise.
16380 (msp430_data_attr): Likewise.
16381 (struct msp430_attribute_table): Fix comment and whitespace.
16382 (msp430_start_function): Remove whitespace before left square bracket.
16383 Add space between function name and open parenthesis.
16384 (msp430_select_section): Remove trailing whitespace.
16385 (msp430_section_type_flags): Remove trailing whitespace.
16386 (msp430_unique_section): Remove space before closing parenthesis.
16387 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16388 (msp430_builtins): Remove whitespace before left square bracket.
16389 (msp430_init_builtins): Fix indentation.
16390 (msp430_expand_prologue): Remove whitespace before left square bracket.
16391 Remove space before closing parenthesis.
16392 (msp430_expand_epilogue): Remove whitespace before left square bracket.
16393 (msp430_split_movsi): Remove space before closing parenthesis.
16394 (helper_function_name_mappings): Fix indentation.
16395 (msp430_use_f5_series_hwmult): Fix whitespace.
16396 (use_32bit_hwmult): Likewise.
16397 (msp430_no_hwmult): Likewise.
16398 (msp430_output_labelref): Remove whitespace before left square bracket.
16399 (msp430_print_operand_raw): Likewise.
16400 (msp430_print_operand_addr): Likewise.
16401 (msp430_print_operand): Add two spaces after '.' in comment.
16402 Fix trailing whitespace.
16403 (msp430x_extendhisi): Fix indentation.
16404 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16405 tab.
16406 (PC_REGNUM): Likewise.
16407 (STACK_POINTER_REGNUM): Likewise.
16408 (CC_REGNUM): Likewise.
16409
16410 2019-08-15 Richard Biener <rguenther@suse.de>
16411
16412 PR target/91454
16413 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16414 helper.
16415 (general_scalar_chain::make_vector_copies): Use it.
16416
16417 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16418
16419 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16420
16421 2019-08-15 Martin Liska <mliska@suse.cz>
16422
16423 * tree-ssa-dce.c (propagate_necessity): We can't reach now
16424 operators with no arguments.
16425 (eliminate_unnecessary_stmts): Likewise here.
16426
16427 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
16428
16429 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16430 <case COMPARE>: Revert 2019-08-14 change.
16431 (convertible_comparison_p): Revert 2019-08-14 change. Return false
16432 for (TARGET_64BIT || mode != DImode).
16433
16434 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
16435
16436 * tree-vrp.c (value_range_base::set): Merge in code from
16437 value_range_base::set_and_canonicalize.
16438 Enforce canonicalization at set time.
16439 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16440 (value_range_base::set_undefined): Inline call to set().
16441 (value_range_base::set_varying): Same.
16442 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16443 (vrp_val_max): New argument handle_pointers.
16444 (vrp_val_min): Same.
16445 (ranges_from_anti_range): Same.
16446 (extract_range_into_wide_ints): Use tree argument instead of sign
16447 and precision.
16448 (extract_range_from_multiplicative_op): Take in tree type instead
16449 of precision and sign. Adapt function for canonicalized ranges.
16450 (extract_range_from_binary_expr): Pass type to
16451 extract_range_from_multiplicative_op.
16452 Adapt for canonicalized ranges.
16453 (extract_range_from_unary_expr): Same.
16454 (value_range_base::intersect_helper): Adjust for canonicalized
16455 ranges.
16456 (value_range_base::union_helper): Same.
16457 (value_range_base::normalize_symbolics): New.
16458 * tree-vrp.h (class value_range_base): Remove
16459 set_and_canonicalize.
16460 New prototype for normalize_symbolics.
16461 (class value_range): Remove set_and_canonicalize.
16462 (vrp_val_min): Adjust prototype.
16463 (vrp_val_max): Same.
16464 * vr-values.c
16465 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16466 instead of set_and_canonicalize.
16467
16468 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16469
16470 PR middle-end/91444
16471 * tree-vect-stmts.c (vectorizable_call): Check that the function
16472 is a BUILT_IN_MD function before passing it to
16473 targetm.vectorize.builtin_md_vectorized_function.
16474
16475 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16476
16477 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16478 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16479 (aarch64_select_early_remat_modes): Use it.
16480
16481 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16482
16483 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16484 16 for SVE predicates even if they are fixed-length.
16485
16486 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16487
16488 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16489 operand order match the MOV /Z alias.
16490
16491 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16492
16493 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16494 the vector pattern as an aarch64_svpattern argument. Update the
16495 overloaded caller accordingly.
16496 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16497 (aarch64_output_sve_vector_inc_dec): Likewise.
16498
16499 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16500
16501 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16502 multiplication case, try to compute VG * (lowest set bit) directly
16503 rather than always basing the multiplication on VG. Use
16504 expand_mult for the multiplication if we can.
16505
16506 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16507
16508 * config/aarch64/aarch64-protos.h
16509 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16510 (aarch64_sve_inc_dec_immediate_p): Rename to...
16511 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16512 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16513 (aarch64_output_sve_scalar_inc_dec): Declare.
16514 (aarch64_output_sve_inc_dec_immediate): Rename to...
16515 (aarch64_output_sve_vector_inc_dec): ...this.
16516 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16517 (aarch64_output_sve_scalar_inc_dec): New functions.
16518 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16519 arguments. Only handle true ADDVL and ADDPL instructions;
16520 don't emit an INC or DEC.
16521 (aarch64_sve_inc_dec_immediate_p): Rename to...
16522 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16523 (aarch64_output_sve_inc_dec_immediate): Rename to...
16524 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16525 aarch64_sve_vector_inc_dec_immediate_p.
16526 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16527 (aarch64_sve_plus_immediate): New predicates.
16528 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16529 rather than aarch64_sve_addvl_addpl_immediate.
16530 (aarch64_sve_inc_dec_immediate): Rename to...
16531 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16532 aarch64_sve_vector_inc_dec_immediate_p.
16533 (aarch64_sve_add_operand): Update accordingly.
16534 * config/aarch64/constraints.md (Uai): New constraint.
16535 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16536 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16537 operand into a register if it satisfies aarch64_sve_plus_immediate.
16538 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16539 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16540 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16541 aarch64_output_sve_vector_inc_dec instead of
16542 aarch64_output_sve_inc_dec_immediate.
16543
16544 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16545
16546 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16547 (UNSPEC_REVW): New constants.
16548 (elem_bits): New mode attribute.
16549 (SVE_INT_UNARY): New int iterator.
16550 (optab): Handle UNSPEC_REV[BHW].
16551 (sve_int_op): New int attribute.
16552 (min_elem_bits): Handle VNx16QI and the predicate modes.
16553 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16554 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16555 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16556 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16557 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16558 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16559 unspecs based on the total width of the reversed data.
16560 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16561 reinterpret followed by a subreg on big-endian targets.
16562
16563 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16564 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16565
16566 * config/aarch64/aarch64-sve.md
16567 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16568 alternatives in which one of the inputs is in the same register
16569 as the output.
16570
16571 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16572
16573 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16574 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16575
16576 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16577
16578 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16579 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16580
16581 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16582 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16583
16584 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16585 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16586 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16587
16588 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16589 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16590
16591 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16592 Add an alternative that uses reversed shifts.
16593
16594 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16595
16596 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16597 struct.
16598
16599 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16600
16601 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16602 a commutativity marker.
16603
16604 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16605 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16606
16607 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16608 (aarch64_prepare_sve_cond_int_fma): Declare.
16609 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16610 (aarch64_prepare_sve_int_fma): New functions.
16611 (aarch64_prepare_sve_cond_int_fma): Likewise.
16612 * config/aarch64/aarch64-sve.md
16613 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16614 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16615 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16616 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16617 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16618 (*madd<mode>): Rename to...
16619 (*fma<mode>4): ...this.
16620 (*msub<mode>): Rename to...
16621 (*fnma<mode>4): ...this.
16622
16623 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16624 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16625
16626 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16627 Print 2.0 naturally.
16628 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16629 * config/aarch64/predicates.md
16630 (aarch64_sve_float_negated_arith_immediate): New predicate,
16631 renamed from aarch64_sve_float_arith_with_sub_immediate.
16632 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16633 positive and negative constants.
16634 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16635 or an aarch64_sve_float_arith_with_sub_immediate.
16636 * config/aarch64/constraints.md (vsN): Use
16637 aarch64_sve_float_negated_arith_immediate.
16638 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16639 iterator.
16640 (sve_pred_fp_rhs2_immediate): New int attribute.
16641 * config/aarch64/aarch64-sve.md
16642 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16643 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16644 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16645 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16646 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16647 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16648
16649 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16650 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16651
16652 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16653 (*aarch64_cond_abd<SVE_F:mode>_3)
16654 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16655
16656 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16657 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16658
16659 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16660 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16661
16662 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16663 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16664
16665 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16666 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16667 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16668 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16669 optabs.
16670 * optabs.h (create_convert_operand_from): Expand comment.
16671 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16672 when mapping scalar rtxes to vector operands.
16673 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16674 ashiftrt and lshiftrt.
16675 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16676 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16677 (*cond_<optab><mode>_any_const): New patterns.
16678
16679 2019-08-15 Martin Liska <mliska@suse.cz>
16680
16681 PR ipa/91438
16682 * cgraph.c (cgraph_node::remove): When setting
16683 n->origin = NULL for all nested functions, reset
16684 also next_nested.
16685
16686 2019-08-15 Martin Liska <mliska@suse.cz>
16687
16688 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16689 and next_nested.
16690
16691 2019-08-15 Martin Liska <mliska@suse.cz>
16692
16693 PR ipa/91404
16694 * passes.c (order): Remove.
16695 (uid_hash_t): Likewise).
16696 (remove_cgraph_node_from_order): Remove from set
16697 of pointers (cgraph_node *).
16698 (insert_cgraph_node_to_order): New.
16699 (duplicate_cgraph_node_to_order): New.
16700 (do_per_function_toporder): Register all 3 cgraph hooks.
16701 Skip removed_nodes now as we know about all of them.
16702
16703 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16704
16705 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16706 <case E_V8QImode>: Use vector_set path for
16707 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16708 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16709 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16710
16711 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16712
16713 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16714
16715 2019-08-14 Martin Sebor <msebor@redhat.com>
16716
16717 PR tree-optimization/91294
16718 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16719 source length as exact.
16720
16721 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16722
16723 * doc/extend.texi: Add "noinit" attribute documentation.
16724 * doc/sourcebuild.texi: Add noinit effective target documentation.
16725 * varasm.c (default_section_type_flags): Add support for "noinit"
16726 section.
16727 (default_elf_select_section): Add support for "noinit" attribute.
16728 * config/msp430/msp430.c (msp430_attribute_table): Remove
16729 "noinit" entry.
16730
16731 2019-08-14 Richard Biener <rguenther@suse.de>
16732 Uroš Bizjak <ubizjak@gmail.com>
16733
16734 PR target/91154
16735 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16736 mode arguments.
16737 (scalar_chain::smode): New member.
16738 (scalar_chain::vmode): Likewise.
16739 (dimode_scalar_chain): Rename to...
16740 (general_scalar_chain): ... this.
16741 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16742 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16743 base with TImode and V1TImode.
16744 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16745 (general_scalar_chain::vector_const_cost): Adjust for SImode
16746 chains.
16747 (general_scalar_chain::compute_convert_gain): Likewise. Add
16748 {S,U}{MIN,MAX} support.
16749 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16750 (general_scalar_chain::make_vector_copies): Likewise. Handle
16751 non-DImode chains appropriately.
16752 (general_scalar_chain::convert_reg): Likewise.
16753 (general_scalar_chain::convert_op): Likewise.
16754 (general_scalar_chain::convert_insn): Likewise. Add
16755 fatal_insn_not_found if the result is not recognized.
16756 (convertible_comparison_p): Pass in the scalar mode and use that.
16757 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16758 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16759 (scalar_to_vector_candidate_p): Remove by inlining into single
16760 caller.
16761 (general_remove_non_convertible_regs): Rename from
16762 dimode_remove_non_convertible_regs.
16763 (remove_non_convertible_regs): Remove by inlining into single caller.
16764 (convert_scalars_to_vector): Handle SImode and DImode chains
16765 in addition to TImode chains.
16766 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16767 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16768 (*<maxmin>di3_doubleword): Likewise.
16769
16770 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16771 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16772
16773 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16774 (*cond_bic<mode>_any): New patterns.
16775
16776 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16777
16778 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16779 take the equivalent mask, as well as a bit count.
16780 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16781 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16782 (aarch64_sve_pred_and_operand): New predicates.
16783 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16784 code attribute.
16785 * config/aarch64/aarch64-sve.md
16786 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16787 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16788
16789 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16790
16791 * config/aarch64/aarch64-sve.md
16792 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16793 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16794 New patterns.
16795
16796 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16797 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16798
16799 * config/aarch64/aarch64-sve.md
16800 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16801 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16802
16803 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16804 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16805
16806 * config/aarch64/aarch64-sve.md
16807 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16808 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16809
16810 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16811
16812 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16813 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16814 New pattern.
16815
16816 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16817 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16818
16819 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16820
16821 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16822 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16823
16824 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16825 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16826 (aarch64_print_operand): Add support for %I.
16827 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16828 Bitcast floating-point constants to the corresponding integer constant.
16829 (aarch64_float_const_representable_p): Handle vectors as well
16830 as scalars.
16831 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16832 for the new vcond_mask_<mode><vpred> expander.
16833 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16834 test aarch64_float_const_representable_p.
16835 (aarch64_sve_reg_or_dup_imm): New predicate.
16836 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16837 gen_vcond_mask_<mode><vpred> instead of
16838 gen_aarch64_sve_dup<mode>_const.
16839 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16840 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16841 for operands 1 and 2 respectively. Force operand 2 into a
16842 register if operand 1 is a register. Fold old define_insn...
16843 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16844 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16845 floating-point constants that can be moved as integers. Add
16846 alternatives for MOV /M and FMOV /M.
16847 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16848 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16849 1 and 2 respectively.
16850 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16851 as scalars.
16852 (vss): New constraint.
16853
16854 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16855
16856 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16857 (aarch64_sve_float_maxmin_operand): New predicates.
16858 * config/aarch64/constraints.md (vsB): New constraint.
16859 (vsM): Fix typo.
16860 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16861 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16862 UNSPEC_COND_FMINNM.
16863 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16864 Use aarch64_sve_float_maxmin_operand for operand 2.
16865 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16866 Add alternatives for the constant forms.
16867
16868 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16869
16870 * config/aarch64/constraints.md (vsb): New constraint.
16871 (vsm): Generalize description.
16872 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16873 iterator.
16874 (sve_imm_con): Handle smax, smin, umax and umin.
16875 (sve_imm_prefix): New code attribute.
16876 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16877 (aarch64_sve_vsb_operand): New predicates.
16878 (aarch64_sve_mul_immediate): Rename to...
16879 (aarch64_sve_vsm_immediate): ...this.
16880 (aarch64_sve_mul_operand): Rename to...
16881 (aarch64_sve_vsm_operand): ...this.
16882 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16883 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16884 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16885 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16886 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16887 add movprfx support for the immediate alternatives.
16888 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16889 of the above.
16890 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16891 for operand 3.
16892
16893 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16894
16895 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16896 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16897 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16898
16899 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16900
16901 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16902 (optab, sve_int_op): Handle them.
16903 * config/aarch64/aarch64-sve.md: Expand comment.
16904
16905 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16906
16907 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16908 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16909 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16910
16911 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16912
16913 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16914 (aarch64_expand_sve_const_pred_trn): New functions.
16915 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16916 use the above functions when the parameter is true.
16917 (aarch64_expand_sve_const_pred): Update call accordingly.
16918 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16919 Rename to...
16920 (@aarch64_sve_<perm_insn><mode>): ...this.
16921
16922 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16923
16924 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16925 Declare.
16926 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16927 (aarch64_sve_emit_int_cmp): New functions.
16928 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16929 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16930 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16931 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16932 (UNSPEC_PRED_Z): New unspec.
16933 (set_clobber_cc_nzc): Delete.
16934 * config/aarch64/aarch64-sve.md: Add a block comment about
16935 UNSPEC_PRED_Z.
16936 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16937 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16938 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16939 UNSPEC_MERGE_PTRUE.
16940 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16941 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16942 check for compatible predicates.
16943 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16944 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16945 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16946 comparisons above.
16947
16948 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16949
16950 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16951 * config/aarch64/aarch64-sve.md: Add a section describing it.
16952 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16953 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16954 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16955 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16956 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16957 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16958 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16959 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16960 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16961 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16962 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16963 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16964 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16965 (aarch64_evpc_rev_local): Update accordingly.
16966
16967 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16968
16969 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16970 iterators.
16971 (SVE_BHSI, SVE_SDI): Tweak comment.
16972 (SVE_HSDI): Likewise. Fix definition.
16973 (SVE_SDF): New mode iterator.
16974 (elem_bits): New mode attribute.
16975 (SVE_COND_FCVT): New int iterator.
16976 * config/aarch64/aarch64-sve.md
16977 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16978 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16979 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16980 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16981 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16982 ...these new patterns.
16983 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16984 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16985 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16986 Merge into...
16987 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16988 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16989 ...these new patterns.
16990 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16991 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16992 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16993 ...this new pattern.
16994 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16995 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16996 ...this new pattern.
16997 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16998
16999 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17000
17001 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
17002 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
17003 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
17004 unspecs.
17005 (optab, su): Handle them.
17006 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
17007 * config/aarch64/aarch64-sve.md
17008 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
17009 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
17010 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
17011 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
17012 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
17013 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
17014 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
17015 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
17016 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
17017 FIXUORS.
17018 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
17019 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
17020 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
17021 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
17022 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
17023 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
17024 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
17025 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
17026 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
17027 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
17028 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
17029 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
17030 of UNSPEC_FLOAT_CONVERT.
17031 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
17032 aarch64_sve_extend<mode><Vwide>2.
17033
17034 2019-08-14 Richard Biener <rguenther@suse.de>
17035
17036 PR target/91154
17037 * config/i386/i386-features.c
17038 (dimode_scalar_chain::compute_convert_gain): Compute and dump
17039 individual instruction gain. Fix reg-reg copy GRP cost. Use
17040 ix86_cost->sse_op for vector instruction costs.
17041
17042 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17043
17044 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
17045 (cmp_op): Handle it.
17046 (SVE_COND_FP_CMP): Rename to...
17047 (SVE_COND_FP_CMP_I0): ...this.
17048 (SVE_FP_CMP): Remove.
17049 * config/aarch64/aarch64-sve.md
17050 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
17051 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
17052 using unspecs to represent the comparison.
17053 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
17054 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
17055 accordingly.
17056 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
17057 (aarch64_unspec_cond_code): Move after integer code. Handle
17058 UNORDERED.
17059 (aarch64_emit_sve_predicated_cond): Replace with...
17060 (aarch64_emit_sve_fp_cond): ...this new function.
17061 (aarch64_emit_sve_or_conds): Replace with...
17062 (aarch64_emit_sve_or_fp_conds): ...this new function.
17063 (aarch64_emit_sve_inverted_cond): Replace with...
17064 (aarch64_emit_sve_invert_fp_cond): ...this new function.
17065 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
17066
17067 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17068
17069 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
17070 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
17071 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
17072 SVE_HSD instead of SVE_SD.
17073
17074 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17075 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17076
17077 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
17078 iterator.
17079 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
17080 attributes.
17081 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
17082 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
17083 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
17084 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
17085 (*div<SVE_F:mode>3): Generalize to...
17086 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
17087
17088 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17089 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17090
17091 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
17092 constants.
17093 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
17094 predicate.
17095 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
17096 Declare.
17097 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
17098 function.
17099 * config/aarch64/aarch64-sve.md: Add a block comment about the
17100 handling of predicated FP operations.
17101 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
17102 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
17103 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17104 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
17105 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
17106 operand.
17107 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
17108 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
17109 operand.
17110 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
17111 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
17112 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
17113 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
17114 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
17115 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17116 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17117 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
17118 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
17119 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
17120 strictness operands. Use aarch64_sve_pred_dominates_p to check
17121 whether the predicate on the conditional operation is suitable
17122 for merging. Split patterns into the canonical equal-predicate form.
17123 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
17124 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
17125
17126 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17127 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17128
17129 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
17130 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
17131 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
17132 rtx codes.
17133 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
17134 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
17135 unspecs.
17136
17137 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17138 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17139
17140 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
17141 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
17142 actually has, rather than relying on REG_EQUAL notes.
17143 Make the insn operand order match the SVE operand order.
17144 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
17145 the SVE operand order.
17146
17147 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17148
17149 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
17150 (aarch64_emit_set_immediate): Likewise.
17151 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
17152 (aarch64_pfalse_reg): Likewise.
17153 (aarch64_convert_sve_data_to_pred): New function.
17154 (aarch64_sve_move_pred_via_while): Take an optional target register
17155 and the required register mode.
17156 (aarch64_expand_sve_const_pred_1): New function.
17157 (aarch64_expand_sve_const_pred): Likewise.
17158 (aarch64_expand_mov_immediate): Build an all-true predicate
17159 if the significant bits of the immediate are all true. Use
17160 aarch64_expand_sve_const_pred for all compile-time predicate constants.
17161 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
17162 before register allocation.
17163 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
17164 a VNx16BI PTRUE when splitting the memory alternative.
17165 (vec_duplicate<mode>): Update accordingly.
17166 (*pred_cmp<cmp_op><mode>): Rename to...
17167 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
17168
17169 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17170
17171 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
17172 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
17173 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
17174 (UNSPEC_PTEST): New unspec.
17175 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
17176 * config/aarch64/iterators.md (data_bytes): New mode attribute.
17177 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
17178 * config/aarch64/aarch64-sve.md: Add a new section describing the
17179 handling of UNSPEC_PTEST.
17180 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
17181 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
17182 (ptest_ptrue<mode>): Replace with...
17183 (aarch64_ptest<mode>): ...this new pattern.
17184 (cbranch<mode>4): Update after above changes.
17185 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
17186 UNSPEC_PTEST_PTRUE.
17187 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
17188 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
17189 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
17190
17191 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
17192
17193 PR lto/91287
17194 * builtins.c (builtin_with_linkage_p): New function.
17195 * builtins.h (builtin_with_linkage_p): New function.
17196 * symtab.c (write_symbol): Remove redundant assert.
17197 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
17198 Remove FIXME and use builtin_with_linkage_p.
17199
17200 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17201
17202 PR middle-end/91421
17203 * tree-core.h (function_decl::function_code): Change type to
17204 unsigned int.
17205 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
17206 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
17207 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
17208 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
17209 is BUILT_IN_NORMAL.
17210 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
17211 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
17212 (fndecl_built_in_p): Change the type of the "name" argument to
17213 unsigned int.
17214 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
17215 after check for DECL_BUILT_IN_CLASS.
17216 * cgraphclones.c (build_function_decl_skip_args): Use
17217 set_decl_built_in_function.
17218 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
17219 * ipa-split.c (split_function): Likewise.
17220 * langhooks.c (add_builtin_function_common): Likewise.
17221 * omp-simd-clone.c (simd_clone_create): Likewise.
17222 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17223 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
17224 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
17225 DECL_FUNCTION_CODE.
17226 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
17227 instead of DECL_FUNCTION_CODE.
17228 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
17229 instead of DECL_FUNCTION_CODE.
17230 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17231 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
17232 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
17233 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
17234 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
17235 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
17236 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
17237 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
17238 (alpha_gimple_fold_builtin): Likewise.
17239 * config/arc/arc.c (arc_expand_builtin): Likewise.
17240 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
17241 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
17242 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
17243 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
17244 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
17245 * config/frv/frv.c (frv_expand_builtin): Likewise.
17246 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
17247 (gcn_expand_builtin): Likewise.
17248 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
17249 (fold_builtin_cpu): Likewise.
17250 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
17251 * config/i386/i386.c (ix86_fold_builtin): Likewise.
17252 (ix86_gimple_fold_builtin): Likewise.
17253 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
17254 (ia64_expand_builtin): Likewise.
17255 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
17256 * config/mips/mips.c (mips_expand_builtin): Likewise.
17257 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
17258 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17259 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
17260 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
17261 * config/pa/pa.c (pa_expand_builtin): Likewise.
17262 * config/pru/pru.c (pru_expand_builtin): Likewise.
17263 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
17264 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17265 Likewise.
17266 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
17267 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
17268 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
17269 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
17270 (rs6000_builtin_reciprocal): Likewise.
17271 * config/rx/rx.c (rx_expand_builtin): Likewise.
17272 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17273 * config/s390/s390.c (s390_expand_builtin): Likewise.
17274 * config/sh/sh.c (sh_expand_builtin): Likewise.
17275 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
17276 (sparc_fold_builtin): Likewise.
17277 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
17278 * config/spu/spu.c (spu_expand_builtin): Likewise.
17279 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
17280 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
17281 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
17282 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
17283 (xtensa_expand_builtin): Likewise.
17284
17285 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17286
17287 PR middle-end/91421
17288 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
17289 before the DECL_FUNCTION_CODE.
17290 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
17291 to check for a BUILT_IN_ALLOCA call.
17292 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
17293 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
17294 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
17295 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17296 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
17297 for BUILT_IN_NORMAL functions.
17298 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
17299 test for BUILT_IN_TM_ABORT.
17300 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
17301 to check for a BUILT_IN_STACK_RESTORE call.
17302 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
17303 * tree-ssa-threadedge.c
17304 (record_temporary_equivalences_from_stmts_at_dest): Check for a
17305 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
17306 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
17307 test for a BUILT_IN_NORMAL call instead of a negative test for
17308 an internal function call.
17309
17310 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17311
17312 * tree.h (build_vector_a_then_b): Declare.
17313 * tree.c (build_vector_a_then_b): New function.
17314 * fold-const-call.c (fold_while_ult): Likewise.
17315 (fold_const_call): Use it to handle IFN_WHILE_ULT.
17316 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
17317 (aarch64_svpattern): New enum.
17318 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
17319 constants through aarch64_expand_mov_immediate.
17320 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
17321 than general_operand as the predicate for operand 1.
17322 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
17323 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
17324 insn_type.
17325 (simd_immediate_info::simd_immediate_info): New overload that
17326 takes a scalar_int_mode and an svpattern.
17327 (simd_immediate_info::u): Add a "pattern" field.
17328 (svpattern_token): New function.
17329 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
17330 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
17331 (aarch64_sve_move_pred_via_while): New functions.
17332 (aarch64_expand_mov_immediate): Try using
17333 aarch64_sve_move_pred_via_while for predicates that contain N ones
17334 followed by M zeros but that do not correspond to a VLnnn pattern.
17335 (aarch64_sve_pred_valid_immediate): New function.
17336 (aarch64_simd_valid_immediate): Use it instead of dealing directly
17337 with PTRUE and PFALSE.
17338 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
17339 forms.
17340
17341 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
17342
17343 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
17344 flag.
17345 (darwin_override_options): Likewise.
17346 * config/darwin.h: Likewise.
17347 * config/darwin.opt: Likewise.
17348 * config/i386/i386.c (output_pic_addr_const): Likewise.
17349 * config/rs6000/darwin.h: Likewise.
17350 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
17351 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
17352 ... this TARGET_MACHO_SYMBOL_STUBS.
17353 (FUNCTION_PROFILER):Likewise.
17354 * config/i386/i386.h: Likewise.
17355
17356 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17357
17358 * config/i386/i386-expand.c (ix86_expand_vector_extract)
17359 <case E_V2SImode>: Use vec_extr path for
17360 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17361 <case E_V8QImode>: Ditto.
17362 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
17363 Use SWI48 mode iterator. Use %k to output operand 0.
17364 (*mmx_pextrw): New insn pattern.
17365 (*mmx_pextrb): Ditto.
17366 (*mmx_pextrb_zext): Ditto.
17367
17368 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
17369
17370 * target.def (libc_has_function, libc_has_fast_function): Improve
17371 documentation strings.
17372 * doc/tm.texi: Regenerate.
17373
17374 2019-08-13 Caroline Tice <cmtice@google.com>
17375
17376 PR other/91396
17377 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
17378 vtv_end.o or vtv_end_preinit.o files if !static.
17379
17380 2019-08-13 Olivier Hainque <hainque@adacore.com>
17381
17382 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17383
17384 2019-08-13 Olivier Hainque <hainque@adacore.com>
17385
17386 * rtlanal.c (tablejump_casesi_pattern): New function, to
17387 determine if a tablejump insn is a casesi dispatcher. Extracted
17388 from patch_jump_insn.
17389 * rtl.h (tablejump_casesi_pattern): Declare.
17390 * cfgrtl.c (patch_jump_insn): Use it.
17391 * dwarf2cfi.c (create_trace_edges): Use it.
17392
17393 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17394
17395 PR target/81800
17396 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17397 operand is larger than a long int.
17398
17399 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17400
17401 * machmode.h (opt_mode::else_mode): New function.
17402 (opt_mode::else_blk): Use it.
17403 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17404 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17405 (aarch64_gen_stepped_int_parallel): Likewise.
17406 (aarch64_stepped_int_parallel_p): Likewise.
17407 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17408 argument.
17409 * config/aarch64/aarch64.c
17410 (aarch64_expand_sve_widened_duplicate): Delete.
17411 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17412 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17413 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17414 argument. Use early returns in the !CONST_INT_P handling.
17415 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17416 than handling some inline.
17417 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17418 from...
17419 (aarch64_simd_container_mode): ...here.
17420 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17421 (aarch64_sve_ld1rq_operand_p): New functions.
17422 * config/aarch64/predicates.md (descending_int_parallel)
17423 (aarch64_sve_ld1rq_operand): New predicates.
17424 * config/aarch64/constraints.md (UtQ): New constraint.
17425 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17426 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17427 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17428 (@aarch64_sve_reinterpret<mode>): New expander.
17429 (*aarch64_sve_reinterpret<mode>): New pattern.
17430 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17431 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17432 (*sve_ld1rq<Vesize>): Replace with...
17433 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17434
17435 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17436
17437 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17438 16:12.
17439
17440 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17441
17442 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17443 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17444 (msp430_check_path_for_devices): New.
17445 (parse_devices_csv_1): New.
17446 (parse_devices_csv): New.
17447 (msp430_extract_mcu_data): Try to find devices.csv and search for the
17448 MCU data in devices.csv before using the hard-coded data.
17449 Warn if devices.csv isn't found and the MCU wasn't found in the
17450 hard-coded data either.
17451 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17452 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17453 Search for devices.csv on -I and -L paths.
17454 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17455 msp430_set_driver_var.
17456 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17457 -mdevices-csv-loc=.
17458 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17459 searched for devices.csv.
17460 (mwarn-devices-csv): Document option.
17461
17462 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17463
17464 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17465 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17466 Use a single Dn alternative instead of separate Dz and Dm
17467 alternatives. Use aarch64_output_sve_move_immediate.
17468 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17469 function.
17470 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17471 for predicates too.
17472 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17473 (aarch64_output_ptrue): Delete.
17474
17475 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17476
17477 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17478 INDEX.
17479 (simd_immediate_info::value, simd_immediate_info::step)
17480 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17481 with...
17482 (simd_immediate_info::u): ...this new union.
17483 (simd_immediate_info::simd_immediate_info): Update accordingly.
17484 (aarch64_output_simd_mov_immediate): Likewise.
17485 (aarch64_output_sve_mov_immediate): Likewise.
17486
17487 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17488
17489 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17490 extra_gcc_objs.
17491 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17492 (msp430_select_cpu): New spec function.
17493 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17494 MCU data.
17495 * config/msp430/msp430-devices.c: New file.
17496 * config/msp430/msp430-devices.h: New file.
17497 * config/msp430/msp430.c: Remove msp430_mcu_data.
17498 (msp430_option_override): Use msp430_extract_mcu_data to extract
17499 MCU data.
17500 (msp430_use_f5_series_hwmult): Likewise.
17501 (use_32bit_hwmult): Likewise.
17502 (msp430_no_hwmult): Likewise.
17503 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17504 assembler.
17505 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17506 and -mcpu option.
17507 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17508 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17509 Remove hard-coded MCU multilib data.
17510
17511 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17512
17513 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17514 based on the mode instead of testing properties of it.
17515
17516 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17517
17518 * doc/md.texi: Document the x and y constraints for AArch64.
17519 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17520 (FP_LO8_REGS): New reg_class.
17521 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17522 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17523 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17524 * config/aarch64/predicates.md (aarch64_simd_register): Use
17525 FP_REGNUM_P instead of checking the classes manually.
17526 * config/aarch64/constraints.md (y): New constraint.
17527
17528 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17529
17530 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17531 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17532 * config/aarch64/aarch64-simd.md
17533 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17534 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17535 from the asm template.
17536 * config/aarch64/aarch64-sve.md
17537 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17538 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17539 from the asm template.
17540 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17541 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17542 from the asm template.
17543 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17544
17545 2019-08-13 Martin Liska <mliska@suse.cz>
17546
17547 * value-prof.c (gimple_ic_transform): Add new line.
17548 Print details with MSG_NOTE.
17549
17550 2019-08-13 Martin Liska <mliska@suse.cz>
17551
17552 * doc/invoke.texi: Document automatic detection of jobserver.
17553 * lto-wrapper.c (run_gcc): Detect jobserver always.
17554
17555 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17556
17557 * config/i386/i386-expand.c (ix86_expand_vector_set)
17558 <case E_V2SImode>: Use vec_merge path for
17559 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17560 <case E_V8QImode>: Ditto.
17561 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17562 (*mmx_pinsrb): Ditto.
17563
17564 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17565
17566 PR target/83250
17567 PR target/91340
17568 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17569 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17570 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17571 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17572 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17573
17574 2019-08-12 Richard Biener <rguenther@suse.de>
17575
17576 PR lto/91375
17577 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17578 flag_devirtualize.
17579
17580 2019-08-12 Richard Biener <rguenther@suse.de>
17581
17582 PR driver/91130
17583 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17584 lang_mask option, always use CL_DRIVER.
17585 (get_options_from_collect_gcc_options): Adjust.
17586 (find_and_merge_options): Likewise.
17587 (run_gcc): Likewise.
17588
17589 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17590
17591 * ipa-predicate.c (add_condition): Restore inverted test.
17592
17593 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17594
17595 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17596 (enum omp_clause_device_type_kind): New enum.
17597 (struct tree_omp_clause): Add subcode.device_type_kind.
17598 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17599 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17600 for device_type clause.
17601 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17602 * tree-pretty-print.c (dump_omp_clause): Likewise.
17603
17604 PR target/91408
17605 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17606 vector_operand.
17607
17608 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17609
17610 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17611 handling spilled pseudos.
17612
17613 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17614
17615 PR target/91386
17616 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17617 to preserve the contents of the original insns.
17618
17619 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17620
17621 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17622 (addsi3_compare_op2): Likewise.
17623
17624 2019-08-09 Martin Liska <mliska@suse.cz>
17625
17626 * alias.c (alias_ptr_types_compatible_p): Strengten
17627 type comparison in LTO mode.
17628
17629 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17630
17631 PR middle-end/90313
17632 * tree-tailcall.c (find_tail_calls): Reject calls that might
17633 read from an escaped RESULT_DECL.
17634
17635 2019-08-09 Martin Liska <mliska@suse.cz>
17636
17637 * doc/invoke.texi: Document the option value.
17638 * lto-wrapper.c (run_gcc): Set auto_parallel
17639 only with -flto=auto.
17640
17641 2019-08-09 Martin Liska <mliska@suse.cz>
17642
17643 * opts.c (common_handle_option): Error for an invalid argument
17644 to -flto=.
17645
17646 2019-08-09 Martin Liska <mliska@suse.cz>
17647
17648 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17649 use dump_printf to report optimization.
17650 (sem_variable::merge): Likwise.
17651 (sem_item_optimizer::merge_classes): Use dump_printf to report
17652 ICF hits.
17653
17654 2019-08-09 Martin Liska <mliska@suse.cz>
17655
17656 * value-prof.c (gimple_divmod_fixed_value_transform):
17657 Use dump_printf_loc.
17658 (gimple_mod_pow2_value_transform): Likewise.
17659 (gimple_mod_subtract_transform): Likewise.
17660 (init_node_map): Likewise.
17661 (gimple_ic_transform): Likewise.
17662 (gimple_stringops_transform): Likewise.
17663
17664 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17665
17666 * doc/extend.texi: Add const qualifier to ld intrinsics.
17667
17668 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17669
17670 * config/rs6000/dfp.md (D64_D128): Rename to ...
17671 (DDTD): ... this, throughout.
17672 (dfp_suffix): Rename to ...
17673 (q): ... this, throughout.
17674
17675 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17676
17677 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17678 (dfp_suffix): Ditto.
17679 (adddd3, addtd3): Merge to ...
17680 (add<mode>3 for D64_D128): ... this.
17681 (subdd3, subtd3): Merge to ...
17682 (sub<mode>3 for D64_D128): ... this.
17683 (muldd3, multd3): Merge to ...
17684 (mul<mode>3 for D64_D128): ... this.
17685 (divdd3, divtd3): Merge to ...
17686 (div<mode>3 for D64_D128): ... this.
17687 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17688 (*cmp<mode>_internal1 for D64_D128): ... this.
17689 (ftruncdd2, ftrunctd2): Merge to ...
17690 (ftrunc<mode>2 for D64_D128): ... this.
17691 (fixdddi2, fixtddi2): Merge to ...
17692 (fix<mode>di2 for D64_D128): ... this.
17693
17694 2019-08-08 Jim Wilson <jimw@sifive.com>
17695
17696 PR target/91229
17697 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17698 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17699 Pass into recursive call.
17700 (riscv_flatten_aggregate_argument): New arg. Pass to
17701 riscv_flatten_aggregate_field.
17702 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17703 riscv_flatten_aggregate_argument twice, with false and true as last
17704 arg. Process result twice. Compare results and warn if different.
17705 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17706
17707 2019-08-08 Martin Liska <mliska@suse.cz>
17708
17709 PR bootstrap/91352
17710 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17711 * lto-wrapper.c (jobserver_active_p): Likewise.
17712
17713 2019-08-08 Martin Liska <mliska@suse.cz>
17714
17715 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17716 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17717 (create_version_clone_with_body): Likewise.
17718
17719 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17720
17721 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17722 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17723 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17724 GOVD_EXPLICIT flags.
17725 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17726 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17727 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17728 call install_var_field with mask 11 instead of 3.
17729 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17730 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17731
17732 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17733
17734 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17735 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17736
17737 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17738
17739 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17740 MOVPRFX alternatives. Make the GPR alternatives more expensive
17741 than the FPR ones.
17742
17743 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17744
17745 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17746 Disparage the GPR alternative relative to the FPR one.
17747 Fix handling of 8-bit and 16-bit FPR values.
17748
17749 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17750
17751 * config/aarch64/iterators.md (BITWISEV): Delete.
17752 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17753 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17754 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17755 UNSPEC_FMINNMV, UNSPEC_FMINV.
17756 (bit_reduc_op): Delete.
17757 (sve_int_op): New int attribute.
17758 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17759 UNSPEC_FMINNMV, UNSPEC_FMINV.
17760 * config/aarch64/aarch64-sve.md
17761 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17762 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17763 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17764 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17765 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17766 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17767 new patterns.
17768 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17769 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17770 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17771 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17772 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17773 new patterns.
17774
17775 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17776
17777 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17778 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17779 (fms<mode>4, *fms<mode>4): Replace with...
17780 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17781 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17782 Use unspecs instead of rtx codes.
17783 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17784 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17785
17786 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17787
17788 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17789 int iterator.
17790 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17791 * config/aarch64/aarch64-sve.md
17792 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17793 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17794 use a single unspec for the rhs.
17795 (*<su><maxmin><mode>3): Delete.
17796 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17797
17798 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17799
17800 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17801 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17802 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17803 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17804 (optab, sve_fp_op): Handle them.
17805 (SVE_FP_UNARY): Delete.
17806 (optab): Remove sqrt entry.
17807 (sve_fp_op): Remove neg, abs and sqrt entries.
17808 (SVE_COND_FP_UNARY): New int iterator.
17809 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17810 (*<frint_pattern><mode>2): Delete.
17811 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17812 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17813 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17814 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17815
17816 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17817
17818 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17819
17820 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17821
17822 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17823 (UNSPEC_COND_FADD): ...this.
17824 (UNSPEC_COND_SUB): Rename to...
17825 (UNSPEC_COND_FSUB): ...this.
17826 (UNSPEC_COND_MUL): Rename to...
17827 (UNSPEC_COND_FMUL): ...this.
17828 (UNSPEC_COND_DIV): Rename to...
17829 (UNSPEC_COND_FDIV): ...this.
17830 (UNSPEC_COND_MAX): Rename to...
17831 (UNSPEC_COND_FMAXNM): ...this.
17832 (UNSPEC_COND_MIN): Rename to...
17833 (UNSPEC_COND_FMINNM): ...this.
17834 (UNSPEC_COND_LT): Rename to...
17835 (UNSPEC_COND_FCMLT): ...this.
17836 (UNSPEC_COND_LE): Rename to...
17837 (UNSPEC_COND_FCMLE): ...this.
17838 (UNSPEC_COND_EQ): Rename to...
17839 (UNSPEC_COND_FCMEQ): ...this.
17840 (UNSPEC_COND_NE): Rename to...
17841 (UNSPEC_COND_FCMNE): ...this.
17842 (UNSPEC_COND_GE): Rename to...
17843 (UNSPEC_COND_FCMGE): ...this.
17844 (UNSPEC_COND_GT): Rename to...
17845 (UNSPEC_COND_FCMGT): ...this.
17846 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17847 (sve_fp_op_rev): Update accordingly.
17848 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17849
17850 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17851
17852 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17853 banner comments.
17854 * config/aarch64/check-sve-md.awk: New file.
17855 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17856 (insn-conditions.md): Depend on it.
17857
17858 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17859
17860 PR target/91385
17861 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17862 (*negsi2_cmpz_zext): Ditto.
17863
17864 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17865
17866 * config/aarch64/iterators.md (commutative): Remove.
17867
17868 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17869
17870 PR driver/91130
17871 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17872 processing COLLECT_GCC_OPTIONS.
17873 (run_gcc): Likewise.
17874
17875 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17876
17877 PR tree-optimization/91109
17878 * lra-remat.c (update_scratch_ops): Remove assignment of the
17879 hard register.
17880
17881 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17882
17883 * data-streamer.h (streamer_write_poly_uint64): Declare.
17884 (streamer_read_poly_uint64): Likewise.
17885 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17886 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17887 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17888 (add_condition): Take a poly_int64 size.
17889 * ipa-predicate.c (add_condition): Likewise.
17890 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17891 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17892 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17893 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17894 condition::size as a poly_int64.
17895 (unmodified_parm_1): Take a poly_int64 size pointer.
17896 (unmodified_parm): Likewise.
17897 (unmodified_parm_or_parm_agg_item): Likewise.
17898 (set_cond_stmt_execution_predicate): Update accordingly.
17899 (set_switch_stmt_execution_predicate): Likewise.
17900 (will_be_nonconstant_expr_predicate): Likewise.
17901 (will_be_nonconstant_predicate): Likewise.
17902 (inline_read_section): Stream condition::size as a poly_int.
17903 (ipa_fn_summary_write): Likewise.
17904
17905 2019-08-07 Martin Liska <mliska@suse.cz>
17906
17907 * fold-const.c (twoval_comparison_p): Replace int
17908 with bool as a return type.
17909 (simple_operand_p): Likewise.
17910 (operand_equal_p): Replace int with bool as a return type.
17911 * fold-const.h (operand_equal_p): Likewise.
17912
17913 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17914
17915 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17916 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17917 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17918 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17919 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17920 * tree-pretty-print.c (dump_omp_clause): Likewise.
17921 * tree-nested.c (convert_nonlocal_omp_clauses,
17922 convert_local_omp_clauses): Likewise.
17923 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17924 Likewise.
17925 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17926 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17927 clause with array or reference to array types, no matter what type
17928 except for reference it has.
17929
17930 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17931
17932 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17933
17934 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17935
17936 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17937 (arch_canonicalize): Support rv32g and rv64g and fix error
17938 handling.
17939
17940 2019-08-06 Martin Liska <mliska@suse.cz>
17941
17942 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17943 and DECL_IS_OPERATOR_DELETE_P.
17944
17945 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17946
17947 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17948 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17949 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17950 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17951 (gimplify_omp_for): Don't do C++ random access iterator clause
17952 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17953 don't predetermine the artificial iterator in case of C++ random
17954 access iterators as lastprivate, but private. For OMP_LOOP, force
17955 bind expr around simd body and force for_pre_body before the
17956 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17957 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17958 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17959 diff var of C++ random access iterators. Handle
17960 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17961 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17962 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17963 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17964 * omp-low.c (lower_rec_input_clauses): For
17965 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17966 variables instead of default constructing them.
17967 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17968 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17969 is_taskloop_ctx check from the assert to the guarding condition.
17970
17971 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17972
17973 * config/riscv/multilib-generator: (canonical_order): New.
17974 (arch_canonicalize): Dito.
17975 Apply arch_canonicalize for alts.
17976
17977 2019-08-05 Martin Sebor <msebor@redhat.com>
17978
17979 * doc/extend.texi (Common Variable Attributes): Document alias
17980 attribute.
17981
17982 2019-08-05 Marek Polacek <polacek@redhat.com>
17983
17984 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17985 * doc/invoke.texi: Document -Wcomma-subscript.
17986
17987 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17988
17989 * tree-core.h (tree_function_decl): Make function_code an
17990 independent field. Group the remaining bitfields into bytes
17991 and move decl_type so that it contines to be at a byte boundary.
17992 Leave 12 bits for future expansion.
17993
17994 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17995
17996 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17997 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17998 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17999 IFN_MASK_STORE.
18000
18001 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18002
18003 * gimple.h (gimple_move_vops): Declare.
18004 * gimple.c (gimple_move_vops): New function
18005 * gimple-fold.c (replace_call_with_call_and_fold)
18006 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
18007 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
18008 (gimple_fold_call): Use it.
18009 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
18010 * tree-call-cdce.c (use_internal_fn): Likewise.
18011 * tree-if-conv.c (predicate_load_or_store): Likewise.
18012 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
18013 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
18014 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
18015 (update_call_from_tree): Likewise.
18016 * tree-vect-stmts.c (vectorizable_load): Likewise.
18017 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
18018
18019 2019-08-05 Martin Liska <mliska@suse.cz>
18020
18021 PR c++/91334
18022 * tree-ssa-dce.c (propagate_necessity): Handle new operators
18023 with not arguments.
18024 (eliminate_unnecessary_stmts): Likewise.
18025
18026 2019-08-05 Richard Biener <rguenther@suse.de>
18027
18028 PR middle-end/91169
18029 * fold-const.c (get_array_ctor_element_at_index): Create
18030 offset_ints according to the sign of the index type and treat
18031 that as signed if it is obviously so.
18032
18033 2019-08-05 Jakub Jelinek <jakub@redhat.com>
18034
18035 PR target/91341
18036 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
18037 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
18038 _mm256_storeu2_m128i): New function.
18039
18040 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
18041
18042 * config/riscv/riscv.c (riscv_promote_function_mode): New.
18043 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
18044
18045 2019-08-05 Alan Modra <amodra@gmail.com>
18046
18047 PR target/91349
18048 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
18049 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
18050
18051 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
18052
18053 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
18054 bug that was fixed in Tcl 8.6.1.
18055
18056 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
18057
18058 * config/rs6000/future.md: New file.
18059 * config/rs6000/rs6000.md: Include future.md.
18060 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
18061
18062 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
18063
18064 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
18065 check to use targetm.slow_unaligned_access instead.
18066
18067 * function.c (assign_param_data_one): Remove unused data members.
18068
18069 2019-08-02 Steve Ellcey <sellcey@marvell.com>
18070
18071 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
18072 build_distinct_type_copy.
18073 (simd_clone_adjust_argument_types): Ditto.
18074 (simd_clone_adjust): Call build_distinct_type_copy here.
18075 (expand_simd_clones): Ditto.
18076
18077 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18078
18079 PR target/91201
18080 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
18081
18082 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
18083
18084 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
18085 from 'const void *'.
18086 (sort_locs_in_loop_postorder_cmp): Likewise.
18087
18088 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
18089
18090 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
18091 (hot-bb-count-ws-permille): Likewise.
18092 (hot-bb-frequency-fraction): Likewise.
18093 (unlikely-bb-count-fraction): Likewise.
18094 * params.def (hot-bb-count-fraction): Rework description.
18095 (hot-bb-count-ws-permille): Likewise.
18096 (hot-bb-frequency-fraction): Likewise.
18097 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
18098 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
18099
18100 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18101
18102 PR target/91323
18103 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
18104 Return false.
18105
18106 2019-08-02 Richard Biener <rguenther@suse.de>
18107
18108 * vec.h (vec::sort): Add gcc_qsort_r support.
18109 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
18110 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
18111 to gcc_qsort_r style callback.
18112 (sort_locs_in_loop_postorder_cmp): Likewise.
18113 (analyze_memory_references): Use gcc_sort_r interfaces.
18114 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
18115
18116 2019-08-02 Martin Liska <mliska@suse.cz>
18117
18118 PR lto/91313
18119 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
18120 to detect working job server.
18121 (driver::detect_jobserver): Test whether jobserver
18122 is active from GCC driver. That will prevent situation where
18123 GCC is invoked from a LD plugin and the linker already uses
18124 file descriptors suggested by make. That leads to a wrong
18125 detection.
18126 * gcc.h (driver): Add detect_jobserver.
18127 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
18128 not scanning for --jobserver-auth prefix.
18129
18130 2019-08-02 Jakub Jelinek <jakub@redhat.com>
18131
18132 PR tree-optimization/91201
18133 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
18134 V16QImode extraction without sse4.1 try to use V4SImode lowpart
18135 extraction.
18136
18137 2019-08-01 Martin Sebor <msebor@redhat.com>
18138
18139 PR c++/90947
18140 * tree.c (type_initializer_zero_p): Define.
18141 * tree.h (type_initializer_zero_p): New function.
18142
18143 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18144
18145 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
18146
18147 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18148
18149 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
18150 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
18151 * predict.c (maybe_hot_count_p): Likewise.
18152 (maybe_hot_bb_p): Tweak comment.
18153 (maybe_hot_edge_p): Likewise.
18154 (probably_never_executed): Likewise. Minor tweak.
18155 (probably_never_executed_bb_p): Likewise.
18156 (unlikely_executed_edge_p): Likewise.
18157 (probably_never_executed_edge_p): Likewise.
18158 (optimize_function_for_size_p): Likewise.
18159 (optimize_function_for_speed_p): Likewise.
18160 (function_optimization_type): Likewise.
18161 (optimize_bb_for_size_p): Likewise.
18162 (optimize_bb_for_speed_p): Likewise.
18163 (bb_optimization_type): Likewise.
18164 (optimize_edge_for_size_p): Likewise.
18165 (optimize_edge_for_speed_p): Likewise.
18166 (optimize_insn_for_size_p): Likewise.
18167 (optimize_insn_for_speed_p): Likewise.
18168 (optimize_loop_for_size_p): Likewise.
18169 (optimize_loop_for_speed_p): Likewise.
18170 (optimize_loop_nest_for_speed_p): Likewise.
18171 (optimize_loop_nest_for_size_p): Likewise.
18172 (predictable_edge_p): Likewise.
18173 (handle_missing_profiles): Minor tweak.
18174
18175 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
18176
18177 * config/rs6000/predicates.md (pcrel_external_address): Update
18178 comment.
18179
18180 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18181
18182 PR target/85693
18183 * config/i386/mmx.md (usadv8qi): New expander.
18184
18185 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
18186
18187 PR c++/90590
18188 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
18189 with reserved names that are in a system header.
18190
18191 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18192
18193 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
18194 (*vec_extractv2si_0_zext_sse4): New insn pattern.
18195 (*vec_extractv2si_0_zext): Ditto.
18196 (*vec_extractv2si_1): Add (rm,x) alternative.
18197 (*vec_extractv2si_1_zext): New insn pattern.
18198 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
18199 insn constraint.
18200
18201 2019-08-01 Richard Biener <rguenther@suse.de>
18202
18203 * domwalk.c (bb_postorder): Remove static variable.
18204 (cmp_bb_postorder): Adjust.
18205 (sort_bbs_postorder): Adjust and use gcc_sort_r.
18206 (dom_walker::walk): Adjust.
18207
18208 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
18209
18210 * sort.cc (sort_r_ctx): New struct.
18211 (reorder23): Make templated on context type.
18212 (reorder45): Ditto.
18213 (cmp1): Ditto. Adjust signature.
18214 (netsort): Ditto.
18215 (mergesort): Ditto.
18216 [CHECKING_P] (cmp2to3): New static function. Use it...
18217 (gcc_qsort) [CHECKING_P]: ...here.
18218 (gcc_sort_r): New function.
18219 * system.h (sort_r_cmp_fn): New function typedef.
18220 (qsort_chk): Adjust signature.
18221 (gcc_sort_r): Declare.
18222 * vec.c (qsort_chk_error): Adjust.
18223 (qsort_chk): Adjust.
18224
18225 2019-08-01 Richard Biener <rguenther@suse.de>
18226
18227 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
18228 (compute_antic): Localize it here.
18229
18230 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
18231
18232 * common/config/riscv/riscv-common.c: Check -march string ends
18233 with null.
18234
18235 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
18236
18237 * ipa-devirt.c (type_warning_cmp): Make static.
18238 (decl_warning_cmp): Ditto.
18239
18240 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
18241
18242 PR target/91050
18243 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
18244 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
18245 use of deleted rs6000_dejagnu_cpu_index variable.
18246 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
18247 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18248 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
18249 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
18250 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
18251 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18252
18253 2019-07-31 Richard Biener <rguenther@suse.de>
18254
18255 PR tree-optimization/91280
18256 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18257 Decompose MEM_REF manually for offset handling.
18258
18259 2019-07-31 Richard Biener <rguenther@suse.de>
18260
18261 PR tree-optimization/91293
18262 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
18263 of reduction stmts.
18264
18265 2019-07-31 Matt Thomas <matt@3am-software.com>
18266 Nick Hudson <nick@nthcliff.demon.co.uk>
18267 Matthew Green <mrg@eterna.com.au>
18268 Maya Rashish <coypu@sdf.org>
18269
18270 * config.gcc (hppa*-*-netbsd*): New target.
18271 * config/pa/pa-netbsd.h: New file.
18272 * config/pa/pa32-netbsd.h: New file.
18273
18274 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18275
18276 PR tree-optimization/91201
18277 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
18278
18279 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
18280
18281 * config/gcn/gcn-valu.md
18282 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
18283 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
18284 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
18285 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
18286 struct ilist. Add nops for delayeduse insns.
18287 * config/gcn/gcn.md (delayeduse): New attribute.
18288 (*movbi): Remove s_waitcnt from stores.
18289 (*mov<mode>_insn): Likewise.
18290 (*movti_insn): Likewise. Add delayeduse attribute.
18291 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
18292 (atomic_store<mode>): Remove or adjust s_waitcnt.
18293
18294 2019-07-31 Richard Biener <rguenther@suse.de>
18295
18296 * vr-values.h (vr_values::swap_vr_value): New.
18297 (vr_values::free_value_range): likewise.
18298 * vr-values.c (vr_values::swap_vr_value): Implement.
18299 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
18300 Do not return a range or take a var.
18301 (evrp_range_analyzer::stack): Change back to recording a non-const
18302 value_range *.
18303 * gimple-ssa-evrp-analyze.c
18304 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
18305 value-range.
18306 (evrp_range_analyzer::pop_to_marker): Adjust.
18307 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
18308 (evrp_range_analyzer::pop_value_range): Likewise. Free the
18309 no longer needed value-range.
18310
18311 2019-07-31 Martin Liska <mliska@suse.cz>
18312
18313 * tree-ssa-dce.c (propagate_necessity): Delete operator can
18314 have size and (or) alignment as 2nd and later arguments.
18315 Mark all of them as necessary.
18316
18317 2019-07-31 Richard Biener <rguenther@suse.de>
18318
18319 PR tree-optimization/91178
18320 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18321 Use tail-recursion.
18322
18323 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18324
18325 PR tree-optimization/91201
18326 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
18327 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
18328 TARGET_AVX512F.
18329 (reduc_plus_scal_<mode>): Improve formatting by introducing
18330 a temporary.
18331
18332 2019-07-31 Sudakshina Das <sudi.das@arm.com>
18333
18334 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
18335 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
18336 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
18337 (aarch64_init_tme_builtins): New.
18338 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
18339 (aarch64_expand_builtin_tme): New.
18340 (aarch64_expand_builtin): Handle TME builtins.
18341 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
18342 __ARM_FEATURE_TME when enabled.
18343 * config/aarch64/aarch64-option-extensions.def: Add "tme".
18344 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
18345 (TARGET_TME): New.
18346 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
18347 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
18348 UNSPECV_TCANCEL.
18349 (tstart, ttest, tcommit, tcancel): New instructions.
18350 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
18351 (__tcancel, __ttest): New.
18352 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
18353 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
18354 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
18355 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
18356 * config/arm/types.md: Add new tme type attr.
18357 * doc/invoke.texi: Document "tme".
18358
18359 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
18360
18361 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
18362 warn_unused_result attribute.
18363 (cmse_check_address_range): Add warn_unused_result attribute.
18364
18365 2019-07-31 Richard Biener <rguenther@suse.de>
18366
18367 PR tree-optimization/91257
18368 * tree-vrp.c (union_ranges): Unify equality and less tests
18369 by using compare_values. Re-order cheap tests first.
18370
18371 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18372
18373 PR middle-end/91301
18374 * gimplify.c (gimplify_omp_for): If for class iterator on
18375 distribute parallel for there is no data sharing clause
18376 on inner_for_stmt, look for private clause on combined
18377 parallel too and if found, move it to inner_for_stmt.
18378
18379 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
18380
18381 * lra-int.h (lra_operand_data): Remove early_clobber field.
18382 (lra_insn_reg): Likewise.
18383 * lra.c (debug_operand_data): Update accordingly.
18384 (setup_operand_alternative): Likewise.
18385 (new_insn_reg): Likewise. Remove early_clobber parameter.
18386 (collect_non_operand_hard_regs): Update call accordingly.
18387 Don't assign to lra_insn_reg::early_clobber.
18388 (add_regs_to_insn_regno_info): Remove early_clobber parameter
18389 and update calls to new_insn_reg.
18390 (lra_update_insn_regno_info): Update calls accordingly.
18391 * lra-constraints.c (update_and_check_small_class_inputs): Take the
18392 alternative number as a parameter and test whether the operand
18393 is earlyclobbered in that particular alternative.
18394 (process_alt_operands): Update call accordingly. Use per-alternative
18395 checks for earyclobber here too.
18396 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18397 against zero for IRA_UNKNOWN_ALT.
18398
18399 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18400
18401 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18402
18403 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
18404
18405 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18406 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18407
18408 2019-07-30 Martin Liska <mliska@suse.cz>
18409
18410 PR ipa/89330
18411 * cgraph.c (cgraph_edge::make_direct): Use
18412 edge->indirect_unknown_callee as edge->resolve_speculation can
18413 deallocate edge which is this pointer.
18414
18415 2019-07-30 Richard Biener <rguenther@suse.de>
18416
18417 PR tree-optimization/91257
18418 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18419
18420 2019-07-30 Martin Liska <mliska@suse.cz>
18421
18422 * doc/invoke.texi: Document new behavior.
18423 * lto-wrapper.c (cpuset_popcount): New function
18424 is a copy of libgomp/config/linux/proc.c.
18425 (init_num_threads): Likewise.
18426 (run_gcc): Automatically detect core count for -flto.
18427 (jobserver_active_p): New function.
18428
18429 2019-07-30 Richard Biener <rguenther@suse.de>
18430
18431 PR tree-optimization/91257
18432 * bitmap.h (bitmap_ior_into_and_free): Declare.
18433 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18434 whether to add the unliked element to the freelist.
18435 (bitmap_list_insert_element_after): Add defaulted param for
18436 an already allocated element.
18437 (bitmap_ior_into_and_free): New function.
18438 * tree-ssa-structalias.c (condense_visit): Reduce the
18439 ponts-to and edge bitmaps of the SCC members in a
18440 logarithmic fashion rather than all to one.
18441
18442 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
18443
18444 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18445 parameter. When nonnull, make sure that the addition or subtraction
18446 has the same condition.
18447 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18448 for CFN_COND_MUL too.
18449
18450 2019-07-30 Richard Biener <rguenther@suse.de>
18451
18452 PR tree-optimization/91291
18453 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18454 constant values.
18455
18456 2019-07-30 Jakub Jelinek <jakub@redhat.com>
18457
18458 PR middle-end/91216
18459 * omp-low.c (global_nonaddressable_vars): New variable.
18460 (use_pointer_for_field): For global decls, if they are non-addressable,
18461 remember it in the global_nonaddressable_vars bitmap, if they are
18462 addressable and in the global_nonaddressable_vars bitmap, ignore their
18463 TREE_ADDRESSABLE bit.
18464 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18465 vars in global_nonaddressable_vars bitmap.
18466 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18467
18468 PR target/91150
18469 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18470 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18471 comparison to unsigned HOST_WIDE_INT before shifting it left.
18472
18473 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18474
18475 * config/i386/i386.md (movstrict<mode>): Use register_operand
18476 predicate for operand 0. Add expander condition. Assert that
18477 operand 0 is a SUBREG RTX.
18478 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18479 Update operand constraints and insn condition.
18480 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18481 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18482 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18483 Update operand 0 constraints.
18484 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18485
18486 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18487
18488 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18489 when -m{code,data}-region are used without -mlarge.
18490 * config/msp430/msp430.c (msp430_option_override): Error when a
18491 non-default code or data region is used without -mlarge.
18492 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18493 attributes when they are used without -mlarge.
18494
18495 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18496
18497 PR target/70320
18498 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18499
18500 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18501
18502 PR middle-end/91242
18503 * wide-int.h (generic_wide_int::sext_elt): New function.
18504 * inchash.h (hash::add_wide_int): Use it instead of elt.
18505
18506 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18507
18508 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18509 CODE_FOR_arm_##.
18510 * config/arm/arm.md (<crc_variant>): Rename to...
18511 (arm_<crc_variant>): ... This.
18512 (<cdp>): Rename to...
18513 (arm_<cdp>): ... This.
18514 (<ldc>): Rename to...
18515 (arm_<ldc>): ... This.
18516 (<stc>): Rename to...
18517 (arm_<stc>): ... This.
18518 (<mcr>): Rename to...
18519 (arm_<mcr>): ... This.
18520 (<mrc>): Rename to...
18521 (arm_<mrc>): ... This.
18522 (<mcrr>): Rename to...
18523 (arm_<mcrr>): ... This.
18524 (<mrrc>): Rename to...
18525 (arm_<mrrc>): ... This.
18526
18527 2019-07-29 Richard Biener <rguenther@suse.de>
18528
18529 PR tree-optimization/91257
18530 * tree-ssa-sccvn.h (struct vn_avail): New.
18531 (struct vn_ssa_aux): Add avail member.
18532 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18533 member, add m_avail_freelist one.
18534 (rpo_elim::~rpo_elim): Remove.
18535 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18536 data structure.
18537 (rpo_elim::eliminate_push_avail): Likewise.
18538 (do_unwind): Likewise.
18539 (do_rpo_vn): Likewise.
18540
18541 2019-07-29 Richard Biener <rguenther@suse.de>
18542
18543 PR tree-optimization/91257
18544 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18545 most cases, instead call compare_values which handles the
18546 symbolic ranges we handle specially.
18547 (compare_values_warnv): Do not call operand_less_p but open-code
18548 the effective fold calls. Avoid converting so much.
18549
18550 2019-07-29 Martin Liska <mliska@suse.cz>
18551
18552 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18553 remove LHS of operator new call. It's handled latter.
18554
18555 2019-07-29 Richard Biener <rguenther@suse.de>
18556
18557 PR tree-optimization/91267
18558 * vr-values.c (vr_values::update_value_range): Add early return
18559 for effectively VARYING lattice entry.
18560
18561 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18562
18563 PR debug/86638
18564 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18565 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18566 necessary if keep_all_vdefs_p is true.
18567 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18568 that keep_all_vdefs_p is false.
18569 (mark_all_reaching_defs_necessary): Likewise.
18570 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18571
18572 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18573
18574 * common.opt (Og): Change the initial value of flag_dse to 0.
18575 * opts.c (default_options_table): Move OPT_ftree_dse from
18576 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18577 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18578 entry before the OPT_ftree_sra entry.
18579 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18580 of flags disabled by Og.
18581
18582 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18583
18584 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18585 variables for -Og.
18586
18587 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18588
18589 * doc/sourcebuild.texi (check-function-bodies): Document.
18590
18591 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18592
18593 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18594 VEC_DUPLICATE of a fixed-length vector even if the result
18595 is variable-length. Likewise fold a duplicate of a
18596 variable-length vector if the variable-length vector is
18597 itself a duplicate of a fixed-length sequence.
18598 (test_vector_ops_duplicate): Test more cases.
18599
18600 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18601
18602 * vector-builder.h (vector_builder): Add a shape template parameter.
18603 (vector_builder::new_unary_operation): New function, generalizing
18604 the old tree_vector_builder function.
18605 (vector_builder::new_binary_operation): Likewise.
18606 (vector_builder::binary_encoded_nelts): Likewise.
18607 * int-vector-builder.h (int_vector_builder): Update template
18608 parameters to vector_builder.
18609 (int_vector_builder::shape_nelts): New function.
18610 * rtx-vector-builder.h (rtx_vector_builder): Update template
18611 parameters to vector_builder.
18612 (rtx_vector_builder::shape_nelts): New function.
18613 (rtx_vector_builder::nelts_of): Likewise.
18614 (rtx_vector_builder::npatterns_of): Likewise.
18615 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18616 * tree-vector-builder.h (tree_vector_builder): Update template
18617 parameters to vector_builder.
18618 (tree_vector_builder::shape_nelts): New function.
18619 (tree_vector_builder::nelts_of): Likewise.
18620 (tree_vector_builder::npatterns_of): Likewise.
18621 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18622 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18623 (tree_vector_builder::new_binary_operation): Delete.
18624 (tree_vector_builder::binary_encoded_nelts): Likewise.
18625 * simplify-rtx.c: Include rtx-vector-builder.h.
18626 (distributes_over_addition_p): New function.
18627 (simplify_const_unary_operation)
18628 (simplify_const_binary_operation): Generalize handling of vector
18629 constants to include variable-length vectors.
18630 (test_vector_ops_series): Add more tests.
18631
18632 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18633
18634 PR lto/91222
18635 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18636 than INDENTIFIER_POINTER.
18637
18638 2019-07-28 Martin Liska <mliska@suse.cz>
18639
18640 PR ipa/89330
18641 * cgraph.c (symbol_table::create_edge): Always allocate
18642 a cgraph_edge.
18643 (symbol_table::free_edge): Store summary_id to
18644 edge_released_summary_ids if != -1;
18645 * cgraph.h (NEXT_FREE_NODE): Remove.
18646 (SET_NEXT_FREE_NODE): Likewise.
18647 (NEXT_FREE_EDGE): Likewise.
18648 (symbol_table::release_symbol): Store summary_id to
18649 cgraph_released_summary_ids if != -1;
18650 (symbol_table::allocate_cgraph_symbol): Always allocate
18651 a cgraph_node.
18652
18653 2019-07-28 Alan Modra <amodra@gmail.com>
18654
18655 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18656 gen_sibcall.
18657
18658 2019-07-28 Alan Modra <amodra@gmail.com>
18659
18660 PR target/91135
18661 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18662 define.
18663 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18664 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18665 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18666
18667 2019-07-28 Alan Modra <amodra@gmail.com>
18668
18669 PR target/91050
18670 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18671 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18672 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18673 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18674 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18675 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18676 in asm_default spec.
18677 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18678 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18679
18680 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18681
18682 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18683
18684 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18685
18686 PR target/89517
18687 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18688 * config/aarch64/aarch64-option-extensions.def: Add new comments
18689 and restore easier to read options.
18690
18691 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18692
18693 * convert.c (convert_to_real_1): Move part of conversion code...
18694 * match.pd: ...To here.
18695
18696 2019-07-26 Martin Jambor <mjambor@suse.cz>
18697
18698 PR ipa/89330
18699 * ipa-inline-transform.c (check_speculations_1): New function.
18700 (push_all_edges_in_set_to_vec): Likewise.
18701 (check_speculations): Use check_speculations_1, new parameter
18702 new_edges.
18703 (inline_call): Pass new_edges to check_speculations.
18704 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18705 NULL.
18706 (speculation_useful_p): Early return true if edge is inlined, remove
18707 later checks for inline_failed.
18708
18709 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18710
18711 PR rtl-optimization/91223
18712 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18713 matching with INOUT operand.
18714
18715 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18716
18717 * stmt.c (expand_case): Try to narrow the index type if it's larger
18718 than a word. Tidy up.
18719
18720 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18721
18722 * cif-code.def (NEVER_CALL): New code.
18723 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18724 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18725
18726 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18727
18728 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18729 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18730
18731 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18732
18733 * ipa-devirt.c (add_type_duplicate): Fix return value.
18734
18735 2019-07-25 Richard Biener <rguenther@suse.de>
18736
18737 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18738 type parameter and use it instead of guessing expression
18739 type from the first operand.
18740 (extract_range_from_binary_expr): Pass expr_type down.
18741
18742 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18743
18744 * config/arm/arm.md (SATrev): Change to code attribute.
18745 (*satsi_<SAT:code>): Adjust for the above.
18746 (*satsi_<SAT:code>_shift): Likewise.
18747
18748 2019-07-25 Richard Biener <rguenther@suse.de>
18749
18750 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18751 Make value_range * temporary const.
18752 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18753 Likewise.
18754 (evrp_range_analyzer::record_ranges_from_): Likewise.
18755 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18756 deal with having recorded a const one.
18757 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18758 Return a const value_range *.
18759 (evrp_range_analyzer::pop_value_range): Likewise.
18760 (evrp_range_analyzer::stack): Record const value_range *s.
18761 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18762 Adjust.
18763 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18764 (format_integer): Likewise.
18765 (sprintf_dom_walker::handle_gimple_call): Likewise.
18766 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18767 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18768 (vrp_prop::get_value_range): Adjust.
18769 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18770 modifying the lattice in-place.
18771 (vrp_prop::visit_stmt): Likewise.
18772 * vr-values.c (vr_values::get_lattice_entry): New private method.
18773 (vr_values::get_value_range): Wrap it and return a const
18774 value_range *.
18775 (vr_values::set_def_to_varying): New.
18776 (vr_values::set_defs_to_varying): Use it.
18777 (vr_values::update_value_range): Likewise.
18778 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18779 (values::op_with_constant_singleton_va): Likewise.
18780 (vr_values::extract_range_for_var_from_co): Likewise.
18781 (vr_values::extract_range_from_ssa_name): Likewise.
18782 (vr_values::extract_range_from_cond_expr): Likewise.
18783 (vr_values::extract_range_basic): Likewise.
18784 (compare_ranges): Take const value_range *, adjust.
18785 (compare_range_with_value): Likewise.
18786 (vrp_valueize): Adjust.
18787 (vrp_valueize_1): Likewise.
18788 (vr_values::get_vr_for_comparison): Return a const value_range *.
18789 (vr_values::compare_name_with_value): Adjust.
18790 (vr_values::compare_names): Likewise.
18791 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18792 Likewise.
18793 (vr_values::vrp_evaluate_conditional): Likewise.
18794 (find_case_label_ranges): Take a const value_range *.
18795 (vr_values::vrp_visit_switch_stmt): Adjust.
18796 (vr_values::extract_range_from_phi_node): Likewise.
18797 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18798 (vr_values::simplify_abs_using_ranges): Likewise.
18799 (test_for_singularity): Take a const value_range *.
18800 (range_fits_type_p): Likewise.
18801 (vr_values::simplify_cond_using_ranges_1): Adjust.
18802 (vr_values::simplify_cond_using_ranges_2): Likewise.
18803 (vr_values::simplify_switch_using_ranges): Likewise.
18804 (vr_values::simplify_float_conversion_usi): Likewise.
18805 (vr_values::two_valued_val_range_p): Likewise.
18806 * vr-values.h (vr_values::get_value_range): Return a const
18807 value_range *.
18808 (vr_values::set_def_to_varying): New.
18809 (vr_values::get_lattice_entry): New private method.
18810 (vr_values::get_vr_for_comparison): Return a const value_range *.
18811
18812 2019-07-25 Martin Liska <mliska@suse.cz>
18813 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18814
18815 PR c++/23383
18816 * common.opt: Add -fallocation-dce
18817 * gimple.c (gimple_call_operator_delete_p): New.
18818 * gimple.h (gimple_call_operator_delete_p): Likewise.
18819 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18820 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18821 DECL_IS_OPERATOR_DELETE_P.
18822 (mark_all_reaching_defs_necessary_1): Likewise.
18823 (propagate_necessity): Likewise.
18824 (eliminate_unnecessary_stmts): Handle
18825 gimple_call_operator_delete_p.
18826 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18827 Add packing of OPERATOR_DELETE.
18828 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18829 Similarly here.
18830 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18831 (DECL_SET_IS_OPERATOR_DELETE): New.
18832 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18833
18834 2019-07-25 Martin Liska <mliska@suse.cz>
18835
18836 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18837 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18838 * coverage.c (coverage_begin_function): Likewise.
18839 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18840 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18841 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18842 (sem_item::hash_referenced_symbol_properties): Likewise.
18843 * lto-streamer-out.c (hash_tree): Likewise.
18844 * predict.c (expr_expected_value_1): Likewise.
18845 * tree-inline.c (expand_call_inline): Likewise.
18846 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18847 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18848 * tree-core.h (enum function_decl_type): New enum.
18849 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18850 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18851 (set_function_decl_type): Likewise.
18852 (DECL_IS_OPERATOR_NEW_P): New.
18853 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18854 (DECL_LAMBDA_FUNCTION): Likewise.
18855 (DECL_LAMBDA_FUNCTION_P): Likewise.
18856 (DECL_IS_OPERATOR_NEW): Remove.
18857 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18858
18859 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18860
18861 * ipa-profile.c (get_most_common_single_value): Use
18862 get_nth_most_common_value.
18863 * profile.c (sort_hist_value): New function.
18864 (compute_value_histograms): Call sort_hist_value to sort the
18865 values after loading from disk.
18866 * value-prof.c (get_most_common_single_value): Rename to ...
18867 get_nth_most_common_value. Add input params n, return
18868 the n_th value and count.
18869 (gimple_divmod_fixed_value_transform): Use
18870 get_nth_most_common_value.
18871 (gimple_ic_transform): Likewise.
18872 (gimple_stringops_transform): Likewise.
18873 * value-prof.h (get_most_common_single_value): Add input params
18874 n, default to 0.
18875
18876 2019-07-25 Richard Biener <rguenther@suse.de>
18877
18878 PR tree-optimization/91236
18879 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18880 size of CONSTRUCTOR write. Fix buffer size we pass to
18881 native_encode_expr.
18882
18883 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18884
18885 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18886 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18887 r273773.
18888
18889 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18890
18891 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18892 explicitly disabled with --disable-initfini-array.
18893
18894 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18895
18896 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18897 if-exists.
18898
18899 2019-07-24 Martin Sebor <msebor@redhat.com>
18900
18901 PR tree-optimization/91183
18902 PR tree-optimization/86688
18903 * builtins.c (compute_objsize): Handle MEM_REF.
18904 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18905 (get_min_string_length): Remove.
18906 (count_nonzero_bytes): New function.
18907 (handle_char_store): Rename...
18908 (handle_store): to this. Handle multibyte stores via integer types.
18909 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18910 function name.
18911
18912 2019-07-24 Martin Sebor <msebor@redhat.com>
18913
18914 PR driver/80545
18915 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18916 (diagnostic_report_diagnostic): Same.
18917 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18918 (diagnostic_context::lang_mask): New data member.
18919 * ipa-pure-const.c (suggest_attribute): Use
18920 lang_hooks.option_lang_mask ().
18921 * opts-common.c (option_enabled): Handle new argument.
18922 (get_option_state): Pass an additional argument.
18923 * opts.c (print_filtered_help): Print supported languages for
18924 unsupported options. Adjust printing of current state.
18925 * opts.h (option_enabled): Add argument.
18926 * toplev.c (print_switch_values): Use lang_mask.
18927 (general_init): Set global_dc->lang_mask.
18928
18929 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18930
18931 PR bootstrap/87030
18932 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18933
18934 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18935
18936 * cgraphunit.c (symbol_table::compile): Start and stop
18937 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18938 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18939
18940 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18941
18942 * gimplify.c (flag_instrument_functions_exclude_p): Include
18943 namespace/class information in the printable name.
18944 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18945 to tokens entered into the vector.
18946
18947 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18948
18949 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18950 (get_static_chain): Call it instead of build_simple_mem_ref.
18951 (get_frame_field): Likewise.
18952 (get_nonlocal_debug_decl): Likewise.
18953 (convert_nonlocal_reference_op): Likewise.
18954
18955 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18956
18957 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18958 declaration.
18959 (arc_compute_frame_size): Millicode is disabled when compiling
18960 ISR.
18961 (arc_return_address_register): Likewise.
18962 (arc_compute_function_type): Likewise.
18963 (arc_compute_frame_size): Likewise.
18964 (secondary_reload_info): Likewise.
18965 (arc_get_unalign): Likewise.
18966 (arc_can_use_return_insn): Declare.
18967 * config/arc/arc.c (AUX_LP_START): Define
18968 (AUX_LP_END): Likewise.
18969 (arc_frame_info): Update gmask member to 64-bit datum.
18970 (GMASK_LEN): Update.
18971 (arc_compute_function_type): Make it static, move it forward.
18972 (arc_must_save_register): Update, consider the extra regs.
18973 (arc_compute_millicode_save_restore_regs): Update to use the 64
18974 bit gmask.
18975 (arc_compute_frame_size): Likewise.
18976 (arc_enter_leave_p): Likewise.
18977 (arc_save_callee_saves): Likewise.
18978 (arc_restore_callee_saves): Likewise.
18979 (arc_save_callee_enter): Likewise.
18980 (arc_restore_callee_leave): Likewise.
18981 (arc_save_callee_milli): Likewise.
18982 (arc_restore_callee_milli): Likewise.
18983 (arc_expand_prologue): Add new interrupt handling.
18984 (arc_return_address_register): Make it static, move it forward.
18985 (arc_expand_epilogue): Add new interrupt handling.
18986 (arc_get_unalign): Delete.
18987 (arc_epilogue_uses): Make sure we do not remove the extra
18988 saved/restored registers when interrupt.
18989 (arc_can_use_return_insn): New function.
18990 (push_reg): Likewise.
18991 (pop_reg): Likewise.
18992 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18993 procedures.
18994 (arc_restore_callee_saves): Likewise, but restoring.
18995 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18996 (R33_REG): Likewise.
18997 (R34_REG): Likewise.
18998 (R35_REG): Likewise.
18999 (R36_REG): Likewise.
19000 (R37_REG): Likewise.
19001 (R38_REG): Likewise.
19002 (R39_REG): Likewise.
19003 (R45_REG): Likewise.
19004 (R46_REG): Likewise.
19005 (R47_REG): Likewise.
19006 (R48_REG): Likewise.
19007 (R49_REG): Likewise.
19008 (R50_REG): Likewise.
19009 (R51_REG): Likewise.
19010 (R52_REG): Likewise.
19011 (R53_REG): Likewise.
19012 (R54_REG): Likewise.
19013 (R55_REG): Likewise.
19014 (R56_REG): Likewise.
19015 (R58_REG): Likewise.
19016 (type): Add rtie attribute.
19017 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
19018 (movsi_insn): Accept moves to lp_count.
19019 (rtie): Update pattern.
19020 (simple_return): Simplify it, don't use this pattern as a return
19021 from an interrupt.
19022 (arc600_rtie): New pattern.
19023 (p_return_i): Clean up.
19024 (return): Likewise.
19025 * config/arc/builtins.def (rtie): Only available for non ARC6xx
19026 family CPUs.
19027 * config/arc/predicates.md (move_src_operand): Consider lp_count
19028 as a register.
19029
19030 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
19031
19032 * config/s390/predicates.md (addv_const_operand): New predicate.
19033 * config/s390/s390-modes.def (CCO): New condition code mode.
19034 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
19035 (s390_branch_condition_mask): Likewise.
19036 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
19037 ("mulv<mode>4"): New expanders.
19038 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
19039 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
19040 pattern definitions.
19041
19042 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19043
19044 PR middle-end/91166
19045 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
19046 (define_predicates): Add entry for uniform_vector_p.
19047 (vec_same_elem_p): New match pattern.
19048
19049 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19050
19051 PR bootstrap/87030
19052 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
19053 * config/i386/darwin32-biarch.h .. to here.
19054 * config/i386/darwin64-biarch.h: Adjust comments.
19055 * config/rs6000/darwin32-biarch.h: Likewise.
19056 * config/rs6000/darwin64-biarch.h: Likewise.
19057 * config.gcc: Missed commit from r273746
19058 (*-*-darwin*): Don't include CPU t-darwin here.
19059 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19060 an error message if i686-darwin configuration is attempted for
19061 Darwin >= 18.
19062
19063 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
19064
19065 PR bootstrap/87030
19066 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
19067 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19068 an error message if i686-darwin configuration is attempted for
19069 Darwin >= 18.
19070 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
19071 (powerpc-*-darwin*): Use biarch files where needed.
19072 (powerpc64-*-darwin*): Likewise.
19073 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
19074 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19075 arch case.
19076 * config/i386/darwin32-biarch.h: New.
19077 * config/i386/darwin64.h: Rename.
19078 * config/i386/darwin64-biarch.h: To this.
19079 * config/i386/t-darwin: Rename.
19080 * config/i386/t-darwin32-biarch: To this.
19081 * config/i386/t-darwin64: Rename.
19082 * config/i386/t-darwin64-biarch: To this.
19083 * config/rs6000/darwin32-biarch.h: New.
19084 * config/rs6000/darwin64.h: Rename.
19085 * config/rs6000/darwin64-biarch.h: To this.
19086 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19087 arch case.
19088 * config/rs6000/t-darwin8: Rename.
19089 * config/rs6000/t-darwin32-biarch: To this.
19090 * config/rs6000/t-darwin64 Rename.
19091 * config/rs6000/t-darwin64-biarch: To this.
19092
19093 2019-07-23 Martin Sebor <msebor@redhat.com>
19094
19095 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
19096
19097 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19098
19099 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
19100 (rh): New alias for it.
19101
19102 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19103
19104 * gdbhooks.py: Pass replace=True to
19105 gdb.printing.register_pretty_printer.
19106
19107 2019-07-23 Richard Biener <rguenther@suse.de>
19108
19109 PR debug/91231
19110 * lto-streamer-in.c (input_function): Drop inline-entry markers
19111 that ended up with an unknown location block.
19112
19113 2019-07-23 Richard Biener <rguenther@suse.de>
19114
19115 PR tree-optimization/83518
19116 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
19117 init from a constant even when partial defs are already recorded.
19118
19119 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19120
19121 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
19122 * config/i386/znver1.md: Enable patterns for znver2 and add store
19123 variants which use extra AGU unit.
19124
19125 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19126
19127 * config/i386/i386-options.c (ix86_option_override_internal): Default
19128 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
19129 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
19130 for ZNVER2.
19131
19132 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19133
19134 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
19135 (znver2_costs): Update 256 bit SSE costs and multiplication.
19136
19137 2019-07-23 Jan Beulich <jbeulich@suse.com>
19138
19139 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
19140 Require only AVX512F.
19141 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
19142 alternative expanding to vpternlog.
19143
19144 2019-07-23 Martin Liska <mliska@suse.cz>
19145
19146 * dwarf2out.c (gen_producer_string): Canonize -flto=N
19147 to -flto in dwarf producer string.
19148
19149 2019-07-23 Richard Biener <rguenther@suse.de>
19150
19151 * tree-cfg.c (label_for_bb): Remove global var.
19152 (main_block_label): Take label_for_bb as argument.
19153 (cleanup_dead_labels_eh): Likewise, adjust.
19154 (cleanup_dead_labels): Adjust.
19155
19156 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19157
19158 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
19159 Configurations): Add documentation for __builtin_mtfsf.
19160
19161 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
19162
19163 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
19164 * config/riscv/riscv.c (riscv_constant_alignment): Use
19165 riscv_align_data_type.
19166 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
19167 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19168 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19169 * config/riscv/riscv.opt (malign-data): New.
19170 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
19171
19172 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
19173
19174 * cgraph.c (dump_graphviz): New function.
19175 * cgraph.h (dump_graphviz): New function.
19176 * symtab.c (dump_graphviz): New function.
19177
19178 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
19179
19180 * config/aarch64/aarch64-simd.md
19181 (*aarch64_simd_sra<mode>): New.
19182 * config/aarch64/iterators.md
19183 (SHIFTRT): New iterator.
19184 (sra_op): New attribute.
19185
19186 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19187
19188 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
19189 callee-saved regs R4->R10 in an interrupt function that calls another
19190 function.
19191
19192 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19193
19194 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
19195 (_mm_blendv_epi8): New.
19196
19197 2019-07-22 Richard Biener <rguenther@suse.de>
19198
19199 PR tree-optimization/91221
19200 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
19201 restrict partial-def handling of empty constructors and
19202 memset to refs with known offset.
19203
19204 2019-07-22 Jan Beulich <jbeulich@suse.com>
19205
19206 * config/i386/sse.md (ternlogsuffix): New.
19207 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
19208 AVX512F is in use.
19209 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
19210
19211 2019-07-22 Martin Liska <mliska@suse.cz>
19212
19213 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
19214 comment.
19215 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
19216
19217 2019-07-22 Martin Liska <mliska@suse.cz>
19218
19219 * lto-section-in.c (lto_get_section_data):
19220 Use new function get_compression.
19221 * lto-streamer-out.c (produce_lto_section): Use
19222 set_compression to encode compression algorithm.
19223 * lto-streamer.h (struct lto_section): Do not
19224 use bitfields in the format.
19225
19226 2019-07-22 Martin Liska <mliska@suse.cz>
19227
19228 PR driver/91172
19229 * opts-common.c (decode_cmdline_option): Decode
19230 argument of -Werror and check it for a wrong language.
19231 * opts-global.c (complain_wrong_lang): Remove such case.
19232
19233 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
19234
19235 * config/arc/arc.c (prepare_move_operands): Always use an
19236 intermediate register when storing a TLS symbols.
19237
19238 2019-07-22 Stafford Horne <shorne@gmail.com>
19239
19240 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
19241 force_reg.
19242
19243 2019-07-22 Stafford Horne <shorne@gmail.com>
19244
19245 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
19246 and munordered-float validations.
19247 * config/or1k/constraints.md (d): New register constraint.
19248 * config/or1k/predicates.md (fp_comparison_operator): New.
19249 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
19250 operands.
19251 (or1k_expand_compare): Normalize unordered comparisons.
19252 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
19253 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
19254 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
19255 * config/or1k/or1k.md (type): Add fpu.
19256 (fpu): New instruction reservation.
19257 (F, f, fr, fi, FI, FOP, fop): New.
19258 (<fop><F:mode>3): New ALU instruction definition.
19259 (float<fi><F:mode>2): New conversion instruction definition.
19260 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
19261 (fpcmpcc): New code iterator.
19262 (*sf_fp_insn): New instruction definition.
19263 (cstore<F:mode>4): New expand definition.
19264 (cbranch<F:mode>4): New expand definition.
19265 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
19266 munordered-float): New options.
19267 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
19268 munordered-float.
19269
19270 2019-07-22 Stafford Horne <shorne@gmail.com>
19271
19272 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
19273 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
19274 documenation to be more clear.
19275 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
19276 more clear.
19277 * config/or1k/or1k.opt (mrori): New option.
19278 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
19279 msfimm, mshftimm): Rewrite documentation to be more clear.
19280 * config/or1k/or1k.md (insn_support): Add ror and rori.
19281 (enabled): Add conditions for ror and rori.
19282 (rotrsi3): Replace condition for shftimm with ror and rori.
19283
19284 2019-07-22 Stafford Horne <shorne@gmail.com>
19285
19286 PR target/90363
19287 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
19288 (extend<mode>si2): Update predicate.
19289 * config/or1k/predicates.md (volatile_mem_operand): New.
19290 (reg_or_mem_operand): New.
19291
19292 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
19293
19294 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
19295 * config/rs6000/rs6000-call.c: ... to here.
19296
19297 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19298
19299 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
19300 memory.
19301
19302 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19303
19304 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
19305
19306 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19307
19308 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
19309
19310 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19311
19312 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
19313 (any_memory_operand): New predicate.
19314 (reg_or_mem_operand): Use it.
19315
19316 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19317
19318 PR target/91204
19319 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
19320
19321 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
19322
19323 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
19324 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
19325
19326 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19327
19328 * tree.def (OMP_LOOP): New tree code.
19329 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
19330 (enum omp_clause_bind_kind): New enum.
19331 (struct tree_omp_clause): Add subcode.bind_kind.
19332 * tree.h (OMP_LOOP_CHECK): Rename to ...
19333 (OMP_LOOPING_CHECK): ... this.
19334 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
19335 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
19336 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
19337 (OMP_CLAUSE_BIND_KIND): Define.
19338 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19339 bind clause entries.
19340 (walk_tree_1): Handle OMP_CLAUSE_BIND.
19341 * tree-pretty-print.c (dump_omp_clause): Likewise.
19342 (dump_generic_node): Handle OMP_LOOP.
19343 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
19344 (in_omp_construct): New variable.
19345 (is_gimple_stmt): Handle OMP_LOOP.
19346 (gimplify_scan_omp_clauses): For lastprivate don't set
19347 check_non_private if code == OMP_LOOP. For reduction clause
19348 on OMP_LOOP combined with parallel or teams propagate as shared
19349 on the combined construct. Handle OMP_CLAUSE_BIND.
19350 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
19351 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
19352 for constructs from a loop construct to gimplify_scan_omp_clauses.
19353 Don't predetermine iterator linear on OMP_SIMD from loop construct.
19354 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
19355 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
19356 to match the implicit ORT_TARGET construct around whole body.
19357 Temporarily clear in_omp_construct when processing body.
19358 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
19359 etc. temporarily set in_omp_construct when processing body.
19360 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
19361 * omp-low.c (struct omp_context): Add loop_p.
19362 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
19363 in that the original var might be private.
19364 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
19365 (check_omp_nesting_restrictions): Adjust nesting restrictions for
19366 addition of loop construct.
19367 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
19368
19369 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
19370 lastprivate non-addressable iterator of a collapse(1) simd.
19371
19372 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
19373
19374 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
19375 as in rs6000.c.
19376
19377 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
19378
19379 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
19380 refer to default conditions. Warn for the 'y' spec which is ignored
19381 by current linkers.
19382
19383 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
19384
19385 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19386 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19387 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19388 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19389 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19390 init_cumulative_args, rs6000_promote_function_mode,
19391 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19392 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19393 rs6000_function_arg_boundary, rs6000_parm_offset,
19394 rs6000_parm_start, rs6000_arg_size,
19395 rs6000_darwin64_record_arg_advance_flush,
19396 rs6000_darwin64_record_arg_advance_recurse,
19397 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19398 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19399 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19400 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19401 rs6000_finish_function_arg, rs6000_function_arg,
19402 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19403 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19404 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19405 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19406 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19407 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19408 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19409 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19410 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19411 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19412 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19413 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19414 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19415 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19416 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19417 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19418 get_element_number, altivec_expand_vec_set_builtin,
19419 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19420 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19421 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19422 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19423 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19424 rs6000_expand_builtin, rs6000_vector_type,
19425 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19426 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19427 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19428 to rs6000-call.c.
19429 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19430 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19431 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19432 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19433 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19434 init_cumulative_args, rs6000_promote_function_mode,
19435 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19436 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19437 rs6000_function_arg_boundary, rs6000_parm_offset,
19438 rs6000_parm_start, rs6000_arg_size,
19439 rs6000_darwin64_record_arg_advance_flush,
19440 rs6000_darwin64_record_arg_advance_recurse,
19441 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19442 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19443 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19444 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19445 rs6000_finish_function_arg, rs6000_function_arg,
19446 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19447 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19448 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19449 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19450 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19451 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19452 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19453 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19454 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19455 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19456 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19457 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19458 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19459 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19460 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19461 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19462 get_element_number, altivec_expand_vec_set_builtin,
19463 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19464 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19465 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19466 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19467 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19468 rs6000_expand_builtin, rs6000_vector_type,
19469 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19470 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19471 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19472 to here from rs6000.c.
19473 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19474 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19475 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19476 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19477 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19478 rs6000_return_in_memory, rs6000_return_in_msb,
19479 rs6000_pass_by_reference, setup_incoming_varargs,
19480 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19481 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19482 rs6000_function_arg_padding, rs6000_function_arg,
19483 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19484 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19485 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19486 rs6000_passes_long_double, rs6000_passes_vector,
19487 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19488 altivec_builtin_mask_for_load) Add declarations.
19489 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19490 * config/config.gcc: Add new source file rs6000-call.c to garbage
19491 collector and extra_objs.
19492
19493 2019-07-19 Jeff Law <law@redhat.com>
19494
19495 PR tree-optimization/86061
19496 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19497 strncpy. Drop some trivial dead code.
19498 (maybe_trim_memstar_call): Handle strncpy.
19499
19500 2019-07-19 Richard Biener <rguenther@suse.de>
19501
19502 PR tree-optimization/91211
19503 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19504 memset encoding size.
19505
19506 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19507
19508 PR target/91204
19509 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19510
19511 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19512
19513 PR ipa/91194
19514 * ipa-inline.c (recursive_inlining): Fix limits check.
19515
19516 2019-07-19 Richard Biener <rguenther@suse.de>
19517
19518 PR tree-optimization/91200
19519 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19520 no PHI nodes in middle-bb.
19521
19522 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19523
19524 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19525 to +sve-bitperm.
19526 * config/aarch64/aarch64-option-extensions.def: Likewise.
19527
19528 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19529
19530 PR middle-end/91190
19531 * function.c (insert_temp_slot_address): Store into the hash table
19532 a copy of address to avoid RTL sharing issues.
19533
19534 2019-07-19 Richard Biener <rguenther@suse.de>
19535
19536 PR tree-optimization/91207
19537 Revert
19538 2019-07-17 Richard Biener <rguenther@suse.de>
19539
19540 PR tree-optimization/91178
19541 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19542 loads with a gap larger than the vector size always use
19543 VMAT_STRIDED_SLP.
19544 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19545 avoid loading vectors that are only contained in the gap
19546 and thus are not needed.
19547
19548 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19549
19550 * config/i386/i386.md (*addqi_2_slp): Remove.
19551 (*<code>qi_2_slp): Ditto.
19552
19553 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19554
19555 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19556 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19557 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19558 Rename function from rs6000_prefixed_address.
19559 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19560 TARGET_HAS_TOC.
19561 (TARGET_TOC): Likewise.
19562 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19563 rs6000.h.
19564 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19565 TARGET_HAS_TOC.
19566 (TARGET_TOC): Likewise.
19567 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19568 rs6000.h.
19569 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19570 TARGET_HAS_TOC.
19571 (TARGET_TOC): Likewise.
19572 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19573 check to require -mcmodel=medium for pc-relative addressing.
19574 (create_TOC_reference): Add assertion for TARGET_TOC.
19575 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19576 TARGET_NO_TOC.
19577 (rs6000_emit_move): Likewise.
19578 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19579 to 'TOC_alias_set'.
19580 (get_TOC_alias_set): Likewise.
19581 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19582 TARGET_NO_TOC.
19583 (rs6000_can_eliminate): Likewise.
19584 (rs6000_prefixed_address_mode_p): Rename function from
19585 rs6000_prefixed_address.
19586 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19587 TARGET_HAS_TOC and not pc-relative.
19588 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19589 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19590 TARGET_HAS_TOC.
19591 (TARGET_TOC): Likewise.
19592 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19593 rs6000.h.
19594
19595 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19596
19597 PR target/91188
19598 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19599 for operand 0. Do not use (match_dup) to match operand 1 with
19600 operand 0. Add check in insn constraint that either input operand
19601 matches operand 0. Use SWI12 mode iterator to also handle
19602 HImode operands.
19603 (*and<mode>_1_slp): Ditto.
19604 (*<code>qi_1_slp): Ditto.
19605 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19606 Do not use (match_dup) to match operand 1 with operand 0. Add
19607 check in insn constraint that operand 1 matches operand 0.
19608 Use SWI12 mode iterator to also handle HImode operands.
19609 (*ashl<mode>3_1_slp): Ditto.
19610 (*<shift_insn><mode>3_1_slp): Ditto.
19611 (*<rotate_insn><mode>3_1_slp): Ditto.
19612
19613 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19614
19615 * config/arm/arm-builtins.c
19616 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19617 (arm_expand_unop_builtin): Likewise.
19618 * config/arm/crypto.md
19619 (crypto_sha1h): Convert from define_insn to define_expand.
19620 (crypto_<crypto_pattern>): Likewise.
19621 (crypto_sha1h_lb): New define_insn.
19622 (crypto_<crypto_pattern>_lb): Likewise.
19623
19624 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19625
19626 PR target/90317
19627 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19628 (vsha1cq_u32): Likewise.
19629 (vsha1pq_u32): Likewise.
19630 (vsha1mq_u32): Likewise.
19631 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19632 vec select.
19633 (crypto_sha1c): Correct vec select.
19634 (crypto_sha1m): Likewise.
19635 (crypto_sha1p): Likewise.
19636
19637 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19638
19639 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19640 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19641 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19642 (subdi_zesidi_zesidi): Likewise.
19643 (negdi2_compare, negdi2_insn): Likewise.
19644 (negdi_extensidi): Likewise.
19645 (negdi_zero_extendsidi): Likewise.
19646 (arm_cmpdi_insn): Likewise.
19647 (subsi3_carryin): Use arm_borrow_operation.
19648 (subsi3_carryin_const): Likewise.
19649 (subsi3_carryin_const0): Likewise.
19650 (subsi3_carryin_compare): Likewise.
19651 (subsi3_carryin_compare_const): Likewise.
19652 (subsi3_carryin_compare_const0): Likewise.
19653 (subsi3_carryin_shift): Likewise.
19654 (rsbsi3_carryin_shift): Likewise.
19655 (negsi2_carryin_compare): Likewise.
19656
19657 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19658
19659 PR tree-optimization/91137
19660 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19661 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19662 Init, use and fini the above new field.
19663 (determine_base_object_1): New function.
19664 (determine_base_object): Reimplement using walk_tree.
19665
19666 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19667
19668 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19669 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19670 CLEANUP_FORCE_FAST_DCE is set.
19671 * ifcvt.c (rest_of_handle_if_conversion): Pass
19672 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19673 if-conversion succeeded.
19674
19675 2019-07-18 Richard Biener <rguenther@suse.de>
19676
19677 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19678 branches to make code less indented.
19679
19680 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19681
19682 PR middle-end/81824
19683 * attribs.c (decls_mismatched_attributes): Simplify the logic
19684 that avoids duplicates and false positives.
19685
19686 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19687
19688 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19689 data into data section when generating PIC code.
19690 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19691 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19692 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19693 return 2 for SOM and 0 for other targets.
19694
19695 2019-07-17 Jeff Law <law@redhat.com>
19696
19697 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19698 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19699 avoid unexpected switch statement fallthru.
19700
19701 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19702
19703 * config/i386/i386.md (*add<dwi>3_doubleword):
19704 Remove redundant constraints.
19705 (*add<mode>_1): Ditto.
19706 (*addhi_1): Ditto.
19707 (*addqi_1): Ditto.
19708 (*addqi_1_slp): Ditto.
19709 (*add<mode>_2): Ditto.
19710 (*addv<mode>4): Ditto.
19711 (*sub<dwi>3_doubleword): Ditto.
19712 (*sub<mode>_1): Ditto.
19713 (*subqi_1_slp): Ditto.
19714 (*sub<mode>_2): Ditto.
19715 (*subv<mode>4): Ditto.
19716 (*sub<mode>_3): Ditto.
19717 (@add<mode>3_carry): Ditto.
19718 (@sub<mode>3_carry): Ditto.
19719 (*add<mode>3_cc_overflow_1): Ditto.
19720 (*add<mode>3_zext_cc_overflow_2): Ditto.
19721 (*anddi_1): Ditto.
19722 (*and<mode>_1): Ditto.
19723 (*andqi_1): Ditto.
19724 (*andqi_1_slp): Ditto.
19725 (*anddi_2): Ditto.
19726 (*andqi_2_maybe_si): Ditto.
19727 (*and<mode>_2): Ditto.
19728 (*andqi_2_slp): Ditto.
19729 (*<code><mode>_1): Ditto.
19730 (*<code>qi_1): Ditto.
19731 (*<code>qi_1_slp): Ditto.
19732 (*<code><mode>_2): Ditto.
19733 (*<code>qi_2_slp): Ditto.
19734
19735 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19736
19737 * alias.c (record_component_aliases): Do not simplify pointed-to
19738 types of ODR types.
19739
19740 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19741
19742 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19743 partial reg stall on alternative 2.
19744
19745 2019-07-17 Richard Biener <rguenther@suse.de>
19746
19747 PR tree-optimization/91178
19748 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19749 lower SSA names to avoid quadratic behavior in the common case.
19750 * tree-data-ref.c (split_constant_offset): Add limit argument
19751 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19752 (split_constant_offset_1): Add limit argument and use it to
19753 limit SSA def walking. Optimize the common plus/minus case.
19754
19755 2019-07-17 Richard Biener <rguenther@suse.de>
19756
19757 PR tree-optimization/91178
19758 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19759 loads with a gap larger than the vector size always use
19760 VMAT_STRIDED_SLP.
19761 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19762 avoid loading vectors that are only contained in the gap
19763 and thus are not needed.
19764
19765 2019-07-17 Richard Biener <rguenther@suse.de>
19766
19767 PR tree-optimization/91180
19768 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19769 computation for memset partial defs.
19770
19771 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19772
19773 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19774 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19775 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19776 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19777 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19778 * omp-grid.c (grid_process_grid_body,
19779 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19780 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19781 == GF_OMP_FOR_KIND_SIMD.
19782 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19783 check_omp_nesting_restrictions, scan_omp_1_stmt,
19784 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19785 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19786 omp_find_scan): Likewise.
19787 * omp-expand.c (expand_omp_for): Likewise.
19788 * omp-general.c (omp_extract_for_data): Likewise.
19789
19790 PR tree-optimization/91157
19791 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19792 a vector boolean with scalar mode.
19793 (expand_vector_condition): Handle first operand being a vector boolean
19794 with scalar mode.
19795 (expand_vector_operations_1): For comparisons, don't bail out early
19796 if the return type is vector boolean with scalar mode, but comparison
19797 operand type is not.
19798
19799 2019-07-17 Richard Biener <rguenther@suse.de>
19800
19801 PR tree-optimization/91181
19802 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19803 IFN_LOADs as calls.
19804
19805 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19806
19807 * config/i386/i386.md (*testdi_1): Match CCZmode for
19808 constants that might have the SImode sign bit set.
19809 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19810 Use correct constraints for pentium pairing.
19811 (*test<mode>_1): Ditto.
19812
19813 2019-07-16 Jeff Law <law@redhat.com>
19814
19815 PR rtl-optimization/91173
19816 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19817 SSA_NAME with a constant value, fold its value into the offset
19818 and clear the base before calling gen_addr_rtx.
19819
19820 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19821
19822 PR rtl-optimization/91164
19823 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19824 invalidate dominance info.
19825
19826 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19827
19828 * read-md.h (md_reader::record_potential_iterator_use): Add a
19829 file_location parameter.
19830 * read-rtl.c (attribute_use::loc): New field.
19831 (map_attr_string): Take a file_location parameter. Report cases
19832 in which attributes map to multiple distinct values.
19833 (apply_attribute_uses): Update call accordingly.
19834 (md_reader::handle_overloaded_name): Likewise.
19835 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19836 nonnull strings.
19837 (record_attribute_use): Take a file_location parameter.
19838 Initialize attribute_use::loc.
19839 (md_reader::record_potential_iterator_use): Take a file_location
19840 parameter. Update call to record_attribute_use.
19841 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19842 (rtx_reader::read_rtx_code): Likewise.
19843 (rtx_reader::read_rtx_operand): Likewise. Record a location
19844 for implicitly-expanded empty strings.
19845
19846 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19847
19848 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19849 Use file_location instead of separate fields.
19850 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19851 separate filename and line number.
19852 * read-md.c (ptr_loc): As above.
19853 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19854 (md_reader::fprint_md_ptr_loc): Likewise.
19855 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19856 instead of a separate filename and line number.
19857 (md_reader::read_string): Update call accordingly.
19858
19859 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19860
19861 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19862 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19863 leaving the choice between SFDF and P implicit.
19864 (*mov<mode>_update2): Likewise.
19865 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19866 rather than leaving the choice betweem IBM128 and GPR implicit.
19867 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19868 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19869 QHSI implicit.
19870 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19871 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19872 * config/rs6000/vsx.md
19873 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19874 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19875 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19876 and VSX_EXTRACT_I implicit.
19877
19878 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19879
19880 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19881 Explicitly use <MOVEP1:MODE> for the mode attribute.
19882
19883 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19884
19885 PR bootstrap/91176
19886 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19887
19888 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19889
19890 PR target/91050
19891 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19892 .machine directive.
19893
19894 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19895
19896 * config/i386/i386.md (@test<mode>_ccno_1):
19897 Rename from test<mode>_ccno_1.
19898 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19899 (*testqi_1_maybe_si): Remove modrm attribute.
19900 (*test<mode>_1): Ditto.
19901 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19902 gen_test_ccno_1 and gen_extend_insn.
19903
19904 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19905
19906 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19907 to 0.
19908
19909 2019-07-15 Richard Biener <rguenther@suse.de>
19910
19911 PR middle-end/91162
19912 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19913 node make sure to replace all uses with something valid.
19914
19915 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19916
19917 PR tree-optimization/88497
19918 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19919 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19920 function undistribute_bitref_for_vector.
19921 (undistribute_bitref_for_vector): New function.
19922 (cleanup_vinfo_map): Likewise.
19923 (sort_by_mach_mode): Likewise.
19924
19925 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19926
19927 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19928 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19929 and testdi_ccno_1 using SWI48 mode attribute.
19930 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19931 x86_64_szext_general_operand.
19932 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19933 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19934 instead of genera_operand mode attribute.
19935
19936 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19937
19938 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19939 fopen and fclose to their respective types.
19940 (DotFn.invoke): Ditto.
19941
19942 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19943
19944 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19945 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19946 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19947 (array_index_predicate): Remove.
19948 (analyze_function_body): Account cost for variable ofsetted array
19949 indexing.
19950 (estimate_node_size_and_time): Do not compute array index hint.
19951 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19952 (inline_read_section): Do not read array index hint.
19953 (ipa_fn_summary_write): Do not write array index hint.
19954 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19955 * ipa-cp.c (hint_time_bonus): Remove.
19956 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19957 (ipa_fnsummary): Remove array_index.
19958 * ipa-inline.c (want_inline_small_function_p): Do not use
19959 array_index.
19960 (edge_badness): Likewise.
19961 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19962
19963 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19964
19965 PR target/91148
19966 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19967 superfluous "builtin function" phrasing.
19968
19969 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19970
19971 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19972 Break out from ...
19973 (aliasing_component_refs_walk): Break out from ...
19974 (aliasing_component_refs_p): ... here.
19975
19976 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19977
19978 PR target/91148
19979 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19980 "builtin function" phrasing.
19981
19982 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19983
19984 PR target/90723
19985 * recog.h (temporary_volatile_ok): New class.
19986 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19987 volatile_ok temporarily to true using temporary_volatile_ok.
19988 * expr.c (emit_block_move_via_cpymem): Likewise.
19989 * optabs.c (maybe_legitimize_operand): Likewise.
19990
19991 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19992
19993 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19994 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19995 uses inside of order(concurrent) constructs.
19996 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19997 OMP_CLAUSE_ORDER is seen.
19998 * omp-low.c (struct omp_context): Add order_concurrent member.
19999 (scan_sharing_clauses): Set ctx->order_concurrent if
20000 OMP_CLAUSE_ORDER is seen.
20001 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
20002 of simd order(concurrent). Diagnose constructs not allowed inside of
20003 for order(concurrent).
20004 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
20005 complaining about static double setjmp (double); or class static
20006 methods or non-global namespace setjmps.
20007 (omp_runtime_api_call): New function.
20008 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
20009 order(concurrent) loops.
20010
20011 2019-07-12 Martin Sebor <msebor@redhat.com>
20012
20013 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
20014 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
20015 * tree-vrp.c (vrp_prop::check_mem_ref): Use
20016 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
20017
20018 2019-07-12 Jan Hubicka <jh@suse.cz>
20019
20020 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
20021 (indirect_refs_may_alias_p): ... here.
20022 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
20023 mem refs in the access paths.
20024
20025 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
20026
20027 PR tree-optimization/89430
20028 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
20029 store elimination for local variable without address escape.
20030
20031 2019-07-12 Jeff Law <law@redhat.com>
20032
20033 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
20034 for the ".far" section.
20035
20036 2019-07-12 Richard Biener <rguenther@suse.de>
20037
20038 PR tree-optimization/91145
20039 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
20040 chain check.
20041
20042 2019-07-12 Alexandre Oliva <oliva@adacore.com>
20043
20044 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
20045 rather than this_state as the lowering context for the ELSE
20046 seq in a GIMPLE_EH_ELSE.
20047
20048 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20049
20050 * vector-builder.h (vector_builder::elt): Allow already-supplied
20051 elements to be read back before building is complete.
20052
20053 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20054
20055 PR rtl-optimization/91136
20056 * df-core.c (ACCESSING REFS): Fix typos in comment.
20057 * resource.c (mark_target_live_reg): Add artificial defs that occur at
20058 the beginning of the block to the initial set of live registers.
20059
20060 2019-07-12 Richard Biener <rguenther@suse.de>
20061
20062 * fold-const.h (get_array_ctor_element_at_index): Adjust.
20063 * fold-const.c (get_array_ctor_element_at_index): Add
20064 ctor_idx output parameter informing the caller where in
20065 the constructor the element was (not) found. Add early exit
20066 for when the ctor is sorted.
20067 * gimple-fold.c (fold_array_ctor_reference): Support constant
20068 folding across multiple array elements.
20069
20070 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20071
20072 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
20073 doesn't have location, set the current location to the function's end.
20074
20075 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20076
20077 * config/aarch64/aarch64.md (*compare_condjump<mode>)
20078 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
20079 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
20080 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
20081 * config/aarch64/aarch64-simd.md
20082 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
20083 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
20084 * config/aarch64/aarch64-sve.md
20085 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
20086 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
20087
20088 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20089
20090 * doc/md.texi: Document that @ patterns can have different
20091 numbers of operands.
20092 * genemit.c (handle_overloaded_gen): Handle this case.
20093 * genopinit.c (handle_overloaded_gen): Likewise.
20094 * gensupport.c (replace_operands_with_dups): Iterate over
20095 the new rtx's format rather than the old one's.
20096
20097 2019-07-12 Jakub Jelinek <jakub@redhat.com>
20098
20099 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
20100 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
20101 order clause entries.
20102 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
20103 * tree-pretty-print.c (dump_omp_clause): Likewise.
20104 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
20105 Likewise.
20106 * omp-low.c (scan_sharing_clauses): Likewise.
20107 * tree-nested.c (convert_nonlocal_omp_clauses,
20108 convert_local_omp_clauses): Likewise.
20109
20110 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
20111
20112 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
20113 fallthrough target of current basic block isn't the placed
20114 right next.
20115
20116 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
20117
20118 PR target/90980
20119 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
20120 (_mm512_storeu_epi64): Likewise.
20121 (_mm512_loadu_epi32): Likewise.
20122 (_mm512_storeu_epi32): Likewise.
20123 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
20124 (_mm_storeu_epi64): Likewise.
20125 (_mm256_storeu_epi32): Likewise.
20126 (_mm_storeu_epi32): Likewise.
20127
20128 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20129
20130 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
20131
20132 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20133
20134 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
20135 Handle Modula-2.
20136
20137 2019-07-11 Jakub Jelinek <jakub@redhat.com>
20138
20139 PR target/91124
20140 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
20141 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20142 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
20143 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
20144 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
20145 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
20146 define_insns.
20147 (ufix_truncv2dfv2si2<mask_name>): Change into ...
20148 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
20149 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
20150 define_insns.
20151 (sse2_cvttpd2dq<mask_name>): Change into ...
20152 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
20153 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
20154 (*sse2_cvtpd2dq<mask_name>): Change into ...
20155 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20156 Add "C" constraint to const0_operand.
20157 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
20158 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
20159 changes.
20160
20161 PR target/91124
20162 * config/i386/i386-builtin-types.def
20163 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
20164 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
20165 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
20166 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
20167 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
20168 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
20169 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
20170 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
20171 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
20172 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
20173 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
20174 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
20175 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
20176 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
20177 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
20178 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
20179 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
20180 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
20181 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
20182 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
20183 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
20184 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
20185 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
20186 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
20187 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
20188 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
20189 __builtin_ia32_vpdpbusd_v4si_maskz,
20190 __builtin_ia32_vpdpbusds_v16si_mask,
20191 __builtin_ia32_vpdpbusds_v16si_maskz,
20192 __builtin_ia32_vpdpbusds_v8si_mask,
20193 __builtin_ia32_vpdpbusds_v8si_maskz,
20194 __builtin_ia32_vpdpbusds_v4si_mask,
20195 __builtin_ia32_vpdpbusds_v4si_maskz,
20196 __builtin_ia32_vpdpwssd_v16si_mask,
20197 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
20198 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
20199 __builtin_ia32_vpdpwssd_v4si_maskz,
20200 __builtin_ia32_vpdpwssds_v16si_mask,
20201 __builtin_ia32_vpdpwssds_v16si_maskz,
20202 __builtin_ia32_vpdpwssds_v8si_mask,
20203 __builtin_ia32_vpdpwssds_v8si_maskz,
20204 __builtin_ia32_vpdpwssds_v4si_mask,
20205 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
20206 suffixed types rather than *_INT.
20207 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
20208 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
20209 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
20210 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
20211 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
20212 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
20213
20214 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
20215
20216 * tree-vrp.c (intersect_ranges): If we know the intersection is
20217 empty, there is no need to conservatively add anything else to
20218 the set.
20219
20220 2019-07-11 Richard Biener <rguenther@suse.de>
20221
20222 PR middle-end/91131
20223 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
20224 when the object is volatile and we have not cleared it even though
20225 there are no nonzero elements.
20226
20227 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
20228
20229 * config/rs6000/predicates.md (cint34_operand): Update
20230 SIGNED_34BIT_OFFSET_P call.
20231 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
20232 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
20233 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
20234 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
20235 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
20236 argument.
20237 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
20238 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
20239 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
20240 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
20241 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
20242
20243 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
20244
20245 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
20246 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
20247 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
20248 (DEF_MIN_OSX_VERSION): New.
20249
20250 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20251
20252 * fold-const.c (fold_relational_const): Fix folding of
20253 vector-to-scalar NE_EXPRs.
20254 (test_vector_folding): Add more tests.
20255
20256 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20257
20258 PR target/91060
20259 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
20260 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
20261 (vec_setv2di_internal): Reexpress as...
20262 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
20263 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
20264 rather than gen_neon_vset_lane<mode>.
20265
20266 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
20267
20268 PR target/91102
20269 * lra-constraints.c (process_alt_operands): Don't match user
20270 defined regs only if they are early clobbers.
20271
20272 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
20273
20274 * wide-int.h (wi::lshift): Reject negative values for the fast path.
20275
20276 2019-07-10 Richard Biener <rguenther@suse.de>
20277
20278 PR tree-optimization/91126
20279 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
20280 native encoding offset for BYTES_BIG_ENDIAN.
20281 (vn_reference_lookup_3): Likewise.
20282
20283 2019-07-10 Richard Biener <rguenther@suse.de>
20284
20285 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
20286 LHS whenever possible.
20287
20288 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
20289
20290 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
20291 from ...; work also on duplicated types.
20292 (nonoverlapping_component_refs_since_match): ... here
20293 (ncr_type_uid): Break out from ...
20294 (ncr_compar): ... here; look for TYPE_UID of canonical type if
20295 available.
20296 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
20297 the types and nonoverlapping_component_refs_p_1 to disambiguate.
20298
20299 2019-07-09 Martin Sebor <msebor@redhat.com>
20300
20301 PR tree-optimization/90989
20302 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
20303 optimization to just single character stores.
20304
20305 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
20306
20307 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
20308 Swap operands only once.
20309
20310 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
20311
20312 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
20313 for both call instructions.
20314
20315 2019-07-09 John Darrington <john@darrington.wattle.id.au>
20316
20317 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
20318 rather than GET_MODE_BITSIZE to better handle partial integer modes.
20319
20320 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
20321
20322 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
20323 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
20324 function from rs6000-logue.c back to rs6000.c.
20325 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
20326
20327 2019-07-09 Martin Sebor <msebor@redhat.com>
20328
20329 PR c++/61339
20330 * auto-profile.c: Change class-key of PODs to struct and others
20331 to class.
20332 * basic-block.h: Same.
20333 * bitmap.c (bitmap_alloc): Same.
20334 * bitmap.h: Same.
20335 * builtins.c (expand_builtin_prefetch): Same.
20336 (expand_builtin_interclass_mathfn): Same.
20337 (expand_builtin_strlen): Same.
20338 (expand_builtin_mempcpy_args): Same.
20339 (expand_cmpstr): Same.
20340 (expand_builtin___clear_cache): Same.
20341 (expand_ifn_atomic_bit_test_and): Same.
20342 (expand_builtin_thread_pointer): Same.
20343 (expand_builtin_set_thread_pointer): Same.
20344 * caller-save.c (setup_save_areas): Same.
20345 (replace_reg_with_saved_mem): Same.
20346 (insert_restore): Same.
20347 (insert_save): Same.
20348 (add_used_regs): Same.
20349 * cfg.c (get_bb_copy): Same.
20350 (set_loop_copy): Same.
20351 * cfg.h: Same.
20352 * cfganal.h: Same.
20353 * cfgexpand.c (alloc_stack_frame_space): Same.
20354 (add_stack_var): Same.
20355 (add_stack_var_conflict): Same.
20356 (add_scope_conflicts_1): Same.
20357 (update_alias_info_with_stack_vars): Same.
20358 (expand_used_vars): Same.
20359 * cfghooks.c (redirect_edge_and_branch_force): Same.
20360 (delete_basic_block): Same.
20361 (split_edge): Same.
20362 (make_forwarder_block): Same.
20363 (force_nonfallthru): Same.
20364 (duplicate_block): Same.
20365 (lv_flush_pending_stmts): Same.
20366 * cfghooks.h: Same.
20367 * cfgloop.c (flow_loops_cfg_dump): Same.
20368 (flow_loop_nested_p): Same.
20369 (superloop_at_depth): Same.
20370 (get_loop_latch_edges): Same.
20371 (flow_loop_dump): Same.
20372 (flow_loops_dump): Same.
20373 (flow_loops_free): Same.
20374 (flow_loop_nodes_find): Same.
20375 (establish_preds): Same.
20376 (flow_loop_tree_node_add): Same.
20377 (flow_loop_tree_node_remove): Same.
20378 (flow_loops_find): Same.
20379 (find_subloop_latch_edge_by_profile): Same.
20380 (find_subloop_latch_edge_by_ivs): Same.
20381 (mfb_redirect_edges_in_set): Same.
20382 (form_subloop): Same.
20383 (merge_latch_edges): Same.
20384 (disambiguate_multiple_latches): Same.
20385 (disambiguate_loops_with_multiple_latches): Same.
20386 (flow_bb_inside_loop_p): Same.
20387 (glb_enum_p): Same.
20388 (get_loop_body_with_size): Same.
20389 (get_loop_body): Same.
20390 (fill_sons_in_loop): Same.
20391 (get_loop_body_in_dom_order): Same.
20392 (get_loop_body_in_custom_order): Same.
20393 (release_recorded_exits): Same.
20394 (get_loop_exit_edges): Same.
20395 (num_loop_branches): Same.
20396 (remove_bb_from_loops): Same.
20397 (find_common_loop): Same.
20398 (delete_loop): Same.
20399 (cancel_loop): Same.
20400 (verify_loop_structure): Same.
20401 (loop_preheader_edge): Same.
20402 (loop_exit_edge_p): Same.
20403 (single_exit): Same.
20404 (loop_exits_to_bb_p): Same.
20405 (loop_exits_from_bb_p): Same.
20406 (get_loop_location): Same.
20407 (record_niter_bound): Same.
20408 (get_estimated_loop_iterations_int): Same.
20409 (max_stmt_executions_int): Same.
20410 (likely_max_stmt_executions_int): Same.
20411 (get_estimated_loop_iterations): Same.
20412 (get_max_loop_iterations): Same.
20413 (get_max_loop_iterations_int): Same.
20414 (get_likely_max_loop_iterations): Same.
20415 * cfgloop.h (simple_loop_desc): Same.
20416 (get_loop): Same.
20417 (loop_depth): Same.
20418 (loop_outer): Same.
20419 (loop_iterator::next): Same.
20420 (loop_outermost): Same.
20421 * cfgloopanal.c (mark_irreducible_loops): Same.
20422 (num_loop_insns): Same.
20423 (average_num_loop_insns): Same.
20424 (expected_loop_iterations_unbounded): Same.
20425 (expected_loop_iterations): Same.
20426 (mark_loop_exit_edges): Same.
20427 (single_likely_exit): Same.
20428 * cfgloopmanip.c (fix_bb_placement): Same.
20429 (fix_bb_placements): Same.
20430 (remove_path): Same.
20431 (place_new_loop): Same.
20432 (add_loop): Same.
20433 (scale_loop_frequencies): Same.
20434 (scale_loop_profile): Same.
20435 (create_empty_if_region_on_edge): Same.
20436 (create_empty_loop_on_edge): Same.
20437 (loopify): Same.
20438 (unloop): Same.
20439 (fix_loop_placements): Same.
20440 (copy_loop_info): Same.
20441 (duplicate_loop): Same.
20442 (duplicate_subloops): Same.
20443 (loop_redirect_edge): Same.
20444 (can_duplicate_loop_p): Same.
20445 (duplicate_loop_to_header_edge): Same.
20446 (mfb_keep_just): Same.
20447 (has_preds_from_loop): Same.
20448 (create_preheader): Same.
20449 (create_preheaders): Same.
20450 (lv_adjust_loop_entry_edge): Same.
20451 (loop_version): Same.
20452 * cfgloopmanip.h: Same.
20453 * cgraph.h: Same.
20454 * cgraphbuild.c: Same.
20455 * combine.c (make_extraction): Same.
20456 * config/i386/i386-features.c: Same.
20457 * config/i386/i386-features.h: Same.
20458 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20459 (ix86_emit_outlined_ms2sysv_restore): Same.
20460 (ix86_noce_conversion_profitable_p): Same.
20461 (ix86_init_cost): Same.
20462 (ix86_simd_clone_usable): Same.
20463 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20464 Wstruct-not-pod.
20465 * coretypes.h: Same.
20466 * data-streamer-in.c (string_for_index): Change class-key of PODs
20467 to struct and others to class.
20468 (streamer_read_indexed_string): Same.
20469 (streamer_read_string): Same.
20470 (bp_unpack_indexed_string): Same.
20471 (bp_unpack_string): Same.
20472 (streamer_read_uhwi): Same.
20473 (streamer_read_hwi): Same.
20474 (streamer_read_gcov_count): Same.
20475 (streamer_read_wide_int): Same.
20476 * data-streamer.h (streamer_write_bitpack): Same.
20477 (bp_unpack_value): Same.
20478 (streamer_write_char_stream): Same.
20479 (streamer_write_hwi_in_range): Same.
20480 (streamer_write_record_start): Same.
20481 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20482 (add_cross_iteration_register_deps): Same.
20483 (build_intra_loop_deps): Same.
20484 * df-core.c (df_analyze): Same.
20485 (loop_post_order_compute): Same.
20486 (loop_inverted_post_order_compute): Same.
20487 * df-problems.c (df_rd_alloc): Same.
20488 (df_rd_simulate_one_insn): Same.
20489 (df_rd_local_compute): Same.
20490 (df_rd_init_solution): Same.
20491 (df_rd_confluence_n): Same.
20492 (df_rd_transfer_function): Same.
20493 (df_rd_free): Same.
20494 (df_rd_dump_defs_set): Same.
20495 (df_rd_top_dump): Same.
20496 (df_lr_alloc): Same.
20497 (df_lr_reset): Same.
20498 (df_lr_local_compute): Same.
20499 (df_lr_init): Same.
20500 (df_lr_confluence_n): Same.
20501 (df_lr_free): Same.
20502 (df_lr_top_dump): Same.
20503 (df_lr_verify_transfer_functions): Same.
20504 (df_live_alloc): Same.
20505 (df_live_reset): Same.
20506 (df_live_init): Same.
20507 (df_live_confluence_n): Same.
20508 (df_live_finalize): Same.
20509 (df_live_free): Same.
20510 (df_live_top_dump): Same.
20511 (df_live_verify_transfer_functions): Same.
20512 (df_mir_alloc): Same.
20513 (df_mir_reset): Same.
20514 (df_mir_init): Same.
20515 (df_mir_confluence_n): Same.
20516 (df_mir_free): Same.
20517 (df_mir_top_dump): Same.
20518 (df_word_lr_alloc): Same.
20519 (df_word_lr_reset): Same.
20520 (df_word_lr_init): Same.
20521 (df_word_lr_confluence_n): Same.
20522 (df_word_lr_free): Same.
20523 (df_word_lr_top_dump): Same.
20524 (df_md_alloc): Same.
20525 (df_md_simulate_one_insn): Same.
20526 (df_md_reset): Same.
20527 (df_md_init): Same.
20528 (df_md_free): Same.
20529 (df_md_top_dump): Same.
20530 * df-scan.c (df_insn_delete): Same.
20531 (df_insn_rescan): Same.
20532 (df_notes_rescan): Same.
20533 (df_sort_and_compress_mws): Same.
20534 (df_install_mws): Same.
20535 (df_refs_add_to_chains): Same.
20536 (df_ref_create_structure): Same.
20537 (df_ref_record): Same.
20538 (df_def_record_1): Same.
20539 (df_find_hard_reg_defs): Same.
20540 (df_uses_record): Same.
20541 (df_get_conditional_uses): Same.
20542 (df_get_call_refs): Same.
20543 (df_recompute_luids): Same.
20544 (df_get_entry_block_def_set): Same.
20545 (df_entry_block_defs_collect): Same.
20546 (df_get_exit_block_use_set): Same.
20547 (df_exit_block_uses_collect): Same.
20548 (df_mws_verify): Same.
20549 (df_bb_verify): Same.
20550 * df.h (df_scan_get_bb_info): Same.
20551 * doc/tm.texi: Same.
20552 * dse.c (record_store): Same.
20553 * dumpfile.h: Same.
20554 * emit-rtl.c (const_fixed_hasher::equal): Same.
20555 (set_mem_attributes_minus_bitpos): Same.
20556 (change_address): Same.
20557 (adjust_address_1): Same.
20558 (offset_address): Same.
20559 * emit-rtl.h: Same.
20560 * except.c (dw2_build_landing_pads): Same.
20561 (sjlj_emit_dispatch_table): Same.
20562 * explow.c (allocate_dynamic_stack_space): Same.
20563 (emit_stack_probe): Same.
20564 (probe_stack_range): Same.
20565 * expmed.c (store_bit_field_using_insv): Same.
20566 (store_bit_field_1): Same.
20567 (store_integral_bit_field): Same.
20568 (extract_bit_field_using_extv): Same.
20569 (extract_bit_field_1): Same.
20570 (emit_cstore): Same.
20571 * expr.c (emit_block_move_via_cpymem): Same.
20572 (expand_cmpstrn_or_cmpmem): Same.
20573 (set_storage_via_setmem): Same.
20574 (emit_single_push_insn_1): Same.
20575 (expand_assignment): Same.
20576 (store_constructor): Same.
20577 (expand_expr_real_2): Same.
20578 (expand_expr_real_1): Same.
20579 (try_casesi): Same.
20580 * flags.h: Same.
20581 * function.c (try_fit_stack_local): Same.
20582 (assign_stack_local_1): Same.
20583 (assign_stack_local): Same.
20584 (cut_slot_from_list): Same.
20585 (insert_slot_to_list): Same.
20586 (max_slot_level): Same.
20587 (move_slot_to_level): Same.
20588 (temp_address_hasher::equal): Same.
20589 (remove_unused_temp_slot_addresses): Same.
20590 (assign_temp): Same.
20591 (combine_temp_slots): Same.
20592 (update_temp_slot_address): Same.
20593 (preserve_temp_slots): Same.
20594 * function.h: Same.
20595 * fwprop.c: Same.
20596 * gcc-rich-location.h: Same.
20597 * gcov.c: Same.
20598 * genattrtab.c (check_attr_test): Same.
20599 (check_attr_value): Same.
20600 (convert_set_attr_alternative): Same.
20601 (convert_set_attr): Same.
20602 (check_defs): Same.
20603 (copy_boolean): Same.
20604 (get_attr_value): Same.
20605 (expand_delays): Same.
20606 (make_length_attrs): Same.
20607 (min_fn): Same.
20608 (make_alternative_compare): Same.
20609 (simplify_test_exp): Same.
20610 (tests_attr_p): Same.
20611 (get_attr_order): Same.
20612 (clear_struct_flag): Same.
20613 (gen_attr): Same.
20614 (compares_alternatives_p): Same.
20615 (gen_insn): Same.
20616 (gen_delay): Same.
20617 (find_attrs_to_cache): Same.
20618 (write_test_expr): Same.
20619 (walk_attr_value): Same.
20620 (write_attr_get): Same.
20621 (eliminate_known_true): Same.
20622 (write_insn_cases): Same.
20623 (write_attr_case): Same.
20624 (write_attr_valueq): Same.
20625 (write_attr_value): Same.
20626 (write_dummy_eligible_delay): Same.
20627 (next_comma_elt): Same.
20628 (find_attr): Same.
20629 (make_internal_attr): Same.
20630 (copy_rtx_unchanging): Same.
20631 (gen_insn_reserv): Same.
20632 (check_tune_attr): Same.
20633 (make_automaton_attrs): Same.
20634 (handle_arg): Same.
20635 * genextract.c (gen_insn): Same.
20636 (VEC_char_to_string): Same.
20637 * genmatch.c (print_operand): Same.
20638 (lower): Same.
20639 (parser::parse_operation): Same.
20640 (parser::parse_capture): Same.
20641 (parser::parse_c_expr): Same.
20642 (parser::parse_simplify): Same.
20643 (main): Same.
20644 * genoutput.c (output_operand_data): Same.
20645 (output_get_insn_name): Same.
20646 (compare_operands): Same.
20647 (place_operands): Same.
20648 (process_template): Same.
20649 (validate_insn_alternatives): Same.
20650 (validate_insn_operands): Same.
20651 (gen_expand): Same.
20652 (note_constraint): Same.
20653 * genpreds.c (write_one_predicate_function): Same.
20654 (add_constraint): Same.
20655 (process_define_register_constraint): Same.
20656 (write_lookup_constraint_1): Same.
20657 (write_lookup_constraint_array): Same.
20658 (write_insn_constraint_len): Same.
20659 (write_reg_class_for_constraint_1): Same.
20660 (write_constraint_satisfied_p_array): Same.
20661 * genrecog.c (optimize_subroutine_group): Same.
20662 * gensupport.c (process_define_predicate): Same.
20663 (queue_pattern): Same.
20664 (remove_from_queue): Same.
20665 (process_rtx): Same.
20666 (is_predicable): Same.
20667 (change_subst_attribute): Same.
20668 (subst_pattern_match): Same.
20669 (alter_constraints): Same.
20670 (alter_attrs_for_insn): Same.
20671 (shift_output_template): Same.
20672 (alter_output_for_subst_insn): Same.
20673 (process_one_cond_exec): Same.
20674 (subst_dup): Same.
20675 (process_define_cond_exec): Same.
20676 (mnemonic_htab_callback): Same.
20677 (gen_mnemonic_attr): Same.
20678 (read_md_rtx): Same.
20679 * ggc-page.c: Same.
20680 * gimple-loop-interchange.cc (dump_reduction): Same.
20681 (dump_induction): Same.
20682 (loop_cand::~loop_cand): Same.
20683 (free_data_refs_with_aux): Same.
20684 (tree_loop_interchange::interchange_loops): Same.
20685 (tree_loop_interchange::map_inductions_to_loop): Same.
20686 (tree_loop_interchange::move_code_to_inner_loop): Same.
20687 (compute_access_stride): Same.
20688 (compute_access_strides): Same.
20689 (proper_loop_form_for_interchange): Same.
20690 (tree_loop_interchange_compute_ddrs): Same.
20691 (prune_datarefs_not_in_loop): Same.
20692 (prepare_data_references): Same.
20693 (pass_linterchange::execute): Same.
20694 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20695 (unroll_jam_possible_p): Same.
20696 (fuse_loops): Same.
20697 (adjust_unroll_factor): Same.
20698 (tree_loop_unroll_and_jam): Same.
20699 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20700 (loop_versioning::expensive_stmt_p): Same.
20701 (loop_versioning::version_for_unity): Same.
20702 (loop_versioning::dump_inner_likelihood): Same.
20703 (loop_versioning::find_per_loop_multiplication): Same.
20704 (loop_versioning::analyze_term_using_scevs): Same.
20705 (loop_versioning::record_address_fragment): Same.
20706 (loop_versioning::analyze_expr): Same.
20707 (loop_versioning::analyze_blocks): Same.
20708 (loop_versioning::prune_conditions): Same.
20709 (loop_versioning::merge_loop_info): Same.
20710 (loop_versioning::add_loop_to_queue): Same.
20711 (loop_versioning::decide_whether_loop_is_versionable): Same.
20712 (loop_versioning::make_versioning_decisions): Same.
20713 (loop_versioning::implement_versioning_decisions): Same.
20714 * gimple-ssa-evrp-analyze.c
20715 (evrp_range_analyzer::record_ranges_from_phis): Same.
20716 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20717 (count_multiple_uses): Same.
20718 (split_group): Same.
20719 (imm_store_chain_info::output_merged_store): Same.
20720 (pass_store_merging::process_store): Same.
20721 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20722 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20723 (is_max): Same.
20724 (alloca_call_type): Same.
20725 (pass_walloca::execute): Same.
20726 * gimple-streamer-in.c (input_phi): Same.
20727 (input_gimple_stmt): Same.
20728 * gimple-streamer.h: Same.
20729 * godump.c (go_force_record_alignment): Same.
20730 (go_format_type): Same.
20731 (go_output_type): Same.
20732 (go_output_fndecl): Same.
20733 (go_output_typedef): Same.
20734 (keyword_hash_init): Same.
20735 (find_dummy_types): Same.
20736 * graph.c (draw_cfg_nodes_no_loops): Same.
20737 (draw_cfg_nodes_for_loop): Same.
20738 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20739 * hsa-brig.c: Same.
20740 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20741 * hsa-dump.c (dump_hsa_cfun): Same.
20742 * hsa-gen.c (gen_function_def_parameters): Same.
20743 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20744 * input.c (dump_line_table_statistics): Same.
20745 (test_lexer): Same.
20746 * input.h: Same.
20747 * internal-fn.c (get_multi_vector_move): Same.
20748 (expand_load_lanes_optab_fn): Same.
20749 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20750 (expand_GOMP_SIMT_EXIT): Same.
20751 (expand_GOMP_SIMT_LAST_LANE): Same.
20752 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20753 (expand_GOMP_SIMT_VOTE_ANY): Same.
20754 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20755 (expand_GOMP_SIMT_XCHG_IDX): Same.
20756 (expand_addsub_overflow): Same.
20757 (expand_neg_overflow): Same.
20758 (expand_mul_overflow): Same.
20759 (expand_call_mem_ref): Same.
20760 (expand_mask_load_optab_fn): Same.
20761 (expand_scatter_store_optab_fn): Same.
20762 (expand_gather_load_optab_fn): Same.
20763 * ipa-cp.c (ipa_get_parm_lattices): Same.
20764 (print_all_lattices): Same.
20765 (ignore_edge_p): Same.
20766 (build_toporder_info): Same.
20767 (free_toporder_info): Same.
20768 (push_node_to_stack): Same.
20769 (ipcp_lattice<valtype>::set_contains_variable): Same.
20770 (set_agg_lats_to_bottom): Same.
20771 (ipcp_bits_lattice::meet_with): Same.
20772 (set_single_call_flag): Same.
20773 (initialize_node_lattices): Same.
20774 (ipa_get_jf_ancestor_result): Same.
20775 (ipcp_verify_propagated_values): Same.
20776 (propagate_scalar_across_jump_function): Same.
20777 (propagate_context_across_jump_function): Same.
20778 (propagate_bits_across_jump_function): Same.
20779 (ipa_vr_operation_and_type_effects): Same.
20780 (propagate_vr_across_jump_function): Same.
20781 (set_check_aggs_by_ref): Same.
20782 (set_chain_of_aglats_contains_variable): Same.
20783 (merge_aggregate_lattices): Same.
20784 (agg_pass_through_permissible_p): Same.
20785 (propagate_aggs_across_jump_function): Same.
20786 (call_passes_through_thunk_p): Same.
20787 (propagate_constants_across_call): Same.
20788 (devirtualization_time_bonus): Same.
20789 (good_cloning_opportunity_p): Same.
20790 (context_independent_aggregate_values): Same.
20791 (gather_context_independent_values): Same.
20792 (perform_estimation_of_a_value): Same.
20793 (estimate_local_effects): Same.
20794 (value_topo_info<valtype>::add_val): Same.
20795 (add_all_node_vals_to_toposort): Same.
20796 (value_topo_info<valtype>::propagate_effects): Same.
20797 (ipcp_propagate_stage): Same.
20798 (ipcp_discover_new_direct_edges): Same.
20799 (same_node_or_its_all_contexts_clone_p): Same.
20800 (cgraph_edge_brings_value_p): Same.
20801 (gather_edges_for_value): Same.
20802 (create_specialized_node): Same.
20803 (find_more_scalar_values_for_callers_subset): Same.
20804 (find_more_contexts_for_caller_subset): Same.
20805 (copy_plats_to_inter): Same.
20806 (intersect_aggregates_with_edge): Same.
20807 (find_aggregate_values_for_callers_subset): Same.
20808 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20809 (decide_about_value): Same.
20810 (decide_whether_version_node): Same.
20811 (spread_undeadness): Same.
20812 (identify_dead_nodes): Same.
20813 (ipcp_store_vr_results): Same.
20814 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20815 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20816 (redirect_to_unreachable): Same.
20817 (edge_set_predicate): Same.
20818 (evaluate_conditions_for_known_args): Same.
20819 (evaluate_properties_for_edge): Same.
20820 (ipa_fn_summary_t::duplicate): Same.
20821 (ipa_call_summary_t::duplicate): Same.
20822 (dump_ipa_call_summary): Same.
20823 (ipa_dump_fn_summary): Same.
20824 (eliminated_by_inlining_prob): Same.
20825 (set_cond_stmt_execution_predicate): Same.
20826 (set_switch_stmt_execution_predicate): Same.
20827 (compute_bb_predicates): Same.
20828 (will_be_nonconstant_expr_predicate): Same.
20829 (phi_result_unknown_predicate): Same.
20830 (analyze_function_body): Same.
20831 (compute_fn_summary): Same.
20832 (estimate_edge_devirt_benefit): Same.
20833 (estimate_edge_size_and_time): Same.
20834 (estimate_calls_size_and_time): Same.
20835 (estimate_node_size_and_time): Same.
20836 (remap_edge_change_prob): Same.
20837 (remap_edge_summaries): Same.
20838 (ipa_merge_fn_summary_after_inlining): Same.
20839 (ipa_fn_summary_generate): Same.
20840 (inline_read_section): Same.
20841 (ipa_fn_summary_read): Same.
20842 (ipa_fn_summary_write): Same.
20843 * ipa-fnsummary.h: Same.
20844 * ipa-hsa.c (ipa_hsa_read_section): Same.
20845 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20846 * ipa-icf.c (sem_function::param_used_p): Same.
20847 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20848 * ipa-inline.c (edge_badness): Same.
20849 (inline_small_functions): Same.
20850 * ipa-polymorphic-call.c
20851 (ipa_polymorphic_call_context::stream_out): Same.
20852 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20853 (predicate::remap_after_inlining): Same.
20854 (predicate::stream_out): Same.
20855 * ipa-predicate.h: Same.
20856 * ipa-profile.c (ipa_profile_read_summary): Same.
20857 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20858 (count_formal_params): Same.
20859 (ipa_dump_param): Same.
20860 (ipa_alloc_node_params): Same.
20861 (ipa_print_node_jump_functions_for_edge): Same.
20862 (ipa_print_node_jump_functions): Same.
20863 (ipa_load_from_parm_agg): Same.
20864 (get_ancestor_addr_info): Same.
20865 (ipa_compute_jump_functions_for_edge): Same.
20866 (ipa_analyze_virtual_call_uses): Same.
20867 (ipa_analyze_stmt_uses): Same.
20868 (ipa_analyze_params_uses_in_bb): Same.
20869 (update_jump_functions_after_inlining): Same.
20870 (try_decrement_rdesc_refcount): Same.
20871 (ipa_impossible_devirt_target): Same.
20872 (update_indirect_edges_after_inlining): Same.
20873 (combine_controlled_uses_counters): Same.
20874 (ipa_edge_args_sum_t::duplicate): Same.
20875 (ipa_write_jump_function): Same.
20876 (ipa_write_indirect_edge_info): Same.
20877 (ipa_write_node_info): Same.
20878 (ipa_read_edge_info): Same.
20879 (ipa_prop_read_section): Same.
20880 (read_replacements_section): Same.
20881 * ipa-prop.h (ipa_get_param_count): Same.
20882 (ipa_get_param): Same.
20883 (ipa_get_type): Same.
20884 (ipa_get_param_move_cost): Same.
20885 (ipa_set_param_used): Same.
20886 (ipa_get_controlled_uses): Same.
20887 (ipa_set_controlled_uses): Same.
20888 (ipa_get_cs_argument_count): Same.
20889 * ipa-pure-const.c (analyze_function): Same.
20890 (pure_const_read_summary): Same.
20891 * ipa-ref.h: Same.
20892 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20893 * ipa-split.c (test_nonssa_use): Same.
20894 (dump_split_point): Same.
20895 (dominated_by_forbidden): Same.
20896 (split_part_set_ssa_name_p): Same.
20897 (find_split_points): Same.
20898 * ira-build.c (finish_loop_tree_nodes): Same.
20899 (low_pressure_loop_node_p): Same.
20900 * ira-color.c (ira_reuse_stack_slot): Same.
20901 * ira-int.h: Same.
20902 * ira.c (setup_reg_equiv): Same.
20903 (print_insn_chain): Same.
20904 (ira): Same.
20905 * loop-doloop.c (doloop_condition_get): Same.
20906 (add_test): Same.
20907 (record_reg_sets): Same.
20908 (doloop_optimize): Same.
20909 * loop-init.c (loop_optimizer_init): Same.
20910 (fix_loop_structure): Same.
20911 * loop-invariant.c (merge_identical_invariants): Same.
20912 (compute_always_reached): Same.
20913 (find_exits): Same.
20914 (may_assign_reg_p): Same.
20915 (find_invariants_bb): Same.
20916 (find_invariants_body): Same.
20917 (replace_uses): Same.
20918 (can_move_invariant_reg): Same.
20919 (free_inv_motion_data): Same.
20920 (move_single_loop_invariants): Same.
20921 (change_pressure): Same.
20922 (mark_ref_regs): Same.
20923 (calculate_loop_reg_pressure): Same.
20924 * loop-iv.c (biv_entry_hasher::equal): Same.
20925 (iv_extend_to_rtx_code): Same.
20926 (check_iv_ref_table_size): Same.
20927 (clear_iv_info): Same.
20928 (latch_dominating_def): Same.
20929 (iv_get_reaching_def): Same.
20930 (iv_constant): Same.
20931 (iv_subreg): Same.
20932 (iv_extend): Same.
20933 (iv_neg): Same.
20934 (iv_add): Same.
20935 (iv_mult): Same.
20936 (get_biv_step): Same.
20937 (record_iv): Same.
20938 (analyzed_for_bivness_p): Same.
20939 (record_biv): Same.
20940 (iv_analyze_biv): Same.
20941 (iv_analyze_expr): Same.
20942 (iv_analyze_def): Same.
20943 (iv_analyze_op): Same.
20944 (iv_analyze): Same.
20945 (iv_analyze_result): Same.
20946 (biv_p): Same.
20947 (eliminate_implied_conditions): Same.
20948 (simplify_using_initial_values): Same.
20949 (shorten_into_mode): Same.
20950 (canonicalize_iv_subregs): Same.
20951 (determine_max_iter): Same.
20952 (check_simple_exit): Same.
20953 (find_simple_exit): Same.
20954 (get_simple_loop_desc): Same.
20955 * loop-unroll.c (report_unroll): Same.
20956 (decide_unrolling): Same.
20957 (unroll_loops): Same.
20958 (loop_exit_at_end_p): Same.
20959 (decide_unroll_constant_iterations): Same.
20960 (unroll_loop_constant_iterations): Same.
20961 (compare_and_jump_seq): Same.
20962 (unroll_loop_runtime_iterations): Same.
20963 (decide_unroll_stupid): Same.
20964 (unroll_loop_stupid): Same.
20965 (referenced_in_one_insn_in_loop_p): Same.
20966 (reset_debug_uses_in_loop): Same.
20967 (analyze_iv_to_split_insn): Same.
20968 * lra-eliminations.c (lra_debug_elim_table): Same.
20969 (setup_can_eliminate): Same.
20970 (form_sum): Same.
20971 (lra_get_elimination_hard_regno): Same.
20972 (lra_eliminate_regs_1): Same.
20973 (eliminate_regs_in_insn): Same.
20974 (update_reg_eliminate): Same.
20975 (init_elimination): Same.
20976 (lra_eliminate): Same.
20977 * lra-int.h: Same.
20978 * lra-lives.c (initiate_live_solver): Same.
20979 * lra-remat.c (create_remat_bb_data): Same.
20980 * lra-spills.c (lra_spill): Same.
20981 * lra.c (lra_set_insn_recog_data): Same.
20982 (lra_set_used_insn_alternative_by_uid): Same.
20983 (init_reg_info): Same.
20984 (expand_reg_info): Same.
20985 * lto-cgraph.c (output_symtab): Same.
20986 (read_identifier): Same.
20987 (get_alias_symbol): Same.
20988 (input_node): Same.
20989 (input_varpool_node): Same.
20990 (input_ref): Same.
20991 (input_edge): Same.
20992 (input_cgraph_1): Same.
20993 (input_refs): Same.
20994 (input_symtab): Same.
20995 (input_offload_tables): Same.
20996 (output_cgraph_opt_summary): Same.
20997 (input_edge_opt_summary): Same.
20998 (input_cgraph_opt_section): Same.
20999 * lto-section-in.c (lto_free_raw_section_data): Same.
21000 (lto_create_simple_input_block): Same.
21001 (lto_free_function_in_decl_state_for_node): Same.
21002 * lto-streamer-in.c (lto_tag_check_set): Same.
21003 (lto_location_cache::revert_location_cache): Same.
21004 (lto_location_cache::input_location): Same.
21005 (lto_input_location): Same.
21006 (stream_input_location_now): Same.
21007 (lto_input_tree_ref): Same.
21008 (lto_input_eh_catch_list): Same.
21009 (input_eh_region): Same.
21010 (lto_init_eh): Same.
21011 (make_new_block): Same.
21012 (input_cfg): Same.
21013 (fixup_call_stmt_edges): Same.
21014 (input_struct_function_base): Same.
21015 (input_function): Same.
21016 (lto_read_body_or_constructor): Same.
21017 (lto_read_tree_1): Same.
21018 (lto_read_tree): Same.
21019 (lto_input_scc): Same.
21020 (lto_input_tree_1): Same.
21021 (lto_input_toplevel_asms): Same.
21022 (lto_input_mode_table): Same.
21023 (lto_reader_init): Same.
21024 (lto_data_in_create): Same.
21025 * lto-streamer-out.c (output_cfg): Same.
21026 * lto-streamer.h: Same.
21027 * modulo-sched.c (duplicate_insns_of_cycles): Same.
21028 (generate_prolog_epilog): Same.
21029 (mark_loop_unsched): Same.
21030 (dump_insn_location): Same.
21031 (loop_canon_p): Same.
21032 (sms_schedule): Same.
21033 * omp-expand.c (expand_omp_for_ordered_loops): Same.
21034 (expand_omp_for_generic): Same.
21035 (expand_omp_for_static_nochunk): Same.
21036 (expand_omp_for_static_chunk): Same.
21037 (expand_omp_simd): Same.
21038 (expand_omp_taskloop_for_inner): Same.
21039 (expand_oacc_for): Same.
21040 (expand_omp_atomic_pipeline): Same.
21041 (mark_loops_in_oacc_kernels_region): Same.
21042 * omp-offload.c (oacc_xform_loop): Same.
21043 * omp-simd-clone.c (simd_clone_adjust): Same.
21044 * optabs-query.c (get_traditional_extraction_insn): Same.
21045 * optabs.c (expand_vector_broadcast): Same.
21046 (expand_binop_directly): Same.
21047 (expand_twoval_unop): Same.
21048 (expand_twoval_binop): Same.
21049 (expand_unop_direct): Same.
21050 (emit_indirect_jump): Same.
21051 (emit_conditional_move): Same.
21052 (emit_conditional_neg_or_complement): Same.
21053 (emit_conditional_add): Same.
21054 (vector_compare_rtx): Same.
21055 (expand_vec_perm_1): Same.
21056 (expand_vec_perm_const): Same.
21057 (expand_vec_cond_expr): Same.
21058 (expand_vec_series_expr): Same.
21059 (maybe_emit_atomic_exchange): Same.
21060 (maybe_emit_sync_lock_test_and_set): Same.
21061 (expand_atomic_compare_and_swap): Same.
21062 (expand_atomic_load): Same.
21063 (expand_atomic_store): Same.
21064 (maybe_emit_op): Same.
21065 (valid_multiword_target_p): Same.
21066 (create_integer_operand): Same.
21067 (maybe_legitimize_operand_same_code): Same.
21068 (maybe_legitimize_operand): Same.
21069 (create_convert_operand_from_type): Same.
21070 (can_reuse_operands_p): Same.
21071 (maybe_legitimize_operands): Same.
21072 (maybe_gen_insn): Same.
21073 (maybe_expand_insn): Same.
21074 (maybe_expand_jump_insn): Same.
21075 (expand_insn): Same.
21076 * optabs.h (create_expand_operand): Same.
21077 (create_fixed_operand): Same.
21078 (create_output_operand): Same.
21079 (create_input_operand): Same.
21080 (create_convert_operand_to): Same.
21081 (create_convert_operand_from): Same.
21082 * optinfo.h: Same.
21083 * poly-int.h: Same.
21084 * predict.c (optimize_insn_for_speed_p): Same.
21085 (optimize_loop_for_size_p): Same.
21086 (optimize_loop_for_speed_p): Same.
21087 (optimize_loop_nest_for_speed_p): Same.
21088 (get_base_value): Same.
21089 (predicted_by_loop_heuristics_p): Same.
21090 (predict_extra_loop_exits): Same.
21091 (predict_loops): Same.
21092 (predict_paths_for_bb): Same.
21093 (predict_paths_leading_to): Same.
21094 (propagate_freq): Same.
21095 (pass_profile::execute): Same.
21096 * predict.h: Same.
21097 * profile-count.c (profile_count::differs_from_p): Same.
21098 (profile_probability::differs_lot_from_p): Same.
21099 * profile-count.h: Same.
21100 * profile.c (branch_prob): Same.
21101 * regrename.c (free_chain_data): Same.
21102 (mark_conflict): Same.
21103 (create_new_chain): Same.
21104 (merge_overlapping_regs): Same.
21105 (init_rename_info): Same.
21106 (merge_chains): Same.
21107 (regrename_analyze): Same.
21108 (regrename_do_replace): Same.
21109 (scan_rtx_reg): Same.
21110 (record_out_operands): Same.
21111 (build_def_use): Same.
21112 * regrename.h: Same.
21113 * reload.h: Same.
21114 * reload1.c (init_reload): Same.
21115 (maybe_fix_stack_asms): Same.
21116 (copy_reloads): Same.
21117 (count_pseudo): Same.
21118 (count_spilled_pseudo): Same.
21119 (find_reg): Same.
21120 (find_reload_regs): Same.
21121 (select_reload_regs): Same.
21122 (spill_hard_reg): Same.
21123 (fixup_eh_region_note): Same.
21124 (set_reload_reg): Same.
21125 (allocate_reload_reg): Same.
21126 (compute_reload_subreg_offset): Same.
21127 (reload_adjust_reg_for_icode): Same.
21128 (emit_input_reload_insns): Same.
21129 (emit_output_reload_insns): Same.
21130 (do_input_reload): Same.
21131 (inherit_piecemeal_p): Same.
21132 * rtl.h: Same.
21133 * sanopt.c (maybe_get_dominating_check): Same.
21134 (maybe_optimize_ubsan_ptr_ifn): Same.
21135 (can_remove_asan_check): Same.
21136 (maybe_optimize_asan_check_ifn): Same.
21137 (sanopt_optimize_walker): Same.
21138 * sched-deps.c (add_dependence_list): Same.
21139 (chain_to_prev_insn): Same.
21140 (add_insn_mem_dependence): Same.
21141 (create_insn_reg_set): Same.
21142 (maybe_extend_reg_info_p): Same.
21143 (sched_analyze_reg): Same.
21144 (sched_analyze_1): Same.
21145 (get_implicit_reg_pending_clobbers): Same.
21146 (chain_to_prev_insn_p): Same.
21147 (deps_analyze_insn): Same.
21148 (deps_start_bb): Same.
21149 (sched_free_deps): Same.
21150 (init_deps): Same.
21151 (init_deps_reg_last): Same.
21152 (free_deps): Same.
21153 * sched-ebb.c: Same.
21154 * sched-int.h: Same.
21155 * sched-rgn.c (add_branch_dependences): Same.
21156 (concat_insn_mem_list): Same.
21157 (deps_join): Same.
21158 (sched_rgn_compute_dependencies): Same.
21159 * sel-sched-ir.c (reset_target_context): Same.
21160 (copy_deps_context): Same.
21161 (init_id_from_df): Same.
21162 (has_dependence_p): Same.
21163 (change_loops_latches): Same.
21164 (bb_top_order_comparator): Same.
21165 (make_region_from_loop_preheader): Same.
21166 (sel_init_pipelining): Same.
21167 (get_loop_nest_for_rgn): Same.
21168 (make_regions_from_the_rest): Same.
21169 (sel_is_loop_preheader_p): Same.
21170 * sel-sched-ir.h (inner_loop_header_p): Same.
21171 (get_all_loop_exits): Same.
21172 * selftest.h: Same.
21173 * sese.c (sese_build_liveouts): Same.
21174 (sese_insert_phis_for_liveouts): Same.
21175 * sese.h (defined_in_sese_p): Same.
21176 * sreal.c (sreal::stream_out): Same.
21177 * sreal.h: Same.
21178 * streamer-hooks.h: Same.
21179 * target-globals.c (save_target_globals): Same.
21180 * target-globals.h: Same.
21181 * target.def: Same.
21182 * target.h: Same.
21183 * targhooks.c (default_has_ifunc_p): Same.
21184 (default_empty_mask_is_expensive): Same.
21185 (default_init_cost): Same.
21186 * targhooks.h: Same.
21187 * toplev.c: Same.
21188 * tree-affine.c (aff_combination_mult): Same.
21189 (aff_combination_expand): Same.
21190 (aff_combination_constant_multiple_p): Same.
21191 * tree-affine.h: Same.
21192 * tree-cfg.c (build_gimple_cfg): Same.
21193 (replace_loop_annotate_in_block): Same.
21194 (replace_uses_by): Same.
21195 (remove_bb): Same.
21196 (dump_cfg_stats): Same.
21197 (gimple_duplicate_sese_region): Same.
21198 (gimple_duplicate_sese_tail): Same.
21199 (move_block_to_fn): Same.
21200 (replace_block_vars_by_duplicates): Same.
21201 (move_sese_region_to_fn): Same.
21202 (print_loops_bb): Same.
21203 (print_loop): Same.
21204 (print_loops): Same.
21205 (debug): Same.
21206 (debug_loops): Same.
21207 * tree-cfg.h: Same.
21208 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
21209 (chrec_fold_multiply_poly_poly): Same.
21210 (chrec_evaluate): Same.
21211 (chrec_component_in_loop_num): Same.
21212 (reset_evolution_in_loop): Same.
21213 (is_multivariate_chrec): Same.
21214 (chrec_contains_symbols): Same.
21215 (nb_vars_in_chrec): Same.
21216 (chrec_convert_1): Same.
21217 (chrec_convert_aggressive): Same.
21218 * tree-chrec.h: Same.
21219 * tree-core.h: Same.
21220 * tree-data-ref.c (dump_data_dependence_relation): Same.
21221 (canonicalize_base_object_address): Same.
21222 (data_ref_compare_tree): Same.
21223 (prune_runtime_alias_test_list): Same.
21224 (get_segment_min_max): Same.
21225 (create_intersect_range_checks): Same.
21226 (conflict_fn_no_dependence): Same.
21227 (object_address_invariant_in_loop_p): Same.
21228 (analyze_ziv_subscript): Same.
21229 (analyze_siv_subscript_cst_affine): Same.
21230 (analyze_miv_subscript): Same.
21231 (analyze_overlapping_iterations): Same.
21232 (build_classic_dist_vector_1): Same.
21233 (add_other_self_distances): Same.
21234 (same_access_functions): Same.
21235 (build_classic_dir_vector): Same.
21236 (subscript_dependence_tester_1): Same.
21237 (subscript_dependence_tester): Same.
21238 (access_functions_are_affine_or_constant_p): Same.
21239 (get_references_in_stmt): Same.
21240 (loop_nest_has_data_refs): Same.
21241 (graphite_find_data_references_in_stmt): Same.
21242 (find_data_references_in_bb): Same.
21243 (get_base_for_alignment): Same.
21244 (find_loop_nest_1): Same.
21245 (find_loop_nest): Same.
21246 * tree-data-ref.h (dr_alignment): Same.
21247 (ddr_dependence_level): Same.
21248 * tree-if-conv.c (fold_build_cond_expr): Same.
21249 (add_to_predicate_list): Same.
21250 (add_to_dst_predicate_list): Same.
21251 (phi_convertible_by_degenerating_args): Same.
21252 (idx_within_array_bound): Same.
21253 (all_preds_critical_p): Same.
21254 (pred_blocks_visited_p): Same.
21255 (predicate_bbs): Same.
21256 (build_region): Same.
21257 (if_convertible_loop_p_1): Same.
21258 (is_cond_scalar_reduction): Same.
21259 (predicate_scalar_phi): Same.
21260 (remove_conditions_and_labels): Same.
21261 (combine_blocks): Same.
21262 (version_loop_for_if_conversion): Same.
21263 (versionable_outer_loop_p): Same.
21264 (ifcvt_local_dce): Same.
21265 (tree_if_conversion): Same.
21266 (pass_if_conversion::gate): Same.
21267 * tree-if-conv.h: Same.
21268 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
21269 * tree-loop-distribution.c (bb_top_order_cmp): Same.
21270 (free_rdg): Same.
21271 (stmt_has_scalar_dependences_outside_loop): Same.
21272 (copy_loop_before): Same.
21273 (create_bb_after_loop): Same.
21274 (const_with_all_bytes_same): Same.
21275 (generate_memset_builtin): Same.
21276 (generate_memcpy_builtin): Same.
21277 (destroy_loop): Same.
21278 (build_rdg_partition_for_vertex): Same.
21279 (compute_access_range): Same.
21280 (data_ref_segment_size): Same.
21281 (latch_dominated_by_data_ref): Same.
21282 (compute_alias_check_pairs): Same.
21283 (fuse_memset_builtins): Same.
21284 (finalize_partitions): Same.
21285 (find_seed_stmts_for_distribution): Same.
21286 (prepare_perfect_loop_nest): Same.
21287 * tree-parloops.c (lambda_transform_legal_p): Same.
21288 (loop_parallel_p): Same.
21289 (reduc_stmt_res): Same.
21290 (add_field_for_name): Same.
21291 (create_call_for_reduction_1): Same.
21292 (replace_uses_in_bb_by): Same.
21293 (transform_to_exit_first_loop_alt): Same.
21294 (try_transform_to_exit_first_loop_alt): Same.
21295 (transform_to_exit_first_loop): Same.
21296 (num_phis): Same.
21297 (gen_parallel_loop): Same.
21298 (gather_scalar_reductions): Same.
21299 (get_omp_data_i_param): Same.
21300 (try_create_reduction_list): Same.
21301 (oacc_entry_exit_single_gang): Same.
21302 (parallelize_loops): Same.
21303 * tree-pass.h: Same.
21304 * tree-predcom.c (determine_offset): Same.
21305 (last_always_executed_block): Same.
21306 (split_data_refs_to_components): Same.
21307 (suitable_component_p): Same.
21308 (valid_initializer_p): Same.
21309 (find_looparound_phi): Same.
21310 (insert_looparound_copy): Same.
21311 (add_looparound_copies): Same.
21312 (determine_roots_comp): Same.
21313 (predcom_tmp_var): Same.
21314 (initialize_root_vars): Same.
21315 (initialize_root_vars_store_elim_1): Same.
21316 (initialize_root_vars_store_elim_2): Same.
21317 (finalize_eliminated_stores): Same.
21318 (initialize_root_vars_lm): Same.
21319 (remove_stmt): Same.
21320 (determine_unroll_factor): Same.
21321 (execute_pred_commoning_cbck): Same.
21322 (base_names_in_chain_on): Same.
21323 (combine_chains): Same.
21324 (pcom_stmt_dominates_stmt_p): Same.
21325 (try_combine_chains): Same.
21326 (prepare_initializers_chain_store_elim): Same.
21327 (prepare_initializers_chain): Same.
21328 (prepare_initializers): Same.
21329 (prepare_finalizers_chain): Same.
21330 (prepare_finalizers): Same.
21331 (insert_init_seqs): Same.
21332 * tree-scalar-evolution.c (loop_phi_node_p): Same.
21333 (compute_overall_effect_of_inner_loop): Same.
21334 (add_to_evolution_1): Same.
21335 (add_to_evolution): Same.
21336 (follow_ssa_edge_binary): Same.
21337 (follow_ssa_edge_expr): Same.
21338 (backedge_phi_arg_p): Same.
21339 (follow_ssa_edge_in_condition_phi_branch): Same.
21340 (follow_ssa_edge_in_condition_phi): Same.
21341 (follow_ssa_edge_inner_loop_phi): Same.
21342 (follow_ssa_edge): Same.
21343 (analyze_evolution_in_loop): Same.
21344 (analyze_initial_condition): Same.
21345 (interpret_loop_phi): Same.
21346 (interpret_condition_phi): Same.
21347 (interpret_rhs_expr): Same.
21348 (interpret_expr): Same.
21349 (interpret_gimple_assign): Same.
21350 (analyze_scalar_evolution_1): Same.
21351 (analyze_scalar_evolution): Same.
21352 (analyze_scalar_evolution_for_address_of): Same.
21353 (get_instantiated_value_entry): Same.
21354 (loop_closed_phi_def): Same.
21355 (instantiate_scev_name): Same.
21356 (instantiate_scev_poly): Same.
21357 (instantiate_scev_binary): Same.
21358 (instantiate_scev_convert): Same.
21359 (instantiate_scev_not): Same.
21360 (instantiate_scev_r): Same.
21361 (instantiate_scev): Same.
21362 (resolve_mixers): Same.
21363 (initialize_scalar_evolutions_analyzer): Same.
21364 (scev_reset_htab): Same.
21365 (scev_reset): Same.
21366 (derive_simple_iv_with_niters): Same.
21367 (simple_iv_with_niters): Same.
21368 (expression_expensive_p): Same.
21369 (final_value_replacement_loop): Same.
21370 * tree-scalar-evolution.h (block_before_loop): Same.
21371 * tree-ssa-address.h: Same.
21372 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
21373 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
21374 (record_edge_info): Same.
21375 * tree-ssa-live.c (var_map_base_fini): Same.
21376 (remove_unused_locals): Same.
21377 * tree-ssa-live.h: Same.
21378 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
21379 (pass_ch_vect::execute): Same.
21380 (pass_ch::process_loop_p): Same.
21381 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21382 (movement_possibility): Same.
21383 (outermost_invariant_loop): Same.
21384 (stmt_cost): Same.
21385 (determine_max_movement): Same.
21386 (invariantness_dom_walker::before_dom_children): Same.
21387 (move_computations): Same.
21388 (may_move_till): Same.
21389 (force_move_till_op): Same.
21390 (force_move_till): Same.
21391 (memref_free): Same.
21392 (record_mem_ref_loc): Same.
21393 (set_ref_stored_in_loop): Same.
21394 (mark_ref_stored): Same.
21395 (sort_bbs_in_loop_postorder_cmp): Same.
21396 (sort_locs_in_loop_postorder_cmp): Same.
21397 (analyze_memory_references): Same.
21398 (mem_refs_may_alias_p): Same.
21399 (find_ref_loc_in_loop_cmp): Same.
21400 (rewrite_mem_ref_loc::operator): Same.
21401 (first_mem_ref_loc_1::operator): Same.
21402 (sm_set_flag_if_changed::operator): Same.
21403 (execute_sm_if_changed_flag_set): Same.
21404 (execute_sm): Same.
21405 (hoist_memory_references): Same.
21406 (ref_always_accessed::operator): Same.
21407 (refs_independent_p): Same.
21408 (record_dep_loop): Same.
21409 (ref_indep_loop_p_1): Same.
21410 (ref_indep_loop_p): Same.
21411 (can_sm_ref_p): Same.
21412 (find_refs_for_sm): Same.
21413 (loop_suitable_for_sm): Same.
21414 (store_motion_loop): Same.
21415 (store_motion): Same.
21416 (fill_always_executed_in): Same.
21417 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21418 (estimated_unrolled_size): Same.
21419 (loop_edge_to_cancel): Same.
21420 (remove_exits_and_undefined_stmts): Same.
21421 (remove_redundant_iv_tests): Same.
21422 (unloop_loops): Same.
21423 (estimated_peeled_sequence_size): Same.
21424 (try_peel_loop): Same.
21425 (canonicalize_loop_induction_variables): Same.
21426 (canonicalize_induction_variables): Same.
21427 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21428 (name_info): Same.
21429 (stmt_after_inc_pos): Same.
21430 (contains_abnormal_ssa_name_p): Same.
21431 (niter_for_exit): Same.
21432 (find_bivs): Same.
21433 (mark_bivs): Same.
21434 (find_givs_in_bb): Same.
21435 (find_induction_variables): Same.
21436 (find_interesting_uses_cond): Same.
21437 (outermost_invariant_loop_for_expr): Same.
21438 (idx_find_step): Same.
21439 (add_candidate_1): Same.
21440 (add_iv_candidate_derived_from_uses): Same.
21441 (alloc_use_cost_map): Same.
21442 (prepare_decl_rtl): Same.
21443 (generic_predict_doloop_p): Same.
21444 (computation_cost): Same.
21445 (determine_common_wider_type): Same.
21446 (get_computation_aff_1): Same.
21447 (get_use_type): Same.
21448 (determine_group_iv_cost_address): Same.
21449 (iv_period): Same.
21450 (difference_cannot_overflow_p): Same.
21451 (may_eliminate_iv): Same.
21452 (determine_set_costs): Same.
21453 (cheaper_cost_pair): Same.
21454 (compare_cost_pair): Same.
21455 (iv_ca_cand_for_group): Same.
21456 (iv_ca_recount_cost): Same.
21457 (iv_ca_set_remove_invs): Same.
21458 (iv_ca_set_no_cp): Same.
21459 (iv_ca_set_add_invs): Same.
21460 (iv_ca_set_cp): Same.
21461 (iv_ca_add_group): Same.
21462 (iv_ca_cost): Same.
21463 (iv_ca_compare_deps): Same.
21464 (iv_ca_delta_reverse): Same.
21465 (iv_ca_delta_commit): Same.
21466 (iv_ca_cand_used_p): Same.
21467 (iv_ca_delta_free): Same.
21468 (iv_ca_new): Same.
21469 (iv_ca_free): Same.
21470 (iv_ca_dump): Same.
21471 (iv_ca_extend): Same.
21472 (iv_ca_narrow): Same.
21473 (iv_ca_prune): Same.
21474 (cheaper_cost_with_cand): Same.
21475 (iv_ca_replace): Same.
21476 (try_add_cand_for): Same.
21477 (get_initial_solution): Same.
21478 (try_improve_iv_set): Same.
21479 (find_optimal_iv_set_1): Same.
21480 (create_new_iv): Same.
21481 (rewrite_use_compare): Same.
21482 (remove_unused_ivs): Same.
21483 (determine_scaling_factor): Same.
21484 * tree-ssa-loop-ivopts.h: Same.
21485 * tree-ssa-loop-manip.c (create_iv): Same.
21486 (compute_live_loop_exits): Same.
21487 (add_exit_phi): Same.
21488 (add_exit_phis): Same.
21489 (find_uses_to_rename_use): Same.
21490 (find_uses_to_rename_def): Same.
21491 (find_uses_to_rename_in_loop): Same.
21492 (rewrite_into_loop_closed_ssa): Same.
21493 (check_loop_closed_ssa_bb): Same.
21494 (split_loop_exit_edge): Same.
21495 (ip_end_pos): Same.
21496 (ip_normal_pos): Same.
21497 (copy_phi_node_args): Same.
21498 (gimple_duplicate_loop_to_header_edge): Same.
21499 (can_unroll_loop_p): Same.
21500 (determine_exit_conditions): Same.
21501 (scale_dominated_blocks_in_loop): Same.
21502 (niter_for_unrolled_loop): Same.
21503 (tree_transform_and_unroll_loop): Same.
21504 (rewrite_all_phi_nodes_with_iv): Same.
21505 * tree-ssa-loop-manip.h: Same.
21506 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21507 (number_of_iterations_ne): Same.
21508 (assert_no_overflow_lt): Same.
21509 (assert_loop_rolls_lt): Same.
21510 (number_of_iterations_lt): Same.
21511 (adjust_cond_for_loop_until_wrap): Same.
21512 (tree_simplify_using_condition): Same.
21513 (simplify_using_initial_conditions): Same.
21514 (simplify_using_outer_evolutions): Same.
21515 (loop_only_exit_p): Same.
21516 (ssa_defined_by_minus_one_stmt_p): Same.
21517 (number_of_iterations_popcount): Same.
21518 (number_of_iterations_exit): Same.
21519 (find_loop_niter): Same.
21520 (finite_loop_p): Same.
21521 (chain_of_csts_start): Same.
21522 (get_val_for): Same.
21523 (loop_niter_by_eval): Same.
21524 (derive_constant_upper_bound_ops): Same.
21525 (do_warn_aggressive_loop_optimizations): Same.
21526 (record_estimate): Same.
21527 (get_cst_init_from_scev): Same.
21528 (record_nonwrapping_iv): Same.
21529 (idx_infer_loop_bounds): Same.
21530 (infer_loop_bounds_from_ref): Same.
21531 (infer_loop_bounds_from_array): Same.
21532 (infer_loop_bounds_from_pointer_arith): Same.
21533 (infer_loop_bounds_from_signedness): Same.
21534 (bound_index): Same.
21535 (discover_iteration_bound_by_body_walk): Same.
21536 (maybe_lower_iteration_bound): Same.
21537 (estimate_numbers_of_iterations): Same.
21538 (estimated_loop_iterations): Same.
21539 (estimated_loop_iterations_int): Same.
21540 (max_loop_iterations): Same.
21541 (max_loop_iterations_int): Same.
21542 (likely_max_loop_iterations): Same.
21543 (likely_max_loop_iterations_int): Same.
21544 (estimated_stmt_executions_int): Same.
21545 (max_stmt_executions): Same.
21546 (likely_max_stmt_executions): Same.
21547 (estimated_stmt_executions): Same.
21548 (stmt_dominates_stmt_p): Same.
21549 (nowrap_type_p): Same.
21550 (loop_exits_before_overflow): Same.
21551 (scev_var_range_cant_overflow): Same.
21552 (scev_probably_wraps_p): Same.
21553 (free_numbers_of_iterations_estimates): Same.
21554 * tree-ssa-loop-niter.h: Same.
21555 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21556 (idx_analyze_ref): Same.
21557 (analyze_ref): Same.
21558 (gather_memory_references_ref): Same.
21559 (mark_nontemporal_store): Same.
21560 (emit_mfence_after_loop): Same.
21561 (may_use_storent_in_loop_p): Same.
21562 (mark_nontemporal_stores): Same.
21563 (should_unroll_loop_p): Same.
21564 (volume_of_dist_vector): Same.
21565 (add_subscript_strides): Same.
21566 (self_reuse_distance): Same.
21567 (insn_to_prefetch_ratio_too_small_p): Same.
21568 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21569 (patch_loop_exit): Same.
21570 (find_or_create_guard_phi): Same.
21571 (easy_exit_values): Same.
21572 (connect_loop_phis): Same.
21573 (connect_loops): Same.
21574 (compute_new_first_bound): Same.
21575 (split_loop): Same.
21576 (tree_ssa_split_loops): Same.
21577 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21578 (is_maybe_undefined): Same.
21579 (tree_may_unswitch_on): Same.
21580 (simplify_using_entry_checks): Same.
21581 (tree_unswitch_single_loop): Same.
21582 (tree_unswitch_loop): Same.
21583 (tree_unswitch_outer_loop): Same.
21584 (empty_bb_without_guard_p): Same.
21585 (used_outside_loop_p): Same.
21586 (get_vop_from_header): Same.
21587 (hoist_guard): Same.
21588 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21589 (get_lsm_tmp_name): Same.
21590 * tree-ssa-loop.h: Same.
21591 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21592 (build_and_add_sum): Same.
21593 (no_side_effect_bb): Same.
21594 (get_ops): Same.
21595 (linearize_expr): Same.
21596 (should_break_up_subtract): Same.
21597 (linearize_expr_tree): Same.
21598 * tree-ssa-scopedtables.c: Same.
21599 * tree-ssa-scopedtables.h: Same.
21600 * tree-ssa-structalias.c (condense_visit): Same.
21601 (label_visit): Same.
21602 (dump_pred_graph): Same.
21603 (perform_var_substitution): Same.
21604 (move_complex_constraints): Same.
21605 (remove_preds_and_fake_succs): Same.
21606 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21607 (determine_bb_domination_status): Same.
21608 (duplicate_thread_path): Same.
21609 (thread_through_all_blocks): Same.
21610 * tree-ssa-threadupdate.h: Same.
21611 * tree-streamer-in.c (streamer_read_string_cst): Same.
21612 (input_identifier): Same.
21613 (unpack_ts_type_common_value_fields): Same.
21614 (unpack_ts_block_value_fields): Same.
21615 (unpack_ts_translation_unit_decl_value_fields): Same.
21616 (unpack_ts_omp_clause_value_fields): Same.
21617 (streamer_read_tree_bitfields): Same.
21618 (streamer_alloc_tree): Same.
21619 (lto_input_ts_common_tree_pointers): Same.
21620 (lto_input_ts_vector_tree_pointers): Same.
21621 (lto_input_ts_poly_tree_pointers): Same.
21622 (lto_input_ts_complex_tree_pointers): Same.
21623 (lto_input_ts_decl_minimal_tree_pointers): Same.
21624 (lto_input_ts_decl_common_tree_pointers): Same.
21625 (lto_input_ts_decl_non_common_tree_pointers): Same.
21626 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21627 (lto_input_ts_field_decl_tree_pointers): Same.
21628 (lto_input_ts_function_decl_tree_pointers): Same.
21629 (lto_input_ts_type_common_tree_pointers): Same.
21630 (lto_input_ts_type_non_common_tree_pointers): Same.
21631 (lto_input_ts_list_tree_pointers): Same.
21632 (lto_input_ts_vec_tree_pointers): Same.
21633 (lto_input_ts_exp_tree_pointers): Same.
21634 (lto_input_ts_block_tree_pointers): Same.
21635 (lto_input_ts_binfo_tree_pointers): Same.
21636 (lto_input_ts_constructor_tree_pointers): Same.
21637 (lto_input_ts_omp_clause_tree_pointers): Same.
21638 (streamer_read_tree_body): Same.
21639 * tree-streamer.h: Same.
21640 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21641 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21642 (vect_analyze_possibly_independent_ddr): Same.
21643 (vect_analyze_data_ref_dependence): Same.
21644 (vect_compute_data_ref_alignment): Same.
21645 (vect_enhance_data_refs_alignment): Same.
21646 (vect_analyze_data_ref_access): Same.
21647 (vect_check_gather_scatter): Same.
21648 (vect_find_stmt_data_reference): Same.
21649 (vect_create_addr_base_for_vector_ref): Same.
21650 (vect_setup_realignment): Same.
21651 (vect_supportable_dr_alignment): Same.
21652 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21653 (adjust_phi_and_debug_stmts): Same.
21654 (vect_set_loop_mask): Same.
21655 (add_preheader_seq): Same.
21656 (vect_maybe_permute_loop_masks): Same.
21657 (vect_set_loop_masks_directly): Same.
21658 (vect_set_loop_condition_masked): Same.
21659 (vect_set_loop_condition_unmasked): Same.
21660 (slpeel_duplicate_current_defs_from_edges): Same.
21661 (slpeel_add_loop_guard): Same.
21662 (slpeel_can_duplicate_loop_p): Same.
21663 (create_lcssa_for_virtual_phi): Same.
21664 (iv_phi_p): Same.
21665 (vect_update_ivs_after_vectorizer): Same.
21666 (vect_gen_vector_loop_niters_mult_vf): Same.
21667 (slpeel_update_phi_nodes_for_loops): Same.
21668 (slpeel_update_phi_nodes_for_guard1): Same.
21669 (find_guard_arg): Same.
21670 (slpeel_update_phi_nodes_for_guard2): Same.
21671 (slpeel_update_phi_nodes_for_lcssa): Same.
21672 (vect_do_peeling): Same.
21673 (vect_create_cond_for_alias_checks): Same.
21674 (vect_loop_versioning): Same.
21675 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21676 (vect_inner_phi_in_double_reduction_p): Same.
21677 (vect_analyze_scalar_cycles_1): Same.
21678 (vect_fixup_scalar_cycles_with_patterns): Same.
21679 (vect_get_loop_niters): Same.
21680 (bb_in_loop_p): Same.
21681 (vect_get_max_nscalars_per_iter): Same.
21682 (vect_verify_full_masking): Same.
21683 (vect_compute_single_scalar_iteration_cost): Same.
21684 (vect_analyze_loop_form_1): Same.
21685 (vect_analyze_loop_form): Same.
21686 (vect_active_double_reduction_p): Same.
21687 (vect_analyze_loop_operations): Same.
21688 (neutral_op_for_slp_reduction): Same.
21689 (vect_is_simple_reduction): Same.
21690 (vect_model_reduction_cost): Same.
21691 (get_initial_def_for_reduction): Same.
21692 (get_initial_defs_for_reduction): Same.
21693 (vect_create_epilog_for_reduction): Same.
21694 (vectorize_fold_left_reduction): Same.
21695 (vectorizable_reduction): Same.
21696 (vectorizable_induction): Same.
21697 (vectorizable_live_operation): Same.
21698 (loop_niters_no_overflow): Same.
21699 (vect_get_loop_mask): Same.
21700 (vect_transform_loop_stmt): Same.
21701 (vect_transform_loop): Same.
21702 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21703 (vect_determine_precisions): Same.
21704 (vect_pattern_recog_1): Same.
21705 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21706 * tree-vect-stmts.c (stmt_vectype): Same.
21707 (process_use): Same.
21708 (vect_init_vector_1): Same.
21709 (vect_truncate_gather_scatter_offset): Same.
21710 (get_group_load_store_type): Same.
21711 (vect_build_gather_load_calls): Same.
21712 (vect_get_strided_load_store_ops): Same.
21713 (vectorizable_simd_clone_call): Same.
21714 (vectorizable_store): Same.
21715 (permute_vec_elements): Same.
21716 (vectorizable_load): Same.
21717 (vect_transform_stmt): Same.
21718 (supportable_widening_operation): Same.
21719 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21720 (vec_info::free_stmt_vec_info): Same.
21721 (vect_free_loop_info_assumptions): Same.
21722 (vect_loop_vectorized_call): Same.
21723 (set_uid_loop_bbs): Same.
21724 (vectorize_loops): Same.
21725 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21726 * tree.c (add_tree_to_fld_list): Same.
21727 (fld_type_variant_equal_p): Same.
21728 (fld_decl_context): Same.
21729 (fld_incomplete_type_of): Same.
21730 (free_lang_data_in_binfo): Same.
21731 (need_assembler_name_p): Same.
21732 (find_decls_types_r): Same.
21733 (get_eh_types_for_runtime): Same.
21734 (find_decls_types_in_eh_region): Same.
21735 (find_decls_types_in_node): Same.
21736 (assign_assembler_name_if_needed): Same.
21737 * value-prof.c (stream_out_histogram_value): Same.
21738 * value-prof.h: Same.
21739 * var-tracking.c (use_narrower_mode): Same.
21740 (prepare_call_arguments): Same.
21741 (vt_expand_loc_callback): Same.
21742 (resolve_expansions_pending_recursion): Same.
21743 (vt_expand_loc): Same.
21744 * varasm.c (const_hash_1): Same.
21745 (compare_constant): Same.
21746 (tree_output_constant_def): Same.
21747 (simplify_subtraction): Same.
21748 (get_pool_constant): Same.
21749 (output_constant_pool_2): Same.
21750 (output_constant_pool_1): Same.
21751 (mark_constants_in_pattern): Same.
21752 (mark_constant_pool): Same.
21753 (get_section_anchor): Same.
21754 * vr-values.c (compare_range_with_value): Same.
21755 (vr_values::extract_range_from_phi_node): Same.
21756 * vr-values.h: Same.
21757 * web.c (unionfind_union): Same.
21758 * wide-int.h: Same.
21759
21760 2019-07-09 Martin Sebor <msebor@redhat.com>
21761
21762 PR c++/61339
21763 * align.h: Change class-key from class to struct and vice versa
21764 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21765 * alloc-pool.h: Same.
21766 * asan.c (shadow_mem_size): Same.
21767 * auto-profile.c: Same.
21768 * basic-block.h: Same.
21769 * bitmap.h: Same.
21770 * cfgexpand.c (set_rtl): Same.
21771 (expand_one_stack_var_at): Same.
21772 * cfghooks.h: Same.
21773 * cfgloop.h: Same.
21774 * cgraph.h: Same.
21775 * config/i386/i386.h: Same.
21776 * df-problems.c (df_print_bb_index): Same.
21777 * df-scan.c: Same.
21778 * df.h (df_single_use): Same.
21779 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21780 (layout::annotation_line_showed_range_p): Same.
21781 (get_printed_columns): Same.
21782 (correction::ensure_terminated): Same.
21783 (line_corrections::~line_corrections): Same.
21784 * dojump.h: Same.
21785 * dse.c: Same.
21786 * dump-context.h: Same.
21787 * dumpfile.h: Same.
21788 * dwarf2out.c: Same.
21789 * edit-context.c: Same.
21790 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21791 * flags.h: Same.
21792 * function.c (assign_stack_local): Same.
21793 * function.h: Same.
21794 * gcc.c: Same.
21795 * gcov.c (block_info::block_info): Same.
21796 * genattrtab.c: Same.
21797 * genextract.c: Same.
21798 * genmatch.c (comparison_code_p): Same.
21799 (id_base::id_base): Same.
21800 (decision_tree::print): Same.
21801 * genoutput.c: Same.
21802 * genpreds.c (write_one_predicate_function): Same.
21803 * genrecog.c (validate_pattern): Same.
21804 (find_operand_positions): Same.
21805 (optimize_subroutine_group): Same.
21806 (merge_pattern_transition::merge_pattern_transition): Same.
21807 (merge_pattern_info::merge_pattern_info): Same.
21808 (merge_state_result::merge_state_result): Same.
21809 (merge_into_state): Same.
21810 * gensupport.c: Same.
21811 * gensupport.h: Same.
21812 * ggc-common.c (init_ggc_heuristics): Same.
21813 * ggc-tests.c (test_union): Same.
21814 * gimple-loop-interchange.cc (dump_induction): Same.
21815 * gimple-loop-versioning.cc: Same.
21816 * gimple-match.h (gimple_match_cond::any_else): Same.
21817 * gimple-ssa-backprop.c: Same.
21818 * gimple-ssa-sprintf.c: Same.
21819 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21820 Same.
21821 (store_immediate_info::store_immediate_info): Same.
21822 (merged_store_group::apply_stores): Same.
21823 (get_location_for_stmts): Same.
21824 * gimple-ssa-strength-reduction.c: Same.
21825 * gimple-ssa-warn-alloca.c: Same.
21826 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21827 * godump.c (go_type_decl): Same.
21828 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21829 * hash-map.h: Same.
21830 * hash-set-tests.c (test_set_of_strings): Same.
21831 * hsa-brig.c: Same.
21832 * hsa-common.h: Same.
21833 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21834 * input.c (assert_loceq): Same.
21835 * input.h: Same.
21836 * ipa-cp.c: Same.
21837 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21838 * ipa-fnsummary.h: Same.
21839 * ipa-inline.h: Same.
21840 * ipa-prop.h: Same.
21841 * ipa-split.c (visit_bb): Same.
21842 * ira-int.h (minmax_set_iter_next): Same.
21843 * loop-invariant.c: Same.
21844 * loop-iv.c: Same.
21845 * lra-eliminations.c: Same.
21846 * lra-int.h: Same.
21847 * lra-lives.c (mark_regno_dead): Same.
21848 * lra-remat.c: Same.
21849 * lra-spills.c: Same.
21850 * lto-streamer.h: Same.
21851 * mem-stats.h: Same.
21852 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21853 * omp-low.c (omp_clause_aligned_alignment): Same.
21854 * optabs-query.h (get_vcond_eq_icode): Same.
21855 * optabs.h: Same.
21856 * opts.c (wrap_help): Same.
21857 * poly-int.h: Same.
21858 * predict.c (predict_paths_leading_to_edge): Same.
21859 * pretty-print.h: Same.
21860 * profile-count.h: Same.
21861 * read-md.h: Same.
21862 * read-rtl-function.c: Same.
21863 * ree.c: Same.
21864 * reginfo.c: Same.
21865 * regrename.c: Same.
21866 * regrename.h: Same.
21867 * reload.h: Same.
21868 * rtl-iter.h: Same.
21869 * rtl.h (costs_add_n_insns): Same.
21870 * sanopt.c: Same.
21871 * sched-int.h: Same.
21872 * sel-sched-ir.h: Same.
21873 * selftest.h: Same.
21874 * sese.h (vec_find): Same.
21875 * stmt.c: Same.
21876 * target-globals.h: Same.
21877 * tree-affine.c (aff_combination_find_elt): Same.
21878 * tree-affine.h: Same.
21879 * tree-data-ref.h: Same.
21880 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21881 * tree-predcom.c: Same.
21882 * tree-scalar-evolution.c (find_var_scev_info): Same.
21883 * tree-ssa-alias.h: Same.
21884 * tree-ssa-ccp.c: Same.
21885 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21886 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21887 (rewrite_mem_refs): Same.
21888 (execute_sm_if_changed): Same.
21889 (hoist_memory_references): Same.
21890 * tree-ssa-loop-ivopts.c (operator<=): Same.
21891 * tree-ssa-loop.h: Same.
21892 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21893 * tree-ssa-structalias.c: Same.
21894 * tree-switch-conversion.h (cluster::cluster): Same.
21895 (simple_cluster::simple_cluster): Same.
21896 * tree-vect-patterns.c (type_conversion_p): Same.
21897 * tree-vectorizer.c (dump_stmt_cost): Same.
21898 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21899 * tree.c (protected_set_expr_location): Same.
21900 * tree.h (desired_pro_or_demotion_p): Same.
21901 (fndecl_built_in_p): Same.
21902 * unique-ptr-tests.cc: Same.
21903 * var-tracking.c (delete_variable_part): Same.
21904 * varasm.c (assemble_real): Same.
21905 (tree_output_constant_def): Same.
21906 * vec.c: Same.
21907 * wide-int-bitmask.h: Same.
21908 * wide-int.h (decompose): Same.
21909
21910 2019-07-09 Richard Biener <rguenther@suse.de>
21911
21912 PR tree-optimization/91114
21913 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21914 find a vector type isn't fatal.
21915
21916 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21917
21918 * config/aarch64/aarch64-simd.md
21919 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21920 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21921 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21922 (*aarch64_crypto_aese_fused,
21923 *aarch64_crypto_aesd_fused): Update to new definition.
21924 * config/aarch64/aarch64.c
21925 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21926
21927 2019-07-09 Richard Biener <rguenther@suse.de>
21928
21929 * gimple-match.h (gimple_match_op::resimplify): New.
21930 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21931 gimple_resimplify4, gimple_resimplify5): Remove.
21932 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21933 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21934 Make static.
21935 (gimple_match_op::resimplify): New.
21936 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21937 according to availability. Use gimple_match_op::resimplify.
21938
21939 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21940
21941 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21942
21943 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21944
21945 * config/arm/crypto.md:
21946 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21947 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21948 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21949 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21950 * config/arm/arm.c
21951 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21952 * config/arm/aarch-common-protos.h
21953 (aarch_crypto_can_dual_issue): Remove.
21954 * config/arm/aarch-common.c
21955 (aarch_crypto_can_dual_issue): Likewise.
21956 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21957 * config/arm/cortex-a53.md: Likewise.
21958 * config/arm/cortex-a57.md: Likewise.
21959 * config/arm/iterators.md:
21960 (CRYPTO_BINARY): Redefine.
21961 (CRYPTO_UNARY): Removed.
21962 (CRYPTO_AES, CRYPTO_AESMC): New.
21963
21964 2019-07-09 Richard Biener <rguenther@suse.de>
21965
21966 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21967 (vn_reference_lookup_3): If the main ref has no access path recorded
21968 but orig_ref has use it to do access-path based disambiguation.
21969 (vn_reference_lookup_pieces): Adjust.
21970 (vn_reference_lookup): Pass down original ref if we valueized.
21971
21972 2019-07-09 Martin Liska <mliska@suse.cz>
21973
21974 * doc/extend.texi: Document influence on loop
21975 optimizers.
21976
21977 2019-07-09 Martin Liska <mliska@suse.cz>
21978
21979 * lto-compress.c (lto_normalized_zstd_level): Do not use
21980 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21981 of libzstd. One can use 0 as a default compression level.
21982
21983 2019-07-09 Martin Liska <mliska@suse.cz>
21984
21985 * doc/invoke.texi: Add link from -fprofile-dir option.
21986 Use better wording for 'gcno filename'.
21987
21988 2019-07-08 Martin Sebor <msebor@redhat.com>
21989
21990 PR middle-end/71924
21991 PR middle-end/90549
21992 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21993 comment.
21994 (args_loc_t): New type.
21995 (args_loc_t, locmap_t): same.
21996 (diag_returned_locals): New function.
21997 (is_addr_local): Same.
21998 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21999 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
22000 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
22001
22002 2019-07-08 Jakub Jelinek <jakub@redhat.com>
22003
22004 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
22005 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
22006 and casts in offset when different, both through gimple stmts
22007 and through trees. Rewritten using loops to minimize code duplication
22008 for each operand.
22009
22010 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
22011
22012 * emit-rtl.c (set_insn_locations): New function moved from...
22013 * function.c (set_insn_locations): ...here.
22014 * ira-emit.c (emit_moves): Propagate location of the first instruction
22015 to the inserted move instructions.
22016 * reg-stack.c (compensate_edge): Set the location if the sequence is
22017 inserted on the edge.
22018 * rtl.h (set_insn_locations): Declare.
22019
22020 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22021
22022 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
22023 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
22024 .machine string.
22025
22026 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22027
22028 PR rtl-optimization/88233
22029 * common.opt (fsplit-wide-types-early): New option.
22030 * common/config/rs6000/rs6000-common.c
22031 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
22032 OPT_LEVELS_ALL.
22033 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
22034 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
22035 flag_split_wide_types_early.
22036 (pass_data_lower_subreg3): New.
22037 (pass_lower_subreg3): New.
22038 (make_pass_lower_subreg3): New.
22039 * passes.def (pass_lower_subreg2): Move after the loop passes.
22040 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
22041 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
22042 the pass pipeline; its previous place is taken by ...
22043 (make_pass_lower_subreg3): ... this.
22044
22045 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22046
22047 * config/s390/s390.c (s390_shift_truncation_mask): Define.
22048 (TARGET_SHIFT_TRUNCATION_MASK): Define.
22049
22050 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22051
22052 * config/s390/constraints.md: Add new jsc constraint.
22053 * config/s390/predicates.md: New predicates.
22054 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
22055 * config/s390/s390.c (s390_valid_shift_count): New function.
22056 (print_shift_count_operand): Use s390_valid_shift_count.
22057 (print_operand): Likewise.
22058 * config/s390/s390.md: Use new predicate.
22059 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
22060 * config/s390/vector.md: Use new predicate.
22061
22062 2019-07-08 Andrew Waterman <andrew@sifive.com>
22063 Jim Wilson <jimw@sifive.com>
22064
22065 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
22066 bitsize instead of BITS_PER_WORD.
22067
22068 2019-07-08 Martin Liska <mliska@suse.cz>
22069
22070 * collect2.c (defined): Revert to before r254460.
22071 (scan_prog_file): Revert to before r254460.
22072
22073 2019-07-08 Richard Biener <rguenther@suse.de>
22074
22075 PR tree-optimization/83518
22076 * tree-ssa-sccvn.c: Include splay-tree.h.
22077 (struct pd_range, struct pd_data): New.
22078 (struct vn_walk_cb_data): Add data to track partial definitions.
22079 (vn_walk_cb_data::~vn_walk_cb_data): New.
22080 (vn_walk_cb_data::push_partial_def): New.
22081 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
22082 (vn_reference_lookup_2): When partial defs are registered give up.
22083 (vn_reference_lookup_3): Track partial defs for memset and
22084 constructor zeroing and for defs from constants.
22085
22086 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22087
22088 * doc/install.texi (bootstrap-Og): Document.
22089
22090 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22091
22092 * config/riscv/pic.md (*local_pic_load_s<mode>)
22093 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
22094 referenced by <mode>, giving...
22095 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
22096 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
22097 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
22098 use <X:MODE> for the mode attribute.
22099
22100 2019-07-07 Jeff Law <law@redhat.com>
22101
22102 PR tree-optimization/91090
22103 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
22104 in handling of ranges to simplify switch statements.
22105
22106 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22107
22108 * config/darwin.c (darwin_override_options): Make a final check on PIC
22109 options.
22110
22111 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22112
22113 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
22114 on for kernel code.
22115
22116 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22117
22118 PR target/91068
22119 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
22120 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
22121 instead of matching them to "l" output operands.
22122
22123 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22124
22125 * config/mips/mips.c (mips_split_move): Zero-initialize addr
22126 and check whether addr.reg is nonnull before using it.
22127
22128 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22129
22130 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
22131 ctx->for_simd_scan_phase simd copy the outer var to the privatized
22132 variable(s). For conditional lastprivate look through outer
22133 GIMPLE_OMP_SCAN context.
22134 (lower_omp_1): For conditional lastprivate look through outer
22135 GIMPLE_OMP_SCAN context.
22136
22137 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
22138 member to combined_into_simd_safelen1.
22139 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
22140 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
22141 clauses if ctx->combined_into_simd_safelen1 put statements after the
22142 predicate conditionalized block rather than into it.
22143
22144 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22145
22146 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
22147 operand 1.
22148 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
22149 Make the choice of <mode> explicit, giving...
22150 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
22151
22152 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22153
22154 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
22155 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
22156 of .md attributes.
22157 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
22158 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
22159 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
22160 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
22161 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
22162 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
22163 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
22164 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
22165 (*avx512f_scatterdi<mode>): Likewise.
22166 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
22167
22168 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22169
22170 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
22171 specify the mode iterator referenced by <mode>, giving...
22172 (*push1_h8300hs_<QHI:mode>): ...this.
22173
22174 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22175
22176 * config/gcn/gcn-valu.md
22177 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
22178 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
22179 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
22180 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
22181 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
22182 but using the _exec comparison patterns.
22183 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
22184 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
22185 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
22186 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
22187 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
22188 but using the _exec comparison patterns.
22189
22190 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22191
22192 * config/arm/sync.md
22193 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
22194 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
22195 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
22196 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
22197 <SIDI:cas_cmp_str>.
22198
22199 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22200
22201 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
22202 (maybe_lookup_ctx): Add forward declaration.
22203 (omp_find_scan): Likewise. Walk into body of simd if composited
22204 with worksharing loop.
22205 (scan_omp_simd_scan): New function.
22206 (scan_omp_1_stmt): Call it.
22207 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
22208 ctx->for_simd_scan_phase.
22209 (lower_rec_input_clauses): Do much less work for inscan reductions
22210 in ctx->for_simd_scan_phase is_simd regions.
22211 (lower_omp_scan): Set is_simd also on simd constructs composited
22212 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
22213 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
22214 emit their body after in simd constructs composited with worksharing
22215 loop.
22216 (lower_omp_for_scan): Handle worksharing loop composited with simd.
22217
22218 * omp-low.c (omp_find_scan): Make static.
22219 (lower_omp_for_scan): Fix order of merge arguments in input phase of
22220 the second loop, var2 represents the first partial sum and so needs
22221 to go before rprivb[ivar].
22222
22223 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
22224
22225 * config/rs6000/rs6000-logue.c: Remove unused code.
22226
22227 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22228
22229 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
22230
22231 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
22232
22233 PR target/90712
22234 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
22235 check with a frame laid out check.
22236
22237 2019-07-05 Richard Biener <rguenther@suse.de>
22238
22239 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
22240 when comparing against a store with possibly the same value.
22241
22242 2019-07-05 Richard Biener <rguenther@suse.de>
22243
22244 PR tree-optimization/91091
22245 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
22246 (walk_non_aliased_vuses): Likewise.
22247 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
22248 (get_continuation_for_phi): New tbaa_p parameter and pass
22249 it down.
22250 (walk_non_aliased_vuses): Likewise.
22251 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
22252 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
22253 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
22254 Likewise.
22255 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
22256 (adjust_offsets_for_equal_base_address): New function.
22257 (vn_reference_lookup_3): Use it to catch more base equivalences.
22258 Handle and pass down tbaa_p flag.
22259 (vn_reference_lookup_pieces): Adjust.
22260 (vn_reference_lookup): Remove alias-set altering, instead pass
22261 down false as tbaa_p.
22262
22263 2019-07-05 Richard Biener <rguenther@suse.de>
22264
22265 PR tree-optimization/91091
22266 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
22267 accesses can happen with -fno-strict-aliasing.
22268
22269 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
22270
22271 * tree-ssa-alias.c (alias_stats): Add
22272 nonoverlapping_component_refs_since_match_p_must_overlap.
22273 (dump_alias_stats): Print it.
22274 (nonoverlapping_component_refs_since_match_p): Add early exit.
22275 (nonoverlapping_component_refs_p): Do not account early exit.
22276
22277 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22278
22279 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
22280 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
22281 (emit_eh_dispatch): Delete.
22282 (lower_catch): Emit the eh_dispatch manually and set the location of
22283 the first catch statement onto it.
22284 (lower_eh_filter): Emit the eh_dispatch manually and set location.
22285 (lower_eh_dispatch): Propagate location.
22286 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
22287 (eliminate_build): Likewise.
22288
22289 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22290
22291 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
22292 phi nodes if possible.
22293 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
22294 location info on the newly created statement.
22295 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
22296 newly created increment if needed.
22297
22298 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22299
22300 PR middle-end/78884
22301 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
22302 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
22303 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
22304 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
22305 ctx->add_safelen1 is set.
22306
22307 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
22308 GOMP_loop_start at the start of second worksharing loop in a scan.
22309 For nowait, don't emit GOMP_loop_end_nowait at the end of first
22310 worksharing loop in a scan even if there are conditional lastprivates,
22311 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
22312
22313 2019-07-04 Jan Hubicka <jh@suse.cz>
22314
22315 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
22316 Fix check for match in the ref walk.
22317
22318 2019-07-04 Martin Liska <mliska@suse.cz>
22319
22320 * tree-ssa-loop-niter.c
22321 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
22322 (estimate_numbers_of_iterations):
22323 Support __builtin_expect_with_probability for analysis
22324 of # of loop iterations.
22325
22326 2019-07-04 Alexandre Oliva <oliva@adacore.com>
22327
22328 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
22329 * except.c: Likewise.
22330 * expr.c (expand_expr_real_1): Reject it.
22331 * gimplify.c (gimplify_expr): Gimplify it, within
22332 TRY_FINALLY_EXPR.
22333 * tree-dump.c (dequeue_and_dump): Dump it.
22334 * tree-pretty-print.c (dump_generic_node): Likewise.
22335 * tree.c (block_may_fallthru): Handle it.
22336 * tree.def (EH_ELSE_EXPR): Introduce it.
22337 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
22338 with GIMPLE_EH_ELSE as try/finally/else.
22339
22340 2019-07-04 Richard Biener <rguenther@suse.de>
22341
22342 PR ipa/91062
22343 * tree-pass.h (execute_all_ipa_transforms): Add a flag
22344 parameter whether to disable GC collection.
22345 * passes.c (execute_one_ipa_transform_pass): Likewise, and
22346 honor it.
22347 (execute_all_ipa_transforms): Likewise and pass it down.
22348 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
22349 collection from applying IPA transforms.
22350 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
22351 from applying IPA transforms.
22352
22353 2019-07-04 Richard Biener <rguenther@suse.de>
22354
22355 PR tree-optimization/90911
22356 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
22357 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
22358 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22359 scalar_loop_scaling.
22360 (vect_transform_loop): Scale scalar loop profile if needed.
22361 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
22362 the loop copy from if-conversion adjust edge probabilities
22363 and scale the vectorized loop body profile, queue the scalar
22364 profile for updating after peeling.
22365
22366 2019-07-04 Jan Hubicka <jh@suse.cz>
22367
22368 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
22369 parameters; return early for must-alias.
22370 (indirect_ref_may_alias_decl_p): Likewise; when establishing
22371 outer types match, try nonoverlapping_component_refs
22372 if must-alias is not obvious.
22373 (indirect_refs_may_alias_p): Likewise.
22374 (refs_may_alias_p_2): Likewise.
22375
22376 2019-07-04 Richard Biener <rguenther@suse.de>
22377
22378 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
22379 argument.
22380 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22381 globals into...
22382 (struct vn_walk_cb_data): New callback data struct.
22383 (vn_reference_lookup_2): Adjust.
22384 (vn_reference_lookup_3): Likewise.
22385 (vn_reference_lookup_pieces): Likewise.
22386 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22387 (visit_reference_op_load): Adjust.
22388
22389 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22390
22391 PR tree-optimization/91063
22392 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22393 stmt from stmts sequence before calling vect_init_vector_1.
22394 Formatting fix.
22395
22396 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22397
22398 PR target/88833
22399 * fwprop.c (reg_single_def_p): New function.
22400 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22401 (forward_propagate_into): New parameter reg_prop_only
22402 with default value false.
22403 Propagate def's src into loop only if SET_SRC and SET_DEST
22404 of def_set have single definitions.
22405 Likewise if reg_prop_only is set to true.
22406 (fwprop): New param fwprop_addr_p.
22407 Integrate fwprop_addr into fwprop.
22408 (fwprop_addr): Remove.
22409 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22410 to true.
22411 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22412 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22413 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22414
22415 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22416
22417 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22418 in worksharing loop scans.
22419
22420 PR tree-optimization/91074
22421 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22422 temporary.
22423
22424 PR rtl-optimization/90756
22425 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22426 for VECTOR_TYPE_P.
22427
22428 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
22429
22430 * config/aarch64/aarch64.md: Remove redundant constraints from
22431 define_expand but keep some patterns untouched if they are
22432 specially selected by TARGET_SECONDARY_RELOAD hook.
22433 * config/aarch64/aarch64-sve.md: Likewise.
22434 * config/aarch64/atomics.md: Remove redundant constraints from
22435 define_expand.
22436 * config/aarch64/aarch64-simd.md: Likewise.
22437
22438 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22439
22440 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22441 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22442 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22443 clauses.
22444 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22445 DARWIN_NOPIE_SPEC.
22446
22447 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22448
22449 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22450 (STARTFILE_SPEC): Split crt3 into a separate spec.
22451 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22452 (DARWIN_CRT2_SPEC): New.
22453 (DARWIN_CRT3_SPEC): New.
22454 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22455 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22456 (DARWIN_CRT3_SPEC): New.
22457
22458 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22459
22460 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22461 Change the RTL attribute "length" from "4" to "*" to allow the
22462 length attribute to be adjusted automatically for prefixed load,
22463 store, and add immediate instructions.
22464 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22465 Likewise.
22466 (extendsi<mode>2, EXTSI iterator): Likewise.
22467 (movsi_internal1): Likewise.
22468 (movsi_from_sf): Likewise.
22469 (movdi_from_sf_zero_ext): Likewise.
22470 (mov<mode>_internal): Likewise.
22471 (movcc_internal1, QHI iterator): Likewise.
22472 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22473 (movsf_from_si): Likewise.
22474 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22475 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22476 (mov<mode>, FMOVE128 iterator): Likewise.
22477 (movdi_internal64): Likewise.
22478 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22479 Likewise.
22480 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22481 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22482 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22483 (vsx_splat_v4sf): Likewise.
22484
22485 2019-07-03 Mark Wielaard <mark@klomp.org>
22486
22487 PR debug/90981
22488 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22489 DW_AT_addr_base if there is actually a .debug_addr section with
22490 addresses.
22491 (output_addr_table): Add DWARF5 table header generation here after
22492 checking there are actually any addresses from...
22493 (dwarf2out_finish): ...here.
22494
22495 2019-07-03 Richard Biener <rguenther@suse.de>
22496
22497 PR middle-end/91069
22498 * match.pd (vec_perm -> bit_insert): Fix element read from
22499 first vector.
22500
22501 2019-07-03 Martin Liska <mliska@suse.cz>
22502
22503 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22504 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22505 condition.
22506 * generic-match-head.c: Include dbgcnt.h.
22507 * gimple-match-head.c: Likewise.
22508
22509 2019-07-03 Martin Liska <mliska@suse.cz>
22510
22511 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22512 (GCOV_COUNTER_V_TOPN): New.
22513 (GCOV_COUNTER_V_INDIR): Use _topn.
22514 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22515 (GCOV_TOPN_VALUES): New.
22516 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22517 (GCOV_TOPN_VALUES_COUNTERS): New.
22518 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22519 * tree-profile.c:
22520 (gimple_init_gcov_profiler): Rename variables from one_value
22521 to topn_values.
22522 (gimple_gen_one_value_profiler): Remove.
22523 (gimple_gen_topn_values_profiler): New function.
22524 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22525 names instead of SINGLE_VALUE.
22526 (stream_out_histogram_value): Likewise.
22527 (stream_in_histogram_value): Likewise.
22528 (get_most_common_single_value): Likewise.
22529 (gimple_divmod_fixed_value_transform): Likewise.
22530 (gimple_stringops_transform): Likewise.
22531 (gimple_divmod_values_to_profile): Likewise.
22532 (gimple_stringops_values_to_profile): Likewise.
22533 (gimple_find_values_to_profile): Likewise.
22534 * value-prof.h (enum hist_type): Rename to TOPN.
22535 (gimple_gen_one_value_profiler): Remove.
22536 (gimple_gen_topn_values_profiler): New.
22537
22538 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22539
22540 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22541 if it has the DW_AT_data_member_location attribute.
22542
22543 2019-07-03 Richard Biener <rguenther@suse.de>
22544
22545 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22546 dumping.
22547
22548 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22549
22550 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22551 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22552 (tlsdesc_small_sve_<mode>): Likewise.
22553
22554 2019-07-03 Martin Liska <mliska@suse.cz>
22555
22556 * Makefile.in: Define ZSTD_LIB.
22557 * common.opt: Adjust compression level
22558 to support also zstd levels.
22559 * config.in: Regenerate.
22560 * configure: Likewise.
22561 * configure.ac: Add --with-zstd and --with-zstd-include options
22562 and detect ZSTD.
22563 * doc/install.texi: Mention zstd dependency.
22564 * gcc.c: Print supported LTO compression algorithms.
22565 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22566 (lto_compression_zstd): Likewise.
22567 (lto_uncompression_zstd): Likewise.
22568 (lto_end_compression): Dispatch in between zlib and zstd.
22569 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22570 (lto_uncompression_zlib): Make it static.
22571 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22572 * lto-section-in.c (lto_get_section_data): Pass info
22573 about used compression.
22574 * lto-streamer-out.c: By default use zstd when possible.
22575 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22576 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22577
22578 2019-07-03 Martin Liska <mliska@suse.cz>
22579
22580 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22581 * lto-section-out.c (lto_destroy_simple_output_block): Never
22582 compress LTO_section_lto section.
22583 * lto-streamer-out.c (produce_asm): Do not set major_version
22584 and minor_version.
22585 (lto_output_toplevel_asms): Likewise.
22586 (produce_lto_section): New function.
22587 (lto_output): Call produce_lto_section.
22588 (lto_write_mode_table): Do not set major_version and
22589 minor_version.
22590 (produce_asm_for_decls): Likewise.
22591 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22592 type.
22593 (struct lto_header): Remove.
22594 (struct lto_section): New struct.
22595 (struct lto_simple_header): Do not inherit from lto_header.
22596 (struct lto_file_decl_data): Add lto_section_header field.
22597
22598 2019-07-03 Martin Liska <mliska@suse.cz>
22599
22600 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22601 dead assignemts.
22602 * reg-stack.c (check_asm_stack_operands): Likewise.
22603 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22604 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22605 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22606 force_expand_binop.
22607
22608 2019-07-03 Martin Liska <mliska@suse.cz>
22609
22610 PR tree-optimization/90892
22611 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22612 in string constants.
22613
22614 2019-07-03 Martin Liska <mliska@suse.cz>
22615
22616 PR middle-end/90899
22617 * multiple_target.c (create_dispatcher_calls): Add to comdat
22618 group only if set for ifunc.
22619
22620 2019-07-03 Martin Liska <mliska@suse.cz>
22621
22622 PR target/88056
22623 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22624 Define local_object_name in outer scope in order to handle
22625 use-after-scope issue.
22626
22627 2019-07-03 Martin Liska <mliska@suse.cz>
22628
22629 * common.opt: Add fprofile-note.
22630 * coverage.c (coverage_init): Append the option
22631 to bbg_file_name.
22632 * doc/invoke.texi: Document -fprofile-note.
22633
22634 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22635
22636 PR tree-optimization/91033
22637 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22638 vect_analyze_data_refs): Add bool * arguments.
22639 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22640 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22641 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22642 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22643 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22644 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22645 vect_analyze_data_refs caller.
22646
22647 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22648 clause.
22649 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22650 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22651 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22652 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22653 OMP_CLAUSE__SCANTEMP_ entry.
22654 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22655 * tree-pretty-print.c (dump_omp_clause): Likewise.
22656 * tree-nested.c (convert_nonlocal_omp_clauses,
22657 convert_local_omp_clauses): Likewise.
22658 * omp-general.h (struct omp_for_data): Add have_scantemp and
22659 have_nonctrl_scantemp members.
22660 * omp-general.c (omp_extract_for_data): Initialize them.
22661 * omp-low.c (struct omp_context): Add scan_exclusive member.
22662 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22663 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22664 ctx->scan_exclusive.
22665 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22666 of !ctx->scan_inclusive.
22667 (lower_rec_input_clauses): Simplify gimplification of dtors using
22668 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22669 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22670 loops. Don't add barrier for reduction_omp_orig_ref if
22671 ctx->scan_??xclusive.
22672 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22673 (lower_omp_scan): Use ctx->scan_exclusive instead
22674 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22675 reductions. Use new_vard != new_var instead of repeated
22676 omp_is_reference calls.
22677 (omp_find_scan, lower_omp_for_scan): New functions.
22678 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22679 inscan reductions.
22680 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22681 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22682 and fd->have_scantemp.
22683
22684 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22685 on worksharing loop propagate it as shared clause to containing
22686 combined parallel.
22687
22688 * omp-expand.c (expand_omp_for_static_nochunk,
22689 expand_omp_for_static_chunk): For nowait worksharing loop with
22690 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22691 at the end.
22692
22693 2019-07-02 qing zhao <qing.zhao@oracle.com>
22694
22695 PR preprocessor/90581
22696 * doc/cppopts.texi: Add document for -fmax-include-depth.
22697 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22698
22699 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22700
22701 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22702 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22703 (mmx_packssdw): Ditto.
22704 (mmx_punpckhbw): Ditto.
22705 (mmx_punpcklbw): Ditto.
22706 (mmx_punpckhwd): Ditto.
22707 (mmx_punpcklwd): Ditto.
22708 (mmx_punpckhdq): Ditto.
22709 (mmx_punpckldq): Ditto.
22710 (*vec_dupv4hi): Ditto.
22711 (*vec_dupv2si): Ditto.
22712 (mmx_pmovmskb): Ditto.
22713 * config/i386/sse.md (sse_cvtpi2ps): Use
22714 TARGET_SSE2 && SSE_REG_P in split condition.
22715 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22716 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22717 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22718 (ssse3_pshufbv8qi3): Ditto.
22719 (ssse3_palignrdi): Ditto.
22720
22721 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22722
22723 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22724 with inlined save and restore.
22725
22726 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22727
22728 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22729 to be inserted on single successor edge of the entry block. Then call
22730 commit_edge_insertions instead of inserting the instructions manually.
22731 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22732 RTL expansion and rebuild jump labels chain.
22733
22734 2019-07-02 Richard Biener <rguenther@suse.de>
22735
22736 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22737 TI_CHREC_KNOWN.
22738 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22739 Define here.
22740 * tree.c (build_common_tree_nodes): Initialize them.
22741 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22742 Make declarations comments.
22743 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22744 chrec_known): Remove definitions.
22745 (initialize_scalar_evolutions_analyzer): Remove.
22746 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22747 * tree-streamer.c (preload_common_nodes): Do not preload
22748 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22749
22750 2019-07-02 Jan Hubicka <jh@suse.cz>
22751
22752 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22753 sanity check.
22754
22755 2019-07-02 Jan Hubicka <jh@suse.cz>
22756
22757 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22758 to ..
22759 (nonoverlapping_component_refs_since_match_p): ... this one;
22760 handle also non-decl bases; return -1 if search gave up.
22761 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22762 nonoverlapping_component_refs_of_decl_p_no_alias to
22763 nonoverlapping_component_refs_since_match_p_may_alias,
22764 nonoverlapping_component_refs_since_match_p_no_alias.
22765 (dump_alias_stats): Update dumping.
22766 (aliasing_matching_component_refs_p): Break out from ...;
22767 dispatch to nonoverlapping_component_refs_for_decl_p
22768 and nonoverlapping_component_refs_since_match_p.
22769 (aliasing_component_refs_p): ... here; call
22770 nonoverlapping_component_refs_p in scenarios where we can not
22771 precisely determine base match.
22772 (decl_refs_may_alias_p): Use
22773 nonoverlapping_component_refs_since_match_p.
22774 (indirect_ref_may_alias_decl_p): Do not call
22775 nonoverlapping_component_refs_p.
22776 (indirect_refs_may_alias_p): Likewise.
22777
22778 2019-07-02 Jan Hubicka <jh@suse.cz>
22779
22780 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22781 to clobber of return value.
22782
22783 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22784
22785 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22786 for is_neon_type instructions that have not already been categorized.
22787
22788 2019-07-02 Richard Biener <rguenther@suse.de>
22789
22790 PR tree-optimization/58483
22791 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22792 for MEM_REF base hashing.
22793 (equal_mem_array_ref_p): Likewise for base comparison.
22794
22795 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22796
22797 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22798 parameterized name.
22799 (signbit<mode>2): Use that name. Simplify.
22800
22801 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22802
22803 PR middle-end/66726
22804 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22805 Tune heuristic from PR71016 to allow MIN / MAX.
22806
22807 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22808
22809 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22810 parameterized name.
22811 (abs<mode>2): Use that name. Simplify.
22812
22813 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22814
22815 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22816 parameterized name.
22817 (neg<mode>2): Use that name. Simplify.
22818
22819 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22820
22821 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22822 name.
22823 (abs<mode>2): Use that name. Simplify.
22824
22825 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22826
22827 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22828 name.
22829 (neg<mode>2): Use that name. Simplify.
22830
22831 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22832
22833 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22834 ("enabled" attribute): Handle sse_noavx isa attribute.
22835 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22836 Use TARGET_SSE && SSE_REGNO_P in split condition.
22837 (*vec_dupv2sf): Ditto.
22838
22839 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22840
22841 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22842 name.
22843 (floatsi<mode>2): Use that name. Simplify.
22844
22845 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22846
22847 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22848 parameterized name.
22849 (extenddf<mode>2_vsx): Make this a parameterized name.
22850 (extenddf<mode>2): Use those names. Simplify.
22851
22852 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22853
22854 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22855 name.
22856 (eh_return): Use that name. Simplify.
22857
22858 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22859
22860 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22861 (doloop_end): Use that name. Simplify.
22862
22863 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22864
22865 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22866 parameterized name.
22867 (indirect_jump): Use that name. Simplify.
22868
22869 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22870
22871 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22872 parameterized name.
22873 (abs<mode>2): Use that name. Simplify.
22874
22875 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22876
22877 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22878 parameterized name.
22879 (fix_trunc<mode>si2): Use that name. Simplify.
22880
22881 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22882
22883 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22884 (allocate_stack): Use that name. Simplify.
22885
22886 2019-07-01 Martin Sebor <msebor@redhat.com>
22887
22888 PR middle-end/90923
22889 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22890 (hash_map::get_or_insert): Same. Reformat comment.
22891 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22892 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22893 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22894 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22895 (hash_table::hash_table (const hash_table&)): Use copy ctor
22896 instead of assignment to copy elements.
22897
22898 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22899 John David Anglin <danglin@gcc.gnu.org>
22900
22901 PR target/90963
22902 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22903 using saved frame pointer.
22904
22905 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22906
22907 PR middle-end/64242
22908 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22909 Add frame clobber and schedule blockage.
22910
22911 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22912
22913 * doc/invoke.texi (Link Options): Further editorial changes to
22914 -flinker-output docs.
22915
22916 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22917
22918 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22919 Load both operands of a PLUS into registers separately.
22920
22921 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22922
22923 * config/s390/vector.md: Fix shift count operand printing.
22924
22925 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22926
22927 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22928
22929 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22930
22931 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22932 Use recog_data to test for an output operand.
22933
22934 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22935
22936 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22937 exclude any others that are disparaged or that are bound to need
22938 a reload or spill.
22939 (ira_get_dup_out_num): Expand comment.
22940
22941 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22942
22943 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22944 constraint string for each operand/alternative combo. Only handle
22945 '%' at the start of constraint strings, and look for it outside
22946 the main loop.
22947
22948 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22949
22950 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22951 alternative_mask instead of HARD_REG_SET to represent a
22952 bitmask of alternatives.
22953 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22954 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22955
22956 2019-07-01 Martin Liska <mliska@suse.cz>
22957
22958 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22959 use () for a constructor call.
22960 (test_applying_fixits_line_out_of_range): Likewise.
22961 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22962 argument.
22963 (free_page): Likewise.
22964
22965 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22966
22967 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22968 parameter names to match usage (no functional change).
22969 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22970
22971 2019-07-01 Richard Biener <rguenther@suse.de>
22972
22973 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22974 pass parameter.
22975 (pass_fre::execute): Honor it.
22976 * passes.def: Adjust pass_fre invocations to allow iterating,
22977 add non-iterating pass_fre before late threading/dom.
22978
22979 2019-07-01 Richard Biener <rguenther@suse.de>
22980
22981 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22982 TARGET_MEM_REF handling to also handle address-taken ones.
22983
22984 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22985
22986 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22987 hardware attributes): Document avx512vp2intersect.
22988
22989 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22990
22991 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22992 (abs<mode>2): New expander.
22993 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22994 Use CODE_FOR_ssse3_absv8qi2.
22995 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22996 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22997
22998 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22999
23000 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
23001 to sse, sse_noavx and avx. Update all uses.
23002
23003 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23004
23005 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
23006 (*mmx_<plusminus_insn><mode>3): Ditto.
23007 (*mmx_mulv4hi3"): Ditto.
23008 (*mmx_smulv4hi3_highpart): Ditto.
23009 (*mmx_umulv4hi3_highpart): Ditto.
23010 (*mmx_pmaddwd): Ditto.
23011 (*sse2_umulv1siv1di3): Ditto.
23012 (*mmx_<code>v4hi3): Ditto.
23013 (*mmx_<code>v8qi3): Ditto.
23014 (mmx_ashr<mode>3): Ditto.
23015 ("mmx_<shift_insn><mode>3): Ditto.
23016 (*mmx_eq<mode>3): Ditto.
23017 (mmx_gt<mode>3): Ditto.
23018 (mmx_andnot<mode>3): Ditto.
23019 (*mmx_<code><mode>3): Ditto.
23020 (*mmx_pinsrw): Ditto.
23021 (*mmx_pextrw): Ditto.
23022 (mmx_pshufw_1): Ditto.
23023 (*mmx_uavgv8qi3): Ditto.
23024 (*mmx_uavgv4hi3): Ditto.
23025 ("mmx_psadbw): Ditto.
23026 * config/i386/sse.md (sse_cvtps2pi): Ditto.
23027 (sse_cvttps2pi): Ditto.
23028 (ssse3_pmaddubsw): Ditto.
23029 (*ssse3_pmulhrswv4hi3): Ditto.
23030 (ssse3_psign<mode>3): Ditto.
23031
23032 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
23033
23034 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
23035 adjustment for bit-fields to all aggregate types.
23036
23037 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
23038
23039 * config/rs6000/predicates.md (pcrel_address): Use
23040 SYMBOL_REF_LOCAL_P to determine if a label is local.
23041 (pcrel_external_address): New predicate.
23042 (non_prefixed_mem_operand): Delete, predicate not used.
23043 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
23044 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
23045 addressing.
23046 (SYMBOL_REF_PCREL_P): Likewise.
23047
23048 PR target/91009
23049 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
23050 alternative.
23051 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
23052 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
23053 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
23054
23055 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23056
23057 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
23058 override on extra_headers.
23059
23060 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23061
23062 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
23063 * config/darwin-driver.c (darwin_default_min_version): Remove newline
23064 from warning.
23065 (darwin_driver_init): Likewise.
23066
23067 2019-06-28 Jan Beulich <jbeulich@suse.com>
23068
23069 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23070 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
23071 Eliminate redundant alternative.
23072
23073 2019-06-28 Jan Beulich <jbeulich@suse.com>
23074
23075 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23076 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
23077 Use vector_operand.
23078
23079 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
23080
23081 * config/arc/arc.c (arc_rtx_costs): All short instructions are
23082 having a lower cost regardless of the speed option.
23083
23084 2019-06-28 Jan Beulich <jbeulich@suse.com>
23085
23086 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
23087 vector_operand plus, on both alternatives, "Bm" constraint.
23088
23089 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
23090
23091 * config/arm/arm.md: Remove redundant constraints from
23092 define_expand but leave reload_inm and reload_outm patterns
23093 untouched since they need special constraints to work.
23094 * config/arm/arm-fixed.md: Remove redundant constraints from
23095 define_expand.
23096 * config/arm/iwmmxt.md: Likewise.
23097 * config/arm/neon.md: Likewise.
23098 * config/arm/sync.md: Likewise.
23099 * config/arm/thumb1.md: Likewise.
23100 * config/arm/vec-common.md: Likewise.
23101
23102 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
23103
23104 * doc/install.texi: Document --disable-tm-clone-registry.
23105
23106 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23107
23108 PR c++/91024
23109 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
23110 statements.
23111
23112 PR tree-optimization/91010
23113 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
23114 return true. Otherwise, don't call operand_equal_p if offset1 or
23115 offset2 is NULL and just return false.
23116
23117 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23118
23119 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
23120 user-specified float mode choice for kernel mode code.
23121
23122 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23123
23124 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
23125 spec.
23126
23127 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23128
23129 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
23130 use longcall for 64b code.
23131
23132 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
23133
23134 * builtins.c (get_memory_rtx): Fix comment.
23135 * optabs.def (movmem_optab): Change to cpymem_optab.
23136 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
23137 (emit_block_move_hints): Change movmem to cpymem.
23138 * defaults.h: Change movmem to cpymem.
23139 * targhooks.c (get_move_ratio): Change movmem to cpymem.
23140 (default_use_by_pieces_infrastructure_p): Ditto.
23141 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
23142 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
23143 to cpymem.
23144 * config/aarch64/aarch64.h: Change movmem to cpymem.
23145 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
23146 * config/alpha/alpha.h: Change movmem to cpymem in comment.
23147 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
23148 movmem to cpymem.
23149 * config/arc/arc-protos.h: Change movmem to cpymem.
23150 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
23151 * config/arc/arc.h: Change movmem to cpymem in comment.
23152 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
23153 * config/arm/arm-protos.h: Change movmem to cpymem in names.
23154 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
23155 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
23156 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
23157 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
23158 * config/avr/avr-protos.h: Change movmem to cpymem.
23159 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
23160 avr_out_movmem): Change movmem to cpymem.
23161 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
23162 Change movmem to cpymem.
23163 * config/bfin/bfin-protos.h: Change movmem to cpymem.
23164 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
23165 Change movmem to cpymem.
23166 * config/bfin/bfin.h: Change movmem to cpymem in comment.
23167 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
23168 * config/c6x/c6x-protos.h: Change movmem to cpymem.
23169 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
23170 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
23171 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
23172 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
23173 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
23174 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
23175 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
23176 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
23177 expand_small_cpymem_or_setmem,
23178 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
23179 expand_set_or_cpymem_constant_prologue,
23180 ix86_expand_set_or_cpymem): Change movmem to cpymem.
23181 * config/i386/i386-protos.h: Change movmem to cpymem.
23182 * config/i386/i386.h: Change movmem to cpymem in comment.
23183 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
23184 (setmem<mode>): Change expansion function name.
23185 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
23186 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
23187 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
23188 * config/m32c/m32c-protos.h: Change movmem to cpymem.
23189 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
23190 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
23191 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
23192 to cpymem.
23193 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
23194 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
23195 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
23196 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
23197 Change movmem to cpymem.
23198 * config/mips/mips.h: Change movmem to cpymem.
23199 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
23200 * config/nds32/nds32-memory-manipulation.c
23201 (nds32_expand_movmemsi_loop_unknown_size,
23202 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
23203 nds32_expand_movmemsi_unroll,
23204 nds32_expand_movmemsi): Change movmem to cpymem.
23205 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
23206 * config/nds32/nds32-protos.h: Change movmem to cpymem.
23207 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
23208 (pa_adjust_insn_length): Change call to compute_movmem_length.
23209 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
23210 movmemdi, movmemdi_prereload,
23211 movmemdi_postreload): Change movmem to cpymem.
23212 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
23213 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
23214 * config/riscv/riscv.c: Change movmem to cpymem in comment.
23215 * config/riscv/riscv.h: Change movmem to cpymem.
23216 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
23217 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
23218 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
23219 movmem to cpymem.
23220 * config/s390/s390-protos.h: Change movmem to cpymem.
23221 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
23222 s390_expand_insv): Change movmem to cpymem.
23223 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
23224 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
23225 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
23226 * config/sparc/sparc.h: Change movmem to cpymem in comment.
23227 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
23228 for nonexistent function.
23229 * config/vax/vax.h: Change movmem to cpymem in comment.
23230 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
23231 * config/visium/visium.h: Change movmem to cpymem in comment.
23232 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
23233 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
23234 * doc/md.texi: Change movmem to cpymem and update description to match.
23235 * doc/rtl.texi: Change movmem to cpymem.
23236 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
23237 * doc/tm.texi: Regenerate.
23238
23239 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
23240
23241 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
23242 -fvariable-expansion-in-unroller by default.
23243 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
23244 default for Power.
23245
23246 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
23247
23248 Revert
23249 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23250 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23251
23252 * config.gcc(rs6000-*-*): Define target_gtfiles.
23253
23254 2019-06-27 Jan Hubicka <jh@suse.cz>
23255
23256 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
23257 (add_type_duplicate): When odr hash is not allocated, to nothing.
23258 (odr_based_tbaa_p): New function.
23259 (set_type_canonical_for_odr_type): New function.
23260 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
23261 set_type_canonical_for_odr_type): New.
23262 * tree.c (gimple_canonical_types_compatible_p): ODR types with
23263 ODR based TBAA are not equivalent to non-ODR types.
23264
23265 2019-06-27 Martin Liska <mliska@suse.cz>
23266
23267 PR tree-optimization/90974
23268 PR rtl-optimization/90975
23269 PR rtl-optimization/90976
23270 PR target/91016
23271 PR tree-optimization/91017
23272 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
23273 unused tmp.
23274 * lra.c (lra_set_insn_recog_data): Remove a leftover from
23275 initial commit of IRA.
23276 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
23277 of op0 and op1.
23278 * tree-vect-loop.c (vect_create_epilog_for_reduction):
23279 Remove unused mode1.
23280 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
23281 to new_stmt_info.
23282
23283 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23284
23285 PR target/90991
23286 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
23287 instead of register_operand for operands[1], add m to its constraints
23288 if operands[2] uses "C" constraint. Ensure in condition that if
23289 operands[2] is not 0, then operands[1] is not a MEM. For last two
23290 alternatives, use unaligned loads instead of aligned if operands[1] is
23291 misaligned_operand.
23292
23293 2019-06-27 Martin Liska <mliska@suse.cz>
23294
23295 * asan.c (asan_emit_allocas_unpoison): Remove obviously
23296 dead assignments.
23297 * bt-load.c (move_btr_def): Likewise.
23298 * builtins.c (expand_builtin_apply_args_1): Likewise.
23299 (expand_builtin_apply): Likewise.
23300 * cfgexpand.c (expand_asm_stmt): Likewise.
23301 (construct_init_block): Likewise.
23302 * cfghooks.c (verify_flow_info): Likewise.
23303 * cfgloopmanip.c (remove_path): Likewise.
23304 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
23305 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
23306 * combine.c (simplify_if_then_else): Likewise.
23307 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
23308 (choose_basereg): Likewise.
23309 (ix86_expand_prologue): Likewise.
23310 (ix86_preferred_output_reload_class): Likewise.
23311 * cselib.c (cselib_record_sets): Likewise.
23312 * df-scan.c (df_scan_alloc): Likewise.
23313 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
23314 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
23315 * emit-rtl.c (try_split): Likewise.
23316 * graphite-scop-detection.c (assign_parameter_index_in_region):
23317 Likewise.
23318 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
23319 * ira-color.c (setup_profitable_hard_regs): Likewise.
23320 * ira.c (rtx_moveable_p): Likewise.
23321 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23322 * read-rtl.c (read_subst_mapping): Likewise.
23323 * regrename.c (scan_rtx): Likewise.
23324 * reorg.c (fill_slots_from_thread): Likewise.
23325 * tree-inline.c (tree_function_versioning): Likewise.
23326 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
23327 * tree-ssa-sink.c (statement_sink_location): Likewise.
23328 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
23329 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
23330 (vect_create_epilog_for_reduction): Likewise.
23331 * tree.c (build_nonstandard_integer_type): Likewise.
23332
23333 2019-06-27 Richard Biener <rguenther@suse.de>
23334
23335 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
23336
23337 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
23338
23339 PR tree-optimization/89772
23340 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
23341 out-of-bound accesses checking.
23342
23343 2019-06-27 Martin Liska <mliska@suse.cz>
23344
23345 PR tree-optimization/91014
23346 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
23347 when LHS is NULL_TREE.
23348
23349 2019-06-27 Martin Liska <mliska@suse.cz>
23350
23351 * symbol-summary.h (traverse): Pass
23352 argument a to the call of callback.
23353 (gt_ggc_mx): Mark arguments as unused.
23354 (gt_pch_nx): Likewise.
23355
23356 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
23357
23358 PR target/62147
23359 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
23360 finiteness.
23361
23362 2019-06-26 Jeff Law <law@redhat.com>
23363
23364 PR tree-optimization/90883
23365 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
23366 (delete_dead_or_redundant_assignment): Likewise.
23367
23368 PR tree-optimization/90883
23369 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
23370 * tree-ssa-dse.c: Update various comments to distinguish between
23371 dead and redundant stores.
23372 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
23373 (dse_optimize_redundant_stores): New function.
23374 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
23375 Distinguish between dead and redundant calls in dump output. All
23376 callers updated.
23377 (delete_dead_or_redundant_assignment): Similarly for assignments.
23378 (dse_optimize_stmt): Handle _CHK variants. For statements which
23379 store 0 into multiple memory locations, try to prove a subsequent
23380 store is redundant.
23381
23382 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
23383
23384 PR target/89021
23385 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23386 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23387
23388 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23389
23390 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23391 (branch_islands): New extern.
23392 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23393 * config/rs6000/rs6000.c: .. here.
23394
23395 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23396
23397 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23398 (powerpc*-*-*) ... to here.
23399
23400 2019-06-26 Jeff Law <law@redhat.com>
23401
23402 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23403 memcpy, memmove and memset builtins.
23404 (maybe_trim_memstar_call): Likewise.
23405
23406 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23407
23408 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23409
23410 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23411
23412 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23413
23414 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23415
23416 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23417 declaration.
23418 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23419 "static".
23420 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23421 declaration.
23422
23423 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23424
23425 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23426
23427 2019-06-26 Richard Biener <rguenther@suse.de>
23428
23429 PR ipa/90982
23430 * tree-inline.c (remap_ssa_name): Copy SSA range info.
23431
23432 2019-06-26 Richard Biener <rguenther@suse.de>
23433
23434 * lto-streamer.h (lto_bitmap_alloc): Remove.
23435 (lto_bitmap_free): Likewise.
23436 * lto-streamer.c (lto_bitmap_alloc): Remove.
23437 (lto_bitmap_free): Likewise.
23438 (lto_obstack): Likewise.
23439 (lto_obstack_initialized): Likewise.
23440 * lto-streamer-out.c (lto_output): Use own obstack for local
23441 bitmap, free it consistently.
23442
23443 2019-06-26 Jakub Jelinek <jakub@redhat.com>
23444
23445 PR target/90991
23446 * config/i386/sse.md
23447 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23448 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23449 insns if operands[2] is misaligned_operand.
23450
23451 2019-06-26 Li Jia He <helijia@linux.ibm.com>
23452
23453 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23454 TARGET_POWERPC64.
23455 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23456 to GPR.
23457
23458 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23459
23460 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23461
23462 2019-06-26 Martin Liska <mliska@suse.cz>
23463
23464 PR tree-optimization/90973
23465 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23466 epilogue_cost_vec instead of prologue_cost_vec for
23467 a epilogue cost.
23468
23469 2019-06-26 Martin Liska <mliska@suse.cz>
23470
23471 * bb-reorder.c (connect_better_edge_p): Add missing else
23472 statement in the middle of if-else statements.
23473
23474 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23475 H.J. Lu <hongjiu.lu@intel.com>
23476 Olga Makhotina <olga.makhotina@intel.com>
23477
23478 * common/config/i386/i386-common.c
23479 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23480 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23481 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23482 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23483 (ix86_handle_option): Handle -mavx512vp2intersect.
23484 * config/i386/avx512vp2intersectintrin.h: New.
23485 * config/i386/avx512vp2intersectvlintrin.h: New.
23486 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23487 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23488 AVX512VP2INTERSECT.
23489 * config/i386/i386-builtin-types.def: Add new types.
23490 * config/i386/i386-builtin.def: Add new builtins.
23491 * config/i386/i386-builtins.c: (enum processor_features): Add
23492 F_AVX512VP2INTERSECT.
23493 (static const _isa_names_table isa_names_table): Ditto.
23494 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23495 __AVX512VP2INTERSECT__.
23496 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23497 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23498 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23499 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23500 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23501 * config/i386/i386-options.c (ix86_target_string): Add
23502 -mavx512vp2intersect.
23503 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23504 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23505 P2HImode and P2QImode.
23506 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23507 number for P2QImode and P2HImode.
23508 (ix86_regmode_natural_size): New function.
23509 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23510 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23511 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23512 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23513 * config/i386/i386.opt: Add -mavx512vp2intersect.
23514 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23515 avx512vp2intersectvlintrin.h.
23516 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23517 (define_mode_iterator VI48_AVX512VP2VL): New.
23518 (avx512vp2intersect_2intersect<mode>,
23519 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23520 * config.gcc: Add avx512vp2intersectvlintrin.h and
23521 avx512vp2intersectintrin.h to extra_headers.
23522 * doc/invoke.texi: Document -mavx512vp2intersect.
23523
23524 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23525
23526 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23527
23528 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23529
23530 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23531 savres_routine_syms, savres_routine_name, morestack_ref,
23532 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23533 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23534 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23535 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23536 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23537 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23538 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23539 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23540 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23541 get_stack_clash_protection_probe_interval,
23542 get_stack_clash_protection_guard_size,
23543 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23544 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23545 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23546 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23547 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23548 gen_frame_mem_offset, rs6000_savres_routine_name,
23549 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23550 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23551 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23552 rs6000_global_entry_point_prologue_needed_p,
23553 rs6000_get_separate_components, rs6000_components_for_bb,
23554 rs6000_disqualify_components, rs6000_emit_prologue_components,
23555 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23556 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23557 rs6000_output_savres_externs, rs6000_output_function_prologue,
23558 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23559 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23560 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23561 rs6000_output_function_epilogue, gen_add3_const,
23562 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23563 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23564 to rs6000-logue.c.
23565 (machine_function): Moved to rs6000.h.
23566 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23567 rs6000-internal.h.
23568 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23569 savres_routine_syms, savres_routine_name, morestack_ref,
23570 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23571 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23572 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23573 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23574 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23575 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23576 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23577 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23578 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23579 get_stack_clash_protection_probe_interval,
23580 get_stack_clash_protection_guard_size,
23581 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23582 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23583 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23584 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23585 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23586 gen_frame_mem_offset, rs6000_savres_routine_name,
23587 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23588 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23589 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23590 rs6000_global_entry_point_prologue_needed_p,
23591 rs6000_get_separate_components, rs6000_components_for_bb,
23592 rs6000_disqualify_components, rs6000_emit_prologue_components,
23593 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23594 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23595 rs6000_output_savres_externs, rs6000_output_function_prologue,
23596 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23597 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23598 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23599 rs6000_output_function_epilogue, gen_add3_const,
23600 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23601 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23602 to here from rs6000.c.
23603 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23604 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23605 quad_address_offset_p) Moved to here from rs6000.c.
23606 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23607 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23608 collector.
23609
23610 2019-06-25 Martin Liska <mliska@suse.cz>
23611
23612 * hash-table.c (hashtab_chk_error): Move here from ...
23613 * hash-table.h (hashtab_chk_error): ... here.
23614
23615 2019-06-25 Martin Liska <mliska@suse.cz>
23616
23617 PR tree-optimization/90978
23618 * df-scan.c (df_update_entry_block_defs): Remove dead else
23619 branch.
23620 (df_update_exit_block_uses): Likewise.
23621
23622 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23623 Andrew Stubbs <ams@codesourcery.com>
23624
23625 * config.gcc (thread_file): Set to gcn for AMD GCN.
23626 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23627 (TARGET_EMUTLS_VAR_INIT): New hook.
23628
23629 2019-06-25 Martin Jambor <mjambor@suse.cz>
23630
23631 PR ipa/90939
23632 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23633
23634 2019-06-25 Richard Biener <rguenther@suse.de>
23635
23636 PR tree-optimization/90930
23637 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23638 into parallel form in the last pass instance.
23639
23640 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23641
23642 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23643 (arc_legitimize_pic_address): Simplify and cleanup the function.
23644 (SYMBOLIC_CONST): Remove.
23645 (prepare_pic_move): Likewise.
23646 (prepare_move_operands): Handle complex mov cases here.
23647 (arc_legitimize_address_0): Remove call to
23648 arc_legitimize_pic_address.
23649 (arc_legitimize_address): Remove call to
23650 arc_legitimize_tls_address.
23651 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23652 (movhi_insn): Likewise.
23653
23654 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23655
23656 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23657 PTRDIFF_TYPE.
23658 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23659 format of "__intN" types for UINTMAX_TYPE.
23660 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23661 format of "__intN" types for SIZETYPE.
23662 * tree.c (build_common_tree_nodes): Accept "__intN__"
23663 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23664 * doc/invoke.texi: Document that __intN__ disables pedantic
23665 warnings.
23666
23667 2019-06-25 Jan Hubicka <jh@suse.cz>
23668
23669 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23670 base2_alias_set is non-zero before doing TBAA based disambiguation.
23671
23672 2019-06-25 Martin Liska <mliska@suse.cz>
23673
23674 PR tree-optimization/90973
23675 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23676 of prologue and epilogue.
23677
23678 2019-06-24 Jan Hubicka <jh@suse.cz>
23679
23680 * ipa-utils.h (type_with_linkage_p): Verify that type is
23681 CXX_ODR_P.
23682 (odr_type_p): Remove extra return.
23683 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23684 hash STRING_FLAG only for arrays and integers.
23685 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23686 Update analogously.
23687 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23688 Likewise.
23689 * print-tree.c (print_node): Print cxx-odr-p
23690 and string-flag.
23691 * tree.c (need_assembler_name_p): Also check that type
23692 is CXX_ODR_TYPE_P
23693 (verify_type_variant): Update verification of SRING_FLAG;
23694 also check CXX_ODR_P.
23695 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23696 (TYPE_STRING_FLAG): Use it.
23697 (TYPE_CXX_ODR_P): New macro.
23698 * dwarf2out.c (gen_array_type_die): First check that type
23699 is an array and then test string flag.
23700
23701 2019-06-24 Richard Biener <rguenther@suse.de>
23702
23703 PR tree-optimization/90972
23704 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23705 in common code, dealing with STRING_CST properly.
23706
23707 2019-06-24 Richard Biener <rguenther@suse.de>
23708
23709 PR tree-optimization/90930
23710 PR tree-optimization/90316
23711 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23712 decrement of limit.
23713
23714 2019-06-24 Martin Sebor <msebor@redhat.com>
23715
23716 * tree-pretty-print.h: Remove unnecessary punctuation characters
23717 from a diagnostic.
23718 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23719
23720 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23721
23722 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23723 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23724 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23725
23726 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23727
23728 * config/rs6000/darwin.h: Handle GCC target pragma.
23729
23730 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23731
23732 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23733
23734 2019-06-22 Jeff Law <law@redhat.com>
23735
23736 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23737
23738 2019-06-22 Jan Hubicka <jh@suse.cz>
23739
23740 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23741 give up on bitfields; continue searching for different refs
23742 appearing later.
23743
23744 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23745
23746 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23747 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23748 containing the offset as possible simd lane access. Look through
23749 widening conversion. Move the
23750 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23751
23752 2019-06-21 Richard Biener <rguenther@suse.de>
23753
23754 PR tree-optimization/90930
23755 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23756 flag on new stmts to avoid re-processing them.
23757
23758 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23759
23760 PR c++/90875 - added -Wswitch-outside-range option
23761 * doc/invoke.texi (Wswitch-outside-range): Document.
23762
23763 2019-06-21 Jeff Law <law@redhat.com>
23764
23765 PR tree-optimization/90949
23766 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23767 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23768
23769 2019-06-21 Richard Biener <rguenther@suse.de>
23770
23771 PR debug/90914
23772 * dwarf2out.c (prune_unused_types_walk): Always consider
23773 function-local extern declarations as used.
23774
23775 2019-06-21 Richard Biener <rguenther@suse.de>
23776
23777 PR tree-optimization/90913
23778 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23779 the scalar variant of if-conversion versioning.
23780
23781 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23782
23783 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23784 create another "omp scan inscan exclusive" array if
23785 !ctx->scan_inclusive.
23786 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23787 (lower_omp_scan): Likewise.
23788 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23789 2-bit bitfield for simd_lane_access_p member.
23790 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23791 aux == (void *)-4 as simd lane access.
23792 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23793 comment with permutations to show the canonical permutation order.
23794 (vectorizable_scan_store): Handle exclusive scan.
23795 (vectorizable_store): Call vectorizable_scan_store even for
23796 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23797
23798 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23799 "omp simd array" arrays with one byte elements.
23800
23801 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23802
23803 * config/alpha/alpha.md (@unaligned_store<mode>):
23804 Rename from unaligned_store<mode>.
23805 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23806 * config/alpha/sync.md (@load_locked_<mode>): Rename
23807 from load_locked_<mode>.
23808 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23809 (@atomic_compare_and_swap<mode>_1): Rename
23810 from atomic_compare_and_swap<mode>_1.
23811 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23812 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23813 Use gen_reload_in_aligned and gen_unaligned_store.
23814 (emit_load_locked): Remove.
23815 (emit_store_conditional): Ditto.
23816 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23817 (alpha_split_compare_and_swap): Ditto.
23818 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23819 (alpha_split_compare_and_swap_12): Use gen_load_locked
23820 and gen_store_conditional.
23821 (alpha_split_atomic_exchange): Ditto.
23822 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23823 (alpha_split_atomic_exchange_12): Use gen_load_locked
23824 and gen_store_conditional.
23825
23826 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23827
23828 * config/aarch64/aarch64-errata.h: New file.
23829 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23830 (CA53_ERR_843419_SPEC): Delete.
23831 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23832 * config/aarch64/aarch64-linux.h: Likewise.
23833 * config/aarch64/aarch64-netbsd.h: Likewise.
23834 * config/aarch64/aarch64-freebsd.h: Likewise.
23835
23836 2019-06-20 Marek Polacek <polacek@redhat.com>
23837
23838 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23839
23840 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23841
23842 * config/rs6000/rs6000.md (isa attribute): Add support for
23843 for a future processor.
23844
23845 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23846
23847 PR target/54855
23848 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23849 standard scalar operation pattern for V2DF.
23850 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23851 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23852 (*ieee_<ieee_maxmin><mode>3): Likewise.
23853 (vec_setv2df_0): Likewise.
23854
23855 2019-06-20 Jan Hubicka <jh@suse.cz>
23856
23857 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23858 parameter; it has no use in gimple memory model.
23859 (indirect_ref_may_alias_decl_p): Update.
23860
23861 2019-06-20 Martin Liska <mliska@suse.cz>
23862
23863 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23864 to 10.
23865
23866 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23867
23868 * tree-vect-stmts.c (enum scan_store_kind): New type.
23869 (scan_store_can_perm_p): Change last argument from int * to
23870 vec<enum scan_store_kind> *, record precisely which permutations
23871 need whole vector left shift or that plus VEC_COND_EXPR.
23872 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23873 and additional VEC_COND_EXPR only for those iterations that need it.
23874
23875 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23876
23877 * config.gcc: Fix ARM --with-fpu checking and error message.
23878
23879 2019-06-19 Marek Polacek <polacek@redhat.com>
23880
23881 PR c++/60364 - noreturn after first decl not diagnosed.
23882 * attribs.c (get_attribute_namespace): No longer static.
23883 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23884 attributes.
23885 (attr_noreturn_exclusions): Make it extern.
23886 * attribs.h (get_attribute_namespace): Declare.
23887 * tree-inline.c (function_attribute_inlinable_p): Use
23888 get_attribute_name.
23889
23890 2019-06-19 Martin Sebor <msebor@redhat.com>
23891
23892 PR tree-optimization/90626
23893 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23894
23895 PR tree-optimization/90626
23896 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23897 (handle_builtin_string_cmp): Call it.
23898
23899 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23900
23901 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23902 and DARWIN_NOPIE_SPEC.
23903 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23904 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23905 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23906 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23907 (DARWIN_EXPORT_DYNAMIC): Delete.
23908 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23909 and pie options processing to darwin.h.
23910 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23911
23912 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23913
23914 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23915 in computing the number of options to be moved.
23916
23917 2019-06-19 Maya Rashish <coypu@sdf.org>
23918
23919 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23920 (CLEAR_INSN_CACHE) Use it.
23921
23922 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23923
23924 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23925
23926 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23927
23928 PR middle-end/84521
23929 * builtins.c (expand_builtin_setjmp_setup): Save
23930 hard_frame_pointer_rtx.
23931 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23932 restore fp.
23933 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23934 non-local goto.
23935 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23936 elimination code.
23937 (remove_reg_equal_offset_note): Remove unused function.
23938 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23939 code.
23940 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23941 (arc_builtin_setjmp_frame_value): Remove function.
23942 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23943 (avr_builtin_setjmp_frame_value): Remove function.
23944 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23945 (ix86_builtin_setjmp_frame_value): Remove function.
23946 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23947 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23948 (sparc_builtin_setjmp_frame_value): Remove function.
23949 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23950 (vax_builtin_setjmp_frame_value): Remove function.
23951 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23952 pointer if has_nonlocal_label.
23953
23954 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23955
23956 * doc/md.texi: Document vec_shl_<mode> pattern.
23957 * optabs.def (vec_shl_optab): New optab.
23958 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23959 argument, if == vec_shl_optab, check for left whole vector shift
23960 pattern rather than right shift.
23961 (expand_vec_perm_const): Add vec_shl_optab support.
23962 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23963 in the comment.
23964 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23965 can be handled by vec_shl_optab.
23966 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23967 (check_scan_store): Use it.
23968 (vectorizable_scan_store): If target can't do normal permutations,
23969 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23970 after it.
23971 * config/i386/sse.md (vec_shl_<mode>): New expander.
23972
23973 * omp-low.c (lower_rec_input_clauses): Handle references properly
23974 in inscan clauses.
23975 (lower_omp_scan): Likewise.
23976
23977 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23978
23979 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23980 mem_mode is BLKmode.
23981
23982 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23983
23984 PR target/90922
23985 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23986 pointer adjustment for the case of no callee-saved registers and
23987 stack frame bigger than 128 bytes.
23988
23989 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23990
23991 PR middle-end/90862
23992 * omp-low.c (check_omp_nesting_restrictions): Handle
23993 GF_OMP_TARGET_KIND_OACC_DECLARE.
23994
23995 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23996
23997 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23998 (@add<mode>3_carry): Rename from add<mode>3_carry.
23999 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
24000 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
24001 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
24002 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
24003 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
24004 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
24005 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
24006 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
24007 (cmpstrnsi): Use gen_cmp_1.
24008 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
24009 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
24010 (@umonitor_<mode>): Rename from umonitor_<mode>.
24011 * config/i386/i386-expand.c (ix86_expand_copysign):
24012 Use gen_copysign3_const and gen_copysign3_var.
24013 (ix86_expand_xorsign): Use gen_xorsign3_1.
24014 (ix86_expand_branch): Use gen_sub3_carry_ccc,
24015 gen_sub3_carry_ccgz and gen_cmp1.
24016 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
24017 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
24018 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
24019 (ix86_split_lshr): Ditto.
24020 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
24021
24022 2019-06-18 Jason Merrill <jason@redhat.com>
24023
24024 * tree.c (build_constructor): Add MEM_STAT_DECL.
24025
24026 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24027
24028 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
24029 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
24030 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
24031 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
24032 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
24033 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
24034 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
24035 Use CC_NZC instead of CC.
24036 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
24037 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
24038 (aarch64_print_operand): Handle E_CC_NZCmode.
24039 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
24040 of gen_set_clobber_cc.
24041
24042 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24043
24044 * config/aarch64/aarch64-sve.md: Tabify file.
24045
24046 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24047
24048 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
24049 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
24050 * config/aarch64/aarch64-sve.md: Use it.
24051
24052 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24053
24054 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
24055 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
24056 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
24057 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
24058 (aarch64_expand_sve_vec_cmp_int): Use it.
24059 (aarch64_expand_sve_vec_cmp_float): Likewise.
24060 * config/aarch64/aarch64-sve.md: Likewise throughout.
24061
24062 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24063 Kugan Vivekanandarajah <kuganv@linaro.org>
24064
24065 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
24066 (*cond_<optab><mode>_z): Fold into...
24067 (*cond_<optab><mode>_any): ...here. Also handle cases in which
24068 operand 4 can be tied to operand 0 (either inherently or via RA).
24069
24070 2019-06-18 Richard Biener <rguenther@suse.de>
24071
24072 PR debug/90900
24073 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
24074 as if optimized away.
24075
24076 2019-06-18 Tom de Vries <tdevries@suse.de>
24077
24078 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
24079 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
24080 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
24081 Rename to ...
24082 (define_insn "@set_softstack_<mode>"): ... this.
24083 (define_insn "omp_simt_enter_<mode>"): Rename to ...
24084 (define_insn "@omp_simt_enter_<mode>"): ... this.
24085 (define_insn "omp_simt_exit_<mode>"): Rename to ...
24086 (define_insn "@omp_simt_exit_<mode>"): ... this.
24087
24088 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24089
24090 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
24091 vf parameter. Restore the previous iv step of nscalars_step,
24092 but give it iv_type rather than compare_type. Tweak code order
24093 to match the comments.
24094 (vect_set_loop_condition_masked): Update accordingly.
24095 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
24096 for iv_precision. Tweak comment formatting.
24097
24098 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24099
24100 * config/darwin.c: Strip trailing whitespace.
24101
24102 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24103
24104 * config/darwin.c (darwin_emit_unwind_label): New default to false.
24105 (darwin_override_options): Set darwin_emit_unwind_label as needed.
24106
24107 2019-06-18 Martin Jambor <mjambor@suse.cz>
24108
24109 PR ipa/90889
24110 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
24111 caller does not have flag_ipa_cp set.
24112
24113 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24114
24115 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
24116 from "*fold_left_plus_<mode>", updated operands order.
24117 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
24118 * internal-fn.c (mask_fold_left_direct): New define.
24119 (expand_mask_fold_left_optab_fn): Likewise.
24120 (direct_mask_fold_left_optab_supported_p): Likewise.
24121 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
24122 * optabs.def (mask_fold_left_plus_optab): New optab.
24123 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
24124 masked internal_fn for a reduction ifn.
24125 (vectorize_fold_left_reduction): Add support for masking reductions.
24126
24127 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
24128
24129 PR middle-end/80791
24130 * target.def (predict_doloop_p): New hook.
24131 * targhooks.h (default_predict_doloop_p): New declaration.
24132 * targhooks.c (default_predict_doloop_p): New function.
24133 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
24134 * doc/tm.texi: Regenerate.
24135 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
24136 (TARGET_PREDICT_DOLOOP_P): New macro.
24137 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
24138
24139 2019-06-17 Jakub Jelinek <jakub@redhat.com>
24140
24141 * omp-low.c (struct omp_context): Add scan_inclusive field.
24142 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
24143 if inclusive scan.
24144 (struct omplow_simd_context): Add lastlane member.
24145 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
24146 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
24147 1 or 2 argument.
24148 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
24149 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
24150 (lower_omp_scan): New function.
24151 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
24152 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
24153 check 3rd argument if present rather than 2nd.
24154 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
24155 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
24156 2-bit bitfield.
24157 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
24158 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
24159 than 2nd.
24160 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
24161 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
24162 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
24163 init.
24164 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
24165 IFN_GOMP_SIMD_LANE argument.
24166 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
24167 encoded ->aux value.
24168 * tree-vect-stmts.c: Include attribs.h.
24169 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
24170 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
24171 functions.
24172 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
24173 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
24174
24175 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
24176
24177 PR target/62055
24178 * config/i386/i386.md (*nabstf2_1): New insn pattern.
24179 (*nabs<mode>2_1): Ditto.
24180 (nabs sse-reg splitter): New splitter.
24181 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
24182
24183 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24184
24185 PR bootstrap/90873.
24186 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
24187 TMR index check.
24188
24189 2019-06-17 Tom de Vries <tdevries@suse.de>
24190
24191 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
24192 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
24193 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
24194 ...
24195 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
24196 match_operand 0.
24197 (define_insn "omp_simt_enter_insn"): Rename to ...
24198 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
24199 match_operand 0, 1 and 2, as well as the unspec_volatile result.
24200 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
24201 gen_omp_simt_enter_si.
24202 (define_expand "omp_simt_exit"): New.
24203 (define_insn "omp_simt_exit"): Rename to ...
24204 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
24205 match_operand 0.
24206
24207 2019-06-17 Matthew Green <mrg@eterna.com.au>
24208 Maya Rashish <coypu@sdf.org>
24209
24210 * config.gcc (aarch64*-*-netbsd*): New target.
24211 * config/aarch64/aarch64-netbsd.h: New file.
24212 * config/aarch64/t-aarch64-netbsd: Likewise.
24213
24214 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24215
24216 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
24217 the access path from base to first VIEW_CONVERT_EXPR or
24218 BIT_FIELD_REF.
24219
24220 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24221
24222 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
24223 access path on BIT_FIELD_REFs.
24224
24225 2019-06-17 Martin Liska <mliska@suse.cz>
24226
24227 PR ipa/90874
24228 * ipa-utils.h (odr_type_p): Remove dead code.
24229
24230 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24231
24232 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
24233 alternative Solaris 11.4 format.
24234 * configure: Regenerate.
24235
24236 2019-06-17 Tom de Vries <tdevries@suse.de>
24237
24238 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
24239 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
24240 match_operand 0.
24241 (define_insn "call_value_insn"): Rename to ...
24242 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
24243 match_operand 0.
24244 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
24245 DI.
24246
24247 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
24248
24249 PR middle-end/64242
24250 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
24251 frame clobbers and schedule block.
24252 (builtin_longjmp): Likewise.
24253
24254 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24255
24256 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
24257 describe how to perform MSPABI compliant 64-bit shift.
24258 * config/msp430/msp430.md (ashldi3): New define_expand.
24259 (ashrdi3): New define_expand.
24260 (lshrdi3): New define_expand.
24261
24262 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24263
24264 * doc/sourcebuild.texi: Document new effective target keyword
24265 longlong64.
24266
24267 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24268
24269 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
24270 indirect_refs_may_alias_p): Revert accidental commits.
24271
24272 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
24273 at the end of structures.
24274
24275 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24276
24277 * config/darwin.c (machopic_indirect_call_target): Use renamed
24278 darwin_picsymbol_stubs to decide on output.
24279 (darwin_override_options): Handle darwin_picsymbol_stubs.
24280 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
24281 (LD64_VERSION): Revise default.
24282 * config/darwin.opt: (mpic-symbol-stubs): New option.
24283 (darwin_picsymbol_stubs): New variable.
24284 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
24285 rename to TARGET_MACHO_PICSYM_STUBS.
24286 * config/i386/i386.c (output_pic_addr_const): Likewise.
24287 * config/i386/i386.h Likewise.
24288 * config/rs6000/darwin.h: Likewise.
24289 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
24290 darwin_picsymbol_stubs.
24291
24292 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24293
24294 * config/darwin.opt (prebind, noprebind, seglinkedit,
24295 noseglinkedit): Add RejectNegative.
24296
24297 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24298
24299 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
24300 in my previous patch.
24301
24302 2019-06-16 Tom de Vries <tdevries@suse.de>
24303
24304 PR tree-optimization/89376
24305 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
24306
24307 2019-06-15 Maya Rashish <coypu@sdf.org>
24308
24309 * doc/invoke.texi (Spec Files): Update location of the
24310 Fortran spec file.
24311
24312 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
24313
24314 * doc/extend.texi (Common Function Attributes): Clarify
24315 no_sanitize. Fix grammar.
24316
24317 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
24318
24319 * tree-ssa-alias.c (alias_stats): Add
24320 nonoverlapping_component_refs_p_may_alias,
24321 nonoverlapping_component_refs_p_no_alias,
24322 nonoverlapping_component_refs_of_decl_p_may_alias,
24323 nonoverlapping_component_refs_of_decl_p_no_alias.
24324 (dump_alias_stats): Dump them.
24325 (nonoverlapping_component_refs_of_decl_p): Add stats.
24326 (nonoverlapping_component_refs_p): Add stats; do not stop on first
24327 ARRAY_REF.
24328
24329 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
24330
24331 * config/i386/i386.md (and<mode>3): Generate zero-extends for
24332 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
24333 only.
24334 (*anddi3_doubleword): Split before reload. Merge with
24335 anddi->zext pre-reload splitter.
24336 (*andndi3_doubleword): Split before reload.
24337 (*<code>di3_doubleword): Ditto.
24338 (*one_cmpldi2_doubleword): Ditto.
24339
24340 2019-06-15 Jakub Jelinek <jakub@redhat.com>
24341
24342 PR middle-end/90779
24343 * gimplify.c: Include omp-offload.h and context.h.
24344 (gimplify_bind_expr): Add "omp declare target" attributes
24345 to static block scope variables inside of target region or target
24346 functions.
24347
24348 2019-06-15 Tom de Vries <tdevries@suse.de>
24349
24350 PR tree-optimization/90009
24351 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
24352 Return NULL if bb contains IFN_UNIQUE.
24353
24354 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
24355
24356 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
24357 (un): New define_mode_attr.
24358 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
24359 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
24360 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
24361 merge into ...
24362 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
24363
24364 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
24365
24366 * config/darwin.opt: Add RejectNegative where needed, reorder
24367 and add minimal functional descriptions.
24368
24369 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24370
24371 PR rtl-optimization/90765
24372 * calls.c (update_stack_alignment_for_call): New function.
24373 (expand_call): Call update_stack_alignment_for_call when
24374 outgoing parameter is passed in the stack.
24375 (emit_library_call_value_1): Likewise.
24376 * function.c (locate_and_pad_parm): Don't update
24377 stack_alignment_needed and preferred_stack_boundary.
24378
24379 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24380
24381 PR target/90877
24382 * config/i386/i386-features.c
24383 (dimode_scalar_chain::compute_convert_gain): Replace
24384 mmxsse_to_integer with sse_to_integer.
24385 * config/i386/i386.c (ix86_register_move_cost): Verify that
24386 moves between MMX and non-MMX units require secondary memory.
24387 Correct costs of moves between SSE and integer units.
24388 * config/i386/i386.h (processor_costs): Rename cost of moving
24389 SSE register to integer to sse_to_integer. Rename cost of
24390
24391 2019-06-14 Matt Thomas <matt@3am-software.com>
24392 Matthew Green <mrg@eterna.com.au>
24393 Nick Hudson <skrll@netbsd.org>
24394 Maya Rashish <coypu@sdf.org>
24395 Richard Earnshaw <rearnsha@arm.com>
24396
24397 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24398 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24399 * config/arm/netbsd-eabi.h: New file.
24400 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24401 redefining.
24402 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24403 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24404 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24405 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24406
24407 2019-06-14 Richard Biener <rguenther@suse.de>
24408
24409 * tree-loop-distribution.c (classify_partition): Return
24410 whether a reduction appeared in all partitions and do not
24411 stop builtin detection because of this.
24412 (distribute_loop): Sort a non-builtin partition last if
24413 there's a reduction in all partitions and make sure the
24414 partition prevailing as last is not a builtin.
24415
24416 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
24417
24418 PR ipa/90401
24419 * ipa-prop.c (add_to_agg_contents_list): New function.
24420 (clobber_by_agg_contents_list_p): Likewise.
24421 (extract_mem_content): Likewise.
24422 (get_place_in_agg_contents_list): Delete.
24423 (determine_known_aggregate_parts): Renamed from
24424 determine_locally_known_aggregate_parts. New parameter
24425 aa_walk_budget_p.
24426
24427 2019-06-13 Martin Sebor <msebor@redhat.com>
24428
24429 PR tree-optimization/90662
24430 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24431 to the same type.
24432
24433 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24434
24435 PR bootstrap/90873
24436 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24437 dbase is not TARGET_MEM_REF.
24438
24439 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24440
24441 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24442 Update all uses.
24443 (and<mode>3): Use gen_extend_insn instead of indirect functions.
24444 Do not generate DImode extends for 32bit targets.
24445 (and->zext post-reload splitter): Use gen_extend_insn
24446 instead of indirect functions.
24447 (anddi->zext pre-reload splitter): New.
24448 (*zext<mode>_doubleword_and): Remove.
24449 (*zext<mode>_doubleword): Ditto.
24450 (*zextsi_doubleword): Dittto.
24451
24452 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24453
24454 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24455 Use gen_sub3_insn instead of indirect function.
24456 (ix86_expand_ashl_const): Use gen_add2_insn instead of
24457 indirect function.
24458 (ix86_adjust_counter): Ditto.
24459
24460 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24461 Lijia He <helijia@linux.ibm.com>
24462
24463 PR tree-optimization/77820
24464 * tree-ssa-threadedge.c
24465 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24466 function.
24467 (thread_across_edge): Add call to
24468 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24469
24470 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24471
24472 * config/darwin-driver.c (validate_macosx_version_min): New.
24473 (darwin_default_min_version): Cleanup and validate supplied version.
24474 (darwin_driver_init): Likewise and push cleaned version into opts.
24475
24476 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24477
24478 PR tree-optimization/90869
24479 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24480 converts in MEM_REF referencing decl rather than view converts
24481 from decl type to MEM_REF type.
24482
24483 2019-06-13 Richard Biener <rguenther@suse.de>
24484
24485 PR tree-optimization/90856
24486 * tree-sra.c (build_ref_for_model): Only use
24487 build_reconstructed_reference when address-spaces are the same.
24488
24489 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24490
24491 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24492 wrap ei variable name in the declaration in ()s.
24493 (nvptx_single): Actually use mode_label variable. Formatting fix.
24494
24495 2019-06-13 Richard Biener <rguenther@suse.de>
24496
24497 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24498 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24499 also return the condition stmt.
24500 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24501 loop we can version and version that, reusing the loop version
24502 created by if-conversion instead of versioning again.
24503
24504 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24505
24506 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24507 may_contain_p.
24508 * tree-vrp (value_range_base::may_contain_p): Call into
24509 value_inside_range.
24510 (value_inside_range): Make private inside value_range_base class.
24511 Take min/max from *this.
24512 (range_includes_p): Remove.
24513 * tree-vrp.h (value_range_base): Add value_inside_range.
24514 (range_includes_p): Remove.
24515 (range_includes_zero_p): Call may_contain_p.
24516 * vr-values.c (compare_range_with_value): Same.
24517
24518 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24519
24520 * doc/extend.texi (ARC Function Attributes): Update info.
24521
24522 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24523
24524 PR tree-optimization/89713
24525 * doc/invoke.texi (-ffinite-loops): Document new option.
24526 * common.opt (-ffinite-loops): New option.
24527 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24528 IFN_GOACC_LOOP calls as necessary.
24529 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24530 is finite.
24531 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24532 IFN_GOACC_LOOP call is not used.
24533 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24534
24535 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24536
24537 PR target/88838
24538 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24539 compare_type is not with Pmode size, we will create an IV with
24540 Pmode size with truncated use (i.e. converted to the correct type).
24541 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24542 (vect_iv_limit_for_full_masking): New. Factored out of
24543 vect_set_loop_condition_masked.
24544 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24545 (vect_iv_limit_for_full_masking): Declare.
24546
24547 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24548
24549 PR target/88834
24550 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24551 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24552 (get_alias_ptr_type_for_ptr_address): Likewise.
24553 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24554 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24555 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24556 allow_reg_index_p.
24557
24558 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24559
24560 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24561
24562 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24563
24564 * common/config/pru/pru-common.c: New file.
24565 * config.gcc: Add PRU target.
24566 * config/pru/alu-zext.md: New file.
24567 * config/pru/constraints.md: New file.
24568 * config/pru/predicates.md: New file.
24569 * config/pru/pru-opts.h: New file.
24570 * config/pru/pru-passes.c: New file.
24571 * config/pru/pru-pragma.c: New file.
24572 * config/pru/pru-protos.h: New file.
24573 * config/pru/pru.c: New file.
24574 * config/pru/pru.h: New file.
24575 * config/pru/pru.md: New file.
24576 * config/pru/pru.opt: New file.
24577 * config/pru/t-pru: New file.
24578 * doc/extend.texi: Document PRU pragmas.
24579 * doc/invoke.texi: Document PRU-specific options.
24580 * doc/md.texi: Document PRU asm constraints.
24581
24582 2019-06-12 Martin Sebor <msebor@redhat.com>
24583
24584 PR middle-end/90676
24585 * tree-pretty-print.c (dump_mem_ref): New function. Include
24586 MEM_REF type in output when different size than operand.
24587 (dump_generic_node): Move code to dump_mem_ref and call it.
24588
24589 2019-06-12 Martin Sebor <msebor@redhat.com>
24590
24591 PR tree-optimization/90662
24592 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24593 to arrays.
24594
24595 2019-06-12 Tom de Vries <tdevries@suse.de>
24596
24597 PR tree-optimization/90009
24598 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24599
24600 2019-06-12 Martin Liska <mliska@suse.cz>
24601
24602 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24603 the created map.
24604 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24605 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24606 Do not sanitize created maps.
24607
24608 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24609
24610 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24611 value_range::singleton_p.
24612 * tree-vrp.c (value_range_constant_singleton): Remove.
24613 * tree-vrp.h (value_range_constant_singleton): Remove.
24614 * vr-values.c (vr_values::singleton): Use
24615 value_range::singleton_p.
24616
24617 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24618
24619 PR target/90811
24620 * cfgexpand.c (align_local_variable): Add really_expand argument,
24621 don't SET_DECL_ALIGN if it is false.
24622 (add_stack_var): Add really_expand argument, pass it through to
24623 align_local_variable.
24624 (expand_one_stack_var_1): Pass true as really_expand to
24625 align_local_variable.
24626 (expand_one_ssa_partition): Pass true as really_expand to
24627 add_stack_var.
24628 (expand_one_var): Pass really_expand through to add_stack_var.
24629
24630 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24631
24632 * config/arm/iterators.md (VABAL): New int iterator.
24633 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24634 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24635 UNSPEC_VABAL_U values.
24636
24637 2019-06-12 Martin Liska <mliska@suse.cz>
24638
24639 * value-prof.c (stream_out_histogram_value): Only first value
24640 can't be negative.
24641
24642 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24643
24644 PR c/90760
24645 * symtab.c (symtab_node::set_section): Allow being called on aliases
24646 as long as they aren't analyzed yet.
24647
24648 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24649
24650 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24651 to `mips_set_text_contents_type' to indicate whether a
24652 non-debug insn follows.
24653
24654 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24655
24656 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24657 enabling -mpcrel by default.
24658 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24659 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24660 that the test against -mcpu=future is done first. Then test if
24661 -mprefixed-addr is on for -mpcrel.
24662 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24663
24664 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24665
24666 PR target/90811
24667 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24668 instead of and.u%d.
24669
24670 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24671
24672 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24673
24674 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24675
24676 PR c++/90449 - add -Winaccessible-base option.
24677 * doc/invoke.texi (Winaccessible-base): Document.
24678
24679 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24680
24681 PR tree-optimization/62041
24682 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24683
24684 2019-06-11 Jason Merrill <jason@redhat.com>
24685
24686 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24687 * tree.c (get_tree_code_name): Likewise.
24688 * print-tree.c (print_node): Only briefly print a node with an
24689 invalid code.
24690
24691 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24692
24693 PR bootstrap/90819
24694 * trans-mem.c (tm_memopt_compute_available): Add assertion
24695 that blocks is not empty. Formatting fix.
24696
24697 2019-06-11 Martin Liska <mliska@suse.cz>
24698
24699 PR c++/87847
24700 * hash-table.h: Extend create_gcc, add one parameter
24701 that is passed into hash_table::hash_table.
24702
24703 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24704
24705 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24706 New prototype.
24707 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24708 Emit clobber also for non-sse operations.
24709 (ix86_split_fp_absneg_operator): New function.
24710 * config/i386/i386.md (SSEMODEF): New mode iterator.
24711 (ssevecmodef): New mode attribute.
24712 (<code>tf2): Use absneg code iterator.
24713 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24714 Add three-operand AVX alternatives.
24715 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24716 Use absneg code iterator and X87MODEF mode iterator.
24717 (absneg fp_reg non-sse splitter): Call absneg code iterator
24718 and X87MODEF mode iterator.
24719 (absneg general_reg non-sse splitter): Use absneg code iterator
24720 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24721 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24722 code iterator. Add three-operand AVX alternative.
24723 (absneg sse_reg splitter): Use absneg code iterator
24724 and SSEMODEF mode iterator. Handle AVX operands.
24725 (absneg fp_reg splitter): Use absneg code iterator
24726 and MODEF mode iterator.
24727 (absneg general_reg splitter): Merge splitters using MODEF mode
24728 iterator. Use absneg code iterator. Call
24729 ix86_split_fp_absneg_operator.
24730 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24731 Do not enable for non-sse modes before reload.
24732 (CSGNMODE): Remove.
24733 (CSGNVMODE): Ditto.
24734 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24735 ssevecmodef mode attribute instaed of CSGNVMODE.
24736 (copysign<mode>3_const): Ditto.
24737 (copysign<mode>3_var): Ditto.
24738 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24739 Use absneg code iterator. Simplify code using std::swap.
24740 * config/i386/predicates.md (absneg_operator): Remove.
24741
24742 2019-06-10 Martin Sebor <msebor@redhat.com>
24743
24744 * gimple-fold.c (get_range_strlen): Update comment that didn't
24745 make it into r267503 or related commits.
24746
24747 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24748
24749 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24750 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24751
24752 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24753
24754 * tree.def (OMP_SCAN): New tree code.
24755 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24756 OMP_CLAUSE_EXCLUSIVE.
24757 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24758 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24759 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24760 OMP_CLAUSE_{IN,EX}CLUSIVE.
24761 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24762 * tree-nested.c (convert_nonlocal_reference_stmt,
24763 convert_local_reference_stmt, convert_gimple_call): Handle
24764 GIMPLE_OMP_SCAN.
24765 * tree-pretty-print.c (dump_omp_clause): Handle
24766 OMP_CLAUSE_{IN,EX}CLUSIVE.
24767 (dump_generic_node): Handle OMP_SCAN.
24768 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24769 * gimple.h (gomp_scan): New type.
24770 (is_a_helper <gomp_scan *>::test,
24771 is_a_helper <const gomp_scan *>::test): New templates.
24772 (gimple_build_omp_scan): Declare.
24773 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24774 gimple_omp_scan_set_clauses): New inline functions.
24775 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24776 * gimple.c (gimple_build_omp_scan): New function.
24777 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24778 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24779 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24780 GIMPLE_OMP_TASKGROUP.
24781 (dump_gimple_omp_scan): New function.
24782 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24783 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24784 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24785 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24786 (is_gimple_stmt): Handle OMP_SCAN.
24787 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24788 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24789 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24790 mentioned in nested #pragma omp scan. Handle
24791 OMP_CLAUSE_{IN,EX}CLUSIVE.
24792 (gimplify_expr): Handle OMP_SCAN.
24793 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24794 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24795 simd constructs.
24796 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24797 GIMPLE_OMP_SCAN.
24798
24799 2019-06-10 Martin Liska <mliska@suse.cz>
24800
24801 * ipa-cp.c (ignore_edge_p): New function.
24802 (build_toporder_info): Use it.
24803 * ipa-inline.c (ignore_edge_p): New function.
24804 (inline_small_functions): Use it.
24805 * ipa-pure-const.c (ignore_edge_for_nothrow):
24806 Verify opt_for_fn for caller and callee.
24807 (ignore_edge_for_pure_const): Likewise.
24808 * ipa-reference.c (ignore_edge_p): Extend to check
24809 for opt_for_fn.
24810 * ipa-utils.c (searchc): Refactor.
24811 * ipa-utils.h: Fix coding style.
24812
24813 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24814
24815 * config/arc/arc.c (arc_rtx_costs): Update costs.
24816
24817 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24818
24819 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24820 (arc_split_ior): Likewise.
24821 (arc_check_mov_const): Likewise.
24822 (arc_split_mov_const): Likewise.
24823 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24824 (arc_rtx_costs): Replace check Crr with Cax constraint.
24825 (prepare_move_operands): Cleanup, remove unused code.
24826 (arc_split_ior): New function.
24827 (arc_check_ior_const): Likewise.
24828 (arc_split_mov_const): Likewise.
24829 (arc_check_mov_const): Likewise.
24830 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24831 in define_insn_and_split pattern.
24832 (iorsi3): Likewise.
24833 (mulsi3_v2): Add new matching variant.
24834 (andsi3_i): Cleanup pattern.
24835 (rotrsi3_cnt1): Update pattern.
24836 (rotrsi3_cnt8): New pattern.
24837 (ashlsi2_cnt8): Likewise.
24838 (ashlsi2_cnt16): Likewise.
24839 * config/arc/constraints.md (C0p): Update constraint.
24840 (Crr): Remove it.
24841 (C0x): New pattern.
24842 (Cax): New pattern.
24843
24844 2019-06-10 Martin Liska <mliska@suse.cz>
24845
24846 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24847 Update coding style.
24848 (sem_item_optimizer::dump_cong_classes):
24849 Print how many items are in a non-singular class. Improve
24850 coding style.
24851
24852 2019-06-10 Martin Liska <mliska@suse.cz>
24853
24854 * value-prof.c (dump_histogram_value): Change dump format.
24855 (gimple_mod_subtract_transform): Remove legacy comment.
24856
24857 2019-06-10 Martin Liska <mliska@suse.cz>
24858
24859 * value-prof.c (dump_histogram_value): Print histogram values
24860 only if present.
24861
24862 2019-06-10 Martin Liska <mliska@suse.cz>
24863
24864 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24865 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24866 * ipa-profile.c (ipa_profile_generate_summary):
24867 Use get_most_common_single_value.
24868 * tree-profile.c (gimple_init_gcov_profiler):
24869 Instrument with __gcov_one_value_profiler_v2
24870 and __gcov_indirect_call_profiler_v4.
24871 * value-prof.c (dump_histogram_value):
24872 Print all values for HIST_TYPE_SINGLE_VALUE.
24873 (stream_out_histogram_value): Update assert for
24874 N values.
24875 (stream_in_histogram_value): Set number of
24876 counters for HIST_TYPE_SINGLE_VALUE.
24877 (get_most_common_single_value): New.
24878 (gimple_divmod_fixed_value_transform):
24879 Use get_most_common_single_value.
24880 (gimple_ic_transform): Likewise.
24881 (gimple_stringops_transform): Likewise.
24882 (gimple_find_values_to_profile): Set number
24883 of counters for HIST_TYPE_SINGLE_VALUE.
24884 * value-prof.h (get_most_common_single_value): New.
24885
24886 2019-06-10 Martin Liska <mliska@suse.cz>
24887
24888 * hash-map.h: Pass default value to hash_table ctor.
24889 * hash-table.h: Add default value to call of a ctor.
24890
24891 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24892
24893 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24894 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24895
24896 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24897
24898 PR target/90751
24899 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24900 Call pa_output_function_label.
24901 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24902 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24903 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24904 to declaration.
24905 (pa_linux_output_function_prologue): Declare.
24906 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24907 (pa_output_function_label): New.
24908 (pa_output_function_prologue): Revise to use pa_output_function_label.
24909 (pa_linux_output_function_prologue): New.
24910 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24911
24912 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24913
24914 * tree-vrp.h (value_range_base::intersect): New.
24915 (value_range::intersect_helper): Move from here...
24916 (value_range_base::intersect_helper): ...to here.
24917 * tree-vrp.c (value_range::intersect_helper): Rename to...
24918 (value_range_base::intersect_helper): ...this, and rewrite to
24919 return a value instead of modifying THIS in place.
24920 Also, move equivalence handling...
24921 (value_range::intersect): ...here, while calling intersect_helper.
24922 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24923 calling intersect.
24924 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24925 Same.
24926 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24927
24928 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24929
24930 * Makefile.in (genprogerr): Add condmd.
24931 (genprog): Remove it here.
24932
24933 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24934
24935 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24936
24937 2019-06-07 Richard Biener <rguenther@suse.de>
24938
24939 PR debug/90574
24940 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24941 that appear after user labels.
24942
24943 2019-06-07 Martin Liska <mliska@suse.cz>
24944
24945 * cselib.c (cselib_init): Disable hash table
24946 sanitization.
24947 * hash-set.h: Pass new default argument to m_table.
24948 * hash-table.c: Add global variable with hash table
24949 sanitization limit.
24950 * hash-table.h (Allocator>::hash_table): Add new argument
24951 to ctor.
24952 (hashtab_chk_error): New.
24953 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24954 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24955 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24956
24957 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24958
24959 * common.opt (flto-odr-type-merging): Ignore.
24960 * invoke.texi (-flto-odr-type-merging): Remove.
24961 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24962 (can_be_vtable_hashed_p): Remove.
24963 (hash_odr_vtable): Remove.
24964 (odr_vtable_hasher::hash): Remove.
24965 (types_same_for_odr): Remove.
24966 (types_odr_comparable): Remove.
24967 (odr_vtable_hasher::equal): Remove.
24968 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24969 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24970 (get_odr_type): Do not use vtable hash.
24971 (dump_odr_type): Remove commented out code.
24972 (build_type_inheritance_graph): Do not allocate vtable hash.
24973 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24974 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24975 (odr_type_p): Likewise.
24976 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24977 test.
24978
24979 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24980
24981 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24982 immediately after same_types_for_tbaa_p returns -1 and continue
24983 looking for possible exact match; if matching types are arrays
24984 watch for partial overlaps.
24985 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24986 (indirect_refs_may_alias_p): Do type based disambiguation first;
24987 update comment.
24988
24989 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24990
24991 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24992
24993 2019-06-07 Martin Liska <mliska@suse.cz>
24994
24995 * doc/invoke.texi: Remove param.
24996 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24997 Remove.
24998 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24999 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
25000 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
25001 * profile.c (instrument_values): Remove
25002 HIST_TYPE_INDIR_CALL_TOPN.
25003 * tree-profile.c (init_ic_make_global_vars):
25004 Always build __gcov_indirect_call only.
25005 (gimple_init_gcov_profiler): Remove usage
25006 of PARAM_INDIR_CALL_TOPN_PROFILE.
25007 (gimple_gen_ic_profiler): Likewise.
25008 * value-prof.c (dump_histogram_value): Likewise.
25009 (stream_in_histogram_value): Likewise.
25010 (gimple_indirect_call_to_profile): Likewise.
25011 (gimple_find_values_to_profile): Likewise.
25012 * value-prof.h (enum hist_type): Likewise.
25013
25014 2019-06-07 Martin Liska <mliska@suse.cz>
25015
25016 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
25017 function.
25018
25019 2019-06-07 Martin Liska <mliska@suse.cz>
25020
25021 PR tree-optimization/78902
25022 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
25023 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
25024 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25025 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25026 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
25027 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25028 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
25029 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
25030 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25031 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25032 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25033 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
25034 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
25035 New.
25036 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
25037 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
25038 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
25039 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25040 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25041 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
25042 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25043 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25044 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
25045 warn_unused_result attribute.
25046 (BUILT_IN_STRDUP): Likewise.
25047 (BUILT_IN_STRNDUP): Likewise.
25048 (BUILT_IN_ALLOCA): Likewise.
25049 (BUILT_IN_CALLOC): Likewise.
25050 (BUILT_IN_MALLOC): Likewise.
25051 (BUILT_IN_REALLOC): Likewise.
25052
25053 2019-06-06 Jim Wilson <jimw@sifive.com>
25054
25055 PR target/89955
25056 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
25057 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
25058 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
25059
25060 2019-06-06 Martin Sebor <msebor@redhat.com>
25061
25062 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
25063 (handle_builtin_malloc): Remove trailing spaces.
25064 (handle_builtin_memset): Same.
25065 (handle_builtin_memcmp): Same.
25066 (compute_string_length): Same.
25067 (determine_min_objsize): Same.
25068 (handle_builtin_string_cmp): Same.
25069 (handle_char_store): Same. Break up excessively long line.
25070
25071 2019-06-06 Martin Jambor <mjambor@suse.cz>
25072
25073 * tree-sra.c (build_reconstructed_reference): Drop the alignment
25074 check.
25075
25076 2019-06-06 Martin Jambor <mjambor@suse.cz>
25077
25078 * tree-sra.c (struct access): New field grp_same_access_path.
25079 (dump_access): Dump it.
25080 (build_reconstructed_reference): New function.
25081 (build_ref_for_model): Use it if possible.
25082 (path_comparable_for_same_access): New function.
25083 (same_access_path_p): Likewise.
25084 (sort_and_splice_var_accesses): Set the new flag.
25085 (analyze_access_subtree): Likewise.
25086 (propagate_subaccesses_across_link): Propagate zero value of the new
25087 flag down the access tree.
25088
25089 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
25090
25091 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
25092 * config/gcn/gcn.opt (gpu_type): Add gfx906.
25093 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
25094 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
25095 Add gfx906.
25096
25097 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25098
25099 PR tree-optimization/90332
25100 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
25101 Handle VALS containing two vectors.
25102 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
25103 to...
25104 (@aarch64_combinez<mode>): ... This.
25105 (*aarch64_combinez_be<mode>): Rename to...
25106 (@aarch64_combinez_be<mode>): ... This.
25107 (vec_init<mode><Vhalf>): New define_expand.
25108 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
25109
25110 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25111
25112 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
25113 library functions only when not optimizing for size.
25114 (ashlsi3): Likewise.
25115 (ashrhi3): Likewise.
25116 (ashrsi3): Likewise.
25117 (lshrhi3): Likewise.
25118 (lshrsi3): Likewise.
25119
25120 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
25121
25122 PR rtl-optimization/88751
25123 * ira.c (ira): Use the number of the actually referenced registers
25124 when calculating the threshold.
25125
25126 2019-06-06 Jakub Jelinek <jakub@redhat.com>
25127
25128 * configure: Regenerate.
25129
25130 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25131
25132 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
25133 register if it is in memory, so the shift can be emulated with a rotate
25134 instruction.
25135 (ashrhi3): Likewise.
25136 (lshrhi3): Likewise.
25137
25138 2019-06-06 Martin Liska <mliska@suse.cz>
25139
25140 PR tree-optimization/87954
25141 * match.pd: Simplify mult where both arguments are 0 or 1.
25142
25143 2019-06-06 Richard Biener <rguenther@suse.de>
25144
25145 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
25146 put equivalences on UNDEFINED ranges.
25147 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
25148 Make sure to drop defs of stmts added during simplification
25149 to VARYING.
25150
25151 2019-06-06 Richard Biener <rguenther@suse.de>
25152
25153 * tree-ssa-structalias.c: Include tree-cfg.h.
25154 (make_heapvar): Do not make heap vars artificial.
25155 (find_func_aliases_for_builtin_call): Handle stack allocation
25156 functions.
25157 (find_func_aliases): Delay processing of simple enough returns
25158 in non-IPA mode.
25159 (set_uids_in_ptset): Adjust.
25160 (find_what_var_points_to): Likewise.
25161 (solve_constraints): Do not dump points-to sets here.
25162 (compute_points_to_sets): Post-process return statements,
25163 amending the escaped solution. Dump points-to sets afterwards.
25164 (ipa_pta_execute): Dump points-to sets.
25165
25166 2019-06-06 Martin Liska <mliska@suse.cz>
25167
25168 PR web/87933
25169 * doc/install.texi: Fix HTML headers and
25170 titles for 'Installing GCC' pages.
25171
25172 2019-06-06 Martin Liska <mliska@suse.cz>
25173
25174 * ipa-icf-gimple.h (dump_message_1): Remove.
25175 (dump_message): Likewise.
25176 (return_false_with_message_1): Print also file.
25177 (return_false_with_msg): Likewise.
25178 (return_with_result): Likewise.
25179 (return_with_debug): Likewise.
25180 * ipa-icf.c (sem_function::equals_private): Remove call
25181 to dump_message.
25182
25183 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25184
25185 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
25186 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
25187 memory operand for it.
25188 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
25189
25190 2019-06-05 Martin Sebor <msebor@redhat.com>
25191
25192 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
25193 Adjust quoting and hyphenation.
25194 * convert.c (convert_to_real_1): Same.
25195 * gcc.c (driver_wrong_lang_callback): Same.
25196 (driver::handle_unrecognized_options): Same.
25197 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
25198 * opts-common.c (cmdline_handle_error): Same.
25199 (read_cmdline_option): Same.
25200 * opts-global.c (complain_wrong_lang): Same.
25201 (print_ignored_options): Same.
25202 (handle_common_deferred_options): Same.
25203 * pretty-print.h: Same.
25204 * print-rtl.c (debug_bb_n_slim): Same.
25205 * sched-rgn.c (make_pass_sched_fusion): Same.
25206 * tree-cfg.c (verify_gimple_assign_unary): Same.
25207 (verify_gimple_label): Same.
25208 * tree-ssa-operands.c (verify_ssa_operands): Same.
25209 * varasm.c (do_assemble_alias): Same.
25210 (assemble_alias): Same.
25211
25212 2019-06-05 Richard Henderson <rth@twiddle.net>
25213
25214 * config/alpha/alpha.c (direct_return): Move down after
25215 struct machine_function definition; use saved frame_size;
25216 return bool.
25217 (struct machine_function): Add sa_mask, sa_size, frame_size.
25218 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
25219 (alpha_compute_frame_layout): ... new function.
25220 (TARGET_COMPUTE_FRAME_LAYOUT): New.
25221 (alpha_initial_elimination_offset): Use saved sa_size.
25222 (alpha_vms_initial_elimination_offset): Likewise.
25223 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
25224 (alpha_expand_prologue): Use saved frame data. Merge integer
25225 and fp register save loops.
25226 (alpha_expand_epilogue): Likewise.
25227 (alpha_start_function): Use saved frame data.
25228 * config/alpha/alpha-protos.h (direct_return): Update.
25229 (alpha_sa_size): Remove.
25230
25231 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
25232
25233 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
25234 multiplication by a power-of-two value.
25235 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
25236 and turn the modulo operation into a masking operation.
25237
25238 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25239
25240 PR debug/90733
25241 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
25242 with VOIDmode inner operands.
25243
25244 2019-06-05 Richard Biener <rguenther@suse.de>
25245
25246 PR middle-end/90726
25247 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
25248 turn an expression graph into a tree.
25249
25250 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25251
25252 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
25253 member.
25254 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
25255 treat it like explicit monotonic schedule modifier.
25256 (expand_omp_for): Initialize has_lastprivate_conditional.
25257 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
25258 schedule modifier.
25259
25260 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
25261 references, lookup in in hash map MEM_REF operand instead of the
25262 MEM_REF itself.
25263 (lower_omp_1): When looking for lastprivate conditional assignments,
25264 handle MEM_REFs with REFERENCE_TYPE operands.
25265
25266 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
25267 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
25268 and references a VLA. Handle references to non-VLAs if is_simd
25269 all privatization clauses like reductions.
25270 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
25271 If omp_is_reference, use always omp simd arrays and set
25272 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
25273 fails, emit reference initialization.
25274
25275 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25276
25277 PR target/89803
25278 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
25279 _mm_mask_fpclass_sd_mask): New intrinsics.
25280 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
25281 * config/i386/i386-builtin.def
25282 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
25283 New builtins.
25284 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
25285 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
25286 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
25287 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
25288 case QI_FTYPE_V2SF_INT): Ditto.
25289 * config/i386/sse.md
25290 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
25291 Extended to insnstructions with mask operands.
25292
25293 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25294
25295 * config/rs6000/constraints.md (define_register_constraint "wp"):
25296 Delete.
25297 (define_register_constraint "wq"): Delete.
25298 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25299 (rs6000_init_hard_regno_mode_ok): Adjust.
25300 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25301 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
25302 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
25303 (define_mode_attr VSa): Delete.
25304 (define_mode_attr VSisa): New.
25305 (rest of file): Adjust.
25306 * doc/md.texi (Machine Constraints): Adjust.
25307
25308 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25309
25310 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
25311 (define_attr "enabled"): Handle those new isa values.
25312
25313 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25314
25315 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
25316 (define_mode_attr VSr5): Delete.
25317 (define_mode_attr VStype_sqrt): Delete.
25318 (define_mode_iterator VSX_SPDP): Delete.
25319 (define_mode_attr VS_spdp_res): Delete.
25320 (define_mode_attr VS_spdp_insn): Delete.
25321 (define_mode_attr VS_spdp_type): Delete.
25322 (*vsx_sqrt<mode>2): Adjust.
25323 (vsx_<VS_spdp_insn>): Delete, split to...
25324 (vsx_xscvdpsp): ... this. New. And...
25325 (vsx_xvcvspdp): ... this. New. And...
25326 (vsx_xvcvdpsp): ... this. New.
25327
25328 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25329
25330 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
25331 and V2DF.
25332 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
25333 (rest of file): Adjust.
25334
25335 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25336
25337 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
25338 (vsx_extract_<mode>_var): Ditto.
25339
25340 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25341
25342 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
25343 with just "wa".
25344
25345 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25346
25347 * config/rs6000/constraints.md (define_register_constraint "ww"):
25348 Delete.
25349 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25350 (rs6000_init_hard_regno_mode_ok): Adjust.
25351 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25352 RS6000_CONSTRAINT_ww.
25353 * config/rs6000/rs6000.md: Adjust.
25354 * config/rs6000/vsx.md: Adjust.
25355 * doc/md.texi (Machine Constraints): Adjust.
25356
25357 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25358
25359 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
25360 (define_mode_attr sd): New.
25361 (define_mode_attr s): New.
25362 (define_mode_attr Ftrad): Delete.
25363 (define_mode_attr Fvsx): Delete.
25364 (define_mode_attr Fs): Delete.
25365 (rest of file): Use the new mode attributes.
25366 * config.rs6000/vsx.md: Use the new mode attributes.
25367
25368 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25369
25370 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
25371 with just "wa".
25372
25373 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25374
25375 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
25376 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
25377 used with VSX_B, VSX_D, or VSX_F, with just "wa".
25378
25379 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
25380
25381 PR target/78263
25382 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25383 C++ with strict ANSI requirements.
25384
25385 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
25386
25387 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25388 computations when step is 1.
25389
25390 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25391
25392 * config/rs6000/constraints.md (define_register_constraint "wf"):
25393 Delete.
25394 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25395 (rs6000_init_hard_regno_mode_ok): Adjust.
25396 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25397 RS6000_CONSTRAINT_wf.
25398 * config/rs6000/rs6000.md: Adjust.
25399 * config/rs6000/vsx.md: Adjust.
25400 * doc/md.texi (Machine Constraints): Adjust.
25401
25402 2019-06-04 Andrew Pinski <apinski@marvell.com>
25403
25404 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25405 Fix ILP32 value.
25406
25407 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25408
25409 * config/rs6000/constraints.md (define_register_constraint "wd"):
25410 Delete.
25411 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25412 (rs6000_init_hard_regno_mode_ok): Adjust.
25413 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25414 RS6000_CONSTRAINT_wd.
25415 * config/rs6000/rs6000.md: Adjust.
25416 * config/rs6000/vsx.md: Adjust.
25417 * doc/md.texi (Machine Constraints): Adjust.
25418
25419 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25420
25421 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25422 (rest of file): Adjust.
25423
25424 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25425
25426 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25427 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25428 (vsx_splat_<mode>_reg): Adjust.
25429
25430 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25431
25432 * config/rs6000/constraints.md (define_register_constraint "ws"):
25433 Delete.
25434 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25435 (rs6000_init_hard_regno_mode_ok): Adjust.
25436 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25437 RS6000_CONSTRAINT_ws.
25438 * config/rs6000/rs6000.md: Adjust.
25439 * config/rs6000/vsx.md: Adjust.
25440 * doc/md.texi (Machine Constraints): Adjust.
25441
25442 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25443
25444 * config/rs6000/constraints.md (define_register_constraint "wv"):
25445 Delete.
25446 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25447 (rs6000_init_hard_regno_mode_ok): Adjust.
25448 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25449 RS6000_CONSTRAINT_wv.
25450 * config/rs6000/rs6000.md: Adjust.
25451 * config/rs6000/vsx.md: Adjust.
25452 * doc/md.texi (Machine Constraints): Adjust.
25453
25454 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25455
25456 * config/rs6000/constraints.md (define_register_constraint "wi"):
25457 Delete.
25458 (define_register_constraint "wt"): Delete.
25459 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25460 (rs6000_init_hard_regno_mode_ok): Adjust.
25461 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25462 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25463 * config/rs6000/rs6000.md: Adjust.
25464 * config/rs6000/vsx.md: Adjust.
25465 * doc/md.texi (Machine Constraints): Adjust.
25466
25467 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25468
25469 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25470 const.
25471 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25472 default_elf_asm_output_external.
25473
25474 2019-06-04 Martin Liska <mliska@suse.cz>
25475
25476 * ipa-icf.c (INCLUDE_LIST): Remove.
25477 (sem_item_optimizer::execute): Remove call to init_wpa.
25478 * ipa-icf.h (init_wpa): Remove.
25479
25480 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25481
25482 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25483 conditional on combined for simd.
25484 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25485 member.
25486 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25487 constructs, don't remove lastprivate_conditional_map, but instead set
25488 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25489 to parent construct temporaries.
25490 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25491 like !ctx->lastprivate_conditional_map.
25492 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25493 use up->outer context instead of up.
25494 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25495 gimple_omp_for_combined_p.
25496 (expand_omp_for_static_nochunk): Likewise.
25497 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25498 probably moved over into expand_omp_for_generic rather than being copied
25499 there.
25500
25501 2019-06-04 Martin Liska <mliska@suse.cz>
25502
25503 * value-prof.c (dump_histogram_value): Fix typo.
25504 (gimple_mod_subtract_transform): Likewise.
25505
25506 2019-06-04 Richard Biener <rguenther@suse.de>
25507
25508 PR middle-end/90726
25509 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25510 (tree_contains_chrecs): Likewise.
25511 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25512 exponential behaivor from ...
25513 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25514 ... here.
25515 (expression_expensive_p): Avoid exponential behavior and compute
25516 expanded size, rejecting any expansion.
25517 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25518 (idx_contains_abnormal_ssa_name_p): Likewise.
25519 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25520 (contains_abnormal_ssa_name_p): Simplify and use
25521 walk_tree_without_duplicates.
25522
25523 2019-06-04 Richard Biener <rguenther@suse.de>
25524
25525 PR tree-optimization/90738
25526 Revert
25527 2019-06-03 Richard Biener <rguenther@suse.de>
25528
25529 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25530 full reference tree and record in ref->ref.
25531 (vn_reference_lookup_3): Pass in original ref to
25532 ao_ref_init_from_vn_reference.
25533 (vn_reference_lookup): Likewise.
25534 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25535 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25536 Handle non-decl bases in the original reference.
25537
25538 2019-06-04 Martin Liska <mliska@suse.cz>
25539
25540 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25541 number of references.
25542 (sem_item_optimizer::do_congruence_step):
25543 (sem_item_optimizer::worklist_push): Dump how references
25544 a class has.
25545 (sem_item_optimizer::worklist_pop): Use heap.
25546 (sem_item_optimizer::process_cong_reduction): Likewise.
25547 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25548
25549 2019-06-04 Martin Liska <mliska@suse.cz>
25550
25551 * ipa-icf.h (struct sem_usage_pair_hash): New.
25552 (sem_usage_pair_hash::hash): Likewise.
25553 (sem_usage_pair_hash::equal): Likewise.
25554 (struct sem_usage_hash): Likewise.
25555 * ipa-icf.c (sem_item::sem_item): Initialize
25556 referenced_by_count.
25557 (sem_item::add_reference): Register a reference
25558 in ref_map and not in target->usages.
25559 (sem_item::setup): Remove initialization of
25560 dead vectors.
25561 (sem_item::~sem_item): Remove usage of dead vectors.
25562 (sem_item::dump): Remove dump of references.
25563 (sem_item_optimizer::sem_item_optimizer): Initialize
25564 m_references.
25565 (sem_item_optimizer::read_section): Remove useless
25566 dump.
25567 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25568 (sem_item_optimizer::build_graph): Pass m_references
25569 to ::add_reference.
25570 (sem_item_optimizer::verify_classes): Remove usage of dead
25571 vectors.
25572 (sem_item_optimizer::traverse_congruence_split): Return true
25573 when a class is split.
25574 (sem_item_optimizer::do_congruence_step_for_index): Use
25575 hash_map for look up of (sem_item *, index). That brings
25576 significant speed up.
25577 (sem_item_optimizer::do_congruence_step): Return true
25578 when a split is done.
25579 (congruence_class::is_class_used): Use referenced_by_count.
25580
25581 2019-06-04 Alan Modra <amodra@gmail.com>
25582
25583 PR target/90689
25584 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25585 error.
25586
25587 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25588
25589 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25590 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25591 (rs6000_secondary_reload_simple_move): Adjust.
25592 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25593 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25594 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25595 comment.
25596 (power6x): Adjust.
25597 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25598 (floatunssi<mode>2_lfiwzx): Adjust.
25599 (fix_trunc<mode>si2_stfiwx): Adjust.
25600 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25601 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25602 (mfpgpr): Mark as deprecated.
25603 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25604 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25605 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25606
25607 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25608
25609 * config/rs6000/constraints.md (define_register_constraint "wg"):
25610 Delete.
25611 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25612 RS6000_CONSTRAINT_wg.
25613 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25614 (rs6000_init_hard_regno_mode_ok): Adjust.
25615 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25616 Delete "wg" alternatives.
25617 * doc/md.texi (Machine Constraints): Adjust.
25618
25619 2019-06-03 Alan Modra <amodra@gmail.com>
25620
25621 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25622 (get_uncond_jump_length): Assert length less than INT_MAX and
25623 non-negative.
25624
25625 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25626
25627 PR middle-end/64242
25628 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25629 block.
25630 (expand_builtin_nonlocal_goto): Likewise.
25631
25632 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25633
25634 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25635 (aarch64_asm_output_external): Declare.
25636 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25637 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25638 (aarch64_asm_output_alias): New.
25639 (aarch64_asm_output_external): New.
25640 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25641 (ASM_OUTPUT_EXTERNAL): Define.
25642
25643 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25644 * tree-vrp.h (value_range_base::nonzero_p): New.
25645 (value_range_base::set_nonnull): Rename to...
25646 (value_range_base::set_nonzero): ...this.
25647 (value_range_base::set_null): Rename to...
25648 (value_range_base::set_zero): ...this.
25649 (value_range::set_nonnull): Remove.
25650 (value_range::set_null): Remove.
25651 * tree-vrp.c (range_is_null): Remove.
25652 (range_is_nonnull): Remove.
25653 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25654 instead of range_is_*null.
25655 (extract_range_from_unary_expr): Same.
25656 (value_range_base::set_nonnull): Rename to...
25657 (value_range_base::set_nonzero): ...this.
25658 (value_range::set_nonnull): Remove.
25659 (value_range_base::set_null): Rename to...
25660 (value_range_base::set_zero): ...this.
25661 (value_range::set_null): Remove.
25662 (extract_range_from_binary_expr): Rename set_*null uses to
25663 set_*zero.
25664 (extract_range_from_unary_expr): Same.
25665 (union_helper): Same.
25666 * vr-values.c (get_value_range): Use set_*zero instead of
25667 set_*null.
25668 (vr_values::extract_range_from_binary_expr): Same.
25669 (vr_values::extract_range_basic): Same.
25670
25671 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25672
25673 PR driver/90684
25674 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25675
25676 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25677
25678 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25679 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25680 Rename to...
25681 (aarch64_<su>abd<mode>_3): ... This.
25682 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25683
25684 2019-06-03 Richard Biener <rguenther@suse.de>
25685
25686 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25687 full reference tree and record in ref->ref.
25688 (vn_reference_lookup_3): Pass in original ref to
25689 ao_ref_init_from_vn_reference.
25690 (vn_reference_lookup): Likewise.
25691 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25692 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25693 Handle non-decl bases in the original reference.
25694
25695 2019-06-03 Martin Liska <mliska@suse.cz>
25696
25697 * doc/generic.texi: Remove Java Trees.
25698
25699 2019-06-03 Martin Liska <mliska@suse.cz>
25700
25701 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25702 returns 0 when operands are equal.
25703
25704 2019-06-03 Richard Biener <rguenther@suse.de>
25705
25706 PR tree-optimization/90716
25707 * tree-loop-distribution.c (destroy_loop): Process blocks in
25708 correct order.
25709
25710 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25711
25712 PR target/88837
25713 * vector-builder.h (vector_builder::count_dups): New method.
25714 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25715 Declare prototype.
25716 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25717 (vec_init<mode><Vel>): New pattern.
25718 * config/aarch64/aarch64.c (emit_insr): New function.
25719 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25720 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25721 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25722 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25723
25724 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25725
25726 PR tree-optimization/90681
25727 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25728 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25729 special case for SLP, but fail on non-groupped loads.
25730
25731 2019-06-03 Martin Liska <mliska@suse.cz>
25732
25733 * cfg.c (debug): Use TDF_DETAILS for debug and
25734 print edge info only once.
25735
25736 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25737
25738 PR fortran/90539
25739 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25740
25741 2019-06-01 Martin Sebor <msebor@redhat.com>
25742
25743 PR middle-end/90694
25744 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25745
25746 2019-05-31 Jan Hubicka <jh@suse.cz>
25747
25748 * alias.c: Include ipa-utils.h.
25749 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25750 * ipa-devirt.c (prevailing_odr_type): New.
25751 * ipa-utils.h (previaling_odr_type): Declare.
25752
25753 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25754 Hongtao Liu <hongtao.liu@intel.com>
25755
25756 PR target/89355
25757 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25758 NOTE_INSN_DELETED_LABEL check.
25759
25760 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25761 Robert Suchanek <robert.suchanek@mips.com>
25762
25763 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25764 and 3rd operands of the fmadd/fmsub/maddv builtin.
25765
25766 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25767
25768 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25769 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25770 on OMP_SIMD if not nested inside of worksharing loop that also has
25771 lastprivate conditional clause for the same decl.
25772 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25773 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25774 on simd.
25775 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25776 on simd construct.
25777 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25778 on simd construct.
25779 (lower_lastprivate_clauses): Likewise.
25780 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25781 calling lower_rec_input_clauses.
25782 (lower_omp_for): Likewise.
25783 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25784 clause on simd construct.
25785 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25786 OMP_CLAUSE__CONDTEMP_ clause is present.
25787
25788 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25789 ivar and lvar.
25790
25791 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25792
25793 PR c/43673
25794 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25795 TEX_D32, TEX_D64 or TEX_D128.
25796
25797 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25798
25799 * match.pd (~(vec?cst1:cst2)): New transformation.
25800
25801 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25802
25803 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25804 ((size_t)(A /[ex] B) CMP C): New transformation.
25805
25806 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25807
25808 * doc/md.texi: Document define_insn_and_rewrite.
25809 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25810 * gensupport.c (queue_elem): Update comment.
25811 (replace_operands_with_dups): New function.
25812 (gen_rewrite_sequence): Likewise.
25813 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25814 * read-rtl.c (apply_subst_iterator): Likewise.
25815 (add_condition_to_rtx, named_rtx_p): Likewise.
25816 (rtx_reader::read_rtx_operand): Likewise.
25817 * config/aarch64/aarch64-sve.md
25818 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25819 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25820 define_insn_and_rewrite.
25821 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25822 Remove separate define_split.
25823
25824 2019-05-31 Jan Hubicka <jh@suse.cz>
25825
25826 * tree-ssa-alias.c (type_has_components_p): New function.
25827 (aliasing_component_refs_p): Use it.
25828
25829 2019-05-31 Martin Liska <mliska@suse.cz>
25830
25831 * gdbhooks.py: Add const_tree to TreePrinter.
25832
25833 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25834
25835 PR debug/86964
25836 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25837 * doc/invoke.texi (Debugging Options): Document new default of
25838 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25839
25840 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25841
25842 PR tree-optimization/90671
25843 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25844 template_block used to be empty on the first call, don't use
25845 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25846 seq with bb_seq and set it with set_bb_seq.
25847
25848 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25849
25850 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25851
25852 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25853 Michael Meissner <meissner@linux.ibm.com>
25854
25855 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25856 (prefixed_mem_operand): Likewise.
25857 (non_prefixed_mem_operand): Likewise.
25858 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25859 prototype.
25860 * config/rs6000/rs6000.c (print_operand_address): Handle
25861 PC-relative addresses.
25862 (mode_supports_prefixed_address_p): New function.
25863 (rs6000_prefixed_address): New function.
25864 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25865 (SYMBOL_REF_PCREL_P): Likewise.
25866
25867 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25868
25869 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25870 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25871 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25872 is nested inside of parallel region, add _condtemp_ clause to both.
25873 * tree-nested.c (convert_nonlocal_omp_clauses,
25874 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25875 assertion failure.
25876 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25877 member.
25878 * omp-general.c (omp_extract_for_data): Compute it.
25879 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25880 (lower_rec_input_clauses): Likewise.
25881 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25882 clause is already present, just add one further one after it.
25883 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25884 (lower_send_shared_vars): Clear _condtemp_ vars.
25885 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25886 or section or taskgroup.
25887 * omp-expand.c (determine_parallel_type): Disallow combining only if
25888 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25889 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25890 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25891 expand_omp_for_static_chunk, expand_omp_for): Use
25892 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25893 determine if a special set of API routines are needed and if condtemp
25894 needs to be initialized, while always initialize cond_var if
25895 fd->lastprivate_conditional is non-zero.
25896
25897 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25898 Michael Meissner <meissner@linux.ibm.com>
25899
25900 * config/rs6000/constraints.md (eI): New constraint.
25901 * config/rs6000/predicates.md (cint34_operand): New predicate.
25902 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25903 (SIGNED_34BIT_OFFSET_P): Likewise.
25904 * doc/md.texi (eI): Document constraint.
25905
25906 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25907
25908 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25909
25910 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25911 Michael Meissner <meissner@linux.ibm.com>
25912
25913 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25914 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25915 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25916 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25917 (OTHER_FUTURE_MASKS): Likewise.
25918 (POWERPC_MASKS): Likewise.
25919 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25920 specified without -mprefixed-addr or -mcpu=future. Error if
25921 -mprefixed-addr is specified without -mcpu=future.
25922 (rs6000_opt_masks): Add entry for prefixed-addr.
25923 * rs6000.opt (mprefixed-addr): New option.
25924
25925 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25926
25927 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25928 cfun->is_thunk check.
25929
25930 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25931
25932 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25933 to length.
25934
25935 2019-05-30 Martin Liska <mliska@suse.cz>
25936
25937 * gdbinit.in: Fix 'ptc' command. Add trt
25938 that prints TREE_TYPE($).
25939
25940 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25941 Alan Modra <amodra@gmail.com>
25942
25943 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25944 calls here...
25945 (rs6000_indirect_call_template_1): ...and here.
25946 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25947 plt16_ha, plt16_lo, mtctr indirect calls. Use
25948 rs6000_pltseq_enum.
25949 (rs6000_decl_ok_for_sibcall): New function.
25950 (rs6000_function_ok_for_sibcall): Refactor.
25951 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25952 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25953 when pcrel. Reorganize.
25954 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25955 * rs6000.h (rs6000_pltseq_enum): New enum.
25956 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25957 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25958 (*pltseq_plt16_ha): Likewise.
25959 (*pltseq_plt16_lo): Likewise.
25960 (*pltseq_mtctr): Likewise.
25961 (*pltseq_plt_pcrel): New insn.
25962 (*call_local_aix): Handle @notoc calls.
25963 (*call_value_local_aix): Likewise.
25964 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25965 (*call_value_nonlocal_aix): Likewise.
25966 (*call_indirect_pcrel): New insn.
25967 (*call_value_indirect_pcrel): Likewise.
25968
25969 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25970
25971 * config/i386/sse.md (*save_multiple<mode>): Rename from
25972 save_multiple<mode>.
25973 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25974 (*restore_multiple_and_return<mode>): Rename from
25975 restore_multiple_and_return<mode>.
25976 (*restore_multiple_leave_return<mode>): Rename from
25977 restore_multiple_leave_return<mode>.
25978
25979 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25980
25981 * config.gcc (rx-*-linux*): New target.
25982 * config/rx/elf.opt: New file.
25983 * config/rx/linux.h: Likewise.
25984 * config/rx/t-linux: Likewise.
25985 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25986 make it zero.
25987 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25988 (ASM_APP_OFF): Likewise.
25989 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25990 moved elsewhere.
25991
25992 2019-05-29 Jan Hubicka <jh@suse.cz>
25993
25994 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25995 variants are pointer equivalent.
25996
25997 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25998
25999 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
26000 * config/aarch64/aarch64-sve2.md: New file.
26001 (<u>avg<mode>3_floor): New pattern.
26002 (<u>avg<mode>3_ceil): Likewise.
26003 (*<sur>h<addsub><mode>): Likewise.
26004 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
26005 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
26006
26007 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26008
26009 PR bootstrap/90543
26010 * optc-save-gen.awk: In cl_optimization_print, use correct condition
26011 for var_opt_string printing. In cl_optimization_print_diff, print
26012 (null) instead of invoking undefined behavior if one of the
26013 var_opt_string pointers is NULL and use && instead of first || in the
26014 guarding condition. For var_target_other options, handle const char *
26015 target variables similarly to const char * optimize node variables.
26016
26017 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
26018
26019 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
26020 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
26021 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
26022 Add autib1716 and pacib1716 initialisation.
26023 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
26024 for autib1716 and pacib1716.
26025 * config/aarch64/aarch64-protos.h (aarch64_key_type,
26026 aarch64_post_cfi_startproc): Define.
26027 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
26028 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
26029 aarch64_handle_pac_ret_protection): Set default sign key to A.
26030 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
26031 aarch64_expand_prologue): Add check for b-key.
26032 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
26033 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
26034 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
26035 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
26036 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
26037 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
26038 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26039 * config/aarch64/aarch64.md (do_return): Add check for b-key.
26040 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
26041 pauth_hint_num_a with pauth_hint_num.
26042 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
26043 pauth_hint_num_a with pauth_hint_num.
26044 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
26045 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
26046 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26047 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
26048 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
26049 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
26050 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
26051 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26052 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
26053 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
26054 UNSPEC_AUTIA1716 respectively.
26055 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
26056 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
26057 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
26058 * doc/invoke.texi (-mbranch-protection): Add b-key type.
26059 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
26060 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
26061
26062 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26063
26064 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
26065 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
26066 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
26067 explicit clause on combined parallel into implicit shared clause.
26068 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
26069 and firstprivate if the decl has one too from combined parallel to
26070 the worksharing construct.
26071
26072 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
26073 Michael Meissner <meissner@linux.ibm.com>
26074
26075 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
26076
26077 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
26078
26079 * rtl.h (LABEL_REF_P): New #define.
26080
26081 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
26082
26083 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
26084
26085 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26086
26087 * internal-fn.c: Marked mask_load_direct as vectorizable.
26088 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
26089 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
26090 combined even if masks different with allow_slp_p param.
26091 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
26092 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
26093 dissolve SLP-only vectorizable groups when SLP has been discarded.
26094 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
26095 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
26096 masks.
26097 (vect_build_slp_tree_1): Fixed comment typo.
26098 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
26099 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
26100 loads for SLP only.
26101 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
26102 vectorizable.
26103 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
26104
26105 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26106
26107 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
26108 Remove obsolete use_thunk reference.
26109 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26110 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26111 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26112 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26113 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26114 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26115 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26116 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26117 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26118
26119 2019-05-28 Nathan Sidwell <nathan@acm.org>
26120
26121 * tree.h (IDENTIFIER_ANON_P): New.
26122 (anon_aggrname_format, anon_aggname_p): Don't declare.
26123 (make_anon_name): Declare.
26124 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
26125 (hash_tree): Likewise.
26126 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
26127 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
26128 (anon_cnt, make_anon_name): New.
26129
26130 2019-05-28 Martin Liska <mliska@suse.cz>
26131
26132 PR other/90315
26133 * opts-global.c (decode_options): Print help for all
26134 help_option_arguments.
26135 * opts.c (print_help): Add new argument.
26136 (common_handle_option): Remember all values into
26137 help_option_arguments.
26138 * opts.h (print_help): Add new argument.
26139
26140 2019-05-28 Martin Liska <mliska@suse.cz>
26141
26142 PR ipa/90555
26143 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
26144 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
26145 (func_checker::compare_bb): Call compare_loops.
26146
26147 2019-05-27 Jakub Jelinek <jakub@redhat.com>
26148
26149 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26150 on sections construct.
26151 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
26152 construct.
26153 (lower_omp_sections): Handle lastprivate conditional.
26154 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
26155 lastprivate_conditional_map.
26156 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
26157
26158 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
26159 critical, taskgroup and section regions when looking for a region
26160 with non-NULL lastprivate_conditional_map.
26161
26162 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26163
26164 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
26165 (*ix86_gen_sub3): Ditto.
26166 (*ix86_gen_sub3_carry): Ditto.
26167 (*ix86_gen_one_cmpl2): Ditto.
26168 (*ix86_gen_andsp): Ditto.
26169 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
26170 (gen_and2_insn): New static function.
26171 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
26172 Use gen_add3_insn instead of ix86_gen_add3.
26173 (ix86_expand_split_stack_prologue): Use gen_add2_insn
26174 instead of ix86_gen_add3.
26175 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
26176 Use gen_sub3_insn instead of ix86_gen_sub3.
26177 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
26178 instead of ix86_gen_add3.
26179 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
26180 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
26181 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
26182 * config/i386/i386-options.c (ix86_option_override_internal):
26183 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
26184 ix86_gen_one_cmpl2 and ix86_gen_andsp.
26185
26186 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
26187
26188 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
26189 and DW_OP_GNU_const_index opcodes.
26190
26191 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26192
26193 * config/i386/i386.h (STACK_SIZE_MODE): Define.
26194
26195 2019-05-27 Richard Biener <rguenther@suse.de>
26196
26197 PR tree-optimization/90637
26198 * tree-ssa-sink.c (statement_sink_location): Honor the
26199 computed sink location for single-uses.
26200
26201 2019-05-27 Richard Biener <rguenther@suse.de>
26202
26203 PR middle-end/90610
26204 * match.pd (vec_perm): Avoid clobbering op0 when not generating
26205 a bit-insert.
26206
26207 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26208
26209 * config/i386/i386.md (@sub<mode>3_carry): Rename
26210 from sub<mode>3_carry.
26211 (@leave_<mode>): New expander.
26212 (*leave): Rename from leave.
26213 (*leave_rex64): Rename from leave_rex64.
26214 (@monitorx_<mode>): Rename from monitorx_<mode>.
26215 (@clzero_<mode>): Rename from clzero_<mode>.
26216 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
26217 from sse3_monitor_<mode>.
26218 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
26219 (*ix86_gen_leave): Ditto.
26220 (*ix86_gen_monitor): Ditto.
26221 (*ix86_gen_monitorx): Ditto.
26222 (*ix86_gen_clzero): Ditto.
26223 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
26224 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
26225 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
26226 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
26227 Use gen_sse3_monitor instead of ix86_gen_monitor.
26228 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
26229 instead of ix86_gen_monitorx.
26230 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
26231 instead of ix86_gen_clzero.
26232 * config/i386/i386-options.c (ix86_option_override_internal):
26233 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
26234 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
26235
26236 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26237
26238 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
26239 Rename from tls_global_dynamic_64_<mode>.
26240 (@tls_local_dynamic_base_64_<mode>): Rename from
26241 tls_local_dynamic_base_64_<mode>.
26242 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
26243 Remove indirect function.
26244 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
26245 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
26246 instead of ix86_gen_tls_global_dynamic_64.
26247 Use gen_tls_local_dynamic_base_64 instead of
26248 ix86_gen_tls_local_dynamic_base_64.
26249 * config/i386/i386-options.c (ix86_option_override_internal):
26250 Do not initialize ix86_gen_tls_global_dynamic_64 and
26251 ix86_gen_tls_local_dynamic_base_64.
26252
26253 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26254
26255 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
26256 Rename from pro_epilogue_adjust_stack_<mode>_add.
26257 (@pro_epilogue_adjust_stack_sub_<mode>)
26258 Rename from pro_epilogue_adjust_stack_<mode>_sub.
26259 (@allocate_stack_worker_probe_<mode>):
26260 Rename from allocate_stack_worker_probe_<mode>.
26261 (allocate_stack): Use gen_allocate_stack_worker_probe.
26262 (probe_stack): Use gen_probe_stack_1.
26263 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
26264 (@adjust_stack_and_probe_<mode>): Rename from
26265 adjust_stack_and_probe<mode>.
26266 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
26267 (stack_protect_set): Use gen_stack_protect_set_1.
26268 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
26269 (stack_protect_test): Use gen_stack_protect_test_1.
26270 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
26271 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
26272 Remove indirect function.
26273 (*ix86_gen_adjust_stack_and_probe): Ditto.
26274 (*ix86_gen_probe_stack_range): Ditto.
26275 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
26276 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
26277 (ix86_adjust_stack_and_probe_stack_clash): Use
26278 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
26279 (ix86_adjust_stack_and_probe): Ditto.
26280 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
26281 of ix86_gen_probe_stack_range.
26282 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
26283 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
26284 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
26285 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
26286 CODE_FOR_stack_protect_test_{si,di}.
26287 * config/i386/i386-options.c (ix86_option_override_internal):
26288 Do not initialize ix86_gen_allocate_stack_worker,
26289 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
26290
26291 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
26292
26293 * doc/invoke.texi (Link Options): Many editorial changes around
26294 -flinker-output.
26295
26296 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26297
26298 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
26299 pre-Solaris 11 referene and most Studio compiler details.
26300
26301 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
26302
26303 PR target/90530
26304 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
26305 DImode to SImode in floating-point registers on 64-bit target.
26306 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
26307 register_operand in xmpyu patterns.
26308
26309 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26310
26311 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
26312 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
26313 OMP_CLAUSE__REDUCTEMP_.
26314 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
26315 OMP_CLAUSE__CONDTEMP_.
26316 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
26317 * tree-pretty-print.c (dump_omp_clause): Likewise.
26318 * tree-nested.c (convert_nonlocal_omp_clauses,
26319 convert_local_omp_clauses): Likewise.
26320 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
26321 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
26322 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
26323 on OMP_FOR.
26324 (gimplify_omp_for): Warn and disable conditional modifier from
26325 lastprivate on loop iterators.
26326 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
26327 member.
26328 * omp-general.c (omp_extract_for_data): Initialize it.
26329 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
26330 member.
26331 (delete_omp_context): Delete it.
26332 (lower_lastprivate_conditional_clauses): New function.
26333 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
26334 handle lastprivate conditional clauses.
26335 (lower_reduction_clauses): Add CLIST argument, emit it into
26336 the critical section if any.
26337 (lower_omp_sections): Adjust lower_lastprivate_clauses and
26338 lower_reduction_clauses callers.
26339 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
26340 to lower_lastprivate_clauses.
26341 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
26342 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
26343 clist into a critical section if not emitted there already by
26344 lower_reduction_clauses.
26345 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
26346 callers.
26347 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
26348 conditional variables.
26349 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
26350 clause is present.
26351 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26352 expand_omp_for_static_chunk): Handle lastprivate conditional.
26353 (expand_omp_for): Handle fd.lastprivate_conditional like
26354 fd.have_reductemp.
26355
26356 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26357
26358 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
26359 kernel does not exit cleanly.
26360 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
26361
26362 2019-05-24 Jason Merrill <jason@redhat.com>
26363
26364 Revert:
26365 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26366
26367 2019-05-24 Richard Biener <rguenther@suse.de>
26368
26369 PR testsuite/90607
26370 * tree-loop-distribution.c (struct partition): Add location
26371 member.
26372 (partition_alloc): Initialize all fields.
26373 (generate_memset_builtin): Use the location recorded in the
26374 partition for the generated call.
26375 (generate_memcpy_builtin): Likewise.
26376 (classify_partition): Record the location of a single store
26377 as location for the partition.
26378
26379 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26380
26381 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26382 for lo-part.
26383
26384 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
26385
26386 PR target/90588
26387 * common/config/aarch64/aarch64-common.c
26388 (aarch64_rewrite_selected_cpu): Change local temporary variable
26389 type from unsigned long to uint64_t.
26390 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26391 aarch64_get_extension_string_for_isa_flags): Change declaration to
26392 match new definition by replacing unsigned long with uint64_t.
26393
26394 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26395
26396 PR target/90568
26397 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26398 gen_attr_type just once instead of 4-7 times. Formatting fixes.
26399 Handle stack_protect_test_<mode> codegen similarly to corresponding
26400 sub instruction.
26401
26402 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
26403
26404 * config/i386/darwin.h: Reject -mfentry*.
26405 * doc/sourcebuild.texi: Document mfentry target support.
26406
26407 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26408
26409 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26410 Rename to rs6000_global_entry_point_prologue_needed_p. Return
26411 false for PC-relative functions.
26412 (rs6000_output_function_prologue): Change called function name to
26413 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
26414 name,1" for PC-relative functions.
26415 (rs6000_elf_declare_function_name): Change called function name to
26416 rs6000_global_entry_point_prologue_needed_p.
26417
26418 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
26419
26420 PR target/90552
26421 * config/i386/i386.c (gen_rtx_cost):
26422 Use ix86_tune_cost instead of ix86_cost.
26423
26424 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26425 Michael Meissner <meissner@linux.ibm.com>
26426 Segher Boessenkool <segher@kernel.crashing.org>
26427
26428 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26429 OPTION_MASK_PCREL.
26430 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26431 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26432 (rs6000_fndecl_pcrel_p): Likewise.
26433 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26434 error if -mpcrel is requested without -mcpu=future.
26435 (rs6000_opt_masks): Add entry for pcrel.
26436 (rs6000_fndecl_pcrel_p): New function.
26437 (rs6000_pcrel_p): Likewise.
26438 * config/rs6000/rs6000.opt (mpcrel): New option.
26439 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26440
26441 2019-05-23 Jan Hubicka <jh@suse.cz>
26442 Martin Liska <mliska@suse.cz>
26443
26444 PR tree-optimization/90576
26445 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26446 poly_int_tree_p.
26447 (aliasing_component_refs_p): Fix three way size compare conditional;
26448 give up earlier in case we can not decide on equivalence.
26449
26450 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26451 Michael Meissner <meissner@linux.ibm.com>
26452 Segher Boessenkool <segher@kernel.crashing.org>
26453
26454 * config.gcc: Add future cpu.
26455 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26456 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26457 #define.
26458 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26459 (RS6000_CPU): New instantiation for future cpu.
26460 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26461 PROCESSOR_FUTURE.
26462 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26463 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26464 * config/rs6000/rs6000-tables.opt: Regenerate.
26465 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26466 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26467 (rs6000_machine_from_flags): Handle future cpu.
26468 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26469 PROCESSOR_POWER9 for now.
26470 (rs6000_adjust_cost): Likewise.
26471 (rs6000_issue_rate): Likewise.
26472 (rs6000_register_move_cost): Likewise.
26473 (rs6000_opt_masks): Add entry for future.
26474 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26475 (MASK_FUTURE): New #define.
26476 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26477 * config/rs6000/rs6000.opt (mfuture): New target option.
26478 * doc/invoke.texi (mcpu): Add future cpu.
26479
26480 2019-05-23 Martin Liska <mliska@suse.cz>
26481
26482 PR c++/90587
26483 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26484 operation points to a temporary (pointed via tree_to_wide_ref)
26485 that is out of scope after the &.
26486
26487 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26488
26489 PR c++/90592
26490 * doc/extend.texi (Function Names): Add missing word.
26491
26492 2019-05-23 Richard Biener <rguenther@suse.de>
26493
26494 PR tree-optimization/88440
26495 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26496 at -O[2s]+.
26497 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26498 generated call.
26499 (generate_memcpy_builtin): Likewise.
26500 (distribute_loop): Pass in whether to only distribute patterns.
26501 (prepare_perfect_loop_nest): Also allow size optimization.
26502 (pass_loop_distribution::execute): When optimizing a loop
26503 nest for size allow pattern replacement.
26504
26505 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26506
26507 PR target/90568
26508 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26509 of xor.
26510
26511 2019-05-23 Martin Liska <mliska@suse.cz>
26512
26513 PR sanitizer/90570
26514 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26515 expression similarly to gimplify_decl_expr.
26516
26517 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26518
26519 * cse.c (cse_dump_path): s/dump_file/f.
26520
26521 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26522
26523 PR c++/90462
26524 * diagnostic-format-json.cc: Include "selftest.h".
26525 (json_from_expanded_location): Only add "file" key for non-NULL
26526 file strings.
26527 (json_from_location_range): Don't add "start" and "finish"
26528 children if they are UNKNOWN_LOCATION.
26529 (selftest::test_unknown_location): New selftest.
26530 (selftest::test_bad_endpoints): New selftest.
26531 (selftest::diagnostic_format_json_cc_tests): New function.
26532 * json.cc (json::object::get): New function.
26533 (selftest::test_object_get): New selftest.
26534 (selftest::json_cc_tests): Call it.
26535 * json.h (json::object::get): New decl.
26536 * selftest-run-tests.c (selftest::run_tests): Call
26537 selftest::diagnostic_format_json_cc_tests.
26538 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26539 decl.
26540
26541 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26542 Andrew Stubbs <amd@codesourcery.com>
26543
26544 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26545 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26546 (kernel): Rename to...
26547 (main_kernel): ... this.
26548 (load_image): Load _init_array and _fini_array kernels.
26549 (run): Add argument for kernel to run.
26550 (main): Run init_array_kernel before main_kernel, and
26551 fini_array_kernel after.
26552 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26553 amdgpu_hsa_kernel attribute on functions.
26554 (gcn_disable_constructors): Delete.
26555 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26556 * config/gcn/crt0.c (size_t): Define.
26557 (_init_array, _fini_array): New.
26558 (__preinit_array_start, __preinit_array_end,
26559 __init_array_start, __init_array_end,
26560 __fini_array_start, __fini_array_end): Declare weak references.
26561
26562 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26563
26564 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26565
26566 2019-05-22 Jason Merrill <jason@redhat.com>
26567
26568 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26569
26570 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26571
26572 PR target/88483
26573 * config/i386/i386-options.c (ix86_init_machine_status): Set
26574 stack_frame_required to true.
26575 * config/i386/i386.c (ix86_get_frame_size): New function.
26576 (ix86_frame_pointer_required): Replace get_frame_size with
26577 ix86_get_frame_size.
26578 (ix86_compute_frame_layout): Likewise.
26579 (ix86_find_max_used_stack_alignment): Changed to void. Set
26580 stack_frame_required.
26581 (ix86_finalize_stack_frame_flags): Always call
26582 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26583 ix86_get_frame_size.
26584 * config/i386/i386.h (machine_function): Add stack_frame_required.
26585
26586 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26587
26588 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26589
26590 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26591
26592 * common/config/aarch64/aarch64-common.c
26593 (struct aarch64_option_extension, struct processor_name_to_arch,
26594 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26595 aarch64_contains_opt,
26596 aarch64_get_extension_string_for_isa_flags): Change type of
26597 variables storing flags to uint64_t.
26598 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26599 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26600 * config/aarch64/aarch64.c (struct processor,
26601 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26602 aarch64_validate_march, aarch64_override_options,
26603 aarch64_option_print, aarch64_handle_attr_isa_flags,
26604 aarch64_declare_function_name, aarch64_start_file): Make flag
26605 variables uint64_t.
26606 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26607 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26608 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26609 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26610 * config/aarch64/driver-aarch64.c
26611 (struct aarch64_arch_extension, struct aarch64_core_data,
26612 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26613 flag variables uint64_t.
26614 * doc/invoke.texi: Add documentation for new arguments.
26615
26616 2019-05-22 Richard Biener <rguenther@suse.de>
26617
26618 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26619 rewrite ...
26620 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26621
26622 2019-05-22 Martin Liska <mliska@suse.cz>
26623
26624 PR lto/90500
26625 * doc/extend.texi: Document the change.
26626
26627 2019-05-22 Richard Biener <rguenther@suse.de>
26628
26629 PR tree-optimization/90450
26630 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26631 (mem_ref_hasher::equal): Check it.
26632 (mem_ref_alloc): Initialize it.
26633 (gather_mem_refs_stmt): Set it.
26634
26635 2019-05-22 Richard Biener <rguenther@suse.de>
26636
26637 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26638 Add ABS_EXPR.
26639 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26640 as ABSU_EXPR.
26641
26642 2019-05-22 Alan Modra <amodra@gmail.com>
26643
26644 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26645 (ASM_CPU_SPEC): Conditionally add -many.
26646 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26647 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26648 (rs6000_file_start): ..extracted from here, and modified to
26649 test all ISA bits.
26650 (rs6000_output_function_prologue): Emit .machine as necessary.
26651
26652 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26653
26654 PR middle-end/90553
26655 * ira-lives.c (process_bb_node_lives): Consider defs
26656 for a call insn to be die before the call, not after.
26657
26658 * function.c (assign_parm_setup_block): Raise alignment of
26659 stacked parameter only for STRICT_ALIGNMENT targets.
26660
26661 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26662
26663 * config/rs6000/constraints.md (define_register_constraint "wz"):
26664 Delete.
26665 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26666 RS6000_CONSTRAINT_wz.
26667 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26668 (rs6000_init_hard_regno_mode_ok): Adjust.
26669 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26670 * doc/md.texi (Machine Constraints): Adjust.
26671
26672 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26673
26674 * config/rs6000/constraints.md (define_register_constraint "wl"):
26675 Delete.
26676 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26677 RS6000_CONSTRAINT_wl.
26678 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26679 (rs6000_init_hard_regno_mode_ok): Adjust.
26680 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26681 * doc/md.texi (Machine Constraints): Adjust.
26682
26683 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26684
26685 * config/rs6000/constraints.md (define_register_constraint "wm"):
26686 Delete.
26687 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26688 RS6000_CONSTRAINT_wm.
26689 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26690 (rs6000_init_hard_regno_mode_ok): Adjust.
26691 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26692 * doc/md.texi (Machine Constraints): Adjust.
26693
26694 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26695
26696 * config/rs6000/constraints.md (define_register_constraint "wk"):
26697 Delete.
26698 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26699 RS6000_CONSTRAINT_wk.
26700 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26701 (rs6000_init_hard_regno_mode_ok): Adjust.
26702 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26703 * doc/md.texi (Machine Constraints): Adjust.
26704
26705 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26706
26707 * config/rs6000/constraints.md (define_register_constraint "wj"):
26708 Delete.
26709 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26710 RS6000_CONSTRAINT_wj.
26711 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26712 (rs6000_init_hard_regno_mode_ok): Adjust.
26713 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26714 (VS_64dm): Delete.
26715 * config/rs6000/vsx.md: Ditto.
26716 * doc/md.texi (Machine Constraints): Adjust.
26717
26718 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26719
26720 * config/rs6000/constraints.md (define_register_constraint "wh"):
26721 Delete.
26722 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26723 RS6000_CONSTRAINT_wh.
26724 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26725 (rs6000_init_hard_regno_mode_ok): Adjust.
26726 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26727 * doc/md.texi (Machine Constraints): Adjust.
26728
26729 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26730
26731 PR target/90547
26732 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26733 Avoid calling gen_lowpart with CONST operand.
26734
26735 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26736
26737 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26738 field template_last_to_copy.
26739 (ssa_create_duplicates): Set it, and use it. Attempt to
26740 preserve more debug stmts.
26741
26742 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26743
26744 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26745 (signbit<mode>2): New expander
26746
26747 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26748
26749 PR bootstrap/87338
26750 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26751 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26752
26753 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26754
26755 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26756 %ebx and %ecx bafore calling cpuid with leaf 1 or
26757 non-constant leaf argument.
26758
26759 2019-05-21 Alan Modra <amodra@gmail.com>
26760
26761 PR target/90545
26762 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26763 power9 direct move cost.
26764
26765 2019-05-21 Richard Biener <rguenther@suse.de>
26766
26767 PR middle-end/90510
26768 * fold-const.c (fold_read_from_vector): New function.
26769 * fold-const.h (fold_read_from_vector): Declare.
26770 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26771 single-element insert permutations. Canonicalize selector
26772 further and fix issue with last commit.
26773
26774 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26775
26776 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26777 parameter with default value false to declaration.
26778 (split_edges_for_insertion): New inline function. Wrapper for
26779 split_critical_edges with for_edge_insertion_p = true.
26780 * tree-cfg.c (split_critical_edges): Don't split non-critical
26781 edges if for_edge_insertion_p is false. Fix whitespace.
26782 * tree-ssa-pre.c (pass_pre::execute): Call
26783 split_edges_for_insertion instead of split_critical_edges.
26784 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26785 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26786 (pass_data_sink_code): Update function name in the comment.
26787
26788 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26789
26790 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26791 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26792 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26793 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26794 positives.
26795
26796 2019-05-21 Martin Liska <mliska@suse.cz>
26797
26798 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26799 an extra newline.
26800 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26801 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26802 vec_lvsr.
26803 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26804 Quote a C type.
26805 (rs6000_function_arg): Likewise.
26806 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26807 (rs6000_expand_ternop_builtin): Use interval syntax.
26808 (get_element_number): Likewise.
26809 (altivec_expand_builtin): Likewise.
26810 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26811
26812 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26813
26814 PR c++/59813
26815 PR target/90418
26816 * function.h (struct function): Add calls_eh_return member.
26817 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26818 gimplifying __builtin_eh_return call.
26819 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26820 to cfun.
26821 (expand_call_inline): Or in src_cfun->calls_eh_return into
26822 dst_cfun->calls_eh_return.
26823 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26824 cfun->calls_eh_return.
26825 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26826 * lto-streamer-out.c (output_struct_function_base): Write
26827 calls_eh_return.
26828
26829 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26830
26831 PR rtl-optimization/43147
26832 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26833 IX86_BUILTIN_SHUFPD.
26834
26835 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26836
26837 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26838 (refs_may_alias_p_1): ... here; update stats.
26839 (refs_may_alias_p): Do not update stats here.
26840
26841 2019-05-20 Richard Biener <rguenther@suse.de>
26842
26843 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26844 doesn't produce pointers.
26845 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26846 the first operand points to.
26847
26848 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26849
26850 * tree-ssa-alias.c (compare_sizes): New function.
26851 (sompare_type_sizes): New function
26852 (aliasing_component_refs_p): Use it.
26853 (indirect_ref_may_alias_decl_p): Likewise.
26854
26855 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26856
26857 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26858
26859 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26860
26861 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26862 (LIBLSAN_EARLY_SPEC): Likewise.
26863 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26864
26865 2019-05-20 Martin Liska <mliska@suse.cz>
26866
26867 * config/i386/i386.c (ix86_libc_has_fast_function):
26868 Add ATTRIBUTE_UNUSED for the argument.
26869
26870 2019-05-20 Richard Biener <rguenther@suse.de>
26871
26872 * gimple-match-head.c: Include vec-perm-indices.h.
26873 * generic-match-head.c: Likewise.
26874 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26875 is included.
26876 * fold-const.c (fold_vec_perm): Export.
26877 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26878 (match.pd): ...here.
26879
26880 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26881
26882 * cfgloop.h (struct loop): Add simdlen member.
26883 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26884 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26885 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26886 as new argument to autovectorize_vector_sizes target hook. If
26887 loop->simdlen, pick up vector size where the vectorization factor
26888 is equal to loop->simd, and if there is none, fall back to the first
26889 successful one.
26890 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26891 caller.
26892 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26893 * omp-general.c (omp_max_vf): Likewise.
26894 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26895 * tree-vect-slp.c (vect_slp_bb): Likewise.
26896 * target.def (autovectorize_vector_sizes): Add ALL argument and
26897 document it.
26898 * doc/tm.texi: Adjust documentation.
26899 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26900 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26901 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26902 bool argument.
26903 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26904 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26905 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26906 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26907 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26908 preferred vector size is not 512-bit or 256-bit, just put those
26909 unpreferred ones last.
26910
26911 2019-05-20 Martin Liska <mliska@suse.cz>
26912
26913 * targhooks.c (default_libc_has_fast_function): New function.
26914 * targhooks.h (default_libc_has_fast_function): Likewise.
26915
26916 2019-05-20 Martin Liska <mliska@suse.cz>
26917
26918 PR middle-end/90263
26919 * builtins.c (expand_builtin_memory_copy_args): When having a
26920 target with fast mempcpy implementation do now use memcpy.
26921 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26922 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26923 * doc/tm.texi: Likewise.
26924 * doc/tm.texi.in: Likewise.
26925 * target.def:
26926 * expr.c (emit_block_move_hints): Add 2 new arguments.
26927 * expr.h (emit_block_move_hints): Bail out when libcall
26928 to memcpy would be used.
26929
26930 2019-05-20 Martin Liska <mliska@suse.cz>
26931
26932 * profile-count.c: Add vertical spacing in order
26933 to separate functions.
26934 * profile-count.h: Likewise.
26935
26936 2019-05-20 Martin Liska <mliska@suse.cz>
26937
26938 * profile-count.h: Do not use full qualified
26939 names if possible.
26940 * profile-count.c (profile_count::to_frequency): Likewise.
26941
26942 2019-05-20 Martin Liska <mliska@suse.cz>
26943
26944 * profile-count.h (enum profile_quality): Use capital letters
26945 for enum value names. Use the adjusted names.
26946 * profile-count.c: Use the adjusted names.
26947
26948 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26949
26950 * config/rs6000/constraints.md (define_register_constraint "wH"):
26951 Delete.
26952 (define_register_constraint "wI"): Delete.
26953 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26954 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26955 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26956 (rs6000_init_hard_regno_mode_ok): Adjust.
26957 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26958 resp. "d", or with "wa" as appropriate, all with "p8v".
26959 * config/rs6000/vsx.md: Ditto.
26960 * doc/md.texi (Machine Constraints): Adjust.
26961
26962 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26963
26964 * config/rs6000/constraints.md (define_register_constraint "wy"):
26965 Delete.
26966 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26967 RS6000_CONSTRAINT_wy.
26968 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26969 (rs6000_init_hard_regno_mode_ok): Adjust.
26970 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26971 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26972 (define_mode_attr Fisa): New.
26973 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26974 * doc/md.texi (Machine Constraints): Adjust.
26975
26976 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26977
26978 * config/rs6000/constraints.md (define_register_constraint "wu"):
26979 Delete.
26980 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26981 RS6000_CONSTRAINT_wu.
26982 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26983 (rs6000_init_hard_regno_mode_ok): Adjust.
26984 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26985 both with "p8v".
26986 (define_mode_attr Fa): Delete.
26987 * config/rs6000/vsx.md: Ditto.
26988 * doc/md.texi (Machine Constraints): Adjust.
26989
26990 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26991
26992 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26993 Delete.
26994 (define_register_constraint "wK"): Delete.
26995 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26996 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26997 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26998 (rs6000_init_hard_regno_mode_ok): Adjust.
26999 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
27000 Replace "wK" constraint by "wH" with "p9v".
27001 * config/rs6000/vsx.md: Ditto.
27002 * doc/md.texi (Machine Constraints): Adjust.
27003
27004 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27005
27006 * config/rs6000/constraints.md (define_register_constraint "wb"):
27007 Delete.
27008 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27009 RS6000_CONSTRAINT_wb.
27010 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27011 (rs6000_init_hard_regno_mode_ok): Adjust.
27012 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
27013 * config/rs6000/vsx.md: Ditto.
27014 * doc/md.texi (Machine Constraints): Adjust.
27015
27016 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27017
27018 * config/rs6000/constraints.md (define_register_constraint "wo"):
27019 Delete.
27020 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27021 RS6000_CONSTRAINT_wo.
27022 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27023 (rs6000_init_hard_regno_mode_ok): Adjust.
27024 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
27025 * config/rs6000/altivec.md: Ditto.
27026 * doc/md.texi (Machine Constraints): Adjust.
27027
27028 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27029
27030 * config/darwin-c.c (darwin_register_objc_includes): Do not
27031 prepend the sysroot when building gnu-runtime header search
27032 paths.
27033
27034 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27035
27036 * config/darwin.c (darwin_file_end): Use switch_to_section ()
27037 instead of direct output of the asm.
27038
27039 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27040
27041 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
27042 argument to be type bool (was int before).
27043 (rs6000_emit_epilogue): Simplify some code. Declare some variables
27044 at first use. Use type bool for some variables. Fix a theoretical
27045 eh_return bug for svr4.
27046
27047 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27048
27049 * config/rs6000/rs6000.md (isa): New attribute.
27050 (enabled): New attribute.
27051
27052 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
27053
27054 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
27055 assemble_start_function and assemble_end_function.
27056
27057 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
27058
27059 PR middle-end/89433
27060 * omp-general.c (oacc_verify_routine_clauses): Change formal
27061 parameters. Add checking if already marked with an OpenACC
27062 'routine' directive. Adjust all users.
27063
27064 PR middle-end/89433
27065 * omp-general.c (oacc_build_routine_dims): Move some of its
27066 processing into...
27067 (oacc_verify_routine_clauses): ... this new function.
27068 * omp-general.h (oacc_verify_routine_clauses): New prototype.
27069
27070 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27071
27072 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
27073 formating of picbase labels to match other ports.
27074
27075 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27076
27077 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
27078 in the generated code.
27079
27080 2019-05-16 Martin Sebor <msebor@redhat.com>
27081
27082 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
27083 identifiers, keywords, operators, and types in diagnostics. Correct
27084 quoting, spelling, and sentence capitalization issues.
27085 (expand_builtin_atomic_is_lock_free): Same.
27086 (fold_builtin_next_arg): Same.
27087 * cfgexpand.c (expand_one_var): Same.
27088 (tree_conflicts_with_clobbers_p): Same.
27089 (expand_asm_stmt): Same.
27090 (verify_loop_structure): Same.
27091 * cgraphunit.c (process_function_and_variable_attributes): Same.
27092 * collect-utils.c (collect_execute): Same.
27093 * collect2.c (maybe_run_lto_and_relink): Same.
27094 (is_lto_object_file): Same.
27095 (scan_prog_file): Same.
27096 * convert.c (convert_to_real_1): Same.
27097 * dwarf2out.c (dwarf2out_begin_prologue): Same.
27098 * except.c (verify_eh_tree): Same.
27099 * gcc.c (execute): Same.
27100 (eval_spec_function): Same.
27101 (run_attempt): Same.
27102 (driver::set_up_specs): Same.
27103 (compare_debug_auxbase_opt_spec_function): Same.
27104 * gcov-tool.c (unlink_gcda_file): Same.
27105 (do_merge): Same.
27106 (do_rewrite): Same.
27107 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
27108 * gimplify.c (gimplify_asm_expr): Same.
27109 (gimplify_adjust_omp_clauses): Same.
27110 * hsa-gen.c (gen_hsa_addr_insns): Same.
27111 (gen_hsa_insns_for_load): Same.
27112 (gen_hsa_cmp_insn_from_gimple): Same.
27113 (gen_hsa_insns_for_operation_assignment): Same.
27114 (gen_get_level): Same.
27115 (gen_hsa_alloca): Same.
27116 (omp_simple_builtin::generate): Same.
27117 (gen_hsa_atomic_for_builtin): Same.
27118 (gen_hsa_insns_for_call): Same.
27119 * input.c (dump_location_info): Same.
27120 * ipa-devirt.c (compare_virtual_tables): Same.
27121 * ira.c (ira_setup_eliminable_regset): Same.
27122 * lra-assigns.c (lra_assign): Same.
27123 * lra-constraints.c (lra_constraints): Same.
27124 * lto-streamer-in.c (lto_input_mode_table): Same.
27125 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
27126 (merge_and_complain): Same.
27127 (compile_offload_image): Same.
27128 (compile_images_for_offload_targets): Same.
27129 (debug_objcopy): Same.
27130 (run_gcc): Same.
27131 (main): Same.
27132 * opts.c (print_specific_help): Same.
27133 (parse_no_sanitize_attribute): Same.
27134 (print_help): Same.
27135 (handle_param): Same.
27136 * plugin.c (add_new_plugin): Same.
27137 (parse_plugin_arg_opt): Same.
27138 (try_init_one_plugin): Same.
27139 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
27140 operators, and types in diagnostics. Correct quoting and spelling
27141 issues.
27142 * read-rtl-function.c (parse_edge_flag_token): Same.
27143 (function_reader::parse_enum_value): Same.
27144 * reg-stack.c (check_asm_stack_operands): Same.
27145 * regcprop.c (validate_value_data): Same.
27146 * sched-rgn.c (make_pass_sched_fusion): Same.
27147 * stmt.c (check_unique_operand_names): Same.
27148 * targhooks.c (default_target_option_pragma_parse): Same.
27149 * tlink.c (recompile_files): Same.
27150 * toplev.c (process_options): Same.
27151 (do_compile): Same.
27152 * trans-mem.c (diagnose_tm_1): Same.
27153 (ipa_tm_scan_irr_block): Same.
27154 (ipa_tm_diagnose_transaction): Same.
27155 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
27156 format a tree code name in a diagnostic.
27157 (verify_types_in_gimple_min_lval): Same.
27158 (verify_types_in_gimple_reference): Same.
27159 (verify_gimple_call): Same.
27160 (verify_gimple_assign_unary): Same.
27161 (verify_gimple_assign_binary): Same.
27162 (verify_gimple_assign_ternary): Same.
27163 (verify_gimple_assign_single): Same.
27164 (verify_gimple_switch): Same.
27165 (verify_gimple_label): Same.
27166 (verify_gimple_phi): Same.
27167 (verify_gimple_in_seq): Same.
27168 (verify_eh_throw_stmt_node): Same.
27169 (collect_subblocks): Same.
27170 (gimple_verify_flow_info): Same.
27171 (do_warn_unused_result): Same.
27172 * tree-inline.c (expand_call_inline): Same.
27173 * tree-into-ssa.c (update_ssa): Same.
27174 * tree.c (tree_int_cst_elt_check_failed): Same.
27175 (tree_vec_elt_check_failed): Same.
27176 (omp_clause_operand_check_failed): Same.
27177 (verify_type_variant): Same.
27178 (verify_type): Same.
27179 * value-prof.c (verify_histograms): Same.
27180 * varasm.c (assemble_start_function): Same.
27181
27182 2019-05-16 Martin Sebor <msebor@redhat.com>
27183
27184 * config/i386/i386-expand.c (get_element_number): Quote keywords
27185 and other internal names in diagnostics. Adjust other diagnostic
27186 formatting issues noted by -Wformat-diag.
27187 * config/i386/i386-features.c
27188 (ix86_mangle_function_version_assembler_name): Same.
27189 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
27190 * config/i386/i386.c (ix86_function_type_abi): Same.
27191 (ix86_function_ms_hook_prologue): Same.
27192 (classify_argument): Same.
27193 (ix86_expand_prologue): Same.
27194 (ix86_md_asm_adjust): Same.
27195 (ix86_memmodel_check): Same.
27196
27197 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
27198
27199 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
27200 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
27201 and fpxx modes.
27202
27203 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
27204
27205 PR target/90497
27206 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
27207 intrinsics without SSE/SSE2/SSSE3.
27208 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
27209 check.
27210 (*mmx_uavgv8qi3): Likewise.
27211
27212 2019-05-17 Richard Biener <rguenther@suse.de>
27213
27214 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
27215 VEC_PERM_EXPR as __VEC_PERM with -gimple.
27216
27217 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
27218
27219 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
27220 vec_sldw insn pattern.
27221
27222 2019-05-17 Richard Biener <rguenther@suse.de>
27223
27224 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
27225
27226 2019-05-17 Martin Liska <mliska@suse.cz>
27227
27228 PR driver/90496
27229 * toplev.c (output_stack_usage): With LTO and sanitizer it
27230 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
27231 has no file location.
27232
27233 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27234
27235 PR c++/90484
27236 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
27237 sz0 is equal to sz1, instead return false in that case.
27238
27239 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
27240 has non-constant expression, force sctx.lane and use two
27241 argument IFN_GOMP_SIMD_LANE instead of single argument.
27242 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
27243 two argument IFN_GOMP_SIMD_LANE without lhs.
27244 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
27245 member.
27246 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
27247 Define.
27248 (LOOP_REQUIRES_VERSIONING): Or in
27249 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
27250 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
27251 simd_if_cond.
27252 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
27253 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
27254 from simd if clause if needed.
27255
27256 2019-05-16 Richard Biener <rguenther@suse.de>
27257
27258 * tree-affine.c (expr_to_aff_combination): New function split
27259 out from...
27260 (tree_to_aff_combination): ... here.
27261 (aff_combination_expand): Avoid building a GENERIC tree.
27262
27263 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
27264
27265 * cgraphunit.c (cgraph_node::expand_thunk): Remove
27266 assemble_start_function and assemble_end_function calls.
27267 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
27268 assemble_start_function and assemble_end_function.
27269 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
27270 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
27271 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
27272 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
27273 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
27274 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
27275 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
27276 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
27277 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
27278 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
27279 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
27280 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
27281 Likewise.
27282 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
27283 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
27284 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
27285 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
27286 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
27287 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
27288 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
27289 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
27290 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
27291 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27292 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
27293 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
27294 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
27295 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
27296 Likewise.
27297 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
27298 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
27299 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
27300
27301 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
27302
27303 * tree-ssa-alias.c (alias_stats): Add
27304 aliasing_component_refs_p_may_alias and
27305 aliasing_component_refs_p_no_alias.
27306 (dump_alias_stats): Print aliasing_component_refs_p stats.
27307 (aliasing_component_refs_p): Update stats.
27308
27309 2019-05-16 Martin Liska <mliska@suse.cz>
27310
27311 PR lto/90500
27312 * multiple_target.c (expand_target_clones): Do not allow
27313 target_clones being used with a symbol that is an alias.
27314
27315 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
27316
27317 PR tree-optimization/90394
27318 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
27319 positives rather than ICE for cases where (code2 == NE_EXPR
27320 && code1 == BIT_AND_EXPR).
27321
27322 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27323
27324 PR fortran/90329
27325 * tree-core.h (struct tree_decl_common): Document
27326 decl_nonshareable_flag for PARM_DECLs.
27327 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
27328 * calls.c (expand_call): Don't try tail call if caller
27329 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
27330 passed on the stack and callee needs to pass any arguments on the
27331 stack.
27332 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27333 else if instead of series of mutually exclusive ifs. Handle
27334 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
27335 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27336
27337 * lto-streamer.h (LTO_major_version): Bump to 9.
27338
27339 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
27340
27341 PR tree-optimization/90106
27342 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
27343 new parameter as new internal function call, also move it to new
27344 basic block.
27345 (use_internal_fn): Pass internal function call to
27346 shrink_wrap_one_built_in_call_with_conds.
27347
27348 2019-05-15 Jakub Jelinek <jakub@redhat.com>
27349
27350 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
27351 max_vf to 1.
27352 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
27353 safelen_int and set loop->dont_vectorize.
27354
27355 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27356
27357 PR target/89021
27358 * config/i386/i386-builtin.def: Enable MMX intrinsics with
27359 SSE/SSE2/SSSE3.
27360 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27361 Likewise.
27362 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
27363 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
27364 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
27365 is defined.
27366
27367 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27368
27369 PR target/89021
27370 * config/i386/mmx.md (*vec_dupv2sf): Changed to
27371 define_insn_and_split to support SSE emulation.
27372 (*vec_extractv2sf_0): Likewise.
27373 (*vec_extractv2sf_1): Likewise.
27374 (*vec_extractv2si_0): Likewise.
27375 (*vec_extractv2si_1): Likewise.
27376 (*vec_extractv2si_zext_mem): Likewise.
27377 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
27378 (vec_extractv2sf_1 splitter): Likewise.
27379 (vec_extractv2sfsf): Likewise.
27380 (vec_setv2si): Likewise.
27381 (vec_extractv2si_1 splitter): Likewise.
27382 (vec_extractv2sisi): Likewise.
27383 (vec_setv4hi): Likewise.
27384 (vec_extractv4hihi): Likewise.
27385 (vec_setv8qi): Likewise.
27386 (vec_extractv8qiqi): Likewise.
27387 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27388 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27389 (vec_extractv2sisi): Likewise.
27390 (vec_extractv4hihi): Likewise.
27391 (vec_extractv8qiqi): Likewise.
27392 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27393 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27394 (vec_initv2sisi): Likewise.
27395 (vec_initv4hihi): Likewise.
27396 (vec_initv8qiqi): Likewise.
27397 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
27398 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27399 (vec_setv4hi): Likewise.
27400 (vec_setv8qi): Likewise.
27401
27402 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27403
27404 PR target/89021
27405 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27406 TARGET_MMX_WITH_SSE.
27407 (MMXMODE:*mov<mode>_internal): Likewise.
27408 (MMXMODE:movmisalign<mode>): Likewise.
27409
27410 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
27411
27412 PR target/89021
27413 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27414 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27415 (sse2_cvtpd2pi): Ditto.
27416 (sse2_cvttpd2pi): Ditto.
27417 (*vec_concatv2sf_sse4_1): Ditto.
27418 (*vec_concatv2sf_sse): Ditto.
27419 (*vec_concatv2si_sse4_1): Ditto.
27420 (*vec_concatv2si): Ditto.
27421 (*vec_concatv4si_0): Ditto.
27422 (*vec_concatv2di_0): Ditto.
27423
27424 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27425
27426 PR target/89021
27427 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27428
27429 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27430
27431 PR target/89021
27432 * config/i386/sse.md (ssse3_palignrdi): Changed to
27433 define_insn_and_split to support SSE emulation.
27434
27435 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27436
27437 PR target/89021
27438 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27439
27440 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27441
27442 PR target/89021
27443 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27444 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27445 SSE emulation.
27446
27447 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27448
27449 PR target/89021
27450 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27451 or TARGET_MMX_WITH_SSE.
27452 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27453
27454 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27455
27456 PR target/89021
27457 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27458
27459 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27460
27461 PR target/89021
27462 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27463 Changed to define_insn_and_split to support SSE emulation.
27464
27465 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27466
27467 PR target/89021
27468 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27469 Changed to define_insn_and_split to support SSE emulation.
27470
27471 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27472
27473 PR target/89021
27474 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27475 (*mmx_<emms>): This.
27476 (mmx_<emms>): New expander.
27477
27478 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27479
27480 PR target/89021
27481 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27482 support.
27483 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27484
27485 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27486
27487 PR target/89021
27488 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27489
27490 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27491
27492 PR target/89021
27493 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27494
27495 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27496
27497 PR target/89021
27498 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27499 TARGET_MMX_WITH_SSE.
27500 (*mmx_uavgv4hi3): Add SSE emulation.
27501
27502 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27503
27504 PR target/89021
27505 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27506 and TARGET_MMX_WITH_SSE.
27507 (*mmx_uavgv8qi3): Add SSE emulation.
27508
27509 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27510
27511 PR target/89021
27512 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27513 maskmovdqu for __MMX_WITH_SSE__.
27514
27515 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27516
27517 PR target/89021
27518 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27519 TARGET_MMX and TARGET_MMX_WITH_SSE.
27520 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27521
27522 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27523
27524 PR target/89021
27525 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27526 define_insn_and_split to support SSE emulation.
27527
27528 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27529
27530 PR target/89021
27531 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27532 and TARGET_MMX_WITH_SSE.
27533 (mmx_<code>v8qi3): Likewise.
27534 (smaxmin:<code>v4hi3): New.
27535 (umaxmin:<code>v8qi3): Likewise.
27536 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27537 (umaxmin:*mmx_<code>v8qi3): Likewise.
27538
27539 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27540
27541 PR target/89021
27542 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27543 TARGET_MMX_WITH_SSE.
27544 (*mmx_pinsrw): Add SSE emulation.
27545
27546 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27547
27548 PR target/89021
27549 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27550
27551 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27552
27553 PR target/89021
27554 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27555 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27556 SSE emulation.
27557
27558 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27559
27560 PR target/89021
27561 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27562 (sse_cvttps2pi): Likewise.
27563
27564 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27565
27566 PR target/89021
27567 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27568 TARGET_MMX_WITH_SSE.
27569 (mmx_pshufw_1): Add SSE emulation.
27570 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27571 TARGET_MMX_WITH_SSE to support SSE emulation.
27572
27573 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27574
27575 PR target/89021
27576 * config/i386/constraints.md (Yw): New constraint.
27577 * config/i386/mmx.md (*vec_dupv2si): Changed to
27578 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27579 support SSE emulation.
27580
27581 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27582
27583 PR target/89021
27584 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27585 TARGET_MMX_WITH_SSE.
27586 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27587 support.
27588 (mmx_gt<mode>3): Likewise.
27589
27590 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27591
27592 PR target/89021
27593 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27594 TARGET_MMX_WITH_SSE. Add SSE support.
27595
27596 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27597
27598 PR target/89021
27599 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27600 TARGET_MMX_WITH_SSE.
27601 (any_logic:<code><mode>3): New.
27602 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27603 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_ashr<mode>3): Also allow
27609 TARGET_MMX_WITH_SSE. Add SSE emulation.
27610 (mmx_<shift_insn><mode>3): Likewise.
27611 (ashr<mode>3): New.
27612 (<shift_insn><mode>3): Likewise.
27613
27614 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27615
27616 PR target/89021
27617 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27618 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27619
27620 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27621
27622 PR target/89021
27623 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27624 TARGET_MMX_WITH_SSE.
27625 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27626 SSE support.
27627
27628 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27629
27630 PR target/89021
27631 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27632 TARGET_MMX_WITH_SSE.
27633 (mulv4hi3): New.
27634 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27635 support.
27636
27637 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27638
27639 PR target/89021
27640 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27641 (plusminus:mmx_<plusminus_insn><mode>3): Check
27642 TARGET_MMX_WITH_SSE.
27643 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27644 (<plusminus_insn><mode>3): New.
27645 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27646 (*mmx_<plusminus_insn><mode>3): Likewise.
27647
27648 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27649
27650 PR target/89021
27651 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27652 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27653 prototype.
27654 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27655 define_insn_and_split to support SSE emulation.
27656 (mmx_punpcklbw): Likewise.
27657 (mmx_punpckhwd): Likewise.
27658 (mmx_punpcklwd): Likewise.
27659 (mmx_punpckhdq): Likewise.
27660 (mmx_punpckldq): Likewise.
27661
27662 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27663 Uros Bizjak <ubizjak@gmail.com>
27664
27665 PR target/89021
27666 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27667 New function.
27668 (ix86_split_mmx_pack): Likewise.
27669 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27670 New prototype.
27671 (ix86_split_mmx_pack): Likewise.
27672 * config/i386/i386.md (mmx_isa): New.
27673 (enabled): Also check mmx_isa.
27674 * config/i386/mmx.md (any_s_truncate): New code iterator.
27675 (s_trunsuffix): New code attr.
27676 (mmx_packsswb): Removed.
27677 (mmx_packssdw): Likewise.
27678 (mmx_packuswb): Likewise.
27679 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27680 MMX packsswb/packuswb with SSE2.
27681 (mmx_packssdw): Likewise.
27682 * config/i386/predicates.md (register_mmxmem_operand): New.
27683
27684 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27685
27686 PR target/89021
27687 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27688 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27689 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27690 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27691 (ix86_vector_mode_supported_p): Likewise.
27692 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27693
27694 2019-05-15 Martin Liska <mliska@suse.cz>
27695
27696 PR middle-end/90478
27697 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27698 Check for overflow.
27699
27700 2019-05-15 Richard Biener <rguenther@suse.de>
27701
27702 * tree-into-ssa.c (pass_build_ssa::execute): Run
27703 update_address_taken before going into SSA.
27704
27705 2019-05-15 Richard Biener <rguenther@suse.de>
27706
27707 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27708 as __BIT_FIELD_REF with type with -gimple.
27709
27710 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27711
27712 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27713 semantically equivalent branches (left over after prior refactorings).
27714
27715 2019-05-15 Richard Biener <rguenther@suse.de>
27716
27717 PR tree-optimization/88828
27718 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27719 bogus check.
27720
27721 2019-05-14 Richard Biener <rguenther@suse.de>
27722
27723 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27724 as __VIEW_CONVERT with -gimple.
27725
27726 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27727
27728 PR target/82920
27729 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27730 Darwin.
27731
27732 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27733
27734 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27735 define_split to become a define_insn_and_split.
27736
27737 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27738
27739 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27740 arguments.
27741 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27742 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27743 (sibcall_epilogue): Adjust.
27744 (epilogue): Adjust.
27745
27746 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27747
27748 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27749 to unsupported ones.
27750 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27751 * config.host: Likewise.
27752 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27753 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27754 __svr4__]: Remove "brand" fallback.
27755 [!KSTAT_DATA_STRING]: Remove.
27756 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27757 to *-*-solaris2*.
27758 (comdat_group): Likewise.
27759 (set_have_as_tls): Likewise.
27760 (gcc_cv_target_dl_iterate_phdr): Likewise.
27761 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27762 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27763 * configure: Regenerate.
27764 * doc/install.texi: Simplify Solaris target triplets.
27765 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27766 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27767 Remove Solaris 10 references.
27768 Remove obsolete Solaris bug reference.
27769 (Specific, sparc-sun-solaris2.10): Remove.
27770
27771 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27772
27773 * config/i386/i386.md (any_div): New code iterator.
27774 (paired_mod): New code attribute.
27775 (sgnprefix): Handle DIV and UDIV RTXes.
27776 (u): Ditto.
27777 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27778 and udivmod<mode>4 patterns using any_div code iterator.
27779 (divmod splitters): Macroize splitters using any_div code iterator.
27780 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27781 (*udivmodsi4_pow2_zext_2): Ditto.
27782 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27783 and *udivmod<mode>4_noext patterns using any_div code iterator.
27784 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27785 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27786 patterns using any_div code iterator.
27787 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27788 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27789 patterns using any_div code iterator.
27790 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27791 udivmodhiqi3 patterns using any_extend code iterator.
27792
27793 2019-05-14 Richard Biener <rguenther@suse.de>
27794 H.J. Lu <hongjiu.lu@intel.com>
27795
27796 PR tree-optimization/88828
27797 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27798 permuting in a single non-constant element not extracted
27799 from a vector.
27800
27801 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27802
27803 * internal-fn.def (SIGNBIT): New.
27804 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27805 defined.
27806 (signbitv4sf2): Likewise.
27807
27808 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27809
27810 PR target/90357
27811 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27812 next insn when the SRC reg is dead.
27813
27814 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27815
27816 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27817 (alloc_cand_and_find_basis): Ditto.
27818 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27819 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27820 (create_add_imm_cand, slsr_process_cast): Ditto.
27821 (slsr_process_copy, replace_mult_candidate): Ditto.
27822 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27823 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27824 (pass_strength_reduction::execute): Init the first NULL element.
27825
27826 2019-05-13 Nathan Sidwell <nathan@acm.org>
27827
27828 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27829 (run_attempt): Reformat line break.
27830
27831 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27832
27833 PR target/90418
27834 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27835 data registers in sibcall epilogues.
27836 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27837
27838 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27839
27840 PR target/89221
27841 * configure.ac (--enable-frame-pointer):
27842 Disable by default for cygwin and mingw.
27843 * configure: Regenerate.
27844
27845 2019-05-13 Nathan Sidwell <nathan@acm.org>
27846
27847 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27848 piece of code.
27849 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27850 (gen_member_die): Move abstract origin check earlier. Only VARs
27851 can be static_inline_p. Simplify splicing control flow.
27852
27853 2019-05-13 Richard Biener <rguenther@suse.de>
27854
27855 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27856 VIEW_CONVERT_EXPR.
27857 (vect_build_slp_tree_1): Likewise.
27858
27859 2019-05-13 Richard Biener <rguenther@suse.de>
27860
27861 PR tree-optimization/90402
27862 * tree-if-conv.c (tree_if_conversion): Value number only
27863 the loop body by making the latch an exit of the region
27864 as well.
27865 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27866 processing PHIs.
27867 (do_rpo_vn): Deal with multiple edges into the entry block
27868 that are not backedges inside the region by skipping PHIs
27869 of the entry block.
27870
27871 2019-05-13 Richard Biener <rguenther@suse.de>
27872
27873 PR tree-optimization/90316
27874 * tree-ssa-pre.c (insert_aux): Fold into ...
27875 (insert): ... this function. Use a RPO walk to reduce the
27876 number of required iterations.
27877
27878 2019-05-13 Martin Liska <mliska@suse.cz>
27879
27880 PR tree-optimization/90416
27881 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27882 string instead of passing the second part as va_arg argument.
27883
27884 2019-05-13 Martin Liska <mliska@suse.cz>
27885
27886 PR gcov-profile/90380
27887 * gcov.c (handle_cycle): Do not support zero cycle count,
27888 it should not be possible.
27889 (path_contains_zero_cycle_arc): New function.
27890 (circuit): Ignore zero cycle arc counts.
27891
27892 2019-05-13 Martin Liska <mliska@suse.cz>
27893
27894 PR gcov-profile/90380
27895 * gcov.c (enum loop_type): Remove the enum and
27896 the operator.
27897 (handle_cycle): Assert that we should not reach
27898 a negative count.
27899 (circuit): Use loop_found instead of a tri-state loop_type.
27900 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27901 happen.
27902
27903 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27904
27905 PR target/82920
27906 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27907 (ix86_output_indirect_branch_via_reg): Use output mechanism
27908 accounting for __USER_LABEL_PREFIX__.
27909 (ix86_output_indirect_branch_via_push): Likewise.
27910 (ix86_output_function_return): Likewise.
27911 (ix86_output_indirect_function_return): Likewise.
27912
27913 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27914
27915 * doc/md.texi: Document use of code attributes in rtx patterns.
27916 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27917 * read-rtl.c (find_code): Split out search loops into...
27918 (maybe_find_code): ...this new function.
27919 (check_code_iterator): Make the error message more informative.
27920 (check_code_attribute): New function.
27921 (rtx_reader::rtx_alloc_for_name): Likewise.
27922 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27923 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27924 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27925 <max_opp> directly as an rtx code instead of via a match_operator.
27926 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27927 (<su>abd<mode>_3): Update accordingly.
27928
27929 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27930
27931 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27932 is given, print the state of the EH "save world" computation for
27933 Darwin.
27934
27935 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27936
27937 PR c++/59813
27938 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27939 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27940
27941 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27942
27943 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27944 Use pinsrd for TARGET_SSE4_1.
27945 * config/i386/sse.md (movdi_to_sse): Ditto.
27946
27947 2019-05-10 Richard Biener <rguenther@suse.de>
27948
27949 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27950 (do_rpo_vn): Initialize next_value_id.
27951
27952 2019-05-10 Martin Liska <mliska@suse.cz>
27953
27954 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27955 Fix plural form.
27956
27957 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27958
27959 PR tree-optimization/90385
27960 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27961 arguments of the exit phis.
27962
27963 PR c++/90383
27964 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27965 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27966 id->do_not_fold.
27967 (copy_tree_body_r): Likewise.
27968 (copy_fn): Set id.do_not_fold to true.
27969
27970 2019-05-10 Martin Liska <mliska@suse.cz>
27971
27972 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27973 Reapply changes from r269790.
27974
27975 2019-05-10 Martin Liska <mliska@suse.cz>
27976
27977 PR middle-end/90340
27978 * doc/invoke.texi: New params.
27979 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27980 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27981 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27982 Use it.
27983 * tree-switch-conversion.h (struct jump_table_cluster):
27984 Likewise.
27985
27986 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27987
27988 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27989
27990 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27991
27992 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27993
27994 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27995
27996 PR rtl-optimization/88879
27997 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27998
27999 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
28000
28001 PR target/90405
28002 * config/arm/arm.c (callee_saved_reg_p): Move before
28003 thumb_find_work_register.
28004 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
28005 thumb_find_work_register. Only call df_get_live_out once.
28006 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
28007 (thumb_find_work_register): Use
28008 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
28009 algorithms to locate a spare call clobbered reg.
28010
28011 2019-05-09 Martin Liska <mliska@suse.cz>
28012
28013 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
28014 and MAX_EXPR in GIMPLE FE format.
28015
28016 2019-05-09 Martin Liska <mliska@suse.cz>
28017
28018 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
28019 * gimple-pretty-print.c (dump_gimple_bb_header):
28020 Dump BB count.
28021 (pp_cfg_jump): Dump edge probability.
28022 * profile-count.c (profile_quality_as_string): Simplify
28023 with a static array.
28024 (parse_profile_quality): New function.
28025 (profile_count::dump): Simplify with a static array.
28026 (profile_count::from_gcov_type): Add new argument.
28027 * profile-count.h (parse_profile_quality): Likewise.
28028 * predict.h (set_hot_bb_threshold): New.
28029 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28030 New param.
28031 * predict.c (get_hot_bb_threshold): Set from the new param.
28032 (set_hot_bb_threshold): New.
28033
28034 2019-05-09 Richard Biener <rguenther@suse.de>
28035
28036 PR tree-optimization/90395
28037 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
28038 rewrite vector stores that throw internally.
28039
28040 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
28041
28042 * cif-code.def (CHKP): Remove.
28043
28044 PR target/89221
28045 * configure.ac (--enable-frame-pointer): Disable by default for
28046 GNU systems.
28047 * configure: Regenerate.
28048
28049 2019-05-09 Alan Modra <amodra@gmail.com>
28050
28051 PR target/89271
28052 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
28053 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
28054 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
28055 cost for general <-> vsx when direct moves are available.
28056 Cost union classes at minimal cost for any reg in the class.
28057 Correct calculation for moves between vsx, float, and altivec.
28058 Don't return a low cost for moves between special regs. Don't
28059 use hard coded register numbers.
28060 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
28061 (rs6000_ira_change_pseudo_allocno_class): New function.
28062 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
28063 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
28064 alternatives.
28065 (movsi_internal1): Don't disparage vector alternatives.
28066 (mov<mode>_internal): Likewise, excepting alternative that
28067 will be split.
28068 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
28069 we <- b alternative.
28070
28071 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28072
28073 PR c++/59813
28074 PR tree-optimization/89060
28075 * tree-ssa-live.h (live_vars_map): New typedef.
28076 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
28077 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
28078 (struct compute_live_vars_data): New type.
28079 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
28080 live_vars_at_stmt, destroy_live_vars): New functions.
28081 * tree-tailcall.c: Include tree-ssa-live.h.
28082 (live_vars, live_vars_vec): New global variables.
28083 (find_tail_calls): Perform variable life analysis before punting.
28084 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
28085 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
28086 member.
28087 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
28088 Perform variable life analysis to select variables that really need
28089 clobbers added.
28090 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
28091 instead set id->eh_landing_pad_dest and assert it is the same.
28092 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
28093
28094 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
28095 Richard Earnshaw <rearnsha@arm.com>
28096
28097 PR target/88167
28098 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
28099 function.
28100 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
28101 (thumb1_compute_save_core_reg_mask): Don't force a spare work
28102 register if both the epilogue and prologue can use call-clobbered
28103 regs.
28104 (thumb1_unexpanded_epilogue): Use
28105 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
28106 picking temporaries for restoring high regs to match that of the
28107 prologue where possible.
28108 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
28109 the list of work registers. Detect if the return address is still live
28110 at the end of the prologue and avoid using it for a work register if so.
28111 If the return address is not live, add LR to the list of pushable regs
28112 after the first pass.
28113
28114 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28115
28116 PR tree-optimization/90078
28117 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
28118 (INFTY): Increase the value for infinite cost.
28119 (struct comp_cost): Promote type of members to int64_t.
28120 (infinite_cost): Don't set complexity in initialization.
28121 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
28122 overflows to infinite_cost.
28123 (adjust_setup_cost): Promote type of parameter and cost computation
28124 to int64_t.
28125 (struct ainc_cost_data, struct iv_ca): Promote type of member to
28126 int64_t.
28127 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
28128 cost computation to int64_t.
28129 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
28130 int64_t's format specifier in dump.
28131
28132 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28133
28134 PR tree-optimization/90240
28135 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
28136 with respect to scaling factor pre-computed for each basic block.
28137 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
28138 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
28139 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
28140 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
28141 live range for array of loop's basic blocks. Cleanup aux field of
28142 loop's basic blocks.
28143
28144 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28145
28146 PR tree-optimization/90356
28147 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
28148
28149 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
28150
28151 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
28152 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
28153 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
28154 (ix86_handle_option): Handle -mavx512bf16.
28155 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
28156 to extra_headers.
28157 * config/i386/avx512bf16vlintrin.h: New.
28158 * config/i386/avx512bf16intrin.h: New.
28159 * config/i386/cpuid.h (bit_AVX512BF16): New.
28160 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
28161 * config/i386/i386-builtin-types.def: Add new types.
28162 * config/i386/i386-builtin.def: Add new builtins.
28163 * config/i386/i386-c.c (ix86_target_macros_internal): Define
28164 __AVX512BF16__.
28165 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
28166 (ix86_option_override_internal): Handle BF16.
28167 (ix86_valid_target_attribute_inner_p): Ditto.
28168 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
28169 * config/i386/i386-builtin.c (enum processor_features): Add
28170 F_AVX512BF16.
28171 (static const _isa_names_table isa_names_table): Ditto.
28172 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
28173 (PTA_AVX512BF16): Ditto.
28174 * config/i386/i386.opt: Add -mavx512bf16.
28175 * config/i386/immintrin.h: Include avx512bf16intrin.h
28176 and avx512bf16vlintrin.h.
28177 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
28178 avx512f_cvtneps2bf16_<mode><mask_name>,
28179 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
28180 * config/i386/subst.md (mask_half): Add new subst.
28181 * doc/invoke.texi: Document -mavx512bf16.
28182
28183 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
28184
28185 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
28186 Delete declaration.
28187 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
28188 (rs6000_debug_legitimize_reload_address): Delete.
28189 (rs6000_legitimize_reload_address_ptr): Delete.
28190 (rs6000_option_override_internal): Adjust.
28191 (mem_operand_gpr): Adjust comment.
28192 (legitimate_lo_sum_address_p): Ditto.
28193 (rs6000_legitimize_reload_address): Delete.
28194 (rs6000_debug_legitimize_reload_address): Delete.
28195 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
28196
28197 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
28198
28199 PR target/89765
28200 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28201 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
28202 to compute vector element selector for both constant and variable
28203 operands.
28204
28205 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28206
28207 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
28208 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
28209 ashrdi3_cvt using SWI48 mode iterator.
28210
28211 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28212
28213 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
28214 (aarch64_<su>abd<mode>_3): Likewise.
28215 (*aarch64_<su>abd<mode>_3): New define_insn.
28216 (<sur>sad<vsi2qi>): New define_expand.
28217 * config/aarch64/iterators.md: Added MAX_OPP attribute.
28218 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
28219 (build_vect_cond_expr): Likewise.
28220
28221 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28222
28223 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
28224 clobbers outside of accessible_reg_set.
28225 * config/i386/i386.c (ix86_conditional_register_usage):
28226 Disable register sets by clearing corresponding bits in
28227 accessible_reg_set. Do not set corresponding bits in fixed_regs,
28228 call_used_regs and don't clear corresponding reg_names array members.
28229
28230 2019-05-07 Richard Biener <rguenther@suse.de>
28231
28232 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
28233 not specified still compute a comp_vectype for invariant
28234 compares.
28235
28236 2019-05-07 Richard Biener <rguenther@suse.de>
28237
28238 PR tree-optimization/90316
28239 * tree-ssa-pre.c (translate_vuse_through_block): When
28240 same_valid is NULL do not bother to search for a virtual
28241 PHI continuation.
28242 (phi_translate_1): When operands changed we cannot keep
28243 the same value-number so do not bother to ask whether
28244 that's possible from translate_vuse_through_block.
28245
28246 2019-05-07 Martin Liska <mliska@suse.cz>
28247
28248 * bitmap.c (bitmap_register): Come up with
28249 alloc_descriptor_max_uid and assign it for
28250 a new bitmap.
28251 (register_overhead): Use get_descriptor as
28252 a descriptor.
28253 (release_overhead): New.
28254 (bitmap_elem_to_freelist): Call it.
28255 (bitmap_elt_clear_from): Likewise.
28256 (bitmap_obstack_free): Likewise.
28257 (bitmap_move): Sensitively release memory.
28258 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
28259 (bitmap_initialize): Initialize alloc_descriptor to zero.
28260 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
28261
28262 2019-05-07 Richard Biener <rguenther@suse.de>
28263
28264 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
28265 we build a SLP node. Remove max_size and limiting.
28266 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
28267
28268 2019-05-07 Richard Biener <rguenther@suse.de>
28269
28270 PR tree-optimization/90316
28271 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
28272 limit by reference.
28273 (walk_non_aliased_vuses): Take walking limit argument.
28274 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
28275 walking if it is reached instead of just counting.
28276 (get_continuation_for_phi): Likewise.
28277 (walk_non_aliased_vuses): Likewise, instead of leaving counter
28278 limiting to the callback.
28279 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
28280 (vn_reference_lookup_3): Likewise.
28281 (vn_reference_lookup_pieces): Likewise.
28282 (vn_reference_lookup): Likewise.
28283 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
28284 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
28285 (avail_exprs_stack::lookup_avail_expr): Likewise.
28286
28287 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
28288
28289 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
28290 for comparaible types in the second direction even if first one
28291 hits incomparable type.
28292
28293 2019-05-07 Richard Biener <rguenther@suse.de>
28294
28295 PR lto/90369
28296 * lto-wrapper.c (debug_objcopy): Use the original filename
28297 including archive offset for the filename used for -save-temps.
28298
28299 2019-05-07 Li Jia He <helijia@linux.ibm.com>
28300
28301 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
28302 detection.
28303
28304 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
28305 Hongtao Liu <hongtao.liu@intel.com>
28306
28307 PR target/89750
28308 PR target/86444
28309 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
28310 Modified, original implementation isn't correct.
28311
28312 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28313
28314 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
28315 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
28316 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
28317 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
28318 (FRAME_POINTER_REGNUM): Change numbering.
28319 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
28320 (alt_reg_names): Adjust.
28321 (rs6000_conditional_register_usage): Don't mark hard register 64 as
28322 fixed.
28323 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28324 (DWARF_FRAME_REGISTERS): Delete.
28325 (DWARF2_FRAME_REG_OUT): Fix whitespace.
28326 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28327 Adjust.
28328 (REG_ALLOC_ORDER): Adjust.
28329 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
28330 (REG_CLASS_CONTENTS): Adjust.
28331 (RETURN_ADDR_RTX): Change comment.
28332 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
28333 instead of 67.
28334 (REGISTER_NAMES): Adjust.
28335 (ADDITIONAL_REGISTER_NAMES): Adjust.
28336 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28337
28338 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28339
28340 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
28341 Delete.
28342 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28343 (DWARF_FRAME_REGISTERS): Adjust.
28344 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28345 Adjust.
28346 (REG_ALLOC_ORDER): Adjust.
28347 (enum reg_class): Delete SPR_REGS.
28348 (REG_CLASS_NAMES): Delete SPR_REGS.
28349 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
28350 (REGISTER_NAMES): Adjust.
28351 (ADDITIONAL_REGISTER_NAMES): Adjust.
28352 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28353 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
28354 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
28355 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
28356 (htm_spr_regno): Delete.
28357 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
28358 argument.
28359 (rs6000_dbx_register_number): Adjust.
28360
28361 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28362
28363 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
28364
28365 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28366
28367 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
28368 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
28369
28370 2019-05-06 Jakub Jelinek <jakub@redhat.com>
28371
28372 PR tree-optimization/88709
28373 PR tree-optimization/90271
28374 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
28375 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
28376 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
28377 variable.
28378 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
28379 of the store merging group is larger than
28380 PARAM_STORE_MERGING_MAX_SIZE parameter.
28381 (split_group): Add bzero_first argument. If set, always emit first
28382 the first store which must be = {} of the whole area and then for the
28383 rest of the stores consider all zero bytes as paddings.
28384 (imm_store_chain_info::output_merged_store): Check if first store
28385 is = {} of the whole area and if yes, determine which setting of
28386 bzero_first for split_group gives smaller number of stores. Adjust
28387 split_group callers.
28388 (lhs_valid_for_store_merging_p): Allow decls.
28389 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28390 no elts.
28391 (pass_store_merging::process_store): Likewise.
28392
28393 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
28394
28395 PR target/89424
28396 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28397 handling of V1TImode.
28398
28399 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
28400
28401 PR target/89221
28402 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28403 and enable_frame_pointer ...
28404 * configure.ac: ... here. Update help strings for
28405 --enable-frame-pointer.
28406 * configure: Regenerate.
28407 * config/i386/i386-options.c (ix86_option_override_internal): Remove
28408 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28409 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28410 (USE_X86_64_FRAME_POINTER): Ditto.
28411
28412 2019-05-06 Martin Liska <mliska@suse.cz>
28413
28414 * config.gcc: Append to target_gtfiles and fix indentation.
28415
28416 2019-05-06 Richard Biener <rguenther@suse.de>
28417
28418 PR tree-optimization/90358
28419 * tree-vect-stmts.c (get_group_load_store_type): Properly
28420 detect unused upper half of load.
28421 (vectorizable_load): Likewise.
28422
28423 2019-05-06 Richard Biener <rguenther@suse.de>
28424
28425 PR tree-optimization/88828
28426 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28427 (simplify_vector_constructor): ...here. Handle constants in
28428 the constructor.
28429
28430 2019-05-06 Richard Biener <rguenther@suse.de>
28431
28432 PR tree-optimization/90328
28433 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28434 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28435 is valid in the loop nest before using it.
28436 (initialize_data_dependence_relation): Adjust.
28437 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28438 loop as loop-nest to dr_may_alias_p.
28439
28440 2019-05-06 Richard Biener <rguenther@suse.de>
28441
28442 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28443
28444 2019-05-06 Richard Biener <rguenther@suse.de>
28445
28446 PR tree-optimization/90316
28447 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28448 compute target on demand.
28449 (get_continuation_for_phi): Remove code walking stmts to
28450 get to a target virtual operand which could end up being
28451 quadratic.
28452
28453 2019-05-06 Martin Liska <mliska@suse.cz>
28454
28455 PR sanitizer/90312
28456 * config/i386/i386-options.c (ix86_option_override_internal): Error only
28457 when -mabi is selected to a non-default version.
28458
28459 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28460 Martin Liska <mliska@suse.cz>
28461
28462 * Makefile.in: Add lto-dump.texi.
28463 * cgraph.h: Add new functions get_visibility_string and
28464 get_symtab_type_string.
28465 * doc/gcc.texi: Include lto-dump section.
28466 * doc/lto-dump.texi: New file.
28467 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28468 (parse_dump_option): Factor out this function.
28469 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28470 (parse_dump_option): Export the function.
28471 * symtab.c (symtab_node::get_visibility_string): New function.
28472 (symtab_node::get_symtab_type_string): Likewise.
28473
28474 2019-05-06 Martin Liska <mliska@suse.cz>
28475
28476 * config/i386/i386-builtins.c: New file.
28477 * config/i386/i386-builtins.h: New file.
28478 * config/i386/i386-expand.c: New file.
28479 * config/i386/i386-expand.h: New file.
28480 * config/i386/i386-features.c: New file.
28481 * config/i386/i386-features.h: New file.
28482 * config/i386/i386-options.c: New file.
28483 * config/i386/i386-options.h: New file.
28484 * config.gcc: Add new files into extra_objs and
28485 target_gtfiles.
28486 * config/i386/i386.c: Split content of the file
28487 into newly introduced files.
28488 * config/i386/i386.h: Declare common variables
28489 and macros.
28490 * config/i386/t-i386: Define dependencies for new files.
28491
28492 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28493
28494 PR target/89400
28495 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28496 Restrict 'all' variant to 32-bit configurations.
28497 (unaligned_loadhiu): Likewise.
28498 (unaligned_storehi): Likewise.
28499 (unaligned_storesi): Likewise.
28500 (unaligned_loadhis): Disable when compiling for thumb1.
28501
28502 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28503
28504 PR tree-optimization/90269
28505 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28506 Ignore clobbers.
28507
28508 2019-05-03 Martin Liska <mliska@suse.cz>
28509
28510 * hash-map.h: Add is_empty function.
28511 * hash-set.h: Likewise.
28512 * hash-table.h: Likewise.
28513 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28514 elements () == 0 (and similar usages).
28515 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28516 * gimplify.c (gimplify_bind_expr): Likewise.
28517 (gimplify_switch_expr): Likewise.
28518 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28519 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28520 * postreload-gcse.c (dump_hash_table): Likewise.
28521 (gcse_after_reload_main): Likewise.
28522 * predict.c (combine_predictions_for_bb): Likewise.
28523 * tree-parloops.c (reduction_phi): Likewise.
28524 (separate_decls_in_region): Likewise.
28525 (transform_to_exit_first_loop): Likewise.
28526 (gen_parallel_loop): Likewise.
28527 (gather_scalar_reductions): Likewise.
28528 (try_create_reduction_list): Likewise.
28529 * var-tracking.c (dump_vars): Likewise.
28530 (emit_notes_for_changes): Likewise.
28531 (vt_emit_notes): Likewise.
28532
28533 2019-05-03 Richard Biener <rguenther@suse.de>
28534
28535 PR tree-optimization/90316
28536 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28537 before running VN.
28538
28539 2019-05-03 Richard Biener <rguenther@suse.de>
28540
28541 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28542 peeling for gaps by loading only lower halves of vectors
28543 if possible.
28544 (vectorizable_load): Likewise.
28545
28546 2019-05-03 Richard Biener <rguenther@suse.de>
28547
28548 PR middle-end/89518
28549 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28550
28551 2019-05-03 Richard Biener <rguenther@suse.de>
28552
28553 PR middle-end/87314
28554 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28555 Handle STRING_CST vs DECL or STRING_CST.
28556
28557 2019-05-03 Richard Biener <rguenther@suse.de>
28558
28559 PR tree-optimization/88963
28560 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28561 vector loads feeding only BIT_FIELD_REFs to component
28562 loads. Rewrite stores fed by CONSTRUCTORs to component
28563 stores.
28564
28565 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28566
28567 * opts.h (finish_options): Remove lang_mask argument.
28568 (print_help, help_option_argument): Declare.
28569 * opts.c (print_help): Remove forward declaration, no longer static.
28570 (finish_options): Remove lang_mask argument, don't call print_help
28571 here.
28572 * opts-global.c (decode_options): Adjust finish_option caller, call
28573 print_help here.
28574
28575 PR tree-optimization/90303
28576 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28577 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28578
28579 2019-05-03 Richard Biener <rguenther@suse.de>
28580
28581 PR tree-optimization/89698
28582 * gimple-fold.c (canonicalize_constructor_val): Early out
28583 for constants, handle unfolded INTEGER_CSTs as they appear in
28584 C++ virtual table ctors.
28585
28586 2019-05-03 Richard Biener <rguenther@suse.de>
28587
28588 * passes.c (execute_function_todo): Remove dead code.
28589
28590 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28591
28592 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28593 the internal register number, for any "real" register.
28594
28595 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28596
28597 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28598 correct numbers for TFHAR, TFIAR, TEXASR.
28599
28600 2019-05-02 Richard Biener <rguenther@suse.de>
28601
28602 PR tree-optimization/89653
28603 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28604 update-address-taken before the pass.
28605 * passes.def (pass_tree_loop_init): Put comment before it.
28606
28607 2019-05-02 Richard Biener <rguenther@suse.de>
28608
28609 PR tree-optimization/89509
28610 * tree-ssa-structalias.c (compute_dependence_clique): Look
28611 at the first subvar when determining whether it is restrict.
28612
28613 2019-05-02 Richard Biener <rguenther@suse.de>
28614
28615 PR tree-optimization/90273
28616 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28617 useless debug stmts.
28618
28619 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28620
28621 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28622 ACLE branch.
28623 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28624 SVE ACLE branch.
28625 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28626 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28627 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28628 (vectorizable_reduction): Use the functions above to vectorize in a
28629 fully masked loop codes that don't have a conditional internal
28630 function.
28631
28632 2019-05-02 Martin Liska <mliska@suse.cz>
28633
28634 * cgraphclones.c: Call valid_attribute_p with 1 for
28635 target_clone.
28636 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28637 it's for target attribute.
28638 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28639 Add new boolean argument.
28640 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28641 Likewise.
28642 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28643 to ix86_valid_target_attribute_inner_p.
28644 (ix86_valid_target_attribute_p): Pass flags argument to
28645 ix86_valid_target_attribute_inner_p.
28646 (get_builtin_code_for_version): Use 0 as it's target attribute.
28647
28648 2019-05-02 Martin Liska <mliska@suse.cz>
28649
28650 * gcc.c (process_command): Add dummy file only
28651 if n_infiles == 0.
28652 * opts-global.c (decode_options): Pass lang_mask.
28653 * opts.c (print_help): New function.
28654 (finish_options): Print --help if help_option_argument
28655 is set.
28656 (common_handle_option): Factor out content of OPT__help_
28657 into print_help.
28658 * opts.h (finish_options): Add new argument.
28659
28660 2019-05-02 Martin Liska <mliska@suse.cz>
28661
28662 PR target/88809
28663 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28664 With -minline-all-stringops use inline expansion using 4B loop.
28665 * doc/invoke.texi: Document the change of
28666 -minline-all-stringops.
28667
28668 2019-05-01 Jeff Law <law@redhat.com>
28669
28670 PR tree-optimization/88797
28671 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28672 PHI feeds a conditional on the RHS of an assignment.
28673
28674 2019-04-30 Andrew Waterman <andrew@sifive.com>
28675 Jim Wilson <jimw@sifive.com>
28676
28677 * config/riscv/constraints.md (L): New.
28678 * config/riscv/predicates.md (lui_operand): New.
28679 (sfb_alu_operand): New.
28680 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28681 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28682 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28683 * config/riscv/risc.md (type): Add sfb_alu.
28684 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28685 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28686 (branch_zero<mode>): Delete.
28687 (mov<mode>cc): New.
28688 (mov<GPR:mode><X:mode>cc): Likewise.
28689 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28690
28691 2019-04-30 Nathan Sidwell <nathan@acm.org>
28692
28693 * tree.h (MARK_TS_EXP): New.
28694
28695 2019-04-30 Martin Liska <mliska@suse.cz>
28696
28697 * opts.c (enable_warning_as_error): Provide hints
28698 for unknown options.
28699
28700 2019-04-30 Martin Liska <mliska@suse.cz>
28701
28702 PR debug/90288
28703 * doc/invoke.texi: Add missing dash for gas-locview-support
28704 and gno-as-locview-support.
28705
28706 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28707
28708 PR target/89093
28709 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28710 whitespace at the start of target attribute string.
28711
28712 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28713
28714 PR target/86538
28715 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28716 Define __ARM_FEATURE_ATOMICS.
28717
28718 2019-04-30 Martin Liska <mliska@suse.cz>
28719
28720 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28721 into built_in_function enum. Remove code for endp == 2 and
28722 use BUILT_IN_* constants.
28723 (gimple_fold_builtin): Call the function with fcode.
28724
28725 2019-04-30 Martin Liska <mliska@suse.cz>
28726
28727 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28728 DECL_FUNCTION_CODE into ix86_builtins enum before
28729 the switch statement.
28730
28731 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28732
28733 PR tree-optimization/89475
28734 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28735 calls.
28736
28737 2019-04-30 Martin Liska <mliska@suse.cz>
28738
28739 PR translation/90274
28740 * opts.c (print_filtered_help): Wrap string in _(...).
28741
28742 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28743
28744 PR tree-optimization/90240
28745 Revert:
28746 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28747
28748 PR tree-optimization/90078
28749 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28750 checks for infinite_cost overflow.
28751
28752 2019-04-29 Jeff Law <law@redhat.com>
28753
28754 * passes.def: Move -Wrestrict pass after copy propagation.
28755
28756 2019-04-29 Maya Rashish <coypu@sdf.org>
28757
28758 * config.gcc (default_gnu_indirect_function): Default to yes
28759 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28760 sparc*-*-netbsd*, x86_64-*-netbsd*.
28761
28762 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28763
28764 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28765 where cond2 is NE_EXPR.
28766 (is_value_included_in): Update comment.
28767
28768 2019-04-29 Richard Biener <rguenther@suse.de>
28769
28770 PR tree-optimization/90278
28771 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28772 EH on comparison simplification.
28773
28774 2019-04-29 Jason Merrill <jason@redhat.com>
28775
28776 PR c++/82081 - tail call optimization breaks noexcept
28777 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28778 nothrow function to a might-throw function into a tail call.
28779
28780 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28781
28782 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28783 (DDR_INNER_LOOP): Likewise.
28784 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28785 (initialize_data_dependence_relation): Likewise.
28786 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28787
28788 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28789
28790 PR rtl-optimization/90257
28791 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28792 return value.
28793
28794 Revert the revert:
28795 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28796
28797 PR target/90178
28798 Revert:
28799 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28800
28801 Revert the revert:
28802 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28803
28804 Revert:
28805 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28806
28807 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28808
28809 2019-04-29 Richard Biener <rguenther@suse.de>
28810
28811 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28812 rhs issue a reset.
28813
28814 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28815
28816 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28817 varasm.h, and netbsd-protos.h.
28818
28819 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28820
28821 PR target/89261
28822 * config/i386/i386-protos.h (ix86_data_alignment): Change
28823 the second argument type to unsigned int.
28824 * config/i386/i386.c (ix86_data_alignment): Change "align"
28825 argument type to unsigned int.
28826
28827 2019-04-27 Martin Liska <mliska@suse.cz>
28828
28829 PR middle-end/90258
28830 * opt-suggestions.c (option_proposer::build_option_suggestions):
28831 When get_valid_option_values returns empty values, add the
28832 misspelling candidate.
28833
28834 2019-04-26 Jim Wilson <jimw@sifive.com>
28835
28836 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28837 parameter.
28838 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28839 Pass orig_mode to riscv_build_integer.
28840 (riscv_split_integer): Pass mode to riscv_move_integer.
28841 (riscv_legitimize_const_move): Likewise.
28842 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28843 promoted_mode. Replace force_reg call with code to load constant into
28844 promoted reg and then subreg it for the store.
28845 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28846 riscv_move_integer.
28847
28848 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28849
28850 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28851 corrupt codes.
28852
28853 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28854
28855 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28856 commentary about the encoding of precision.
28857
28858 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28859
28860 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28861 * config/i386/t-freebsd64: New file.
28862 * config.gcc: Add the t-freebsd64 for multilib support.
28863
28864 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28865
28866 * doc/extend.texi (vector_size): Add missing comma after @xref.
28867
28868 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28869
28870 * BASE-VER: Set to 10.0.0.
28871
28872 2019-04-25 Richard Biener <rguenther@suse.de>
28873
28874 PR middle-end/89765
28875 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28876 VIEW_CONVERT_EXPR into one operating on an rvalue.
28877
28878 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28879
28880 PR target/89929
28881 * config/i386/i386.c (feature_priority): Moved to file scope.
28882 (processor_features): Likewise.
28883 (processor_model): Likewise.
28884 (_arch_names_table): Likewise.
28885 (arch_names_table): Likewise.
28886 (_feature_list): Removed.
28887 (feature_list): Likewise.
28888 (_isa_names_table): Moved to file scope. Add priority.
28889 (isa_names_table): Likewise.
28890 (get_builtin_code_for_version): Replace feature_list with
28891 isa_names_table. Update error message for P_ZERO priority.
28892
28893 2019-04-25 Richard Biener <rguenther@suse.de>
28894
28895 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28896 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28897
28898 2019-04-24 Jeff Law <law@redhat.com>
28899
28900 PR tree-optimization/90037
28901 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28902 * passes.def: Replace all instance of phi-only cprop with the
28903 lattice propagator. Move propagation pass from after erroneous
28904 path isolation to before erroneous path isolation.
28905 * tree-ssa-phionlycprop.c: Remove.
28906
28907 2019-04-24 Richard Biener <rguenther@suse.de>
28908
28909 PR middle-end/90213
28910 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28911 by size and BITS_PER_UNIT on poly-wide-ints.
28912
28913 2019-04-25 Richard Biener <rguenther@suse.de>
28914
28915 PR middle-end/90194
28916 * match.pd: Add pattern to simplify view-conversion of an
28917 empty constructor.
28918
28919 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28920
28921 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28922 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28923 for Go on 32 bit AIX.
28924 * config/rs6000/aix72.h: Likewise.
28925
28926 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28927
28928 PR target/90193
28929 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28930 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28931
28932 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28933
28934 PR target/89952
28935 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28936 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28937 for restored hard frame pointer.
28938 (s390_sched_dependencies_evaluation): Implement new target hook.
28939 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28940
28941 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28942
28943 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28944 * config/arc/arc.c (arc_init): Cleanup warning message.
28945 (arc_override_options): Likewise.
28946
28947 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28948
28949 PR target/90187
28950 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28951 a register if both if_true and if_false are MEMs.
28952
28953 PR tree-optimization/90208
28954 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28955 after labels of new_bb, not before them.
28956
28957 PR tree-optimization/90211
28958 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28959 which are not SSA_NAMEs.
28960
28961 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28962
28963 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28964 AArch64.
28965 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28966
28967 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28968
28969 PR rtl-optimization/87979
28970 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28971 not equal zero.
28972
28973 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28974
28975 PR rtl-optimization/84032
28976 * modulo-sched.c (ps_insn_find_column): Change condition so that
28977 branch will always be the last insn in a row inside partial
28978 schedule.
28979
28980 2019-04-23 Richard Biener <rguenther@suse.de>
28981
28982 PR debug/90131
28983 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28984 dest_single_pred_p argument.
28985 (remove_forwarder_block): Adjust.
28986 (remove_forwarder_block_with_phi): Likewise.
28987
28988 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28989 Bernd Edlinger <bernd.edlinger@hotmail.de>
28990 Jakub Jelinek <jakub@redhat.com>
28991
28992 PR target/89093
28993 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28994 if used with general-regs-only.
28995 (arm_conditional_register_usage): Don't add non-general regs if
28996 general-regs-only.
28997 (arm_valid_target_attribute_rec): Handle general-regs-only.
28998 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28999 general-regs-only.
29000 (TARGET_HARD_FLOAT_SUB): Define.
29001 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
29002 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
29003 (TARGET_REALLY_IWMMXT2): Likewise.
29004 * config/arm/arm.opt: Add -mgeneral-regs-only.
29005 * doc/extend.texi: Document ARM general-regs-only target.
29006 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
29007
29008 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29009
29010 PR tree-optimization/90078
29011 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
29012 checks for infinite_cost overflow.
29013
29014 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29015
29016 PR tree-optimization/90021
29017 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
29018 and check univariate against it.
29019 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
29020 * tree-data-ref.c (add_other_self_distances): Pass new argument.
29021
29022 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
29023
29024 PR target/90178
29025 Revert:
29026 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
29027
29028 Revert the revert:
29029 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
29030
29031 Revert:
29032 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
29033
29034 * lra-spills.c (lra_final_code_change): Remove useless move insns.
29035
29036 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
29037
29038 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
29039 names using operand format, rather than hard-wired.
29040 (speculation_barrier): Likewise.
29041
29042 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
29043
29044 PR tree-optimization/88055
29045 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
29046 (gen_one_condition): Use it if !HONOR_NANS.
29047
29048 2019-04-19 Jakub Jelinek <jakub@redhat.com>
29049
29050 PR middle-end/90139
29051 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
29052 assign_temp instead of gen_reg_rtx.
29053
29054 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
29055
29056 PR translation/90118
29057 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29058 Add missing space before %<.
29059
29060 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
29061
29062 PR rtl-optimization/87871
29063 * ira-lives.c (make_object_dead): Don't add conflicts to
29064 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
29065
29066 2019-04-18 Martin Sebor <msebor@redhat.com>
29067
29068 PR middle-end/89797
29069 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
29070 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
29071 assuming type size fits in SHWI.
29072
29073 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
29074
29075 PR ipa/85051
29076 * ipa-inline.c (flatten_function): New parameter UPDATE.
29077 (ipa_inline, early_inliner): Use it.
29078
29079 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29080
29081 * fold-const.c (int_const_binop): Return early on failure.
29082
29083 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29084
29085 PR middle-end/85164
29086 * combine.c (force_int_to_mode): Cast the argument rather than
29087 the result of known_alignment.
29088 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
29089
29090 2019-04-18 Richard Biener <rguenther@suse.de>
29091
29092 PR debug/90131
29093 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
29094 out from ...
29095 (remove_forwarder_block): ... here.
29096 (remove_forwarder_block_with_phi): Also move debug stmts here.
29097
29098 2019-04-18 Jakub Jelinek <jakub@redhat.com>
29099
29100 PR translation/79183
29101 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
29102 inform where appropriate.
29103
29104 2019-04-18 Richard Biener <rguenther@suse.de>
29105
29106 * tree.c (get_qualified_type): Put found type variants at the
29107 head of the variant list.
29108
29109 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29110
29111 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
29112
29113 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
29114
29115 PR target/90125
29116 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
29117 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
29118 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
29119 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
29120 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
29121
29122 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
29123
29124 * ira-conflicts.c (print_allocno_conflicts): Always print something,
29125 even for allocno's with no conflicts.
29126 (print_conflicts): Print an extra newline.
29127
29128 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29129
29130 * auto-inc-dec.c (attempt_change): Set the alignment of the
29131 temporary memory to that of the original.
29132
29133 2019-04-17 Joao Moreira <jmoreira@suse.de>
29134
29135 * targhooks.c (default_print_patchable_function_entry): Emit
29136 __patchable_function_entries section with writable flags to allow
29137 relocation resolution.
29138
29139 2019-04-17 Jonny Grant <jg@jguk.org>
29140
29141 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
29142
29143 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29144
29145 PR middle-end/90095
29146 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
29147 on lowpart SUBREGs.
29148
29149 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
29150
29151 * config/arc/arc.c (arc_init): Format diagnostic string.
29152 (arc_override_options): Likewise.
29153 (check_if_valid_regno_const): Likewise.
29154 (arc_reorg): Likewise.
29155
29156 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29157
29158 PR target/17108
29159 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
29160 name.
29161 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
29162 name.
29163 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
29164 (*movdi_update1): Use Pmode.
29165 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
29166 (movdi_<mode>_update_stack): Rename to ...
29167 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
29168 use Pmode.
29169 (*movsi_update1): Use Pmode.
29170 (*movsi_update2): Use Pmode.
29171 (movsi_update): Rename to ...
29172 (movsi_<mode>_update): ... this. Use Pmode.
29173 (movsi_update_stack): Fix condition.
29174 (*movhi_update1): Use Pmode. Fix argument to
29175 avoiding_indexed_address_p.
29176 (*movhi_update2): Ditto.
29177 (*movhi_update3): Ditto.
29178 (*movhi_update4): Ditto.
29179 (*movqi_update1): Ditto.
29180 (*movqi_update2): Ditto.
29181 (*movqi_update3): Ditto.
29182 (*movsf_update1, *movdf_update1): Merge, rename to...
29183 (*mov<mode>_update1): This. Use Pmode. Fix argument to
29184 avoiding_indexed_address_p. Add "size" attribute.
29185 (*movsf_update2, *movdf_update2): Merge, rename to...
29186 (*mov<mode>_update2): This. Ditto.
29187 (*movsf_update3): Use Pmode. Fix argument to
29188 avoiding_indexed_address_p.
29189 (*movsf_update4): Ditto.
29190 (allocate_stack): Simplify condition. Adjust pattern names.
29191
29192 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29193
29194 PR target/89093
29195 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
29196 whitespace at the start of target attribute string.
29197
29198 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
29199
29200 PR target/84369
29201 * config/rs6000/power9.md: Add store forwarding bypass.
29202
29203 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
29204
29205 PR debug/89528
29206 * valtrack.c (dead_debug_insert_temp): Reset debug references
29207 to the return value of a call being removed.
29208
29209 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29210
29211 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
29212 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
29213 implement target hook.
29214 (arc_memory_move_cost): New function.
29215 (TARGET_REGISTER_MOVE_COST): Define.
29216 (TARGET_MEMORY_MOVE_COST): Likewise.
29217 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
29218 (MEMORY_MOVE_COST): Likewise.
29219
29220 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29221
29222 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
29223 (sibcall_value_insn): Likewise.
29224 * config/arc/constraints.md (Rs5): Remove.
29225
29226 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29227
29228 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
29229 for last two fake registers.
29230 (arc_conditional_register_usage): Make sure fake frame and arg
29231 pointer regs are in general regs class.
29232 (FRAME_POINTER_MASK): Remove.
29233 (RETURN_ADDR_MASK): Remove.
29234 (arc_must_save_register): Use hard frame regnum.
29235 (frame_restore_reg): Use hard_frame_pointer_rtx.
29236 (arc_save_callee_saves): Likewise.
29237 (arc_restore_callee_saves): Likewise.
29238 (arc_save_callee_enter): Likewise.
29239 (arc_restore_callee_leave): Likewise.
29240 (arc_save_callee_milli): Likewise.
29241 (arc_eh_return_address_location): Likewise.
29242 (arc_check_multi): Use hard frame regnum.
29243 (arc_can_eliminate): Likewise.
29244 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
29245 for register allocator.
29246 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
29247 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
29248 (FRAME_POINTER_REGNUM): Change it to a fake register.
29249 (HARD_FRAME_POINTER_REGNUM): Defined.
29250 (ARG_POINTER_REGNUM): Change it to a new fake register.
29251 (ELIMINABLE_REGS): Update.
29252 (REGISTER_NAMES): Update names.
29253 * config/arc/arc.md (LP_START): Remove.
29254 (LP_END): Likewise.
29255 (shift_si3_loop): Update pattern.
29256
29257 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29258
29259 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
29260 to avoid delay slot scheduling.
29261 (arc_must_save_register): Don't save SP.
29262 * config/arc/arc.md (stack_tie): Remove.
29263 (UNSPEC_ARC_STKTIE): Likewise.
29264
29265 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
29266 Shiva Chen <shiva0217@gmail.com>
29267
29268 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
29269 code gen with large shift amount.
29270
29271 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
29272
29273 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
29274 subreg.
29275
29276 2019-04-16 Jakub Jelinek <jakub@redhat.com>
29277
29278 PR target/90096
29279 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
29280 print -m64/-mx32/-m32 if it is true.
29281 (ix86_debug_options, ix86_function_specific_print): Pass true as
29282 ADD_ABI_P to ix86_target_string.
29283 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
29284 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
29285 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
29286
29287 PR rtl-optimization/90082
29288 * dce.c (can_delete_call): New function.
29289 (deletable_insn_p, mark_insn): Use it.
29290
29291 PR tree-optimization/90090
29292 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
29293 throw internally.
29294 (is_division_by_square): Likewise. Formatting fix.
29295
29296 2019-04-16 Richard Biener <rguenther@suse.de>
29297
29298 PR tree-optimization/56049
29299 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
29300 equality check if alias-set zero will prevail.
29301
29302 2019-04-15 Jeff Law <law@redhat.com>
29303
29304 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
29305 size and alignment as unsigned.
29306
29307 2019-04-15 Richard Biener <rguenther@suse.de>
29308
29309 PR debug/90074
29310 * tree-loop-distribution.c (destroy_loop): Preserve correct
29311 debug info.
29312
29313 2019-04-15 Richard Biener <rguenther@suse.de>
29314
29315 PR tree-optimization/90071
29316 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
29317 abnormal operands from def stmts.
29318
29319 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
29320
29321 PR rtl-optimization/89794
29322 * combine.c (count_auto_inc): New function.
29323 (try_combine): Count how many auto_inc expressions there were in the
29324 original instructions. Ensure we have the same number in the new
29325 instructions. Remove the code that tried to ensure auto_inc side
29326 effects on i1 and i0 are not lost.
29327
29328 2019-04-15 Richard Biener <rguenther@suse.de>
29329
29330 PR ipa/88936
29331 * tree.h (auto_var_p): Declare.
29332 * tree.c (auto_var_p): New function, split out from ...
29333 (auto_var_in_fn_p): ... here.
29334 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
29335 member.
29336 (new_var_info): Initialize it.
29337 (set_uids_in_ptset): Also set the shadow variable uid if required.
29338 (ipa_pta_execute): Postprocess points-to solutions assigning
29339 shadow variable uids for locals that may reach their containing
29340 function recursively.
29341 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
29342 assert but instead check whether the points-to solution is
29343 a singleton.
29344
29345 2019-04-15 Martin Jambor <mjambor@suse.cz>
29346
29347 PR ipa/pr89693
29348 * cgraph.c (clone_of_p): Loop over clone chain for each step in
29349 the thunk chain.
29350
29351 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29352
29353 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
29354
29355 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29356 Kito Cheng <kito.cheng@gmail.com>
29357 Shiva Chen <shiva0217@gmail.com>
29358
29359 * config/nds32/nds32-md-auxiliary.c
29360 (nds32_legitimize_pic_address): Use new PIC pattern.
29361 (nds32_legitimize_tls_address): Use new TLS pattern.
29362 (nds32_output_symrel): New.
29363 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
29364 (nds32_alloc_relax_group_id): Ditto.
29365 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
29366 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
29367 relax_group_id.
29368 (nds32_group_tls_insn): Ditto.
29369 (nds32_group_float_insns): Ditto.
29370 * config/nds32/nds32.md (tls_le): New.
29371 (sym_got): Ditto.
29372
29373 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
29374
29375 * configure: Add nds32 target for dwarf2 debug_line checking.
29376 * configure.ac: Regenerated.
29377
29378 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
29379
29380 PR lto/89358
29381 * ipa-devirt.c (skip_in_fields_list_p): New.
29382 (odr_types_equivalent_p): Use it.
29383
29384 2019-04-13 Jakub Jelinek <jakub@redhat.com>
29385
29386 PR target/89093
29387 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29388 instead of strncmp when checking for thumb and arm. Formatting fixes.
29389
29390 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
29391
29392 * doc/install.texi: Document --with-target-system-zlib.
29393
29394 2019-04-12 Martin Sebor <msebor@redhat.com>
29395
29396 PR c/88383
29397 PR c/89288
29398 PR c/89798
29399 PR c/89797
29400 * targhooks.c (default_vector_alignment): Avoid assuming
29401 argument fits in SHWI.
29402 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29403 a shift expression.
29404 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29405
29406 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29407
29408 PR rtl-optimization/89965
29409 * dce.c: Include rtl-iter.h.
29410 (struct check_argument_load_data): New type.
29411 (check_argument_load): New function.
29412 (find_call_stack_args): Check for loads from stack slots still tracked
29413 in sp_bytes and punt if any is found.
29414
29415 * config/mips/loongson-mmiintrin.h: Fix up #error message.
29416
29417 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
29418
29419 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29420 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29421
29422 2019-04-12 Martin Liska <mliska@suse.cz>
29423
29424 PR middle-end/89970
29425 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29426 in error message.
29427 (separate_attrs): Handle multiple 'default's.
29428 (expand_target_clones): Rework error handling code.
29429
29430 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
29431
29432 PR target/87532
29433 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29434 mode of vector rather than mode of destination for move instruction.
29435 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29436 Use QI inner mode with V16QI vector mode.
29437
29438 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29439
29440 PR target/52726
29441 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29442 "invalid %%t operand" in output_operand_lossage message.
29443
29444 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
29445
29446 * config/s390/predicates.md (permute_pattern_operand): New
29447 predicate.
29448 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29449 operand for the permute pattern.
29450 ("*vec_perm<mode>"): New insn definition.
29451 ("bswap<mode>"): Generate the permute pattern operand in the
29452 expander and perform the operand reloads for pre arch13 level
29453 already.
29454 ("*bswap<mode>_emu"): Rename to ...
29455 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29456 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29457 Add the USE operand for the permute pattern.
29458 ("*vec_set_bswap_vec<mode>"): Likewise.
29459
29460 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29461
29462 PR c/89946
29463 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29464 and gcc_unreachable if it fails, just call tree_to_uhwi which
29465 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29466 Start warning message with a lower-case letter. Formatting fixes.
29467
29468 PR rtl-optimization/90026
29469 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29470 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29471 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29472 in cfglayout mode, use emit_barrier_after_bb.
29473
29474 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29475
29476 PR rtl-optimization/87763
29477 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29478 New Instruction.
29479
29480 2019-04-11 Tom de Vries <tdevries@suse.de>
29481
29482 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29483 max macro using statement expression.
29484
29485 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29486
29487 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29488 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29489 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29490 read_only_private_data_section using xcoff_private_rodata_section_name.
29491 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29492
29493 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29494
29495 PR target/90016
29496 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29497
29498 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29499
29500 PR rtl-optimization/89965
29501 * dce.c (sp_based_mem_offset): New function.
29502 (find_call_stack_args): Use sp_based_mem_offset.
29503
29504 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29505
29506 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29507
29508 2019-04-11 Richard Biener <rguenther@suse.de>
29509
29510 PR tree-optimization/90020
29511 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29512 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29513 * tree-ssa-pre.c (compute_avail): Use it to not put
29514 possibly trapping references after a call that might not
29515 return into EXP_GEN.
29516 * gcse.c (compute_hash_table_work): Do not elide
29517 marking a block containing a call if the call might not
29518 return.
29519
29520 2019-04-11 Richard Biener <rguenther@suse.de>
29521
29522 PR tree-optimization/90018
29523 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29524 Test both SLP and interleaving variants.
29525
29526 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29527
29528 * config/s390/8561.md: New file.
29529 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29530 Add arch13 cpu model.
29531 * config/s390/s390-opts.h (enum processor_type): Likewise.
29532 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29533 (s390_get_unit_mask): Likewise.
29534 (s390_is_fpd): Likewise.
29535 (s390_is_fxd): Likewise.
29536 * config/s390/s390.h (s390_tune_attr): Likewise.
29537 * config/s390/s390.md: Include arch13 pipeline description.
29538 * config/s390/s390.opt: Add arch13.
29539
29540 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29541
29542 PR rtl-optimization/87763
29543 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29544 New prototype.
29545 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29546 New function.
29547 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29548 New instruction.
29549 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29550 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29551 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29552 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29553
29554 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29555
29556 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29557 "Although" in -fipa-icf documentation.
29558
29559 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29560 of using multiple -g options.
29561
29562 2019-04-10 Martin Liska <mliska@suse.cz>
29563
29564 PR gcov-profile/89959
29565 * doc/gcov.texi: Make documentation of -x option
29566 more precise.
29567
29568 2019-04-10 Richard Biener <rguenther@suse.de>
29569
29570 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29571 member.
29572 (DR_GROUP_SAME_DR_STMT): Remove.
29573 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29574 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29575 replace with assert.
29576 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29577 (vect_record_grouped_load_vectors): Remove unreachable code.
29578
29579 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29580
29581 PR target/90016
29582 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29583 obsolete reference to N.
29584
29585 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29586
29587 PR middle-end/90025
29588 * expr.c (store_expr): Set properly size on the MEM passed to
29589 clear_storage.
29590
29591 PR c++/90010
29592 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29593 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29594 translation is needed, and when translation is needed, only append
29595 ... if the string length is hostsz or more bytes long. Avoid using
29596 strncpy or strcat.
29597
29598 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29599
29600 PR target/90024
29601 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29602 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29603 into three.
29604 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29605 differences directly.
29606 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29607
29608 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29609
29610 PR translation/90011
29611 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29612 from diagnostics.
29613 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29614 diagnostics.
29615 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29616 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29617 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29618 trailing space from -gsplit-dwarf diagnostics.
29619
29620 PR tree-optimization/89998
29621 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29622 instead of integer_type_node if possible, don't add ranges if return
29623 type is not compatible with int.
29624 * gimple-fold.c (gimple_fold_builtin_sprintf,
29625 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29626 integer_type_node.
29627
29628 2019-04-09 Martin Liska <mliska@suse.cz>
29629
29630 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29631 * doc/install.texi: Document the new config.
29632
29633 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29634
29635 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29636 use gimple_expr_type for load and store calls. Skip over the
29637 condition argument in a conditional internal function.
29638 Protect use of TREE_INT_CST_LOW.
29639
29640 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29641
29642 PR target/90015
29643 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29644 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29645 trailing period from it too.
29646
29647 2019-04-08 wu yuan <wuyuan5@huawei.com>
29648
29649 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29650 * config/aarch64/aarch64.md: Add "tsv110.md".
29651 * config/aarch64/tsv110.md: New file.
29652
29653 2019-04-08 Richard Biener <rguenther@suse.de>
29654
29655 PR tree-optimization/90006
29656 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29657 calls like lrint.
29658
29659 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29660
29661 PR target/83033
29662 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29663 construction.
29664 (fma_root_node): Likewise.
29665 (func_fma_steering): Likewise.
29666
29667 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29668
29669 PR rtl-optimization/89865
29670 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29671
29672 PR rtl-optimization/89865
29673 * config/i386/i386.md
29674 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29675 numbers not to clash with the additional operands[4].
29676 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29677 with extra register copy in the middle.
29678
29679 2019-04-08 Martin Liska <mliska@suse.cz>
29680
29681 PR gcov-profile/89961
29682 * doc/gcov.texi: Document data_file.
29683 * gcov.c (generate_results): Add data_info into JSON output.
29684
29685 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29686
29687 PR tree-optimization/89725
29688 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29689 loop's chrec as invariant symbol.
29690 * tree-chrec.h (chrec_contains_symbols): New parameter.
29691 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29692 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29693 function of loops not in DDR's loop_nest.
29694 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29695
29696 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29697
29698 PR target/89623
29699 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29700 Mask.
29701
29702 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29703
29704 PR target/89945
29705 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29706 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29707
29708 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29709
29710 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29711 targetm.fixed_condition_code_regs.
29712
29713 2019-04-05 Richard Biener <rguenther@suse.de>
29714
29715 PR debug/89892
29716 PR debug/89905
29717 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29718 debug bind stmts but reset them if they are not valid at the
29719 destination.
29720
29721 2019-04-05 Martin Liska <mliska@suse.cz>
29722
29723 PR translation/89936
29724 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29725 order to wrap keywords or arguments.
29726 * collect2.c (main): Likewise.
29727 (scan_prog_file): Likewise.
29728 (scan_libraries): Likewise.
29729 * common/config/riscv/riscv-common.c
29730 (riscv_subset_list::parsing_subset_version): Likewise.
29731 (riscv_subset_list::parse_std_ext): Likewise.
29732 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29733 Likewise.
29734 * config/arm/arm.c (arm_option_override): Likewise.
29735 * config/cris/cris.c (cris_print_operand): Likewise.
29736 * config/darwin-c.c (darwin_pragma_options): Likewise.
29737 (darwin_pragma_unused): Likewise.
29738 (darwin_pragma_ms_struct): Likewise.
29739 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29740 * config/i386/i386.c (print_reg): Likewise.
29741 (ix86_print_operand): Likewise.
29742 * config/i386/xm-djgpp.h: Likewise.
29743 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29744 * config/m32c/m32c.c (m32c_option_override): Likewise.
29745 * config/msp430/msp430.c (msp430_option_override): Likewise.
29746 * config/nds32/nds32.c (nds32_option_override): Likewise.
29747 * config/nvptx/mkoffload.c (main): Likewise.
29748 * config/rx/rx.c (rx_print_operand): Likewise.
29749 (valid_psw_flag): Likewise.
29750 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29751 (vms_pragma_nomember_alignment): Likewise.
29752 (vms_pragma_extern_model): Likewise.
29753 * lto-wrapper.c (compile_offload_image): Likewise.
29754 * omp-offload.c (oacc_parse_default_dims): Likewise.
29755 * symtab.c (symtab_node::verify_base): Likewise.
29756 * tlink.c (recompile_files): Likewise.
29757 (start_tweaking): Likewise.
29758 * tree-profile.c (parse_profile_filter): Likewise.
29759
29760 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29761
29762 PR tree-optimization/89956
29763 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29764 multiple negates of the same value.
29765
29766 2019-04-04 Martin Sebor <msebor@redhat.com>
29767
29768 PR middle-end/89957
29769 PR middle-end/89911
29770 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29771 have the same precision since the function crashes otherwise.
29772 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29773 has non-zero arguments.
29774
29775 2019-04-04 Martin Sebor <msebor@redhat.com>
29776
29777 PR middle-end/89934
29778 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29779 out if the number of arguments is less than expected.
29780
29781 2019-04-04 Jeff Law <law@redhat.com>
29782
29783 PR rtl-optimization/89399
29784 * ree.c (combine_set_extension): Use single_set rather than
29785 digging into PATTERN for items on the candidate list.
29786 (combine_reaching_defs): Likewise.
29787
29788 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29789
29790 PR rtl-optimization/46590
29791 * loop-invariant.c (find_defs): Move df_remove_problem and
29792 df_process_deferred_rescans to move_invariants.
29793 Move df_live_add_problem and df_live_set_all_dirty calls
29794 to move_invariants.
29795 (move_invariants): Likewise.
29796 (move_loop_invariants): Likewise, making the df_live calls
29797 conditional on -O. Remove the problem again if we added it
29798 locally.
29799
29800 2019-04-03 qing zhao <qing.zhao@oracle.com>
29801
29802 PR tree-optimization/89730
29803 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29804 -flive-patching=inline-only-static.
29805 (can_inline_edge_by_limits_p): Add the checking for
29806 -flive-patching=inline-only-static and grant always_inline
29807 even when -flive-patching=inline-only-static is specified.
29808
29809 2019-04-03 Jeff Law <law@redhat.com>
29810
29811 PR rtl-optimization/81025
29812 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29813
29814 2019-04-03 Richard Biener <rguenther@suse.de>
29815
29816 PR tree-optimization/84101
29817 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29818 regs.h for hard_regno_nregs.
29819 (cfun_returns): New helper.
29820 (vect_model_store_cost): When vectorizing a store to a decl
29821 we return and the function ABI returns in a multi-reg location
29822 account for the possible spilling that will happen.
29823
29824 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29825
29826 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29827 displacement addresses for vector mode operands.
29828
29829 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29830
29831 * config/arc/arc.c (GMASK_LEN): Define.
29832 (arc_restore_callee_saves): Restore first blink when
29833 !optimize_size.
29834
29835 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29836
29837 * doc/extend.texi: Add deprecated comment on sign-return-address
29838 function attribute and add mbranch-protection.
29839 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29840
29841 2019-04-03 Richard Biener <rguenther@suse.de>
29842
29843 PR lto/89896
29844 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29845 the all target phony.
29846
29847 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29848
29849 PR target/89902
29850 PR target/89903
29851 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29852 Return false for variable DImode shifts.
29853 (dimode_scalar_chain::compute_convert_gain): Do not handle
29854 register count operand in variable DImode shifts.
29855 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29856 count argument of a variable shift instruction to a vector register.
29857 (dimode_scalar_chain::convert_reg): Remove support to convert
29858 count argument of a variable shift instruction.
29859
29860 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29861
29862 PR rtl-optimization/84206
29863 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29864 iterating over loop headers.
29865
29866 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29867
29868 PR rtl-optimization/85876
29869 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29870 beyond the original fence.
29871
29872 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29873
29874 * config.gcc: Mark spu* targets as deprecated/obsolete.
29875
29876 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29877
29878 * config/s390/s390-builtin-types.def: New builtin function type
29879 definitions. Remove unused types.
29880 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29881 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29882 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29883 overloaded builtins.
29884 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29885 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29886 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29887 (vec_double, vec_signed, vec_unsigned): Define to use the new
29888 overloaded builtins.
29889 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29890 Remove expanders.
29891
29892 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29893
29894 * config/s390/s390-builtin-types.def: New builtin function type
29895 definitions.
29896 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29897 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29898 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29899 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29900 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29901 constant definitions.
29902 * config/s390/vecintrin.h (vec_search_string_cc)
29903 (vec_search_string_until_zero_cc): New builtin name definitions.
29904 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29905 expanders.
29906 ("vec_vstrs<mode>"): New insn definition.
29907
29908 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29909
29910 * config/s390/s390-builtin-types.def: Add new builtin function
29911 types.
29912 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29913 New overloaded builtins.
29914 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29915 s390_vsrd.
29916 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29917 (UNSPEC_VEC_SLDBYTE): ... this.
29918 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29919 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29920 definitions.
29921 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29922 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29923 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29924
29925 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29926
29927 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29928 New insn definition.
29929 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29930 * config/s390/vector.md (V_HW_HSD): ... here.
29931
29932 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29933
29934 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29935 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29936 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29937 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29938 New insn definitions.
29939
29940 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29941
29942 * config/s390/s390-builtin-types.def: Add new builtin function type.
29943 * config/s390/s390-builtins.def: Add overloaded builtin
29944 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29945 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29946 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29947 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29948 ("eltswap<mode>"): New expander.
29949 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29950 insn definitions.
29951
29952 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29953
29954 * config/s390/s390-builtin-types.def: Add new builtin function types.
29955 * config/s390/s390-builtins.def: Add overloaded builtin
29956 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29957 instructions.
29958 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29959 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29960 ("bswap<mode>"): New expander.
29961 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29962
29963 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29964
29965 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29966 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29967 vector builtin version number in __VEC__.
29968
29969 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29970
29971 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29972 iterators.
29973 (SFSI): New mode attribute.
29974 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29975 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29976 rename to ...
29977 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29978 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29979 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29980 ("floatsi<mode>2"): Add wcefb instruction.
29981
29982 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29983
29984 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29985 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29986 mode iterators.
29987 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29988 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29989 support 32 bit fp-int conversions. Rename to ...
29990 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29991 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29992 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29993 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29994 ... to these.
29995
29996 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29997
29998 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29999 if-then-else constructs if we can use the select instruction.
30000 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
30001
30002 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30003
30004 * config/s390/s390.md ("*popcountdi_arch13_cc")
30005 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
30006 definition.
30007 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
30008 Append _z196 to make it ...
30009 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
30010 ("popcounthi2_z196"): ... this.
30011 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
30012 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
30013
30014 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30015
30016 * config/s390/s390.c (s390_canonicalize_comparison): Convert
30017 certain compares for arch13 in order to make use of the condition
30018 code result produced by the new instructions.
30019 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
30020 nxrk, and nxgrk instruction patterns.
30021 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
30022 (inv_no): Add new code iterator together with some attributes.
30023 ("*andc_split_<mode>"): Disable splitter for arch13.
30024 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
30025 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
30026 ("*<ANDOR:bitops_name>c<GPR:mode>")
30027 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
30028 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
30029 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
30030 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
30031
30032 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30033
30034 * common/config/s390/s390-common.c (processor_flags_table): New
30035 entry for arch13.
30036 * config.gcc: Support arch13 with the --with-arch= configure flag.
30037 * config/s390/driver-native.c (s390_host_detect_local_cpu):
30038 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
30039 * config/s390/s390.c (s390_get_sched_attrmask)
30040 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
30041 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
30042 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
30043 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
30044 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
30045 definitions.
30046 * config/s390/s390.opt: Support arch13 as processor type in
30047 command line options.
30048
30049 2019-04-02 Martin Liska <mliska@suse.cz>
30050
30051 PR translation/89912
30052 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
30053 Fix param description of graphite-max-arrays-per-scop.
30054
30055 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
30056
30057 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
30058 (ASAN_CC1_SPEC): Use it in 64-bit mode.
30059 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
30060
30061 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30062
30063 PR rtl-optimization/85412
30064 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
30065 sel_sched_region_1, not after.
30066
30067 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30068
30069 PR rtl-optimization/86928
30070 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
30071 compute_live if necessary.
30072 (sel_redirect_edge_and_branch): Likewise.
30073
30074 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
30075
30076 PR rtl-optimization/89865
30077 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
30078 register if it is a part of small class.
30079
30080 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30081
30082 PR rtl-optimization/87273
30083 * sel-sched-ir.c (merge_fences): Remove assert.
30084
30085 2019-04-01 Richard Biener <rguenther@suse.de>
30086
30087 PR tree-optimization/46590
30088 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
30089 (dom_walker::m_reachability): Add in place of...
30090 (dom_walker::m_skip_unreachable_blocks): ...this.
30091 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
30092 Move complex initialization ...
30093 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
30094 lazily and initialize edge flags on each invocation.
30095 (dom_walker::bb_reachable): Use m_reachability.
30096
30097 2019-04-01 Martin Liska <mliska@suse.cz>
30098
30099 PR driver/89861
30100 * opt-suggestions.c (option_proposer::build_option_suggestions):
30101 Add variant without any argument in order to provide better
30102 hints.
30103
30104 2019-04-01 Richard Biener <rguenther@suse.de>
30105
30106 PR c/71598
30107 * gimple.c: Include langhooks.h.
30108 (gimple_get_alias_set): Treat enumeral types as the underlying
30109 integer type.
30110
30111 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
30112 Eric Botcazou <ebotcazou@adacore.com>
30113
30114 PR rtl-optimization/89862
30115 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
30116 that operates on the full registers for WORD_REGISTER_OPERATIONS
30117 architectures.
30118
30119 2019-03-29 Jim Wilson <jimw@sifive.com>
30120
30121 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
30122 Clear MASK_RVC and then set if C subset supported.
30123
30124 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30125
30126 PR c/89872
30127 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
30128 non-addressable complit into its initializer if it is volatile.
30129
30130 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
30131
30132 * opts-common.c (integral_argument): Set errno properly in one case.
30133
30134 2019-03-29 Martin Liska <mliska@suse.cz>
30135
30136 * doc/invoke.texi: Remove -Wchkp from documentation.
30137
30138 2019-03-29 Martin Liska <mliska@suse.cz>
30139
30140 * dbgcnt.c (print_limit_reach): New function.
30141 (dbg_cnt): Use it.
30142
30143 2019-03-29 Martin Liska <mliska@suse.cz>
30144
30145 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
30146 (dbg_cnt_process_opt): Parse first tokens aas
30147 dbg_cnt_process_single_pair is also using strtok.
30148
30149 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30150
30151 PR rtl-optimization/87485
30152 * function.c (expand_function_end): Move stack_protect_epilogue
30153 before loading of return value into hard register(s).
30154
30155 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30156
30157 PR middle-end/89621
30158 * tree-inline.h (struct copy_body_data): Add
30159 dont_remap_vla_if_no_change flag.
30160 * tree-inline.c (remap_type_3, remap_type_2): New functions.
30161 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
30162 and remap_type_2 returns false.
30163 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
30164 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
30165 only from where it is copied to nested contexts.
30166
30167 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30168
30169 PR target/89865
30170 * config/i386/i386.md (RMW operation with LEA peephole):
30171 Use LEAMODE mode attribute instead of SWI mode iterator for
30172 LEA pattern.
30173
30174 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30175
30176 PR target/89848
30177 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
30178 Also process XEXP (src, 0) of a shift insn.
30179
30180 2019-03-28 David Malcolm <dmalcolm@redhat.com>
30181
30182 PR middle-end/89725
30183 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
30184 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
30185
30186 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30187
30188 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
30189 test.
30190 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
30191 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
30192 immediately after first one with df_analyze in between, but rather
30193 process all bbs, queueing ones that need second pass in a worklist,
30194 df_analyze, process queued debug insn changes and if second pass is
30195 needed, process bbs from worklist, df_analyze, process queued debug
30196 insns again.
30197
30198 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
30199 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
30200 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
30201
30202 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
30203
30204 PR c/79022
30205 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
30206 definition.
30207
30208 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
30209
30210 PR target/85667
30211 * config/i386/i386.c (ix86_function_value_1): Call the newly added
30212 function for 32-bit MS_ABI.
30213 (function_value_ms_32): New function.
30214
30215 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
30216
30217 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
30218 (movdi): Call gen_movdi_symbol_save_scc.
30219 (gen_movdi_symbol_save_scc): New insn and split.
30220
30221 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
30222
30223 PR rtl-optimization/89313
30224 * function.c (matching_constraint_num): New static function.
30225 (match_asm_constraints_1): Use it. Fixup white space and comment.
30226 Don't replace inputs with non-matching constraints which conflict
30227 with early clobber outputs.
30228
30229 2019-03-27 Jeff Law <law@redhat.com>
30230
30231 PR rtl-optimization/87761
30232 PR rtl-optimization/89826
30233 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
30234 slightly later.
30235 (pass_cprop_hardreg::execute): Call df_analyze after adding the
30236 note problem to get REG_DEAD/REG_UNUSED notes updated.
30237
30238 2019-03-27 Richard Biener <rguenther@suse.de>
30239
30240 PR tree-optimization/89463
30241 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
30242 queue edges to remove.
30243 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
30244 dead stmts. Delay edge removal until PHIs are removed to
30245 make debug-stmt creation not confused by seemingly degenerate
30246 PHIs.
30247
30248 2019-03-27 Alan Modra <amodra@gmail.com>
30249
30250 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
30251 throughout file.
30252 * config/rs6000/darwin.h: Likewise.
30253 * config/rs6000/rs6000.c: Likewise.
30254
30255 2019-03-27 Alan Modra <amodra@gmail.com>
30256
30257 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
30258 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
30259
30260 2019-03-26 Andrew Waterman <andrew@sifive.com>
30261 Jim Wilson <jimw@sifive.com>
30262
30263 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
30264 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
30265 (generic_idivdi, generic_fmul_single, generic_fmul_double)
30266 (generic_fdiv, generic_fsqrt): Add check for generic tune.
30267 (generic_alu): Add auipc to type list.
30268 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
30269 (riscv_microarchitecture): Declare.
30270 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
30271 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
30272 field.
30273 (riscv_microarchitecture): New.
30274 (sifive_7_tune_info): New.
30275 (riscv_cpu_info_table): Add microarchitecture value for rocket and
30276 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
30277 entries.
30278 (riscv_store_data_bypass_p): New.
30279 (riscv_option_override): Set riscv_microarchitecture from
30280 cpu->microarchitecture.
30281 * config/riscv/riscv.md: Include sifive-7.md.
30282 (type): Add auipc.
30283 (tune): New.
30284 (auipc<mode>): Change type to auipc.
30285 (restore_stack_nonlocal): New.
30286 * config/riscv/sifive-7.md: New.
30287 * doc/invoke.texi (RISC-V Options): Update mtune docs.
30288
30289 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
30290
30291 PR target/89827
30292 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
30293 Also process XEXP (src, 0) of a shift insn.
30294
30295 2019-03-26 Richard Biener <rguenther@suse.de>
30296
30297 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
30298 (copy_debug_stmt): Likewise.
30299 (expand_call_inline): Likewise.
30300 (copy_bb): Avoid redundant lookup & set of gimple_block.
30301 * gimple-low.c (lower_gimple_return): Likewise.
30302 (lower_builtin_setjmp): Likewise.
30303
30304 2019-03-26 Jakub Jelinek <jakub@redhat.com>
30305
30306 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
30307 is constant 0, turn into static const data member initialized to false.
30308 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
30309 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
30310
30311 2019-03-26 Jason Merrill <jason@redhat.com>
30312 Jakub Jelinek <jakub@redhat.com>
30313
30314 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
30315 method.
30316 (mem_alloc_description::release_object_overhead): Fix comment typos.
30317 * hash-table.h (hash_table::~hash_table): Call
30318 release_instance_overhead only if m_entries is non-NULL, otherwise
30319 call unregister_descriptor.
30320
30321 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
30322
30323 PR tree-optimization/81740
30324 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30325 In case of outer loop vectorization, check for backward dependence
30326 at the inner loop if outer loop dependence is reversed.
30327
30328 2019-03-26 Alan Modra <amodra@gmail.com>
30329
30330 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
30331 rs6000_vector_mem init. Correct wI and wJ comment.
30332
30333 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
30334
30335 PR rtl-optimization/88347
30336 PR rtl-optimization/88423
30337 * sched-deps.c (sched_analyze_insn): Take into account that for
30338 tablejumps the barrier appears after a label and a jump_table_data.
30339
30340 2019-03-25 Martin Sebor <msebor@redhat.com>
30341
30342 PR c/89812
30343 * c-common.c (check_user_alignment): Rename local. Correct maximum
30344 alignment in diagnostic. Avoid assuming argument fits in SHWI,
30345 convert it to UHWI when it fits.
30346
30347 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
30348
30349 PR debug/86964
30350 * dwarf2out.c (premark_used_variables): New function.
30351 (prune_unused_types_walk): Do not mark not premarked external
30352 variables.
30353 (prune_unused_types): Call premark_used_variables.
30354
30355 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
30356
30357 PR rtl-optimization/89676
30358 * lra-constraints.c (curr_insn_transform): Do match reload for
30359 early clobbers when the match was successful only for different
30360 registers.
30361
30362 2019-03-25 Martin Sebor <msebor@redhat.com>
30363
30364 * doc/extend.texi (Common Type Attributes): Document vector_size.
30365 (Common Variable Attributes): Mention size constraint. Correct
30366 quoting and typos.
30367 (Vector Extensions): Use @dfn when defining bas type. Clarify
30368 base type and size constraints.
30369
30370 2019-03-25 Richard Biener <rguenther@suse.de>
30371
30372 PR tree-optimization/89789
30373 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
30374 changes from non-undefined back to undefined.
30375
30376 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
30377
30378 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
30379 heap string and a gc string, but since this variable is unknown to
30380 ggc the gc string might get reused and corrupted. Fixed by always
30381 using a heap string.
30382
30383 2019-03-25 Richard Biener <rguenther@suse.de>
30384
30385 PR tree-optimization/89779
30386 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30387 to remove IV defs, delay actual removal.
30388 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
30389 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30390 very end, properly also reset loop control IV information.
30391
30392 2019-03-25 Richard Biener <rguenther@suse.de>
30393
30394 PR tree-optimization/89802
30395 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30396 move EH data to folded stmt.
30397
30398 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30399
30400 * config/s390/s390-builtin-types.def: Remove few unused types and
30401 fix sort order for others.
30402
30403 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30404
30405 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30406 expected and found types with -mdebug during builtin matching.
30407
30408 2019-03-25 Richard Biener <rguenther@suse.de>
30409
30410 PR middle-end/89790
30411 * fold-const.c (operand_equal_p): Revert last change with
30412 updated comment.
30413
30414 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
30415
30416 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30417 notes for the result of the __tls_get_addr calls.
30418 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30419
30420 2019-03-24 Jeff Law <law@redhat.com>
30421
30422 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30423
30424 PR rtl-optimization/87761
30425 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30426 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
30427 as needed.
30428 (pass_cprop_hardreg::execute): Add df note problem and defer insn
30429 rescans. Reprocess blocks as needed, calling df_analyze before
30430 reprocessing. Always call df_analyze before fixing up debug bind
30431 insns.
30432
30433 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
30434
30435 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30436 big endian.
30437
30438 2019-03-22 Andrew Pinski <apinski@marvell.com>
30439
30440 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30441 attrribute for uxtw.
30442
30443 2019-03-26 Jeff Law <law@redhat.com>
30444
30445 PR rtl-optimization/87761
30446 * config/mips/mips-protos.h (mips_split_move): Add new argument.
30447 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30448 (mips_split_move): Accept new INSN argument. Try to forward SRC
30449 into the next instruction.
30450 (mips_split_move_insn): Pass INSN through to mips_split_move.
30451
30452 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
30453
30454 PR rtl-optimization/89676
30455 * lra-constraints.c (curr_insn_transform): Do match reload for
30456 early clobbers even if the match was successful.
30457
30458 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30459
30460 PR c++/87481
30461 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30462
30463 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30464
30465 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30466
30467 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30468
30469 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30470 <avx512>_fmsub_<mode>_mask3<round_name>,
30471 <avx512>_fnmadd_<mode>_mask3<round_name>,
30472 <avx512>_fnmsub_<mode>_mask3<round_name>,
30473 avx512f_vmfmadd_<mode>_mask3<round_name>,
30474 avx512f_vmfmsub_<mode>_mask3<round_name>,
30475 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30476 instead of register_operand and %v instead of v for match_operand 1.
30477 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30478 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30479 <round_nimm_predicate> instead of register_operand and %v instead of v
30480 for match_operand 1.
30481
30482 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30483 <avx512>_fmadd_<mode>_mask3<round_name>,
30484 <avx512>_fmsub_<mode>_mask<round_name>,
30485 <avx512>_fmsub_<mode>_mask3<round_name>,
30486 <avx512>_fnmadd_<mode>_mask<round_name>,
30487 <avx512>_fnmadd_<mode>_mask3<round_name>,
30488 <avx512>_fnmsub_<mode>_mask<round_name>,
30489 <avx512>_fnmsub_<mode>_mask3<round_name>,
30490 <avx512>_fmaddsub_<mode>_mask<round_name>,
30491 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30492 <avx512>_fmsubadd_<mode>_mask<round_name>,
30493 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30494 <round_nimm_predicate> instead of nonimmediate_operand.
30495 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30496 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30497 Use register_operand instead of <round_nimm_predicate> for the
30498 operand that needs to match output.
30499 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30500 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30501 Likewise. Formatting fixes.
30502
30503 PR target/89784
30504 * config/i386/i386.c (enum ix86_builtins): Remove
30505 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30506 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30507 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30508 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30509 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30510 __builtin_ia32_vfmsubss3_mask3): New builtins.
30511 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30512 avx512f_vmfmadd_<mode>_mask3<round_name>,
30513 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30514 *avx512f_vmfmsub_<mode>_mask<round_name>,
30515 avx512f_vmfmsub_<mode>_mask3<round_name>,
30516 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30517 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30518 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30519 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30520 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30521 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30522 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30523 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30524 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30525 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30526 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30527 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30528 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30529 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30530 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30531 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30532 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30533 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30534 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30535 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30536 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30537 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30538 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30539 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30540 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30541 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30542 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30543 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30544
30545 2019-03-21 Martin Sebor <msebor@redhat.com>
30546
30547 PR tree-optimization/89350
30548 * builtins.c (compute_objsize): Also ignore offsets whose upper
30549 bound is negative.
30550 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30551 (builtin_memref::builtin_memref): Initialize new member.
30552 Allow EXPR to be null.
30553 (builtin_memref::extend_offset_range): Replace local with a member.
30554 Avoid assuming pointer offsets are unsigned.
30555 (builtin_memref::set_base_and_offset): Determine base object
30556 before computing offset range.
30557 (builtin_access::builtin_access): Handle memset.
30558 (builtin_access::generic_overlap): Replace local with a member.
30559 (builtin_access::strcat_overlap): Same.
30560 (builtin_access::overlap): Same.
30561 (maybe_diag_overlap): Same.
30562 (maybe_diag_access_bounds): Same.
30563 (wrestrict_dom_walker::check_call): Handle memset.
30564 (check_bounds_or_overlap): Same.
30565
30566 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30567 Jakub Jelinek <jakub@redhat.com>
30568
30569 PR lto/89692
30570 * tree.c (fld_type_variant, fld_incomplete_type_of,
30571 fld_process_array_type): Call fld->pset.add and don't call
30572 add_tree_to_fld_list if it returns true.
30573 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30574 non-marked types from TYPE_NEXT_VARIANT list.
30575 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30576
30577 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30578
30579 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30580 to false, if true, don't alloc_entries during construction, but defer
30581 it to the first method that needs m_entries allocated.
30582 (hash_table::hash_table, hash_table::~hash_table,
30583 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30584 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30585 hash_table::clear_slot, hash_table::traverse_noresize,
30586 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30587 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30588 false.
30589 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30590 NO_INSERT instead of find_with_hash.
30591 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30592 hash_set::m_table): Add Lazy to template params of hash_table.
30593 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30594 * attribs.c (test_attribute_exclusions): Likewise.
30595 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30596 hash_set. Add tests for hash_set with Lazy = true.
30597
30598 2019-03-21 Richard Biener <rguenther@suse.de>
30599
30600 PR tree-optimization/89779
30601 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30602 checks with respect to released SSA names now having error_mark_node
30603 type.
30604 * fold-const.c (operand_equal_p): Likewise.
30605
30606 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30607
30608 PR target/89775
30609 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30610 available to ...
30611 (s390_optimize_register_info): Use global_not_special_regno_p to
30612 check for global regs.
30613
30614 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30615
30616 PR target/89752
30617 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30618 update this_alternative nor this_alternative_set.
30619
30620 2019-03-19 Jim Wilson <jimw@sifive.com>
30621
30622 PR target/89411
30623 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30624 align, size, offset. Use them to handle a BLKmode reference. Update
30625 comment.
30626 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30627
30628 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30629
30630 PR rtl-optimization/89768
30631 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30632 instead of GEN_INT.
30633 (unroll_loop_runtime_iterations): Likewise.
30634
30635 2019-03-19 Martin Sebor <msebor@redhat.com>
30636
30637 PR tree-optimization/89644
30638 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30639 rather than endptr as an indicator of nul-termination.
30640
30641 PR tree-optimization/89644
30642 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30643 arrays in determining sequence sizes in strncpy and stpncpy.
30644
30645 2019-03-19 Martin Liska <mliska@suse.cz>
30646
30647 PR middle-end/89737
30648 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30649 unlikely_edges if there's an edge that belongs to both these sets.
30650
30651 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30652
30653 PR target/89746
30654 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30655 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30656 go via a stack temporary.
30657
30658 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30659
30660 PR target/89378
30661 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30662 instead of gen_rtx_SUBREG.
30663 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30664
30665 2019-03-19 Richard Biener <rguenther@suse.de>
30666
30667 PR debug/88389
30668 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30669
30670 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30671
30672 PR lto/87809
30673 PR lto/89335
30674 * tree.c (free_lang_data_in_decl): Do not free context of C++
30675 destrutors.
30676
30677 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30678
30679 PR target/89506
30680 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30681 subs for the first alternative except when operands[3] is 1.
30682
30683 PR target/89752
30684 * gimplify.c (gimplify_asm_expr): For output argument with
30685 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30686 diagnose error.
30687
30688 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30689
30690 PR rtl-optimization/89753
30691 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30692 explicit unrolling factor even more robust.
30693
30694 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30695
30696 PR target/89726
30697 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30698 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30699 signed zeros, do another copysign after the compensation.
30700
30701 2019-03-18 Martin Sebor <msebor@redhat.com>
30702
30703 PR tree-optimization/89720
30704 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30705 more conservatively, the same as anti-range.
30706
30707 2019-03-18 Richard Biener <rguenther@suse.de>
30708
30709 PR middle-end/88945
30710 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30711 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30712 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30713 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30714
30715 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30716
30717 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30718 Extend queue to 1024 entries.
30719 Add "consumed" field.
30720 (gomp_print_output): Remove print_index parameter.
30721 Add final parameter.
30722 Change limit to unsigned.
30723 Use consumed field to implement circular buffer.
30724 Detect interrupted print in final pass.
30725 Flush output at the end.
30726 (run): Update gomp_print_output usage.
30727 (main): Initialize kernargs->output_data.consumed.
30728
30729 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30730
30731 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30732 calculation of the minimum number of scalar iterations for
30733 fully-predicated loops.
30734
30735 2019-03-18 Martin Jambor <mjambor@suse.cz>
30736
30737 PR tree-optimization/89546
30738 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30739 any propagation to its children took place.
30740
30741 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30742
30743 PR target/89627
30744 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30745 parameter, and make use of it.
30746 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30747
30748 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30749
30750 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30751 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30752 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30753 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30754 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30755 match what the ops is doing.
30756 (push_multi_fp_blink): Likewise.
30757 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30758 compiling for size and elf target.
30759 (arc_save_callee_enter): Adjust note to match what enter/leave
30760 operation does.
30761
30762 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30763
30764 * config/arc/arc.md (tst_movb): Fix constraint.
30765
30766 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30767
30768 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30769
30770 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30771
30772 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30773 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30774 reg_alloc_order references.
30775 (size_alloc_order): Define.
30776 (arc_adjust_reg_alloc_order): New function.
30777 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30778 order.
30779 (ADJUST_REG_ALLOC_ORDER): Define.
30780 (HONOR_REG_ALLOC_ORDER): Likewise.
30781
30782 2019-03-18 Richard Biener <rguenther@suse.de>
30783
30784 PR target/87561
30785 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30786 loads and stores a bit more.
30787
30788 2019-03-18 Richard Biener <rguenther@suse.de>
30789
30790 PR target/87561
30791 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30792 load pessimization to stores as well.
30793
30794 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30795
30796 PR middle-end/86979
30797 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30798 successor, use NULL as its av set.
30799
30800 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30801
30802 PR rtl-optimization/89721
30803 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30804
30805 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30806
30807 PR target/87532
30808 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30809 When handling vec_extract, use modular arithmetic to allow
30810 constant selectors greater than vector length.
30811 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30812 V1TImode vectors to have constant selector values greater than 0.
30813 Use modular arithmetic to compute vector index.
30814 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30815 index for in-memory vectors. Correct code generation for
30816 in-register vectors.
30817 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30818 compute index.
30819
30820 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30821
30822 PR c++/88534
30823 PR c++/88537
30824 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30825 VAR_DECL args.
30826
30827 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30828
30829 PR c++/89709
30830 * tree.c (inchash::add_expr): Strip any location wrappers.
30831 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30832 after hash verification.
30833
30834 PR debug/89704
30835 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30836 SIGN_EXTEND and ZERO_EXTEND.
30837
30838 2019-03-14 Jason Merrill <jason@redhat.com>
30839 Jakub Jelinek <jakub@redhat.com>
30840
30841 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30842 than if is_empty (*slot).
30843 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30844 existing elt and for elt removal.
30845 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30846 of already removed elt.
30847
30848 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30849
30850 PR target/89650
30851 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30852 REG_EH_REGION note.
30853
30854 2019-03-14 Martin Liska <mliska@suse.cz>
30855
30856 PR other/89712
30857 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30858
30859 2019-03-14 Richard Biener <rguenther@suse.de>
30860
30861 PR target/89711
30862 * config/i386/i386.c (make_resolver_func): Properly set
30863 DECL_CONTEXT on the RESULT_DECL.
30864 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30865
30866 2019-03-14 Richard Biener <rguenther@suse.de>
30867
30868 * gimple-pretty-print.c: Include cfgloop.h.
30869 (dump_gimple_phi): Adjust.
30870 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30871 (pp_cfg_jump): Adjust.
30872 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30873 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30874 (lower_phi_internal_fn): Remove.
30875 (verify_gimple_call): Remove IFN_PHI special-casing.
30876 (dump_function_to_file): Dump IL state.
30877 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30878 done to deal with PHI nodes being present in non-SSA state.
30879
30880 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30881
30882 PR ipa/89684
30883 * multiple_target.c (create_dispatcher_calls): Change
30884 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30885 In the node->iterate_referring loop, push *ref rather than ref, call
30886 ref->remove_reference () and always pass 0 to iterate_referring.
30887
30888 PR rtl-optimization/89679
30889 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30890 would contain a paradoxical SUBREG.
30891
30892 2019-03-14 Richard Biener <rguenther@suse.de>
30893
30894 PR tree-optimization/89710
30895 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30896 safe_dyn_cast.
30897
30898 2019-03-14 Martin Liska <mliska@suse.cz>
30899
30900 * coverage.c (coverage_begin_function): Stream also
30901 end_column.
30902 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30903 documentation about function declaration location.
30904 * gcov-dump.c (tag_function): Print whole range
30905 of function declaration.
30906 * gcov.c (struct function_info): Add end_column field.
30907 (function_info::function_info): Initialize it.
30908 (output_json_intermediate_file): Output {start,end}_column
30909 fields.
30910 (read_graph_file): Read end_column.
30911
30912 2019-03-14 Richard Biener <rguenther@suse.de>
30913
30914 PR middle-end/89698
30915 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30916 that the access types are similar.
30917
30918 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30919
30920 PR tree-optimization/89703
30921 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30922 aren't compatible also with builtin_decl_explicit. Check pure
30923 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30924 and BUILT_IN_STPNCPY{,_CHK}.
30925
30926 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30927
30928 PR target/89523
30929 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30930 addr32 prefix to VSIB address for X32.
30931 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30932 "%M2" to opcode.
30933 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30934 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30935 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30936 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30937 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30938 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30939 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30940 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30941 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30942 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30943 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30944 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30945 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30946 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30947 (*avx512f_scatterdi<mode>): Likewise.
30948
30949 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30950
30951 PR target/85860
30952 * lra-constraints.c (inherit_in_ebb): Update
30953 potential_reload_hard_regs along with live_hard_regs.
30954
30955 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30956
30957 PR debug/89498
30958 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30959 DWARF_OFFSET_SIZE.
30960 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30961
30962 2019-03-13 Martin Sebor <msebor@redhat.com>
30963
30964 PR tree-optimization/89662
30965 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30966 has a size.
30967
30968 2019-03-13 Richard Biener <rguenther@suse.de>
30969
30970 PR middle-end/89677
30971 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30972 throw FP expressions at tree-affine.
30973
30974 2019-03-14 Richard Biener <rguenther@suse.de>
30975
30976 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30977 dump negative integer constants using _Literal (type) -num.
30978
30979 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30980
30981 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30982 nonlocal_value member.
30983
30984 PR middle-end/88588
30985 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30986 (ipa_simd_modify_function_body): Handle PHIs.
30987
30988 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30989
30990 * config/s390/s390.c (s390_option_override_internal): Use more
30991 aggressive inlining parameters.
30992
30993 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30994
30995 * config/s390/3906.md: New file.
30996 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30997 (LONGRUNNING_THRESHOLD): Remove.
30998 (MAX_SCHED_MIX_SCORE): Decrease.
30999 (MAX_SCHED_MIX_DISTANCE): Decrease.
31000 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
31001 (struct s390_sched_state): New struct to hold scheduling state.
31002 (S390_SCHED_STATE_NORMAL): Remove.
31003 (S390_SCHED_STATE_CRACKED): Remove.
31004 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
31005 (s390_get_sched_attrmask): Use new attribute.
31006 (s390_get_unit_mask): Use new units.
31007 (s390_is_fpd): New function.
31008 (s390_is_fxd): New function.
31009 (s390_is_longrunning): New function.
31010 (s390_sched_score): Use new functions.
31011 (s390_sched_reorder): Likewise.
31012 (s390_sched_variable_issue): Rework and use new functions.
31013 (s390_sched_init): Use new functions.
31014 * config/s390/s390.h (s390_tune_attr): Add z14.
31015 * config/s390/s390.md: Add z14.
31016
31017 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31018
31019 * config/s390/2964.md: Update pipeline description.
31020 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31021 (LONGRUNNING_THRESHOLD): Remove.
31022 (LATENCY_FACTOR): Remove.
31023 (s390_get_unit_mask): Add unit.
31024 (s390_sched_score): Use fxd/fpd.
31025 (s390_sched_variable_issue): Use fxd/fpd.
31026
31027 2019-03-12 Martin Liska <mliska@suse.cz>
31028
31029 * config/i386/i386.c: Reword an error message.
31030
31031 2019-03-12 Martin Jambor <mjambor@suse.cz>
31032
31033 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
31034 terminate with newline.
31035
31036 2019-03-12 Jakub Jelinek <jakub@redhat.com>
31037
31038 PR target/52726
31039 * config/s390/s390.md (tabort): Use %wd instead of
31040 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
31041 letters and periods.
31042 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
31043 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
31044 's with %< and %>.
31045
31046 PR middle-end/89663
31047 * builtins.c (expand_builtin_int_roundingfn,
31048 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
31049 gcc_unreachable if validate_arglist fails.
31050
31051 2019-03-12 Richard Biener <rguenther@suse.de>
31052
31053 PR tree-optimization/89664
31054 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
31055 free the occurance tree after the early out.
31056
31057 2019-03-11 Jakub Jelinek <jakub@redhat.com>
31058
31059 PR middle-end/89655
31060 PR bootstrap/89656
31061 * vr-values.c (vr_values::update_value_range): If
31062 old_vr->varying_p (), don't update it, make new_vr also VARYING
31063 and return false.
31064
31065 2019-03-11 Martin Liska <mliska@suse.cz>
31066
31067 * config/aarch64/aarch64.c (aarch64_override_options_internal):
31068 Fix double string quoting.
31069
31070 2019-03-11 Martin Liska <mliska@suse.cz>
31071
31072 * collect-utils.c (collect_wait): Wrap apostrophes
31073 in gcc internal format with %'.
31074 * collect2.c (main): Likewise.
31075 (scan_prog_file): Likewise.
31076 (scan_libraries): Likewise.
31077 * config/i386/i386.c (ix86_expand_call): Likewise.
31078 (ix86_handle_interrupt_attribute): Likewise.
31079 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
31080 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
31081 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
31082 * lto-wrapper.c (find_crtoffloadtable): Likewise.
31083 * symtab.c (symtab_node::verify_base): Likewise.
31084 * tree-cfg.c (verify_gimple_label): Likewise.
31085 * tree.c (verify_type_variant): Likewise.
31086
31087 2019-03-11 Martin Liska <mliska@suse.cz>
31088
31089 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
31090 in a string format message and fix GNU coding style.
31091 (expand_builtin_set_thread_pointer): Likewise.
31092 * common/config/aarch64/aarch64-common.c
31093 (aarch64_rewrite_selected_cpu): Likewise.
31094 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
31095 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
31096 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
31097 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
31098 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
31099 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
31100 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
31101 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
31102 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
31103 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
31104 Likewise.
31105 * common/config/riscv/riscv-common.c
31106 (riscv_subset_list::parsing_subset_version): Likewise.
31107 (riscv_subset_list::parse_std_ext): Likewise.
31108 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31109 (riscv_subset_list::parse): Likewise.
31110 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
31111 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
31112 (aarch64_override_options_internal): Likewise.
31113 (aarch64_validate_mcpu): Likewise.
31114 (aarch64_validate_march): Likewise.
31115 (aarch64_validate_mtune): Likewise.
31116 (aarch64_override_options): Likewise.
31117 * config/alpha/alpha.c (alpha_option_override): Likewise.
31118 * config/arc/arc.c (arc_init): Likewise.
31119 (parse_mrgf_banked_regs_option): Likewise.
31120 (arc_override_options): Likewise.
31121 (arc_expand_builtin_aligned): Likewise.
31122 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
31123 (arm_expand_builtin): Likewise.
31124 * config/arm/arm.c (arm_option_check_internal): Likewise.
31125 (arm_configure_build_target): Likewise.
31126 (arm_option_override): Likewise.
31127 (arm_options_perform_arch_sanity_checks): Likewise.
31128 (arm_handle_cmse_nonsecure_entry): Likewise.
31129 (arm_handle_cmse_nonsecure_call): Likewise.
31130 (arm_tls_referenced_p): Likewise.
31131 (thumb1_expand_prologue): Likewise.
31132 * config/avr/avr.c (avr_option_override): Likewise.
31133 * config/bfin/bfin.c (bfin_option_override): Likewise.
31134 * config/c6x/c6x.c (c6x_option_override): Likewise.
31135 * config/cr16/cr16.c (cr16_override_options): Likewise.
31136 * config/cris/cris.c (cris_option_override): Likewise.
31137 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
31138 * config/darwin-c.c (macosx_version_as_macro): Likewise.
31139 * config/darwin.c (darwin_override_options): Likewise.
31140 * config/frv/frv.c (frv_expand_builtin): Likewise.
31141 * config/h8300/h8300.c (h8300_option_override): Likewise.
31142 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
31143 (ix86_option_override_internal): Likewise.
31144 (warn_once_call_ms2sysv_xlogues): Likewise.
31145 (ix86_expand_prologue): Likewise.
31146 (split_stack_prologue_scratch_regno): Likewise.
31147 (ix86_warn_parameter_passing_abi): Likewise.
31148 * config/ia64/ia64.c (fix_range): Likewise.
31149 * config/m68k/m68k.c (m68k_option_override): Likewise.
31150 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
31151 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
31152 (mips_set_compression_mode): Likewise.
31153 * config/mmix/mmix.c (mmix_option_override): Likewise.
31154 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
31155 * config/msp430/msp430.c (msp430_option_override): Likewise.
31156 * config/nds32/nds32.c (nds32_option_override): Likewise.
31157 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
31158 (nios2_option_override): Likewise.
31159 (nios2_expand_custom_builtin): Likewise.
31160 * config/nvptx/mkoffload.c (main): Likewise.
31161 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
31162 * config/pa/pa.c (fix_range): Likewise.
31163 (pa_option_override): Likewise.
31164 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
31165 (riscv_option_override): Likewise.
31166 * config/rl78/rl78.c (rl78_option_override): Likewise.
31167 * config/rs6000/aix61.h: Likewise.
31168 * config/rs6000/aix71.h: Likewise.
31169 * config/rs6000/aix72.h: Likewise.
31170 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
31171 * config/rs6000/freebsd64.h: Likewise.
31172 * config/rs6000/linux64.h: Likewise.
31173 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
31174 (rs6000_expand_zeroop_builtin): Likewise.
31175 (rs6000_expand_mtfsb_builtin): Likewise.
31176 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
31177 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
31178 (rs6000_invalid_builtin): Likewise.
31179 (rs6000_expand_split_stack_prologue): Likewise.
31180 * config/rs6000/rtems.h: Likewise.
31181 * config/rx/rx.c (valid_psw_flag): Likewise.
31182 (rx_expand_builtin): Likewise.
31183 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
31184 * config/s390/s390.c (s390_expand_builtin): Likewise.
31185 (s390_function_profiler): Likewise.
31186 (s390_option_override_internal): Likewise.
31187 (s390_option_override): Likewise.
31188 * config/sh/sh.c (sh_option_override): Likewise.
31189 (sh_builtin_saveregs): Likewise.
31190 (sh_fix_range): Likewise.
31191 * config/sh/vxworks.h: Likewise.
31192 * config/sparc/sparc.c (sparc_option_override): Likewise.
31193 * config/spu/spu.c (spu_option_override): Likewise.
31194 (fix_range): Likewise.
31195 * config/visium/visium.c (visium_option_override): Likewise.
31196 (visium_handle_interrupt_attr): Likewise.
31197 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
31198 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
31199 (dbg_cnt_process_opt): Likewise.
31200 * dwarf2out.c (output_dwarf_version): Likewise.
31201 * except.c (expand_eh_return): Likewise.
31202 * gcc.c (defined): Likewise.
31203 (driver_handle_option): Likewise.
31204 (process_command): Likewise.
31205 (compare_files): Likewise.
31206 (driver::prepare_infiles): Likewise.
31207 (driver::do_spec_on_infiles): Likewise.
31208 (driver::maybe_run_linker): Likewise.
31209 * omp-offload.c (oacc_parse_default_dims): Likewise.
31210 * opts-global.c (handle_common_deferred_options): Likewise.
31211 * opts.c (parse_sanitizer_options): Likewise.
31212 (common_handle_option): Likewise.
31213 (enable_warning_as_error): Likewise.
31214 * passes.c (enable_disable_pass): Likewise.
31215 * plugin.c (parse_plugin_arg_opt): Likewise.
31216 (default_plugin_dir_name): Likewise.
31217 * targhooks.c (default_expand_builtin_saveregs): Likewise.
31218 (default_pch_valid_p): Likewise.
31219 * toplev.c (init_asm_output): Likewise.
31220 (process_options): Likewise.
31221 (toplev::run_self_tests): Likewise.
31222 * tree-cfg.c (verify_gimple_call): Likewise.
31223 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
31224 (tree_inlinable_function_p): Likewise.
31225 * var-tracking.c (vt_find_locations): Likewise.
31226
31227 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
31228
31229 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
31230 only on the else branch.
31231
31232 2019-03-11 Martin Liska <mliska@suse.cz>
31233
31234 * gcov.c (output_intermediate_json_line): Print function
31235 name of each line.
31236 (output_json_intermediate_file): Add new argument.
31237 * doc/gcov.texi: Document the change.
31238
31239 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
31240
31241 PR rtl-optimization/89588
31242 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31243 explicit unrolling factor more robust.
31244
31245 2019-03-11 Richard Biener <rguenther@suse.de>
31246
31247 PR tree-optimization/89649
31248 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
31249 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
31250 on the prolog and epilog loops.
31251 (vect_loop_versioning): Return copy of loop.
31252 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
31253 on the non-vectorized version of the loop.
31254
31255 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
31256
31257 PR target/68924
31258 * config/i386/sse.md (*vec_extractv2di_0_sse):
31259 Add (=r,x) alternative and corresponding splitter.
31260
31261 2019-03-10 Martin Jambor <mjambor@suse.cz>
31262
31263 PR tree-optimization/85762
31264 PR tree-optimization/87008
31265 PR tree-optimization/85459
31266 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
31267 it points to if there is a type changing MEM_REF. Adjust all callers.
31268 (build_accesses_from_assign): Disable total scalarization if
31269 contains_vce_or_bfcref_p returns true through the new parameter, for
31270 both rhs and lhs.
31271
31272 2019-03-09 Jakub Jelinek <jakub@redhat.com>
31273
31274 PR c/88568
31275 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
31276 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
31277
31278 PR target/79645
31279 * common.opt (fdiagnostics-show-labels,
31280 fdiagnostics-show-line-numbers, fdiagnostics-format=,
31281 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
31282 gas-locview-support, ginline-points, ginternal-reset-location-views):
31283 Terminate description text with a dot.
31284 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
31285 * config/mcore/mcore.opt (m210, m340): Likewise.
31286 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
31287 mnops=): Start description text with a capital letter.
31288 * config/arc/arc.opt (msize-level=): Likewise.
31289 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
31290 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
31291 mnewlib): Likewise.
31292 * config/ft32/ft32.opt (msim): Likewise.
31293 (mft32b, mcompress): Likewise. Terminate description text with a dot.
31294 (mnodiv, mnopm): Terminate description text with a dot.
31295 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
31296 a colon.
31297 * config/i386/i386.opt (prefer_vector_width, instrument_return):
31298 Likewise.
31299 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
31300 text.
31301
31302 PR rtl-optimization/89634
31303 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
31304 are modified in BB_END (e->src) instruction.
31305
31306 2019-03-08 David Malcolm <dmalcolm@redhat.com>
31307
31308 PR target/79926
31309 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
31310 messages more amenable to translation, and improve wording.
31311
31312 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
31313
31314 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
31315 ud- and du-chains between phases.
31316
31317 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
31318
31319 PR debug/89631
31320 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
31321 instead of POLY_INT_CST.
31322
31323 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
31324
31325 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
31326 requirement.
31327
31328 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
31329
31330 PR target/68924
31331 PR target/78782
31332 PR target/87558
31333 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
31334 (_mm_storeu_si64): Ditto.
31335
31336 2019-03-08 Martin Liska <mliska@suse.cz>
31337
31338 PR target/86952
31339 * config/i386/i386.c (ix86_option_override_internal): Disable
31340 jump tables when retpolines are used.
31341
31342 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
31343
31344 PR go/63560
31345 * ipa-split.c (execute_split_functions): Do not split
31346 'noinline' or 'section' function.
31347
31348 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31349
31350 PR target/79846
31351 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
31352 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
31353 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
31354
31355 PR ipa/80000
31356 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
31357 from diagnostics. Formatting fixes.
31358
31359 PR target/85665
31360 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
31361 warn_odr diagnostics.
31362
31363 PR other/80058
31364 * lra-constraints.c (process_alt_operands): Avoid one space before
31365 " at the end of line and another after " on another line in a string
31366 literal.
31367 * attribs.c (handle_dll_attribute): Likewise.
31368 * config/avr/avr-devices.c (avr_texinfo): Likewise.
31369
31370 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
31371 warning_at or inform messages in G_() if there is no ?:.
31372
31373 PR tree-optimization/89550
31374 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
31375 returned true. Formatting fixes.
31376 (expand_builtin_strnlen): Formatting fixes.
31377 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
31378 if warning_at returned true.
31379 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
31380
31381 2019-03-08 Richard Biener <rguenther@suse.de>
31382
31383 PR middle-end/89578
31384 * cfgloop.h (struct loop): Add owned_clique field.
31385 * cfgloopmanip.c (copy_loop_info): Copy it.
31386 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31387 cliques.
31388 * tree-inline.c (copy_loops): Remap owned_clique.
31389 * lto-streamer-in.c (input_cfg): Stream owned_clique.
31390 * lto-streamer-out.c (output_cfg): Likewise.
31391
31392 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31393
31394 PR target/80190
31395 * config/darwin.c: Include intl.h.
31396 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31397 composing the message out of two separate parts.
31398
31399 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31400
31401 PR target/80003
31402 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31403 doesn't start with a capital letter and doesn't end with a dot.
31404 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31405 with a capital letter.
31406 (ix86_mangle_function_version_assembler_name): Likewise.
31407 (ix86_generate_version_dispatcher_body): Likewise.
31408 (fold_builtin_cpu): Likewise.
31409 (get_builtin_code_for_version): Likewise. Remove extraneous space.
31410 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31411 translators, wrap full type name in %qs.
31412
31413 PR translation/79999
31414 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31415 depend clause with source (or sink) modifier.
31416 * omp-expand.c (expand_omp_ordered_sink): Likewise.
31417
31418 PR target/89602
31419 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31420 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31421 (avx512f_load<mode>_mask): New define_expand.
31422 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31423 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31424 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31425 __builtin_ia32_movess_mask): New builtins.
31426 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31427 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31428 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31429 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31430
31431 2019-03-07 Martin Jambor <mjambor@suse.cz>
31432
31433 PR lto/87525
31434 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31435 for extern inline functions.
31436
31437 2019-03-07 Martin Jambor <mjambor@suse.cz>
31438
31439 PR ipa/88235
31440 * cgraph.h (cgraph_node): New inline method former_thunk_p.
31441 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31442 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31443 have multiple callees. At the end check if declarations match as
31444 opposed to cgraph_nodes.
31445
31446 2019-03-07 Martin Liska <mliska@suse.cz>
31447
31448 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31449 which is equivalent to searching for this in clones chain.
31450 * symtab.c (symtab_node::verify_base): Similarly compare ASM
31451 names with a neighbour and special case first node in a chain.
31452
31453 2019-01-25 Jason Merrill <jason@redhat.com>
31454
31455 PR c++/80916 - spurious "static but not defined" warning.
31456 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31457 for an internal symbol with DECL_EXTERNAL.
31458
31459 2019-04-07 Richard Biener <rguenther@suse.de>
31460
31461 PR middle-end/89618
31462 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31463 * tree-inline.c (copy_loops): Simplify.
31464
31465 2019-03-07 Martin Liska <mliska@suse.cz>
31466
31467 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31468
31469 2019-03-07 Richard Biener <rguenther@suse.de>
31470
31471 PR tree-optimization/89595
31472 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31473 stmt iterator as reference, take boolean output parameter to
31474 indicate whether the stmt was removed and thus the iterator
31475 already advanced.
31476 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31477 stmts created by folding.
31478
31479 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31480
31481 PR c++/89585
31482 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31483 at toplevel.
31484
31485 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31486
31487 PR rtl-optimization/88845
31488 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31489 LRA.
31490 * lra.c (remove_scratches_1): New function.
31491 (remove_scratches): Use it.
31492 (lra_emit_move): Likewise.
31493
31494 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31495
31496 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31497 unaligned_access variable.
31498 * config/arc/arc.c (arc_override_options): Set unaligned access
31499 default on for HS CPUs.
31500 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31501
31502 2019-03-06 Martin Liska <mliska@suse.cz>
31503
31504 PR gcov-profile/89577
31505 * doc/gcov.texi: Prefer to use --coverage.
31506 * doc/sourcebuild.texi: Likewise.
31507
31508 2019-03-02 Jason Merrill <jason@redhat.com>
31509
31510 PR c++/86485 - -Wmaybe-unused with empty class ?:
31511 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31512
31513 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31514
31515 PR target/89587
31516 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31517 if_multiarch.
31518
31519 PR middle-end/89590
31520 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31521 exactly one argument.
31522
31523 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31524 Richard Sandiford <richard.sandiford@arm.com>
31525
31526 PR tree-optimization/89570
31527 * match.pd (vec_cond into cond_op simplification): Don't use
31528 get_conditional_internal_fn, use as_internal_fn (cond_op).
31529
31530 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31531
31532 PR target/89222
31533 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31534 to decide when to split off a non-zero offset from a symbol.
31535 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31536 in function symbols.
31537
31538 2019-03-05 Richard Biener <rguenther@suse.de>
31539
31540 PR tree-optimization/89594
31541 * tree-if-conv.c (pass_if_conversion::execute): Handle
31542 case where .LOOP_VECTORIZED_FUNCTION was removed.
31543
31544 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31545
31546 PR bootstrap/89560
31547 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31548 instead alloca it only when needed with the needed size.
31549
31550 PR tree-optimization/89570
31551 * match.pd (vec_cond into cond_op simplification): Guard with
31552 vectorized_internal_fn_supported_p test and #if GIMPLE.
31553
31554 PR tree-optimization/89566
31555 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31556 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31557 Punt if get_user_idx_format succeeds, but idx_format argument is
31558 not provided or doesn't have pointer type, or if idx_args is above
31559 number of provided arguments.
31560
31561 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31562
31563 PR tree-optimization/89437
31564 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31565
31566 2019-03-04 Richard Biener <rguenther@suse.de>
31567
31568 PR middle-end/89572
31569 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31570 safe_dyn_cast.
31571
31572 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31573
31574 PR tree-optimization/89487
31575 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31576 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31577 (distribute_loop): Don't do runtime alias check if there is non-
31578 addressable data reference.
31579 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31580 is a register variable.
31581
31582 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31583
31584 PR target/89506
31585 * config/arm/arm.md (cmpsi2_addneg): Use
31586 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31587 If operands[2] is 0 or INT_MIN, force use of subs.
31588 (*compare_scc splitter): Use gen_int_mode.
31589 (*negscc): Likewise.
31590 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31591
31592 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31593 Monk Chiang <sh.chiang04@gmail.com>
31594
31595 * common/config/riscv/riscv-common.c: Include sstream.
31596 (riscv_subset_list::to_string): New.
31597 (riscv_arch_str): Likewise.
31598 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31599 * config.in: Regen.
31600 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31601 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31602 (riscv_emit_attribute): New.
31603 (riscv_file_start): Emit attribute if needed.
31604 (riscv_option_override): Init riscv_emit_attribute_p.
31605 * config/riscv/riscv.opt (mriscv-attribute): New option.
31606 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31607 * configure: Regen.
31608 * doc/install.texi: Document --with-riscv-attribute.
31609 * doc/invoke.texi: Document -mriscv-attribute.
31610
31611 * common/config/riscv/riscv-common.c:
31612 Include config/riscv/riscv-protos.h.
31613 (INCLUDE_STRING): Defined.
31614 (RISCV_DONT_CARE_VERSION): Defined.
31615 (riscv_subset_t): Declare.
31616 (riscv_subset_t::riscv_subset_t): New.
31617 (riscv_subset_list): Declare.
31618 (riscv_subset_list::riscv_subset_list): New.
31619 (riscv_subset_list::~riscv_subset_list): Likewise.
31620 (riscv_subset_list::parsing_subset_version): Likewise.
31621 (riscv_subset_list::parse_std_ext): Likewise.
31622 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31623 (riscv_subset_list::add): Likewise.
31624 (riscv_subset_list::lookup): Likewise.
31625 (riscv_subset_list::xlen): Likewise.
31626 (riscv_subset_list::parse): Likewise.
31627 (riscv_supported_std_ext): Likewise.
31628 (current_subset_list): Likewise.
31629 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31630 parse.
31631
31632 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31633
31634 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31635 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31636 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31637
31638 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31639
31640 PR rtl-optimization/85899
31641 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31642 fallthru edges leading to the exit block.
31643
31644 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31645
31646 PR target/89517
31647 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31648 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31649
31650 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31651
31652 PR tree-optimization/89535
31653 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31654 for each operand. Calculate the fallback choice for mask operands
31655 and pass it to vect_get_vec_def_for_operand.
31656
31657 2019-03-01 Richard Biener <rguenther@suse.de>
31658
31659 PR middle-end/89541
31660 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31661 get virtual operands.
31662 (get_expr_operands): Handle CONST_DECL like other decls.
31663
31664 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31665
31666 PR middle-end/89503
31667 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31668 on DECL_P and EXPR_P.
31669
31670 2019-03-01 Richard Biener <rguenther@suse.de>
31671
31672 PR middle-end/89497
31673 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31674 argument, defaulted to zero.
31675 * passes.c (execute_function_todo): Pass down SSA update flags
31676 to cleanup_tree_cfg.
31677 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31678 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31679 form if requested.
31680 (cleanup_tree_cfg): Get and pass down SSA update flags.
31681
31682 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31683
31684 PR bootstrap/89539
31685 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31686 early_lto_debug argument.
31687
31688 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31689
31690 PR tree-optimization/89536
31691 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31692 only whether bit #0 of the value is 0 instead of the entire value.
31693
31694 2019-02-28 Marek Polacek <polacek@redhat.com>
31695
31696 PR c++/87068 - missing diagnostic with fallthrough statement.
31697 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31698 at the end of a seq, save its location to walk_stmt_info.
31699 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31700 a switch.
31701
31702 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31703
31704 PR lto/88585
31705 * tree.c (find_atomic_core_type): Move ahead in file.
31706 (check_base_type): Correctly compare alignments of atomic types.
31707
31708 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31709
31710 PR target/89455
31711 * config/i386/i386.c (get_builtin_code_for_version): Identify
31712 Westmere from PCLMUL, instead of AES.
31713
31714 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31715
31716 PR target/89434
31717 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31718 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31719 -UINTVAL (...).
31720
31721 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31722
31723 PR target/88530
31724 * config/aarch64/aarch64-option-extensions.def: Document it.
31725 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31726 if empty hwcaps.
31727
31728 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31729
31730 PR c/89520
31731 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31732 builtins if they don't have a single scalar floating point argument.
31733 Formatting fixes.
31734
31735 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31736
31737 PR rtl-optimization/89490
31738 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31739 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31740 block section is not mergeable.
31741
31742 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31743
31744 PR target/70341
31745 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31746 old define_insn to ...
31747 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31748 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31749 Rename old define_insn to ...
31750 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31751 (thumb2_casesi_internal_pic): New define_expand. Rename old
31752 define_insn to ...
31753 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31754 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31755 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31756
31757 2019-02-27 Richard Biener <rguenther@suse.de>
31758
31759 PR debug/88878
31760 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31761
31762 2019-02-27 Richard Biener <rguenther@suse.de>
31763
31764 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31765 building.
31766
31767 2019-02-27 Richard Biener <rguenther@suse.de>
31768
31769 PR debug/88878
31770 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31771 parameter, prefix section name with .gnu.debuglto_ if true.
31772 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31773 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31774
31775 2019-02-27 Richard Biener <rguenther@suse.de>
31776
31777 PR debug/89514
31778 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31779 rather than on use_debug_types, doing what output_die does.
31780 (value_format): Likewise.
31781
31782 2019-02-27 Martin Jambor <mjambor@suse.cz>
31783 Martin Sebor <msebor@redhat.com>
31784
31785 * doc/invoke.texi (Warning Options): Reword description of
31786 -Wno-absolute-value.
31787
31788 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31789
31790 PR tree-optimization/89280
31791 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31792 builtin_setjmp_setup_bb): New functions.
31793 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31794 When visiting __builtin_setjmp_setup block, queue in special
31795 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31796 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31797 from visited after the loop if they don't have any visited successor
31798 blocks.
31799
31800 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31801
31802 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31803 New function.
31804 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31805
31806 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31807
31808 PR c++/89507
31809 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31810 with types other than sizetype/ssizetype.
31811
31812 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31813
31814 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31815 (enum sparc_processor_type): ...this.
31816 (enum sparc_code_model_type): New enumeration type.
31817 (enum sparc_memory_model_type): Tweak comments.
31818 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31819 (mtune): Likewise.
31820 (mcmodel): Use sparc_code_model enumeration and variable.
31821 (sparc_code_model): New enumeration.
31822 (mdebug): Add Undocumented marker.
31823 * config/sparc/sparc.h (enum cmodel): Delete.
31824 (sparc_cmodel): Likewise.
31825 (TARGET_CM_MEDLOW): Adjust to above renaming.
31826 (TARGET_CM_MEDMID): Likewise.
31827 (TARGET_CM_MEDANY): Likewise.
31828 (TARGET_CM_EMBMEDANY): Likewise.
31829 * config/sparc/sparc.c (sparc_cmodel): Delete.
31830 (sparc_option_override): Remove string/value mapping support for the
31831 code model. Move code and memory model support to after the handling
31832 of target flags. Do private machine setup last.
31833 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31834 (sparc_legitimize_reload_address): Likewise.
31835 (sparc_output_mi_thunk): Likewise.
31836 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31837
31838 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31839
31840 PR tree-optimization/89500
31841 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31842 (handle_builtin_strlen): Remove noncst_bound variable. Always
31843 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31844 cst if the first cst bytes starting at x are known to be non-zero,
31845 even if the string is not zero terminated. Don't try to modify
31846 *si for strnlen. Update strlen_to_stridx only for strlen or if
31847 we can prove strnlen returns the same value as strlen would.
31848
31849 2019-02-26 Martin Liska <mliska@suse.cz>
31850
31851 * alloc-pool.h (struct pool_usage): Remove extra
31852 print_dash_line.
31853 * bitmap.h (struct bitmap_usage): Likewise.
31854 * ggc-common.c (struct ggc_usage): Likewise.
31855 * mem-stats.h (struct mem_usage): Likewise.
31856 (mem_alloc_description::dump): Print dash lines
31857 here and repeat header at the end of a table report.
31858 It's then more readable.
31859 * tree-phinodes.c (phinodes_print_statistics): Make
31860 horizontal alignment.
31861 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31862 * vec.c (struct vec_usage): Remove extra print_dash_line.
31863 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31864
31865 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31866
31867 * doc/extend.texi (__builtin_object_size):
31868 Use @pxref instead of @xref inside parenthesis.
31869 (__builtin_has_attribute): Add missing comma after @xref.
31870 (__builtin_object_size): Ditto.
31871 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31872
31873 2019-02-26 Jeff Law <law@redhat.com>
31874
31875 PR rtl-optimization/87761
31876 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31877 detect obviously dead insns and delete them.
31878
31879 2019-02-26 Richard Biener <rguenther@suse.de>
31880
31881 PR tree-optimization/89505
31882 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31883 to handle restrict pointed-to vars with multiple subvars
31884 correctly.
31885
31886 2019-02-26 Richard Biener <rguenther@suse.de>
31887
31888 PR tree-optimization/89489
31889 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31890
31891 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31892
31893 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31894 and move around comment.
31895 <BIT_AND_EXPR>: Likewise.
31896 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31897
31898 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31899
31900 PR target/89474
31901 * config/i386/i386.c (remove_partial_avx_dependency): Call
31902 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31903 after changing possibly many instructions to use that pseudo. Fix up
31904 insertion of v4sf_const0 setter at the start of bb.
31905
31906 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31907
31908 PR c/80409
31909 * doc/extend.texi (Variadic Pointer Args): New section.
31910
31911 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31912 Martin Sebor <msebor@gmail.com>
31913
31914 * common.opt (Wattribute-alias): Likewise.
31915 * doc/invoke.texi (Option Summary): List general form of
31916 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31917 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31918 Add cross-references.
31919 (-Wattribute-alias): Rewrite and correct default. Mention
31920 considered attributes (same as for -Wmissing-attributes).
31921
31922 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31923
31924 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31925 (_mm_cvtpd_ps): Likewise.
31926 (_mm_cvttpd_epi32): Likewise.
31927
31928 PR target/89338
31929 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31930 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31931
31932 PR target/89339
31933 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31934
31935 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31936
31937 PR target/88530
31938 * common/config/aarch64/aarch64-common.c
31939 (struct aarch64_option_extension): Add is_synthetic.
31940 (all_extensions): Use it.
31941 (TARGET_OPTION_INIT_STRUCT): Define hook.
31942 (struct gcc_targetm_common): Moved to end.
31943 (all_extensions_by_on): New.
31944 (opt_ext_cmp, typedef opt_ext): New.
31945 (aarch64_option_init_struct): New.
31946 (aarch64_contains_opt): New.
31947 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31948 * config/aarch64/aarch64-option-extensions.def
31949 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31950 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31951 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31952 Set is_synthetic to false.
31953 (crypto): Set is_synthetic to true.
31954 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31955 SYNTHETIC.
31956
31957 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31958
31959 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31960 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31961 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31962 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31963 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31964 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31965 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31966 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31967 Rename ...
31968 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31969 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31970 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31971 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31972 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31973 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31974 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31975 vfmlsl_laneq_high_f16): ... To this.
31976 * config/arm/neon.md: Update comments.
31977
31978 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31979
31980 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31981 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31982 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31983 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31984 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31985 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31986 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31987 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31988 Rename ...
31989 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31990 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31991 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31992 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31993 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31994 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31995 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31996 vfmlslq_laneq_high_f16): ... To this.
31997
31998 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31999
32000 PR rtl-optimization/86096
32001 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
32002 comparing mw_order values.
32003
32004 2019-02-25 Jakub Jelinek <jakub@redhat.com>
32005
32006 PR target/89434
32007 * config/arm/arm.md (*subsi3_carryin_const): Use
32008 arm_neg_immediate_operand predicate instead of
32009 arm_not_immediate_operand, "L" constraint instead of "K" and
32010 print it using %n2 instead of %B2.
32011 (*subsi3_carryin_const0): New define_insn.
32012 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
32013 instead of arm_not_operand and "I" constraint instead of "K" and
32014 print it using %n3 instead of %B2. Instead of using match_dup 2 add
32015 another match_operand and in the condition check that it is negation
32016 of operands[2].
32017 (*subsi3_carryin_compare_const0): New define_ins.
32018 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
32019 *subsi3_carryin_const.
32020 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
32021 split into *subsi3_carryin_compare_const0 if the highpart is zero.
32022
32023 PR target/89438
32024 * config/arm.vfp.md (*negdf2_vfp): Use
32025 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
32026 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
32027
32028 2019-02-24 Jakub Jelinek <jakub@redhat.com>
32029
32030 PR rtl-optimization/89445
32031 * simplify-rtx.c (simplify_ternary_operation): Don't use
32032 simplify_merge_mask on operands that may trap.
32033 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
32034 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
32035 second operand is CONST_VECTOR, check if any element could be zero.
32036 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
32037 their operands can trap.
32038
32039 2019-02-23 Martin Sebor <msebor@redhat.com>
32040
32041 * gimple-ssa-sprintf.c (target_strtol): Rename...
32042 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
32043 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
32044 check for range error.
32045
32046 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
32047
32048 PR driver/69471
32049 * opts-common.c (prune_options): Also prune joined switches
32050 with Negative and RejectNegative.
32051 * config/i386/i386.opt (march=): Add Negative(march=).
32052 (mtune=): Add Negative(mtune=).
32053 * doc/options.texi: Document Negative used together with Joined
32054 and RejectNegative.
32055
32056 2019-02-22 Martin Sebor <msebor@redhat.com>
32057
32058 * doc/extend.texi (Other Builtins): Add
32059 __builtin_is_constant_evaluated.
32060
32061 2019-02-22 Richard Biener <rguenther@suse.de>
32062
32063 PR tree-optimization/87609
32064 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
32065
32066 2019-02-22 Jeff Law <law@redhat.com>
32067
32068 PR rtl-optimization/87761
32069 * config/mips/mips.md: Add new combiner pattern to recognize
32070 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
32071
32072 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
32073
32074 PR target/89324
32075 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
32076 destination register in peepholes generating patterns for ADDS/SUBS.
32077 (add<mode>3_compare0,
32078 *addsi3_compare0_uxtw, add<mode>3_compareC,
32079 add<mode>3_compareV_imm, add<mode>3_compareV,
32080 *adds_<optab><ALLX:mode>_<GPI:mode>,
32081 *subs_<optab><ALLX:mode>_<GPI:mode>,
32082 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
32083 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
32084 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
32085 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
32086 sub<mode>3_compare1): Allow stack pointer for source register.
32087 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
32088
32089 2019-02-22 Martin Sebor <msebor@redhat.com>
32090
32091 PR tree-optimization/88993
32092 PR tree-optimization/88853
32093 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
32094 New helper.
32095 (sprintf_dom_walker::call_info::is_string_func): New helper.
32096 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
32097 for formatted string functions.
32098 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
32099
32100 2019-02-22 Martin Sebor <msebor@redhat.com>
32101
32102 PR c/89425
32103 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
32104 unreachable subexpressions.
32105
32106 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
32107 Hongtao Liu <hongtao.liu@intel.com>
32108 Sunil K Pandey <sunil.k.pandey@intel.com>
32109
32110 PR target/87007
32111 * config/i386/i386-passes.def: Add
32112 pass_remove_partial_avx_dependency.
32113 * config/i386/i386-protos.h
32114 (make_pass_remove_partial_avx_dependency): New.
32115 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
32116 New function.
32117 (pass_data_remove_partial_avx_dependency): New.
32118 (pass_remove_partial_avx_dependency): Likewise.
32119 (make_pass_remove_partial_avx_dependency): Likewise.
32120 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
32121 (*extendsfdf2): Add avx_partial_xmm_update.
32122 (truncdfsf2): Likewise.
32123 (*float<SWI48:mode><MODEF:mode>2): Likewise.
32124 (SF/DF conversion splitters): Disabled for TARGET_AVX.
32125
32126 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
32127
32128 PR middle-end/85598
32129 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
32130 analysis for pass.
32131
32132 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
32133
32134 PR target/89444
32135 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
32136 (PTA_SKYLAKE): Add PTA_AES.
32137 (PTA_GOLDMONT): Likewise.
32138
32139 2019-02-22 Sudakshina Das <sudi.das@arm.com>
32140
32141 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
32142 instruction if enabled.
32143 (aarch64_override_options): Remove reference to return address key.
32144
32145 2019-02-22 Richard Biener <rguenther@suse.de>
32146
32147 PR tree-optimization/89440
32148 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
32149 not necessary assert.
32150
32151 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
32152
32153 PR fortran/72741
32154 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
32155 (oacc_replace_fn_attrib_attr): ... this new function.
32156 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
32157 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
32158
32159 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32160
32161 * config/arm/arm-cpus.in (ares): Rename to...
32162 (neoverse-n1): ... This. Add ares as alias.
32163 * config/arm/arm-tables.opt: Regenerate.
32164 * config/arm/arm-tune.md: Likewise.
32165 * doc/invoke.txt (ARM Options): Document neoverse-n1.
32166
32167 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32168
32169 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
32170 * config/aarch64/aarch64-tune.md: Regenerate.
32171 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
32172
32173 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32174
32175 * config/aarch64/aarch64.c (ares_tunings): Rename to...
32176 (neoversen1_tunings): ... This.
32177 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
32178 (neoverse-n1): New CPU.
32179 * config/aarch64/aarch64-tune.md: Regenerate.
32180 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
32181
32182 2019-02-22 Richard Biener <rguenther@suse.de>
32183
32184 PR middle-end/87609
32185 * cfghooks.h (dependence_hash): New typedef.
32186 (struct copy_bb_data): New type.
32187 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
32188 (duplicate_block): Likewise.
32189 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
32190 (copy_bbs): Create and pass down copy_bb_data.
32191 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
32192 (rtl_duplicate_bb): Likewise.
32193 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
32194 remap dependence info.
32195
32196 2019-02-22 Richard Biener <rguenther@suse.de>
32197
32198 PR tree-optimization/87609
32199 * tree-core.h (tree_base): Document special clique values.
32200 * tree-inline.c (remap_dependence_clique): Do not use the
32201 special clique value of one.
32202 (maybe_set_dependence_info): Use clique one.
32203 (clear_dependence_clique): New callback.
32204 (compute_dependence_clique): Clear clique one from all refs
32205 before assigning it (again).
32206
32207 2019-02-21 Martin Sebor <msebor@redhat.com>
32208
32209 * doc/extend.texi (__clear_cache): Correct signature.
32210
32211 2019-02-21 Ian Lance Taylor <iant@golang.org>
32212
32213 PR go/89170
32214 * varasm.c (decode_addr_const): Call lookup_constant_def rather
32215 than output_constant_def.
32216 (add_constant_to_table): New static function.
32217 (output_constant_def): Call add_constant_to_table.
32218 (tree_output_constant_def): Likewise.
32219
32220 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32221
32222 PR c++/89285
32223 * builtins.c (fold_builtin_arith_overflow): If first two args are
32224 INTEGER_CSTs, set intres and ovfres to constants rather than calls
32225 to ifn.
32226
32227 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
32228
32229 PR target/87412
32230 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
32231 error for -mindirect-branch/-mfunction-return with incompatible
32232 -fcf-protection.
32233
32234 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32235
32236 PR bootstrap/88714
32237 * constraints.md (q): Remove.
32238 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
32239 instead of q.
32240
32241 2019-02-21 Martin Jambor <mjambor@suse.cz>
32242
32243 PR hsa/89302
32244 * omp-general.c (omp_extract_for_data): Removed a duplicate call
32245 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
32246 (omp_adjust_for_condition): ...here. Added necessary parameters.
32247 * omp-general.h (omp_adjust_for_condition): Updated declaration.
32248 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
32249 proper values to new parameters of omp_adjust_for_condition.
32250
32251 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32252
32253 PR middle-end/89412
32254 * expr.c (expand_assignment): If result is a MEM, use change_address
32255 instead of simplify_gen_subreg.
32256
32257 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32258 David Malcolm <dmalcolm@redhat.com>
32259
32260 PR middle-end/89091
32261 * fold-const.c (decode_field_reference): Return NULL_TREE if
32262 lang_hooks.types.type_for_size returns NULL. Check it before
32263 overwriting *exp_. Use return NULL_TREE instead of return 0.
32264
32265 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32266
32267 PR middle-end/88074
32268 PR middle-end/89415
32269 * toplev.c (do_compile): Double the emin/emax exponents to workaround
32270 buggy mpc_norm.
32271
32272 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
32273
32274 PR target/89397
32275 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
32276 TARGET_SSE in addition to TARGET_SSE_MATH.
32277
32278 (ix86_excess_precision): Ditto.
32279 (ix86_float_exceptions_rounding_supported_p): Ditto.
32280 (use_rsqrt_p): Ditto.
32281 * config/i386/sse.md (rsqrt<mode>2): Ditto.
32282
32283 2019-02-20 David Malcolm <dmalcolm@redhat.com>
32284
32285 PR c/89410
32286 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
32287 linenum_arith_t when determining if two adjacent line spans are
32288 close enough to merge.
32289 (diagnostic_show_locus): Use linenum_arith_t when iterating over
32290 lines within each line_span.
32291
32292 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
32293
32294 PR target/86487
32295 * lra-constraints.c(uses_hard_regs_p): Fix handling of
32296 paradoxical SUBREGS.
32297
32298 2019-02-20 Li Jia He <helijia@linux.ibm.com>
32299
32300 PR target/88100
32301 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
32302 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
32303 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
32304 range checking it.
32305
32306 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
32307
32308 * config/gcn/gcn.c (print_operand): Fix typo.
32309
32310 2019-02-19 Richard Biener <rguenther@suse.de>
32311
32312 PR middle-end/88074
32313 * toplev.c (do_compile): Initialize mpfr's exponent range
32314 based on available float modes.
32315
32316 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
32317
32318 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
32319 as long as the epilogue isn't completed.
32320
32321 2019-02-18 Martin Sebor <msebor@redhat.com>
32322
32323 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
32324 __has_cpp_attribute, and __has_include.
32325
32326 2019-02-18 Martin Sebor <msebor@redhat.com>
32327
32328 * doc/invoke.texi (-Wreturn-type): Correct and expand.
32329
32330 2019-02-18 Martin Sebor <msebor@redhat.com>
32331
32332 PR middle-end/89294
32333 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
32334 expression.
32335 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
32336
32337 2019-02-18 Richard Biener <rguenther@suse.de>
32338
32339 PR tree-optimization/89296
32340 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
32341 of no-warning flag to cases that might emit the bogus warning.
32342
32343 2019-02-18 Jakub Jelinek <jakub@redhat.com>
32344
32345 PR bootstrap/88714
32346 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
32347 "q" constraint.
32348 * config/arm/vfp.md (*movdi_vfp): Likewise.
32349 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
32350 "q" constraint for operands[0].
32351
32352 PR target/89369
32353 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
32354 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
32355 pattern in a temporary buffer.
32356 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
32357 than 64-operands[2].
32358
32359 PR target/89361
32360 * config/s390/s390.c (s390_indirect_branch_attrvalue,
32361 s390_indirect_branch_settings): Define unconditionally.
32362 (s390_set_current_function): Likewise, but guard the whole body except
32363 the s390_indirect_branch_settings call with
32364 #if S390_USE_TARGET_ATTRIBUTE.
32365 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
32366
32367 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
32368 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
32369 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
32370 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
32371 HOST_WIDE_INT_1U instead of 1ULL.
32372 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
32373 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
32374 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
32375 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
32376 instead of 1UL.
32377 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
32378 instead of 1ul.
32379
32380 2019-02-18 Martin Jambor <mjambor@suse.cz>
32381
32382 PR tree-optimization/89209
32383 * tree-sra.c (create_access_replacement): New optional parameter
32384 reg_tree. Use it as a type if non-NULL and access type is not of
32385 a register type.
32386 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32387 to create_access_replacement.
32388 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32389 Check lacc is non-NULL before attempting to re-create it on the RHS.
32390
32391 2019-02-18 Martin Liska <mliska@suse.cz>
32392
32393 PR ipa/89306
32394 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32395 by default.
32396 (symbol_table::free_edge): Recycle m_summary_id.
32397 * cgraph.h (get_summary_id): New.
32398 (symbol_table::release_symbol): Set m_summary_id to -1
32399 by default.
32400 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32401 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32402 function_summary to fast_function_summary.
32403 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32404 * ipa-pure-const.c (class funct_state_summary_t):
32405 Switch from function_summary to fast_function_summary.
32406 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32407 (class ipa_ref_opt_summary_t): Switch from function_summary
32408 to fast_function_summary.
32409 * symbol-summary.h (class function_summary_base): New class
32410 that is created from base of former function_summary.
32411 (function_summary_base::unregister_hooks): New.
32412 (class function_summary): Inherit from function_summary_base.
32413 (class call_summary_base): New class
32414 that is created from base of former call_summary.
32415 (class call_summary): Inherit from call_summary_base.
32416 (struct is_same): New.
32417 (class fast_function_summary): New summary class.
32418 (class fast_call_summary): New summary class.
32419 * vec.h (vec_safe_grow_cleared): New function.
32420
32421 2019-02-18 Martin Liska <mliska@suse.cz>
32422
32423 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32424 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32425 * doc/tm.texi: Document new target hook.
32426 * doc/tm.texi.in: Likewise.
32427 * target.def: Add new target macro.
32428 * gcc.c (find_fortran_preinclude_file): Do not search multilib
32429 suffixes.
32430
32431 2019-02-17 Alan Modra <amodra@gmail.com>
32432
32433 PR target/89271
32434 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32435 output reg on add insn.
32436 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
32437
32438 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32439
32440 PR target/89372
32441 * config/i386/sse.md (ssedoublemode): Remove V4HI.
32442 (PMULHRSW): Likewise.
32443 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32444 TARGET_AVX2.
32445 (ssse3_pmulhrswv4hi3): New expander.
32446
32447 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32448
32449 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32450 MMX. Add isa attribute.
32451
32452 2019-02-16 Jakub Jelinek <jakub@redhat.com>
32453
32454 PR rtl-optimization/66152
32455 * builtins.h (c_readstr): Declare.
32456 * builtins.c (c_readstr): Remove forward declaration. Add
32457 null_terminated_p argument, if false, read all bytes from the
32458 string instead of stopping after '\0'.
32459 * expr.c (string_cst_read_str): New function.
32460 (store_expr): Use string_cst_read_str instead of
32461 builtin_strncpy_read_str. Try to store by pieces the whole
32462 exp_len first, and only if that fails, split it up into
32463 store by pieces followed by clear_storage. Formatting fix.
32464
32465 * config/i386/i386.md (*movqi_internal): Remove static from
32466 buf variable. Use output_asm_insn (buf, operands); return "";
32467 instead of return buf;.
32468 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32469 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32470 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32471
32472 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32473
32474 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32475 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32476 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32477 (CC1_SPEC): Likewise.
32478 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32479
32480 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32481
32482 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32483 the base address on 64-bit strict-alignment platforms.
32484
32485 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32486
32487 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32488
32489 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32490
32491 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32492
32493 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32494
32495 PR rtl-optimization/88308
32496 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32497 on copied instruction.
32498
32499 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32500
32501 * final.c (insn_current_reference_address): Replace test on JUMP_P
32502 with test on jump_to_label_p.
32503 * config/visium/visium-passes.def: New file.
32504 * config/visium/t-visium (PASSES_EXTRA): Define.
32505 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32506 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32507 (TRAMPOLINE_ALIGNMENT): Define.
32508 * config/visium/visium.c (visium_option_override): Do not register
32509 the machine-specific reorg pass here.
32510 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32511 for the GR6.
32512 (output_branch): Adjust threshold for long branch instruction.
32513 * config/visium/visium.md (cpu): Move around.
32514 (length): Adjust for the GR6.
32515
32516 2019-02-15 Richard Biener <rguenther@suse.de>
32517 Jakub Jelinek <jakub@redhat.com>
32518
32519 PR tree-optimization/89278
32520 * tree-loop-distribution.c: Include tree-eh.h.
32521 (generate_memset_builtin, generate_memcpy_builtin): Call
32522 rewrite_to_non_trapping_overflow on builtin->size before passing it
32523 to force_gimple_operand_gsi.
32524
32525 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32526
32527 PR other/89342
32528 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32529 optimize_debug.
32530 * opth-gen.awk: Likewise.
32531
32532 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32533
32534 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32535 Enable MMX, SSE and SSE2 by default.
32536 * config/i386/i386.c (ix86_option_override_internal): Do not
32537 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32538
32539 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32540
32541 PR rtl-optimization/89354
32542 * combine.c (make_extraction): Punt if extraction_mode is narrower
32543 than len bits.
32544
32545 2019-02-14 Maya Rashish <coypu@sdf.org>
32546
32547 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32548 * config/netbsd-d.c: New file.
32549 * config/t-netbsd: Add netbsd-d.o
32550
32551 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32552
32553 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32554 affects_type_identity to true for aarch64_vector_pcs.
32555 (aarch64_comp_type_attributes): New function.
32556 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32557
32558 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32559
32560 PR target/88850
32561 * config/arm/iterators.md (ANY64): Add V4HF.
32562
32563 2019-02-14 Martin Liska <mliska@suse.cz>
32564
32565 PR rtl-optimization/89242
32566 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32567 process a transformation.
32568
32569 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32570
32571 PR tree-optimization/89314
32572 * fold-const.c (fold_binary_loc): Cast strlen argument to
32573 const char * before dereferencing it. Formatting fixes.
32574
32575 PR middle-end/89284
32576 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32577
32578 2019-02-13 Ian Lance Taylor <iant@golang.org>
32579
32580 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32581 and set current index for other optimizations.
32582
32583 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32584
32585 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32586 nonimmediate_operand as operand 2 predicate.
32587 (vec_set<VF2_512_256:mode>_0): Ditto.
32588 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32589 (*vec_concatv2si): Remove alternative 2.
32590 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32591 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32592 (vec_concatv2di): Split alternatives 4,5,6 to ...
32593 (*vec_concatv2di_0) ... new pattern.
32594
32595 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32596
32597 PR target/89190
32598 * config/arm/arm.c (ldm_stm_operation_p) Set
32599 addr_reg_in_reglist correctly for first register.
32600 (load_multiple_sequence): Remove dead base check.
32601 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32602
32603 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32604
32605 PR target/88847
32606 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32607 Expose as @aarch64_pred_mov.
32608 * config/aarch64/aarch64.c (aarch64_classify_address):
32609 Use expand_insn which legitimizes operands.
32610
32611 2019-02-13 Martin Liska <mliska@suse.cz>
32612
32613 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32614 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32615 and pointer_offset fields.
32616 (initialize_argument_information): Remove usage of dead
32617 fields.
32618 * cgraph.h (struct cgraph_thunk_info): Remove
32619 add_pointer_bounds_args.
32620 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32621 fields.
32622 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32623 fields.
32624 * config/i386/i386.c (ix86_function_arg_advance): Remove
32625 unrelated comment.
32626 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32627 (def_builtin): Remove usage of dead fields.
32628 (ix86_add_new_builtins): Likewise.
32629 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32630 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32631 (sem_function::init): Likewise.
32632 (sem_variable::merge): Likewise.
32633 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32634 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32635 * lto-cgraph.c (lto_output_node): Likewise.
32636 (lto_output_varpool_node): Likewise.
32637 (input_node): Likewise.
32638 (input_varpool_node): Likewise.
32639 * lto-streamer-out.c (lto_output): Likewise.
32640 * tree-inline.c (expand_call_inline): Remove usage of
32641 assign_stmts.
32642 * tree-inline.h (struct copy_body_data): Likewise.
32643 * varpool.c (varpool_node::dump): Likewise.
32644
32645 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32646
32647 PR middle-end/89303
32648 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32649 into pt->vars_contains_escaped_heap instead of setting
32650 pt->vars_contains_escaped_heap to it.
32651
32652 PR middle-end/89281
32653 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32654 INTVAL (size), compare it to GET_MODE_MASK instead of
32655 1 << GET_MODE_BITSIZE.
32656
32657 PR target/89290
32658 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32659 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32660 -mcmodel=large.
32661
32662 2019-02-13 Martin Liska <mliska@suse.cz>
32663
32664 PR lto/88858
32665 * cfgrtl.c (remove_barriers_from_footer): New function.
32666 (try_redirect_by_replacing_jump): Use it.
32667 (cfg_layout_redirect_edge_and_branch): Likewise.
32668
32669 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32670
32671 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32672 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32673 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32674 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32675 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32676 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32677 New BU_CRYPTO_2.
32678 * config/rs6000/rs6000.c (builtin_function_type)
32679 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32680 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32681 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32682 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32683 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32684
32685 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32686
32687 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32688 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32689
32690 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32691
32692 PR target/89229
32693 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32694 268678 and revision 268657.
32695 (*movti_internal): Likewise.
32696
32697 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32698
32699 PR target/89233
32700 * config/s390/s390.c (s390_decompose_address): Update comment.
32701 (s390_check_qrst_address): Reject invalid address forms after
32702 LRA.
32703
32704 2019-02-12 Martin Liska <mliska@suse.cz>
32705
32706 PR lto/88876
32707 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32708 we need default values of funct_state for a function that
32709 is not optimized.
32710
32711 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32712
32713 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32714 the object to pick the size of stores on strict-alignment platforms.
32715
32716 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32717 (*movdi_insn_sp32): Likewise.
32718 (*movdi_insn_sp64): Likewise.
32719
32720 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32721
32722 PR lto/88677
32723 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32724 types that needs constructiong.
32725 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32726
32727 2019-02-12 Richard Biener <rguenther@suse.de>
32728
32729 PR tree-optimization/89253
32730 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32731 duplicate the loop.
32732
32733 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32734
32735 PR lto/88147
32736 * input.c (selftest::test_line_offset_overflow): New selftest.
32737 (selftest::input_c_tests): Call it.
32738
32739 2019-02-11 Martin Sebor <msebor@redhat.com>
32740
32741 PR tree-optimization/88771
32742 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32743 when -Wstringop-overflow is set.
32744 (builtin_memref::builtin_memref): Adjust excessive upper bound
32745 only when lower bound is not excessive.
32746 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32747 -Wstringop-ovefflow.
32748 (maybe_diag_offset_bounds): Rename...
32749 (maybe_diag_access_bounds): ...to this.
32750 (check_bounds_or_overlap): Adjust for name change above.
32751
32752 2019-02-11 Martin Sebor <msebor@redhat.com>
32753
32754 PR c++/87996
32755 * builtins.c (max_object_size): Move from here...
32756 * builtins.h (max_object_size): ...and here...
32757 * tree.c (max_object_size): ...to here...
32758 * tree.h (max_object_size): ...and here.
32759
32760 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32761
32762 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32763 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32764 for correct semantics.
32765
32766 2019-02-11 Alan Modra <amodra@gmail.com>
32767
32768 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32769 -mlongcall and -mpltseq.
32770 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32771 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32772 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32773 * config/rs6000/sysv4.opt (mpltseq): New option.
32774 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32775 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32776 support is lacking. Don't allow -mpltseq with -mbss-plt.
32777 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32778 -mpltseq given for ELFv1.
32779 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32780 Only use UNSPEC_PLTSEQ for inline PLT calls.
32781 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32782 use UNSPEC_PLTSEQ for inline PLT calls.
32783 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32784 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32785 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32786 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32787 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32788 (pltseq_mtctr_<mode>): Likewise.
32789
32790 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32791
32792 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32793 Solaris ld.
32794 * configure: Regenerate.
32795
32796 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32797
32798 PR bootstrap/88714
32799 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32800 instead of r.
32801
32802 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32803
32804 * function.c (assign_parm_setup_block): Use the stored
32805 size, not the passed size, when allocating stack-space,
32806 also for a parameter with alignment larger than
32807 MAX_SUPPORTED_STACK_ALIGNMENT.
32808
32809 2019-02-11 Martin Liska <mliska@suse.cz>
32810
32811 PR ipa/89009
32812 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32813 * ipa-inline.c (inline_small_functions): Likewise.
32814 * ipa-pure-const.c (propagate_pure_const): Likewise.
32815 (propagate_nothrow): Likewise.
32816 * ipa-reference.c (propagate): Likewise.
32817 * ipa-utils.c (struct searchc_env): Remove unused field.
32818 (searchc): Always search across AVAIL_INTERPOSABLE.
32819 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32820 the only called IPA pure const can properly not propagate
32821 across interposable boundary.
32822 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32823
32824 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32825
32826 * config/nds32/nds32.md (call_internal, call_value_internal,
32827 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32828
32829 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32830
32831 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32832 typo.
32833
32834 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32835
32836 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32837 in comments
32838
32839 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32840
32841 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32842
32843 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32844
32845 PR tree-optimization/89268
32846 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32847 if preds is non-NULL.
32848
32849 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32850
32851 PR lto/89272
32852 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32853 polymorphic types.
32854
32855 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32856
32857 * config/nds32/nds32.md (trap): New pattern.
32858
32859 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32860
32861 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32862 dwarf span.
32863
32864 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32865
32866 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32867 to split POST_INC.
32868
32869 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32870
32871 * ipa-visibility.c (localize_node): Also do not localize
32872 LDPR_PREVAILING_DEF_IRONLY_EXP.
32873
32874 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32875
32876 PR lto/87957
32877 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32878 instead of type_with_linkage.
32879
32880 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32881
32882 PR ipa/88755
32883 * params.def (uninlined-function-insns, uninlined-function-time,
32884 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32885 bound so we don't get overflows.
32886
32887 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32888
32889 * config/rs6000/rs6000-string.c (expand_compare_loop,
32890 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32891 memcmp/strncmp.
32892
32893 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32894
32895 PR middle-end/89246
32896 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32897 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32898 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32899
32900 2019-02-09 Alan Modra <amodra@gmail.com>
32901
32902 PR target/88343
32903 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32904 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32905 setup.
32906
32907 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32908
32909 PR middle-end/88560
32910 * lra-constraints.c (process_alt_operands): Don't increase reject
32911 for memory when offset memory is required.
32912
32913 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32914
32915 * config/s390/vector.md: Implement vector copysign.
32916
32917 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32918
32919 * expr.c (expand_constructor): Correct indentations.
32920
32921 2019-02-08 Richard Biener <rguenther@suse.de>
32922
32923 PR tree-optimization/89247
32924 * tree-if-conv.c: Include tree-cfgcleanup.h.
32925 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32926 (tree_if_conversion): Pass through predicate vector.
32927 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32928 inline, see if any if-converted loops we refrece in
32929 LOOP_VECTORIZED calls vanished and fixup.
32930 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32931
32932 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32933
32934 * config/s390/constraints.md (jdd): New constraint.
32935
32936 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32937
32938 PR target/89229
32939 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32940 upper 16 vector registers without TARGET_AVX512VL.
32941 (*movti_internal): Likewise.
32942
32943 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32944
32945 PR rtl-optimization/89234
32946 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32947 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32948 (copy_reg_eh_region_note_backward): Likewise.
32949
32950 2019-02-08 Richard Biener <rguenther@suse.de>
32951
32952 PR middle-end/89223
32953 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32954 doesn't fit in HWI.
32955 (analyze_subscript_affine_affine): Handle failure from
32956 initialize_matrix_A.
32957
32958 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32959
32960 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32961 cfun everywhere.
32962
32963 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32964
32965 PR tree-optimization/86637
32966 PR tree-optimization/89235
32967 * tree-vect-loop.c (optimize_mask_stores): Add an
32968 auto_purge_vect_location sentinel to ensure that vect_location is
32969 purged on exit.
32970 * tree-vectorizer.c
32971 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32972 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32973 to ensure that vect_location is purged on exit.
32974 (pass_slp_vectorize::execute): Likewise, replacing the manual
32975 reset.
32976 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32977
32978 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32979
32980 * config/aarch64/iterators.md (max_opp): New code_attr.
32981 (USMAX): New code iterator.
32982 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32983 (aarch64_smax): Likewise.
32984 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32985 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32986 MINUS (MAX MIN).
32987
32988 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32989
32990 PR target/89229
32991 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32992 for TARGET_AVX512VL.
32993 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32994
32995 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32996
32997 * config/s390/s390-builtin-types.def: Add new types.
32998 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32999 (s390_vec_xlw4): Make the memory operand into a const pointer.
33000 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
33001 float.
33002 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
33003 a new vector type with the alignment of the scalar memory operand.
33004
33005 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
33006 Jakub Jelinek <jakub@redhat.com>
33007
33008 PR bootstrap/88714
33009 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
33010 arm_count_ldrdstrd_insns): New declarations.
33011 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
33012 MINUS.
33013 (valid_operands_ldrd_strd): New function.
33014 (arm_count_ldrdstrd_insns): New function.
33015 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
33016 sets instead of single DImode set and define new insns to match this.
33017
33018 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33019
33020 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
33021 Make it a C initializer.
33022
33023 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33024
33025 PR/target 88850
33026 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
33027
33028 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33029
33030 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
33031 Use neon_dot<q> for type.
33032 (neon_<sup>dot_lane<vsi2qi>): Likewise.
33033
33034 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33035
33036 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
33037 Use neon_dot<q> for type.
33038 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
33039 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
33040
33041 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
33042
33043 PR rtl-optimization/89225
33044 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
33045 sizes check.
33046
33047 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
33048
33049 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
33050 after restoring registers saved to allocate the frame on Windows.
33051
33052 2019-02-06 Richard Biener <rguenther@suse.de>
33053
33054 PR tree-optimization/89182
33055 * graphite.h (cached_scalar_evolution_in_region): Declare.
33056 * graphite.c (struct seir_cache_key): New.
33057 (struct sese_scev_hash): Likewise.
33058 (seir_cache): New global.
33059 (cached_scalar_evolution_in_region): New function.
33060 (graphite_transform_loops): Allocate and release seir_cache.
33061 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
33062 cached_scalar_evolution_in_region.
33063 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33064 Simplify.
33065 (scop_detection::graphite_can_represent_expr: Use
33066 cached_scalar_evolution_in_region.
33067 (scop_detection::stmt_simple_for_scop_p): Likewise.
33068 (find_params_in_bb): Likewise.
33069 (gather_bbs::before_dom_children): Likewise.
33070 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
33071 (add_loop_constraints): Likewise.
33072
33073 2019-02-06 Jakub Jelinek <jakub@redhat.com>
33074
33075 PR middle-end/89210
33076 * fold-const-call.c (fold_const_vec_convert): Pass true as last
33077 operand to new_unary_operation only if both element types are integral
33078 and it isn't a widening conversion. Return NULL_TREE if
33079 new_unary_operation failed.
33080
33081 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
33082
33083 PR target/88856
33084 * config/s390/s390.md: Remove load and test FP splitter.
33085
33086 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33087
33088 PR target/89112
33089 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
33090 expand_compare_loop, expand_block_compare_gpr,
33091 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
33092 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
33093 #include "profile-count.h" and "predict.h" for types and functions
33094 needed to work with REG_BR_PROB notes.
33095
33096 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33097
33098 PR target/89112
33099 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
33100 for the long branch case.
33101
33102 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33103
33104 PR target/89188
33105 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
33106 can throw, non-call exceptions are enabled and we can't delete
33107 dead exceptions or alter cfg. Set must_clean if
33108 delete_insn_and_edges returns true, don't set it blindly for calls.
33109 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
33110
33111 PR rtl-optimization/89195
33112 * combine.c (make_extraction): For MEMs, don't extract bytes outside
33113 of the original MEM.
33114
33115 2019-02-05 Martin Liska <mliska@suse.cz>
33116
33117 PR gcov-profile/89000
33118 * gcov.c (function_summary): Remove argument.
33119 (file_summary): New function.
33120 (print_usage): Replace tabs with spaces.
33121 (generate_results): Use new function file_summary.
33122
33123 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33124
33125 PR target/89186
33126 * optabs.c (prepare_cmp_insn): Pass x and y to
33127 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
33128
33129 2019-02-05 Richard Biener <rguenther@suse.de>
33130
33131 PR middle-end/89150
33132 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
33133 (struct bitmap_element): Drop chain_prev so we properly recurse on
33134 the prev member, supporting tree views.
33135 (struct bitmap_head): GTY skip the obstack member.
33136
33137 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
33138
33139 PR c/88698
33140 * doc/extend.texi (Vector Extensions): Add an example of using vector
33141 types together with x86 intrinsics.
33142
33143 2019-02-04 Alan Modra <amodra@gmail.com>
33144
33145 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
33146 str[] size to 160, and comment.
33147
33148 2019-02-04 Alan Modra <amodra@gmail.com>
33149
33150 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
33151 (rs6000_pltseq_template): Guard output of TLS markers with
33152 TARGET_TLS_MARKERS.
33153 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
33154 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
33155 to use inline PLT sequences.
33156 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33157 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33158 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
33159
33160 2019-02-04 Martin Liska <mliska@suse.cz>
33161
33162 PR ipa/88985
33163 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
33164 out when ipa_fn_summaries does not contain entry for callee.
33165
33166 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
33167
33168 * config/sparc/sparc.h: Remove superfluous blank lines.
33169 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
33170 (got_register_rtx): ...this.
33171 (sparc_got): Adjust to above renaming.
33172 (sparc_tls_got): Likewise.
33173 (sparc_delegitimize_address): Likewise.
33174 (sparc_output_mi_thunk): Likewise.
33175 (sparc_init_pic_reg): Likewise.
33176 (save_local_or_in_reg_p): Fix test on the GOT register.
33177 (USE_HIDDEN_LINKONCE): Move around.
33178 (get_pc_thunk_name): Likewise.
33179 (gen_load_pcrel_sym): Likewise.
33180 (load_got_register): Likewise.
33181
33182 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
33183
33184 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
33185 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
33186
33187 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33188
33189 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
33190 into consideration.
33191
33192 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33193
33194 * config.gcc (with_nds32_lib, glibc):
33195 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
33196 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
33197 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
33198
33199 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
33200
33201 PR target/89071
33202 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
33203 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
33204 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
33205 (*rcpsf2_sse): Ditto.
33206 (*rsqrtsf2_sse): Ditto.
33207 (sse4_1_round<mode<2): Ditto.
33208
33209 2019-02-03 Richard Biener <rguenther@suse.de>
33210
33211 PR debug/87295
33212 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
33213 orig.
33214
33215 2019-02-02 Jakub Jelinek <jakub@redhat.com>
33216
33217 PR middle-end/87887
33218 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33219 Punt with warning on aggregate return or argument types. Ignore
33220 type/mode checking for uniform arguments.
33221
33222 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
33223
33224 * combine.c (try_combine): Do not print "Can't combine" messages unless
33225 printing failed combination attempts.
33226
33227 2019-02-01 Martin Jambor <mjambor@suse.cz>
33228
33229 PR hsa/87863
33230 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
33231 segment and global segment variables before making them static.
33232
33233 2019-02-01 Martin Jambor <mjambor@suse.cz>
33234
33235 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
33236 missed optimization dump with dump_enabled_p.
33237
33238 2019-02-01 Richard Biener <rguenther@suse.de>
33239
33240 PR middle-end/88597
33241 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
33242 the instantiate cache.
33243 (instantiate_scev_binary): Elide second operand procesing
33244 if equal to the first.
33245 * tree-chrec.c (chrec_contains_symbols): Add visited set.
33246 (chrec_contains_undetermined): Likewise.
33247 (tree_contains_chrecs): Likewise.
33248
33249 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
33250
33251 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
33252
33253 2019-02-01 Jakub Jelinek <jakub@redhat.com>
33254
33255 PR tree-optimization/89143
33256 * wide-int-range.h (wide_int_range_absu): Declare.
33257 * wide-int-range.cc (wide_int_range_absu): New function.
33258 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
33259
33260 PR tree-optimization/88107
33261 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
33262 instead of assertion that eh_region_outermost is non-NULL, if it
33263 is NULL, set *ALL to true and return NULL.
33264 (move_sese_region_to_fn): Adjust caller, if all is set, call
33265 duplicate_eh_regions with NULL region.
33266
33267 2019-02-01 Richard Biener <rguenth@suse.de>
33268
33269 PR rtl-optimization/88593
33270 * mode-switching.c (optimize_mode_switching): Free dominators before
33271 calling cleanup_cfg.
33272
33273 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
33274
33275 PR tree-optimization/88932
33276 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
33277
33278 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33279
33280 PR middle-end/89137
33281 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
33282 bogus clang warning.
33283
33284 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
33285
33286 PR target/89071
33287 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
33288 alternative to avoid partial SSE register stall for TARGET_AVX.
33289 (truncdfsf2): Ditto.
33290 (sse4_1_round<mode>2): Ditto.
33291
33292 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
33293
33294 PR tree-optimization/89008
33295 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
33296 process anything of the form X * 0.
33297
33298 2019-01-31 Richard Biener <rguenther@suse.de>
33299
33300 PR tree-optimization/89135
33301 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
33302 with abnormal preds.
33303
33304 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33305
33306 PR sanitizer/89124
33307 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
33308 always_inline callees into no_sanitize_address callers.
33309
33310 2019-01-31 Richard Biener <rguenther@suse.de>
33311
33312 PR rtl-optimization/89115
33313 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
33314
33315 2019-01-30 Martin Sebor <msebor@redhat.com>
33316
33317 PR other/89106
33318 * doc/extend.texi (cast to a union): Correct and expand.
33319
33320 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
33321
33322 PR rtl-optimization/87246
33323 * lra-constraints.c (simplify_operand_subreg): Reload memory
33324 in subreg if the address became invalid.
33325
33326 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
33327
33328 PR target/87064
33329 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
33330 Disable for little-endian.
33331
33332 2019-01-30 Richard Biener <rguenther@suse.de>
33333
33334 PR rtl-optimization/89115
33335 * opts.c (default_options_optimization): Reduce
33336 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
33337 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
33338 to the default.
33339
33340 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
33341
33342 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
33343 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
33344 type of vector element when vec_extract is implemented by direct
33345 move.
33346
33347 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
33348
33349 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
33350
33351 2019-01-30 Richard Biener <rguenther@suse.de>
33352
33353 PR tree-optimization/89111
33354 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
33355 canonicalization to appropriately sized access types.
33356
33357 2019-01-30 Jakub Jelinek <jakub@redhat.com>
33358
33359 PR c++/89105
33360 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
33361 for arguments to functions that are TU-local and shouldn't be
33362 referenced by assembly.
33363
33364 2019-01-30 Ulrich Drepper <drepper@redhat.com>
33365
33366 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
33367 after '='.
33368
33369 2019-01-29 Martin Sebor <msebor@redhat.com>
33370
33371 PR c/88956
33372 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
33373
33374 2019-01-29 Jakub Jelinek <jakub@redhat.com>
33375
33376 PR c++/66676
33377 PR ipa/89104
33378 * omp-simd-clone.c (simd_clone_clauses_extract)
33379 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
33380 OMP_CLAUSE_ALIGNED_ALIGNMENT.
33381
33382 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
33383
33384 * config.gcc: Force .init_array for ARC.
33385
33386 2019-01-29 Richard Biener <rguenther@suse.de>
33387
33388 PR debug/87295
33389 * dwarf2out.c (collect_skeleton_dies): New helper.
33390 (copy_decls_for_unworthy_types): Call it.
33391 (build_abbrev_table): Assert we do not try to replace
33392 DW_AT_signature refs with local refs.
33393
33394 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33395
33396 PR middle-end/89002
33397 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33398 for lastprivate/linear IV, push gimplify context around gimplify_assign
33399 and, if it needed any temporaries, pop it into a gimple bind around the
33400 sequence.
33401
33402 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33403
33404 * common.opt (-Wattribute-alias): Remove "no-" from name.
33405 Make -Wattribute-alias command line option and
33406 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33407
33408 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33409
33410 PR target/89073
33411 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33412 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33413 x86 ISA options.
33414 (bmi2): Add missing @opindex.
33415 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33416 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
33417 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33418 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33419 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33420 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33421 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33422 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33423 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33424 xsavec, xsaveopt and xsaves options.
33425
33426 2019-01-28 Richard Biener <rguenther@suse.de>
33427
33428 PR debug/89076
33429 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33430 support removal.
33431
33432 2019-01-28 Richard Biener <rguenther@suse.de>
33433
33434 PR tree-optimization/88739
33435 * tree-cfg.c (verify_types_in_gimple_reference): Verify
33436 BIT_FIELD_REFs only are applied to mode-precision operands
33437 when they are integral.
33438 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33439 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33440 BIT_FIELD_REFs of non-mode-precision integral operands.
33441
33442 2019-01-27 Jakub Jelinek <jakub@redhat.com>
33443
33444 PR target/87214
33445 * config/i386/sse.md
33446 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33447 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33448 first constants in pairs are multiples of 2. Formatting fixes.
33449 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33450 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33451 first constants in each quadruple are multiples of 4. Formatting fixes.
33452
33453 2019-01-26 Martin Jambor <mjambor@suse.cz>
33454
33455 PR ipa/88933
33456 * tree-inline.c: Include tree-cfgcleanup.h.
33457 (delete_unreachable_blocks_update_callgraph): Move...
33458 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33459 ...here, make externally visible, make second argument bool, adjust
33460 all callers.
33461 * tree-cfgcleanup.c: Include cgraph.h.
33462 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33463 Declare.
33464 * ipa-prop.c: Include tree-cfgcleanup.h.
33465 (ipcp_transform_function): Call
33466 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33467
33468 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33469
33470 PR rtl-optimization/88846
33471 * ira.c (process_set_for_memref_referenced_p): New.
33472 (memref_referenced_p): Add new param. Use
33473 process_set_for_memref_referenced_p. Add new switch cases.
33474 (memref_used_between_p): Pass new arg to memref_referenced_p.
33475
33476 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33477
33478 PR target/88469
33479 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33480 argument ABI_BREAK. Set to true if the calculated alignment has
33481 changed in gcc-9. Check bit-fields for their base type alignment.
33482 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33483 (aarch64_function_arg_boundary): Likewise.
33484 (aarch64_gimplify_va_arg_expr): Likewise.
33485
33486 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33487
33488 PR middle-end/89037
33489 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33490 instead of accessing TREE_INT_CST_ELT directly.
33491
33492 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33493
33494 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33495 fenv_exceptions description.
33496
33497 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33498
33499 PR rtl-optimization/87763
33500 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33501 Allow SUBREG when matching CC_NZmode compare.
33502
33503 2019-01-25 Richard Biener <rguenther@suse.de>
33504
33505 PR tree-optimization/89049
33506 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33507 Look at the pattern stmt to determine if the stmt is vectorized.
33508
33509 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33510
33511 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33512 (pred_mov<mode>): Handle all-register forms using both a new
33513 alternative and a split.
33514
33515 2019-01-25 Richard Biener <rguenther@suse.de>
33516
33517 PR tree-optimization/86865
33518 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33519 Reject non-do-while loops.
33520
33521 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33522
33523 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33524 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33525 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33526 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33527 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33528 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33529 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33530 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33531 vlogical_operand, gpc_reg_operand, int_reg_operand,
33532 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33533 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33534 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33535 (save_world_operation, restore_world_operation, lmw_operation,
33536 stmw_operation): Use MEM_P and REG_P.
33537 (tie_operand): Use MEM_P.
33538 (vrsave_operation, crsave_operation): Use REG_P.
33539 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33540 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33541 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33542 (call_operand): Use HARD_REGISTER_P.
33543 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33544 Use CONST_INT_P.
33545 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33546 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33547 quad_aligned_load_p, replace_swapped_aligned_store,
33548 recombine_lvx_pattern, replace_swapped_aligned_load,
33549 recombine_stvx_pattern): Use MEM_P.
33550 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33551 Use MEM_P and SYMBOL_REF_P.
33552 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33553 (insn_is_swappable_p): Use REG_P and MEM_P.
33554 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33555 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33556 Use CONST_INT_P.
33557 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33558 Use CONST_DOUBLE_P.
33559 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33560 CONST_WIDE_INT_P.
33561 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33562 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33563 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33564 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33565 reg_or_subregno:
33566 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33567 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33568 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33569 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33570 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33571 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33572 rs6000_split_logical_di): Use CONST_INT_P.
33573 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33574 REG_P and SYMBOL_REF_P.
33575 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33576 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33577 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33578 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33579 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33580 (small_data_operand, print_operand_address): Use CONST_INT_P and
33581 SYMBOL_REF_P.
33582 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33583 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33584 Use HARD_REGISTER_NUM_P.
33585 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33586 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33587 SUBREG_P and SYMBOL_REF_P.
33588 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33589 and HARD_REGISTER_NUM_P.
33590 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33591 reg_or_subregno.
33592 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33593 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33594 MEM_P and REG_P.
33595 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33596 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33597 find_addr_reg): Use REG_P.
33598 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33599 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33600 (offsettable_ok_by_alignment, constant_pool_expr_p,
33601 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33602 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33603 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33604 rs6000_assemble_integer, create_TOC_reference,
33605 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33606 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33607 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33608 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33609 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33610 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33611 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33612 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33613 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33614 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33615 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33616 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33617 and cbranch<mode>4): Use CONST_INT_P.
33618 (multiple define_splits): Use REG_P and SUBREG_P.
33619 (define_expands call, call_value): Use MEM_P.
33620 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33621 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33622 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33623 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33624 and HARD_REGISTER_NUM_P.
33625 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33626
33627 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33628
33629 PR rtl-optimization/88948
33630 * rtl.h (prepare_copy_insn): New prototype.
33631 * gcse.c (prepare_copy_insn): New function, split out from
33632 process_insert_insn.
33633 (process_insert_insn): Use prepare_copy_insn.
33634 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33635 instead of gen_move_insn.
33636
33637 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33638
33639 PR debug/89006
33640 * config/i386/i386.c (ix86_pic_register_p): Return true for
33641 UNSPEC_SET_GOT too.
33642
33643 PR tree-optimization/88964
33644 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33645 punt if HONOR_SNANS (chrec).
33646
33647 PR middle-end/89015
33648 * tree-nested.c (convert_nonlocal_reference_stmt,
33649 convert_local_reference_stmt, convert_tramp_reference_stmt,
33650 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33651 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33652 or GIMPLE_OMP_TASK.
33653
33654 PR tree-optimization/89027
33655 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33656 for "omp simd array" variables.
33657
33658 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33659
33660 PR target/88469
33661 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33662 force the alignment of m_val.
33663
33664 2019-01-24 Richard Biener <rguenther@suse.de>
33665
33666 PR lto/87187
33667 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33668 When in "legacy" debug mode make sure to reset self-origins.
33669
33670 2019-01-24 Martin Liska <mliska@suse.cz>
33671
33672 PR gcov-profile/88994
33673 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33674 result will be always smaller or equal to the original.
33675 * gcov.c (mangle_name): Fix else branch where we should
33676 also copy to PTR and shift the pointer.
33677
33678 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33679
33680 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33681 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33682
33683 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33684
33685 * common/config/i386/i386-common.c
33686 (OPTION_MASK_ISA_ENQCMD_SET,
33687 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33688 (ix86_handle_option): Handle -menqcmd.
33689 * config.gcc (enqcmdintrin.h): New header file.
33690 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33691 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33692 -menqcmd.
33693 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33694 function type.
33695 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33696 __builtin_ia32_enqcmds): New builtins.
33697 * config/i386/i386-c.c (__ENQCMD__): New macro.
33698 * config/i386/i386-option.c (ix86_target_string): Add
33699 -menqcmd.
33700 (ix86_valid_target_attribute_inner_p): Likewise.
33701 * config/i386/i386-expand.c
33702 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33703 IX86_BUILTIN_ENQCMDS.
33704 * config/i386/i386.h (TARGET_ENQCMD): New.
33705 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33706 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33707 (movdir64b_<mode>): Parameterize to enable share expansion code
33708 with ENQCMD in function ix86_expand_builtin.
33709 * config/i386/i386.opt: Add -menqcmd.
33710 * config/i386/immintrin.h: Include enqcmdintrin.h.
33711 * config/i386/enqcmdintrin.h: New intrinsic file.
33712 * doc/invoke.texi: Add -menqcmd.
33713
33714 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33715 Steve Ellcey <sellcey@marvell.com>
33716
33717 PR target/85711
33718 * recog.c (address_operand): Return false on wrong mode for address.
33719 (constrain_operands): Check for mode with 'p' constraint.
33720
33721 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33722
33723 PR target/88998
33724 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33725 Disparage MMX alternative.
33726 (sse2_cvtpd2pi): Ditto.
33727 (sse2_cvttpd2pi): Ditto.
33728
33729 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33730
33731 PR driver/89014
33732 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33733 use-after-free of the result of
33734 aarch64_get_extension_string_for_isa_flags.
33735
33736 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33737
33738 PR c/44715
33739 * doc/extend.texi: Document break and continue behavior in
33740 statement expressions.
33741
33742 2019-01-23 Richard Biener <rguenther@suse.de>
33743
33744 PR tree-optimization/89008
33745 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33746 not leave another stray operand.
33747
33748 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33749
33750 * BASE-VER: Bump to 9.0.1.
33751
33752 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33753
33754 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33755 thunk that returns by reference, use the type of the return object
33756 of the thunk instead of that of the alias to build the dereference.
33757
33758 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33759
33760 * config/arc/atomic.md: Add operand to DMB instruction.
33761
33762 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33763
33764 PR tree-optimization/88964
33765 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33766 build_zero_cst instead of build_int_cst. Return false for loop
33767 invariants which honor signed zeros.
33768
33769 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33770
33771 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33772
33773 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33774
33775 PR target/88965
33776 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33777 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33778 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33779
33780 PR middle-end/88968
33781 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33782 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33783
33784 PR target/87064
33785 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33786 Disable for little endian.
33787
33788 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33789
33790 PR target/88469
33791 * config/arm/arm.c (arm_needs_double_word_align): Check
33792 DECL_BIT_FIELD_TYPE.
33793
33794 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33795 H.J. Lu <hongjiu.lu@intel.com>
33796
33797 PR target/88909
33798 * config/i386/i386-builtin.def: Add mask2 to all builtin
33799 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33800 SPECIAL_ARGS.
33801 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33802 (BDESC_FIRST): Likewise.
33803 (define_builtin): Add an argument for mask2. Updated to handle
33804 both ix86_isa_flags and ix86_isa_flags2.
33805 (define_builtin_const): Likewise.
33806 (define_builtin_pure): Likewise.
33807 (define_builtin2): Deleted.
33808 (define_builtin_const2): Likewise.
33809 (builtin_description): Add a member, mask2.
33810 (bdesc_*): Add mask2 to builtin initializations.
33811 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33812 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33813 support.
33814 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33815
33816 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33817
33818 PR target/88954
33819 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33820 noplt attribute.
33821
33822 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33823
33824 PR target/88469
33825 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33826 alignment is dominated by a bitfield with 64-bit aligned base type.
33827 (arm_function_arg): Emit a warning if the alignment has changed since
33828 earlier GCC releases.
33829 (arm_function_arg_boundary): Likewise.
33830 (arm_setup_incoming_varargs): Likewise.
33831
33832 2019-01-22 Richard Biener <rguenther@suse.de>
33833
33834 PR tree-optimization/88862
33835 * graphite-scop-detection.c
33836 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33837
33838 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33839
33840 * doc/extend.tex (AMD GCN Function Attributes): New section.
33841 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33842 * doc/invoke.texi (AMD GCN Options): New section.
33843 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33844
33845 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33846
33847 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33848 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33849
33850 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33851
33852 PR tree-optimization/88044
33853 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33854 is false in the first iteration, but !every_iteration, return false
33855 instead of true with niter->niter zero.
33856
33857 PR rtl-optimization/88904
33858 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33859 any nonequal registers before processing BB_END (b).
33860
33861 PR target/88905
33862 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33863 GET_MODE (op0).
33864 (expand_binop_directly, expand_doubleword_clz,
33865 expand_doubleword_popcount, expand_ctz, expand_ffs,
33866 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33867
33868 PR rtl-optimization/49429
33869 PR target/49454
33870 PR rtl-optimization/86334
33871 PR target/88906
33872 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33873 addressable from here...
33874 (emit_block_op_via_libcall): ... to here.
33875
33876 2019-01-22 Richard Biener <rguenther@suse.de>
33877
33878 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33879 auto_vec for cost vector to fix memleak.
33880 (vectorize_fold_left_reduction): Properly gather SLP defs.
33881 (vectorizable_comparison): Do not swap operands to properly
33882 gather SLP defs.
33883
33884 2019-01-22 Alan Modra <amodra@gmail.com>
33885
33886 PR target/88614
33887 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33888 stays a reg. Allow a const_int.
33889 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33890 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33891 (IS_NOMARK_TLSGETADDR): Define.
33892 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33893 (rs6000_output_tlsargs): New function.
33894 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33895 __tls_get_addr call takes an arg.
33896 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33897 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33898 delete split..
33899 (call_value_nonlocal_sysv): ..or here, delete split.
33900 (tls_gdld_nomark): Delete.
33901 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33902 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33903 (call_value_nonlocal_sysv): Likewise.
33904 (call_value_nonlocal_sysv_secure): Likewise.
33905 (call_value_nonlocal_aix): Likewise.
33906 (call_value_indirect_aix): Likewise.
33907 (call_value_indirect_elfv2): Likewise.
33908 (call_value_local32, call_value_local64): Disable for no-mark tls.
33909 (call_value_local_aix): Likewise.
33910
33911 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33912
33913 PR target/88938
33914 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33915 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33916
33917 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33918
33919 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33920 string contents as hash_map keys.
33921
33922 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33923
33924 PR c/88928
33925 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33926 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33927 instead of TYPE_ALIGN.
33928 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33929 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33930 pointer from TYPE_STUB_DECL.
33931
33932 2019-01-21 Richard Biener <rguenther@suse.de>
33933
33934 PR tree-optimization/88934
33935 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33936 at the possibly non-constant operand.
33937 (vect_get_constant_vectors): Adjust.
33938
33939 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33940
33941 PR target/71659
33942 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33943 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33944 instead of _X86INTRIN_H_INCLUDED.
33945 * onfig/i386/clwbintrin.h: Likewise.
33946 * config/i386/pkuintrin.h: Likewise.
33947 * config/i386/prfchwintrin.h: Likewise.
33948 * config/i386/rdseedintrin.h: Likewise.
33949 * config/i386/wbnoinvdintrin.h: Likewise.
33950 * config/i386/xsavecintrin.h: Likewise.
33951 * config/i386/xsavesintrin.h: Likewise.
33952 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33953 * config/i386/xsaveintrin.h: Likewise.
33954 * config/i386/xsaveoptintrin.h: Likewise.
33955 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33956 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33957 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33958 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33959 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33960 * config/i386/immintrin.h: Here.
33961
33962 2019-01-20 Martin Jambor <mjambor@suse.cz>
33963
33964 PR ipa/87615
33965 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33966 with aa_walk_budget.
33967 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33968 aa_walk_budget_p parameter.
33969 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33970 walk. Updated all callers.
33971 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33972 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33973 unmodified_parm.
33974 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33975 parameter info. Extract info from fbi. Pass fbi to recursive calls
33976 and to unmodified_parm.
33977 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33978 info, updated call to will_be_nonconstant_expr_predicate.
33979 (param_change_prob): New parameter fbi, limit AA walking.
33980 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33981 calls to various above functions.
33982 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33983 parameter. Use it to limit AA walking.
33984 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33985 fbi, limit AA walk.
33986 (detect_type_change): New parameter fbi, pass it on to
33987 detect_type_change_from_memory_writes.
33988 (detect_type_change_ssa): Likewise.
33989 (aa_overwalked): Removed.
33990 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33991 accordingly, adjust to the neew AA limiting scheme.
33992 (parm_ref_data_preserved_p): Likewise.
33993 (ipa_compute_jump_functions_for_edge): Adjust call to
33994 get_dynamic_type.
33995 (ipa_analyze_call_uses): Likewise.
33996 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33997 (ipa_analyze_node): Initialize aa_walk_budget.
33998 (ipcp_transform_function): Likewise.
33999 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
34000 to get_dynamic_type.
34001
34002 2019-01-19 Jakub Jelinek <jakub@redhat.com>
34003
34004 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
34005 outside of #if CHECKING_P code.
34006
34007 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
34008
34009 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
34010 New function, split out from...
34011 (loop_versioning::analyze_stride): ...here.
34012 (loop_versioning::find_per_loop_multiplication): Use gassign.
34013 (loop_versioning::analyze_term_using_scevs): Return a success code.
34014 (loop_versioning::analyze_arbitrary_term): New function.
34015 (loop_versioning::analyze_address_fragment): Use
34016 analyze_arbitrary_term if all else fails.
34017
34018 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
34019
34020 PR target/88892
34021 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
34022 operands.
34023
34024 2019-01-18 Richard Biener <rguenther@suse.de>
34025
34026 PR tree-optimization/88903
34027 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
34028 scalar stmts a SLP shift amount is composed of when detecting
34029 shifts by scalars.
34030
34031 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
34032
34033 PR target/88799
34034 * config/arm/arm-cpus.in (mp): New feature.
34035 (sec): New feature.
34036 (fgroup ARMv7ve): Add mp and sec features.
34037 (arch armv7-a): Add options to allow mp and sec extensions.
34038 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
34039 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
34040 extenstions to the base architecture.
34041 (cpu cortex-a8): Add sec extension to the base architecture.
34042 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
34043 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
34044 variants down to the base v7-a varaint.
34045 * config/arm/t-multilib (v7_a_arch_variants): New variable.
34046 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
34047 of permitted extensions for -march=armv7-a and for
34048 -mcpu=generic-armv7-a.
34049
34050 2019-01-18 Martin Liska <mliska@suse.cz>
34051
34052 * params.def: Fix comment.
34053 * tree-profile.c (gimple_init_gcov_profiler): Bump function
34054 name.
34055 (gimple_gen_ic_func_profiler): Likewise.
34056
34057 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34058
34059 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
34060 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
34061 and put in error checks for stack protector guard options.
34062 (aarch64_stack_protect_guard): New.
34063 (TARGET_STACK_PROTECT_GUARD): Define.
34064 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
34065 (reg_stack_protect_address<mode>): New.
34066 (stack_protect_set): Adjust for SSP_GLOBAL.
34067 (stack_protect_test): Likewise.
34068 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
34069 (-mstack-protector-guard): Likewise.
34070 (-mstack-protector-guard-offset): Likewise.
34071
34072 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34073
34074 PR tree-optimization/86214
34075 * tree-inline.h (struct copy_body_data): Add
34076 add_clobbers_to_eh_landing_pads member.
34077 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
34078 (copy_edges_for_bb): Call it if EH edge destination is <
34079 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
34080 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
34081 if flag_stack_reuse != SR_NONE and clear it afterwards.
34082
34083 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
34084
34085 PR target/85596
34086 * doc/install.texi (with-multilib-list): Document for aarch64.
34087
34088 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34089
34090 PR target/88734
34091 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
34092 (("..."))) with ("...").
34093
34094 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
34095
34096 * doc/extend.texi (Built-in Functions for Memory Model Aware
34097 Atomic Operations): Document atomic fetch and nand.
34098
34099 2019-01-18 Martin Liska <mliska@suse.cz>
34100 Richard Biener <rguenther@suse.de>
34101
34102 PR middle-end/88587
34103 * cgraph.h (create_version_clone_with_body): Add new argument
34104 with attributes.
34105 * cgraphclones.c (cgraph_node::create_version_clone): Add
34106 DECL_ATTRIBUTES to a newly created decl. And call
34107 valid_attribute_p so that proper cl_target_optimization_node
34108 is set for the newly created declaration.
34109 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
34110 for declaration.
34111 (expand_target_clones): Do not call valid_attribute_p, it must
34112 be already done.
34113 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
34114 vector types.
34115
34116 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34117
34118 PR target/88734
34119 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
34120 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
34121 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
34122
34123 2019-01-17 Martin Sebor <msebor@redhat.com>
34124
34125 PR middle-end/88273
34126 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
34127 Handle anti-ranges the same as no range at all.
34128
34129 2018-01-17 Steve Ellcey <sellcey@cavium.com>
34130
34131 * config/aarch64/aarch64.c (cgraph.h): New include.
34132 (intl.h): New include.
34133 (supported_simd_type): New function.
34134 (currently_supported_simd_type): Ditto.
34135 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
34136 (aarch64_simd_clone_adjust): Ditto.
34137 (aarch64_simd_clone_usable): Ditto.
34138 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
34139 (TARGET_SIMD_CLONE_ADJUST): Ditto.
34140 (TARGET_SIMD_CLONE_USABLE): Ditto.
34141 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
34142 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
34143 call.
34144
34145 2019-01-17 Martin Sebor <msebor@redhat.com>
34146
34147 PR tree-optimization/88800
34148 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
34149 NO_WARNING bit here. Avoid folding out-of-bounds calls.
34150 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
34151 redundant argument. Add new argument and issue diagnostics under
34152 its control. Detect out-of-bounds access even with warnings
34153 disabled.
34154 (check_bounds_or_overlap): Change return type. Add argument.
34155 (wrestrict_dom_walker::check_call): Adjust.
34156 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
34157 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
34158 check_bounds_or_overlap's return value.
34159 (handle_builtin_stxncpy): Same.
34160 (handle_builtin_strcat): Same.
34161
34162 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34163 Kwok Cheung Yeung <kcy@codesourcery.com>
34164 Julian Brown <julian@codesourcery.com>
34165 Tom de Vries <tom@codesourcery.com>
34166
34167 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
34168
34169 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34170
34171 * doc/sourcebuild.texi: Document dg-require-effective-target
34172 llvm_binutils and offload_gcn.
34173
34174 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34175 Kwok Cheung Yeung <kcy@codesourcery.com>
34176 Julian Brown <julian@codesourcery.com>
34177 Tom de Vries <tom@codesourcery.com>
34178
34179 * doc/sourcebuild.texi: Document dg-required-effective-target
34180 exceptions.
34181
34182 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34183 Kwok Cheung Yeung <kcy@codesourcery.com>
34184 Julian Brown <julian@codesourcery.com>
34185 Tom de Vries <tom@codesourcery.com>
34186 Jan Hubicka <hubicka@ucw.cz>
34187 Martin Jambor <mjambor@suse.cz>
34188
34189 * config.gcc: Add amdgcn*-*-amdhsa configuration.
34190 * configure.ac: Check for dlopen.
34191 * configure: Regenerate.
34192
34193 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34194 Kwok Cheung Yeung <kcy@codesourcery.com>
34195 Julian Brown <julian@codesourcery.com>
34196 Tom de Vries <tom@codesourcery.com>
34197 Jan Hubicka <hubicka@ucw.cz>
34198 Martin Jambor <mjambor@suse.cz>
34199
34200 * common/config/gcn/gcn-common.c: New file.
34201 * config/gcn/driver-gcn.c: New file.
34202 * config/gcn/gcn-builtins.def: New file.
34203 * config/gcn/gcn-hsa.h: New file.
34204 * config/gcn/gcn-modes.def: New file.
34205 * config/gcn/gcn-opts.h: New file.
34206 * config/gcn/gcn-passes.def: New file.
34207 * config/gcn/gcn-protos.h: New file.
34208 * config/gcn/gcn-run.c: New file.
34209 * config/gcn/gcn-tree.c: New file.
34210 * config/gcn/gcn.c: New file.
34211 * config/gcn/gcn.h: New file.
34212 * config/gcn/gcn.opt: New file.
34213 * config/gcn/t-gcn-hsa: New file.
34214
34215 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34216 Kwok Cheung Yeung <kcy@codesourcery.com>
34217 Julian Brown <julian@codesourcery.com>
34218 Tom de Vries <tom@codesourcery.com>
34219 Jan Hubicka <hubicka@ucw.cz>
34220 Martin Jambor <mjambor@suse.cz>
34221
34222 * config/gcn/constraints.md: New file.
34223 * config/gcn/gcn-valu.md: New file.
34224 * config/gcn/gcn.md: New file.
34225 * config/gcn/predicates.md: New file.
34226
34227 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
34228
34229 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
34230 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
34231 (stmt_uses_0_or_null_in_undefined_way): Likewise.
34232 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
34233
34234 2019-01-17 Tamar Christina <tamar.christina@arm.com>
34235
34236 PR target/88851
34237 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
34238 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
34239 it and document registers.
34240
34241 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34242
34243 * config/aarch64/aarch64.c (ares_tunings): Define.
34244 * config/aarch64/aarch64-cores.def (ares): Use the above.
34245
34246 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34247
34248 PR target/88794
34249 Revert:
34250 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
34251
34252 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
34253 (_mm512_fixupimm_round_pd): Update parameters and builtin.
34254 (_mm512_maskz_fixupimm_round_pd): Ditto.
34255 (_mm512_fixupimm_round_ps): Ditto.
34256 (_mm512_maskz_fixupimm_round_ps): Ditto.
34257 (_mm_fixupimm_round_sd): Ditto.
34258 (_mm_maskz_fixupimm_round_sd): Ditto.
34259 (_mm_fixupimm_round_ss): Ditto.
34260 (_mm_maskz_fixupimm_round_ss): Ditto.
34261 (_mm512_fixupimm_pd): Ditto.
34262 (_mm512_maskz_fixupimm_pd): Ditto.
34263 (_mm512_fixupimm_ps): Ditto.
34264 (_mm512_maskz_fixupimm_ps): Ditto.
34265 (_mm_fixupimm_sd): Ditto.
34266 (_mm_maskz_fixupimm_sd): Ditto.
34267 (_mm_fixupimm_ss): Ditto.
34268 (_mm_maskz_fixupimm_ss): Ditto.
34269 (_mm512_mask_fixupimm_round_pd): Update builtin.
34270 (_mm512_mask_fixupimm_round_ps): Ditto.
34271 (_mm_mask_fixupimm_round_sd): Ditto.
34272 (_mm_mask_fixupimm_round_ss): Ditto.
34273 (_mm512_mask_fixupimm_pd): Ditto.
34274 (_mm512_mask_fixupimm_ps): Ditto.
34275 (_mm_mask_fixupimm_sd): Ditto.
34276 (_mm_mask_fixupimm_ss): Ditto.
34277 * config/i386/avx512vlintrin.h:
34278 (_mm256_fixupimm_pd): Update parameters and builtin.
34279 (_mm256_maskz_fixupimm_pd): Ditto.
34280 (_mm256_fixupimm_ps): Ditto.
34281 (_mm256_maskz_fixupimm_ps): Ditto.
34282 (_mm_fixupimm_pd): Ditto.
34283 (_mm_maskz_fixupimm_pd): Ditto.
34284 (_mm_fixupimm_ps): Ditto.
34285 (_mm_maskz_fixupimm_ps): Ditto.
34286 (_mm256_mask_fixupimm_pd): Update builtin.
34287 (_mm256_mask_fixupimm_ps): Ditto.
34288 (_mm_mask_fixupimm_pd): Ditto.
34289 (_mm_mask_fixupimm_ps): Ditto.
34290 * config/i386/i386-builtin-types.def: Add new types and remove
34291 useless ones.
34292 * config/i386/i386-builtin.def: Update builtin definitions.
34293 * config/i386/i386.c: Handle new builtin types and remove useless ones.
34294 * config/i386/sse.md: Update VFIXUPIMM* patterns.
34295 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34296 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34297 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
34298 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34299 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34300 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
34301 * config/i386/subst.md:
34302 (round_saeonly_sd_mask_operand4): Add new subst_attr.
34303 (round_saeonly_sd_mask_op4): Ditto.
34304 (round_saeonly_expand_operand5): Ditto.
34305 (round_saeonly_expand): Update.
34306
34307 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34308
34309 PR target/88794
34310 Revert:
34311 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
34312
34313 * config/i386/sse.md: Combine VFIXUPIMM* patterns
34314 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34315 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34316 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
34317 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34318 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34319 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
34320
34321 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34322
34323 PR target/88794
34324 Revert:
34325 2018-12-15 Jakub Jelinek <jakub@redhat.com>
34326
34327 PR target/88489
34328 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
34329 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
34330 instead of UNSPEC_FIXUPIMM.
34331
34332 2019-01-17 Richard Biener <rguenther@suse.de>
34333
34334 PR lto/86736
34335 * dwarf2out.c (want_pubnames): Never generate pubnames sections
34336 and friends for the LTO part of debug info.
34337
34338 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34339
34340 PR tree-optimization/86214
34341 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
34342 if x == y.
34343
34344 PR rtl-optimization/88870
34345 * dce.c (deletable_insn_p): Never delete const/pure calls that can
34346 throw if we can't alter the cfg or delete dead exceptions.
34347 (mark_insn): Don't call find_call_stack_args for such calls.
34348
34349 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
34350
34351 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
34352 prototypes for vec_st.
34353 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
34354 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
34355 mainly on signed/unsigned long long and double.
34356
34357 2019-01-16 David Malcolm <dmalcolm@redhat.com>
34358
34359 PR target/88861
34360 * combine.c (delete_noop_moves): Convert to "bool" return,
34361 returning true if any edges are eliminated.
34362 (combine_instructions): Also return true if delete_noop_moves
34363 returns true.
34364
34365 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34366
34367 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
34368 correct max nunits for endian swap.
34369 (aarch64_expand_fcmla_builtin): Correct subreg code.
34370 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34371 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
34372 lane endianness.
34373
34374 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
34375
34376 * config/alpha/alpha.c (alpha_gimplify_va_arg):
34377 Handle split indirect COMPLEX_TYPE arguments.
34378
34379 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
34380
34381 PR target/86891
34382 * config/aarch64/aarch64-modes.def: Add comment about how the carry
34383 bit is set by add and compare.
34384 (CC_ADC): New CC_MODE.
34385 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34386 to cache the code and mode of X. Adjust the shape of a CC_Cmode
34387 comparison. Add detection for CC_ADCmode.
34388 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
34389 CC_ADCmode.
34390 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34391 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34392 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
34393 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
34394 to eliminate the need for zero-extending the operands.
34395 (add<mode>3_compareC_imm): Delete. Merge into ...
34396 (add<mode>3_compareC): ... this. Restructure the comparison to
34397 eliminate the need for zero-extending the operands.
34398 (add<mode>3_carryin): Use LTU for the overflow detection.
34399 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34400 Reexpress comparison for overflow.
34401 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34402 (add<mode>3_carryinC): Likewise.
34403 (add<mode>3_carryinV): Use LTU for carry between partials.
34404 * config/aarch64/predicates.md (aarch64_carry_operation): Update
34405 handling of CC_Cmode and add CC_ADCmode.
34406 (aarch64_borrow_operation): Likewise.
34407
34408 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34409
34410 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34411 Remove patternmode.
34412 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34413 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34414 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34415 Remove endianness conversion.
34416
34417 2019-01-16 Martin Liska <mliska@suse.cz>
34418
34419 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34420 for GCC driver.
34421 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34422 a new argument.
34423 * gcc.c (add_sysrooted_hdrs_prefix): New function.
34424 (path_prefix_reset): Move up in the source file.
34425 (find_fortran_preinclude_file): Make complex search for the
34426 fortran header files.
34427
34428 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
34429
34430 * godump.c (go_output_typedef): When outputting a typedef, refer
34431 to the underlying type by its name and not its structure.
34432
34433 2019-01-15 David Malcolm <dmalcolm@redhat.com>
34434
34435 PR c++/88795
34436 * tree.c (build_function_type): Assert that arg_types is not
34437 error_mark_node.
34438
34439 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
34440
34441 PR inline-asm/52813
34442 * doc/extend.texi: Document that listing the stack pointer in the
34443 clobber list of an asm is a deprecated feature.
34444 * common.opt (Wdeprecated): Moved from c-family/c.opt.
34445 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34446 warning instead of an error for clobbers of the stack pointer.
34447 Add a note explaining why.
34448
34449 2019-01-15 Richard Biener <rguenther@suse.de>
34450
34451 PR debug/88046
34452 * dwarf2out.c (gen_member_die): Do not generate inheritance
34453 DIEs late.
34454
34455 2019-01-15 Richard Biener <rguenther@suse.de>
34456
34457 PR tree-optimization/88855
34458 * tree-if-conv.c (combine_blocks): Collect
34459 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34460
34461 2019-01-15 Tom de Vries <tdevries@suse.de>
34462
34463 PR target/80547
34464 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34465 lhs == NULL_TREE for gang-level reduction.
34466
34467 2019-01-15 Richard Biener <rguenther@suse.de>
34468 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34469
34470 PR ipa/88788
34471 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34472 return true if SSA_NAME is already marked in visited bitmap.
34473 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34474
34475 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34476
34477 PR tree-optimization/88775
34478 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34479 equal == 0 equality pointer comparisons some more if compared in
34480 integral types and either one points to an automatic var and the
34481 other to a global, or we can prove at least one points to the middle
34482 or both point to start or both point to end.
34483
34484 2019-01-14 Andi Kleen <ak@linux.intel.com>
34485
34486 * Makefile.in: Lower autofdo sampling rate by 10x.
34487 * Makefile.tpl: Dito.
34488
34489 2019-01-14 Tom Honermann <tom@honermann.net>
34490
34491 * defaults.h: Define CHAR8_TYPE.
34492
34493 2019-01-14 Martin Sebor <msebor@redhat.com>
34494
34495 PR target/88638
34496 * doc/extend.texi (Darwin Format Checks): Clarify.
34497
34498 2019-01-14 Richard Biener <rguenther@suse.de>
34499
34500 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34501 whether we are in (simplify ...) or (match ...) context.
34502
34503 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34504
34505 PR rtl-optimization/88796
34506 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34507 * cfgexpand.c (stack_protect_prologue): Initialize
34508 crtl->stack_protect_guard_decl.
34509 * function.c (stack_protect_epilogue): Use it instead of calling
34510 targetm.stack_protect_guard again.
34511 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34512 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34513 crtl->stack_protect_guard_decl.
34514 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34515 on the returned MEM_EXPR.
34516
34517 2019-01-12 Tom de Vries <tdevries@suse.de>
34518
34519 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34520 vector length using -fopenacc-dim.
34521
34522 2019-01-12 Tom de Vries <tdevries@suse.de>
34523
34524 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34525 lengths into account.
34526
34527 2019-01-12 Svante Signell <svante.signell@gmail.com>
34528
34529 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34530 (TARGET_CAN_SPLIT_STACK): Define.
34531 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34532
34533 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34534
34535 * params.def (inline-unit-growth): Set to 40.
34536
34537 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34538
34539 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34540
34541 2019-01-12 Tom de Vries <tdevries@suse.de>
34542
34543 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34544 region calling vector-partitionable routine, set default_vector_length
34545 to WARP_SIZE.
34546
34547 2019-01-12 Tom de Vries <tdevries@suse.de>
34548
34549 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34550 variable default_vector_length.
34551
34552 2019-01-12 Tom de Vries <tdevries@suse.de>
34553
34554 PR middle-end/88703
34555 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34556 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34557 dimensions limits.
34558
34559 2019-01-12 Tom de Vries <tdevries@suse.de>
34560
34561 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34562 (nvptx_goacc_validate_dims): Add used parameter.
34563 * doc/tm.texi: Regenerate.
34564 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34565 argument to call to targetm.goacc.validate_dims.
34566 (default_goacc_validate_dims): Add used
34567 parameter.
34568 * target.def (validate_dims): Add used parameter in DEFHOOK.
34569 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34570
34571 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34572
34573 PR middle-end/85956
34574 PR lto/88733
34575 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34576 field.
34577 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34578 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34579 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34580 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34581
34582 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34583
34584 PR rtl-optimization/87305
34585 * lra-assigns.c
34586 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34587 for little endian pseudos used as paradoxical subreg.
34588
34589 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34590
34591 PR tree-optimization/88693
34592 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34593 for STRING_CSTs that don't contain any NUL characters in the first
34594 TREE_STRING_LENGTH bytes.
34595
34596 2019-01-11 Alan Modra <amodra@gmail.com>
34597
34598 PR 88777
34599 PR 88614
34600 * genattrtab.c (min_fn): Don't translate values.
34601 (min_attr_value): Return INT_MAX when the value can't be calculated.
34602 Return minimum among any values that can be calculated.
34603 (max_attr_value): Adjust.
34604
34605 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34606
34607 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34608
34609 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34610
34611 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34612 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34613 (aarch64_return_call_with_max_clobbers): New function.
34614 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34615 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34616 argument.
34617 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34618 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34619 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34620 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34621 * cselib.c (cselib_process_insn): Add argument to
34622 targetm.hard_regno_call_part_clobbered call.
34623 * ira-conflicts.c (ira_build_conflicts): Ditto.
34624 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34625 * lra-constraints.c (inherit_reload_reg): Ditto.
34626 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34627 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34628 argument. Call targetm.return_call_with_max_clobbers.
34629 Add argument to targetm.hard_regno_call_part_clobbered call.
34630 (calls_have_same_clobbers_p): New function.
34631 (process_bb_lives): Add call_insn and last_call_insn variables.
34632 Pass call_insn to check_pseudos_live_through_calls.
34633 Modify if stmt to check targetm.return_call_with_max_clobbers.
34634 Update setting of flush variable.
34635 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34636 to false.
34637 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34638 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34639 targetm.hard_regno_call_part_clobbered call.
34640 * reginfo.c (choose_hard_reg_mode): Ditto.
34641 * regrename.c (check_new_reg_p): Ditto.
34642 * reload.c (find_equiv_reg): Ditto.
34643 * reload1.c (emit_reload_insns): Ditto.
34644 * sched-deps.c (deps_analyze_insn): Ditto.
34645 * sel-sched.c (init_regs_for_mode): Ditto.
34646 (mark_unavailable_hard_regs): Ditto.
34647 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34648 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34649 (return_call_with_max_clobbers): New target function.
34650 * doc/tm.texi: Regenerate.
34651 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34652 * hooks.c (hook_bool_uint_mode_false): Change to
34653 hook_bool_insn_uint_mode_false.
34654 * hooks.h (hook_bool_uint_mode_false): Ditto.
34655
34656 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34657
34658 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34659 (aarch64_remove_extra_call_preserved_regs): New function.
34660 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34661 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34662 * doc/tm.texi: Regenerate.
34663 * final.c (get_call_reg_set_usage): Call new hook.
34664 * target.def (remove_extra_call_preserved_regs): New hook.
34665 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34666 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34667
34668 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34669
34670 PR bootstrap/88714
34671 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34672 inside of pass_combine_1 dump rather than pass_profile_1.
34673
34674 2019-01-11 Tom de Vries <tdevries@suse.de>
34675
34676 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34677 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34678 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34679 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34680 num_workers 16.
34681
34682 2019-01-11 Tom de Vries <tdevries@suse.de>
34683
34684 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34685
34686 2019-01-11 Jan Beulich <jbeulich@suse.com>
34687
34688 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34689 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34690 sse2_cvtsi2sd): Add {l}.
34691 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34692 syntax.
34693
34694 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34695
34696 PR target/88785
34697 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34698 define_expand.
34699 (*float<floatunssuffix>v2div2sf2): New define_insn.
34700 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34701 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34702 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34703 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34704 match_operands with "const0_operand" "C".
34705
34706 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34707
34708 * config/aarch64/aarch64-builtins.c
34709 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34710 (aarch64_init_simd_builtins): ...Here
34711
34712 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34713
34714 PR rtl-optimization/87305
34715 * lra-assigns.c
34716 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34717 allocation for big endian pseudos used as paradoxical subregs and
34718 spill them if it is wrong.
34719 * lra-constraints.c (lra_constraints): Add a comment.
34720
34721 2019-01-10 Richard Biener <rguenther@suse.de>
34722
34723 PR tree-optimization/88792
34724 * tree-ssa-pre.c (get_representative_for): Do not return a
34725 value-number here.
34726
34727 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34728
34729 PR middle-end/84877
34730 PR bootstrap/88450
34731 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34732 (assign_parm_setup_block): Do the argument slot realignment here
34733 instead.
34734
34735 2019-01-10 Stefan Agner <stefan@agner.ch>
34736
34737 PR target/88648
34738 * config/arm/arm.c (arm_option_override_internal): Force
34739 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34740
34741 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34742
34743 PR c/88568
34744 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34745 DECL_EXTERNAL.
34746
34747 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34748
34749 * config/arm/arm-builtins.c
34750 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34751 (MAC_LANE_PAIR_QUALIFIERS): New.
34752 (arm_expand_builtin_args): Use it.
34753 (arm_expand_builtin_1): Likewise.
34754 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34755 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34756 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34757 * config/arm/arm_neon.h:
34758 (vcadd_rot90_f16): New.
34759 (vcaddq_rot90_f16): New.
34760 (vcadd_rot270_f16): New.
34761 (vcaddq_rot270_f16): New.
34762 (vcmla_f16): New.
34763 (vcmlaq_f16): New.
34764 (vcmla_lane_f16): New.
34765 (vcmla_laneq_f16): New.
34766 (vcmlaq_lane_f16): New.
34767 (vcmlaq_laneq_f16): New.
34768 (vcmla_rot90_f16): New.
34769 (vcmlaq_rot90_f16): New.
34770 (vcmla_rot90_lane_f16): New.
34771 (vcmla_rot90_laneq_f16): New.
34772 (vcmlaq_rot90_lane_f16): New.
34773 (vcmlaq_rot90_laneq_f16): New.
34774 (vcmla_rot180_f16): New.
34775 (vcmlaq_rot180_f16): New.
34776 (vcmla_rot180_lane_f16): New.
34777 (vcmla_rot180_laneq_f16): New.
34778 (vcmlaq_rot180_lane_f16): New.
34779 (vcmlaq_rot180_laneq_f16): New.
34780 (vcmla_rot270_f16): New.
34781 (vcmlaq_rot270_f16): New.
34782 (vcmla_rot270_lane_f16): New.
34783 (vcmla_rot270_laneq_f16): New.
34784 (vcmlaq_rot270_lane_f16): New.
34785 (vcmlaq_rot270_laneq_f16): New.
34786 (vcadd_rot90_f32): New.
34787 (vcaddq_rot90_f32): New.
34788 (vcadd_rot270_f32): New.
34789 (vcaddq_rot270_f32): New.
34790 (vcmla_f32): New.
34791 (vcmlaq_f32): New.
34792 (vcmla_lane_f32): New.
34793 (vcmla_laneq_f32): New.
34794 (vcmlaq_lane_f32): New.
34795 (vcmlaq_laneq_f32): New.
34796 (vcmla_rot90_f32): New.
34797 (vcmlaq_rot90_f32): New.
34798 (vcmla_rot90_lane_f32): New.
34799 (vcmla_rot90_laneq_f32): New.
34800 (vcmlaq_rot90_lane_f32): New.
34801 (vcmlaq_rot90_laneq_f32): New.
34802 (vcmla_rot180_f32): New.
34803 (vcmlaq_rot180_f32): New.
34804 (vcmla_rot180_lane_f32): New.
34805 (vcmla_rot180_laneq_f32): New.
34806 (vcmlaq_rot180_lane_f32): New.
34807 (vcmlaq_rot180_laneq_f32): New.
34808 (vcmla_rot270_f32): New.
34809 (vcmlaq_rot270_f32): New.
34810 (vcmla_rot270_lane_f32): New.
34811 (vcmla_rot270_laneq_f32): New.
34812 (vcmlaq_rot270_lane_f32): New.
34813 (vcmlaq_rot270_laneq_f32): New.
34814 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34815 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34816 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34817 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34818 vcmlaq_lane270): New.
34819 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34820 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34821 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34822 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34823 (arm_option_reconfigure_globals): Use them.
34824 * config/arm/iterators.md (VDF, VQ_HSF): New.
34825 (VCADD, VCMLA): New.
34826 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34827 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34828 New.
34829 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34830 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34831
34832 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34833
34834 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34835 Add qualifier_lane_pair_index.
34836 (emit-rtl.h): Include.
34837 (TYPES_QUADOP_LANE_PAIR): New.
34838 (aarch64_simd_expand_args): Use it.
34839 (aarch64_simd_expand_builtin): Likewise.
34840 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34841 New.
34842 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34843 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34844 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34845 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34846 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34847 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34848 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34849 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34850 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34851 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34852 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34853 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34854 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34855 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34856 Add __ARM_FEATURE_COMPLEX.
34857 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34858 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34859 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34860 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34861 fcmlaq_lane270): New.
34862 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34863 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34864 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34865 * config/aarch64/arm_neon.h:
34866 (vcadd_rot90_f16): New.
34867 (vcaddq_rot90_f16): New.
34868 (vcadd_rot270_f16): New.
34869 (vcaddq_rot270_f16): New.
34870 (vcmla_f16): New.
34871 (vcmlaq_f16): New.
34872 (vcmla_lane_f16): New.
34873 (vcmla_laneq_f16): New.
34874 (vcmlaq_lane_f16): New.
34875 (vcmlaq_rot90_lane_f16): New.
34876 (vcmla_rot90_laneq_f16): New.
34877 (vcmla_rot90_lane_f16): New.
34878 (vcmlaq_rot90_f16): New.
34879 (vcmla_rot90_f16): New.
34880 (vcmlaq_laneq_f16): New.
34881 (vcmla_rot180_laneq_f16): New.
34882 (vcmla_rot180_lane_f16): New.
34883 (vcmlaq_rot180_f16): New.
34884 (vcmla_rot180_f16): New.
34885 (vcmlaq_rot90_laneq_f16): New.
34886 (vcmlaq_rot270_laneq_f16): New.
34887 (vcmlaq_rot270_lane_f16): New.
34888 (vcmla_rot270_laneq_f16): New.
34889 (vcmlaq_rot270_f16): New.
34890 (vcmla_rot270_f16): New.
34891 (vcmlaq_rot180_laneq_f16): New.
34892 (vcmlaq_rot180_lane_f16): New.
34893 (vcmla_rot270_lane_f16): New.
34894 (vcadd_rot90_f32): New.
34895 (vcaddq_rot90_f32): New.
34896 (vcaddq_rot90_f64): New.
34897 (vcadd_rot270_f32): New.
34898 (vcaddq_rot270_f32): New.
34899 (vcaddq_rot270_f64): New.
34900 (vcmla_f32): New.
34901 (vcmlaq_f32): New.
34902 (vcmlaq_f64): New.
34903 (vcmla_lane_f32): New.
34904 (vcmla_laneq_f32): New.
34905 (vcmlaq_lane_f32): New.
34906 (vcmlaq_laneq_f32): New.
34907 (vcmla_rot90_f32): New.
34908 (vcmlaq_rot90_f32): New.
34909 (vcmlaq_rot90_f64): New.
34910 (vcmla_rot90_lane_f32): New.
34911 (vcmla_rot90_laneq_f32): New.
34912 (vcmlaq_rot90_lane_f32): New.
34913 (vcmlaq_rot90_laneq_f32): New.
34914 (vcmla_rot180_f32): New.
34915 (vcmlaq_rot180_f32): New.
34916 (vcmlaq_rot180_f64): New.
34917 (vcmla_rot180_lane_f32): New.
34918 (vcmla_rot180_laneq_f32): New.
34919 (vcmlaq_rot180_lane_f32): New.
34920 (vcmlaq_rot180_laneq_f32): New.
34921 (vcmla_rot270_f32): New.
34922 (vcmlaq_rot270_f32): New.
34923 (vcmlaq_rot270_f64): New.
34924 (vcmla_rot270_lane_f32): New.
34925 (vcmla_rot270_laneq_f32): New.
34926 (vcmlaq_rot270_lane_f32): New.
34927 (vcmlaq_rot270_laneq_f32): New.
34928 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34929 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34930 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34931 (FCADD, FCMLA): New.
34932 (rot): New.
34933 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34934
34935 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34936
34937 PR other/16615
34938
34939 * config/pa/pa.c: Change "can not" to "cannot".
34940 * gimple-ssa-evrp-analyze.c: Likewise.
34941 * ipa-icf.c: Likewise.
34942 * ipa-polymorphic-call.c: Likewise.
34943 * ipa-pure-const.c: Likewise.
34944 * lra-constraints.c: Likewise.
34945 * lra-remat.c: Likewise.
34946 * reload1.c: Likewise.
34947 * reorg.c: Likewise.
34948 * tree-ssa-uninit.c: Likewise.
34949
34950 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34951
34952 PR other/16615
34953
34954 * Makefile.in: Mechanically replace "can not" with "cannot".
34955 * alias.c: Likewise.
34956 * builtins.c: Likewise.
34957 * calls.c: Likewise.
34958 * cgraph.c: Likewise.
34959 * cgraph.h: Likewise.
34960 * cgraphclones.c: Likewise.
34961 * cgraphunit.c: Likewise.
34962 * combine-stack-adj.c: Likewise.
34963 * combine.c: Likewise.
34964 * common/config/i386/i386-common.c: Likewise.
34965 * config/aarch64/aarch64.c: Likewise.
34966 * config/alpha/sync.md: Likewise.
34967 * config/arc/arc.c: Likewise.
34968 * config/arc/predicates.md: Likewise.
34969 * config/arm/arm-c.c: Likewise.
34970 * config/arm/arm.c: Likewise.
34971 * config/arm/arm.h: Likewise.
34972 * config/arm/arm.md: Likewise.
34973 * config/arm/cortex-r4f.md: Likewise.
34974 * config/csky/csky.c: Likewise.
34975 * config/csky/csky.h: Likewise.
34976 * config/darwin-f.c: Likewise.
34977 * config/epiphany/epiphany.md: Likewise.
34978 * config/i386/i386.c: Likewise.
34979 * config/i386/sol2.h: Likewise.
34980 * config/m68k/m68k.c: Likewise.
34981 * config/mcore/mcore.h: Likewise.
34982 * config/microblaze/microblaze.md: Likewise.
34983 * config/mips/20kc.md: Likewise.
34984 * config/mips/sb1.md: Likewise.
34985 * config/nds32/nds32.c: Likewise.
34986 * config/nds32/predicates.md: Likewise.
34987 * config/pa/pa.c: Likewise.
34988 * config/rs6000/e300c2c3.md: Likewise.
34989 * config/rs6000/rs6000.c: Likewise.
34990 * config/s390/s390.h: Likewise.
34991 * config/sh/sh.c: Likewise.
34992 * config/sh/sh.md: Likewise.
34993 * config/spu/vmx2spu.h: Likewise.
34994 * cprop.c: Likewise.
34995 * dbxout.c: Likewise.
34996 * df-scan.c: Likewise.
34997 * doc/cfg.texi: Likewise.
34998 * doc/extend.texi: Likewise.
34999 * doc/fragments.texi: Likewise.
35000 * doc/gty.texi: Likewise.
35001 * doc/invoke.texi: Likewise.
35002 * doc/lto.texi: Likewise.
35003 * doc/md.texi: Likewise.
35004 * doc/objc.texi: Likewise.
35005 * doc/rtl.texi: Likewise.
35006 * doc/tm.texi: Likewise.
35007 * dse.c: Likewise.
35008 * emit-rtl.c: Likewise.
35009 * emit-rtl.h: Likewise.
35010 * except.c: Likewise.
35011 * expmed.c: Likewise.
35012 * expr.c: Likewise.
35013 * fold-const.c: Likewise.
35014 * genautomata.c: Likewise.
35015 * gimple-fold.c: Likewise.
35016 * hard-reg-set.h: Likewise.
35017 * ifcvt.c: Likewise.
35018 * ipa-comdats.c: Likewise.
35019 * ipa-cp.c: Likewise.
35020 * ipa-devirt.c: Likewise.
35021 * ipa-fnsummary.c: Likewise.
35022 * ipa-icf.c: Likewise.
35023 * ipa-inline-transform.c: Likewise.
35024 * ipa-inline.c: Likewise.
35025 * ipa-polymorphic-call.c: Likewise.
35026 * ipa-profile.c: Likewise.
35027 * ipa-prop.c: Likewise.
35028 * ipa-pure-const.c: Likewise.
35029 * ipa-reference.c: Likewise.
35030 * ipa-split.c: Likewise.
35031 * ipa-visibility.c: Likewise.
35032 * ipa.c: Likewise.
35033 * ira-build.c: Likewise.
35034 * ira-color.c: Likewise.
35035 * ira-conflicts.c: Likewise.
35036 * ira-costs.c: Likewise.
35037 * ira-int.h: Likewise.
35038 * ira-lives.c: Likewise.
35039 * ira.c: Likewise.
35040 * ira.h: Likewise.
35041 * loop-invariant.c: Likewise.
35042 * loop-unroll.c: Likewise.
35043 * lower-subreg.c: Likewise.
35044 * lra-assigns.c: Likewise.
35045 * lra-constraints.c: Likewise.
35046 * lra-eliminations.c: Likewise.
35047 * lra-lives.c: Likewise.
35048 * lra-remat.c: Likewise.
35049 * lra-spills.c: Likewise.
35050 * lra.c: Likewise.
35051 * lto-cgraph.c: Likewise.
35052 * lto-streamer-out.c: Likewise.
35053 * postreload-gcse.c: Likewise.
35054 * predict.c: Likewise.
35055 * profile-count.h: Likewise.
35056 * profile.c: Likewise.
35057 * recog.c: Likewise.
35058 * ree.c: Likewise.
35059 * reload.c: Likewise.
35060 * reload1.c: Likewise.
35061 * reorg.c: Likewise.
35062 * resource.c: Likewise.
35063 * rtl.def: Likewise.
35064 * rtl.h: Likewise.
35065 * rtlanal.c: Likewise.
35066 * sched-deps.c: Likewise.
35067 * sched-ebb.c: Likewise.
35068 * sched-rgn.c: Likewise.
35069 * sel-sched-ir.c: Likewise.
35070 * sel-sched.c: Likewise.
35071 * shrink-wrap.c: Likewise.
35072 * simplify-rtx.c: Likewise.
35073 * symtab.c: Likewise.
35074 * target.def: Likewise.
35075 * toplev.c: Likewise.
35076 * tree-call-cdce.c: Likewise.
35077 * tree-cfg.c: Likewise.
35078 * tree-complex.c: Likewise.
35079 * tree-core.h: Likewise.
35080 * tree-eh.c: Likewise.
35081 * tree-inline.c: Likewise.
35082 * tree-loop-distribution.c: Likewise.
35083 * tree-nrv.c: Likewise.
35084 * tree-profile.c: Likewise.
35085 * tree-sra.c: Likewise.
35086 * tree-ssa-alias.c: Likewise.
35087 * tree-ssa-dce.c: Likewise.
35088 * tree-ssa-dom.c: Likewise.
35089 * tree-ssa-forwprop.c: Likewise.
35090 * tree-ssa-loop-im.c: Likewise.
35091 * tree-ssa-loop-ivcanon.c: Likewise.
35092 * tree-ssa-loop-ivopts.c: Likewise.
35093 * tree-ssa-loop-niter.c: Likewise.
35094 * tree-ssa-phionlycprop.c: Likewise.
35095 * tree-ssa-phiopt.c: Likewise.
35096 * tree-ssa-propagate.c: Likewise.
35097 * tree-ssa-threadedge.c: Likewise.
35098 * tree-ssa-threadupdate.c: Likewise.
35099 * tree-ssa-uninit.c: Likewise.
35100 * tree-ssanames.c: Likewise.
35101 * tree-streamer-out.c: Likewise.
35102 * tree.c: Likewise.
35103 * tree.h: Likewise.
35104 * vr-values.c: Likewise.
35105
35106 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
35107
35108 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
35109 (ix86_split_xorsign): Ditto.
35110 * config/i386/i386.c (ix86_expand_xorsign): New function.
35111 (ix86_split_xorsign): Ditto.
35112 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
35113 (xorsign<mode>3): New expander.
35114 (xorsign<mode>3_1): New insn_and_split pattern.
35115 * config/i386/sse.md (xorsign<mode>3): New expander.
35116
35117 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35118
35119 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
35120 (*tablejump_sp64): Likewise.
35121 (*tablejump<P:mode>): ...this.
35122 (*call_address_sp32): Merge into...
35123 (*call_address_sp64): Likewise.
35124 (*call_address<P:mode>): ...this.
35125 (*call_symbolic_sp32): Merge into...
35126 (*call_symbolic_sp64): Likewise.
35127 (*call_symbolic<P:mode>): ...this.
35128 (call_value): Remove constraint and add predicate.
35129 (*call_value_address_sp32): Merge into...
35130 (*call_value_address_sp64): Likewise.
35131 (*call_value_address<P:mode>): ...this.
35132 (*call_value_symbolic_sp32): Merge into...
35133 (*call_value_symbolic_sp64): Likewise.
35134 (*call_value_symbolic<P:mode>): ...this.
35135 (*sibcall_symbolic_sp32): Merge into...
35136 (*sibcall_symbolic_sp64): Likewise.
35137 (*sibcall_symbolic<P:mode>): ...this.
35138 (sibcall_value): Remove constraint and add predicate.
35139 (*sibcall_value_symbolic_sp32): Merge into...
35140 (*sibcall_value_symbolic_sp64): Likewise.
35141 (*sibcall_value_symbolic<P:mode>): ...this.
35142 (window_save): Minor tweak.
35143 (*branch_sp32): Merge into...
35144 (*branch_sp64): Likewise.
35145 (*branch<P:mode>): ...this.
35146
35147 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35148 James Clarke <jrtc27@jrtc27.com>
35149
35150 PR target/84010
35151 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
35152 consistently in TLS address generation and adjust code to the renaming
35153 of patterns. Mark calls to __tls_get_addr as const.
35154 * config/sparc/sparc.md (tgd_hi22): Turn into...
35155 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
35156 (tgd_lo10): Turn into...
35157 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
35158 (tgd_add32): Merge into...
35159 (tgd_add64): Likewise.
35160 (tgd_add<P:mode>): ...this and use Pmode throughout.
35161 (tldm_hi22): Turn into...
35162 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
35163 (tldm_lo10): Turn into...
35164 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
35165 (tldm_add32): Merge into...
35166 (tldm_add64): Likewise.
35167 (tldm_add<P:mode>): ...this and use Pmode throughout.
35168 (tldm_call32): Merge into...
35169 (tldm_call64): Likewise.
35170 (tldm_call<P:mode>): ...this and use Pmode throughout.
35171 (tldo_hix22): Turn into...
35172 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
35173 (tldo_lox10): Turn into...
35174 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
35175 (tldo_add32): Merge into...
35176 (tldo_add64): Likewise.
35177 (tldo_add<P:mode>): ...this and use Pmode throughout.
35178 (tie_hi22): Turn into...
35179 (tie_hi22<P:mode>): ...this and use Pmode throughout.
35180 (tie_lo10): Turn into...
35181 (tie_lo10<P:mode>): ...this and use Pmode throughout.
35182 (tie_ld64): Use DImode throughout.
35183 (tie_add32): Merge into...
35184 (tie_add64): Likewise.
35185 (tie_add<P:mode>): ...this and use Pmode throughout.
35186 (tle_hix22_sp32): Merge into...
35187 (tle_hix22_sp64): Likewise.
35188 (tle_hix22<P:mode>): ...this and use Pmode throughout.
35189 (tle_lox22_sp32): Merge into...
35190 (tle_lox22_sp64): Likewise.
35191 (tle_lox22<P:mode>): ...this and use Pmode throughout.
35192 (*tldo_ldub_sp32): Merge into...
35193 (*tldo_ldub_sp64): Likewise.
35194 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
35195 (*tldo_ldub1_sp32): Merge into...
35196 (*tldo_ldub1_sp64): Likewise.
35197 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
35198 (*tldo_ldub2_sp32): Merge into...
35199 (*tldo_ldub2_sp64): Likewise.
35200 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
35201 (*tldo_ldsb1_sp32): Merge into...
35202 (*tldo_ldsb1_sp64): Likewise.
35203 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
35204 (*tldo_ldsb2_sp32): Merge into...
35205 (*tldo_ldsb2_sp64): Likewise.
35206 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
35207 (*tldo_ldub3_sp64): Use DImode throughout.
35208 (*tldo_ldsb3_sp64): Likewise.
35209 (*tldo_lduh_sp32): Merge into...
35210 (*tldo_lduh_sp64): Likewise.
35211 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
35212 (*tldo_lduh1_sp32): Merge into...
35213 (*tldo_lduh1_sp64): Likewise.
35214 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
35215 (*tldo_ldsh1_sp32): Merge into...
35216 (*tldo_ldsh1_sp64): Likewise.
35217 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
35218 (*tldo_lduh2_sp64): Use DImode throughout.
35219 (*tldo_ldsh2_sp64): Likewise.
35220 (*tldo_lduw_sp32): Merge into...
35221 (*tldo_lduw_sp64): Likewise.
35222 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
35223 (*tldo_lduw1_sp64): Use DImode throughout.
35224 (*tldo_ldsw1_sp64): Likewise.
35225 (*tldo_ldx_sp64): Likewise.
35226 (*tldo_stb_sp32): Merge into...
35227 (*tldo_stb_sp64): Likewise.
35228 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
35229 (*tldo_sth_sp32): Merge into...
35230 (*tldo_sth_sp64): Likewise.
35231 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
35232 (*tldo_stw_sp32): Merge into...
35233 (*tldo_stw_sp64): Likewise.
35234 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
35235 (*tldo_stx_sp64): Use DImode throughout.
35236
35237 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35238
35239 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
35240 check configure option to set BTI and Return Address Signing.
35241 * configure.ac: Add --enable-standard-branch-protection and
35242 --disable-standard-branch-protection.
35243 * configure: Regenerated.
35244 * doc/install.texi: Document the same.
35245
35246 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35247 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35248
35249 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
35250 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
35251 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
35252 if bti is enabled.
35253 * config/aarch64/aarch64-bti-insert.c: New file.
35254 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
35255 pass.
35256 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
35257 new bti pass.
35258 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
35259 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
35260 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
35261 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
35262
35263 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35264
35265 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
35266 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
35267 Disable bti for -mbranch-protection=none.
35268 (aarch64_handle_standard_branch_protection): Enable bti for
35269 -mbranch-protection=standard.
35270 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
35271 -mbranch-protection.
35272 (aarch64_bti_enabled): Check if bti is enabled.
35273 * config/aarch64/aarch64.opt: Declare target variable.
35274 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
35275
35276 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35277
35278 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
35279 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
35280 (aarch64_expand_epilogue): Likewise.
35281 (aarch64_output_mi_thunk): Likewise.
35282 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
35283 TAILCALL_ADDR_REGS to x16 and x17.
35284 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
35285
35286 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35287
35288 * config/aarch64/aarch64-option-extensions.def: Define
35289 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
35290 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
35291 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
35292 (AARCH64_FL_PREDRES): New.
35293 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
35294 AARCH64_FL_PREDRES by default.
35295 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
35296
35297 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35298
35299 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
35300 ARMv8.5-A.
35301 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
35302 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
35303 * doc/invoke.texi: Document ARMv8.5-A.
35304
35305 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
35306
35307 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
35308 (xorsign<mode>3): Likewise.
35309
35310 2019-01-09 Jelinek <jakub@redhat.com>
35311
35312 PR middle-end/88758
35313 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
35314 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
35315
35316 PR rtl-optimization/88331
35317 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
35318 not currently_expanding_to_rtl.
35319
35320 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35321
35322 * doc/invoke.texi (-Os): Remove trailing spaces.
35323 (-finline-functions): Remove reference to -O2.
35324
35325 2019-01-08 Jakub Jelinek <jakub@redhat.com>
35326
35327 PR rtl-optimization/79593
35328 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
35329
35330 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
35331 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
35332
35333 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
35334
35335 PR bootstrap/88721
35336 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
35337 to -1 on entry.
35338
35339 PR debug/88723
35340 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
35341 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
35342
35343 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
35344
35345 PR target/88717
35346 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
35347 ix86_avx_u128_mode_entry.
35348
35349 2019-01-08 Martin Liska <mliska@suse.cz>
35350
35351 PR tree-optimization/88753
35352 * tree-switch-conversion.c (switch_conversion::build_one_array):
35353 Come up with local variable constructor. Convert first to
35354 type of constructor values.
35355
35356 2019-01-08 Richard Biener <rguenther@suse.de>
35357
35358 PR tree-optimization/86554
35359 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
35360 rpo_avail): Move earlier.
35361 (visit_nary_op): When value-numbering to expressions
35362 with different overflow behavior make sure there's an
35363 available expression on the path.
35364
35365 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
35366
35367 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
35368 aarch64_parse_branch_protection,
35369 struct aarch64_branch_protect_type,
35370 aarch64_handle_no_branch_protection,
35371 aarch64_handle_standard_branch_protection,
35372 aarch64_validate_mbranch_protection,
35373 aarch64_handle_pac_ret_protection,
35374 aarch64_handle_attr_branch_protection,
35375 accepted_branch_protection_string,
35376 aarch64_pac_ret_subtypes,
35377 aarch64_branch_protect_types,
35378 aarch64_handle_pac_ret_leaf): Define.
35379 (aarch64_override_options_after_change_1, aarch64_override_options):
35380 Add check for accepted_branch_protection_string.
35381 (aarch64_option_save): Save accepted_branch_protection_string.
35382 (aarch64_option_restore): Save accepted_branch_protection_string.
35383 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35384 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35385 msign-return-address.
35386 * doc/invoke.texi: Add mbranch-protection.
35387
35388 2019-01-08 Alan Modra <amodra@gmail.com>
35389
35390 PR target/88614
35391 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35392 Delete "unknownp" parameter. Adjust callers. Handle
35393 CONST_INT, PLUS, MINUS, and MULT.
35394 (attr_value_aligned): Renamed from or_attr_value.
35395 (min_attr_value): Return INT_MIN for unhandled rtl case..
35396 (min_fn): ..and translate to INT_MAX here.
35397 (write_length_unit_log): Modify to cope without "unknown".
35398 (write_attr_value): Handle IF_THEN_ELSE.
35399
35400 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35401
35402 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35403 optimization for masked stores.
35404
35405 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35406
35407 PR middle-end/88567
35408 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35409 output vector directly to duplicate_and_interleave instead of
35410 going through a temporary. Postpone insertion of ctor_seq to
35411 the end of the loop.
35412
35413 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
35414
35415 PR target/86891
35416 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35417 unsigned_p. Handle signed and unsigned overflow correction as
35418 required.
35419 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35420 prototype.
35421 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35422 for operand 2.
35423 (add<mode>3_compareV_imm): Make this callable for expanding.
35424 (subv<GPI:mode>4): Use register_operand for operand 1. Use
35425 aarch64_plus_operand for operand 2.
35426 (subv<GPI:mode>_insn): New insn pattern.
35427 (subv<GPI:mode>_imm): Likewise.
35428 (negv<GPI:mode>3): New expand pattern.
35429 (negv<GPI:mode>_insn): New insn pattern.
35430 (negv<GPI:mode>_cmp_only): Likewise.
35431 (cmpv<GPI:mode>_insn): Likewise.
35432 (subvti4): Use register_operand for operand 1. Update call to
35433 aarch64_expand_subvti.
35434 (usubvti4): Likewise.
35435 (negvti3): New expand pattern.
35436 (negdi_carryout): New insn pattern.
35437 (negvdi_carryinV): New insn pattern.
35438 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35439 version the named version.
35440 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35441 operands.
35442 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35443 patterns.
35444 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35445 patterns.
35446 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35447 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35448 (sub<mode>3_carryinCV): Delete.
35449 (sub<GPI:mode>3_carryinV): New expand pattern.
35450 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35451
35452 2019-01-07 Richard Biener <rguenther@suse.de>
35453
35454 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35455 of tree_operand_hash.
35456
35457 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35458
35459 PR tree-optimization/88598
35460 * tree.h (single_nonzero_element): Declare.
35461 * tree.c (single_nonzero_element): New function.
35462 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35463 if I is the only nonzero element of CST.
35464
35465 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35466
35467 PR tree-optimization/88598
35468 * tree.h (initializer_each_zero_or_onep): Declare.
35469 * tree.c (initializer_each_zero_or_onep): New function.
35470 (signed_or_unsigned_type_for): Handle float types too.
35471 (unsigned_type_for, signed_type_for): Update comments accordingly.
35472 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35473 x & { 0 or -1, 0 or -1, ... }.
35474
35475 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35476
35477 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35478 with x86_64-pc-linux-gnu.
35479
35480 2019-01-07 Tom de Vries <tdevries@suse.de>
35481
35482 PR target/85486
35483 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35484 function.
35485 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35486 routines.
35487
35488 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35489
35490 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35491 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35492 TARGET_AVX512F as condition.
35493
35494 PR debug/88723
35495 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35496 const_not_ok_for_debug_p target hook.
35497 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35498 on UNSPEC and subexpressions thereof if all subexpressions of the
35499 UNSPEC are CONSTANT_P.
35500
35501 PR tree-optimization/88676
35502 * tree-ssa-phiopt.c (two_value_replacement): New function.
35503 (tree_ssa_phiopt_worker): Call it.
35504
35505 PR sanitizer/88619
35506 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35507 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35508
35509 PR c++/85052
35510 * tree-vect-generic.c: Include insn-config.h and recog.h.
35511 (expand_vector_piecewise): Add defaulted ret_type argument,
35512 if non-NULL, use that in preference to type for the result type.
35513 (expand_vector_parallel): Formatting fix.
35514 (do_vec_conversion, do_vec_narrowing_conversion,
35515 expand_vector_conversion): New functions.
35516 (expand_vector_operations_1): Call expand_vector_conversion
35517 for VEC_CONVERT ifn calls.
35518 * internal-fn.def (VEC_CONVERT): New internal function.
35519 * internal-fn.c (expand_VEC_CONVERT): New function.
35520 * fold-const-call.c (fold_const_vec_convert): New function.
35521 (fold_const_call): Use it for CFN_VEC_CONVERT.
35522 * doc/extend.texi (__builtin_convertvector): Document.
35523
35524 2019-01-07 Tom de Vries <tdevries@suse.de>
35525
35526 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35527 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35528 vector_red_partition, vector_red_sym): New global variables.
35529 (nvptx_option_override): Initialize vector_red_sym.
35530 (nvptx_declare_function_name): Restore red_partition register.
35531 (nvptx_file_end): Emit code to declare the vector reduction variables.
35532 (nvptx_output_red_partition): New function.
35533 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35534 large vector reductions.
35535 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35536 (nvptx_init_builtins): Add VECTOR_ADDR.
35537 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35538 Handle nvptx_expand_shared_addr.
35539 (nvptx_get_shared_red_addr): Add vector argument and handle large
35540 vectors.
35541 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35542 large vectors.
35543 (nvptx_goacc_reduction_init): Likewise.
35544 (nvptx_goacc_reduction_fini): Likewise.
35545 (nvptx_goacc_reduction_teardown): Likewise.
35546 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35547 init,fini,teardown}.
35548 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35549 (nvptx_set_current_function): Init vector_red_partition.
35550 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35551 (nvptx_red_partition): New insn.
35552 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35553
35554 2019-01-07 Tom de Vries <tdevries@suse.de>
35555
35556 PR target/85381
35557 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35558 empty loops.
35559
35560 2019-01-07 Tom de Vries <tdevries@suse.de>
35561
35562 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35563 (nvptx_option_override): Init oacc_bcast_partition.
35564 (nvptx_init_oacc_workers): New function.
35565 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35566 (nvptx_needs_shared_bcast): New function.
35567 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35568 to propagate state.
35569 (nvptx_shared_propagate): Initialize vector bcast partition and
35570 synchronization state.
35571 (nvptx_single): Generalize to enable vectors to use shared-memory
35572 to propagate state.
35573 (nvptx_process_pars): Likewise.
35574 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35575 * config/nvptx/nvptx.h (struct machine_function): Add
35576 bcast_partition and sync_bar members.
35577
35578 2019-01-07 Tom de Vries <tdevries@suse.de>
35579
35580 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35581 (nvptx_apply_dim_limits): New function.
35582 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35583 PTX_WARP_SIZE.
35584
35585 2019-01-07 Tom de Vries <tdevries@suse.de>
35586
35587 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35588 as late as possible.
35589
35590 2019-01-07 Tom de Vries <tdevries@suse.de>
35591
35592 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35593 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35594 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35595 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35596 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35597
35598 2019-01-07 Tom de Vries <tdevries@suse.de>
35599
35600 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35601
35602 2019-01-07 Tom de Vries <tdevries@suse.de>
35603
35604 * omp-offload.c (oacc_get_min_dim): New function.
35605 * omp-offload.h (oacc_get_min_dim): Declare.
35606
35607 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35608
35609 PR target/88521
35610 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35611 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35612
35613 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35614
35615 PR tree-opt/86020
35616 Revert:
35617 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35618
35619 * ipa-inline.c (edge_badness): Use inlined_time instead of
35620 inline_summaries->get.
35621
35622 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35623
35624 * opts.c (enable_fdo_optimizations): Enable
35625 version-loops-for-strides, loop-interchange, unrol-and-jam
35626 and tree-loop-distribution.
35627 * invoke.texi: Document newly enabled options.
35628
35629 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35630
35631 * doc/invoke.texi (max-inline-insns-small): New parameters.
35632 * ipa-inline.c (want_early_inline_function_p): simplify.
35633 (want_inline_small_function_p): Fix pasto from previous patch;
35634 use max-inline-insns-small bound.
35635 * params.def (max-inline-insns-small): New param.
35636 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35637 variables correctly.
35638
35639 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35640
35641 * doc/invoke.texi: Document max-inline-insns-size,
35642 uninlined-function-insns, uninlined-function-time,
35643 uninlined-thunk-insns and uninlined-thunk-time.
35644 * params.def: Add max-inline-insns-size,
35645 uninlined-function-insns, uninlined-function-time,
35646 uninlined-thunk-insns and uninlined-thunk-time.
35647 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35648 new parameters.
35649 * ipa-inline.c (can_inline_edge_by_limits_p,
35650 want_inline_small_function_p): Use new parameters.
35651
35652 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35653
35654 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35655
35656 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35657
35658 PR middle-end/82564
35659 PR target/88620
35660 * expr.c (expand_assignment): For calls returning VLA structures
35661 if to_rtx is not a MEM, force it into a stack temporary.
35662
35663 PR debug/88635
35664 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35665 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35666 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35667 subexpressions of both operands.
35668 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35669 subrtxes are CONSTANT_P.
35670 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35671 2018-11-09 changes.
35672
35673 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35674
35675 * params.def (hot-bb-count-ws-permille): Set to 990.
35676
35677 2019-01-04 Martin Sebor <msebor@redhat.com>
35678
35679 PR c/88546
35680 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35681 leaf.
35682
35683 2019-01-04 Martin Sebor <msebor@redhat.com>
35684
35685 PR c/88363
35686 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35687
35688 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35689
35690 * gdbinit.in: Turn off pagination for the skip commands, restore
35691 it to previous state afterwards.
35692
35693 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35694
35695 PR target/88594
35696 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35697 of GET_MODE (opN) as modes of the libcall arguments.
35698
35699 2019-01-04 Jan Beulich <jbeulich@suse.com>
35700
35701 * config/i386/sse.md
35702 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35703 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35704 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35705 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35706 avx512f_vmcmp<mode>3<round_saeonly_name>,
35707 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35708 avx512f_maskcmp<mode>3,
35709 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35710 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35711 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35712 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35713 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35714 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35715 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35716 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35717 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35718 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35719 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35720 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35721 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35722 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35723 avx512cd_maskb_vec_dup<mode>,
35724 avx512cd_maskw_vec_dup<mode>,
35725 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35726 avx512dq_vmfpclass<mode>,
35727 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35728 instead of =Yk.
35729
35730 2019-01-03 Martin Sebor <msebor@redhat.com>
35731
35732 PR tree-optimization/88659
35733 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35734
35735 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35736
35737 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35738 unaligned vsx and avoid lxvd2x/stxvd2x.
35739 (gen_lvx_v4si_move): New function.
35740
35741 2019-01-03 Tom de Vries <tdevries@suse.de>
35742
35743 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35744 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35745 function.
35746 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35747
35748 2019-01-03 Tom de Vries <tdevries@suse.de>
35749
35750 * config/nvptx/nvptx.c (struct offload_attrs): New.
35751 (populate_offload_attrs): New function. Factor mask extraction out of
35752 nvptx_reorg. Add extraction of dimensions.
35753 (nvptx_reorg): Use populate_offload_attrs.
35754
35755 2019-01-03 Tom de Vries <tdevries@suse.de>
35756
35757 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35758 cases for oacc_min_dims_p and routine_p. Add asserts for
35759 oacc_default_dims_p and offload_region_p.
35760
35761 2019-01-03 Tom de Vries <tdevries@suse.de>
35762
35763 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35764 factored out of ...
35765 (nvptx_goacc_validate_dims): ... here.
35766
35767 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35768
35769 PR tree-optimization/85574
35770 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35771 structure.
35772 (struct ssa_equip_hash_traits): Declare.
35773 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35774
35775 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35776
35777 PR debug/88644
35778 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35779 change it to qualified_type.
35780
35781 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35782
35783 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35784 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35785
35786 2019-01-02 Martin Sebor <msebor@redhat.com>
35787 Jeff Law <law@redhat.com>
35788
35789 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35790 (get_range_strlen_tree): Update appropriately.
35791 (get_range_strlen)
35792 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35793
35794 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35795 rather than set_range_info.
35796 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35797 maybe_set_strlen_range. Handle potentially boundary crossing
35798 cases more conservatively.
35799 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35800 Call set_strlen_range.
35801 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35802
35803 PR middle-end/88663
35804 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35805 need the flexp argument.
35806 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35807 from calls to get_range_strlen. Update comments. Just update
35808 VAL for an unterminated const char array and let the reset of the
35809 code handle it normally. No longer try to set *flexp. Adjust
35810 return value.
35811 (get_range_strlen): Update for the new get_range_strlen API.
35812 (get_maxval_strlen): Similarly.
35813 (gimple_fold_builtin_strlen): Handle update meaning of return value
35814 from get_range_strlen.
35815 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35816 get_range_strlen API.
35817
35818 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35819
35820 PR lto/88130
35821 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35822 false at WPA time when body was removed.
35823
35824 2019-01-02 Martin Liska <mliska@suse.cz>
35825
35826 PR tree-optimization/88650
35827 * predict.c (set_even_probabilities): Calculate probability
35828 remainer only when really used.
35829
35830 2019-01-02 Richard Biener <rguenther@suse.de>
35831
35832 PR middle-end/88651
35833 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35834 widest_ints when mangling max_stmt_execution results.
35835
35836 2019-01-02 Richard Biener <rguenther@suse.de>
35837
35838 PR tree-optimization/88621
35839 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35840 bitfields when canoncalizing.
35841
35842 2019-01-02 Richard Biener <rguenther@suse.de>
35843
35844 PR target/87545
35845 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35846 cost of cheap SSE instruction.
35847
35848 2019-01-02 Richard Biener <rguenther@suse.de>
35849
35850 PR ipa/85574
35851 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35852 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35853 function.
35854 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35855 set after UIDs before splitting them.
35856
35857 2019-01-01 Martin Sebor <msebor@redhat.com>
35858 Jeff Law <law@redhat.com>
35859
35860 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35861 length is optimistic. If it is, then arrange to compute the
35862 conservative length as well.
35863
35864 * gimple-fold.h (get_range_strlen): Update prototype.
35865 * builtins.c (check_access): Update call to get_range_strlen to use
35866 c_strlen_data pointer. Change various variable accesses to instead
35867 pull data from the c_strlen_data structure.
35868 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35869 * calls.c (maybe_warn_nonstring_arg): Likewise.
35870 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35871 minimum length if maximum lengh is unknown.
35872 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35873 that used c_strlen, it's no longer needed. Restructure slightly.
35874 (format_string): Set unlikely range appropriately.
35875 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35876 formatting issues.
35877 (get_range_strlen): Accept c_strlen_data pointer for external
35878 call sites as well. Pass through to call to internal get_range_strlen.
35879 Adjust minlen, maxlen and maxbound as needed.
35880 (get_maxval_strlen): Update comments.
35881 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35882 to use c_strlen_data pointer. Change variable accesses to instead
35883 use c_strlen_data data members.
35884
35885 * gimple-fold.c (get_range_strlen): Update prototype.
35886 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35887 local variables. Use pdata to return information to caller.
35888 Update calls to get_range_strlen. Update pdata->maxbound.
35889 (get_range_strlen -- static version): Similarly.
35890 (get_range_strlen -- extern version): Update for internal
35891 get_range_strlen API change. Convert to external data format.
35892 (get_maxval_strlen): Similarly.
35893
35894 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35895
35896 * coverage.c (get_coverage_counts): Use current_function_decl.
35897 * profile.c (read_thunk_profile): New function.
35898 (branch_prob): Add THUNK parameter.
35899 * tree-profile.c (tree_profiling): Handle thunks.
35900 * value-prof.c (init_node_map): Handle thunks.
35901 * value-prof.h (branch_prob): Upate prototype.
35902 (read_thunk_profile): Declare.
35903
35904 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35905
35906 Update copyright years.
35907
35908 * gcc.c (process_command): Update copyright notice dates.
35909 * gcov-dump.c (print_version): Ditto.
35910 * gcov.c (print_version): Ditto.
35911 * gcov-tool.c (print_version): Ditto.
35912 * gengtype.c (create_file): Ditto.
35913 * doc/cpp.texi: Bump @copying's copyright year.
35914 * doc/cppinternals.texi: Ditto.
35915 * doc/gcc.texi: Ditto.
35916 * doc/gccint.texi: Ditto.
35917 * doc/gcov.texi: Ditto.
35918 * doc/install.texi: Ditto.
35919 * doc/invoke.texi: Ditto.
35920 \f
35921 Copyright (C) 2019 Free Software Foundation, Inc.
35922
35923 Copying and distribution of this file, with or without modification,
35924 are permitted in any medium without royalty provided the copyright
35925 notice and this notice are preserved.