73ee149fb8d930267b150b8dbaf2e2d8fc511493
[gcc.git] / gcc / ChangeLog
1 2019-12-10 Jakub Jelinek <jakub@redhat.com>
2
3 * config/i386/i386.c (IX86_LEA_PRIORITY): Fix comment typos.
4
5 2019-12-10 Martin Liska <mliska@suse.cz>
6
7 PR tree-optimization/92862
8 * predict.c (predict_paths_leading_to_edge): Fix typo from e to e2.
9 * tree-ssa-loop-niter.c (loop_only_exit_p): Return false
10 instead of true;
11
12 2019-12-09 David Malcolm <dmalcolm@redhat.com>
13
14 * gcc-rich-location.c
15 (maybe_range_label_for_tree_type_mismatch::get_text): Replace
16 label_text ctor call with label_text::borrow.
17 * gcc-rich-location.h (text_range_label::get_text): Replace
18 label_text ctor called with false with label_text::borrow.
19
20 2019-12-09 David Malcolm <dmalcolm@redhat.com>
21
22 * diagnostic-show-locus.c (diagnostic_show_locus): Remove initial
23 newline.
24 (selftest::test_diagnostic_show_locus_unknown_location): Remove
25 initial newline from expected outputs.
26 (selftest::test_one_liner_simple_caret): Likewise.
27 (selftest::test_one_liner_caret_and_range): Likewise.
28 (selftest::test_one_liner_multiple_carets_and_ranges): Likewise.
29 (selftest::test_one_liner_fixit_insert_before): Likewise.
30 (selftest::test_one_liner_fixit_insert_after): Likewise.
31 (selftest::test_one_liner_fixit_remove): Likewise.
32 (selftest::test_one_liner_fixit_replace): Likewise.
33 (selftest::test_one_liner_fixit_replace_non_equal_range):
34 Likewise.
35 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
36 Likewise.
37 (selftest::test_one_liner_fixit_validation_adhoc_locations):
38 Likewise.
39 (selftest::test_one_liner_many_fixits_1): Likewise.
40 (selftest::test_one_liner_many_fixits_2): Likewise.
41 (selftest::test_one_liner_labels): Likewise.
42 (selftest::test_one_liner_simple_caret_utf8): Likewise.
43 (selftest::test_one_liner_caret_and_range_utf8): Likewise.
44 (selftest::test_one_liner_multiple_carets_and_ranges_utf8):
45 Likewise.
46 (selftest::test_one_liner_fixit_insert_before_utf8): Likewise.
47 (selftest::test_one_liner_fixit_insert_after_utf8): Likewise.
48 (selftest::test_one_liner_fixit_remove_utf8): Likewise.
49 (selftest::test_one_liner_fixit_replace_utf8): Likewise.
50 (selftest::test_one_liner_fixit_replace_non_equal_range_utf8):
51 Likewise.
52 (selftest::test_one_liner_fixit_replace_equal_secondary_range_utf8):
53 Likewise.
54 (selftest::test_one_liner_fixit_validation_adhoc_locations_utf8):
55 Likewise.
56 (selftest::test_one_liner_many_fixits_1_utf8): Likewise.
57 (selftest::test_one_liner_many_fixits_2_utf8): Likewise.
58 (selftest::test_one_liner_labels_utf8): Likewise.
59 (selftest::test_add_location_if_nearby): Likewise.
60 (selftest::test_diagnostic_show_locus_fixit_lines): Likewise.
61 (selftest::test_overlapped_fixit_printing): Likewise.
62 (selftest::test_overlapped_fixit_printing_utf8): Likewise.
63 (selftest::test_overlapped_fixit_printing_2): Likewise.
64 (selftest::test_fixit_insert_containing_newline): Likewise.
65 (selftest::test_fixit_insert_containing_newline_2): Likewise.
66 (selftest::test_fixit_replace_containing_newline): Likewise.
67 (selftest::test_fixit_deletion_affecting_newline): Likewise.
68 (selftest::test_line_numbers_multiline_range): Likewise.
69 * diagnostic.c (default_diagnostic_finalizer): Add pp_newline call
70 before call to diagnostic_show_locus.
71 (diagnostic_append_note): Likewise.
72
73 2019-12-09 Martin Sebor <msebor@redhat.com>
74
75 PR middle-end/92761
76 PR middle-end/92762
77 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Tighten
78 up tests.
79 * hash-table.h (hash_table::expand): Use placement new to copy
80 construct objects in uninitialized storage.
81 (hash_table::empty_slow): Avoid invoking copy assignment on
82 uninitialized objects.
83
84 2019-12-09 Lewis Hyatt <lhyatt@gmail.com>
85
86 PR preprocessor/49973
87 * input.c (location_compute_display_column): New function to help with
88 multibyte awareness in diagnostics.
89 (test_cpp_utf8): New self-test.
90 (input_c_tests): Call the new test.
91 * input.h (location_compute_display_column): Declare.
92 * diagnostic-show-locus.c: Pervasive changes to add multibyte awareness
93 to all classes and functions.
94 (enum column_unit): New enum.
95 (class exploc_with_display_col): New class.
96 (class layout_point): Convert m_column member to array m_columns[2].
97 (layout_range::contains_point): Add col_unit argument.
98 (test_layout_range_for_single_point): Pass new argument.
99 (test_layout_range_for_single_line): Likewise.
100 (test_layout_range_for_multiple_lines): Likewise.
101 (line_bounds::convert_to_display_cols): New function.
102 (layout::get_state_at_point): Add col_unit argument.
103 (make_range): Use empty filename rather than dummy filename.
104 (get_line_width_without_trailing_whitespace): Rename to...
105 (get_line_bytes_without_trailing_whitespace): ...this.
106 (test_get_line_width_without_trailing_whitespace): Rename to...
107 (test_get_line_bytes_without_trailing_whitespace): ...this.
108 (class layout): m_exploc changed to exploc_with_display_col from
109 plain expanded_location.
110 (layout::get_linenum_width): New accessor member function.
111 (layout::get_x_offset_display): Likewise.
112 (layout::calculate_linenum_width): New subroutine for the constuctor.
113 (layout::calculate_x_offset_display): Likewise.
114 (layout::layout): Use the new subroutines. Add multibyte awareness.
115 (layout::print_source_line): Add multibyte awareness.
116 (layout::print_line): Likewise.
117 (layout::print_annotation_line): Likewise.
118 (line_label::line_label): Likewise.
119 (layout::print_any_labels): Likewise.
120 (layout::annotation_line_showed_range_p): Likewise.
121 (get_printed_columns): Likewise.
122 (class line_label): Rename m_length to m_display_width.
123 (get_affected_columns): Rename to...
124 (get_affected_range): ...this; add col_unit argument and multibyte
125 awareness.
126 (class correction): Add m_affected_bytes and m_display_cols
127 members. Rename m_len to m_byte_length for clarity. Add multibyte
128 awareness throughout.
129 (correction::insertion_p): Add multibyte awareness.
130 (correction::compute_display_cols): New function.
131 (correction::ensure_terminated): Use new member name m_byte_length.
132 (line_corrections::add_hint): Add multibyte awareness.
133 (layout::print_trailing_fixits): Likewise.
134 (layout::get_x_bound_for_row): Likewise.
135 (test_one_liner_simple_caret_utf8): New self-test analogous to the one
136 with _utf8 suffix removed, testing multibyte awareness.
137 (test_one_liner_caret_and_range_utf8): Likewise.
138 (test_one_liner_multiple_carets_and_ranges_utf8): Likewise.
139 (test_one_liner_fixit_insert_before_utf8): Likewise.
140 (test_one_liner_fixit_insert_after_utf8): Likewise.
141 (test_one_liner_fixit_remove_utf8): Likewise.
142 (test_one_liner_fixit_replace_utf8): Likewise.
143 (test_one_liner_fixit_replace_non_equal_range_utf8): Likewise.
144 (test_one_liner_fixit_replace_equal_secondary_range_utf8): Likewise.
145 (test_one_liner_fixit_validation_adhoc_locations_utf8): Likewise.
146 (test_one_liner_many_fixits_1_utf8): Likewise.
147 (test_one_liner_many_fixits_2_utf8): Likewise.
148 (test_one_liner_labels_utf8): Likewise.
149 (test_diagnostic_show_locus_one_liner_utf8): Likewise.
150 (test_overlapped_fixit_printing_utf8): Likewise.
151 (test_overlapped_fixit_printing): Adapt for changes to
152 get_affected_columns, get_printed_columns and class corrections.
153 (test_overlapped_fixit_printing_2): Likewise.
154 (test_linenum_sep): New constant.
155 (test_left_margin): Likewise.
156 (test_offset_impl): Helper function for new test.
157 (test_layout_x_offset_display_utf8): New test.
158 (diagnostic_show_locus_c_tests): Call new tests.
159
160 2019-12-09 Eric Botcazou <ebotcazou@adacore.com>
161
162 * tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute
163 TYPE_CANONICAL from the element type only if it is true. Remove a few
164 obsolete lines and adjust recursive call.
165 (fld_process_array_type): Adjust call to build_array_type_1.
166 (build_array_type): Likewise.
167 (build_nonshared_array_type): Likewise.
168
169 2019-12-09 Andrew Stubbs <ams@codesourcery.com>
170
171 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Change
172 %s to %o in asm output.
173 (gather<mode>_insn_2offsets<exec>): Likewise.
174
175 2019-12-09 Richard Earnshaw <rearnsha@arm.com>
176
177 * config/arm/t-multilib: Use arm->thumb multilib reuse rules
178 on a-profile.
179
180 2019-12-09 Segher Boessenkool <segher@kernel.crashing.org>
181
182 * config/rs6000/rs6000.md (unnamed mfcr define_insn): Name this
183 set<mode>_cc.
184 (unnamed define_insn_and_split): Delete.
185 (unnamed define_insn): Delete.
186 (unnamed define_insn): Delete.
187 (unnamed define_split): Delete.
188
189 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
190
191 * regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
192 avoid a warning.
193
194 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
195
196 PR middle-end/92410
197 * bb-reorder.c (pass_reorder_blocks::execute): Recompute
198 dataflow luids once basic blocks have been reordered.
199 * haifa-sched.c (reemit_notes): Create df insn record for each
200 new note.
201 * regstat.c (regstat_bb_compute_calls_crossed): Assert every
202 insn has an insn record before trying to use it.
203
204 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
205
206 * common/config/i386/i386-common.c
207 (OPTION_MASK_ISA_AVX5124FMAPS_SET): Rename to
208 OPTION_MASK_ISA2_AVX5124FMAPS_SET.
209 (OPTION_MASK_ISA_AVX5124VNNIW_SET, OPTION_MASK_ISA_AVX512BF16_SET,
210 OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
211 OPTION_MASK_ISA_PCONFIG_SET, OPTION_MASK_ISA_WBNOINVD_SET,
212 OPTION_MASK_ISA_SGX_SET, OPTION_MASK_ISA_CX16_SET,
213 OPTION_MASK_ISA_MOVBE_SET, OPTION_MASK_ISA_PTWRITE_SET,
214 OPTION_MASK_ISA_MWAITX_SET, OPTION_MASK_ISA_CLZERO_SET,
215 OPTION_MASK_ISA_RDPID_SET, OPTION_MASK_ISA_VAES_SET,
216 OPTION_MASK_ISA_MOVDIR64B_SET, OPTION_MASK_ISA_WAITPKG_SET,
217 OPTION_MASK_ISA_CLDEMOTE_SET, OPTION_MASK_ISA_ENQCMD_SET,
218 OPTION_MASK_ISA_AVX5124FMAPS_UNSET,
219 OPTION_MASK_ISA_AVX5124VNNIW_UNSET,
220 OPTION_MASK_ISA_AVX512BF16_UNSET,
221 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET,
222 OPTION_MASK_ISA_PCONFIG_UNSET, OPTION_MASK_ISA_WBNOINVD_UNSET,
223 OPTION_MASK_ISA_SGX_UNSET, OPTION_MASK_ISA_CX16_UNSET,
224 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_PTWRITE_UNSET,
225 OPTION_MASK_ISA_MWAITX_UNSET, OPTION_MASK_ISA_CLZERO_UNSET,
226 OPTION_MASK_ISA_RDPID_UNSET, OPTION_MASK_ISA_VAES_UNSET,
227 OPTION_MASK_ISA_MOVDIR64B_UNSET, OPTION_MASK_ISA_WAITPKG_UNSET,
228 OPTION_MASK_ISA_CLDEMOTE_UNSET, OPTION_MASK_ISA_ENQCMD_UNSET,
229 OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
230 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
231 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
232 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
233 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
234 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
235 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
236 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
237 OPTION_MASK_ISA_ENQCMD): Ditto.
238 * config/i386/i386-builtin.def
239 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
240 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
241 OPTION_MASK_ISA_WBNOINVD, OPTION_MASK_ISA_PTWRITE,
242 OPTION_MASK_ISA_RDPID, OPTION_MASK_ISA_VAES,
243 OPTION_MASK_ISA_MOVDIR64B, OPTION_MASK_ISA_ENQCMD): Ditto.
244 * config/i386/i386-builtins.c (OPTION_MASK_ISA_MWAITX,
245 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_WAITPKG,
246 OPTION_MASK_ISA_CLDEMOTE, OPTION_MASK_ISA_WBNOINVD): Ditto.
247 * config/i386/i386-c.c
248 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
249 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
250 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
251 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
252 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
253 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
254 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
255 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
256 OPTION_MASK_ISA_ENQCMD): Ditto.
257 * config/i386/i386-option.c: Ditto
258 * config/i386/i386.opt: Ditto..
259 * config/i386/i386.h: (TARGET_ISA_AVX5124FMAPS,
260 TARGET_ISA_AVX5124VNNIW, TARGET_ISA_AVX512BF16,
261 TARGET_ISA_AVX512VP2INTERSECT, TARGET_ISA_PCONFIG,
262 TARGET_ISA_WBNOINVD, TARGET_ISA_SGX, TARGET_ISA_CX16,
263 TARGET_ISA_MOVBE, TARGET_ISA_PTWRITE, TARGET_ISA_MWAITX,
264 TARGET_ISA_CLZERO, TARGET_ISA_RDPID, TARGET_ISA_VAES,
265 TARGET_ISA_MOVDIR64B, TARGET_ISA_WAITPKG, TARGET_ISA_CLDEMOTE)
266 TARGET_ISA_ENQCMD): Ditto.
267
268 2019-12-09 Sudakshina Das <sudi.das@arm.com>
269 Richard Sandiford <richard.sandiford@arm.com>
270
271 * tree-vect-stmt.c (vectorizable_shift): Condition ndts for
272 vect_model_simple_cost call on scalar_shift_arg.
273
274 2019-12-09 Jakub Jelinek <jakub@redhat.com>
275
276 PR tree-optimization/92834
277 * match.pd (A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
278 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): New simplifications.
279
280 2019-12-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
281
282 PR tree-optimization/89007
283 * tree-vect-patterns.c (vect_recog_average_pattern): If there is no
284 target support available, generate code to distribute rshift over plus
285 and add a carry.
286
287 2019-12-09 Martin Liska <mliska@suse.cz>
288
289 PR ipa/92737
290 * cgraph.c (symbol_table_test::symbol_table_test): Fix
291 coding style.
292 * cgraph.h (symtab_node::symtab_node): New constructor.
293 (cgraph_node::cgraph_node): Likewise.
294 (varpool_node::varpool_node): Likewise.
295 (symbol_table::allocate_cgraph_symbol): Use newly
296 created constructor.
297 (symbol_table::allocate_cgraph_symbol): Remove.
298 * cgraphunit.c (symtab_terminator): Likewise.
299 * varpool.c (varpool_node::create_empty): Use newly
300 created constructor.
301
302 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
303
304 PR target/92686
305 * config/i386/sse.md
306 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
307 *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
308 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
309 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
310 * config/i386/i386.c (ix86_print_operand): New operand substitution.
311 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
312 New function.
313 (ix86_expand_sse_cmp): Relax condition for integer mask from
314 512-bit vector to all 128/256/512-bit vector. Delete code gen
315 for avx512f compare patterns since we have generic pattern now.
316 (ix86_expand_sse_movcc): Adjust condition and codegen for
317 maskcmp.
318 (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
319 when corresponding vector compare is available.
320
321 2019-12-08 Sandra Loosemore <sandra@codesourcery.com>
322
323 Revert:
324 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
325
326 * config/nios2/linux.h (LINK_EH_SPEC): Define.
327
328 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
329
330 * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
331 * cgraph.h (cgrpah_node): Likewise.
332 (tp_first_run_node_cmp): Deeclare.
333 * cgraphunit.c (node_cmp): Rename to ...
334 (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
335 clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
336 (expand_all_functions): Collect tp_first_run and normal functions to
337 two vectors so the other functions remain sorted. Do not check for
338 flag_profile_reorder_functions it is function local flag.
339 * profile.c (compute_value_histograms): Update tp_first_run printing.
340
341 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
342
343 * opts.c (common_handle_option): Do not clear ipa_reference for
344 -fprofile-use.
345
346 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
347
348 * ipa-split.c (split_function): Preserve 0 tp_first_run.
349
350 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
351
352 * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
353 sanity check.
354
355 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
356
357 PR tree-optimization/92860
358 * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
359 Optimization flag.
360
361 2019-12-07 Marek Polacek <polacek@redhat.com>
362
363 PR c++/91678 - wrong error with decltype and location wrapper.
364 * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
365
366 2019-12-07 Eric Botcazou <ebotcazou@adacore.com>
367
368 PR middle-end/90840
369 * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
370 sure to pass a valid inner mode in calls to simplify_gen_subreg.
371
372 2019-12-07 Tobias Burnus <tobias@codesourcery.com>
373 David Malcolm <dmalcolm@redhat.com>
374 Jakub Jelinek <jakub@redhat.com>
375
376 PR c/87488
377 * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
378 instead of ST sequence to terminate OSC 8 strings.
379
380 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com>
381 Vladimir Makarov <vmakarov@redhat.com>
382
383 PR rtl-optimization/92176
384 * lra.c (simplify_subreg_regno): Don't permit unconditional
385 changing mode for LRA too.
386
387 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
388
389 * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
390 (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
391 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
392 Handle them.
393
394 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
395
396 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
397 in the asm output.
398
399 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
400
401 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
402 (VEC_1REG_ALT): Likewise.
403 (VEC_ALL1REG_MODE): New mode iterator.
404 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
405 (VEC_1REG_INT_ALT): Likewise.
406 (VEC_ALL1REG_INT_MODE): New mode interator.
407 (VEC_ALL1REG_INT_ALT): Likewise.
408 (VEC_REG_MODE): Remove V64QI and V64HI.
409 (VEC_ALLREG_MODE): New mode interator.
410 (vec_merge): Change to VEC_ALLREG_MODE.
411 (vec_merge_with_clobber): Likewise.
412 (vec_merge_with_vcc): Likewise.
413 (mov<mode>): Likewise.
414 (mov<mode>_unspec): Likewise.
415 (*mov<mode>): Change to VEC_ALL1REG_MODE.
416 (mov<mode>_exec): Likewise.
417 (*mov<mode>_exec_match): Likewise.
418 (mov<mode>_sgprbase): Likewise.
419 (reload_in<mode>): Change to VEC_ALLREG_MODE.
420 (reload_out<mode>): Likewise.
421 (scalar address splits): Likewise.
422 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
423 (vec_set<mode>): Change to VEC_ALLREG_MODE.
424 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
425 (vec_duplicate<mode><exec>): Likewise.
426 (vec_extract<mode><scalar_mode>): Likewise.
427 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
428 (gather_load<mode>): Likewise.
429 (gather<mode>_exec): Likewise.
430 (gather<mode>_expr<exec>): Likewise.
431 (gather<mode>_insn_1offset<exec>): Likewise.
432 (gather<mode>_insn_1offset_ds<exec>): Likewise.
433 (gather<mode>_insn_2offsets<exec>): Likewise.
434 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
435 (VEC_INT_MODE): Remove V64QI and V64HI.
436 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
437 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
438 VEC_ALL1REG_MODE.
439 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
440 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
441 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
442 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
443 (maskstore<mode>di): Likewise.
444 (mask_gather_load<mode>): Likewise.
445 (mov_from_lane63_<mode>): Likewise.
446 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
447 and V64HImode vectorization.
448 (gcn_related_vector_mode): New function.
449 (TARGET_VECTORIZE_RELATED_MODE): New define.
450
451 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
452 Kwok Cheung Yeung <kcy@codesourcery.com>
453
454 * omp-low.c (lower_omp_target): For optional arguments, deref once
455 more to obtain the type.
456
457 2019-12-06 Richard Biener <rguenther@suse.de>
458
459 * match.pd (nop_convert): Remove empty match. Use nop_convert?
460 everywhere.
461
462 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
463
464 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
465 for empty vectors. Avoid using ordered_remove and instead
466 shuffle the vector as we go.
467
468 2019-12-06 Richard Biener <rguenther@suse.de>
469
470 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
471 VIEW_CONVERT{0,1,2}.
472 (expr::opt_grp): Add and initialize.
473 (lower_opt_convert): Rename to ...
474 (lower_opt): ... and work on opt_grp, simply switching operations
475 from being optional to being present or not.
476 (has_opt_convert): Rename to ...
477 (has_opt): ... and adjust.
478 (parser::parse_operation): Return the optional opt_grp,
479 remove special-casing of conditional operations and more generally
480 parse [digit]'?'.
481 (parser::parse_expr): Stick on the parsed opt_grp and perform
482 rough verification.
483 (parser::parse_for): Remove now unnecessary code.
484 (main): Likewise.
485 * doc/match-and-simplify.texi: Mention ? now works on all
486 unary operations and also match predicates.
487
488 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
489
490 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
491 functions, not inline clones.
492
493 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
494
495 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
496
497 2019-12-06 Richard Biener <rguenther@suse.de>
498
499 * genmatch.c (c_expr::gen_transform): Emit newlines from line
500 number changes rather than after every semicolon.
501
502 2019-12-06 Richard Biener <rguenther@suse.de>
503
504 PR tree-optimization/92819
505 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
506 into the last lane. For two-element vectors try inserting
507 into the last lane when inserting into the first fails.
508
509 2019-12-06 Jakub Jelinek <jakub@redhat.com>
510
511 * common.opt (fprofile-partial-training): Terminate description with
512 full stop.
513
514 2019-12-05 Martin Sebor <msebor@redhat.com>
515
516 PR middle-end/92622
517 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
518 left uninitialized by get_addr_base_and_unit_offset on failure.
519
520 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
521
522 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
523 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
524 (detect_type_change): Likewise.
525 (detect_type_change_ssa): Likewise.
526 (ipa_analyze_virtual_call_uses): Update.
527
528 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
529
530 * config/nios2/linux.h (LINK_EH_SPEC): Define.
531
532 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
533
534 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
535
536 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
537
538 * cgraphclones.c (localize_profile): New function.
539 (cgraph_node::create_clone): Use it for partial profiles.
540 * common.opt (fprofile-partial-training): New flag.
541 * doc/invoke.texi (-fprofile-partial-training): Document.
542 * ipa-cp.c (update_profiling_info): For partial profiles do not
543 set function profile to zero.
544 * profile.c (compute_branch_probabilities): With partial profile
545 watch if edge count is zero and turn all probabilities to guessed.
546 (compute_branch_probabilities): For partial profiles do not apply
547 profile when entry count is zero.
548 * tree-profile.c (tree_profiling): Only do value_profile_transformations
549 when profile is read.
550
551 2019-12-05 Sudakshina Das <sudi.das@arm.com>
552
553 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
554 check from if condition.
555
556 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
557
558 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
559 and Fortran's optional arguments, unconditionally add the is-present
560 condition before the libgomp call.
561
562 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
563
564 PR middle-end/92768
565 * tree-core.h (OEP_BITWISE): New flag.
566 * fold-const.c (operand_compare::operand_equal_p): Handle it.
567 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
568
569 2019-12-05 Richard Biener <rguenther@suse.de>
570
571 PR middle-end/92818
572 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
573 heuristics on what don't care element to choose.
574 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
575
576 2019-12-05 Martin Liska <mliska@suse.cz>
577
578 PR gcov-profile/92817
579 * coverage.c (build_gcov_exit_decl): Remove superfluous
580 void_type_node.
581
582 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
583
584 * config/msp430/msp430.md (cbranch<mode>4): Use
585 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
586 dest operand of CMP instruction.
587 (cbranchpsi4_real): Likewise.
588 (cbranchqi4_real): Likewise.
589 (cbranchhi4_real): Likewise.
590 (cbranchpsi4_reversed): Likewise.
591 (cbranchqi4_reversed): Likewise.
592 (cbranchhi4_reversed): Likewise.
593
594 2019-12-05 Richard Biener <rguenther@suse.de>
595
596 PR tree-optimization/92803
597 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
598 invariant vector construction.
599
600 2019-12-05 Martin Liska <mliska@suse.cz>
601
602 PR gcov-profile/91971
603 * coverage.c (coverage_init): Mangle full path
604 only when -fprofile-dir is used.
605
606 2019-12-05 Jakub Jelinek <jakub@redhat.com>
607
608 PR target/92791
609 * config/i386/i386.md (movstrict<mode>): Move test for
610 TARGET_PARTIAL_REG_STALL and not optimizing for size from
611 expander's condition to the body - FAIL; in that case.
612
613 2019-12-03 Martin Sebor <msebor@redhat.com>
614
615 PR middle-end/91582
616 * builtins.c (gimple_call_alloc_size): New function.
617 (compute_objsize): Add argument. Call gimple_call_alloc_size.
618 Handle variable offsets and indices.
619 * builtins.h (gimple_call_alloc_size): Declare.
620 (compute_objsize): Add argument.
621 * gimple-ssa-warn-restrict.c: Remove assertions.
622 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
623
624 2019-12-04 Julian Brown <julian@codesourcery.com>
625
626 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
627
628 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
629
630 PR bootstrap/92661
631 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
632 rs6000.h.
633 (altivec_overloaded_builtins): Move to rs6000-call.c.
634 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
635 rs6000-c.c.
636 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
637 (altivec_overloaded_builtins): Moved from rs6000-c.c.
638 (rs6000_common_init_builtins): Do no define builtins that overload
639 builtins that have been disabled.
640
641 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
642
643 * config/arm/arm.c (arm_option_override_internal):
644 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
645
646 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
647
648 * config/aarch64/aarch64.c
649 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
650 (thunderx_tunings): Likewise.
651 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
652 (thunderx2t99_tunings): Likewise.
653 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
654 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
655
656 2019-12-04 Richard Biener <rguenther@suse.de>
657
658 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
659 empty CTOR and memset partial-def registering. Take advantage
660 of fancy offset analysis in memset handling.
661
662 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
663
664 * fold-const.c (native_encode_vector_part): Handle
665 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
666 (native_decode_vector_tree): Delete, moving the bulk of the code to...
667 (native_interpret_vector_part): ...this new function. Use a pointer
668 and length instead of a vec<> and start index.
669 (native_interpret_vector): Use native_interpret_vector_part.
670 (fold_view_convert_vector_encoding): Likewise.
671
672 2019-12-04 Richard Biener <rguenther@suse.de>
673
674 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
675 non-constant defs in the most trivial way.
676 (vn_reference_lookup_3): Also push down SSA partial defs.
677
678 2019-12-04 Martin Liska <mliska@suse.cz>
679
680 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
681 Initialize count of newly created BB.
682
683 2019-12-04 Jakub Jelinek <jakub@redhat.com>
684
685 PR tree-optimization/92734
686 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
687 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
688
689 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
690
691 PR target/92760
692 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
693 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
694
695 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
696
697 * ipa-fnsummary.c: Include tree-into-ssa.h.
698 (compute_fn_summary): Call update_ssa.
699
700 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
701
702 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
703 is set only for symbol in comdat group.
704 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
705
706 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
707
708 * cgraph.c: Include tree-into-ssa.h
709 (cgraph_node::get_body): Call update_ssa.
710 * cgraphunit.c (cgraph_node::expand): Likewise.
711 * lto-streamer-in.c (input_function): Do not call update_ssa.
712
713 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
714
715 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
716 an array element size if array_element_size is already an invariant.
717 Similarly don't gimplify and install a field offset if
718 component_ref_field_offset is already an invariant.
719
720 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
721
722 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
723 with POLY_INT_CST size is made to a fixed-size object, force the
724 object to live in memory.
725
726 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
727
728 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
729 for the data mode.
730
731 2019-12-03 Richard Biener <rguenther@suse.de>
732
733 PR tree-optimization/92758
734 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
735 operation on uniform vectors.
736
737 2019-12-03 Richard Biener <rguenther@suse.de>
738
739 PR tree-optimization/92645
740 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
741 from or to a properly aligned register variable.
742
743 2019-12-03 Matthias Klose <doko@ubuntu.com>
744
745 * Makefile.in (SOURCES): Add doc/lto-dump.1.
746 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
747 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
748
749 2019-12-03 Richard Biener <rguenther@suse.de>
750
751 PR tree-optimization/92751
752 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
753 when a clobber ends up in the partial-def vector.
754 (vn_reference_lookup_3): Let clobbers be handled by the
755 assignment from CTOR handling.
756
757 2019-12-03 Jakub Jelinek <jakub@redhat.com>
758
759 PR tree-optimization/92734
760 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
761 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
762 inner subtraction.
763
764 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
765 Jakub Jelinek <jakub@redhat.com>
766
767 PR target/92744
768 * config/i386/i386.md (peephole2 for *swap<mode>): Use
769 general_reg_operand predicates instead of register_operand.
770
771 2019-12-03 Richard Biener <rguenther@suse.de>
772
773 PR tree-optimization/92645
774 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
775 a full def of a vector via a BIT_INSERT_EXPR.
776
777 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
778
779 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
780 static.
781 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
782 decl.
783
784 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
785
786 PR middle-end/92741
787 * fold-const.c (fold_convertible_p): Check vector types more
788 thoroughly.
789
790 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
791
792 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
793 (aarch64_expand_mov_immediate): Use it when attempting to measure
794 the length of an SVE vector.
795 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
796 SVE is enabled.
797
798 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
799
800 * config/aarch64/aarch64-sve-builtins.h
801 (gimple_folder::force_vector): Declare.
802 * config/aarch64/aarch64-sve-builtins.cc
803 (gimple_folder::force_vector): New function.
804 * config/aarch64/aarch64-sve-builtins-base.cc
805 (svcmp_impl::fold): Likewise.
806 (svdup_impl::fold): Handle svdup_z too.
807
808 2019-12-02 Martin Liska <mliska@suse.cz>
809
810 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
811 function.
812 (debug_tree_odr_name): New.
813 * ipa-utils.h (get_odr_name_for_type): New.
814
815 2019-12-02 Richard Biener <rguenther@suse.de>
816
817 PR tree-optimization/92742
818 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
819 touch the def-type but verify it is consistent with the
820 original stmts.
821
822 2019-12-02 Jakub Jelinek <jakub@redhat.com>
823
824 PR tree-optimization/92712
825 * match.pd ((A * B) +- A -> (B +- 1) * A,
826 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
827 even when we don't know anything about range of A, but do know
828 something about range of B and the simplification won't introduce
829 new UB.
830
831 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
832
833 PR ipa/92133
834 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
835 (ipa-cp-min-recursive-probability): Likewise.
836 * params.opt (ipa-cp-max-recursive-depth): New.
837 (ipa-cp-min-recursive-probability): Likewise.
838 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
839 val_p and unlimited.
840 (self_recursively_generated_p): New function.
841 (get_val_across_arith_op): Likewise.
842 (propagate_vals_across_arith_jfunc): Add constant propagation for
843 self-recursive function.
844 (incorporate_penalties): Do not penalize pure self-recursive function.
845 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
846 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
847 (get_info_about_necessary_edges): Relax hotness check for edge to
848 self-recursive function.
849 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
850
851 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
852
853 PR target/92499
854
855 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
856 objects of flexible types to be small if they have internal linkage
857 or are declared extern.
858 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
859 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
860 instead of the size of the object initializer.
861 * tree.c (flexible_array_type_p): Move from C front end, and
862 generalize to handle fields in non-C structures.
863 * tree.h (flexible_array_type_p): Declare.
864
865 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
866
867 * profile-count.h (profile_count::operator<): Use IPA value for
868 comparsion.
869 (profile_count::operator>): Likewise.
870 (profile_count::operator<=): Likewise.
871 (profile_count::operator>=): Likewise.
872 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
873
874 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
875
876 * ipa-inline.c (compute_max_insns): Return int64_t.
877 (inline_small_functions): Simplify.
878
879 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
880
881 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
882 scaling happen.
883
884 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
885
886 * cgraph.h (symtab_node): Add symver flag.
887 * cgraphunit.c (process_symver_attribute): New.
888 (process_common_attributes): Use process_symver_attribute.
889 * lto-cgraph.c (lto_output_node): Stream symver.
890 (lto_output_varpool_node): Stream symver.
891 (input_overwrite_node): Stream symver.
892 (input_varpool_node): Stream symver.
893 * output.h (do_assemble_symver): Decalre.
894 * symtab.c (symtab_node::dump_base): Dump symver.
895 (symtab_node::verify_base): Verify symver.
896 (symtab_node::resolve_alias): Handle symver.
897 * varasm.c (do_assemble_symver): New function.
898 * varpool.c (varpool_node::assemble_aliases): Use it.
899 * doc/extend.texi: (symver attribute): Document.
900 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
901
902 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
903
904 * target.h (type_context_kind): New enum.
905 (verify_type_context): Declare.
906 * target.def (verify_type_context): New target hook.
907 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
908 * doc/tm.texi: Regenerate.
909 * tree.c (verify_type_context): New function.
910 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
911 Declare.
912 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
913 New function.
914 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
915 (TARGET_VERIFY_TYPE_CONTEXT): Define.
916
917 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
918
919 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
920 * cgraph.h (cgraph_node): Add unit_id and
921 merged_extern_inline.
922 (symbol_table): Add max_unit.
923 (symbol_table::symbol_table): Initialize it.
924 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
925 merged_comdat, merged_extern_inline.
926 (cgraph_node::create_clone): Likewise.
927 (cgraph_node::create_version_clone): Likewise.
928 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
929 calls.
930 * ipa-fnsummary.h (cross_module_call_p): New inline function.
931 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
932 * ipa-inline.c (inline_small_functions): Likewise.
933 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
934 copy merged_comdat and merged_extern_inline.
935 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
936 merged_extern_inline and unit_id.
937 (input_overwrite_node): Stream in these.
938 (input_cgraph_1): Set unit_base.
939 * lto-streamer.h (lto_file_decl_data): Add unit_base.
940 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
941
942 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
943
944 * gcc.c (process_command): Only warn about an ineffective `-x'
945 option if any input files have actually been supplied.
946
947 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
948
949 * doc/install.texi (Options specification): Remove the list of
950 target library subdirectories supporting
951 `--enable-version-specific-runtime-libs'. Document defaults for
952 the option.
953
954 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
955
956 PR rtl-optimization/92283
957 * lra.c (lra): Update reg notes after inheritance sub-pass and
958 before constraint sub-pass.
959
960 2019-11-29 Richard Biener <rguenther@suse.de>
961
962 PR tree-optimization/91003
963 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
964 operand number, avoid handling the non-condition operands of
965 COND_EXPRs as comparisons.
966 (vect_get_constant_vectors): Pass down the operand number.
967 (vect_get_slp_defs): Likewise.
968
969 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
970
971 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
972 generic_expr_could_trap_p to check if the condition of COND_EXPR or
973 VEC_COND_EXPR can trap.
974
975 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
976
977 PR tree-optimization/92677
978 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
979 to zero when dissolving a group of strided accesses.
980
981 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
982
983 PR tree-optimization/92596
984 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
985 operations.
986 (vectorizable_operation): Likewise, instead of relying on
987 vect_get_mask_type_for_stmt to do this.
988 (vect_get_vector_types_for_stmt): Always return a vector type
989 immediately, rather than deferring the choice for boolean results.
990 Use a vector mask type instead of a normal vector if
991 vect_use_mask_type_p.
992 (vect_get_mask_type_for_stmt): Delete.
993 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
994 mask_producers argument and special boolean_type_node handling.
995 (vect_determine_vf_for_stmt): Remove mask_producers argument and
996 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
997 (vect_determine_vectorization_factor): Update call accordingly.
998 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
999 boolean_type_node handling.
1000 (vect_slp_analyze_node_operations_1): Likewise.
1001
1002 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1003
1004 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
1005 (vect_use_mask_type_p): New function.
1006 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
1007 mask precision to the pattern statement.
1008 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
1009 and use it to initialize the new stmt's mask precision.
1010 (search_type_for_mask_1): Delete.
1011 (search_type_for_mask): Replace with...
1012 (integer_type_for_mask): ...this new function. Use the information
1013 cached in the stmt_vec_info.
1014 (vect_recog_bool_pattern): Update accordingly.
1015 (build_mask_conversion): Pass the scalar type associated with the
1016 mask type to append_pattern_def_seq.
1017 (vect_recog_mask_conversion_pattern): Likewise. Call
1018 integer_type_for_mask instead of search_type_for_mask.
1019 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
1020 of search_type_for_mask.
1021 (possible_vector_mask_operation_p): New function.
1022 (vect_determine_mask_precision): Likewise.
1023 (vect_determine_stmt_precisions): Call it.
1024
1025 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1026
1027 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
1028 the slp_tree parameter with a group size parameter.
1029 (vect_get_mask_type_for_stmt): Likewise.
1030 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
1031 (vect_get_mask_type_for_stmt): Likewise.
1032 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
1033 call accordingly.
1034
1035 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1036
1037 * tree-vect-stmts.c (vectorizable_operation): Punt early
1038 on codes that are handled elsewhere.
1039
1040 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1041
1042 * doc/sourcebuild.texi (vect_bool_cmp): Document.
1043 * tree-vect-patterns.c (search_type_for_mask_1): If neither
1044 operand to a boolean comparison is a natural vector mask,
1045 handle both operands like normal integers instead.
1046
1047 2019-11-29 Richard Biener <rguenther@suse.de>
1048
1049 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
1050 out early for too large objects.
1051
1052 2019-11-29 Martin Jambor <mjambor@suse.cz>
1053
1054 PR ipa/92476
1055 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
1056 the summary only if the summary exists.
1057 (find_more_scalar_values_for_callers_subset): Check node_dead in
1058 the summary only if the summary exists.
1059 (ipcp_store_bits_results): Ignore nodes without lattices.
1060 (ipcp_store_vr_results): Likewise.
1061 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
1062 header files required by them.
1063 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
1064
1065 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1066
1067 PR tree-optimization/92710
1068 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
1069 vector mask arguments.
1070
1071 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
1072
1073 * profile-count.c (profile_count::to_cgraph_frequency,
1074 profile_count::to_sreal_scale): Check for compaibility of counts.
1075 * profile-count.h (compatible_p): Make public; add checking for
1076 global0 versus global types.
1077 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
1078
1079 2019-11-29 Richard Biener <rguenther@suse.de>
1080
1081 PR tree-optimization/92715
1082 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
1083 out for uniform vectors and source vectors with less elements
1084 than the destination.
1085
1086 2019-11-29 Martin Liska <mliska@suse.cz>
1087
1088 PR lto/91574
1089 * ipa-devirt.c (types_same_for_odr): Check for existence
1090 of TYPE_NAMEs first.
1091
1092 2019-11-29 Richard Biener <rguenther@suse.de>
1093
1094 PR tree-optimization/92704
1095 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
1096 in loops performing only loads.
1097
1098 2019-11-29 Julian Brown <julian@codesourcery.com>
1099
1100 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
1101 BT_DFLOAT128_PTR) Remove.
1102 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
1103 TI_DFLOAT128_PTR_TYPE): Remove.
1104 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
1105 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
1106 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
1107 dfloat128_ptr_type_node): Remove macros.
1108
1109 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1110
1111 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
1112 formatting.
1113 (*movdi_internal64): Ditto.
1114
1115 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1116
1117 PR target/92602
1118 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
1119 indexed_or_indirect_operand to be memory_operand.
1120 (bswap<mode>2_store for HSI): Ditto.
1121 (bswapdi2_load): Ditto.
1122 (bswapdi2_store): Ditto.
1123
1124 2019-11-28 Martin Liska <mliska@suse.cz>
1125
1126 PR debug/46558
1127 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
1128 headers for translation.
1129
1130 2019-11-28 Martin Liska <mliska@suse.cz>
1131
1132 PR lto/92609
1133 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
1134 consistently.
1135
1136 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1137
1138 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
1139 checks.
1140
1141 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1142
1143 * profile-count.c (profile_count::combine_with_ipa_count): Return
1144 uninitialized count if called on ininitialized count.
1145
1146 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1147
1148 * ipa-inline-transform.c (inline_transform): Scale profile before
1149 redirecting.
1150
1151 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1152
1153 * profile-count.h (profile_count::max): Work on profiles of different
1154 type.
1155 (profile_count::apply_scale): Be sure that ret is not local or global0
1156 type if num is global.
1157
1158 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1159
1160 * profile-count.h (profile_count::max): Work on profiles of different
1161 type.
1162 (profile_count::apply_scale): Be sure that ret is not local or global0
1163 type if num is global.
1164
1165 2019-11-28 Martin Jambor <mjambor@suse.cz>
1166
1167 PR ipa/92697
1168 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
1169 ifunc_resolvers.
1170 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
1171 Removed trailig whitespace.
1172
1173 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1174
1175 * profile-count.h (profile_count::combine_with_ipa_count_within):
1176 Declare.
1177 * profile-count.c (profile_count::combine_with_ipa_count_within):
1178 New.
1179 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
1180 it.
1181
1182 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1183
1184 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
1185 of counters are done same way.
1186
1187 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1188
1189 * ipa-cp.c (update_profiling_info): Fix scaling.
1190
1191 2019-11-28 Richard Biener <rguenther@suse.de>
1192
1193 PR tree-optimization/92645
1194 * tree-inline.c (remap_gimple_stmt): When the return value
1195 is not wanted, elide GIMPLE_RETURN.
1196
1197 2019-11-28 Richard Biener <rguenther@suse.de>
1198
1199 PR tree-optimization/92645
1200 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
1201 conversions inside a mode class. Remove restriction on
1202 preserving the element size.
1203 (simplify_vector_constructor): Deal with the above and for
1204 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
1205 and VEC_PACK_TRUNC_EXPR.
1206
1207 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
1208
1209 Must use push insn to pass varargs arguments of DFmode because
1210 otherwise the middle-end generates wrong code.
1211
1212 PR target/92055
1213 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
1214
1215 2019-11-28 Jakub Jelinek <jakub@redhat.com>
1216
1217 PR tree-optimization/92691
1218 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
1219 in function comment.
1220 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
1221 calls, return !handle_printf_call rather than always returning true.
1222 (check_and_optimize_stmt): Describe return value meaning in function
1223 comment. Formatting fix.
1224
1225 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1226
1227 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
1228 combination of globa0 and global counters..
1229
1230 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
1231
1232 PR target/92566
1233 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
1234 by VECTOR_UNIT_NONE_P instead.
1235
1236 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
1237
1238 * config/i386/sse.md (avx512f_maskcmp<mode>3):
1239 Refine VF to VF_AVX512VL.
1240
1241 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
1242
1243 * config/rs6000/rs6000.md (movsi_internal): Reformat.
1244 (movdi_internal64): Reformat.
1245
1246 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
1247
1248 PR bootstrap/92661
1249 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
1250 builtin if we don't have an actual type.
1251 (builtin_function_type): If the builtin function uses a DFP type
1252 and decimal float has been disabled, then return NULL_TREE.
1253
1254 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1255
1256 PR rtl-optimization/92510
1257 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
1258 of comparison into a comparison with different mode if both imode and
1259 omode are scalar integral modes.
1260
1261 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
1262
1263 PR rtl-optimization/90007
1264 * recog.c (constrain_operands): Permit hard registers too for
1265 memory when LRA is used.
1266
1267 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1268
1269 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
1270 between Coldfire and regular m68k.
1271 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
1272
1273 2019-11-27 Richard Biener <rguenther@suse.de>
1274
1275 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1276 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
1277 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
1278 * optabs-tree.c (supportable_convert_operation): Do not call
1279 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
1280 * optabs-tree.h (supportable_convert_operation): Adjust.
1281 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1282 * doc/tm.texi: Regenerate.
1283 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
1284 * tree-vect-generic.c (expand_vector_conversion): Likewise.
1285 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
1286 unused decl parameter and adjust.
1287 (vect_create_vectorized_promotion_stmts): Likewise.
1288 (vectorizable_conversion): Adjust.
1289
1290 2019-11-27 Richard Biener <rguenther@suse.de>
1291
1292 PR tree-optimization/92690
1293 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
1294 converting elements not originally converted.
1295
1296 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
1297
1298 PR middle-end/92463
1299 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
1300 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
1301 mpfr_rnd_t instead of mp_rnd_t.
1302 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
1303 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
1304 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
1305 Use mpfr_exp_t instead of mp_exp_t.
1306 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
1307 MPFR_RNDx instead of GMP_RNDx.
1308 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
1309 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
1310 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
1311 of mp_rnd_t and remove MPFR_RNDx poisoning.
1312 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
1313
1314 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
1315
1316 PR tree-optimization/91790
1317 * tree-vect-stmts.c (vectorizable_load): Use the adjusted
1318 DR for vect_setup_realignment when first_stmt_info is different
1319 from first_stmt_info_for_drptr.
1320
1321 2019-11-27 Richard Biener <rguenther@suse.de>
1322
1323 PR tree-optimization/92645
1324 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1325 CTORs with just a subset of the original vectors.
1326
1327 2019-11-27 Richard Biener <rguenther@suse.de>
1328
1329 PR middle-end/92674
1330 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
1331 edges and instead record blocks in bitmap.
1332 (gimple_expand_calls_inline): Adjust.
1333 (fold_marked_statements): Delay EH cleanup until all folding is
1334 done.
1335 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
1336 inlining finished.
1337
1338 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1339
1340 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
1341 LRA is enabled.
1342 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
1343 disabled.
1344
1345 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1346
1347 PR debug/92664
1348 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
1349
1350 2019-11-26 Martin Sebor <msebor@redhat.com>
1351
1352 PR tree-optimization/92683
1353 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
1354 inadvertently removed in a previous change. Rename local variable
1355 for clarity.
1356
1357 2019-11-26 Richard Biener <rguenther@suse.de>
1358
1359 PR middle-end/92669
1360 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
1361 NULL pre_order.
1362
1363 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
1364
1365 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
1366
1367 2019-11-26 Jakub Jelinek <jakub@redhat.com>
1368
1369 PR tree-optimization/92644
1370 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1371 next to INTEGER_CST checks.
1372
1373 2019-11-26 Richard Biener <rguenther@suse.de>
1374
1375 PR tree-optimization/92645
1376 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1377 do not build the operation from scalars if the operand is.
1378
1379 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1380
1381 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1382 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1383 definitions.
1384
1385 2019-11-25 Martin Liska <mliska@suse.cz>
1386
1387 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1388 up used dump message.
1389
1390 2019-11-25 Martin Liska <mliska@suse.cz>
1391
1392 PR bootstrap/92653
1393 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1394 too strict checking assert.
1395
1396 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1397
1398 PR c/91985
1399 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1400 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1401 error_mark_node if corresponding global tree node is NULL.
1402 * tree.c (build_common_tree_nodes): Do not initialize
1403 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1404 decimal floating-point not supported.
1405
1406 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1407
1408 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1409 types.
1410
1411 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
1412
1413 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1414 Replace code for non-CONST_INT constants with gcc_unreachable.
1415 * config/m68k/m68k.md (cbranchdi): Don't generate individual
1416 compare and test.
1417 (CMPMODE): New mode_iterator.
1418 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1419 cbranch<mode>4.
1420 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1421 cstore<mode>4.
1422 (cmp<mode>_68881): Remove 'F' constraint from first comparison
1423 operand.
1424 (bit test insns patterns): Use nonimmediate_operand, not
1425 register_operand, for source operands that allow memory in
1426 their constraints.
1427 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1428 Use register_operand, not nonimmediate_operand, for the
1429 destinations.
1430 (DBCC): New mode_iterator.
1431 (dbcc peepholes): Use it to reduce duplication.
1432 (trap): Use const_true_rtx, not const1_rtx.
1433 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1434 from m68k_subword_comparison_operand and changed to handle
1435 SImode.
1436
1437 PR target/91851
1438 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1439 declaration.
1440 (m68k_init_cc): New declaration.
1441 (m68k_output_compare_di, m68k_output_compare_si)
1442 (m68k_output_compare_hi, m68k_output_compare_qi)
1443 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1444 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1445 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1446 m68k_output_branch_float, m68k_output_branch_float_rev):
1447 Likewise.
1448 (valid_dbcc_comparison_p_2, flags_in_68881)
1449 (output_btst): Remove declaration.
1450 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1451 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1452 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1453 (flags_compare_op0, flags_compare_op1, flags_operand1,
1454 flags_operand2, flags_valid): New static variables.
1455 (m68k_find_flags_value, m68k_init_cc): New functions.
1456 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1457 remember_compare_flags): New static functions.
1458 (output_dbcc_and_branch): New argument CODE. Use it, and add
1459 PLUS and MINUS to the possible codes. All callers changed.
1460 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1461 and INSN arguments, add CODE arg. Return the comparison code
1462 to use. All callers changed. Use CODE instead of
1463 next_insn_tests_no_inequality, and replace cc_status management
1464 with changing the return code.
1465 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1466 RTX_COMPARE or RTX_COMM_COMPARE.
1467 (output_move_simode, output_move_qimode): Call
1468 handle_flags_for_move.
1469 (notice_update_cc): Delete function.
1470 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1471 m68k_output_compare_hi, m68k_output_compare_qi,
1472 m68k_output_compare_fp, m68k_output_branch_integer,
1473 m68k_output_branch_integer_rev, m68k_output_scc,
1474 m68k_output_branch_float, m68k_output_branch_float_rev,
1475 m68k_output_scc_float): New functions.
1476 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1477 once at the start, and set flags_valid and flags_operand1 if the
1478 flags are usable.
1479 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1480 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1481 definitions.
1482 (CC_STATUS_INIT): Define.
1483 * config/m68k/m68k.md (flags_valid): New define_attr.
1484 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1485 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1486 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1487 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1488 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1489 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1490 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1491 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1492 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1493 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1494 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1495 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1496 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1497 ctrapqi4, conditional_trap): Delete patterns.
1498 (cbranchdi4_insn): New pattern.
1499 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1500 test high part only. When testing EQ or NE, generate beq0_di
1501 and bne0_di patterns directly.
1502 (cstoredi4): When testing LT or GE, test high part only.
1503 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1504 patterns.
1505 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1506 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1507 cmp2_cf_predicate): New define_mode_attrs.
1508 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1509 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1510 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1511 New patterns.
1512 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1513 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1514 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1515 New patterns.
1516 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1517 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1518 Likewise.
1519 (BTST): New define_mode_iterator.
1520 (btst_predicate, btst_constraint, btst_range): New
1521 define_mode_attrs.
1522 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1523 patterns.
1524 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1525 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1526 patterns): Set attr "flags_valid".
1527 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1528 management. Set attr "flags_valid".
1529 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1530 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1531 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1532 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1533 manual CC_STATUS management.
1534 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1535 unnamed strict_lowpart subhi and subqi patterns): Set attr
1536 "flags_valid".
1537 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1538 Remove code to operate on address regs and assert the case
1539 does not occur.
1540 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1541 manual CC_STATUS_INIT.
1542 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1543 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1544 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1545 one_cmplqi2, unnamed strict_lowpart patterns
1546 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1547 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1548 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1549 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1550 CC_STATUS_INIT.
1551 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1552 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1553 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1554 unnamed strict_low_part patterns for HI and
1555 QI versions): Set attr "flags_valid".
1556 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1557 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1558 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1559 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1560 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1561 (various unnamed peepholes): Adjust compare/branch sequences
1562 for new cbranch patterns.
1563 (dbcc peepholes): Likewise, and output the comparison here
1564 as well.
1565 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1566 (fp_src_operand): Allow constant zero.
1567 (address_reg_operand): New predicate.
1568
1569 * rtl.h (inequality_comparisons_p): Remove declaration.
1570 * recog.h (next_insn_tests_no_inequality): Likewise.
1571 * rtlanal.c (inequality_comparisons_p): Delete function.
1572 * recog.c (next_insn_tests_no_inequality): Likewise.
1573
1574 2019-11-25 Richard Biener <rguenther@suse.de>
1575
1576 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1577 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1578 properly re-building the visited hash-map for each lane.
1579
1580 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1581
1582 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1583 gcn_md_reorg): Remove unused variables.
1584 (gcn_emutls_var_init): Add missing (but unreachable) return
1585 to silence warning.
1586 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1587 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1588 an uninitialized variable.
1589
1590 2019-11-25 Martin Jambor <mjambor@suse.cz>
1591
1592 PR ipa/92109
1593 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1594 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1595 (cgraph_materialize_clone): Move removel from clone tree to the
1596 the new method and use it instead.
1597 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1598 bodies of clones, also remove it from the clone tree.
1599
1600 2019-11-25 Martin Jambor <mjambor@suse.cz>
1601
1602 PR ipa/91956
1603 * ipa-sra.c (process_isra_node_results): Put the new node to the
1604 same comdat group as the original node.
1605
1606 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1607
1608 Build double32 / long-double32 multilibs if needed.
1609
1610 PR target/92055
1611 * config/avr/t-avr:
1612 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1613 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1614 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1615 tm_defines and pass to genmultilib.awk.
1616 * config/avr/genmultilib.awk: Use these variables to add double32
1617 and / or long-double32 multilib(s) as needed.
1618 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1619
1620 2019-11-25 Richard Biener <rguenther@suse.de>
1621
1622 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1623 loop body, defaulted to NULL.
1624 (single_likely_exit): Add exit vector argument
1625 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1626 (number_of_iterations_exit): Likewise.
1627 (number_of_iterations_exit_assumptions): Likewise.
1628 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1629 if not NULL.
1630 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1631 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1632 Compute exit vector around call to single_likely_exit.
1633 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1634 loop body to loop_only_exit_p.
1635 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1636 caller.
1637 (number_of_iterations_exit_assumptions): Get loop body from caller
1638 if not NULL.
1639 (number_of_iterations_exit): Pass through new loop body arg.
1640 (infer_loop_bounds_from_undefined): Get loop body from caller.
1641 (estimate_numbers_of_iterations): Compute loop body once.
1642
1643 2019-11-25 Richard Biener <rguenther@suse.de>
1644
1645 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1646 auto_bb_flag instead of an sbitmap for visited handling.
1647
1648 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1649
1650 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1651 iterator.
1652 (vector_fp_comparison_complex): Likewise.
1653 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1654 define_and_split.
1655 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1656 Likewise.
1657 (vector_lt<mode> for VEC_F): Refactor with
1658 vector_fp_comparison_simple.
1659 (vector_le<mode> for VEC_F): Likewise.
1660 (vector_unge<mode> for VEC_F): Likewise.
1661 (vector_unle<mode> for VEC_F): Likewise.
1662 (vector_ne<mode> for VEC_F): Likewise.
1663 (vector_ungt<mode> for VEC_F): Likewise.
1664 (vector_unlt<mode> for VEC_F): Likewise.
1665 (vector_ltgt<mode> for VEC_F): Refactor with
1666 vector_fp_comparison_complex.
1667 (vector_ordered<mode> for VEC_F): Likewise.
1668 (vector_uneq<mode> for VEC_F): Likewise.
1669 (vector_unordered<mode> for VEC_F): Likewise.
1670
1671 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1672
1673 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1674 COMPARE, representing an overflow detection.
1675
1676 * combine.c (combine_instructions): Record costs for jumps.
1677
1678 * combine.c (can_combine_p): Allow autoinc in jumps.
1679
1680 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1681
1682 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1683 * doc/invoke.texi (max-inline-insns-single-O2,
1684 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1685 early-inlining-insns-O2): Remove documentation.
1686 * ipa-fnsummary.c (analyze_function_body,
1687 compute_fn_summary): Use opt_for_fn when accessing parameters.
1688 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1689 inline_insns_auto, can_inline_edge_by_limits_p,
1690 want_early_inline_function_p, big_speedup_p,
1691 want_inline_small_function_p, want_inline_self_recursive_call_p,
1692 recursive_inlining, compute_max_insns, inline_small_functions):
1693 Likewise.
1694 * opts.c (default_options): Add -O3 defaults for
1695 OPT__param_early_inlining_insns_,
1696 OPT__param_inline_heuristics_hint_percent_,
1697 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1698 * params.opt (-param=early-inlining-insns-O2=,
1699 -param=inline-heuristics-hint-percent-O2=,
1700 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1701 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1702 -param=inline-min-speedup=, -param=inline-unit-growth=,
1703 -param=large-function-growth=, -param=large-stack-frame=,
1704 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1705 -param=max-inline-insns-recursive=,
1706 -param=max-inline-insns-recursive-auto=,
1707 -param=max-inline-insns-single=,
1708 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1709 -param=max-inline-recursive-depth=,
1710 -param=max-inline-recursive-depth-auto=,
1711 -param=min-inline-recursive-probability=,
1712 -param=partial-inlining-entry-probability=,
1713 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1714 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1715 Optimization.
1716
1717 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1718
1719 * ipa-fnsummary.c: Fix comment typos.
1720 * ipa-ref.h: Likewise.
1721 * ipa-predicate.h: Likewise.
1722 * ipa-split.c: Likewise.
1723 * ipa-inline-analysis.c: Likewise.
1724 * ipa-predicate.c: Likewise.
1725 * ipa-devirt.c: Likewise.
1726 * ipa-icf.h: Likewise.
1727 * profile-count.c: Likewise.
1728 * ipa-icf.c: Likewise.
1729 (sem_function::equals_wpa): Fix typos in dump messages.
1730 * ipa-icf-gimple.h: Fix comment typos.
1731 * ipa-inline-transform.c: Likewise.
1732 * ipa-polymorphic-call.c: Likewise.
1733 * ipa-fnsummary.h: Likewise.
1734 * ipa-inline.c: Likewise.
1735 (dump_inline_stats): Fix typo in debug dump message.
1736 * profile-count.h: Fix comment typos.
1737
1738 PR target/92615
1739 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1740 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1741 register_operand, force x into register before storing it into dest.
1742 Formatting fix.
1743
1744 PR middle-end/83859
1745 * doc/extend.texi (attribute access): Fix a typo.
1746
1747 PR rtl-optimization/92610
1748 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1749 cse_cfg_altered is set, even when tem is 0.
1750 (rest_of_handle_cse_after_global_opts): Likewise.
1751
1752 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1753
1754 PR c++/92458
1755 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1756 tree_hash): Move to ...
1757 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1758 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1759 types.
1760 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1761
1762 PR tree-optimization/92618
1763 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1764 containing the auto_vec and a tree.
1765 (undistribute_bitref_for_vector): Handle the case when element type
1766 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1767 fixes.
1768
1769 2019-11-22 Martin Sebor <msebor@redhat.com>
1770
1771 PR middle-end/83859
1772 * attribs.h (struct attr_access): New.
1773 * attribs.c (decl_attributes): Add an informational note.
1774 * builtins.c (check_access): Make extern. Consistently set no-warning
1775 after issuing a warning. Handle calls through function pointers. Set
1776 no-warning.
1777 * builtins.h (check_access): Declare.
1778 * calls.c (rdwr_access_hash): New type.
1779 (rdwr_map): Same.
1780 (init_attr_rdwr_indices): New function.
1781 (maybe_warn_rdwr_sizes): Same.
1782 (initialize_argument_information): Call init_attr_rdwr_indices.
1783 Call maybe_warn_rdwr_sizes.
1784 (get_size_range): Avoid null argument.
1785 * doc/extend.texi (attribute access): Document new attribute.
1786
1787 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1788
1789 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1790 (ACC_LDS_SIZE): Define.
1791 (OTHER_LDS_SIZE): Define.
1792 (LDS_SIZE): Redefine using above.
1793 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1794
1795 2019-11-22 Martin Sebor <msebor@redhat.com>
1796
1797 PR middle-end/88226
1798 * builtins.c (check_nul_terminated_array): New function.
1799 (fold_builtin_0): Remove declaration.
1800 (fold_builtin_1): Same.
1801 (fold_builtin_2): Same.
1802 (fold_builtin_3): Same.
1803 (fold_builtin_strpbrk): Add argument.
1804 (fold_builtin_strspn): Same.
1805 (fold_builtin_strcspn): Same.
1806 (expand_builtin_strcat): Call it. Remove unused argument.
1807 (expand_builtin_stpncpy): Same.
1808 (expand_builtin_strncat): Same.
1809 (expand_builtin_strncpy): Same. Adjust indentation.
1810 (expand_builtin_strcmp): Same.
1811 (expand_builtin_strncmp): Same.
1812 (expand_builtin_fork_or_exec): Same.
1813 (expand_builtin): Handle more built-ins.
1814 (fold_builtin_2): Add argument.
1815 (fold_builtin_n): Make static. Add argument.
1816 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1817 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1818 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1819 (fold_call_stmt): Pass new argument to fold_builtin_n.
1820 * builtins.h: Correct a comment.
1821 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1822 check_nul_terminated_array.
1823 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1824 check_nul_terminated_array.
1825 (handle_builtin_strchr): Same.
1826 (handle_builtin_string_cmp): Same.
1827
1828 2019-11-22 Martin Sebor <msebor@redhat.com>
1829
1830 PR tree-optimization/92501
1831 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1832 handle unterminated arrays. Rename local variables for clarity.
1833
1834 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1835
1836 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1837 granulated_sgprs according to architecture.
1838
1839 2019-11-22 Jan Hubicka <jh@suse.cz>
1840
1841 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1842 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1843 (memory_block_pool::reduce_free_list): ... this one.
1844 (memory_block_pool::trim): New static function.
1845 * memory-block.h (memory_block_pool::freelist_size): New constant
1846 (memory_block_pool::clear_free_list): Rename to ...
1847 (memory_block_pool::reduce_free_list): ... this one.
1848 (memory_block_pool::trim): Declare.
1849
1850 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1851
1852 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1853 vect_cost_for_stmt.
1854 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1855 here rather than...
1856 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1857
1858 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1859
1860 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1861 (bic_cmp0_noout): New pattern.
1862 (bic_cmp0): Likewise.
1863 (neg_scc_insn): Remove pattern.
1864 (not_scc_insn): Likewise.
1865
1866 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1867
1868 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1869
1870 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1871
1872 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1873 pedwarn instead of warning_at for fallthrough not preceding a case
1874 or default label.
1875
1876 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1877
1878 PR tree-optimization/92608
1879 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1880 of dyn_cast.
1881
1882 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1883
1884 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1885 New predicate.
1886 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1887 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1888 special for FP comparisons that need a cror instruction eventually.
1889 (rs6000_emit_fp_cror): New function.
1890 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1891 instruction, for normal FP modes, with HONOR_NANS.
1892 (rs6000_emit_cbranch): Reformat.
1893 * config/rs6000/rs6000.md (fp_rev): New iterator.
1894 (fp_two): New iterator.
1895 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1896 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1897 *cbranch_2insn: New define_insn_and_split.
1898
1899 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1900
1901 PR tree-optimization/92526
1902 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1903 versioning for alignment if the accesses do not have a consistent
1904 mask, rather than asserting that the masks are consistent.
1905
1906 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1907
1908 PR tree-optimization/92595
1909 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1910 check.
1911 (vectorizable_store, vectorizable_load): Likewise.
1912
1913 2019-11-21 Jan Hubicka <jh@suse.cz>
1914
1915 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1916 (resolve_noninline_speculation, inline_small_functions): Avoid
1917 redundant updates.
1918
1919 2019-11-21 Richard Biener <rguenther@suse.de>
1920
1921 * lra.c (lra_insn_recog_data_pool): New.
1922 (free_insn_recog_data): Adjust.
1923 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1924 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1925
1926 2019-11-21 Richard Biener <rguenther@suse.de>
1927
1928 PR tree-optimization/92596
1929 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1930
1931 2019-11-21 Jan Hubicka <jh@suse.cz>
1932
1933 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1934 ready for some vectors to not be allocated.
1935 (evaluate_properties_for_edge): Document better; make
1936 known_vals and known_aggs caller allocated; avoid determining
1937 values of parameters which are not used.
1938 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1939 known_aggs.
1940 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1941 (do_estimate_edge_size): Likewise.
1942 (do_estimate_edge_hints): Likewise.
1943 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1944 values are not known.
1945 (ipa_release_agg_values): Add option to not release vector itself.
1946 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1947
1948 2019-11-21 Richard Biener <rguenther@suse.de>
1949
1950 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1951 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1952 (loop_iterator::loop_iterator): Adjust.
1953 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1954 (compute_dominance_frontiers): ... this. Hoist invariant
1955 get_immediate_dominator call.
1956 (compute_idf): Use a work-set instead of a work-list for more
1957 optimal iteration order and duplicate avoidance.
1958 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1959 the vector all the time, instead pre-allocate the vector only
1960 once.
1961 (delete_update_ssa): Simplify.
1962 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1963
1964 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1965
1966 PR tree-optimization/91355
1967 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1968 for early_bb scaled count with best_bb count comparison.
1969
1970 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1971 preffer -> prefer.
1972 * ipa-inline.c (edge_badness): Likewise.
1973 * lto-streamer.h (class lto_location_cache): Likewise.
1974 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1975 gratutious -> gratuitous.
1976
1977 2019-11-21 Richard Biener <rguenther@suse.de>
1978
1979 Revert
1980 2019-09-17 Richard Biener <rguenther@suse.de>
1981
1982 PR tree-optimization/91790
1983 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1984 use the correct DR for setting up realignment.
1985
1986 2019-11-21 Richard Biener <rguenther@suse.de>
1987
1988 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1989 (equiv_class_obstack): New.
1990 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1991 (perform_var_substitution): Initialize equiv_class_obstack.
1992 (free_var_substitution_info): Free equiv_class_obstack.
1993
1994 2019-11-20 Jan Hubicka <jh@suse.cz>
1995
1996 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1997 edge growth when callee function is very large.
1998 * ipa-inline.h (estimate_min_edge_growth): New.
1999
2000 2019-11-20 Jan Hubicka <jh@suse.cz>
2001
2002 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
2003 negative time in calls summary; correct roundoff errors
2004 leading to negative times.
2005 (ipa_merge_fn_summary_after_inlining): Update calls size time table
2006 if present.
2007 (ipa_update_overall_fn_summary): Add RESET parameter.
2008 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
2009 * ipa-inline-transform.c (inline_call): Enable incremental updates.
2010
2011 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2012
2013 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
2014 def types for two-operation SLP.
2015
2016 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2017
2018 PR testsuite/92366
2019 * doc/sourcebuild.texi (vect_char_add): Document.
2020
2021 2019-11-20 Alexandre Oliva <oliva@adacore.com>
2022
2023 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
2024 * function.c (record_final_call): Record even calls that might
2025 have been in the cgraph.
2026 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
2027 callees.
2028
2029 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
2030
2031 * configure.ac: Use https for gcc.gnu.org
2032 * configure: Regenerated.
2033 * doc/install.texi: Use https for gcc.gnu.org.
2034 * doc/sourcebuild.texi: Likewise.
2035
2036 2019-11-20 Julian Brown <julian@codesourcery.com>
2037
2038 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
2039
2040 2019-11-20 Jan Hubicka <jh@suse.cz>
2041
2042 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
2043 parameter and update call_size_time_table.
2044 (ipa_fn_summary::max_size_time_table_size): New constant.
2045 (estimate_calls_size_and_time_1): Break out from ...
2046 (estimate_calls_size_and_time): ... here; implement summary production.
2047 (summarize_calls_size_and_time): New function.
2048 (ipa_call_context::estimate_size_and_time): Bypass
2049 estimate_calls_size_and_time for leaf functions.
2050 (ipa_update_overall_fn_summary): Likewise.
2051 * ipa-fnsummary.h (call_size_time_table): New.
2052 (ipa_fn_summary::account_size_time): Update prototype.
2053
2054 2019-11-20 Joseph Myers <joseph@codesourcery.com>
2055
2056 * doc/invoke.texi (-Wc11-c2x-compat): Document.
2057
2058 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
2059
2060 PR85678
2061 * common.opt (fcommon): Change init to 1.
2062 * doc/invoke.texi (-fcommon): Update documentation.
2063
2064 2019-11-20 Jan Hubicka <jh@suse.cz>
2065
2066 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
2067 to ordinary array.
2068
2069 2019-11-20 Jan Hubicka <jh@suse.cz>
2070
2071 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
2072 Add allocator parameter.
2073 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
2074 (fibonacci_heap<K,V>::m_allocator): New.
2075 (fibonacci_heap<K,V>::m_own_allocator): New.
2076 (fibonacci_heap<K,V>::insert): Use allocator.
2077 (fibonacci_heap<K,V>::extract_min): Likewise.
2078 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
2079 allocator.
2080 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
2081 on stack.
2082 * fibonacci_heap.c: Include alloc-pool
2083 (test_empty_heap): Initialize allocator.
2084 (test_union): Likewise.
2085 * bb-reorder.c: Include alloc-pool.h.
2086 * tracer.c: Inlclude alloc-pool.h.
2087
2088 2019-11-20 Jan Hubicka <jh@suse.cz>
2089
2090 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
2091 Preallocate for 32 entries.
2092 (DFS::worklist): Likewise.
2093 (DFS::DFS): Do not initialize sccstack and worklist.
2094 (DFS::~DFS): Do not release sccstack.
2095
2096 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
2097
2098 PR target/92573
2099 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
2100 Handle UNORDERED if !HONOR_NANS.
2101
2102 2019-11-20 Jan Hubicka <jh@suse.cz>
2103
2104 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
2105 (edge_badness): ... here.
2106 (inline_small_functions): Use monotonicity of badness calculation
2107 to avoid redundant updates.
2108
2109 2019-11-20 Richard Biener <rguenther@suse.de>
2110
2111 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
2112 constructors we are actually analyzing.
2113 (vect_slp_check_for_constructors): Do not vectorize uniform
2114 constuctors, do not dump here.
2115
2116 2019-11-20 Richard Biener <rguenther@suse.de>
2117
2118 PR tree-optimization/92537
2119 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
2120 vectorization validity check...
2121 (vect_slp_analyze_operations): ... here.
2122
2123 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
2124
2125 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
2126 (make_pass_arc_predicate_delay_insns): Likewise.
2127 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
2128 method, remove clone.
2129 (class pass_arc_predicate_delay_insns): Likewise.
2130 (arc_init): Remove registering of ARC specific passes.
2131 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
2132 * config/arc/arc-passes.def: New file.
2133
2134 2019-11-20 Jakub Jelinek <jakub@redhat.com>
2135
2136 PR middle-end/90840
2137 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
2138 and has a mode that doesn't have corresponding integral type.
2139
2140 PR target/90867
2141 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
2142 clear opts->x_ix86_isa_flags{,2} here...
2143 (ix86_valid_target_attribute_inner_p): ... but here when seeing
2144 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
2145
2146 PR c/90898
2147 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
2148 assertion.
2149 (insert_clobbers_for_var): Fix a typo in function comment.
2150
2151 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
2152 Jakub Jelinek <jakub@redhat.com>
2153
2154 PR middle-end/91195
2155 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
2156 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
2157 load.
2158
2159 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
2160
2161 Make 0-series device specs work with older versions of avr-gcc.
2162
2163 PR target/92545
2164 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
2165 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2166 <*link_pm_base_address>: Don't write spec.
2167 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
2168
2169 2019-11-20 Richard Biener <rguenther@suse.de>
2170
2171 PR c/92088
2172 * builtins.c (compute_objsize): Deal with VLAs.
2173
2174 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
2175
2176 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
2177 from common code.
2178 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
2179 call new function.
2180 (power9_sched_reorder2): Call new function.
2181 (rs6000_sched_reorder2): Likewise.
2182
2183 2019-11-18 Jan Hubicka <jh@suse.cz>
2184
2185 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
2186 (estimate_calls_size_and_time): Update.
2187
2188 2019-11-18 Jan Hubicka <jh@suse.cz>
2189
2190 * ipa-inline.c (inlining_speedup): New function.
2191 (edge_badness): Use it.
2192
2193 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
2194 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2195
2196 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
2197 Mark as not having "likely" version.
2198 * config/mips/mips.md (insn_count): The simd_div instruction with
2199 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
2200 (can_delay): Exclude simd_branch.
2201 (defile_delay *): Add simd_branch instructions.
2202 They have one regular delay slot.
2203
2204 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
2205
2206 Revert:
2207 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2208
2209 * cse.c (cse_insn): Delete no-op register moves too.
2210 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2211 Take a second comparison to control the value for NE.
2212 (mask_to_comparison): Handle unsigned comparisons.
2213 (simplify_logical_relational_operation): Likewise. Update call
2214 to comparison_to_mask. Handle AND if !HONOR_NANs.
2215 (simplify_binary_operation_1): Call the above for AND too.
2216
2217 2019-11-19 Martin Liska <mliska@suse.cz>
2218
2219 * toplev.c (general_init): Move the call...
2220 (toplev::main): ... here as we need init_options_struct
2221 being called.
2222
2223 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2224
2225 PR target/79262
2226 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
2227 vec_to_scalar_cost.
2228
2229 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2230
2231 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
2232 (armv7-a): Likewise.
2233 (armv7ve): Likewise.
2234
2235 2019-11-19 Richard Biener <rguenther@suse.de>
2236
2237 PR tree-optimization/92581
2238 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
2239 condition reduction chains gather all conditions involved
2240 for computing the index reduction vector.
2241
2242 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
2243
2244 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2245 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
2246 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
2247 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
2248 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
2249 (aarch64_init_memtag_builtins): New.
2250 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
2251 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
2252 (aarch64_expand_builtin_memtag): New.
2253 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
2254 (AARCH64_BUILTIN_SUBCODE): New macro.
2255 (aarch64_resolve_overloaded_memtag): New.
2256 (aarch64_resolve_overloaded_builtin_general): New. Call
2257 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
2258 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2259 __ARM_FEATURE_MEMORY_TAGGING when enabled.
2260 (aarch64_resolve_overloaded_builtin): Call
2261 aarch64_resolve_overloaded_builtin_general.
2262 * config/aarch64/aarch64-protos.h
2263 (aarch64_resolve_overloaded_builtin_general): New declaration.
2264 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
2265 (TARGET_MEMTAG): Likewise.
2266 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
2267 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
2268 (irg, gmi, subp, addg, ldg, stg): New instructions.
2269 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
2270 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
2271 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
2272 (__arm_mte_get_tag): Likewise.
2273 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
2274 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
2275 * config/arm/types.md (memtag): New.
2276 * doc/invoke.texi (-memtag): Update description.
2277
2278 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
2279
2280 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2281 to define __GCC_ASM_FLAG_OUTPUTS__.
2282 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
2283 (arm_option_params_internal): Swap out targetm.md_asm_adjust
2284 depending on TARGET_THUMB1.
2285 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
2286
2287 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2288
2289 PR target/92549
2290 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
2291
2292 PR middle-end/91450
2293 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
2294 operand is negative and one non-negative, compare the non-negative
2295 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
2296 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
2297 and s2 == 0, unless one of them is known to be negative. Remove
2298 tem2 variable, use tem where tem2 has been used before.
2299
2300 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
2301
2302 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
2303
2304 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2305
2306 PR tree-optimization/92557
2307 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
2308 vmode rather than asserting it always is.
2309
2310 2019-11-19 Richard Biener <rguenther@suse.de>
2311
2312 PR tree-optimization/92554
2313 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
2314 for the actual condition stmt and deal with sign-changes.
2315
2316 2019-11-19 Richard Biener <rguenther@suse.de>
2317
2318 PR tree-optimization/92555
2319 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
2320 for non-SLP stmts.
2321
2322 2019-11-19 Martin Liska <mliska@suse.cz>
2323
2324 PR bootstrap/92540
2325 * config/riscv/riscv.c (riscv_address_insns): Initialize
2326 addr in order to remove boostrap -Wmaybe-uninitialized
2327 error.
2328
2329 2019-11-18 Martin Sebor <msebor@redhat.com>
2330
2331 PR tree-optimization/92493
2332 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
2333 assignment.
2334
2335 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
2336
2337 * cfgloop.c (get_loop_body_in_custom_order): New.
2338 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
2339 * tree-loop-distribution.c (class loop_distribution): New.
2340 (bb_top_order_cmp): Remove.
2341 (bb_top_order_cmp_r): New.
2342 (create_rdg_vertices): Move into class loop_distribution.
2343 (stmts_from_loop): Same as above.
2344 (update_for_merge): Same as above.
2345 (partition_merge_into): Same as above.
2346 (get_data_dependence): Same as above.
2347 (data_dep_in_cycle_p): Same as above.
2348 (update_type_for_merge): Same as above.
2349 (build_rdg_partition_for-vertex): Same as above.
2350 (classify_builtin_ldst): Same as above.
2351 (classify_partition): Same as above.
2352 (share_memory_accesses): Same as above.
2353 (rdg_build_partitions): Same as above.
2354 (pg_add_dependence_edges): Same as above.
2355 (build_partition_graph): Same as above.
2356 (merge_dep_scc_partitions): Same as above.
2357 (break_alias_scc_partitions): Same as above.
2358 (finalize_partitions): Same as above.
2359 (distribute_loop): Same as above.
2360 (bb_top_order_init): New method
2361 (bb_top_order_destroy): New method.
2362 (get_bb_top_order_index_size): New method.
2363 (get_bb_top_order_index_index): New method.
2364 (get_bb_top_order_index_index): New method.
2365 (loop_distribution::execute): New method.
2366 (pass_loop_distribution::execute): Instantiate loop_distribution.
2367
2368 2019-11-18 Jan Hubicka <jh@suse.cz>
2369
2370 PR ipa/92508
2371 * ipa-inline.c (inline_small_functions): Add new edges after reseting
2372 caches.
2373 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2374
2375 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2376
2377 * doc/sourcebuild.texi (vect_check_ptrs): Document.
2378 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2379 * doc/md.texi: Document them.
2380 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2381 internal functions.
2382 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2383 * internal-fn.c (check_ptrs_direct): New macro.
2384 (expand_check_ptrs_optab_fn): Likewise.
2385 (direct_check_ptrs_optab_supported_p): Likewise.
2386 (internal_check_ptrs_fn_supported_p): New fuction.
2387 * tree-data-ref.c: Include internal-fn.h.
2388 (create_ifn_alias_checks): New function.
2389 (create_intersect_range_checks): Use it.
2390 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2391 (optab, cmp_op): Handle it.
2392 (raw_war, unspec): New int attributes.
2393 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2394 constants.
2395 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2396 New predicate.
2397 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2398 expander.
2399 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2400 pattern.
2401
2402 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2403
2404 * tree.c (build_vector_from_ctor): Directly return a zero vector for
2405 empty constructors.
2406
2407 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2408
2409 * cse.c (cse_insn): Delete no-op register moves too.
2410 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2411 Take a second comparison to control the value for NE.
2412 (mask_to_comparison): Handle unsigned comparisons.
2413 (simplify_logical_relational_operation): Likewise. Update call
2414 to comparison_to_mask. Handle AND if !HONOR_NANs.
2415 (simplify_binary_operation_1): Call the above for AND too.
2416
2417 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2418
2419 * fold-const.c (native_encode_vector): Turn into a wrapper function,
2420 splitting the main code out into...
2421 (native_encode_vector_part): ...this new function.
2422 (native_decode_vector_tree): New function.
2423 (fold_view_convert_vector_encoding): Likewise.
2424 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2425 to VECTOR_TYPEs.
2426
2427 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2428
2429 * tree-data-ref.c (create_intersect_range_checks_index): If the
2430 alias pair describes simple WAW and WAR dependencies, just check
2431 whether the first B access overlaps later A accesses.
2432 (create_waw_or_war_checks): New function that performs the same
2433 optimization on addresses.
2434 (create_intersect_range_checks): Call it.
2435
2436 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2437
2438 * lra-constraints.c (valid_address_p): Take the operand and a
2439 constraint as argument. If the operand is a MEM and the constraint
2440 is a memory constraint, check whether the eliminated form of the
2441 MEM already satisfies the constraint.
2442 (process_address_1): Update calls accordingly.
2443
2444 2019-11-18 Tom Tromey <tromey@adacore.com>
2445
2446 * doc/tm.texi: Rebuild.
2447 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2448 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2449
2450 2019-11-18 Richard Biener <rguenther@suse.de>
2451
2452 PR tree-optimization/92516
2453 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2454 argument, hoist bst_map creation/destruction to ...
2455 (vect_analyze_slp): ... here, forming a true graph with
2456 SLP instances being the entries.
2457 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2458 (vect_detect_hybrid_slp): Use one visited set for all
2459 graph entries.
2460 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2461 to hash-sets of slp_tree.
2462 (vect_slp_analyze_operations): Likewise.
2463 (vect_bb_slp_scalar_cost): Remove wrapper.
2464 (vect_bb_vectorization_profitable_p): Use one visited set for
2465 all graph entries.
2466 (vect_schedule_slp_instance): Elide bst_map use.
2467 (vect_schedule_slp): Likewise.
2468
2469 2019-11-18 Richard Biener <rguenther@suse.de>
2470
2471 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2472 was vectorized with just external refs fail.
2473
2474 2019-11-18 Martin Liska <mliska@suse.cz>
2475
2476 PR ipa/92525
2477 * ipa-icf.c (sem_function::init): Unset m_checker
2478 at the end of the function.
2479
2480 2019-11-18 Richard Biener <rguenther@suse.de>
2481
2482 PR tree-optimization/92558
2483 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2484 reducting the width of a reduction vector def update new_phis.
2485
2486 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2487
2488 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2489 and s390*-*-linux-musl* targets.
2490 * configure: Regenerate.
2491
2492 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2493
2494 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2495 (MUSL_DYNAMIC_LINKER64): Define.
2496
2497 2019-11-18 Martin Liska <mliska@suse.cz>
2498
2499 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2500 message for an unknown counter.
2501 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2502 (dbg_cnt_process_opt): Remove unreachable code.
2503
2504 2019-11-18 Martin Liska <mliska@suse.cz>
2505
2506 PR ipa/92529
2507 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2508 Compare LHS types of NOP_EXPR.
2509
2510 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2511
2512 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2513 "initial_pass_name" argument -- by running "*clean_state" pass.
2514 Also free the "initial_pass_name" when done.
2515
2516 2019-11-18 Richard Biener <rguenther@suse.de>
2517
2518 PR rtl-optimization/92462
2519 * alias.c (find_base_term): Restrict the look through ANDs.
2520 (find_base_value): Likewise.
2521
2522 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2523
2524 Add support for AVR devices from the 0-series.
2525
2526 PR target/92545
2527 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2528 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2529 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2530 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2531 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2532 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2533 for spec definitions.
2534 * doc/avr-mmcu.texi: Regenerate.
2535
2536 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2537
2538 PR target/92448
2539 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2540 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2541 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2542 (ix86_reassociation_width): Ditto.
2543 * config/i386/i386-options.c (ix86_option_override_internal):
2544 Replace TARGET_AVX128_OPTIAML with
2545 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2546 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2547 (TARGET_AVX128_OPTIMAL): Deleted.
2548 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2549 DEF_TUNE.
2550
2551 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2552
2553 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2554 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2555 just SI.
2556 (cceq_rev_compare): Rename to...
2557 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2558 just SI.
2559 (define_split for <bd>tf_<mode>): Add SImode first argument to
2560 gen_cceq_ior_compare.
2561
2562 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2563
2564 * common/config/powerpcspe: Delete.
2565
2566 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2567
2568 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2569 output in UNSPEC_WRFFR.
2570
2571 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2572
2573 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2574 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2575
2576 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2577
2578 * tree-data-ref.c (create_intersect_range_checks_index)
2579 (create_intersect_range_checks): Print dump messages.
2580
2581 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2582
2583 * tree-data-ref.c (dump_alias_pair): New function.
2584 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2585
2586 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2587
2588 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2589 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2590 merging data references with different steps.
2591 (create_intersect_range_checks_index): Take a
2592 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2593 Bail out if DR_ALIAS_MIXED_STEPS is set.
2594 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2595 instead of two dr_with_seg_lens. Update call to
2596 create_intersect_range_checks_index.
2597 (create_runtime_alias_checks): Update call accordingly.
2598
2599 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2600
2601 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2602 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2603 (dr_with_seg_len_pair_t::sequencing): New enum.
2604 (dr_with_seg_len_pair_t::flags): New member variable.
2605 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2606 parameter and initialize the flags member variable.
2607 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2608 call accordingly.
2609 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2610 Ensure the two data references in an alias pair are in statement
2611 order, if there is a defined order.
2612 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2613 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2614 swapped the references in a dr_with_seg_len_pair_t. OR together
2615 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2616 try to restore the original dr_with_seg_len order, updating the
2617 flags if that fails.
2618
2619 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2620
2621 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2622 swapping the dr_as based on init values until we've decided
2623 whether to merge them.
2624
2625 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2626
2627 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2628 two accesses in each dr_with_seg_len_pair_t before trying to
2629 combine separate dr_with_seg_len_pair_ts.
2630 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2631 that here.
2632 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2633
2634 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2635
2636 * config/aarch64/aarch64-sve.md
2637 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2638 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2639 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2640 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2641 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2642 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2643 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2644 pattern.
2645 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2646 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2647 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2648 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2649
2650 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2651
2652 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2653 (SVE_4HSI): New mode iterators.
2654 (ANY_EXTEND2): New code iterator.
2655 * config/aarch64/aarch64-sve.md
2656 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2657 Extend to...
2658 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2659 ...this, handling extension to partial modes as well as full modes.
2660 Describe the extension as a predicated rather than unpredicated
2661 extension.
2662 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2663 Likewise extend to...
2664 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2665 ...this, making the same adjustments.
2666 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2667 Likewise extend to...
2668 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2669 ...this, making the same adjustments.
2670 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2671 Likewise extend to...
2672 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2673 ...this, making the same adjustments.
2674 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2675 New pattern.
2676 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2677 extension predicate.
2678 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2679 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2680 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2681 Describe the extension as a predicated rather than unpredicated
2682 extension.
2683 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2684 Likewise. Canonicalize to a constant extension predicate.
2685 * config/aarch64/aarch64-sve-builtins-base.cc
2686 (svld1_gather_extend_impl::expand): Add an extra predicate for
2687 the extension.
2688 (svldff1_gather_extend_impl::expand): Likewise.
2689
2690 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2691
2692 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2693 iterators.
2694 * config/aarch64/aarch64-sve.md
2695 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2696 (gather_load<SVE_24:mode><v_int_container>): ...this.
2697 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2698 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2699 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2700 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2701 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2702 New pattern.
2703 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2704 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2705 Allow the nominal extension predicate to be different from the
2706 load predicate.
2707 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2708 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2709
2710 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2711
2712 * config/aarch64/aarch64-sve.md
2713 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2714 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2715 function.
2716 (aarch64_sve_adjust_stmt_cost): Call it.
2717
2718 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2719
2720 * config/aarch64/aarch64-sve.md
2721 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2722 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2723 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2724 Combine into...
2725 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2726 ...this new pattern, handling extension to partial modes as well
2727 as full modes. Describe the extension as a predicated rather than
2728 unpredicated extension.
2729 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2730 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2731 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2732 Combine into...
2733 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2734 ...this new pattern, handling extension to partial modes as well
2735 as full modes. Describe the extension as a predicated rather than
2736 unpredicated extension.
2737 * config/aarch64/aarch64-sve-builtins.cc
2738 (function_expander::use_contiguous_load_insn): Add an extra
2739 predicate for extending loads.
2740 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2741 (aarch64_sve_adjust_stmt_cost): Likewise.
2742 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2743 the cost of SVE vector stmts.
2744
2745 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2746
2747 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2748 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2749 * config/aarch64/aarch64-sve.md
2750 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2751 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2752 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2753 comment. Avoid new narrower_mask ambiguity.
2754 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2755 (*cond_uxt<mode>_2): Update comment.
2756 (*cond_uxt<mode>_any): Likewise.
2757
2758 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2759
2760 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2761 float modes.
2762 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2763 function.
2764 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2765 new vector float modes.
2766 (aarch64_sve_container_bits): New function.
2767 (aarch64_sve_pred_mode): Likewise.
2768 (aarch64_get_mask_mode): Use it.
2769 (aarch64_sve_element_int_mode): Handle structure modes and partial
2770 modes.
2771 (aarch64_sve_container_int_mode): New function.
2772 (aarch64_vectorize_related_mode): Return SVE modes when given
2773 SVE modes. Handle partial modes, taking the preferred number
2774 of units from the size of the given mode.
2775 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2776 in registers.
2777 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2778 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2779 (aarch64_split_sve_subreg_move): Use the mode form of
2780 aarch64_sve_pred_mode.
2781 (aarch64_secondary_reload): Handle partial modes in the same way
2782 as full big-endian vectors.
2783 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2784 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2785 merging with the Advanced SIMD modes. If two modes have the
2786 same size, try the Advanced SIMD mode first.
2787 (aarch64_simd_valid_immediate): Use the container rather than
2788 the element mode for INDEX constants.
2789 (aarch64_simd_vector_alignment): Make the alignment of partial
2790 SVE vector modes the same as their minimum size.
2791 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2792 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2793 (mov<SVE_ALL:mode>): ...this.
2794 (movmisalign<SVE_FULL:mode>): Extend to...
2795 (movmisalign<SVE_ALL:mode>): ...this.
2796 (*aarch64_sve_mov<mode>_le): Rename to...
2797 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2798 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2799 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2800 partial modes regardless of endianness.
2801 (aarch64_sve_reload_be): Rename to...
2802 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2803 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2804 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2805 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2806 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2807 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2808 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2809 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2810 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2811 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2812 (maskload<SVE_FULL:mode><vpred>): Extend to...
2813 (maskload<SVE_ALL:mode><vpred>): ...this.
2814 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2815 (maskstore<SVE_ALL:mode><vpred>): ...this.
2816 (vec_duplicate<SVE_FULL:mode>): Extend to...
2817 (vec_duplicate<SVE_ALL:mode>): ...this.
2818 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2819 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2820 (sve_ld1r<SVE_FULL:mode>): Extend to...
2821 (sve_ld1r<SVE_ALL:mode>): ...this.
2822 (vec_series<SVE_FULL_I:mode>): Extend to...
2823 (vec_series<SVE_I:mode>): ...this.
2824 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2825 (*vec_series<SVE_I:mode>_plus): ...this.
2826 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2827 new VPRED ambiguity.
2828 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2829 (add<SVE_FULL_I:mode>3): Extend to...
2830 (add<SVE_I:mode>3): ...this.
2831 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2832 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2833 (VPRED, vpred): Likewise.
2834 (Vctype): New iterator.
2835 (vw): Remove SVE modes.
2836
2837 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2838
2839 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2840 (SVE_PARTIAL_I): ...this.
2841 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2842
2843 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2844
2845 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2846 (SVE_FULL): ...this.
2847 (SVE_I): Rename to...
2848 (SVE_FULL_I): ...this.
2849 (SVE_F): Rename to...
2850 (SVE_FULL_F): ...this.
2851 (SVE_BHSI): Rename to...
2852 (SVE_FULL_BHSI): ...this.
2853 (SVE_HSD): Rename to...
2854 (SVE_FULL_HSD): ...this.
2855 (SVE_HSDI): Rename to...
2856 (SVE_FULL_HSDI): ...this.
2857 (SVE_HSF): Rename to...
2858 (SVE_FULL_HSF): ...this.
2859 (SVE_SD): Rename to...
2860 (SVE_FULL_SD): ...this.
2861 (SVE_SDI): Rename to...
2862 (SVE_FULL_SDI): ...this.
2863 (SVE_SDF): Rename to...
2864 (SVE_FULL_SDF): ...this.
2865 (SVE_S): Rename to...
2866 (SVE_FULL_S): ...this.
2867 (SVE_D): Rename to...
2868 (SVE_FULL_D): ...this.
2869 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2870 * config/aarch64/aarch64-sve2.md: Likewise.
2871
2872 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2873
2874 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2875 New option.
2876 * doc/invoke.texi: Document it.
2877 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2878 By default, return VECT_COMPARE_COSTS for SVE.
2879
2880 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2881
2882 * target.h (VECT_COMPARE_COSTS): New constant.
2883 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2884 * doc/tm.texi: Regenerate.
2885 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2886 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2887 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2888 Likewise.
2889 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2890 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2891 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2892 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2893 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2894 (_loop_vec_info::vec_inside_cost): New member variables.
2895 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2896 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2897 (vect_analyze_loop): When autovectorize_vector_modes returns
2898 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2899 vector mode and picking the one with the lowest cost.
2900 (vect_estimate_min_profitable_iters): Record the computed costs
2901 in the loop_vec_info.
2902
2903 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2904
2905 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2906 element type rather than an element mode.
2907 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2908 Use get_vectype_for_scalar_type to query the natural types
2909 for a given element type rather than basing everything on
2910 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2911 query to MAX_FIXED_MODE_SIZE.
2912 (duplicate_and_interleave): Update call accordingly.
2913 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2914
2915 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2916
2917 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2918 optional maximum nunits.
2919 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2920 takes an slp_tree.
2921 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2922 (vect_get_mask_type_for_stmt): Likewise.
2923 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2924 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2925 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2926 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2927 to get an assumed vector type for data references.
2928 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2929 (vect_update_all_shared_vectypes): Likewise.
2930 (vect_build_slp_tree_1): Pass the group size to
2931 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2932 for BB vectorization.
2933 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2934 before building the vectof from scalars.
2935 (vect_analyze_slp_instance): Pass the group size to
2936 get_vectype_for_scalar_type.
2937 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2938 types for BB vectorization here; just handle the case in which
2939 we deferred the choice for booleans.
2940 (vect_get_constant_vectors): Pass the slp_tree to
2941 get_vectype_for_scalar_type.
2942 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2943 (vectorizable_call): Likewise.
2944 (vectorizable_simd_clone_call): Likewise.
2945 (vectorizable_conversion): Likewise.
2946 (vectorizable_shift): Likewise.
2947 (vectorizable_operation): Likewise.
2948 (vectorizable_comparison): Likewise.
2949 (vect_is_simple_cond): Take the slp_tree as argument and
2950 pass it to get_vectype_for_scalar_type.
2951 (vectorizable_condition): Update call accordingly.
2952 (get_vectype_for_scalar_type): Take a group_size argument.
2953 For BB vectorization, limit the the vector to that number
2954 of elements. Also define an overload that takes an slp_tree.
2955 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2956 pass it to get_vectype_for_scalar_type.
2957 (vect_get_vector_types_for_stmt): Add a group_size argument
2958 and pass it to get_vectype_for_scalar_type. Don't use the
2959 cached vector type for BB vectorization if a group size is given.
2960 Handle data references in that case.
2961 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2962 pass it to get_mask_type_for_scalar_type.
2963
2964 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2965
2966 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2967 parameter.
2968 (estimate_edge_time): Use it.
2969 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2970 ret_nonspec_time parameter.
2971
2972 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2973
2974 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2975
2976 2019-11-15 Nick Clifton <nickc@redhat.com>
2977 Szabolcs Nagy <szabolcs.nagy@arm.com>
2978
2979 PR target/65649
2980 * config/microblaze/microblaze.c (print_operand): Print value as long.
2981
2982 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2983
2984 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2985 accidental commit.
2986
2987 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2988
2989 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2990 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2991
2992 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2993
2994 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2995 (gcn_conditional_register_usage): Use constants in place of hard-coded
2996 values.
2997 (gcn_hsa_declare_function_name): Set lower bound for number of
2998 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2999 MAX_NORMAL_VGPR_COUNT.
3000
3001 2019-11-15 Martin Jambor <mjambor@suse.cz>
3002
3003 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
3004 declaration.
3005
3006 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3007
3008 * config/gcn/gcn.c (default_requested_args): New.
3009 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
3010 set with default_requested_args.
3011 (gcn_conditional_register_usage): Limit register usage of non-kernel
3012 functions. Reassign fixed registers if a non-standard set of args is
3013 requested.
3014 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
3015
3016 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
3017
3018 PR ipa/92528
3019 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
3020 aggregate jump function when inlined-to caller has no edge summary.
3021
3022 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3023
3024 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
3025
3026 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3027
3028 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
3029 prologue use of v0.
3030 (print_operand_address): Use v1 for zero vector offset.
3031
3032 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3033
3034 PR tree-optimization/92515
3035 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
3036 types when converting a vector/scalar shift into a vector/vector one,
3037 using tree_nop_conversion_p instead of useless_type_conversion_p.
3038 Move the conversion code to the transform block.
3039
3040 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3041
3042 * read-rtl-function.c
3043 (function_reader::add_fixup_source_location): Take additional
3044 parameter of a column.
3045 (function_reader::maybe_read_location): Optionally parse column
3046 information and pass to add_fixup_source_location.
3047
3048 2019-11-15 Richard Biener <rguenther@suse.de>
3049
3050 PR tree-optimization/92512
3051 * tree-vect-loop.c (check_reduction_path): Fix operand index
3052 computability check. Add check for second use in COND_EXPRs.
3053
3054 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3055
3056 PR target/92515
3057 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
3058 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
3059
3060 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3061
3062 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
3063 register class for VCC_LO and VCC_HI.
3064 (gcn_spill_class): Use SGPR_REGS to spill registers in
3065 VCC_CONDITIONAL_REG.
3066
3067 2019-11-15 Richard Biener <rguenther@suse.de>
3068
3069 PR tree-optimization/92324
3070 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3071 singedness of SLP reduction epilouge operations. Also reduce
3072 the vector width for SLP reductions before doing elementwise
3073 operations if possible.
3074
3075 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3076
3077 * passes.c (skip_pass): Set epilogue_completed if skipping the
3078 pro_and_epilogue pass.
3079
3080 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3081
3082 * passes.c (should_skip_pass_p): Always run "dfinish".
3083
3084 2019-11-15 Richard Biener <rguenther@suse.de>
3085
3086 * ipa-inline.c (inline_small_functions): Move assignment
3087 to next before call destroying edge.
3088
3089 2019-11-15 Richard Biener <rguenther@suse.de>
3090
3091 PR tree-optimization/92039
3092 PR tree-optimization/91975
3093 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
3094 previous change, treat invariants consistently as non-constant.
3095 (tree_estimate_loop_size): Ternary ops with just the first op
3096 constant are not optimized away.
3097
3098 2019-11-15 Jakub Jelinek <jakub@redhat.com>
3099
3100 * gimplify.c (gimplify_call_expr): Don't call
3101 omp_resolve_declare_variant after gimplification.
3102 * omp-general.c (omp_context_selector_matches): For isa that might
3103 match in some other function, defer if in declare simd function.
3104 (omp_context_compute_score): Don't look for " score" in construct
3105 trait set. Set *score to -1 if it can't ever match.
3106 (omp_resolve_declare_variant): If any variants need to be deferred,
3107 don't punt immediately, but compute scores of all variants and if
3108 ther eis a score winner that doesn't need to be deferred, return that.
3109
3110 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
3111
3112 * ipa-comdats.c: Fix comments typo.
3113 * ipa-profile.c: Fix comments typo.
3114 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
3115 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
3116 (gimple_gen_ic_func_profiler): Likewise.
3117 (pass_ipa_tree_profile::gate): Fix comments typo.
3118
3119 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
3120
3121 * ipa-inline.c (inline_small_functions): Update iterator of next.
3122
3123 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3124
3125 * lra-spills.c (assign_spill_hard_regs): Check that the spill
3126 register is suitable for the mode.
3127
3128 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3129
3130 * range-op.h (range_operator::fold_range): Return a bool.
3131 * range-op.cc (range_operator::wi_fold): Assert supported type.
3132 (range_operator::fold_range): Assert supported type and return true.
3133 (operator_equal::fold_range): Return true.
3134 (operator_not_equal::fold_range): Same.
3135 (operator_lt::fold_range): Same.
3136 (operator_le::fold_range): Same.
3137 (operator_gt::fold_range): Same.
3138 (operator_ge::fold_range): Same.
3139 (operator_plus::op1_range): Adjust call to fold_range.
3140 (operator_plus::op2_range): Same.
3141 (operator_minus::op1_range): Same.
3142 (operator_minus::op2_range): Same.
3143 (operator_exact_divide::op1_range): Same.
3144 (operator_lshift::fold_range): Return true and adjust fold_range call.
3145 (operator_rshift::fold_range): Same.
3146 (operator_cast::fold_range): Return true.
3147 (operator_logical_and::fold_range): Same.
3148 (operator_logical_or::fold_range): Same.
3149 (operator_logical_not::fold_range): Same.
3150 (operator_bitwise_not::fold_range): Adjust call to fold_range.
3151 (operator_bitwise_not::op1_range): Same.
3152 (operator_cst::fold_range): Return true.
3153 (operator_identity::fold_range): Return true.
3154 (operator_negate::fold_range): Return true and adjust fold_range call.
3155 (operator_addr_expr::fold_range): Return true.
3156 (operator_addr_expr::op1_range): Adjust call to fold_range.
3157 (range_cast): Same.
3158 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
3159 (range_fold_unary_symbolics_p): Same.
3160
3161 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3162
3163 PR tree-optimization/92506
3164 * range-op.cc (range_operator::fold_range): Start with range undefined.
3165 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
3166 overflow is varying.
3167
3168 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3169
3170 * range-op.cc (*operator*::*range): Remove calls to
3171 range_intersect, range_invert, and range_union in favor of calling
3172 the in-place API methods.
3173 (range_tests): Same.
3174 * range.cc (range_intersect): Remove.
3175 (range_union): Remove.
3176 (range_invert): Remove.
3177 * range.h (range_intersect): Remove.
3178 (range_union): Remove.
3179 (range_intersect): Remove.
3180
3181 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
3182
3183 PR rtl-optimization/92430
3184 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
3185 (pass_jump_after_combine::execute): Perform jump threading
3186 unconditionally.
3187
3188 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3189 Doug Rupp <rupp@adacore.com>
3190 Olivier Hainque <hainque@adacore.com>
3191
3192 * config.gcc: Collapse the arm-vxworks entries into
3193 a single arm-wrs-vxworks7* one, bpabi based. Update
3194 the default cpu from arm8 to armv7-a
3195 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
3196 we always use ARM_UNWIND_INFO.
3197 (DWARF2_UNWIND_INFO): Remove redefinition.
3198 (ARM_TARGET2_DWARF_FORMAT): Likewise.
3199 (VXWORKS_PERSONALITY): Define, to "llvm".
3200 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
3201
3202 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3203
3204 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
3205 _VX_CPU instead of CPU and handle arm_arch8.
3206
3207 2019-11-14 Doug Rupp <rupp@adacore.com>
3208 Olivier Hainque <hainque@adacore.com>
3209 Jerome Lambourg <lambourg@adacore.com>
3210
3211 * config.gcc: Handle aarch64*-wrs-vxworks7*.
3212 * config/aarch64/aarch64-vxworks.h: New file.
3213 * config/aarch64/t-aarch64-vxworks: New file.
3214
3215 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
3216 Olivier Hainque <hainque@adacore.com>
3217
3218 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
3219 definition, pointless with a VxWorks specific version
3220 of crtstuff.
3221 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
3222 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
3223 New local macros, controlling the addition of vxworks specific
3224 crtstuff objects depending on the EH mechanism and kind of
3225 module being linked.
3226 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
3227
3228 2019-11-06 Pat Bernardi <bernardi@adacore.com>
3229 Jerome Lambourg <lambourg@adacore.com>
3230 Olivier Hainque <hainque@adacore.com>
3231
3232 * config.gcc: Add comment to introduce the TARGET_VXWORKS
3233 common macro definitions, conveying VXWORKS7 or 64bit general
3234 variations. Add a block to set gcc_cv_initfini_array
3235 unconditionally to "yes" for VxWorks7.
3236 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
3237 by default. Update some comments.
3238 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
3239 default, to be added the end of VXWORKS_LIBS_RTP.
3240 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
3241 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
3242 redefine.
3243 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
3244 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
3245 to account for the now available TLS abilities.
3246 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
3247 (VXWORKS_HAVE_TLS): Likewise.
3248
3249 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3250
3251 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
3252 (vect_slp_convert_to_external): Likewise.
3253 (vect_slp_analyze_node_operations): If analysis fails, try building
3254 the node from scalars instead.
3255
3256 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3257
3258 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
3259 between vector types.
3260 * tree-vect-stmts.c (vectorizable_conversion): Extend the
3261 non-widening and non-narrowing path to handle standard
3262 conversion codes, if the target supports them.
3263 * expr.c (convert_move): Try using the extend and truncate optabs
3264 for vectors.
3265 * optabs-tree.c (supportable_convert_operation): Likewise.
3266 * config/aarch64/iterators.md (Vnarroqw): New iterator.
3267 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
3268 (trunc<mode><Vnarrowq>2): New patterns.
3269
3270 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3271
3272 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
3273 require vectype and nunits_vectype to have the same size;
3274 instead assert that nunits_vectype has at least as many
3275 elements as vectype. Don't compute a separate nunits_vectype
3276 if the scalar type is obviously the same as vectype's.
3277 Tweak dump messages.
3278
3279 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3280
3281 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
3282 function.
3283 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
3284 (TARGET_VECTORIZE_RELATED_MODE): Define.
3285
3286 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3287
3288 * tree-vectorizer.h (vec_info::mode_set): New typedef.
3289 (vec_info::used_vector_mode): New member variable.
3290 (vect_chooses_same_modes_p): Declare.
3291 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
3292 chosen vector mode in vec_info::used_vector_mode.
3293 (vect_chooses_same_modes_p): New function.
3294 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
3295 the same vector statements multiple times.
3296 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3297
3298 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3299
3300 * machmode.h (opt_machine_mode::operator==): New function.
3301 (opt_machine_mode::operator!=): Likewise.
3302 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
3303 (get_related_vectype_for_scalar_type): Delete.
3304 (get_vectype_for_scalar_type_and_size): Declare.
3305 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
3306 whether analysis passed or failed, and with what vector modes.
3307 Use related_vector_mode to check whether trying a particular
3308 vector mode would be redundant with the autodetected mode,
3309 and print a dump message if we decide to skip it.
3310 * tree-vect-loop.c (vect_analyze_loop): Likewise.
3311 (vect_create_epilog_for_reduction): Use
3312 get_related_vectype_for_scalar_type instead of
3313 get_vectype_for_scalar_type_and_size.
3314 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
3315 with...
3316 (get_related_vectype_for_scalar_type): ...this new function.
3317 Take a starting/"prevailing" vector mode rather than a vector size.
3318 Take an optional nunits argument, with the same meaning as for
3319 related_vector_mode. Use related_vector_mode when not
3320 auto-detecting a mode, falling back to mode_for_vector if no
3321 target mode exists.
3322 (get_vectype_for_scalar_type): Update accordingly.
3323 (get_same_sized_vectype): Likewise.
3324 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
3325
3326 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3327
3328 * tree-vect-stmts.c (vectorizable_call): Require the types
3329 to have the same size.
3330
3331 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3332
3333 * tree-vect-stmts.c (vectorizable_call): If an operand is
3334 constant or external, use get_vectype_for_scalar_type
3335 rather than get_same_sized_vectype to get its vector type.
3336 (vectorizable_conversion, vectorizable_shift): Likewise.
3337 (vectorizable_operation): Likewise.
3338
3339 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3340
3341 * tree-vectorizer.h (vec_info::vector_size): Replace with...
3342 (vec_info::vector_mode): ...this new field.
3343 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
3344 (vect_analyze_loop, vect_transform_loop): Likewise.
3345 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
3346 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3347 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3348 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3349 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3350
3351 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3352
3353 * target.h (vector_sizes, auto_vector_sizes): Delete.
3354 (vector_modes, auto_vector_modes): New typedefs.
3355 * target.def (autovectorize_vector_sizes): Replace with...
3356 (autovectorize_vector_modes): ...this new hook.
3357 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3358 Replace with...
3359 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
3360 * doc/tm.texi: Regenerate.
3361 * targhooks.h (default_autovectorize_vector_sizes): Delete.
3362 (default_autovectorize_vector_modes): New function.
3363 * targhooks.c (default_autovectorize_vector_sizes): Delete.
3364 (default_autovectorize_vector_modes): New function.
3365 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
3366 of autovectorize_vector_sizes. Use the number of units in the mode
3367 to calculate the maximum VF.
3368 * omp-low.c (omp_clause_aligned_alignment): Use
3369 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3370 Use a loop based on related_mode to iterate through all supported
3371 vector modes for a given scalar mode.
3372 * optabs-query.c (can_vec_mask_load_store_p): Use
3373 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3374 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3375 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3376 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3377 Replace with...
3378 (aarch64_autovectorize_vector_modes): ...this new function.
3379 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3380 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3381 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3382 (arc_autovectorize_vector_modes): ...this new function.
3383 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3384 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3385 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3386 (arm_autovectorize_vector_modes): ...this new function.
3387 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3388 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3389 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3390 (ix86_autovectorize_vector_modes): ...this new function.
3391 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3392 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3393 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3394 (mips_autovectorize_vector_modes): ...this new function.
3395 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3396 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3397
3398 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3399
3400 * tree-vect-stmts.c (vectorizable_shift): Check the number
3401 of vector elements as well as the type mode when deciding
3402 whether an op1_vectype is compatible. Reuse the result of
3403 this check when generating vector statements.
3404
3405 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3406
3407 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3408 targetm.vectorize.preferred_simd_mode returns an integer mode,
3409 use mode_for_vector to decide what the vector type's mode
3410 should actually be. Use build_vector_type_for_mode instead
3411 of build_vector_type.
3412
3413 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3414
3415 * target.def (get_mask_mode): Take a vector mode itself as argument,
3416 instead of properties about the vector mode.
3417 * doc/tm.texi: Regenerate.
3418 * targhooks.h (default_get_mask_mode): Update to reflect new
3419 get_mode_mask interface.
3420 * targhooks.c (default_get_mask_mode): Likewise. Use
3421 related_int_vector_mode.
3422 * optabs-query.c (can_vec_mask_load_store_p): Update call
3423 to get_mask_mode.
3424 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3425 first that the original mode really is a vector.
3426 * tree.c (build_truth_vector_type_for): Likewise.
3427 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3428 get_mode_mask interface.
3429 (aarch64_expand_sve_vcond): Update call accordingly.
3430 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3431 get_mode_mask interface.
3432 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3433
3434 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3435
3436 * tree.h (build_truth_vector_type): Delete.
3437 (build_same_sized_truth_vector_type): Likewise.
3438 * tree.c (build_truth_vector_type): Rename to...
3439 (build_truth_vector_type_for): ...this. Make static and take
3440 a vector type as argument.
3441 (truth_type_for): Update accordingly.
3442 (build_same_sized_truth_vector_type): Delete.
3443 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3444 instead of build_same_sized_truth_vector_type.
3445 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3446 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3447 * tree-vect-patterns.c (build_mask_conversion): Likeise.
3448 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3449 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3450 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3451 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3452 (vectorizable_store, vectorizable_condition): Likewise.
3453 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3454 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3455 build_truth_vector_type.
3456 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3457 Use truth_type_for instead of build_same_sized_truth_vector_type.
3458 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3459
3460 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3461
3462 * tree.h (build_truth_vector_type_for_mode): Declare.
3463 * tree.c (build_truth_vector_type_for_mode): New function,
3464 split out from...
3465 (build_truth_vector_type): ...here.
3466 (build_opaque_vector_type): Fix head comment.
3467 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3468 vec_info parameter.
3469 (vect_halve_mask_nunits): Replace vec_info parameter with the
3470 mode of the new vector.
3471 (vect_double_mask_nunits): Likewise.
3472 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3473 (vect_double_mask_nunits): Likewise.
3474 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3475 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3476 to vect_halve_mask_nunits, getting the required mode from the unpack
3477 patterns.
3478 (vect_set_loop_condition_masked): Update call accordingly.
3479 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3480 parameter and update call to vect_double_mask_nunits.
3481 (vectorizable_conversion): Update call accordingly.
3482 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3483 (vectorizable_call): Update call accordingly.
3484 (supportable_widening_operation): Update call to
3485 vect_halve_mask_nunits.
3486 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3487 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3488
3489 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3490
3491 * machmode.h (mode_for_int_vector): Delete.
3492 (related_int_vector_mode): Declare.
3493 * stor-layout.c (mode_for_int_vector): Delete.
3494 (related_int_vector_mode): New function.
3495 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3496 instead of mode_for_int_vector.
3497 (expand_vec_perm_const): Likewise.
3498 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3499 (aarch64_evpc_sve_tbl): Likewise.
3500 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3501 (s390_expand_vcond): Likewise.
3502
3503 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3504
3505 * target.def (related_mode): New hook.
3506 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3507 * doc/tm.texi: Regenerate.
3508 * targhooks.h (default_vectorize_related_mode): Declare.
3509 * targhooks.c (default_vectorize_related_mode): New function.
3510 * machmode.h (related_vector_mode): Declare.
3511 * stor-layout.c (related_vector_mode): New function.
3512 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3513 * optabs-query.c (qimode_for_vec_perm): Likewise.
3514 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3515 (vectorizable_store, vectorizable_load): Likewise
3516
3517 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3518
3519 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3520 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3521 * config/arm/arm-c.c (arm_cpu_builtins): Define
3522 __GCC_ASM_FLAG_OUTPUTS__.
3523 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3524 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3525 Define __GCC_ASM_FLAG_OUTPUTS__.
3526 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3527 * doc/extend.texi (FlagOutputOperands): Add documentation
3528 for ARM and AArch64.
3529
3530 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3531 * config/arm/predicates.md (nz_comparison_operator): Rename
3532 from noov_comparison_operator.
3533 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3534 (arm_gen_dicompare_reg): Likewise.
3535 (maybe_get_arm_condition_code): Likewise.
3536 (thumb1_final_prescan_insn): Likewise.
3537 (arm_emit_coreregs_64bit_shift): Likewise.
3538 * config/arm/arm.md (addsi3_compare0): Likewise.
3539 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3540 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3541 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3542 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3543 (*mulsi3addsi_compare0_scratch): Likewise.
3544 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3545 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3546 (*zeroextractsi_compare0_scratch): Likewise.
3547 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3548 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3549 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3550 (andsi_not_shiftsi_si_scc): Likewise.
3551 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3552 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3553 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3554 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3555 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3556 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3557 (return_addr_mask, *check_arch2): Likewise.
3558 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3559 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3560 (compare_scc splitters): Likewise.
3561 (movcond_addsi): Likewise.
3562 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3563 (*thumb2_addsi3_compare0_scratch): Likewise.
3564 (*thumb2_mulsi_short_compare0): Likewise.
3565 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3566 (compare peephole2s): Likewise.
3567 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3568 nz_comparison_operator names.
3569 (cbranchsi4_insn): Likewise.
3570
3571 * config/arm/constraints.md (c): Use cc_register predicate.
3572
3573 * config/aarch64/constraints.md (c): New constraint.
3574
3575 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3576
3577 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3578 ipa_merge_fn_summary_after_inlining): Micro optimize.
3579
3580 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3581
3582 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3583
3584 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3585
3586 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3587 (ipa_value_range_from_jfunc): New function.
3588 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3589 known_value_ranges parameter; use it to evalulate conditions.
3590 (evaluate_properties_for_edge): Compute known value ranges.
3591 (ipa_fn_summary_t::duplicate): Update use of
3592 evaluate_conditions_for_known_args.
3593 (estimate_ipcp_clone_size_and_time): Likewise.
3594 (ipa_merge_fn_summary_after_inlining): Likewise.
3595 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3596
3597 2019-11-14 Martin Liska <mliska@suse.cz>
3598
3599 * ipa-inline.c (want_inline_small_function_p): Use
3600 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3601 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3602
3603 2019-11-14 Martin Liska <mliska@suse.cz>
3604
3605 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3606 of a callee to get value of the param.
3607 * ipa-inline.c (inline_insns_auto): Use proper
3608 opt_for_fn.
3609 * opts.c (maybe_default_option): Do not overwrite param
3610 value if optimization level does not match. Note that
3611 params usually have default value set via Init() keyword.
3612 * params.opt: Remove -param=max-inline-insns-auto-O2.
3613 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3614 * doc/invoke.texi: Remove documentation of
3615 max-inline-insns-auto-O2.
3616
3617 2019-11-14 Martin Liska <mliska@suse.cz>
3618
3619 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3620 Do not initialize m_other_count.
3621 (switch_conversion::collect): Do not count m_default_count and
3622 m_other_count as we use frequencies for edges.
3623 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3624
3625 2019-11-14 Martin Liska <mliska@suse.cz>
3626
3627 PR other/92329
3628 * doc/invoke.texi: Document -fallocation-dce.
3629
3630 2019-11-14 Martin Liska <mliska@suse.cz>
3631
3632 PR target/92389
3633 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3634 PTA_ICELAKE_CLIENT which is later interited by
3635 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3636
3637 2019-11-14 Martin Liska <mliska@suse.cz>
3638
3639 * ipa-icf.c (sem_item_optimizer::execute): Save
3640 loaded_symbols.
3641 (sem_item_optimizer::parse_nonsingleton_classes):
3642 Return number of loaded symbols.
3643 (sem_item_optimizer::merge_classes): Print
3644 statistics about totally needed symbols.
3645 * ipa-icf.h (parse_nonsingleton_classes): Change return
3646 type.
3647 (merge_classes): Add one argument.
3648
3649 2019-11-14 Martin Liska <mliska@suse.cz>
3650
3651 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3652 func_checker::hash_operand by handling of FIELD_DECLs.
3653
3654 2019-11-14 Martin Liska <mliska@suse.cz>
3655
3656 * ipa-icf-gimple.h (func_checker::func_checker): Add
3657 default constructor.
3658 * ipa-icf.c (sem_function::init): Make operand_equal_p
3659 and hash_operand public.
3660 (sem_item::add_expr): Remove.
3661 (sem_item::add_type): Remove.
3662 (sem_function::hash_stmt): Use m_checker for hashing
3663 of GIMPLE statements.
3664 (sem_function::parse): Init with checker.
3665 (sem_variable::parse): Pass NULL as checker.
3666 (sem_item_optimizer::parse_funcs_and_vars):
3667 Pass checker to ::parse function.
3668 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3669 (sem_variable::parse): New function.
3670 (sem_variable::get_hash): Only return computed hash value.
3671 (sem_variable::init): Initialize hash of a variable.
3672 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3673 to couple of functions as a new argument.
3674
3675 2019-11-14 Martin Liska <mliska@suse.cz>
3676
3677 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3678 bail out reason.
3679 (func_checker::compare_gimple_assign): Likewise.
3680
3681 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3682
3683 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3684 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3685 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3686
3687 * omp-general.c (omp_context_name_list_prop): New function.
3688 (omp_context_selector_matches): Use it. Return 0 if it returns
3689 NULL.
3690 (omp_context_selector_props_compare): Allow equivalency of an
3691 identifier and a string literal containing no embedded zeros.
3692
3693 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3694
3695 * range-op.cc (RANGE3): Remove.
3696 (range_tests): Remove all selftest that check for multi-ranges.
3697 Put tests in namespace selftest.
3698 * selftest.h: Move range_tests into namespace selftest.
3699 * value-range.h (class value_range): Unfriend range_tests.
3700
3701 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3702
3703 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3704 normalize_symbolics and normalize_addresses working in place.
3705 (range_fold_unary_symbolics_p): Same.
3706 (range_fold_unary_symbolics_p): Same.
3707 * value-range.cc (num_pairs): Same.
3708 (lower_bound): Same.
3709 (upper_bound): Same.
3710 (contains_p): Same.
3711 (normalize_addresses): Same.
3712 (normalize_symbolics): Same.
3713 * value-range.h (normalize_symbolics): Same.
3714 (normalize_addresses): Same.
3715
3716 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3717
3718 PR ipa/91682
3719 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3720 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3721 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3722 (ipa_agg_jump_function): Remove member function equal_to.
3723 (ipa_agg_jump_function_p): Remove typedef.
3724 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3725 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3726 information for aggregate jump function.
3727 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3728 record last definition statement.
3729 (load_from_unmodified_param_or_agg): New function.
3730 (ipa_known_agg_contents_list): Add new field type and value, remove
3731 field constant.
3732 (build_agg_jump_func_from_list): Rename parameter const_count to
3733 value_count, build aggregate jump function from ipa_load_agg_data.
3734 (analyze_agg_content_value): New function.
3735 (extract_mem_content): Analyze memory store assignment to prepare
3736 information for aggregate jump function generation.
3737 (determine_known_aggregate_parts): Add new parameter fbi, remove
3738 parameter aa_walk_budeget_p.
3739 (update_jump_functions_after_inlining): Update aggregate jump function.
3740 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3741 (try_make_edge_direct_simple_call): Add new parameter new_root.
3742 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3743 new_root_info.
3744 (update_indirect_edges_after_inlining): Pass new argument to
3745 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3746 (ipa_write_jump_function): Write aggregate jump function to file.
3747 (ipa_read_jump_function): Read aggregate jump function from file.
3748 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3749 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3750 (ipa_agg_value_from_node): Likewise.
3751 (ipa_agg_value_set_from_jfunc): Likewise.
3752 (propagate_vals_across_arith_jfunc): Likewise.
3753 (propagate_aggregate_lattice): Likewise.
3754 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3755 (propagate_vals_across_pass_through): Call
3756 propagate_vals_across_arith_jfunc.
3757 (get_clone_agg_value): Move forward.
3758 (propagate_aggs_across_jump_function): Handle value propagation for
3759 aggregate jump function.
3760 (agg_jmp_p_vec_for_t_vec): Remove.
3761 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3762 with vec<ipa_agg_value>.
3763 (copy_plats_to_inter, intersect_with_plats): Likewise.
3764 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3765 (intersect_aggregate_with_edge): Likewise.
3766 (find_aggregate_values_for_callers_subset): Likewise.
3767 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3768 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3769 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3770 (gather_context_independent_values): Likewise.
3771 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3772 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3773 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3774 (evaluate_properties_for_edge): Likewise.
3775 (estimate_edge_devirt_benefit): Likewise.
3776 (estimate_edge_size_and_time): Likewise.
3777 (estimate_calls_size_and_time): Likewise.
3778 (ipa_call_context::ipa_call_context): Likewise.
3779 (estimate_ipcp_clone_size_and_time): Likewise.
3780 * ipa-fnsummary.h (ipa_call_context): Replace
3781 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3782 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3783 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3784 (do_estimate_edge_size): Likewise.
3785 (do_estimate_edge_hints): Likewise.
3786
3787 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3788
3789 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3790 binary operations.
3791
3792 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3793
3794 * ipa-profile.c (check_argument_count): Check properly that e_info
3795 is non-NULL; do not check descriptors.
3796
3797 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3798
3799 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3800 check for ipa profiles.
3801
3802 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3803
3804 PR c++/92421
3805 * ipa-prop.c (update_indirect_edges_after_inlining):
3806 Mark parameter as used.
3807 * ipa-inline.c (recursive_inlining): Reset node cache
3808 after inlining.
3809 (inline_small_functions): Remove checking ifdef.
3810 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3811 cache consistency.
3812
3813 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3814
3815 PR ipa/92498
3816 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3817 is NULL.
3818 (ipa_profile): Fix reversed test.
3819
3820 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3821
3822 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3823 (propagate_constants_topo): Fix typo.
3824
3825 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3826
3827 * Makefile.in (OBJS): Add value-range.o.
3828 (GTFILES): Add value-range.h.
3829 * gengtype.c (open_base_files): Add value-range.h to list of
3830 header files.
3831 * tree-vrp.c: Move the following value_range related functions:
3832 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3833 constant_p, set_undefined, set_varying, may_contain_p,
3834 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3835 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3836 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3837 value_inside_range, ranges_from_anti_range, union_ranges,
3838 intersect_ranges, intersect_helper, union_helper, union_,
3839 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3840 upper_bound, contains_p, invert, intersect...
3841 * value-range.cc: ...to here.
3842 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3843 associated inline methods from here...
3844 * value-range.h: ...to here.
3845
3846 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3847
3848 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3849 instead of asserting its value.
3850
3851 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3852
3853 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3854 constructors and set methods so value_range_kind is the last
3855 argument and defaults to VR_RANGE.
3856 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3857 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3858 * ipa-prop.c (ipa_get_value_range): Same.
3859 (ipa_compute_jump_functions_for_edge): Same.
3860 * range-op.cc (value_range_from_overflowed_bounds): Same.
3861 (operator_cast::op1_range): Same.
3862 (range_tests): Same.
3863 * range.cc (range_nonzero): Same.
3864 * tree-ssanames.c (get_range_info): Same.
3865 * tree-vrp.c (value_range_equiv::set): Same.
3866 (value_range::value_range): Same.
3867 (value_range_equiv::value_range_equiv): Same.
3868 (value_range_equiv::update): Same.
3869 (value_range_equiv::deep_copy): Same.
3870 (value_range_equiv::move): Same.
3871 (value_range_equiv::set_undefined): Same.
3872 (value_range::set): Same.
3873 (value_range::set_nonzero): Same.
3874 (ranges_from_anti_range): Same.
3875 (extract_range_from_plus_minus_expr): Same.
3876 (value_range::intersect_helper): Same.
3877 (value_range_equiv::intersect): Same.
3878 (value_range::union_helper): Same.
3879 (value_range_equiv::union_): Same.
3880 (value_range::normalize_symbolics): Same.
3881 (value_range::invert): Same.
3882 (determine_value_range_1): Same.
3883 * tree-vrp.h (class value_range): Same.
3884 (class value_range_equiv): Same.
3885 * vr-values.c (set_value_range_to_nonnegative): Same.
3886 (set_value_range_to_truthvalue): Same.
3887 (vr_values::update_value_range): Same.
3888 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3889 (vr_values::extract_range_from_binary_expr): Same.
3890 (vr_values::extract_range_from_comparison): Same.
3891 (vr_values::extract_range_basic): Same.
3892 (vr_values::adjust_range_with_scev): Same.
3893 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3894 (vr_values::extract_range_from_phi_node): Same.
3895
3896 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3897
3898 * tree-dump.c (dequeue_and_dump): Print first tree operand
3899 for VIEW_CONVERT_EXPR.
3900
3901 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3902
3903 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3904 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3905 * real.c (get_max_float): Add norm_max argument.
3906 * real.h (get_max_float): Update prototype.
3907 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3908 get_max_float.
3909
3910 2019-11-13 Martin Liska <mliska@suse.cz>
3911
3912 * dbgcnt.c (test_sorted_dbg_counters): New.
3913 (dbgcnt_c_tests): Likewise.
3914 * selftest-run-tests.c (selftest::run_tests): Likewise.
3915 * selftest.h (dbgcnt_c_tests): Likewise.
3916
3917 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3918 Martin Jambor <mjambor@suse.cz>
3919
3920 PR ipa/92454
3921 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3922 (identify_dead_nodes): Likewise.
3923
3924 2019-11-13 Martin Liska <mliska@suse.cz>
3925
3926 * ipa-icf.c (sem_function::equals_private): Do not overuse
3927 push/pop_cfun functions.
3928
3929 2019-11-13 Martin Liska <mliska@suse.cz>
3930
3931 * common.opt: Document change of -fdbg-cnt option.
3932 * dbgcnt.c (DEBUG_COUNTER): Remove.
3933 (dbg_cnt_is_enabled): Remove.
3934 (dbg_cnt): Work with new intervals.
3935 (dbg_cnt_set_limit_by_index): Set to new
3936 list of intervals.
3937 (dbg_cnt_set_limit_by_name): Likewise.
3938 (dbg_cnt_process_single_pair): Process new format.
3939 (dbg_cnt_process_opt): Likewise.
3940 (dbg_cnt_list_all_counters): Likewise.
3941 * doc/invoke.texi: Document change of -fdbg-cnt option.
3942 (cmp_tuples): New.
3943
3944 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3945
3946 * ipa-inline.c (ipa_inline): Check that function is defined before
3947 flattening.
3948
3949 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3950 Julian Brown <julian@codesourcery.com>
3951
3952 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3953 flag_worker_partitioning is not set.
3954 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3955 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3956
3957 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3958
3959 * config/gcn/gcn-run.c (heap_region): New global variable.
3960 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3961 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3962 (get_kernarg_region): Move contents to ....
3963 (get_memory_region): .... here.
3964 (get_heap_region): New function.
3965 (init_device): Initialize the heap_region.
3966 (device_malloc): Add region parameter.
3967 (struct kernargs): Move heap ....
3968 (heap): ... to global scope.
3969 (main): Allocate heap separate to kernargs.
3970
3971 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3972
3973 * ipa-prop.c (ipa_print_node_jump_functions,
3974 ipa_print_node_params): Print info about missing summaries.
3975
3976 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3977
3978 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3979 the cost of generating loop masks.
3980
3981 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3982
3983 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3984 New function.
3985 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3986 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3987 (vect_transform_loop): Likewise.
3988 (vect_analyze_loop_costing): Don't take the cost of versioning
3989 into account for the static profitability threshold if it turns
3990 out that no versioning is needed.
3991
3992 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3993
3994 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3995 and target_option_default_node to get -fprofile-generate ctors working
3996 right with LTO.
3997
3998 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3999
4000 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
4001 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
4002 (vectorizable_assignment): Don't add a cost for nop conversions.
4003 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
4004 Likewise.
4005 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
4006
4007 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4008
4009 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
4010 number of ncopies as an additional argument.
4011 (vectorizable_conversion): Update call accordingly. Use "modifier"
4012 to check whether a conversion is between vectors with the same
4013 numbers of units.
4014
4015 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4016
4017 * config/aarch64/aarch64-sve-builtins-functions.h
4018 (unary_count::expand): Use aarch64_sve_int_mode instead of
4019 mode_for_int_vector.
4020
4021 2019-11-13 Martin Liska <mliska@suse.cz>
4022
4023 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
4024
4025 2019-11-13 Martin Liska <mliska@suse.cz>
4026
4027 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4028 Remove call to finalize_options_struct.
4029
4030 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
4031
4032 PR target/92055
4033 * config/avr/t-avr (avr-mcus): Do not depend on
4034 $(srcdir)/config/avr/t-multilib.
4035
4036 2019-11-13 Richard Biener <rguenther@suse.de>
4037
4038 PR tree-optimization/92473
4039 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
4040 direct optab reduction in the correct type.
4041
4042 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4043
4044 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
4045 hexadecimal literal.
4046
4047 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4048
4049 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
4050 UNORDERED if !HONOR_NANS (DFmode).
4051 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
4052 if !HONOR_NANS (<MODE>mode).
4053
4054 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4055
4056 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
4057 (ipcp_verify_propagated_values): Likewise.
4058 (propagate_constants_across_call): Likewise.
4059 (propagate_constants_topo): Likewise.
4060 (ipcp_propagate_stage): Likewise.
4061
4062 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4063
4064 PR ipa/92471
4065 * ipa-profile.c (check_argument_count): Break out from ...;
4066 watch for missing summaries.
4067 (ipa_profile): Here.
4068
4069 2019-11-12 Martin Sebor <msebor@redhat.com>
4070
4071 PR tree-optimization/92412
4072 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
4073 extern variables.
4074
4075 2019-11-12 Martin Sebor <msebor@redhat.com>
4076
4077 PR middle-end/83688
4078 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
4079 (directive::argno): New member.
4080 (format_result::aliases, format_result::alias_count): New data members.
4081 (format_result::append_alias): New member function.
4082 (fmtresult::dst_offset): New data member.
4083 (pass_sprintf_length::call_info::dst_origin): New data member.
4084 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
4085 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
4086 (get_origin_and_offset): Same.
4087 (format_string): Call it.
4088 (format_directive): Call append_alias and set directive argument
4089 number.
4090 (maybe_warn_overlap): New function.
4091 (pass_sprintf_length::compute_format_length): Call it.
4092 (pass_sprintf_length::handle_gimple_call): Initialize new members.
4093 * tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
4094
4095 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
4096
4097 PR rtl-optimization/92430
4098 * cfgcleanup.c (pass_jump_after_combine::execute): Free
4099 dominance info at the beginning.
4100
4101 2019-11-12 Richard Biener <rguenther@suse.de>
4102
4103 PR tree-optimization/92460
4104 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
4105 expression before gimplifying.
4106
4107 2019-11-12 Richard Biener <rguenther@suse.de>
4108
4109 PR tree-optimization/92461
4110 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
4111 stmt after propagation.
4112
4113 2019-11-12 Martin Liska <mliska@suse.cz>
4114
4115 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
4116 Use SET_OPTION_IF_UNSET.
4117 (ix86_option_override_internal): Likewise.
4118 * opts.c (default_options_optimization): Likewise.
4119 (finish_options): Likewise.
4120 (enable_fdo_optimizations): Likewise.
4121 (common_handle_option): Likewise.
4122
4123 2019-11-12 Martin Liska <mliska@suse.cz>
4124
4125 * common/common-target.def: Remove option_validate_param and
4126 option_default_params.
4127 * common/common-targhooks.c (default_option_validate_param):
4128 Remove.
4129 * common/common-targhooks.h (default_option_validate_param):
4130 Remove.
4131 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
4132 Remove usage of this.
4133 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
4134 (aarch64_option_validate_param): Likewise.
4135 (aarch64_option_default_params): Likewise
4136 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
4137 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4138 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4139 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4140 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4141 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4142 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4143 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4144 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4145 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4146 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
4147 guard_size here.
4148 * doc/tm.texi: Remove option_default_params and option_validate_param.
4149 * doc/tm.texi.in: Likewise.
4150
4151 2019-11-12 Martin Liska <mliska@suse.cz>
4152
4153 * common/common-target.def:
4154 Do not mention set_default_param_value
4155 and set_param_value.
4156 * doc/tm.texi: Likewise.
4157
4158 2019-11-12 Martin Liska <mliska@suse.cz>
4159
4160 * common.opt: Remove param_values.
4161 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
4162 Remove finalize_options_struct.
4163 * gcc.c (driver::decode_argv): Do not call global_init_params
4164 and finish_params.
4165 (driver::finalize): Do not call params_c_finalize
4166 and finalize_options_struct.
4167 * opt-suggestions.c (option_proposer::get_completions): Remove
4168 special casing of params.
4169 (option_proposer::find_param_completions): Remove.
4170 (test_completion_partial_match): Update expected output.
4171 * opt-suggestions.h: Remove find_param_completions.
4172 * opts-common.c (add_misspelling_candidates): Add
4173 --param with a space.
4174 * opts.c (handle_param): Remove.
4175 (init_options_struct):. Remove init_options_struct and
4176 similar calls.
4177 (finalize_options_struct): Remove.
4178 (common_handle_option): Use SET_OPTION_IF_UNSET.
4179 * opts.h (finalize_options_struct): Remove.
4180 * toplev.c (general_init): Do not call global_init_params.
4181 (toplev::finalize): Do not call params_c_finalize and
4182 finalize_options_struct.
4183
4184 2019-11-12 Martin Liska <mliska@suse.cz>
4185
4186 * Makefile.in: Remove PARAMS_H and params.list
4187 and params.options.
4188 * params-enum.h: Remove.
4189 * params-list.h: Remove.
4190 * params-options.h: Remove.
4191 * params.c: Remove.
4192 * params.def: Remove.
4193 * params.h: Remove.
4194 * asan.c: Do not include params.h.
4195 * auto-profile.c: Likewise.
4196 * bb-reorder.c: Likewise.
4197 * builtins.c: Likewise.
4198 * cfgcleanup.c: Likewise.
4199 * cfgexpand.c: Likewise.
4200 * cfgloopanal.c: Likewise.
4201 * cgraph.c: Likewise.
4202 * combine.c: Likewise.
4203 * common/config/aarch64/aarch64-common.c: Likewise.
4204 * common/config/gcn/gcn-common.c: Likewise.
4205 * common/config/ia64/ia64-common.c: Likewise.
4206 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
4207 * common/config/rs6000/rs6000-common.c: Likewise.
4208 * common/config/sh/sh-common.c: Likewise.
4209 * config/aarch64/aarch64.c: Likewise.
4210 * config/alpha/alpha.c: Likewise.
4211 * config/arm/arm.c: Likewise.
4212 * config/avr/avr.c: Likewise.
4213 * config/csky/csky.c: Likewise.
4214 * config/i386/i386-builtins.c: Likewise.
4215 * config/i386/i386-expand.c: Likewise.
4216 * config/i386/i386-features.c: Likewise.
4217 * config/i386/i386-options.c: Likewise.
4218 * config/i386/i386.c: Likewise.
4219 * config/ia64/ia64.c: Likewise.
4220 * config/rs6000/rs6000-logue.c: Likewise.
4221 * config/rs6000/rs6000.c: Likewise.
4222 * config/s390/s390.c: Likewise.
4223 * config/sparc/sparc.c: Likewise.
4224 * config/visium/visium.c: Likewise.
4225 * coverage.c: Likewise.
4226 * cprop.c: Likewise.
4227 * cse.c: Likewise.
4228 * cselib.c: Likewise.
4229 * dse.c: Likewise.
4230 * emit-rtl.c: Likewise.
4231 * explow.c: Likewise.
4232 * final.c: Likewise.
4233 * fold-const.c: Likewise.
4234 * gcc.c: Likewise.
4235 * gcse.c: Likewise.
4236 * ggc-common.c: Likewise.
4237 * ggc-page.c: Likewise.
4238 * gimple-loop-interchange.cc: Likewise.
4239 * gimple-loop-jam.c: Likewise.
4240 * gimple-loop-versioning.cc: Likewise.
4241 * gimple-ssa-split-paths.c: Likewise.
4242 * gimple-ssa-sprintf.c: Likewise.
4243 * gimple-ssa-store-merging.c: Likewise.
4244 * gimple-ssa-strength-reduction.c: Likewise.
4245 * gimple-ssa-warn-alloca.c: Likewise.
4246 * gimple-ssa-warn-restrict.c: Likewise.
4247 * graphite-isl-ast-to-gimple.c: Likewise.
4248 * graphite-optimize-isl.c: Likewise.
4249 * graphite-scop-detection.c: Likewise.
4250 * graphite-sese-to-poly.c: Likewise.
4251 * graphite.c: Likewise.
4252 * haifa-sched.c: Likewise.
4253 * hsa-gen.c: Likewise.
4254 * ifcvt.c: Likewise.
4255 * ipa-cp.c: Likewise.
4256 * ipa-fnsummary.c: Likewise.
4257 * ipa-inline-analysis.c: Likewise.
4258 * ipa-inline.c: Likewise.
4259 * ipa-polymorphic-call.c: Likewise.
4260 * ipa-profile.c: Likewise.
4261 * ipa-prop.c: Likewise.
4262 * ipa-split.c: Likewise.
4263 * ipa-sra.c: Likewise.
4264 * ira-build.c: Likewise.
4265 * ira-conflicts.c: Likewise.
4266 * loop-doloop.c: Likewise.
4267 * loop-invariant.c: Likewise.
4268 * loop-unroll.c: Likewise.
4269 * lra-assigns.c: Likewise.
4270 * lra-constraints.c: Likewise.
4271 * modulo-sched.c: Likewise.
4272 * opt-suggestions.c: Likewise.
4273 * opts.c: Likewise.
4274 * postreload-gcse.c: Likewise.
4275 * predict.c: Likewise.
4276 * reload.c: Likewise.
4277 * reorg.c: Likewise.
4278 * resource.c: Likewise.
4279 * sanopt.c: Likewise.
4280 * sched-deps.c: Likewise.
4281 * sched-ebb.c: Likewise.
4282 * sched-rgn.c: Likewise.
4283 * sel-sched-ir.c: Likewise.
4284 * sel-sched.c: Likewise.
4285 * shrink-wrap.c: Likewise.
4286 * stmt.c: Likewise.
4287 * targhooks.c: Likewise.
4288 * toplev.c: Likewise.
4289 * tracer.c: Likewise.
4290 * trans-mem.c: Likewise.
4291 * tree-chrec.c: Likewise.
4292 * tree-data-ref.c: Likewise.
4293 * tree-if-conv.c: Likewise.
4294 * tree-inline.c: Likewise.
4295 * tree-loop-distribution.c: Likewise.
4296 * tree-parloops.c: Likewise.
4297 * tree-predcom.c: Likewise.
4298 * tree-profile.c: Likewise.
4299 * tree-scalar-evolution.c: Likewise.
4300 * tree-sra.c: Likewise.
4301 * tree-ssa-ccp.c: Likewise.
4302 * tree-ssa-dom.c: Likewise.
4303 * tree-ssa-dse.c: Likewise.
4304 * tree-ssa-ifcombine.c: Likewise.
4305 * tree-ssa-loop-ch.c: Likewise.
4306 * tree-ssa-loop-im.c: Likewise.
4307 * tree-ssa-loop-ivcanon.c: Likewise.
4308 * tree-ssa-loop-ivopts.c: Likewise.
4309 * tree-ssa-loop-manip.c: Likewise.
4310 * tree-ssa-loop-niter.c: Likewise.
4311 * tree-ssa-loop-prefetch.c: Likewise.
4312 * tree-ssa-loop-unswitch.c: Likewise.
4313 * tree-ssa-math-opts.c: Likewise.
4314 * tree-ssa-phiopt.c: Likewise.
4315 * tree-ssa-pre.c: Likewise.
4316 * tree-ssa-reassoc.c: Likewise.
4317 * tree-ssa-sccvn.c: Likewise.
4318 * tree-ssa-scopedtables.c: Likewise.
4319 * tree-ssa-sink.c: Likewise.
4320 * tree-ssa-strlen.c: Likewise.
4321 * tree-ssa-structalias.c: Likewise.
4322 * tree-ssa-tail-merge.c: Likewise.
4323 * tree-ssa-threadbackward.c: Likewise.
4324 * tree-ssa-threadedge.c: Likewise.
4325 * tree-ssa-uninit.c: Likewise.
4326 * tree-switch-conversion.c: Likewise.
4327 * tree-vect-data-refs.c: Likewise.
4328 * tree-vect-loop.c: Likewise.
4329 * tree-vect-slp.c: Likewise.
4330 * tree-vrp.c: Likewise.
4331 * tree.c: Likewise.
4332 * value-prof.c: Likewise.
4333 * var-tracking.c: Likewise.
4334
4335 2019-11-12 Martin Liska <mliska@suse.cz>
4336
4337 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
4338 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
4339 macro.
4340 (asan_sanitize_allocas_p): Likewise.
4341 (asan_emit_stack_protection): Likewise.
4342 (asan_protect_global): Likewise.
4343 (instrument_derefs): Likewise.
4344 (instrument_builtin_call): Likewise.
4345 (asan_expand_mark_ifn): Likewise.
4346 * auto-profile.c (auto_profile): Likewise.
4347 * bb-reorder.c (copy_bb_p): Likewise.
4348 (duplicate_computed_gotos): Likewise.
4349 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
4350 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
4351 (try_crossjump_bb): Likewise.
4352 * cfgexpand.c (defer_stack_allocation): Likewise.
4353 (stack_protect_classify_type): Likewise.
4354 (pass_expand::execute): Likewise.
4355 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4356 (estimate_reg_pressure_cost): Likewise.
4357 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
4358 * combine.c (combine_instructions): Likewise.
4359 (record_value_for_reg): Likewise.
4360 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
4361 (aarch64_option_default_params): Likewise.
4362 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4363 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4364 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4365 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4366 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
4367 (aarch64_allocate_and_probe_stack_space): Likewise.
4368 (aarch64_expand_epilogue): Likewise.
4369 (aarch64_override_options_internal): Likewise.
4370 * config/alpha/alpha.c (alpha_option_override): Likewise.
4371 * config/arm/arm.c (arm_option_override): Likewise.
4372 (arm_valid_target_attribute_p): Likewise.
4373 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4374 * config/i386/i386.c (get_probe_interval): Likewise.
4375 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4376 (ix86_max_noce_ifcvt_seq_cost): Likewise.
4377 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4378 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4379 (get_stack_clash_protection_guard_size): Likewise.
4380 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4381 * config/s390/s390.c (allocate_stack_space): Likewise.
4382 (s390_emit_prologue): Likewise.
4383 (s390_option_override_internal): Likewise.
4384 * config/sparc/sparc.c (sparc_option_override): Likewise.
4385 * config/visium/visium.c (visium_option_override): Likewise.
4386 * coverage.c (get_coverage_counts): Likewise.
4387 (coverage_compute_profile_id): Likewise.
4388 (coverage_begin_function): Likewise.
4389 (coverage_end_function): Likewise.
4390 * cse.c (cse_find_path): Likewise.
4391 (cse_extended_basic_block): Likewise.
4392 (cse_main): Likewise.
4393 * cselib.c (cselib_invalidate_mem): Likewise.
4394 * dse.c (dse_step1): Likewise.
4395 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4396 (get_max_insn_count): Likewise.
4397 (make_debug_insn_raw): Likewise.
4398 (init_emit): Likewise.
4399 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4400 * final.c (compute_alignments): Likewise.
4401 * fold-const.c (fold_range_test): Likewise.
4402 (fold_truth_andor): Likewise.
4403 (tree_single_nonnegative_warnv_p): Likewise.
4404 (integer_valued_real_single_p): Likewise.
4405 * gcse.c (want_to_gcse_p): Likewise.
4406 (prune_insertions_deletions): Likewise.
4407 (hoist_code): Likewise.
4408 (gcse_or_cprop_is_too_expensive): Likewise.
4409 * ggc-common.c: Likewise.
4410 * ggc-page.c (ggc_collect): Likewise.
4411 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4412 (MAX_DATAREFS): Likewise.
4413 (OUTER_STRIDE_RATIO): Likewise.
4414 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4415 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4416 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4417 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4418 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4419 (imm_store_chain_info::output_merged_store): Likewise.
4420 (pass_store_merging::process_store): Likewise.
4421 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4422 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4423 (scop_to_isl_ast): Likewise.
4424 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4425 (optimize_isl): Likewise.
4426 * graphite-scop-detection.c (build_scops): Likewise.
4427 * haifa-sched.c (set_modulo_params): Likewise.
4428 (rank_for_schedule): Likewise.
4429 (model_add_to_worklist): Likewise.
4430 (model_promote_insn): Likewise.
4431 (model_choose_insn): Likewise.
4432 (queue_to_ready): Likewise.
4433 (autopref_multipass_dfa_lookahead_guard): Likewise.
4434 (schedule_block): Likewise.
4435 (sched_init): Likewise.
4436 * hsa-gen.c (init_prologue): Likewise.
4437 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4438 (cond_move_process_if_block): Likewise.
4439 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4440 (merge_agg_lats_step): Likewise.
4441 (devirtualization_time_bonus): Likewise.
4442 (hint_time_bonus): Likewise.
4443 (incorporate_penalties): Likewise.
4444 (good_cloning_opportunity_p): Likewise.
4445 (ipcp_propagate_stage): Likewise.
4446 * ipa-fnsummary.c (decompose_param_expr): Likewise.
4447 (set_switch_stmt_execution_predicate): Likewise.
4448 (analyze_function_body): Likewise.
4449 (compute_fn_summary): Likewise.
4450 * ipa-inline-analysis.c (estimate_growth): Likewise.
4451 * ipa-inline.c (caller_growth_limits): Likewise.
4452 (inline_insns_single): Likewise.
4453 (inline_insns_auto): Likewise.
4454 (can_inline_edge_by_limits_p): Likewise.
4455 (want_early_inline_function_p): Likewise.
4456 (big_speedup_p): Likewise.
4457 (want_inline_small_function_p): Likewise.
4458 (want_inline_self_recursive_call_p): Likewise.
4459 (edge_badness): Likewise.
4460 (recursive_inlining): Likewise.
4461 (compute_max_insns): Likewise.
4462 (early_inliner): Likewise.
4463 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4464 * ipa-profile.c (ipa_profile): Likewise.
4465 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4466 (ipa_analyze_node): Likewise.
4467 (ipcp_transform_function): Likewise.
4468 * ipa-split.c (consider_split): Likewise.
4469 * ipa-sra.c (allocate_access): Likewise.
4470 (process_scan_results): Likewise.
4471 (ipa_sra_summarize_function): Likewise.
4472 (pull_accesses_from_callee): Likewise.
4473 * ira-build.c (loop_compare_func): Likewise.
4474 (mark_loops_for_removal): Likewise.
4475 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4476 * loop-doloop.c (doloop_optimize): Likewise.
4477 * loop-invariant.c (gain_for_invariant): Likewise.
4478 (move_loop_invariants): Likewise.
4479 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4480 (decide_unroll_runtime_iterations): Likewise.
4481 (decide_unroll_stupid): Likewise.
4482 (expand_var_during_unrolling): Likewise.
4483 * lra-assigns.c (spill_for): Likewise.
4484 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4485 * modulo-sched.c (sms_schedule): Likewise.
4486 (DFA_HISTORY): Likewise.
4487 * opts.c (default_options_optimization): Likewise.
4488 (finish_options): Likewise.
4489 (common_handle_option): Likewise.
4490 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4491 (if): Likewise.
4492 * predict.c (get_hot_bb_threshold): Likewise.
4493 (maybe_hot_count_p): Likewise.
4494 (probably_never_executed): Likewise.
4495 (predictable_edge_p): Likewise.
4496 (predict_loops): Likewise.
4497 (expr_expected_value_1): Likewise.
4498 (tree_predict_by_opcode): Likewise.
4499 (handle_missing_profiles): Likewise.
4500 * reload.c (find_equiv_reg): Likewise.
4501 * reorg.c (redundant_insn): Likewise.
4502 * resource.c (mark_target_live_regs): Likewise.
4503 (incr_ticks_for_insn): Likewise.
4504 * sanopt.c (pass_sanopt::execute): Likewise.
4505 * sched-deps.c (sched_analyze_1): Likewise.
4506 (sched_analyze_2): Likewise.
4507 (sched_analyze_insn): Likewise.
4508 (deps_analyze_insn): Likewise.
4509 * sched-ebb.c (schedule_ebbs): Likewise.
4510 * sched-rgn.c (find_single_block_region): Likewise.
4511 (too_large): Likewise.
4512 (haifa_find_rgns): Likewise.
4513 (extend_rgns): Likewise.
4514 (new_ready): Likewise.
4515 (schedule_region): Likewise.
4516 (sched_rgn_init): Likewise.
4517 * sel-sched-ir.c (make_region_from_loop): Likewise.
4518 * sel-sched-ir.h (MAX_WS): Likewise.
4519 * sel-sched.c (process_pipelined_exprs): Likewise.
4520 (sel_setup_region_sched_flags): Likewise.
4521 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4522 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4523 * toplev.c (print_version): Likewise.
4524 (process_options): Likewise.
4525 * tracer.c (tail_duplicate): Likewise.
4526 * trans-mem.c (tm_log_add): Likewise.
4527 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4528 * tree-data-ref.c (split_constant_offset): Likewise.
4529 (compute_all_dependences): Likewise.
4530 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4531 * tree-inline.c (remap_gimple_stmt): Likewise.
4532 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4533 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4534 (create_parallel_loop): Likewise.
4535 * tree-predcom.c (determine_unroll_factor): Likewise.
4536 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4537 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4538 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4539 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4540 (dse_optimize_redundant_stores): Likewise.
4541 (dse_classify_store): Likewise.
4542 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4543 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4544 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4545 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4546 (try_peel_loop): Likewise.
4547 (tree_unroll_loops_completely): Likewise.
4548 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4549 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4550 (MAX_CONSIDERED_GROUPS): Likewise.
4551 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4552 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4553 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4554 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4555 (L1_CACHE_SIZE_BYTES): Likewise.
4556 (L2_CACHE_SIZE_BYTES): Likewise.
4557 (should_issue_prefetch_p): Likewise.
4558 (schedule_prefetches): Likewise.
4559 (determine_unroll_factor): Likewise.
4560 (volume_of_references): Likewise.
4561 (add_subscript_strides): Likewise.
4562 (self_reuse_distance): Likewise.
4563 (mem_ref_count_reasonable_p): Likewise.
4564 (insn_to_prefetch_ratio_too_small_p): Likewise.
4565 (loop_prefetch_arrays): Likewise.
4566 (tree_ssa_prefetch_arrays): Likewise.
4567 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4568 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4569 (convert_mult_to_fma): Likewise.
4570 (math_opts_dom_walker::after_dom_children): Likewise.
4571 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4572 (hoist_adjacent_loads): Likewise.
4573 (gate_hoist_loads): Likewise.
4574 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4575 (compute_partial_antic_aux): Likewise.
4576 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4577 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4578 (vn_reference_lookup): Likewise.
4579 (do_rpo_vn): Likewise.
4580 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4581 * tree-ssa-sink.c (select_best_block): Likewise.
4582 * tree-ssa-strlen.c (new_stridx): Likewise.
4583 (new_addr_stridx): Likewise.
4584 (get_range_strlen_dynamic): Likewise.
4585 (class ssa_name_limit_t): Likewise.
4586 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4587 (create_variable_info_for_1): Likewise.
4588 (init_alias_vars): Likewise.
4589 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4590 (tail_merge_optimize): Likewise.
4591 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4592 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4593 (thread_jumps::find_jump_threads_backwards): Likewise.
4594 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4595 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4596 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4597 (jump_table_cluster::can_be_handled): Likewise.
4598 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4599 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4600 (param_switch_conversion_branch_ratio): Likewise.
4601 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4602 (vect_enhance_data_refs_alignment): Likewise.
4603 (vect_prune_runtime_alias_test_list): Likewise.
4604 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4605 (vect_get_datarefs_in_loop): Likewise.
4606 (vect_analyze_loop): Likewise.
4607 * tree-vect-slp.c (vect_slp_bb): Likewise.
4608 * tree-vectorizer.h: Likewise.
4609 * tree-vrp.c (find_switch_asserts): Likewise.
4610 (vrp_prop::check_mem_ref): Likewise.
4611 * tree.c (wide_int_to_tree_1): Likewise.
4612 (cache_integer_cst): Likewise.
4613 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4614 (reverse_op): Likewise.
4615 (vt_find_locations): Likewise.
4616
4617 2019-11-12 Martin Liska <mliska@suse.cz>
4618
4619 * Makefile.in: Include params.opt.
4620 * flag-types.h (enum parloops_schedule_type): Add
4621 parloops_schedule_type used in params.opt.
4622 * params.opt: New file.
4623
4624 2019-11-12 Martin Liska <mliska@suse.cz>
4625
4626 * common.opt: Remove --param and --param= options.
4627 * opt-functions.awk: Mark CL_PARAMS for options
4628 that have Param keyword.
4629 * opts-common.c (decode_cmdline_options_to_array):
4630 Replace --param key=value with --param=key=value.
4631 * opts.c (print_filtered_help): Remove special
4632 printing of params.
4633 (print_specific_help): Update title for params.
4634 (common_handle_option): Do not handle OPT__param.
4635 opts.h (SET_OPTION_IF_UNSET): New macro.
4636 * doc/options.texi: Document Param keyword.
4637
4638 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4639 Frederik Harwath <frederik@codesourcery.com>
4640 Thomas Schwinge <thomas@codesourcery.com>
4641
4642 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4643 enumeration constant.
4644 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4645 (is_gimple_omp_offloaded): Likewise.
4646 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4647 constant. Adjust the value of ORT_NONE accordingly.
4648 (is_gimple_stmt): Handle OACC_SERIAL.
4649 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4650 (gomp_needs_data_present): Likewise.
4651 (gimplify_adjust_omp_clauses): Likewise.
4652 (gimplify_omp_workshare): Handle OACC_SERIAL.
4653 (gimplify_expr): Likewise.
4654 * omp-expand.c (expand_omp_target):
4655 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4656 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4657 * omp-low.c (is_oacc_parallel): Rename function to...
4658 (is_oacc_parallel_or_serial): ... this.
4659 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4660 (scan_sharing_clauses): Adjust accordingly.
4661 (scan_omp_for): Likewise.
4662 (lower_oacc_head_mark): Likewise.
4663 (convert_from_firstprivate_int): Likewise.
4664 (lower_omp_target): Likewise.
4665 (check_omp_nesting_restrictions): Handle
4666 GF_OMP_TARGET_KIND_OACC_SERIAL.
4667 (lower_oacc_reductions): Likewise.
4668 (lower_omp_target): Likewise.
4669 * tree.def (OACC_SERIAL): New tree code.
4670 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4671
4672 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4673
4674 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4675
4676 PR target/92449
4677 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4678 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4679
4680 PR tree-optimization/92452
4681 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4682 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4683 MINUS_EXPR on it.
4684
4685 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4686
4687 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4688 safelen with 0.
4689
4690 2019-11-12 Alan Modra <amodra@gmail.com>
4691
4692 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4693 element of unspec vec.
4694 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4695 PC-relative TLS.
4696 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4697 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4698 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4699 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4700
4701 2019-11-12 Alan Modra <amodra@gmail.com>
4702
4703 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4704 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4705 (IS_NOMARK_TLSGETADDR): Likewise.
4706 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4707 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4708 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4709 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4710 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4711 (rs6000_indirect_call_template_1): Likewise.
4712 (rs6000_pltseq_template): Likewise.
4713 (rs6000_opt_vars): Remove "tls-markers" entry.
4714 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4715 with TARGET_ELF.
4716 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4717 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4718 (pltseq_plt_pcrel<mode>): Likewise.
4719 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4720 (call_value_local64): Likewise.
4721 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4722 output and length attribute sub-expression.
4723 (call_value_nonlocal_sysv<mode>),
4724 (call_value_nonlocal_sysv_secure<mode>),
4725 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4726 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4727 (call_value_indirect_pcrel<mode>): Likewise.
4728 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4729 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4730 * configure: Regenerate.
4731 * config.in: Regenerate.
4732
4733 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4734
4735 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4736 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4737 address being a prefixed load/store.
4738 (stack_protect_testdi): Deal with either address being a prefixed
4739 load.
4740
4741 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4742
4743 PR bootstrap/92433
4744 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4745 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4746 std::swap.
4747
4748 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4749
4750 PR tree-optimization/92420
4751 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4752 up file.
4753 (get_group_load_store_type): Use it for reversed SLP accesses.
4754
4755 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4756
4757 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4758 summary.
4759 (ipcp_transformation_t::duplicate): Break out from ...
4760 (ipa_node_params_t::duplicate): ... here; add copying of agg
4761 replacements.
4762 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4763 (ipcp_transformation_t): Add duplicate.
4764
4765 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4766
4767 PR fortran/91828
4768 * doc/install.texi: Document that the minimum MPFR version is
4769 3.1.0.
4770
4771 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4772
4773 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4774 use new register constraint letters.
4775
4776 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4777
4778 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4779 as well, if interesting recover the symbol and re-legitimize the
4780 pic address.
4781
4782 2019-11-11 Martin Liska <mliska@suse.cz>
4783
4784 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4785 alphabetically.
4786
4787 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4788
4789 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4790 account when checking if there are enough iterations to vectorize
4791 epilogue.
4792
4793 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4794 Kwok Cheung Yeung <kcy@codesourcery.com>
4795
4796 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4797 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4798 (LANG_HOOKS_DECLS): Rename also here.
4799 * langhooks.h (lang_hooks_for_decls): Rename
4800 omp_is_optional_argument to omp_check_optional_argument; take
4801 additional bool argument.
4802 * omp-general.h (omp_check_optional_argument): Likewise.
4803 * omp-general.h (omp_check_optional_argument): Likewise.
4804 * omp-low.c (lower_omp_target): Update calls; handle absent
4805 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4806
4807 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4808
4809 PR target/87833
4810 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4811 -fPIC and -shared the last to create offload image.
4812
4813 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4814
4815 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4816 of 'offset'.
4817
4818 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4819 (config.status): Use/depend on it.
4820 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4821 * configure: Regenerate.
4822
4823 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4824
4825 PR tree-optimization/88760
4826 * config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4827 * common/config/rs6000/rs6000-common.c
4828 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4829 Turn on -funroll-loops and -munroll-only-small-loops.
4830 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4831 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4832 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4833 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4834 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4835 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4836
4837 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4838
4839 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4840 Make scalar_load, vector_load, unaligned_load and
4841 vector_gather_load cost more to conform hardware latency and
4842 insn cost settings.
4843
4844 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4845
4846 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4847 (MACHO_SYMBOL_LINKER_VIS_P): New.
4848
4849 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4850
4851 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4852 registers in eliminable_regset.
4853
4854 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4855
4856 * ipa-inline.c (compute_uninlined_call_time,
4857 compute_inlined_call_time): Take edge frequency as
4858 parameter rather than computing it by itself.
4859 (big_speedup_p, edge_badness): Manually CSE sreal
4860 frequency calculations.
4861
4862 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4863
4864 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4865 case where profiles are same.
4866
4867 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4868
4869 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4870
4871 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4872
4873 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4874 args summaries of inlined edge unless it holds info about
4875 described reference.
4876
4877 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4878
4879 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4880 (*movcc_internal1): Rename to...
4881 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4882
4883 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4884
4885 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4886 (cgraph_node::create_virtual_clone): Copy it.
4887 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4888 summaries.
4889 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4890 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4891 is disabled.
4892 (propagate_constants_across_call): If callee is not analyzed, give up.
4893 (propagate_constants_topo): Lower to bottom latties of all callees of
4894 functions with ipa-cp disabled.
4895 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4896 (cgraph_edge_brings_value_p): Check for availability first.
4897 (create_specialized_node): Set ipcp_clone.
4898 (ipcp_store_bits_results): Check that info is present.
4899 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4900 thunks.
4901 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4902 conservative when callee summary is missing.
4903 (remap_edge_summaries): Lookup call summary only when needed.
4904 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4905 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4906 Use get_create.
4907 (ipa_analyze_node): Use get_create.
4908 (propagate_controlled_uses): Do not propagate when function is not
4909 analyzed.
4910 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4911 (ipa_read_node_info): Use get_create.
4912 * ipa-prop.h (IPA_NODE_REF): Use get.
4913 (IPA_NODE_REF_GET_CREATE): New.
4914
4915 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4916
4917 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4918 on function symbol.
4919
4920 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4921
4922 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4923 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4924 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4925 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4926
4927 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4928
4929 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4930 capping the growth cumulated.
4931 (offline_size): Break out from ...
4932 (estimate_growth): ... here.
4933 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4934 parameters.
4935 (growth_likely_positive): Turn to ...
4936 (growth_positive_p): Re-implement.
4937 * ipa-inline.h (growth_likely_positive): Remove.
4938 (growth_positive_p): Declare.
4939 * ipa-inline.c (want_inline_small_function_p): Use
4940 growth_positive_p.
4941 (want_inline_function_to_all_callers_p): Likewise.
4942
4943 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4944
4945 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4946 calculation of min_size.
4947 (ipa_update_overall_fn_summary): Likewise.
4948
4949 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4950
4951 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4952 estimate_edge_devirt_benefit when not computing hints;
4953 do not compute time when not asked for.
4954 (estimate_calls_size_and_time): Pass NULL hints and time when
4955 these are not computed; do not evaluate hint predicates when these are
4956 not computed.
4957 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4958 frequency.
4959
4960 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4961
4962 PR tree-optimization/92401
4963 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4964 if res_op->code is an expression with code length 1.
4965 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4966 if res_op->code is an expression with code length 2.
4967 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4968 if res_op->code is an expression with code length 3.
4969
4970 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4971
4972 * config/darwin.c (machopic_mcount_stub_name): Validate the
4973 symbol stub name when it is created.
4974 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4975 stub validation.
4976
4977 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4978
4979 * symtab.c: Fix comment typos.
4980 * cgraphunit.c: Likewise.
4981 * cgraph.h: Likewise.
4982 * cgraphclones.c: Likewise.
4983 * cgraph.c: Likewise.
4984 * varpool.c: Likewise.
4985 * tree-ssa-strlen.c: Likewise.
4986 * ipa-sra.c: Likewise.
4987 (scan_expr_access, check_all_callers_for_issues): Fix typo
4988 in a dump message.
4989
4990 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4991
4992 * config/darwin-protos.h: Add include quard.
4993
4994 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4995
4996 * range-op.h (range_operator::fold_range): Return result in a
4997 reference parameter instead of by value.
4998 (range_operator::wi_fold): Same.
4999 * range-op.cc (range_operator::wi_fold): Return result in a reference
5000 parameter instead of by value.
5001 (range_operator::fold_range): Same.
5002 (value_range_from_overflowed_bounds): Same.
5003 (value_range_with_overflow): Same
5004 (create_possibly_reversed_range): Same.
5005 (operator_equal::fold_range): Same.
5006 (operator_not_equal::fold_range): Same.
5007 (operator_lt::fold_range): Same.
5008 (operator_le::fold_range): Same.
5009 (operator_gt::fold_range): Same.
5010 (operator_ge::fold_range): Same.
5011 (operator_plus::wi_fold): Same.
5012 (operator_plus::op1_range): Change call to fold_range.
5013 (operator_plus::op2_range): Change call to fold_range.
5014 (operator_minus::wi_fold): Return result via reference parameter.
5015 (operator_minus::op1_range): Change call to fold_range.
5016 (operator_minus::op2_range): Change call to fold_range.
5017 (operator_min::wi_fold): Return result via reference parameter.
5018 (operator_max::wi_fold): Same.
5019 (cross_product_operator::wi_cross_product): Same.
5020 (operator_mult::wi_fold): Same.
5021 (operator_div::wi_fold): Same.
5022 (operator_div op_floor_div): Fix whitespace.
5023 (operator_exact_divide::op1_range): Change call to fold_range.
5024 (operator_lshift::fold_range): Return result via reference parameter.
5025 (operator_lshift::wi_fold): Same.
5026 (operator_rshift::fold_range): Same.
5027 (operator_rshift::wi_fold): Same.
5028 (operator_cast::fold_range): Same.
5029 (operator_cast::op1_range): Change calls to fold_range.
5030 (operator_logical_and::fold_range): Return result via reference.
5031 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
5032 (operator_bitwise_and::wi_fold): Return result via reference.
5033 (operator_logical_or::fold_range): Same.
5034 (operator_bitwise_or::wi_fold): Same.
5035 (operator_bitwise_xor::wi_fold): Same.
5036 (operator_trunc_mod::wi_fold): Same.
5037 (operator_logical_not::fold_range): Same.
5038 (operator_bitwise_not::fold_range): Same.
5039 (operator_bitwise_not::op1_range): Change call to fold_range.
5040 (operator_cst::fold_range): Return result via reference.
5041 (operator_identity::fold_range): Same.
5042 (operator_abs::wi_fold): Same.
5043 (operator_absu::wi_fold): Same.
5044 (operator_negate::fold_range): Same.
5045 (operator_negate::op1_range): Change call to fold_range.
5046 (operator_addr_expr::fold_range): Return result via reference.
5047 (operator_addr_expr::op1_range): Change call to fold_range.
5048 (operator_pointer_plus::wi_fold): Return result via reference.
5049 (operator_pointer_min_max::wi_fold): Same.
5050 (operator_pointer_and::wi_fold): Same.
5051 (operator_pointer_or::wi_fold): Same.
5052 (range_op_handler): Change call to fold_range.
5053 (range_cast): Same.
5054 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
5055 fold_range.
5056 (range_fold_unary_symbolics_p): Same.
5057 (range_fold_binary_expr): Same.
5058 (range_fold_unary_expr): Same.
5059
5060 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5061
5062 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
5063 vector type as an argument rather than reading it from the
5064 stmt_vec_info.
5065 (vect_create_epilog_for_reduction): Update accordingly.
5066 (vectorizable_reduction): Likewise.
5067 (vect_transform_cycle_phi): Likewise.
5068
5069 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
5070
5071 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
5072 the comparison codes that make sense for the mode used, and only the
5073 codes that can be done with a single branch instruction.
5074
5075 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5076
5077 PR tree-optimization/92351
5078 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
5079 peeling the main loop for alignment, make sure to set the misalignment
5080 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
5081
5082 2019-11-08 Richard Biener <rguenther@suse.de>
5083
5084 * dbgcnt.def (ivopts_loop): Add.
5085 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
5086 ivopts_loop before optimizing a loop.
5087
5088 2019-11-08 Richard Biener <rguenther@suse.de>
5089
5090 PR ipa/92409
5091 * tree-inline.c (declare_return_variable): Properly handle
5092 type mismatches for the return slot.
5093
5094 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
5095
5096 PR target/92095
5097 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
5098 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
5099 change.
5100 (got_helper_needed): New static variable.
5101 (output_load_pcrel_sym): New function.
5102 (get_pc_thunk_name): Remove after inlining...
5103 (load_got_register): ...here. Rework the initialization of the GOT
5104 register and of the GOT helper.
5105 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
5106 (sparc_file_end): Test got_helper_needed to decide whether the GOT
5107 helper must be emitted. Use output_asm_insn instead of fprintf.
5108 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
5109 if optimization is enabled.
5110 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
5111 by calling output_load_pcrel_sym.
5112
5113 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5114
5115 * tree-sra.c (create_access): Delay disqualifying the base
5116 for poly_int values until we know we have a base.
5117
5118 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5119
5120 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
5121 for loops with SIMDUID set. Enable epilogue vectorization for loops
5122 with SIMDLEN set after finding a main loop with a VF that matches it.
5123
5124 2019-11-08 Jakub Jelinek <jakub@redhat.com>
5125
5126 PR target/92038
5127 * gimple-ssa-store-merging.c (find_constituent_stores): For return
5128 value only, return non-NULL if there is a single non-clobber
5129 constituent store even if there are constituent clobbers and return
5130 one of clobber constituent stores if all constituent stores are
5131 clobbers.
5132 (split_group): Handle clobbers.
5133 (imm_store_chain_info::output_merged_store): When computing
5134 bzero_first, look after all clobbers at the start. Don't count
5135 clobber stmts in orig_num_stmts, except if the first orig store is
5136 a clobber covering the whole area and split_stores cover the whole
5137 area, consider equal number of stmts ok. Punt if split_stores
5138 contains only ->orig stores and their number plus number of original
5139 clobbers is equal to original number of stmts. For ->orig, look past
5140 clobbers in the constituent stores.
5141 (imm_store_chain_info::output_merged_stores): Don't remove clobber
5142 stmts.
5143 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
5144 rhs.
5145 (store_valid_for_store_merging_p): Allow clobber stmts.
5146 (verify_clear_bit_region_be): Fix up a thinko in function comment.
5147
5148 PR c++/92384
5149 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
5150 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
5151 slot.
5152 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
5153 force creation of a unique data.stack_parm slot.
5154
5155 2019-11-08 Richard Biener <rguenther@suse.de>
5156
5157 * genmatch.c (expr::gen_transform): Use the resimplify
5158 member function instead of hard-coding the gimple_resimplifyN variant.
5159 (dt_simplify::gen_1): Likewise.
5160
5161 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5162
5163 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5164 POLY_INT_CST.
5165
5166 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5167
5168 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
5169 instead of INTEGER_CST.
5170
5171 2019-11-08 Richard Biener <rguenther@suse.de>
5172
5173 PR tree-optimization/92324
5174 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5175 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
5176 sign-conversions as necessary.
5177 (vectorizable_reduction): Reject conversions in the chain
5178 that are not sign-conversions, base analysis on a non-converting
5179 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
5180 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
5181 for debug stmts.
5182 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
5183 (STMT_VINFO_REDUC_VECTYPE): Likewise.
5184
5185 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
5186
5187 PR target/92055
5188 * config/avr/avr.opt (-mdouble=, -mlong-double=):
5189 Fix a missing '-' when displaying these options in the
5190 help screen.
5191
5192 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5193
5194 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
5195
5196 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5197
5198 * config/aarch64/aarch64-builtins.c
5199 (aarch64_builtin_vectorized_function): Remove bswap handling.
5200
5201 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5202
5203 * tree-core.h (tree_type_common::indivisible_p): New member variable.
5204 * tree.h (TYPE_INDIVISIBLE_P): New macro.
5205 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5206 Treat the vector types as indivisible.
5207
5208 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5209
5210 * optabs.def (gather_load_optab, mask_gather_load_optab)
5211 (scatter_store_optab, mask_scatter_store_optab): Turn into
5212 conversion optabs, with the offset mode given explicitly.
5213 * doc/md.texi: Update accordingly.
5214 * config/aarch64/aarch64-sve-builtins-base.cc
5215 (svld1_gather_impl::expand): Likewise.
5216 (svst1_scatter_impl::expand): Likewise.
5217 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
5218 (expand_scatter_store_optab_fn): Likewise.
5219 (direct_gather_load_optab_supported_p): Likewise.
5220 (direct_scatter_store_optab_supported_p): Likewise.
5221 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
5222 to be argument 4.
5223 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
5224 (internal_gather_scatter_fn_supported_p): Replace the offset sign
5225 argument with the offset vector type. Require the two vector
5226 types to have the same number of elements but allow their element
5227 sizes to be different. Treat the optabs as conversion optabs.
5228 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
5229 prototype accordingly.
5230 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
5231 (supports_vec_convert_optab_p): ...this new function.
5232 (supports_vec_gather_load_p): Update accordingly.
5233 (supports_vec_scatter_store_p): Likewise.
5234 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
5235 Replace the offset sign and bits parameters with a scalar type tree.
5236 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
5237 Pass back the offset vector type instead of the scalar element type.
5238 Allow the offset to be wider than the memory elements. Search for
5239 an offset type that the target supports, stopping once we've
5240 reached the maximum of the element size and pointer size.
5241 Update call to internal_gather_scatter_fn_supported_p.
5242 (vect_check_gather_scatter): Update calls accordingly.
5243 When testing a new scale before knowing the final offset type,
5244 check whether the scale is supported for any signed or unsigned
5245 offset type. Check whether the target supports the source and
5246 target types of a conversion before deciding whether to look
5247 through the conversion. Record the chosen offset_vectype.
5248 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
5249 (vect_recog_gather_scatter_pattern): Get the scalar offset type
5250 directly from the gs_info's offset_vectype instead. Pass a zero
5251 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
5252 * tree-vect-stmts.c (check_load_store_masking): Update call to
5253 internal_gather_scatter_fn_supported_p, passing the offset vector
5254 type recorded in the gs_info.
5255 (vect_truncate_gather_scatter_offset): Update call to
5256 vect_check_gather_scatter, leaving it to search for a valid
5257 offset vector type.
5258 (vect_use_strided_gather_scatters_p): Convert the offset to the
5259 element type of the gs_info's offset_vectype.
5260 (vect_get_gather_scatter_ops): Get the offset vector type directly
5261 from the gs_info.
5262 (vect_get_strided_load_store_ops): Likewise.
5263 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
5264 and IFN_MASK_GATHER_LOAD.
5265 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
5266 (gather_load<mode><v_int_equiv>): ...this.
5267 (mask_gather_load<mode>): Rename to...
5268 (mask_gather_load<mode><v_int_equiv>): ...this.
5269 (scatter_store<mode>): Rename to...
5270 (scatter_store<mode><v_int_equiv>): ...this.
5271 (mask_scatter_store<mode>): Rename to...
5272 (mask_scatter_store<mode><v_int_equiv>): ...this.
5273
5274 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
5275
5276 PR target/92132
5277 * config/rs6000/predicates.md
5278 (signed_or_equality_comparison_operator): New predicate.
5279 (unsigned_or_equality_comparison_operator): Likewise.
5280 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
5281 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
5282 * config/rs6000/vector.md
5283 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
5284 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
5285 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
5286 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
5287 vector modes and same-size integer vector modes.
5288 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
5289 (vector_lt<mode> for VEC_F): New expand.
5290 (vector_le<mode> for VEC_F): Likewise.
5291 (vector_ne<mode> for VEC_F): Likewise.
5292 (vector_unge<mode> for VEC_F): Likewise.
5293 (vector_ungt<mode> for VEC_F): Likewise.
5294 (vector_unle<mode> for VEC_F): Likewise.
5295 (vector_unlt<mode> for VEC_F): Likewise.
5296 (vector_uneq<mode>): Expose name.
5297 (vector_ltgt<mode>): Likewise.
5298 (vector_unordered<mode>): Likewise.
5299 (vector_ordered<mode>): Likewise.
5300
5301 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
5302
5303 PR target/92295
5304 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
5305 Enhance ix86_expand_vector_init_concat.
5306
5307 2019-11-08 Joseph Myers <joseph@codesourcery.com>
5308
5309 * doc/invoke.texi (-Wold-style-definition): Document () not being
5310 considered an old-style definition for C2x.
5311
5312 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
5313
5314 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
5315 Enhance comment.
5316 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
5317 insn patterns using ldcw instruction.
5318 (memory_barrier): Remove insn pattern using sync instruction.
5319 * config/pa/pa.opt (coherent-ldcw): New option.
5320 (ordered): New option.
5321
5322 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5323
5324 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
5325 valid conditions.
5326
5327 2019-11-07 Jakub Jelinek <jakub@redhat.com>
5328
5329 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
5330 typo - mistmatch -> mismatch.
5331 * ipa-profile.c (ipa_profile): Likewise.
5332 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
5333 - mistmatch -> mismatch.
5334
5335 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5336
5337 * simplify-rtx.c (comparison_to_mask): New function.
5338 (mask_to_comparison): New function.
5339 (simplify_logical_relational_operation): New function.
5340 (simplify_binary_operation_1): Call
5341 simplify_logical_relational_operation.
5342
5343 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
5344
5345 PR other/92090
5346 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
5347 modes for integer constants.
5348
5349 2019-11-07 Jan Hubicka <jh@suse.cz>
5350
5351 PR ipa/92406
5352 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
5353 summary.
5354
5355 2019-11-07 Jan Hubicka <jh@suse.cz>
5356
5357 * optc-save-gen.awk: Generate cl_target_option_free
5358 and cl_optimization_option_free.
5359 * opth-en.awk: Declare cl_target_option_free
5360 and cl_optimization_option_free.
5361 * tree.c (free_node): Use it.
5362
5363 2019-11-06 Jan Hubicka <jh@suse.cz>
5364
5365 * lto-streamer-in.c: Include alloc-pool.h.
5366 (freeing_string_slot_hasher): Remove.
5367 (string_slot_allocator): New object allocator.
5368 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
5369 (file_name_obstack): New obstack.
5370 (canon_file_name): Allocate in obstack and allocator.
5371 (lto_reader_init): Initialize obstack and allocator.
5372 (lto_free_file_name_hash): New function.
5373 * lto-streamer.h (lto_free_file_name_hash): New.
5374
5375 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
5376
5377 PR tree-optimization/89134
5378 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5379 * params.def: Add min-loop-cond-split-prob.
5380 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5381 outside checks on loop into the function.
5382 (split_info): New class.
5383 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5384 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5385 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5386 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5387 (stmt_semi_invariant_p, branch_removable_p): Likewise.
5388 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5389 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5390 (split_loop_on_cond): Likewise.
5391 (tree_ssa_split_loops): Add loop split on conditional statement.
5392
5393 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
5394
5395 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5396 pattern.
5397
5398 2019-11-07 Richard Biener <rguenther@suse.de>
5399
5400 PR tree-optimization/92405
5401 * tree-vect-loop.c (vectorizable_reduction): Appropriately
5402 restrict lane-reducing ops to single stmt chains.
5403
5404 2019-11-07 Martin Jambor <mjambor@suse.cz>
5405
5406 PR lto/70929
5407 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5408 * cgraph.h (gimple_check_call_matching_types): Remove
5409 * cgraph.c (gimple_check_call_args): Likewise.
5410 (gimple_check_call_matching_types): Likewise.
5411 (symbol_table::create_edge): Do not call
5412 gimple_check_call_matching_types.
5413 (cgraph_edge::make_direct): Likewise.
5414 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5415 * value-prof.h (check_ic_target): Remove.
5416 * value-prof.c (check_ic_target): Remove.
5417 (gimple_ic_transform): Do nat call check_ic_target.
5418 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5419 (afdo_indirect_call): Likewise.
5420 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5421 gimple_check_call_matching_types.
5422 * ipa-inline.c (early_inliner): Likewise.
5423
5424 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5425
5426 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5427 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5428 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5429 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5430 * config/arm/iterators.md (USSAT16): New int_iterator.
5431 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5432 (sup): Likewise.
5433 * config/arm/predicates.md (ssat16_imm): New predicate.
5434 (usat16_imm): Likewise.
5435 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5436
5437 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5438
5439 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5440 New define_insns.
5441 (arm_<simd32_op>): New define_expands.
5442 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5443 __smuad, __smuadx): Define.
5444 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5445 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5446 (SIMD32_BINOP_Q): Likewise.
5447 (simd32_op): Handle the above.
5448 * config/arm/unspecs.md: Define unspecs for the above.
5449
5450 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5451
5452 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5453 * config/arm/arm.md (APSRGE_REGNUM): Define.
5454 (arm_<simd32_op>): New define_insn.
5455 (arm_sel): Likewise.
5456 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5457 (CALL_USED_REGISTERS): Likewise.
5458 (REG_ALLOC_ORDER): Likewise.
5459 (FIRST_PSEUDO_REGISTER): Update value.
5460 (ARM_GE_BITS_READ): Define.
5461 * config/arm/arm.c (arm_conditional_register_usage): Clear
5462 APSRGE_REGNUM from operand_reg_set.
5463 (arm_ge_bits_access): Define.
5464 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5465 ARM_BUIILTIN_sel.
5466 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5467 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5468 FAIL if ARM_GE_BITS_READ.
5469 (*arm_add<mode>3): New define_insn.
5470 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5471 (*arm_sub<mode>3): New define_insn.
5472 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5473 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5474 __usub16): Define.
5475 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5476 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5477 (simd32_op): Handle the above.
5478 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5479 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5480 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5481 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5482
5483 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5484
5485 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5486 (arm_smlabb): New define_expand.
5487 (*maddhisi4tb): Rename to...
5488 (maddhisi4tb): ... This.
5489 (*maddhisi4tt): Rename to...
5490 (maddhisi4tt): ... This.
5491 (arm_smlatb_setq): New define_insn.
5492 (arm_smlatb): New define_expand.
5493 (arm_smlatt_setq): New define_insn.
5494 (arm_smlatt): New define_expand.
5495 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5496 (arm_<smlaw_op>): New define_expand.
5497 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5498 __smlawb, __smlawt): Define.
5499 * config/arm_acle_builtins.def: Define builtins for the above.
5500 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5501 (slaw_op): New int_attribute.
5502 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5503
5504 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5505
5506 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5507 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5508 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5509 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5510 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5511 (ss_op): New code_attr.
5512
5513 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5514
5515 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5516 * config/arm/arm.md (APSRQ_REGNUM): Define.
5517 (add_setq): New define_subst.
5518 (add_clobber_q_name): New define_subst_attr.
5519 (add_clobber_q_pred): Likewise.
5520 (maddhisi4): Change to define_expand. Split into mult and add if
5521 ARM_Q_BIT_READ.
5522 (arm_maddhisi4): New define_insn.
5523 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5524 (*maddhisi4tt): Likewise.
5525 (arm_ssat): New define_expand.
5526 (arm_usat): Likewise.
5527 (arm_get_apsr): New define_insn.
5528 (arm_set_apsr): Likewise.
5529 (arm_saturation_occurred): New define_expand.
5530 (arm_set_saturation): Likewise.
5531 (*satsi_<SAT:code>): Rename to...
5532 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5533 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5534 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5535 (CALL_USED_REGISTERS): Mark apsrq.
5536 (FIRST_PSEUDO_REGISTER): Update value.
5537 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5538 (machine_function): Add q_bit_access.
5539 (ARM_Q_BIT_READ): Define.
5540 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5541 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5542 operand_reg_set.
5543 (arm_q_bit_access): Define.
5544 * config/arm/arm-builtins.c: Include stringpool.h.
5545 (arm_sat_binop_imm_qualifiers,
5546 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5547 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5548 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5549 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5550 SET_SAT_QUALIFIERS): Likewise.
5551 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5552 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5553 Handle 0 argument expander.
5554 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5555 (arm_check_builtin_call): Define.
5556 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5557 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5558 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5559 (arm_q_bit_access): Likewise.
5560 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5561 __saturation_occurred, __set_saturation_occurred): Define.
5562 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5563 saturation_occurred, set_saturation_occurred.
5564 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5565 (UNSPEC_APSR_READ): Likewise.
5566 (VUNSPEC_APSR_WRITE): Likewise.
5567 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5568 (*arm_ssadd<mode>3): New define_insn.
5569 (sssub<mode>3): Convert to define_expand.
5570 (*arm_sssub<mode>3): New define_insn.
5571 (ssmulsa3): Convert to define_expand.
5572 (*arm_ssmulsa3): New define_insn.
5573 (usmulusa3): Convert to define_expand.
5574 (*arm_usmulusa3): New define_insn.
5575 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5576 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5577 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5578
5579 2019-11-07 Martin Liska <mliska@suse.cz>
5580
5581 PR c++/92354
5582 * cgraph.c (delete_function_version): Clear global
5583 variable version_info_node if equal to deleted
5584 function.
5585
5586 2019-11-07 Martin Liska <mliska@suse.cz>
5587
5588 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5589 of CONSTRUCTOR_NO_CLEARING.
5590 (operand_compare::hash_operand): Likewise.
5591
5592 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5593
5594 Support 64-bit double and 64-bit long double configurations.
5595
5596 PR target/92055
5597 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5598 --with-long-double=.
5599 * config/avr/t-multilib: Remove.
5600 * config/avr/t-avr: Output of genmultilib.awk is now fully
5601 dynamically generated and no more part of the repo.
5602 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5603 Pass them down to...
5604 * config/avr/genmultilib.awk: ...here and handle them.
5605 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5606 (-mlong-double=, avr_long_double). New option and var.
5607 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5608 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5609 Set default as requested by --with-double=
5610 (TARGET_HANDLE_OPTION): Define to this...
5611 (avr_handle_option): ...new hook worker.
5612 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5613 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5614 (avr_double_lib): New proto for spec function.
5615 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5616 (DRIVER_SELF_SPECS): Call %:double-lib.
5617 * config/avr/avr.c (avr_option_override): Assert
5618 sizeof(long double) >= sizeof(double) for the target.
5619 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5620 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5621 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5622 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5623 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5624 New built-in define depending on --with-double=, --with-long-double=.
5625 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5626 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5627 * doc/install.texi (Cross-Compiler-Specific Options)
5628 <--with-double=, --with-long-double=>: Doc.
5629
5630 2019-11-07 Richard Biener <rguenther@suse.de>
5631
5632 * dbgcnt.def (gimple_unroll): New.
5633 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5634 gimple_unroll debug counter before applying transform.
5635 (try_peel_loop): Likewise.
5636
5637 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5638
5639 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5640 frame pointer in multiple registers.
5641 (ira_setup_eliminable_regset): Setup eliminable_regset,
5642 ira_no_alloc_regs and regs_ever_live for frame pointer in
5643 multiple registers.
5644
5645 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5646
5647 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5648 V2DI modes.
5649
5650 2019-11-06 Jan Hubicka <jh@suse.cz>
5651
5652 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5653 allocations.
5654 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5655 Do not silently ignore summary corruptions.
5656
5657 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5658
5659 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5660 the epilogue if there are peeled iterations for it to handle.
5661
5662 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5663
5664 * config/arc/arc.c (arc_split_ior): Add asserts.
5665 (arc_split_mov_const): Likewise.
5666 (arc_check_ior_const): Do not match known short immediate values.
5667 * config/arc/arc.md (movsi): Don't split predicated instructions
5668 (iorsi): Likewise.
5669
5670 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5671
5672 * config/arc/arc.opt (mea): Update help string.
5673 * doc/invoke.texi(ARC): Update mea option info.
5674
5675 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5676
5677 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5678 (zero_extendqisi2_ac): Likewise.
5679 (zero_extendhisi2_i): Likewise.
5680 (extendqihi2_i): Likewise.
5681 (extendqisi2_ac): Likewise.
5682 (extendhisi2_i): Likewise.
5683
5684 2019-11-06 Richard Biener <rguenther@suse.de>
5685
5686 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5687 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5688 Simplify single_defuse_cycle condition.
5689
5690 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5691
5692 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5693 epilogue loop, make sure that the VF is small enough or that
5694 the epilogue loop can be fully-masked.
5695
5696 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5697
5698 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5699 loop when we've finished, rather than returning directly from
5700 the loop. Use a local variable to track whether we're still
5701 searching for the preferred simdlen. Make vect_epilogues
5702 record whether the next iteration should try to treat the
5703 loop as an epilogue.
5704
5705 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5706
5707 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5708 __arc_hard_float__, __ARC_HARD_FLOAT__,
5709 __arc_soft_float__, __ARC_SOFT_FLOAT__
5710
5711 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5712
5713 PR tree-optimization/92317
5714 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5715 update phi's with constant phi arguments.
5716
5717 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5718 Alexandre Oliva <oliva@adacore.com>
5719
5720 * common.opt (-fcallgraph-info[=]): New option.
5721 * doc/invoke.texi (Developer options): Document it.
5722 * opts.c (common_handle_option): Handle it.
5723 * builtins.c (expand_builtin_alloca): Record allocation if
5724 -fcallgraph-info=da.
5725 * calls.c (expand_call): If -fcallgraph-info, record the call.
5726 (emit_library_call_value_1): Likewise.
5727 * flag-types.h (enum callgraph_info_type): New type.
5728 * explow.c: Include stringpool.h.
5729 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5730 * function.c (allocate_stack_usage_info): New.
5731 (allocate_struct_function): Call it for -fcallgraph-info.
5732 (prepare_function_start): Call it otherwise.
5733 (record_final_call, record_dynamic_alloc): New.
5734 * function.h (struct callinfo_callee): New.
5735 (CALLEE_FROM_CGRAPH_P): New.
5736 (struct callinfo_dalloc): New.
5737 (struct stack_usage): Add callees and dallocs.
5738 (record_final_call, record_dynamic_alloc): Declare.
5739 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5740 object if -fcallgraph-info=da.
5741 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5742 * print-tree.h (print_decl_identifier): Declare.
5743 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5744 * print-tree.c: Include print-tree.h.
5745 (print_decl_identifier): New function.
5746 * toplev.c: Include print-tree.h.
5747 (callgraph_info_file): New global variable.
5748 (callgraph_info_external_printed): Likewise.
5749 (output_stack_usage): Rename to...
5750 (output_stack_usage_1): ... this. Make it static, add cf
5751 parameter. If -fcallgraph-info=su, print stack usage to cf.
5752 If -fstack-usage, use print_decl_identifier for
5753 pretty-printing.
5754 (INDIRECT_CALL_NAME): New.
5755 (dump_final_node_vcg_start): New.
5756 (dump_final_callee_vcg, dump_final_node_vcg): New.
5757 (output_stack_usage): New.
5758 (lang_dependent_init): Open and start file if
5759 -fcallgraph-info. Allocated callgraph_info_external_printed.
5760 (finalize): If callgraph_info_file is not null, finish it,
5761 close it, and release callgraph_info_external_printed.
5762
5763 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5764 Frederik Harwath <frederik@codesourcery.com>
5765 Thomas Schwinge <thomas@codesourcery.com>
5766
5767 * omp-low.c (struct omp_context): New fields
5768 local_reduction_clauses, outer_reduction_clauses.
5769 (new_omp_context): Initialize these.
5770 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5771 (scan_omp_for): Check reduction clauses for incorrect nesting.
5772
5773 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5774
5775 PR inline-asm/92352
5776 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5777 operands with non-memory constraints.
5778
5779 2019-11-05 Martin Sebor <msebor@redhat.com>
5780
5781 PR tree-optimization/92373
5782 * tree.c (component_ref_size): Only consider initializers of objects
5783 of matching struct types.
5784 Return null for instances of interior zero-length arrays.
5785
5786 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5787
5788 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5789
5790 2019-11-05 Jason Merrill <jason@redhat.com>
5791
5792 PR tree-optimization/91825
5793 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5794
5795 2019-11-05 Jim Wilson <jimw@sifive.com>
5796
5797 PR middle-end/92263
5798 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5799 optimize_insn_for_speed_p is true.
5800
5801 2019-11-05 Martin Sebor <msebor@redhat.com>
5802
5803 PR middle-end/92333
5804 PR middle-end/82608
5805 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5806 size.
5807 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5808 name and location for a temporary variable.
5809
5810 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5811
5812 * tree-vrp.c (value_range::value_range): Fix whitespace.
5813 (defined_ranges_p): Same.
5814 (range_fold_binary_symbolics_p): Same.
5815 (value_range::intersect_helper): Same.
5816 (value_range::union_helper): Same.
5817 * tree-vrp.h (range_fold_binary_expr): Same.
5818
5819 2019-11-04 Martin Sebor <msebor@redhat.com>
5820
5821 PR middle-end/92341
5822 PR middle-end/82612
5823 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5824 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5825 of message printed in a warning for empty arrays.
5826 (vrp_prop::check_mem_ref): Also handle function parameters and
5827 empty arrays.
5828
5829 2019-11-05 Richard Biener <rguenther@suse.de>
5830
5831 PR tree-optimization/92371
5832 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5833 on the original stmt of live stmts in the chain.
5834 (vectorizable_live_operation): Look at the original stmt when
5835 checking STMT_VINFO_REDUC_DEF.
5836
5837 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5838
5839 * gimple-fold.c, gimple-loop-versioning.cc,
5840 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5841 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5842 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5843 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5844 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5845 value_range_equiv, and value_range_base to value_range.
5846
5847 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5848
5849 * expr.c (build_personality_function): Fix generated type to
5850 match actual personality functions.
5851
5852 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5853
5854 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5855 enough bytes for the NULL character.
5856
5857 2019-11-05 Richard Biener <rguenther@suse.de>
5858
5859 PR tree-optimization/92280
5860 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5861 had a single use do not create a new CTOR.
5862 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5863 BIT_FIELD_REF of a CTOR via GENERIC.
5864
5865 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5866
5867 * config/s390/s390.c (s390_vector_alignment): Check if the value
5868 fits into uhwi before using it.
5869
5870 2019-11-05 Martin Liska <mliska@suse.cz>
5871
5872 * symbol-summary.h: Use ggc_delete.
5873
5874 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5875
5876 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5877 Change vec_perm field to 10.
5878
5879 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5880
5881 * doc/install.texi: Further fix syntax for html generation.
5882
5883 2019-11-05 Martin Liska <mliska@suse.cz>
5884
5885 * symbol-summary.h: Rename allocator to m_allocator and
5886 add comment.
5887
5888 2019-11-05 Richard Biener <rguenther@suse.de>
5889
5890 PR tree-optimization/92324
5891 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5892 all signed or unsigned operations.
5893
5894 2019-11-05 Jan Hubicka <jh@suse.cz>
5895
5896 * hsa-brig.c: Include alloc-pool.h
5897 * hsa-dump.c: Likewise.
5898 * hsa-gen.c: Likewise.
5899 * hse-regalloc.c: Likewise.
5900 * ipa-hsa.c: Likewise.
5901 * ipa-predicate.c: Likewise.
5902 * ipa-reference.c: Likewise.
5903 * ipa-sra.c: Likewise.
5904 * omp-expand.c: Likewise.
5905 * omp-general.c: Likewise.
5906 * omp-low.c: Likewise.
5907 * sumbol-summary.h (function_summary_base): Add allocator.
5908 (function_summary<T *>::function_summary): Update construction.
5909 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5910 (call_summary_base): Add allcator.
5911 (call_summary<T *>::call_summary): Update construction.
5912 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5913
5914 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5915
5916 PR tree-optimization/91945
5917 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5918 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5919 Formatting fix.
5920
5921 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5922
5923 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5924 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5925 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5926 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5927 (vrp_set_zero_nonzero_bits): Move to...
5928 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5929 (vr_values::simplify_bit_ops_using_ranges): Rename
5930 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5931
5932 2019-11-05 Martin Liska <mliska@suse.cz>
5933
5934 PR c++/92339
5935 * fold-const.c (operand_compare::hash_operand): Remove
5936 FIELD_DECL handling.
5937
5938 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5939
5940 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5941 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5942 static.
5943
5944 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5945
5946 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5947 properly handle symbolics.
5948 (range_compatible_p): Remove.
5949
5950 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5951
5952 * common.opt (-fabi-version): Document =14.
5953 * doc/invoke.texi (C++ Dialect Options): Likewise.
5954
5955 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5956
5957 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5958
5959 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5960
5961 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5962 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5963 gcn_omp_device_kind_arch_isa.
5964 * config/gcn/t-omp-device: New file.
5965 * configure.ac: Support gcn for omp_device_property.
5966 * configure: Regenerate.
5967
5968 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5969
5970 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5971 (vrp_val_max): Same.
5972 (vrp_val_is_min): Same.
5973 (vrp_val_is_max): Same.
5974 (value_range_base::nonzero_p): Remove last argument to
5975 vrp_val_is_max.
5976 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5977 (vrp_val_max): Same.
5978 (vrp_val_is_min): Same.
5979 (vrp_val_is_max): Same.
5980 (value_range_base::set_varying): Remove last argument to vrp_val*.
5981 (value_range_base::dump): Same.
5982 (value_range_base::set): Same.
5983 (value_range_base::normalize_symbolics): Same.
5984 (value_range_base::num_pairs): Same.
5985 (value_range_base::lower_bound): Same.
5986 (value_range_base::upper_bound): Same.
5987 (ranges_from_anti_range): Remove handle_pointers argument.
5988 (value_range_base::singleton_p): Remove last argument to
5989 ranges_from_anti_range.
5990
5991 2019-11-04 Jan Hubicka <jh@suse.cz>
5992
5993 * ipa-reference.c (init_function_info): Initialize
5994 info->global.statics_read.
5995
5996 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5997
5998 * tree-vrp.c (value_range_base::invert): Use constructors to build
5999 range.
6000
6001 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6002
6003 * tree-vrp.c (range_int_cst_singleton_p): Remove.
6004 * tree-vrp.h (range_int_cst_singleton_p): Remove.
6005
6006 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6007
6008 * tree-vrp.c (value_range_base::normalize_addresses): Handle
6009 VR_UNDEFINED.
6010
6011 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6012
6013 * tree-vrp.c (dump_assert_info): New.
6014 (dump_asserts_info): New.
6015
6016 2019-11-04 Jan Hubicka <jh@suse.cz>
6017
6018 * ipa-inline-transform.c: Include ipa-utils.h
6019 (inline_call): Set thunk_expansion flag.
6020 * ipa-utils.h (thunk_expansion): Declare.
6021 * ipa-devirt.c (thunk_expansion): New global var.
6022 (devirt_node_removal_hook): Do not invalidate cache while
6023 doing thunk expansion.
6024
6025 2019-11-04 Tamar Christina <tamar.christina@arm.com>
6026
6027 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
6028
6029 2019-11-04 Martin Sebor <msebor@redhat.com>
6030
6031 PR tree-optimization/92349
6032 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
6033 memebers have constant sizes.
6034
6035 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
6036
6037 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
6038 parameter.
6039 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
6040 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
6041 vect_analyze_loop.
6042
6043 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
6044
6045 * expr.c (store_constructor): Modify to handle single element vectors.
6046 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
6047 constructors.
6048 (vect_slp_check_for_constructors): New function.
6049 (vect_slp_analyze_bb_1): Call new function to check for vector
6050 constructors.
6051 (vectorize_slp_instance_root_stmt): New function.
6052 (vect_schedule_slp): Call new function to vectorize root stmt of vector
6053 constructors.
6054 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
6055
6056 2019-11-04 Richard Biener <rguenther@suse.de>
6057
6058 PR tree-optimization/92345
6059 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
6060 we produced a reduction chain.
6061 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
6062 LOOP_VINFO_REDUCTIONS.
6063
6064 2019-11-04 Jan Hubicka <jh@suse.cz>
6065
6066 * cgraphclones.c (cgraph_node::create_version_clone): Do not
6067 duplicate summaries.
6068 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
6069 first.
6070 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
6071 access call summaries.
6072 (dump_ipa_call_summary): Be ready for missing edge summaries.
6073 (analyze_function_body): Use get instead of get_create to access
6074 edge summary.
6075 (estimate_calls_size_and_time): Do not access summaries of
6076 inlined edges; sanity check they are missing.
6077 (ipa_call_context::estimate_size_and_time): Use get instead
6078 of get_create to access node summary.
6079 (inline_update_callee_summaries): Do not update depth of
6080 inlined edge.
6081 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
6082 growth caches.
6083 (ipa_merge_fn_summary_after_inlining): Use get instead
6084 of get_create.
6085 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
6086 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
6087 fast summary.
6088 (initialize_growth_caches): Update.
6089 (do_estimate_edge_time): Remove redundant copy of context.
6090 (ipa_remove_from_growth_caches): New function.
6091 * ipa-inline.c (flatten_function): Update overall summary
6092 only when optimizing.
6093 (inline_to_all_callers): Update overall summary of function
6094 inlined to.
6095 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
6096 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
6097 to false.
6098
6099 2019-11-04 Richard Biener <rguenther@suse.de>
6100
6101 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
6102 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
6103
6104 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
6105
6106 * ggc-common.c: Include system.h before malloc.h.
6107
6108 2019-11-04 Alexandre Oliva <oliva@adacore.com>
6109
6110 * configure.ac: Pass --enable-obsolete=* and
6111 --enable-option-checking=* down to build configure, and fail
6112 if it fails. AC_SUBST HAVE_AUTO_BUILD.
6113 * configure: Rebuild.
6114 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
6115 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
6116
6117 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6118
6119 * config.in: Regenerate.
6120 * config/msp430/msp430.c (msp430_option_override): Emit an error if
6121 -mtiny-printf is used without GCC being configured with
6122 --enable-newlib-nano-formatted-io.
6123 * config/msp430/msp430.h (LINK_SPEC): Pass
6124 "--wrap puts --wrap printf" when -mtiny-printf is used.
6125 * config/msp430/msp430.opt: Document -mtiny-printf.
6126 * configure: Regenerate.
6127 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
6128 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
6129 --enable-newlib-nano-formatted-io is passed.
6130 * doc/invoke.texi: Document -mtiny-printf.
6131
6132 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6133
6134 * configure: Regenerate.
6135
6136 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6137
6138 * config/msp430/driver-msp430.c
6139 (msp430_get_linker_devices_include_path): New spec function.
6140 * config/msp430/msp430-devices.c (msp430_dirname): New function.
6141 (extract_devices_dir_from_exec_prefix): New function.
6142 (extract_devices_dir_from_collect_gcc): New function.
6143 (msp430_check_env_var_for_devices): New function.
6144 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
6145 (parse_devices_csv): Call msp430_check_env_var_for_devices if
6146 devices.csv was not found using other methods.
6147 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
6148 New prototype.
6149 (msp430_dirname): Likewise.
6150 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
6151 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
6152 msp430_get_linker_devices_include_path.
6153 (TARGET_EXTRA_PRE_INCLUDES): Define.
6154 * doc/invoke.texi: Document new ways of searching for support files.
6155
6156 2019-11-04 Richard Biener <rguenther@suse.de>
6157
6158 PR tree-optimization/92301
6159 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
6160 as required by epilogue generation
6161
6162 2019-11-04 Martin Liska <mliska@suse.cz>
6163
6164 PR ipa/92304
6165 * fold-const.c (operand_compare::hash_operand): Fix field
6166 hashing of CONSTRUCTOR.
6167
6168 2019-11-04 Martin Liska <mliska@suse.cz>
6169
6170 * ggc.h (ggc_delete): New function.
6171 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
6172 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
6173 (ipa_free_all_node_params): Likewise.
6174 * ipa-sra.c (ipa_sra_analysis): Likewise.
6175
6176 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6177
6178 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
6179 set_switch_stmt_execution_predicate, compute_bb_predicates,
6180 will_be_nonconstant_expr_predicate,
6181 phi_result_unknown_predicate,
6182 analyze_function_body): Pass arround params summary.
6183 (ipa_call_context::duplicate_from): New comment;
6184 only duplicate useful values.
6185 (ipa_call_context::equal_to): Only compare useful values.
6186 (remap_edge_summaries): Pass params_summary.
6187 (remap_hint_predicate): Likewise.
6188 (ipa_merge_fn_summary_after_inlining): Likewise.
6189 (inline_read_section): Initialize params summary used flags.
6190 * ipa-predicate.c (predicate::remap_after_inlining): Pass
6191 around param_summary.
6192 (add_condition): Initialized used params summary flags.
6193 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
6194 (inline_param_summary::useless_p): New predicate.
6195 (remap_after_inlining, add_condition): Update prototype
6196 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
6197 move_cost.
6198 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
6199 summaries.
6200 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
6201 (ipa_analyze_virtual_call_uses): Likewise.
6202 (update_indirect_edges_after_inlining): Update param summaries.
6203 (ipa_print_node_params): Print used flags.
6204 (ipa_read_indirect_edge_info): Update param summareis.
6205 * ipa-prop.h (ipa_param_descriptor): Add
6206 used_by_ipa_predicates, used_by_indirect_call
6207 and used_by_polymorphic_call.
6208 (ipa_set_param_used_by_ipa_predicates,
6209 ipa_set_param_used_by_indirect_call,
6210 ipa_set_param_used_by_polymorphic_call,
6211 ipa_is_param_used_by_ipa_predicates,
6212 ipa_is_param_used_by_indirect_call,
6213 ipa_is_param_used_by_polymorphic_call): New inline functions.
6214
6215 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6216
6217 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
6218 member function.
6219 (ipa_call_context::release): Add ALL parameter.
6220 (ipa_call_context::equal_to): New member function.
6221 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
6222 duplicate_form, release, equal_to and exists_p member functoins.
6223 * ipa-inline-analysis.c (node_context_cache_entry): New
6224 class.
6225 (node_context_summary): Likewise.
6226 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
6227 node_context_clear): New static vars.
6228 (initialize_growth_caches): New function.
6229 (free_growth_caches): Also delete node_context_cache; output stats.
6230 (do_estimate_edge_time): Cache contexts.
6231 (reset_node_cache): New function.
6232 * ipa-inline.c (reset_edge_caches): Reset also node cache.
6233 (inline_small_functions): Initialize growth caches.
6234 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
6235 Declare.
6236 * ipa-predicate.h (inline_param_summary::equal_to): New.
6237 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
6238 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
6239 (ipa_agg_jump_function): Implement equal_to member function.
6240
6241 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6242
6243 * ipa-fnsummary.c (inline_read_section): Set vector size
6244 ahead of time.
6245
6246 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6247
6248 * ipa-fnsummary.c (ipa_call_context): New constructor.
6249 (estimate_node_size_and_time): Turn to ...
6250 (ipa_call_context::estimate_size_and_time): ... this one.
6251 (ipa_call_context::release): New.
6252 * ipa-fnsummary.h (ipa_call_context): New class.
6253 (estimate_node_size_and_time): Remove.
6254 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
6255 do_estimate_edge_hints): Update.
6256
6257 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6258
6259 * config.in: Regenerate.
6260 * configure: Regenerate.
6261 * configure.ac: Check for mallinfo.
6262 * ggc-common.c: Include malloc.h if available;
6263 include options.h
6264 (report_heap_memory_use): New functoin.
6265 * ggc-page.c (ggc_grow): Do not print "start".
6266 * ggc.h (report_heap_memory_use): Declare.
6267 * pases.c (execute_one_pass): Report memory after IPA passes.
6268 (ipa_read_summaries_1): Likewise.
6269 (ipa_read_optimization_summaries_1): Likewise.
6270
6271 2019-11-02 Jakub Jelinek <jakub@redhat.com>
6272
6273 * gimplify.h (omp_construct_selector_matches): Change return
6274 type to int, add a new SCORES argument.
6275 * gimplify.c (omp_construct_selector_matches): Likewise. If
6276 SCORES is non-NULL, compute scores of each construct.
6277 * omp-general.h (omp_get_context_selector): Declare.
6278 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
6279 Adjust omp_construct_selector_matches callers.
6280 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
6281 (omp_context_compute_score): New function.
6282 (omp_resolve_declare_variant): Compute scores and decide based on
6283 that.
6284
6285 PR bootstrap/92314
6286 * configure.ac: Don't look for omp-device-properties files from
6287 installed offloading compilers. Instead add tmake_file snippets
6288 for configured offloading targets and use files they generate.
6289 * Makefile.in (install): Don't depend on
6290 install-omp-device-properties.
6291 (install-omp-device-properties): Remove goal.
6292 * config/i386/t-omp-device: New file.
6293 * config/i386/t-intelmic (omp-device-properties): Remove goal.
6294 * config/nvptx/t-omp-device: New file.
6295 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
6296 * configure: Regenerated.
6297
6298 * omp-general.h (omp_context_selector_set_compare): Declare.
6299 * omp-general.c (omp_construct_simd_compare,
6300 omp_context_selector_props_compare, omp_context_selector_set_compare,
6301 omp_context_selector_compare): New functions.
6302 (omp_resolve_declare_variant): Prune variants that are strict subset
6303 of another variant.
6304
6305 2019-11-01 Martin Sebor <msebor@redhat.com>
6306
6307 PR middle-end/91679
6308 PR middle-end/91647
6309 PR middle-end/91463
6310 PR middle-end/92312
6311 * doc/invoke.texi (-Wzero-length-bounds): Document.
6312 * gimple-match-head.c (try_conditional_simplification): Use memcpy
6313 instead of a hand-rolled loop to avoid PR 92323.
6314 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
6315 with initializers.
6316 (vrp_prop::check_mem_ref): Handle declared struct objects.
6317 * tree.c (last_field): New function.
6318 (array_at_struct_end_p): Handle MEM_REF.
6319 (get_initializer_for): New helper.
6320 (component_ref_size): Add argument. Rename locals. Call
6321 get_initializer_for instead of fold_ctor_reference. Correct handling
6322 of flexible array members.
6323 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
6324
6325 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6326
6327 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
6328 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
6329 UNSPEC_VSX_CVSPUXDS): Remove.
6330 (vsx_xvcvspdp): New define_expand, old define_insn split to...
6331 (vsx_xvcvspdp_be): ... this. New. And...
6332 (vsx_xvcvspdp_le): ... this. New.
6333 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
6334 (vsx_xvcv<su>xwdp_be): ... this. New. And...
6335 (vsx_xvcv<su>xwdp_le): ... this. New.
6336 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
6337 (vsx_xvcvsp<su>xds_be): ... this. New. And...
6338 (vsx_xvcvsp<su>xds_le): ... this. New.
6339
6340 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6341
6342 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
6343 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
6344 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
6345 UNSPEC_VSX_XVCVSPSXWS): Remove.
6346 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
6347 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
6348
6349 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6350
6351 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
6352 (UNSPEC_VSX_XVCDPSP): Remove.
6353 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
6354 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
6355
6356 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6357
6358 * hooks.c (hook_tree_tree_bool_null): New.
6359 * hooks.h (hook_tree_tree_bool_null): Declare.
6360 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
6361 (LANG_HOOKS_DECLS): Add it.
6362 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
6363 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
6364 (lower_omp_target): Handle Fortran array with descriptor in
6365 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
6366
6367 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
6368
6369 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6370 Assert that the type we store in abi_vector_types is its own
6371 main variant.
6372 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6373
6374 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6375
6376 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6377 from a CONST_INT address when TARGET_THUMB2.
6378
6379 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6380
6381 * config/arm/arm.md (add_not_cin): New insn.
6382 (add_not_shift_cin): Likewise.
6383
6384 2019-10-31 Martin Liska <mliska@suse.cz>
6385
6386 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6387 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6388 and compare_memory_operand.
6389
6390 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6391
6392 * configure.ac: Compute and substitute omp_device_properties and
6393 omp_device_property_deps.
6394 * Makefile.in (generated_files): Add omp-device-properties.h.
6395 (omp-general.o): Depend on omp-device-properties.h.
6396 (omp_device_properties): New make variable.
6397 (omp-device-properties.h, s-omp-device-properties-h,
6398 install-omp-device-properties): New goals.
6399 (install): Depend on install-omp-device-properties for accelerators.
6400 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6401 * target.h (enum omp_device_kind_arch_isa): New enum.
6402 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6403 documentation.
6404 * omp-general.c: Include omp-device-properties.h.
6405 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6406 colon instead of comma.
6407 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6408 functions.
6409 (omp_context_selector_matches): Implement device set arch/isa
6410 selectors, improve device set kind selector handling.
6411 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6412 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6413 TARGET_SIMD_CLONE_USABLE): Formatting fix.
6414 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6415 ix86_omp_device_kind_arch_isa.
6416 * config/i386/i386-options.c (struct ix86_target_opts): Move type
6417 definition from ix86_target_string to file scope.
6418 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6419 to file scope.
6420 (ix86_omp_device_kind_arch_isa): New function.
6421 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6422 isa_opts definitions to file scope.
6423 * config/i386/t-intelmic (omp-device-properties): New goal.
6424 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6425 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6426 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6427 nvptx_omp_device_kind_arch_isa.
6428 * configure: Regenerate.
6429 * doc/tm.texi: Regenerate.
6430
6431 PR middle-end/92231
6432 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6433 DECL_BUILT_IN in comment. Remove redundant ()s around return
6434 argument.
6435 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6436 before calling fndecl_built_in_p.
6437 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6438 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6439 fndecl_built_in_p on it.
6440
6441 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6442
6443 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6444
6445 2019-10-31 Martin Liska <mliska@suse.cz>
6446
6447 * config/arm/arm.c (arm_get_pcs_model): Remove usage
6448 of cgraph_local_info and use local_info_node instead.
6449 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6450 (bfin_function_ok_for_sibcall): Likewise.
6451 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6452 (must_reload_pic_reg_p): Likewise.
6453
6454 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6455
6456 PR c++/90947
6457 * tree.h (type_initializer_zero_p): Remove.
6458 * tree.c (type_initializer_zero_p): Remove.
6459
6460 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6461
6462 * doc/invoke.texi (-Wshadow, -Wshadow=global
6463 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6464
6465 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6466
6467 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6468 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6469 and 'target exit data'.
6470
6471 2019-10-30 Martin Jambor <mjambor@suse.cz>
6472
6473 ipa/92278
6474 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6475 availability comparison.
6476
6477 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6478
6479 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6480 calls to __mspabi_mpy* functions.
6481 * config/msp430/msp430.md (mulhisi3): New define_expand.
6482 (umulhisi3): New define_expand.
6483 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6484 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6485
6486 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6487
6488 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6489 (msp430_check_plus_not_high_mem): New.
6490 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6491 might be in low memory.
6492 Indicate that a 16-bit absolute address is in lower memory.
6493
6494 2019-10-30 Martin Jambor <mjambor@suse.cz>
6495
6496 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6497 ultimate_alias_target.
6498
6499 2019-10-30 Richard Biener <rguenther@suse.de>
6500
6501 PR tree-optimization/92275
6502 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6503 Copy all loop-closed PHIs.
6504
6505 2019-10-30 Martin Liska <mliska@suse.cz>
6506
6507 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6508 const_tree as function argument.
6509 (func_checker::compare_decl): Likewise.
6510 (func_checker::operand_equal_p): Likewise.
6511 (func_checker::compare_variable_decl): Likewise.
6512 (func_checker::parse_labels): Likewise.
6513 * ipa-icf-gimple.h: Likewise.
6514
6515 2019-10-30 Martin Liska <mliska@suse.cz>
6516
6517 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6518 Do not compare alias sets. It's handled by operand_equal_p.
6519
6520 2019-10-30 Martin Liska <mliska@suse.cz>
6521
6522 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6523 initialize m_compare_polymorphic.
6524 (func_checker::compare_decl): Do not compare polymorphic types.
6525 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6526 * ipa-icf.c (sem_function::equals_private): Do not call
6527 compare_polymorphic_p.
6528
6529 2019-10-30 Martin Liska <mliska@suse.cz>
6530
6531 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6532 compare_operand.
6533 (func_checker::compare_memory_operand): Remove.
6534 (func_checker::compare_cst_or_decl): Remove.
6535 (func_checker::operand_equal_valueize): Do not handle
6536 FIELD_DECL.
6537 (func_checker::compare_gimple_call): Call compare_operand.
6538 (func_checker::compare_gimple_assign): Likewise.
6539 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6540 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6541 * ipa-icf.h (icf_handled_component_p): Remove.
6542
6543 2019-10-30 Martin Liska <mliska@suse.cz>
6544
6545 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6546 (func_checker::compare_cst_or_decl): Remove handling
6547 of FIELD_DECL.
6548 (func_checker::compare_operand): Transform to ...
6549 (func_checker::operand_equal_p): ... this.
6550 * ipa-icf-gimple.h (class func_checker): Add
6551 operand_equal_p and hash_operand.
6552 * ipa-icf.c (sem_function::equals_private): Fix
6553 pushing and popping of cfun.
6554
6555 2019-10-30 Martin Liska <mliska@suse.cz>
6556
6557 * fold-const.c (operand_equal_p): Move to ...
6558 (operand_compare::operand_equal_p): ... here.
6559 (operand_compare::verify_hash_value): New.
6560 (add_expr): Move to ...
6561 (operand_compare::hash_operand): ... here.
6562 * fold-const.h (operand_equal_p): Move to the class.
6563 (class operand_compare): New.
6564 * tree.c (add_expr): Remove.
6565
6566 2019-10-30 Martin Liska <mliska@suse.cz>
6567
6568 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6569 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6570
6571 2019-10-30 Martin Liska <mliska@suse.cz>
6572
6573 PR lto/91393
6574 PR lto/88220
6575 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6576 from a first_clone in order to get proper LTO section
6577 in LTO stream.
6578 (cgraph_node::get_untransformed_body):
6579 Use lto_get_section_data where symtab_node::order
6580 must be provided.
6581 * cgraphclones.c (cgraph_node::find_replacement):
6582 Update also symbol order.
6583 * ipa-fnsummary.c (ipa_fn_summary_read):
6584 Use new function lto_get_summary_section_data.
6585 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6586 * ipa-icf.c (sem_item_optimizer::read_summary):
6587 Likewise.
6588 * ipa-prop.c (ipa_prop_read_jump_functions):
6589 Likewise.
6590 (ipcp_read_transformation_summaries): Likewise.
6591 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6592 * lto-cgraph.c (input_node): Add also order_base.
6593 (input_varpool_node): Likewise.
6594 (input_cgraph_1): Assign the order_base.
6595 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6596 * lto-opts.c (lto_write_options): Pass new argument.
6597 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6598 (lto_get_summary_section_data): New.
6599 (lto_get_raw_section_data): Add order argument.
6600 (lto_create_simple_input_block): Likewise.
6601 * lto-section-out.c (lto_destroy_simple_output_block):
6602 Likewise.
6603 * lto-streamer-in.c (lto_input_toplevel_asms):
6604 Use lto_get_summary_section_data.
6605 (lto_input_mode_table): Likewise.
6606 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6607 (lto_output_toplevel_asms): Pass new argument.
6608 (copy_function_or_variable): Likewise.
6609 (produce_lto_section):Likewise.
6610 (produce_symtab): Likewise.
6611 (lto_write_mode_table): Likewise.
6612 (produce_asm_for_decls): Likewise.
6613 * lto-streamer.c (lto_get_section_name): Concat symbol name
6614 and symbol order.
6615 * lto-streamer.h (lto_get_section_data): Add order argument.
6616 (lto_get_summary_section_data): New.
6617 (lto_get_raw_section_data): Add order argument.
6618 (lto_get_section_name): Likewise.
6619 * varpool.c (varpool_node::get_constructor): Pass order argument.
6620
6621 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6622
6623 PR tree-optimization/92262
6624 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6625 ubase or cbase here.
6626 (remove_unused_ivs): Unshare comp before using it.
6627
6628 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6629
6630 * ipa-prop.c (update_jump_functions_after_inlining):
6631 Watch for missing summaries.
6632
6633 2019-10-30 Richard Biener <rguenther@suse.de>
6634
6635 PR tree-optimization/65930
6636 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6637 chains also allow a leading and trailing conversion.
6638 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6639 intermediate reduction chains.
6640 (vect_analyze_slp_instance): Likewise. Build a SLP
6641 node for a trailing conversion manually.
6642
6643 2019-10-30 Martin Liska <mliska@suse.cz>
6644
6645 * cgraph.c (cgraph_node::local_info): Transform to ...
6646 (cgraph_node::local_info_node): ... this.
6647 (cgraph_node::dump): Remove cgraph_local_info and
6648 put its fields directly into cgraph_node.
6649 (cgraph_node::get_availability): Likewise.
6650 (cgraph_node::make_local): Likewise.
6651 (cgraph_node::verify_node): Likewise.
6652 * cgraph.h (struct GTY): Likewise.
6653 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6654 (duplicate_thunk_for_node): Likewise.
6655 (cgraph_node::create_clone): Likewise.
6656 (cgraph_node::create_virtual_clone): Likewise.
6657 (cgraph_node::create_version_clone): Likewise.
6658 * cgraphunit.c (cgraph_node::reset): Likewise.
6659 (cgraph_node::finalize_function): Likewise.
6660 (cgraph_node::add_new_function): Likewise.
6661 (analyze_functions): Likewise.
6662 * combine.c (setup_incoming_promotions): Likewise.
6663 * config/i386/i386.c (ix86_function_regparm): Likewise.
6664 (ix86_function_sseregparm): Likewise.
6665 (init_cumulative_args): Likewise.
6666 * ipa-cp.c (determine_versionability): Likewise.
6667 (count_callers): Likewise.
6668 (set_single_call_flag): Likewise.
6669 (initialize_node_lattices): Likewise.
6670 (estimate_local_effects): Likewise.
6671 (create_specialized_node): Likewise.
6672 (identify_dead_nodes): Likewise.
6673 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6674 (ipa_fn_summary_generate): Likewise.
6675 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6676 (process_hsa_functions): Likewise.
6677 * ipa-icf.c (set_local): Likewise.
6678 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6679 * ipa-inline.c (speculation_useful_p): Likewise.
6680 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6681 (ipa_profile): Likewise.
6682 * ipa-split.c (split_function): Likewise.
6683 (execute_split_functions): Likewise.
6684 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6685 (ipa_sra_ipa_function_checks): Likewise.
6686 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6687 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6688 * lto-cgraph.c (lto_output_node): Likewise.
6689 (input_overwrite_node): Likewise.
6690 * multiple_target.c (expand_target_clones): Likewise.
6691 * omp-simd-clone.c (simd_clone_create): Likewise.
6692 * trans-mem.c (expand_call_tm): Likewise.
6693 (ipa_tm_mayenterirr_function): Likewise.
6694 (ipa_tm_diagnose_tm_safe): Likewise.
6695 (ipa_tm_diagnose_transaction): Likewise.
6696 (ipa_tm_create_version): Likewise.
6697 (ipa_tm_transform_calls_redirect): Likewise.
6698 (ipa_tm_execute): Likewise.
6699 * tree-inline.c (expand_call_inline): Likewise.
6700
6701 2019-10-29 Martin Liska <mliska@suse.cz>
6702
6703 * symbol-summary.h (function_summary): Pass memory location
6704 to underlaying hash_map (or vec).
6705 (V>::fast_function_summary): Likewise.
6706
6707 2019-10-29 Martin Liska <mliska@suse.cz>
6708
6709 * ggc.h (ggc_alloc_no_dtor): New function.
6710 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6711 destructor and ggc_free.
6712 (ipa_free_size_summary): Call delete instead
6713 of release.
6714 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6715 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6716 (ipa_free_all_edge_args): Call destructor and ggc_free.
6717 (ipa_free_all_node_params): Likewise.
6718 (ipcp_free_transformation_sum): Likewise.
6719 * ipa-prop.h (ipa_check_create_node_params):
6720 Call new ggc_alloc_no_dtor.
6721 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6722 (ipa_sra_analysis): Call destructor and ggc_free.
6723 Replace release with delete operator.
6724 * symbol-summary.h (release): Remove ..
6725 (V>::~fast_function_summary): and move logic here.
6726 Likewise for other classes.
6727
6728 2019-10-29 Richard Biener <rguenther@suse.de>
6729
6730 PR tree-optimization/92260
6731 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6732 lane-reducing ops.
6733
6734 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6735
6736 PR tree-optimization/88915
6737 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6738 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6739 and make the valueize function pointer also take a void pointer.
6740 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6741 around vn_valueize, to call it without a context.
6742 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6743 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6744 (~_loop_vec_info): Release epilogue_vinfos.
6745 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6746 number of iterations of epilogue.
6747 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6748 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6749 versioning threshold needed for main loop.
6750 (vect_analyze_loop): Likewise.
6751 (find_in_mapping): New helper function.
6752 (update_epilogue_loop_vinfo): New function.
6753 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6754 on main loop and call update_epilogue_loop_vinfo to update it.
6755 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6756 stmts on loop preheader edge.
6757 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6758 we decided to vectorize epilogues. Update epilogues NITERS and
6759 construct ADVANCE to update epilogues data references where needed.
6760 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6761 (vect_do_peeling, vect_update_inits_of_drs,
6762 determine_peel_for_niter, vect_analyze_loop): Add or update
6763 declarations.
6764 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6765 created loop_vec_info's for epilogues when available. Otherwise analyse
6766 epilogue separately.
6767
6768 2019-10-29 Richard Biener <rguenther@suse.de>
6769
6770 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6771 example.
6772
6773 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6774
6775 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6776 index for the COND_EXPR from stmt_info rather than reduc_info.
6777
6778 2019-10-29 Richard Biener <rguenther@suse.de>
6779
6780 PR tree-optimization/65930
6781 * tree-vect-loop.c (check_reduction_path): Relax single-use
6782 check allowing out-of-loop uses.
6783 (vect_is_simple_reduction): SLP reduction chains cannot have
6784 intermediate stmts used outside of the loop.
6785 (vect_create_epilog_for_reduction): The adjustment might need
6786 to be converted.
6787 (vectorizable_reduction): Annotate live stmts of the reduction
6788 chain with STMT_VINFO_REDUC_DEF.
6789 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6790
6791 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6792
6793 * calls.c (pass_by_reference): Leave the target to decide whether
6794 POLY_INT_CST-sized arguments should be passed by value or reference,
6795 rather than forcing them to be passed by reference.
6796 (must_pass_in_stack_var_size): Likewise.
6797 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6798 V31_REGNUM to P15_REGNUM.
6799 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6800 Take an extra "silent_p" parameter, defaulting to false.
6801 (aarch64_sve::svbool_type_p): Declare.
6802 (aarch64_sve::nvectors_if_data_type): Likewise.
6803 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6804 (aarch64_frame::reg_offset): Turn into poly_int64s.
6805 (aarch64_frame::save_regs_size): Likewise.
6806 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6807 (aarch64_frame::sve_callee_adjust): Likewise.
6808 (aarch64_frame::spare_reg_reg): Likewise.
6809 (ARM_PCS_SVE): New arm_pcs value.
6810 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6811 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6812 (CUMULATIVE_ARGS::silent_p): Likewise.
6813 (BITS_PER_SVE_PRED): New macro.
6814 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6815 function. Reject aarch64_vector_pcs attributes on SVE functions.
6816 (aarch64_attribute_table): Use the above handler.
6817 (aarch64_sve_abi): New function.
6818 (aarch64_sve_argument_p): Likewise.
6819 (aarch64_returns_value_in_sve_regs_p): Likewise.
6820 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6821 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6822 descriptor for them.
6823 (aarch64_simd_decl_p): Delete.
6824 (aarch64_emit_cfi_for_reg_p): New function.
6825 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6826 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6827 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6828 as partly clobbered for the SVE PCS.
6829 (aarch64_function_ok_for_sibcall): Check whether the two functions
6830 use the same ABI, rather than checking specifically for whether
6831 they're aarch64_vector_pcs functions.
6832 (aarch64_pass_by_reference): Raise an error for attempts to pass
6833 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6834 if there are not enough free registers left, or if the argument is
6835 variadic.
6836 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6837 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6838 tuples in memory.
6839 (aarch64_layout_arg): Take a function_arg_info rather than
6840 individual properties. Handle SVE predicates, vectors and tuples.
6841 Raise an error if they are passed to unprototyped functions.
6842 (aarch64_function_arg): If the silent_p flag is set, suppress the
6843 usual error about using float registers without TARGET_FLOAT.
6844 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6845 it in the cumulative_args structure. Initialize aapcs_nprn and
6846 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6847 error about using float registers without TARGET_FLOAT.
6848 If the silent_p flag is not set, also raise an error about
6849 using SVE functions when SVE is disabled.
6850 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6851 and call it for SVE functions too. Update aapcs_nprn similarly
6852 to the other register counts.
6853 (aarch64_layout_frame): If a big-endian function needs to save
6854 and restore Z8-Z15, search for a spare predicate that it can use.
6855 Store SVE predicates at the bottom of the register save area,
6856 followed by SVE vectors, then followed by the normal slots.
6857 Keep pointing the hard frame pointer at the base of the normal slots,
6858 above the SVE vectors. Update the various frame creation and
6859 tear-down strategies for the new layout, initializing the new
6860 sve_callee_adjust field. Add an additional layout for frames
6861 whose saved registers are all SVE registers.
6862 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6863 (aarch64_return_address_signing_enabled): Likewise.
6864 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6865 aarch64_reg_save_mode.
6866 (aarch64_adjust_sve_callee_save_base): New function.
6867 (aarch64_add_cfa_expression): Move earlier in file. Take the
6868 saved register as an rtx rather than a register number and use
6869 its mode for the MEM slot.
6870 (aarch64_save_callee_saves): Remove the mode argument and instead
6871 use aarch64_reg_save_mode to get the mode of each save slot.
6872 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6873 offsets. Allow GP offsets to be saved at a VL-based offset from
6874 the stack, handling this case using the frame pointer if available
6875 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6876 big-endian SVE functions; use normal moves for other SVE saves.
6877 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6878 returns true. Add explicit CFA notes when not storing via the
6879 stack pointer. Do not try to pair SVE saves.
6880 (aarch64_restore_callee_saves): Cope with poly_int64 register
6881 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6882 use normal moves for other SVE restores. Only add CFA restore notes
6883 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6884 SVE restores.
6885 (aarch64_get_separate_components): Always keep the first SVE save
6886 in the prologue if we need to use it as a stack probe. Don't allow
6887 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6888 Likewise the spare predicate register that they need. Update the
6889 offset calculation to account for the SVE save area. Use the
6890 appropriate range check for SVE LDR and STR instructions.
6891 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6892 (aarch64_process_components): Likewise. Update the offset
6893 calculation to account for the SVE save area. Only mark the
6894 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6895 Do not try to pair SVE saves.
6896 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6897 reg_offsets. When handling the final allocation, expect the
6898 first SVE register save to be part of the initial allocation
6899 and for it to act as a probe at SP. Account for the SVE callee
6900 save area in the dump information.
6901 (aarch64_expand_prologue): Update the frame diagram. Fold the
6902 SVE callee allocation into the initial allocation if stack clash
6903 protection is enabled. Use new variables to track the offset
6904 of the frame chain (and hard frame pointer) from the current
6905 stack pointer, and likewise the offset of the bottom of the
6906 register save area. Update calls to aarch64_save_callee_saves
6907 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6908 saving the FP&SIMD registers. Save the predicate registers.
6909 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6910 into account when setting the stack pointer from the frame pointer,
6911 and when deciding whether we can inherit the initial adjustment
6912 amount from the prologue. Restore the predicate registers after
6913 the vector registers, then apply sve_callee_adjust, then restore
6914 the general registers.
6915 (aarch64_secondary_reload): Don't use secondary SVE reloads
6916 for VNx16BImode.
6917 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6918 (aarch64_short_vector_p): Return false for SVE types.
6919 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6920 at the start of the function. Return false for SVE types.
6921 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6922 functions too.
6923 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6924 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6925 to big-endian targets for bytewise moves.
6926 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6927
6928 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6929 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6930 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6931
6932 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6933 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6934 aarch64-sve-builtins-base.o to extra_objs. Add
6935 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6936 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6937 (aarch64-sve-builtins-shapes.o): Likewise.
6938 (aarch64-sve-builtins-base.o): New rules.
6939 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6940 (aarch64_resolve_overloaded_builtin): Likewise.
6941 (aarch64_check_builtin_call): Likewise.
6942 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6943 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6944 pragma.
6945 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6946 (aarch64_svprfop): New enum.
6947 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6948 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6949 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6950 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6951 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6952 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6953 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6954 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6955 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6956 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6957 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6958 (aarch64_sve::mangle_builtin_type): Likewise.
6959 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6960 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6961 (aarch64_sve::expand_builtin): Likewise.
6962 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6963 (aarch64_sve_int_mode): Likewise.
6964 (aarch64_ptrue_all_mode): New function.
6965 (aarch64_convert_sve_data_to_pred): Make public.
6966 (svprfop_token): New function.
6967 (aarch64_output_sve_prefetch): Likewise.
6968 (aarch64_fold_sve_cnt_pat): Likewise.
6969 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6970 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6971 instead of gen_while_ult.
6972 (aarch64_replace_reg_mode): Make public.
6973 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6974 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6975 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6976 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6977 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6978 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6979 (aarch64_sve_ptrue_svpattern_p): Likewise.
6980 (aarch64_sve_pred_valid_immediate): Check
6981 aarch64_sve_ptrue_svpattern_p.
6982 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6983 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6984 functions.
6985 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6986 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6987 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6988 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6989 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6990 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6991 New unspecs.
6992 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6993 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6994 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6995 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6996 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6997 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6998 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6999 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
7000 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
7001 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
7002 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
7003 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
7004 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
7005 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
7006 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
7007 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
7008 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
7009 (Vesize): Handle partial vector modes.
7010 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
7011 mode attributes.
7012 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
7013 iterators.
7014 (s, paired_extend, inc_dec): New code attributes.
7015 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
7016 (SVE_INT_UNARY): Add UNSPEC_RBIT.
7017 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
7018 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
7019 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
7020 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7021 UNSPEC_COND_FMULX.
7022 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
7023 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
7024 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7025 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
7026 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
7027 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
7028 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
7029 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
7030 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
7031 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
7032 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
7033 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
7034 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
7035 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
7036 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
7037 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
7038 UNSPEC_COND_FSCALE.
7039 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7040 (binqops_op, binqops_op_rev, last_op): New int attributes.
7041 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
7042 (fn, ab): New int attributes.
7043 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
7044 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
7045 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
7046 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
7047 UNSPEC_RBIT.
7048 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
7049 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
7050 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
7051 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
7052 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7053 UNSPEC_COND_FMULX.
7054 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
7055 (brk_reg_con, brk_reg_opno): New int attributes.
7056 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
7057 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
7058 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
7059 UNSPEC_COND_FMIN.
7060 (max_elem_bits): New int attribute.
7061 (min_elem_bits): Handle UNSPEC_RBIT.
7062 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
7063 TRUNCATE as well as SUBREG.
7064 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
7065 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
7066 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
7067 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
7068 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
7069 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
7070 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
7071 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
7072 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
7073 (aarch64_gather_scale_operand_h): New predicates.
7074 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
7075 (vgd, vgh, vgw, vsQ, vsS): New constraints.
7076 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
7077 (*aarch64_sve_reinterpret<mode>): Allow any source register
7078 instead of requiring an exact match.
7079 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
7080 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
7081 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
7082 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
7083 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
7084 (aarch64_update_ffrt): New patterns.
7085 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7086 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7087 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7088 (@aarch64_ld<fn>f1<mode>): New patterns.
7089 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7090 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7091 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7092 (@aarch64_ldnt1<mode>): New patterns.
7093 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7094 the scalar part of the address.
7095 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
7096 scalar part of the addresse and add an alternative for handling
7097 nonzero offsets.
7098 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7099 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
7100 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7101 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7102 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7103 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7104 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
7105 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
7106 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7107 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7108 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7109 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7110 (@aarch64_sve_prefetch<mode>): New patterns.
7111 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
7112 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
7113 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
7114 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
7115 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
7116 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7117 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7118 (@aarch64_stnt1<mode>): New patterns.
7119 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7120 the scalar part of the address.
7121 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
7122 the scalar part of the addresse and add an alternative for handling
7123 nonzero offsets.
7124 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7125 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
7126 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7127 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7128 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
7129 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
7130 New patterns.
7131 (vec_duplicate<mode>): Use QI as the mode of the input operand.
7132 (extract_last_<mode>): Generalize to...
7133 (@extract_<LAST:last_op>_<mode>): ...this.
7134 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
7135 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
7136 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
7137 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
7138 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
7139 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
7140 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
7141 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
7142 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
7143 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
7144 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
7145 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
7146 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
7147 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
7148 (*aarch64_adr_uxtw_unspec): Likewise.
7149 (*aarch64_adr_uxtw): Rename to...
7150 (*aarch64_adr_uxtw_and): ...this.
7151 (@aarch64_adr<mode>_shift): New expander.
7152 (*aarch64_adr_shift_sxtw): New pattern.
7153 (aarch64_<su>abd<mode>_3): Rename to...
7154 (@aarch64_pred_<su>abd<mode>): ...this.
7155 (<su>abd<mode>_3): Update accordingly.
7156 (@aarch64_cond_<su>abd<mode>): New expander.
7157 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
7158 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
7159 (*<su>mul<mode>3_highpart): Rename to...
7160 (@aarch64_pred_<optab><mode>): ...this.
7161 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
7162 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
7163 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
7164 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
7165 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
7166 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
7167 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
7168 (*v<ASHIFT:optab><mode>3): Rename to...
7169 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
7170 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
7171 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
7172 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
7173 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
7174 (@cond_asrd<mode>): New expander.
7175 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
7176 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
7177 (*sdiv_pow2<mode>3): Delete.
7178 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
7179 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
7180 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
7181 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
7182 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
7183 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
7184 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
7185 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
7186 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
7187 (*add<SVE_F:mode>3): Rename to...
7188 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
7189 for SVE_STRICT_GP.
7190 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
7191 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
7192 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
7193 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
7194 (*sub<SVE_F:mode>3): Rename to...
7195 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
7196 for SVE_STRICT_GP.
7197 (@aarch64_pred_abd<SVE_F:mode>): New expander.
7198 (*fabd<SVE_F:mode>3): Rename to...
7199 (*aarch64_pred_abd<SVE_F:mode>): ...this.
7200 (@aarch64_cond_abd<SVE_F:mode>): New expander.
7201 (*mul<SVE_F:mode>3): Rename to...
7202 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
7203 for SVE_STRICT_GP.
7204 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
7205 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
7206 to...
7207 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
7208 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
7209 (*<nlogical><PRED_ALL:mode>3): Rename to...
7210 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
7211 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
7212 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
7213 (*<logical_nn><PRED_ALL:mode>3): Rename to...
7214 (aarch64_pred_<logical_nn><mode>_z): ...this.
7215 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
7216 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
7217 (*fma<SVE_I:mode>4): Rename to...
7218 (@aarch64_pred_fma<SVE_I:mode>): ...this.
7219 (*fnma<SVE_I:mode>4): Rename to...
7220 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
7221 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
7222 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
7223 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
7224 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
7225 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
7226 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
7227 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
7228 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
7229 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
7230 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
7231 (@aarch64_sve_tmad<mode>): Likewise.
7232 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
7233 (*aarch64_sel_dup<mode>): Rename to...
7234 (@aarch64_sel_dup<mode>): ...this.
7235 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
7236 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
7237 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
7238 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
7239 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
7240 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
7241 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
7242 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
7243 (*fcm<cmp_op><mode>): Rename to...
7244 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
7245 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7246 (*fcmuo<mode>): Rename to...
7247 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
7248 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7249 (@aarch64_pred_fac<cmp_op><mode>): New expander.
7250 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
7251 (fold_extract_last_<mode>): Generalize to...
7252 (@fold_extract_<last_op>_<mode>): ...this.
7253 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
7254 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
7255 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
7256 DImode result explicit.
7257 (reduc_plus_scal_<mode>): Update accordingly.
7258 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
7259 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
7260 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
7261 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
7262 (*aarch64_sve_tbl<mode>): Rename to...
7263 (@aarch64_sve_tbl<mode>): ...this.
7264 (@aarch64_sve_compact<mode>): New pattern.
7265 (*aarch64_sve_dup_lane<mode>): Rename to...
7266 (@aarch64_sve_dup_lane<mode>): ...this.
7267 (@aarch64_sve_dupq_lane<mode>): New pattern.
7268 (@aarch64_sve_splice<mode>): Likewise.
7269 (aarch64_sve_<perm_insn><mode>): Rename to...
7270 (@aarch64_sve_<perm_insn><mode>): ...this.
7271 (*aarch64_sve_ext<mode>): Rename to...
7272 (@aarch64_sve_ext<mode>): ...this.
7273 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
7274 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
7275 to...
7276 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
7277 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7278 Rename to...
7279 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7280 ...this.
7281 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
7282 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
7283 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
7284 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
7285 to...
7286 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
7287 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
7288 a "@" marker.
7289 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
7290 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
7291 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
7292 pattern.
7293 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
7294 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
7295 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
7296 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
7297 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
7298 "@" marker.
7299 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
7300 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
7301 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
7302 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
7303 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
7304 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
7305 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
7306 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
7307 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
7308 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
7309 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
7310 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
7311 (aarch64_sve_cnt_pat): Likewise.
7312 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7313 (*aarch64_sve_incsi_pat): Likewise.
7314 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7315 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7316 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7317 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7318 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7319 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7320 (*aarch64_sve_decsi_pat): Likewise.
7321 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7322 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7323 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7324 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7325 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7326 (@aarch64_pred_cntp<mode>): Likewise.
7327 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7328 New expander.
7329 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7330 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7331 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7332 New expander.
7333 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7334 New pattern.
7335 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
7336 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7337 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
7338 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7339 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
7340 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7341 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7342 New expander.
7343 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7344 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7345 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7346 New expander.
7347 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7348 New pattern.
7349 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
7350 expander.
7351 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7352 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
7353 expander.
7354 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7355 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
7356 expander.
7357 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7358 * config/aarch64/arm_sve.h: New file.
7359 * config/aarch64/aarch64-sve-builtins.h: Likewise.
7360 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
7361 * config/aarch64/aarch64-sve-builtins.def: Likewise.
7362 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
7363 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
7364 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
7365 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
7366 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
7367 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
7368
7369 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7370
7371 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7372 New pattern.
7373 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7374 SVE modes.
7375
7376 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7377
7378 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7379 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7380 FFRT_REGNUM + 1.
7381 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7382 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7383 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7384 (aarch64_hard_regno_nregs): Handle the new register classes.
7385 (aarch64_hard_regno_mode_ok): Likewise.
7386 (aarch64_regno_regclass): Likewise.
7387 (aarch64_class_max_nregs): Likewise.
7388 (aarch64_register_move_cost): Likewise.
7389 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7390 as general register_operands.
7391
7392 2019-10-29 Martin Liska <mliska@suse.cz>
7393
7394 * ggc-common.c: One can't subtract unsigned types
7395 in compare function.
7396
7397 2019-10-29 Martin Liska <mliska@suse.cz>
7398
7399 * cgraphunit.c (symbol_table::compile): Pass
7400 title as dump_memory_report argument.
7401 * toplev.c (dump_memory_report): New argument.
7402 (finalize): Pass new argument.
7403 * toplev.h (dump_memory_report): Add argument.
7404
7405 2019-10-29 Martin Liska <mliska@suse.cz>
7406
7407 * ggc-common.c: Move Leak to the first column.
7408
7409 2019-10-29 Martin Liska <mliska@suse.cz>
7410
7411 * cgraphunit.c (symbol_table::compile): Remove argument
7412 for dump_memory_report.
7413 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7414 (compare_final): Remove in order to make report
7415 better readable.
7416 * ggc.h (dump_ggc_loc_statistics): Remove argument.
7417 * mem-stats.h (mem_alloc_description::get_list):
7418 Do not pass cmp.
7419 (mem_alloc_description::dump): Likewise here.
7420 * toplev.c (dump_memory_report): Remove final
7421 argument.
7422 (finalize): Likewise.
7423 * toplev.h (dump_memory_report): Remove argument.
7424
7425 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7426
7427 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7428 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7429 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7430 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7431 accept "const".
7432
7433 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7434
7435 * coretypes.h (string_int_pair): New typedef.
7436 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7437 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7438 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7439
7440 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7441
7442 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7443 (simulate_builtin_function_decl): Declare.
7444 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7445 (LANG_HOOKS_INITIALIZER): Include it.
7446 * langhooks.c (add_builtin_function_common): Rename to...
7447 (build_builtin_function): ...this. Add a location parameter and use
7448 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7449 the decl instead.
7450 (add_builtin_function): Update accordingly, passing the returned
7451 decl to the lang hook.
7452 (add_builtin_function_ext_scope): Likewise
7453 (simulate_builtin_function_decl): New function.
7454
7455 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7456
7457 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7458 example, use actual names of supported offload targets.
7459
7460 PR target/92258
7461 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7462
7463 2019-10-28 Martin Sebor <msebor@redhat.com>
7464
7465 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7466 (handle_store): Pass argument to get_addr_stridx.
7467
7468 2019-10-28 Martin Sebor <msebor@redhat.com>
7469
7470 PR tree-optimization/92226
7471 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7472 the offset is in the open range outlined by SI's length.
7473
7474 2019-10-28 Martin Sebor <msebor@redhat.com>
7475
7476 PR c/66970
7477 * doc/cpp.texi (__has_builtin): Document.
7478 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7479
7480 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7481
7482 PR target/82981
7483 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7484 doubleword and low doubleword result of multiplication on
7485 MIPS64R6.
7486
7487 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7488 pure qualifier to the built-in.
7489 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7490 built-ins.
7491 (struct mips_builtin_description): Add is_pure flag.
7492 (mips_init_builtins): Mark built-in as pure if the flag in the
7493 corresponding mips_builtin_description struct is set.
7494
7495 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7496 alternative which covers the floating-point input value. Also
7497 forbid the split of insert.d pattern for floating-point values.
7498
7499 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7500
7501 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7502 * config/riscv/riscv-sr.c: New file.
7503 * config/riscv/riscv.c (riscv_reorg): New function.
7504 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7505 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7506 (riscv_remove_unneeded_save_restore_calls): Declare.
7507 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7508
7509 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7510
7511 PR tree-optimization/92163
7512 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7513 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7514 before calling bitmap_set_bit.
7515 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7516 delete_dead_or_redundant_assignment.
7517 (dse_dom_walker::dse_optimize_stmt): Likewise.
7518 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7519
7520 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7521
7522 PR middle-end/91272
7523 * tree-vect-stmts.c (vectorizable_condition): Support
7524 EXTRACT_LAST_REDUCTION with fully-masked loops.
7525
7526 2019-10-28 Richard Biener <rguenther@suse.de>
7527
7528 PR tree-optimization/92252
7529 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7530 STMT_VINFO_REDUC_IDX when swapping operands.
7531
7532 2019-10-28 Richard Biener <rguenther@suse.de>
7533
7534 PR tree-optimization/92241
7535 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7536 we failed to update the reduction index do not use the pattern
7537 stmts for the reduction chain.
7538 (vectorizable_reduction): When the reduction chain is corrupt,
7539 fail.
7540 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7541 fail to update the reduction chain.
7542
7543 2019-10-28 Richard Biener <rguenther@suse.de>
7544
7545 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7546 STMT_VINFO_REDUC_IDX from the actual stmt.
7547 (vect_transform_reduction): Likewise.
7548 (vectorizable_reduction): Compute the reduction chain length,
7549 do not recompute the reduction operand index. Remove no longer
7550 necessary restriction for condition reduction chains.
7551
7552 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7553
7554 PR target/92225
7555 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7556 condition for V2DImode.
7557
7558 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7559
7560 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7561 Remove %k operand modifier.
7562 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7563
7564 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7565
7566 PR rtl-optimization/92007
7567 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7568 call it after reload if hot/cold partitioning has been done.
7569 (class pass_postreload_jump): Rename to
7570 pass_jump_after_combine.
7571 (make_pass_postreload_jump): Rename to
7572 make_pass_jump_after_combine.
7573 * passes.def(pass_postreload_jump): Move before reload, rename
7574 to pass_jump_after_combine.
7575 * tree-pass.h (make_pass_postreload_jump): Rename to
7576 make_pass_jump_after_combine.
7577
7578 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7579
7580 PR ipa/92242
7581 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7582 for missing EDGE_REF
7583 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7584
7585 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7586
7587 PR tree-optimization/88760
7588 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7589 Enable -funroll-loops for -O2 and above.
7590 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7591 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7592 do not turn on web and rngreg implicitly, if the unroller is not
7593 explicitly enabled.
7594
7595 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7596
7597 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7598 jump functions.
7599
7600 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7601
7602 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7603 * cgraph.h (cgraph_node::rtl_info): Likewise.
7604
7605 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7606
7607 * ipa-cp.c (propagate_constants_across_call): If args are not available
7608 just drop everything to varying.
7609 (find_aggregate_values_for_callers_subset): Watch for missing
7610 edge summary.
7611 (find_more_scalar_values_for_callers_subs): Likewise.
7612 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7613 update_jump_functions_after_inlining, propagate_controlled_uses):
7614 Watch for missing summaries.
7615 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7616 is finished.
7617 (ipa_write_node_info): Watch for missing summaries.
7618 (ipa_read_edge_info): Create new ref.
7619 (ipa_edge_args_sum_t): Add remove.
7620 (IPA_EDGE_REF_GET_CREATE): New macro.
7621 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7622 edge summary.
7623 (remap_edge_change_prob): Likewise.
7624
7625 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7626
7627 * ipa-inline-transform.c (inline_call): update function summaries
7628 after expanidng thunk.
7629
7630 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7631
7632 * ipa-icf.c (sem_function::merge): Update function summaries.
7633 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7634
7635 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7636
7637 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7638 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7639 operand already has scalar mode.
7640 (iptr): Remove SF/DF.
7641
7642 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7643
7644 PR target/91289
7645 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7646 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7647 this.
7648
7649 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7650
7651 * config/i386/sse.md
7652 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7653 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7654 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7655 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7656 <sse>_vmmaskcmp<mode>3):
7657 Change predicates from vector_operand to nonimmediate_operand,
7658 constraints xBm to xm, since scalar operations don't need
7659 memory address alignment.
7660 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7661 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7662 round_saeonly_nimm_predicate with
7663 round_saeonly_nimm_scalar_predicate.
7664 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7665 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7666 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7667 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7668 avx512f_vmfmadd_<mode>_mask3<round_name>,
7669 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7670 *avx512f_vmfmsub_<mode>_mask<round_name>,
7671 avx512f_vmfmsub_<mode>_mask3<round_name>,
7672 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7673 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7674 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7675 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7676 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7677 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7678 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7679 cvtusi2<ssescalarmodesuffix>32<round_name>,
7680 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7681 round_nimm_predicate with round_nimm_scalr_predicate.
7682 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7683 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7684 avx512er_vmrcp28<mode><round_saeonly_name>,
7685 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7686 ): Replace round_saeonly_nimm_predicate with
7687 round_saeonly_nimm_scalar_predicate.
7688 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7689 vector_operand with nonimmediate_operand.
7690 * config/i386/subst.md (round_scalar_nimm_predicate,
7691 round_saeonly_scalar_nimm_predicate): Replace
7692 vector_operand with nonimmediate_operand.
7693
7694 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7695
7696 PR target/89071
7697 * config/i386/i386.md (*rcpsf2_sse): Add
7698 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7699 (*rsqrtsf2_sse): Ditto.
7700 (*sqrt<mode>2_sse): Ditto.
7701 (sse4_1_round<mode>2): separate constraint vm, add
7702 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7703 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7704 by pass rpad.
7705 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7706 Ditto.
7707 (*sse_vmrsqrtv4sf2): Ditto.
7708 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7709 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7710 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7711 <iptr> pointer size modifier since vround support memory operand.
7712
7713 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7714
7715 PR target/85969
7716 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7717 static function.
7718
7719 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7720 Tobias Burnus <tobias@codesourcery.com>
7721
7722 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7723 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7724 common block decls.
7725
7726 2019-10-25 Richard Biener <rguenther@suse.de>
7727
7728 PR tree-optimization/92222
7729 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7730 (_slp_oprnd_info::second_pattern): Likewise.
7731 (_slp_oprnd_info::any_pattern): New.
7732 (vect_create_oprnd_info): Adjust.
7733 (vect_get_and_check_slp_defs): Compute whether any stmt is
7734 in a pattern.
7735 (vect_build_slp_tree_2): Avoid building up a node from scalars
7736 if any of the operand defs, not just the first, is in a pattern.
7737
7738 2019-10-25 Richard Biener <rguenther@suse.de>
7739
7740 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7741 swapping if we actually have to modify the IL on a shared stmt.
7742 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7743 because we no longer modify the IL.
7744
7745 2019-10-25 Martin Liska <mliska@suse.cz>
7746
7747 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7748
7749 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7750
7751 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7752 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7753 handled by vect_transform_reduction. Allow fully-masked loops
7754 to be used with reduction chains.
7755 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7756 operations in fully-masked loops.
7757 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7758 operations in fully-masked loops.
7759
7760 2019-10-25 Richard Biener <rguenther@suse.de>
7761
7762 * tree-vect-loop.c (vectorizable_reduction): Verify
7763 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7764 correctly.
7765 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7766 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7767 stmts.
7768
7769 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7770
7771 * gimplify.h (omp_construct_selector_matches): Declare.
7772 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7773 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7774 called function if needed for flag_openmp.
7775 (gimplify_scan_omp_clauses): Set ctx->code.
7776 (omp_construct_selector_matches): New function.
7777 * omp-general.h (omp_constructor_traits_to_codes,
7778 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7779 * omp-general.c (omp_constructor_traits_to_codes,
7780 omp_context_selector_matches, omp_resolve_declare_variant): New
7781 functions.
7782
7783 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7784 literal.
7785 * config/rx/rx.c (rx_print_operand): Likewise.
7786 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7787 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7788 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7789 Likewise.
7790 * genemit.c (emit_c_code): Likewise.
7791 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7792
7793 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7794
7795 * symbols-summary.h (fast_function_summary<T *, V>::release,
7796 fast_call_summary<T *, V>::release): Free m_vector.
7797
7798 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7799
7800 * cgraphunit.c (symbol_table::process_new_functions): Call
7801 ipa_free_size_summary.
7802 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7803 (devirtualization_time_bonus): Update.
7804 (ipcp_propagate_stage): Update.
7805 * ipa-fnsummary.c (ipa_size_summaries): New.
7806 (ipa_fn_summary_alloc): Alloc size summary.
7807 (dump_ipa_call_summary): Update.
7808 (ipa_dump_fn_summary): Update.
7809 (analyze_function_body): Update.
7810 (compute_fn_summary): Likewise.
7811 (ipa_get_stack_frame_offset): New function.
7812 (inline_update_callee_summaries): Do not update frame offsets.
7813 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7814 remove call and function summary.
7815 (ipa_update_overall_fn_summary): Update.
7816 (inline_read_section): Update.
7817 (ipa_fn_summary_write): Update.
7818 (ipa_free_fn_summary): Do not remove summaries.
7819 (ipa_free_size_summary): New.
7820 (release summary pass): Also run at WPA.
7821 * ipa-fnsummary.h (ipa_size_summary): Declare.
7822 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7823 estimated_self_stack_size.
7824 (ipa_size_summary_t): New type.
7825 (ipa_size_summaries): Declare.
7826 (ipa_free_size_summary): Declare.
7827 (ipa_get_stack_frame_offset): Declare.
7828 * ipa-icf.c (sem_function::merge): Update.
7829 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7830 (estimate_growth): Update.
7831 (growth_likely_positive): Update.
7832 (clone_inlined_nodes): Update.
7833 (inline_call): Update.
7834 * ipa-inline.c (caller_growth_limits): Update.
7835 (edge_badness): Update.
7836 (recursive_inlining): Update.
7837 (inline_small_functions): Update.
7838 (inline_to_all_callers_1): Update.
7839 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7840
7841 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7842
7843 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7844 (uavg<mode>3_ceil): ... This.
7845 (altivec_vavgs<VI_char>): Rename to...
7846 (avg<mode>3_ceil): ... This.
7847 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7848 VAVGUW, VAVGSW): Adjust.
7849
7850 2019-10-24 Nathan Sidwell <nathan@acm.org>
7851
7852 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7853
7854 2019-10-24 Martin Liska <mliska@suse.cz>
7855
7856 * symbol-summary.h (gt_pch_nx): Mark all functions
7857 with gcc_unreachable as we do not expect to be called.
7858
7859 2019-10-24 Richard Biener <rguenther@suse.de>
7860
7861 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7862 chains try harder with operand swapping and instead of
7863 putting a shifted chain into the reduction operands put
7864 a repetition of the final reduction op there as if we'd
7865 reassociate the expression.
7866
7867 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7868
7869 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7870 statics_not_read and statics_not_written to statics_read and
7871 statics_written respectively.
7872 (no_module_statics): New static var.
7873 (ipa_reference_get_not_read_global): Rename to ...
7874 (ipa_reference_get_read_global): ... this.
7875 (ipa_reference_get_not_written_global): Rename to ...
7876 (ipa_reference_get_written_global): ... this.
7877 (dump_static_vars_set_to_file): Dump no_module_statics.
7878 (copy_static_var_set): Add for propagation parameter.
7879 (ipa_init): Initialize no_module_statics.
7880 (ipa_ref_opt_summary_t::duplicate): Update.
7881 (ipa_ref_opt_summary_t::remove): Update.
7882 (propagate): Update.
7883 (write_node_summary_p): Look correctly for bitmap differences.
7884 (ipa_reference_write_optimization_summary): Update.
7885 (ipa_reference_read_optimization_summary): Update.
7886 * ipa-reference.h
7887 (ipa_reference_get_not_read_global): Rename to ...
7888 (ipa_reference_get_read_global): ... this.
7889 (ipa_reference_get_not_written_global): Rename to ...
7890 (ipa_reference_get_written_global): ... this.
7891 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7892 (call_may_clobber_ref_p_1): Update.
7893
7894 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7895
7896 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7897 and add comment.
7898 (msp430_hard_regno_nregs_with_padding): Remove.
7899
7900 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7901
7902 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7903 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7904 shift amount is between 1 and 4.
7905 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7906 is between 1 and 4.
7907
7908 2019-10-24 Richard Biener <rguenther@suse.de>
7909
7910 PR tree-optimization/92205
7911 * tree-vect-loop.c (vectorizable_reduction): Restrict
7912 search for alternate vectype_in to lane-reducing patterns
7913 we support.
7914
7915 2019-10-24 Richard Biener <rguenther@suse.de>
7916
7917 PR tree-optimization/92203
7918 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7919 Skip eliminating conversion stmts inserted by insertion.
7920
7921 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7922
7923 * config/s390/s390.c (s390_get_thread_pointer): Use
7924 gen_get_thread_pointer.
7925 (s390_expand_split_stack_prologue): Likewise.
7926 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7927 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7928 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7929 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7930 parameterized name.
7931
7932 2019-10-24 Richard Biener <rguenther@suse.de>
7933
7934 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7935 SLP discovery fails try to handle the reduction as part
7936 of SLP reduction discovery.
7937
7938 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7939
7940 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7941 declaration.
7942 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7943 attribute if it exists, rather than the insn size. If we use the
7944 insn size, adjust the size to remove the extra size that prefixed
7945 instructions take.
7946 (rs6000_adjust_insn_length): New function.
7947 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7948 update the instruction sized if prefixed instructions are used.
7949 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7950 (non_prefixed_length attribute): Delete.
7951 (num_insns attribute): New insn attribute to return the number of
7952 instructions.
7953 (max_prefixed_insns attribute): New insn attribute to return the
7954 maximum number of prefixed instructions in an insn.
7955 (length attribute): Do not adjust for prefix instructions here,
7956 punt to ADJUST_INSN_LENGTH.
7957 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7958 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7959 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7960 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7961 max_prefixed_insns and num_insns.
7962
7963 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7964 (movtd_64bit_nodm): Reformat.
7965 (mov<mode>_32bit): Reformat.
7966 (mov<mode>_softfloat): Reformat.
7967 (FMOVE128_GPR splitter): Reformat.
7968 (DIFD splitter): Reformat.
7969 (TI2 splitter): Reformat.
7970 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7971 bits of the offset for the memory address are non-zero, use PLWA
7972 if prefixed instructions are available.
7973
7974 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7975
7976 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7977
7978 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7979
7980 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7981 previous patch.
7982
7983 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7984
7985 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7986 (cmp_symbol_files): New.
7987 (lto_output): Copy sections in file order.
7988 * lto-streamer.h (lto_file_decl_data): Add field order.
7989
7990 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7991
7992 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7993 * ipa-reference.c (reference_vars_map_t): new type.
7994 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7995 (ipa_reference_var_uid): Implement.
7996 (varpool_node_hooks): New static var.
7997 (varpool_removal_hook): New function.
7998 (is_improper): Do not check bitmap for id==-1
7999 (get_static_name): Update.
8000 (ipa_init): Initialize new datastructures.
8001 (analyze_function): Do not recompute ids.
8002 (propagate): Free reference_vars_to_consider.
8003 (stream_out_bitmap): Update.
8004 (ipa_reference_read_optimization_summary): Update.
8005
8006 2019-10-23 qing zhao <qing.zhao@oracle.com>
8007
8008 PR gcov-profile/91971
8009 * coverage.c (coverage_init): Mangle the full path of filename when
8010 filename is a absolute path.
8011
8012 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8013
8014 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
8015 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
8016 (msp430_has_hwmult): New.
8017 (msp430_output_labelref):
8018 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
8019 * config/msp430/msp430.md (mulhisi3): Likewise.
8020 (umulhisi3): Likewise.
8021 (mulsidi3): Likewise.
8022 (umulsidi3): Likewise.
8023
8024 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8025
8026 PR ipa/92074
8027 * params.def (inline-heuristics-hint-percent): Set to 600.
8028
8029 2019-10-23 Richard Biener <rguenther@suse.de>
8030
8031 PR tree-optimization/65930
8032 * tree-vect-loop.c (check_reduction_path): Allow conversions
8033 that only change the sign.
8034 (vectorizable_reduction): Relax latch def stmts we handle further.
8035
8036 2019-10-23 Jakub Jelinek <jakub@redhat.com>
8037
8038 PR debug/90231
8039 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
8040 (remove_unused_ivs): Use it instead of get_computation_at. When
8041 choosing best candidate, only consider candidates where
8042 get_debug_computation_at actually returns non-NULL.
8043
8044 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
8045
8046 PR tree-optimization/92131
8047 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
8048 range would be symbolic, drop to varying for any explicit overflow
8049 in the constant part or if neither range is a singleton.
8050
8051 2019-10-23 Martin Liska <mliska@suse.cz>
8052
8053 PR middle-end/81669
8054 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
8055 Initialize m_data.
8056
8057 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
8058
8059 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
8060 int_mode_for_mode rather than mode_for_int_vector for scalars.
8061
8062 2019-10-23 Richard Biener <rguenther@suse.de>
8063
8064 PR tree-optimization/92179
8065 * tree-vect-stmts.c (vectorizable_shift): For shift args
8066 that are all the same remove type restriction in the SLP case.
8067 Adjust SLP code to handle converting of the shift arg to
8068 only apply in case the modes are different.
8069
8070 2019-10-23 Martin Liska <mliska@suse.cz>
8071
8072 PR ipa/91969
8073 * ipa-inline.c (recursive_inlining): Do not print
8074 when curr->count is not initialized.
8075
8076 2019-10-23 Richard Biener <rguenther@suse.de>
8077
8078 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
8079 op from scalars in case there's a constant operand in its
8080 definition.
8081
8082 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
8083
8084 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
8085 against out of range max skip or log values.
8086
8087 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
8088
8089 * cgraph.c (dump_graphviz): Change name to dump_name
8090
8091 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8092
8093 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
8094 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8095 subtraction from a carry operation.
8096
8097 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8098
8099 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
8100
8101 2019-10-22 Richard Biener <rguenther@suse.de>
8102
8103 PR tree-optimization/92173
8104 * tree-vect-loop.c (vectorizable_reduction): If
8105 vect_transform_reduction cannot handle code-generation try without
8106 the single-def-use-cycle optimization. Pass optab_vector to
8107 optab_for_tree_code to get vector shifts as that's what we'd
8108 generate.
8109
8110 2019-10-22 Michael Matz <matz@suse.de>
8111
8112 PR middle-end/90796
8113 * gimple-loop-jam.c (any_access_function_variant_p): New function.
8114 (adjust_unroll_factor): Use it to constrain safety, new parameter.
8115 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
8116
8117 2019-10-22 Richard Biener <rguenther@suse.de>
8118
8119 PR tree-optimization/92173
8120 * tree-vect-loop.c (vectorizable_reduction): If
8121 vect_transform_reduction cannot handle code-generation try without
8122 the single-def-use-cycle optimization. Pass optab_vector to
8123 optab_for_tree_code to get vector shifts as that's what we'd
8124 generate.
8125
8126 2019-10-22 Martin Liska <mliska@suse.cz>
8127
8128 * diagnostic-format-json.cc (json_from_expanded_location):
8129 Use json::integer_number.
8130 * gcov.c (output_intermediate_json_line): Use new
8131 json::integer_number.
8132 (output_json_intermediate_file): Likewise.
8133 * json.cc (number::print): Move to ...
8134 (float_number::print): ... this.
8135 (integer_number::print): New.
8136 (test_writing_numbers): Move to ...
8137 (test_writing_float_numbers): ... this.
8138 (test_writing_integer_numbers): New.
8139 (json_cc_tests): Register test_writing_integer_numbers.
8140 * json.h (class value): Add forward declaration
8141 for float_number and integer_number.
8142 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
8143 (class number): Move to ...
8144 (class float_number): ... this.
8145 (class integer_number): New.
8146 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
8147 Use json::integer_number.
8148 (optrecord_json_writer::location_to_json): Likewise.
8149 (optrecord_json_writer::profile_count_to_json): Likewise.
8150 (optrecord_json_writer::pass_to_json): Likewise.
8151
8152 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
8153
8154 * tree-vect-slp.c (vect_slp_bb_region): Check whether
8155 autodetected_vector_size rather than vector_size is zero.
8156 * tree-vect-loop.c (vect_analyze_loop): Likewise.
8157 Set autodetected_vector_size immediately after calling
8158 vect_analyze_loop_2. Check for a fatal error before advancing
8159 next_size.
8160
8161 2019-10-21 Jason Merrill <jason@redhat.com>
8162
8163 * lock-and-run.sh: Check for process existence rather than timeout.
8164
8165 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8166
8167 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
8168 widening multiplication.
8169
8170 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
8171
8172 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
8173 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
8174 type attribute.
8175 (subsi3_carryin_shift): Separate into register and constant controlled
8176 alternatives. Use shift_amount_operand for operand 4. Set shift
8177 attribute and simplify type attribute.
8178 (subsi3_carryin_shift_alt): Likewise.
8179 (rsbsi3_carryin_shift): Likewise.
8180 (rsbsi3_carryin_shift_alt): Likewise.
8181 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
8182 and register controlled shifts into distinct alternatives.
8183 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
8184 (andsi_not_shiftsi_si_scc): Likewise.
8185 (arm_cmpsi_negshiftsi_si): Likewise.
8186 (not_shiftsi): Remove redundant M constraint from alternative 1.
8187 (not_shiftsi_compare0): Likewise.
8188 (arm_cmpsi_insn): Remove redundant alternative 2.
8189 (cmpsi_shift_swp): Likewise.
8190 (sub_shiftsi): Likewise.
8191 (sub_shiftsi_compare0_scratch): Likewise.
8192 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
8193 (thumb2_cmpsi_neg_shiftsi): Likewise.
8194
8195 2019-10-21 Richard Biener <rguenther@suse.de>
8196
8197 PR tree-optimization/92162
8198 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
8199 STMT_VINFO_REDUC_IDX in reduc_info.
8200 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8201
8202 2019-10-21 Richard Biener <rguenther@suse.de>
8203
8204 * tree-vectorizer.h (_slp_tree::ops): New member.
8205 (SLP_TREE_SCALAR_OPS): New.
8206 (vect_get_slp_defs): Adjust prototype.
8207 * tree-vect-slp.c (vect_free_slp_tree): Release
8208 SLP_TREE_SCALAR_OPS.
8209 (vect_create_new_slp_node): Initialize it. New overload for
8210 initializing by an operands array.
8211 (_slp_oprnd_info::ops): New member.
8212 (vect_create_oprnd_info): Initialize it.
8213 (vect_free_oprnd_info): Release it.
8214 (vect_get_and_check_slp_defs): Populate the operands array.
8215 Do not swap operands in the IL when not necessary.
8216 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
8217 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
8218 swap operands in the operands array. Do not swap operands in
8219 the IL.
8220 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
8221 (vect_gather_slp_loads): Fix.
8222 (vect_detect_hybrid_slp_stmts): Likewise.
8223 (vect_slp_analyze_node_operations_1): Search for a internal
8224 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
8225 (vect_slp_analyze_node_operations): Skip ops-only stmts for
8226 the def-type push/pop dance.
8227 (vect_get_constant_vectors): Compute number_of_vectors here.
8228 Use SLP_TREE_SCALAR_OPS and simplify greatly.
8229 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
8230 (vect_get_slp_defs): Simplify greatly.
8231 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
8232 (vect_transform_reduction): Likewise.
8233 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
8234 (vectorizable_call): Likewise.
8235 (vectorizable_operation): Likewise.
8236 (vectorizable_load): Likewise.
8237 (vectorizable_condition): Likewise.
8238 (vectorizable_comparison): Likewise.
8239
8240 2019-10-21 Richard Biener <rguenther@suse.de>
8241
8242 PR tree-optimization/92161
8243 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
8244 for reductions.
8245
8246 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8247
8248 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
8249 (aarch64_rndr): New define_insn.
8250 (aarch64_rndrrs): Likewise.
8251 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
8252 (TARGET_RNG): Likewise.
8253 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
8254 argument.
8255 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
8256 Add fourth argument in prototype.
8257 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
8258 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
8259 (aarch64_init_rng_builtins): Define.
8260 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
8261 (aarch64_expand_rng_builtin): Define.
8262 (aarch64_general_expand_builtin): Use IGNORE argument, handle
8263 RNG builtins.
8264 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8265 __ARM_FEATURE_RNG when TARGET_RNG.
8266 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
8267
8268 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
8269
8270 * tree-vect-stmts (ensure_base_align): Only change alignment if new
8271 alignment is more restrictive.
8272
8273 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8274
8275 * tree-vectorizer.h (vec_info::vector_size): New member variable.
8276 (vect_update_max_nunits): Update comment.
8277 (current_vector_size): Delete.
8278 * tree-vect-stmts.c (current_vector_size): Likewise.
8279 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
8280 of current_vector_size.
8281 (get_mask_type_for_scalar_type): Likewise.
8282 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
8283 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
8284 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
8285 (vect_double_mask_nunits, vect_transform_loop): Likewise.
8286 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8287 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
8288
8289 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8290
8291 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
8292 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
8293 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
8294 accordingly.
8295
8296 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8297
8298 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
8299 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
8300 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
8301 call accordingly.
8302 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8303
8304 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8305
8306 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
8307 a loop_vec_info.
8308 (vect_set_loop_condition_masked): Update call accordingly.
8309
8310 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8311
8312 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
8313 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
8314 (simple_integer_narrowing): Update call accordingly.
8315 (vectorizable_conversion): Likewise.
8316
8317 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8318
8319 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
8320 (vectorizable_call): Update call accordingly.
8321
8322 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8323
8324 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
8325 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8326 (duplicate_and_interleave): Update call accordingly.
8327 * tree-vect-loop.c (vectorizable_reduction): Likewise.
8328
8329 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8330
8331 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
8332 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
8333 (vect_get_constant_vectors): Update call accordingly.
8334 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
8335
8336 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8337
8338 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
8339 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
8340 (vect_prologue_cost_for_slp_op): Update call accordingly.
8341 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
8342 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
8343 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
8344 (get_mask_type_for_scalar_type): Likewise.
8345 (vect_get_vector_types_for_stmt): Likewise.
8346 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8347 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8348 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
8349 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
8350 (vect_split_statement, vect_convert_input): Likewise.
8351 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
8352 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
8353 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
8354 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
8355 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
8356 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
8357 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
8358 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
8359 (vect_recog_mask_conversion_pattern): Likewise.
8360 (vect_add_conversion_to_pattern): Likewise.
8361 (vect_recog_gather_scatter_pattern): Likewise.
8362 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
8363 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
8364
8365 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8366
8367 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
8368 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
8369 (vect_check_load_store_mask): Update call accordingly.
8370 (vect_get_mask_type_for_stmt): Likewise.
8371 * tree-vect-patterns.c (check_bool_pattern): Likewise.
8372 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8373 (vect_convert_mask_for_vectype): Likewise.
8374
8375 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8376
8377 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8378 a vec_info.
8379 (vect_recog_dot_prod_pattern): Update call accordingly.
8380 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8381 (vect_recog_widen_sum_pattern): Likewise.
8382
8383 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8384
8385 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8386 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8387 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8388 accordingly.
8389
8390 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8391
8392 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8393 get_vectype_for_scalar_type_and_size instead of
8394 get_vectype_for_scalar_type.
8395
8396 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8397
8398 * common.opt (-fcommon): Fix description.
8399
8400 2019-10-20 Jakub Jelinek <jakub@redhat.com>
8401
8402 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8403 * config/i386/i386.c (ix86_pre_reload_split): New function.
8404 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8405 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8406 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8407 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8408 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8409 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8410 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8411 *<shift_insn><dwi>3_doubleword_mask,
8412 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8413 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8414 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8415 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8416 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8417 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8418 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8419 *avx2_<code>v8qiv8si2<mask_name>_2,
8420 *sse4_1_<code>v4qiv4si2<mask_name>_2,
8421 *sse4_1_<code>v4hiv4si2<mask_name>_2,
8422 *avx512f_<code>v8qiv8di2<mask_name>_2,
8423 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8424 *sse4_1_<code>v2hiv2di2<mask_name>_2,
8425 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8426 sse4_2_pcmpistr): Likewise.
8427
8428 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
8429
8430 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8431 now defaults to https.
8432
8433 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
8434
8435 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8436 skip non-zero array accesses.
8437
8438 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8439
8440 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8441 and return a boolean success value. Move the allocation and
8442 initialization of the bb_vec_info to...
8443 (vect_slp_bb_region): ...here. Update call accordingly.
8444 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8445 than in vect_slp_analyze_bb_1.
8446
8447 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8448
8449 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8450 when processing the given datarefs for the first time and
8451 check_datarefs subsequently.
8452 (vect_slp_bb_region): New function, split out of...
8453 (vect_slp_bb): ...here. Don't recompute the region bounds and
8454 dataref sets when retrying with a different vector size.
8455
8456 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8457 Uroš Bizjak <ubizjak@gmail.com>
8458
8459 PR target/92140
8460 * config/i386/predicates.md (int_nonimmediate_operand): New special
8461 predicate.
8462 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8463 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8464 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8465 define_insn_and_split patterns.
8466
8467 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8468
8469 * config/rs6000/rs6000.md: Delete out--of-date comment about
8470 special-casing integer loads.
8471
8472 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8473
8474 * escaped_string.h (escaped_string): New header.
8475 * tree.c (escaped_string): Remove escaped_string class.
8476
8477 2019-10-18 Martin Sebor <msebor@redhat.com>
8478
8479 PR tree-optimization/92157
8480 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8481 compute_string_length to return a negative result.
8482
8483 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8484
8485 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8486 (negvsi3, negvdi3): Delete.
8487 (negdi2_compare): Delete.
8488
8489 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8490
8491 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8492 operations.
8493 (subdi3_compare1): Delete pattern.
8494 (subvsi3_borrow): New insn pattern.
8495 (subvsi3_borrow_imm): Likewise.
8496
8497 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8498
8499 * config/arm/arm.md (subv<mode>4): Delete.
8500 (subvdi4): New expander pattern.
8501 (subvsi4): Likewise. Handle some immediate values.
8502 (subvsi3_intmin): New insn pattern.
8503 (subvsi3): Likewise.
8504 (subvsi3_imm1): Likewise.
8505 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8506 idioms.
8507
8508 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8509
8510 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8511 incoming operands. Early split the calculation into SImode
8512 operations.
8513 (usubvsi3_borrow): New insn pattern.
8514 (usubvsi3_borrow_imm): Likewise.
8515
8516 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8517
8518 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8519 (usubvsi4): New pattern. Allow some immediate values for inputs.
8520 (usubvdi4): New pattern.
8521
8522 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8523
8524 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8525 or second operand of the PLUS inside a DImode equality test to be
8526 sign-extend when selecting CC_Vmode.
8527 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8528 instructions.
8529 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8530 expand patterns.
8531 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8532 (addsi3_cin_vout_0): Likewise.
8533 (adddi3_compareV): Delete.
8534
8535 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8536
8537 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8538 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8539 to transform this back into the summation version when that leads
8540 to smaller code.
8541
8542 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8543
8544 * config/arm/arm.md (addv<mode>4): Delete.
8545 (addvsi4): New pattern. Handle immediate values that the architecture
8546 supports.
8547 (addvdi4): New pattern.
8548 (addsi3_compareV): Rename to ...
8549 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8550 and use COMPARE rather than NE.
8551 (addsi3_compareV_imm): New pattern.
8552 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8553 a signed-overflow check.
8554
8555 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8556
8557 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8558 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8559 CC_ADCmode.
8560 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8561 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8562 with overflow.
8563 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8564 expand patterns.
8565 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8566 (addsi3_cin_cout_imm_insn): Likewise.
8567 (adddi3_compareC): Delete insn.
8568 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8569
8570 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8571
8572 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8573 * (uaddv<mode>4): Delete expansion pattern.
8574 (uaddvsi4): New pattern.
8575 (uaddvdi4): Likewise.
8576 (addsi3_compareC): Delete pattern, change callers to use
8577 addsi3_compare_op1.
8578 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8579 reduce the number of alternatives and re-work type attribute handling.
8580 (addsi3_compare_op2): Clean up constraints to reduce the number of
8581 alternatives and re-work type attribute handling.
8582 (compare_addsi2_op0): Likewise.
8583 (compare_addsi2_op1): Likewise.
8584
8585 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8586
8587 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8588 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8589 for DImode operands.
8590 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8591 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8592 CC_NCVmode.
8593 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8594 (arm_cmpdi_unsigned): Delete.
8595
8596 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8597
8598 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8599 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8600 unchanged only if that will be cheaper.
8601 (arm_select_cc_mode): Recognize a swapped comparison that will
8602 be regenerated using RSBS or RSCS. Relax restriction on selecting
8603 CC_RSBmode.
8604 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8605 a constant.
8606 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8607 is CC_RSBmode.
8608 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8609 as CCmode.
8610 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8611 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8612
8613 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8614
8615 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8616 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8617 need these modes.
8618 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8619 of EQ, NE, LT, GE, LTU and GEU.
8620 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8621 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8622 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8623 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8624 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8625
8626 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8627
8628 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8629 operand 2.
8630 (cstoredi4): Similarly, but for operand 3.
8631 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8632 canonicalization of unsigned compares with a constant on Arm.
8633 Prefer using const+1 and adjusting the comparison over swapping the
8634 operands whenever the original constant was not valid.
8635 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8636 register here.
8637 (arm_validize_comparison): Do not force invalid DImode operands to
8638 registers here.
8639
8640 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8641
8642 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8643 return CC_Zmode if comparing against a constant where one word is
8644 zero.
8645 (arm_gen_compare_reg): Split DImode handling to ...
8646 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8647 against simple constants.
8648 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8649
8650 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8651
8652 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8653 (rsbsi3_carryin_shift_alt): Likewise.
8654
8655 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8656
8657 * config/arm/arm.md (negscc_borrow): New pattern.
8658 (mov_negscc): Don't split if the insn would match negscc_borrow.
8659 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8660 (thumb2_mov_negscc_strict_it): Likewise.
8661
8662 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8663
8664 * config/arm/arm.c (arm_insn_cost): New function.
8665 (TARGET_INSN_COST): Override default definition.
8666
8667 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8668
8669 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8670 borrow operations.
8671
8672 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8673
8674 * config/arm/arm.c (strip_carry_operation): New function.
8675 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8676 for SImode.
8677
8678 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8679
8680 * config/arm/predicates.md (arm_carry_operation): New special
8681 predicate.
8682 * config/arm/iterators.md (LTUGEU): Delete iterator.
8683 (cnb): Delete code attribute.
8684 (optab): Delete ltu and geu elements.
8685 * config/arm/arm.md (addsi3_carryin): Renamed from
8686 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8687 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8688 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8689 (addsi3_carryin_clobercc): Similarly.
8690 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8691 Thumb2 state.
8692
8693 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8694
8695 * config/arm/arm.md (arm_subdi3): Delete insn.
8696 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8697
8698 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8699
8700 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8701 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8702 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8703 return CC_RSBmode.
8704 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8705 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8706 expand.
8707 (subdi3): Rewrite to early-expand the sub-operations.
8708 (rsb_im_compare): New pattern.
8709 (negdi2): Delete.
8710 (negdi2_insn): Delete.
8711 (arm_negsi2): Correct type attribute to alu_imm.
8712 (negsi2_0compare): New insn pattern.
8713 (negsi2_carryin): New insn pattern.
8714
8715 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8716
8717 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8718 operand 2.
8719
8720 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8721
8722 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8723 to match canonical form.
8724
8725 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8726
8727 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8728 (extend<mode>di2): Likewise.
8729
8730 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8731
8732 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8733 * config/arm/arm.c (arm_decompose_di_binop): New function.
8734 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8735 If not generating Thumb-1 code, decompose the operation into 32-bit
8736 pieces.
8737 * add0si_carryin_<optab>: New pattern.
8738
8739 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8740
8741 * arm.md (adddi3): Only accept register operands.
8742 (arm_adddi3): Convert to simple insn with no split. Do not accept
8743 constants.
8744 (adddi_sesidi_di): Delete patern.
8745 (adddi_zesidi_di): Likewise.
8746 (uaddv<mode>4): Use LTU as condition for branch.
8747 (adddi3_compareV): Convert to simple insn with no split.
8748 (addsi3_compareV_upper): Delete pattern.
8749 (adddi3_compareC): Convert to simple insn with no split. Correct
8750 flags setting expression.
8751 (addsi3_compareC_upper): Delete pattern.
8752 (addsi3_compareC): Correct flags setting expression.
8753 (subdi3_compare1): Convert to simple insn with no split.
8754 (subsi3_carryin_compare): Delete pattern.
8755 (arm_subdi3): Convert to simple insn with no split.
8756 (subdi_zesidi): Delete pattern.
8757 (subdi_di_sesidi): Delete pattern.
8758 (subdi_zesidi_di): Delete pattern.
8759 (subdi_sesidi_di): Delete pattern.
8760 (subdi_zesidi_zesidi): Delete pattern.
8761 (negvdi3): Use s_register_operand.
8762 (negdi2_compare): Convert to simple insn with no split.
8763 (negdi2_insn): Likewise.
8764 (negsi2_carryin_compare): Delete pattern.
8765 (negdi_zero_extendsidi): Delete pattern.
8766 (arm_cmpdi_insn): Convert to simple insn with no split.
8767 (negdi2): Don't call gen_negdi2_neon.
8768 * config/arm/neon.md (adddi3_neon): Delete pattern.
8769 (subdi3_neon): Delete pattern.
8770 (negdi2_neon): Delete pattern.
8771 (splits for negdi2_neon): Delete splits.
8772
8773 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8774
8775 PR middle-end/92153
8776 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8777 than after it.
8778
8779 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8780
8781 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8782 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8783 new multilib variants and new mappings.
8784
8785 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8786
8787 PR target/86040
8788 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8789
8790 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8791 Richard Sandiford <richard.sandiford@arm.com>
8792
8793 PR target/86753
8794 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8795 and define hashmap traits for it.
8796 (loop_vec_info::scalar_cond_masked_set): New member.
8797 (vect_record_loop_mask): Adjust prototype.
8798 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8799 Implement method.
8800 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8801 vect_record_loop_mask.
8802 (vectorizable_live_operation): Likewise.
8803 (vect_record_loop_mask): New param scalar_mask. Add entry
8804 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8805 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8806 Pass it as last arg to vect_record_loop_mask.
8807 (vectorizable_call): Pass scalar_mask as last arg to
8808 vect_record_loop_mask.
8809 (vectorizable_store): Likewise.
8810 (vectorizable_load): Likewise.
8811 (vectorizable_condition): Check if another part of vectorized code
8812 applies loop_mask to condition or to it's inverse, and if yes,
8813 apply loop_mask to result of vector comparison.
8814
8815 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8816
8817 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8818
8819 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8820
8821 PR tree-optimization/92056
8822 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8823 before calling compute_builtin_object_size.
8824
8825 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8826
8827 PR target/65342
8828 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8829 (movdi_low_st): Delete.
8830 * config/rs6000/rs6000.c
8831 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8832 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8833 * config/rs6000/rs6000.md (movsi_low): Delete.
8834
8835 2019-10-17 Jason Merrill <jason@redhat.com>
8836
8837 * gimplify.h (get_initialized_tmp_var): Add default argument to
8838 post_p.
8839 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8840 NULL post_p argument.
8841 * targhooks (std_gimplify_va_arg_expr): Likewise.
8842
8843 2019-10-17 Richard Biener <rguenther@suse.de>
8844
8845 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8846 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8847 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8848 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8849 * tree-vect-loop.c (vect_is_simple_reduction): Set
8850 STMT_VINFO_REDUC_CODE.
8851 (vectorizable_reduction): Remove dead and redundant code, use
8852 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8853
8854 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8855
8856 Fix breakage introduced by r276985.
8857
8858 * config/avr/avr.c (avr_option_override): Remove set of
8859 PARAM_ALLOW_STORE_DATA_RACES.
8860 * common/config/avr/avr-common.c (avr_option_optimization_table)
8861 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8862
8863 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8864
8865 * config/i386/i386.h (processor_costs): Add clear_ratio.
8866 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8867 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8868 of 6 and move_ratio in all cost models.
8869
8870 2019-10-17 Richard Biener <rguenther@suse.de>
8871
8872 * tree-vect-loop.c (check_reduction_path): Compute reduction
8873 operation here.
8874 (vect_is_simple_reduction): Remove special-case of single-stmt
8875 reduction path detection.
8876
8877 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8878
8879 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8880
8881 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8882
8883 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8884 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8885 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8886 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8887 New combine patterns.
8888 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8889 above.
8890 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8891
8892 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8893
8894 * tree-vrp.c (value_range_base::dump): Display +INF for both
8895 pointers and integers when appropriate.
8896
8897 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8898
8899 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8900 when to use versioning threshold.
8901
8902 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8903
8904 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8905 outlined code from ...
8906 (vect_analyze_loop_2): ... here.
8907
8908 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8909
8910 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8911 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8912 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8913
8914 2019-10-17 Richard Biener <rguenther@suse.de>
8915
8916 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8917 (vect_is_simple_reduction): Move all validity checks ...
8918 (vectorizable_reduction): ... here. Compute whether we
8919 need a fold-left reduction here.
8920 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8921 both overloads, check needs_fold_left_reduction_p directly.
8922 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8923
8924 2019-10-17 Richard Biener <rguenther@suse.de>
8925
8926 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8927 TARGET_MEM_REF creation.
8928
8929 2019-10-17 Richard Biener <rguenther@suse.de>
8930
8931 PR tree-optimization/92129
8932 * tree-vect-loop.c (vectorizable_reduction): Also fail
8933 on GIMPLE_SINGLE_RHS.
8934
8935 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8936
8937 PR tree-optimization/92056
8938 * tree-object-size.c (cond_expr_object_size): Return early if then_
8939 processing resulted in unknown size.
8940
8941 PR tree-optimization/92115
8942 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8943 temporary if it could trap.
8944
8945 2019-10-17 Richard Biener <rguenther@suse.de>
8946
8947 PR debug/91887
8948 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8949 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8950
8951 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8952
8953 * tree-ssa-strlen.c (maybe_invalidate): Use
8954 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8955
8956 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8957 Jim Wilson <jimw@sifive.com>
8958
8959 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8960 regs to SIBCALL_REGS.
8961 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8962 passing regs to SIBCALL_REGS.
8963
8964 2019-10-16 Martin Sebor <msebor@redhat.com>
8965
8966 PR tree-optimization/83821
8967 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8968 the length of a string when available.
8969 (handle_builtin_memset) Add argument.
8970 (handle_store, strlen_check_and_optimize_call): Same.
8971 (check_and_optimize_stmt): Same. Pass it to callees.
8972
8973 2019-10-16 Martin Sebor <msebor@redhat.com>
8974
8975 PR tree-optimization/91996
8976 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8977 information.
8978 (compare_nonzero_chars): Add an overload.
8979 (count_nonzero_bytes): Add an argument. Call overload above.
8980 Handle non-constant lengths in some range.
8981 (handle_store): Add an argument.
8982 (check_and_optimize_stmt): Pass an argument to handle_store.
8983
8984 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8985
8986 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8987
8988 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8989
8990 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8991 operands which correspond to the same input-output register to
8992 have the same pseudo assigned to them.
8993
8994 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8995
8996 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8997
8998 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8999
9000 * config/aarch64/aarch64.c (aarch64_classify_symbol):
9001 Apply reasonable limit to symbol offsets.
9002
9003 2019-10-16 Richard Biener <rguenther@suse.de>
9004
9005 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
9006 (vect_is_simple_reduction): Delay checking to
9007 vectorizable_reduction and relax the checking.
9008 (vectorizable_reduction): Check we have a simple use. Check
9009 for bogus condition reductions.
9010 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
9011 are looking at the last stmt in a pattern sequence when
9012 filling in backedge PHI values.
9013
9014 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
9015 Jiufu Guo <guojiufu@linux.ibm.com>
9016
9017 PR target/70010
9018 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
9019 the callee explicitly disables some isa_flags the caller is using.
9020
9021 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9022
9023 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
9024
9025 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9026
9027 * genmodes.c (mode_data::order): New field.
9028 (blank_mode): Update accordingly.
9029 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
9030 (make_vector_modes): Likewise.
9031 (VECTOR_MODES): Update use accordingly.
9032 (cmp_modes): Sort by the new order field ahead of sorting by size.
9033 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
9034 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
9035 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
9036 (aarch64_classify_vector_mode): Handle the new partial modes.
9037 (aarch64_vl_bytes): New function.
9038 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
9039 when counting the number of registers in an SVE mode.
9040 (aarch64_class_max_nregs): Likewise.
9041 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
9042 in registers yet.
9043 (aarch64_classify_address): Treat partial vectors analogously
9044 to full vectors.
9045 (aarch64_print_address_internal): Consolidate the printing of
9046 MUL VL addresses, using aarch64_vl_bytes as the number of
9047 bytes represented by "VL".
9048 (aarch64_vector_mode_supported_p): Reject partial vector modes.
9049
9050 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9051
9052 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
9053 rather than known_lt when choosing frame layouts.
9054
9055 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9056
9057 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
9058 that all the adjustments add up to the full frame size.
9059 Use crtl->outgoing_args_size directly as the final adjustment
9060 where appropriate.
9061
9062 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9063
9064 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
9065 "frame" reference instead of always referring directly to
9066 "cfun->machine->frame".
9067
9068 2019-10-16 Richard Biener <rguenther@suse.de>
9069
9070 PR tree-optimization/92119
9071 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
9072 against missing bswap lhs.
9073
9074 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9075
9076 PR middle-end/92033
9077 * poly-int.h (constant_lower_bound_with_limit): New function.
9078 (constant_upper_bound_with_limit): Likewise.
9079 * doc/poly-int.texi: Document them.
9080 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
9081 into the worst-case INTEGER_CST bounds.
9082
9083 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
9084
9085 PR ipa/91088
9086 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
9087 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
9088 * ipa-predicat.h (struct expr_eval_op): New struct.
9089 (expr_eval_ops): New typedef.
9090 (struct condition): Add type and param_ops fields, remove size field.
9091 (add_condition): Replace size parameter with type parameter, add
9092 param_ops parameter.
9093 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
9094 (predicate::add_clause): Add comparisons on type and param_ops.
9095 (dump_condition): Add debug dump for param_ops.
9096 (remap_after_inlining): Adjust call arguments to add_condition.
9097 (add_condition): Replace size parameter with type parameter, add
9098 param_ops parameter. Unshare constant value used in conditions.
9099 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
9100 parameter expressions using param_ops.
9101 (decompose_param_expr): New function.
9102 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
9103 to replace call to unmodified_parm_or_parm_agg_item.
9104 (set_switch_stmt_execution_predicate): Likewise.
9105 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
9106 with type.
9107 (inline_read_section): Read param_ops from summary stream.
9108 (ipa_fn_summary_write): Write param_ops to summary stream.
9109
9110 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9111
9112 PR rtl-optimization/92107
9113 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
9114 expression written.
9115
9116 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9117
9118 * config/darwin.c: Update description of fix and continue.
9119
9120 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9121
9122 * config/darwin.c (darwin_binds_local_p): Update to call
9123 default_binds_local_p_3 () directly. amend comments.
9124
9125 2019-10-15 Richard Biener <rguenther@suse.de>
9126
9127 * lto-streamer-out.c (lto_variably_modified_type_p): New.
9128 (tree_is_indexable): Use it.
9129 * tree-streamer-out.c (pack_ts_type_common_value_fields):
9130 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
9131 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
9132
9133 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9134
9135 * config/msp430/msp430.md (zero_extendqipsi2): New.
9136 (zero_extendqisi2): Optimize case where src register and base dst
9137 register are the same.
9138 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
9139 (zero_extendpsisi2): Optimize r->m case.
9140 Add unnamed insn patterns to catch insns combine searches for when
9141 optimizing pointer manipulation.
9142
9143 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9144
9145 * config/msp430/msp430.md: Group zero_extend* insns together.
9146
9147 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9148
9149 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
9150 constraint.
9151 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
9152 POST_INC.
9153 (msp430_subreg): Likewise.
9154 (msp430_split_addsi): Likewise.
9155 (msp430_print_operand_addr): Likewise.
9156 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
9157 (USE_STORE_POST_INCREMENT): Define.
9158 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
9159 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
9160 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
9161 (msp430_general_dst_operand): New.
9162 (msp430_general_dst_nonv_operand): New.
9163 (msp430_nonsubreg_operand): Remove.
9164 (msp430_nonsubreg_dst_operand): New.
9165 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
9166 of defunct msp430_nonsubreg_operand.
9167 (msp430_nonsubregnonpostinc_or_imm_operand): New.
9168
9169 2019-10-15 Richard Biener <rguenther@suse.de>
9170
9171 PR tree-optimization/91929
9172 * tree-ssa-pre.c (pre_expr_d::loc): New member.
9173 (get_or_alloc_expr_for_name): Initialize it.
9174 (get_or_alloc_expr_for_constant): Likewise.
9175 (phi_translate_1): Copy it.
9176 (create_expression_by_pieces): Use the original location
9177 of the expression for the inserted stmt.
9178 (compute_avail): Record the location of the stmt for the
9179 expressions created.
9180
9181 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
9182
9183 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
9184 before using tree_to_uhwi.
9185
9186 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
9187
9188 * config/s390/s390.md: Run %a0:DI splitters only after reload.
9189
9190 2019-10-15 Richard Biener <rguenther@suse.de>
9191
9192 PR tree-optimization/92094
9193 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
9194 do not adjust the reduction definition def type.
9195 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
9196 defines the latch argument of the PHI.
9197
9198 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
9199
9200 PR target/92035
9201 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
9202 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
9203 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
9204 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
9205 _mm_maskz_roundscale_round_sd): New intrinsics.
9206 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
9207 __builtin_ia32_rndscales?_mask_round builtins instead of
9208 __builtin_ia32_rndscales?_round.
9209 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
9210 __builtin_ia32_rndscalesd_round): Remove.
9211 (__builtin_ia32_rndscaless_mask_round,
9212 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
9213 * config/i386/sse.md
9214 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
9215 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
9216 ... this, adjust and add subst atrributes to make it maskable.
9217
9218 2019-10-15 Richard Biener <rguenther@suse.de>
9219
9220 PR middle-end/92046
9221 * common.opt (fallow-store-data-races): New.
9222 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
9223 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
9224 * doc/invoke.texi (fallow-store-data-races): Document.
9225 (--param allow-store-data-races): Remove docs.
9226 * opts.c (default_options_table): Enable -fallow-store-data-races
9227 at -Ofast.
9228 (default_options_optimization): Do not enable --param
9229 allow-store-data-races at -Ofast.
9230 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
9231 instead of PARAM_ALLOW_STORE_DATA_RACES.
9232 * tree-ssa-loop-im.c (execute_sm): Likewise.
9233
9234 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9235
9236 PR tree-optimization/92085
9237 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
9238 instead of calling it unconditionally after
9239 delete_dead_or_redundant_assignment and fix indentation.
9240
9241 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9242
9243 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
9244 TARGET_VFP_DOUBLE.
9245 (*fmsub<SDF:mode>4): Likewise.
9246 *fnmsub<SDF:mode>4): Likewise.
9247 (*fnmadd<SDF:mode>4): Likewise.
9248
9249 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
9250
9251 * doc/tree-ssa.texi: Update renamed macro name.
9252
9253 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9254
9255 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
9256 vector constants.
9257
9258 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
9259
9260 * config/darwin.c: Use unsigned ints for the picbase label
9261 counters, initialise the vars explicitly.
9262 (update_pic_label_number_if_needed): Move a variable declaration
9263 to where it's needed.
9264 (machopic_output_function_base_name): Use a more strict checking
9265 assert, and and unsigned int for the picbase label counter.
9266 (machopic_get_function_picbase): Likewise.
9267
9268 2019-10-14 Richard Biener <rguenther@suse.de>
9269
9270 PR middle-end/92046
9271 * dse.c (scan_insn): Use param max_active_local_stores.
9272 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
9273 based on optimization level.
9274 * loop-invariant.c (move_loop_invariants): Adjust
9275 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
9276 * opts.c (default_options_optimization): Do not adjust
9277 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
9278 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
9279
9280 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9281
9282 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
9283
9284 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9285
9286 * config/arm/arm.c (arm_option_override): Don't override sched
9287 pressure algorithm.
9288
9289 2019-10-14 Richard Biener <rguenther@suse.de>
9290
9291 PR tree-optimization/92069
9292 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
9293 cycles do not set vect_nested_cycle on the latch definition.
9294
9295 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
9296
9297 * function-abi.h (expr_callee_abi): Declare.
9298 * function-abi.cc (expr_callee_abi): New function.
9299
9300 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
9301
9302 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
9303 into [1,MAX].
9304 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
9305 non-zero being represented as [1,MAX].
9306
9307 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
9308
9309 * tree-sra.c (dump_access): Add missing braces.
9310
9311 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9312
9313 * config/darwin.c (machopic_indirection_name): Rework the
9314 function to emit linker-visible symbols only for indirections
9315 in the data section. Clean up the code and update comments.
9316
9317 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9318
9319 * config/darwin.c (machopic_indirect_data_reference): Remove
9320 redundant code.
9321
9322 2019-10-13 Nathan Sidwell <nathan@acm.org>
9323
9324 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
9325
9326 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9327
9328 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
9329 c99_runtime.
9330
9331 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
9332
9333 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
9334 so non-virutal are before virutals.
9335 (output_function): Avoid body modifications.
9336
9337 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9338
9339 * config/pa/pa.c (pa_output_call): Load descriptor address to register
9340 %r22. Load function address before global pointer.
9341 (pa_attr_length_indirect_call): Adjust length of inline versions of
9342 $$dyncall.
9343 (pa_output_indirect_call): Remove fast inline version of $$dyncall
9344 before normal cases. Update inline $$dyncall sequences to preserve
9345 function descriptor address in register %r22.
9346 (TRAMPOLINE_CODE_SIZE): Adjust.
9347 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
9348 register %r22 contains trampoline address.
9349 (pa_trampoline_init): Adjust offsets.
9350 (pa_trampoline_adjust_address): Likewise.
9351 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
9352
9353 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9354
9355 PR target/67183
9356 * config/darwin.c (machopic_indirection): New field to flag
9357 non-lazy-symbol-pointers in the data section.
9358 (machopic_indirection_name): Compute if an indirection should
9359 appear in the data section.
9360 (machopic_output_data_section_indirection): New callback split
9361 from machopic_output_indirection.
9362 (machopic_output_stub_indirection): Likewise.
9363 (machopic_output_indirection): Retain the code for non-lazy
9364 symbol pointers in their regular section.
9365 (machopic_finish): Use the new callbacks to order the indirection
9366 output.
9367
9368 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9369
9370 * config/darwin-protos.h (machopic_finish): Delete.
9371 * config/darwin.c (machopic_finish): Make static.
9372
9373 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9374
9375 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9376 sections when building kernel extension code.
9377
9378 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
9379
9380 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9381 later standard."
9382
9383 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9384
9385 * config/pa/pa.c (pa_option_override): Remove trailing comma
9386 from warning.
9387
9388 2019-10-12 Jakub Jelinek <jakub@redhat.com>
9389
9390 PR middle-end/92063
9391 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9392 <case VEC_COND_EXPR>: Return false with *handled = false.
9393 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9394 recursing on the first operand.
9395 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9396 instead of tree_could_trap_p.
9397 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9398
9399 2019-10-11 Jim Wilson <jimw@sifive.com>
9400
9401 PR rtl-optimization/91860
9402 * combine.c (subst): If new_rtx is a constant, also check for
9403 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9404
9405 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
9406
9407 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9408 INTVAL when calling store_bit_field.
9409
9410 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
9411
9412 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9413 size.
9414
9415 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9416
9417 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9418 vectorizable_live_operation.
9419 (vectorizable_live_operation): Adjust parameters.
9420 * tree-vect-stmts.c (vect_init_vector,
9421 vect_gen_widened_results_half): Fix typo in function comment.
9422 (can_vectorize_live_stmts): Adjust function comment.
9423 Adjust parameters. Adjust call to vectorizable_live_operation.
9424 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9425 (vect_transform_stmt): Adjust function comment. Adjust call to
9426 can_vectorize_live_stmts.
9427 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9428
9429 2019-10-11 Richard Biener <rguenther@suse.de>
9430
9431 PR tree-optimization/90883
9432 PR tree-optimization/91091
9433 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9434 alias-sets both for recording VN table entries and continuing
9435 walking after translating through copies. Handle same-sized
9436 reads from SSA names by returning the plain SSA name.
9437 (eliminate_dom_walker::eliminate_stmt): Properly handle
9438 non-size precision stores in redundant store elimination.
9439
9440 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9441
9442 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9443 (ggc_collect): Dump later to not interfere with release_page dump.
9444 (ggc_trim): New function.
9445 * ggc-none.c (ggc_trim): New.
9446 * ggc.h (ggc_trim): Declare.
9447
9448 2019-10-11 Richard Biener <rguenther@suse.de>
9449
9450 PR tree-optimization/92066
9451 PR tree-optimization/92046
9452 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9453 Fix bogus cost model check.
9454
9455 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9456
9457 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9458 (LANG_HOOKS_DECLS): Add it.
9459 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9460 update comment for omp_is_optional_argument.
9461 * omp-general.c (omp_is_allocatable_or_ptr): New.
9462 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9463 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9464 Fortran's optional arguments and allocatable/pointer scalars
9465 with use_device_addr.
9466
9467 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9468
9469 PR target/77918
9470 * config/s390/2827.md: Add new opcodes.
9471 * config/s390/2964.md: Likewise.
9472 * config/s390/3906.md: Likewise.
9473 * config/s390/8561.md: Likewise.
9474 * config/s390/s390-builtins.def (s390_vfchesb): Use
9475 the new vec_cmpgev4sf_quiet_nocc.
9476 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9477 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9478 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9479 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9480 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9481 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9482 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9483 * config/s390/s390-modes.def (CCSFPS): New mode.
9484 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9485 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9486 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9487 (s390_expand_vec_compare): Use non-signaling patterns where
9488 necessary.
9489 (s390_reverse_condition): Support CCSFPS.
9490 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9491 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9492 (asm_fcmp_op): Likewise.
9493 (*smaxv2df3_vx): Use pattern for quiet comparison.
9494 (*sminv2df3_vx): Likewise.
9495 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9496 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9497 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9498 (vec_cmplt<mode>_quiet_nocc): New expander.
9499 (vec_cmpge<mode>_quiet_nocc): New pattern.
9500 (vec_cmple<mode>_quiet_nocc): New expander.
9501 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9502 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9503 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9504 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9505 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9506 (vec_cmpungt<mode>): New expander.
9507 (vec_cmpunge<mode>): Likewise.
9508 (vec_cmpuneq<mode>): Use quiet patterns.
9509 (vec_cmpltgt<mode>): Allow only on z14+.
9510 (vec_cmpordered<mode>): Use quiet patterns.
9511 (vec_cmpunordered<mode>): Likewise.
9512 (VEC_CMP_EXPAND): Add ungt and unge.
9513
9514 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9515
9516 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9517 parameter.
9518 * lto-streamer-out.c: Include tree-dfa.h.
9519 (output_cfg): Do not use cfun.
9520 (lto_prepare_function_for_streaming): New.
9521 (output_function): Do not push cfun; do not initialize loop optimizer.
9522 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9523 * passes.c (ipa_write_summaries): Use it.
9524 (ipa_write_optimization_summaries): Do not modify bodies.
9525 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9526 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9527 * tree-ssa-dse.c (pass_dse::execute): Update use of
9528 renumber_gimple_stmt_uids.
9529 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9530
9531 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9532
9533 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9534 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9535
9536 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9537
9538 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9539 macros.
9540 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9541 Also define DFP macros for these conditions.
9542 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9543 DEC128_SUBNORMAL_MIN): Do not define.
9544 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9545 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9546
9547 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9548 Sandra Loosemore <sandra@codesourcery.com>
9549
9550 PR middle-end/26241
9551 * doc/lto.texi (IPA): Reference to the IPA passes.
9552 * doc/passes.texi (Pass manager): Add node IPA passes and
9553 description for each IPA pass.
9554
9555 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9556
9557 * ipa-reference.c: Do not include splay-tree.h
9558 (reference_vars_to_consider): Turn to hash map.
9559 (get_static_name, ipa_init, analyze_function, propagate,
9560 stream_out_bitmap, ipa_reference_write_optimization_summary,
9561 ipa_reference_write_optimization_summary): Update.
9562
9563 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9564
9565 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9566
9567 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9568
9569 * config/darwin.c: Lookup Objective C metadata and force indirection
9570 for IVAR refs.
9571
9572 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9573
9574 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9575 addresses.
9576 (mem_operand_gpr): Add check for prefixed addresses.
9577 (mem_operand_ds_form): Add check for prefixed addresses.
9578 (rs6000_legitimate_offset_address_p): If we support prefixed
9579 addresses, check for a 34-bit offset instead of 16-bit.
9580 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9581 Do not allow load/store with update if the address is prefixed.
9582 (rs6000_mode_dependent_address): If we support prefixed
9583 addresses, check for a 34-bit offset instead of 16-bit.
9584
9585 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9586
9587 PR target/77918
9588 * config/s390/vector.md (vcond_comparison_operator): New
9589 predicate.
9590 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9591
9592 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9593
9594 PR 87488
9595 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9596 -D.
9597 * configure.ac (--with-documentation-root-url): New option.
9598 * configure: Regenerate.
9599 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9600 option URL, add it as a new string field of the diagnostic option.
9601 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9602 (print_option_information): If get_option_url is non-NULL, call
9603 it, and if the result is non-NULL, potentially emit an escape
9604 sequence to markup the option text with the resulting URL.
9605 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9606 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9607 example of JSON output.
9608 * opts-diagnostic.h (get_option_url): New decl.
9609 * opts.c (get_option_url): New function.
9610 * toplev.c (general_init): Initialize the get_option_url callback.
9611
9612 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9613
9614 PR 87488
9615 * common.opt (fdiagnostics-urls=): New option.
9616 (diagnostic-url.h): Add SourceInclude.
9617 (diagnostic_url_rule): New enum.
9618 * diagnostic-color.c: Include "diagnostic-url.h".
9619 (diagnostic_urls_enabled_p): New function.
9620 * diagnostic-url.h: New file.
9621 * diagnostic.c: Include "diagnostic-url.h".
9622 (diagnostic_urls_init): New function.
9623 * diagnostic.h (diagnostic_urls_init): New decl.
9624 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9625 -fdiagnostics-urls to the list.
9626 (-fdiagnostics-urls): New option.
9627 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9628 (driver::global_initializations): Call diagnostic_urls_init.
9629 * opts-global.c (init_options_once): Likewise.
9630 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9631 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9632 show_urls.
9633 (pp_begin_url): New function.
9634 (pp_end_url): New function.
9635 (selftest::test_urls): New selftest.
9636 (selftest::pretty_print_c_tests): Call it.
9637 * pretty-print.h (pretty_printer::show_urls): New field.
9638 (pp_begin_url): New decl.
9639 (pp_end_url): New decl.
9640
9641 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9642
9643 PR target/92022
9644 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9645
9646 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9647
9648 PR target/88630
9649 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9650 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9651 also for TARGET_FPU_SH4_300.
9652 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9653 TARGET_SH4_300.
9654 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9655 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9656 (*negsf2_i): Split into ...
9657 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9658 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9659 (**abssf2_i): Split into ...
9660 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9661 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9662 (*negdf2_i): Split into ...
9663 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9664 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9665 (**abssf2_i): Split into ...
9666 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9667
9668 2019-10-10 Richard Biener <rguenther@suse.de>
9669
9670 PR middle-end/92046
9671 * opts.c (finish_options): Do not influence global --params
9672 from options that are adjustable per function.
9673 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9674 Apply --param adjustment based on active cost-model.
9675 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9676 further store-sinking when vectorization or if-conversion
9677 are not enabled.
9678
9679 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9680
9681 PR middle-end/92037
9682 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9683 rather than ggc_alloc_cleared to alloc symbol table.
9684 * toplev.c (general_init): Likewise.
9685 * cgraph.h (symbol_table): Explicitly construct every field.
9686
9687 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9688
9689 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9690 (PF_Z15): ... this.
9691 * config.gcc: Add z15 as option for --with-arch and --with-tune
9692 configure switches.
9693 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9694 error reporting for unsupported builtins.
9695 * config/s390/s390-opts.h (enum processor_type): Rename
9696 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9697 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9698 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9699 Likewise.
9700 * config/s390/s390-builtins.def: Likewise.
9701 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9702 (s390_expand_builtin): Add missing check for unsupported builtins.
9703 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9704 (s390_rtx_costs): Likewise.
9705 (s390_get_sched_attrmask): Rename arch13 to z15.
9706 (s390_get_unit_mask): Likewise.
9707 (s390_is_fpd): Likewise.
9708 (s390_is_fxd): Likewise.
9709 * config/s390/s390.h (enum processor_flags): Likewise.
9710 * config/s390/s390.md: Likewise.
9711 * config/s390/vector.md: Likewise.
9712 * config/s390/vx-builtins.md: Likewise.
9713 * config/s390/s390.opt: Add z15 to processor_type value.
9714
9715 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9716
9717 PR target/91035
9718 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9719 prototype.
9720 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9721 ("split_stack_data", "split_stack_call")
9722 ("split_stack_call_<mode>", "split_stack_cond_call")
9723 ("split_stack_cond_call_<mode>"): Remove.
9724 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9725 insn definition.
9726 * config/s390/s390.c (s390_output_split_stack_data): New function.
9727 (s390_expand_split_stack_prologue): Use the merged expander.
9728
9729 2019-10-09 Martin Sebor <msebor@redhat.com>
9730
9731 PR tree-optimization/90879
9732 * builtins.c (check_access): Avoid using maxbound when null.
9733 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9734 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9735 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9736 conditional.
9737 (get_range_strlen): Overwrite initial maxbound when non-null.
9738 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9739 changes.
9740 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9741 (used_only_for_zero_equality): New function.
9742 (handle_builtin_memcmp): Call it.
9743 (determine_min_objsize): Return an integer instead of tree.
9744 (get_len_or_size, strxcmp_eqz_result): New functions.
9745 (maybe_warn_pointless_strcmp): New function.
9746 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9747 between a longer string and a smaller array.
9748 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9749
9750 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9751
9752 * config/darwin.c (darwin_override_options): Make the check for
9753 Objective-C ABI version more specific for 64bit code.
9754
9755 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9756
9757 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9758 indicate that the new symbol is an indirection.
9759 (machopic_indirect_call_target): Likewise.
9760 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9761 (MACHO_SYMBOL_INDIRECTION_P): New.
9762 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9763
9764 2019-10-08 Jason Merrill <jason@redhat.com>
9765
9766 * doc/invoke.texi: Document -fconcepts-ts.
9767
9768 2019-10-09 Richard Biener <rguenther@suse.de>
9769
9770 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9771 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9772
9773 2019-10-08 Richard Biener <rguenther@suse.de>
9774
9775 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9776 (_stmt_vec_info::force_single_cycle): Likewise.
9777 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9778 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9779 * tree-vect-loop.c (vectorizable_reduction): Set
9780 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9781 (vect_transform_reduction): Use them to remove redundant code.
9782 (vect_transform_cycle_phi): Likewise.
9783
9784 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9785
9786 PR tree-optimization/90836
9787 * match.pd (popcount): New pattern.
9788
9789 2019-10-08 Martin Sebor <msebor@redhat.com>
9790
9791 PR middle-end/92026
9792 PR middle-end/92014
9793 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9794 again once nbytes has been set. Set the access size when not yet set.
9795
9796 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9797
9798 * config/darwin.c (machopic_select_section): Remove dead code for
9799 old Objective-C section selection method, replace with unreachable.
9800
9801 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9802
9803 * config/darwin.c (machopic_indirect_data_reference): Check for
9804 required indirections before making direct access to defined
9805 values.
9806 (machopic_output_indirection): Place the indirected pointes for
9807 required indirections into the non-lazy symbol pointers section.
9808 (darwin_encode_section_info):
9809 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9810 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9811
9812 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9813
9814 PR target/91994
9815 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9816 instead of ALL_SSE_REG to check if function call preserves some
9817 256-bit SSE registers.
9818
9819 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9820
9821 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9822 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9823 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9824
9825 2019-10-08 Richard Biener <rguenther@suse.de>
9826
9827 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9828 (_stmt_vec_info::is_reduc_info): Add.
9829 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9830 (vectorizable_condition): Remove.
9831 (vectorizable_shift): Likewise.
9832 (vectorizable_reduction): Adjust.
9833 (info_for_reduction): New.
9834 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9835 (vect_analyze_scalar_cycles_1): ... here.
9836 (vect_analyze_loop_operations): Adjust.
9837 (needs_fold_left_reduction_p): Simplify for single caller.
9838 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9839 for nested cycles not part of double reductions.
9840 (vect_model_reduction_cost): Pass in the reduction type.
9841 (info_for_reduction): New function.
9842 (vect_create_epilog_for_reduction): Use it, access reduction
9843 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9844 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9845 (vectorize_fold_left_reduction): Remove pointless assert.
9846 (vectorizable_reduction): Analyze the full reduction when
9847 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9848 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9849 stmt code-generation to vectorizable_* in most cases. Verify
9850 code-generation only for cases handled by
9851 vect_transform_reductuon.
9852 (vect_transform_reduction): Use info_for_reduction to get at
9853 reduction meta. Simplify.
9854 (vect_transform_cycle_phi): Likewise.
9855 (vectorizable_live_operation): Likewise.
9856 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9857 at the PHI node for STMT_VINFO_REDUC_TYPE.
9858 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9859 longer necessary code.
9860 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9861 (vectorizable_condition): Likewise. Get at reduction related
9862 info via info_for_reduction.
9863 (vect_analyze_stmt): Adjust.
9864 (vect_transform_stmt): Likewise.
9865 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9866 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9867
9868 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9869
9870 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9871 -fno-fp-int-builtin-inexact default for C2X.
9872
9873 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9874 Richard Biener <rguenther@suse.de>
9875
9876 PR tree-optimization/91532
9877 * tree-if-conv.c: Include tree-ssa-dse.h.
9878 (ifcvt_local_dce): Change param from bb to loop,
9879 and call dse_classify_store.
9880 (tree_if_conversion): Pass loop instead of loop->header as arg
9881 to ifcvt_local_dce.
9882 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9883 (delete_dead_or_redundant_assignment): Remove static qualifier from
9884 declaration, and add prototype in tree-ssa-dse.h.
9885 (dse_store_status): Move to tree-ssa-dse.h.
9886 (dse_classify_store): Remove static qualifier and add new tree param
9887 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9888 * tree-ssa-dse.h: New header.
9889
9890 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9891
9892 * config/darwin.c (machopic_output_indirection): Don't put
9893 hidden symbol indirections into the .data section, use the
9894 non-lazy symbol pointers section as normal.
9895 (darwin_encode_section_info): Record if a symbol is hidden.
9896 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9897 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9898
9899 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9900
9901 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9902 predicates instead of accessing bits directly.
9903 (machopic_indirect_call_target): Likewise.
9904 (machopic_output_indirection): Likewise.
9905 (darwin_encode_section_info): Improve description. Use renamed
9906 symbol flags. Use predicate macros for variables and functions.
9907 * config/darwin.h:
9908 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9909 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9910 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9911 (MACHO_SYMBOL_VARIABLE_P): New.
9912 (MACHO_SYMBOL_DEFINED_P):New.
9913 (MACHO_SYMBOL_STATIC_P): New.
9914 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9915 (SYMBOL_FLAG_SUBT_DEP): New.
9916 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9917
9918 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9919
9920 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9921 (msp430_expand_epilogue): Likewise.
9922 * config/msp430/predicates.md: Likewise.
9923 * config/msp430/msp430.md: Likewise.
9924 Replace blocks of 8 spaces with tabs.
9925
9926 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9927
9928 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9929 * config/msp430/msp430.c (msp430_split_addsi): New.
9930 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9931 a block of C code for splitting addsi.
9932
9933 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9934
9935 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9936 ix86_expand_rounddf_32): Reorder functions.
9937 * config/i386/i386-protos.h: Update.
9938
9939 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9940
9941 * config.in: Regenerate.
9942 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9943 Add new "Yx" constraint.
9944 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9945 function.
9946 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9947 prototype.
9948 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9949 code/data region to be selected in the small memory model.
9950 (msp430_section_attr): Don't warn if the "section" and "lower"
9951 attributes are used together.
9952 (msp430_handle_generic_attribute): Likewise.
9953 (msp430_var_in_low_mem): New function.
9954 (TARGET_ENCODE_SECTION_INFO): Define.
9955 (msp430_encode_section_info): New function.
9956 (gen_prefix): Return early in the small memory model.
9957 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9958 ".lower" prefix if -m{code,data}-region=lower have been passed.
9959 (msp430_output_aligned_decl_common): Emit common symbols when
9960 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9961 set.
9962 (TARGET_ASM_FILE_END): Define.
9963 (msp430_file_end): New function.
9964 (msp430_do_not_relax_short_jumps): Allow relaxation when
9965 function will be in the lower region.
9966 (msp430_op_not_in_high_mem): New function.
9967 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9968 the 'X' operand selector.
9969 Clarify comment for 'x' operand selector.
9970 * config/msp430/msp430.h (LINK_SPEC): Propagate
9971 -m{code,data}-region to the linker via spec function
9972 msp430_propagate_region_opt.
9973 (msp430_propagate_region_opt): New prototype.
9974 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9975 (SYMBOL_FLAG_LOW_MEM): Define.
9976 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9977 selector.
9978 (zero_extendqihi2): Fix operand number used by "%X" selector.
9979 (zero_extendqisi2): Likewise.
9980 (zero_extendhisi2): Likewise.
9981 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9982 (movhi): Likewise.
9983 (addqi3): Likewise.
9984 (addhi3): Likewise.
9985 (addsi3): Likewise.
9986 (addhi3_cy): Likewise.
9987 (addchi4_cy): Likewise.
9988 (subqi3): Likewise.
9989 (subhi3): Likewise.
9990 (subsi3): Likewise.
9991 (bic<mode>3): Likewise.
9992 (and<mode>3): Likewise.
9993 (ior<mode>3): Likewise.
9994 (xor<mode>3): Likewise.
9995 (slli_1): Add missing "%X" operand selector.
9996 (slll_1): Likewise.
9997 (slll_2): Likewise.
9998 (srai_1): Likewise.
9999 (sral_1): Likewise.
10000 (sral_2): Likewise.
10001 (srli_1): Likewise.
10002 (srll_1): Likewise.
10003 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
10004 selector.
10005 (cbranchhi4_real): Likewise.
10006 (cbranchqi4_reversed): Likewise.
10007 (cbranchhi4_reversed): Likewise.
10008 (*bitbranch<mode>4): Likewise.
10009 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
10010 * config/msp430/msp430.opt (mcode-region=): Set default to
10011 MSP430_REGION_LOWER. Improve docstring.
10012 (mdata-region=): Likewise.
10013 (muse-lower-region-prefix): New option.
10014 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
10015 mdata-region=none multilib.
10016 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
10017 mdata-region=none multilib.
10018 MULTILIB_EXCEPTIONS: Remove.
10019 MULTILIB_REQUIRED: Define.
10020 * configure: Regenerate.
10021 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
10022 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
10023 * doc/extend.texi: Clarify comment for {upper,lower,either}
10024 function attributes.
10025 Add separate description for "lower" variable attribute.
10026
10027 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10028
10029 PR target/77918
10030 * optabs-tree.c (vcond_icode_p): New function.
10031 (vcond_eq_icode_p): Likewise.
10032 (expand_vec_cond_expr_p): Use vcond_icode_p and
10033 vcond_eq_icode_p.
10034 * optabs.c (can_vcond_compare_p): New function.
10035 * optabs.h (can_vcond_compare_p): Likewise.
10036
10037 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10038
10039 PR target/77918
10040 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
10041 caller passes a non-trapping condition.
10042 (is_gimple_condexpr): Allow trapping conditions.
10043 (is_gimple_condexpr_1): New helper function.
10044 (is_gimple_condexpr_for_cond): New function, acts like old
10045 is_gimple_condexpr.
10046 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
10047 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
10048 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
10049 * gimplify.c (gimplify_cond_expr): Use
10050 is_gimple_condexpr_for_cond.
10051 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
10052 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
10053 VEC_COND_EXPR.
10054 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
10055 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
10056 is_gimple_condexpr_for_cond, remove pointless tmp check
10057 (forward_propagate_into_cond): Remove pointless tmp check.
10058
10059 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10060
10061 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
10062 match that of other gsi_next_* functions. Adjust the comment.
10063 (gsi_start_nonvirtual_phis): New function.
10064 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
10065 gsi_next_nonvirtual_phi accordingly. (No functional change.)
10066
10067 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10068
10069 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
10070 setjmp situation here. Fix a verb's ending: "the exact variables or
10071 elements for which there are warnings depends" -> "... depend".
10072
10073 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10074
10075 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
10076
10077 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10078
10079 * ipa-prop.c (ipa_vr::nonzero_p): New.
10080 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
10081 non-zero range.
10082 * ipa-prop.h (class ipa_vr): Add nonzero_p.
10083 * tree-vrp.c (range_has_numeric_bounds_p): New.
10084 (range_int_cst_p): Use range_has_numeric_bounds_p.
10085 (get_range_op_handler): New.
10086 (supported_types_p): New.
10087 (defined_ranges_p): New.
10088 (drop_undefines_to_varying): New.
10089 (range_fold_binary_symbolics_p): New.
10090 (range_fold_unary_symbolics_p): New.
10091 (range_fold_unary_expr): Extract out into above functions.
10092 (range_fold_binary_expr): Same.
10093 (value_range_base::normalize_addresses): New.
10094 (value_range_base::normalize_symbolics): Normalize addresses.
10095 * tree-vrp.h (class value_range_base): Add normalize_addresses.
10096
10097 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10098
10099 * tree-vrp.c (value_range_base::singleton_p): Use
10100 value_range_base::num_pairs instead of vrp_val_is* to check
10101 if a range has one sub-range.
10102
10103 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10104
10105 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
10106 DEF is not a true earlyclobber but is tied to a specific input
10107 operand, and so is effectively earlyclobber wrt inputs that have
10108 different values.
10109 (make_early_clobber_and_input_conflicts): Pass this case to the above.
10110
10111 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10112
10113 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
10114 (pod_mode): Mark operators likewise.
10115 (scalar_int_mode): Mark non-default constructors and
10116 operators with CONSTEXPR.
10117 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
10118 (fixed_size_mode): Likewise.
10119
10120 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10121
10122 PR target/91994
10123 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
10124 and wrap the unspec_volatile in a parallel.
10125 (*avx_vzeroupper): New define_insn. Use a match_parallel around
10126 the unspec_volatile.
10127 * config/i386/predicates.md (vzeroupper_pattern): Expect the
10128 unspec_volatile to be wrapped in a parallel.
10129 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
10130 (ix86_add_reg_usage_to_vzerouppers): New functions.
10131 (rest_of_handle_insert_vzeroupper): Use them to add register
10132 usage information to the vzeroupper instructions.
10133
10134 2019-10-07 Richard Biener <rguenther@suse.de>
10135
10136 PR tree-optimization/91975
10137 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
10138 handle invariants.
10139
10140 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
10141
10142 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
10143 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
10144
10145 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
10146
10147 * config/darwin.c (darwin_override_options): Adjust objective-c
10148 ABI version error messages to avoid punctuation and contracted
10149 negations.
10150
10151 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
10152
10153 * ipa-inline.c: Fix type; compute size rather than self_size
10154 for size of caller function.
10155
10156 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
10157
10158 PR target/59888
10159 * config/darwin.c (darwin_rodata_section): Add relocation flag,
10160 choose const_data section for constants with relocations.
10161 (machopic_select_section): Pass relocation flag to
10162 darwin_rodata_section ().
10163
10164 2019-10-05 Jakub Jelinek <jakub@redhat.com>
10165
10166 PR tree-optimization/91734
10167 * generic-match-head.c: Include fold-const-call.h.
10168 * match.pd (sqrt(x) cmp c): Check the boundary value and
10169 in case inexact computation of c*c affects comparison of the boundary,
10170 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
10171 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
10172 for -frounding-math. For c2, try the next smaller or larger floating
10173 point constant depending on comparison code and if it has the same
10174 sqrt as c2, use it instead of c2.
10175
10176 2019-10-04 Martin Sebor <msebor@redhat.com>
10177
10178 PR middle-end/91977
10179 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
10180 MEM_REF right operand. Avoid failing for MEM_REF assignments from
10181 uninitialized objects.
10182
10183 2019-10-04 Martin Sebor <msebor@redhat.com>
10184
10185 * builtins.c (compute_objsize): Add an argument.
10186 * tree-object-size.c (addr_object_size): Same.
10187 (compute_builtin_object_size): Same.
10188 * tree-object-size.h (compute_builtin_object): Same.
10189
10190 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
10191
10192 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
10193
10194 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
10195
10196 * match.pd (sinh (x) / cosh (x)): New simplification rule.
10197
10198 2019-10-04 Martin Jambor <mjambor@suse.cz>
10199
10200 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
10201 fntype when switching to calling memcpy instead of memset.
10202
10203 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10204
10205 * hash-table.h (hash_table::empty_slow): Don't assign
10206 size_t values to int variables.
10207
10208 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10209
10210 * expr.c (convert_mode_scalar): Remove shadowing local var.
10211 (emit_block_move): Rename local vars.
10212 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
10213 (emit_push_insn): Rename local vars.
10214 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
10215 shadowing local vars.
10216 (store_constructor): Remove shadowing local vars. Rename local var.
10217 (store_field, expand_cond_expr_using_cmove,
10218 expand_expr_real_2): Remove shadowing local vars.
10219 (expand_expr_real_1,
10220 do_store_flag): Remove shadowing local vars. Rename local vars.
10221
10222 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10223
10224 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
10225
10226 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10227
10228 * genmatch.c (commutate): Rename local var.
10229 (lower_cond): Reuse local var.
10230 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
10231 dt_operand::gen, dt_operand::gen_gimple_expr,
10232 dt_simplify::gen): Add a param. Rename generated vars.
10233 (decision_tree::insert_operand,
10234 (capture_info::walk_match, capture_info::walk_result,
10235 capture_info::walk_c_expr): Rename local vars.
10236 (expr::gen_transform): Rename generated vars.
10237 Use snprintf. Rename local vars.
10238 (capture::gen_transform, dt_operand::get_name,
10239 dt_operand::gen_opname): Rename generated vars.
10240 (write_predicate): Adjust call to gen_kids.
10241 (parser::get_internal_capture_id): Rename generated vars.
10242 (parser::parse_expr): Rename local vars.
10243 (parser::parse_if): Remove local var.
10244 (parser::parse_pattern, add_operator): Rename local vars.
10245
10246 2019-10-04 Joseph Myers <joseph@codesourcery.com>
10247
10248 * builtins.def (DEF_C2X_BUILTIN): New macro.
10249 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
10250 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
10251 (strndup): Use DEF_C2X_BUILTIN.
10252 * coretypes.h (enum function_class): Add function_c2x_misc.
10253
10254 2019-10-04 Maya Rashish <coypu@sdf.org>
10255
10256 * ira-color.c (update_costs_from_allocno): Call
10257 ira_init_register_move_cost_if_necessary.
10258
10259 2019-10-04 Jeff Law <law@redhat.com>
10260
10261 * config/h8300/h8300.md (cpymemsi): Disable.
10262 (movmd, movmd_internal_<mode>, movstr, movsd):
10263 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
10264 (movmd splitter, movsd splitter): Likewise.
10265
10266 * range-op.cc (range_tests): Avoid two tests when ints and
10267 shorts are the same size.
10268
10269 2019-10-04 Richard Biener <rguenther@suse.de>
10270
10271 PR lto/91968
10272 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
10273 BLOCK_VARS.
10274
10275 2019-10-04 Richard Biener <rguenther@suse.de>
10276
10277 PR tree-optimization/91982
10278 * tree-vect-loop.c (vectorizable_live_operation): Also guard
10279 against EXTRACT_LAST_REDUCTION.
10280 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
10281
10282 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
10283
10284 * range-op.o (value_range_from_overflowed_bounds): Rename from
10285 adjust_overflow_bound.
10286 (value_range_with_overflow): Rename from
10287 create_range_with_overflow.
10288 (create_possibly_reversed_range): Adjusted for above renames.
10289 (operator_*::wi_fold): Same.
10290 (cross_product_operator::wi_cross_productor): Same.
10291
10292 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10293
10294 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
10295 -Wshadow=compatible-local): Fix description.
10296 Add an example where -Wshadow=compatible-local does not
10297 warn.
10298
10299 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
10300
10301 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
10302
10303 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
10304 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
10305
10306 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10307
10308 * expr.c (emit_block_move_hints): Slightly cleaner fix to
10309 can_move_by_pieces issue.
10310
10311 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
10312
10313 PR target/87243
10314 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
10315 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
10316 is available and the user has not set one on the command line.
10317
10318 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10319
10320 PR target/91769
10321 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
10322 instead of REGNO equality check on addr.reg.
10323
10324 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
10325
10326 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
10327 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
10328 * doc/invoke.texi (inline-heuristics-hint-percent,
10329 inline-heuristics-hint-percent-O2): Document.
10330 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
10331 hint attribute.
10332 (can_inline_edge_by_limits_p): Use it.
10333
10334 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
10335
10336 * config/arm/arm.c (arm_print_value): Use real_to_decimal
10337 to print CONST_DOUBLEs.
10338
10339 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
10340
10341 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
10342 * ipa-prop.c (ipcp_free_transformation_sum): New function.
10343 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
10344
10345 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
10346
10347 * Makefile.in (OBJS): Add range.o and range-op.o.
10348 Remove wide-int-range.o.
10349 * function-tests.c (test_ranges): New.
10350 (function_tests_c_tests): Call test_ranges.
10351 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
10352 range_fold_unary_expr instead of extract_range_from_unary_expr.
10353 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10354 * range-op.cc: New file.
10355 * range-op.h: New file.
10356 * range.cc: New file.
10357 * range.h: New file.
10358 * selftest.h (range_tests): New prototype.
10359 * ssa.h: Include range.h.
10360 * tree-vrp.c (value_range_base::value_range_base): New
10361 constructors.
10362 (value_range_base::singleton_p): Do not call
10363 ranges_from_anti_range until sure we will need to.
10364 (value_range_base::type): Rename gcc_assert to
10365 gcc_checking_assert.
10366 (vrp_val_is_max): New argument.
10367 (vrp_val_is_min): Same.
10368 (wide_int_range_set_zero_nonzero_bits): Move from
10369 wide-int-range.cc.
10370 (extract_range_into_wide_ints): Remove.
10371 (extract_range_from_multiplicative_op): Remove.
10372 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10373 from extract_range_from_binary_expr.
10374 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10375 from extract_range_from_binary_expr.
10376 (extract_range_from_binary_expr): Remove.
10377 (normalize_for_range_ops): New.
10378 (range_fold_binary_expr): New.
10379 (range_fold_unary_expr): New.
10380 (value_range_base::num_pairs): New.
10381 (value_range_base::lower_bound): New.
10382 (value_range_base::upper_bound): New.
10383 (value_range_base::upper_bound): New.
10384 (value_range_base::contains_p): New.
10385 (value_range_base::invert): New.
10386 (value_range_base::union_): New.
10387 (value_range_base::intersect): New.
10388 (range_compatible_p): New.
10389 (value_range_base::operator==): New.
10390 (determine_value_range_1): Call range_fold_*expr instead of
10391 extract_range_from_*expr.
10392 * tree-vrp.h (class value_range_base): Add new constructors.
10393 Add methods for union_, intersect, operator==, contains_p,
10394 num_pairs, lower_bound, upper_bound, invert.
10395 (vrp_val_is_min): Add handle_pointers argument.
10396 (vrp_val_is_max): Same.
10397 (extract_range_from_unary_expr): Remove.
10398 (extract_range_from_binary_expr): Remove.
10399 (range_fold_unary_expr): New.
10400 (range_fold_binary_expr): New.
10401 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10402 range_fold_binary_expr instead of extract_range_from_binary_expr.
10403 (vr_values::extract_range_basic): Same.
10404 (vr_values::extract_range_from_unary_expr): Call
10405 range_fold_unary_expr instead of extract_range_from_unary_expr.
10406 * wide-int-range.cc: Remove.
10407 * wide-int-range.h: Remove.
10408
10409 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
10410
10411 * config/rs6000/rs6000.c (mem_operand_gpr): Use
10412 SIGNED_16BIT_OFFSET_EXTRA_P macro.
10413 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10414 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10415 macro.
10416
10417 2019-10-02 Joseph Myers <joseph@codesourcery.com>
10418
10419 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10420 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10421 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10422 * glimits.h: Likewise.
10423
10424 2019-10-03 Jakub Jelinek <jakub@redhat.com>
10425
10426 PR rtl-optimization/91976
10427 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10428 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
10429 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
10430
10431 2019-10-02 Martin Sebor <msebor@redhat.com>
10432
10433 PR tree-optimization/80936
10434 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10435
10436 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10437
10438 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10439 instead of reg_class_contents[ALL_REGS].
10440
10441 2019-09-30 Jason Merrill <jason@redhat.com>
10442
10443 Add some hash_map_safe_* functions like vec_safe_*.
10444 * hash-map.h (default_hash_map_size): New variable.
10445 (create_ggc): Use it as default argument.
10446 (hash_map_maybe_create, hash_map_safe_get)
10447 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10448
10449 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10450
10451 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10452 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10453 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10454 (can_inline_edge_by_limits_p): Use it.
10455 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10456 (want_inline_small_function_p): Use O2 bounds.
10457 (edge_badness): LIkewise.
10458 * opts.c (default_options): Add OPT_finline_functions.
10459 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10460 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10461 New parameters.
10462 * doc/invoke.texi (-finline-functions): Update documentation.
10463 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10464 inline-min-speedup-O2): Document.
10465 (early-inlining-insns-O2): Simplify docs.
10466
10467 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10468
10469 PR rtl-optimization/87047
10470 * ifcvt.c (average_cost): New static function. Use it...
10471 (noce_process_if_block): ... here.
10472
10473 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10474
10475 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10476 * config/rs6000/rs6000-string.c (expand_block_move): Add
10477 might_overlap parm.
10478 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10479 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10480
10481 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10482
10483 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10484 (expand_builtin_memcpy): Use might_overlap parm.
10485 (expand_builtin_mempcpy_args): Use might_overlap parm.
10486 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10487 (expand_builtin_memory_copy_args): Add might_overlap parm.
10488 * expr.c (emit_block_move_via_cpymem): Rename to
10489 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10490 or movmem optab as appropriate.
10491 (emit_block_move_hints): Add might_overlap parm, do the right
10492 thing for might_overlap==true.
10493 * expr.h (emit_block_move_hints): Update prototype.
10494
10495 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10496
10497 * tree-eh.h (unsplit_eh_edges): Declare.
10498 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10499 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10500 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10501 (struct store_immediate_info): Add lp_nr field.
10502 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10503 initialize lp_nr with it.
10504 (struct merged_store_group): Add lp_nr and only_constants fields.
10505 (merged_store_group::merged_store_group): Initialize them.
10506 (merged_store_group::can_be_merged_into): Deal with them.
10507 (pass_store_merging): Rename terminate_and_release_chain into
10508 terminate_and_process_chain.
10509 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10510 renaming and remove useless assertions.
10511 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10512 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10513 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10514 instead of always recomputing it and compare lp_nr.
10515 (imm_store_chain_info::output_merged_store): If the group is in an
10516 active EH region, register new stores if they can throw. Moreover,
10517 if the insertion has created new basic blocks, adjust the PHI nodes
10518 of the post landing pad.
10519 (imm_store_chain_info::output_merged_stores): If the original stores
10520 are in an active EH region, deregister them.
10521 (lhs_valid_for_store_merging_p): Prettify.
10522 (adjust_bit_pos): New function extracted from...
10523 (mem_valid_for_store_merging): ...here. Use it for the base address
10524 and also for the offset if it is the addition of a constant.
10525 (lp_nr_for_store): New function.
10526 (pass_store_merging::process_store): Change return type to bool.
10527 Call lp_nr_for_store to initialize the store info. Propagate the
10528 return status of various called functions to the return value.
10529 (store_valid_for_store_merging_p): New predicate.
10530 (enum basic_block_status): New enumeration.
10531 (get_status_for_store_merging): New function.
10532 (pass_store_merging::execute): If the function can throw and catch
10533 non-call exceptions, unsplit the EH edges on entry and clean up the
10534 CFG on exit if something changed. Call get_status_for_store_merging
10535 for every basic block and keep the chains open across basic blocks
10536 when possible. Terminate and process open chains at the end, if any.
10537
10538 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10539
10540 * reginfo.c (globalize_reg): Fix shadowed variable in
10541 function_abis walk.
10542
10543 2019-10-02 Martin Jambor <mjambor@suse.cz>
10544
10545 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10546 do not compute some stuff when set.
10547 (cgraph_node::create_edge): Likewise.
10548 (cgraph_node::create_indirect_edge): Renamed last parameter to
10549 coning_p and flipped its meaning, don't even calculate
10550 inline_failed when set.
10551 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10552 (symbol_table::::create_edge): Likewise.
10553 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10554 the default value.
10555 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10556 call graph edge creating functions.
10557
10558 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10559
10560 PR c++/91222
10561 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10562 namespace types.
10563
10564 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10565
10566 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10567
10568 2019-10-02 Richard Biener <rguenther@suse.de>
10569
10570 * tree-vectorizer.h (vect_transform_reduction): Declare.
10571 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10572 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10573 stmt transform to ...
10574 (vect_transform_reduction): ... this.
10575
10576 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10577
10578 * omp-low.c (lower_omp_target): Dereference optional argument
10579 to work with the right pointer.
10580
10581 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10582
10583 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10584 false.
10585 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10586 * langhooks.h (omp_is_optional_argument): New hook.
10587 * omp-general.c (omp_is_optional_argument): New.
10588 * omp-general.h (omp_is_optional_argument): New declaration.
10589 * omp-low.c (lower_omp_target): Create temporary for received value
10590 and take the address for new_var if the original variable was a
10591 DECL_BY_REFERENCE. Use size of referenced object when a
10592 pass-by-reference optional argument used as argument to firstprivate.
10593
10594 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10595
10596 PR tree-optimization/91940
10597 * tree-vect-patterns.c: Include tree-vector-builder.h and
10598 vec-perm-indices.h.
10599 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10600 unpromoting the argument back to uint16_t, or by converting into a
10601 rotate, or into shifts plus ior.
10602
10603 2019-10-02 Richard Biener <rguenther@suse.de>
10604
10605 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10606 New.
10607 (vect_transform_cycle_phi): Declare.
10608 * tree-vect-stmts.c (vect_transform_stmt): Call
10609 vect_transform_cycle_phi.
10610 * tree-vect-loop.c (vectorizable_reduction): Split out
10611 PHI transformation stage to ...
10612 (vect_transform_cycle_phi): ... here.
10613
10614 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10615
10616 PR middle-end/91957
10617 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10618 eliminable registers.
10619 (make_hard_regno_live): Likewise, and don't make them live.
10620
10621 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10622
10623 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10624 Call pp_emit_prefix.
10625 (layout::print_source_line): Likewise.
10626 (layout::start_annotation_line): Likewise.
10627 (diagnostic_show_locus): Remove call to temporarily clear the
10628 prefix.
10629 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10630 interaction of pp_set_prefix with rulers and fix-it hints.
10631 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10632 prefix when calling diagnostic_show_locus, rather than destroying
10633 it afterwards.
10634 (print_parseable_fixits): Temporarily clear prefix.
10635 * pretty-print.c (pp_format): Save and restore line_length, rather
10636 than assuming it is zero.
10637 (pp_output_formatted_text): Remove assertion that line_length is
10638 zero.
10639
10640 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10641
10642 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10643 Rename to ...
10644 (nonoverlapping_refs_since_match_p): ... this; handle also
10645 ARRAY_REFs.
10646 (alias_stats): Update stats.
10647 (dump_alias_stats): Likewise.
10648 (cheap_array_ref_low_bound): New function.
10649 (aliasing_matching_component_refs_p): Add partial_overlap
10650 argument;
10651 pass it to nonoverlapping_refs_since_match_p.
10652 (aliasing_component_refs_walk): Update call of
10653 aliasing_matching_component_refs_p
10654 (nonoverlapping_array_refs_p): New function.
10655 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10656 indirect_refs_may_alias_p): Update calls of
10657 nonoverlapping_refs_since_match_p.
10658
10659 2019-10-01 Maya Rashish <coypu@sdf.org>
10660
10661 PR target/85401
10662 * ira-color.c (allocno_copy_cost_saving): Call
10663 ira_init_register_move_cost_if_necessary.
10664
10665 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10666
10667 * Makefile.in (gnat_install_lib): New variable.
10668 * configure.ac: Substitute it.
10669 * configure: Regenerate.
10670
10671 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10672
10673 PR lto/91222
10674 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10675 is matched with non-C++ type
10676
10677 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10678
10679 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10680 after local CSE.
10681
10682 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10683
10684 * doc/invoke.texi (early-inlining-insns-O2): Document.
10685 (early-inlining-insns): Update.
10686 * params.def (early-inlining-insns-O2): New bound.
10687 (early-inlining-insns): Update docs.
10688 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10689
10690 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10691
10692 PR target/88562
10693 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10694 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10695 a memory access insn.
10696
10697 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10698
10699 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10700 vpmsumd.
10701
10702 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10703
10704 PR target/77918
10705 * config/s390/s390.c (s390_expand_vec_compare): Use
10706 gen_vec_cmpordered and gen_vec_cmpunordered.
10707 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10708 vec_unordered): Delete.
10709 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10710 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10711 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10712 (vec_cmp<code>): Generic dispatcher.
10713
10714 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10715
10716 PR target/77918
10717 * config/s390/vector.md (V_HW): Add V1TI in order to make
10718 vcond$a$b generate vcondv1tiv1tf.
10719
10720 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10721
10722 PR rtl-optimization/91948
10723 * ira-build.c (ira_create_allocno): Initialize
10724 ALLOCNO_CROSSED_CALLS_ABIS.
10725 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10726 than regno to ira_need_caller_save_p.
10727
10728 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10729
10730 * config/i386/i386-options.c
10731 (ix86_recompute_optlev_based_flags): New, moved out of...
10732 (ix86_option_override_internal): ... this. Call it.
10733 (ix86_override_options_after_change): Call it here too.
10734
10735 PR debug/91507
10736 * dwarf2out.c (override_type_for_decl_p): New.
10737 (gen_variable_die): Use it.
10738
10739 2019-10-01 Richard Biener <rguenther@suse.de>
10740
10741 * tree-vect-loop.c (vectorizable_reduction): Move variables
10742 to where they are used.
10743
10744 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10745
10746 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10747 (build_def_use): Use PC instead of CC0 in a comment.
10748
10749 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10750
10751 * rtl.def (CLOBBER_HIGH): Delete.
10752 * doc/rtl.texi (clobber_high): Remove documentation.
10753 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10754 (reg_is_clobbered_by_clobber_high): Delete.
10755 (gen_hard_reg_clobber_high): Likewise.
10756 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10757 * cfgexpand.c (expand_gimple_stmt): Likewise.
10758 * combine-stack-adj.c (single_set_for_csa): Likewise.
10759 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10760 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10761 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10762 * cse.c (invalidate_reg): Remove clobber_high parameter.
10763 (invalidate): Update call accordingly.
10764 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10765 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10766 (count_reg_usage, insn_live_p): Likewise.
10767 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10768 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10769 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10770 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10771 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10772 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10773 (mark_nonreg_stores_2): Likewise.
10774 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10775 (df_get_call_refs): Likewise.
10776 * dwarf2out.c (mem_loc_descriptor): Likewise.
10777 * emit-rtl.c (verify_rtx_sharing): Likewise.
10778 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10779 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10780 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10781 * genemit.c (gen_exp, gen_insn): Likewise.
10782 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10783 * haifa-sched.c (haifa_classify_rtx): Likewise.
10784 * ira-build.c (create_insn_allocnos): Likewise.
10785 * ira-costs.c (scan_one_insn): Likewise.
10786 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10787 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10788 * jump.c (mark_jump_label_1): Likewise.
10789 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10790 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10791 handling.
10792 (mark_not_eliminable): Likewise.
10793 * lra-lives.c (process_bb_lives): Likewise.
10794 * lra.c (new_insn_reg): Remove clobber_high parameter.
10795 (collect_non_operand_hard_regs): Likewise. Update call to new
10796 insn_reg. Remove CLOBBER_HIGH handling.
10797 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10798 to collect_non_operand_hard_regs.
10799 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10800 Update call to new_insn_reg.
10801 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10802 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10803 (move2add_note_store): Likewise.
10804 * print-rtl.c (print_pattern): Likewise.
10805 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10806 (if_test_bypass_p): Likewise.
10807 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10808 * reginfo.c (reg_scan_mark_refs): Likewise.
10809 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10810 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10811 (forget_old_reloads_1): Likewise.
10812 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10813 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10814 (dbr_schedule): Likewise.
10815 * resource.c (update_live_status, mark_referenced_resources)
10816 (mark_set_resources): Likewise.
10817 * rtl.c (copy_rtx): Likewise.
10818 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10819 (note_pattern_stores): Likewise.
10820 (reg_is_clobbered_by_clobber_high): Delete.
10821 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10822 CLOBBER_HIGH handling.
10823
10824 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10825
10826 PR target/91452
10827 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10828 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10829 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10830 Handle ARM_PCS_TLSDESC.
10831 (aarch64_tlsdesc_abi_id): New function.
10832 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10833 rtx instead of a list of clobbers and clobber_highs.
10834 (tlsdesc_small_<mode>): Update accordingly.
10835
10836 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10837
10838 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10839 extra callee_abi argument.
10840 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10841 Insert a CALLEE_ABI unspec into the call pattern as the second
10842 element in the PARALLEL.
10843 (aarch64_simd_call_p): Delete.
10844 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10845 the new CALLEE_ABI element of the PARALLEL.
10846 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10847 from the function type, if given.
10848 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10849 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10850 when passed the function_arg_info end marker.
10851 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10852 final argument of gen_sibcall.
10853 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10854 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10855 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10856 pattern.
10857 (call_value): Likewise operand 3.
10858 (sibcall): Likewise operand 2. Place the unspec before rather than
10859 after the return.
10860 (sibcall_value): Likewise operand 3.
10861 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10862 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10863 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10864 constraint strings.
10865 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10866
10867 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10868
10869 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10870 choose_hard_reg_mode.
10871 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10872
10873 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10874
10875 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10876 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10877 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10878
10879 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10880
10881 * diagnostic-show-locus.c (line_label::line_label): Initialize
10882 m_has_vbar.
10883 (line_label::comparator): Reverse the sort order by m_state_idx,
10884 so that when the list is walked backwards the labels appear in
10885 order of insertion into the rich_location.
10886 (line_label::m_has_vbar): New field.
10887 (layout::print_any_labels): When dealing with multiple labels at
10888 the same line and column, only print vertical bars for the one
10889 with the highest label_line.
10890 (selftest::test_one_liner_labels): Update test for multiple labels
10891 to expect the labels to be in the order of insertion into the
10892 rich_location. Add a test for many such labels, where the column
10893 numbers are out-of-order relative to the insertion order.
10894
10895 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10896
10897 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10898 (ix86_frame::expensive_count): Likewise.
10899 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10900 of use_fast_prologue_epilogue robust against incidental changes
10901 in function size.
10902
10903 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10904
10905 PR target/77918
10906 * config/s390/vector.md (vec_unordered<mode>): Call
10907 gen_vec_ordered<mode>.
10908
10909 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10910
10911 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10912 New pattern for ASRD.
10913 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10914 * internal-fn.def (IFN_DIV_POW2): New internal function.
10915 * optabs.def (sdiv_pow2_optab): New optab.
10916 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10917 Modify pattern to support new operation.
10918 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10919 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10920 Document new target selector.
10921
10922 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10923
10924 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10925 to test whether we're compiling a vector PCS function and to test
10926 whether the function needs to save a particular register.
10927 Remove the vector PCS handling of df_set_regs_ever_live.
10928 (aarch64_components_for_bb): Use crtl->abi to test whether
10929 the function needs to save a particular register.
10930 (aarch64_process_components): Use crtl->abi to test whether
10931 we're compiling a vector PCS function.
10932 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10933 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10934
10935 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10936
10937 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10938 Delete.
10939 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10940 whether the block calls a function that clobbers more registers
10941 than the current function is allowed to.
10942 (aarch64_use_simple_return_insn_p): Delete.
10943 * config/aarch64/aarch64.md (simple_return): Remove condition.
10944
10945 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10946
10947 * function-abi.h (function_abi_aggregator): New class.
10948 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10949 function.
10950 * ira.c (update_equiv_regs_prescan): New function. Call
10951 set_paradoxical_subreg here rather than...
10952 (update_equiv_regs): ...here.
10953 (ira): Call update_equiv_regs_prescan.
10954
10955 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10956
10957 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10958 IN_TARGET_CODE.
10959 (call_used_or_fixed_regs): Likewise.
10960 (call_used_or_fixed_reg_p): Likewise.
10961 * reginfo.c (regs_invalidated_by_call): New macro.
10962
10963 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10964
10965 * shrink-wrap.c: Include function-abi.h.
10966 (requires_stack_frame_p): Use crtl->abi to test whether the
10967 current function can use a register without saving it first.
10968
10969 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10970
10971 * sel-sched-ir.h (_def::crosses_call): Replace with...
10972 (_def::crossed_call_abis): ..this new field.
10973 (def_list_add): Take a mask of ABIs instead of a crosses_call
10974 boolean.
10975 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10976 of _def accordingly.
10977 * sel-sched.c: Include function-abi.h.
10978 (hard_regs_data::regs_for_call_clobbered): Delete.
10979 (reg_rename::crosses_call): Replace with...
10980 (reg_rename::crossed_call_abis): ...this new field.
10981 (fur_static_params::crosses_call): Replace with...
10982 (fur_static_params::crossed_call_abis): ...this new field.
10983 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10984 (init_hard_regs_data): Use crtl->abi to test which registers the
10985 current function would need to save before it uses them.
10986 (mark_unavailable_hard_regs): Update handling of call-clobbered
10987 registers, using call_clobbers_in_region to find out which registers
10988 might be call-clobbered (but without taking -fipa-ra into account
10989 for now). Remove separate handling of partially call-clobbered
10990 registers.
10991 (verify_target_availability): Use crossed_call_abis instead of
10992 crosses_call.
10993 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10994 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10995
10996 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10997
10998 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10999 function to test whether a register is fully or partly clobbered.
11000
11001 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11002
11003 * rtlanal.c: Include function-abi.h.
11004 (reg_set_p): Use insn_callee_abi to get the ABI of the called
11005 function and clobbers_reg_p to test whether the register
11006 is call-clobbered.
11007 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
11008 to get the ABI of the called function and full_reg_clobbers to
11009 get the set of fully call-clobbered registers. Warn about the
11010 pitfalls of using this mode.
11011
11012 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11013
11014 * reload.c: Include function-abi.h.
11015 (find_equiv_reg): Use clobbers_reg_p to test whether either
11016 of the equivalent registers is clobbered by a call.
11017 * reload1.c: Include function-abi.h.
11018 (reg_reloaded_call_part_clobbered): Delete.
11019 (reload): Use crtl->abi to test which registers would need
11020 saving in the prologue before use.
11021 (find_reg): Likewise.
11022 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
11023 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
11024 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
11025
11026 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11027
11028 * regrename.h (du_head::call_clobber_mask): New field.
11029 (du_head::need_caller_save_reg): Replace with...
11030 (du_head::call_abis): ...this new field.
11031 * regrename.c: Include function-abi.h.
11032 (call_clobbered_in_chain_p): New function.
11033 (check_new_reg_p): Use crtl->abi when deciding whether a register
11034 is free for use after RA. Use call_clobbered_in_chain_p to test
11035 whether a candidate register would be clobbered by a call.
11036 (find_rename_reg): Don't add call-clobber conflicts here.
11037 (rename_chains): Check call_abis instead of need_caller_save_reg.
11038 (merge_chains): Update for changes to du_head.
11039 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
11040 target. Record the ABI identifier in call_abis and the set of
11041 fully or partially clobbered registers in call_clobber_mask.
11042 Add fully-clobbered registers to hard_conflicts here rather
11043 than in find_rename_reg.
11044 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
11045 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
11046 * config/aarch64/falkor-tag-collision-avoidance.c: Include
11047 function-abi.h.
11048 * config/c6x/c6x.c: Likewise.
11049
11050 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11051
11052 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
11053 mode of the register when deciding whether it is no longer
11054 available after a call.
11055
11056 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11057
11058 * recog.c: Include function-abi.h.
11059 (peep2_find_free_register): Use crtl->abi when deciding whether
11060 a register is free for use after RA.
11061
11062 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11063
11064 * postreload-gcse.c: Include regs.h and function-abi.h.
11065 (record_opr_changes): Use insn_callee_abi to get the ABI of the
11066 call insn target. Conservatively assume that partially-clobbered
11067 registers are altered.
11068
11069 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11070
11071 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
11072 when deciding whether a register is free for use after RA.
11073 (reload_combine): Remove unnecessary use of fixed_reg_set.
11074 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
11075 call insn target. Use reg_mode when testing whether a register
11076 is no longer available.
11077
11078 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11079
11080 * target.def (return_call_with_max_clobbers): Delete.
11081 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11082 * doc/tm.texi: Regenerate.
11083 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
11084 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11085 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
11086 (lra_reg::call_insn): Delete.
11087 * lra.c: Include function-abi.h.
11088 (initialize_lra_reg_info_element): Don't initialize the fields above.
11089 (lra): Use crtl->abi to test whether the current function needs to
11090 save a register in the prologue. Remove special pre-inheritance
11091 lra_create_live_ranges pass for flag_ipa_ra.
11092 * lra-assigns.c: Include function-abi.h
11093 (find_hard_regno_for_1): Use crtl->abi to test whether the current
11094 function needs to save a register in the prologue.
11095 (lra_assign): Assert that registers aren't allocated to a
11096 conflicting register, rather than checking only for overlaps
11097 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
11098 and for registers that are not live across a call.
11099 * lra-constraints.c (last_call_for_abi): New variable.
11100 (full_and_partial_call_clobbers): Likewise.
11101 (setup_next_usage_insn): Remove the register from
11102 full_and_partial_call_clobbers.
11103 (need_for_call_save_p): Use call_clobbered_in_region_p to test
11104 whether the register needs a caller save.
11105 (need_for_split_p): Use full_and_partial_reg_clobbers instead
11106 of call_used_or_fixed_regs.
11107 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
11108 full_and_partial_call_clobbers.
11109 * lra-lives.c (check_pseudos_live_through_calls): Replace
11110 last_call_used_reg_set and call_insn arguments with an abi argument.
11111 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
11112 as the set of conflicting registers.
11113 (calls_have_same_clobbers_p): Delete.
11114 (process_bb_lives): Track the ABI of the last call instead of an
11115 insn/HARD_REG_SET pair. Update calls to
11116 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
11117 the set of registers that could be clobbered by an EH edge.
11118 Include partially-clobbered as well as fully-clobbered registers.
11119 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
11120 * lra-remat.c: Include function-abi.h.
11121 (call_used_regs_arr_len, call_used_regs_arr): Delete.
11122 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
11123 registers and bitmap_view to combine them into dead_regs.
11124 (call_used_input_regno_present_p): Take a function_abi argument
11125 and use it to test whether a register is call-clobbered.
11126 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
11127 call insn target. Update tje call to call_used_input_regno_present_p.
11128 (do_remat): Likewise.
11129 (lra_remat): Remove the initialization of call_used_regs_arr_len
11130 and call_used_regs_arr.
11131
11132 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11133
11134 * loop-iv.c: Include regs.h and function-abi.h.
11135 (simplify_using_initial_values): Use insn_callee_abi to get the
11136 ABI of the call insn target. Conservatively assume that
11137 partially-clobbered registers are altered.
11138
11139 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11140
11141 * function-abi.h (call_clobbers_in_region): Declare.
11142 (call_clobbered_in_region_p): New function.
11143 * function-abi.cc (call_clobbers_in_region): Likewise.
11144 * ira-int.h: Include function-abi.h.
11145 (ira_allocno::crossed_calls_abis): New field.
11146 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
11147 (ira_need_caller_save_regs): New function.
11148 (ira_need_caller_save_p): Likewise.
11149 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
11150 of call_used_or_fixed_regs.
11151 (do_reload): Use crtl->abi to test whether the current function
11152 needs to save a register in the prologue. Count registers that
11153 need to be saved rather than registers that don't.
11154 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
11155 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11156 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
11157 (propagate_some_info_from_allocno): Likewise.
11158 (copy_info_to_removed_store_destinations): Likewise.
11159 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
11160 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
11161 (ira_build): Use ira_need_caller_save_regs instead of
11162 call_used_or_fixed_regs.
11163 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
11164 whether the current function would need to save a register
11165 before using it.
11166 (calculate_spill_cost): Likewise.
11167 (allocno_reload_assign): Use ira_need_caller_save_regs and
11168 ira_need_caller_save_p instead of call_used_or_fixed_regs.
11169 * ira-conflicts.c (ira_build_conflicts): Use
11170 ira_need_caller_save_regs rather than call_used_or_fixed_regs
11171 as the set of call-clobbered registers. Remove the
11172 call_used_or_fixed_regs mask from the calculation of
11173 temp_hard_reg_set and mask its use instead. Remove special
11174 handling of partially-clobbered registers.
11175 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
11176 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
11177 calculate the set of conflicting registers for calls that
11178 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
11179 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
11180 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11181 Use eh_edge_abi to calculate the set of registers that could
11182 be clobbered by an EH edge. Include partially-clobbered as
11183 well as fully-clobbered registers.
11184
11185 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11186
11187 * haifa-sched.c: Include function-abi.h.
11188 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
11189 the function would need to save a register before using it.
11190
11191 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11192
11193 * gcse.c: Include function-abi.h.
11194 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
11195 the call insn target. Invalidate partially call-clobbered
11196 registers as well as fully call-clobbered ones.
11197
11198 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11199
11200 * function.c (aggregate_value_p): Work out which ABI the
11201 function is using before testing which registers are at least
11202 partly preserved by a call.
11203
11204 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11205
11206 * early-remat.c: Include regs.h and function-abi.h.
11207 (early_remat::maybe_add_candidate): Don't check for call-clobbered
11208 registers here.
11209 (early_remat::restrict_remat_for_unavail_regs): New function.
11210 (early_remat::restrict_remat_for_call): Likewise.
11211 (early_remat::process_block): Before calling emit_remat_insns
11212 for a previous call in the block, invalidate any candidates
11213 that would clobber call-preserved registers.
11214 (early_remat::emit_remat_insns_for_block): Likewise for the
11215 final call in a block. Do the same thing for live-in registers
11216 when calling emit_remat_insns at the head of a block.
11217
11218 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11219
11220 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
11221 whether the current function needs to save at least part of a
11222 register before using it.
11223 (df_get_exit_block_use_set): Likewise for epilogue restores.
11224
11225 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11226
11227 * df-problems.c: Include regs.h and function-abi.h.
11228 (df_rd_problem_data): Rename sparse_invalidated_by_call to
11229 sparse_invalidated_by_eh and dense_invalidated_by_call to
11230 dense_invalidated_by_eh.
11231 (df_print_bb_index): Update accordingly.
11232 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
11233 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
11234 that are clobbered by an EH edge. Clobber partially-clobbered
11235 registers as well as fully-clobbered ones.
11236 (df_md_confluence_n): Likewise.
11237 (df_rd_local_compute): Likewise. Update for changes to
11238 df_rd_problem_data.
11239 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
11240 of registers that are clobbered by an EH edge. Includde partially-
11241 clobbered registers as well as fully-clobbered ones.
11242
11243 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11244
11245 * cselib.c (cselib_process_insn): If we know what mode a
11246 register was set in, check whether it is clobbered in that
11247 mode by a call. Only fall back to reg_raw_mode if that fails.
11248
11249 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11250
11251 * cse.c: Include regs.h and function-abi.h.
11252 (invalidate_for_call): Take the call insn as an argument.
11253 Use insn_callee_abi to get the ABI of the call and invalidate
11254 partially clobbered registers as well as fully clobbered ones.
11255 (cse_insn): Update call accordingly.
11256
11257 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11258
11259 * combine.c: Include function-abi.h.
11260 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
11261 of the target of call insns. Invalidate partially-clobbered
11262 registers as well as fully-clobbered ones.
11263
11264 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11265
11266 * cfgloopanal.c: Include regs.h and function-abi.h.
11267 (init_set_costs): Use default_function_abi to test whether
11268 a general register is call-clobbered.
11269
11270 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11271
11272 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
11273 instead of the call-clobbered sets.
11274
11275 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11276
11277 * caller-save.c (setup_save_areas): Remove redundant |s of
11278 fixed_reg_set.
11279 (save_call_clobbered_regs): Likewise. Use the call ABI rather
11280 than call_used_or_fixed_regs to decide whether a REG_RETURNED
11281 value is useful.
11282
11283 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11284
11285 * rtl.h (predefined_function_abi): Declare.
11286 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11287 instead of a boolean call_save flag.
11288 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
11289 accordingly.
11290 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11291 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11292 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
11293 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11294 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11295 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
11296 * reginfo.c (init_reg_modes_target): Likewise.
11297 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11298 instead of a boolean call_save flag.
11299 * targhooks.c: Include function-abi.h.
11300 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
11301 using eh_edge_abi to choose the mode.
11302
11303 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11304
11305 * target.def (hard_regno_call_part_clobbered): Take an ABI
11306 identifier instead of an rtx_insn.
11307 * doc/tm.texi: Regenerate.
11308 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
11309 (hook_bool_uint_uint_mode_false): New function.
11310 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
11311 (hook_bool_uint_uint_mode_false): New function.
11312 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11313 Take an ABI identifier instead of an rtx_insn.
11314 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
11315 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
11316 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
11317 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
11318 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
11319 Likewise.
11320 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
11321 * cselib.c: Include function-abi.h.
11322 (cselib_process_insn): Update call to
11323 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11324 to get the appropriate ABI identifier.
11325 * function-abi.cc (predefined_function_abi::initialize): Update call
11326 to targetm.hard_regno_call_part_clobbered.
11327 * ira-conflicts.c (ira_build_conflicts): Likewise.
11328 * ira-costs.c (ira_tune_allocno_costs): Likewise.
11329 * lra-constraints.c: Include function-abi.h.
11330 (need_for_call_save_p): Update call to
11331 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11332 to get the appropriate ABI identifier.
11333 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
11334 * regcprop.c (copyprop_hardreg_forward_1): Update call
11335 to targetm.hard_regno_call_part_clobbered.
11336 * reginfo.c (choose_hard_reg_mode): Likewise.
11337 * regrename.c (check_new_reg_p): Likewise.
11338 * reload.c (find_equiv_reg): Likewise.
11339 * reload1.c (emit_reload_insns): Likewise.
11340 * sched-deps.c: Include function-abi.h.
11341 (deps_analyze_insn): Update call to
11342 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11343 to get the appropriate ABI identifier.
11344 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
11345 call to targetm.hard_regno_call_part_clobbered.
11346 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
11347
11348 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11349
11350 * config/i386/i386.c: Include function-abi.h.
11351 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
11352 if they preserve some 256-bit or 512-bit SSE registers.
11353
11354 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11355
11356 * target.def (insn_callee_abi): New hook.
11357 (remove_extra_call_preserved_regs): Delete.
11358 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
11359 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11360 * doc/tm.texi: Regenerate.
11361 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
11362 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
11363 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
11364 insn argument.
11365 (aarch64_remove_extra_call_preserved_regs): Delete.
11366 (aarch64_insn_callee_abi): New function.
11367 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11368 (TARGET_INSN_CALLEE_ABI): New macro.
11369 * rtl.h (get_call_fndecl): Declare.
11370 (cgraph_rtl_info): Fix formatting. Tweak comment for
11371 function_used_regs. Remove function_used_regs_valid.
11372 * rtlanal.c (get_call_fndecl): Moved from final.c
11373 * function-abi.h (insn_callee_abi): Declare.
11374 (target_function_abi_info): Mention insn_callee_abi.
11375 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11376 way to get_call_reg_set_usage did.
11377 (insn_callee_abi): New function.
11378 * regs.h (get_call_reg_set_usage): Delete.
11379 * final.c: Include function-abi.h.
11380 (collect_fn_hard_reg_usage): Add fixed and stack registers to
11381 function_used_regs before the main loop rather than afterwards.
11382 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
11383 if function_used_regs ends up not being useful.
11384 (get_call_fndecl): Move to rtlanal.c
11385 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11386 * caller-save.c: Include function-abi.h.
11387 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11388 instead of get_call_reg_set_usage.
11389 * cfgcleanup.c: Include function-abi.h.
11390 (old_insns_match_p): Use insn_callee_abi instead of
11391 get_call_reg_set_usage.
11392 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11393 a tree.
11394 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
11395 function_used_regs.
11396 * df-scan.c: Include function-abi.h.
11397 (df_get_call_refs): Use insn_callee_abi instead of
11398 get_call_reg_set_usage.
11399 * ira-lives.c: Include function-abi.h.
11400 (process_bb_node_lives): Use insn_callee_abi instead of
11401 get_call_reg_set_usage.
11402 * lra-lives.c: Include function-abi.h.
11403 (process_bb_lives): Use insn_callee_abi instead of
11404 get_call_reg_set_usage.
11405 * postreload.c: Include function-abi.h.
11406 (reload_combine): Use insn_callee_abi instead of
11407 get_call_reg_set_usage.
11408 * regcprop.c: Include function-abi.h.
11409 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11410 get_call_reg_set_usage.
11411 * resource.c: Include function-abi.h.
11412 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11413 instead of get_call_reg_set_usage.
11414 * var-tracking.c: Include function-abi.h.
11415 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11416 get_call_reg_set_usage.
11417
11418 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11419
11420 * target.def (fntype_abi): New target hook.
11421 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11422 * doc/tm.texi: Regenerate.
11423 * target.h (predefined_function_abi): Declare.
11424 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11425 if defined.
11426 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11427 * config/aarch64/aarch64.c: Include function-abi.h.
11428 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11429 (TARGET_FNTYPE_ABI): Define.
11430
11431 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11432
11433 * Makefile.in (OBJS): Add function-abi.o.
11434 (GTFILES): Add function-abi.h.
11435 * function-abi.cc: New file.
11436 * function-abi.h: Likewise.
11437 * emit-rtl.h (rtl_data::abi): New field.
11438 * function.c: Include function-abi.h.
11439 (prepare_function_start): Initialize crtl->abi.
11440 * read-rtl-function.c: Include regs.h and function-abi.h.
11441 (read_rtl_function_body): Initialize crtl->abi.
11442 (read_rtl_function_body_from_file_range): Likewise.
11443 * reginfo.c: Include function-abi.h.
11444 (init_reg_sets_1): Initialize default_function_abi.
11445 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11446 when making a register global.
11447 * target-globals.h (this_target_function_abi_info): Declare.
11448 (target_globals::function_abi_info): New field.
11449 (restore_target_globals): Copy it.
11450 * target-globals.c: Include function-abi.h.
11451 (default_target_globals): Initialize the function_abi_info field.
11452 (target_globals): Allocate it.
11453 (save_target_globals): Free it.
11454
11455 2019-09-30 Nick Clifton <nickc@redhat.com>
11456
11457 PR target/85978
11458 * config/frv/frv.c (frv_register_move_cost): Add break statements
11459 to avoid falling through to the wrong cases. Tidy code.
11460
11461 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11462
11463 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11464 For multi-registers modes, test how big each register part is.
11465
11466 2019-09-30 Nick Clifton <nickc@redhat.com>
11467
11468 PR target/59205
11469 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11470 (TARGET_ASM_SELECT_SECTION): Remove definition.
11471 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11472
11473 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11474
11475 * emit-rtl.c (init_raw_REG): New function.
11476 (gen_raw_REG): Use init_raw_REG.
11477 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11478 macros.
11479 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11480 * rtl.h (rtx_init): New function.
11481 (rtx_alloca): New function.
11482 (init_raw_REG): New function.
11483 (alloca_raw_REG): New macro.
11484
11485 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11486
11487 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11488 (pcrel_local_address): Replace pcrel_address predicate, use the
11489 new function address_to_insn_form.
11490 (pcrel_external_address): Replace with new implementation using
11491 address_to_insn_form..
11492 (prefixed_mem_operand): Delete predicate which is now unused.
11493 (pcrel_external_mem_operand): Delete predicate which is now
11494 unused.
11495 * config/rs6000/rs6000-protos.h (enum insn_form): New
11496 enumeration.
11497 (enum non_prefixed_form): New enumeration.
11498 (address_to_insn_form): New declaration.
11499 (prefixed_load_p): New declaration.
11500 (prefixed_store_p): New declaration.
11501 (prefixed_paddi_p): New declaration.
11502 (rs6000_asm_output_opcode): New declaration.
11503 (rs6000_final_prescan_insn): Move declaration and update calling
11504 signature.
11505 (address_is_prefixed): New helper inline function.
11506 * config/rs6000/rs6000.c(print_operand_address): Check for either
11507 PC-relative local symbols or PC-relative external symbols.
11508 (rs6000_emit_move): Support loading PC-relative addresses.
11509 (mode_supports_prefixed_address_p): Delete, no longer used.
11510 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11511 (address_to_insn_form): New function to decode an address format.
11512 (reg_to_non_prefixed): New function to identify what the
11513 non-prefixed memory instruction format is for a register.
11514 (prefixed_load_p): New function to identify prefixed loads.
11515 (prefixed_store_p): New function to identify prefixed stores.
11516 (prefixed_paddi_p): New function to identify prefixed load
11517 immediates.
11518 (next_insn_prefixed_p): New static state variable.
11519 (rs6000_final_prescan_insn): New function to determine if an insn
11520 uses a prefixed instruction.
11521 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11522 prefixed instruction.
11523 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11524 (ASM_OUTPUT_OPCODE): New target hook.
11525 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11526 prefixed instructions.
11527 (prefixed_length): New insn attribute for the size of prefixed
11528 instructions.
11529 (non_prefixed_length): New insn attribute for the size of
11530 non-prefixed instructions.
11531 (pcrel_local_addr): New insn to load up a local PC-relative
11532 address.
11533 (pcrel_extern_addr): New insn to load up an external PC-relative
11534 address.
11535 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11536 GPR and loading a 128-bit floating point type to a GPR.
11537
11538 2019-09-30 Richard Biener <rguenther@suse.de>
11539
11540 * gimple.c (gimple_get_lhs): For PHIs return the result.
11541 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11542 SLP instance as argument.
11543 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11544 double-reduction PHIs with vectorizable_lc_phi.
11545 (vect_analyze_loop_operations): Adjust.
11546 (vect_create_epilog_for_reduction): Remove all code not dealing
11547 with reduction LC PHI or epilogue generation.
11548 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11549 for live stmts of reductions.
11550 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11551 do not handle defs that are not vect_internal_def.
11552 (can_vectorize_live_stmts): Adjust.
11553 (vect_analyze_stmt): When the vectorized stmt defined a value
11554 used on backedges adjust the backedge uses of vectorized PHIs.
11555
11556 2019-09-30 Martin Jambor <mjambor@suse.cz>
11557
11558 PR ipa/91853
11559 * tree-inline.c (force_value_to_type): New function.
11560 (setup_one_parameter): Use force_value_to_type to convert type.
11561 * tree-inline.c (force_value_to_type): Declare.
11562 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11563 with register type mismatches.
11564
11565 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11566
11567 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11568 32-bit PowerPC.
11569 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11570 * config/rs6000/t-freebsd64: Make use of the above define and build
11571 the 32-bit libraries with secure-plt.
11572
11573 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11574
11575 PR target/91931
11576 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11577 gen_int_mode instead of GEN_INT.
11578
11579 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11580
11581 * config/darwin.c (gen_macho_low): Amend to include the mode
11582 argument.
11583 (machopic_indirect_data_reference): Amend gen_macho_low call
11584 to include mode argument
11585 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11586 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11587 the macho_high expander and two define_insn entries.
11588
11589 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11590
11591 PR bootstrap/90543
11592 * optc-save-gen.awk: Fix up printing string option differences.
11593
11594 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11595
11596 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11597 vec_perm cost to 1 for non-Power7 VSX architectures.
11598
11599 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11600
11601 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11602 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11603 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11604
11605 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11606
11607 * config/darwin.c (gen_macho_high): Amend to include the mode
11608 argument.
11609 (machopic_indirect_data_reference): Amend gen_macho_high call
11610 to include mode argument.
11611 (machopic_legitimize_pic_address): Likewise.
11612 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11613 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11614 the macho_high expander and two define_insn entries.
11615
11616 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11617
11618 PR target/86805
11619 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11620
11621 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11622
11623 PR target/80672
11624 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11625 std::string::compare instead of std::string::find.
11626
11627 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11628
11629 * configure: Regenerate.
11630
11631 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11632
11633 PR middle-end/91920
11634 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11635 variables as shared.
11636
11637 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11638
11639 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11640 replaces the expander and two define_insn entries.
11641 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11642 call.
11643 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11644
11645 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11646
11647 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11648 (fibonacci_heap::nodes): Likewise.
11649 (fibonacci_heap::min_key): Likewise.
11650 (fibonacci_heap::min): Likewise.
11651
11652 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11653
11654 * cgraph.c (cgraph_node::get_fun): Make const.
11655 * cgraph.h (cgraph_node::get_fun): Likewise.
11656
11657 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11658
11659 PR target/91919
11660 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11661 of SImode MULT.
11662
11663 2019-09-27 Richard Biener <rguenther@suse.de>
11664
11665 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11666 (STMT_VINFO_REDUC_FN): Likewise.
11667 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11668 STMT_VINFO_REDUC_FN.
11669 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11670 for condition reductions.
11671 (vect_create_epilog_for_reduction): Compute all required state
11672 from the stmt to be vectorized.
11673 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11674 invocation and remove then dead code. For single def-use chains
11675 record only a single vector stmt.
11676
11677 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11678
11679 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11680 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11681 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11682 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11683 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11684 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11685 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11686 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11687 (aarch64_general_builtin_rsqrt): Declare.
11688 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11689 New function.
11690 (aarch64_mangle_builtin_type): Rename to...
11691 (aarch64_general_mangle_builtin_type): ...this.
11692 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11693 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11694 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11695 aarch64_general_add_builtin instead of add_builtin_function.
11696 (aarch64_init_builtins): Rename to...
11697 (aarch64_general_init_builtins): ...this. Use
11698 aarch64_general_add_builtin instead of add_builtin_function.
11699 (aarch64_builtin_decl): Rename to...
11700 (aarch64_general_builtin_decl): ...this and remove the unused
11701 arguments.
11702 (aarch64_expand_builtin): Rename to...
11703 (aarch64_general_expand_builtin): ...this and remove the unused
11704 arguments.
11705 (aarch64_builtin_rsqrt): Rename to...
11706 (aarch64_general_builtin_rsqrt): ...this.
11707 (aarch64_fold_builtin): Rename to...
11708 (aarch64_general_fold_builtin): ...this. Take the function subcode
11709 and return type as arguments. Remove the "ignored" argument.
11710 (aarch64_gimple_fold_builtin): Rename to...
11711 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11712 subcode and gcall as arguments, and return the new function call.
11713 * config/aarch64/aarch64.c (aarch64_init_builtins)
11714 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11715 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11716 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11717 instead of aarch64_builtin_rsqrt.
11718 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11719 instead of aarch64_mangle_builtin_type.
11720
11721 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11722
11723 * target.def (check_builtin_call): New target hook.
11724 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11725 * doc/tm.texi: Regenerate.
11726
11727 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11728
11729 PR tree-optimization/91909
11730 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11731 reduc_index parameter. When handling COND_REDUCTION, make sure
11732 that the reduction phi operand is in the correct arm of the
11733 VEC_COND_EXPR.
11734 (vectorizable_reduction): Pass reduc_index to the above.
11735
11736 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11737
11738 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11739 New combine pattern.
11740
11741 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11742
11743 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11744 loop instruction into new basic block before the loop when basic
11745 block that precedes the loop is empty.
11746
11747 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11748
11749 * function.c (gimplify_parameters): Use build_clobber function.
11750 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11751 * tree-inline.c (expand_call_inline): Likewise.
11752 * tree-sra.c (clobber_subtree): Likewise.
11753 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11754 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11755 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11756 lower_omp_target): Likewise.
11757 * omp-expand.c (expand_omp_for_generic): Likewise.
11758 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11759
11760 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11761
11762 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11763 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11764 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11765 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11766 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11767 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11768 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11769 LD_ELEMREV_V16QI): Use the PURE attribute.
11770
11771 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11772
11773 * config/rs6000/darwin.md: Replace the expanders for
11774 load_macho_picbase and reload_macho_picbase with use of '@'
11775 and <mode> in their respective define_insns.
11776 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11777 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11778 Pmode to gen_load_macho_picbase.
11779 * config/rs6000/rs6000.md: Likewise.
11780
11781 2019-09-25 Richard Biener <rguenther@suse.de>
11782
11783 PR tree-optimization/91896
11784 * tree-vect-loop.c (vectorizable_reduction): The single
11785 def-use cycle optimization cannot apply when there's more
11786 than one pattern stmt involved.
11787
11788 2019-09-26 Richard Biener <rguenther@suse.de>
11789
11790 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11791 loop-closed PHIs that are vect_internal_def.
11792 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11793 Simplify.
11794 (vectorizable_lc_phi): New.
11795 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11796 (vect_transform_stmt): Likewise.
11797 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11798 (vectorizable_lc_phi): Declare.
11799
11800 2019-09-26 Richard Biener <rguenther@suse.de>
11801
11802 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11803 vectorizable_reduction for vect_double_reduction_def.
11804 (vect_transform_loop): Likewise.
11805 (vect_create_epilog_for_reduction): Move double-reduction
11806 PHI creation and preheader argument setting of PHIs ...
11807 (vectorizable_reduction): ... here. Also process
11808 vect_double_reduction_def PHIs, creating the vectorized
11809 PHI nodes, remembering the scalar adjustment computed for
11810 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11811 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11812 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11813 Initialize STMT_VINFO_REDUC_CODE.
11814 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11815 (_stmt_vec_info::reduc_code): Likewise.
11816 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11817 (STMT_VINFO_REDUC_CODE): Likewise.
11818
11819 2019-09-26 Matt Turner <mattst88@gmail.com>
11820
11821 PR driver/69471
11822 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11823 (mtune=): Add Negative(mtune=).
11824 (mcpu=): Add Negative(mcpu=).
11825 * config/arm/arm.opt: Likewise.
11826
11827 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11828
11829 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11830 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11831 Define.
11832 * config/arm/arm_acle.h: Define builtins for the above.
11833 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11834 (simd32_op): Handle the above.
11835 * config/arm/unspecs.md: Define unspecs for the above.
11836
11837 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11838
11839 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11840 (arm_<sup>xtb16): Likewise.
11841 (arm_usada8): Likewise.
11842 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11843 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11844 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11845 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11846 __sxtb16, __uxtab16, __uxtb16): Define.
11847 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11848 * config/arm/unspecs.md: Define unspecs for the above.
11849 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11850 (USXTB16): Likewise.
11851 (simd32_op): New int_attribute.
11852 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11853 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11854
11855 2019-09-26 Martin Jambor <mjambor@suse.cz>
11856
11857 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11858 internal_error.
11859
11860 2019-09-26 Martin Jambor <mjambor@suse.cz>
11861
11862 * ipa-sra.c (process_scan_results): Fix continue condition.
11863
11864 2019-09-26 Martin Liska <mliska@suse.cz>
11865
11866 PR tree-optimization/91885
11867 * tree-vectorizer.c (try_vectorize_loop_1): Add
11868 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11869
11870 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11871
11872 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11873 aarch64_plus_immediate rather than aarch64_uimm12_shift
11874 to test for valid PLUS immediates.
11875
11876 2019-09-25 Martin Jambor <mjambor@suse.cz>
11877
11878 * tree-sra.c (no_accesses_p): Remove.
11879 (no_accesses_representant): Likewise.
11880
11881 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11882
11883 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11884 consistenly.
11885 (vaba_s16): Likewise.
11886 (vaba_s32): Likewise.
11887 (vaba_u8): Likewise.
11888 (vaba_u16): Likewise.
11889 (vaba_u32): Likewise.
11890 (vabal_high_s8): Likewise.
11891 (vabal_high_s16): Likewise.
11892 (vabal_high_s32): Likewise.
11893 (vabal_high_u8): Likewise.
11894 (vabal_high_u16): Likewise.
11895 (vabal_high_u32): Likewise.
11896 (vabal_s8): Likewise.
11897 (vabal_s16): Likewise.
11898 (vabal_s32): Likewise.
11899 (vabal_u8): Likewise.
11900 (vabal_u16): Likewise.
11901 (vabal_u32): Likewise.
11902 (vabaq_s8): Likewise.
11903 (vabaq_s16): Likewise.
11904 (vabaq_s32): Likewise.
11905 (vabaq_u8): Likewise.
11906 (vabaq_u16): Likewise.
11907 (vabaq_u32): Likewise.
11908 (vabd_s8): Likewise.
11909 (vabd_s16): Likewise.
11910 (vabd_s32): Likewise.
11911 (vabd_u8): Likewise.
11912 (vabd_u16): Likewise.
11913 (vabd_u32): Likewise.
11914 (vabdl_high_s8): Likewise.
11915 (vabdl_high_s16): Likewise.
11916 (vabdl_high_s32): Likewise.
11917 (vabdl_high_u8): Likewise.
11918 (vabdl_high_u16): Likewise.
11919 (vabdl_high_u32): Likewise.
11920 (vabdl_s8): Likewise.
11921 (vabdl_s16): Likewise.
11922 (vabdl_s32): Likewise.
11923 (vabdl_u8): Likewise.
11924 (vabdl_u16): Likewise.
11925 (vabdl_u32): Likewise.
11926 (vabdq_s8): Likewise.
11927 (vabdq_s16): Likewise.
11928 (vabdq_s32): Likewise.
11929 (vabdq_u8): Likewise.
11930 (vabdq_u16): Likewise.
11931 (vabdq_u32): Likewise.
11932 (vaddlv_s8): Likewise.
11933 (vaddlv_s16): Likewise.
11934 (vaddlv_u8): Likewise.
11935 (vaddlv_u16): Likewise.
11936 (vaddlvq_s8): Likewise.
11937 (vaddlvq_s16): Likewise.
11938 (vaddlvq_s32): Likewise.
11939 (vaddlvq_u8): Likewise.
11940 (vaddlvq_u16): Likewise.
11941 (vaddlvq_u32): Likewise.
11942 (vcvtx_f32_f64): Likewise.
11943 (vcvtx_high_f32_f64): Likewise.
11944 (vcvtxd_f32_f64): Likewise.
11945 (vmla_n_f32): Likewise.
11946 (vmla_n_s16): Likewise.
11947 (vmla_n_s32): Likewise.
11948 (vmla_n_u16): Likewise.
11949 (vmla_n_u32): Likewise.
11950 (vmla_s8): Likewise.
11951 (vmla_s16): Likewise.
11952 (vmla_s32): Likewise.
11953 (vmla_u8): Likewise.
11954 (vmla_u16): Likewise.
11955 (vmla_u32): Likewise.
11956 (vmlal_high_n_s16): Likewise.
11957 (vmlal_high_n_s32): Likewise.
11958 (vmlal_high_n_u16): Likewise.
11959 (vmlal_high_n_u32): Likewise.
11960 (vmlal_high_s8): Likewise.
11961 (vmlal_high_s16): Likewise.
11962 (vmlal_high_s32): Likewise.
11963 (vmlal_high_u8): Likewise.
11964 (vmlal_high_u16): Likewise.
11965 (vmlal_high_u32): Likewise.
11966 (vmlal_n_s16): Likewise.
11967 (vmlal_n_s32): Likewise.
11968 (vmlal_n_u16): Likewise.
11969 (vmlal_n_u32): Likewise.
11970 (vmlal_s8): Likewise.
11971 (vmlal_s16): Likewise.
11972 (vmlal_s32): Likewise.
11973 (vmlal_u8): Likewise.
11974 (vmlal_u16): Likewise.
11975 (vmlal_u32): Likewise.
11976 (vmlaq_n_f32): Likewise.
11977 (vmlaq_n_s16): Likewise.
11978 (vmlaq_n_s32): Likewise.
11979 (vmlaq_n_u16): Likewise.
11980 (vmlaq_n_u32): Likewise.
11981 (vmlaq_s8): Likewise.
11982 (vmlaq_s16): Likewise.
11983 (vmlaq_s32): Likewise.
11984 (vmlaq_u8): Likewise.
11985 (vmlaq_u16): Likewise.
11986 (vmlaq_u32): Likewise.
11987 (vmls_n_f32): Likewise.
11988 (vmls_n_s16): Likewise.
11989 (vmls_n_s32): Likewise.
11990 (vmls_n_u16): Likewise.
11991 (vmls_n_u32): Likewise.
11992 (vmls_s8): Likewise.
11993 (vmls_s16): Likewise.
11994 (vmls_s32): Likewise.
11995 (vmls_u8): Likewise.
11996 (vmls_u16): Likewise.
11997 (vmls_u32): Likewise.
11998 (vmlsl_high_n_s16): Likewise.
11999 (vmlsl_high_n_s32): Likewise.
12000 (vmlsl_high_n_u16): Likewise.
12001 (vmlsl_high_n_u32): Likewise.
12002 (vmlsl_high_s8): Likewise.
12003 (vmlsl_high_s16): Likewise.
12004 (vmlsl_high_s32): Likewise.
12005 (vmlsl_high_u8): Likewise.
12006 (vmlsl_high_u16): Likewise.
12007 (vmlsl_high_u32): Likewise.
12008 (vmlsl_n_s16): Likewise.
12009 (vmlsl_n_s32): Likewise.
12010 (vmlsl_n_u16): Likewise.
12011 (vmlsl_n_u32): Likewise.
12012 (vmlsl_s8): Likewise.
12013 (vmlsl_s16): Likewise.
12014 (vmlsl_s32): Likewise.
12015 (vmlsl_u8): Likewise.
12016 (vmlsl_u16): Likewise.
12017 (vmlsl_u32): Likewise.
12018 (vmlsq_n_f32): Likewise.
12019 (vmlsq_n_s16): Likewise.
12020 (vmlsq_n_s32): Likewise.
12021 (vmlsq_n_u16): Likewise.
12022 (vmlsq_n_u32): Likewise.
12023 (vmlsq_s8): Likewise.
12024 (vmlsq_s16): Likewise.
12025 (vmlsq_s32): Likewise.
12026 (vmlsq_u8): Likewise.
12027 (vmlsq_u16): Likewise.
12028 (vmlsq_u32): Likewise.
12029 (vmovl_high_s8): Likewise.
12030 (vmovl_high_s16): Likewise.
12031 (vmovl_high_s32): Likewise.
12032 (vmovl_high_u8): Likewise.
12033 (vmovl_high_u16): Likewise.
12034 (vmovl_high_u32): Likewise.
12035 (vmovl_s8): Likewise.
12036 (vmovl_s16): Likewise.
12037 (vmovl_s32): Likewise.
12038 (vmovl_u8): Likewise.
12039 (vmovl_u16): Likewise.
12040 (vmovl_u32): Likewise.
12041 (vmovn_high_s16): Likewise.
12042 (vmovn_high_s32): Likewise.
12043 (vmovn_high_s64): Likewise.
12044 (vmovn_high_u16): Likewise.
12045 (vmovn_high_u32): Likewise.
12046 (vmovn_high_u64): Likewise.
12047 (vmovn_s16): Likewise.
12048 (vmovn_s32): Likewise.
12049 (vmovn_s64): Likewise.
12050 (vmovn_u16): Likewise.
12051 (vmovn_u32): Likewise.
12052 (vmovn_u64): Likewise.
12053 (vmull_high_n_s16): Likewise.
12054 (vmull_high_n_s32): Likewise.
12055 (vmull_high_n_u16): Likewise.
12056 (vmull_high_n_u32): Likewise.
12057 (vmull_high_p8): Likewise.
12058 (vmull_high_s8): Likewise.
12059 (vmull_high_s16): Likewise.
12060 (vmull_high_s32): Likewise.
12061 (vmull_high_u8): Likewise.
12062 (vmull_high_u16): Likewise.
12063 (vmull_high_u32): Likewise.
12064 (vmull_n_s16): Likewise.
12065 (vmull_n_s32): Likewise.
12066 (vmull_n_u16): Likewise.
12067 (vmull_n_u32): Likewise.
12068 (vmull_p8): Likewise.
12069 (vmull_s8): Likewise.
12070 (vmull_s16): Likewise.
12071 (vmull_s32): Likewise.
12072 (vmull_u8): Likewise.
12073 (vmull_u16): Likewise.
12074 (vmull_u32): Likewise.
12075 (vpadal_s8): Likewise.
12076 (vpadal_s16): Likewise.
12077 (vpadal_s32): Likewise.
12078 (vpadal_u8): Likewise.
12079 (vpadal_u16): Likewise.
12080 (vpadal_u32): Likewise.
12081 (vpadalq_s8): Likewise.
12082 (vpadalq_s16): Likewise.
12083 (vpadalq_s32): Likewise.
12084 (vpadalq_u8): Likewise.
12085 (vpadalq_u16): Likewise.
12086 (vpadalq_u32): Likewise.
12087 (vpaddl_s8): Likewise.
12088 (vpaddl_s16): Likewise.
12089 (vpaddl_s32): Likewise.
12090 (vpaddl_u8): Likewise.
12091 (vpaddl_u16): Likewise.
12092 (vpaddl_u32): Likewise.
12093 (vpaddlq_s8): Likewise.
12094 (vpaddlq_s16): Likewise.
12095 (vpaddlq_s32): Likewise.
12096 (vpaddlq_u8): Likewise.
12097 (vpaddlq_u16): Likewise.
12098 (vpaddlq_u32): Likewise.
12099 (vpaddq_s8): Likewise.
12100 (vpaddq_s16): Likewise.
12101 (vpaddq_s32): Likewise.
12102 (vpaddq_s64): Likewise.
12103 (vpaddq_u8): Likewise.
12104 (vpaddq_u16): Likewise.
12105 (vpaddq_u32): Likewise.
12106 (vpaddq_u64): Likewise.
12107 (vqdmulh_n_s16): Likewise.
12108 (vqdmulh_n_s32): Likewise.
12109 (vqdmulhq_n_s16): Likewise.
12110 (vqdmulhq_n_s32): Likewise.
12111 (vqmovn_high_s16): Likewise.
12112 (vqmovn_high_s32): Likewise.
12113 (vqmovn_high_s64): Likewise.
12114 (vqmovn_high_u16): Likewise.
12115 (vqmovn_high_u32): Likewise.
12116 (vqmovn_high_u64): Likewise.
12117 (vqmovun_high_s16): Likewise.
12118 (vqmovun_high_s32): Likewise.
12119 (vqmovun_high_s64): Likewise.
12120 (vqrdmulh_n_s16): Likewise.
12121 (vqrdmulh_n_s32): Likewise.
12122 (vqrdmulhq_n_s16): Likewise.
12123 (vqrdmulhq_n_s32): Likewise.
12124 (vrsqrte_u32): Likewise.
12125 (vrsqrteq_u32): Likewise.
12126 (vtst_p8): Likewise.
12127 (vtst_p16): Likewise.
12128 (vtst_p64): Likewise.
12129 (vtstq_p8): Likewise.
12130 (vtstq_p16): Likewise.
12131 (vtstq_p64): Likewise.
12132 (vaddlv_s32): Likewise.
12133 (vaddlv_u32): Likewise.
12134 (vqtbl1_p8): Likewise.
12135 (vqtbl1_s8): Likewise.
12136 (vqtbl1_u8): Likewise.
12137 (vqtbl1q_p8): Likewise.
12138 (vqtbl1q_s8): Likewise.
12139 (vqtbl1q_u8): Likewise.
12140 (vqtbx1_s8): Likewise.
12141 (vqtbx1_u8): Likewise.
12142 (vqtbx1_p8): Likewise.
12143 (vqtbx1q_s8): Likewise.
12144 (vqtbx1q_u8): Likewise.
12145 (vqtbx1q_p8): Likewise.
12146 (vtbl1_s8): Likewise.
12147 (vtbl1_u8): Likewise.
12148 (vtbl1_p8): Likewise.
12149 (vtbl2_s8): Likewise.
12150 (vtbl2_u8): Likewise.
12151 (vtbl2_p8): Likewise.
12152 (vtbl3_s8): Likewise.
12153 (vtbl3_u8): Likewise.
12154 (vtbl3_p8): Likewise.
12155 (vtbl4_s8): Likewise.
12156 (vtbl4_u8): Likewise.
12157 (vtbl4_p8): Likewise.
12158 (vtbx2_s8): Likewise.
12159 (vtbx2_u8): Likewise.
12160 (vtbx2_p8): Likewise.
12161 (vld1_f32): Likewise.
12162 (vld1_f64): Likewise.
12163 (vld1_p8): Likewise.
12164 (vld1_p16): Likewise.
12165 (vld1_p64): Likewise.
12166 (vld1_s8): Likewise.
12167 (vld1_s16): Likewise.
12168 (vld1_s32): Likewise.
12169 (vld1_s64): Likewise.
12170 (vld1_u8): Likewise.
12171 (vld1_u16): Likewise.
12172 (vld1_u32): Likewise.
12173 (vld1_u64): Likewise.
12174 (vld1q_f32): Likewise.
12175 (vld1q_f64): Likewise.
12176 (vld1q_p8): Likewise.
12177 (vld1q_p16): Likewise.
12178 (vld1q_p64): Likewise.
12179 (vld1q_s8): Likewise.
12180 (vld1q_s16): Likewise.
12181 (vld1q_s32): Likewise.
12182 (vld1q_s64): Likewise.
12183 (vld1q_u8): Likewise.
12184 (vld1q_u16): Likewise.
12185 (vld1q_u32): Likewise.
12186 (vld1q_u64): Likewise.
12187 (vpmax_s8): Likewise.
12188 (vpmax_s16): Likewise.
12189 (vpmax_s32): Likewise.
12190 (vpmax_u8): Likewise.
12191 (vpmax_u16): Likewise.
12192 (vpmax_u32): Likewise.
12193 (vpmaxq_s8): Likewise.
12194 (vpmaxq_s16): Likewise.
12195 (vpmaxq_s32): Likewise.
12196 (vpmaxq_u8): Likewise.
12197 (vpmaxq_u16): Likewise.
12198 (vpmaxq_u32): Likewise.
12199 (vpmax_f32): Likewise.
12200 (vpmaxq_f32): Likewise.
12201 (vpmaxq_f64): Likewise.
12202 (vpmaxqd_f64): Likewise.
12203 (vpmaxs_f32): Likewise.
12204 (vpmaxnm_f32): Likewise.
12205 (vpmaxnmq_f32): Likewise.
12206 (vpmaxnmq_f64): Likewise.
12207 (vpmaxnmqd_f64): Likewise.
12208 (vpmaxnms_f32): Likewise.
12209 (vpmin_s8): Likewise.
12210 (vpmin_s16): Likewise.
12211 (vpmin_s32): Likewise.
12212 (vpmin_u8): Likewise.
12213 (vpmin_u16): Likewise.
12214 (vpmin_u32): Likewise.
12215 (vpminq_s8): Likewise.
12216 (vpminq_s16): Likewise.
12217 (vpminq_s32): Likewise.
12218 (vpminq_u8): Likewise.
12219 (vpminq_u16): Likewise.
12220 (vpminq_u32): Likewise.
12221 (vpmin_f32): Likewise.
12222 (vpminq_f32): Likewise.
12223 (vpminq_f64): Likewise.
12224 (vpminqd_f64): Likewise.
12225 (vpmins_f32): Likewise.
12226 (vpminnm_f32): Likewise.
12227 (vpminnmq_f32): Likewise.
12228 (vpminnmq_f64): Likewise.
12229 (vpminnmqd_f64): Likewise.
12230 (vpminnms_f32): Likewise.
12231 (vmla_f32): Likewise.
12232 (vmlaq_f32): Likewise.
12233 (vmlaq_f64): Likewise.
12234 (vmls_f32): Likewise.
12235 (vmlsq_f32): Likewise.
12236 (vmlsq_f64): Likewise.
12237 (vqtbl2_s8): Likewise.
12238 (vqtbl2_u8): Likewise.
12239 (vqtbl2_p8): Likewise.
12240 (vqtbl2q_s8): Likewise.
12241 (vqtbl2q_u8): Likewise.
12242 (vqtbl2q_p8): Likewise.
12243 (vqtbl3_s8): Likewise.
12244 (vqtbl3_u8): Likewise.
12245 (vqtbl3_p8): Likewise.
12246 (vqtbl3q_s8): Likewise.
12247 (vqtbl3q_u8): Likewise.
12248 (vqtbl3q_p8): Likewise.
12249 (vqtbl4_s8): Likewise.
12250 (vqtbl4_u8): Likewise.
12251 (vqtbl4_p8): Likewise.
12252 (vqtbl4q_s8): Likewise.
12253 (vqtbl4q_u8): Likewise.
12254 (vqtbl4q_p8): Likewise.
12255 (vqtbx2_s8): Likewise.
12256 (vqtbx2_u8): Likewise.
12257 (vqtbx2_p8): Likewise.
12258 (vqtbx2q_s8): Likewise.
12259 (vqtbx2q_u8): Likewise.
12260 (vqtbx2q_p8): Likewise.
12261 (vqtbx3_s8): Likewise.
12262 (vqtbx3_u8): Likewise.
12263 (vqtbx3_p8): Likewise.
12264 (vqtbx3q_s8): Likewise.
12265 (vqtbx3q_u8): Likewise.
12266 (vqtbx3q_p8): Likewise.
12267 (vqtbx4_s8): Likewise.
12268 (vqtbx4_u8): Likewise.
12269 (vqtbx4_p8): Likewise.
12270 (vqtbx4q_s8): Likewise.
12271 (vqtbx4q_u8): Likewise.
12272 (vqtbx4q_p8): Likewise.
12273 (vrev16_p8): Likewise.
12274 (vrev16_s8): Likewise.
12275 (vrev16_u8): Likewise.
12276 (vrev16q_p8): Likewise.
12277 (vrev16q_s8): Likewise.
12278 (vrev16q_u8): Likewise.
12279 (vrev32_p8): Likewise.
12280 (vrev32_p16): Likewise.
12281 (vrev32_s8): Likewise.
12282 (vrev32_s16): Likewise.
12283 (vrev32_u8): Likewise.
12284 (vrev32_u16): Likewise.
12285 (vrev32q_p8): Likewise.
12286 (vrev32q_p16): Likewise.
12287 (vrev32q_s8): Likewise.
12288 (vrev32q_s16): Likewise.
12289 (vrev32q_u8): Likewise.
12290 (vrev32q_u16): Likewise.
12291 (vrev64_f32): Likewise.
12292 (vrev64_p8): Likewise.
12293 (vrev64_p16): Likewise.
12294 (vrev64_s8): Likewise.
12295 (vrev64_s16): Likewise.
12296 (vrev64_s32): Likewise.
12297 (vrev64_u8): Likewise.
12298 (vrev64_u16): Likewise.
12299 (vrev64_u32): Likewise.
12300 (vrev64q_f32): Likewise.
12301 (vrev64q_p8): Likewise.
12302 (vrev64q_p16): Likewise.
12303 (vrev64q_s8): Likewise.
12304 (vrev64q_s16): Likewise.
12305 (vrev64q_s32): Likewise.
12306 (vrev64q_u8): Likewise.
12307 (vrev64q_u16): Likewise.
12308 (vrev64q_u32): Likewise.
12309 (vsha1cq_u32): Likewise.
12310 (vsha1mq_u32): Likewise.
12311 (vsha1pq_u32): Likewise.
12312 (vsha1h_u32): Likewise.
12313 (vsha1su0q_u32): Likewise.
12314 (vsha1su1q_u32): Likewise.
12315 (vsha256hq_u32): Likewise.
12316 (vsha256h2q_u32): Likewise.
12317 (vsha256su0q_u32): Likewise.
12318 (vsha256su1q_u32): Likewise.
12319 (vmull_p64): Likewise.
12320 (vmull_high_p64): Likewise.
12321 (vsqrt_f32): Likewise.
12322 (vsqrtq_f32): Likewise.
12323 (vsqrt_f64): Likewise.
12324 (vsqrtq_f64): Likewise.
12325 (vst1_f32): Likewise.
12326 (vst1_f64): Likewise.
12327 (vst1_p8): Likewise.
12328 (vst1_p16): Likewise.
12329 (vst1_p64): Likewise.
12330 (vst1_s8): Likewise.
12331 (vst1_s16): Likewise.
12332 (vst1_s32): Likewise.
12333 (vst1_s64): Likewise.
12334 (vst1_u8): Likewise.
12335 (vst1_u16): Likewise.
12336 (vst1_u32): Likewise.
12337 (vst1_u64): Likewise.
12338 (vst1q_f32): Likewise.
12339 (vst1q_f64): Likewise.
12340 (vst1q_p8): Likewise.
12341 (vst1q_p16): Likewise.
12342 (vst1q_p64): Likewise.
12343 (vst1q_s8): Likewise.
12344 (vst1q_s16): Likewise.
12345 (vst1q_s32): Likewise.
12346 (vst1q_s64): Likewise.
12347 (vst1q_u8): Likewise.
12348 (vst1q_u16): Likewise.
12349 (vst1q_u32): Likewise.
12350 (vst1q_u64): Likewise.
12351 (vst1_s64_x2): Likewise.
12352 (vst1_u64_x2): Likewise.
12353 (vst1_f64_x2): Likewise.
12354 (vst1_s8_x2): Likewise.
12355 (vst1_p8_x2): Likewise.
12356 (vst1_s16_x2): Likewise.
12357 (vst1_p16_x2): Likewise.
12358 (vst1_s32_x2): Likewise.
12359 (vst1_u8_x2): Likewise.
12360 (vst1_u16_x2): Likewise.
12361 (vst1_u32_x2): Likewise.
12362 (vst1_f16_x2): Likewise.
12363 (vst1_f32_x2): Likewise.
12364 (vst1_p64_x2): Likewise.
12365 (vst1q_s8_x2): Likewise.
12366 (vst1q_p8_x2): Likewise.
12367 (vst1q_s16_x2): Likewise.
12368 (vst1q_p16_x2): Likewise.
12369 (vst1q_s32_x2): Likewise.
12370 (vst1q_s64_x2): Likewise.
12371 (vst1q_u8_x2): Likewise.
12372 (vst1q_u16_x2): Likewise.
12373 (vst1q_u32_x2): Likewise.
12374 (vst1q_u64_x2): Likewise.
12375 (vst1q_f16_x2): Likewise.
12376 (vst1q_f32_x2): Likewise.
12377 (vst1q_f64_x2): Likewise.
12378 (vst1q_p64_x2): Likewise.
12379 (vst1_s64_x3): Likewise.
12380 (vst1_u64_x3): Likewise.
12381 (vst1_f64_x3): Likewise.
12382 (vst1_s8_x3): Likewise.
12383 (vst1_p8_x3): Likewise.
12384 (vst1_s16_x3): Likewise.
12385 (vst1_p16_x3): Likewise.
12386 (vst1_s32_x3): Likewise.
12387 (vst1_u8_x3): Likewise.
12388 (vst1_u16_x3): Likewise.
12389 (vst1_u32_x3): Likewise.
12390 (vst1_f16_x3): Likewise.
12391 (vst1_f32_x3): Likewise.
12392 (vst1_p64_x3): Likewise.
12393 (vst1q_s8_x3): Likewise.
12394 (vst1q_p8_x3): Likewise.
12395 (vst1q_s16_x3): Likewise.
12396 (vst1q_p16_x3): Likewise.
12397 (vst1q_s32_x3): Likewise.
12398 (vst1q_s64_x3): Likewise.
12399 (vst1q_u8_x3): Likewise.
12400 (vst1q_u16_x3): Likewise.
12401 (vst1q_u32_x3): Likewise.
12402 (vst1q_u64_x3): Likewise.
12403 (vst1q_f16_x3): Likewise.
12404 (vst1q_f32_x3): Likewise.
12405 (vst1q_f64_x3): Likewise.
12406 (vst1q_p64_x3): Likewise.
12407 (vst2_s64): Likewise.
12408 (vst2_u64): Likewise.
12409 (vst2_f64): Likewise.
12410 (vst2_s8): Likewise.
12411 (vst2_p8): Likewise.
12412 (vst2_s16): Likewise.
12413 (vst2_p16): Likewise.
12414 (vst2_s32): Likewise.
12415 (vst2_u8): Likewise.
12416 (vst2_u16): Likewise.
12417 (vst2_u32): Likewise.
12418 (vst2_f16): Likewise.
12419 (vst2_f32): Likewise.
12420 (vst2_p64): Likewise.
12421 (vst2q_s8): Likewise.
12422 (vst2q_p8): Likewise.
12423 (vst2q_s16): Likewise.
12424 (vst2q_p16): Likewise.
12425 (vst2q_s32): Likewise.
12426 (vst2q_s64): Likewise.
12427 (vst2q_u8): Likewise.
12428 (vst2q_u16): Likewise.
12429 (vst2q_u32): Likewise.
12430 (vst2q_u64): Likewise.
12431 (vst2q_f16): Likewise.
12432 (vst2q_f32): Likewise.
12433 (vst2q_f64): Likewise.
12434 (vst2q_p64): Likewise.
12435 (vst3_s64): Likewise.
12436 (vst3_u64): Likewise.
12437 (vst3_f64): Likewise.
12438 (vst3_s8): Likewise.
12439 (vst3_p8): Likewise.
12440 (vst3_s16): Likewise.
12441 (vst3_p16): Likewise.
12442 (vst3_s32): Likewise.
12443 (vst3_u8): Likewise.
12444 (vst3_u16): Likewise.
12445 (vst3_u32): Likewise.
12446 (vst3_f16): Likewise.
12447 (vst3_f32): Likewise.
12448 (vst3_p64): Likewise.
12449 (vst3q_s8): Likewise.
12450 (vst3q_p8): Likewise.
12451 (vst3q_s16): Likewise.
12452 (vst3q_p16): Likewise.
12453 (vst3q_s32): Likewise.
12454 (vst3q_s64): Likewise.
12455 (vst3q_u8): Likewise.
12456 (vst3q_u16): Likewise.
12457 (vst3q_u32): Likewise.
12458 (vst3q_u64): Likewise.
12459 (vst3q_f16): Likewise.
12460 (vst3q_f32): Likewise.
12461 (vst3q_f64): Likewise.
12462 (vst3q_p64): Likewise.
12463 (vst4_s64): Likewise.
12464 (vst4_u64): Likewise.
12465 (vst4_f64): Likewise.
12466 (vst4_s8): Likewise.
12467 (vst4_p8): Likewise.
12468 (vst4_s16): Likewise.
12469 (vst4_p16): Likewise.
12470 (vst4_s32): Likewise.
12471 (vst4_u8): Likewise.
12472 (vst4_u16): Likewise.
12473 (vst4_u32): Likewise.
12474 (vst4_f16): Likewise.
12475 (vst4_f32): Likewise.
12476 (vst4_p64): Likewise.
12477 (vst4q_s8): Likewise.
12478 (vst4q_p8): Likewise.
12479 (vst4q_s16): Likewise.
12480 (vst4q_p16): Likewise.
12481 (vst4q_s32): Likewise.
12482 (vst4q_s64): Likewise.
12483 (vst4q_u8): Likewise.
12484 (vst4q_u16): Likewise.
12485 (vst4q_u32): Likewise.
12486 (vst4q_u64): Likewise.
12487 (vst4q_f16): Likewise.
12488 (vst4q_f32): Likewise.
12489 (vst4q_f64): Likewise.
12490 (vst4q_p64): Likewise.
12491 (vtbx4_s8): Likewise.
12492 (vtbx4_u8): Likewise.
12493 (vtbx4_p8): Likewise.
12494 (vtrn_f32): Likewise.
12495 (vtrn_p8): Likewise.
12496 (vtrn_p16): Likewise.
12497 (vtrn_s8): Likewise.
12498 (vtrn_s16): Likewise.
12499 (vtrn_s32): Likewise.
12500 (vtrn_u8): Likewise.
12501 (vtrn_u16): Likewise.
12502 (vtrn_u32): Likewise.
12503 (vtrnq_f32): Likewise.
12504 (vtrnq_p8): Likewise.
12505 (vtrnq_p16): Likewise.
12506 (vtrnq_s8): Likewise.
12507 (vtrnq_s16): Likewise.
12508 (vtrnq_s32): Likewise.
12509 (vtrnq_u8): Likewise.
12510 (vtrnq_u16): Likewise.
12511 (vtrnq_u32): Likewise.
12512 (vrsqrte_f16): Likewise.
12513 (vrsqrteq_f16): Likewise.
12514 (vsqrt_f16): Likewise.
12515 (vsqrtq_f16): Likewise.
12516 (vabd_f16): Likewise.
12517 (vabdq_f16): Likewise.
12518 (vpadd_f16): Likewise.
12519 (vpaddq_f16): Likewise.
12520 (vpmax_f16): Likewise.
12521 (vpmaxq_f16): Likewise.
12522 (vpmaxnm_f16): Likewise.
12523 (vpmaxnmq_f16): Likewise.
12524 (vpmin_f16): Likewise.
12525 (vpminq_f16): Likewise.
12526 (vpminnm_f16): Likewise.
12527 (vpminnmq_f16): Likewise.
12528 (vrsqrts_f16): Likewise.
12529 (vrsqrtsq_f16): Likewise.
12530
12531 2019-09-25 Richard Biener <rguenther@suse.de>
12532
12533 PR tree-optimization/91896
12534 * tree-vect-loop.c (vectorizable_reduction): The single
12535 def-use cycle optimization cannot apply when there's more
12536 than one pattern stmt involved.
12537
12538 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12539
12540 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12541 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12542 (reload_macho_picbase_<mode>): Likewise.
12543
12544 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12545
12546 * config/rs6000/rs6000.md: Move darwin.md include until
12547 after the definition of the mode iterators.
12548
12549 2019-09-23 Martin Sebor <msebor@redhat.com>
12550
12551 PR tree-optimization/91570
12552 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12553 non-constant minlen, maxlen and maxbound.
12554
12555 2019-09-24 Richard Biener <rguenther@suse.de>
12556
12557 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12558 Rename to...
12559 (_stmt_vec_info::cond_reduc_code): ... this.
12560 (_stmt_vec_info::induc_cond_initial_val): Add.
12561 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12562 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12563 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12564 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12565 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12566 the reduction code.
12567 (vect_create_epilog_for_reduction): Drop special
12568 induction condition reduction params, pass in reduction code
12569 and simplify.
12570 (vectorizable_reduction): Perform condition reduction kind
12571 selection only at analysis time. Adjust passing on state.
12572
12573 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12574
12575 * config/aarch64/aarch64.md (mov<mode>): Don't call
12576 aarch64_split_dimode_const_store on volatile MEM.
12577
12578 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12579
12580 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12581 Update hwcap string for fp16fml.
12582
12583 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12584
12585 PR middle-end/91866
12586 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12587 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12588
12589 2019-09-24 Martin Liska <mliska@suse.cz>
12590
12591 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12592 instead of if-elseif-elseif-...
12593 * gimple-expr.c (extract_ops_from_tree): Likewise.
12594 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12595 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12596
12597 2019-09-24 Martin Jambor <mjambor@suse.cz>
12598
12599 PR ipa/91831
12600 * ipa-param-manipulation.c (carry_over_param): Make a method of
12601 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12602 in case of a context mismatch.
12603 (ipa_param_body_adjustments::common_initialization): Adjust call to
12604 carry_over_param.
12605 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12606 private method carry_over_param.
12607
12608 2019-09-24 Martin Jambor <mjambor@suse.cz>
12609
12610 PR ipa/91832
12611 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12612
12613 2019-09-24 Richard Biener <rguenther@suse.de>
12614
12615 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12616 base.
12617
12618 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12619
12620 * config/arm/t-arm (arm-builtins.o): Add dependency on
12621 arm_acle_builtins.def.
12622
12623 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12624
12625 PR target/91823
12626 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12627 canonical CONST_INTs. Use gen_rtvec.
12628
12629 2019-09-23 Richard Biener <rguenther@suse.de>
12630
12631 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12632 avoid adjusting by + 0 or * 1.
12633 (vect_create_epilog_for_reduction): Get reduction code only
12634 when necessary. Deal with adjustment_def only when necessary.
12635
12636 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12637
12638 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12639 memmodel index.
12640
12641 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12642
12643 PR ipa/91835
12644 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12645 "ipa-sra".
12646
12647 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12648
12649 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12650 code. Merge code blocks with common conditionals. Use declared
12651 macro instead of a magic number for PIC level.
12652
12653 2019-09-21 Martin Sebor <msebor@redhat.com>
12654
12655 PR middle-end/91830
12656 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12657 Simplify computation of the offset of the referenced subobject.
12658
12659 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12660
12661 * config/darwin.c (machopic_legitimize_pic_address): Check
12662 for lra not reload.
12663
12664 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12665
12666 * ira-conflicts.c (can_use_same_reg_p): New function.
12667 (process_reg_shuffles): Take an insn parameter. Ignore cases
12668 in which input operand op_num could seemingly never be allocated
12669 to the same register as the destination.
12670 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12671
12672 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12673
12674 * simplify-rtx.c (neg_const_int): Replace with...
12675 (neg_poly_int_rtx): ...this new function.
12676 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12677 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12678 (simplify_plus_minus): Likewise for constant terms here.
12679
12680 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12681
12682 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12683 HOST_WIDE_PRINT_UNSIGNED.
12684
12685 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12686
12687 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12688 character.
12689
12690 2019-09-20 Maya Rashish <coypu@sdf.org>
12691
12692 PR target/86811
12693 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12694 Define to speculation_safe_value_not_needed.
12695
12696 2019-09-20 Richard Biener <rguenther@suse.de>
12697 Uros Bizjak <ubizjak@gmail.com>
12698
12699 PR target/91814
12700 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12701 previous change.
12702 (general_scalar_chain::convert_op): Force not suitable memory
12703 operands to a register.
12704
12705 2019-09-20 Richard Biener <rguenther@suse.de>
12706
12707 PR tree-optimization/91821
12708 * tree-vect-loop.c (check_reduction_path): Check we can compute
12709 reduc_idx.
12710 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12711 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12712 operands in canonical order.
12713 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12714 STMT_VINFO_REDUC_IDX.
12715 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12716 (STMT_VINFO_REDUC_IDX): Likewise.
12717
12718 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12719
12720 PR target/91269
12721 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12722
12723 2019-09-20 Richard Biener <rguenther@suse.de>
12724
12725 PR tree-optimization/91822
12726 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12727 parameter.
12728 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12729 for reduc_index in nested cycles, adjust vectorizable_condition
12730 calls.
12731 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12732 parameter.
12733 (vect_analyze_stmt): Adjust.
12734 (vect_transform_stmt): Likewise.
12735
12736 2019-09-20 Richard Biener <rguenther@suse.de>
12737
12738 PR target/91767
12739 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12740 Ensure there's a sequence point between allocating the new register
12741 and passing a reference to a reg via regno_reg_rtx.
12742
12743 2019-09-20 Martin Jambor <mjambor@suse.cz>
12744
12745 * coretypes.h (cgraph_edge): Declare.
12746 * ipa-param-manipulation.c: Rewrite.
12747 * ipa-param-manipulation.h: Likewise.
12748 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12749 (OBJS): Added ipa-sra.o.
12750 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12751 and ref_p, added fields param_adjustments and performed_splits.
12752 (struct cgraph_clone_info): Remove ags_to_skip and
12753 combined_args_to_skip, new field param_adjustments.
12754 (cgraph_node::create_clone): Changed parameters to use
12755 ipa_param_adjustments.
12756 (cgraph_node::create_virtual_clone): Likewise.
12757 (cgraph_node::create_virtual_clone_with_body): Likewise.
12758 (tree_function_versioning): Likewise.
12759 (cgraph_build_function_type_skip_args): Removed.
12760 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12761 using ipa_param_adjustments.
12762 (clone_of_p): Likewise.
12763 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12764 (build_function_decl_skip_args): Likewise.
12765 (duplicate_thunk_for_node): Adjust parameters using
12766 ipa_param_body_adjustments, copy param_adjustments instead of
12767 args_to_skip.
12768 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12769 (cgraph_node::create_virtual_clone): Likewise.
12770 (cgraph_node::create_version_clone_with_body): Likewise.
12771 (cgraph_materialize_clone): Likewise.
12772 (symbol_table::materialize_all_clones): Likewise.
12773 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12774 ipa_replace_map check.
12775 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12776 (initialize_node_lattices): Make aware that some parameters might have
12777 already been removed.
12778 (want_remove_some_param_p): New function.
12779 (create_specialized_node): Convert to using ipa_param_adjustments and
12780 deal with possibly pre-existing adjustments.
12781 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12782 (output_node_opt_summary): Do not stream removed fields. Stream
12783 parameter adjustments instead of argumetns to skip.
12784 (input_node_opt_summary): Likewise.
12785 (input_node_opt_summary): Likewise.
12786 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12787 * lto-streamer.h (lto_section_type): Likewise.
12788 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12789 param_body_adjs.
12790 (copy_decl_to_var): Declare.
12791 * tree-inline.c (update_clone_info): Do not remap old_tree.
12792 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12793 statements, walk all extra generated statements and remap their
12794 operands.
12795 (redirect_all_calls): Add killed SSA names to a hash set.
12796 (remap_ssa_name): Do not remap killed SSA names.
12797 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12798 half of functionality moved to ipa_param_body_adjustments.
12799 (copy_decl_to_var): Make exported.
12800 (copy_body): Destroy killed_new_ssa_names hash set.
12801 (expand_call_inline): Remap performed splits.
12802 (update_clone_info): Likewise.
12803 (tree_function_versioning): Simplify tree_map processing. Updated to
12804 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12805 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12806 for the new interface.
12807 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12808 (simd_clone_compute_base_data_type): Likewise.
12809 (simd_clone_init_simd_arrays): Adjust for the new interface.
12810 (simd_clone_adjust_argument_types): Likewise.
12811 (struct modify_stmt_info): Likewise.
12812 (ipa_simd_modify_stmt_ops): Likewise.
12813 (ipa_simd_modify_function_body): Likewise.
12814 (simd_clone_adjust): Likewise.
12815 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12816 (type_internals_preclude_sra_p): Make public.
12817 * tree-sra.h: New file.
12818 * ipa-inline-transform.c (save_inline_function_body): Update to
12819 refelct new tree_function_versioning signature.
12820 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12821 ipa_param_adjustments to get current parameter indices.
12822 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12823 (ipcp_update_bits): Likewise.
12824 (ipcp_update_vr): Likewise.
12825 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12826 * ipa-sra.c: New file.
12827 * multiple_target.c (create_target_clone): Update to reflet new type
12828 of create_version_clone_with_body.
12829 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12830 tree_function_versioning.
12831 (modify_function): Update to reflect new type of
12832 tree_function_versioning.
12833 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12834 * passes.def: Remove old IPA-SRA and add new one.
12835 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12836 (make_pass_ipa_sra): Declare.
12837 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12838 ipa_sra_retvalues.
12839 * doc/invoke.texi (ipa-sra-max-replacements): New.
12840
12841 2019-09-19 Martin Sebor <msebor@redhat.com>
12842
12843 PR middle-end/91631
12844 * builtins.c (component_size): Correct trailing array computation,
12845 rename to component_ref_size and move...
12846 (compute_objsize): Adjust.
12847 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12848 (builtin_access::strict): Do not consider memmove.
12849 (builtin_access::write_off): New function.
12850 (builtin_memref::builtin_memref): Initialize refsize.
12851 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12852 refsize.
12853 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12854 Handle refsize.
12855 (builtin_access::builtin_access): Initialize dstoff to destination
12856 refeence offset here instead of in maybe_diag_overlap. Adjust
12857 referencess even to unrelated objects. Adjust sizrange of bounded
12858 string functions to reflect bound. For strcat, adjust destination
12859 sizrange by that of source.
12860 (builtin_access::strcat_overlap): Adjust offsets and sizes
12861 to reflect the increase in destination sizrange above.
12862 (builtin_access::overlap): Do not set dstoff here but instead
12863 in builtin_access::builtin_access.
12864 (check_bounds_or_overlap): Use builtin_access::write_off.
12865 (maybe_diag_access_bounds): Add argument. Add informational notes.
12866 (dump_builtin_memref, dump_builtin_access): New functions.
12867 * tree.c (component_ref_size): ...to here.
12868 * tree.h (component_ref_size): Declare.
12869 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12870 nul in the size of the source string.
12871
12872 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12873
12874 PR c/67224
12875 * doc/cpp.texi: Document support for extended characters in
12876 identifiers.
12877 * doc/cppopts.texi: Likewise.
12878
12879 2019-09-19 Richard Biener <rguenther@suse.de>
12880
12881 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12882 (check_reduction_path): New overload having the path as result.
12883 (vect_is_simple_reduction): From the detected reduction
12884 path build a SLP reduction chain if possible.
12885
12886 2019-09-19 Richard Biener <rguenther@suse.de>
12887
12888 PR target/91814
12889 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12890 Force operand to a register if it isn't nonimmediate_operand.
12891
12892 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12893
12894 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12895 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12896 (logical_op): Remove code attribute.
12897 (logical_OP): Likewise.
12898
12899 2019-09-19 Martin Liska <mliska@suse.cz>
12900
12901 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12902 Use proper casting.
12903
12904 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12905
12906 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12907 registers with %R.
12908
12909 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12910 for NE comparison of TImode values.
12911 (aarch64_emit_load_exclusive): Add support for TImode.
12912 (aarch64_emit_store_exclusive): Likewise.
12913 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12914 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12915 Change iterator from ALLI to ALLI_TI.
12916 (@atomic_compare_and_swap<JUST_TI>): New.
12917 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12918 (aarch64_load_exclusive_pair): New.
12919 (aarch64_store_exclusive_pair): New.
12920 * config/aarch64/iterators.md (JUST_TI): New.
12921
12922 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12923 strong_zero_p for aarch64_track_speculation; unify some code paths;
12924 use aarch64_gen_compare_reg instead of open-coding.
12925
12926 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12927 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12928 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12929 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12930 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12931 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12932 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12933 (atomic_<atomic_op><ALLI>): Likewise.
12934 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12935 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12936 * doc/invoke.texi: Document -moutline-atomics.
12937
12938 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12939
12940 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12941 trivial predicate for condition branch.
12942 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12943 for switch case.
12944 (compute_bb_predicates): Update predicate based on post-dominating
12945 relationship.
12946 (analyze_function_body): Calculate post-dominating information.
12947
12948 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12949
12950 * tree-vectorizer.h (vectorizable_condition): Take an int
12951 reduction index instead of a boolean flag.
12952 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12953 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12954 reductions if the reduction accumulator is the "then" rather
12955 than the "else" value.
12956 (vect_analyze_stmt): Update call accordingly.
12957 (vect_transform_stmt): Likewise.
12958 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12959 asserting that the index is > 0.
12960
12961 2019-09-19 Martin Liska <mliska@suse.cz>
12962
12963 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12964 (sort_congruence_classes_by_decl_uid): Likewise.
12965 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12966 easier sorting.
12967 (sem_item_optimizer::merge_classes): Likewise.
12968
12969 2019-09-19 Richard Biener <rguenther@suse.de>
12970
12971 PR tree-optimization/91812
12972 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12973 volatile loads.
12974
12975 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12976
12977 * defaults.h (TARGET_UNIT): New macro.
12978 (target_unit): New type.
12979 * rtl.h (native_encode_rtx, native_decode_rtx)
12980 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12981 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12982 * rtlanal.c (subreg_lsb_1): Delete.
12983 (subreg_size_lsb): New function.
12984 * simplify-rtx.c: Include rtx-vector-builder.h
12985 (simplify_immed_subreg): Delete.
12986 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12987 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12988 functions.
12989 (simplify_subreg): Use them.
12990 (test_vector_subregs_modes, test_vector_subregs_repeating)
12991 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12992 (test_vector_subregs): New functions.
12993 (test_vector_ops): Call test_vector_subregs for integer vector
12994 modes with at least 2 elements.
12995
12996 2019-09-19 Richard Biener <rguenther@suse.de>
12997
12998 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12999 LOOP_VINFO_OPERANDS_SWAPPED.
13000 (parloops_is_simple_reduction): Likewise.
13001 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
13002 initialize operands_swapped.
13003 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
13004 (vect_is_slp_reduction): Do not swap operands.
13005 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
13006 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
13007
13008 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
13009
13010 PR target/87007
13011 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
13012 Add avx_partial_xmm_update.
13013
13014 2019-09-18 Jim Wilson <jimw@sifive.com>
13015
13016 PR target/91683
13017 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
13018 (riscv_move_integer): Likewise.
13019 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
13020 riscv_move_integer arg.
13021 (riscv_legitimize_move): Likewise.
13022 (riscv_force_temporary): New parameter in_splitter. Don't call
13023 force_reg if true.
13024 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
13025 arg.
13026 (riscv_add_offset): Likewise.
13027 (riscv_split_symbol): New parameter in_splitter. Pass to
13028 riscv_force_temporary.
13029 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
13030 arg.
13031 (riscv_move_integer): New parameter in_splitter. New local
13032 can_create_psuedo. Don't call riscv_split_integer or force_reg when
13033 in_splitter TRUE.
13034 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
13035 riscv_split_symbol, and riscv_force_temporary args.
13036 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
13037 riscv_move_integer arg.
13038 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
13039
13040 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13041
13042 PR target/90878
13043 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
13044 hard register store cost to 6.
13045
13046 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13047
13048 PR target/91446
13049 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
13050 pseudo register store cost from 3 to 6 to make it the same as
13051 QImode and HImode.
13052
13053 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13054
13055 PR target/91738
13056 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
13057 (one_cmpldi2): Likewise.
13058 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
13059 of the constant parts is simple.
13060 * config/arm/iterators.md (LOGICAL): Add new code iterator.
13061 (logical_op): Add new code attribute.
13062 (logical_OP): Likewise.
13063 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
13064 (arm_iordi_operand): Add predicate.
13065 (arm_xordi_operand): Add predicate.
13066
13067 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13068
13069 * config/arm/arm.md (maddsidi4): Remove expander.
13070 (mulsidi3adddi): Remove pattern.
13071 (mulsidi3adddi_v6): Likewise.
13072 (mulsidi3_nov6): Likewise.
13073 (mulsidi3_v6): Likewise.
13074 (umulsidi3): Remove expander.
13075 (umulsidi3_nov6): Remove pattern.
13076 (umulsidi3_v6): Likewise.
13077 (umulsidi3adddi): Likewise.
13078 (umulsidi3adddi_v6): Likewise.
13079 (<Us>mulsidi3): Add combined expander.
13080 (<Us>maddsidi4): Likewise.
13081 (<US>mull): Add combined umull and smull pattern.
13082 (<US>mlal): Likewise.
13083 * config/arm/iterators.md (Us): Add new iterator.
13084
13085 2019-09-18 Richard Biener <rguenther@suse.de>
13086
13087 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
13088 swapping.
13089 (vectorize_fold_left_reduction): Remove assert.
13090 (vectorizable_reduction): Also expect COND_EXPR non-reduction
13091 operand in position 2. Remove assert.
13092
13093 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13094
13095 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
13096 (smulsi3_highpart_nov6): Remove pattern.
13097 (smulsi3_highpart_v6): Likewise.
13098 (umulsi3_highpart): Likewise.
13099 (umulsi3_highpart_nov6): Likewise.
13100 (umulsi3_highpart_v6): Likewise.
13101 (<US>mull_high): Add new combined multiply pattern.
13102
13103 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13104
13105 * config/arm/arm.md (arm_mulsi3): Remove pattern.
13106 (arm_mulsi3_v6): Likewise.
13107 (mulsi3addsi_v6): Likewise.
13108 (mulsi3subsi): Likewise.
13109 (mul): Add new multiply pattern.
13110 (mla): Likewise.
13111 (mls): Likewise.
13112
13113 2019-09-18 Richard Biener <rguenther@suse.de>
13114
13115 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
13116 (parloops_valid_reduction_input_p): Copy from
13117 valid_reduction_input_p.
13118 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
13119 (parloops_needs_fold_left_reduction_p): Copy from
13120 needs_fold_left_reduction_p.
13121 (parloops_is_simple_reduction): Copy from
13122 vect_is_simple_reduction.
13123 (parloops_force_simple_reduction): Copy from
13124 vect_force_simple_reduction.
13125 (gather_scalar_reductions): Adjust.
13126 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
13127 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
13128
13129 2019-09-18 Richard Biener <rguenther@suse.de>
13130
13131 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
13132 * tree-vect-loop.c (get_initial_def_for_reduction): Make
13133 static.
13134 (vect_create_epilog_for_reduction): Remove dead code.
13135
13136 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13137
13138 * varasm.c (assemble_real): Generate canonical const_ints.
13139
13140 2019-09-18 Richard Biener <rguenther@suse.de>
13141
13142 PR lto/91763
13143 * lto-streamer-in.c (input_eh_regions): Move EH init to
13144 lto_materialize_function.
13145 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
13146 Likewise.
13147
13148 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13149
13150 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
13151 are INTEGER_CSTs.
13152
13153 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13154
13155 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
13156 of checking specifically for INTEGER_CST.
13157
13158 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13159
13160 * stor-layout.c (compute_record_mode): Operate on poly_uint64
13161 sizes instead of uhwi sizes.
13162
13163 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13164
13165 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
13166 (add_const_value_attribute): Handle CONST_POLY_INT.
13167
13168 2019-09-18 Martin Liska <mliska@suse.cz>
13169
13170 * dbgcnt.def (store_merging): New counter.
13171 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
13172 Use it in store merging.
13173
13174 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13175
13176 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
13177 function.
13178 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13179 * config/arm/arm.c (arm_sched_variable_issue): New function.
13180 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13181
13182 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13183
13184 * config/arm/types.md (no_reservation): New reservation.
13185 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
13186 no_insn here.
13187 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
13188 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
13189 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
13190 * config/arm/arm1020e.md (1020alu_op): Likewise.
13191 * config/arm/arm1026ejs.md (alu_op): Likewise.
13192 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13193 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13194 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13195 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
13196 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13197 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13198 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
13199 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
13200 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13201 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13202 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13203 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
13204 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
13205 * config/arm/fa526.md (526_alu_op): Likewise.
13206 * config/arm/fa606te.md (606te_alu_op): Likewise.
13207 * config/arm/fa626te.md (626te_alu_op): Likewise.
13208 * config/arm/fa726te.md (726te_alu_op): Likewise.
13209 * config/arm/xgene1.md (xgene1_nop): Likewise.
13210
13211 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13212
13213 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
13214 "no_insn" to "branch".
13215
13216 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13217
13218 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
13219
13220 2019-09-17 Richard Biener <rguenther@suse.de>
13221
13222 PR debug/91772
13223 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
13224 was missing generate locations only once.
13225
13226 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
13227
13228 PR ipa/91089
13229 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
13230 option.
13231 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
13232 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
13233 for switch default case using range analysis information.
13234
13235 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
13236
13237 PR target/91749
13238 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
13239 mode attributed is supported by FDPIC.
13240
13241 2019-09-17 Richard Biener <rguenther@suse.de>
13242
13243 PR tree-optimization/91790
13244 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
13245 use the correct DR for setting up realignment.
13246
13247 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
13248
13249 PR target/91719
13250 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
13251 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
13252 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
13253 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
13254
13255 2019-09-16 Jason Merrill <jason@redhat.com>
13256
13257 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
13258
13259 2019-09-16 Martin Liska <mliska@suse.cz>
13260
13261 * gimple-fold.c (or_comparisons_1): Remove rules moved
13262 to ...
13263 * match.pd: ... here.
13264
13265 2019-09-16 Martin Liska <mliska@suse.cz>
13266
13267 * gimple-fold.c (or_comparisons_1): Remove rules
13268 moved to ...
13269 * match.pd: ... here.
13270
13271 2019-09-16 Martin Liska <mliska@suse.cz>
13272
13273 * genmatch.c (dt_node::append_simplify): Do not print
13274 warning when we have duplicate patterns belonging
13275 to a same simplify rule.
13276 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
13277 (maybe_fold_comparisons_from_match_pd): Handle
13278 tcc_comparison as a results.
13279 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
13280
13281 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13282 Qi Feng <ffengqi@linux.ibm.com>
13283
13284 PR middle-end/88784
13285 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
13286 (x > y && x == XXX_MIN): Optimize into 'false'.
13287 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
13288 (x < y && x != XXX_MAX): Optimize into 'x < y'.
13289 (x < y && x == XXX_MAX): Optimize into 'false'.
13290 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
13291 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
13292 (x <= y || x != XXX_MIN): Optimize into 'true'.
13293 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
13294 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
13295 (x >= y || x != XXX_MAX): Optimize into 'true'.
13296 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
13297
13298 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13299 Martin Liska <mliska@suse.cz>
13300
13301 * gimple-fold.c (and_comparisons_1): Add type as first
13302 argument.
13303 (and_var_with_comparison): Likewise.
13304 (and_var_with_comparison_1): Likewise.
13305 (or_comparisons_1): Likewise.
13306 (or_var_with_comparison): Likewise.
13307 (or_var_with_comparison_1): Likewise.
13308 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
13309 (maybe_fold_or_comparisons): Likewise.
13310 (maybe_fold_comparisons_from_match_pd): New.
13311 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
13312 (maybe_fold_or_comparisons): Likewise.
13313 * gimple.c (gimple_size): Make it public and add num_ops argument.
13314 (gimple_init): New function.
13315 (gimple_alloc): Call gimple_init.
13316 * gimple.h (gimple_size): New.
13317 (gimple_init): Likewise.
13318 * tree-if-conv.c (fold_or_predicates): Pass type.
13319 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13320 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
13321 (optimize_vec_cond_expr): Likewise.
13322 (ovce_extract_ops): Return type of conditional expression.
13323 * tree-ssanames.c (init_ssa_name_imm_use): New.
13324 (make_ssa_name_fn): Use init_ssa_name_imm_use.
13325 * tree-ssanames.h (init_ssa_name_imm_use): New.
13326
13327 2019-09-16 Richard Biener <rguenther@suse.de>
13328
13329 PR tree-optimization/91756
13330 PR tree-optimization/87132
13331 * tree-ssa-alias.h (enum translate_flags): New.
13332 (get_continuation_for_phi): Use it instead of simple bool flag.
13333 (walk_non_aliased_vuses): Likewise.
13334 * tree-ssa-alias.c (maybe_skip_until): Adjust.
13335 (get_continuation_for_phi): When looking across backedges only
13336 disallow valueization.
13337 (walk_non_aliased_vuses): Adjust.
13338 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
13339 if requested.
13340
13341 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
13342
13343 PR middle-end/80791
13344 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
13345 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13346 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13347 * target.def (have_count_reg_decr_p): New hook.
13348 (doloop_cost_for_generic): Likewise.
13349 (doloop_cost_for_address): Likewise.
13350 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
13351 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13352 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13353 * doc/tm.texi: Regenerate.
13354 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
13355 addend.
13356 (record_group): Init doloop_p.
13357 (add_candidate_1): Add optional argument doloop, change the handlings
13358 accordingly.
13359 (add_candidate): Likewise.
13360 (generic_predict_doloop_p): Update attribute.
13361 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
13362 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
13363 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
13364 MIN_EXPR.
13365 (get_computation_cost): Update for doloop IV cand extra cost.
13366 (determine_group_iv_cost_cond): Update for doloop IV cand.
13367 (determine_iv_cost): Likewise.
13368 (ivopts_estimate_reg_pressure): Likewise.
13369 (may_eliminate_iv): Update handlings for doloop IV cand.
13370 (add_iv_candidate_for_doloop): New function.
13371 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13372 (iv_ca_set_no_cp): Update for doloop IV cand.
13373 (iv_ca_set_cp): Likewise.
13374 (iv_ca_dump): Dump register cost.
13375 (find_doloop_use): New function.
13376 (analyze_and_mark_doloop_use): Likewise.
13377 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13378
13379 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13380
13381 PR middle-end/91708
13382 * cse.c (cse_insn): Do not replace anything with a
13383 MEM.
13384
13385 2019-09-13 Ian Lance Taylor <iant@golang.org>
13386
13387 * doc/invoke.texi (Optimize Options): Fix typo.
13388
13389 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
13390
13391 PR tree-optimization/89386
13392 * config/i386/sse.md (smulhrs<mode>3): New expander.
13393 (smulhrsv4hi3): Ditto.
13394
13395 2019-09-12 Richard Biener <rguenther@suse.de>
13396
13397 PR tree-optimization/91750
13398 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13399 in the type of the evolution.
13400
13401 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
13402
13403 PR tree-optimization/89386
13404 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13405 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13406 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13407 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13408 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13409 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13410 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13411 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13412 (su, r): Handle the unspecs above.
13413 (bt): New int attribute.
13414 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13415 * internal-fn.c (first_commutative_argument): Commutativity info for
13416 above.
13417 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13418 (umulhrs_optab): New optabs.
13419 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13420 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13421 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13422 function.
13423 (vect_vect_recog_func_ptrs): Add it.
13424
13425 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
13426
13427 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13428 code.
13429
13430 2019-09-11 Nathan Sidwell <nathan@acm.org>
13431
13432 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13433 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13434
13435 2019-09-11 Richard Biener <rguenther@suse.de>
13436
13437 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13438 * lto-wrapper.c (merge_and_complain): Pick up -g.
13439 (append_compiler_options): Likewise.
13440 (run_gcc): Re-instantiate handling -g0 at link-time.
13441 * doc/invoke.texi (flto): Document debug info generation.
13442
13443 2019-09-11 Richard Biener <rguenther@suse.de>
13444
13445 PR tree-optimization/90387
13446 * vr-values.c (vr_values::extract_range_basic): After inlining
13447 simplify non-constant __builtin_constant_p to false.
13448
13449 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13450
13451 PR rtl-optimization/89795
13452 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13453 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13454
13455 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13456
13457 PR tree-optimization/91723
13458 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13459 instead of pointer equality when checking if argument vectypes are
13460 the same.
13461
13462 PR middle-end/91725
13463 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13464 of get_nonzero_bits, only call it for integral types.
13465
13466 2019-09-11 Richard Biener <rguenther@suse.de>
13467
13468 Revert
13469 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13470
13471 * match.pd: Add flag_unsafe_math_optimizations check
13472 before deciding on the widest type in a binary math operation.
13473
13474 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13475
13476 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13477 and CALL_REALLY_USED_REGISTERS must be defined, and that
13478 CALL_REALLY_USED_REGISTERS is preferred.
13479 * doc/tm.texi: Regenerate.
13480 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13481 (call_really_used_regs): Likewise.
13482 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13483 CALL_REALLY_USED_REGISTERS are defined.
13484 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13485 initial value if defined.
13486 (initial_call_really_used_regs): Delete.
13487 (saved_call_really_used_regs): Likewise.
13488 (CALL_REALLY_USED_REGNO_P): Likewise.
13489 (init_reg_sets): Remove handling of call_really_used_regs.
13490 (save_register_info, restore_register_info, globalize_reg): Likewise.
13491 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13492 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13493 outside operand_reg_set.
13494 (fix_register): Don't change call_used_regs if
13495 CALL_REALLY_USED_REGISTERS is defined.
13496 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13497 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13498 instead of call_really_used_regs.
13499 (csky_conditional_register_usage): Remove the old handling of
13500 call_used_regs and change the handling of call_really_used_regs
13501 to use call_used_regs instead.
13502 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13503 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13504 making a register fixed.
13505 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13506 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13507 instead of call_really_used_regs.
13508 (m32r_conditional_register_usage): Don't set call_used_regs when
13509 making a register fixed.
13510 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13511 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13512 instead of call_really_used_regs.
13513 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13514 (mips_cfun_call_saved_reg_p): Likewise.
13515 (mips_swap_registers): Remove the old handling of call_used_regs
13516 and change the handling of call_really_used_regs to use call_used_regs
13517 instead.
13518 (mips_conditional_register_usage): Likewise.
13519 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13520 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13521 instead of call_really_used_regs.
13522 (mn10300_get_live_callee_saved_regs): Likewise.
13523 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13524 (mn10300_conditional_register_usage): Don't set call_used_regs when
13525 making a register fixed.
13526 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13527 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13528 Remove the old handling of call_used_regs and change the handling
13529 of call_really_used_regs to use call_used_regs instead.
13530 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13531 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13532 instead of call_really_used_regs.
13533 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13534 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13535 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13536 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13537 (s390_conditional_register_usage): Remove the old handling of
13538 call_used_regs and change the handling of call_really_used_regs
13539 to use call_used_regs instead.
13540 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13541 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13542 (sh_fix_range, reg_unused_after): Likewise.
13543 (sh_conditional_register_usage): Remove the old handling of
13544 call_used_regs and change the handling of call_really_used_regs
13545 to use call_used_regs instead.
13546 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13547 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13548 call_used_regs when making a register fixed.
13549 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13550 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13551 call_used_regs when making a register fixed.
13552 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13553 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13554 set call_used_regs when making a register fixed.
13555 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13556 * config/visium/visium.c (visium_conditional_register_usage): Remove
13557 the old handling of call_used_regs and change the handling of
13558 call_really_used_regs to use call_used_regs instead.
13559
13560 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13561
13562 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13563 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13564 * reginfo.c (call_used_regs): New macro.
13565
13566 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13567
13568 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13569 fixed_regs test.
13570 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13571 (bpf_expand_epilogue): Likewise.
13572 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13573 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13574 (ft32_expand_epilogue): Likewise.
13575 * config/i386/i386.c (ix86_save_reg): Likewise.
13576 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13577 (moxie_expand_epilogue): Likewise.
13578 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13579 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13580 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13581
13582 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13583
13584 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13585 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13586 instead of testing call_used_regs directly.
13587 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13588 (aarch64_components_for_bb): Likewise.
13589 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13590 * config/arc/arc.c (arc_must_save_register): Likewise.
13591 (arc_epilogue_uses): Likewise.
13592 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13593 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13594 (arm_compute_save_reg0_reg12_mask): Likewise.
13595 (arm_compute_save_core_reg_mask): Likewise.
13596 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13597 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13598 (cmse_nonsecure_entry_clear_before_return): Likewise.
13599 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13600 (arm_expand_epilogue): Likewise.
13601 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13602 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13603 (_reg_unused_after): Likewise.
13604 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13605 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13606 (add_to_reg, hwloop_optimize): Likewise.
13607 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13608 (bpf_expand_epilogue): Likewise.
13609 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13610 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13611 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13612 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13613 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13614 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13615 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13616 * config/frv/frv.c (frv_stack_info): Likewise.
13617 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13618 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13619 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13620 (move_callee_saved_registers): Likewise.
13621 * config/h8300/h8300.c (byte_reg): Likewise.
13622 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13623 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13624 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13625 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13626 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13627 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13628 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13629 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13630 * config/m32c/m32c.c (need_to_save): Likewise.
13631 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13632 * config/mcore/mcore.c (calc_live_regs): Likewise.
13633 * config/microblaze/microblaze.c (microblaze_must_save_register):
13634 Likewise.
13635 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13636 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13637 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13638 (mmix_expand_epilogue): Likewise.
13639 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13640 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13641 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13642 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13643 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13644 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13645 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13646 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13647 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13648 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13649 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13650 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13651 * config/rl78/rl78.c (need_to_save): Likewise.
13652 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13653 (rs6000_stack_info, generate_set_vrsave): Likewise.
13654 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13655 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13656 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13657 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13658 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13659 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13660 (save_local_or_in_reg_p): Likewise.
13661 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13662 (xstormy16_epilogue_uses): Likewise.
13663 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13664 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13665 * config/v850/v850.c (compute_register_save_size): Likewise.
13666 * config/vax/vax.c (vax_expand_prologue): Likewise.
13667 * config/visium/visium.c (visium_save_reg_p): Likewise.
13668 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13669 * cselib.c (cselib_process_insn): Likewise.
13670 * df-scan.c (df_get_entry_block_def_set): Likewise.
13671 * function.c (aggregate_value_p): Likewise.
13672 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13673 * ira-lives.c (process_bb_node_lives): Likewise.
13674 * ira.c (do_reload): Likewise.
13675 * lra-lives.c (process_bb_lives): Likewise.
13676 * lra-remat.c (lra_remat): Likewise.
13677 * lra.c (lra): Likewise.
13678 * postreload.c (reload_combine_recognize_pattern): Likewise.
13679 (reload_cse_move2add): Likewise.
13680 * recog.c (peep2_find_free_register): Likewise.
13681 * regrename.c (check_new_reg_p): Likewise.
13682 * reload.c (find_equiv_reg): Likewise.
13683 * reload1.c (reload, find_reg): Likewise.
13684 * sel-sched.c (init_hard_regs_data): Likewise.
13685
13686 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13687
13688 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13689 regs_invalidated_by_call & ~fixed_reg_set instead of
13690 call_used_or_fixed_regs & ~fixed_reg_set.
13691 * config/sh/sh.c (output_stack_adjust): Likewise.
13692
13693 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13694
13695 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13696 (call_used_reg_set): Delete.
13697 (call_used_or_fixed_regs): New macro.
13698 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13699 of call_used_reg_set.
13700 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13701 instead of call_used_regs.
13702 (save_call_clobbered_regs): Likewise.
13703 * cfgcleanup.c (old_insns_match_p): Likewise.
13704 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13705 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13706 Likewise.
13707 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13708 * config/sh/sh.c (output_stack_adjust): Likewise.
13709 * final.c (collect_fn_hard_reg_usage): Likewise.
13710 * ira-build.c (ira_build): Likewise.
13711 * ira-color.c (calculate_saved_nregs): Likewise.
13712 (allocno_reload_assign, calculate_spill_cost): Likewise.
13713 * ira-conflicts.c (ira_build_conflicts): Likewise.
13714 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13715 * ira-lives.c (process_bb_node_lives): Likewise.
13716 * ira.c (setup_reg_renumber): Likewise.
13717 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13718 * lra-constraints.c (need_for_call_save_p): Likewise.
13719 (need_for_split_p, inherit_in_ebb): Likewise.
13720 * lra-lives.c (process_bb_lives): Likewise.
13721 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13722 * postreload.c (reload_combine): Likewise.
13723 * regrename.c (find_rename_reg): Likewise.
13724 * reload1.c (reload_as_needed): Likewise.
13725 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13726 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13727 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13728
13729 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13730
13731 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13732 (no_caller_save_reg_set): Delete.
13733 * caller-save.c (init_caller_save): Don't initialize it.
13734 * ira-conflicts.c (ira_build_conflicts): Calculate
13735 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13736
13737 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13738
13739 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13740 (target_hard_regs::x_savable_regs): New field.
13741 (call_fixed_reg_set): Delete.
13742 (savable_regs): New macro,
13743 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13744 (init_reg_sets_1): Likewise. Initialize savable_regs.
13745 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13746 for all registers. Set savable_regs instead of call_fixed_reg_set.
13747 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13748 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13749 * config/sh/sh.c (output_stack_adjust): Likewise.
13750
13751 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13752
13753 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13754 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13755 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13756
13757 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13758
13759 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13760 * rtlanal.c (get_call_rtx_from): Likewise.
13761 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13762 than the pattern to get_call_rtx_from.
13763 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13764 an rtx_insn * instead of an rtx.
13765 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13766
13767 2019-09-10 Martin Liska <mliska@suse.cz>
13768
13769 * common.opt: Use newly added WarnRemoved.
13770 * config/aarch64/aarch64.opt: Likewise.
13771 * config/arm/arm.opt: Likewise.
13772 * config/i386/i386.opt: Likewise.
13773 * config/ia64/ia64.opt: Likewise.
13774 * config/rs6000/rs6000.opt: Likewise.
13775 * doc/options.texi: Document WarnRemoved properly.
13776 * dwarf2out.c (gen_producer_string): Handle renamed
13777 OPT_SPECIAL_warn_removed.
13778 * lto-opts.c (lto_write_options): Likewise.
13779 * lto-wrapper.c (merge_and_complain): Likewise.
13780 * opts-common.c (decode_cmdline_option): Likewise.
13781 (prune_options): Likewise.
13782 (read_cmdline_option): Likewise.
13783 (control_warning_option): Likewise.
13784 * opts.c (print_filtered_help): Likewise.
13785 * optc-gen.awk: Parse for WarnRemoved and make usage
13786 of Deprecated an error.
13787 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13788
13789 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13790
13791 * doc/install.texi: Fix syntax for html generation.
13792
13793 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13794
13795 PR middle-end/91680
13796 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13797 the shift type to type.
13798
13799 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13800
13801 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13802 FDPIC mode.
13803 (stack_protect_combined_test_insn): Likewise.
13804
13805 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13806 Mickaël Guêné <mickael.guene@st.com>
13807
13808 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13809 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13810 (load_tp_soft_fdpic): New pattern.
13811 (load_tp_soft): Disable in FDPIC mode.
13812
13813 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13814 Mickaël Guêné <mickael.guene@st.com>
13815
13816 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13817 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13818 (arm_call_tls_get_addr): Add FDPIC support.
13819 (legitimize_tls_address): Likewise.
13820 (arm_emit_tls_decoration): Likewise.
13821
13822 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13823 Mickaël Guêné <mickael.guene@st.com>
13824
13825 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13826 support.
13827 (arm_trampoline_init): Likewise.
13828 (arm_trampoline_adjust_address): Likewise.
13829 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13830
13831 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13832 Mickaël Guêné <mickael.guene@st.com>
13833
13834 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13835 (legitimize_pic_address): Enforce binding rules on function
13836 pointers in FDPIC mode.
13837 (arm_assemble_integer): Likewise.
13838
13839 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13840 Mickaël Guêné <mickael.guene@st.com>
13841
13842 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13843 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13844 FDPIC.
13845
13846 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13847 Mickaël Guêné <mickael.guene@st.com>
13848
13849 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13850 field.
13851
13852 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13853 Mickaël Guêné <mickael.guene@st.com>
13854
13855 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13856 in FDPIC mode.
13857 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13858 new function.
13859 * config/arm/arm.c (arm_option_override): Define pic register to
13860 FDPIC_REGNUM.
13861 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13862 have no decl or go through PLT.
13863 (calculate_pic_address_constant): New function.
13864 (legitimize_pic_address): Call calculate_pic_address_constant.
13865 (arm_load_pic_register): Handle TARGET_FDPIC.
13866 (arm_is_segment_info_known): New function.
13867 (arm_pic_static_addr): Add support for FDPIC.
13868 (arm_load_function_descriptor): New function.
13869 (arm_emit_call_insn): Add support for FDPIC.
13870 (arm_assemble_integer): Add support for FDPIC.
13871 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13872 Define. (FDPIC_REGNUM): New define.
13873 * config/arm/arm.md (call): Add support for FDPIC.
13874 (call_value): Likewise.
13875 (restore_pic_register_after_call): New pattern.
13876 (untyped_call): Disable if FDPIC.
13877 (untyped_return): Likewise.
13878 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13879
13880 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13881 Mickaël Guêné <mickael.guene@st.com>
13882
13883 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13884 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13885 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13886 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13887 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13888 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13889 * config/arm/uclinuxfdpiceabi.h: New file.
13890
13891 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13892
13893 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13894
13895 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13896 Mickaël Guêné <mickael.guene@st.com>
13897
13898 * config/arm/arm.opt: Add -mfdpic option.
13899 * doc/invoke.texi: Add documentation for -mfdpic.
13900
13901 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13902
13903 * expmed.c (extract_bit_field): Update function comment
13904 regarding alt_rtl.
13905 * expr.c (expand_expr_real): Update function comment
13906 regarding alt_rtl.
13907 (expand_misaligned_mem_ref): New helper function.
13908 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13909 Remove duplicate assignment to "base" at case MEM_REF.
13910 Remove a shadowed variable "unsignedp" at case VCE.
13911
13912 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13913
13914 * regset.h (regs_invalidated_by_call_regset): Delete.
13915 (fixed_reg_set_regset): Likewise.
13916 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13917 (fixed_reg_set_regset, persistent_obstack): Likewise.
13918 (init_reg_sets_1, globalize_reg): Update accordingly.
13919 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13920 instead of a bitmap.
13921 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13922 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13923 instead of regs_invalidated_by_call_regset.
13924 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13925 * df-scan.c (df_scan_start_dump): Likewise.
13926 * dse.c (copy_fixed_regs): Likewise.
13927 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13928
13929 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13930
13931 * array-traits.h: New file.
13932 * coretypes.h (array_traits, bitmap_view): New types.
13933 * bitmap.h: Include "array-traits.h"
13934 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13935 (base_bitmap_view, bitmap_view): New classes.
13936 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13937 * hard-reg-set.h: Include array-traits.h.
13938 (array_traits<HARD_REG_SET>): New struct.
13939 * regset.h (IOR_REG_SET_HRS): New macro.
13940 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13941 rather than iterating over each hard register.
13942 * sched-deps.c (sched_analyze_insn): Likewise.
13943 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13944
13945 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13946
13947 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13948 instead of a HARD_REG_SET *.
13949 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13950 (ira_build): Update call accordingly.
13951 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13952
13953 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13954
13955 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13956 (HARD_REG_SET::operator!=): Likewise.
13957 (hard_reg_set_equal_p): Delete.
13958 * cfgcleanup.c (old_insns_match_p): Use == instead of
13959 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13960 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13961 (add_allocno_hard_regs_to_forest): Likewise.
13962 (setup_allocno_available_regs_num): Likewise.
13963 * ira.c (setup_pressure_classes): Likewise.
13964 (setup_allocno_and_important_classes): Likewise.
13965 (setup_reg_class_relations): Likewise.
13966 * lra-lives.c (process_bb_lives): Likewise.
13967 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13968
13969 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13970
13971 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13972 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13973 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13974 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13975 Likewise.
13976 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13977 * ira.c (setup_reg_renumber): Likewise.
13978 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13979 * regrename.c (regrename_find_superclass): Likewise.
13980 * reload1.c (find_reg): Likewise.
13981
13982 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13983
13984 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13985 * caller-save.c (setup_save_areas): Use "&~" instead of
13986 AND_COMPL_HARD_REG_SET.
13987 (save_call_clobbered_regs): Likewise.
13988 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13989 Likewise.
13990 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13991 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13992 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13993 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13994 (mips_conditional_register_usage): Likewise.
13995 * config/sh/sh.c (output_stack_adjust): Likewise.
13996 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13997 (setup_profitable_hard_regs): Likewise.
13998 (get_conflict_and_start_profitable_regs): Likewise.
13999 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14000 (ira_build_conflicts): Likewise.
14001 * ira-costs.c (restrict_cost_classes): Likewise.
14002 (setup_regno_cost_classes_by_aclass): Likewise.
14003 * ira-lives.c (process_bb_node_lives): Likewise.
14004 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
14005 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
14006 (setup_allocno_and_important_classes, setup_class_translate_array)
14007 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
14008 Likewise.
14009 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14010 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14011 (process_alt_operands, inherit_in_ebb): Likewise.
14012 * lra-eliminations.c (update_reg_eliminate): Likewise.
14013 * lra-lives.c (process_bb_lives): Likewise.
14014 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
14015 * resource.c (find_dead_or_set_registers): Likewise.
14016 (mark_target_live_regs): Likewise.
14017 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
14018 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14019 (implicit_clobber_conflict_p): Likewise.
14020 * shrink-wrap.c (requires_stack_frame_p): Likewise.
14021 (try_shrink_wrapping): Likewise.
14022
14023 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14024
14025 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
14026 (HARD_REG_SET::operator|=): Likewise.
14027 (IOR_HARD_REG_SET): Delete.
14028 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
14029 IOR_HARD_REG_SET.
14030 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14031 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
14032 * final.c (collect_fn_hard_reg_usage): Likewise.
14033 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
14034 * ira-build.c (merge_hard_reg_conflicts): Likewise.
14035 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
14036 (propagate_some_info_from_allocno): Likewise.
14037 (copy_info_to_removed_store_destinations): Likewise.
14038 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
14039 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
14040 (fast_allocation): Likewise.
14041 * ira-conflicts.c (ira_build_conflicts): Likewise.
14042 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
14043 (process_bb_node_lives): Likewise.
14044 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
14045 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14046 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14047 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
14048 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
14049 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
14050 (process_bb_lives): Likewise.
14051 * lra-spills.c (assign_spill_hard_regs): Likewise.
14052 * postreload.c (reload_combine): Likewise.
14053 * reginfo.c (init_reg_sets_1): Likewise.
14054 * regrename.c (merge_overlapping_regs, find_rename_reg)
14055 (merge_chains): Likewise.
14056 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
14057 (find_reload_regs, finish_spills, choose_reload_regs_init)
14058 (emit_reload_insns): Likewise.
14059 * reorg.c (redundant_insn): Likewise.
14060 * resource.c (find_dead_or_set_registers, mark_set_resources)
14061 (mark_target_live_regs): Likewise.
14062 * rtlanal.c (find_all_hard_reg_sets): Likewise.
14063 * sched-deps.c (sched_analyze_insn): Likewise.
14064 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14065 (find_best_reg_for_expr): Likewise.
14066 * shrink-wrap.c (try_shrink_wrapping): Likewise.
14067
14068 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14069
14070 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
14071 (HARD_REG_SET::operator&): Likewise.
14072 (AND_HARD_REG_SET): Delete.
14073 * caller-save.c (setup_save_areas): Use "&" instead of
14074 AND_HARD_REG_SET.
14075 (save_call_clobbered_regs): Likewise.
14076 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14077 * config/m32c/m32c.c (reduce_class): Likewise.
14078 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14079 * final.c (get_call_reg_set_usage): Likewise.
14080 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
14081 (setup_left_conflict_sizes_p): Likewise.
14082 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14083 (ira_build_conflicts): Likewise.
14084 * ira-costs.c (restrict_cost_classes): Likewise.
14085 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
14086 (setup_reg_class_relations): Likewise.
14087 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
14088 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
14089 * resource.c (find_dead_or_set_registers): Likewise.
14090 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14091
14092 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14093
14094 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
14095 (COMPL_HARD_REG_SET): Delete.
14096 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
14097 of COMPL_HARD_REG_SET.
14098 (try_rename_operands): Likewise.
14099 * config/sh/sh.c (push_regs): Likewise.
14100 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14101 * lra-constraints.c (contains_reg_p): Likewise.
14102 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
14103
14104 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14105
14106 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
14107 * caller-save.c (save_call_clobbered_regs): Use assignment instead
14108 of COPY_HARD_REG_SET.
14109 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
14110 (epiphany_conditional_register_usage): Likewise.
14111 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14112 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14113 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14114 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14115 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
14116 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14117 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
14118 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14119 * config/sh/sh.c (output_stack_adjust): Likewise.
14120 * final.c (collect_fn_hard_reg_usage): Likewise.
14121 (get_call_reg_set_usage): Likewise.
14122 * ira-build.c (ira_create_object, remove_low_level_allocnos)
14123 (ira_flattening): Likewise.
14124 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
14125 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
14126 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
14127 (ira_reassign_pseudos): Likewise.
14128 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14129 (ira_build_conflicts): Likewise.
14130 * ira-costs.c (restrict_cost_classes): Likewise.
14131 (setup_regno_cost_classes_by_aclass): Likewise.
14132 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
14133 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
14134 (setup_stack_reg_pressure_class, setup_pressure_classes)
14135 (setup_allocno_and_important_classes, setup_class_translate_array)
14136 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
14137 (ira_setup_eliminable_regset): Likewise.
14138 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14139 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14140 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14141 (process_alt_operands, inherit_in_ebb): Likewise.
14142 * lra-lives.c (process_bb_lives): Likewise.
14143 * lra-spills.c (assign_spill_hard_regs): Likewise.
14144 * lra.c (lra): Likewise.
14145 * mode-switching.c (new_seginfo): Likewise.
14146 * postreload.c (reload_combine): Likewise.
14147 * reg-stack.c (straighten_stack): Likewise.
14148 * reginfo.c (save_register_info, restore_register_info): Likewise.
14149 (init_reg_sets_1, record_subregs_of_mode): Likewise
14150 * regrename.c (create_new_chain, rename_chains): Likewise.
14151 * reload1.c (order_regs_for_reload, find_reg): Likewise.
14152 (find_reload_regs): Likewise.
14153 * resource.c (find_dead_or_set_registers): Likewise.
14154 (mark_target_live_regs): Likewise.
14155 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14156
14157 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14158
14159 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
14160 (note_pattern_stores): Declare.
14161 (note_stores): Take an rtx_insn *.
14162 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
14163 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
14164 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
14165 (note_stores): Take an rtx_insn * as argument and process
14166 CALL_INSN_FUNCTION_USAGE. Rename old function to...
14167 (note_pattern_stores): ...this.
14168 (find_first_parameter_load): Pass the insn rather than
14169 its pattern to note_stores.
14170 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
14171 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
14172 (insert_one_insn): Likewise.
14173 * combine.c (combine_instructions): Likewise.
14174 (likely_spilled_retval_p): Likewise.
14175 (try_combine): Use note_pattern_stores instead of note_stores.
14176 (record_dead_and_set_regs): Pass the insn rather than its pattern
14177 to note_stores.
14178 (reg_dead_at_p): Likewise.
14179 * config/bfin/bfin.c (workaround_speculation): Likewise.
14180 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
14181 rather than an rtx.
14182 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
14183 instead of note_stores.
14184 (frv_optimize_membar_local): Pass the insn rather than its pattern
14185 to note_stores.
14186 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14187 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
14188 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
14189 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
14190 (mips_reorg_process_insns): Likewise.
14191 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
14192 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
14193 rather than rtxes.
14194 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
14195 its pattern to note_stores.
14196 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
14197 of note_stores.
14198 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
14199 the insn to note_stores.
14200 (prescan_insns_for_dce): Update call accordingly.
14201 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
14202 to note_stores.
14203 * df-problems.c (can_move_insns_across): Likewise.
14204 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
14205 * function.c (assign_parm_setup_reg): Likewise.
14206 * gcse-common.c (record_last_mem_set_info_common): Likewise.
14207 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
14208 (single_set_gcse): Likewise.
14209 * ira.c (validate_equiv_mem): Likewise.
14210 (update_equiv_regs): Use note_pattern_stores rather than note_stores
14211 for no_equiv.
14212 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
14213 pattern to note_stores.
14214 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14215 * loop-iv.c (simplify_using_initial_values): Likewise.
14216 * mode-switching.c (optimize_mode_switching): Likewise.
14217 * optabs.c (emit_libcall_block_1): Likewise.
14218 (expand_atomic_compare_and_swap): Likewise.
14219 * postreload-gcse.c (load_killed_in_block_p): Likewise.
14220 (record_opr_changes): Likewise. Remove explicit handling of
14221 CALL_INSN_FUNCTION_USAGE.
14222 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
14223 * regcprop.c (kill_clobbered_values): Likewise.
14224 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
14225 to note_stores.
14226 * regrename.c (build_def_use): Likewise.
14227 * reload1.c (reload): Use note_pattern_stores instead of note_stores
14228 for mark_not_eliminable.
14229 (reload_as_needed): Pass the insn rather than its pattern
14230 to note_stores.
14231 (emit_output_reload_insns): Likewise.
14232 * resource.c (mark_target_live_regs): Likewise.
14233 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14234 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
14235 instead of note_stores.
14236 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
14237 its pattern to note_stores.
14238 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
14239 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
14240
14241 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14242
14243 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
14244 than a #define. Use a structure rather than an array as the
14245 fallback definition. Remove special cases for low array sizes.
14246 (const_hard_reg_set): New typedef.
14247 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
14248 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
14249 (hard_reg_set_empty_p): Likewise.
14250 (SET_HARD_REG_BIT): Use a function rather than a macro to
14251 handle the case in which HARD_REG_SET is a structure.
14252 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
14253 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
14254 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
14255 (IOR_COMPL_HARD_REG_SET): Likewise.
14256 (hard_reg_set_iterator::pset): Constify the pointer target.
14257 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
14258 of a "const HARD_REG_SET". Update the handling of non-integer
14259 HARD_REG_SETs.
14260 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
14261 * reload.h: Likewise.
14262 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
14263 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
14264 of a "const HARD_REG_SET".
14265 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
14266 (range_in_hard_reg_set_p): Likewise.
14267 * ira-costs.c (restrict_cost_classes): Likewise.
14268 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
14269 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14270 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
14271 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
14272 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
14273 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
14274 take an unsigned int and open-code the HARD_REG_SET operations.
14275
14276 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14277
14278 * Makefile.in (OBJS): Remove bt-load.o.
14279 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
14280 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14281 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
14282 document that the option no longer does anything.
14283 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14284 * target.def (branch_target_register_class): Delete.
14285 (branch_target_register_callee_saved): Likewise.
14286 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14287 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
14288 * doc/tm.texi: Regenerate.
14289 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
14290 (make_pass_branch_target_load_optimize2): Likewise.
14291 * passes.def (pass_branch_target_load_optimize1): Likewise.
14292 (pass_branch_target_load_optimize2): Likewise.
14293 * targhooks.h (default_branch_target_register_class): Likewise.
14294 * targhooks.c (default_branch_target_register_class): Likewise.
14295 * opt-suggestions.c (test_completion_valid_options): Remove
14296 -fbtr-bb-exclusive from the list of test options.
14297 * bt-load.c: Remove.
14298
14299 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
14300
14301 * match.pd: Add flag_unsafe_math_optimizations check
14302 before deciding on the widest type in a binary math operation.
14303
14304 2019-09-09 Martin Liska <mliska@suse.cz>
14305
14306 * config/i386/i386.opt: Update comment of removed
14307 options that are preserved only for backward
14308 compatibility.
14309
14310 2019-09-09 Jakub Jelinek <jakub@redhat.com>
14311
14312 PR target/87853
14313 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
14314 instead of __v16qs.
14315
14316 PR target/91704
14317 * config/i386/avxintrin.h (__v32qs): New typedef.
14318 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
14319 instead of __v32qi.
14320
14321 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14322
14323 * doc/invoke.texi (Option Summary): Cover eBPF.
14324 (eBPF Options): New section.
14325 * doc/extend.texi (BPF Built-in Functions): Likewise.
14326 (BPF Kernel Helpers): Likewise.
14327
14328 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14329
14330 * config.gcc: Support for bpf-*-* targets.
14331 * common/config/bpf/bpf-common.c: New file.
14332 * config/bpf/t-bpf: Likewise.
14333 * config/bpf/predicates.md: Likewise.
14334 * config/bpf/constraints.md: Likewise.
14335 * config/bpf/bpf.opt: Likewise.
14336 * config/bpf/bpf.md: Likewise.
14337 * config/bpf/bpf.h: Likewise.
14338 * config/bpf/bpf.c: Likewise.
14339 * config/bpf/bpf-protos.h: Likewise.
14340 * config/bpf/bpf-opts.h: Likewise.
14341 * config/bpf/bpf-helpers.h: Likewise.
14342 * config/bpf/bpf-helpers.def: Likewise.
14343
14344 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14345
14346 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14347 indirect_calls.
14348
14349 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14350
14351 * opt-functions.awk (integer_range_info): Make sure values are in
14352 numeric context before operating with them.
14353
14354 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
14355
14356 * genemit.c (gen_split): Print the filename and line number where the
14357 splitter (or peephole2) was defined, to the dump file.
14358
14359 2019-09-07 Jakub Jelinek <jakub@redhat.com>
14360
14361 PR tree-optimization/91665
14362 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
14363 incompatible with the type of PHI result.
14364
14365 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14366
14367 PR target/91684
14368 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
14369 gen_unaligned_storedi for 4-byte aligned addresses.
14370
14371 2019-09-06 Jim Wilson <jimw@sifive.com>
14372
14373 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14374 change.
14375
14376 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14377
14378 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14379
14380 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14381
14382 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14383 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14384
14385 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
14386
14387 PR target/91654
14388 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14389 cost of SSE->integer and integer->SSE moves from 2 to 6.
14390 (core_cost): Ditto.
14391
14392 2019-09-06 Jakub Jelinek <jakub@redhat.com>
14393
14394 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14395 before testing TYPE_TRANSPARENT_AGGR.
14396 * calls.c (initialize_argument_information, load_register_parameters):
14397 Likewise.
14398
14399 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
14400
14401 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14402 high regs.
14403 (cmp_ior): Likewise.
14404
14405 2019-09-06 Martin Liska <mliska@suse.cz>
14406
14407 * doc/match-and-simplify.texi: Separate tuples with ;.
14408
14409 2019-09-06 Martin Liska <mliska@suse.cz>
14410
14411 PR c++/91125
14412 * Makefile.in: Remove tlink.o.
14413 * collect2.c (do_link): New function isolated
14414 from do_tlink.
14415 (main): Use.
14416 * collect2.h (do_tlink): Remove declaration of do_tlink.
14417 * doc/extend.texi: Remove documentation of -frepo.
14418 * doc/invoke.texi: Likewise.
14419 * doc/sourcebuild.texi: Remove cleanup-repo-files.
14420 * tlink.c: Remove.
14421
14422 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14423 Jim Wilson <jimw@sifive.com>
14424
14425 PR target/91635
14426 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14427 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14428 paradoxical_subreg_p (operands[0]).
14429 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14430 use as intermediate value.
14431
14432 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
14433
14434 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14435 (sync_compare_and_swap<mode>_insn): Likewise.
14436
14437 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14438
14439 PR middle-end/91615
14440 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14441 without movmisalign optab.
14442
14443 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14444
14445 PR middle-end/91001
14446 PR middle-end/91105
14447 PR middle-end/91106
14448 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14449 types, use type of their first field instead of type of
14450 args[i].tree_value.
14451
14452 2019-09-05 Richard Biener <rguenther@suse.de>
14453
14454 PR rtl-optimization/91656
14455 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14456 of early out.
14457
14458 2019-09-05 Richard Biener <rguenther@suse.de>
14459
14460 PR middle-end/90501
14461 * tree-inline.c (declare_return_variable): Mark the return
14462 slot as addressable after building an address of it.
14463
14464 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14465
14466 * doc/install.texi: Update and clarify requirements to build GNAT.
14467
14468 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14469
14470 PR middle-end/91577
14471 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14472 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14473 call to be in memory.
14474 (pass_expand::execute): Call discover_nonconstant_array_refs before
14475 setting currently_expanding_to_rtl.
14476
14477 2019-09-04 Caroline Tice <cmtice@google.com>
14478
14479 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14480 specified together.
14481
14482 2019-09-04 Marek Polacek <polacek@redhat.com>
14483
14484 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14485
14486 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14487
14488 PR target/32413
14489 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14490 for QI and HImode moves between SSE and general registers.
14491
14492 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14493
14494 PR c/78736
14495 * doc/invoke.texi: Document -Wenum-conversion.
14496
14497 2019-09-04 Richard Biener <rguenther@suse.de>
14498
14499 PR rtl-optimization/36262
14500 * postreload-gcse.c: Include intl.h and gcse.h.
14501 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14502 to avoid linear list walk.
14503 (record_last_mem_set_info): Gate off if not computing transparentness.
14504 (get_bb_avail_insn): If transparentness isn't computed give up
14505 early.
14506 (gcse_after_reload_main): Skip compute_transp and extended PRE
14507 if gcse_or_cprop_is_too_expensive says so.
14508
14509 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14510
14511 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14512 noinit section.
14513 (msp430_select_section): Handle decls with the "noinit" attribute with
14514 default_elf_select_section.
14515 Handle SECCAT_RODATA_MERGE_* section types with
14516 default_elf_select_section.
14517 Add comments about handling of unsupported section types.
14518 (msp430_section_type_flags): Remove handling of the noinit section.
14519
14520 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14521
14522 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14523 conflicting msp430-specific attributes.
14524 (msp430_section_attr): Likewise.
14525 Add warnings about conflicts with generic "noinit" and "section"
14526 attributes.
14527 Fix grammar in -mlarge error message.
14528 (msp430_data_attr): Rename to msp430_persist_attr.
14529 Add warnings about conflicts with generic "noinit" and "section"
14530 attributes.
14531 Add warning for when variable is not initialized.
14532 Chain conditionals which prevent the attribute being added.
14533 (ATTR_EXCL): New helper.
14534 (attr_reent_exclusions): New exclusion table.
14535 (attr_naked_exclusions): Likewise.
14536 (attr_crit_exclusions): Likewise.
14537 (attr_lower_exclusions): Likewise.
14538 (attr_upper_exclusions): Likewise.
14539 (attr_either_exclusions): Likewise.
14540 (attr_persist_exclusions): Likewise.
14541 (msp430_attribute_table): Update with exclusion rules.
14542 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14543 has a section.
14544
14545 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14546
14547 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14548 (msp430_handle_generic_attribute): New function.
14549 * doc/tm.texi: Regenerate.
14550 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14551 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14552 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14553 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14554
14555 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14556
14557 PR tree-optimization/91504
14558 * match.pd: Add ((~a & b) ^a) --> (a | b).
14559
14560 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14561
14562 PR target/91604
14563 * config/i386/i386-expand.c (split_double_mode): If there is more than
14564 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14565 already split matching MEM operand instead of calling adjust_address
14566 again.
14567
14568 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14569
14570 * config.gcc: Obsolete spu target. Remove references to spu.
14571 * configure.ac: Remove references to spu.
14572 * configure: Regenerate.
14573 * config/spu/: Remove directory.
14574 * common/config/spu/: Remove directory.
14575
14576 * doc/extend.texi: Remove references to spu.
14577 * doc/invoke.texi: Likewise.
14578 * doc/md.texi: Likewise.
14579 * doc/sourcebuild.texi: Likewise.
14580
14581 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14582
14583 PR middle-end/91603
14584 PR middle-end/91612
14585 PR middle-end/91613
14586 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14587 and SSA_NAME referring to CONSTANT_P correctly.
14588
14589 2019-09-03 Richard Biener <rguenther@suse.de>
14590
14591 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14592 (vn_nary_op_insert): Likewise.
14593 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14594 (vn_nary_op_lookup): Likewise.
14595 (vn_nary_op_insert): Likewise.
14596
14597 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14598
14599 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14600 (*op0, 1) instead of XEXP (*op1, 0).
14601
14602 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14603
14604 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14605 (aarch64_fjcvtzs): New define_insn.
14606 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14607 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14608 Add AARCH64_JSCVT.
14609 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14610 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14611 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14612 __ARM_FEATURE_JCVT where appropriate.
14613 * config/aarch64/arm_acle.h (__jcvt): Define.
14614
14615 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14616
14617 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14618 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14619 (aarch64_<frintnzs_op><mode>): New define_insn.
14620 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14621 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14622 __ARM_FEATURE_FRINT when appropriate.
14623 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14624 frint32x, frint64z, frint64x.
14625 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14626 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14627 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14628 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14629 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14630 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14631 * config/aarch64/iterators.md (VSFDF): Define.
14632 (FRINTNZX): Likewise.
14633 (frintnzs_op): Likewise.
14634
14635 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14636
14637 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14638 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14639 Cortex-A34.
14640 * config/aarch64/aarch64-tune.md: Regenerated.
14641 * doc/invoke.texi: Document the new processors.
14642
14643 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14644
14645 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14646 string.
14647 (ssbs): Likewise.
14648 (sve2): Likewise.
14649 (sve2-sm4): Likewise.
14650 (sveaes): Likewise.
14651 (svesha3): Likewise.
14652 (svebitperm): Likewise.
14653
14654 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14655 Richard Biener <rguenther@suse.de>
14656
14657 PR tree-optimization/91597
14658 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14659 BIT_AND_EXPR optimization for pointers, even if both operand
14660 ranges don't include NULL, the result can be NULL.
14661
14662 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14663
14664 PR middle-end/91605
14665 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14666 (non_mem_decl_p): ...this.
14667 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14668 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14669 unconditionally as before.
14670
14671 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14672
14673 PR target/91323
14674 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14675 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14676 * tree.def (LTGT_EXPR): Likewise.
14677 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14678
14679 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14680
14681 PR go/91617
14682 * fold-const.c (range_check_type): For enumeral and boolean
14683 type, pass 1 to type_for_size langhook instead of
14684 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14685 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14686 (build_range_check): Don't call unsigned_type_for for pointer types.
14687 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14688 range_check_type result.
14689
14690 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14691
14692 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14693 (replace_ref): Do not replace a chain of only two candidates which are
14694 valid memory references.
14695
14696 2019-09-02 Martin Liska <mliska@suse.cz>
14697
14698 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14699 Bail out when we'll end up with the same number of clusters as
14700 at the beginning.
14701 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14702 (jump_table_cluster::can_be_handled): Remove the guard
14703 as it's already handled in ::is_enabled. Allocate output
14704 after early bail out.
14705
14706 2019-09-02 Martin Liska <mliska@suse.cz>
14707
14708 PR gcov-profile/91601
14709 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14710 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14711 also negative edges.
14712 (circuit): Handle also negative edges as they can happen
14713 in some situations.
14714
14715 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14716
14717 PR target/91472
14718 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14719 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14720 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14721
14722 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14723
14724 PR middle-end/91623
14725 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14726 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14727 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14728 zero vector.
14729
14730 PR lto/91572
14731 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14732 GIMPLE_ASM TREE_LIST operands.
14733
14734 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14735
14736 * doc/generic.texi (Unary and Binary Expressions): Mark up
14737 an instance of TYPE_MIN.
14738
14739 2019-08-31 Stafford Horne <shorne@gmail.com>
14740
14741 * config/or1k/constraints.md (t): New constraint.
14742 * config/or1k/or1k.h (GOT_REGS): New register class.
14743 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14744
14745 2019-08-30 Jim Wilson <jimw@sifive.com>
14746
14747 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14748 and -fpic and -mplt then disable -msave-restore and warn.
14749
14750 2019-08-30 Martin Sebor <msebor@redhat.com>
14751
14752 PR middle-end/91599
14753 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14754 the statement doesn't have one.
14755 * gimple-pretty-print.c (percent_G_format): Same.
14756
14757 PR middle-end/91584
14758 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14759 before using them to validate MEM_REF offset.
14760
14761 2019-08-30 Marek Polacek <polacek@redhat.com>
14762
14763 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14764
14765 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14766
14767 * config/arm/arm.md (unaligned_loaddi,
14768 unaligned_storedi): New unspec insn patterns.
14769 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14770 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14771 and unaligned_storedi for 4-byte aligned memory.
14772 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14773 4-byte aligned memory.
14774
14775 2019-08-30 Martin Jambor <mjambor@suse.cz>
14776
14777 tree-optimization/91579
14778 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14779 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14780 appropriate.
14781 (arg_needs_copy_p): Removed.
14782 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14783 arg_needs_copy_p.
14784 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14785
14786 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14787
14788 * config/i386/i386-features.c
14789 (general_scalar_chain::compute_convert_gain):
14790 Correct cost for double-word shifts.
14791 (general_scalar_to_vector_candidate_p): Reject count operands
14792 greater or equal to mode bitsize.
14793
14794 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14795
14796 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14797 for moves between SSE and non-general registers and between
14798 mask and non-general registers.
14799 (ix86_register_move_cost): Remove stalled comment.
14800
14801 2019-08-29 Richard Biener <rguenther@suse.de>
14802
14803 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14804 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14805
14806 2019-08-29 Richard Biener <rguenther@suse.de>
14807
14808 PR bootstrap/91580
14809 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14810 Do not emit scalar copies for debug-insns, instead replace
14811 their uses with the reg copy used in the chain or reset them
14812 if there is a reaching definition outside of the chain as well.
14813
14814 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14815
14816 PR target/91560
14817 * config/i386/i386-expand.c (expand_vec_perm_movs,
14818 expand_vec_perm_blend, expand_vec_perm_vpermil,
14819 expand_vec_perm_pshufb, expand_vec_perm_1,
14820 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14821 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14822 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14823 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14824 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14825 comments - replace ix86_expand_vec_perm_builtin_1 with
14826 ix86_expand_vec_perm_const_1.
14827 (expand_vec_perm2_vperm2f128_vblend): New function.
14828 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14829 expand_vec_perm2_vperm2f128_vblend as last resort.
14830 (canonicalize_perm): Formatting fix.
14831
14832 PR tree-optimization/91351
14833 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14834 unsigned_type_for.
14835 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14836 range_check_type returns NULL.
14837 * tree-switch-conversion.c (switch_conversion::build_one_array):
14838 Use range_check_type instead of unsigned_type_for, don't perform
14839 linear opt if it returns NULL.
14840 (bit_test_cluster::find_bit_tests): Formatting fix.
14841 (bit_test_cluster::emit): Use range_check_type instead of
14842 unsigned_type_for.
14843 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14844 returns NULL.
14845
14846 2019-08-29 Richard Biener <rguenther@suse.de>
14847
14848 PR tree-optimization/91568
14849 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14850 (vect_update_max_nunits): Add overload for poly_uint64.
14851 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14852 (vect_build_slp_tree): Record max_nunits into the subtree
14853 and merge it upwards.
14854 (vect_print_slp_tree): Print max_nunits.
14855
14856 2019-08-28 Marek Polacek <polacek@redhat.com>
14857
14858 Implement P1152R4: Deprecating some uses of volatile.
14859 PR c++/91361
14860 * doc/invoke.texi: Document -Wvolatile.
14861
14862 2019-08-28 Marek Polacek <polacek@redhat.com>
14863
14864 PR c++/91360 - Implement C++20 P1143R2: constinit.
14865 * doc/invoke.texi: Document -Wc++20-compat.
14866
14867 2019-08-28 Martin Sebor <msebor@redhat.com>
14868
14869 PR tree-optimization/91457
14870 * builtins.c (component_size): New function.
14871 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14872 * builtins.h (compute_objsize): Add argument.
14873 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14874 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14875 (vrp_prop::check_mem_ref): Same.
14876 (vrp_prop::search_for_addr_array): Set no-warning bit.
14877 (check_array_bounds): Same.
14878
14879 2019-08-28 Martin Sebor <msebor@redhat.com>
14880
14881 PR driver/80545
14882 * opts-common.c (option_enabled): Correct checking for language
14883 options.
14884
14885 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14886
14887 * config/i386/i386.c (ix86_register_move_cost): Do not
14888 limit the cost of moves to/from XMM register to minimum 8.
14889
14890 2019-08-28 Martin Jambor <mjambor@suse.cz>
14891
14892 PR ipa/91468
14893 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14894 checking assert a normal assert to test it really is redundant.
14895 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14896 redundant test.
14897 (update_jump_functions_after_inlining): Removed combining unary
14898 arithmetic operations with an ancestor jump function.
14899 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14900 instead of t.
14901
14902 2019-08-28 Richard Biener <rguenther@suse.de>
14903
14904 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14905 add the MD problem.
14906
14907 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14908 Richard Biener <rguenther@suse.de>
14909
14910 * expr.c (expand_assignment): Handle misaligned DECLs.
14911 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14912 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14913 too.
14914 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14915 * varasm.c (build_constant_desc): Align constants of misaligned types.
14916 * config/arm/predicates.md (aligned_operand): New predicate.
14917 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14918 aligned_operand to check restrictions on memory addresses.
14919 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14920 * config/arm/vec-common.md (mov<VALL>): Likewise.
14921
14922 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14923
14924 PR libgomp/91530
14925 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14926 V_128 iterator instead of VI_128.
14927
14928 2019-08-28 Martin Liska <mliska@suse.cz>
14929
14930 PR tree-optimization/90970
14931 * builtins.c (check_access): Remove assignment to maxread
14932 as it hasn't been used since when it was introduced in r255755.
14933
14934 2019-08-27 Martin Sebor <msebor@redhat.com>
14935
14936 PR tree-optimization/91567
14937 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14938 of unknown strings.
14939 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14940 to PTRDIFF_MAX - 2.
14941
14942 2019-08-27 Jeff Law <law@redhat.com>
14943
14944 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14945 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14946
14947 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14948
14949 PR target/91528
14950 * config/i386/i386-features.c (convert_scalars_to_vector):
14951 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14952 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14953 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14954 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14955
14956 2019-08-27 Richard Biener <rguenther@suse.de>
14957
14958 * config/i386/i386-features.h
14959 (general_scalar_chain::~general_scalar_chain): Add.
14960 (general_scalar_chain::insns_conv): New bitmap.
14961 (general_scalar_chain::n_sse_to_integer): New.
14962 (general_scalar_chain::n_integer_to_sse): Likewise.
14963 (general_scalar_chain::make_vector_copies): Adjust signature.
14964 * config/i386/i386-features.c
14965 (general_scalar_chain::general_scalar_chain): Outline,
14966 initialize new members.
14967 (general_scalar_chain::~general_scalar_chain): New.
14968 (general_scalar_chain::mark_dual_mode_def): Record insns
14969 we need to insert conversions at and count them.
14970 (general_scalar_chain::compute_convert_gain): Account
14971 for conversion instructions at chain boundary.
14972 (general_scalar_chain::make_vector_copies): Generate a single
14973 copy for a def by a specific insn.
14974 (general_scalar_chain::convert_registers): First populate
14975 defs_map, then make copies at out-of chain insns.
14976
14977 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14978
14979 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14980 comment.
14981 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14982
14983 2019-08-27 Martin Liska <mliska@suse.cz>
14984
14985 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14986 loop.
14987 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14988 Enclose in anonymous namespace.
14989 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14990 hard_register initialization in braces.
14991 * tree-vrp.h (value_range_base::supports_type_p): Return false
14992 for function with boolean return type.
14993
14994 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14995
14996 * config/i386/i386.c (emit_i387_cw_initialization)
14997 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14998
14999 2019-08-26 Martin Sebor <msebor@redhat.com>
15000
15001 PR c++/83431
15002 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
15003 (sprintf_dom_walker): Remove class.
15004 (get_int_range): Make argument const.
15005 (directive::fmtfunc, directive::set_precision): Same.
15006 (format_none): Same.
15007 (build_intmax_type_nodes): Same.
15008 (adjust_range_for_overflow): Same.
15009 (format_floating): Same.
15010 (format_character): Same.
15011 (format_string): Same.
15012 (format_plain): Same.
15013 (get_int_range): Cast away constness.
15014 (format_integer): Same.
15015 (get_string_length): Call get_range_strlen_dynamic. Handle
15016 null lendata.maxbound.
15017 (should_warn_p): Adjust argument scope qualifier.
15018 (maybe_warn): Same.
15019 (format_directive): Same.
15020 (parse_directive): Same.
15021 (is_call_safe): Same.
15022 (try_substitute_return_value): Same.
15023 (sprintf_dom_walker::handle_printf_call): Rename...
15024 (handle_printf_call): ...to this. Initialize target to host charmap
15025 here instead of in pass_sprintf_length::execute.
15026 (struct call_info): Make global.
15027 (sprintf_dom_walker::compute_format_length): Make global.
15028 (sprintf_dom_walker::handle_gimple_call): Same.
15029 * passes.def (pass_sprintf_length): Replace with pass_strlen.
15030 * print-rtl.c (print_pattern): Reduce the number of spaces to
15031 avoid -Wformat-truncation.
15032 * tree-pass.h (make_pass_warn_printf): New function.
15033 * tree-ssa-strlen.c (strlen_optimize): New variable.
15034 (get_string_length): Add comments.
15035 (get_range_strlen_dynamic): New function.
15036 (check_and_optimize_call): New function.
15037 (handle_integral_assign): New function.
15038 (strlen_check_and_optimize_stmt): Factor code out into
15039 strlen_check_and_optimize_call and handle_integral_assign.
15040 (strlen_dom_walker::evrp): New member.
15041 (strlen_dom_walker::before_dom_children): Use evrp member.
15042 (strlen_dom_walker::after_dom_children): Use evrp member.
15043 (printf_strlen_execute): New function.
15044 (pass_strlen::gate): Update to handle printf calls.
15045 (dump_strlen_info): New function.
15046 (pass_data_warn_printf): New variable.
15047 (pass_warn_printf): New class.
15048 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
15049 (handle_printf_call): Same.
15050 * tree-vrp.c (value_range_base::type): Adjust assertion.
15051 * vr-values.c (vr_values::update_value_range): Use type of the first
15052 argument rather than the second.
15053
15054 2019-08-26 Richard Biener <rguenther@suse.de>
15055
15056 * config/i386/i386-features.c (general_remove_non_convertible_regs):
15057 Remove.
15058 (convert_scalars_to_vector): Do not call it.
15059
15060 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15061 Uros Bizjak <ubizjak@gmail.com>
15062
15063 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
15064 CASE_MATHFN_FLOATN for roundeven.
15065 * config/i386/i386.c (ix86_i387_mode_needed): Add case
15066 I387_ROUNDEVEN.
15067 (ix86_mode_needed): Likewise.
15068 (ix86_mode_after): Likewise.
15069 (ix86_mode_entry): Likewise.
15070 (ix86_mode_exit): Likewise.
15071 (ix86_emit_mode_set): Likewise.
15072 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
15073 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
15074 (ix86_entity): Add I387_ROUNDEVEN.
15075 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
15076 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
15077 (define_int_iterator): Likewise.
15078 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
15079 (define_constant): Define ROUND_ROUNDEVEN mode.
15080 (define_attr): Add roundeven mode for i387_cw.
15081 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
15082 * internal-fn.def (ROUNDEVEN): New builtin function.
15083 * optabs.def (roundeven_optab): New optab.
15084
15085 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15086
15087 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
15088 for ROUNDEVEN.
15089 * builtins.def: Added function definitions for roundeven function
15090 variants.
15091 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
15092 function call. Adjust condition for floor, ceil, trunc and round.
15093 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
15094 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
15095 (integer_valued_real_call_p): Added case for roundeven function.
15096 * real.c (is_even): New function. Returns true if real number is even,
15097 otherwise returns false.
15098 (is_halfway_below): New function. Returns true if real number is
15099 halfway between two integers, else return false.
15100 (real_roundeven): New function. Round real number to nearest integer,
15101 rounding halfway cases towards even.
15102 * real.h (real_value): Added descriptive comments. Added function
15103 declaration for roundeven function.
15104 * doc/extend.texi (Other Builtins): List roundeven variants among
15105 functions which can be handled as builtins.
15106
15107 2019-08-26 Richard Biener <rguenther@suse.de>
15108
15109 PR target/91522
15110 PR target/91527
15111 * config/i386/i386-features.h (general_scalar_chain::defs_map):
15112 New member.
15113 (general_scalar_chain::replace_with_subreg): Remove.
15114 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15115 (general_scalar_chain::convert_reg): Adjust signature.
15116 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
15117 iterate over all defs of a reg.
15118 (general_scalar_chain::replace_with_subreg): Remove.
15119 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15120 (general_scalar_chain::make_vector_copies): Populate defs_map,
15121 place copy only after defs that are used as vectors in the chain.
15122 (general_scalar_chain::convert_reg): Emit a copy for a specific
15123 def in a specific instruction.
15124 (general_scalar_chain::convert_op): All reg uses are converted here.
15125 (general_scalar_chain::convert_insn): Emit copies for scalar
15126 uses of defs here. Replace uses with the copies we created.
15127 Replace and convert the def. Adjust REG_DEAD notes, remove
15128 REG_EQUIV/EQUAL notes.
15129 (general_scalar_chain::convert_registers): Only handle copies
15130 into the chain here.
15131
15132 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15133
15134 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
15135
15136 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15137
15138 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
15139 Add nop_convert case.
15140 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
15141 Fold all statements if requested.
15142 * tree-ssa-propagate.h (class substitute_and_fold_engine):
15143 Allow to fold all statements.
15144 * tree-vrp.c (class vrp_folder):
15145 Let substitute_and_fold_engine fold all statements.
15146
15147 2019-08-26 Richard Biener <rguenther@suse.de>
15148
15149 PR tree-optimization/91526
15150 * passes.def: Note that after late FRE we do TODO_update_address_taken.
15151 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
15152 TODO_update_address_taken.
15153
15154 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
15155
15156 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
15157 __STDC_HOSTED__.
15158
15159 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
15160
15161 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
15162 machine mode for unspec_volatile operand.
15163
15164 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
15165
15166 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
15167 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
15168 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
15169 (prefer_neon_for_64bits): Remove.
15170 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
15171 (tune_params): Remove PREF_NEON_64_FALSE uses.
15172 (arm_option_override): Remove prefer_neon selection code.
15173 (arm_print_tune_info): Remove prefer_neon_for_64bits.
15174 * config/arm/arm-protos.h (tune_params): Remove
15175 prefer_neon_for_64bits.
15176 (prefer_neon_for_64bits): Remove.
15177
15178 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
15179
15180 PR pch/61250
15181 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
15182 and issue any diagnostics needed before collecting the pre-PCH
15183 state.
15184
15185 2019-08-23 Jakub Jelinek <jakub@redhat.com>
15186
15187 PR middle-end/91283
15188 * common.opt (fexcess-precision=): Add Optimization flag. Use
15189 flag_excess_precision variable instead of
15190 flag_excess_precision_cmdline.
15191 * flags.h (class target_flag_state): Remove x_flag_excess_precision
15192 member.
15193 (flag_excess_precision): Don't define.
15194 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
15195 flag_excess_precision_cmdline. Remove comment.
15196 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
15197 and x_flag_excess_precision instead of
15198 frontend_set_flag_excess_precision_cmdline and
15199 x_flag_excess_precision_cmdline.
15200 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
15201 x_flag_excess_precision_cmdline.
15202 * toplev.c (init_excess_precision): Remove.
15203 (lang_dependent_init_target): Don't call it.
15204
15205 2019-08-23 Martin Liska <mliska@suse.cz>
15206
15207 * lto-wrapper.c (run_gcc): When setting jobserver
15208 set also parallel to 1. This was done so before r273908.
15209
15210 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
15211
15212 * config/arm/arm-cpus.in (cortex-m35p): New entry.
15213 (cortex-a76ae): Likewise.
15214 (cortex-a77): Likewise
15215 * config/arm/arm-tables.opt: Regenerate.
15216 * config/arm/arm-tune.md: Likewise.
15217 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
15218 cortex-a77 CPU options.
15219
15220 2019-08-23 Martin Liska <mliska@suse.cz>
15221
15222 * profile.c (instrument_values): Do not set
15223 0 as last argument.
15224 * tree-profile.c (gimple_gen_interval_profiler): Remove
15225 last argument.
15226 (gimple_gen_pow2_profiler): Likewise.
15227 (gimple_gen_topn_values_profiler): Likewise.
15228 (gimple_gen_ic_profiler): Likewise.
15229 (gimple_gen_time_profiler): Likewise.
15230 (gimple_gen_average_profiler): Likewise.
15231 (gimple_gen_ior_profiler): Likewise.
15232 * value-prof.c (dump_histogram_value): Use default
15233 in switch statement instead of HIST_TYPE_MAX.
15234 (stream_in_histogram_value): Likewise.
15235 (gimple_duplicate_stmt_histograms): Do not
15236 use NULL for implicitly set arguments.
15237 (gimple_divmod_values_to_profile): Do not use
15238 reserve+quick_push.
15239 (gimple_indirect_call_to_profile): Likewise.
15240 (gimple_find_values_to_profile): Use implicit
15241 function call arguments.
15242 * value-prof.h (gimple_alloc_histogram_value):
15243 Set default values.
15244 (gimple_gen_interval_profiler): Remove last argument.
15245 (gimple_gen_pow2_profiler): Likewise.
15246 (gimple_gen_topn_values_profiler): Likewise.
15247 (gimple_gen_ic_profiler): Likewise.
15248 (gimple_gen_time_profiler): Likewise.
15249 (gimple_gen_average_profiler): Likewise.
15250 (gimple_gen_ior_profiler): Likewise.
15251
15252 2019-08-22 Martin Sebor <msebor@redhat.com>
15253
15254 PR middle-end/91490
15255 * builtins.c (c_strlen): Rename argument and introduce new local.
15256 Set no-warning bit on original argument.
15257 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
15258 Fold empty and zero constructors into empty strings.
15259 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
15260 for missing initializers.
15261 * tree.c (build_string_literal): Handle optional argument.
15262 * tree.h (build_string_literal): Add defaulted argument.
15263 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
15264 no-warning bit on original expression.
15265
15266 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15267
15268 PR target/91481
15269 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15270 and UNSPEC_DARN_RAW.
15271 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
15272 UNSPECV_DARN_RAW.
15273 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
15274 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
15275 (darn): Use an unspec_volatile, and UNSPECV_DARN.
15276
15277 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15278
15279 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15280 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
15281 * config/rs6000/rs6000.md (unspec): ... here.
15282 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
15283 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15284 cmpeqb, *cmpeqb_internal): Delete, move to...
15285 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
15286 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15287 cmpeqb, *cmpeqb_internal): ... here.
15288
15289 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15290
15291 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
15292 intrinsics if __ARM_FP.
15293 Use __ARM_FEATURE_CRC32 ifdef guard.
15294
15295 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15296
15297 * config/arm/arm.md (neon_for_64bits): Remove.
15298 (avoid_neon_for_64bits): Remove.
15299 (arm_adddi3): Always split early.
15300 (arm_subdi3): Always split early.
15301 (negdi2): Remove Neon expansion.
15302 (split zero_extend): Split before reload.
15303 (split sign_extend): Split before reload.
15304
15305 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15306
15307 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
15308 (qhs_extenddi_cstr): Likewise.
15309 * config/arm/arm.md (ashldi3): Always expand early.
15310 (ashlsi3): Likewise.
15311 (ashrsi3): Likewise.
15312 (zero_extend<mode>di2): Remove Neon variants.
15313 (extend<mode>di2): Likewise.
15314 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
15315 (signed_shift_di3_neon): Likewise.
15316 (unsigned_shift_di3_neon): Likewise.
15317 (ashrdi3_neon_imm_noclobber): Likewise.
15318 (lshrdi3_neon_imm_noclobber): Likewise.
15319 (<shift>di3_neon): Likewise.
15320 (split extend): Remove DI extend split patterns.
15321
15322 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15323
15324 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
15325 (split not): Add DImode not splitter.
15326 (anddi3): Remove pattern.
15327 (anddi3_insn): Likewise.
15328 (anddi_zesidi_di): Likewise.
15329 (anddi_sesdi_di): Likewise.
15330 (anddi_notdi_di): Likewise.
15331 (anddi_notzesidi_di): Likewise.
15332 (anddi_notsesidi_di): Likewise.
15333 (iordi3): Likewise.
15334 (iordi3_insn): Likewise.
15335 (iordi_zesidi_di): Likewise.
15336 (iordi_sesidi_di): Likewise.
15337 (xordi3): Likewise.
15338 (xordi3_insn): Likewise.
15339 (xordi_sesidi_di): Likewise.
15340 (xordi_zesidi_di): Likewise.
15341 (one_cmpldi2): Likewise.
15342 (one_cmpldi2_insn): Likewise.
15343 * config/arm/constraints.md: Remove De, Df, Dg constraints.
15344 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
15345 alternative.
15346 (iwmmxt_xordi3): Likewise.
15347 (iwmmxt_anddi3): Likewise.
15348 * config/arm/neon.md (orndi3_neon): Remove pattern.
15349 (anddi_notdi_di): Likewise.
15350 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
15351 (arm_iordi_operand_neon): Likewise.
15352 (arm_xordi_operand_neon): Likewise.
15353 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
15354 (iordi_notzesidi_di): Likewise.
15355 (iordi_notdi_zesidi): Likewise.
15356 (iordi_notsesidi_di): Likewise.
15357
15358 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
15359
15360 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
15361 insn.
15362 (iorsi3_compare0_scratch): Likewise.
15363
15364 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
15365
15366 * config/aarch64/aarch64-simd-builtins.def:
15367 (ld1x4): New.
15368 (st1x4): Likewise.
15369 * config/aarch64/aarch64-simd.md:
15370 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15371 (aarch64_st1x4<VALLDIF:mode>): Likewise.
15372 (aarch64_ld1_x4_<mode>): Likewise.
15373 (aarch64_st1_x4_<mode>): Likewise.
15374 * config/aarch64/arm_neon.h:
15375 (vld1_s8_x4): New function.
15376 (vld1q_s8_x4): Likewise.
15377 (vld1_s16_x4): Likewise.
15378 (vld1q_s16_x4): Likewise.
15379 (vld1_s32_x4): Likewise.
15380 (vld1q_s32_x4): Likewise.
15381 (vld1_u8_x4): Likewise.
15382 (vld1q_u8_x4): Likewise.
15383 (vld1_u16_x4): Likewise.
15384 (vld1q_u16_x4): Likewise.
15385 (vld1_u32_x4): Likewise.
15386 (vld1q_u32_x4): Likewise.
15387 (vld1_f16_x4): Likewise.
15388 (vld1q_f16_x4): Likewise.
15389 (vld1_f32_x4): Likewise.
15390 (vld1q_f32_x4): Likewise.
15391 (vld1_p8_x4): Likewise.
15392 (vld1q_p8_x4): Likewise.
15393 (vld1_p16_x4): Likewise.
15394 (vld1q_p16_x4): Likewise.
15395 (vld1_s64_x4): Likewise.
15396 (vld1_u64_x4): Likewise.
15397 (vld1_p64_x4): Likewise.
15398 (vld1q_s64_x4): Likewise.
15399 (vld1q_u64_x4): Likewise.
15400 (vld1q_p64_x4): Likewise.
15401 (vld1_f64_x4): Likewise.
15402 (vld1q_f64_x4): Likewise.
15403 (vst1_s8_x4): Likewise.
15404 (vst1q_s8_x4): Likewise.
15405 (vst1_s16_x4): Likewise.
15406 (vst1q_s16_x4): Likewise.
15407 (vst1_s32_x4): Likewise.
15408 (vst1q_s32_x4): Likewise.
15409 (vst1_u8_x4): Likewise.
15410 (vst1q_u8_x4): Likewise.
15411 (vst1_u16_x4): Likewise.
15412 (vst1q_u16_x4): Likewise.
15413 (vst1_u32_x4): Likewise.
15414 (vst1q_u32_x4): Likewise.
15415 (vst1_f16_x4): Likewise.
15416 (vst1q_f16_x4): Likewise.
15417 (vst1_f32_x4): Likewise.
15418 (vst1q_f32_x4): Likewise.
15419 (vst1_p8_x4): Likewise.
15420 (vst1q_p8_x4): Likewise.
15421 (vst1_p16_x4): Likewise.
15422 (vst1q_p16_x4): Likewise.
15423 (vst1_s64_x4): Likewise.
15424 (vst1_u64_x4): Likewise.
15425 (vst1_p64_x4): Likewise.
15426 (vst1q_s64_x4): Likewise.
15427 (vst1q_u64_x4): Likewise.
15428 (vst1q_p64_x4): Likewise.
15429 (vst1_f64_x4): Likewise.
15430 (vst1q_f64_x4): Likewise.
15431
15432 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15433
15434 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15435
15436 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15437 Richard Sandiford <richard.sandiford@arm.com>
15438
15439 PR target/88839
15440 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15441 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15442
15443 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15444
15445 PR target/90724
15446 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15447 in reg if it fails aarch64_plus_operand predicate.
15448
15449 2019-08-21 Richard Biener <rguenther@suse.de>
15450
15451 PR tree-optimization/91482
15452 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15453 BUILT_IN_ASSUME_ALIGNED calls.
15454
15455 2019-08-21 Richard Biener <rguenther@suse.de>
15456
15457 PR target/91498
15458 PR target/91503
15459 * config/i386/i386-features.c
15460 (general_scalar_chain::make_vector_copies): Copy stack temporary
15461 rtx when using it multiple times.
15462 (general_scalar_chain::convert_reg): Likewise.
15463
15464 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15465
15466 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15467
15468 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15469
15470 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15471 catch more redundant zero initialization cases.
15472 (dse_dom_walker::dse_optimize_stmt): Likewise.
15473
15474 2019-08-20 Richard Biener <rguenther@suse.de>
15475
15476 PR lto/91307
15477 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15478 by collect2 when targetm.have_ctors_dtors which avoids dragging
15479 in temporary filenames from LTO input objects.
15480
15481 2019-08-20 Richard Biener <rguenther@suse.de>
15482
15483 PR tree-optimization/37242
15484 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15485 to (T)a + (T)b if we know that a + b does not overflow.
15486
15487 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15488
15489 PR rtl-optimization/91347
15490 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15491 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15492
15493 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15494
15495 * calls.h (function_arg_info): Add a pass_by_reference field,
15496 defaulting to false.
15497 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15498 when applying pass-by-reference semantics.
15499 (initialize_argument_information): Likewise.
15500 (emit_library_call_value_1): Likewise.
15501 * function.c (assign_parm_data_one): Remove passed_pointer field.
15502 (assign_parm_find_data_types): Don't set it.
15503 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15504 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15505 arg.pass_by_reference instead of passed_pointer.
15506
15507 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15508
15509 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15510 into a single function_arg_info, updating its fields when we
15511 apply pass-by-reference and promotion semantics. Use the
15512 function_arg_info to track the mode rather than keeping it in
15513 a separate local variable.
15514 (initialize_argument_information): Likewise. Base the final
15515 arg_to_skip on this new function_arg_info rather than creating
15516 a new one from scratch.
15517
15518 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15519
15520 * function.c (assign_parm_data_one): Replace passed_type,
15521 promoted_mode and named_arg with a function_arg_info field.
15522 (assign_parm_find_data_types): Remove local variables and
15523 assign directly to "data". Make data->passed_mode shadow
15524 data->arg.mode until promotion, then assign the promoted
15525 mode to data->arg.mode.
15526 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15527 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15528 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15529 (assign_parm_setup_block, assign_parm_setup_reg)
15530 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15531 arg.mode instead of promoted_mode, arg.type instead of passed_type
15532 and arg.named instead of named_arg. Use data->arg for
15533 function_arg_info structures that had the field values passed_type,
15534 promoted_mode and named_arg. Base other function_arg_infos on
15535 data->arg, changing the necessary properties.
15536
15537 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15538
15539 * calls.h (apply_pass_by_reference_rules): Declare.
15540 * calls.c (apply_pass_by_reference_rules): New function.
15541 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15542 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15543 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15544 * function.c (assign_parm_find_data_types): Likewise.
15545 * var-tracking.c (prepare_call_arguments): Likewise.
15546
15547 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15548
15549 * target.def (must_pass_in_stack): Take a function_arg_info instead
15550 of a mode and a type.
15551 * doc/tm.texi: Regenerate.
15552 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15553 instead of a mode and a type.
15554 (must_pass_in_stack_var_size_or_pad): Likewise.
15555 * calls.c (must_pass_in_stack_var_size): Likewise.
15556 (must_pass_in_stack_var_size_or_pad): Likewise.
15557 (initialize_argument_information): Update call to
15558 targetm.calls.must_pass_in_stack.
15559 (must_pass_va_arg_on_stack): Likewise.
15560 * function.c (assign_parm_find_entry_rtl): Likewise.
15561 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15562 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15563 (alpha_function_arg_advance): Likewise.
15564 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15565 (cr16_function_arg_advance): Likewise.
15566 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15567 (cris_arg_partial_bytes): Likewise.
15568 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15569 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15570 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15571 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15572 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15573 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15574 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15575 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15576 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15577 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15578 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15579 instead of a mode and a type.
15580 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15581 (fr30_num_arg_regs): Likewise.
15582 (fr30_setup_incoming_varargs): Update calls accordingly.
15583 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15584 (fr30_function_arg_advance): Likewise.
15585 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15586 instead of a mode and a type.
15587 * config/gcn/gcn.c (num_arg_regs): Likewise.
15588 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15589 num_arg_regs and targetm.calls.must_pass_in_stack.
15590 (gcn_arg_partial_bytes): Likewise.
15591 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15592 function_arg_info instead of a mode and a type.
15593 (classify_argument): Update call accordingly.
15594 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15595 function_arg_info instead of a mode and a type.
15596 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15597 Likewise.
15598 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15599 (rs6000_parm_needs_stack): Update call accordingly.
15600 (setup_incoming_varargs): Likewise.
15601
15602 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15603
15604 * target.def (callee_copies): Take a function_arg_info instead
15605 of a mode, type and named flag.
15606 * doc/tm.texi: Regenerate.
15607 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15608 instead of a mode, type and named flag.
15609 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15610 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15611 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15612 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15613 instead of a mode, type and named flag.
15614 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15615 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15616 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15617 * calls.h (reference_callee_copied): Take a function_arg_info
15618 instead of a mode, type and named flag.
15619 * calls.c (reference_callee_copied): Likewise.
15620 (initialize_argument_information): Update call accordingly.
15621 (emit_library_call_value_1): Likewise.
15622 * function.c (gimplify_parameters): Likewise.
15623 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15624 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15625 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15626 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15627 (TARGET_CALLEE_COPIES): Define to
15628 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15629 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15630 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15631 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15632 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15633 instead of a mode, type and named flag.
15634 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15635 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15636 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15637 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15638 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15639 (TARGET_CALLEE_COPIES): Define to
15640 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15641 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15642 instead of a mode, type and named flag.
15643 * config/sh/sh.c (sh_callee_copies): Likewise.
15644 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15645 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15646 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15647
15648 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15649
15650 * target.def (function_arg_advance): Take a function_arg_info instead
15651 of a mode, type and named flag.
15652 * doc/tm.texi: Regenerate.
15653 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15654 instead of a mode, type and named flag.
15655 * targhooks.c (default_function_arg_advance): Likewise.
15656 * calls.c (initialize_argument_information): Update call to
15657 targetm.calls.function_arg_advance.
15658 (emit_library_call_value_1): Likewise.
15659 * dse.c (get_call_args): Likewise.
15660 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15661 * function.c (assign_parms, gimplify_parameters): Likewise.
15662 * var-tracking.c (prepare_call_arguments): Likewise.
15663 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15664 function_arg_info instead of a mode, type and named flag.
15665 (aarch64_setup_incoming_varargs): Update call accordingly.
15666 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15667 function_arg_info instead of a mode, type and named flag.
15668 (alpha_setup_incoming_varargs): Update call accordingly.
15669 * config/arc/arc.c (arc_function_arg_advance): Take a
15670 function_arg_info instead of a mode, type and named flag.
15671 (arc_setup_incoming_varargs): Update call accordingly.
15672 * config/arm/arm.c (arm_function_arg_advance): Take a
15673 function_arg_info instead of a mode, type and named flag.
15674 (cmse_func_args_or_return_in_stack): Update call accordingly.
15675 (arm_function_ok_for_sibcall): Likewise.
15676 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15677 * config/avr/avr.c (avr_function_arg_advance): Take a
15678 function_arg_info instead of a mode, type and named flag.
15679 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15680 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15681 (c6x_call_saved_register_used): Update call accordingly.
15682 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15683 function_arg_info instead of a mode, type and named flag.
15684 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15685 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15686 (csky_setup_incoming_varargs): Update call accordingly.
15687 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15688 function_arg_info instead of a mode, type and named flag.
15689 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15690 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15691 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15692 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15693 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15694 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15695 (ix86_setup_incoming_varargs): Update call accordingly.
15696 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15697 function_arg_info instead of a mode, type and named flag.
15698 (ia64_setup_incoming_varargs): Update call accordingly.
15699 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15700 function_arg_info instead of a mode, type and named flag.
15701 (iq2000_expand_prologue): Update call accordingly.
15702 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15703 function_arg_info instead of a mode, type and named flag.
15704 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15705 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15706 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15707 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15708 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15709 Likewise.
15710 (microblaze_expand_prologue): Update call accordingly.
15711 * config/mips/mips.c (mips_function_arg_advance): Take a
15712 function_arg_info instead of a mode, type and named flag.
15713 (mips_setup_incoming_varargs): Update call accordingly.
15714 (mips_output_args_xfer): Likewise.
15715 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15716 function_arg_info instead of a mode, type and named flag.
15717 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15718 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15719 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15720 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15721 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15722 (nios2_setup_incoming_varargs): Update call accordingly.
15723 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15724 function_arg_info instead of a mode, type and named flag.
15725 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15726 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15727 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15728 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15729 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15730 (riscv_setup_incoming_varargs): Update call accordingly.
15731 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15732 function_arg_info instead of a mode, type and named flag.
15733 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15734 Likewise.
15735 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15736 (rs6000_parm_needs_stack): Update call accordingly.
15737 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15738 instead of a mode, type and named flag.
15739 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15740 (s390_call_saved_register_used): Update call accordingly.
15741 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15742 instead of a mode, type and named flag.
15743 (sh_output_mi_thunk): Update call accordingly.
15744 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15745 function_arg_info instead of a mode, type and named flag.
15746 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15747 (spu_setup_incoming_varargs): Update call accordingly.
15748 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15749 function_arg_info instead of a mode, type and named flag.
15750 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15751 (tilegx_setup_incoming_varargs): Update call accordingly.
15752 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15753 function_arg_info instead of a mode, type and named flag.
15754 (tilegx_setup_incoming_varargs): Update call accordingly.
15755 * config/v850/v850.c (v850_function_arg_advance): Take a
15756 function_arg_info instead of a mode, type and named flag.
15757 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15758 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15759 (visium_setup_incoming_varargs): Update call accordingly.
15760 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15761 function_arg_info instead of a mode, type and named flag.
15762
15763 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15764
15765 * target.def (function_arg, function_incoming_arg): Take a
15766 function_arg_info instead of a mode, tree and named flag.
15767 * doc/tm.texi: Regenerate.
15768 * targhooks.h (default_function_arg): Take a function_arg_info
15769 instead of a mode, tree and named flag.
15770 (default_function_incoming_arg): Likewise.
15771 * targhooks.c (default_function_arg): Likewise.
15772 (default_function_incoming_arg): Likewise.
15773 * calls.h (function_arg_info::end_marker_p): New function.
15774 (function_arg_info::end_marker): Likewise.
15775 * calls.c (prepare_call_address, initialize_argument_information)
15776 (expand_call, emit_library_call_value_1): Update calls to
15777 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15778 * dse.c: Include calls.h.
15779 (get_call_args): Update call to targetm.calls.function_arg.
15780 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15781 * var-tracking.c (prepare_call_arguments): Likewise.
15782 * function.c (assign_parm_find_entry_rtl): Update call to
15783 targetm.calls.function_incoming_arg.
15784 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15785 function_arg_info instead of a mode, tree and named flag.
15786 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15787 * config/arc/arc.c (arc_function_arg): Likewise.
15788 * config/arm/arm.c (arm_function_arg): Likewise.
15789 (cmse_func_args_or_return_in_stack): Update call accordingly.
15790 (arm_function_ok_for_sibcall): Likewise.
15791 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15792 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15793 instead of a mode, tree and named flag.
15794 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15795 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15796 (c6x_call_saved_register_used): Update call accordingly.
15797 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15798 instead of a mode, tree and named flag.
15799 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15800 (cris_function_arg_1): Likewise.
15801 * config/csky/csky.c (csky_function_arg): Likewise.
15802 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15803 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15804 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15805 (frv_function_arg_1): Likewise.
15806 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15807 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15808 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15809 * config/i386/i386.c (ix86_function_arg): Likewise.
15810 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15811 (ia64_function_arg_1): Likewise.
15812 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15813 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15814 accordingly.
15815 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15816 instead of a mode, tree and named flag.
15817 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15818 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15819 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15820 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15821 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15822 (microblaze_expand_prologue): Update call accordingly.
15823 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15824 instead of a mode, tree and named flag.
15825 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15826 (mmix_function_arg_1): Likewise.
15827 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15828 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15829 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15830 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15831 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15832 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15833 (nvptx_function_incoming_arg): Likewise.
15834 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15835 * config/pa/pa.c (pa_function_arg): Likewise.
15836 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15837 * config/pru/pru.c (pru_function_arg): Likewise.
15838 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15839 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15840 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15841 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15842 (rs6000_parm_needs_stack): Update call accordingly.
15843 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15844 instead of a mode, tree and named flag.
15845 * config/s390/s390.c (s390_function_arg): Likewise.
15846 (s390_call_saved_register_used): Update call accordingly.
15847 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15848 instead of a mode, tree and named flag.
15849 (sh_output_mi_thunk): Update call accordingly.
15850 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15851 (sparc_function_incoming_arg): Take a function_arg_info instead of
15852 a mode, tree and named flag.
15853 * config/spu/spu.c (spu_function_arg): Likewise.
15854 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15855 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15856 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15857 * config/v850/v850.c (v850_function_arg): Likewise.
15858 * config/vax/vax.c (vax_function_arg): Likewise.
15859 * config/visium/visium.c (visium_function_arg): Likewise.
15860 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15861 (xtensa_function_incoming_arg): Likewise.
15862
15863 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15864
15865 * target.def (setup_incoming_varargs): Take a function_arg_info
15866 instead of a mode and tree.
15867 * doc/tm.texi: Regenerate.
15868 * targhooks.h (default_setup_incoming_varargs): Take a
15869 function_arg_info instead of a mode and tree.
15870 * targhooks.c (default_setup_incoming_varargs): Likewise.
15871 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15872 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15873 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15874 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15875 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15876 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15877 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15878 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15879 Likewise.
15880 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15881 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15882 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15883 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15884 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15885 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15886 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15887 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15888 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15889 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15890 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15891 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15892 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15893 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15894 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15895 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15896 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15897 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15898 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15899 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15900 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15901 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15902 * function.c (assign_parms_setup_varargs): Update call to
15903 targetm.calls.setup_incoming_varargs.
15904
15905 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15906
15907 * target.def (pass_by_reference): Take a function_arg_info instead
15908 of a mode, type and named flag.
15909 * doc/tm.texi: Regenerate.
15910 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15911 accordingly.
15912 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15913 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15914 function_arg_info instead of a mode, type and named flag.
15915 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15916 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15917 mode, type and named flag.
15918 * calls.c (pass_by_reference): Likewise.
15919 (pass_va_arg_by_reference): Update call accordingly.
15920 (initialize_argument_information): Likewise.
15921 (emit_library_call_value_1): Likewise.
15922 * function.c (assign_parm_find_data_types): Likewise.
15923 * var-tracking.c (prepare_call_arguments): Likewise.
15924 * stor-layout.c: Include calls.h.
15925 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15926 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15927 function_arg_info instead of a mode, type and named flag.
15928 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15929 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15930 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15931 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15932 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15933 (c6x_call_saved_register_used): Update call to pass_by_reference.
15934 * config/cris/cris.c (cris_pass_by_reference): Take a
15935 function_arg_info instead of a mode, type and named flag.
15936 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15937 function_arg_info instead of a mode, type and named flag.
15938 (epiphany_arg_partial_bytes): Update call accordingly.
15939 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15940 function_arg_info instead of a mode, type and named flag.
15941 (ft32_arg_partial_bytes): Update call accordingly.
15942 * config/i386/i386.c (ix86_pass_by_reference): Take a
15943 function_arg_info instead of a mode, type and named flag.
15944 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15945 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15946 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15947 (m32r_return_in_memory): Update call accordingly.
15948 * config/mips/mips.c (mips_pass_by_reference): Take a
15949 function_arg_info instead of a mode, type and named flag.
15950 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15951 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15952 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15953 (moxie_arg_partial_bytes): Update call accordingly.
15954 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15955 function_arg_info instead of a mode, type and named flag.
15956 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15957 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15958 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15959 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15960 (riscv_return_in_memory): Update call accordingly.
15961 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15962 function_arg_info instead of a mode, type and named flag.
15963 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15964 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15965 * config/s390/s390.c (s390_pass_by_reference): Take a
15966 function_arg_info instead of a mode, type and named flag.
15967 (s390_call_saved_register_used): Update call accordingly.
15968 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15969 instead of a mode, type and named flag.
15970 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15971 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15972 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15973 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15974 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15975 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15976
15977 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15978
15979 * target.def (arg_partial_bytes): Take a function_arg_info instead
15980 of a mode, type and named flag.
15981 * doc/tm.texi: Regenerate.
15982 * target.h (function_arg_info): Declare.
15983 * calls.h (function_arg_info): New class.
15984 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15985 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15986 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15987 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15988 * calls.c (initialize_argument_information): Update call to
15989 targetm.calls.partial_bytes.
15990 (emit_library_call_value_1): Likewise.
15991 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15992 * function.c (assign_parm_find_entry_rtl): Likewise.
15993 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15994 function_arg_info instead of a mode, type and named flag.
15995 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15996 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15997 (cmse_func_args_or_return_in_stack): Update accordingly.
15998 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15999 function_arg_info instead of a mode, type and named flag.
16000 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
16001 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
16002 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
16003 * config/fr30/fr30.c: Include calls.h.
16004 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
16005 type and named flag.
16006 * config/frv/frv.c: Include calls.h.
16007 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
16008 type and named flag.
16009 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
16010 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
16011 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
16012 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
16013 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
16014 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
16015 * config/microblaze/microblaze.c (function_arg_partial_bytes):
16016 Likewise.
16017 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
16018 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
16019 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
16020 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
16021 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
16022 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
16023 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
16024 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
16025 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
16026 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
16027 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
16028 (rs6000_parm_needs_stack): Update call accordingly.
16029 * config/sh/sh.c (sh_arg_partial_bytes): Take a
16030 function_arg_info instead of a mode, type and named flag.
16031 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
16032 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
16033
16034 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16035
16036 * calls.h (must_pass_va_arg_in_stack): Declare.
16037 * calls.c (must_pass_va_arg_in_stack): New function.
16038 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
16039 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
16040 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
16041 Likewise.
16042 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16043
16044 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16045
16046 * calls.h (pass_va_arg_by_reference): Declare.
16047 * calls.c (pass_va_arg_by_reference): New function.
16048 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
16049 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
16050 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
16051 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
16052 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
16053 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
16054 (mips_gimplify_va_arg_expr): Likewise.
16055 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
16056 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
16057 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
16058 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
16059 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
16060 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
16061 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
16062 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
16063 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
16064 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16065 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
16066
16067 2019-08-20 Richard Biener <rguenther@suse.de>
16068
16069 PR target/91498
16070 * config/i386/i386-features.c (general_scalar_chain::convert_op):
16071 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
16072 (convert_scalars_to_vector): Add timode_p parameter and use it
16073 to guard TImode-only operation.
16074 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
16075 (pass_stv::execute): Pass down timode_p.
16076
16077 2019-08-20 Lili Cui <lili.cui@intel.com>
16078
16079 * common/config/i386/i386-common.c
16080 (processor_names): Add tigerlake and cooperlake.
16081 (processor_alias_table): Add tigerlake and cooperlake.
16082 * config.gcc: Add -march=tigerlake and cooperlake.
16083 * config/i386/driver-i386.c
16084 (host_detect_local_cpu): Detect tigerlake and cooperlake.
16085 Add "has_avx" to classify processor.
16086 * config/i386/i386-builtins.c (processor_model) :
16087 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
16088 (arch_names_table): Add tigerlake and cooperlake.
16089 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
16090 and PROCESSOR_COOPERLAKE.
16091 * config/i386/i386-c.c
16092 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
16093 * config/i386/i386-options.c
16094 (m_TIGERLAKE): Define.
16095 (m_COOPERLAKE): Ditto.
16096 (m_CORE_AVX512): Ditto.
16097 (processor_cost_table): Add cascadelake.
16098 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
16099 * config/i386/i386.h
16100 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
16101 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16102 (PTA_MOVDIRI): Ditto.
16103 (PTA_MOVDIR64B): Ditto.
16104 (PTA_COOPERLAKE): Ditto.
16105 (PTA_TIGERLAKE): Ditto.
16106 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16107 * doc/extend.texi: Add tigerlake and cooperlake.
16108 * doc/invoke.texi: Add tigerlake and cooperlake.
16109
16110 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
16111
16112 * doc/install.texi (Specific, alpha): Remove note to use
16113 binutils 2.11.2 or later.
16114
16115 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16116
16117 PR middle-end/89544
16118 * function.c (assign_parm_find_stack_rtl): Use larger alignment
16119 when possible.
16120
16121 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
16122
16123 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
16124 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
16125 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
16126 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
16127 * config/aarch64/constraints.md (Dt): New constraint
16128 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
16129
16130 2019-08-19 Richard Biener <rguenther@suse.de>
16131
16132 PR tree-optimization/91403
16133 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
16134 cases we can handle with tail-recursion...
16135 (follow_ssa_edge_expr): ... here. Do so.
16136
16137 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
16138
16139 PR target/91441
16140 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
16141 implemented for -fsanitize=kernel-address, and merge check logic
16142 with -fsanitize=address.
16143
16144 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
16145
16146 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
16147 for cpu and machine. Factor 64/32b builtins.
16148
16149 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
16150
16151 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
16152 gone, point to sourceforge.net.
16153
16154 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16155
16156 * doc/ux.texi (User Experience Guidelines): Update reference.
16157
16158 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16159
16160 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
16161 not LGPL".
16162
16163 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
16164
16165 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
16166 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
16167
16168 2019-08-16 Martin Sebor <msebor@redhat.com>
16169
16170 * tree.def (TYPE_SIZE): Clarify.
16171 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
16172
16173 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16174
16175 PR tree-optimization/91109
16176 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
16177 * lra.c (lra): Use lra_need_for_scratch_reg_p.
16178 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
16179
16180 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
16181
16182 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
16183 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
16184 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
16185 (uavg<mode>3_ceil): New expander.
16186 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
16187 mode iterator when creating CONST1_RTX.
16188 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
16189 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
16190 mode iterator for const1_operand predicate.
16191
16192 2019-08-16 Richard Biener <rguenther@suse.de>
16193
16194 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
16195 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
16196 follow_ssa_edge.
16197 (follow_ssa_edge_in_condition_phi_branch): Likewise.
16198 (analyze_evolution_in_loop): Likewise.
16199 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
16200 (follow_ssa_edge_expr): ... here. Refactor code.
16201
16202 2019-08-16 Richard Biener <rguenther@suse.de>
16203
16204 PR target/91469
16205 * config/i386/i386-features.c
16206 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
16207
16208 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16209
16210 PR other/91255
16211 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
16212 only if subst_name matches curr_attr string.
16213
16214 2019-08-16 Richard Biener <rguenther@suse.de>
16215
16216 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
16217 stmt at gsi_p, instead replace it with a NOP removed later.
16218 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
16219 that became dead because of that.
16220
16221 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
16222
16223 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
16224 for which we can't represent a range.
16225 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
16226 set_varying.
16227 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
16228 Set VR_UNDEFINED if type is not supported.
16229 * tree-ssanames.c (get_range_info): Pass type to set_varying.
16230 * tree-vrp.c (value_range_base::check): Assert that a varying has
16231 min/max set.
16232 (value_range_base::equal_p): Early bail for undefines.
16233 (value_range_base::set_varying): Accept a type.
16234 (value_range::set_varying): Same.
16235 (value_range_base::type): VARYING can have a type, while UNDEFINE
16236 is typeless.
16237 (value_range_base::dump): Print type for VARYING nodes.
16238 (value_range_base::set): Add type to VARYING.
16239 (extract_range_from_multiplicative_op): Pass type to set_varying.
16240 (extract_range_from_binary_expr): Same.
16241 (value_range_base::intersect_helper): Same.
16242 (value_range_base::union_helper): Same.
16243 (value_range_base::normalize_symbolics): Same.
16244 (determine_value_range_1): Same.
16245 * tree-vrp.h (class value_range_base): Add type to set_varying.
16246 Add prototype for dump(void).
16247 Add prototype for supports_type_p.
16248 (class value_range): Add type to set_varying.
16249 Add prototype for dump(void).
16250 * vr-values.c (set_value_range_to_truthvalue): Pass type to
16251 set_varying.
16252 (vr_values::get_lattice_entry): Set varying even if propagation
16253 finished.
16254 Pass type to set_varying.
16255 (vr_values::get_value_range): Remove vr_const_varying.
16256 Reallocate the lattice if needed.
16257 (vr_values::update_value_range): Pass type to set_varying.
16258 (vr_values::extract_range_for_var_from_comparison_expr): Same.
16259 (vr_values::extract_range_from_binary_expr): Same.
16260 (vr_values::extract_range_from_unary_expr): Same.
16261 (vr_values::extract_range_from_cond_expr): Same.
16262 (vr_values::check_for_binary_op_overflow): Same.
16263 (vr_values::extract_range_basic): Same.
16264 (vr_values::extract_range_from_assignment): Same.
16265 (vr_values::vr_values): Increase size of num_vr_values.
16266 (vr_values::extract_range_from_phi_node): Pass type to
16267 set_varying.
16268
16269 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
16270
16271 PR target/90878
16272 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
16273 for costs of hard register moves.
16274 (ix86_register_move_cost): Likewise.
16275 * config/i386/i386.h (processor_costs): Move costs of hard
16276 register moves to hard_register. Add int_load, int_store,
16277 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16278 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
16279 for costs of RTL expressions.
16280 * config/i386/x86-tune-costs.h: Move costs of hard register
16281 moves to hard_register. Duplicate int_load, int_store,
16282 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16283 sse_load, sse_store for costs of RTL expressions.
16284
16285 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16286
16287 * target.def (setup_incoming_vararg_bounds): Remove.
16288 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
16289 * doc/tm.texi: Regenerate.
16290 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
16291 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
16292 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
16293 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
16294
16295 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16296
16297 MSP430: Fix lines over 80 characters long in
16298 config/msp430/*.{c,h} files
16299
16300 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
16301 specifier in string.
16302 (msp430_select_hwmult_lib): Split line more than 80 characters long.
16303 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
16304 redundant old comment.
16305 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16306 Split line more than 80 characters long.
16307 * config/msp430/msp430.c (msp430_option_override): Likewise.
16308 (msp430_return_in_memory): Likewise.
16309 (msp430_gimplify_va_arg_expr): Likewise.
16310 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
16311 (msp430_legitimate_constant): Likewise.
16312 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
16313 (msp430_attr): Likewise.
16314 (msp430_data_attr): Likewise.
16315 (msp430_start_function): Likewise.
16316 (gen_prefix): Likewise.
16317 (msp430_init_sections): Likewise.
16318 (msp430_select_section): Likewise.
16319 (msp430_function_section): Likewise.
16320 (msp430_unique_section): Likewise.
16321 (msp430_output_aligned_decl_common): Likewise.
16322 (msp430_do_not_relax_short_jumps): Likewise.
16323 (msp430_init_builtins): Likewise.
16324 (msp430_expand_delay_cycles): Likewise.
16325 (msp430_expand_prologue): Likewise.
16326 (msp430_expand_epilogue): Likewise.
16327 (msp430_expand_helper): Likewise.
16328 (msp430_split_movsi): Likewise.
16329 (msp430_print_operand): Likewise.
16330 (msp430_return_addr_rtx): Likewise.
16331 (msp430x_extendhisi): Likewise.
16332 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
16333 (ASM_SPEC): Likewise.
16334 Remove very obvious comments.
16335 (LIB_SPEC): Split line more than 80 characters long.
16336 (EH_RETURN_HANDLER_RTX): Likewise.
16337 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16338
16339 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16340
16341 MSP430: Fix whitespace errors and incorrect indentation in
16342 config/msp430/*.{c,h} files
16343
16344 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
16345 (msp430_select_hwmult_lib): Likewise.
16346 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
16347 (msp430_extract_mcu_data): Likewise.
16348 (struct t_msp430_mcu_data): Likewise.
16349 * config/msp430/msp430.c (struct machine_function): Remove whitespace
16350 before left square bracket.
16351 (msp430_option_override): Fix indentation.
16352 (msp430_hard_regno_nregs_with_padding): Likewise.
16353 (msp430_initial_elimination_offset): Likewise.
16354 (msp430_special_register_convention_p): Remove whitespace before left
16355 square bracket and after exclamation mark.
16356 (msp430_evaluate_arg): Likewise.
16357 (msp430_callee_copies): Fix indentation.
16358 (msp430_gimplify_va_arg_expr): Likewise.
16359 (msp430_function_arg_advance): Remove whitespace before left square
16360 bracket.
16361 (reg_ok_for_addr): Likewise.
16362 (msp430_preserve_reg_p): Likewise.
16363 (msp430_compute_frame_info): Likewise.
16364 (msp430_asm_output_addr_const_extra): Add space between function name
16365 and open parenthesis.
16366 (has_section_name): Fix indentation.
16367 (msp430_attr): Remove trailing whitespace.
16368 (msp430_section_attr): Likewise.
16369 (msp430_data_attr): Likewise.
16370 (struct msp430_attribute_table): Fix comment and whitespace.
16371 (msp430_start_function): Remove whitespace before left square bracket.
16372 Add space between function name and open parenthesis.
16373 (msp430_select_section): Remove trailing whitespace.
16374 (msp430_section_type_flags): Remove trailing whitespace.
16375 (msp430_unique_section): Remove space before closing parenthesis.
16376 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16377 (msp430_builtins): Remove whitespace before left square bracket.
16378 (msp430_init_builtins): Fix indentation.
16379 (msp430_expand_prologue): Remove whitespace before left square bracket.
16380 Remove space before closing parenthesis.
16381 (msp430_expand_epilogue): Remove whitespace before left square bracket.
16382 (msp430_split_movsi): Remove space before closing parenthesis.
16383 (helper_function_name_mappings): Fix indentation.
16384 (msp430_use_f5_series_hwmult): Fix whitespace.
16385 (use_32bit_hwmult): Likewise.
16386 (msp430_no_hwmult): Likewise.
16387 (msp430_output_labelref): Remove whitespace before left square bracket.
16388 (msp430_print_operand_raw): Likewise.
16389 (msp430_print_operand_addr): Likewise.
16390 (msp430_print_operand): Add two spaces after '.' in comment.
16391 Fix trailing whitespace.
16392 (msp430x_extendhisi): Fix indentation.
16393 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16394 tab.
16395 (PC_REGNUM): Likewise.
16396 (STACK_POINTER_REGNUM): Likewise.
16397 (CC_REGNUM): Likewise.
16398
16399 2019-08-15 Richard Biener <rguenther@suse.de>
16400
16401 PR target/91454
16402 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16403 helper.
16404 (general_scalar_chain::make_vector_copies): Use it.
16405
16406 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16407
16408 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16409
16410 2019-08-15 Martin Liska <mliska@suse.cz>
16411
16412 * tree-ssa-dce.c (propagate_necessity): We can't reach now
16413 operators with no arguments.
16414 (eliminate_unnecessary_stmts): Likewise here.
16415
16416 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
16417
16418 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16419 <case COMPARE>: Revert 2019-08-14 change.
16420 (convertible_comparison_p): Revert 2019-08-14 change. Return false
16421 for (TARGET_64BIT || mode != DImode).
16422
16423 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
16424
16425 * tree-vrp.c (value_range_base::set): Merge in code from
16426 value_range_base::set_and_canonicalize.
16427 Enforce canonicalization at set time.
16428 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16429 (value_range_base::set_undefined): Inline call to set().
16430 (value_range_base::set_varying): Same.
16431 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16432 (vrp_val_max): New argument handle_pointers.
16433 (vrp_val_min): Same.
16434 (ranges_from_anti_range): Same.
16435 (extract_range_into_wide_ints): Use tree argument instead of sign
16436 and precision.
16437 (extract_range_from_multiplicative_op): Take in tree type instead
16438 of precision and sign. Adapt function for canonicalized ranges.
16439 (extract_range_from_binary_expr): Pass type to
16440 extract_range_from_multiplicative_op.
16441 Adapt for canonicalized ranges.
16442 (extract_range_from_unary_expr): Same.
16443 (value_range_base::intersect_helper): Adjust for canonicalized
16444 ranges.
16445 (value_range_base::union_helper): Same.
16446 (value_range_base::normalize_symbolics): New.
16447 * tree-vrp.h (class value_range_base): Remove
16448 set_and_canonicalize.
16449 New prototype for normalize_symbolics.
16450 (class value_range): Remove set_and_canonicalize.
16451 (vrp_val_min): Adjust prototype.
16452 (vrp_val_max): Same.
16453 * vr-values.c
16454 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16455 instead of set_and_canonicalize.
16456
16457 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16458
16459 PR middle-end/91444
16460 * tree-vect-stmts.c (vectorizable_call): Check that the function
16461 is a BUILT_IN_MD function before passing it to
16462 targetm.vectorize.builtin_md_vectorized_function.
16463
16464 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16465
16466 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16467 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16468 (aarch64_select_early_remat_modes): Use it.
16469
16470 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16471
16472 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16473 16 for SVE predicates even if they are fixed-length.
16474
16475 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16476
16477 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16478 operand order match the MOV /Z alias.
16479
16480 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16481
16482 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16483 the vector pattern as an aarch64_svpattern argument. Update the
16484 overloaded caller accordingly.
16485 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16486 (aarch64_output_sve_vector_inc_dec): Likewise.
16487
16488 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16489
16490 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16491 multiplication case, try to compute VG * (lowest set bit) directly
16492 rather than always basing the multiplication on VG. Use
16493 expand_mult for the multiplication if we can.
16494
16495 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16496
16497 * config/aarch64/aarch64-protos.h
16498 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16499 (aarch64_sve_inc_dec_immediate_p): Rename to...
16500 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16501 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16502 (aarch64_output_sve_scalar_inc_dec): Declare.
16503 (aarch64_output_sve_inc_dec_immediate): Rename to...
16504 (aarch64_output_sve_vector_inc_dec): ...this.
16505 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16506 (aarch64_output_sve_scalar_inc_dec): New functions.
16507 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16508 arguments. Only handle true ADDVL and ADDPL instructions;
16509 don't emit an INC or DEC.
16510 (aarch64_sve_inc_dec_immediate_p): Rename to...
16511 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16512 (aarch64_output_sve_inc_dec_immediate): Rename to...
16513 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16514 aarch64_sve_vector_inc_dec_immediate_p.
16515 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16516 (aarch64_sve_plus_immediate): New predicates.
16517 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16518 rather than aarch64_sve_addvl_addpl_immediate.
16519 (aarch64_sve_inc_dec_immediate): Rename to...
16520 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16521 aarch64_sve_vector_inc_dec_immediate_p.
16522 (aarch64_sve_add_operand): Update accordingly.
16523 * config/aarch64/constraints.md (Uai): New constraint.
16524 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16525 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16526 operand into a register if it satisfies aarch64_sve_plus_immediate.
16527 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16528 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16529 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16530 aarch64_output_sve_vector_inc_dec instead of
16531 aarch64_output_sve_inc_dec_immediate.
16532
16533 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16534
16535 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16536 (UNSPEC_REVW): New constants.
16537 (elem_bits): New mode attribute.
16538 (SVE_INT_UNARY): New int iterator.
16539 (optab): Handle UNSPEC_REV[BHW].
16540 (sve_int_op): New int attribute.
16541 (min_elem_bits): Handle VNx16QI and the predicate modes.
16542 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16543 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16544 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16545 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16546 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16547 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16548 unspecs based on the total width of the reversed data.
16549 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16550 reinterpret followed by a subreg on big-endian targets.
16551
16552 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16553 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16554
16555 * config/aarch64/aarch64-sve.md
16556 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16557 alternatives in which one of the inputs is in the same register
16558 as the output.
16559
16560 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16561
16562 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16563 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16564
16565 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16566
16567 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16568 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16569
16570 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16571 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16572
16573 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16574 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16575 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16576
16577 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16578 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16579
16580 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16581 Add an alternative that uses reversed shifts.
16582
16583 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16584
16585 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16586 struct.
16587
16588 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16589
16590 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16591 a commutativity marker.
16592
16593 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16594 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16595
16596 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16597 (aarch64_prepare_sve_cond_int_fma): Declare.
16598 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16599 (aarch64_prepare_sve_int_fma): New functions.
16600 (aarch64_prepare_sve_cond_int_fma): Likewise.
16601 * config/aarch64/aarch64-sve.md
16602 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16603 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16604 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16605 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16606 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16607 (*madd<mode>): Rename to...
16608 (*fma<mode>4): ...this.
16609 (*msub<mode>): Rename to...
16610 (*fnma<mode>4): ...this.
16611
16612 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16613 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16614
16615 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16616 Print 2.0 naturally.
16617 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16618 * config/aarch64/predicates.md
16619 (aarch64_sve_float_negated_arith_immediate): New predicate,
16620 renamed from aarch64_sve_float_arith_with_sub_immediate.
16621 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16622 positive and negative constants.
16623 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16624 or an aarch64_sve_float_arith_with_sub_immediate.
16625 * config/aarch64/constraints.md (vsN): Use
16626 aarch64_sve_float_negated_arith_immediate.
16627 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16628 iterator.
16629 (sve_pred_fp_rhs2_immediate): New int attribute.
16630 * config/aarch64/aarch64-sve.md
16631 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16632 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16633 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16634 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16635 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16636 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16637
16638 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16639 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16640
16641 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16642 (*aarch64_cond_abd<SVE_F:mode>_3)
16643 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16644
16645 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16646 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16647
16648 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16649 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16650
16651 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16652 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16653
16654 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16655 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16656 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16657 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16658 optabs.
16659 * optabs.h (create_convert_operand_from): Expand comment.
16660 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16661 when mapping scalar rtxes to vector operands.
16662 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16663 ashiftrt and lshiftrt.
16664 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16665 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16666 (*cond_<optab><mode>_any_const): New patterns.
16667
16668 2019-08-15 Martin Liska <mliska@suse.cz>
16669
16670 PR ipa/91438
16671 * cgraph.c (cgraph_node::remove): When setting
16672 n->origin = NULL for all nested functions, reset
16673 also next_nested.
16674
16675 2019-08-15 Martin Liska <mliska@suse.cz>
16676
16677 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16678 and next_nested.
16679
16680 2019-08-15 Martin Liska <mliska@suse.cz>
16681
16682 PR ipa/91404
16683 * passes.c (order): Remove.
16684 (uid_hash_t): Likewise).
16685 (remove_cgraph_node_from_order): Remove from set
16686 of pointers (cgraph_node *).
16687 (insert_cgraph_node_to_order): New.
16688 (duplicate_cgraph_node_to_order): New.
16689 (do_per_function_toporder): Register all 3 cgraph hooks.
16690 Skip removed_nodes now as we know about all of them.
16691
16692 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16693
16694 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16695 <case E_V8QImode>: Use vector_set path for
16696 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16697 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16698 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16699
16700 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16701
16702 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16703
16704 2019-08-14 Martin Sebor <msebor@redhat.com>
16705
16706 PR tree-optimization/91294
16707 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16708 source length as exact.
16709
16710 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16711
16712 * doc/extend.texi: Add "noinit" attribute documentation.
16713 * doc/sourcebuild.texi: Add noinit effective target documentation.
16714 * varasm.c (default_section_type_flags): Add support for "noinit"
16715 section.
16716 (default_elf_select_section): Add support for "noinit" attribute.
16717 * config/msp430/msp430.c (msp430_attribute_table): Remove
16718 "noinit" entry.
16719
16720 2019-08-14 Richard Biener <rguenther@suse.de>
16721 Uroš Bizjak <ubizjak@gmail.com>
16722
16723 PR target/91154
16724 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16725 mode arguments.
16726 (scalar_chain::smode): New member.
16727 (scalar_chain::vmode): Likewise.
16728 (dimode_scalar_chain): Rename to...
16729 (general_scalar_chain): ... this.
16730 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16731 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16732 base with TImode and V1TImode.
16733 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16734 (general_scalar_chain::vector_const_cost): Adjust for SImode
16735 chains.
16736 (general_scalar_chain::compute_convert_gain): Likewise. Add
16737 {S,U}{MIN,MAX} support.
16738 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16739 (general_scalar_chain::make_vector_copies): Likewise. Handle
16740 non-DImode chains appropriately.
16741 (general_scalar_chain::convert_reg): Likewise.
16742 (general_scalar_chain::convert_op): Likewise.
16743 (general_scalar_chain::convert_insn): Likewise. Add
16744 fatal_insn_not_found if the result is not recognized.
16745 (convertible_comparison_p): Pass in the scalar mode and use that.
16746 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16747 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16748 (scalar_to_vector_candidate_p): Remove by inlining into single
16749 caller.
16750 (general_remove_non_convertible_regs): Rename from
16751 dimode_remove_non_convertible_regs.
16752 (remove_non_convertible_regs): Remove by inlining into single caller.
16753 (convert_scalars_to_vector): Handle SImode and DImode chains
16754 in addition to TImode chains.
16755 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16756 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16757 (*<maxmin>di3_doubleword): Likewise.
16758
16759 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16760 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16761
16762 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16763 (*cond_bic<mode>_any): New patterns.
16764
16765 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16766
16767 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16768 take the equivalent mask, as well as a bit count.
16769 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16770 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16771 (aarch64_sve_pred_and_operand): New predicates.
16772 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16773 code attribute.
16774 * config/aarch64/aarch64-sve.md
16775 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16776 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16777
16778 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16779
16780 * config/aarch64/aarch64-sve.md
16781 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16782 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16783 New patterns.
16784
16785 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16786 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16787
16788 * config/aarch64/aarch64-sve.md
16789 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16790 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16791
16792 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16793 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16794
16795 * config/aarch64/aarch64-sve.md
16796 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16797 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16798
16799 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16800
16801 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16802 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16803 New pattern.
16804
16805 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16806 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16807
16808 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16809
16810 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16811 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16812
16813 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16814 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16815 (aarch64_print_operand): Add support for %I.
16816 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16817 Bitcast floating-point constants to the corresponding integer constant.
16818 (aarch64_float_const_representable_p): Handle vectors as well
16819 as scalars.
16820 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16821 for the new vcond_mask_<mode><vpred> expander.
16822 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16823 test aarch64_float_const_representable_p.
16824 (aarch64_sve_reg_or_dup_imm): New predicate.
16825 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16826 gen_vcond_mask_<mode><vpred> instead of
16827 gen_aarch64_sve_dup<mode>_const.
16828 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16829 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16830 for operands 1 and 2 respectively. Force operand 2 into a
16831 register if operand 1 is a register. Fold old define_insn...
16832 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16833 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16834 floating-point constants that can be moved as integers. Add
16835 alternatives for MOV /M and FMOV /M.
16836 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16837 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16838 1 and 2 respectively.
16839 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16840 as scalars.
16841 (vss): New constraint.
16842
16843 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16844
16845 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16846 (aarch64_sve_float_maxmin_operand): New predicates.
16847 * config/aarch64/constraints.md (vsB): New constraint.
16848 (vsM): Fix typo.
16849 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16850 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16851 UNSPEC_COND_FMINNM.
16852 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16853 Use aarch64_sve_float_maxmin_operand for operand 2.
16854 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16855 Add alternatives for the constant forms.
16856
16857 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16858
16859 * config/aarch64/constraints.md (vsb): New constraint.
16860 (vsm): Generalize description.
16861 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16862 iterator.
16863 (sve_imm_con): Handle smax, smin, umax and umin.
16864 (sve_imm_prefix): New code attribute.
16865 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16866 (aarch64_sve_vsb_operand): New predicates.
16867 (aarch64_sve_mul_immediate): Rename to...
16868 (aarch64_sve_vsm_immediate): ...this.
16869 (aarch64_sve_mul_operand): Rename to...
16870 (aarch64_sve_vsm_operand): ...this.
16871 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16872 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16873 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16874 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16875 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16876 add movprfx support for the immediate alternatives.
16877 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16878 of the above.
16879 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16880 for operand 3.
16881
16882 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16883
16884 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16885 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16886 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16887
16888 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16889
16890 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16891 (optab, sve_int_op): Handle them.
16892 * config/aarch64/aarch64-sve.md: Expand comment.
16893
16894 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16895
16896 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16897 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16898 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16899
16900 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16901
16902 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16903 (aarch64_expand_sve_const_pred_trn): New functions.
16904 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16905 use the above functions when the parameter is true.
16906 (aarch64_expand_sve_const_pred): Update call accordingly.
16907 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16908 Rename to...
16909 (@aarch64_sve_<perm_insn><mode>): ...this.
16910
16911 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16912
16913 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16914 Declare.
16915 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16916 (aarch64_sve_emit_int_cmp): New functions.
16917 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16918 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16919 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16920 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16921 (UNSPEC_PRED_Z): New unspec.
16922 (set_clobber_cc_nzc): Delete.
16923 * config/aarch64/aarch64-sve.md: Add a block comment about
16924 UNSPEC_PRED_Z.
16925 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16926 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16927 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16928 UNSPEC_MERGE_PTRUE.
16929 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16930 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16931 check for compatible predicates.
16932 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16933 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16934 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16935 comparisons above.
16936
16937 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16938
16939 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16940 * config/aarch64/aarch64-sve.md: Add a section describing it.
16941 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16942 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16943 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16944 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16945 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16946 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16947 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16948 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16949 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16950 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16951 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16952 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16953 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16954 (aarch64_evpc_rev_local): Update accordingly.
16955
16956 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16957
16958 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16959 iterators.
16960 (SVE_BHSI, SVE_SDI): Tweak comment.
16961 (SVE_HSDI): Likewise. Fix definition.
16962 (SVE_SDF): New mode iterator.
16963 (elem_bits): New mode attribute.
16964 (SVE_COND_FCVT): New int iterator.
16965 * config/aarch64/aarch64-sve.md
16966 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16967 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16968 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16969 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16970 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16971 ...these new patterns.
16972 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16973 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16974 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16975 Merge into...
16976 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16977 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16978 ...these new patterns.
16979 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16980 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16981 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16982 ...this new pattern.
16983 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16984 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16985 ...this new pattern.
16986 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16987
16988 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16989
16990 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16991 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16992 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16993 unspecs.
16994 (optab, su): Handle them.
16995 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16996 * config/aarch64/aarch64-sve.md
16997 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16998 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16999 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
17000 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
17001 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
17002 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
17003 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
17004 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
17005 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
17006 FIXUORS.
17007 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
17008 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
17009 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
17010 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
17011 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
17012 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
17013 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
17014 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
17015 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
17016 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
17017 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
17018 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
17019 of UNSPEC_FLOAT_CONVERT.
17020 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
17021 aarch64_sve_extend<mode><Vwide>2.
17022
17023 2019-08-14 Richard Biener <rguenther@suse.de>
17024
17025 PR target/91154
17026 * config/i386/i386-features.c
17027 (dimode_scalar_chain::compute_convert_gain): Compute and dump
17028 individual instruction gain. Fix reg-reg copy GRP cost. Use
17029 ix86_cost->sse_op for vector instruction costs.
17030
17031 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17032
17033 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
17034 (cmp_op): Handle it.
17035 (SVE_COND_FP_CMP): Rename to...
17036 (SVE_COND_FP_CMP_I0): ...this.
17037 (SVE_FP_CMP): Remove.
17038 * config/aarch64/aarch64-sve.md
17039 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
17040 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
17041 using unspecs to represent the comparison.
17042 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
17043 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
17044 accordingly.
17045 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
17046 (aarch64_unspec_cond_code): Move after integer code. Handle
17047 UNORDERED.
17048 (aarch64_emit_sve_predicated_cond): Replace with...
17049 (aarch64_emit_sve_fp_cond): ...this new function.
17050 (aarch64_emit_sve_or_conds): Replace with...
17051 (aarch64_emit_sve_or_fp_conds): ...this new function.
17052 (aarch64_emit_sve_inverted_cond): Replace with...
17053 (aarch64_emit_sve_invert_fp_cond): ...this new function.
17054 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
17055
17056 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17057
17058 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
17059 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
17060 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
17061 SVE_HSD instead of SVE_SD.
17062
17063 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17064 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17065
17066 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
17067 iterator.
17068 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
17069 attributes.
17070 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
17071 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
17072 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
17073 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
17074 (*div<SVE_F:mode>3): Generalize to...
17075 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
17076
17077 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17078 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17079
17080 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
17081 constants.
17082 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
17083 predicate.
17084 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
17085 Declare.
17086 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
17087 function.
17088 * config/aarch64/aarch64-sve.md: Add a block comment about the
17089 handling of predicated FP operations.
17090 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
17091 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
17092 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17093 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
17094 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
17095 operand.
17096 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
17097 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
17098 operand.
17099 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
17100 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
17101 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
17102 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
17103 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
17104 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17105 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17106 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
17107 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
17108 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
17109 strictness operands. Use aarch64_sve_pred_dominates_p to check
17110 whether the predicate on the conditional operation is suitable
17111 for merging. Split patterns into the canonical equal-predicate form.
17112 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
17113 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
17114
17115 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17116 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17117
17118 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
17119 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
17120 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
17121 rtx codes.
17122 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
17123 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
17124 unspecs.
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 (bic<mode>3): Rename to...
17130 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
17131 actually has, rather than relying on REG_EQUAL notes.
17132 Make the insn operand order match the SVE operand order.
17133 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
17134 the SVE operand order.
17135
17136 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17137
17138 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
17139 (aarch64_emit_set_immediate): Likewise.
17140 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
17141 (aarch64_pfalse_reg): Likewise.
17142 (aarch64_convert_sve_data_to_pred): New function.
17143 (aarch64_sve_move_pred_via_while): Take an optional target register
17144 and the required register mode.
17145 (aarch64_expand_sve_const_pred_1): New function.
17146 (aarch64_expand_sve_const_pred): Likewise.
17147 (aarch64_expand_mov_immediate): Build an all-true predicate
17148 if the significant bits of the immediate are all true. Use
17149 aarch64_expand_sve_const_pred for all compile-time predicate constants.
17150 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
17151 before register allocation.
17152 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
17153 a VNx16BI PTRUE when splitting the memory alternative.
17154 (vec_duplicate<mode>): Update accordingly.
17155 (*pred_cmp<cmp_op><mode>): Rename to...
17156 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
17157
17158 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17159
17160 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
17161 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
17162 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
17163 (UNSPEC_PTEST): New unspec.
17164 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
17165 * config/aarch64/iterators.md (data_bytes): New mode attribute.
17166 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
17167 * config/aarch64/aarch64-sve.md: Add a new section describing the
17168 handling of UNSPEC_PTEST.
17169 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
17170 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
17171 (ptest_ptrue<mode>): Replace with...
17172 (aarch64_ptest<mode>): ...this new pattern.
17173 (cbranch<mode>4): Update after above changes.
17174 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
17175 UNSPEC_PTEST_PTRUE.
17176 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
17177 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
17178 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
17179
17180 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
17181
17182 PR lto/91287
17183 * builtins.c (builtin_with_linkage_p): New function.
17184 * builtins.h (builtin_with_linkage_p): New function.
17185 * symtab.c (write_symbol): Remove redundant assert.
17186 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
17187 Remove FIXME and use builtin_with_linkage_p.
17188
17189 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17190
17191 PR middle-end/91421
17192 * tree-core.h (function_decl::function_code): Change type to
17193 unsigned int.
17194 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
17195 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
17196 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
17197 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
17198 is BUILT_IN_NORMAL.
17199 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
17200 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
17201 (fndecl_built_in_p): Change the type of the "name" argument to
17202 unsigned int.
17203 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
17204 after check for DECL_BUILT_IN_CLASS.
17205 * cgraphclones.c (build_function_decl_skip_args): Use
17206 set_decl_built_in_function.
17207 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
17208 * ipa-split.c (split_function): Likewise.
17209 * langhooks.c (add_builtin_function_common): Likewise.
17210 * omp-simd-clone.c (simd_clone_create): Likewise.
17211 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17212 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
17213 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
17214 DECL_FUNCTION_CODE.
17215 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
17216 instead of DECL_FUNCTION_CODE.
17217 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
17218 instead of DECL_FUNCTION_CODE.
17219 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17220 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
17221 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
17222 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
17223 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
17224 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
17225 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
17226 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
17227 (alpha_gimple_fold_builtin): Likewise.
17228 * config/arc/arc.c (arc_expand_builtin): Likewise.
17229 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
17230 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
17231 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
17232 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
17233 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
17234 * config/frv/frv.c (frv_expand_builtin): Likewise.
17235 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
17236 (gcn_expand_builtin): Likewise.
17237 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
17238 (fold_builtin_cpu): Likewise.
17239 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
17240 * config/i386/i386.c (ix86_fold_builtin): Likewise.
17241 (ix86_gimple_fold_builtin): Likewise.
17242 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
17243 (ia64_expand_builtin): Likewise.
17244 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
17245 * config/mips/mips.c (mips_expand_builtin): Likewise.
17246 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
17247 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17248 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
17249 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
17250 * config/pa/pa.c (pa_expand_builtin): Likewise.
17251 * config/pru/pru.c (pru_expand_builtin): Likewise.
17252 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
17253 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17254 Likewise.
17255 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
17256 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
17257 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
17258 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
17259 (rs6000_builtin_reciprocal): Likewise.
17260 * config/rx/rx.c (rx_expand_builtin): Likewise.
17261 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17262 * config/s390/s390.c (s390_expand_builtin): Likewise.
17263 * config/sh/sh.c (sh_expand_builtin): Likewise.
17264 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
17265 (sparc_fold_builtin): Likewise.
17266 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
17267 * config/spu/spu.c (spu_expand_builtin): Likewise.
17268 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
17269 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
17270 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
17271 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
17272 (xtensa_expand_builtin): Likewise.
17273
17274 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17275
17276 PR middle-end/91421
17277 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
17278 before the DECL_FUNCTION_CODE.
17279 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
17280 to check for a BUILT_IN_ALLOCA call.
17281 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
17282 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
17283 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
17284 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17285 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
17286 for BUILT_IN_NORMAL functions.
17287 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
17288 test for BUILT_IN_TM_ABORT.
17289 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
17290 to check for a BUILT_IN_STACK_RESTORE call.
17291 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
17292 * tree-ssa-threadedge.c
17293 (record_temporary_equivalences_from_stmts_at_dest): Check for a
17294 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
17295 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
17296 test for a BUILT_IN_NORMAL call instead of a negative test for
17297 an internal function call.
17298
17299 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17300
17301 * tree.h (build_vector_a_then_b): Declare.
17302 * tree.c (build_vector_a_then_b): New function.
17303 * fold-const-call.c (fold_while_ult): Likewise.
17304 (fold_const_call): Use it to handle IFN_WHILE_ULT.
17305 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
17306 (aarch64_svpattern): New enum.
17307 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
17308 constants through aarch64_expand_mov_immediate.
17309 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
17310 than general_operand as the predicate for operand 1.
17311 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
17312 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
17313 insn_type.
17314 (simd_immediate_info::simd_immediate_info): New overload that
17315 takes a scalar_int_mode and an svpattern.
17316 (simd_immediate_info::u): Add a "pattern" field.
17317 (svpattern_token): New function.
17318 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
17319 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
17320 (aarch64_sve_move_pred_via_while): New functions.
17321 (aarch64_expand_mov_immediate): Try using
17322 aarch64_sve_move_pred_via_while for predicates that contain N ones
17323 followed by M zeros but that do not correspond to a VLnnn pattern.
17324 (aarch64_sve_pred_valid_immediate): New function.
17325 (aarch64_simd_valid_immediate): Use it instead of dealing directly
17326 with PTRUE and PFALSE.
17327 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
17328 forms.
17329
17330 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
17331
17332 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
17333 flag.
17334 (darwin_override_options): Likewise.
17335 * config/darwin.h: Likewise.
17336 * config/darwin.opt: Likewise.
17337 * config/i386/i386.c (output_pic_addr_const): Likewise.
17338 * config/rs6000/darwin.h: Likewise.
17339 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
17340 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
17341 ... this TARGET_MACHO_SYMBOL_STUBS.
17342 (FUNCTION_PROFILER):Likewise.
17343 * config/i386/i386.h: Likewise.
17344
17345 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17346
17347 * config/i386/i386-expand.c (ix86_expand_vector_extract)
17348 <case E_V2SImode>: Use vec_extr path for
17349 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17350 <case E_V8QImode>: Ditto.
17351 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
17352 Use SWI48 mode iterator. Use %k to output operand 0.
17353 (*mmx_pextrw): New insn pattern.
17354 (*mmx_pextrb): Ditto.
17355 (*mmx_pextrb_zext): Ditto.
17356
17357 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
17358
17359 * target.def (libc_has_function, libc_has_fast_function): Improve
17360 documentation strings.
17361 * doc/tm.texi: Regenerate.
17362
17363 2019-08-13 Caroline Tice <cmtice@google.com>
17364
17365 PR other/91396
17366 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
17367 vtv_end.o or vtv_end_preinit.o files if !static.
17368
17369 2019-08-13 Olivier Hainque <hainque@adacore.com>
17370
17371 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17372
17373 2019-08-13 Olivier Hainque <hainque@adacore.com>
17374
17375 * rtlanal.c (tablejump_casesi_pattern): New function, to
17376 determine if a tablejump insn is a casesi dispatcher. Extracted
17377 from patch_jump_insn.
17378 * rtl.h (tablejump_casesi_pattern): Declare.
17379 * cfgrtl.c (patch_jump_insn): Use it.
17380 * dwarf2cfi.c (create_trace_edges): Use it.
17381
17382 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17383
17384 PR target/81800
17385 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17386 operand is larger than a long int.
17387
17388 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17389
17390 * machmode.h (opt_mode::else_mode): New function.
17391 (opt_mode::else_blk): Use it.
17392 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17393 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17394 (aarch64_gen_stepped_int_parallel): Likewise.
17395 (aarch64_stepped_int_parallel_p): Likewise.
17396 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17397 argument.
17398 * config/aarch64/aarch64.c
17399 (aarch64_expand_sve_widened_duplicate): Delete.
17400 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17401 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17402 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17403 argument. Use early returns in the !CONST_INT_P handling.
17404 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17405 than handling some inline.
17406 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17407 from...
17408 (aarch64_simd_container_mode): ...here.
17409 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17410 (aarch64_sve_ld1rq_operand_p): New functions.
17411 * config/aarch64/predicates.md (descending_int_parallel)
17412 (aarch64_sve_ld1rq_operand): New predicates.
17413 * config/aarch64/constraints.md (UtQ): New constraint.
17414 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17415 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17416 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17417 (@aarch64_sve_reinterpret<mode>): New expander.
17418 (*aarch64_sve_reinterpret<mode>): New pattern.
17419 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17420 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17421 (*sve_ld1rq<Vesize>): Replace with...
17422 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17423
17424 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17425
17426 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17427 16:12.
17428
17429 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17430
17431 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17432 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17433 (msp430_check_path_for_devices): New.
17434 (parse_devices_csv_1): New.
17435 (parse_devices_csv): New.
17436 (msp430_extract_mcu_data): Try to find devices.csv and search for the
17437 MCU data in devices.csv before using the hard-coded data.
17438 Warn if devices.csv isn't found and the MCU wasn't found in the
17439 hard-coded data either.
17440 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17441 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17442 Search for devices.csv on -I and -L paths.
17443 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17444 msp430_set_driver_var.
17445 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17446 -mdevices-csv-loc=.
17447 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17448 searched for devices.csv.
17449 (mwarn-devices-csv): Document option.
17450
17451 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17452
17453 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17454 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17455 Use a single Dn alternative instead of separate Dz and Dm
17456 alternatives. Use aarch64_output_sve_move_immediate.
17457 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17458 function.
17459 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17460 for predicates too.
17461 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17462 (aarch64_output_ptrue): Delete.
17463
17464 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17465
17466 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17467 INDEX.
17468 (simd_immediate_info::value, simd_immediate_info::step)
17469 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17470 with...
17471 (simd_immediate_info::u): ...this new union.
17472 (simd_immediate_info::simd_immediate_info): Update accordingly.
17473 (aarch64_output_simd_mov_immediate): Likewise.
17474 (aarch64_output_sve_mov_immediate): Likewise.
17475
17476 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17477
17478 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17479 extra_gcc_objs.
17480 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17481 (msp430_select_cpu): New spec function.
17482 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17483 MCU data.
17484 * config/msp430/msp430-devices.c: New file.
17485 * config/msp430/msp430-devices.h: New file.
17486 * config/msp430/msp430.c: Remove msp430_mcu_data.
17487 (msp430_option_override): Use msp430_extract_mcu_data to extract
17488 MCU data.
17489 (msp430_use_f5_series_hwmult): Likewise.
17490 (use_32bit_hwmult): Likewise.
17491 (msp430_no_hwmult): Likewise.
17492 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17493 assembler.
17494 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17495 and -mcpu option.
17496 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17497 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17498 Remove hard-coded MCU multilib data.
17499
17500 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17501
17502 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17503 based on the mode instead of testing properties of it.
17504
17505 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17506
17507 * doc/md.texi: Document the x and y constraints for AArch64.
17508 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17509 (FP_LO8_REGS): New reg_class.
17510 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17511 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17512 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17513 * config/aarch64/predicates.md (aarch64_simd_register): Use
17514 FP_REGNUM_P instead of checking the classes manually.
17515 * config/aarch64/constraints.md (y): New constraint.
17516
17517 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17518
17519 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17520 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17521 * config/aarch64/aarch64-simd.md
17522 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17523 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17524 from the asm template.
17525 * config/aarch64/aarch64-sve.md
17526 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17527 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17528 from the asm template.
17529 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17530 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17531 from the asm template.
17532 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17533
17534 2019-08-13 Martin Liska <mliska@suse.cz>
17535
17536 * value-prof.c (gimple_ic_transform): Add new line.
17537 Print details with MSG_NOTE.
17538
17539 2019-08-13 Martin Liska <mliska@suse.cz>
17540
17541 * doc/invoke.texi: Document automatic detection of jobserver.
17542 * lto-wrapper.c (run_gcc): Detect jobserver always.
17543
17544 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17545
17546 * config/i386/i386-expand.c (ix86_expand_vector_set)
17547 <case E_V2SImode>: Use vec_merge path for
17548 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17549 <case E_V8QImode>: Ditto.
17550 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17551 (*mmx_pinsrb): Ditto.
17552
17553 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17554
17555 PR target/83250
17556 PR target/91340
17557 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17558 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17559 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17560 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17561 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17562
17563 2019-08-12 Richard Biener <rguenther@suse.de>
17564
17565 PR lto/91375
17566 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17567 flag_devirtualize.
17568
17569 2019-08-12 Richard Biener <rguenther@suse.de>
17570
17571 PR driver/91130
17572 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17573 lang_mask option, always use CL_DRIVER.
17574 (get_options_from_collect_gcc_options): Adjust.
17575 (find_and_merge_options): Likewise.
17576 (run_gcc): Likewise.
17577
17578 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17579
17580 * ipa-predicate.c (add_condition): Restore inverted test.
17581
17582 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17583
17584 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17585 (enum omp_clause_device_type_kind): New enum.
17586 (struct tree_omp_clause): Add subcode.device_type_kind.
17587 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17588 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17589 for device_type clause.
17590 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17591 * tree-pretty-print.c (dump_omp_clause): Likewise.
17592
17593 PR target/91408
17594 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17595 vector_operand.
17596
17597 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17598
17599 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17600 handling spilled pseudos.
17601
17602 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17603
17604 PR target/91386
17605 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17606 to preserve the contents of the original insns.
17607
17608 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17609
17610 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17611 (addsi3_compare_op2): Likewise.
17612
17613 2019-08-09 Martin Liska <mliska@suse.cz>
17614
17615 * alias.c (alias_ptr_types_compatible_p): Strengten
17616 type comparison in LTO mode.
17617
17618 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17619
17620 PR middle-end/90313
17621 * tree-tailcall.c (find_tail_calls): Reject calls that might
17622 read from an escaped RESULT_DECL.
17623
17624 2019-08-09 Martin Liska <mliska@suse.cz>
17625
17626 * doc/invoke.texi: Document the option value.
17627 * lto-wrapper.c (run_gcc): Set auto_parallel
17628 only with -flto=auto.
17629
17630 2019-08-09 Martin Liska <mliska@suse.cz>
17631
17632 * opts.c (common_handle_option): Error for an invalid argument
17633 to -flto=.
17634
17635 2019-08-09 Martin Liska <mliska@suse.cz>
17636
17637 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17638 use dump_printf to report optimization.
17639 (sem_variable::merge): Likwise.
17640 (sem_item_optimizer::merge_classes): Use dump_printf to report
17641 ICF hits.
17642
17643 2019-08-09 Martin Liska <mliska@suse.cz>
17644
17645 * value-prof.c (gimple_divmod_fixed_value_transform):
17646 Use dump_printf_loc.
17647 (gimple_mod_pow2_value_transform): Likewise.
17648 (gimple_mod_subtract_transform): Likewise.
17649 (init_node_map): Likewise.
17650 (gimple_ic_transform): Likewise.
17651 (gimple_stringops_transform): Likewise.
17652
17653 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17654
17655 * doc/extend.texi: Add const qualifier to ld intrinsics.
17656
17657 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17658
17659 * config/rs6000/dfp.md (D64_D128): Rename to ...
17660 (DDTD): ... this, throughout.
17661 (dfp_suffix): Rename to ...
17662 (q): ... this, throughout.
17663
17664 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17665
17666 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17667 (dfp_suffix): Ditto.
17668 (adddd3, addtd3): Merge to ...
17669 (add<mode>3 for D64_D128): ... this.
17670 (subdd3, subtd3): Merge to ...
17671 (sub<mode>3 for D64_D128): ... this.
17672 (muldd3, multd3): Merge to ...
17673 (mul<mode>3 for D64_D128): ... this.
17674 (divdd3, divtd3): Merge to ...
17675 (div<mode>3 for D64_D128): ... this.
17676 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17677 (*cmp<mode>_internal1 for D64_D128): ... this.
17678 (ftruncdd2, ftrunctd2): Merge to ...
17679 (ftrunc<mode>2 for D64_D128): ... this.
17680 (fixdddi2, fixtddi2): Merge to ...
17681 (fix<mode>di2 for D64_D128): ... this.
17682
17683 2019-08-08 Jim Wilson <jimw@sifive.com>
17684
17685 PR target/91229
17686 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17687 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17688 Pass into recursive call.
17689 (riscv_flatten_aggregate_argument): New arg. Pass to
17690 riscv_flatten_aggregate_field.
17691 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17692 riscv_flatten_aggregate_argument twice, with false and true as last
17693 arg. Process result twice. Compare results and warn if different.
17694 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17695
17696 2019-08-08 Martin Liska <mliska@suse.cz>
17697
17698 PR bootstrap/91352
17699 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17700 * lto-wrapper.c (jobserver_active_p): Likewise.
17701
17702 2019-08-08 Martin Liska <mliska@suse.cz>
17703
17704 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17705 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17706 (create_version_clone_with_body): Likewise.
17707
17708 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17709
17710 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17711 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17712 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17713 GOVD_EXPLICIT flags.
17714 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17715 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17716 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17717 call install_var_field with mask 11 instead of 3.
17718 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17719 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17720
17721 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17722
17723 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17724 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17725
17726 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17727
17728 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17729 MOVPRFX alternatives. Make the GPR alternatives more expensive
17730 than the FPR ones.
17731
17732 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17733
17734 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17735 Disparage the GPR alternative relative to the FPR one.
17736 Fix handling of 8-bit and 16-bit FPR values.
17737
17738 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17739
17740 * config/aarch64/iterators.md (BITWISEV): Delete.
17741 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17742 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17743 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17744 UNSPEC_FMINNMV, UNSPEC_FMINV.
17745 (bit_reduc_op): Delete.
17746 (sve_int_op): New int attribute.
17747 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17748 UNSPEC_FMINNMV, UNSPEC_FMINV.
17749 * config/aarch64/aarch64-sve.md
17750 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17751 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17752 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17753 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17754 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17755 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17756 new patterns.
17757 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17758 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17759 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17760 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17761 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17762 new patterns.
17763
17764 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17765
17766 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17767 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17768 (fms<mode>4, *fms<mode>4): Replace with...
17769 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17770 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17771 Use unspecs instead of rtx codes.
17772 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17773 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17774
17775 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17776
17777 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17778 int iterator.
17779 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17780 * config/aarch64/aarch64-sve.md
17781 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17782 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17783 use a single unspec for the rhs.
17784 (*<su><maxmin><mode>3): Delete.
17785 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17786
17787 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17788
17789 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17790 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17791 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17792 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17793 (optab, sve_fp_op): Handle them.
17794 (SVE_FP_UNARY): Delete.
17795 (optab): Remove sqrt entry.
17796 (sve_fp_op): Remove neg, abs and sqrt entries.
17797 (SVE_COND_FP_UNARY): New int iterator.
17798 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17799 (*<frint_pattern><mode>2): Delete.
17800 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17801 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17802 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17803 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17804
17805 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17806
17807 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17808
17809 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17810
17811 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17812 (UNSPEC_COND_FADD): ...this.
17813 (UNSPEC_COND_SUB): Rename to...
17814 (UNSPEC_COND_FSUB): ...this.
17815 (UNSPEC_COND_MUL): Rename to...
17816 (UNSPEC_COND_FMUL): ...this.
17817 (UNSPEC_COND_DIV): Rename to...
17818 (UNSPEC_COND_FDIV): ...this.
17819 (UNSPEC_COND_MAX): Rename to...
17820 (UNSPEC_COND_FMAXNM): ...this.
17821 (UNSPEC_COND_MIN): Rename to...
17822 (UNSPEC_COND_FMINNM): ...this.
17823 (UNSPEC_COND_LT): Rename to...
17824 (UNSPEC_COND_FCMLT): ...this.
17825 (UNSPEC_COND_LE): Rename to...
17826 (UNSPEC_COND_FCMLE): ...this.
17827 (UNSPEC_COND_EQ): Rename to...
17828 (UNSPEC_COND_FCMEQ): ...this.
17829 (UNSPEC_COND_NE): Rename to...
17830 (UNSPEC_COND_FCMNE): ...this.
17831 (UNSPEC_COND_GE): Rename to...
17832 (UNSPEC_COND_FCMGE): ...this.
17833 (UNSPEC_COND_GT): Rename to...
17834 (UNSPEC_COND_FCMGT): ...this.
17835 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17836 (sve_fp_op_rev): Update accordingly.
17837 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17838
17839 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17840
17841 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17842 banner comments.
17843 * config/aarch64/check-sve-md.awk: New file.
17844 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17845 (insn-conditions.md): Depend on it.
17846
17847 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17848
17849 PR target/91385
17850 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17851 (*negsi2_cmpz_zext): Ditto.
17852
17853 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17854
17855 * config/aarch64/iterators.md (commutative): Remove.
17856
17857 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17858
17859 PR driver/91130
17860 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17861 processing COLLECT_GCC_OPTIONS.
17862 (run_gcc): Likewise.
17863
17864 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17865
17866 PR tree-optimization/91109
17867 * lra-remat.c (update_scratch_ops): Remove assignment of the
17868 hard register.
17869
17870 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17871
17872 * data-streamer.h (streamer_write_poly_uint64): Declare.
17873 (streamer_read_poly_uint64): Likewise.
17874 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17875 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17876 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17877 (add_condition): Take a poly_int64 size.
17878 * ipa-predicate.c (add_condition): Likewise.
17879 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17880 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17881 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17882 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17883 condition::size as a poly_int64.
17884 (unmodified_parm_1): Take a poly_int64 size pointer.
17885 (unmodified_parm): Likewise.
17886 (unmodified_parm_or_parm_agg_item): Likewise.
17887 (set_cond_stmt_execution_predicate): Update accordingly.
17888 (set_switch_stmt_execution_predicate): Likewise.
17889 (will_be_nonconstant_expr_predicate): Likewise.
17890 (will_be_nonconstant_predicate): Likewise.
17891 (inline_read_section): Stream condition::size as a poly_int.
17892 (ipa_fn_summary_write): Likewise.
17893
17894 2019-08-07 Martin Liska <mliska@suse.cz>
17895
17896 * fold-const.c (twoval_comparison_p): Replace int
17897 with bool as a return type.
17898 (simple_operand_p): Likewise.
17899 (operand_equal_p): Replace int with bool as a return type.
17900 * fold-const.h (operand_equal_p): Likewise.
17901
17902 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17903
17904 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17905 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17906 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17907 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17908 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17909 * tree-pretty-print.c (dump_omp_clause): Likewise.
17910 * tree-nested.c (convert_nonlocal_omp_clauses,
17911 convert_local_omp_clauses): Likewise.
17912 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17913 Likewise.
17914 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17915 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17916 clause with array or reference to array types, no matter what type
17917 except for reference it has.
17918
17919 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17920
17921 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17922
17923 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17924
17925 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17926 (arch_canonicalize): Support rv32g and rv64g and fix error
17927 handling.
17928
17929 2019-08-06 Martin Liska <mliska@suse.cz>
17930
17931 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17932 and DECL_IS_OPERATOR_DELETE_P.
17933
17934 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17935
17936 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17937 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17938 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17939 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17940 (gimplify_omp_for): Don't do C++ random access iterator clause
17941 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17942 don't predetermine the artificial iterator in case of C++ random
17943 access iterators as lastprivate, but private. For OMP_LOOP, force
17944 bind expr around simd body and force for_pre_body before the
17945 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17946 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17947 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17948 diff var of C++ random access iterators. Handle
17949 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17950 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17951 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17952 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17953 * omp-low.c (lower_rec_input_clauses): For
17954 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17955 variables instead of default constructing them.
17956 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17957 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17958 is_taskloop_ctx check from the assert to the guarding condition.
17959
17960 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17961
17962 * config/riscv/multilib-generator: (canonical_order): New.
17963 (arch_canonicalize): Dito.
17964 Apply arch_canonicalize for alts.
17965
17966 2019-08-05 Martin Sebor <msebor@redhat.com>
17967
17968 * doc/extend.texi (Common Variable Attributes): Document alias
17969 attribute.
17970
17971 2019-08-05 Marek Polacek <polacek@redhat.com>
17972
17973 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17974 * doc/invoke.texi: Document -Wcomma-subscript.
17975
17976 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17977
17978 * tree-core.h (tree_function_decl): Make function_code an
17979 independent field. Group the remaining bitfields into bytes
17980 and move decl_type so that it contines to be at a byte boundary.
17981 Leave 12 bits for future expansion.
17982
17983 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17984
17985 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17986 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17987 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17988 IFN_MASK_STORE.
17989
17990 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17991
17992 * gimple.h (gimple_move_vops): Declare.
17993 * gimple.c (gimple_move_vops): New function
17994 * gimple-fold.c (replace_call_with_call_and_fold)
17995 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17996 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17997 (gimple_fold_call): Use it.
17998 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17999 * tree-call-cdce.c (use_internal_fn): Likewise.
18000 * tree-if-conv.c (predicate_load_or_store): Likewise.
18001 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
18002 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
18003 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
18004 (update_call_from_tree): Likewise.
18005 * tree-vect-stmts.c (vectorizable_load): Likewise.
18006 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
18007
18008 2019-08-05 Martin Liska <mliska@suse.cz>
18009
18010 PR c++/91334
18011 * tree-ssa-dce.c (propagate_necessity): Handle new operators
18012 with not arguments.
18013 (eliminate_unnecessary_stmts): Likewise.
18014
18015 2019-08-05 Richard Biener <rguenther@suse.de>
18016
18017 PR middle-end/91169
18018 * fold-const.c (get_array_ctor_element_at_index): Create
18019 offset_ints according to the sign of the index type and treat
18020 that as signed if it is obviously so.
18021
18022 2019-08-05 Jakub Jelinek <jakub@redhat.com>
18023
18024 PR target/91341
18025 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
18026 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
18027 _mm256_storeu2_m128i): New function.
18028
18029 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
18030
18031 * config/riscv/riscv.c (riscv_promote_function_mode): New.
18032 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
18033
18034 2019-08-05 Alan Modra <amodra@gmail.com>
18035
18036 PR target/91349
18037 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
18038 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
18039
18040 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
18041
18042 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
18043 bug that was fixed in Tcl 8.6.1.
18044
18045 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
18046
18047 * config/rs6000/future.md: New file.
18048 * config/rs6000/rs6000.md: Include future.md.
18049 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
18050
18051 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
18052
18053 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
18054 check to use targetm.slow_unaligned_access instead.
18055
18056 * function.c (assign_param_data_one): Remove unused data members.
18057
18058 2019-08-02 Steve Ellcey <sellcey@marvell.com>
18059
18060 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
18061 build_distinct_type_copy.
18062 (simd_clone_adjust_argument_types): Ditto.
18063 (simd_clone_adjust): Call build_distinct_type_copy here.
18064 (expand_simd_clones): Ditto.
18065
18066 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18067
18068 PR target/91201
18069 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
18070
18071 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
18072
18073 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
18074 from 'const void *'.
18075 (sort_locs_in_loop_postorder_cmp): Likewise.
18076
18077 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
18078
18079 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
18080 (hot-bb-count-ws-permille): Likewise.
18081 (hot-bb-frequency-fraction): Likewise.
18082 (unlikely-bb-count-fraction): Likewise.
18083 * params.def (hot-bb-count-fraction): Rework description.
18084 (hot-bb-count-ws-permille): Likewise.
18085 (hot-bb-frequency-fraction): Likewise.
18086 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
18087 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
18088
18089 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18090
18091 PR target/91323
18092 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
18093 Return false.
18094
18095 2019-08-02 Richard Biener <rguenther@suse.de>
18096
18097 * vec.h (vec::sort): Add gcc_qsort_r support.
18098 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
18099 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
18100 to gcc_qsort_r style callback.
18101 (sort_locs_in_loop_postorder_cmp): Likewise.
18102 (analyze_memory_references): Use gcc_sort_r interfaces.
18103 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
18104
18105 2019-08-02 Martin Liska <mliska@suse.cz>
18106
18107 PR lto/91313
18108 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
18109 to detect working job server.
18110 (driver::detect_jobserver): Test whether jobserver
18111 is active from GCC driver. That will prevent situation where
18112 GCC is invoked from a LD plugin and the linker already uses
18113 file descriptors suggested by make. That leads to a wrong
18114 detection.
18115 * gcc.h (driver): Add detect_jobserver.
18116 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
18117 not scanning for --jobserver-auth prefix.
18118
18119 2019-08-02 Jakub Jelinek <jakub@redhat.com>
18120
18121 PR tree-optimization/91201
18122 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
18123 V16QImode extraction without sse4.1 try to use V4SImode lowpart
18124 extraction.
18125
18126 2019-08-01 Martin Sebor <msebor@redhat.com>
18127
18128 PR c++/90947
18129 * tree.c (type_initializer_zero_p): Define.
18130 * tree.h (type_initializer_zero_p): New function.
18131
18132 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18133
18134 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
18135
18136 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18137
18138 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
18139 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
18140 * predict.c (maybe_hot_count_p): Likewise.
18141 (maybe_hot_bb_p): Tweak comment.
18142 (maybe_hot_edge_p): Likewise.
18143 (probably_never_executed): Likewise. Minor tweak.
18144 (probably_never_executed_bb_p): Likewise.
18145 (unlikely_executed_edge_p): Likewise.
18146 (probably_never_executed_edge_p): Likewise.
18147 (optimize_function_for_size_p): Likewise.
18148 (optimize_function_for_speed_p): Likewise.
18149 (function_optimization_type): Likewise.
18150 (optimize_bb_for_size_p): Likewise.
18151 (optimize_bb_for_speed_p): Likewise.
18152 (bb_optimization_type): Likewise.
18153 (optimize_edge_for_size_p): Likewise.
18154 (optimize_edge_for_speed_p): Likewise.
18155 (optimize_insn_for_size_p): Likewise.
18156 (optimize_insn_for_speed_p): Likewise.
18157 (optimize_loop_for_size_p): Likewise.
18158 (optimize_loop_for_speed_p): Likewise.
18159 (optimize_loop_nest_for_speed_p): Likewise.
18160 (optimize_loop_nest_for_size_p): Likewise.
18161 (predictable_edge_p): Likewise.
18162 (handle_missing_profiles): Minor tweak.
18163
18164 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
18165
18166 * config/rs6000/predicates.md (pcrel_external_address): Update
18167 comment.
18168
18169 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18170
18171 PR target/85693
18172 * config/i386/mmx.md (usadv8qi): New expander.
18173
18174 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
18175
18176 PR c++/90590
18177 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
18178 with reserved names that are in a system header.
18179
18180 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18181
18182 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
18183 (*vec_extractv2si_0_zext_sse4): New insn pattern.
18184 (*vec_extractv2si_0_zext): Ditto.
18185 (*vec_extractv2si_1): Add (rm,x) alternative.
18186 (*vec_extractv2si_1_zext): New insn pattern.
18187 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
18188 insn constraint.
18189
18190 2019-08-01 Richard Biener <rguenther@suse.de>
18191
18192 * domwalk.c (bb_postorder): Remove static variable.
18193 (cmp_bb_postorder): Adjust.
18194 (sort_bbs_postorder): Adjust and use gcc_sort_r.
18195 (dom_walker::walk): Adjust.
18196
18197 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
18198
18199 * sort.cc (sort_r_ctx): New struct.
18200 (reorder23): Make templated on context type.
18201 (reorder45): Ditto.
18202 (cmp1): Ditto. Adjust signature.
18203 (netsort): Ditto.
18204 (mergesort): Ditto.
18205 [CHECKING_P] (cmp2to3): New static function. Use it...
18206 (gcc_qsort) [CHECKING_P]: ...here.
18207 (gcc_sort_r): New function.
18208 * system.h (sort_r_cmp_fn): New function typedef.
18209 (qsort_chk): Adjust signature.
18210 (gcc_sort_r): Declare.
18211 * vec.c (qsort_chk_error): Adjust.
18212 (qsort_chk): Adjust.
18213
18214 2019-08-01 Richard Biener <rguenther@suse.de>
18215
18216 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
18217 (compute_antic): Localize it here.
18218
18219 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
18220
18221 * common/config/riscv/riscv-common.c: Check -march string ends
18222 with null.
18223
18224 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
18225
18226 * ipa-devirt.c (type_warning_cmp): Make static.
18227 (decl_warning_cmp): Ditto.
18228
18229 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
18230
18231 PR target/91050
18232 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
18233 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
18234 use of deleted rs6000_dejagnu_cpu_index variable.
18235 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
18236 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18237 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
18238 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
18239 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
18240 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18241
18242 2019-07-31 Richard Biener <rguenther@suse.de>
18243
18244 PR tree-optimization/91280
18245 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18246 Decompose MEM_REF manually for offset handling.
18247
18248 2019-07-31 Richard Biener <rguenther@suse.de>
18249
18250 PR tree-optimization/91293
18251 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
18252 of reduction stmts.
18253
18254 2019-07-31 Matt Thomas <matt@3am-software.com>
18255 Nick Hudson <nick@nthcliff.demon.co.uk>
18256 Matthew Green <mrg@eterna.com.au>
18257 Maya Rashish <coypu@sdf.org>
18258
18259 * config.gcc (hppa*-*-netbsd*): New target.
18260 * config/pa/pa-netbsd.h: New file.
18261 * config/pa/pa32-netbsd.h: New file.
18262
18263 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18264
18265 PR tree-optimization/91201
18266 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
18267
18268 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
18269
18270 * config/gcn/gcn-valu.md
18271 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
18272 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
18273 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
18274 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
18275 struct ilist. Add nops for delayeduse insns.
18276 * config/gcn/gcn.md (delayeduse): New attribute.
18277 (*movbi): Remove s_waitcnt from stores.
18278 (*mov<mode>_insn): Likewise.
18279 (*movti_insn): Likewise. Add delayeduse attribute.
18280 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
18281 (atomic_store<mode>): Remove or adjust s_waitcnt.
18282
18283 2019-07-31 Richard Biener <rguenther@suse.de>
18284
18285 * vr-values.h (vr_values::swap_vr_value): New.
18286 (vr_values::free_value_range): likewise.
18287 * vr-values.c (vr_values::swap_vr_value): Implement.
18288 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
18289 Do not return a range or take a var.
18290 (evrp_range_analyzer::stack): Change back to recording a non-const
18291 value_range *.
18292 * gimple-ssa-evrp-analyze.c
18293 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
18294 value-range.
18295 (evrp_range_analyzer::pop_to_marker): Adjust.
18296 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
18297 (evrp_range_analyzer::pop_value_range): Likewise. Free the
18298 no longer needed value-range.
18299
18300 2019-07-31 Martin Liska <mliska@suse.cz>
18301
18302 * tree-ssa-dce.c (propagate_necessity): Delete operator can
18303 have size and (or) alignment as 2nd and later arguments.
18304 Mark all of them as necessary.
18305
18306 2019-07-31 Richard Biener <rguenther@suse.de>
18307
18308 PR tree-optimization/91178
18309 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18310 Use tail-recursion.
18311
18312 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18313
18314 PR tree-optimization/91201
18315 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
18316 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
18317 TARGET_AVX512F.
18318 (reduc_plus_scal_<mode>): Improve formatting by introducing
18319 a temporary.
18320
18321 2019-07-31 Sudakshina Das <sudi.das@arm.com>
18322
18323 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
18324 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
18325 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
18326 (aarch64_init_tme_builtins): New.
18327 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
18328 (aarch64_expand_builtin_tme): New.
18329 (aarch64_expand_builtin): Handle TME builtins.
18330 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
18331 __ARM_FEATURE_TME when enabled.
18332 * config/aarch64/aarch64-option-extensions.def: Add "tme".
18333 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
18334 (TARGET_TME): New.
18335 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
18336 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
18337 UNSPECV_TCANCEL.
18338 (tstart, ttest, tcommit, tcancel): New instructions.
18339 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
18340 (__tcancel, __ttest): New.
18341 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
18342 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
18343 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
18344 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
18345 * config/arm/types.md: Add new tme type attr.
18346 * doc/invoke.texi: Document "tme".
18347
18348 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
18349
18350 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
18351 warn_unused_result attribute.
18352 (cmse_check_address_range): Add warn_unused_result attribute.
18353
18354 2019-07-31 Richard Biener <rguenther@suse.de>
18355
18356 PR tree-optimization/91257
18357 * tree-vrp.c (union_ranges): Unify equality and less tests
18358 by using compare_values. Re-order cheap tests first.
18359
18360 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18361
18362 PR middle-end/91301
18363 * gimplify.c (gimplify_omp_for): If for class iterator on
18364 distribute parallel for there is no data sharing clause
18365 on inner_for_stmt, look for private clause on combined
18366 parallel too and if found, move it to inner_for_stmt.
18367
18368 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
18369
18370 * lra-int.h (lra_operand_data): Remove early_clobber field.
18371 (lra_insn_reg): Likewise.
18372 * lra.c (debug_operand_data): Update accordingly.
18373 (setup_operand_alternative): Likewise.
18374 (new_insn_reg): Likewise. Remove early_clobber parameter.
18375 (collect_non_operand_hard_regs): Update call accordingly.
18376 Don't assign to lra_insn_reg::early_clobber.
18377 (add_regs_to_insn_regno_info): Remove early_clobber parameter
18378 and update calls to new_insn_reg.
18379 (lra_update_insn_regno_info): Update calls accordingly.
18380 * lra-constraints.c (update_and_check_small_class_inputs): Take the
18381 alternative number as a parameter and test whether the operand
18382 is earlyclobbered in that particular alternative.
18383 (process_alt_operands): Update call accordingly. Use per-alternative
18384 checks for earyclobber here too.
18385 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18386 against zero for IRA_UNKNOWN_ALT.
18387
18388 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18389
18390 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18391
18392 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
18393
18394 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18395 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18396
18397 2019-07-30 Martin Liska <mliska@suse.cz>
18398
18399 PR ipa/89330
18400 * cgraph.c (cgraph_edge::make_direct): Use
18401 edge->indirect_unknown_callee as edge->resolve_speculation can
18402 deallocate edge which is this pointer.
18403
18404 2019-07-30 Richard Biener <rguenther@suse.de>
18405
18406 PR tree-optimization/91257
18407 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18408
18409 2019-07-30 Martin Liska <mliska@suse.cz>
18410
18411 * doc/invoke.texi: Document new behavior.
18412 * lto-wrapper.c (cpuset_popcount): New function
18413 is a copy of libgomp/config/linux/proc.c.
18414 (init_num_threads): Likewise.
18415 (run_gcc): Automatically detect core count for -flto.
18416 (jobserver_active_p): New function.
18417
18418 2019-07-30 Richard Biener <rguenther@suse.de>
18419
18420 PR tree-optimization/91257
18421 * bitmap.h (bitmap_ior_into_and_free): Declare.
18422 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18423 whether to add the unliked element to the freelist.
18424 (bitmap_list_insert_element_after): Add defaulted param for
18425 an already allocated element.
18426 (bitmap_ior_into_and_free): New function.
18427 * tree-ssa-structalias.c (condense_visit): Reduce the
18428 ponts-to and edge bitmaps of the SCC members in a
18429 logarithmic fashion rather than all to one.
18430
18431 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
18432
18433 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18434 parameter. When nonnull, make sure that the addition or subtraction
18435 has the same condition.
18436 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18437 for CFN_COND_MUL too.
18438
18439 2019-07-30 Richard Biener <rguenther@suse.de>
18440
18441 PR tree-optimization/91291
18442 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18443 constant values.
18444
18445 2019-07-30 Jakub Jelinek <jakub@redhat.com>
18446
18447 PR middle-end/91216
18448 * omp-low.c (global_nonaddressable_vars): New variable.
18449 (use_pointer_for_field): For global decls, if they are non-addressable,
18450 remember it in the global_nonaddressable_vars bitmap, if they are
18451 addressable and in the global_nonaddressable_vars bitmap, ignore their
18452 TREE_ADDRESSABLE bit.
18453 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18454 vars in global_nonaddressable_vars bitmap.
18455 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18456
18457 PR target/91150
18458 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18459 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18460 comparison to unsigned HOST_WIDE_INT before shifting it left.
18461
18462 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18463
18464 * config/i386/i386.md (movstrict<mode>): Use register_operand
18465 predicate for operand 0. Add expander condition. Assert that
18466 operand 0 is a SUBREG RTX.
18467 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18468 Update operand constraints and insn condition.
18469 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18470 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18471 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18472 Update operand 0 constraints.
18473 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18474
18475 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18476
18477 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18478 when -m{code,data}-region are used without -mlarge.
18479 * config/msp430/msp430.c (msp430_option_override): Error when a
18480 non-default code or data region is used without -mlarge.
18481 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18482 attributes when they are used without -mlarge.
18483
18484 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18485
18486 PR target/70320
18487 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18488
18489 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18490
18491 PR middle-end/91242
18492 * wide-int.h (generic_wide_int::sext_elt): New function.
18493 * inchash.h (hash::add_wide_int): Use it instead of elt.
18494
18495 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18496
18497 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18498 CODE_FOR_arm_##.
18499 * config/arm/arm.md (<crc_variant>): Rename to...
18500 (arm_<crc_variant>): ... This.
18501 (<cdp>): Rename to...
18502 (arm_<cdp>): ... This.
18503 (<ldc>): Rename to...
18504 (arm_<ldc>): ... This.
18505 (<stc>): Rename to...
18506 (arm_<stc>): ... This.
18507 (<mcr>): Rename to...
18508 (arm_<mcr>): ... This.
18509 (<mrc>): Rename to...
18510 (arm_<mrc>): ... This.
18511 (<mcrr>): Rename to...
18512 (arm_<mcrr>): ... This.
18513 (<mrrc>): Rename to...
18514 (arm_<mrrc>): ... This.
18515
18516 2019-07-29 Richard Biener <rguenther@suse.de>
18517
18518 PR tree-optimization/91257
18519 * tree-ssa-sccvn.h (struct vn_avail): New.
18520 (struct vn_ssa_aux): Add avail member.
18521 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18522 member, add m_avail_freelist one.
18523 (rpo_elim::~rpo_elim): Remove.
18524 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18525 data structure.
18526 (rpo_elim::eliminate_push_avail): Likewise.
18527 (do_unwind): Likewise.
18528 (do_rpo_vn): Likewise.
18529
18530 2019-07-29 Richard Biener <rguenther@suse.de>
18531
18532 PR tree-optimization/91257
18533 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18534 most cases, instead call compare_values which handles the
18535 symbolic ranges we handle specially.
18536 (compare_values_warnv): Do not call operand_less_p but open-code
18537 the effective fold calls. Avoid converting so much.
18538
18539 2019-07-29 Martin Liska <mliska@suse.cz>
18540
18541 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18542 remove LHS of operator new call. It's handled latter.
18543
18544 2019-07-29 Richard Biener <rguenther@suse.de>
18545
18546 PR tree-optimization/91267
18547 * vr-values.c (vr_values::update_value_range): Add early return
18548 for effectively VARYING lattice entry.
18549
18550 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18551
18552 PR debug/86638
18553 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18554 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18555 necessary if keep_all_vdefs_p is true.
18556 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18557 that keep_all_vdefs_p is false.
18558 (mark_all_reaching_defs_necessary): Likewise.
18559 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18560
18561 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18562
18563 * common.opt (Og): Change the initial value of flag_dse to 0.
18564 * opts.c (default_options_table): Move OPT_ftree_dse from
18565 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18566 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18567 entry before the OPT_ftree_sra entry.
18568 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18569 of flags disabled by Og.
18570
18571 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18572
18573 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18574 variables for -Og.
18575
18576 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18577
18578 * doc/sourcebuild.texi (check-function-bodies): Document.
18579
18580 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18581
18582 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18583 VEC_DUPLICATE of a fixed-length vector even if the result
18584 is variable-length. Likewise fold a duplicate of a
18585 variable-length vector if the variable-length vector is
18586 itself a duplicate of a fixed-length sequence.
18587 (test_vector_ops_duplicate): Test more cases.
18588
18589 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18590
18591 * vector-builder.h (vector_builder): Add a shape template parameter.
18592 (vector_builder::new_unary_operation): New function, generalizing
18593 the old tree_vector_builder function.
18594 (vector_builder::new_binary_operation): Likewise.
18595 (vector_builder::binary_encoded_nelts): Likewise.
18596 * int-vector-builder.h (int_vector_builder): Update template
18597 parameters to vector_builder.
18598 (int_vector_builder::shape_nelts): New function.
18599 * rtx-vector-builder.h (rtx_vector_builder): Update template
18600 parameters to vector_builder.
18601 (rtx_vector_builder::shape_nelts): New function.
18602 (rtx_vector_builder::nelts_of): Likewise.
18603 (rtx_vector_builder::npatterns_of): Likewise.
18604 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18605 * tree-vector-builder.h (tree_vector_builder): Update template
18606 parameters to vector_builder.
18607 (tree_vector_builder::shape_nelts): New function.
18608 (tree_vector_builder::nelts_of): Likewise.
18609 (tree_vector_builder::npatterns_of): Likewise.
18610 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18611 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18612 (tree_vector_builder::new_binary_operation): Delete.
18613 (tree_vector_builder::binary_encoded_nelts): Likewise.
18614 * simplify-rtx.c: Include rtx-vector-builder.h.
18615 (distributes_over_addition_p): New function.
18616 (simplify_const_unary_operation)
18617 (simplify_const_binary_operation): Generalize handling of vector
18618 constants to include variable-length vectors.
18619 (test_vector_ops_series): Add more tests.
18620
18621 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18622
18623 PR lto/91222
18624 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18625 than INDENTIFIER_POINTER.
18626
18627 2019-07-28 Martin Liska <mliska@suse.cz>
18628
18629 PR ipa/89330
18630 * cgraph.c (symbol_table::create_edge): Always allocate
18631 a cgraph_edge.
18632 (symbol_table::free_edge): Store summary_id to
18633 edge_released_summary_ids if != -1;
18634 * cgraph.h (NEXT_FREE_NODE): Remove.
18635 (SET_NEXT_FREE_NODE): Likewise.
18636 (NEXT_FREE_EDGE): Likewise.
18637 (symbol_table::release_symbol): Store summary_id to
18638 cgraph_released_summary_ids if != -1;
18639 (symbol_table::allocate_cgraph_symbol): Always allocate
18640 a cgraph_node.
18641
18642 2019-07-28 Alan Modra <amodra@gmail.com>
18643
18644 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18645 gen_sibcall.
18646
18647 2019-07-28 Alan Modra <amodra@gmail.com>
18648
18649 PR target/91135
18650 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18651 define.
18652 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18653 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18654 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18655
18656 2019-07-28 Alan Modra <amodra@gmail.com>
18657
18658 PR target/91050
18659 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18660 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18661 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18662 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18663 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18664 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18665 in asm_default spec.
18666 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18667 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18668
18669 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18670
18671 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18672
18673 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18674
18675 PR target/89517
18676 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18677 * config/aarch64/aarch64-option-extensions.def: Add new comments
18678 and restore easier to read options.
18679
18680 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18681
18682 * convert.c (convert_to_real_1): Move part of conversion code...
18683 * match.pd: ...To here.
18684
18685 2019-07-26 Martin Jambor <mjambor@suse.cz>
18686
18687 PR ipa/89330
18688 * ipa-inline-transform.c (check_speculations_1): New function.
18689 (push_all_edges_in_set_to_vec): Likewise.
18690 (check_speculations): Use check_speculations_1, new parameter
18691 new_edges.
18692 (inline_call): Pass new_edges to check_speculations.
18693 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18694 NULL.
18695 (speculation_useful_p): Early return true if edge is inlined, remove
18696 later checks for inline_failed.
18697
18698 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18699
18700 PR rtl-optimization/91223
18701 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18702 matching with INOUT operand.
18703
18704 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18705
18706 * stmt.c (expand_case): Try to narrow the index type if it's larger
18707 than a word. Tidy up.
18708
18709 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18710
18711 * cif-code.def (NEVER_CALL): New code.
18712 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18713 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18714
18715 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18716
18717 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18718 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18719
18720 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18721
18722 * ipa-devirt.c (add_type_duplicate): Fix return value.
18723
18724 2019-07-25 Richard Biener <rguenther@suse.de>
18725
18726 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18727 type parameter and use it instead of guessing expression
18728 type from the first operand.
18729 (extract_range_from_binary_expr): Pass expr_type down.
18730
18731 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18732
18733 * config/arm/arm.md (SATrev): Change to code attribute.
18734 (*satsi_<SAT:code>): Adjust for the above.
18735 (*satsi_<SAT:code>_shift): Likewise.
18736
18737 2019-07-25 Richard Biener <rguenther@suse.de>
18738
18739 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18740 Make value_range * temporary const.
18741 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18742 Likewise.
18743 (evrp_range_analyzer::record_ranges_from_): Likewise.
18744 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18745 deal with having recorded a const one.
18746 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18747 Return a const value_range *.
18748 (evrp_range_analyzer::pop_value_range): Likewise.
18749 (evrp_range_analyzer::stack): Record const value_range *s.
18750 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18751 Adjust.
18752 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18753 (format_integer): Likewise.
18754 (sprintf_dom_walker::handle_gimple_call): Likewise.
18755 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18756 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18757 (vrp_prop::get_value_range): Adjust.
18758 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18759 modifying the lattice in-place.
18760 (vrp_prop::visit_stmt): Likewise.
18761 * vr-values.c (vr_values::get_lattice_entry): New private method.
18762 (vr_values::get_value_range): Wrap it and return a const
18763 value_range *.
18764 (vr_values::set_def_to_varying): New.
18765 (vr_values::set_defs_to_varying): Use it.
18766 (vr_values::update_value_range): Likewise.
18767 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18768 (values::op_with_constant_singleton_va): Likewise.
18769 (vr_values::extract_range_for_var_from_co): Likewise.
18770 (vr_values::extract_range_from_ssa_name): Likewise.
18771 (vr_values::extract_range_from_cond_expr): Likewise.
18772 (vr_values::extract_range_basic): Likewise.
18773 (compare_ranges): Take const value_range *, adjust.
18774 (compare_range_with_value): Likewise.
18775 (vrp_valueize): Adjust.
18776 (vrp_valueize_1): Likewise.
18777 (vr_values::get_vr_for_comparison): Return a const value_range *.
18778 (vr_values::compare_name_with_value): Adjust.
18779 (vr_values::compare_names): Likewise.
18780 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18781 Likewise.
18782 (vr_values::vrp_evaluate_conditional): Likewise.
18783 (find_case_label_ranges): Take a const value_range *.
18784 (vr_values::vrp_visit_switch_stmt): Adjust.
18785 (vr_values::extract_range_from_phi_node): Likewise.
18786 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18787 (vr_values::simplify_abs_using_ranges): Likewise.
18788 (test_for_singularity): Take a const value_range *.
18789 (range_fits_type_p): Likewise.
18790 (vr_values::simplify_cond_using_ranges_1): Adjust.
18791 (vr_values::simplify_cond_using_ranges_2): Likewise.
18792 (vr_values::simplify_switch_using_ranges): Likewise.
18793 (vr_values::simplify_float_conversion_usi): Likewise.
18794 (vr_values::two_valued_val_range_p): Likewise.
18795 * vr-values.h (vr_values::get_value_range): Return a const
18796 value_range *.
18797 (vr_values::set_def_to_varying): New.
18798 (vr_values::get_lattice_entry): New private method.
18799 (vr_values::get_vr_for_comparison): Return a const value_range *.
18800
18801 2019-07-25 Martin Liska <mliska@suse.cz>
18802 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18803
18804 PR c++/23383
18805 * common.opt: Add -fallocation-dce
18806 * gimple.c (gimple_call_operator_delete_p): New.
18807 * gimple.h (gimple_call_operator_delete_p): Likewise.
18808 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18809 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18810 DECL_IS_OPERATOR_DELETE_P.
18811 (mark_all_reaching_defs_necessary_1): Likewise.
18812 (propagate_necessity): Likewise.
18813 (eliminate_unnecessary_stmts): Handle
18814 gimple_call_operator_delete_p.
18815 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18816 Add packing of OPERATOR_DELETE.
18817 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18818 Similarly here.
18819 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18820 (DECL_SET_IS_OPERATOR_DELETE): New.
18821 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18822
18823 2019-07-25 Martin Liska <mliska@suse.cz>
18824
18825 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18826 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18827 * coverage.c (coverage_begin_function): Likewise.
18828 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18829 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18830 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18831 (sem_item::hash_referenced_symbol_properties): Likewise.
18832 * lto-streamer-out.c (hash_tree): Likewise.
18833 * predict.c (expr_expected_value_1): Likewise.
18834 * tree-inline.c (expand_call_inline): Likewise.
18835 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18836 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18837 * tree-core.h (enum function_decl_type): New enum.
18838 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18839 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18840 (set_function_decl_type): Likewise.
18841 (DECL_IS_OPERATOR_NEW_P): New.
18842 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18843 (DECL_LAMBDA_FUNCTION): Likewise.
18844 (DECL_LAMBDA_FUNCTION_P): Likewise.
18845 (DECL_IS_OPERATOR_NEW): Remove.
18846 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18847
18848 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18849
18850 * ipa-profile.c (get_most_common_single_value): Use
18851 get_nth_most_common_value.
18852 * profile.c (sort_hist_value): New function.
18853 (compute_value_histograms): Call sort_hist_value to sort the
18854 values after loading from disk.
18855 * value-prof.c (get_most_common_single_value): Rename to ...
18856 get_nth_most_common_value. Add input params n, return
18857 the n_th value and count.
18858 (gimple_divmod_fixed_value_transform): Use
18859 get_nth_most_common_value.
18860 (gimple_ic_transform): Likewise.
18861 (gimple_stringops_transform): Likewise.
18862 * value-prof.h (get_most_common_single_value): Add input params
18863 n, default to 0.
18864
18865 2019-07-25 Richard Biener <rguenther@suse.de>
18866
18867 PR tree-optimization/91236
18868 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18869 size of CONSTRUCTOR write. Fix buffer size we pass to
18870 native_encode_expr.
18871
18872 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18873
18874 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18875 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18876 r273773.
18877
18878 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18879
18880 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18881 explicitly disabled with --disable-initfini-array.
18882
18883 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18884
18885 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18886 if-exists.
18887
18888 2019-07-24 Martin Sebor <msebor@redhat.com>
18889
18890 PR tree-optimization/91183
18891 PR tree-optimization/86688
18892 * builtins.c (compute_objsize): Handle MEM_REF.
18893 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18894 (get_min_string_length): Remove.
18895 (count_nonzero_bytes): New function.
18896 (handle_char_store): Rename...
18897 (handle_store): to this. Handle multibyte stores via integer types.
18898 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18899 function name.
18900
18901 2019-07-24 Martin Sebor <msebor@redhat.com>
18902
18903 PR driver/80545
18904 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18905 (diagnostic_report_diagnostic): Same.
18906 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18907 (diagnostic_context::lang_mask): New data member.
18908 * ipa-pure-const.c (suggest_attribute): Use
18909 lang_hooks.option_lang_mask ().
18910 * opts-common.c (option_enabled): Handle new argument.
18911 (get_option_state): Pass an additional argument.
18912 * opts.c (print_filtered_help): Print supported languages for
18913 unsupported options. Adjust printing of current state.
18914 * opts.h (option_enabled): Add argument.
18915 * toplev.c (print_switch_values): Use lang_mask.
18916 (general_init): Set global_dc->lang_mask.
18917
18918 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18919
18920 PR bootstrap/87030
18921 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18922
18923 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18924
18925 * cgraphunit.c (symbol_table::compile): Start and stop
18926 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18927 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18928
18929 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18930
18931 * gimplify.c (flag_instrument_functions_exclude_p): Include
18932 namespace/class information in the printable name.
18933 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18934 to tokens entered into the vector.
18935
18936 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18937
18938 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18939 (get_static_chain): Call it instead of build_simple_mem_ref.
18940 (get_frame_field): Likewise.
18941 (get_nonlocal_debug_decl): Likewise.
18942 (convert_nonlocal_reference_op): Likewise.
18943
18944 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18945
18946 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18947 declaration.
18948 (arc_compute_frame_size): Millicode is disabled when compiling
18949 ISR.
18950 (arc_return_address_register): Likewise.
18951 (arc_compute_function_type): Likewise.
18952 (arc_compute_frame_size): Likewise.
18953 (secondary_reload_info): Likewise.
18954 (arc_get_unalign): Likewise.
18955 (arc_can_use_return_insn): Declare.
18956 * config/arc/arc.c (AUX_LP_START): Define
18957 (AUX_LP_END): Likewise.
18958 (arc_frame_info): Update gmask member to 64-bit datum.
18959 (GMASK_LEN): Update.
18960 (arc_compute_function_type): Make it static, move it forward.
18961 (arc_must_save_register): Update, consider the extra regs.
18962 (arc_compute_millicode_save_restore_regs): Update to use the 64
18963 bit gmask.
18964 (arc_compute_frame_size): Likewise.
18965 (arc_enter_leave_p): Likewise.
18966 (arc_save_callee_saves): Likewise.
18967 (arc_restore_callee_saves): Likewise.
18968 (arc_save_callee_enter): Likewise.
18969 (arc_restore_callee_leave): Likewise.
18970 (arc_save_callee_milli): Likewise.
18971 (arc_restore_callee_milli): Likewise.
18972 (arc_expand_prologue): Add new interrupt handling.
18973 (arc_return_address_register): Make it static, move it forward.
18974 (arc_expand_epilogue): Add new interrupt handling.
18975 (arc_get_unalign): Delete.
18976 (arc_epilogue_uses): Make sure we do not remove the extra
18977 saved/restored registers when interrupt.
18978 (arc_can_use_return_insn): New function.
18979 (push_reg): Likewise.
18980 (pop_reg): Likewise.
18981 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18982 procedures.
18983 (arc_restore_callee_saves): Likewise, but restoring.
18984 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18985 (R33_REG): Likewise.
18986 (R34_REG): Likewise.
18987 (R35_REG): Likewise.
18988 (R36_REG): Likewise.
18989 (R37_REG): Likewise.
18990 (R38_REG): Likewise.
18991 (R39_REG): Likewise.
18992 (R45_REG): Likewise.
18993 (R46_REG): Likewise.
18994 (R47_REG): Likewise.
18995 (R48_REG): Likewise.
18996 (R49_REG): Likewise.
18997 (R50_REG): Likewise.
18998 (R51_REG): Likewise.
18999 (R52_REG): Likewise.
19000 (R53_REG): Likewise.
19001 (R54_REG): Likewise.
19002 (R55_REG): Likewise.
19003 (R56_REG): Likewise.
19004 (R58_REG): Likewise.
19005 (type): Add rtie attribute.
19006 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
19007 (movsi_insn): Accept moves to lp_count.
19008 (rtie): Update pattern.
19009 (simple_return): Simplify it, don't use this pattern as a return
19010 from an interrupt.
19011 (arc600_rtie): New pattern.
19012 (p_return_i): Clean up.
19013 (return): Likewise.
19014 * config/arc/builtins.def (rtie): Only available for non ARC6xx
19015 family CPUs.
19016 * config/arc/predicates.md (move_src_operand): Consider lp_count
19017 as a register.
19018
19019 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
19020
19021 * config/s390/predicates.md (addv_const_operand): New predicate.
19022 * config/s390/s390-modes.def (CCO): New condition code mode.
19023 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
19024 (s390_branch_condition_mask): Likewise.
19025 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
19026 ("mulv<mode>4"): New expanders.
19027 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
19028 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
19029 pattern definitions.
19030
19031 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19032
19033 PR middle-end/91166
19034 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
19035 (define_predicates): Add entry for uniform_vector_p.
19036 (vec_same_elem_p): New match pattern.
19037
19038 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19039
19040 PR bootstrap/87030
19041 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
19042 * config/i386/darwin32-biarch.h .. to here.
19043 * config/i386/darwin64-biarch.h: Adjust comments.
19044 * config/rs6000/darwin32-biarch.h: Likewise.
19045 * config/rs6000/darwin64-biarch.h: Likewise.
19046 * config.gcc: Missed commit from r273746
19047 (*-*-darwin*): Don't include CPU t-darwin here.
19048 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19049 an error message if i686-darwin configuration is attempted for
19050 Darwin >= 18.
19051
19052 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
19053
19054 PR bootstrap/87030
19055 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
19056 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19057 an error message if i686-darwin configuration is attempted for
19058 Darwin >= 18.
19059 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
19060 (powerpc-*-darwin*): Use biarch files where needed.
19061 (powerpc64-*-darwin*): Likewise.
19062 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
19063 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19064 arch case.
19065 * config/i386/darwin32-biarch.h: New.
19066 * config/i386/darwin64.h: Rename.
19067 * config/i386/darwin64-biarch.h: To this.
19068 * config/i386/t-darwin: Rename.
19069 * config/i386/t-darwin32-biarch: To this.
19070 * config/i386/t-darwin64: Rename.
19071 * config/i386/t-darwin64-biarch: To this.
19072 * config/rs6000/darwin32-biarch.h: New.
19073 * config/rs6000/darwin64.h: Rename.
19074 * config/rs6000/darwin64-biarch.h: To this.
19075 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19076 arch case.
19077 * config/rs6000/t-darwin8: Rename.
19078 * config/rs6000/t-darwin32-biarch: To this.
19079 * config/rs6000/t-darwin64 Rename.
19080 * config/rs6000/t-darwin64-biarch: To this.
19081
19082 2019-07-23 Martin Sebor <msebor@redhat.com>
19083
19084 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
19085
19086 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19087
19088 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
19089 (rh): New alias for it.
19090
19091 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19092
19093 * gdbhooks.py: Pass replace=True to
19094 gdb.printing.register_pretty_printer.
19095
19096 2019-07-23 Richard Biener <rguenther@suse.de>
19097
19098 PR debug/91231
19099 * lto-streamer-in.c (input_function): Drop inline-entry markers
19100 that ended up with an unknown location block.
19101
19102 2019-07-23 Richard Biener <rguenther@suse.de>
19103
19104 PR tree-optimization/83518
19105 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
19106 init from a constant even when partial defs are already recorded.
19107
19108 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19109
19110 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
19111 * config/i386/znver1.md: Enable patterns for znver2 and add store
19112 variants which use extra AGU unit.
19113
19114 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19115
19116 * config/i386/i386-options.c (ix86_option_override_internal): Default
19117 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
19118 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
19119 for ZNVER2.
19120
19121 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19122
19123 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
19124 (znver2_costs): Update 256 bit SSE costs and multiplication.
19125
19126 2019-07-23 Jan Beulich <jbeulich@suse.com>
19127
19128 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
19129 Require only AVX512F.
19130 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
19131 alternative expanding to vpternlog.
19132
19133 2019-07-23 Martin Liska <mliska@suse.cz>
19134
19135 * dwarf2out.c (gen_producer_string): Canonize -flto=N
19136 to -flto in dwarf producer string.
19137
19138 2019-07-23 Richard Biener <rguenther@suse.de>
19139
19140 * tree-cfg.c (label_for_bb): Remove global var.
19141 (main_block_label): Take label_for_bb as argument.
19142 (cleanup_dead_labels_eh): Likewise, adjust.
19143 (cleanup_dead_labels): Adjust.
19144
19145 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19146
19147 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
19148 Configurations): Add documentation for __builtin_mtfsf.
19149
19150 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
19151
19152 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
19153 * config/riscv/riscv.c (riscv_constant_alignment): Use
19154 riscv_align_data_type.
19155 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
19156 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19157 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19158 * config/riscv/riscv.opt (malign-data): New.
19159 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
19160
19161 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
19162
19163 * cgraph.c (dump_graphviz): New function.
19164 * cgraph.h (dump_graphviz): New function.
19165 * symtab.c (dump_graphviz): New function.
19166
19167 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
19168
19169 * config/aarch64/aarch64-simd.md
19170 (*aarch64_simd_sra<mode>): New.
19171 * config/aarch64/iterators.md
19172 (SHIFTRT): New iterator.
19173 (sra_op): New attribute.
19174
19175 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19176
19177 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
19178 callee-saved regs R4->R10 in an interrupt function that calls another
19179 function.
19180
19181 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19182
19183 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
19184 (_mm_blendv_epi8): New.
19185
19186 2019-07-22 Richard Biener <rguenther@suse.de>
19187
19188 PR tree-optimization/91221
19189 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
19190 restrict partial-def handling of empty constructors and
19191 memset to refs with known offset.
19192
19193 2019-07-22 Jan Beulich <jbeulich@suse.com>
19194
19195 * config/i386/sse.md (ternlogsuffix): New.
19196 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
19197 AVX512F is in use.
19198 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
19199
19200 2019-07-22 Martin Liska <mliska@suse.cz>
19201
19202 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
19203 comment.
19204 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
19205
19206 2019-07-22 Martin Liska <mliska@suse.cz>
19207
19208 * lto-section-in.c (lto_get_section_data):
19209 Use new function get_compression.
19210 * lto-streamer-out.c (produce_lto_section): Use
19211 set_compression to encode compression algorithm.
19212 * lto-streamer.h (struct lto_section): Do not
19213 use bitfields in the format.
19214
19215 2019-07-22 Martin Liska <mliska@suse.cz>
19216
19217 PR driver/91172
19218 * opts-common.c (decode_cmdline_option): Decode
19219 argument of -Werror and check it for a wrong language.
19220 * opts-global.c (complain_wrong_lang): Remove such case.
19221
19222 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
19223
19224 * config/arc/arc.c (prepare_move_operands): Always use an
19225 intermediate register when storing a TLS symbols.
19226
19227 2019-07-22 Stafford Horne <shorne@gmail.com>
19228
19229 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
19230 force_reg.
19231
19232 2019-07-22 Stafford Horne <shorne@gmail.com>
19233
19234 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
19235 and munordered-float validations.
19236 * config/or1k/constraints.md (d): New register constraint.
19237 * config/or1k/predicates.md (fp_comparison_operator): New.
19238 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
19239 operands.
19240 (or1k_expand_compare): Normalize unordered comparisons.
19241 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
19242 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
19243 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
19244 * config/or1k/or1k.md (type): Add fpu.
19245 (fpu): New instruction reservation.
19246 (F, f, fr, fi, FI, FOP, fop): New.
19247 (<fop><F:mode>3): New ALU instruction definition.
19248 (float<fi><F:mode>2): New conversion instruction definition.
19249 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
19250 (fpcmpcc): New code iterator.
19251 (*sf_fp_insn): New instruction definition.
19252 (cstore<F:mode>4): New expand definition.
19253 (cbranch<F:mode>4): New expand definition.
19254 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
19255 munordered-float): New options.
19256 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
19257 munordered-float.
19258
19259 2019-07-22 Stafford Horne <shorne@gmail.com>
19260
19261 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
19262 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
19263 documenation to be more clear.
19264 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
19265 more clear.
19266 * config/or1k/or1k.opt (mrori): New option.
19267 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
19268 msfimm, mshftimm): Rewrite documentation to be more clear.
19269 * config/or1k/or1k.md (insn_support): Add ror and rori.
19270 (enabled): Add conditions for ror and rori.
19271 (rotrsi3): Replace condition for shftimm with ror and rori.
19272
19273 2019-07-22 Stafford Horne <shorne@gmail.com>
19274
19275 PR target/90363
19276 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
19277 (extend<mode>si2): Update predicate.
19278 * config/or1k/predicates.md (volatile_mem_operand): New.
19279 (reg_or_mem_operand): New.
19280
19281 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
19282
19283 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
19284 * config/rs6000/rs6000-call.c: ... to here.
19285
19286 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19287
19288 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
19289 memory.
19290
19291 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19292
19293 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
19294
19295 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19296
19297 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
19298
19299 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19300
19301 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
19302 (any_memory_operand): New predicate.
19303 (reg_or_mem_operand): Use it.
19304
19305 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19306
19307 PR target/91204
19308 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
19309
19310 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
19311
19312 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
19313 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
19314
19315 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19316
19317 * tree.def (OMP_LOOP): New tree code.
19318 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
19319 (enum omp_clause_bind_kind): New enum.
19320 (struct tree_omp_clause): Add subcode.bind_kind.
19321 * tree.h (OMP_LOOP_CHECK): Rename to ...
19322 (OMP_LOOPING_CHECK): ... this.
19323 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
19324 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
19325 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
19326 (OMP_CLAUSE_BIND_KIND): Define.
19327 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19328 bind clause entries.
19329 (walk_tree_1): Handle OMP_CLAUSE_BIND.
19330 * tree-pretty-print.c (dump_omp_clause): Likewise.
19331 (dump_generic_node): Handle OMP_LOOP.
19332 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
19333 (in_omp_construct): New variable.
19334 (is_gimple_stmt): Handle OMP_LOOP.
19335 (gimplify_scan_omp_clauses): For lastprivate don't set
19336 check_non_private if code == OMP_LOOP. For reduction clause
19337 on OMP_LOOP combined with parallel or teams propagate as shared
19338 on the combined construct. Handle OMP_CLAUSE_BIND.
19339 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
19340 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
19341 for constructs from a loop construct to gimplify_scan_omp_clauses.
19342 Don't predetermine iterator linear on OMP_SIMD from loop construct.
19343 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
19344 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
19345 to match the implicit ORT_TARGET construct around whole body.
19346 Temporarily clear in_omp_construct when processing body.
19347 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
19348 etc. temporarily set in_omp_construct when processing body.
19349 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
19350 * omp-low.c (struct omp_context): Add loop_p.
19351 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
19352 in that the original var might be private.
19353 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
19354 (check_omp_nesting_restrictions): Adjust nesting restrictions for
19355 addition of loop construct.
19356 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
19357
19358 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
19359 lastprivate non-addressable iterator of a collapse(1) simd.
19360
19361 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
19362
19363 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
19364 as in rs6000.c.
19365
19366 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
19367
19368 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
19369 refer to default conditions. Warn for the 'y' spec which is ignored
19370 by current linkers.
19371
19372 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
19373
19374 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19375 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19376 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19377 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19378 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19379 init_cumulative_args, rs6000_promote_function_mode,
19380 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19381 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19382 rs6000_function_arg_boundary, rs6000_parm_offset,
19383 rs6000_parm_start, rs6000_arg_size,
19384 rs6000_darwin64_record_arg_advance_flush,
19385 rs6000_darwin64_record_arg_advance_recurse,
19386 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19387 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19388 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19389 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19390 rs6000_finish_function_arg, rs6000_function_arg,
19391 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19392 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19393 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19394 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19395 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19396 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19397 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19398 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19399 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19400 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19401 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19402 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19403 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19404 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19405 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19406 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19407 get_element_number, altivec_expand_vec_set_builtin,
19408 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19409 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19410 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19411 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19412 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19413 rs6000_expand_builtin, rs6000_vector_type,
19414 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19415 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19416 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19417 to rs6000-call.c.
19418 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19419 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19420 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19421 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19422 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19423 init_cumulative_args, rs6000_promote_function_mode,
19424 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19425 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19426 rs6000_function_arg_boundary, rs6000_parm_offset,
19427 rs6000_parm_start, rs6000_arg_size,
19428 rs6000_darwin64_record_arg_advance_flush,
19429 rs6000_darwin64_record_arg_advance_recurse,
19430 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19431 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19432 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19433 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19434 rs6000_finish_function_arg, rs6000_function_arg,
19435 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19436 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19437 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19438 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19439 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19440 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19441 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19442 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19443 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19444 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19445 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19446 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19447 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19448 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19449 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19450 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19451 get_element_number, altivec_expand_vec_set_builtin,
19452 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19453 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19454 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19455 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19456 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19457 rs6000_expand_builtin, rs6000_vector_type,
19458 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19459 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19460 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19461 to here from rs6000.c.
19462 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19463 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19464 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19465 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19466 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19467 rs6000_return_in_memory, rs6000_return_in_msb,
19468 rs6000_pass_by_reference, setup_incoming_varargs,
19469 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19470 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19471 rs6000_function_arg_padding, rs6000_function_arg,
19472 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19473 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19474 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19475 rs6000_passes_long_double, rs6000_passes_vector,
19476 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19477 altivec_builtin_mask_for_load) Add declarations.
19478 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19479 * config/config.gcc: Add new source file rs6000-call.c to garbage
19480 collector and extra_objs.
19481
19482 2019-07-19 Jeff Law <law@redhat.com>
19483
19484 PR tree-optimization/86061
19485 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19486 strncpy. Drop some trivial dead code.
19487 (maybe_trim_memstar_call): Handle strncpy.
19488
19489 2019-07-19 Richard Biener <rguenther@suse.de>
19490
19491 PR tree-optimization/91211
19492 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19493 memset encoding size.
19494
19495 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19496
19497 PR target/91204
19498 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19499
19500 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19501
19502 PR ipa/91194
19503 * ipa-inline.c (recursive_inlining): Fix limits check.
19504
19505 2019-07-19 Richard Biener <rguenther@suse.de>
19506
19507 PR tree-optimization/91200
19508 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19509 no PHI nodes in middle-bb.
19510
19511 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19512
19513 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19514 to +sve-bitperm.
19515 * config/aarch64/aarch64-option-extensions.def: Likewise.
19516
19517 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19518
19519 PR middle-end/91190
19520 * function.c (insert_temp_slot_address): Store into the hash table
19521 a copy of address to avoid RTL sharing issues.
19522
19523 2019-07-19 Richard Biener <rguenther@suse.de>
19524
19525 PR tree-optimization/91207
19526 Revert
19527 2019-07-17 Richard Biener <rguenther@suse.de>
19528
19529 PR tree-optimization/91178
19530 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19531 loads with a gap larger than the vector size always use
19532 VMAT_STRIDED_SLP.
19533 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19534 avoid loading vectors that are only contained in the gap
19535 and thus are not needed.
19536
19537 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19538
19539 * config/i386/i386.md (*addqi_2_slp): Remove.
19540 (*<code>qi_2_slp): Ditto.
19541
19542 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19543
19544 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19545 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19546 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19547 Rename function from rs6000_prefixed_address.
19548 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19549 TARGET_HAS_TOC.
19550 (TARGET_TOC): Likewise.
19551 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19552 rs6000.h.
19553 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19554 TARGET_HAS_TOC.
19555 (TARGET_TOC): Likewise.
19556 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19557 rs6000.h.
19558 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19559 TARGET_HAS_TOC.
19560 (TARGET_TOC): Likewise.
19561 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19562 check to require -mcmodel=medium for pc-relative addressing.
19563 (create_TOC_reference): Add assertion for TARGET_TOC.
19564 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19565 TARGET_NO_TOC.
19566 (rs6000_emit_move): Likewise.
19567 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19568 to 'TOC_alias_set'.
19569 (get_TOC_alias_set): Likewise.
19570 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19571 TARGET_NO_TOC.
19572 (rs6000_can_eliminate): Likewise.
19573 (rs6000_prefixed_address_mode_p): Rename function from
19574 rs6000_prefixed_address.
19575 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19576 TARGET_HAS_TOC and not pc-relative.
19577 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19578 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19579 TARGET_HAS_TOC.
19580 (TARGET_TOC): Likewise.
19581 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19582 rs6000.h.
19583
19584 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19585
19586 PR target/91188
19587 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19588 for operand 0. Do not use (match_dup) to match operand 1 with
19589 operand 0. Add check in insn constraint that either input operand
19590 matches operand 0. Use SWI12 mode iterator to also handle
19591 HImode operands.
19592 (*and<mode>_1_slp): Ditto.
19593 (*<code>qi_1_slp): Ditto.
19594 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19595 Do not use (match_dup) to match operand 1 with operand 0. Add
19596 check in insn constraint that operand 1 matches operand 0.
19597 Use SWI12 mode iterator to also handle HImode operands.
19598 (*ashl<mode>3_1_slp): Ditto.
19599 (*<shift_insn><mode>3_1_slp): Ditto.
19600 (*<rotate_insn><mode>3_1_slp): Ditto.
19601
19602 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19603
19604 * config/arm/arm-builtins.c
19605 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19606 (arm_expand_unop_builtin): Likewise.
19607 * config/arm/crypto.md
19608 (crypto_sha1h): Convert from define_insn to define_expand.
19609 (crypto_<crypto_pattern>): Likewise.
19610 (crypto_sha1h_lb): New define_insn.
19611 (crypto_<crypto_pattern>_lb): Likewise.
19612
19613 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19614
19615 PR target/90317
19616 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19617 (vsha1cq_u32): Likewise.
19618 (vsha1pq_u32): Likewise.
19619 (vsha1mq_u32): Likewise.
19620 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19621 vec select.
19622 (crypto_sha1c): Correct vec select.
19623 (crypto_sha1m): Likewise.
19624 (crypto_sha1p): Likewise.
19625
19626 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19627
19628 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19629 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19630 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19631 (subdi_zesidi_zesidi): Likewise.
19632 (negdi2_compare, negdi2_insn): Likewise.
19633 (negdi_extensidi): Likewise.
19634 (negdi_zero_extendsidi): Likewise.
19635 (arm_cmpdi_insn): Likewise.
19636 (subsi3_carryin): Use arm_borrow_operation.
19637 (subsi3_carryin_const): Likewise.
19638 (subsi3_carryin_const0): Likewise.
19639 (subsi3_carryin_compare): Likewise.
19640 (subsi3_carryin_compare_const): Likewise.
19641 (subsi3_carryin_compare_const0): Likewise.
19642 (subsi3_carryin_shift): Likewise.
19643 (rsbsi3_carryin_shift): Likewise.
19644 (negsi2_carryin_compare): Likewise.
19645
19646 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19647
19648 PR tree-optimization/91137
19649 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19650 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19651 Init, use and fini the above new field.
19652 (determine_base_object_1): New function.
19653 (determine_base_object): Reimplement using walk_tree.
19654
19655 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19656
19657 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19658 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19659 CLEANUP_FORCE_FAST_DCE is set.
19660 * ifcvt.c (rest_of_handle_if_conversion): Pass
19661 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19662 if-conversion succeeded.
19663
19664 2019-07-18 Richard Biener <rguenther@suse.de>
19665
19666 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19667 branches to make code less indented.
19668
19669 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19670
19671 PR middle-end/81824
19672 * attribs.c (decls_mismatched_attributes): Simplify the logic
19673 that avoids duplicates and false positives.
19674
19675 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19676
19677 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19678 data into data section when generating PIC code.
19679 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19680 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19681 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19682 return 2 for SOM and 0 for other targets.
19683
19684 2019-07-17 Jeff Law <law@redhat.com>
19685
19686 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19687 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19688 avoid unexpected switch statement fallthru.
19689
19690 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19691
19692 * config/i386/i386.md (*add<dwi>3_doubleword):
19693 Remove redundant constraints.
19694 (*add<mode>_1): Ditto.
19695 (*addhi_1): Ditto.
19696 (*addqi_1): Ditto.
19697 (*addqi_1_slp): Ditto.
19698 (*add<mode>_2): Ditto.
19699 (*addv<mode>4): Ditto.
19700 (*sub<dwi>3_doubleword): Ditto.
19701 (*sub<mode>_1): Ditto.
19702 (*subqi_1_slp): Ditto.
19703 (*sub<mode>_2): Ditto.
19704 (*subv<mode>4): Ditto.
19705 (*sub<mode>_3): Ditto.
19706 (@add<mode>3_carry): Ditto.
19707 (@sub<mode>3_carry): Ditto.
19708 (*add<mode>3_cc_overflow_1): Ditto.
19709 (*add<mode>3_zext_cc_overflow_2): Ditto.
19710 (*anddi_1): Ditto.
19711 (*and<mode>_1): Ditto.
19712 (*andqi_1): Ditto.
19713 (*andqi_1_slp): Ditto.
19714 (*anddi_2): Ditto.
19715 (*andqi_2_maybe_si): Ditto.
19716 (*and<mode>_2): Ditto.
19717 (*andqi_2_slp): Ditto.
19718 (*<code><mode>_1): Ditto.
19719 (*<code>qi_1): Ditto.
19720 (*<code>qi_1_slp): Ditto.
19721 (*<code><mode>_2): Ditto.
19722 (*<code>qi_2_slp): Ditto.
19723
19724 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19725
19726 * alias.c (record_component_aliases): Do not simplify pointed-to
19727 types of ODR types.
19728
19729 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19730
19731 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19732 partial reg stall on alternative 2.
19733
19734 2019-07-17 Richard Biener <rguenther@suse.de>
19735
19736 PR tree-optimization/91178
19737 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19738 lower SSA names to avoid quadratic behavior in the common case.
19739 * tree-data-ref.c (split_constant_offset): Add limit argument
19740 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19741 (split_constant_offset_1): Add limit argument and use it to
19742 limit SSA def walking. Optimize the common plus/minus case.
19743
19744 2019-07-17 Richard Biener <rguenther@suse.de>
19745
19746 PR tree-optimization/91178
19747 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19748 loads with a gap larger than the vector size always use
19749 VMAT_STRIDED_SLP.
19750 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19751 avoid loading vectors that are only contained in the gap
19752 and thus are not needed.
19753
19754 2019-07-17 Richard Biener <rguenther@suse.de>
19755
19756 PR tree-optimization/91180
19757 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19758 computation for memset partial defs.
19759
19760 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19761
19762 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19763 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19764 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19765 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19766 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19767 * omp-grid.c (grid_process_grid_body,
19768 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19769 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19770 == GF_OMP_FOR_KIND_SIMD.
19771 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19772 check_omp_nesting_restrictions, scan_omp_1_stmt,
19773 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19774 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19775 omp_find_scan): Likewise.
19776 * omp-expand.c (expand_omp_for): Likewise.
19777 * omp-general.c (omp_extract_for_data): Likewise.
19778
19779 PR tree-optimization/91157
19780 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19781 a vector boolean with scalar mode.
19782 (expand_vector_condition): Handle first operand being a vector boolean
19783 with scalar mode.
19784 (expand_vector_operations_1): For comparisons, don't bail out early
19785 if the return type is vector boolean with scalar mode, but comparison
19786 operand type is not.
19787
19788 2019-07-17 Richard Biener <rguenther@suse.de>
19789
19790 PR tree-optimization/91181
19791 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19792 IFN_LOADs as calls.
19793
19794 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19795
19796 * config/i386/i386.md (*testdi_1): Match CCZmode for
19797 constants that might have the SImode sign bit set.
19798 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19799 Use correct constraints for pentium pairing.
19800 (*test<mode>_1): Ditto.
19801
19802 2019-07-16 Jeff Law <law@redhat.com>
19803
19804 PR rtl-optimization/91173
19805 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19806 SSA_NAME with a constant value, fold its value into the offset
19807 and clear the base before calling gen_addr_rtx.
19808
19809 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19810
19811 PR rtl-optimization/91164
19812 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19813 invalidate dominance info.
19814
19815 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19816
19817 * read-md.h (md_reader::record_potential_iterator_use): Add a
19818 file_location parameter.
19819 * read-rtl.c (attribute_use::loc): New field.
19820 (map_attr_string): Take a file_location parameter. Report cases
19821 in which attributes map to multiple distinct values.
19822 (apply_attribute_uses): Update call accordingly.
19823 (md_reader::handle_overloaded_name): Likewise.
19824 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19825 nonnull strings.
19826 (record_attribute_use): Take a file_location parameter.
19827 Initialize attribute_use::loc.
19828 (md_reader::record_potential_iterator_use): Take a file_location
19829 parameter. Update call to record_attribute_use.
19830 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19831 (rtx_reader::read_rtx_code): Likewise.
19832 (rtx_reader::read_rtx_operand): Likewise. Record a location
19833 for implicitly-expanded empty strings.
19834
19835 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19836
19837 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19838 Use file_location instead of separate fields.
19839 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19840 separate filename and line number.
19841 * read-md.c (ptr_loc): As above.
19842 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19843 (md_reader::fprint_md_ptr_loc): Likewise.
19844 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19845 instead of a separate filename and line number.
19846 (md_reader::read_string): Update call accordingly.
19847
19848 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19849
19850 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19851 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19852 leaving the choice between SFDF and P implicit.
19853 (*mov<mode>_update2): Likewise.
19854 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19855 rather than leaving the choice betweem IBM128 and GPR implicit.
19856 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19857 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19858 QHSI implicit.
19859 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19860 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19861 * config/rs6000/vsx.md
19862 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19863 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19864 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19865 and VSX_EXTRACT_I implicit.
19866
19867 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19868
19869 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19870 Explicitly use <MOVEP1:MODE> for the mode attribute.
19871
19872 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19873
19874 PR bootstrap/91176
19875 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19876
19877 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19878
19879 PR target/91050
19880 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19881 .machine directive.
19882
19883 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19884
19885 * config/i386/i386.md (@test<mode>_ccno_1):
19886 Rename from test<mode>_ccno_1.
19887 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19888 (*testqi_1_maybe_si): Remove modrm attribute.
19889 (*test<mode>_1): Ditto.
19890 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19891 gen_test_ccno_1 and gen_extend_insn.
19892
19893 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19894
19895 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19896 to 0.
19897
19898 2019-07-15 Richard Biener <rguenther@suse.de>
19899
19900 PR middle-end/91162
19901 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19902 node make sure to replace all uses with something valid.
19903
19904 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19905
19906 PR tree-optimization/88497
19907 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19908 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19909 function undistribute_bitref_for_vector.
19910 (undistribute_bitref_for_vector): New function.
19911 (cleanup_vinfo_map): Likewise.
19912 (sort_by_mach_mode): Likewise.
19913
19914 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19915
19916 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19917 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19918 and testdi_ccno_1 using SWI48 mode attribute.
19919 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19920 x86_64_szext_general_operand.
19921 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19922 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19923 instead of genera_operand mode attribute.
19924
19925 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19926
19927 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19928 fopen and fclose to their respective types.
19929 (DotFn.invoke): Ditto.
19930
19931 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19932
19933 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19934 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19935 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19936 (array_index_predicate): Remove.
19937 (analyze_function_body): Account cost for variable ofsetted array
19938 indexing.
19939 (estimate_node_size_and_time): Do not compute array index hint.
19940 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19941 (inline_read_section): Do not read array index hint.
19942 (ipa_fn_summary_write): Do not write array index hint.
19943 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19944 * ipa-cp.c (hint_time_bonus): Remove.
19945 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19946 (ipa_fnsummary): Remove array_index.
19947 * ipa-inline.c (want_inline_small_function_p): Do not use
19948 array_index.
19949 (edge_badness): Likewise.
19950 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19951
19952 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19953
19954 PR target/91148
19955 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19956 superfluous "builtin function" phrasing.
19957
19958 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19959
19960 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19961 Break out from ...
19962 (aliasing_component_refs_walk): Break out from ...
19963 (aliasing_component_refs_p): ... here.
19964
19965 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19966
19967 PR target/91148
19968 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19969 "builtin function" phrasing.
19970
19971 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19972
19973 PR target/90723
19974 * recog.h (temporary_volatile_ok): New class.
19975 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19976 volatile_ok temporarily to true using temporary_volatile_ok.
19977 * expr.c (emit_block_move_via_cpymem): Likewise.
19978 * optabs.c (maybe_legitimize_operand): Likewise.
19979
19980 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19981
19982 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19983 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19984 uses inside of order(concurrent) constructs.
19985 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19986 OMP_CLAUSE_ORDER is seen.
19987 * omp-low.c (struct omp_context): Add order_concurrent member.
19988 (scan_sharing_clauses): Set ctx->order_concurrent if
19989 OMP_CLAUSE_ORDER is seen.
19990 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19991 of simd order(concurrent). Diagnose constructs not allowed inside of
19992 for order(concurrent).
19993 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19994 complaining about static double setjmp (double); or class static
19995 methods or non-global namespace setjmps.
19996 (omp_runtime_api_call): New function.
19997 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19998 order(concurrent) loops.
19999
20000 2019-07-12 Martin Sebor <msebor@redhat.com>
20001
20002 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
20003 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
20004 * tree-vrp.c (vrp_prop::check_mem_ref): Use
20005 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
20006
20007 2019-07-12 Jan Hubicka <jh@suse.cz>
20008
20009 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
20010 (indirect_refs_may_alias_p): ... here.
20011 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
20012 mem refs in the access paths.
20013
20014 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
20015
20016 PR tree-optimization/89430
20017 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
20018 store elimination for local variable without address escape.
20019
20020 2019-07-12 Jeff Law <law@redhat.com>
20021
20022 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
20023 for the ".far" section.
20024
20025 2019-07-12 Richard Biener <rguenther@suse.de>
20026
20027 PR tree-optimization/91145
20028 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
20029 chain check.
20030
20031 2019-07-12 Alexandre Oliva <oliva@adacore.com>
20032
20033 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
20034 rather than this_state as the lowering context for the ELSE
20035 seq in a GIMPLE_EH_ELSE.
20036
20037 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20038
20039 * vector-builder.h (vector_builder::elt): Allow already-supplied
20040 elements to be read back before building is complete.
20041
20042 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20043
20044 PR rtl-optimization/91136
20045 * df-core.c (ACCESSING REFS): Fix typos in comment.
20046 * resource.c (mark_target_live_reg): Add artificial defs that occur at
20047 the beginning of the block to the initial set of live registers.
20048
20049 2019-07-12 Richard Biener <rguenther@suse.de>
20050
20051 * fold-const.h (get_array_ctor_element_at_index): Adjust.
20052 * fold-const.c (get_array_ctor_element_at_index): Add
20053 ctor_idx output parameter informing the caller where in
20054 the constructor the element was (not) found. Add early exit
20055 for when the ctor is sorted.
20056 * gimple-fold.c (fold_array_ctor_reference): Support constant
20057 folding across multiple array elements.
20058
20059 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20060
20061 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
20062 doesn't have location, set the current location to the function's end.
20063
20064 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20065
20066 * config/aarch64/aarch64.md (*compare_condjump<mode>)
20067 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
20068 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
20069 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
20070 * config/aarch64/aarch64-simd.md
20071 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
20072 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
20073 * config/aarch64/aarch64-sve.md
20074 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
20075 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
20076
20077 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20078
20079 * doc/md.texi: Document that @ patterns can have different
20080 numbers of operands.
20081 * genemit.c (handle_overloaded_gen): Handle this case.
20082 * genopinit.c (handle_overloaded_gen): Likewise.
20083 * gensupport.c (replace_operands_with_dups): Iterate over
20084 the new rtx's format rather than the old one's.
20085
20086 2019-07-12 Jakub Jelinek <jakub@redhat.com>
20087
20088 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
20089 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
20090 order clause entries.
20091 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
20092 * tree-pretty-print.c (dump_omp_clause): Likewise.
20093 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
20094 Likewise.
20095 * omp-low.c (scan_sharing_clauses): Likewise.
20096 * tree-nested.c (convert_nonlocal_omp_clauses,
20097 convert_local_omp_clauses): Likewise.
20098
20099 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
20100
20101 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
20102 fallthrough target of current basic block isn't the placed
20103 right next.
20104
20105 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
20106
20107 PR target/90980
20108 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
20109 (_mm512_storeu_epi64): Likewise.
20110 (_mm512_loadu_epi32): Likewise.
20111 (_mm512_storeu_epi32): Likewise.
20112 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
20113 (_mm_storeu_epi64): Likewise.
20114 (_mm256_storeu_epi32): Likewise.
20115 (_mm_storeu_epi32): Likewise.
20116
20117 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20118
20119 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
20120
20121 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20122
20123 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
20124 Handle Modula-2.
20125
20126 2019-07-11 Jakub Jelinek <jakub@redhat.com>
20127
20128 PR target/91124
20129 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
20130 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20131 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
20132 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
20133 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
20134 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
20135 define_insns.
20136 (ufix_truncv2dfv2si2<mask_name>): Change into ...
20137 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
20138 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
20139 define_insns.
20140 (sse2_cvttpd2dq<mask_name>): Change into ...
20141 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
20142 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
20143 (*sse2_cvtpd2dq<mask_name>): Change into ...
20144 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20145 Add "C" constraint to const0_operand.
20146 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
20147 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
20148 changes.
20149
20150 PR target/91124
20151 * config/i386/i386-builtin-types.def
20152 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
20153 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
20154 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
20155 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
20156 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
20157 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
20158 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
20159 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
20160 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
20161 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
20162 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
20163 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
20164 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
20165 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
20166 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
20167 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
20168 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
20169 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
20170 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
20171 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
20172 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
20173 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
20174 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
20175 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
20176 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
20177 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
20178 __builtin_ia32_vpdpbusd_v4si_maskz,
20179 __builtin_ia32_vpdpbusds_v16si_mask,
20180 __builtin_ia32_vpdpbusds_v16si_maskz,
20181 __builtin_ia32_vpdpbusds_v8si_mask,
20182 __builtin_ia32_vpdpbusds_v8si_maskz,
20183 __builtin_ia32_vpdpbusds_v4si_mask,
20184 __builtin_ia32_vpdpbusds_v4si_maskz,
20185 __builtin_ia32_vpdpwssd_v16si_mask,
20186 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
20187 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
20188 __builtin_ia32_vpdpwssd_v4si_maskz,
20189 __builtin_ia32_vpdpwssds_v16si_mask,
20190 __builtin_ia32_vpdpwssds_v16si_maskz,
20191 __builtin_ia32_vpdpwssds_v8si_mask,
20192 __builtin_ia32_vpdpwssds_v8si_maskz,
20193 __builtin_ia32_vpdpwssds_v4si_mask,
20194 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
20195 suffixed types rather than *_INT.
20196 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
20197 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
20198 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
20199 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
20200 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
20201 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
20202
20203 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
20204
20205 * tree-vrp.c (intersect_ranges): If we know the intersection is
20206 empty, there is no need to conservatively add anything else to
20207 the set.
20208
20209 2019-07-11 Richard Biener <rguenther@suse.de>
20210
20211 PR middle-end/91131
20212 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
20213 when the object is volatile and we have not cleared it even though
20214 there are no nonzero elements.
20215
20216 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
20217
20218 * config/rs6000/predicates.md (cint34_operand): Update
20219 SIGNED_34BIT_OFFSET_P call.
20220 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
20221 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
20222 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
20223 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
20224 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
20225 argument.
20226 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
20227 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
20228 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
20229 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
20230 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
20231
20232 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
20233
20234 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
20235 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
20236 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
20237 (DEF_MIN_OSX_VERSION): New.
20238
20239 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20240
20241 * fold-const.c (fold_relational_const): Fix folding of
20242 vector-to-scalar NE_EXPRs.
20243 (test_vector_folding): Add more tests.
20244
20245 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20246
20247 PR target/91060
20248 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
20249 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
20250 (vec_setv2di_internal): Reexpress as...
20251 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
20252 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
20253 rather than gen_neon_vset_lane<mode>.
20254
20255 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
20256
20257 PR target/91102
20258 * lra-constraints.c (process_alt_operands): Don't match user
20259 defined regs only if they are early clobbers.
20260
20261 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
20262
20263 * wide-int.h (wi::lshift): Reject negative values for the fast path.
20264
20265 2019-07-10 Richard Biener <rguenther@suse.de>
20266
20267 PR tree-optimization/91126
20268 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
20269 native encoding offset for BYTES_BIG_ENDIAN.
20270 (vn_reference_lookup_3): Likewise.
20271
20272 2019-07-10 Richard Biener <rguenther@suse.de>
20273
20274 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
20275 LHS whenever possible.
20276
20277 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
20278
20279 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
20280 from ...; work also on duplicated types.
20281 (nonoverlapping_component_refs_since_match): ... here
20282 (ncr_type_uid): Break out from ...
20283 (ncr_compar): ... here; look for TYPE_UID of canonical type if
20284 available.
20285 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
20286 the types and nonoverlapping_component_refs_p_1 to disambiguate.
20287
20288 2019-07-09 Martin Sebor <msebor@redhat.com>
20289
20290 PR tree-optimization/90989
20291 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
20292 optimization to just single character stores.
20293
20294 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
20295
20296 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
20297 Swap operands only once.
20298
20299 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
20300
20301 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
20302 for both call instructions.
20303
20304 2019-07-09 John Darrington <john@darrington.wattle.id.au>
20305
20306 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
20307 rather than GET_MODE_BITSIZE to better handle partial integer modes.
20308
20309 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
20310
20311 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
20312 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
20313 function from rs6000-logue.c back to rs6000.c.
20314 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
20315
20316 2019-07-09 Martin Sebor <msebor@redhat.com>
20317
20318 PR c++/61339
20319 * auto-profile.c: Change class-key of PODs to struct and others
20320 to class.
20321 * basic-block.h: Same.
20322 * bitmap.c (bitmap_alloc): Same.
20323 * bitmap.h: Same.
20324 * builtins.c (expand_builtin_prefetch): Same.
20325 (expand_builtin_interclass_mathfn): Same.
20326 (expand_builtin_strlen): Same.
20327 (expand_builtin_mempcpy_args): Same.
20328 (expand_cmpstr): Same.
20329 (expand_builtin___clear_cache): Same.
20330 (expand_ifn_atomic_bit_test_and): Same.
20331 (expand_builtin_thread_pointer): Same.
20332 (expand_builtin_set_thread_pointer): Same.
20333 * caller-save.c (setup_save_areas): Same.
20334 (replace_reg_with_saved_mem): Same.
20335 (insert_restore): Same.
20336 (insert_save): Same.
20337 (add_used_regs): Same.
20338 * cfg.c (get_bb_copy): Same.
20339 (set_loop_copy): Same.
20340 * cfg.h: Same.
20341 * cfganal.h: Same.
20342 * cfgexpand.c (alloc_stack_frame_space): Same.
20343 (add_stack_var): Same.
20344 (add_stack_var_conflict): Same.
20345 (add_scope_conflicts_1): Same.
20346 (update_alias_info_with_stack_vars): Same.
20347 (expand_used_vars): Same.
20348 * cfghooks.c (redirect_edge_and_branch_force): Same.
20349 (delete_basic_block): Same.
20350 (split_edge): Same.
20351 (make_forwarder_block): Same.
20352 (force_nonfallthru): Same.
20353 (duplicate_block): Same.
20354 (lv_flush_pending_stmts): Same.
20355 * cfghooks.h: Same.
20356 * cfgloop.c (flow_loops_cfg_dump): Same.
20357 (flow_loop_nested_p): Same.
20358 (superloop_at_depth): Same.
20359 (get_loop_latch_edges): Same.
20360 (flow_loop_dump): Same.
20361 (flow_loops_dump): Same.
20362 (flow_loops_free): Same.
20363 (flow_loop_nodes_find): Same.
20364 (establish_preds): Same.
20365 (flow_loop_tree_node_add): Same.
20366 (flow_loop_tree_node_remove): Same.
20367 (flow_loops_find): Same.
20368 (find_subloop_latch_edge_by_profile): Same.
20369 (find_subloop_latch_edge_by_ivs): Same.
20370 (mfb_redirect_edges_in_set): Same.
20371 (form_subloop): Same.
20372 (merge_latch_edges): Same.
20373 (disambiguate_multiple_latches): Same.
20374 (disambiguate_loops_with_multiple_latches): Same.
20375 (flow_bb_inside_loop_p): Same.
20376 (glb_enum_p): Same.
20377 (get_loop_body_with_size): Same.
20378 (get_loop_body): Same.
20379 (fill_sons_in_loop): Same.
20380 (get_loop_body_in_dom_order): Same.
20381 (get_loop_body_in_custom_order): Same.
20382 (release_recorded_exits): Same.
20383 (get_loop_exit_edges): Same.
20384 (num_loop_branches): Same.
20385 (remove_bb_from_loops): Same.
20386 (find_common_loop): Same.
20387 (delete_loop): Same.
20388 (cancel_loop): Same.
20389 (verify_loop_structure): Same.
20390 (loop_preheader_edge): Same.
20391 (loop_exit_edge_p): Same.
20392 (single_exit): Same.
20393 (loop_exits_to_bb_p): Same.
20394 (loop_exits_from_bb_p): Same.
20395 (get_loop_location): Same.
20396 (record_niter_bound): Same.
20397 (get_estimated_loop_iterations_int): Same.
20398 (max_stmt_executions_int): Same.
20399 (likely_max_stmt_executions_int): Same.
20400 (get_estimated_loop_iterations): Same.
20401 (get_max_loop_iterations): Same.
20402 (get_max_loop_iterations_int): Same.
20403 (get_likely_max_loop_iterations): Same.
20404 * cfgloop.h (simple_loop_desc): Same.
20405 (get_loop): Same.
20406 (loop_depth): Same.
20407 (loop_outer): Same.
20408 (loop_iterator::next): Same.
20409 (loop_outermost): Same.
20410 * cfgloopanal.c (mark_irreducible_loops): Same.
20411 (num_loop_insns): Same.
20412 (average_num_loop_insns): Same.
20413 (expected_loop_iterations_unbounded): Same.
20414 (expected_loop_iterations): Same.
20415 (mark_loop_exit_edges): Same.
20416 (single_likely_exit): Same.
20417 * cfgloopmanip.c (fix_bb_placement): Same.
20418 (fix_bb_placements): Same.
20419 (remove_path): Same.
20420 (place_new_loop): Same.
20421 (add_loop): Same.
20422 (scale_loop_frequencies): Same.
20423 (scale_loop_profile): Same.
20424 (create_empty_if_region_on_edge): Same.
20425 (create_empty_loop_on_edge): Same.
20426 (loopify): Same.
20427 (unloop): Same.
20428 (fix_loop_placements): Same.
20429 (copy_loop_info): Same.
20430 (duplicate_loop): Same.
20431 (duplicate_subloops): Same.
20432 (loop_redirect_edge): Same.
20433 (can_duplicate_loop_p): Same.
20434 (duplicate_loop_to_header_edge): Same.
20435 (mfb_keep_just): Same.
20436 (has_preds_from_loop): Same.
20437 (create_preheader): Same.
20438 (create_preheaders): Same.
20439 (lv_adjust_loop_entry_edge): Same.
20440 (loop_version): Same.
20441 * cfgloopmanip.h: Same.
20442 * cgraph.h: Same.
20443 * cgraphbuild.c: Same.
20444 * combine.c (make_extraction): Same.
20445 * config/i386/i386-features.c: Same.
20446 * config/i386/i386-features.h: Same.
20447 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20448 (ix86_emit_outlined_ms2sysv_restore): Same.
20449 (ix86_noce_conversion_profitable_p): Same.
20450 (ix86_init_cost): Same.
20451 (ix86_simd_clone_usable): Same.
20452 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20453 Wstruct-not-pod.
20454 * coretypes.h: Same.
20455 * data-streamer-in.c (string_for_index): Change class-key of PODs
20456 to struct and others to class.
20457 (streamer_read_indexed_string): Same.
20458 (streamer_read_string): Same.
20459 (bp_unpack_indexed_string): Same.
20460 (bp_unpack_string): Same.
20461 (streamer_read_uhwi): Same.
20462 (streamer_read_hwi): Same.
20463 (streamer_read_gcov_count): Same.
20464 (streamer_read_wide_int): Same.
20465 * data-streamer.h (streamer_write_bitpack): Same.
20466 (bp_unpack_value): Same.
20467 (streamer_write_char_stream): Same.
20468 (streamer_write_hwi_in_range): Same.
20469 (streamer_write_record_start): Same.
20470 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20471 (add_cross_iteration_register_deps): Same.
20472 (build_intra_loop_deps): Same.
20473 * df-core.c (df_analyze): Same.
20474 (loop_post_order_compute): Same.
20475 (loop_inverted_post_order_compute): Same.
20476 * df-problems.c (df_rd_alloc): Same.
20477 (df_rd_simulate_one_insn): Same.
20478 (df_rd_local_compute): Same.
20479 (df_rd_init_solution): Same.
20480 (df_rd_confluence_n): Same.
20481 (df_rd_transfer_function): Same.
20482 (df_rd_free): Same.
20483 (df_rd_dump_defs_set): Same.
20484 (df_rd_top_dump): Same.
20485 (df_lr_alloc): Same.
20486 (df_lr_reset): Same.
20487 (df_lr_local_compute): Same.
20488 (df_lr_init): Same.
20489 (df_lr_confluence_n): Same.
20490 (df_lr_free): Same.
20491 (df_lr_top_dump): Same.
20492 (df_lr_verify_transfer_functions): Same.
20493 (df_live_alloc): Same.
20494 (df_live_reset): Same.
20495 (df_live_init): Same.
20496 (df_live_confluence_n): Same.
20497 (df_live_finalize): Same.
20498 (df_live_free): Same.
20499 (df_live_top_dump): Same.
20500 (df_live_verify_transfer_functions): Same.
20501 (df_mir_alloc): Same.
20502 (df_mir_reset): Same.
20503 (df_mir_init): Same.
20504 (df_mir_confluence_n): Same.
20505 (df_mir_free): Same.
20506 (df_mir_top_dump): Same.
20507 (df_word_lr_alloc): Same.
20508 (df_word_lr_reset): Same.
20509 (df_word_lr_init): Same.
20510 (df_word_lr_confluence_n): Same.
20511 (df_word_lr_free): Same.
20512 (df_word_lr_top_dump): Same.
20513 (df_md_alloc): Same.
20514 (df_md_simulate_one_insn): Same.
20515 (df_md_reset): Same.
20516 (df_md_init): Same.
20517 (df_md_free): Same.
20518 (df_md_top_dump): Same.
20519 * df-scan.c (df_insn_delete): Same.
20520 (df_insn_rescan): Same.
20521 (df_notes_rescan): Same.
20522 (df_sort_and_compress_mws): Same.
20523 (df_install_mws): Same.
20524 (df_refs_add_to_chains): Same.
20525 (df_ref_create_structure): Same.
20526 (df_ref_record): Same.
20527 (df_def_record_1): Same.
20528 (df_find_hard_reg_defs): Same.
20529 (df_uses_record): Same.
20530 (df_get_conditional_uses): Same.
20531 (df_get_call_refs): Same.
20532 (df_recompute_luids): Same.
20533 (df_get_entry_block_def_set): Same.
20534 (df_entry_block_defs_collect): Same.
20535 (df_get_exit_block_use_set): Same.
20536 (df_exit_block_uses_collect): Same.
20537 (df_mws_verify): Same.
20538 (df_bb_verify): Same.
20539 * df.h (df_scan_get_bb_info): Same.
20540 * doc/tm.texi: Same.
20541 * dse.c (record_store): Same.
20542 * dumpfile.h: Same.
20543 * emit-rtl.c (const_fixed_hasher::equal): Same.
20544 (set_mem_attributes_minus_bitpos): Same.
20545 (change_address): Same.
20546 (adjust_address_1): Same.
20547 (offset_address): Same.
20548 * emit-rtl.h: Same.
20549 * except.c (dw2_build_landing_pads): Same.
20550 (sjlj_emit_dispatch_table): Same.
20551 * explow.c (allocate_dynamic_stack_space): Same.
20552 (emit_stack_probe): Same.
20553 (probe_stack_range): Same.
20554 * expmed.c (store_bit_field_using_insv): Same.
20555 (store_bit_field_1): Same.
20556 (store_integral_bit_field): Same.
20557 (extract_bit_field_using_extv): Same.
20558 (extract_bit_field_1): Same.
20559 (emit_cstore): Same.
20560 * expr.c (emit_block_move_via_cpymem): Same.
20561 (expand_cmpstrn_or_cmpmem): Same.
20562 (set_storage_via_setmem): Same.
20563 (emit_single_push_insn_1): Same.
20564 (expand_assignment): Same.
20565 (store_constructor): Same.
20566 (expand_expr_real_2): Same.
20567 (expand_expr_real_1): Same.
20568 (try_casesi): Same.
20569 * flags.h: Same.
20570 * function.c (try_fit_stack_local): Same.
20571 (assign_stack_local_1): Same.
20572 (assign_stack_local): Same.
20573 (cut_slot_from_list): Same.
20574 (insert_slot_to_list): Same.
20575 (max_slot_level): Same.
20576 (move_slot_to_level): Same.
20577 (temp_address_hasher::equal): Same.
20578 (remove_unused_temp_slot_addresses): Same.
20579 (assign_temp): Same.
20580 (combine_temp_slots): Same.
20581 (update_temp_slot_address): Same.
20582 (preserve_temp_slots): Same.
20583 * function.h: Same.
20584 * fwprop.c: Same.
20585 * gcc-rich-location.h: Same.
20586 * gcov.c: Same.
20587 * genattrtab.c (check_attr_test): Same.
20588 (check_attr_value): Same.
20589 (convert_set_attr_alternative): Same.
20590 (convert_set_attr): Same.
20591 (check_defs): Same.
20592 (copy_boolean): Same.
20593 (get_attr_value): Same.
20594 (expand_delays): Same.
20595 (make_length_attrs): Same.
20596 (min_fn): Same.
20597 (make_alternative_compare): Same.
20598 (simplify_test_exp): Same.
20599 (tests_attr_p): Same.
20600 (get_attr_order): Same.
20601 (clear_struct_flag): Same.
20602 (gen_attr): Same.
20603 (compares_alternatives_p): Same.
20604 (gen_insn): Same.
20605 (gen_delay): Same.
20606 (find_attrs_to_cache): Same.
20607 (write_test_expr): Same.
20608 (walk_attr_value): Same.
20609 (write_attr_get): Same.
20610 (eliminate_known_true): Same.
20611 (write_insn_cases): Same.
20612 (write_attr_case): Same.
20613 (write_attr_valueq): Same.
20614 (write_attr_value): Same.
20615 (write_dummy_eligible_delay): Same.
20616 (next_comma_elt): Same.
20617 (find_attr): Same.
20618 (make_internal_attr): Same.
20619 (copy_rtx_unchanging): Same.
20620 (gen_insn_reserv): Same.
20621 (check_tune_attr): Same.
20622 (make_automaton_attrs): Same.
20623 (handle_arg): Same.
20624 * genextract.c (gen_insn): Same.
20625 (VEC_char_to_string): Same.
20626 * genmatch.c (print_operand): Same.
20627 (lower): Same.
20628 (parser::parse_operation): Same.
20629 (parser::parse_capture): Same.
20630 (parser::parse_c_expr): Same.
20631 (parser::parse_simplify): Same.
20632 (main): Same.
20633 * genoutput.c (output_operand_data): Same.
20634 (output_get_insn_name): Same.
20635 (compare_operands): Same.
20636 (place_operands): Same.
20637 (process_template): Same.
20638 (validate_insn_alternatives): Same.
20639 (validate_insn_operands): Same.
20640 (gen_expand): Same.
20641 (note_constraint): Same.
20642 * genpreds.c (write_one_predicate_function): Same.
20643 (add_constraint): Same.
20644 (process_define_register_constraint): Same.
20645 (write_lookup_constraint_1): Same.
20646 (write_lookup_constraint_array): Same.
20647 (write_insn_constraint_len): Same.
20648 (write_reg_class_for_constraint_1): Same.
20649 (write_constraint_satisfied_p_array): Same.
20650 * genrecog.c (optimize_subroutine_group): Same.
20651 * gensupport.c (process_define_predicate): Same.
20652 (queue_pattern): Same.
20653 (remove_from_queue): Same.
20654 (process_rtx): Same.
20655 (is_predicable): Same.
20656 (change_subst_attribute): Same.
20657 (subst_pattern_match): Same.
20658 (alter_constraints): Same.
20659 (alter_attrs_for_insn): Same.
20660 (shift_output_template): Same.
20661 (alter_output_for_subst_insn): Same.
20662 (process_one_cond_exec): Same.
20663 (subst_dup): Same.
20664 (process_define_cond_exec): Same.
20665 (mnemonic_htab_callback): Same.
20666 (gen_mnemonic_attr): Same.
20667 (read_md_rtx): Same.
20668 * ggc-page.c: Same.
20669 * gimple-loop-interchange.cc (dump_reduction): Same.
20670 (dump_induction): Same.
20671 (loop_cand::~loop_cand): Same.
20672 (free_data_refs_with_aux): Same.
20673 (tree_loop_interchange::interchange_loops): Same.
20674 (tree_loop_interchange::map_inductions_to_loop): Same.
20675 (tree_loop_interchange::move_code_to_inner_loop): Same.
20676 (compute_access_stride): Same.
20677 (compute_access_strides): Same.
20678 (proper_loop_form_for_interchange): Same.
20679 (tree_loop_interchange_compute_ddrs): Same.
20680 (prune_datarefs_not_in_loop): Same.
20681 (prepare_data_references): Same.
20682 (pass_linterchange::execute): Same.
20683 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20684 (unroll_jam_possible_p): Same.
20685 (fuse_loops): Same.
20686 (adjust_unroll_factor): Same.
20687 (tree_loop_unroll_and_jam): Same.
20688 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20689 (loop_versioning::expensive_stmt_p): Same.
20690 (loop_versioning::version_for_unity): Same.
20691 (loop_versioning::dump_inner_likelihood): Same.
20692 (loop_versioning::find_per_loop_multiplication): Same.
20693 (loop_versioning::analyze_term_using_scevs): Same.
20694 (loop_versioning::record_address_fragment): Same.
20695 (loop_versioning::analyze_expr): Same.
20696 (loop_versioning::analyze_blocks): Same.
20697 (loop_versioning::prune_conditions): Same.
20698 (loop_versioning::merge_loop_info): Same.
20699 (loop_versioning::add_loop_to_queue): Same.
20700 (loop_versioning::decide_whether_loop_is_versionable): Same.
20701 (loop_versioning::make_versioning_decisions): Same.
20702 (loop_versioning::implement_versioning_decisions): Same.
20703 * gimple-ssa-evrp-analyze.c
20704 (evrp_range_analyzer::record_ranges_from_phis): Same.
20705 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20706 (count_multiple_uses): Same.
20707 (split_group): Same.
20708 (imm_store_chain_info::output_merged_store): Same.
20709 (pass_store_merging::process_store): Same.
20710 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20711 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20712 (is_max): Same.
20713 (alloca_call_type): Same.
20714 (pass_walloca::execute): Same.
20715 * gimple-streamer-in.c (input_phi): Same.
20716 (input_gimple_stmt): Same.
20717 * gimple-streamer.h: Same.
20718 * godump.c (go_force_record_alignment): Same.
20719 (go_format_type): Same.
20720 (go_output_type): Same.
20721 (go_output_fndecl): Same.
20722 (go_output_typedef): Same.
20723 (keyword_hash_init): Same.
20724 (find_dummy_types): Same.
20725 * graph.c (draw_cfg_nodes_no_loops): Same.
20726 (draw_cfg_nodes_for_loop): Same.
20727 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20728 * hsa-brig.c: Same.
20729 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20730 * hsa-dump.c (dump_hsa_cfun): Same.
20731 * hsa-gen.c (gen_function_def_parameters): Same.
20732 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20733 * input.c (dump_line_table_statistics): Same.
20734 (test_lexer): Same.
20735 * input.h: Same.
20736 * internal-fn.c (get_multi_vector_move): Same.
20737 (expand_load_lanes_optab_fn): Same.
20738 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20739 (expand_GOMP_SIMT_EXIT): Same.
20740 (expand_GOMP_SIMT_LAST_LANE): Same.
20741 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20742 (expand_GOMP_SIMT_VOTE_ANY): Same.
20743 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20744 (expand_GOMP_SIMT_XCHG_IDX): Same.
20745 (expand_addsub_overflow): Same.
20746 (expand_neg_overflow): Same.
20747 (expand_mul_overflow): Same.
20748 (expand_call_mem_ref): Same.
20749 (expand_mask_load_optab_fn): Same.
20750 (expand_scatter_store_optab_fn): Same.
20751 (expand_gather_load_optab_fn): Same.
20752 * ipa-cp.c (ipa_get_parm_lattices): Same.
20753 (print_all_lattices): Same.
20754 (ignore_edge_p): Same.
20755 (build_toporder_info): Same.
20756 (free_toporder_info): Same.
20757 (push_node_to_stack): Same.
20758 (ipcp_lattice<valtype>::set_contains_variable): Same.
20759 (set_agg_lats_to_bottom): Same.
20760 (ipcp_bits_lattice::meet_with): Same.
20761 (set_single_call_flag): Same.
20762 (initialize_node_lattices): Same.
20763 (ipa_get_jf_ancestor_result): Same.
20764 (ipcp_verify_propagated_values): Same.
20765 (propagate_scalar_across_jump_function): Same.
20766 (propagate_context_across_jump_function): Same.
20767 (propagate_bits_across_jump_function): Same.
20768 (ipa_vr_operation_and_type_effects): Same.
20769 (propagate_vr_across_jump_function): Same.
20770 (set_check_aggs_by_ref): Same.
20771 (set_chain_of_aglats_contains_variable): Same.
20772 (merge_aggregate_lattices): Same.
20773 (agg_pass_through_permissible_p): Same.
20774 (propagate_aggs_across_jump_function): Same.
20775 (call_passes_through_thunk_p): Same.
20776 (propagate_constants_across_call): Same.
20777 (devirtualization_time_bonus): Same.
20778 (good_cloning_opportunity_p): Same.
20779 (context_independent_aggregate_values): Same.
20780 (gather_context_independent_values): Same.
20781 (perform_estimation_of_a_value): Same.
20782 (estimate_local_effects): Same.
20783 (value_topo_info<valtype>::add_val): Same.
20784 (add_all_node_vals_to_toposort): Same.
20785 (value_topo_info<valtype>::propagate_effects): Same.
20786 (ipcp_propagate_stage): Same.
20787 (ipcp_discover_new_direct_edges): Same.
20788 (same_node_or_its_all_contexts_clone_p): Same.
20789 (cgraph_edge_brings_value_p): Same.
20790 (gather_edges_for_value): Same.
20791 (create_specialized_node): Same.
20792 (find_more_scalar_values_for_callers_subset): Same.
20793 (find_more_contexts_for_caller_subset): Same.
20794 (copy_plats_to_inter): Same.
20795 (intersect_aggregates_with_edge): Same.
20796 (find_aggregate_values_for_callers_subset): Same.
20797 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20798 (decide_about_value): Same.
20799 (decide_whether_version_node): Same.
20800 (spread_undeadness): Same.
20801 (identify_dead_nodes): Same.
20802 (ipcp_store_vr_results): Same.
20803 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20804 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20805 (redirect_to_unreachable): Same.
20806 (edge_set_predicate): Same.
20807 (evaluate_conditions_for_known_args): Same.
20808 (evaluate_properties_for_edge): Same.
20809 (ipa_fn_summary_t::duplicate): Same.
20810 (ipa_call_summary_t::duplicate): Same.
20811 (dump_ipa_call_summary): Same.
20812 (ipa_dump_fn_summary): Same.
20813 (eliminated_by_inlining_prob): Same.
20814 (set_cond_stmt_execution_predicate): Same.
20815 (set_switch_stmt_execution_predicate): Same.
20816 (compute_bb_predicates): Same.
20817 (will_be_nonconstant_expr_predicate): Same.
20818 (phi_result_unknown_predicate): Same.
20819 (analyze_function_body): Same.
20820 (compute_fn_summary): Same.
20821 (estimate_edge_devirt_benefit): Same.
20822 (estimate_edge_size_and_time): Same.
20823 (estimate_calls_size_and_time): Same.
20824 (estimate_node_size_and_time): Same.
20825 (remap_edge_change_prob): Same.
20826 (remap_edge_summaries): Same.
20827 (ipa_merge_fn_summary_after_inlining): Same.
20828 (ipa_fn_summary_generate): Same.
20829 (inline_read_section): Same.
20830 (ipa_fn_summary_read): Same.
20831 (ipa_fn_summary_write): Same.
20832 * ipa-fnsummary.h: Same.
20833 * ipa-hsa.c (ipa_hsa_read_section): Same.
20834 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20835 * ipa-icf.c (sem_function::param_used_p): Same.
20836 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20837 * ipa-inline.c (edge_badness): Same.
20838 (inline_small_functions): Same.
20839 * ipa-polymorphic-call.c
20840 (ipa_polymorphic_call_context::stream_out): Same.
20841 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20842 (predicate::remap_after_inlining): Same.
20843 (predicate::stream_out): Same.
20844 * ipa-predicate.h: Same.
20845 * ipa-profile.c (ipa_profile_read_summary): Same.
20846 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20847 (count_formal_params): Same.
20848 (ipa_dump_param): Same.
20849 (ipa_alloc_node_params): Same.
20850 (ipa_print_node_jump_functions_for_edge): Same.
20851 (ipa_print_node_jump_functions): Same.
20852 (ipa_load_from_parm_agg): Same.
20853 (get_ancestor_addr_info): Same.
20854 (ipa_compute_jump_functions_for_edge): Same.
20855 (ipa_analyze_virtual_call_uses): Same.
20856 (ipa_analyze_stmt_uses): Same.
20857 (ipa_analyze_params_uses_in_bb): Same.
20858 (update_jump_functions_after_inlining): Same.
20859 (try_decrement_rdesc_refcount): Same.
20860 (ipa_impossible_devirt_target): Same.
20861 (update_indirect_edges_after_inlining): Same.
20862 (combine_controlled_uses_counters): Same.
20863 (ipa_edge_args_sum_t::duplicate): Same.
20864 (ipa_write_jump_function): Same.
20865 (ipa_write_indirect_edge_info): Same.
20866 (ipa_write_node_info): Same.
20867 (ipa_read_edge_info): Same.
20868 (ipa_prop_read_section): Same.
20869 (read_replacements_section): Same.
20870 * ipa-prop.h (ipa_get_param_count): Same.
20871 (ipa_get_param): Same.
20872 (ipa_get_type): Same.
20873 (ipa_get_param_move_cost): Same.
20874 (ipa_set_param_used): Same.
20875 (ipa_get_controlled_uses): Same.
20876 (ipa_set_controlled_uses): Same.
20877 (ipa_get_cs_argument_count): Same.
20878 * ipa-pure-const.c (analyze_function): Same.
20879 (pure_const_read_summary): Same.
20880 * ipa-ref.h: Same.
20881 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20882 * ipa-split.c (test_nonssa_use): Same.
20883 (dump_split_point): Same.
20884 (dominated_by_forbidden): Same.
20885 (split_part_set_ssa_name_p): Same.
20886 (find_split_points): Same.
20887 * ira-build.c (finish_loop_tree_nodes): Same.
20888 (low_pressure_loop_node_p): Same.
20889 * ira-color.c (ira_reuse_stack_slot): Same.
20890 * ira-int.h: Same.
20891 * ira.c (setup_reg_equiv): Same.
20892 (print_insn_chain): Same.
20893 (ira): Same.
20894 * loop-doloop.c (doloop_condition_get): Same.
20895 (add_test): Same.
20896 (record_reg_sets): Same.
20897 (doloop_optimize): Same.
20898 * loop-init.c (loop_optimizer_init): Same.
20899 (fix_loop_structure): Same.
20900 * loop-invariant.c (merge_identical_invariants): Same.
20901 (compute_always_reached): Same.
20902 (find_exits): Same.
20903 (may_assign_reg_p): Same.
20904 (find_invariants_bb): Same.
20905 (find_invariants_body): Same.
20906 (replace_uses): Same.
20907 (can_move_invariant_reg): Same.
20908 (free_inv_motion_data): Same.
20909 (move_single_loop_invariants): Same.
20910 (change_pressure): Same.
20911 (mark_ref_regs): Same.
20912 (calculate_loop_reg_pressure): Same.
20913 * loop-iv.c (biv_entry_hasher::equal): Same.
20914 (iv_extend_to_rtx_code): Same.
20915 (check_iv_ref_table_size): Same.
20916 (clear_iv_info): Same.
20917 (latch_dominating_def): Same.
20918 (iv_get_reaching_def): Same.
20919 (iv_constant): Same.
20920 (iv_subreg): Same.
20921 (iv_extend): Same.
20922 (iv_neg): Same.
20923 (iv_add): Same.
20924 (iv_mult): Same.
20925 (get_biv_step): Same.
20926 (record_iv): Same.
20927 (analyzed_for_bivness_p): Same.
20928 (record_biv): Same.
20929 (iv_analyze_biv): Same.
20930 (iv_analyze_expr): Same.
20931 (iv_analyze_def): Same.
20932 (iv_analyze_op): Same.
20933 (iv_analyze): Same.
20934 (iv_analyze_result): Same.
20935 (biv_p): Same.
20936 (eliminate_implied_conditions): Same.
20937 (simplify_using_initial_values): Same.
20938 (shorten_into_mode): Same.
20939 (canonicalize_iv_subregs): Same.
20940 (determine_max_iter): Same.
20941 (check_simple_exit): Same.
20942 (find_simple_exit): Same.
20943 (get_simple_loop_desc): Same.
20944 * loop-unroll.c (report_unroll): Same.
20945 (decide_unrolling): Same.
20946 (unroll_loops): Same.
20947 (loop_exit_at_end_p): Same.
20948 (decide_unroll_constant_iterations): Same.
20949 (unroll_loop_constant_iterations): Same.
20950 (compare_and_jump_seq): Same.
20951 (unroll_loop_runtime_iterations): Same.
20952 (decide_unroll_stupid): Same.
20953 (unroll_loop_stupid): Same.
20954 (referenced_in_one_insn_in_loop_p): Same.
20955 (reset_debug_uses_in_loop): Same.
20956 (analyze_iv_to_split_insn): Same.
20957 * lra-eliminations.c (lra_debug_elim_table): Same.
20958 (setup_can_eliminate): Same.
20959 (form_sum): Same.
20960 (lra_get_elimination_hard_regno): Same.
20961 (lra_eliminate_regs_1): Same.
20962 (eliminate_regs_in_insn): Same.
20963 (update_reg_eliminate): Same.
20964 (init_elimination): Same.
20965 (lra_eliminate): Same.
20966 * lra-int.h: Same.
20967 * lra-lives.c (initiate_live_solver): Same.
20968 * lra-remat.c (create_remat_bb_data): Same.
20969 * lra-spills.c (lra_spill): Same.
20970 * lra.c (lra_set_insn_recog_data): Same.
20971 (lra_set_used_insn_alternative_by_uid): Same.
20972 (init_reg_info): Same.
20973 (expand_reg_info): Same.
20974 * lto-cgraph.c (output_symtab): Same.
20975 (read_identifier): Same.
20976 (get_alias_symbol): Same.
20977 (input_node): Same.
20978 (input_varpool_node): Same.
20979 (input_ref): Same.
20980 (input_edge): Same.
20981 (input_cgraph_1): Same.
20982 (input_refs): Same.
20983 (input_symtab): Same.
20984 (input_offload_tables): Same.
20985 (output_cgraph_opt_summary): Same.
20986 (input_edge_opt_summary): Same.
20987 (input_cgraph_opt_section): Same.
20988 * lto-section-in.c (lto_free_raw_section_data): Same.
20989 (lto_create_simple_input_block): Same.
20990 (lto_free_function_in_decl_state_for_node): Same.
20991 * lto-streamer-in.c (lto_tag_check_set): Same.
20992 (lto_location_cache::revert_location_cache): Same.
20993 (lto_location_cache::input_location): Same.
20994 (lto_input_location): Same.
20995 (stream_input_location_now): Same.
20996 (lto_input_tree_ref): Same.
20997 (lto_input_eh_catch_list): Same.
20998 (input_eh_region): Same.
20999 (lto_init_eh): Same.
21000 (make_new_block): Same.
21001 (input_cfg): Same.
21002 (fixup_call_stmt_edges): Same.
21003 (input_struct_function_base): Same.
21004 (input_function): Same.
21005 (lto_read_body_or_constructor): Same.
21006 (lto_read_tree_1): Same.
21007 (lto_read_tree): Same.
21008 (lto_input_scc): Same.
21009 (lto_input_tree_1): Same.
21010 (lto_input_toplevel_asms): Same.
21011 (lto_input_mode_table): Same.
21012 (lto_reader_init): Same.
21013 (lto_data_in_create): Same.
21014 * lto-streamer-out.c (output_cfg): Same.
21015 * lto-streamer.h: Same.
21016 * modulo-sched.c (duplicate_insns_of_cycles): Same.
21017 (generate_prolog_epilog): Same.
21018 (mark_loop_unsched): Same.
21019 (dump_insn_location): Same.
21020 (loop_canon_p): Same.
21021 (sms_schedule): Same.
21022 * omp-expand.c (expand_omp_for_ordered_loops): Same.
21023 (expand_omp_for_generic): Same.
21024 (expand_omp_for_static_nochunk): Same.
21025 (expand_omp_for_static_chunk): Same.
21026 (expand_omp_simd): Same.
21027 (expand_omp_taskloop_for_inner): Same.
21028 (expand_oacc_for): Same.
21029 (expand_omp_atomic_pipeline): Same.
21030 (mark_loops_in_oacc_kernels_region): Same.
21031 * omp-offload.c (oacc_xform_loop): Same.
21032 * omp-simd-clone.c (simd_clone_adjust): Same.
21033 * optabs-query.c (get_traditional_extraction_insn): Same.
21034 * optabs.c (expand_vector_broadcast): Same.
21035 (expand_binop_directly): Same.
21036 (expand_twoval_unop): Same.
21037 (expand_twoval_binop): Same.
21038 (expand_unop_direct): Same.
21039 (emit_indirect_jump): Same.
21040 (emit_conditional_move): Same.
21041 (emit_conditional_neg_or_complement): Same.
21042 (emit_conditional_add): Same.
21043 (vector_compare_rtx): Same.
21044 (expand_vec_perm_1): Same.
21045 (expand_vec_perm_const): Same.
21046 (expand_vec_cond_expr): Same.
21047 (expand_vec_series_expr): Same.
21048 (maybe_emit_atomic_exchange): Same.
21049 (maybe_emit_sync_lock_test_and_set): Same.
21050 (expand_atomic_compare_and_swap): Same.
21051 (expand_atomic_load): Same.
21052 (expand_atomic_store): Same.
21053 (maybe_emit_op): Same.
21054 (valid_multiword_target_p): Same.
21055 (create_integer_operand): Same.
21056 (maybe_legitimize_operand_same_code): Same.
21057 (maybe_legitimize_operand): Same.
21058 (create_convert_operand_from_type): Same.
21059 (can_reuse_operands_p): Same.
21060 (maybe_legitimize_operands): Same.
21061 (maybe_gen_insn): Same.
21062 (maybe_expand_insn): Same.
21063 (maybe_expand_jump_insn): Same.
21064 (expand_insn): Same.
21065 * optabs.h (create_expand_operand): Same.
21066 (create_fixed_operand): Same.
21067 (create_output_operand): Same.
21068 (create_input_operand): Same.
21069 (create_convert_operand_to): Same.
21070 (create_convert_operand_from): Same.
21071 * optinfo.h: Same.
21072 * poly-int.h: Same.
21073 * predict.c (optimize_insn_for_speed_p): Same.
21074 (optimize_loop_for_size_p): Same.
21075 (optimize_loop_for_speed_p): Same.
21076 (optimize_loop_nest_for_speed_p): Same.
21077 (get_base_value): Same.
21078 (predicted_by_loop_heuristics_p): Same.
21079 (predict_extra_loop_exits): Same.
21080 (predict_loops): Same.
21081 (predict_paths_for_bb): Same.
21082 (predict_paths_leading_to): Same.
21083 (propagate_freq): Same.
21084 (pass_profile::execute): Same.
21085 * predict.h: Same.
21086 * profile-count.c (profile_count::differs_from_p): Same.
21087 (profile_probability::differs_lot_from_p): Same.
21088 * profile-count.h: Same.
21089 * profile.c (branch_prob): Same.
21090 * regrename.c (free_chain_data): Same.
21091 (mark_conflict): Same.
21092 (create_new_chain): Same.
21093 (merge_overlapping_regs): Same.
21094 (init_rename_info): Same.
21095 (merge_chains): Same.
21096 (regrename_analyze): Same.
21097 (regrename_do_replace): Same.
21098 (scan_rtx_reg): Same.
21099 (record_out_operands): Same.
21100 (build_def_use): Same.
21101 * regrename.h: Same.
21102 * reload.h: Same.
21103 * reload1.c (init_reload): Same.
21104 (maybe_fix_stack_asms): Same.
21105 (copy_reloads): Same.
21106 (count_pseudo): Same.
21107 (count_spilled_pseudo): Same.
21108 (find_reg): Same.
21109 (find_reload_regs): Same.
21110 (select_reload_regs): Same.
21111 (spill_hard_reg): Same.
21112 (fixup_eh_region_note): Same.
21113 (set_reload_reg): Same.
21114 (allocate_reload_reg): Same.
21115 (compute_reload_subreg_offset): Same.
21116 (reload_adjust_reg_for_icode): Same.
21117 (emit_input_reload_insns): Same.
21118 (emit_output_reload_insns): Same.
21119 (do_input_reload): Same.
21120 (inherit_piecemeal_p): Same.
21121 * rtl.h: Same.
21122 * sanopt.c (maybe_get_dominating_check): Same.
21123 (maybe_optimize_ubsan_ptr_ifn): Same.
21124 (can_remove_asan_check): Same.
21125 (maybe_optimize_asan_check_ifn): Same.
21126 (sanopt_optimize_walker): Same.
21127 * sched-deps.c (add_dependence_list): Same.
21128 (chain_to_prev_insn): Same.
21129 (add_insn_mem_dependence): Same.
21130 (create_insn_reg_set): Same.
21131 (maybe_extend_reg_info_p): Same.
21132 (sched_analyze_reg): Same.
21133 (sched_analyze_1): Same.
21134 (get_implicit_reg_pending_clobbers): Same.
21135 (chain_to_prev_insn_p): Same.
21136 (deps_analyze_insn): Same.
21137 (deps_start_bb): Same.
21138 (sched_free_deps): Same.
21139 (init_deps): Same.
21140 (init_deps_reg_last): Same.
21141 (free_deps): Same.
21142 * sched-ebb.c: Same.
21143 * sched-int.h: Same.
21144 * sched-rgn.c (add_branch_dependences): Same.
21145 (concat_insn_mem_list): Same.
21146 (deps_join): Same.
21147 (sched_rgn_compute_dependencies): Same.
21148 * sel-sched-ir.c (reset_target_context): Same.
21149 (copy_deps_context): Same.
21150 (init_id_from_df): Same.
21151 (has_dependence_p): Same.
21152 (change_loops_latches): Same.
21153 (bb_top_order_comparator): Same.
21154 (make_region_from_loop_preheader): Same.
21155 (sel_init_pipelining): Same.
21156 (get_loop_nest_for_rgn): Same.
21157 (make_regions_from_the_rest): Same.
21158 (sel_is_loop_preheader_p): Same.
21159 * sel-sched-ir.h (inner_loop_header_p): Same.
21160 (get_all_loop_exits): Same.
21161 * selftest.h: Same.
21162 * sese.c (sese_build_liveouts): Same.
21163 (sese_insert_phis_for_liveouts): Same.
21164 * sese.h (defined_in_sese_p): Same.
21165 * sreal.c (sreal::stream_out): Same.
21166 * sreal.h: Same.
21167 * streamer-hooks.h: Same.
21168 * target-globals.c (save_target_globals): Same.
21169 * target-globals.h: Same.
21170 * target.def: Same.
21171 * target.h: Same.
21172 * targhooks.c (default_has_ifunc_p): Same.
21173 (default_empty_mask_is_expensive): Same.
21174 (default_init_cost): Same.
21175 * targhooks.h: Same.
21176 * toplev.c: Same.
21177 * tree-affine.c (aff_combination_mult): Same.
21178 (aff_combination_expand): Same.
21179 (aff_combination_constant_multiple_p): Same.
21180 * tree-affine.h: Same.
21181 * tree-cfg.c (build_gimple_cfg): Same.
21182 (replace_loop_annotate_in_block): Same.
21183 (replace_uses_by): Same.
21184 (remove_bb): Same.
21185 (dump_cfg_stats): Same.
21186 (gimple_duplicate_sese_region): Same.
21187 (gimple_duplicate_sese_tail): Same.
21188 (move_block_to_fn): Same.
21189 (replace_block_vars_by_duplicates): Same.
21190 (move_sese_region_to_fn): Same.
21191 (print_loops_bb): Same.
21192 (print_loop): Same.
21193 (print_loops): Same.
21194 (debug): Same.
21195 (debug_loops): Same.
21196 * tree-cfg.h: Same.
21197 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
21198 (chrec_fold_multiply_poly_poly): Same.
21199 (chrec_evaluate): Same.
21200 (chrec_component_in_loop_num): Same.
21201 (reset_evolution_in_loop): Same.
21202 (is_multivariate_chrec): Same.
21203 (chrec_contains_symbols): Same.
21204 (nb_vars_in_chrec): Same.
21205 (chrec_convert_1): Same.
21206 (chrec_convert_aggressive): Same.
21207 * tree-chrec.h: Same.
21208 * tree-core.h: Same.
21209 * tree-data-ref.c (dump_data_dependence_relation): Same.
21210 (canonicalize_base_object_address): Same.
21211 (data_ref_compare_tree): Same.
21212 (prune_runtime_alias_test_list): Same.
21213 (get_segment_min_max): Same.
21214 (create_intersect_range_checks): Same.
21215 (conflict_fn_no_dependence): Same.
21216 (object_address_invariant_in_loop_p): Same.
21217 (analyze_ziv_subscript): Same.
21218 (analyze_siv_subscript_cst_affine): Same.
21219 (analyze_miv_subscript): Same.
21220 (analyze_overlapping_iterations): Same.
21221 (build_classic_dist_vector_1): Same.
21222 (add_other_self_distances): Same.
21223 (same_access_functions): Same.
21224 (build_classic_dir_vector): Same.
21225 (subscript_dependence_tester_1): Same.
21226 (subscript_dependence_tester): Same.
21227 (access_functions_are_affine_or_constant_p): Same.
21228 (get_references_in_stmt): Same.
21229 (loop_nest_has_data_refs): Same.
21230 (graphite_find_data_references_in_stmt): Same.
21231 (find_data_references_in_bb): Same.
21232 (get_base_for_alignment): Same.
21233 (find_loop_nest_1): Same.
21234 (find_loop_nest): Same.
21235 * tree-data-ref.h (dr_alignment): Same.
21236 (ddr_dependence_level): Same.
21237 * tree-if-conv.c (fold_build_cond_expr): Same.
21238 (add_to_predicate_list): Same.
21239 (add_to_dst_predicate_list): Same.
21240 (phi_convertible_by_degenerating_args): Same.
21241 (idx_within_array_bound): Same.
21242 (all_preds_critical_p): Same.
21243 (pred_blocks_visited_p): Same.
21244 (predicate_bbs): Same.
21245 (build_region): Same.
21246 (if_convertible_loop_p_1): Same.
21247 (is_cond_scalar_reduction): Same.
21248 (predicate_scalar_phi): Same.
21249 (remove_conditions_and_labels): Same.
21250 (combine_blocks): Same.
21251 (version_loop_for_if_conversion): Same.
21252 (versionable_outer_loop_p): Same.
21253 (ifcvt_local_dce): Same.
21254 (tree_if_conversion): Same.
21255 (pass_if_conversion::gate): Same.
21256 * tree-if-conv.h: Same.
21257 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
21258 * tree-loop-distribution.c (bb_top_order_cmp): Same.
21259 (free_rdg): Same.
21260 (stmt_has_scalar_dependences_outside_loop): Same.
21261 (copy_loop_before): Same.
21262 (create_bb_after_loop): Same.
21263 (const_with_all_bytes_same): Same.
21264 (generate_memset_builtin): Same.
21265 (generate_memcpy_builtin): Same.
21266 (destroy_loop): Same.
21267 (build_rdg_partition_for_vertex): Same.
21268 (compute_access_range): Same.
21269 (data_ref_segment_size): Same.
21270 (latch_dominated_by_data_ref): Same.
21271 (compute_alias_check_pairs): Same.
21272 (fuse_memset_builtins): Same.
21273 (finalize_partitions): Same.
21274 (find_seed_stmts_for_distribution): Same.
21275 (prepare_perfect_loop_nest): Same.
21276 * tree-parloops.c (lambda_transform_legal_p): Same.
21277 (loop_parallel_p): Same.
21278 (reduc_stmt_res): Same.
21279 (add_field_for_name): Same.
21280 (create_call_for_reduction_1): Same.
21281 (replace_uses_in_bb_by): Same.
21282 (transform_to_exit_first_loop_alt): Same.
21283 (try_transform_to_exit_first_loop_alt): Same.
21284 (transform_to_exit_first_loop): Same.
21285 (num_phis): Same.
21286 (gen_parallel_loop): Same.
21287 (gather_scalar_reductions): Same.
21288 (get_omp_data_i_param): Same.
21289 (try_create_reduction_list): Same.
21290 (oacc_entry_exit_single_gang): Same.
21291 (parallelize_loops): Same.
21292 * tree-pass.h: Same.
21293 * tree-predcom.c (determine_offset): Same.
21294 (last_always_executed_block): Same.
21295 (split_data_refs_to_components): Same.
21296 (suitable_component_p): Same.
21297 (valid_initializer_p): Same.
21298 (find_looparound_phi): Same.
21299 (insert_looparound_copy): Same.
21300 (add_looparound_copies): Same.
21301 (determine_roots_comp): Same.
21302 (predcom_tmp_var): Same.
21303 (initialize_root_vars): Same.
21304 (initialize_root_vars_store_elim_1): Same.
21305 (initialize_root_vars_store_elim_2): Same.
21306 (finalize_eliminated_stores): Same.
21307 (initialize_root_vars_lm): Same.
21308 (remove_stmt): Same.
21309 (determine_unroll_factor): Same.
21310 (execute_pred_commoning_cbck): Same.
21311 (base_names_in_chain_on): Same.
21312 (combine_chains): Same.
21313 (pcom_stmt_dominates_stmt_p): Same.
21314 (try_combine_chains): Same.
21315 (prepare_initializers_chain_store_elim): Same.
21316 (prepare_initializers_chain): Same.
21317 (prepare_initializers): Same.
21318 (prepare_finalizers_chain): Same.
21319 (prepare_finalizers): Same.
21320 (insert_init_seqs): Same.
21321 * tree-scalar-evolution.c (loop_phi_node_p): Same.
21322 (compute_overall_effect_of_inner_loop): Same.
21323 (add_to_evolution_1): Same.
21324 (add_to_evolution): Same.
21325 (follow_ssa_edge_binary): Same.
21326 (follow_ssa_edge_expr): Same.
21327 (backedge_phi_arg_p): Same.
21328 (follow_ssa_edge_in_condition_phi_branch): Same.
21329 (follow_ssa_edge_in_condition_phi): Same.
21330 (follow_ssa_edge_inner_loop_phi): Same.
21331 (follow_ssa_edge): Same.
21332 (analyze_evolution_in_loop): Same.
21333 (analyze_initial_condition): Same.
21334 (interpret_loop_phi): Same.
21335 (interpret_condition_phi): Same.
21336 (interpret_rhs_expr): Same.
21337 (interpret_expr): Same.
21338 (interpret_gimple_assign): Same.
21339 (analyze_scalar_evolution_1): Same.
21340 (analyze_scalar_evolution): Same.
21341 (analyze_scalar_evolution_for_address_of): Same.
21342 (get_instantiated_value_entry): Same.
21343 (loop_closed_phi_def): Same.
21344 (instantiate_scev_name): Same.
21345 (instantiate_scev_poly): Same.
21346 (instantiate_scev_binary): Same.
21347 (instantiate_scev_convert): Same.
21348 (instantiate_scev_not): Same.
21349 (instantiate_scev_r): Same.
21350 (instantiate_scev): Same.
21351 (resolve_mixers): Same.
21352 (initialize_scalar_evolutions_analyzer): Same.
21353 (scev_reset_htab): Same.
21354 (scev_reset): Same.
21355 (derive_simple_iv_with_niters): Same.
21356 (simple_iv_with_niters): Same.
21357 (expression_expensive_p): Same.
21358 (final_value_replacement_loop): Same.
21359 * tree-scalar-evolution.h (block_before_loop): Same.
21360 * tree-ssa-address.h: Same.
21361 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
21362 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
21363 (record_edge_info): Same.
21364 * tree-ssa-live.c (var_map_base_fini): Same.
21365 (remove_unused_locals): Same.
21366 * tree-ssa-live.h: Same.
21367 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
21368 (pass_ch_vect::execute): Same.
21369 (pass_ch::process_loop_p): Same.
21370 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21371 (movement_possibility): Same.
21372 (outermost_invariant_loop): Same.
21373 (stmt_cost): Same.
21374 (determine_max_movement): Same.
21375 (invariantness_dom_walker::before_dom_children): Same.
21376 (move_computations): Same.
21377 (may_move_till): Same.
21378 (force_move_till_op): Same.
21379 (force_move_till): Same.
21380 (memref_free): Same.
21381 (record_mem_ref_loc): Same.
21382 (set_ref_stored_in_loop): Same.
21383 (mark_ref_stored): Same.
21384 (sort_bbs_in_loop_postorder_cmp): Same.
21385 (sort_locs_in_loop_postorder_cmp): Same.
21386 (analyze_memory_references): Same.
21387 (mem_refs_may_alias_p): Same.
21388 (find_ref_loc_in_loop_cmp): Same.
21389 (rewrite_mem_ref_loc::operator): Same.
21390 (first_mem_ref_loc_1::operator): Same.
21391 (sm_set_flag_if_changed::operator): Same.
21392 (execute_sm_if_changed_flag_set): Same.
21393 (execute_sm): Same.
21394 (hoist_memory_references): Same.
21395 (ref_always_accessed::operator): Same.
21396 (refs_independent_p): Same.
21397 (record_dep_loop): Same.
21398 (ref_indep_loop_p_1): Same.
21399 (ref_indep_loop_p): Same.
21400 (can_sm_ref_p): Same.
21401 (find_refs_for_sm): Same.
21402 (loop_suitable_for_sm): Same.
21403 (store_motion_loop): Same.
21404 (store_motion): Same.
21405 (fill_always_executed_in): Same.
21406 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21407 (estimated_unrolled_size): Same.
21408 (loop_edge_to_cancel): Same.
21409 (remove_exits_and_undefined_stmts): Same.
21410 (remove_redundant_iv_tests): Same.
21411 (unloop_loops): Same.
21412 (estimated_peeled_sequence_size): Same.
21413 (try_peel_loop): Same.
21414 (canonicalize_loop_induction_variables): Same.
21415 (canonicalize_induction_variables): Same.
21416 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21417 (name_info): Same.
21418 (stmt_after_inc_pos): Same.
21419 (contains_abnormal_ssa_name_p): Same.
21420 (niter_for_exit): Same.
21421 (find_bivs): Same.
21422 (mark_bivs): Same.
21423 (find_givs_in_bb): Same.
21424 (find_induction_variables): Same.
21425 (find_interesting_uses_cond): Same.
21426 (outermost_invariant_loop_for_expr): Same.
21427 (idx_find_step): Same.
21428 (add_candidate_1): Same.
21429 (add_iv_candidate_derived_from_uses): Same.
21430 (alloc_use_cost_map): Same.
21431 (prepare_decl_rtl): Same.
21432 (generic_predict_doloop_p): Same.
21433 (computation_cost): Same.
21434 (determine_common_wider_type): Same.
21435 (get_computation_aff_1): Same.
21436 (get_use_type): Same.
21437 (determine_group_iv_cost_address): Same.
21438 (iv_period): Same.
21439 (difference_cannot_overflow_p): Same.
21440 (may_eliminate_iv): Same.
21441 (determine_set_costs): Same.
21442 (cheaper_cost_pair): Same.
21443 (compare_cost_pair): Same.
21444 (iv_ca_cand_for_group): Same.
21445 (iv_ca_recount_cost): Same.
21446 (iv_ca_set_remove_invs): Same.
21447 (iv_ca_set_no_cp): Same.
21448 (iv_ca_set_add_invs): Same.
21449 (iv_ca_set_cp): Same.
21450 (iv_ca_add_group): Same.
21451 (iv_ca_cost): Same.
21452 (iv_ca_compare_deps): Same.
21453 (iv_ca_delta_reverse): Same.
21454 (iv_ca_delta_commit): Same.
21455 (iv_ca_cand_used_p): Same.
21456 (iv_ca_delta_free): Same.
21457 (iv_ca_new): Same.
21458 (iv_ca_free): Same.
21459 (iv_ca_dump): Same.
21460 (iv_ca_extend): Same.
21461 (iv_ca_narrow): Same.
21462 (iv_ca_prune): Same.
21463 (cheaper_cost_with_cand): Same.
21464 (iv_ca_replace): Same.
21465 (try_add_cand_for): Same.
21466 (get_initial_solution): Same.
21467 (try_improve_iv_set): Same.
21468 (find_optimal_iv_set_1): Same.
21469 (create_new_iv): Same.
21470 (rewrite_use_compare): Same.
21471 (remove_unused_ivs): Same.
21472 (determine_scaling_factor): Same.
21473 * tree-ssa-loop-ivopts.h: Same.
21474 * tree-ssa-loop-manip.c (create_iv): Same.
21475 (compute_live_loop_exits): Same.
21476 (add_exit_phi): Same.
21477 (add_exit_phis): Same.
21478 (find_uses_to_rename_use): Same.
21479 (find_uses_to_rename_def): Same.
21480 (find_uses_to_rename_in_loop): Same.
21481 (rewrite_into_loop_closed_ssa): Same.
21482 (check_loop_closed_ssa_bb): Same.
21483 (split_loop_exit_edge): Same.
21484 (ip_end_pos): Same.
21485 (ip_normal_pos): Same.
21486 (copy_phi_node_args): Same.
21487 (gimple_duplicate_loop_to_header_edge): Same.
21488 (can_unroll_loop_p): Same.
21489 (determine_exit_conditions): Same.
21490 (scale_dominated_blocks_in_loop): Same.
21491 (niter_for_unrolled_loop): Same.
21492 (tree_transform_and_unroll_loop): Same.
21493 (rewrite_all_phi_nodes_with_iv): Same.
21494 * tree-ssa-loop-manip.h: Same.
21495 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21496 (number_of_iterations_ne): Same.
21497 (assert_no_overflow_lt): Same.
21498 (assert_loop_rolls_lt): Same.
21499 (number_of_iterations_lt): Same.
21500 (adjust_cond_for_loop_until_wrap): Same.
21501 (tree_simplify_using_condition): Same.
21502 (simplify_using_initial_conditions): Same.
21503 (simplify_using_outer_evolutions): Same.
21504 (loop_only_exit_p): Same.
21505 (ssa_defined_by_minus_one_stmt_p): Same.
21506 (number_of_iterations_popcount): Same.
21507 (number_of_iterations_exit): Same.
21508 (find_loop_niter): Same.
21509 (finite_loop_p): Same.
21510 (chain_of_csts_start): Same.
21511 (get_val_for): Same.
21512 (loop_niter_by_eval): Same.
21513 (derive_constant_upper_bound_ops): Same.
21514 (do_warn_aggressive_loop_optimizations): Same.
21515 (record_estimate): Same.
21516 (get_cst_init_from_scev): Same.
21517 (record_nonwrapping_iv): Same.
21518 (idx_infer_loop_bounds): Same.
21519 (infer_loop_bounds_from_ref): Same.
21520 (infer_loop_bounds_from_array): Same.
21521 (infer_loop_bounds_from_pointer_arith): Same.
21522 (infer_loop_bounds_from_signedness): Same.
21523 (bound_index): Same.
21524 (discover_iteration_bound_by_body_walk): Same.
21525 (maybe_lower_iteration_bound): Same.
21526 (estimate_numbers_of_iterations): Same.
21527 (estimated_loop_iterations): Same.
21528 (estimated_loop_iterations_int): Same.
21529 (max_loop_iterations): Same.
21530 (max_loop_iterations_int): Same.
21531 (likely_max_loop_iterations): Same.
21532 (likely_max_loop_iterations_int): Same.
21533 (estimated_stmt_executions_int): Same.
21534 (max_stmt_executions): Same.
21535 (likely_max_stmt_executions): Same.
21536 (estimated_stmt_executions): Same.
21537 (stmt_dominates_stmt_p): Same.
21538 (nowrap_type_p): Same.
21539 (loop_exits_before_overflow): Same.
21540 (scev_var_range_cant_overflow): Same.
21541 (scev_probably_wraps_p): Same.
21542 (free_numbers_of_iterations_estimates): Same.
21543 * tree-ssa-loop-niter.h: Same.
21544 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21545 (idx_analyze_ref): Same.
21546 (analyze_ref): Same.
21547 (gather_memory_references_ref): Same.
21548 (mark_nontemporal_store): Same.
21549 (emit_mfence_after_loop): Same.
21550 (may_use_storent_in_loop_p): Same.
21551 (mark_nontemporal_stores): Same.
21552 (should_unroll_loop_p): Same.
21553 (volume_of_dist_vector): Same.
21554 (add_subscript_strides): Same.
21555 (self_reuse_distance): Same.
21556 (insn_to_prefetch_ratio_too_small_p): Same.
21557 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21558 (patch_loop_exit): Same.
21559 (find_or_create_guard_phi): Same.
21560 (easy_exit_values): Same.
21561 (connect_loop_phis): Same.
21562 (connect_loops): Same.
21563 (compute_new_first_bound): Same.
21564 (split_loop): Same.
21565 (tree_ssa_split_loops): Same.
21566 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21567 (is_maybe_undefined): Same.
21568 (tree_may_unswitch_on): Same.
21569 (simplify_using_entry_checks): Same.
21570 (tree_unswitch_single_loop): Same.
21571 (tree_unswitch_loop): Same.
21572 (tree_unswitch_outer_loop): Same.
21573 (empty_bb_without_guard_p): Same.
21574 (used_outside_loop_p): Same.
21575 (get_vop_from_header): Same.
21576 (hoist_guard): Same.
21577 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21578 (get_lsm_tmp_name): Same.
21579 * tree-ssa-loop.h: Same.
21580 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21581 (build_and_add_sum): Same.
21582 (no_side_effect_bb): Same.
21583 (get_ops): Same.
21584 (linearize_expr): Same.
21585 (should_break_up_subtract): Same.
21586 (linearize_expr_tree): Same.
21587 * tree-ssa-scopedtables.c: Same.
21588 * tree-ssa-scopedtables.h: Same.
21589 * tree-ssa-structalias.c (condense_visit): Same.
21590 (label_visit): Same.
21591 (dump_pred_graph): Same.
21592 (perform_var_substitution): Same.
21593 (move_complex_constraints): Same.
21594 (remove_preds_and_fake_succs): Same.
21595 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21596 (determine_bb_domination_status): Same.
21597 (duplicate_thread_path): Same.
21598 (thread_through_all_blocks): Same.
21599 * tree-ssa-threadupdate.h: Same.
21600 * tree-streamer-in.c (streamer_read_string_cst): Same.
21601 (input_identifier): Same.
21602 (unpack_ts_type_common_value_fields): Same.
21603 (unpack_ts_block_value_fields): Same.
21604 (unpack_ts_translation_unit_decl_value_fields): Same.
21605 (unpack_ts_omp_clause_value_fields): Same.
21606 (streamer_read_tree_bitfields): Same.
21607 (streamer_alloc_tree): Same.
21608 (lto_input_ts_common_tree_pointers): Same.
21609 (lto_input_ts_vector_tree_pointers): Same.
21610 (lto_input_ts_poly_tree_pointers): Same.
21611 (lto_input_ts_complex_tree_pointers): Same.
21612 (lto_input_ts_decl_minimal_tree_pointers): Same.
21613 (lto_input_ts_decl_common_tree_pointers): Same.
21614 (lto_input_ts_decl_non_common_tree_pointers): Same.
21615 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21616 (lto_input_ts_field_decl_tree_pointers): Same.
21617 (lto_input_ts_function_decl_tree_pointers): Same.
21618 (lto_input_ts_type_common_tree_pointers): Same.
21619 (lto_input_ts_type_non_common_tree_pointers): Same.
21620 (lto_input_ts_list_tree_pointers): Same.
21621 (lto_input_ts_vec_tree_pointers): Same.
21622 (lto_input_ts_exp_tree_pointers): Same.
21623 (lto_input_ts_block_tree_pointers): Same.
21624 (lto_input_ts_binfo_tree_pointers): Same.
21625 (lto_input_ts_constructor_tree_pointers): Same.
21626 (lto_input_ts_omp_clause_tree_pointers): Same.
21627 (streamer_read_tree_body): Same.
21628 * tree-streamer.h: Same.
21629 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21630 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21631 (vect_analyze_possibly_independent_ddr): Same.
21632 (vect_analyze_data_ref_dependence): Same.
21633 (vect_compute_data_ref_alignment): Same.
21634 (vect_enhance_data_refs_alignment): Same.
21635 (vect_analyze_data_ref_access): Same.
21636 (vect_check_gather_scatter): Same.
21637 (vect_find_stmt_data_reference): Same.
21638 (vect_create_addr_base_for_vector_ref): Same.
21639 (vect_setup_realignment): Same.
21640 (vect_supportable_dr_alignment): Same.
21641 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21642 (adjust_phi_and_debug_stmts): Same.
21643 (vect_set_loop_mask): Same.
21644 (add_preheader_seq): Same.
21645 (vect_maybe_permute_loop_masks): Same.
21646 (vect_set_loop_masks_directly): Same.
21647 (vect_set_loop_condition_masked): Same.
21648 (vect_set_loop_condition_unmasked): Same.
21649 (slpeel_duplicate_current_defs_from_edges): Same.
21650 (slpeel_add_loop_guard): Same.
21651 (slpeel_can_duplicate_loop_p): Same.
21652 (create_lcssa_for_virtual_phi): Same.
21653 (iv_phi_p): Same.
21654 (vect_update_ivs_after_vectorizer): Same.
21655 (vect_gen_vector_loop_niters_mult_vf): Same.
21656 (slpeel_update_phi_nodes_for_loops): Same.
21657 (slpeel_update_phi_nodes_for_guard1): Same.
21658 (find_guard_arg): Same.
21659 (slpeel_update_phi_nodes_for_guard2): Same.
21660 (slpeel_update_phi_nodes_for_lcssa): Same.
21661 (vect_do_peeling): Same.
21662 (vect_create_cond_for_alias_checks): Same.
21663 (vect_loop_versioning): Same.
21664 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21665 (vect_inner_phi_in_double_reduction_p): Same.
21666 (vect_analyze_scalar_cycles_1): Same.
21667 (vect_fixup_scalar_cycles_with_patterns): Same.
21668 (vect_get_loop_niters): Same.
21669 (bb_in_loop_p): Same.
21670 (vect_get_max_nscalars_per_iter): Same.
21671 (vect_verify_full_masking): Same.
21672 (vect_compute_single_scalar_iteration_cost): Same.
21673 (vect_analyze_loop_form_1): Same.
21674 (vect_analyze_loop_form): Same.
21675 (vect_active_double_reduction_p): Same.
21676 (vect_analyze_loop_operations): Same.
21677 (neutral_op_for_slp_reduction): Same.
21678 (vect_is_simple_reduction): Same.
21679 (vect_model_reduction_cost): Same.
21680 (get_initial_def_for_reduction): Same.
21681 (get_initial_defs_for_reduction): Same.
21682 (vect_create_epilog_for_reduction): Same.
21683 (vectorize_fold_left_reduction): Same.
21684 (vectorizable_reduction): Same.
21685 (vectorizable_induction): Same.
21686 (vectorizable_live_operation): Same.
21687 (loop_niters_no_overflow): Same.
21688 (vect_get_loop_mask): Same.
21689 (vect_transform_loop_stmt): Same.
21690 (vect_transform_loop): Same.
21691 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21692 (vect_determine_precisions): Same.
21693 (vect_pattern_recog_1): Same.
21694 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21695 * tree-vect-stmts.c (stmt_vectype): Same.
21696 (process_use): Same.
21697 (vect_init_vector_1): Same.
21698 (vect_truncate_gather_scatter_offset): Same.
21699 (get_group_load_store_type): Same.
21700 (vect_build_gather_load_calls): Same.
21701 (vect_get_strided_load_store_ops): Same.
21702 (vectorizable_simd_clone_call): Same.
21703 (vectorizable_store): Same.
21704 (permute_vec_elements): Same.
21705 (vectorizable_load): Same.
21706 (vect_transform_stmt): Same.
21707 (supportable_widening_operation): Same.
21708 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21709 (vec_info::free_stmt_vec_info): Same.
21710 (vect_free_loop_info_assumptions): Same.
21711 (vect_loop_vectorized_call): Same.
21712 (set_uid_loop_bbs): Same.
21713 (vectorize_loops): Same.
21714 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21715 * tree.c (add_tree_to_fld_list): Same.
21716 (fld_type_variant_equal_p): Same.
21717 (fld_decl_context): Same.
21718 (fld_incomplete_type_of): Same.
21719 (free_lang_data_in_binfo): Same.
21720 (need_assembler_name_p): Same.
21721 (find_decls_types_r): Same.
21722 (get_eh_types_for_runtime): Same.
21723 (find_decls_types_in_eh_region): Same.
21724 (find_decls_types_in_node): Same.
21725 (assign_assembler_name_if_needed): Same.
21726 * value-prof.c (stream_out_histogram_value): Same.
21727 * value-prof.h: Same.
21728 * var-tracking.c (use_narrower_mode): Same.
21729 (prepare_call_arguments): Same.
21730 (vt_expand_loc_callback): Same.
21731 (resolve_expansions_pending_recursion): Same.
21732 (vt_expand_loc): Same.
21733 * varasm.c (const_hash_1): Same.
21734 (compare_constant): Same.
21735 (tree_output_constant_def): Same.
21736 (simplify_subtraction): Same.
21737 (get_pool_constant): Same.
21738 (output_constant_pool_2): Same.
21739 (output_constant_pool_1): Same.
21740 (mark_constants_in_pattern): Same.
21741 (mark_constant_pool): Same.
21742 (get_section_anchor): Same.
21743 * vr-values.c (compare_range_with_value): Same.
21744 (vr_values::extract_range_from_phi_node): Same.
21745 * vr-values.h: Same.
21746 * web.c (unionfind_union): Same.
21747 * wide-int.h: Same.
21748
21749 2019-07-09 Martin Sebor <msebor@redhat.com>
21750
21751 PR c++/61339
21752 * align.h: Change class-key from class to struct and vice versa
21753 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21754 * alloc-pool.h: Same.
21755 * asan.c (shadow_mem_size): Same.
21756 * auto-profile.c: Same.
21757 * basic-block.h: Same.
21758 * bitmap.h: Same.
21759 * cfgexpand.c (set_rtl): Same.
21760 (expand_one_stack_var_at): Same.
21761 * cfghooks.h: Same.
21762 * cfgloop.h: Same.
21763 * cgraph.h: Same.
21764 * config/i386/i386.h: Same.
21765 * df-problems.c (df_print_bb_index): Same.
21766 * df-scan.c: Same.
21767 * df.h (df_single_use): Same.
21768 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21769 (layout::annotation_line_showed_range_p): Same.
21770 (get_printed_columns): Same.
21771 (correction::ensure_terminated): Same.
21772 (line_corrections::~line_corrections): Same.
21773 * dojump.h: Same.
21774 * dse.c: Same.
21775 * dump-context.h: Same.
21776 * dumpfile.h: Same.
21777 * dwarf2out.c: Same.
21778 * edit-context.c: Same.
21779 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21780 * flags.h: Same.
21781 * function.c (assign_stack_local): Same.
21782 * function.h: Same.
21783 * gcc.c: Same.
21784 * gcov.c (block_info::block_info): Same.
21785 * genattrtab.c: Same.
21786 * genextract.c: Same.
21787 * genmatch.c (comparison_code_p): Same.
21788 (id_base::id_base): Same.
21789 (decision_tree::print): Same.
21790 * genoutput.c: Same.
21791 * genpreds.c (write_one_predicate_function): Same.
21792 * genrecog.c (validate_pattern): Same.
21793 (find_operand_positions): Same.
21794 (optimize_subroutine_group): Same.
21795 (merge_pattern_transition::merge_pattern_transition): Same.
21796 (merge_pattern_info::merge_pattern_info): Same.
21797 (merge_state_result::merge_state_result): Same.
21798 (merge_into_state): Same.
21799 * gensupport.c: Same.
21800 * gensupport.h: Same.
21801 * ggc-common.c (init_ggc_heuristics): Same.
21802 * ggc-tests.c (test_union): Same.
21803 * gimple-loop-interchange.cc (dump_induction): Same.
21804 * gimple-loop-versioning.cc: Same.
21805 * gimple-match.h (gimple_match_cond::any_else): Same.
21806 * gimple-ssa-backprop.c: Same.
21807 * gimple-ssa-sprintf.c: Same.
21808 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21809 Same.
21810 (store_immediate_info::store_immediate_info): Same.
21811 (merged_store_group::apply_stores): Same.
21812 (get_location_for_stmts): Same.
21813 * gimple-ssa-strength-reduction.c: Same.
21814 * gimple-ssa-warn-alloca.c: Same.
21815 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21816 * godump.c (go_type_decl): Same.
21817 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21818 * hash-map.h: Same.
21819 * hash-set-tests.c (test_set_of_strings): Same.
21820 * hsa-brig.c: Same.
21821 * hsa-common.h: Same.
21822 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21823 * input.c (assert_loceq): Same.
21824 * input.h: Same.
21825 * ipa-cp.c: Same.
21826 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21827 * ipa-fnsummary.h: Same.
21828 * ipa-inline.h: Same.
21829 * ipa-prop.h: Same.
21830 * ipa-split.c (visit_bb): Same.
21831 * ira-int.h (minmax_set_iter_next): Same.
21832 * loop-invariant.c: Same.
21833 * loop-iv.c: Same.
21834 * lra-eliminations.c: Same.
21835 * lra-int.h: Same.
21836 * lra-lives.c (mark_regno_dead): Same.
21837 * lra-remat.c: Same.
21838 * lra-spills.c: Same.
21839 * lto-streamer.h: Same.
21840 * mem-stats.h: Same.
21841 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21842 * omp-low.c (omp_clause_aligned_alignment): Same.
21843 * optabs-query.h (get_vcond_eq_icode): Same.
21844 * optabs.h: Same.
21845 * opts.c (wrap_help): Same.
21846 * poly-int.h: Same.
21847 * predict.c (predict_paths_leading_to_edge): Same.
21848 * pretty-print.h: Same.
21849 * profile-count.h: Same.
21850 * read-md.h: Same.
21851 * read-rtl-function.c: Same.
21852 * ree.c: Same.
21853 * reginfo.c: Same.
21854 * regrename.c: Same.
21855 * regrename.h: Same.
21856 * reload.h: Same.
21857 * rtl-iter.h: Same.
21858 * rtl.h (costs_add_n_insns): Same.
21859 * sanopt.c: Same.
21860 * sched-int.h: Same.
21861 * sel-sched-ir.h: Same.
21862 * selftest.h: Same.
21863 * sese.h (vec_find): Same.
21864 * stmt.c: Same.
21865 * target-globals.h: Same.
21866 * tree-affine.c (aff_combination_find_elt): Same.
21867 * tree-affine.h: Same.
21868 * tree-data-ref.h: Same.
21869 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21870 * tree-predcom.c: Same.
21871 * tree-scalar-evolution.c (find_var_scev_info): Same.
21872 * tree-ssa-alias.h: Same.
21873 * tree-ssa-ccp.c: Same.
21874 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21875 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21876 (rewrite_mem_refs): Same.
21877 (execute_sm_if_changed): Same.
21878 (hoist_memory_references): Same.
21879 * tree-ssa-loop-ivopts.c (operator<=): Same.
21880 * tree-ssa-loop.h: Same.
21881 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21882 * tree-ssa-structalias.c: Same.
21883 * tree-switch-conversion.h (cluster::cluster): Same.
21884 (simple_cluster::simple_cluster): Same.
21885 * tree-vect-patterns.c (type_conversion_p): Same.
21886 * tree-vectorizer.c (dump_stmt_cost): Same.
21887 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21888 * tree.c (protected_set_expr_location): Same.
21889 * tree.h (desired_pro_or_demotion_p): Same.
21890 (fndecl_built_in_p): Same.
21891 * unique-ptr-tests.cc: Same.
21892 * var-tracking.c (delete_variable_part): Same.
21893 * varasm.c (assemble_real): Same.
21894 (tree_output_constant_def): Same.
21895 * vec.c: Same.
21896 * wide-int-bitmask.h: Same.
21897 * wide-int.h (decompose): Same.
21898
21899 2019-07-09 Richard Biener <rguenther@suse.de>
21900
21901 PR tree-optimization/91114
21902 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21903 find a vector type isn't fatal.
21904
21905 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21906
21907 * config/aarch64/aarch64-simd.md
21908 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21909 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21910 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21911 (*aarch64_crypto_aese_fused,
21912 *aarch64_crypto_aesd_fused): Update to new definition.
21913 * config/aarch64/aarch64.c
21914 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21915
21916 2019-07-09 Richard Biener <rguenther@suse.de>
21917
21918 * gimple-match.h (gimple_match_op::resimplify): New.
21919 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21920 gimple_resimplify4, gimple_resimplify5): Remove.
21921 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21922 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21923 Make static.
21924 (gimple_match_op::resimplify): New.
21925 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21926 according to availability. Use gimple_match_op::resimplify.
21927
21928 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21929
21930 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21931
21932 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21933
21934 * config/arm/crypto.md:
21935 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21936 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21937 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21938 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21939 * config/arm/arm.c
21940 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21941 * config/arm/aarch-common-protos.h
21942 (aarch_crypto_can_dual_issue): Remove.
21943 * config/arm/aarch-common.c
21944 (aarch_crypto_can_dual_issue): Likewise.
21945 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21946 * config/arm/cortex-a53.md: Likewise.
21947 * config/arm/cortex-a57.md: Likewise.
21948 * config/arm/iterators.md:
21949 (CRYPTO_BINARY): Redefine.
21950 (CRYPTO_UNARY): Removed.
21951 (CRYPTO_AES, CRYPTO_AESMC): New.
21952
21953 2019-07-09 Richard Biener <rguenther@suse.de>
21954
21955 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21956 (vn_reference_lookup_3): If the main ref has no access path recorded
21957 but orig_ref has use it to do access-path based disambiguation.
21958 (vn_reference_lookup_pieces): Adjust.
21959 (vn_reference_lookup): Pass down original ref if we valueized.
21960
21961 2019-07-09 Martin Liska <mliska@suse.cz>
21962
21963 * doc/extend.texi: Document influence on loop
21964 optimizers.
21965
21966 2019-07-09 Martin Liska <mliska@suse.cz>
21967
21968 * lto-compress.c (lto_normalized_zstd_level): Do not use
21969 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21970 of libzstd. One can use 0 as a default compression level.
21971
21972 2019-07-09 Martin Liska <mliska@suse.cz>
21973
21974 * doc/invoke.texi: Add link from -fprofile-dir option.
21975 Use better wording for 'gcno filename'.
21976
21977 2019-07-08 Martin Sebor <msebor@redhat.com>
21978
21979 PR middle-end/71924
21980 PR middle-end/90549
21981 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21982 comment.
21983 (args_loc_t): New type.
21984 (args_loc_t, locmap_t): same.
21985 (diag_returned_locals): New function.
21986 (is_addr_local): Same.
21987 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21988 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21989 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21990
21991 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21992
21993 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21994 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21995 and casts in offset when different, both through gimple stmts
21996 and through trees. Rewritten using loops to minimize code duplication
21997 for each operand.
21998
21999 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
22000
22001 * emit-rtl.c (set_insn_locations): New function moved from...
22002 * function.c (set_insn_locations): ...here.
22003 * ira-emit.c (emit_moves): Propagate location of the first instruction
22004 to the inserted move instructions.
22005 * reg-stack.c (compensate_edge): Set the location if the sequence is
22006 inserted on the edge.
22007 * rtl.h (set_insn_locations): Declare.
22008
22009 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22010
22011 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
22012 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
22013 .machine string.
22014
22015 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22016
22017 PR rtl-optimization/88233
22018 * common.opt (fsplit-wide-types-early): New option.
22019 * common/config/rs6000/rs6000-common.c
22020 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
22021 OPT_LEVELS_ALL.
22022 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
22023 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
22024 flag_split_wide_types_early.
22025 (pass_data_lower_subreg3): New.
22026 (pass_lower_subreg3): New.
22027 (make_pass_lower_subreg3): New.
22028 * passes.def (pass_lower_subreg2): Move after the loop passes.
22029 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
22030 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
22031 the pass pipeline; its previous place is taken by ...
22032 (make_pass_lower_subreg3): ... this.
22033
22034 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22035
22036 * config/s390/s390.c (s390_shift_truncation_mask): Define.
22037 (TARGET_SHIFT_TRUNCATION_MASK): Define.
22038
22039 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22040
22041 * config/s390/constraints.md: Add new jsc constraint.
22042 * config/s390/predicates.md: New predicates.
22043 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
22044 * config/s390/s390.c (s390_valid_shift_count): New function.
22045 (print_shift_count_operand): Use s390_valid_shift_count.
22046 (print_operand): Likewise.
22047 * config/s390/s390.md: Use new predicate.
22048 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
22049 * config/s390/vector.md: Use new predicate.
22050
22051 2019-07-08 Andrew Waterman <andrew@sifive.com>
22052 Jim Wilson <jimw@sifive.com>
22053
22054 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
22055 bitsize instead of BITS_PER_WORD.
22056
22057 2019-07-08 Martin Liska <mliska@suse.cz>
22058
22059 * collect2.c (defined): Revert to before r254460.
22060 (scan_prog_file): Revert to before r254460.
22061
22062 2019-07-08 Richard Biener <rguenther@suse.de>
22063
22064 PR tree-optimization/83518
22065 * tree-ssa-sccvn.c: Include splay-tree.h.
22066 (struct pd_range, struct pd_data): New.
22067 (struct vn_walk_cb_data): Add data to track partial definitions.
22068 (vn_walk_cb_data::~vn_walk_cb_data): New.
22069 (vn_walk_cb_data::push_partial_def): New.
22070 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
22071 (vn_reference_lookup_2): When partial defs are registered give up.
22072 (vn_reference_lookup_3): Track partial defs for memset and
22073 constructor zeroing and for defs from constants.
22074
22075 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22076
22077 * doc/install.texi (bootstrap-Og): Document.
22078
22079 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22080
22081 * config/riscv/pic.md (*local_pic_load_s<mode>)
22082 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
22083 referenced by <mode>, giving...
22084 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
22085 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
22086 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
22087 use <X:MODE> for the mode attribute.
22088
22089 2019-07-07 Jeff Law <law@redhat.com>
22090
22091 PR tree-optimization/91090
22092 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
22093 in handling of ranges to simplify switch statements.
22094
22095 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22096
22097 * config/darwin.c (darwin_override_options): Make a final check on PIC
22098 options.
22099
22100 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22101
22102 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
22103 on for kernel code.
22104
22105 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22106
22107 PR target/91068
22108 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
22109 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
22110 instead of matching them to "l" output operands.
22111
22112 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22113
22114 * config/mips/mips.c (mips_split_move): Zero-initialize addr
22115 and check whether addr.reg is nonnull before using it.
22116
22117 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22118
22119 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
22120 ctx->for_simd_scan_phase simd copy the outer var to the privatized
22121 variable(s). For conditional lastprivate look through outer
22122 GIMPLE_OMP_SCAN context.
22123 (lower_omp_1): For conditional lastprivate look through outer
22124 GIMPLE_OMP_SCAN context.
22125
22126 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
22127 member to combined_into_simd_safelen1.
22128 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
22129 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
22130 clauses if ctx->combined_into_simd_safelen1 put statements after the
22131 predicate conditionalized block rather than into it.
22132
22133 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22134
22135 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
22136 operand 1.
22137 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
22138 Make the choice of <mode> explicit, giving...
22139 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
22140
22141 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22142
22143 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
22144 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
22145 of .md attributes.
22146 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
22147 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
22148 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
22149 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
22150 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
22151 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
22152 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
22153 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
22154 (*avx512f_scatterdi<mode>): Likewise.
22155 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
22156
22157 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22158
22159 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
22160 specify the mode iterator referenced by <mode>, giving...
22161 (*push1_h8300hs_<QHI:mode>): ...this.
22162
22163 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22164
22165 * config/gcn/gcn-valu.md
22166 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
22167 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
22168 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
22169 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
22170 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
22171 but using the _exec comparison patterns.
22172 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
22173 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
22174 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
22175 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
22176 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
22177 but using the _exec comparison patterns.
22178
22179 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22180
22181 * config/arm/sync.md
22182 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
22183 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
22184 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
22185 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
22186 <SIDI:cas_cmp_str>.
22187
22188 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22189
22190 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
22191 (maybe_lookup_ctx): Add forward declaration.
22192 (omp_find_scan): Likewise. Walk into body of simd if composited
22193 with worksharing loop.
22194 (scan_omp_simd_scan): New function.
22195 (scan_omp_1_stmt): Call it.
22196 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
22197 ctx->for_simd_scan_phase.
22198 (lower_rec_input_clauses): Do much less work for inscan reductions
22199 in ctx->for_simd_scan_phase is_simd regions.
22200 (lower_omp_scan): Set is_simd also on simd constructs composited
22201 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
22202 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
22203 emit their body after in simd constructs composited with worksharing
22204 loop.
22205 (lower_omp_for_scan): Handle worksharing loop composited with simd.
22206
22207 * omp-low.c (omp_find_scan): Make static.
22208 (lower_omp_for_scan): Fix order of merge arguments in input phase of
22209 the second loop, var2 represents the first partial sum and so needs
22210 to go before rprivb[ivar].
22211
22212 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
22213
22214 * config/rs6000/rs6000-logue.c: Remove unused code.
22215
22216 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22217
22218 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
22219
22220 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
22221
22222 PR target/90712
22223 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
22224 check with a frame laid out check.
22225
22226 2019-07-05 Richard Biener <rguenther@suse.de>
22227
22228 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
22229 when comparing against a store with possibly the same value.
22230
22231 2019-07-05 Richard Biener <rguenther@suse.de>
22232
22233 PR tree-optimization/91091
22234 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
22235 (walk_non_aliased_vuses): Likewise.
22236 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
22237 (get_continuation_for_phi): New tbaa_p parameter and pass
22238 it down.
22239 (walk_non_aliased_vuses): Likewise.
22240 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
22241 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
22242 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
22243 Likewise.
22244 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
22245 (adjust_offsets_for_equal_base_address): New function.
22246 (vn_reference_lookup_3): Use it to catch more base equivalences.
22247 Handle and pass down tbaa_p flag.
22248 (vn_reference_lookup_pieces): Adjust.
22249 (vn_reference_lookup): Remove alias-set altering, instead pass
22250 down false as tbaa_p.
22251
22252 2019-07-05 Richard Biener <rguenther@suse.de>
22253
22254 PR tree-optimization/91091
22255 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
22256 accesses can happen with -fno-strict-aliasing.
22257
22258 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
22259
22260 * tree-ssa-alias.c (alias_stats): Add
22261 nonoverlapping_component_refs_since_match_p_must_overlap.
22262 (dump_alias_stats): Print it.
22263 (nonoverlapping_component_refs_since_match_p): Add early exit.
22264 (nonoverlapping_component_refs_p): Do not account early exit.
22265
22266 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22267
22268 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
22269 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
22270 (emit_eh_dispatch): Delete.
22271 (lower_catch): Emit the eh_dispatch manually and set the location of
22272 the first catch statement onto it.
22273 (lower_eh_filter): Emit the eh_dispatch manually and set location.
22274 (lower_eh_dispatch): Propagate location.
22275 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
22276 (eliminate_build): Likewise.
22277
22278 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22279
22280 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
22281 phi nodes if possible.
22282 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
22283 location info on the newly created statement.
22284 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
22285 newly created increment if needed.
22286
22287 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22288
22289 PR middle-end/78884
22290 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
22291 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
22292 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
22293 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
22294 ctx->add_safelen1 is set.
22295
22296 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
22297 GOMP_loop_start at the start of second worksharing loop in a scan.
22298 For nowait, don't emit GOMP_loop_end_nowait at the end of first
22299 worksharing loop in a scan even if there are conditional lastprivates,
22300 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
22301
22302 2019-07-04 Jan Hubicka <jh@suse.cz>
22303
22304 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
22305 Fix check for match in the ref walk.
22306
22307 2019-07-04 Martin Liska <mliska@suse.cz>
22308
22309 * tree-ssa-loop-niter.c
22310 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
22311 (estimate_numbers_of_iterations):
22312 Support __builtin_expect_with_probability for analysis
22313 of # of loop iterations.
22314
22315 2019-07-04 Alexandre Oliva <oliva@adacore.com>
22316
22317 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
22318 * except.c: Likewise.
22319 * expr.c (expand_expr_real_1): Reject it.
22320 * gimplify.c (gimplify_expr): Gimplify it, within
22321 TRY_FINALLY_EXPR.
22322 * tree-dump.c (dequeue_and_dump): Dump it.
22323 * tree-pretty-print.c (dump_generic_node): Likewise.
22324 * tree.c (block_may_fallthru): Handle it.
22325 * tree.def (EH_ELSE_EXPR): Introduce it.
22326 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
22327 with GIMPLE_EH_ELSE as try/finally/else.
22328
22329 2019-07-04 Richard Biener <rguenther@suse.de>
22330
22331 PR ipa/91062
22332 * tree-pass.h (execute_all_ipa_transforms): Add a flag
22333 parameter whether to disable GC collection.
22334 * passes.c (execute_one_ipa_transform_pass): Likewise, and
22335 honor it.
22336 (execute_all_ipa_transforms): Likewise and pass it down.
22337 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
22338 collection from applying IPA transforms.
22339 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
22340 from applying IPA transforms.
22341
22342 2019-07-04 Richard Biener <rguenther@suse.de>
22343
22344 PR tree-optimization/90911
22345 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
22346 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
22347 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22348 scalar_loop_scaling.
22349 (vect_transform_loop): Scale scalar loop profile if needed.
22350 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
22351 the loop copy from if-conversion adjust edge probabilities
22352 and scale the vectorized loop body profile, queue the scalar
22353 profile for updating after peeling.
22354
22355 2019-07-04 Jan Hubicka <jh@suse.cz>
22356
22357 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
22358 parameters; return early for must-alias.
22359 (indirect_ref_may_alias_decl_p): Likewise; when establishing
22360 outer types match, try nonoverlapping_component_refs
22361 if must-alias is not obvious.
22362 (indirect_refs_may_alias_p): Likewise.
22363 (refs_may_alias_p_2): Likewise.
22364
22365 2019-07-04 Richard Biener <rguenther@suse.de>
22366
22367 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
22368 argument.
22369 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22370 globals into...
22371 (struct vn_walk_cb_data): New callback data struct.
22372 (vn_reference_lookup_2): Adjust.
22373 (vn_reference_lookup_3): Likewise.
22374 (vn_reference_lookup_pieces): Likewise.
22375 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22376 (visit_reference_op_load): Adjust.
22377
22378 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22379
22380 PR tree-optimization/91063
22381 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22382 stmt from stmts sequence before calling vect_init_vector_1.
22383 Formatting fix.
22384
22385 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22386
22387 PR target/88833
22388 * fwprop.c (reg_single_def_p): New function.
22389 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22390 (forward_propagate_into): New parameter reg_prop_only
22391 with default value false.
22392 Propagate def's src into loop only if SET_SRC and SET_DEST
22393 of def_set have single definitions.
22394 Likewise if reg_prop_only is set to true.
22395 (fwprop): New param fwprop_addr_p.
22396 Integrate fwprop_addr into fwprop.
22397 (fwprop_addr): Remove.
22398 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22399 to true.
22400 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22401 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22402 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22403
22404 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22405
22406 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22407 in worksharing loop scans.
22408
22409 PR tree-optimization/91074
22410 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22411 temporary.
22412
22413 PR rtl-optimization/90756
22414 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22415 for VECTOR_TYPE_P.
22416
22417 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
22418
22419 * config/aarch64/aarch64.md: Remove redundant constraints from
22420 define_expand but keep some patterns untouched if they are
22421 specially selected by TARGET_SECONDARY_RELOAD hook.
22422 * config/aarch64/aarch64-sve.md: Likewise.
22423 * config/aarch64/atomics.md: Remove redundant constraints from
22424 define_expand.
22425 * config/aarch64/aarch64-simd.md: Likewise.
22426
22427 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22428
22429 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22430 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22431 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22432 clauses.
22433 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22434 DARWIN_NOPIE_SPEC.
22435
22436 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22437
22438 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22439 (STARTFILE_SPEC): Split crt3 into a separate spec.
22440 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22441 (DARWIN_CRT2_SPEC): New.
22442 (DARWIN_CRT3_SPEC): New.
22443 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22444 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22445 (DARWIN_CRT3_SPEC): New.
22446
22447 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22448
22449 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22450 Change the RTL attribute "length" from "4" to "*" to allow the
22451 length attribute to be adjusted automatically for prefixed load,
22452 store, and add immediate instructions.
22453 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22454 Likewise.
22455 (extendsi<mode>2, EXTSI iterator): Likewise.
22456 (movsi_internal1): Likewise.
22457 (movsi_from_sf): Likewise.
22458 (movdi_from_sf_zero_ext): Likewise.
22459 (mov<mode>_internal): Likewise.
22460 (movcc_internal1, QHI iterator): Likewise.
22461 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22462 (movsf_from_si): Likewise.
22463 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22464 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22465 (mov<mode>, FMOVE128 iterator): Likewise.
22466 (movdi_internal64): Likewise.
22467 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22468 Likewise.
22469 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22470 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22471 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22472 (vsx_splat_v4sf): Likewise.
22473
22474 2019-07-03 Mark Wielaard <mark@klomp.org>
22475
22476 PR debug/90981
22477 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22478 DW_AT_addr_base if there is actually a .debug_addr section with
22479 addresses.
22480 (output_addr_table): Add DWARF5 table header generation here after
22481 checking there are actually any addresses from...
22482 (dwarf2out_finish): ...here.
22483
22484 2019-07-03 Richard Biener <rguenther@suse.de>
22485
22486 PR middle-end/91069
22487 * match.pd (vec_perm -> bit_insert): Fix element read from
22488 first vector.
22489
22490 2019-07-03 Martin Liska <mliska@suse.cz>
22491
22492 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22493 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22494 condition.
22495 * generic-match-head.c: Include dbgcnt.h.
22496 * gimple-match-head.c: Likewise.
22497
22498 2019-07-03 Martin Liska <mliska@suse.cz>
22499
22500 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22501 (GCOV_COUNTER_V_TOPN): New.
22502 (GCOV_COUNTER_V_INDIR): Use _topn.
22503 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22504 (GCOV_TOPN_VALUES): New.
22505 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22506 (GCOV_TOPN_VALUES_COUNTERS): New.
22507 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22508 * tree-profile.c:
22509 (gimple_init_gcov_profiler): Rename variables from one_value
22510 to topn_values.
22511 (gimple_gen_one_value_profiler): Remove.
22512 (gimple_gen_topn_values_profiler): New function.
22513 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22514 names instead of SINGLE_VALUE.
22515 (stream_out_histogram_value): Likewise.
22516 (stream_in_histogram_value): Likewise.
22517 (get_most_common_single_value): Likewise.
22518 (gimple_divmod_fixed_value_transform): Likewise.
22519 (gimple_stringops_transform): Likewise.
22520 (gimple_divmod_values_to_profile): Likewise.
22521 (gimple_stringops_values_to_profile): Likewise.
22522 (gimple_find_values_to_profile): Likewise.
22523 * value-prof.h (enum hist_type): Rename to TOPN.
22524 (gimple_gen_one_value_profiler): Remove.
22525 (gimple_gen_topn_values_profiler): New.
22526
22527 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22528
22529 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22530 if it has the DW_AT_data_member_location attribute.
22531
22532 2019-07-03 Richard Biener <rguenther@suse.de>
22533
22534 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22535 dumping.
22536
22537 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22538
22539 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22540 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22541 (tlsdesc_small_sve_<mode>): Likewise.
22542
22543 2019-07-03 Martin Liska <mliska@suse.cz>
22544
22545 * Makefile.in: Define ZSTD_LIB.
22546 * common.opt: Adjust compression level
22547 to support also zstd levels.
22548 * config.in: Regenerate.
22549 * configure: Likewise.
22550 * configure.ac: Add --with-zstd and --with-zstd-include options
22551 and detect ZSTD.
22552 * doc/install.texi: Mention zstd dependency.
22553 * gcc.c: Print supported LTO compression algorithms.
22554 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22555 (lto_compression_zstd): Likewise.
22556 (lto_uncompression_zstd): Likewise.
22557 (lto_end_compression): Dispatch in between zlib and zstd.
22558 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22559 (lto_uncompression_zlib): Make it static.
22560 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22561 * lto-section-in.c (lto_get_section_data): Pass info
22562 about used compression.
22563 * lto-streamer-out.c: By default use zstd when possible.
22564 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22565 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22566
22567 2019-07-03 Martin Liska <mliska@suse.cz>
22568
22569 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22570 * lto-section-out.c (lto_destroy_simple_output_block): Never
22571 compress LTO_section_lto section.
22572 * lto-streamer-out.c (produce_asm): Do not set major_version
22573 and minor_version.
22574 (lto_output_toplevel_asms): Likewise.
22575 (produce_lto_section): New function.
22576 (lto_output): Call produce_lto_section.
22577 (lto_write_mode_table): Do not set major_version and
22578 minor_version.
22579 (produce_asm_for_decls): Likewise.
22580 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22581 type.
22582 (struct lto_header): Remove.
22583 (struct lto_section): New struct.
22584 (struct lto_simple_header): Do not inherit from lto_header.
22585 (struct lto_file_decl_data): Add lto_section_header field.
22586
22587 2019-07-03 Martin Liska <mliska@suse.cz>
22588
22589 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22590 dead assignemts.
22591 * reg-stack.c (check_asm_stack_operands): Likewise.
22592 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22593 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22594 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22595 force_expand_binop.
22596
22597 2019-07-03 Martin Liska <mliska@suse.cz>
22598
22599 PR tree-optimization/90892
22600 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22601 in string constants.
22602
22603 2019-07-03 Martin Liska <mliska@suse.cz>
22604
22605 PR middle-end/90899
22606 * multiple_target.c (create_dispatcher_calls): Add to comdat
22607 group only if set for ifunc.
22608
22609 2019-07-03 Martin Liska <mliska@suse.cz>
22610
22611 PR target/88056
22612 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22613 Define local_object_name in outer scope in order to handle
22614 use-after-scope issue.
22615
22616 2019-07-03 Martin Liska <mliska@suse.cz>
22617
22618 * common.opt: Add fprofile-note.
22619 * coverage.c (coverage_init): Append the option
22620 to bbg_file_name.
22621 * doc/invoke.texi: Document -fprofile-note.
22622
22623 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22624
22625 PR tree-optimization/91033
22626 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22627 vect_analyze_data_refs): Add bool * arguments.
22628 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22629 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22630 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22631 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22632 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22633 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22634 vect_analyze_data_refs caller.
22635
22636 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22637 clause.
22638 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22639 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22640 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22641 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22642 OMP_CLAUSE__SCANTEMP_ entry.
22643 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22644 * tree-pretty-print.c (dump_omp_clause): Likewise.
22645 * tree-nested.c (convert_nonlocal_omp_clauses,
22646 convert_local_omp_clauses): Likewise.
22647 * omp-general.h (struct omp_for_data): Add have_scantemp and
22648 have_nonctrl_scantemp members.
22649 * omp-general.c (omp_extract_for_data): Initialize them.
22650 * omp-low.c (struct omp_context): Add scan_exclusive member.
22651 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22652 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22653 ctx->scan_exclusive.
22654 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22655 of !ctx->scan_inclusive.
22656 (lower_rec_input_clauses): Simplify gimplification of dtors using
22657 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22658 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22659 loops. Don't add barrier for reduction_omp_orig_ref if
22660 ctx->scan_??xclusive.
22661 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22662 (lower_omp_scan): Use ctx->scan_exclusive instead
22663 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22664 reductions. Use new_vard != new_var instead of repeated
22665 omp_is_reference calls.
22666 (omp_find_scan, lower_omp_for_scan): New functions.
22667 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22668 inscan reductions.
22669 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22670 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22671 and fd->have_scantemp.
22672
22673 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22674 on worksharing loop propagate it as shared clause to containing
22675 combined parallel.
22676
22677 * omp-expand.c (expand_omp_for_static_nochunk,
22678 expand_omp_for_static_chunk): For nowait worksharing loop with
22679 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22680 at the end.
22681
22682 2019-07-02 qing zhao <qing.zhao@oracle.com>
22683
22684 PR preprocessor/90581
22685 * doc/cppopts.texi: Add document for -fmax-include-depth.
22686 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22687
22688 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22689
22690 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22691 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22692 (mmx_packssdw): Ditto.
22693 (mmx_punpckhbw): Ditto.
22694 (mmx_punpcklbw): Ditto.
22695 (mmx_punpckhwd): Ditto.
22696 (mmx_punpcklwd): Ditto.
22697 (mmx_punpckhdq): Ditto.
22698 (mmx_punpckldq): Ditto.
22699 (*vec_dupv4hi): Ditto.
22700 (*vec_dupv2si): Ditto.
22701 (mmx_pmovmskb): Ditto.
22702 * config/i386/sse.md (sse_cvtpi2ps): Use
22703 TARGET_SSE2 && SSE_REG_P in split condition.
22704 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22705 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22706 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22707 (ssse3_pshufbv8qi3): Ditto.
22708 (ssse3_palignrdi): Ditto.
22709
22710 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22711
22712 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22713 with inlined save and restore.
22714
22715 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22716
22717 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22718 to be inserted on single successor edge of the entry block. Then call
22719 commit_edge_insertions instead of inserting the instructions manually.
22720 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22721 RTL expansion and rebuild jump labels chain.
22722
22723 2019-07-02 Richard Biener <rguenther@suse.de>
22724
22725 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22726 TI_CHREC_KNOWN.
22727 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22728 Define here.
22729 * tree.c (build_common_tree_nodes): Initialize them.
22730 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22731 Make declarations comments.
22732 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22733 chrec_known): Remove definitions.
22734 (initialize_scalar_evolutions_analyzer): Remove.
22735 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22736 * tree-streamer.c (preload_common_nodes): Do not preload
22737 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22738
22739 2019-07-02 Jan Hubicka <jh@suse.cz>
22740
22741 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22742 sanity check.
22743
22744 2019-07-02 Jan Hubicka <jh@suse.cz>
22745
22746 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22747 to ..
22748 (nonoverlapping_component_refs_since_match_p): ... this one;
22749 handle also non-decl bases; return -1 if search gave up.
22750 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22751 nonoverlapping_component_refs_of_decl_p_no_alias to
22752 nonoverlapping_component_refs_since_match_p_may_alias,
22753 nonoverlapping_component_refs_since_match_p_no_alias.
22754 (dump_alias_stats): Update dumping.
22755 (aliasing_matching_component_refs_p): Break out from ...;
22756 dispatch to nonoverlapping_component_refs_for_decl_p
22757 and nonoverlapping_component_refs_since_match_p.
22758 (aliasing_component_refs_p): ... here; call
22759 nonoverlapping_component_refs_p in scenarios where we can not
22760 precisely determine base match.
22761 (decl_refs_may_alias_p): Use
22762 nonoverlapping_component_refs_since_match_p.
22763 (indirect_ref_may_alias_decl_p): Do not call
22764 nonoverlapping_component_refs_p.
22765 (indirect_refs_may_alias_p): Likewise.
22766
22767 2019-07-02 Jan Hubicka <jh@suse.cz>
22768
22769 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22770 to clobber of return value.
22771
22772 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22773
22774 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22775 for is_neon_type instructions that have not already been categorized.
22776
22777 2019-07-02 Richard Biener <rguenther@suse.de>
22778
22779 PR tree-optimization/58483
22780 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22781 for MEM_REF base hashing.
22782 (equal_mem_array_ref_p): Likewise for base comparison.
22783
22784 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22785
22786 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22787 parameterized name.
22788 (signbit<mode>2): Use that name. Simplify.
22789
22790 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22791
22792 PR middle-end/66726
22793 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22794 Tune heuristic from PR71016 to allow MIN / MAX.
22795
22796 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22797
22798 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22799 parameterized name.
22800 (abs<mode>2): Use that name. Simplify.
22801
22802 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22803
22804 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22805 parameterized name.
22806 (neg<mode>2): Use that name. Simplify.
22807
22808 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22809
22810 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22811 name.
22812 (abs<mode>2): Use that name. Simplify.
22813
22814 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22815
22816 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22817 name.
22818 (neg<mode>2): Use that name. Simplify.
22819
22820 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22821
22822 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22823 ("enabled" attribute): Handle sse_noavx isa attribute.
22824 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22825 Use TARGET_SSE && SSE_REGNO_P in split condition.
22826 (*vec_dupv2sf): Ditto.
22827
22828 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22829
22830 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22831 name.
22832 (floatsi<mode>2): Use that name. Simplify.
22833
22834 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22835
22836 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22837 parameterized name.
22838 (extenddf<mode>2_vsx): Make this a parameterized name.
22839 (extenddf<mode>2): Use those names. Simplify.
22840
22841 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22842
22843 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22844 name.
22845 (eh_return): Use that name. Simplify.
22846
22847 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22848
22849 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22850 (doloop_end): Use that name. Simplify.
22851
22852 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22853
22854 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22855 parameterized name.
22856 (indirect_jump): Use that name. Simplify.
22857
22858 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22859
22860 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22861 parameterized name.
22862 (abs<mode>2): Use that name. Simplify.
22863
22864 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22865
22866 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22867 parameterized name.
22868 (fix_trunc<mode>si2): Use that name. Simplify.
22869
22870 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22871
22872 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22873 (allocate_stack): Use that name. Simplify.
22874
22875 2019-07-01 Martin Sebor <msebor@redhat.com>
22876
22877 PR middle-end/90923
22878 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22879 (hash_map::get_or_insert): Same. Reformat comment.
22880 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22881 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22882 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22883 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22884 (hash_table::hash_table (const hash_table&)): Use copy ctor
22885 instead of assignment to copy elements.
22886
22887 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22888 John David Anglin <danglin@gcc.gnu.org>
22889
22890 PR target/90963
22891 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22892 using saved frame pointer.
22893
22894 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22895
22896 PR middle-end/64242
22897 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22898 Add frame clobber and schedule blockage.
22899
22900 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22901
22902 * doc/invoke.texi (Link Options): Further editorial changes to
22903 -flinker-output docs.
22904
22905 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22906
22907 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22908 Load both operands of a PLUS into registers separately.
22909
22910 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22911
22912 * config/s390/vector.md: Fix shift count operand printing.
22913
22914 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22915
22916 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22917
22918 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22919
22920 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22921 Use recog_data to test for an output operand.
22922
22923 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22924
22925 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22926 exclude any others that are disparaged or that are bound to need
22927 a reload or spill.
22928 (ira_get_dup_out_num): Expand comment.
22929
22930 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22931
22932 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22933 constraint string for each operand/alternative combo. Only handle
22934 '%' at the start of constraint strings, and look for it outside
22935 the main loop.
22936
22937 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22938
22939 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22940 alternative_mask instead of HARD_REG_SET to represent a
22941 bitmask of alternatives.
22942 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22943 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22944
22945 2019-07-01 Martin Liska <mliska@suse.cz>
22946
22947 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22948 use () for a constructor call.
22949 (test_applying_fixits_line_out_of_range): Likewise.
22950 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22951 argument.
22952 (free_page): Likewise.
22953
22954 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22955
22956 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22957 parameter names to match usage (no functional change).
22958 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22959
22960 2019-07-01 Richard Biener <rguenther@suse.de>
22961
22962 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22963 pass parameter.
22964 (pass_fre::execute): Honor it.
22965 * passes.def: Adjust pass_fre invocations to allow iterating,
22966 add non-iterating pass_fre before late threading/dom.
22967
22968 2019-07-01 Richard Biener <rguenther@suse.de>
22969
22970 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22971 TARGET_MEM_REF handling to also handle address-taken ones.
22972
22973 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22974
22975 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22976 hardware attributes): Document avx512vp2intersect.
22977
22978 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22979
22980 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22981 (abs<mode>2): New expander.
22982 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22983 Use CODE_FOR_ssse3_absv8qi2.
22984 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22985 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22986
22987 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22988
22989 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22990 to sse, sse_noavx and avx. Update all uses.
22991
22992 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22993
22994 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22995 (*mmx_<plusminus_insn><mode>3): Ditto.
22996 (*mmx_mulv4hi3"): Ditto.
22997 (*mmx_smulv4hi3_highpart): Ditto.
22998 (*mmx_umulv4hi3_highpart): Ditto.
22999 (*mmx_pmaddwd): Ditto.
23000 (*sse2_umulv1siv1di3): Ditto.
23001 (*mmx_<code>v4hi3): Ditto.
23002 (*mmx_<code>v8qi3): Ditto.
23003 (mmx_ashr<mode>3): Ditto.
23004 ("mmx_<shift_insn><mode>3): Ditto.
23005 (*mmx_eq<mode>3): Ditto.
23006 (mmx_gt<mode>3): Ditto.
23007 (mmx_andnot<mode>3): Ditto.
23008 (*mmx_<code><mode>3): Ditto.
23009 (*mmx_pinsrw): Ditto.
23010 (*mmx_pextrw): Ditto.
23011 (mmx_pshufw_1): Ditto.
23012 (*mmx_uavgv8qi3): Ditto.
23013 (*mmx_uavgv4hi3): Ditto.
23014 ("mmx_psadbw): Ditto.
23015 * config/i386/sse.md (sse_cvtps2pi): Ditto.
23016 (sse_cvttps2pi): Ditto.
23017 (ssse3_pmaddubsw): Ditto.
23018 (*ssse3_pmulhrswv4hi3): Ditto.
23019 (ssse3_psign<mode>3): Ditto.
23020
23021 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
23022
23023 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
23024 adjustment for bit-fields to all aggregate types.
23025
23026 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
23027
23028 * config/rs6000/predicates.md (pcrel_address): Use
23029 SYMBOL_REF_LOCAL_P to determine if a label is local.
23030 (pcrel_external_address): New predicate.
23031 (non_prefixed_mem_operand): Delete, predicate not used.
23032 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
23033 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
23034 addressing.
23035 (SYMBOL_REF_PCREL_P): Likewise.
23036
23037 PR target/91009
23038 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
23039 alternative.
23040 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
23041 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
23042 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
23043
23044 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23045
23046 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
23047 override on extra_headers.
23048
23049 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23050
23051 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
23052 * config/darwin-driver.c (darwin_default_min_version): Remove newline
23053 from warning.
23054 (darwin_driver_init): Likewise.
23055
23056 2019-06-28 Jan Beulich <jbeulich@suse.com>
23057
23058 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23059 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
23060 Eliminate redundant alternative.
23061
23062 2019-06-28 Jan Beulich <jbeulich@suse.com>
23063
23064 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23065 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
23066 Use vector_operand.
23067
23068 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
23069
23070 * config/arc/arc.c (arc_rtx_costs): All short instructions are
23071 having a lower cost regardless of the speed option.
23072
23073 2019-06-28 Jan Beulich <jbeulich@suse.com>
23074
23075 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
23076 vector_operand plus, on both alternatives, "Bm" constraint.
23077
23078 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
23079
23080 * config/arm/arm.md: Remove redundant constraints from
23081 define_expand but leave reload_inm and reload_outm patterns
23082 untouched since they need special constraints to work.
23083 * config/arm/arm-fixed.md: Remove redundant constraints from
23084 define_expand.
23085 * config/arm/iwmmxt.md: Likewise.
23086 * config/arm/neon.md: Likewise.
23087 * config/arm/sync.md: Likewise.
23088 * config/arm/thumb1.md: Likewise.
23089 * config/arm/vec-common.md: Likewise.
23090
23091 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
23092
23093 * doc/install.texi: Document --disable-tm-clone-registry.
23094
23095 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23096
23097 PR c++/91024
23098 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
23099 statements.
23100
23101 PR tree-optimization/91010
23102 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
23103 return true. Otherwise, don't call operand_equal_p if offset1 or
23104 offset2 is NULL and just return false.
23105
23106 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23107
23108 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
23109 user-specified float mode choice for kernel mode code.
23110
23111 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23112
23113 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
23114 spec.
23115
23116 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23117
23118 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
23119 use longcall for 64b code.
23120
23121 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
23122
23123 * builtins.c (get_memory_rtx): Fix comment.
23124 * optabs.def (movmem_optab): Change to cpymem_optab.
23125 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
23126 (emit_block_move_hints): Change movmem to cpymem.
23127 * defaults.h: Change movmem to cpymem.
23128 * targhooks.c (get_move_ratio): Change movmem to cpymem.
23129 (default_use_by_pieces_infrastructure_p): Ditto.
23130 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
23131 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
23132 to cpymem.
23133 * config/aarch64/aarch64.h: Change movmem to cpymem.
23134 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
23135 * config/alpha/alpha.h: Change movmem to cpymem in comment.
23136 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
23137 movmem to cpymem.
23138 * config/arc/arc-protos.h: Change movmem to cpymem.
23139 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
23140 * config/arc/arc.h: Change movmem to cpymem in comment.
23141 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
23142 * config/arm/arm-protos.h: Change movmem to cpymem in names.
23143 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
23144 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
23145 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
23146 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
23147 * config/avr/avr-protos.h: Change movmem to cpymem.
23148 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
23149 avr_out_movmem): Change movmem to cpymem.
23150 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
23151 Change movmem to cpymem.
23152 * config/bfin/bfin-protos.h: Change movmem to cpymem.
23153 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
23154 Change movmem to cpymem.
23155 * config/bfin/bfin.h: Change movmem to cpymem in comment.
23156 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
23157 * config/c6x/c6x-protos.h: Change movmem to cpymem.
23158 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
23159 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
23160 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
23161 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
23162 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
23163 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
23164 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
23165 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
23166 expand_small_cpymem_or_setmem,
23167 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
23168 expand_set_or_cpymem_constant_prologue,
23169 ix86_expand_set_or_cpymem): Change movmem to cpymem.
23170 * config/i386/i386-protos.h: Change movmem to cpymem.
23171 * config/i386/i386.h: Change movmem to cpymem in comment.
23172 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
23173 (setmem<mode>): Change expansion function name.
23174 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
23175 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
23176 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
23177 * config/m32c/m32c-protos.h: Change movmem to cpymem.
23178 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
23179 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
23180 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
23181 to cpymem.
23182 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
23183 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
23184 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
23185 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
23186 Change movmem to cpymem.
23187 * config/mips/mips.h: Change movmem to cpymem.
23188 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
23189 * config/nds32/nds32-memory-manipulation.c
23190 (nds32_expand_movmemsi_loop_unknown_size,
23191 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
23192 nds32_expand_movmemsi_unroll,
23193 nds32_expand_movmemsi): Change movmem to cpymem.
23194 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
23195 * config/nds32/nds32-protos.h: Change movmem to cpymem.
23196 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
23197 (pa_adjust_insn_length): Change call to compute_movmem_length.
23198 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
23199 movmemdi, movmemdi_prereload,
23200 movmemdi_postreload): Change movmem to cpymem.
23201 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
23202 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
23203 * config/riscv/riscv.c: Change movmem to cpymem in comment.
23204 * config/riscv/riscv.h: Change movmem to cpymem.
23205 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
23206 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
23207 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
23208 movmem to cpymem.
23209 * config/s390/s390-protos.h: Change movmem to cpymem.
23210 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
23211 s390_expand_insv): Change movmem to cpymem.
23212 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
23213 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
23214 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
23215 * config/sparc/sparc.h: Change movmem to cpymem in comment.
23216 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
23217 for nonexistent function.
23218 * config/vax/vax.h: Change movmem to cpymem in comment.
23219 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
23220 * config/visium/visium.h: Change movmem to cpymem in comment.
23221 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
23222 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
23223 * doc/md.texi: Change movmem to cpymem and update description to match.
23224 * doc/rtl.texi: Change movmem to cpymem.
23225 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
23226 * doc/tm.texi: Regenerate.
23227
23228 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
23229
23230 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
23231 -fvariable-expansion-in-unroller by default.
23232 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
23233 default for Power.
23234
23235 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
23236
23237 Revert
23238 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23239 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23240
23241 * config.gcc(rs6000-*-*): Define target_gtfiles.
23242
23243 2019-06-27 Jan Hubicka <jh@suse.cz>
23244
23245 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
23246 (add_type_duplicate): When odr hash is not allocated, to nothing.
23247 (odr_based_tbaa_p): New function.
23248 (set_type_canonical_for_odr_type): New function.
23249 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
23250 set_type_canonical_for_odr_type): New.
23251 * tree.c (gimple_canonical_types_compatible_p): ODR types with
23252 ODR based TBAA are not equivalent to non-ODR types.
23253
23254 2019-06-27 Martin Liska <mliska@suse.cz>
23255
23256 PR tree-optimization/90974
23257 PR rtl-optimization/90975
23258 PR rtl-optimization/90976
23259 PR target/91016
23260 PR tree-optimization/91017
23261 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
23262 unused tmp.
23263 * lra.c (lra_set_insn_recog_data): Remove a leftover from
23264 initial commit of IRA.
23265 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
23266 of op0 and op1.
23267 * tree-vect-loop.c (vect_create_epilog_for_reduction):
23268 Remove unused mode1.
23269 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
23270 to new_stmt_info.
23271
23272 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23273
23274 PR target/90991
23275 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
23276 instead of register_operand for operands[1], add m to its constraints
23277 if operands[2] uses "C" constraint. Ensure in condition that if
23278 operands[2] is not 0, then operands[1] is not a MEM. For last two
23279 alternatives, use unaligned loads instead of aligned if operands[1] is
23280 misaligned_operand.
23281
23282 2019-06-27 Martin Liska <mliska@suse.cz>
23283
23284 * asan.c (asan_emit_allocas_unpoison): Remove obviously
23285 dead assignments.
23286 * bt-load.c (move_btr_def): Likewise.
23287 * builtins.c (expand_builtin_apply_args_1): Likewise.
23288 (expand_builtin_apply): Likewise.
23289 * cfgexpand.c (expand_asm_stmt): Likewise.
23290 (construct_init_block): Likewise.
23291 * cfghooks.c (verify_flow_info): Likewise.
23292 * cfgloopmanip.c (remove_path): Likewise.
23293 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
23294 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
23295 * combine.c (simplify_if_then_else): Likewise.
23296 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
23297 (choose_basereg): Likewise.
23298 (ix86_expand_prologue): Likewise.
23299 (ix86_preferred_output_reload_class): Likewise.
23300 * cselib.c (cselib_record_sets): Likewise.
23301 * df-scan.c (df_scan_alloc): Likewise.
23302 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
23303 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
23304 * emit-rtl.c (try_split): Likewise.
23305 * graphite-scop-detection.c (assign_parameter_index_in_region):
23306 Likewise.
23307 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
23308 * ira-color.c (setup_profitable_hard_regs): Likewise.
23309 * ira.c (rtx_moveable_p): Likewise.
23310 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23311 * read-rtl.c (read_subst_mapping): Likewise.
23312 * regrename.c (scan_rtx): Likewise.
23313 * reorg.c (fill_slots_from_thread): Likewise.
23314 * tree-inline.c (tree_function_versioning): Likewise.
23315 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
23316 * tree-ssa-sink.c (statement_sink_location): Likewise.
23317 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
23318 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
23319 (vect_create_epilog_for_reduction): Likewise.
23320 * tree.c (build_nonstandard_integer_type): Likewise.
23321
23322 2019-06-27 Richard Biener <rguenther@suse.de>
23323
23324 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
23325
23326 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
23327
23328 PR tree-optimization/89772
23329 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
23330 out-of-bound accesses checking.
23331
23332 2019-06-27 Martin Liska <mliska@suse.cz>
23333
23334 PR tree-optimization/91014
23335 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
23336 when LHS is NULL_TREE.
23337
23338 2019-06-27 Martin Liska <mliska@suse.cz>
23339
23340 * symbol-summary.h (traverse): Pass
23341 argument a to the call of callback.
23342 (gt_ggc_mx): Mark arguments as unused.
23343 (gt_pch_nx): Likewise.
23344
23345 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
23346
23347 PR target/62147
23348 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
23349 finiteness.
23350
23351 2019-06-26 Jeff Law <law@redhat.com>
23352
23353 PR tree-optimization/90883
23354 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
23355 (delete_dead_or_redundant_assignment): Likewise.
23356
23357 PR tree-optimization/90883
23358 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
23359 * tree-ssa-dse.c: Update various comments to distinguish between
23360 dead and redundant stores.
23361 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
23362 (dse_optimize_redundant_stores): New function.
23363 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
23364 Distinguish between dead and redundant calls in dump output. All
23365 callers updated.
23366 (delete_dead_or_redundant_assignment): Similarly for assignments.
23367 (dse_optimize_stmt): Handle _CHK variants. For statements which
23368 store 0 into multiple memory locations, try to prove a subsequent
23369 store is redundant.
23370
23371 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
23372
23373 PR target/89021
23374 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23375 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23376
23377 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23378
23379 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23380 (branch_islands): New extern.
23381 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23382 * config/rs6000/rs6000.c: .. here.
23383
23384 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23385
23386 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23387 (powerpc*-*-*) ... to here.
23388
23389 2019-06-26 Jeff Law <law@redhat.com>
23390
23391 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23392 memcpy, memmove and memset builtins.
23393 (maybe_trim_memstar_call): Likewise.
23394
23395 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23396
23397 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23398
23399 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23400
23401 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23402
23403 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23404
23405 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23406 declaration.
23407 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23408 "static".
23409 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23410 declaration.
23411
23412 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23413
23414 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23415
23416 2019-06-26 Richard Biener <rguenther@suse.de>
23417
23418 PR ipa/90982
23419 * tree-inline.c (remap_ssa_name): Copy SSA range info.
23420
23421 2019-06-26 Richard Biener <rguenther@suse.de>
23422
23423 * lto-streamer.h (lto_bitmap_alloc): Remove.
23424 (lto_bitmap_free): Likewise.
23425 * lto-streamer.c (lto_bitmap_alloc): Remove.
23426 (lto_bitmap_free): Likewise.
23427 (lto_obstack): Likewise.
23428 (lto_obstack_initialized): Likewise.
23429 * lto-streamer-out.c (lto_output): Use own obstack for local
23430 bitmap, free it consistently.
23431
23432 2019-06-26 Jakub Jelinek <jakub@redhat.com>
23433
23434 PR target/90991
23435 * config/i386/sse.md
23436 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23437 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23438 insns if operands[2] is misaligned_operand.
23439
23440 2019-06-26 Li Jia He <helijia@linux.ibm.com>
23441
23442 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23443 TARGET_POWERPC64.
23444 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23445 to GPR.
23446
23447 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23448
23449 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23450
23451 2019-06-26 Martin Liska <mliska@suse.cz>
23452
23453 PR tree-optimization/90973
23454 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23455 epilogue_cost_vec instead of prologue_cost_vec for
23456 a epilogue cost.
23457
23458 2019-06-26 Martin Liska <mliska@suse.cz>
23459
23460 * bb-reorder.c (connect_better_edge_p): Add missing else
23461 statement in the middle of if-else statements.
23462
23463 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23464 H.J. Lu <hongjiu.lu@intel.com>
23465 Olga Makhotina <olga.makhotina@intel.com>
23466
23467 * common/config/i386/i386-common.c
23468 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23469 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23470 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23471 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23472 (ix86_handle_option): Handle -mavx512vp2intersect.
23473 * config/i386/avx512vp2intersectintrin.h: New.
23474 * config/i386/avx512vp2intersectvlintrin.h: New.
23475 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23476 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23477 AVX512VP2INTERSECT.
23478 * config/i386/i386-builtin-types.def: Add new types.
23479 * config/i386/i386-builtin.def: Add new builtins.
23480 * config/i386/i386-builtins.c: (enum processor_features): Add
23481 F_AVX512VP2INTERSECT.
23482 (static const _isa_names_table isa_names_table): Ditto.
23483 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23484 __AVX512VP2INTERSECT__.
23485 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23486 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23487 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23488 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23489 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23490 * config/i386/i386-options.c (ix86_target_string): Add
23491 -mavx512vp2intersect.
23492 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23493 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23494 P2HImode and P2QImode.
23495 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23496 number for P2QImode and P2HImode.
23497 (ix86_regmode_natural_size): New function.
23498 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23499 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23500 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23501 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23502 * config/i386/i386.opt: Add -mavx512vp2intersect.
23503 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23504 avx512vp2intersectvlintrin.h.
23505 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23506 (define_mode_iterator VI48_AVX512VP2VL): New.
23507 (avx512vp2intersect_2intersect<mode>,
23508 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23509 * config.gcc: Add avx512vp2intersectvlintrin.h and
23510 avx512vp2intersectintrin.h to extra_headers.
23511 * doc/invoke.texi: Document -mavx512vp2intersect.
23512
23513 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23514
23515 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23516
23517 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23518
23519 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23520 savres_routine_syms, savres_routine_name, morestack_ref,
23521 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23522 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23523 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23524 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23525 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23526 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23527 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23528 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23529 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23530 get_stack_clash_protection_probe_interval,
23531 get_stack_clash_protection_guard_size,
23532 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23533 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23534 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23535 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23536 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23537 gen_frame_mem_offset, rs6000_savres_routine_name,
23538 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23539 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23540 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23541 rs6000_global_entry_point_prologue_needed_p,
23542 rs6000_get_separate_components, rs6000_components_for_bb,
23543 rs6000_disqualify_components, rs6000_emit_prologue_components,
23544 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23545 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23546 rs6000_output_savres_externs, rs6000_output_function_prologue,
23547 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23548 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23549 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23550 rs6000_output_function_epilogue, gen_add3_const,
23551 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23552 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23553 to rs6000-logue.c.
23554 (machine_function): Moved to rs6000.h.
23555 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23556 rs6000-internal.h.
23557 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23558 savres_routine_syms, savres_routine_name, morestack_ref,
23559 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23560 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23561 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23562 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23563 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23564 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23565 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23566 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23567 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23568 get_stack_clash_protection_probe_interval,
23569 get_stack_clash_protection_guard_size,
23570 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23571 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23572 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23573 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23574 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23575 gen_frame_mem_offset, rs6000_savres_routine_name,
23576 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23577 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23578 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23579 rs6000_global_entry_point_prologue_needed_p,
23580 rs6000_get_separate_components, rs6000_components_for_bb,
23581 rs6000_disqualify_components, rs6000_emit_prologue_components,
23582 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23583 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23584 rs6000_output_savres_externs, rs6000_output_function_prologue,
23585 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23586 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23587 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23588 rs6000_output_function_epilogue, gen_add3_const,
23589 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23590 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23591 to here from rs6000.c.
23592 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23593 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23594 quad_address_offset_p) Moved to here from rs6000.c.
23595 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23596 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23597 collector.
23598
23599 2019-06-25 Martin Liska <mliska@suse.cz>
23600
23601 * hash-table.c (hashtab_chk_error): Move here from ...
23602 * hash-table.h (hashtab_chk_error): ... here.
23603
23604 2019-06-25 Martin Liska <mliska@suse.cz>
23605
23606 PR tree-optimization/90978
23607 * df-scan.c (df_update_entry_block_defs): Remove dead else
23608 branch.
23609 (df_update_exit_block_uses): Likewise.
23610
23611 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23612 Andrew Stubbs <ams@codesourcery.com>
23613
23614 * config.gcc (thread_file): Set to gcn for AMD GCN.
23615 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23616 (TARGET_EMUTLS_VAR_INIT): New hook.
23617
23618 2019-06-25 Martin Jambor <mjambor@suse.cz>
23619
23620 PR ipa/90939
23621 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23622
23623 2019-06-25 Richard Biener <rguenther@suse.de>
23624
23625 PR tree-optimization/90930
23626 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23627 into parallel form in the last pass instance.
23628
23629 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23630
23631 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23632 (arc_legitimize_pic_address): Simplify and cleanup the function.
23633 (SYMBOLIC_CONST): Remove.
23634 (prepare_pic_move): Likewise.
23635 (prepare_move_operands): Handle complex mov cases here.
23636 (arc_legitimize_address_0): Remove call to
23637 arc_legitimize_pic_address.
23638 (arc_legitimize_address): Remove call to
23639 arc_legitimize_tls_address.
23640 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23641 (movhi_insn): Likewise.
23642
23643 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23644
23645 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23646 PTRDIFF_TYPE.
23647 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23648 format of "__intN" types for UINTMAX_TYPE.
23649 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23650 format of "__intN" types for SIZETYPE.
23651 * tree.c (build_common_tree_nodes): Accept "__intN__"
23652 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23653 * doc/invoke.texi: Document that __intN__ disables pedantic
23654 warnings.
23655
23656 2019-06-25 Jan Hubicka <jh@suse.cz>
23657
23658 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23659 base2_alias_set is non-zero before doing TBAA based disambiguation.
23660
23661 2019-06-25 Martin Liska <mliska@suse.cz>
23662
23663 PR tree-optimization/90973
23664 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23665 of prologue and epilogue.
23666
23667 2019-06-24 Jan Hubicka <jh@suse.cz>
23668
23669 * ipa-utils.h (type_with_linkage_p): Verify that type is
23670 CXX_ODR_P.
23671 (odr_type_p): Remove extra return.
23672 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23673 hash STRING_FLAG only for arrays and integers.
23674 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23675 Update analogously.
23676 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23677 Likewise.
23678 * print-tree.c (print_node): Print cxx-odr-p
23679 and string-flag.
23680 * tree.c (need_assembler_name_p): Also check that type
23681 is CXX_ODR_TYPE_P
23682 (verify_type_variant): Update verification of SRING_FLAG;
23683 also check CXX_ODR_P.
23684 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23685 (TYPE_STRING_FLAG): Use it.
23686 (TYPE_CXX_ODR_P): New macro.
23687 * dwarf2out.c (gen_array_type_die): First check that type
23688 is an array and then test string flag.
23689
23690 2019-06-24 Richard Biener <rguenther@suse.de>
23691
23692 PR tree-optimization/90972
23693 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23694 in common code, dealing with STRING_CST properly.
23695
23696 2019-06-24 Richard Biener <rguenther@suse.de>
23697
23698 PR tree-optimization/90930
23699 PR tree-optimization/90316
23700 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23701 decrement of limit.
23702
23703 2019-06-24 Martin Sebor <msebor@redhat.com>
23704
23705 * tree-pretty-print.h: Remove unnecessary punctuation characters
23706 from a diagnostic.
23707 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23708
23709 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23710
23711 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23712 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23713 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23714
23715 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23716
23717 * config/rs6000/darwin.h: Handle GCC target pragma.
23718
23719 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23720
23721 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23722
23723 2019-06-22 Jeff Law <law@redhat.com>
23724
23725 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23726
23727 2019-06-22 Jan Hubicka <jh@suse.cz>
23728
23729 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23730 give up on bitfields; continue searching for different refs
23731 appearing later.
23732
23733 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23734
23735 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23736 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23737 containing the offset as possible simd lane access. Look through
23738 widening conversion. Move the
23739 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23740
23741 2019-06-21 Richard Biener <rguenther@suse.de>
23742
23743 PR tree-optimization/90930
23744 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23745 flag on new stmts to avoid re-processing them.
23746
23747 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23748
23749 PR c++/90875 - added -Wswitch-outside-range option
23750 * doc/invoke.texi (Wswitch-outside-range): Document.
23751
23752 2019-06-21 Jeff Law <law@redhat.com>
23753
23754 PR tree-optimization/90949
23755 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23756 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23757
23758 2019-06-21 Richard Biener <rguenther@suse.de>
23759
23760 PR debug/90914
23761 * dwarf2out.c (prune_unused_types_walk): Always consider
23762 function-local extern declarations as used.
23763
23764 2019-06-21 Richard Biener <rguenther@suse.de>
23765
23766 PR tree-optimization/90913
23767 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23768 the scalar variant of if-conversion versioning.
23769
23770 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23771
23772 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23773 create another "omp scan inscan exclusive" array if
23774 !ctx->scan_inclusive.
23775 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23776 (lower_omp_scan): Likewise.
23777 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23778 2-bit bitfield for simd_lane_access_p member.
23779 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23780 aux == (void *)-4 as simd lane access.
23781 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23782 comment with permutations to show the canonical permutation order.
23783 (vectorizable_scan_store): Handle exclusive scan.
23784 (vectorizable_store): Call vectorizable_scan_store even for
23785 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23786
23787 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23788 "omp simd array" arrays with one byte elements.
23789
23790 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23791
23792 * config/alpha/alpha.md (@unaligned_store<mode>):
23793 Rename from unaligned_store<mode>.
23794 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23795 * config/alpha/sync.md (@load_locked_<mode>): Rename
23796 from load_locked_<mode>.
23797 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23798 (@atomic_compare_and_swap<mode>_1): Rename
23799 from atomic_compare_and_swap<mode>_1.
23800 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23801 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23802 Use gen_reload_in_aligned and gen_unaligned_store.
23803 (emit_load_locked): Remove.
23804 (emit_store_conditional): Ditto.
23805 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23806 (alpha_split_compare_and_swap): Ditto.
23807 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23808 (alpha_split_compare_and_swap_12): Use gen_load_locked
23809 and gen_store_conditional.
23810 (alpha_split_atomic_exchange): Ditto.
23811 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23812 (alpha_split_atomic_exchange_12): Use gen_load_locked
23813 and gen_store_conditional.
23814
23815 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23816
23817 * config/aarch64/aarch64-errata.h: New file.
23818 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23819 (CA53_ERR_843419_SPEC): Delete.
23820 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23821 * config/aarch64/aarch64-linux.h: Likewise.
23822 * config/aarch64/aarch64-netbsd.h: Likewise.
23823 * config/aarch64/aarch64-freebsd.h: Likewise.
23824
23825 2019-06-20 Marek Polacek <polacek@redhat.com>
23826
23827 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23828
23829 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23830
23831 * config/rs6000/rs6000.md (isa attribute): Add support for
23832 for a future processor.
23833
23834 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23835
23836 PR target/54855
23837 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23838 standard scalar operation pattern for V2DF.
23839 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23840 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23841 (*ieee_<ieee_maxmin><mode>3): Likewise.
23842 (vec_setv2df_0): Likewise.
23843
23844 2019-06-20 Jan Hubicka <jh@suse.cz>
23845
23846 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23847 parameter; it has no use in gimple memory model.
23848 (indirect_ref_may_alias_decl_p): Update.
23849
23850 2019-06-20 Martin Liska <mliska@suse.cz>
23851
23852 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23853 to 10.
23854
23855 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23856
23857 * tree-vect-stmts.c (enum scan_store_kind): New type.
23858 (scan_store_can_perm_p): Change last argument from int * to
23859 vec<enum scan_store_kind> *, record precisely which permutations
23860 need whole vector left shift or that plus VEC_COND_EXPR.
23861 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23862 and additional VEC_COND_EXPR only for those iterations that need it.
23863
23864 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23865
23866 * config.gcc: Fix ARM --with-fpu checking and error message.
23867
23868 2019-06-19 Marek Polacek <polacek@redhat.com>
23869
23870 PR c++/60364 - noreturn after first decl not diagnosed.
23871 * attribs.c (get_attribute_namespace): No longer static.
23872 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23873 attributes.
23874 (attr_noreturn_exclusions): Make it extern.
23875 * attribs.h (get_attribute_namespace): Declare.
23876 * tree-inline.c (function_attribute_inlinable_p): Use
23877 get_attribute_name.
23878
23879 2019-06-19 Martin Sebor <msebor@redhat.com>
23880
23881 PR tree-optimization/90626
23882 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23883
23884 PR tree-optimization/90626
23885 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23886 (handle_builtin_string_cmp): Call it.
23887
23888 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23889
23890 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23891 and DARWIN_NOPIE_SPEC.
23892 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23893 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23894 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23895 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23896 (DARWIN_EXPORT_DYNAMIC): Delete.
23897 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23898 and pie options processing to darwin.h.
23899 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23900
23901 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23902
23903 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23904 in computing the number of options to be moved.
23905
23906 2019-06-19 Maya Rashish <coypu@sdf.org>
23907
23908 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23909 (CLEAR_INSN_CACHE) Use it.
23910
23911 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23912
23913 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23914
23915 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23916
23917 PR middle-end/84521
23918 * builtins.c (expand_builtin_setjmp_setup): Save
23919 hard_frame_pointer_rtx.
23920 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23921 restore fp.
23922 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23923 non-local goto.
23924 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23925 elimination code.
23926 (remove_reg_equal_offset_note): Remove unused function.
23927 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23928 code.
23929 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23930 (arc_builtin_setjmp_frame_value): Remove function.
23931 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23932 (avr_builtin_setjmp_frame_value): Remove function.
23933 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23934 (ix86_builtin_setjmp_frame_value): Remove function.
23935 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23936 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23937 (sparc_builtin_setjmp_frame_value): Remove function.
23938 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23939 (vax_builtin_setjmp_frame_value): Remove function.
23940 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23941 pointer if has_nonlocal_label.
23942
23943 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23944
23945 * doc/md.texi: Document vec_shl_<mode> pattern.
23946 * optabs.def (vec_shl_optab): New optab.
23947 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23948 argument, if == vec_shl_optab, check for left whole vector shift
23949 pattern rather than right shift.
23950 (expand_vec_perm_const): Add vec_shl_optab support.
23951 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23952 in the comment.
23953 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23954 can be handled by vec_shl_optab.
23955 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23956 (check_scan_store): Use it.
23957 (vectorizable_scan_store): If target can't do normal permutations,
23958 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23959 after it.
23960 * config/i386/sse.md (vec_shl_<mode>): New expander.
23961
23962 * omp-low.c (lower_rec_input_clauses): Handle references properly
23963 in inscan clauses.
23964 (lower_omp_scan): Likewise.
23965
23966 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23967
23968 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23969 mem_mode is BLKmode.
23970
23971 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23972
23973 PR target/90922
23974 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23975 pointer adjustment for the case of no callee-saved registers and
23976 stack frame bigger than 128 bytes.
23977
23978 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23979
23980 PR middle-end/90862
23981 * omp-low.c (check_omp_nesting_restrictions): Handle
23982 GF_OMP_TARGET_KIND_OACC_DECLARE.
23983
23984 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23985
23986 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23987 (@add<mode>3_carry): Rename from add<mode>3_carry.
23988 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23989 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23990 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23991 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23992 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23993 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23994 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23995 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23996 (cmpstrnsi): Use gen_cmp_1.
23997 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23998 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23999 (@umonitor_<mode>): Rename from umonitor_<mode>.
24000 * config/i386/i386-expand.c (ix86_expand_copysign):
24001 Use gen_copysign3_const and gen_copysign3_var.
24002 (ix86_expand_xorsign): Use gen_xorsign3_1.
24003 (ix86_expand_branch): Use gen_sub3_carry_ccc,
24004 gen_sub3_carry_ccgz and gen_cmp1.
24005 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
24006 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
24007 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
24008 (ix86_split_lshr): Ditto.
24009 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
24010
24011 2019-06-18 Jason Merrill <jason@redhat.com>
24012
24013 * tree.c (build_constructor): Add MEM_STAT_DECL.
24014
24015 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24016
24017 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
24018 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
24019 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
24020 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
24021 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
24022 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
24023 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
24024 Use CC_NZC instead of CC.
24025 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
24026 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
24027 (aarch64_print_operand): Handle E_CC_NZCmode.
24028 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
24029 of gen_set_clobber_cc.
24030
24031 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24032
24033 * config/aarch64/aarch64-sve.md: Tabify file.
24034
24035 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24036
24037 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
24038 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
24039 * config/aarch64/aarch64-sve.md: Use it.
24040
24041 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24042
24043 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
24044 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
24045 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
24046 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
24047 (aarch64_expand_sve_vec_cmp_int): Use it.
24048 (aarch64_expand_sve_vec_cmp_float): Likewise.
24049 * config/aarch64/aarch64-sve.md: Likewise throughout.
24050
24051 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24052 Kugan Vivekanandarajah <kuganv@linaro.org>
24053
24054 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
24055 (*cond_<optab><mode>_z): Fold into...
24056 (*cond_<optab><mode>_any): ...here. Also handle cases in which
24057 operand 4 can be tied to operand 0 (either inherently or via RA).
24058
24059 2019-06-18 Richard Biener <rguenther@suse.de>
24060
24061 PR debug/90900
24062 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
24063 as if optimized away.
24064
24065 2019-06-18 Tom de Vries <tdevries@suse.de>
24066
24067 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
24068 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
24069 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
24070 Rename to ...
24071 (define_insn "@set_softstack_<mode>"): ... this.
24072 (define_insn "omp_simt_enter_<mode>"): Rename to ...
24073 (define_insn "@omp_simt_enter_<mode>"): ... this.
24074 (define_insn "omp_simt_exit_<mode>"): Rename to ...
24075 (define_insn "@omp_simt_exit_<mode>"): ... this.
24076
24077 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24078
24079 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
24080 vf parameter. Restore the previous iv step of nscalars_step,
24081 but give it iv_type rather than compare_type. Tweak code order
24082 to match the comments.
24083 (vect_set_loop_condition_masked): Update accordingly.
24084 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
24085 for iv_precision. Tweak comment formatting.
24086
24087 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24088
24089 * config/darwin.c: Strip trailing whitespace.
24090
24091 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24092
24093 * config/darwin.c (darwin_emit_unwind_label): New default to false.
24094 (darwin_override_options): Set darwin_emit_unwind_label as needed.
24095
24096 2019-06-18 Martin Jambor <mjambor@suse.cz>
24097
24098 PR ipa/90889
24099 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
24100 caller does not have flag_ipa_cp set.
24101
24102 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24103
24104 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
24105 from "*fold_left_plus_<mode>", updated operands order.
24106 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
24107 * internal-fn.c (mask_fold_left_direct): New define.
24108 (expand_mask_fold_left_optab_fn): Likewise.
24109 (direct_mask_fold_left_optab_supported_p): Likewise.
24110 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
24111 * optabs.def (mask_fold_left_plus_optab): New optab.
24112 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
24113 masked internal_fn for a reduction ifn.
24114 (vectorize_fold_left_reduction): Add support for masking reductions.
24115
24116 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
24117
24118 PR middle-end/80791
24119 * target.def (predict_doloop_p): New hook.
24120 * targhooks.h (default_predict_doloop_p): New declaration.
24121 * targhooks.c (default_predict_doloop_p): New function.
24122 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
24123 * doc/tm.texi: Regenerate.
24124 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
24125 (TARGET_PREDICT_DOLOOP_P): New macro.
24126 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
24127
24128 2019-06-17 Jakub Jelinek <jakub@redhat.com>
24129
24130 * omp-low.c (struct omp_context): Add scan_inclusive field.
24131 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
24132 if inclusive scan.
24133 (struct omplow_simd_context): Add lastlane member.
24134 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
24135 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
24136 1 or 2 argument.
24137 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
24138 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
24139 (lower_omp_scan): New function.
24140 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
24141 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
24142 check 3rd argument if present rather than 2nd.
24143 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
24144 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
24145 2-bit bitfield.
24146 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
24147 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
24148 than 2nd.
24149 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
24150 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
24151 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
24152 init.
24153 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
24154 IFN_GOMP_SIMD_LANE argument.
24155 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
24156 encoded ->aux value.
24157 * tree-vect-stmts.c: Include attribs.h.
24158 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
24159 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
24160 functions.
24161 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
24162 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
24163
24164 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
24165
24166 PR target/62055
24167 * config/i386/i386.md (*nabstf2_1): New insn pattern.
24168 (*nabs<mode>2_1): Ditto.
24169 (nabs sse-reg splitter): New splitter.
24170 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
24171
24172 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24173
24174 PR bootstrap/90873.
24175 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
24176 TMR index check.
24177
24178 2019-06-17 Tom de Vries <tdevries@suse.de>
24179
24180 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
24181 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
24182 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
24183 ...
24184 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
24185 match_operand 0.
24186 (define_insn "omp_simt_enter_insn"): Rename to ...
24187 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
24188 match_operand 0, 1 and 2, as well as the unspec_volatile result.
24189 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
24190 gen_omp_simt_enter_si.
24191 (define_expand "omp_simt_exit"): New.
24192 (define_insn "omp_simt_exit"): Rename to ...
24193 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
24194 match_operand 0.
24195
24196 2019-06-17 Matthew Green <mrg@eterna.com.au>
24197 Maya Rashish <coypu@sdf.org>
24198
24199 * config.gcc (aarch64*-*-netbsd*): New target.
24200 * config/aarch64/aarch64-netbsd.h: New file.
24201 * config/aarch64/t-aarch64-netbsd: Likewise.
24202
24203 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24204
24205 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
24206 the access path from base to first VIEW_CONVERT_EXPR or
24207 BIT_FIELD_REF.
24208
24209 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24210
24211 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
24212 access path on BIT_FIELD_REFs.
24213
24214 2019-06-17 Martin Liska <mliska@suse.cz>
24215
24216 PR ipa/90874
24217 * ipa-utils.h (odr_type_p): Remove dead code.
24218
24219 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24220
24221 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
24222 alternative Solaris 11.4 format.
24223 * configure: Regenerate.
24224
24225 2019-06-17 Tom de Vries <tdevries@suse.de>
24226
24227 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
24228 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
24229 match_operand 0.
24230 (define_insn "call_value_insn"): Rename to ...
24231 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
24232 match_operand 0.
24233 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
24234 DI.
24235
24236 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
24237
24238 PR middle-end/64242
24239 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
24240 frame clobbers and schedule block.
24241 (builtin_longjmp): Likewise.
24242
24243 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24244
24245 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
24246 describe how to perform MSPABI compliant 64-bit shift.
24247 * config/msp430/msp430.md (ashldi3): New define_expand.
24248 (ashrdi3): New define_expand.
24249 (lshrdi3): New define_expand.
24250
24251 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24252
24253 * doc/sourcebuild.texi: Document new effective target keyword
24254 longlong64.
24255
24256 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24257
24258 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
24259 indirect_refs_may_alias_p): Revert accidental commits.
24260
24261 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
24262 at the end of structures.
24263
24264 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24265
24266 * config/darwin.c (machopic_indirect_call_target): Use renamed
24267 darwin_picsymbol_stubs to decide on output.
24268 (darwin_override_options): Handle darwin_picsymbol_stubs.
24269 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
24270 (LD64_VERSION): Revise default.
24271 * config/darwin.opt: (mpic-symbol-stubs): New option.
24272 (darwin_picsymbol_stubs): New variable.
24273 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
24274 rename to TARGET_MACHO_PICSYM_STUBS.
24275 * config/i386/i386.c (output_pic_addr_const): Likewise.
24276 * config/i386/i386.h Likewise.
24277 * config/rs6000/darwin.h: Likewise.
24278 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
24279 darwin_picsymbol_stubs.
24280
24281 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24282
24283 * config/darwin.opt (prebind, noprebind, seglinkedit,
24284 noseglinkedit): Add RejectNegative.
24285
24286 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24287
24288 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
24289 in my previous patch.
24290
24291 2019-06-16 Tom de Vries <tdevries@suse.de>
24292
24293 PR tree-optimization/89376
24294 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
24295
24296 2019-06-15 Maya Rashish <coypu@sdf.org>
24297
24298 * doc/invoke.texi (Spec Files): Update location of the
24299 Fortran spec file.
24300
24301 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
24302
24303 * doc/extend.texi (Common Function Attributes): Clarify
24304 no_sanitize. Fix grammar.
24305
24306 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
24307
24308 * tree-ssa-alias.c (alias_stats): Add
24309 nonoverlapping_component_refs_p_may_alias,
24310 nonoverlapping_component_refs_p_no_alias,
24311 nonoverlapping_component_refs_of_decl_p_may_alias,
24312 nonoverlapping_component_refs_of_decl_p_no_alias.
24313 (dump_alias_stats): Dump them.
24314 (nonoverlapping_component_refs_of_decl_p): Add stats.
24315 (nonoverlapping_component_refs_p): Add stats; do not stop on first
24316 ARRAY_REF.
24317
24318 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
24319
24320 * config/i386/i386.md (and<mode>3): Generate zero-extends for
24321 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
24322 only.
24323 (*anddi3_doubleword): Split before reload. Merge with
24324 anddi->zext pre-reload splitter.
24325 (*andndi3_doubleword): Split before reload.
24326 (*<code>di3_doubleword): Ditto.
24327 (*one_cmpldi2_doubleword): Ditto.
24328
24329 2019-06-15 Jakub Jelinek <jakub@redhat.com>
24330
24331 PR middle-end/90779
24332 * gimplify.c: Include omp-offload.h and context.h.
24333 (gimplify_bind_expr): Add "omp declare target" attributes
24334 to static block scope variables inside of target region or target
24335 functions.
24336
24337 2019-06-15 Tom de Vries <tdevries@suse.de>
24338
24339 PR tree-optimization/90009
24340 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
24341 Return NULL if bb contains IFN_UNIQUE.
24342
24343 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
24344
24345 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
24346 (un): New define_mode_attr.
24347 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
24348 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
24349 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
24350 merge into ...
24351 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
24352
24353 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
24354
24355 * config/darwin.opt: Add RejectNegative where needed, reorder
24356 and add minimal functional descriptions.
24357
24358 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24359
24360 PR rtl-optimization/90765
24361 * calls.c (update_stack_alignment_for_call): New function.
24362 (expand_call): Call update_stack_alignment_for_call when
24363 outgoing parameter is passed in the stack.
24364 (emit_library_call_value_1): Likewise.
24365 * function.c (locate_and_pad_parm): Don't update
24366 stack_alignment_needed and preferred_stack_boundary.
24367
24368 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24369
24370 PR target/90877
24371 * config/i386/i386-features.c
24372 (dimode_scalar_chain::compute_convert_gain): Replace
24373 mmxsse_to_integer with sse_to_integer.
24374 * config/i386/i386.c (ix86_register_move_cost): Verify that
24375 moves between MMX and non-MMX units require secondary memory.
24376 Correct costs of moves between SSE and integer units.
24377 * config/i386/i386.h (processor_costs): Rename cost of moving
24378 SSE register to integer to sse_to_integer. Rename cost of
24379
24380 2019-06-14 Matt Thomas <matt@3am-software.com>
24381 Matthew Green <mrg@eterna.com.au>
24382 Nick Hudson <skrll@netbsd.org>
24383 Maya Rashish <coypu@sdf.org>
24384 Richard Earnshaw <rearnsha@arm.com>
24385
24386 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24387 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24388 * config/arm/netbsd-eabi.h: New file.
24389 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24390 redefining.
24391 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24392 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24393 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24394 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24395
24396 2019-06-14 Richard Biener <rguenther@suse.de>
24397
24398 * tree-loop-distribution.c (classify_partition): Return
24399 whether a reduction appeared in all partitions and do not
24400 stop builtin detection because of this.
24401 (distribute_loop): Sort a non-builtin partition last if
24402 there's a reduction in all partitions and make sure the
24403 partition prevailing as last is not a builtin.
24404
24405 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
24406
24407 PR ipa/90401
24408 * ipa-prop.c (add_to_agg_contents_list): New function.
24409 (clobber_by_agg_contents_list_p): Likewise.
24410 (extract_mem_content): Likewise.
24411 (get_place_in_agg_contents_list): Delete.
24412 (determine_known_aggregate_parts): Renamed from
24413 determine_locally_known_aggregate_parts. New parameter
24414 aa_walk_budget_p.
24415
24416 2019-06-13 Martin Sebor <msebor@redhat.com>
24417
24418 PR tree-optimization/90662
24419 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24420 to the same type.
24421
24422 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24423
24424 PR bootstrap/90873
24425 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24426 dbase is not TARGET_MEM_REF.
24427
24428 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24429
24430 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24431 Update all uses.
24432 (and<mode>3): Use gen_extend_insn instead of indirect functions.
24433 Do not generate DImode extends for 32bit targets.
24434 (and->zext post-reload splitter): Use gen_extend_insn
24435 instead of indirect functions.
24436 (anddi->zext pre-reload splitter): New.
24437 (*zext<mode>_doubleword_and): Remove.
24438 (*zext<mode>_doubleword): Ditto.
24439 (*zextsi_doubleword): Dittto.
24440
24441 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24442
24443 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24444 Use gen_sub3_insn instead of indirect function.
24445 (ix86_expand_ashl_const): Use gen_add2_insn instead of
24446 indirect function.
24447 (ix86_adjust_counter): Ditto.
24448
24449 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24450 Lijia He <helijia@linux.ibm.com>
24451
24452 PR tree-optimization/77820
24453 * tree-ssa-threadedge.c
24454 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24455 function.
24456 (thread_across_edge): Add call to
24457 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24458
24459 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24460
24461 * config/darwin-driver.c (validate_macosx_version_min): New.
24462 (darwin_default_min_version): Cleanup and validate supplied version.
24463 (darwin_driver_init): Likewise and push cleaned version into opts.
24464
24465 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24466
24467 PR tree-optimization/90869
24468 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24469 converts in MEM_REF referencing decl rather than view converts
24470 from decl type to MEM_REF type.
24471
24472 2019-06-13 Richard Biener <rguenther@suse.de>
24473
24474 PR tree-optimization/90856
24475 * tree-sra.c (build_ref_for_model): Only use
24476 build_reconstructed_reference when address-spaces are the same.
24477
24478 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24479
24480 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24481 wrap ei variable name in the declaration in ()s.
24482 (nvptx_single): Actually use mode_label variable. Formatting fix.
24483
24484 2019-06-13 Richard Biener <rguenther@suse.de>
24485
24486 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24487 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24488 also return the condition stmt.
24489 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24490 loop we can version and version that, reusing the loop version
24491 created by if-conversion instead of versioning again.
24492
24493 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24494
24495 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24496 may_contain_p.
24497 * tree-vrp (value_range_base::may_contain_p): Call into
24498 value_inside_range.
24499 (value_inside_range): Make private inside value_range_base class.
24500 Take min/max from *this.
24501 (range_includes_p): Remove.
24502 * tree-vrp.h (value_range_base): Add value_inside_range.
24503 (range_includes_p): Remove.
24504 (range_includes_zero_p): Call may_contain_p.
24505 * vr-values.c (compare_range_with_value): Same.
24506
24507 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24508
24509 * doc/extend.texi (ARC Function Attributes): Update info.
24510
24511 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24512
24513 PR tree-optimization/89713
24514 * doc/invoke.texi (-ffinite-loops): Document new option.
24515 * common.opt (-ffinite-loops): New option.
24516 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24517 IFN_GOACC_LOOP calls as necessary.
24518 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24519 is finite.
24520 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24521 IFN_GOACC_LOOP call is not used.
24522 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24523
24524 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24525
24526 PR target/88838
24527 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24528 compare_type is not with Pmode size, we will create an IV with
24529 Pmode size with truncated use (i.e. converted to the correct type).
24530 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24531 (vect_iv_limit_for_full_masking): New. Factored out of
24532 vect_set_loop_condition_masked.
24533 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24534 (vect_iv_limit_for_full_masking): Declare.
24535
24536 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24537
24538 PR target/88834
24539 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24540 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24541 (get_alias_ptr_type_for_ptr_address): Likewise.
24542 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24543 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24544 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24545 allow_reg_index_p.
24546
24547 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24548
24549 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24550
24551 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24552
24553 * common/config/pru/pru-common.c: New file.
24554 * config.gcc: Add PRU target.
24555 * config/pru/alu-zext.md: New file.
24556 * config/pru/constraints.md: New file.
24557 * config/pru/predicates.md: New file.
24558 * config/pru/pru-opts.h: New file.
24559 * config/pru/pru-passes.c: New file.
24560 * config/pru/pru-pragma.c: New file.
24561 * config/pru/pru-protos.h: New file.
24562 * config/pru/pru.c: New file.
24563 * config/pru/pru.h: New file.
24564 * config/pru/pru.md: New file.
24565 * config/pru/pru.opt: New file.
24566 * config/pru/t-pru: New file.
24567 * doc/extend.texi: Document PRU pragmas.
24568 * doc/invoke.texi: Document PRU-specific options.
24569 * doc/md.texi: Document PRU asm constraints.
24570
24571 2019-06-12 Martin Sebor <msebor@redhat.com>
24572
24573 PR middle-end/90676
24574 * tree-pretty-print.c (dump_mem_ref): New function. Include
24575 MEM_REF type in output when different size than operand.
24576 (dump_generic_node): Move code to dump_mem_ref and call it.
24577
24578 2019-06-12 Martin Sebor <msebor@redhat.com>
24579
24580 PR tree-optimization/90662
24581 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24582 to arrays.
24583
24584 2019-06-12 Tom de Vries <tdevries@suse.de>
24585
24586 PR tree-optimization/90009
24587 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24588
24589 2019-06-12 Martin Liska <mliska@suse.cz>
24590
24591 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24592 the created map.
24593 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24594 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24595 Do not sanitize created maps.
24596
24597 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24598
24599 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24600 value_range::singleton_p.
24601 * tree-vrp.c (value_range_constant_singleton): Remove.
24602 * tree-vrp.h (value_range_constant_singleton): Remove.
24603 * vr-values.c (vr_values::singleton): Use
24604 value_range::singleton_p.
24605
24606 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24607
24608 PR target/90811
24609 * cfgexpand.c (align_local_variable): Add really_expand argument,
24610 don't SET_DECL_ALIGN if it is false.
24611 (add_stack_var): Add really_expand argument, pass it through to
24612 align_local_variable.
24613 (expand_one_stack_var_1): Pass true as really_expand to
24614 align_local_variable.
24615 (expand_one_ssa_partition): Pass true as really_expand to
24616 add_stack_var.
24617 (expand_one_var): Pass really_expand through to add_stack_var.
24618
24619 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24620
24621 * config/arm/iterators.md (VABAL): New int iterator.
24622 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24623 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24624 UNSPEC_VABAL_U values.
24625
24626 2019-06-12 Martin Liska <mliska@suse.cz>
24627
24628 * value-prof.c (stream_out_histogram_value): Only first value
24629 can't be negative.
24630
24631 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24632
24633 PR c/90760
24634 * symtab.c (symtab_node::set_section): Allow being called on aliases
24635 as long as they aren't analyzed yet.
24636
24637 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24638
24639 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24640 to `mips_set_text_contents_type' to indicate whether a
24641 non-debug insn follows.
24642
24643 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24644
24645 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24646 enabling -mpcrel by default.
24647 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24648 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24649 that the test against -mcpu=future is done first. Then test if
24650 -mprefixed-addr is on for -mpcrel.
24651 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24652
24653 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24654
24655 PR target/90811
24656 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24657 instead of and.u%d.
24658
24659 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24660
24661 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24662
24663 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24664
24665 PR c++/90449 - add -Winaccessible-base option.
24666 * doc/invoke.texi (Winaccessible-base): Document.
24667
24668 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24669
24670 PR tree-optimization/62041
24671 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24672
24673 2019-06-11 Jason Merrill <jason@redhat.com>
24674
24675 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24676 * tree.c (get_tree_code_name): Likewise.
24677 * print-tree.c (print_node): Only briefly print a node with an
24678 invalid code.
24679
24680 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24681
24682 PR bootstrap/90819
24683 * trans-mem.c (tm_memopt_compute_available): Add assertion
24684 that blocks is not empty. Formatting fix.
24685
24686 2019-06-11 Martin Liska <mliska@suse.cz>
24687
24688 PR c++/87847
24689 * hash-table.h: Extend create_gcc, add one parameter
24690 that is passed into hash_table::hash_table.
24691
24692 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24693
24694 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24695 New prototype.
24696 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24697 Emit clobber also for non-sse operations.
24698 (ix86_split_fp_absneg_operator): New function.
24699 * config/i386/i386.md (SSEMODEF): New mode iterator.
24700 (ssevecmodef): New mode attribute.
24701 (<code>tf2): Use absneg code iterator.
24702 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24703 Add three-operand AVX alternatives.
24704 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24705 Use absneg code iterator and X87MODEF mode iterator.
24706 (absneg fp_reg non-sse splitter): Call absneg code iterator
24707 and X87MODEF mode iterator.
24708 (absneg general_reg non-sse splitter): Use absneg code iterator
24709 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24710 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24711 code iterator. Add three-operand AVX alternative.
24712 (absneg sse_reg splitter): Use absneg code iterator
24713 and SSEMODEF mode iterator. Handle AVX operands.
24714 (absneg fp_reg splitter): Use absneg code iterator
24715 and MODEF mode iterator.
24716 (absneg general_reg splitter): Merge splitters using MODEF mode
24717 iterator. Use absneg code iterator. Call
24718 ix86_split_fp_absneg_operator.
24719 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24720 Do not enable for non-sse modes before reload.
24721 (CSGNMODE): Remove.
24722 (CSGNVMODE): Ditto.
24723 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24724 ssevecmodef mode attribute instaed of CSGNVMODE.
24725 (copysign<mode>3_const): Ditto.
24726 (copysign<mode>3_var): Ditto.
24727 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24728 Use absneg code iterator. Simplify code using std::swap.
24729 * config/i386/predicates.md (absneg_operator): Remove.
24730
24731 2019-06-10 Martin Sebor <msebor@redhat.com>
24732
24733 * gimple-fold.c (get_range_strlen): Update comment that didn't
24734 make it into r267503 or related commits.
24735
24736 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24737
24738 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24739 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24740
24741 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24742
24743 * tree.def (OMP_SCAN): New tree code.
24744 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24745 OMP_CLAUSE_EXCLUSIVE.
24746 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24747 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24748 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24749 OMP_CLAUSE_{IN,EX}CLUSIVE.
24750 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24751 * tree-nested.c (convert_nonlocal_reference_stmt,
24752 convert_local_reference_stmt, convert_gimple_call): Handle
24753 GIMPLE_OMP_SCAN.
24754 * tree-pretty-print.c (dump_omp_clause): Handle
24755 OMP_CLAUSE_{IN,EX}CLUSIVE.
24756 (dump_generic_node): Handle OMP_SCAN.
24757 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24758 * gimple.h (gomp_scan): New type.
24759 (is_a_helper <gomp_scan *>::test,
24760 is_a_helper <const gomp_scan *>::test): New templates.
24761 (gimple_build_omp_scan): Declare.
24762 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24763 gimple_omp_scan_set_clauses): New inline functions.
24764 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24765 * gimple.c (gimple_build_omp_scan): New function.
24766 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24767 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24768 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24769 GIMPLE_OMP_TASKGROUP.
24770 (dump_gimple_omp_scan): New function.
24771 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24772 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24773 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24774 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24775 (is_gimple_stmt): Handle OMP_SCAN.
24776 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24777 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24778 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24779 mentioned in nested #pragma omp scan. Handle
24780 OMP_CLAUSE_{IN,EX}CLUSIVE.
24781 (gimplify_expr): Handle OMP_SCAN.
24782 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24783 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24784 simd constructs.
24785 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24786 GIMPLE_OMP_SCAN.
24787
24788 2019-06-10 Martin Liska <mliska@suse.cz>
24789
24790 * ipa-cp.c (ignore_edge_p): New function.
24791 (build_toporder_info): Use it.
24792 * ipa-inline.c (ignore_edge_p): New function.
24793 (inline_small_functions): Use it.
24794 * ipa-pure-const.c (ignore_edge_for_nothrow):
24795 Verify opt_for_fn for caller and callee.
24796 (ignore_edge_for_pure_const): Likewise.
24797 * ipa-reference.c (ignore_edge_p): Extend to check
24798 for opt_for_fn.
24799 * ipa-utils.c (searchc): Refactor.
24800 * ipa-utils.h: Fix coding style.
24801
24802 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24803
24804 * config/arc/arc.c (arc_rtx_costs): Update costs.
24805
24806 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24807
24808 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24809 (arc_split_ior): Likewise.
24810 (arc_check_mov_const): Likewise.
24811 (arc_split_mov_const): Likewise.
24812 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24813 (arc_rtx_costs): Replace check Crr with Cax constraint.
24814 (prepare_move_operands): Cleanup, remove unused code.
24815 (arc_split_ior): New function.
24816 (arc_check_ior_const): Likewise.
24817 (arc_split_mov_const): Likewise.
24818 (arc_check_mov_const): Likewise.
24819 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24820 in define_insn_and_split pattern.
24821 (iorsi3): Likewise.
24822 (mulsi3_v2): Add new matching variant.
24823 (andsi3_i): Cleanup pattern.
24824 (rotrsi3_cnt1): Update pattern.
24825 (rotrsi3_cnt8): New pattern.
24826 (ashlsi2_cnt8): Likewise.
24827 (ashlsi2_cnt16): Likewise.
24828 * config/arc/constraints.md (C0p): Update constraint.
24829 (Crr): Remove it.
24830 (C0x): New pattern.
24831 (Cax): New pattern.
24832
24833 2019-06-10 Martin Liska <mliska@suse.cz>
24834
24835 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24836 Update coding style.
24837 (sem_item_optimizer::dump_cong_classes):
24838 Print how many items are in a non-singular class. Improve
24839 coding style.
24840
24841 2019-06-10 Martin Liska <mliska@suse.cz>
24842
24843 * value-prof.c (dump_histogram_value): Change dump format.
24844 (gimple_mod_subtract_transform): Remove legacy comment.
24845
24846 2019-06-10 Martin Liska <mliska@suse.cz>
24847
24848 * value-prof.c (dump_histogram_value): Print histogram values
24849 only if present.
24850
24851 2019-06-10 Martin Liska <mliska@suse.cz>
24852
24853 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24854 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24855 * ipa-profile.c (ipa_profile_generate_summary):
24856 Use get_most_common_single_value.
24857 * tree-profile.c (gimple_init_gcov_profiler):
24858 Instrument with __gcov_one_value_profiler_v2
24859 and __gcov_indirect_call_profiler_v4.
24860 * value-prof.c (dump_histogram_value):
24861 Print all values for HIST_TYPE_SINGLE_VALUE.
24862 (stream_out_histogram_value): Update assert for
24863 N values.
24864 (stream_in_histogram_value): Set number of
24865 counters for HIST_TYPE_SINGLE_VALUE.
24866 (get_most_common_single_value): New.
24867 (gimple_divmod_fixed_value_transform):
24868 Use get_most_common_single_value.
24869 (gimple_ic_transform): Likewise.
24870 (gimple_stringops_transform): Likewise.
24871 (gimple_find_values_to_profile): Set number
24872 of counters for HIST_TYPE_SINGLE_VALUE.
24873 * value-prof.h (get_most_common_single_value): New.
24874
24875 2019-06-10 Martin Liska <mliska@suse.cz>
24876
24877 * hash-map.h: Pass default value to hash_table ctor.
24878 * hash-table.h: Add default value to call of a ctor.
24879
24880 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24881
24882 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24883 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24884
24885 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24886
24887 PR target/90751
24888 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24889 Call pa_output_function_label.
24890 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24891 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24892 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24893 to declaration.
24894 (pa_linux_output_function_prologue): Declare.
24895 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24896 (pa_output_function_label): New.
24897 (pa_output_function_prologue): Revise to use pa_output_function_label.
24898 (pa_linux_output_function_prologue): New.
24899 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24900
24901 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24902
24903 * tree-vrp.h (value_range_base::intersect): New.
24904 (value_range::intersect_helper): Move from here...
24905 (value_range_base::intersect_helper): ...to here.
24906 * tree-vrp.c (value_range::intersect_helper): Rename to...
24907 (value_range_base::intersect_helper): ...this, and rewrite to
24908 return a value instead of modifying THIS in place.
24909 Also, move equivalence handling...
24910 (value_range::intersect): ...here, while calling intersect_helper.
24911 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24912 calling intersect.
24913 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24914 Same.
24915 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24916
24917 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24918
24919 * Makefile.in (genprogerr): Add condmd.
24920 (genprog): Remove it here.
24921
24922 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24923
24924 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24925
24926 2019-06-07 Richard Biener <rguenther@suse.de>
24927
24928 PR debug/90574
24929 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24930 that appear after user labels.
24931
24932 2019-06-07 Martin Liska <mliska@suse.cz>
24933
24934 * cselib.c (cselib_init): Disable hash table
24935 sanitization.
24936 * hash-set.h: Pass new default argument to m_table.
24937 * hash-table.c: Add global variable with hash table
24938 sanitization limit.
24939 * hash-table.h (Allocator>::hash_table): Add new argument
24940 to ctor.
24941 (hashtab_chk_error): New.
24942 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24943 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24944 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24945
24946 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24947
24948 * common.opt (flto-odr-type-merging): Ignore.
24949 * invoke.texi (-flto-odr-type-merging): Remove.
24950 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24951 (can_be_vtable_hashed_p): Remove.
24952 (hash_odr_vtable): Remove.
24953 (odr_vtable_hasher::hash): Remove.
24954 (types_same_for_odr): Remove.
24955 (types_odr_comparable): Remove.
24956 (odr_vtable_hasher::equal): Remove.
24957 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24958 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24959 (get_odr_type): Do not use vtable hash.
24960 (dump_odr_type): Remove commented out code.
24961 (build_type_inheritance_graph): Do not allocate vtable hash.
24962 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24963 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24964 (odr_type_p): Likewise.
24965 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24966 test.
24967
24968 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24969
24970 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24971 immediately after same_types_for_tbaa_p returns -1 and continue
24972 looking for possible exact match; if matching types are arrays
24973 watch for partial overlaps.
24974 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24975 (indirect_refs_may_alias_p): Do type based disambiguation first;
24976 update comment.
24977
24978 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24979
24980 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24981
24982 2019-06-07 Martin Liska <mliska@suse.cz>
24983
24984 * doc/invoke.texi: Remove param.
24985 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24986 Remove.
24987 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24988 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24989 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24990 * profile.c (instrument_values): Remove
24991 HIST_TYPE_INDIR_CALL_TOPN.
24992 * tree-profile.c (init_ic_make_global_vars):
24993 Always build __gcov_indirect_call only.
24994 (gimple_init_gcov_profiler): Remove usage
24995 of PARAM_INDIR_CALL_TOPN_PROFILE.
24996 (gimple_gen_ic_profiler): Likewise.
24997 * value-prof.c (dump_histogram_value): Likewise.
24998 (stream_in_histogram_value): Likewise.
24999 (gimple_indirect_call_to_profile): Likewise.
25000 (gimple_find_values_to_profile): Likewise.
25001 * value-prof.h (enum hist_type): Likewise.
25002
25003 2019-06-07 Martin Liska <mliska@suse.cz>
25004
25005 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
25006 function.
25007
25008 2019-06-07 Martin Liska <mliska@suse.cz>
25009
25010 PR tree-optimization/78902
25011 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
25012 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
25013 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25014 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25015 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
25016 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25017 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
25018 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
25019 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25020 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25021 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25022 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
25023 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
25024 New.
25025 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
25026 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
25027 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
25028 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25029 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25030 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
25031 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25032 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25033 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
25034 warn_unused_result attribute.
25035 (BUILT_IN_STRDUP): Likewise.
25036 (BUILT_IN_STRNDUP): Likewise.
25037 (BUILT_IN_ALLOCA): Likewise.
25038 (BUILT_IN_CALLOC): Likewise.
25039 (BUILT_IN_MALLOC): Likewise.
25040 (BUILT_IN_REALLOC): Likewise.
25041
25042 2019-06-06 Jim Wilson <jimw@sifive.com>
25043
25044 PR target/89955
25045 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
25046 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
25047 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
25048
25049 2019-06-06 Martin Sebor <msebor@redhat.com>
25050
25051 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
25052 (handle_builtin_malloc): Remove trailing spaces.
25053 (handle_builtin_memset): Same.
25054 (handle_builtin_memcmp): Same.
25055 (compute_string_length): Same.
25056 (determine_min_objsize): Same.
25057 (handle_builtin_string_cmp): Same.
25058 (handle_char_store): Same. Break up excessively long line.
25059
25060 2019-06-06 Martin Jambor <mjambor@suse.cz>
25061
25062 * tree-sra.c (build_reconstructed_reference): Drop the alignment
25063 check.
25064
25065 2019-06-06 Martin Jambor <mjambor@suse.cz>
25066
25067 * tree-sra.c (struct access): New field grp_same_access_path.
25068 (dump_access): Dump it.
25069 (build_reconstructed_reference): New function.
25070 (build_ref_for_model): Use it if possible.
25071 (path_comparable_for_same_access): New function.
25072 (same_access_path_p): Likewise.
25073 (sort_and_splice_var_accesses): Set the new flag.
25074 (analyze_access_subtree): Likewise.
25075 (propagate_subaccesses_across_link): Propagate zero value of the new
25076 flag down the access tree.
25077
25078 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
25079
25080 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
25081 * config/gcn/gcn.opt (gpu_type): Add gfx906.
25082 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
25083 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
25084 Add gfx906.
25085
25086 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25087
25088 PR tree-optimization/90332
25089 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
25090 Handle VALS containing two vectors.
25091 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
25092 to...
25093 (@aarch64_combinez<mode>): ... This.
25094 (*aarch64_combinez_be<mode>): Rename to...
25095 (@aarch64_combinez_be<mode>): ... This.
25096 (vec_init<mode><Vhalf>): New define_expand.
25097 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
25098
25099 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25100
25101 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
25102 library functions only when not optimizing for size.
25103 (ashlsi3): Likewise.
25104 (ashrhi3): Likewise.
25105 (ashrsi3): Likewise.
25106 (lshrhi3): Likewise.
25107 (lshrsi3): Likewise.
25108
25109 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
25110
25111 PR rtl-optimization/88751
25112 * ira.c (ira): Use the number of the actually referenced registers
25113 when calculating the threshold.
25114
25115 2019-06-06 Jakub Jelinek <jakub@redhat.com>
25116
25117 * configure: Regenerate.
25118
25119 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25120
25121 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
25122 register if it is in memory, so the shift can be emulated with a rotate
25123 instruction.
25124 (ashrhi3): Likewise.
25125 (lshrhi3): Likewise.
25126
25127 2019-06-06 Martin Liska <mliska@suse.cz>
25128
25129 PR tree-optimization/87954
25130 * match.pd: Simplify mult where both arguments are 0 or 1.
25131
25132 2019-06-06 Richard Biener <rguenther@suse.de>
25133
25134 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
25135 put equivalences on UNDEFINED ranges.
25136 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
25137 Make sure to drop defs of stmts added during simplification
25138 to VARYING.
25139
25140 2019-06-06 Richard Biener <rguenther@suse.de>
25141
25142 * tree-ssa-structalias.c: Include tree-cfg.h.
25143 (make_heapvar): Do not make heap vars artificial.
25144 (find_func_aliases_for_builtin_call): Handle stack allocation
25145 functions.
25146 (find_func_aliases): Delay processing of simple enough returns
25147 in non-IPA mode.
25148 (set_uids_in_ptset): Adjust.
25149 (find_what_var_points_to): Likewise.
25150 (solve_constraints): Do not dump points-to sets here.
25151 (compute_points_to_sets): Post-process return statements,
25152 amending the escaped solution. Dump points-to sets afterwards.
25153 (ipa_pta_execute): Dump points-to sets.
25154
25155 2019-06-06 Martin Liska <mliska@suse.cz>
25156
25157 PR web/87933
25158 * doc/install.texi: Fix HTML headers and
25159 titles for 'Installing GCC' pages.
25160
25161 2019-06-06 Martin Liska <mliska@suse.cz>
25162
25163 * ipa-icf-gimple.h (dump_message_1): Remove.
25164 (dump_message): Likewise.
25165 (return_false_with_message_1): Print also file.
25166 (return_false_with_msg): Likewise.
25167 (return_with_result): Likewise.
25168 (return_with_debug): Likewise.
25169 * ipa-icf.c (sem_function::equals_private): Remove call
25170 to dump_message.
25171
25172 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25173
25174 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
25175 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
25176 memory operand for it.
25177 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
25178
25179 2019-06-05 Martin Sebor <msebor@redhat.com>
25180
25181 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
25182 Adjust quoting and hyphenation.
25183 * convert.c (convert_to_real_1): Same.
25184 * gcc.c (driver_wrong_lang_callback): Same.
25185 (driver::handle_unrecognized_options): Same.
25186 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
25187 * opts-common.c (cmdline_handle_error): Same.
25188 (read_cmdline_option): Same.
25189 * opts-global.c (complain_wrong_lang): Same.
25190 (print_ignored_options): Same.
25191 (handle_common_deferred_options): Same.
25192 * pretty-print.h: Same.
25193 * print-rtl.c (debug_bb_n_slim): Same.
25194 * sched-rgn.c (make_pass_sched_fusion): Same.
25195 * tree-cfg.c (verify_gimple_assign_unary): Same.
25196 (verify_gimple_label): Same.
25197 * tree-ssa-operands.c (verify_ssa_operands): Same.
25198 * varasm.c (do_assemble_alias): Same.
25199 (assemble_alias): Same.
25200
25201 2019-06-05 Richard Henderson <rth@twiddle.net>
25202
25203 * config/alpha/alpha.c (direct_return): Move down after
25204 struct machine_function definition; use saved frame_size;
25205 return bool.
25206 (struct machine_function): Add sa_mask, sa_size, frame_size.
25207 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
25208 (alpha_compute_frame_layout): ... new function.
25209 (TARGET_COMPUTE_FRAME_LAYOUT): New.
25210 (alpha_initial_elimination_offset): Use saved sa_size.
25211 (alpha_vms_initial_elimination_offset): Likewise.
25212 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
25213 (alpha_expand_prologue): Use saved frame data. Merge integer
25214 and fp register save loops.
25215 (alpha_expand_epilogue): Likewise.
25216 (alpha_start_function): Use saved frame data.
25217 * config/alpha/alpha-protos.h (direct_return): Update.
25218 (alpha_sa_size): Remove.
25219
25220 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
25221
25222 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
25223 multiplication by a power-of-two value.
25224 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
25225 and turn the modulo operation into a masking operation.
25226
25227 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25228
25229 PR debug/90733
25230 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
25231 with VOIDmode inner operands.
25232
25233 2019-06-05 Richard Biener <rguenther@suse.de>
25234
25235 PR middle-end/90726
25236 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
25237 turn an expression graph into a tree.
25238
25239 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25240
25241 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
25242 member.
25243 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
25244 treat it like explicit monotonic schedule modifier.
25245 (expand_omp_for): Initialize has_lastprivate_conditional.
25246 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
25247 schedule modifier.
25248
25249 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
25250 references, lookup in in hash map MEM_REF operand instead of the
25251 MEM_REF itself.
25252 (lower_omp_1): When looking for lastprivate conditional assignments,
25253 handle MEM_REFs with REFERENCE_TYPE operands.
25254
25255 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
25256 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
25257 and references a VLA. Handle references to non-VLAs if is_simd
25258 all privatization clauses like reductions.
25259 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
25260 If omp_is_reference, use always omp simd arrays and set
25261 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
25262 fails, emit reference initialization.
25263
25264 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25265
25266 PR target/89803
25267 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
25268 _mm_mask_fpclass_sd_mask): New intrinsics.
25269 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
25270 * config/i386/i386-builtin.def
25271 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
25272 New builtins.
25273 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
25274 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
25275 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
25276 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
25277 case QI_FTYPE_V2SF_INT): Ditto.
25278 * config/i386/sse.md
25279 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
25280 Extended to insnstructions with mask operands.
25281
25282 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25283
25284 * config/rs6000/constraints.md (define_register_constraint "wp"):
25285 Delete.
25286 (define_register_constraint "wq"): Delete.
25287 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25288 (rs6000_init_hard_regno_mode_ok): Adjust.
25289 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25290 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
25291 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
25292 (define_mode_attr VSa): Delete.
25293 (define_mode_attr VSisa): New.
25294 (rest of file): Adjust.
25295 * doc/md.texi (Machine Constraints): Adjust.
25296
25297 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25298
25299 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
25300 (define_attr "enabled"): Handle those new isa values.
25301
25302 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25303
25304 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
25305 (define_mode_attr VSr5): Delete.
25306 (define_mode_attr VStype_sqrt): Delete.
25307 (define_mode_iterator VSX_SPDP): Delete.
25308 (define_mode_attr VS_spdp_res): Delete.
25309 (define_mode_attr VS_spdp_insn): Delete.
25310 (define_mode_attr VS_spdp_type): Delete.
25311 (*vsx_sqrt<mode>2): Adjust.
25312 (vsx_<VS_spdp_insn>): Delete, split to...
25313 (vsx_xscvdpsp): ... this. New. And...
25314 (vsx_xvcvspdp): ... this. New. And...
25315 (vsx_xvcvdpsp): ... this. New.
25316
25317 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25318
25319 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
25320 and V2DF.
25321 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
25322 (rest of file): Adjust.
25323
25324 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25325
25326 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
25327 (vsx_extract_<mode>_var): Ditto.
25328
25329 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25330
25331 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
25332 with just "wa".
25333
25334 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25335
25336 * config/rs6000/constraints.md (define_register_constraint "ww"):
25337 Delete.
25338 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25339 (rs6000_init_hard_regno_mode_ok): Adjust.
25340 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25341 RS6000_CONSTRAINT_ww.
25342 * config/rs6000/rs6000.md: Adjust.
25343 * config/rs6000/vsx.md: Adjust.
25344 * doc/md.texi (Machine Constraints): Adjust.
25345
25346 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25347
25348 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
25349 (define_mode_attr sd): New.
25350 (define_mode_attr s): New.
25351 (define_mode_attr Ftrad): Delete.
25352 (define_mode_attr Fvsx): Delete.
25353 (define_mode_attr Fs): Delete.
25354 (rest of file): Use the new mode attributes.
25355 * config.rs6000/vsx.md: Use the new mode attributes.
25356
25357 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25358
25359 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
25360 with just "wa".
25361
25362 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25363
25364 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
25365 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
25366 used with VSX_B, VSX_D, or VSX_F, with just "wa".
25367
25368 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
25369
25370 PR target/78263
25371 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25372 C++ with strict ANSI requirements.
25373
25374 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
25375
25376 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25377 computations when step is 1.
25378
25379 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25380
25381 * config/rs6000/constraints.md (define_register_constraint "wf"):
25382 Delete.
25383 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25384 (rs6000_init_hard_regno_mode_ok): Adjust.
25385 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25386 RS6000_CONSTRAINT_wf.
25387 * config/rs6000/rs6000.md: Adjust.
25388 * config/rs6000/vsx.md: Adjust.
25389 * doc/md.texi (Machine Constraints): Adjust.
25390
25391 2019-06-04 Andrew Pinski <apinski@marvell.com>
25392
25393 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25394 Fix ILP32 value.
25395
25396 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25397
25398 * config/rs6000/constraints.md (define_register_constraint "wd"):
25399 Delete.
25400 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25401 (rs6000_init_hard_regno_mode_ok): Adjust.
25402 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25403 RS6000_CONSTRAINT_wd.
25404 * config/rs6000/rs6000.md: Adjust.
25405 * config/rs6000/vsx.md: Adjust.
25406 * doc/md.texi (Machine Constraints): Adjust.
25407
25408 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25409
25410 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25411 (rest of file): Adjust.
25412
25413 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25414
25415 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25416 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25417 (vsx_splat_<mode>_reg): Adjust.
25418
25419 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25420
25421 * config/rs6000/constraints.md (define_register_constraint "ws"):
25422 Delete.
25423 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25424 (rs6000_init_hard_regno_mode_ok): Adjust.
25425 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25426 RS6000_CONSTRAINT_ws.
25427 * config/rs6000/rs6000.md: Adjust.
25428 * config/rs6000/vsx.md: Adjust.
25429 * doc/md.texi (Machine Constraints): Adjust.
25430
25431 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25432
25433 * config/rs6000/constraints.md (define_register_constraint "wv"):
25434 Delete.
25435 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25436 (rs6000_init_hard_regno_mode_ok): Adjust.
25437 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25438 RS6000_CONSTRAINT_wv.
25439 * config/rs6000/rs6000.md: Adjust.
25440 * config/rs6000/vsx.md: Adjust.
25441 * doc/md.texi (Machine Constraints): Adjust.
25442
25443 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25444
25445 * config/rs6000/constraints.md (define_register_constraint "wi"):
25446 Delete.
25447 (define_register_constraint "wt"): Delete.
25448 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25449 (rs6000_init_hard_regno_mode_ok): Adjust.
25450 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25451 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25452 * config/rs6000/rs6000.md: Adjust.
25453 * config/rs6000/vsx.md: Adjust.
25454 * doc/md.texi (Machine Constraints): Adjust.
25455
25456 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25457
25458 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25459 const.
25460 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25461 default_elf_asm_output_external.
25462
25463 2019-06-04 Martin Liska <mliska@suse.cz>
25464
25465 * ipa-icf.c (INCLUDE_LIST): Remove.
25466 (sem_item_optimizer::execute): Remove call to init_wpa.
25467 * ipa-icf.h (init_wpa): Remove.
25468
25469 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25470
25471 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25472 conditional on combined for simd.
25473 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25474 member.
25475 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25476 constructs, don't remove lastprivate_conditional_map, but instead set
25477 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25478 to parent construct temporaries.
25479 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25480 like !ctx->lastprivate_conditional_map.
25481 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25482 use up->outer context instead of up.
25483 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25484 gimple_omp_for_combined_p.
25485 (expand_omp_for_static_nochunk): Likewise.
25486 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25487 probably moved over into expand_omp_for_generic rather than being copied
25488 there.
25489
25490 2019-06-04 Martin Liska <mliska@suse.cz>
25491
25492 * value-prof.c (dump_histogram_value): Fix typo.
25493 (gimple_mod_subtract_transform): Likewise.
25494
25495 2019-06-04 Richard Biener <rguenther@suse.de>
25496
25497 PR middle-end/90726
25498 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25499 (tree_contains_chrecs): Likewise.
25500 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25501 exponential behaivor from ...
25502 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25503 ... here.
25504 (expression_expensive_p): Avoid exponential behavior and compute
25505 expanded size, rejecting any expansion.
25506 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25507 (idx_contains_abnormal_ssa_name_p): Likewise.
25508 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25509 (contains_abnormal_ssa_name_p): Simplify and use
25510 walk_tree_without_duplicates.
25511
25512 2019-06-04 Richard Biener <rguenther@suse.de>
25513
25514 PR tree-optimization/90738
25515 Revert
25516 2019-06-03 Richard Biener <rguenther@suse.de>
25517
25518 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25519 full reference tree and record in ref->ref.
25520 (vn_reference_lookup_3): Pass in original ref to
25521 ao_ref_init_from_vn_reference.
25522 (vn_reference_lookup): Likewise.
25523 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25524 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25525 Handle non-decl bases in the original reference.
25526
25527 2019-06-04 Martin Liska <mliska@suse.cz>
25528
25529 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25530 number of references.
25531 (sem_item_optimizer::do_congruence_step):
25532 (sem_item_optimizer::worklist_push): Dump how references
25533 a class has.
25534 (sem_item_optimizer::worklist_pop): Use heap.
25535 (sem_item_optimizer::process_cong_reduction): Likewise.
25536 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25537
25538 2019-06-04 Martin Liska <mliska@suse.cz>
25539
25540 * ipa-icf.h (struct sem_usage_pair_hash): New.
25541 (sem_usage_pair_hash::hash): Likewise.
25542 (sem_usage_pair_hash::equal): Likewise.
25543 (struct sem_usage_hash): Likewise.
25544 * ipa-icf.c (sem_item::sem_item): Initialize
25545 referenced_by_count.
25546 (sem_item::add_reference): Register a reference
25547 in ref_map and not in target->usages.
25548 (sem_item::setup): Remove initialization of
25549 dead vectors.
25550 (sem_item::~sem_item): Remove usage of dead vectors.
25551 (sem_item::dump): Remove dump of references.
25552 (sem_item_optimizer::sem_item_optimizer): Initialize
25553 m_references.
25554 (sem_item_optimizer::read_section): Remove useless
25555 dump.
25556 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25557 (sem_item_optimizer::build_graph): Pass m_references
25558 to ::add_reference.
25559 (sem_item_optimizer::verify_classes): Remove usage of dead
25560 vectors.
25561 (sem_item_optimizer::traverse_congruence_split): Return true
25562 when a class is split.
25563 (sem_item_optimizer::do_congruence_step_for_index): Use
25564 hash_map for look up of (sem_item *, index). That brings
25565 significant speed up.
25566 (sem_item_optimizer::do_congruence_step): Return true
25567 when a split is done.
25568 (congruence_class::is_class_used): Use referenced_by_count.
25569
25570 2019-06-04 Alan Modra <amodra@gmail.com>
25571
25572 PR target/90689
25573 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25574 error.
25575
25576 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25577
25578 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25579 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25580 (rs6000_secondary_reload_simple_move): Adjust.
25581 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25582 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25583 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25584 comment.
25585 (power6x): Adjust.
25586 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25587 (floatunssi<mode>2_lfiwzx): Adjust.
25588 (fix_trunc<mode>si2_stfiwx): Adjust.
25589 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25590 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25591 (mfpgpr): Mark as deprecated.
25592 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25593 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25594 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25595
25596 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25597
25598 * config/rs6000/constraints.md (define_register_constraint "wg"):
25599 Delete.
25600 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25601 RS6000_CONSTRAINT_wg.
25602 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25603 (rs6000_init_hard_regno_mode_ok): Adjust.
25604 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25605 Delete "wg" alternatives.
25606 * doc/md.texi (Machine Constraints): Adjust.
25607
25608 2019-06-03 Alan Modra <amodra@gmail.com>
25609
25610 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25611 (get_uncond_jump_length): Assert length less than INT_MAX and
25612 non-negative.
25613
25614 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25615
25616 PR middle-end/64242
25617 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25618 block.
25619 (expand_builtin_nonlocal_goto): Likewise.
25620
25621 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25622
25623 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25624 (aarch64_asm_output_external): Declare.
25625 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25626 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25627 (aarch64_asm_output_alias): New.
25628 (aarch64_asm_output_external): New.
25629 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25630 (ASM_OUTPUT_EXTERNAL): Define.
25631
25632 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25633 * tree-vrp.h (value_range_base::nonzero_p): New.
25634 (value_range_base::set_nonnull): Rename to...
25635 (value_range_base::set_nonzero): ...this.
25636 (value_range_base::set_null): Rename to...
25637 (value_range_base::set_zero): ...this.
25638 (value_range::set_nonnull): Remove.
25639 (value_range::set_null): Remove.
25640 * tree-vrp.c (range_is_null): Remove.
25641 (range_is_nonnull): Remove.
25642 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25643 instead of range_is_*null.
25644 (extract_range_from_unary_expr): Same.
25645 (value_range_base::set_nonnull): Rename to...
25646 (value_range_base::set_nonzero): ...this.
25647 (value_range::set_nonnull): Remove.
25648 (value_range_base::set_null): Rename to...
25649 (value_range_base::set_zero): ...this.
25650 (value_range::set_null): Remove.
25651 (extract_range_from_binary_expr): Rename set_*null uses to
25652 set_*zero.
25653 (extract_range_from_unary_expr): Same.
25654 (union_helper): Same.
25655 * vr-values.c (get_value_range): Use set_*zero instead of
25656 set_*null.
25657 (vr_values::extract_range_from_binary_expr): Same.
25658 (vr_values::extract_range_basic): Same.
25659
25660 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25661
25662 PR driver/90684
25663 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25664
25665 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25666
25667 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25668 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25669 Rename to...
25670 (aarch64_<su>abd<mode>_3): ... This.
25671 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25672
25673 2019-06-03 Richard Biener <rguenther@suse.de>
25674
25675 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25676 full reference tree and record in ref->ref.
25677 (vn_reference_lookup_3): Pass in original ref to
25678 ao_ref_init_from_vn_reference.
25679 (vn_reference_lookup): Likewise.
25680 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25681 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25682 Handle non-decl bases in the original reference.
25683
25684 2019-06-03 Martin Liska <mliska@suse.cz>
25685
25686 * doc/generic.texi: Remove Java Trees.
25687
25688 2019-06-03 Martin Liska <mliska@suse.cz>
25689
25690 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25691 returns 0 when operands are equal.
25692
25693 2019-06-03 Richard Biener <rguenther@suse.de>
25694
25695 PR tree-optimization/90716
25696 * tree-loop-distribution.c (destroy_loop): Process blocks in
25697 correct order.
25698
25699 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25700
25701 PR target/88837
25702 * vector-builder.h (vector_builder::count_dups): New method.
25703 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25704 Declare prototype.
25705 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25706 (vec_init<mode><Vel>): New pattern.
25707 * config/aarch64/aarch64.c (emit_insr): New function.
25708 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25709 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25710 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25711 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25712
25713 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25714
25715 PR tree-optimization/90681
25716 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25717 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25718 special case for SLP, but fail on non-groupped loads.
25719
25720 2019-06-03 Martin Liska <mliska@suse.cz>
25721
25722 * cfg.c (debug): Use TDF_DETAILS for debug and
25723 print edge info only once.
25724
25725 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25726
25727 PR fortran/90539
25728 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25729
25730 2019-06-01 Martin Sebor <msebor@redhat.com>
25731
25732 PR middle-end/90694
25733 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25734
25735 2019-05-31 Jan Hubicka <jh@suse.cz>
25736
25737 * alias.c: Include ipa-utils.h.
25738 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25739 * ipa-devirt.c (prevailing_odr_type): New.
25740 * ipa-utils.h (previaling_odr_type): Declare.
25741
25742 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25743 Hongtao Liu <hongtao.liu@intel.com>
25744
25745 PR target/89355
25746 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25747 NOTE_INSN_DELETED_LABEL check.
25748
25749 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25750 Robert Suchanek <robert.suchanek@mips.com>
25751
25752 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25753 and 3rd operands of the fmadd/fmsub/maddv builtin.
25754
25755 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25756
25757 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25758 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25759 on OMP_SIMD if not nested inside of worksharing loop that also has
25760 lastprivate conditional clause for the same decl.
25761 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25762 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25763 on simd.
25764 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25765 on simd construct.
25766 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25767 on simd construct.
25768 (lower_lastprivate_clauses): Likewise.
25769 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25770 calling lower_rec_input_clauses.
25771 (lower_omp_for): Likewise.
25772 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25773 clause on simd construct.
25774 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25775 OMP_CLAUSE__CONDTEMP_ clause is present.
25776
25777 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25778 ivar and lvar.
25779
25780 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25781
25782 PR c/43673
25783 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25784 TEX_D32, TEX_D64 or TEX_D128.
25785
25786 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25787
25788 * match.pd (~(vec?cst1:cst2)): New transformation.
25789
25790 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25791
25792 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25793 ((size_t)(A /[ex] B) CMP C): New transformation.
25794
25795 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25796
25797 * doc/md.texi: Document define_insn_and_rewrite.
25798 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25799 * gensupport.c (queue_elem): Update comment.
25800 (replace_operands_with_dups): New function.
25801 (gen_rewrite_sequence): Likewise.
25802 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25803 * read-rtl.c (apply_subst_iterator): Likewise.
25804 (add_condition_to_rtx, named_rtx_p): Likewise.
25805 (rtx_reader::read_rtx_operand): Likewise.
25806 * config/aarch64/aarch64-sve.md
25807 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25808 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25809 define_insn_and_rewrite.
25810 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25811 Remove separate define_split.
25812
25813 2019-05-31 Jan Hubicka <jh@suse.cz>
25814
25815 * tree-ssa-alias.c (type_has_components_p): New function.
25816 (aliasing_component_refs_p): Use it.
25817
25818 2019-05-31 Martin Liska <mliska@suse.cz>
25819
25820 * gdbhooks.py: Add const_tree to TreePrinter.
25821
25822 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25823
25824 PR debug/86964
25825 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25826 * doc/invoke.texi (Debugging Options): Document new default of
25827 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25828
25829 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25830
25831 PR tree-optimization/90671
25832 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25833 template_block used to be empty on the first call, don't use
25834 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25835 seq with bb_seq and set it with set_bb_seq.
25836
25837 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25838
25839 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25840
25841 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25842 Michael Meissner <meissner@linux.ibm.com>
25843
25844 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25845 (prefixed_mem_operand): Likewise.
25846 (non_prefixed_mem_operand): Likewise.
25847 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25848 prototype.
25849 * config/rs6000/rs6000.c (print_operand_address): Handle
25850 PC-relative addresses.
25851 (mode_supports_prefixed_address_p): New function.
25852 (rs6000_prefixed_address): New function.
25853 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25854 (SYMBOL_REF_PCREL_P): Likewise.
25855
25856 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25857
25858 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25859 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25860 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25861 is nested inside of parallel region, add _condtemp_ clause to both.
25862 * tree-nested.c (convert_nonlocal_omp_clauses,
25863 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25864 assertion failure.
25865 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25866 member.
25867 * omp-general.c (omp_extract_for_data): Compute it.
25868 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25869 (lower_rec_input_clauses): Likewise.
25870 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25871 clause is already present, just add one further one after it.
25872 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25873 (lower_send_shared_vars): Clear _condtemp_ vars.
25874 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25875 or section or taskgroup.
25876 * omp-expand.c (determine_parallel_type): Disallow combining only if
25877 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25878 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25879 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25880 expand_omp_for_static_chunk, expand_omp_for): Use
25881 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25882 determine if a special set of API routines are needed and if condtemp
25883 needs to be initialized, while always initialize cond_var if
25884 fd->lastprivate_conditional is non-zero.
25885
25886 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25887 Michael Meissner <meissner@linux.ibm.com>
25888
25889 * config/rs6000/constraints.md (eI): New constraint.
25890 * config/rs6000/predicates.md (cint34_operand): New predicate.
25891 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25892 (SIGNED_34BIT_OFFSET_P): Likewise.
25893 * doc/md.texi (eI): Document constraint.
25894
25895 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25896
25897 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25898
25899 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25900 Michael Meissner <meissner@linux.ibm.com>
25901
25902 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25903 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25904 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25905 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25906 (OTHER_FUTURE_MASKS): Likewise.
25907 (POWERPC_MASKS): Likewise.
25908 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25909 specified without -mprefixed-addr or -mcpu=future. Error if
25910 -mprefixed-addr is specified without -mcpu=future.
25911 (rs6000_opt_masks): Add entry for prefixed-addr.
25912 * rs6000.opt (mprefixed-addr): New option.
25913
25914 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25915
25916 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25917 cfun->is_thunk check.
25918
25919 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25920
25921 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25922 to length.
25923
25924 2019-05-30 Martin Liska <mliska@suse.cz>
25925
25926 * gdbinit.in: Fix 'ptc' command. Add trt
25927 that prints TREE_TYPE($).
25928
25929 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25930 Alan Modra <amodra@gmail.com>
25931
25932 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25933 calls here...
25934 (rs6000_indirect_call_template_1): ...and here.
25935 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25936 plt16_ha, plt16_lo, mtctr indirect calls. Use
25937 rs6000_pltseq_enum.
25938 (rs6000_decl_ok_for_sibcall): New function.
25939 (rs6000_function_ok_for_sibcall): Refactor.
25940 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25941 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25942 when pcrel. Reorganize.
25943 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25944 * rs6000.h (rs6000_pltseq_enum): New enum.
25945 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25946 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25947 (*pltseq_plt16_ha): Likewise.
25948 (*pltseq_plt16_lo): Likewise.
25949 (*pltseq_mtctr): Likewise.
25950 (*pltseq_plt_pcrel): New insn.
25951 (*call_local_aix): Handle @notoc calls.
25952 (*call_value_local_aix): Likewise.
25953 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25954 (*call_value_nonlocal_aix): Likewise.
25955 (*call_indirect_pcrel): New insn.
25956 (*call_value_indirect_pcrel): Likewise.
25957
25958 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25959
25960 * config/i386/sse.md (*save_multiple<mode>): Rename from
25961 save_multiple<mode>.
25962 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25963 (*restore_multiple_and_return<mode>): Rename from
25964 restore_multiple_and_return<mode>.
25965 (*restore_multiple_leave_return<mode>): Rename from
25966 restore_multiple_leave_return<mode>.
25967
25968 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25969
25970 * config.gcc (rx-*-linux*): New target.
25971 * config/rx/elf.opt: New file.
25972 * config/rx/linux.h: Likewise.
25973 * config/rx/t-linux: Likewise.
25974 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25975 make it zero.
25976 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25977 (ASM_APP_OFF): Likewise.
25978 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25979 moved elsewhere.
25980
25981 2019-05-29 Jan Hubicka <jh@suse.cz>
25982
25983 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25984 variants are pointer equivalent.
25985
25986 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25987
25988 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25989 * config/aarch64/aarch64-sve2.md: New file.
25990 (<u>avg<mode>3_floor): New pattern.
25991 (<u>avg<mode>3_ceil): Likewise.
25992 (*<sur>h<addsub><mode>): Likewise.
25993 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25994 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25995
25996 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25997
25998 PR bootstrap/90543
25999 * optc-save-gen.awk: In cl_optimization_print, use correct condition
26000 for var_opt_string printing. In cl_optimization_print_diff, print
26001 (null) instead of invoking undefined behavior if one of the
26002 var_opt_string pointers is NULL and use && instead of first || in the
26003 guarding condition. For var_target_other options, handle const char *
26004 target variables similarly to const char * optimize node variables.
26005
26006 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
26007
26008 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
26009 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
26010 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
26011 Add autib1716 and pacib1716 initialisation.
26012 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
26013 for autib1716 and pacib1716.
26014 * config/aarch64/aarch64-protos.h (aarch64_key_type,
26015 aarch64_post_cfi_startproc): Define.
26016 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
26017 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
26018 aarch64_handle_pac_ret_protection): Set default sign key to A.
26019 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
26020 aarch64_expand_prologue): Add check for b-key.
26021 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
26022 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
26023 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
26024 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
26025 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
26026 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
26027 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26028 * config/aarch64/aarch64.md (do_return): Add check for b-key.
26029 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
26030 pauth_hint_num_a with pauth_hint_num.
26031 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
26032 pauth_hint_num_a with pauth_hint_num.
26033 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
26034 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
26035 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26036 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
26037 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
26038 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
26039 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
26040 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26041 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
26042 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
26043 UNSPEC_AUTIA1716 respectively.
26044 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
26045 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
26046 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
26047 * doc/invoke.texi (-mbranch-protection): Add b-key type.
26048 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
26049 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
26050
26051 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26052
26053 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
26054 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
26055 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
26056 explicit clause on combined parallel into implicit shared clause.
26057 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
26058 and firstprivate if the decl has one too from combined parallel to
26059 the worksharing construct.
26060
26061 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
26062 Michael Meissner <meissner@linux.ibm.com>
26063
26064 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
26065
26066 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
26067
26068 * rtl.h (LABEL_REF_P): New #define.
26069
26070 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
26071
26072 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
26073
26074 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26075
26076 * internal-fn.c: Marked mask_load_direct as vectorizable.
26077 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
26078 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
26079 combined even if masks different with allow_slp_p param.
26080 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
26081 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
26082 dissolve SLP-only vectorizable groups when SLP has been discarded.
26083 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
26084 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
26085 masks.
26086 (vect_build_slp_tree_1): Fixed comment typo.
26087 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
26088 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
26089 loads for SLP only.
26090 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
26091 vectorizable.
26092 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
26093
26094 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26095
26096 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
26097 Remove obsolete use_thunk reference.
26098 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26099 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26100 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26101 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26102 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26103 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26104 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26105 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26106 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26107
26108 2019-05-28 Nathan Sidwell <nathan@acm.org>
26109
26110 * tree.h (IDENTIFIER_ANON_P): New.
26111 (anon_aggrname_format, anon_aggname_p): Don't declare.
26112 (make_anon_name): Declare.
26113 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
26114 (hash_tree): Likewise.
26115 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
26116 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
26117 (anon_cnt, make_anon_name): New.
26118
26119 2019-05-28 Martin Liska <mliska@suse.cz>
26120
26121 PR other/90315
26122 * opts-global.c (decode_options): Print help for all
26123 help_option_arguments.
26124 * opts.c (print_help): Add new argument.
26125 (common_handle_option): Remember all values into
26126 help_option_arguments.
26127 * opts.h (print_help): Add new argument.
26128
26129 2019-05-28 Martin Liska <mliska@suse.cz>
26130
26131 PR ipa/90555
26132 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
26133 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
26134 (func_checker::compare_bb): Call compare_loops.
26135
26136 2019-05-27 Jakub Jelinek <jakub@redhat.com>
26137
26138 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26139 on sections construct.
26140 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
26141 construct.
26142 (lower_omp_sections): Handle lastprivate conditional.
26143 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
26144 lastprivate_conditional_map.
26145 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
26146
26147 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
26148 critical, taskgroup and section regions when looking for a region
26149 with non-NULL lastprivate_conditional_map.
26150
26151 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26152
26153 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
26154 (*ix86_gen_sub3): Ditto.
26155 (*ix86_gen_sub3_carry): Ditto.
26156 (*ix86_gen_one_cmpl2): Ditto.
26157 (*ix86_gen_andsp): Ditto.
26158 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
26159 (gen_and2_insn): New static function.
26160 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
26161 Use gen_add3_insn instead of ix86_gen_add3.
26162 (ix86_expand_split_stack_prologue): Use gen_add2_insn
26163 instead of ix86_gen_add3.
26164 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
26165 Use gen_sub3_insn instead of ix86_gen_sub3.
26166 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
26167 instead of ix86_gen_add3.
26168 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
26169 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
26170 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
26171 * config/i386/i386-options.c (ix86_option_override_internal):
26172 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
26173 ix86_gen_one_cmpl2 and ix86_gen_andsp.
26174
26175 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
26176
26177 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
26178 and DW_OP_GNU_const_index opcodes.
26179
26180 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26181
26182 * config/i386/i386.h (STACK_SIZE_MODE): Define.
26183
26184 2019-05-27 Richard Biener <rguenther@suse.de>
26185
26186 PR tree-optimization/90637
26187 * tree-ssa-sink.c (statement_sink_location): Honor the
26188 computed sink location for single-uses.
26189
26190 2019-05-27 Richard Biener <rguenther@suse.de>
26191
26192 PR middle-end/90610
26193 * match.pd (vec_perm): Avoid clobbering op0 when not generating
26194 a bit-insert.
26195
26196 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26197
26198 * config/i386/i386.md (@sub<mode>3_carry): Rename
26199 from sub<mode>3_carry.
26200 (@leave_<mode>): New expander.
26201 (*leave): Rename from leave.
26202 (*leave_rex64): Rename from leave_rex64.
26203 (@monitorx_<mode>): Rename from monitorx_<mode>.
26204 (@clzero_<mode>): Rename from clzero_<mode>.
26205 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
26206 from sse3_monitor_<mode>.
26207 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
26208 (*ix86_gen_leave): Ditto.
26209 (*ix86_gen_monitor): Ditto.
26210 (*ix86_gen_monitorx): Ditto.
26211 (*ix86_gen_clzero): Ditto.
26212 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
26213 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
26214 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
26215 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
26216 Use gen_sse3_monitor instead of ix86_gen_monitor.
26217 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
26218 instead of ix86_gen_monitorx.
26219 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
26220 instead of ix86_gen_clzero.
26221 * config/i386/i386-options.c (ix86_option_override_internal):
26222 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
26223 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
26224
26225 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26226
26227 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
26228 Rename from tls_global_dynamic_64_<mode>.
26229 (@tls_local_dynamic_base_64_<mode>): Rename from
26230 tls_local_dynamic_base_64_<mode>.
26231 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
26232 Remove indirect function.
26233 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
26234 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
26235 instead of ix86_gen_tls_global_dynamic_64.
26236 Use gen_tls_local_dynamic_base_64 instead of
26237 ix86_gen_tls_local_dynamic_base_64.
26238 * config/i386/i386-options.c (ix86_option_override_internal):
26239 Do not initialize ix86_gen_tls_global_dynamic_64 and
26240 ix86_gen_tls_local_dynamic_base_64.
26241
26242 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26243
26244 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
26245 Rename from pro_epilogue_adjust_stack_<mode>_add.
26246 (@pro_epilogue_adjust_stack_sub_<mode>)
26247 Rename from pro_epilogue_adjust_stack_<mode>_sub.
26248 (@allocate_stack_worker_probe_<mode>):
26249 Rename from allocate_stack_worker_probe_<mode>.
26250 (allocate_stack): Use gen_allocate_stack_worker_probe.
26251 (probe_stack): Use gen_probe_stack_1.
26252 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
26253 (@adjust_stack_and_probe_<mode>): Rename from
26254 adjust_stack_and_probe<mode>.
26255 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
26256 (stack_protect_set): Use gen_stack_protect_set_1.
26257 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
26258 (stack_protect_test): Use gen_stack_protect_test_1.
26259 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
26260 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
26261 Remove indirect function.
26262 (*ix86_gen_adjust_stack_and_probe): Ditto.
26263 (*ix86_gen_probe_stack_range): Ditto.
26264 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
26265 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
26266 (ix86_adjust_stack_and_probe_stack_clash): Use
26267 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
26268 (ix86_adjust_stack_and_probe): Ditto.
26269 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
26270 of ix86_gen_probe_stack_range.
26271 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
26272 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
26273 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
26274 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
26275 CODE_FOR_stack_protect_test_{si,di}.
26276 * config/i386/i386-options.c (ix86_option_override_internal):
26277 Do not initialize ix86_gen_allocate_stack_worker,
26278 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
26279
26280 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
26281
26282 * doc/invoke.texi (Link Options): Many editorial changes around
26283 -flinker-output.
26284
26285 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26286
26287 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
26288 pre-Solaris 11 referene and most Studio compiler details.
26289
26290 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
26291
26292 PR target/90530
26293 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
26294 DImode to SImode in floating-point registers on 64-bit target.
26295 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
26296 register_operand in xmpyu patterns.
26297
26298 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26299
26300 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
26301 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
26302 OMP_CLAUSE__REDUCTEMP_.
26303 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
26304 OMP_CLAUSE__CONDTEMP_.
26305 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
26306 * tree-pretty-print.c (dump_omp_clause): Likewise.
26307 * tree-nested.c (convert_nonlocal_omp_clauses,
26308 convert_local_omp_clauses): Likewise.
26309 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
26310 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
26311 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
26312 on OMP_FOR.
26313 (gimplify_omp_for): Warn and disable conditional modifier from
26314 lastprivate on loop iterators.
26315 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
26316 member.
26317 * omp-general.c (omp_extract_for_data): Initialize it.
26318 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
26319 member.
26320 (delete_omp_context): Delete it.
26321 (lower_lastprivate_conditional_clauses): New function.
26322 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
26323 handle lastprivate conditional clauses.
26324 (lower_reduction_clauses): Add CLIST argument, emit it into
26325 the critical section if any.
26326 (lower_omp_sections): Adjust lower_lastprivate_clauses and
26327 lower_reduction_clauses callers.
26328 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
26329 to lower_lastprivate_clauses.
26330 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
26331 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
26332 clist into a critical section if not emitted there already by
26333 lower_reduction_clauses.
26334 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
26335 callers.
26336 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
26337 conditional variables.
26338 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
26339 clause is present.
26340 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26341 expand_omp_for_static_chunk): Handle lastprivate conditional.
26342 (expand_omp_for): Handle fd.lastprivate_conditional like
26343 fd.have_reductemp.
26344
26345 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26346
26347 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
26348 kernel does not exit cleanly.
26349 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
26350
26351 2019-05-24 Jason Merrill <jason@redhat.com>
26352
26353 Revert:
26354 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26355
26356 2019-05-24 Richard Biener <rguenther@suse.de>
26357
26358 PR testsuite/90607
26359 * tree-loop-distribution.c (struct partition): Add location
26360 member.
26361 (partition_alloc): Initialize all fields.
26362 (generate_memset_builtin): Use the location recorded in the
26363 partition for the generated call.
26364 (generate_memcpy_builtin): Likewise.
26365 (classify_partition): Record the location of a single store
26366 as location for the partition.
26367
26368 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26369
26370 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26371 for lo-part.
26372
26373 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
26374
26375 PR target/90588
26376 * common/config/aarch64/aarch64-common.c
26377 (aarch64_rewrite_selected_cpu): Change local temporary variable
26378 type from unsigned long to uint64_t.
26379 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26380 aarch64_get_extension_string_for_isa_flags): Change declaration to
26381 match new definition by replacing unsigned long with uint64_t.
26382
26383 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26384
26385 PR target/90568
26386 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26387 gen_attr_type just once instead of 4-7 times. Formatting fixes.
26388 Handle stack_protect_test_<mode> codegen similarly to corresponding
26389 sub instruction.
26390
26391 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
26392
26393 * config/i386/darwin.h: Reject -mfentry*.
26394 * doc/sourcebuild.texi: Document mfentry target support.
26395
26396 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26397
26398 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26399 Rename to rs6000_global_entry_point_prologue_needed_p. Return
26400 false for PC-relative functions.
26401 (rs6000_output_function_prologue): Change called function name to
26402 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
26403 name,1" for PC-relative functions.
26404 (rs6000_elf_declare_function_name): Change called function name to
26405 rs6000_global_entry_point_prologue_needed_p.
26406
26407 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
26408
26409 PR target/90552
26410 * config/i386/i386.c (gen_rtx_cost):
26411 Use ix86_tune_cost instead of ix86_cost.
26412
26413 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26414 Michael Meissner <meissner@linux.ibm.com>
26415 Segher Boessenkool <segher@kernel.crashing.org>
26416
26417 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26418 OPTION_MASK_PCREL.
26419 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26420 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26421 (rs6000_fndecl_pcrel_p): Likewise.
26422 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26423 error if -mpcrel is requested without -mcpu=future.
26424 (rs6000_opt_masks): Add entry for pcrel.
26425 (rs6000_fndecl_pcrel_p): New function.
26426 (rs6000_pcrel_p): Likewise.
26427 * config/rs6000/rs6000.opt (mpcrel): New option.
26428 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26429
26430 2019-05-23 Jan Hubicka <jh@suse.cz>
26431 Martin Liska <mliska@suse.cz>
26432
26433 PR tree-optimization/90576
26434 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26435 poly_int_tree_p.
26436 (aliasing_component_refs_p): Fix three way size compare conditional;
26437 give up earlier in case we can not decide on equivalence.
26438
26439 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26440 Michael Meissner <meissner@linux.ibm.com>
26441 Segher Boessenkool <segher@kernel.crashing.org>
26442
26443 * config.gcc: Add future cpu.
26444 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26445 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26446 #define.
26447 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26448 (RS6000_CPU): New instantiation for future cpu.
26449 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26450 PROCESSOR_FUTURE.
26451 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26452 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26453 * config/rs6000/rs6000-tables.opt: Regenerate.
26454 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26455 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26456 (rs6000_machine_from_flags): Handle future cpu.
26457 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26458 PROCESSOR_POWER9 for now.
26459 (rs6000_adjust_cost): Likewise.
26460 (rs6000_issue_rate): Likewise.
26461 (rs6000_register_move_cost): Likewise.
26462 (rs6000_opt_masks): Add entry for future.
26463 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26464 (MASK_FUTURE): New #define.
26465 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26466 * config/rs6000/rs6000.opt (mfuture): New target option.
26467 * doc/invoke.texi (mcpu): Add future cpu.
26468
26469 2019-05-23 Martin Liska <mliska@suse.cz>
26470
26471 PR c++/90587
26472 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26473 operation points to a temporary (pointed via tree_to_wide_ref)
26474 that is out of scope after the &.
26475
26476 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26477
26478 PR c++/90592
26479 * doc/extend.texi (Function Names): Add missing word.
26480
26481 2019-05-23 Richard Biener <rguenther@suse.de>
26482
26483 PR tree-optimization/88440
26484 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26485 at -O[2s]+.
26486 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26487 generated call.
26488 (generate_memcpy_builtin): Likewise.
26489 (distribute_loop): Pass in whether to only distribute patterns.
26490 (prepare_perfect_loop_nest): Also allow size optimization.
26491 (pass_loop_distribution::execute): When optimizing a loop
26492 nest for size allow pattern replacement.
26493
26494 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26495
26496 PR target/90568
26497 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26498 of xor.
26499
26500 2019-05-23 Martin Liska <mliska@suse.cz>
26501
26502 PR sanitizer/90570
26503 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26504 expression similarly to gimplify_decl_expr.
26505
26506 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26507
26508 * cse.c (cse_dump_path): s/dump_file/f.
26509
26510 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26511
26512 PR c++/90462
26513 * diagnostic-format-json.cc: Include "selftest.h".
26514 (json_from_expanded_location): Only add "file" key for non-NULL
26515 file strings.
26516 (json_from_location_range): Don't add "start" and "finish"
26517 children if they are UNKNOWN_LOCATION.
26518 (selftest::test_unknown_location): New selftest.
26519 (selftest::test_bad_endpoints): New selftest.
26520 (selftest::diagnostic_format_json_cc_tests): New function.
26521 * json.cc (json::object::get): New function.
26522 (selftest::test_object_get): New selftest.
26523 (selftest::json_cc_tests): Call it.
26524 * json.h (json::object::get): New decl.
26525 * selftest-run-tests.c (selftest::run_tests): Call
26526 selftest::diagnostic_format_json_cc_tests.
26527 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26528 decl.
26529
26530 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26531 Andrew Stubbs <amd@codesourcery.com>
26532
26533 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26534 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26535 (kernel): Rename to...
26536 (main_kernel): ... this.
26537 (load_image): Load _init_array and _fini_array kernels.
26538 (run): Add argument for kernel to run.
26539 (main): Run init_array_kernel before main_kernel, and
26540 fini_array_kernel after.
26541 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26542 amdgpu_hsa_kernel attribute on functions.
26543 (gcn_disable_constructors): Delete.
26544 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26545 * config/gcn/crt0.c (size_t): Define.
26546 (_init_array, _fini_array): New.
26547 (__preinit_array_start, __preinit_array_end,
26548 __init_array_start, __init_array_end,
26549 __fini_array_start, __fini_array_end): Declare weak references.
26550
26551 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26552
26553 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26554
26555 2019-05-22 Jason Merrill <jason@redhat.com>
26556
26557 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26558
26559 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26560
26561 PR target/88483
26562 * config/i386/i386-options.c (ix86_init_machine_status): Set
26563 stack_frame_required to true.
26564 * config/i386/i386.c (ix86_get_frame_size): New function.
26565 (ix86_frame_pointer_required): Replace get_frame_size with
26566 ix86_get_frame_size.
26567 (ix86_compute_frame_layout): Likewise.
26568 (ix86_find_max_used_stack_alignment): Changed to void. Set
26569 stack_frame_required.
26570 (ix86_finalize_stack_frame_flags): Always call
26571 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26572 ix86_get_frame_size.
26573 * config/i386/i386.h (machine_function): Add stack_frame_required.
26574
26575 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26576
26577 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26578
26579 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26580
26581 * common/config/aarch64/aarch64-common.c
26582 (struct aarch64_option_extension, struct processor_name_to_arch,
26583 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26584 aarch64_contains_opt,
26585 aarch64_get_extension_string_for_isa_flags): Change type of
26586 variables storing flags to uint64_t.
26587 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26588 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26589 * config/aarch64/aarch64.c (struct processor,
26590 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26591 aarch64_validate_march, aarch64_override_options,
26592 aarch64_option_print, aarch64_handle_attr_isa_flags,
26593 aarch64_declare_function_name, aarch64_start_file): Make flag
26594 variables uint64_t.
26595 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26596 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26597 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26598 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26599 * config/aarch64/driver-aarch64.c
26600 (struct aarch64_arch_extension, struct aarch64_core_data,
26601 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26602 flag variables uint64_t.
26603 * doc/invoke.texi: Add documentation for new arguments.
26604
26605 2019-05-22 Richard Biener <rguenther@suse.de>
26606
26607 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26608 rewrite ...
26609 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26610
26611 2019-05-22 Martin Liska <mliska@suse.cz>
26612
26613 PR lto/90500
26614 * doc/extend.texi: Document the change.
26615
26616 2019-05-22 Richard Biener <rguenther@suse.de>
26617
26618 PR tree-optimization/90450
26619 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26620 (mem_ref_hasher::equal): Check it.
26621 (mem_ref_alloc): Initialize it.
26622 (gather_mem_refs_stmt): Set it.
26623
26624 2019-05-22 Richard Biener <rguenther@suse.de>
26625
26626 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26627 Add ABS_EXPR.
26628 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26629 as ABSU_EXPR.
26630
26631 2019-05-22 Alan Modra <amodra@gmail.com>
26632
26633 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26634 (ASM_CPU_SPEC): Conditionally add -many.
26635 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26636 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26637 (rs6000_file_start): ..extracted from here, and modified to
26638 test all ISA bits.
26639 (rs6000_output_function_prologue): Emit .machine as necessary.
26640
26641 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26642
26643 PR middle-end/90553
26644 * ira-lives.c (process_bb_node_lives): Consider defs
26645 for a call insn to be die before the call, not after.
26646
26647 * function.c (assign_parm_setup_block): Raise alignment of
26648 stacked parameter only for STRICT_ALIGNMENT targets.
26649
26650 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26651
26652 * config/rs6000/constraints.md (define_register_constraint "wz"):
26653 Delete.
26654 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26655 RS6000_CONSTRAINT_wz.
26656 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26657 (rs6000_init_hard_regno_mode_ok): Adjust.
26658 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26659 * doc/md.texi (Machine Constraints): Adjust.
26660
26661 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26662
26663 * config/rs6000/constraints.md (define_register_constraint "wl"):
26664 Delete.
26665 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26666 RS6000_CONSTRAINT_wl.
26667 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26668 (rs6000_init_hard_regno_mode_ok): Adjust.
26669 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
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 "wm"):
26675 Delete.
26676 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26677 RS6000_CONSTRAINT_wm.
26678 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26679 (rs6000_init_hard_regno_mode_ok): Adjust.
26680 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
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 "wk"):
26686 Delete.
26687 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26688 RS6000_CONSTRAINT_wk.
26689 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26690 (rs6000_init_hard_regno_mode_ok): Adjust.
26691 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" 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 "wj"):
26697 Delete.
26698 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26699 RS6000_CONSTRAINT_wj.
26700 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26701 (rs6000_init_hard_regno_mode_ok): Adjust.
26702 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26703 (VS_64dm): Delete.
26704 * config/rs6000/vsx.md: Ditto.
26705 * doc/md.texi (Machine Constraints): Adjust.
26706
26707 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26708
26709 * config/rs6000/constraints.md (define_register_constraint "wh"):
26710 Delete.
26711 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26712 RS6000_CONSTRAINT_wh.
26713 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26714 (rs6000_init_hard_regno_mode_ok): Adjust.
26715 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26716 * doc/md.texi (Machine Constraints): Adjust.
26717
26718 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26719
26720 PR target/90547
26721 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26722 Avoid calling gen_lowpart with CONST operand.
26723
26724 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26725
26726 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26727 field template_last_to_copy.
26728 (ssa_create_duplicates): Set it, and use it. Attempt to
26729 preserve more debug stmts.
26730
26731 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26732
26733 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26734 (signbit<mode>2): New expander
26735
26736 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26737
26738 PR bootstrap/87338
26739 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26740 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26741
26742 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26743
26744 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26745 %ebx and %ecx bafore calling cpuid with leaf 1 or
26746 non-constant leaf argument.
26747
26748 2019-05-21 Alan Modra <amodra@gmail.com>
26749
26750 PR target/90545
26751 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26752 power9 direct move cost.
26753
26754 2019-05-21 Richard Biener <rguenther@suse.de>
26755
26756 PR middle-end/90510
26757 * fold-const.c (fold_read_from_vector): New function.
26758 * fold-const.h (fold_read_from_vector): Declare.
26759 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26760 single-element insert permutations. Canonicalize selector
26761 further and fix issue with last commit.
26762
26763 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26764
26765 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26766 parameter with default value false to declaration.
26767 (split_edges_for_insertion): New inline function. Wrapper for
26768 split_critical_edges with for_edge_insertion_p = true.
26769 * tree-cfg.c (split_critical_edges): Don't split non-critical
26770 edges if for_edge_insertion_p is false. Fix whitespace.
26771 * tree-ssa-pre.c (pass_pre::execute): Call
26772 split_edges_for_insertion instead of split_critical_edges.
26773 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26774 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26775 (pass_data_sink_code): Update function name in the comment.
26776
26777 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26778
26779 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26780 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26781 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26782 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26783 positives.
26784
26785 2019-05-21 Martin Liska <mliska@suse.cz>
26786
26787 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26788 an extra newline.
26789 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26790 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26791 vec_lvsr.
26792 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26793 Quote a C type.
26794 (rs6000_function_arg): Likewise.
26795 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26796 (rs6000_expand_ternop_builtin): Use interval syntax.
26797 (get_element_number): Likewise.
26798 (altivec_expand_builtin): Likewise.
26799 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26800
26801 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26802
26803 PR c++/59813
26804 PR target/90418
26805 * function.h (struct function): Add calls_eh_return member.
26806 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26807 gimplifying __builtin_eh_return call.
26808 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26809 to cfun.
26810 (expand_call_inline): Or in src_cfun->calls_eh_return into
26811 dst_cfun->calls_eh_return.
26812 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26813 cfun->calls_eh_return.
26814 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26815 * lto-streamer-out.c (output_struct_function_base): Write
26816 calls_eh_return.
26817
26818 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26819
26820 PR rtl-optimization/43147
26821 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26822 IX86_BUILTIN_SHUFPD.
26823
26824 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26825
26826 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26827 (refs_may_alias_p_1): ... here; update stats.
26828 (refs_may_alias_p): Do not update stats here.
26829
26830 2019-05-20 Richard Biener <rguenther@suse.de>
26831
26832 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26833 doesn't produce pointers.
26834 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26835 the first operand points to.
26836
26837 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26838
26839 * tree-ssa-alias.c (compare_sizes): New function.
26840 (sompare_type_sizes): New function
26841 (aliasing_component_refs_p): Use it.
26842 (indirect_ref_may_alias_decl_p): Likewise.
26843
26844 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26845
26846 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26847
26848 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26849
26850 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26851 (LIBLSAN_EARLY_SPEC): Likewise.
26852 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26853
26854 2019-05-20 Martin Liska <mliska@suse.cz>
26855
26856 * config/i386/i386.c (ix86_libc_has_fast_function):
26857 Add ATTRIBUTE_UNUSED for the argument.
26858
26859 2019-05-20 Richard Biener <rguenther@suse.de>
26860
26861 * gimple-match-head.c: Include vec-perm-indices.h.
26862 * generic-match-head.c: Likewise.
26863 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26864 is included.
26865 * fold-const.c (fold_vec_perm): Export.
26866 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26867 (match.pd): ...here.
26868
26869 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26870
26871 * cfgloop.h (struct loop): Add simdlen member.
26872 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26873 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26874 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26875 as new argument to autovectorize_vector_sizes target hook. If
26876 loop->simdlen, pick up vector size where the vectorization factor
26877 is equal to loop->simd, and if there is none, fall back to the first
26878 successful one.
26879 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26880 caller.
26881 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26882 * omp-general.c (omp_max_vf): Likewise.
26883 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26884 * tree-vect-slp.c (vect_slp_bb): Likewise.
26885 * target.def (autovectorize_vector_sizes): Add ALL argument and
26886 document it.
26887 * doc/tm.texi: Adjust documentation.
26888 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26889 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26890 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26891 bool argument.
26892 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26893 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26894 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26895 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26896 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26897 preferred vector size is not 512-bit or 256-bit, just put those
26898 unpreferred ones last.
26899
26900 2019-05-20 Martin Liska <mliska@suse.cz>
26901
26902 * targhooks.c (default_libc_has_fast_function): New function.
26903 * targhooks.h (default_libc_has_fast_function): Likewise.
26904
26905 2019-05-20 Martin Liska <mliska@suse.cz>
26906
26907 PR middle-end/90263
26908 * builtins.c (expand_builtin_memory_copy_args): When having a
26909 target with fast mempcpy implementation do now use memcpy.
26910 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26911 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26912 * doc/tm.texi: Likewise.
26913 * doc/tm.texi.in: Likewise.
26914 * target.def:
26915 * expr.c (emit_block_move_hints): Add 2 new arguments.
26916 * expr.h (emit_block_move_hints): Bail out when libcall
26917 to memcpy would be used.
26918
26919 2019-05-20 Martin Liska <mliska@suse.cz>
26920
26921 * profile-count.c: Add vertical spacing in order
26922 to separate functions.
26923 * profile-count.h: Likewise.
26924
26925 2019-05-20 Martin Liska <mliska@suse.cz>
26926
26927 * profile-count.h: Do not use full qualified
26928 names if possible.
26929 * profile-count.c (profile_count::to_frequency): Likewise.
26930
26931 2019-05-20 Martin Liska <mliska@suse.cz>
26932
26933 * profile-count.h (enum profile_quality): Use capital letters
26934 for enum value names. Use the adjusted names.
26935 * profile-count.c: Use the adjusted names.
26936
26937 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26938
26939 * config/rs6000/constraints.md (define_register_constraint "wH"):
26940 Delete.
26941 (define_register_constraint "wI"): Delete.
26942 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26943 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26944 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26945 (rs6000_init_hard_regno_mode_ok): Adjust.
26946 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26947 resp. "d", or with "wa" as appropriate, all with "p8v".
26948 * config/rs6000/vsx.md: Ditto.
26949 * doc/md.texi (Machine Constraints): Adjust.
26950
26951 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26952
26953 * config/rs6000/constraints.md (define_register_constraint "wy"):
26954 Delete.
26955 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26956 RS6000_CONSTRAINT_wy.
26957 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26958 (rs6000_init_hard_regno_mode_ok): Adjust.
26959 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26960 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26961 (define_mode_attr Fisa): New.
26962 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26963 * doc/md.texi (Machine Constraints): Adjust.
26964
26965 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26966
26967 * config/rs6000/constraints.md (define_register_constraint "wu"):
26968 Delete.
26969 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26970 RS6000_CONSTRAINT_wu.
26971 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26972 (rs6000_init_hard_regno_mode_ok): Adjust.
26973 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26974 both with "p8v".
26975 (define_mode_attr Fa): Delete.
26976 * config/rs6000/vsx.md: Ditto.
26977 * doc/md.texi (Machine Constraints): Adjust.
26978
26979 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26980
26981 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26982 Delete.
26983 (define_register_constraint "wK"): Delete.
26984 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26985 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26986 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26987 (rs6000_init_hard_regno_mode_ok): Adjust.
26988 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26989 Replace "wK" constraint by "wH" with "p9v".
26990 * config/rs6000/vsx.md: Ditto.
26991 * doc/md.texi (Machine Constraints): Adjust.
26992
26993 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26994
26995 * config/rs6000/constraints.md (define_register_constraint "wb"):
26996 Delete.
26997 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26998 RS6000_CONSTRAINT_wb.
26999 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27000 (rs6000_init_hard_regno_mode_ok): Adjust.
27001 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
27002 * config/rs6000/vsx.md: Ditto.
27003 * doc/md.texi (Machine Constraints): Adjust.
27004
27005 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27006
27007 * config/rs6000/constraints.md (define_register_constraint "wo"):
27008 Delete.
27009 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27010 RS6000_CONSTRAINT_wo.
27011 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27012 (rs6000_init_hard_regno_mode_ok): Adjust.
27013 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
27014 * config/rs6000/altivec.md: Ditto.
27015 * doc/md.texi (Machine Constraints): Adjust.
27016
27017 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27018
27019 * config/darwin-c.c (darwin_register_objc_includes): Do not
27020 prepend the sysroot when building gnu-runtime header search
27021 paths.
27022
27023 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27024
27025 * config/darwin.c (darwin_file_end): Use switch_to_section ()
27026 instead of direct output of the asm.
27027
27028 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27029
27030 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
27031 argument to be type bool (was int before).
27032 (rs6000_emit_epilogue): Simplify some code. Declare some variables
27033 at first use. Use type bool for some variables. Fix a theoretical
27034 eh_return bug for svr4.
27035
27036 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27037
27038 * config/rs6000/rs6000.md (isa): New attribute.
27039 (enabled): New attribute.
27040
27041 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
27042
27043 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
27044 assemble_start_function and assemble_end_function.
27045
27046 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
27047
27048 PR middle-end/89433
27049 * omp-general.c (oacc_verify_routine_clauses): Change formal
27050 parameters. Add checking if already marked with an OpenACC
27051 'routine' directive. Adjust all users.
27052
27053 PR middle-end/89433
27054 * omp-general.c (oacc_build_routine_dims): Move some of its
27055 processing into...
27056 (oacc_verify_routine_clauses): ... this new function.
27057 * omp-general.h (oacc_verify_routine_clauses): New prototype.
27058
27059 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27060
27061 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
27062 formating of picbase labels to match other ports.
27063
27064 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27065
27066 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
27067 in the generated code.
27068
27069 2019-05-16 Martin Sebor <msebor@redhat.com>
27070
27071 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
27072 identifiers, keywords, operators, and types in diagnostics. Correct
27073 quoting, spelling, and sentence capitalization issues.
27074 (expand_builtin_atomic_is_lock_free): Same.
27075 (fold_builtin_next_arg): Same.
27076 * cfgexpand.c (expand_one_var): Same.
27077 (tree_conflicts_with_clobbers_p): Same.
27078 (expand_asm_stmt): Same.
27079 (verify_loop_structure): Same.
27080 * cgraphunit.c (process_function_and_variable_attributes): Same.
27081 * collect-utils.c (collect_execute): Same.
27082 * collect2.c (maybe_run_lto_and_relink): Same.
27083 (is_lto_object_file): Same.
27084 (scan_prog_file): Same.
27085 * convert.c (convert_to_real_1): Same.
27086 * dwarf2out.c (dwarf2out_begin_prologue): Same.
27087 * except.c (verify_eh_tree): Same.
27088 * gcc.c (execute): Same.
27089 (eval_spec_function): Same.
27090 (run_attempt): Same.
27091 (driver::set_up_specs): Same.
27092 (compare_debug_auxbase_opt_spec_function): Same.
27093 * gcov-tool.c (unlink_gcda_file): Same.
27094 (do_merge): Same.
27095 (do_rewrite): Same.
27096 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
27097 * gimplify.c (gimplify_asm_expr): Same.
27098 (gimplify_adjust_omp_clauses): Same.
27099 * hsa-gen.c (gen_hsa_addr_insns): Same.
27100 (gen_hsa_insns_for_load): Same.
27101 (gen_hsa_cmp_insn_from_gimple): Same.
27102 (gen_hsa_insns_for_operation_assignment): Same.
27103 (gen_get_level): Same.
27104 (gen_hsa_alloca): Same.
27105 (omp_simple_builtin::generate): Same.
27106 (gen_hsa_atomic_for_builtin): Same.
27107 (gen_hsa_insns_for_call): Same.
27108 * input.c (dump_location_info): Same.
27109 * ipa-devirt.c (compare_virtual_tables): Same.
27110 * ira.c (ira_setup_eliminable_regset): Same.
27111 * lra-assigns.c (lra_assign): Same.
27112 * lra-constraints.c (lra_constraints): Same.
27113 * lto-streamer-in.c (lto_input_mode_table): Same.
27114 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
27115 (merge_and_complain): Same.
27116 (compile_offload_image): Same.
27117 (compile_images_for_offload_targets): Same.
27118 (debug_objcopy): Same.
27119 (run_gcc): Same.
27120 (main): Same.
27121 * opts.c (print_specific_help): Same.
27122 (parse_no_sanitize_attribute): Same.
27123 (print_help): Same.
27124 (handle_param): Same.
27125 * plugin.c (add_new_plugin): Same.
27126 (parse_plugin_arg_opt): Same.
27127 (try_init_one_plugin): Same.
27128 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
27129 operators, and types in diagnostics. Correct quoting and spelling
27130 issues.
27131 * read-rtl-function.c (parse_edge_flag_token): Same.
27132 (function_reader::parse_enum_value): Same.
27133 * reg-stack.c (check_asm_stack_operands): Same.
27134 * regcprop.c (validate_value_data): Same.
27135 * sched-rgn.c (make_pass_sched_fusion): Same.
27136 * stmt.c (check_unique_operand_names): Same.
27137 * targhooks.c (default_target_option_pragma_parse): Same.
27138 * tlink.c (recompile_files): Same.
27139 * toplev.c (process_options): Same.
27140 (do_compile): Same.
27141 * trans-mem.c (diagnose_tm_1): Same.
27142 (ipa_tm_scan_irr_block): Same.
27143 (ipa_tm_diagnose_transaction): Same.
27144 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
27145 format a tree code name in a diagnostic.
27146 (verify_types_in_gimple_min_lval): Same.
27147 (verify_types_in_gimple_reference): Same.
27148 (verify_gimple_call): Same.
27149 (verify_gimple_assign_unary): Same.
27150 (verify_gimple_assign_binary): Same.
27151 (verify_gimple_assign_ternary): Same.
27152 (verify_gimple_assign_single): Same.
27153 (verify_gimple_switch): Same.
27154 (verify_gimple_label): Same.
27155 (verify_gimple_phi): Same.
27156 (verify_gimple_in_seq): Same.
27157 (verify_eh_throw_stmt_node): Same.
27158 (collect_subblocks): Same.
27159 (gimple_verify_flow_info): Same.
27160 (do_warn_unused_result): Same.
27161 * tree-inline.c (expand_call_inline): Same.
27162 * tree-into-ssa.c (update_ssa): Same.
27163 * tree.c (tree_int_cst_elt_check_failed): Same.
27164 (tree_vec_elt_check_failed): Same.
27165 (omp_clause_operand_check_failed): Same.
27166 (verify_type_variant): Same.
27167 (verify_type): Same.
27168 * value-prof.c (verify_histograms): Same.
27169 * varasm.c (assemble_start_function): Same.
27170
27171 2019-05-16 Martin Sebor <msebor@redhat.com>
27172
27173 * config/i386/i386-expand.c (get_element_number): Quote keywords
27174 and other internal names in diagnostics. Adjust other diagnostic
27175 formatting issues noted by -Wformat-diag.
27176 * config/i386/i386-features.c
27177 (ix86_mangle_function_version_assembler_name): Same.
27178 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
27179 * config/i386/i386.c (ix86_function_type_abi): Same.
27180 (ix86_function_ms_hook_prologue): Same.
27181 (classify_argument): Same.
27182 (ix86_expand_prologue): Same.
27183 (ix86_md_asm_adjust): Same.
27184 (ix86_memmodel_check): Same.
27185
27186 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
27187
27188 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
27189 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
27190 and fpxx modes.
27191
27192 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
27193
27194 PR target/90497
27195 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
27196 intrinsics without SSE/SSE2/SSSE3.
27197 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
27198 check.
27199 (*mmx_uavgv8qi3): Likewise.
27200
27201 2019-05-17 Richard Biener <rguenther@suse.de>
27202
27203 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
27204 VEC_PERM_EXPR as __VEC_PERM with -gimple.
27205
27206 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
27207
27208 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
27209 vec_sldw insn pattern.
27210
27211 2019-05-17 Richard Biener <rguenther@suse.de>
27212
27213 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
27214
27215 2019-05-17 Martin Liska <mliska@suse.cz>
27216
27217 PR driver/90496
27218 * toplev.c (output_stack_usage): With LTO and sanitizer it
27219 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
27220 has no file location.
27221
27222 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27223
27224 PR c++/90484
27225 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
27226 sz0 is equal to sz1, instead return false in that case.
27227
27228 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
27229 has non-constant expression, force sctx.lane and use two
27230 argument IFN_GOMP_SIMD_LANE instead of single argument.
27231 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
27232 two argument IFN_GOMP_SIMD_LANE without lhs.
27233 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
27234 member.
27235 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
27236 Define.
27237 (LOOP_REQUIRES_VERSIONING): Or in
27238 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
27239 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
27240 simd_if_cond.
27241 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
27242 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
27243 from simd if clause if needed.
27244
27245 2019-05-16 Richard Biener <rguenther@suse.de>
27246
27247 * tree-affine.c (expr_to_aff_combination): New function split
27248 out from...
27249 (tree_to_aff_combination): ... here.
27250 (aff_combination_expand): Avoid building a GENERIC tree.
27251
27252 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
27253
27254 * cgraphunit.c (cgraph_node::expand_thunk): Remove
27255 assemble_start_function and assemble_end_function calls.
27256 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
27257 assemble_start_function and assemble_end_function.
27258 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
27259 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
27260 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
27261 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
27262 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
27263 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
27264 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
27265 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
27266 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
27267 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
27268 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
27269 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
27270 Likewise.
27271 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
27272 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
27273 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
27274 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
27275 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
27276 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
27277 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
27278 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
27279 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
27280 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27281 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
27282 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
27283 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
27284 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
27285 Likewise.
27286 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
27287 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
27288 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
27289
27290 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
27291
27292 * tree-ssa-alias.c (alias_stats): Add
27293 aliasing_component_refs_p_may_alias and
27294 aliasing_component_refs_p_no_alias.
27295 (dump_alias_stats): Print aliasing_component_refs_p stats.
27296 (aliasing_component_refs_p): Update stats.
27297
27298 2019-05-16 Martin Liska <mliska@suse.cz>
27299
27300 PR lto/90500
27301 * multiple_target.c (expand_target_clones): Do not allow
27302 target_clones being used with a symbol that is an alias.
27303
27304 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
27305
27306 PR tree-optimization/90394
27307 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
27308 positives rather than ICE for cases where (code2 == NE_EXPR
27309 && code1 == BIT_AND_EXPR).
27310
27311 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27312
27313 PR fortran/90329
27314 * tree-core.h (struct tree_decl_common): Document
27315 decl_nonshareable_flag for PARM_DECLs.
27316 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
27317 * calls.c (expand_call): Don't try tail call if caller
27318 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
27319 passed on the stack and callee needs to pass any arguments on the
27320 stack.
27321 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27322 else if instead of series of mutually exclusive ifs. Handle
27323 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
27324 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27325
27326 * lto-streamer.h (LTO_major_version): Bump to 9.
27327
27328 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
27329
27330 PR tree-optimization/90106
27331 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
27332 new parameter as new internal function call, also move it to new
27333 basic block.
27334 (use_internal_fn): Pass internal function call to
27335 shrink_wrap_one_built_in_call_with_conds.
27336
27337 2019-05-15 Jakub Jelinek <jakub@redhat.com>
27338
27339 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
27340 max_vf to 1.
27341 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
27342 safelen_int and set loop->dont_vectorize.
27343
27344 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27345
27346 PR target/89021
27347 * config/i386/i386-builtin.def: Enable MMX intrinsics with
27348 SSE/SSE2/SSSE3.
27349 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27350 Likewise.
27351 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
27352 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
27353 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
27354 is defined.
27355
27356 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27357
27358 PR target/89021
27359 * config/i386/mmx.md (*vec_dupv2sf): Changed to
27360 define_insn_and_split to support SSE emulation.
27361 (*vec_extractv2sf_0): Likewise.
27362 (*vec_extractv2sf_1): Likewise.
27363 (*vec_extractv2si_0): Likewise.
27364 (*vec_extractv2si_1): Likewise.
27365 (*vec_extractv2si_zext_mem): Likewise.
27366 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
27367 (vec_extractv2sf_1 splitter): Likewise.
27368 (vec_extractv2sfsf): Likewise.
27369 (vec_setv2si): Likewise.
27370 (vec_extractv2si_1 splitter): Likewise.
27371 (vec_extractv2sisi): Likewise.
27372 (vec_setv4hi): Likewise.
27373 (vec_extractv4hihi): Likewise.
27374 (vec_setv8qi): Likewise.
27375 (vec_extractv8qiqi): Likewise.
27376 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27377 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27378 (vec_extractv2sisi): Likewise.
27379 (vec_extractv4hihi): Likewise.
27380 (vec_extractv8qiqi): Likewise.
27381 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27382 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27383 (vec_initv2sisi): Likewise.
27384 (vec_initv4hihi): Likewise.
27385 (vec_initv8qiqi): Likewise.
27386 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
27387 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27388 (vec_setv4hi): Likewise.
27389 (vec_setv8qi): Likewise.
27390
27391 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27392
27393 PR target/89021
27394 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27395 TARGET_MMX_WITH_SSE.
27396 (MMXMODE:*mov<mode>_internal): Likewise.
27397 (MMXMODE:movmisalign<mode>): Likewise.
27398
27399 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
27400
27401 PR target/89021
27402 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27403 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27404 (sse2_cvtpd2pi): Ditto.
27405 (sse2_cvttpd2pi): Ditto.
27406 (*vec_concatv2sf_sse4_1): Ditto.
27407 (*vec_concatv2sf_sse): Ditto.
27408 (*vec_concatv2si_sse4_1): Ditto.
27409 (*vec_concatv2si): Ditto.
27410 (*vec_concatv4si_0): Ditto.
27411 (*vec_concatv2di_0): Ditto.
27412
27413 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27414
27415 PR target/89021
27416 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27417
27418 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27419
27420 PR target/89021
27421 * config/i386/sse.md (ssse3_palignrdi): Changed to
27422 define_insn_and_split to support SSE emulation.
27423
27424 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27425
27426 PR target/89021
27427 * config/i386/sse.md (ssse3_psign<mode>3): 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_pshufbv8qi3): Changed to
27433 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27434 SSE emulation.
27435
27436 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27437
27438 PR target/89021
27439 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27440 or TARGET_MMX_WITH_SSE.
27441 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27442
27443 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27444
27445 PR target/89021
27446 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27447
27448 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27449
27450 PR target/89021
27451 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27452 Changed to define_insn_and_split to support 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_ph<plusminus_mnemonic>wv4hi3):
27458 Changed to define_insn_and_split to support SSE emulation.
27459
27460 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27461
27462 PR target/89021
27463 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27464 (*mmx_<emms>): This.
27465 (mmx_<emms>): New expander.
27466
27467 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27468
27469 PR target/89021
27470 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27471 support.
27472 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27473
27474 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27475
27476 PR target/89021
27477 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27478
27479 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27480
27481 PR target/89021
27482 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27483
27484 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27485
27486 PR target/89021
27487 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27488 TARGET_MMX_WITH_SSE.
27489 (*mmx_uavgv4hi3): Add SSE emulation.
27490
27491 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27492
27493 PR target/89021
27494 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27495 and TARGET_MMX_WITH_SSE.
27496 (*mmx_uavgv8qi3): Add SSE emulation.
27497
27498 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27499
27500 PR target/89021
27501 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27502 maskmovdqu for __MMX_WITH_SSE__.
27503
27504 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27505
27506 PR target/89021
27507 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27508 TARGET_MMX and TARGET_MMX_WITH_SSE.
27509 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27510
27511 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27512
27513 PR target/89021
27514 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27515 define_insn_and_split to support SSE emulation.
27516
27517 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27518
27519 PR target/89021
27520 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27521 and TARGET_MMX_WITH_SSE.
27522 (mmx_<code>v8qi3): Likewise.
27523 (smaxmin:<code>v4hi3): New.
27524 (umaxmin:<code>v8qi3): Likewise.
27525 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27526 (umaxmin:*mmx_<code>v8qi3): Likewise.
27527
27528 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27529
27530 PR target/89021
27531 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27532 TARGET_MMX_WITH_SSE.
27533 (*mmx_pinsrw): Add SSE emulation.
27534
27535 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27536
27537 PR target/89021
27538 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27539
27540 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27541
27542 PR target/89021
27543 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27544 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27545 SSE emulation.
27546
27547 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27548
27549 PR target/89021
27550 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27551 (sse_cvttps2pi): Likewise.
27552
27553 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27554
27555 PR target/89021
27556 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27557 TARGET_MMX_WITH_SSE.
27558 (mmx_pshufw_1): Add SSE emulation.
27559 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27560 TARGET_MMX_WITH_SSE to support SSE emulation.
27561
27562 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27563
27564 PR target/89021
27565 * config/i386/constraints.md (Yw): New constraint.
27566 * config/i386/mmx.md (*vec_dupv2si): Changed to
27567 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27568 support SSE emulation.
27569
27570 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27571
27572 PR target/89021
27573 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27574 TARGET_MMX_WITH_SSE.
27575 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27576 support.
27577 (mmx_gt<mode>3): Likewise.
27578
27579 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27580
27581 PR target/89021
27582 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27583 TARGET_MMX_WITH_SSE. Add SSE support.
27584
27585 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27586
27587 PR target/89021
27588 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27589 TARGET_MMX_WITH_SSE.
27590 (any_logic:<code><mode>3): New.
27591 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27592 Add SSE support.
27593
27594 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27595
27596 PR target/89021
27597 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27598 TARGET_MMX_WITH_SSE. Add SSE emulation.
27599 (mmx_<shift_insn><mode>3): Likewise.
27600 (ashr<mode>3): New.
27601 (<shift_insn><mode>3): Likewise.
27602
27603 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27604
27605 PR target/89021
27606 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27607 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27608
27609 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27610
27611 PR target/89021
27612 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27613 TARGET_MMX_WITH_SSE.
27614 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27615 SSE support.
27616
27617 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27618
27619 PR target/89021
27620 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27621 TARGET_MMX_WITH_SSE.
27622 (mulv4hi3): New.
27623 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27624 support.
27625
27626 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27627
27628 PR target/89021
27629 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27630 (plusminus:mmx_<plusminus_insn><mode>3): Check
27631 TARGET_MMX_WITH_SSE.
27632 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27633 (<plusminus_insn><mode>3): New.
27634 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27635 (*mmx_<plusminus_insn><mode>3): Likewise.
27636
27637 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27638
27639 PR target/89021
27640 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27641 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27642 prototype.
27643 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27644 define_insn_and_split to support SSE emulation.
27645 (mmx_punpcklbw): Likewise.
27646 (mmx_punpckhwd): Likewise.
27647 (mmx_punpcklwd): Likewise.
27648 (mmx_punpckhdq): Likewise.
27649 (mmx_punpckldq): Likewise.
27650
27651 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27652 Uros Bizjak <ubizjak@gmail.com>
27653
27654 PR target/89021
27655 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27656 New function.
27657 (ix86_split_mmx_pack): Likewise.
27658 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27659 New prototype.
27660 (ix86_split_mmx_pack): Likewise.
27661 * config/i386/i386.md (mmx_isa): New.
27662 (enabled): Also check mmx_isa.
27663 * config/i386/mmx.md (any_s_truncate): New code iterator.
27664 (s_trunsuffix): New code attr.
27665 (mmx_packsswb): Removed.
27666 (mmx_packssdw): Likewise.
27667 (mmx_packuswb): Likewise.
27668 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27669 MMX packsswb/packuswb with SSE2.
27670 (mmx_packssdw): Likewise.
27671 * config/i386/predicates.md (register_mmxmem_operand): New.
27672
27673 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27674
27675 PR target/89021
27676 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27677 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27678 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27679 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27680 (ix86_vector_mode_supported_p): Likewise.
27681 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27682
27683 2019-05-15 Martin Liska <mliska@suse.cz>
27684
27685 PR middle-end/90478
27686 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27687 Check for overflow.
27688
27689 2019-05-15 Richard Biener <rguenther@suse.de>
27690
27691 * tree-into-ssa.c (pass_build_ssa::execute): Run
27692 update_address_taken before going into SSA.
27693
27694 2019-05-15 Richard Biener <rguenther@suse.de>
27695
27696 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27697 as __BIT_FIELD_REF with type with -gimple.
27698
27699 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27700
27701 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27702 semantically equivalent branches (left over after prior refactorings).
27703
27704 2019-05-15 Richard Biener <rguenther@suse.de>
27705
27706 PR tree-optimization/88828
27707 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27708 bogus check.
27709
27710 2019-05-14 Richard Biener <rguenther@suse.de>
27711
27712 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27713 as __VIEW_CONVERT with -gimple.
27714
27715 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27716
27717 PR target/82920
27718 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27719 Darwin.
27720
27721 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27722
27723 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27724 define_split to become a define_insn_and_split.
27725
27726 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27727
27728 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27729 arguments.
27730 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27731 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27732 (sibcall_epilogue): Adjust.
27733 (epilogue): Adjust.
27734
27735 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27736
27737 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27738 to unsupported ones.
27739 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27740 * config.host: Likewise.
27741 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27742 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27743 __svr4__]: Remove "brand" fallback.
27744 [!KSTAT_DATA_STRING]: Remove.
27745 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27746 to *-*-solaris2*.
27747 (comdat_group): Likewise.
27748 (set_have_as_tls): Likewise.
27749 (gcc_cv_target_dl_iterate_phdr): Likewise.
27750 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27751 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27752 * configure: Regenerate.
27753 * doc/install.texi: Simplify Solaris target triplets.
27754 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27755 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27756 Remove Solaris 10 references.
27757 Remove obsolete Solaris bug reference.
27758 (Specific, sparc-sun-solaris2.10): Remove.
27759
27760 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27761
27762 * config/i386/i386.md (any_div): New code iterator.
27763 (paired_mod): New code attribute.
27764 (sgnprefix): Handle DIV and UDIV RTXes.
27765 (u): Ditto.
27766 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27767 and udivmod<mode>4 patterns using any_div code iterator.
27768 (divmod splitters): Macroize splitters using any_div code iterator.
27769 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27770 (*udivmodsi4_pow2_zext_2): Ditto.
27771 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27772 and *udivmod<mode>4_noext patterns using any_div code iterator.
27773 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27774 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27775 patterns using any_div code iterator.
27776 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27777 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27778 patterns using any_div code iterator.
27779 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27780 udivmodhiqi3 patterns using any_extend code iterator.
27781
27782 2019-05-14 Richard Biener <rguenther@suse.de>
27783 H.J. Lu <hongjiu.lu@intel.com>
27784
27785 PR tree-optimization/88828
27786 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27787 permuting in a single non-constant element not extracted
27788 from a vector.
27789
27790 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27791
27792 * internal-fn.def (SIGNBIT): New.
27793 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27794 defined.
27795 (signbitv4sf2): Likewise.
27796
27797 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27798
27799 PR target/90357
27800 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27801 next insn when the SRC reg is dead.
27802
27803 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27804
27805 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27806 (alloc_cand_and_find_basis): Ditto.
27807 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27808 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27809 (create_add_imm_cand, slsr_process_cast): Ditto.
27810 (slsr_process_copy, replace_mult_candidate): Ditto.
27811 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27812 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27813 (pass_strength_reduction::execute): Init the first NULL element.
27814
27815 2019-05-13 Nathan Sidwell <nathan@acm.org>
27816
27817 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27818 (run_attempt): Reformat line break.
27819
27820 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27821
27822 PR target/90418
27823 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27824 data registers in sibcall epilogues.
27825 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27826
27827 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27828
27829 PR target/89221
27830 * configure.ac (--enable-frame-pointer):
27831 Disable by default for cygwin and mingw.
27832 * configure: Regenerate.
27833
27834 2019-05-13 Nathan Sidwell <nathan@acm.org>
27835
27836 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27837 piece of code.
27838 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27839 (gen_member_die): Move abstract origin check earlier. Only VARs
27840 can be static_inline_p. Simplify splicing control flow.
27841
27842 2019-05-13 Richard Biener <rguenther@suse.de>
27843
27844 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27845 VIEW_CONVERT_EXPR.
27846 (vect_build_slp_tree_1): Likewise.
27847
27848 2019-05-13 Richard Biener <rguenther@suse.de>
27849
27850 PR tree-optimization/90402
27851 * tree-if-conv.c (tree_if_conversion): Value number only
27852 the loop body by making the latch an exit of the region
27853 as well.
27854 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27855 processing PHIs.
27856 (do_rpo_vn): Deal with multiple edges into the entry block
27857 that are not backedges inside the region by skipping PHIs
27858 of the entry block.
27859
27860 2019-05-13 Richard Biener <rguenther@suse.de>
27861
27862 PR tree-optimization/90316
27863 * tree-ssa-pre.c (insert_aux): Fold into ...
27864 (insert): ... this function. Use a RPO walk to reduce the
27865 number of required iterations.
27866
27867 2019-05-13 Martin Liska <mliska@suse.cz>
27868
27869 PR tree-optimization/90416
27870 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27871 string instead of passing the second part as va_arg argument.
27872
27873 2019-05-13 Martin Liska <mliska@suse.cz>
27874
27875 PR gcov-profile/90380
27876 * gcov.c (handle_cycle): Do not support zero cycle count,
27877 it should not be possible.
27878 (path_contains_zero_cycle_arc): New function.
27879 (circuit): Ignore zero cycle arc counts.
27880
27881 2019-05-13 Martin Liska <mliska@suse.cz>
27882
27883 PR gcov-profile/90380
27884 * gcov.c (enum loop_type): Remove the enum and
27885 the operator.
27886 (handle_cycle): Assert that we should not reach
27887 a negative count.
27888 (circuit): Use loop_found instead of a tri-state loop_type.
27889 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27890 happen.
27891
27892 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27893
27894 PR target/82920
27895 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27896 (ix86_output_indirect_branch_via_reg): Use output mechanism
27897 accounting for __USER_LABEL_PREFIX__.
27898 (ix86_output_indirect_branch_via_push): Likewise.
27899 (ix86_output_function_return): Likewise.
27900 (ix86_output_indirect_function_return): Likewise.
27901
27902 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27903
27904 * doc/md.texi: Document use of code attributes in rtx patterns.
27905 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27906 * read-rtl.c (find_code): Split out search loops into...
27907 (maybe_find_code): ...this new function.
27908 (check_code_iterator): Make the error message more informative.
27909 (check_code_attribute): New function.
27910 (rtx_reader::rtx_alloc_for_name): Likewise.
27911 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27912 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27913 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27914 <max_opp> directly as an rtx code instead of via a match_operator.
27915 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27916 (<su>abd<mode>_3): Update accordingly.
27917
27918 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27919
27920 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27921 is given, print the state of the EH "save world" computation for
27922 Darwin.
27923
27924 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27925
27926 PR c++/59813
27927 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27928 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27929
27930 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27931
27932 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27933 Use pinsrd for TARGET_SSE4_1.
27934 * config/i386/sse.md (movdi_to_sse): Ditto.
27935
27936 2019-05-10 Richard Biener <rguenther@suse.de>
27937
27938 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27939 (do_rpo_vn): Initialize next_value_id.
27940
27941 2019-05-10 Martin Liska <mliska@suse.cz>
27942
27943 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27944 Fix plural form.
27945
27946 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27947
27948 PR tree-optimization/90385
27949 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27950 arguments of the exit phis.
27951
27952 PR c++/90383
27953 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27954 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27955 id->do_not_fold.
27956 (copy_tree_body_r): Likewise.
27957 (copy_fn): Set id.do_not_fold to true.
27958
27959 2019-05-10 Martin Liska <mliska@suse.cz>
27960
27961 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27962 Reapply changes from r269790.
27963
27964 2019-05-10 Martin Liska <mliska@suse.cz>
27965
27966 PR middle-end/90340
27967 * doc/invoke.texi: New params.
27968 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27969 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27970 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27971 Use it.
27972 * tree-switch-conversion.h (struct jump_table_cluster):
27973 Likewise.
27974
27975 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27976
27977 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27978
27979 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27980
27981 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27982
27983 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27984
27985 PR rtl-optimization/88879
27986 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27987
27988 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27989
27990 PR target/90405
27991 * config/arm/arm.c (callee_saved_reg_p): Move before
27992 thumb_find_work_register.
27993 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27994 thumb_find_work_register. Only call df_get_live_out once.
27995 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27996 (thumb_find_work_register): Use
27997 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27998 algorithms to locate a spare call clobbered reg.
27999
28000 2019-05-09 Martin Liska <mliska@suse.cz>
28001
28002 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
28003 and MAX_EXPR in GIMPLE FE format.
28004
28005 2019-05-09 Martin Liska <mliska@suse.cz>
28006
28007 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
28008 * gimple-pretty-print.c (dump_gimple_bb_header):
28009 Dump BB count.
28010 (pp_cfg_jump): Dump edge probability.
28011 * profile-count.c (profile_quality_as_string): Simplify
28012 with a static array.
28013 (parse_profile_quality): New function.
28014 (profile_count::dump): Simplify with a static array.
28015 (profile_count::from_gcov_type): Add new argument.
28016 * profile-count.h (parse_profile_quality): Likewise.
28017 * predict.h (set_hot_bb_threshold): New.
28018 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28019 New param.
28020 * predict.c (get_hot_bb_threshold): Set from the new param.
28021 (set_hot_bb_threshold): New.
28022
28023 2019-05-09 Richard Biener <rguenther@suse.de>
28024
28025 PR tree-optimization/90395
28026 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
28027 rewrite vector stores that throw internally.
28028
28029 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
28030
28031 * cif-code.def (CHKP): Remove.
28032
28033 PR target/89221
28034 * configure.ac (--enable-frame-pointer): Disable by default for
28035 GNU systems.
28036 * configure: Regenerate.
28037
28038 2019-05-09 Alan Modra <amodra@gmail.com>
28039
28040 PR target/89271
28041 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
28042 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
28043 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
28044 cost for general <-> vsx when direct moves are available.
28045 Cost union classes at minimal cost for any reg in the class.
28046 Correct calculation for moves between vsx, float, and altivec.
28047 Don't return a low cost for moves between special regs. Don't
28048 use hard coded register numbers.
28049 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
28050 (rs6000_ira_change_pseudo_allocno_class): New function.
28051 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
28052 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
28053 alternatives.
28054 (movsi_internal1): Don't disparage vector alternatives.
28055 (mov<mode>_internal): Likewise, excepting alternative that
28056 will be split.
28057 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
28058 we <- b alternative.
28059
28060 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28061
28062 PR c++/59813
28063 PR tree-optimization/89060
28064 * tree-ssa-live.h (live_vars_map): New typedef.
28065 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
28066 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
28067 (struct compute_live_vars_data): New type.
28068 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
28069 live_vars_at_stmt, destroy_live_vars): New functions.
28070 * tree-tailcall.c: Include tree-ssa-live.h.
28071 (live_vars, live_vars_vec): New global variables.
28072 (find_tail_calls): Perform variable life analysis before punting.
28073 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
28074 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
28075 member.
28076 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
28077 Perform variable life analysis to select variables that really need
28078 clobbers added.
28079 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
28080 instead set id->eh_landing_pad_dest and assert it is the same.
28081 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
28082
28083 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
28084 Richard Earnshaw <rearnsha@arm.com>
28085
28086 PR target/88167
28087 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
28088 function.
28089 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
28090 (thumb1_compute_save_core_reg_mask): Don't force a spare work
28091 register if both the epilogue and prologue can use call-clobbered
28092 regs.
28093 (thumb1_unexpanded_epilogue): Use
28094 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
28095 picking temporaries for restoring high regs to match that of the
28096 prologue where possible.
28097 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
28098 the list of work registers. Detect if the return address is still live
28099 at the end of the prologue and avoid using it for a work register if so.
28100 If the return address is not live, add LR to the list of pushable regs
28101 after the first pass.
28102
28103 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28104
28105 PR tree-optimization/90078
28106 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
28107 (INFTY): Increase the value for infinite cost.
28108 (struct comp_cost): Promote type of members to int64_t.
28109 (infinite_cost): Don't set complexity in initialization.
28110 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
28111 overflows to infinite_cost.
28112 (adjust_setup_cost): Promote type of parameter and cost computation
28113 to int64_t.
28114 (struct ainc_cost_data, struct iv_ca): Promote type of member to
28115 int64_t.
28116 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
28117 cost computation to int64_t.
28118 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
28119 int64_t's format specifier in dump.
28120
28121 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28122
28123 PR tree-optimization/90240
28124 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
28125 with respect to scaling factor pre-computed for each basic block.
28126 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
28127 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
28128 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
28129 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
28130 live range for array of loop's basic blocks. Cleanup aux field of
28131 loop's basic blocks.
28132
28133 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28134
28135 PR tree-optimization/90356
28136 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
28137
28138 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
28139
28140 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
28141 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
28142 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
28143 (ix86_handle_option): Handle -mavx512bf16.
28144 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
28145 to extra_headers.
28146 * config/i386/avx512bf16vlintrin.h: New.
28147 * config/i386/avx512bf16intrin.h: New.
28148 * config/i386/cpuid.h (bit_AVX512BF16): New.
28149 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
28150 * config/i386/i386-builtin-types.def: Add new types.
28151 * config/i386/i386-builtin.def: Add new builtins.
28152 * config/i386/i386-c.c (ix86_target_macros_internal): Define
28153 __AVX512BF16__.
28154 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
28155 (ix86_option_override_internal): Handle BF16.
28156 (ix86_valid_target_attribute_inner_p): Ditto.
28157 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
28158 * config/i386/i386-builtin.c (enum processor_features): Add
28159 F_AVX512BF16.
28160 (static const _isa_names_table isa_names_table): Ditto.
28161 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
28162 (PTA_AVX512BF16): Ditto.
28163 * config/i386/i386.opt: Add -mavx512bf16.
28164 * config/i386/immintrin.h: Include avx512bf16intrin.h
28165 and avx512bf16vlintrin.h.
28166 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
28167 avx512f_cvtneps2bf16_<mode><mask_name>,
28168 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
28169 * config/i386/subst.md (mask_half): Add new subst.
28170 * doc/invoke.texi: Document -mavx512bf16.
28171
28172 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
28173
28174 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
28175 Delete declaration.
28176 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
28177 (rs6000_debug_legitimize_reload_address): Delete.
28178 (rs6000_legitimize_reload_address_ptr): Delete.
28179 (rs6000_option_override_internal): Adjust.
28180 (mem_operand_gpr): Adjust comment.
28181 (legitimate_lo_sum_address_p): Ditto.
28182 (rs6000_legitimize_reload_address): Delete.
28183 (rs6000_debug_legitimize_reload_address): Delete.
28184 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
28185
28186 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
28187
28188 PR target/89765
28189 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28190 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
28191 to compute vector element selector for both constant and variable
28192 operands.
28193
28194 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28195
28196 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
28197 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
28198 ashrdi3_cvt using SWI48 mode iterator.
28199
28200 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28201
28202 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
28203 (aarch64_<su>abd<mode>_3): Likewise.
28204 (*aarch64_<su>abd<mode>_3): New define_insn.
28205 (<sur>sad<vsi2qi>): New define_expand.
28206 * config/aarch64/iterators.md: Added MAX_OPP attribute.
28207 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
28208 (build_vect_cond_expr): Likewise.
28209
28210 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28211
28212 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
28213 clobbers outside of accessible_reg_set.
28214 * config/i386/i386.c (ix86_conditional_register_usage):
28215 Disable register sets by clearing corresponding bits in
28216 accessible_reg_set. Do not set corresponding bits in fixed_regs,
28217 call_used_regs and don't clear corresponding reg_names array members.
28218
28219 2019-05-07 Richard Biener <rguenther@suse.de>
28220
28221 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
28222 not specified still compute a comp_vectype for invariant
28223 compares.
28224
28225 2019-05-07 Richard Biener <rguenther@suse.de>
28226
28227 PR tree-optimization/90316
28228 * tree-ssa-pre.c (translate_vuse_through_block): When
28229 same_valid is NULL do not bother to search for a virtual
28230 PHI continuation.
28231 (phi_translate_1): When operands changed we cannot keep
28232 the same value-number so do not bother to ask whether
28233 that's possible from translate_vuse_through_block.
28234
28235 2019-05-07 Martin Liska <mliska@suse.cz>
28236
28237 * bitmap.c (bitmap_register): Come up with
28238 alloc_descriptor_max_uid and assign it for
28239 a new bitmap.
28240 (register_overhead): Use get_descriptor as
28241 a descriptor.
28242 (release_overhead): New.
28243 (bitmap_elem_to_freelist): Call it.
28244 (bitmap_elt_clear_from): Likewise.
28245 (bitmap_obstack_free): Likewise.
28246 (bitmap_move): Sensitively release memory.
28247 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
28248 (bitmap_initialize): Initialize alloc_descriptor to zero.
28249 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
28250
28251 2019-05-07 Richard Biener <rguenther@suse.de>
28252
28253 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
28254 we build a SLP node. Remove max_size and limiting.
28255 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
28256
28257 2019-05-07 Richard Biener <rguenther@suse.de>
28258
28259 PR tree-optimization/90316
28260 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
28261 limit by reference.
28262 (walk_non_aliased_vuses): Take walking limit argument.
28263 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
28264 walking if it is reached instead of just counting.
28265 (get_continuation_for_phi): Likewise.
28266 (walk_non_aliased_vuses): Likewise, instead of leaving counter
28267 limiting to the callback.
28268 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
28269 (vn_reference_lookup_3): Likewise.
28270 (vn_reference_lookup_pieces): Likewise.
28271 (vn_reference_lookup): Likewise.
28272 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
28273 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
28274 (avail_exprs_stack::lookup_avail_expr): Likewise.
28275
28276 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
28277
28278 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
28279 for comparaible types in the second direction even if first one
28280 hits incomparable type.
28281
28282 2019-05-07 Richard Biener <rguenther@suse.de>
28283
28284 PR lto/90369
28285 * lto-wrapper.c (debug_objcopy): Use the original filename
28286 including archive offset for the filename used for -save-temps.
28287
28288 2019-05-07 Li Jia He <helijia@linux.ibm.com>
28289
28290 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
28291 detection.
28292
28293 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
28294 Hongtao Liu <hongtao.liu@intel.com>
28295
28296 PR target/89750
28297 PR target/86444
28298 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
28299 Modified, original implementation isn't correct.
28300
28301 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28302
28303 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
28304 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
28305 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
28306 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
28307 (FRAME_POINTER_REGNUM): Change numbering.
28308 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
28309 (alt_reg_names): Adjust.
28310 (rs6000_conditional_register_usage): Don't mark hard register 64 as
28311 fixed.
28312 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28313 (DWARF_FRAME_REGISTERS): Delete.
28314 (DWARF2_FRAME_REG_OUT): Fix whitespace.
28315 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28316 Adjust.
28317 (REG_ALLOC_ORDER): Adjust.
28318 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
28319 (REG_CLASS_CONTENTS): Adjust.
28320 (RETURN_ADDR_RTX): Change comment.
28321 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
28322 instead of 67.
28323 (REGISTER_NAMES): Adjust.
28324 (ADDITIONAL_REGISTER_NAMES): Adjust.
28325 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28326
28327 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28328
28329 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
28330 Delete.
28331 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28332 (DWARF_FRAME_REGISTERS): Adjust.
28333 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28334 Adjust.
28335 (REG_ALLOC_ORDER): Adjust.
28336 (enum reg_class): Delete SPR_REGS.
28337 (REG_CLASS_NAMES): Delete SPR_REGS.
28338 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
28339 (REGISTER_NAMES): Adjust.
28340 (ADDITIONAL_REGISTER_NAMES): Adjust.
28341 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28342 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
28343 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
28344 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
28345 (htm_spr_regno): Delete.
28346 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
28347 argument.
28348 (rs6000_dbx_register_number): Adjust.
28349
28350 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28351
28352 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
28353
28354 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28355
28356 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
28357 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
28358
28359 2019-05-06 Jakub Jelinek <jakub@redhat.com>
28360
28361 PR tree-optimization/88709
28362 PR tree-optimization/90271
28363 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
28364 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
28365 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
28366 variable.
28367 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
28368 of the store merging group is larger than
28369 PARAM_STORE_MERGING_MAX_SIZE parameter.
28370 (split_group): Add bzero_first argument. If set, always emit first
28371 the first store which must be = {} of the whole area and then for the
28372 rest of the stores consider all zero bytes as paddings.
28373 (imm_store_chain_info::output_merged_store): Check if first store
28374 is = {} of the whole area and if yes, determine which setting of
28375 bzero_first for split_group gives smaller number of stores. Adjust
28376 split_group callers.
28377 (lhs_valid_for_store_merging_p): Allow decls.
28378 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28379 no elts.
28380 (pass_store_merging::process_store): Likewise.
28381
28382 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
28383
28384 PR target/89424
28385 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28386 handling of V1TImode.
28387
28388 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
28389
28390 PR target/89221
28391 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28392 and enable_frame_pointer ...
28393 * configure.ac: ... here. Update help strings for
28394 --enable-frame-pointer.
28395 * configure: Regenerate.
28396 * config/i386/i386-options.c (ix86_option_override_internal): Remove
28397 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28398 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28399 (USE_X86_64_FRAME_POINTER): Ditto.
28400
28401 2019-05-06 Martin Liska <mliska@suse.cz>
28402
28403 * config.gcc: Append to target_gtfiles and fix indentation.
28404
28405 2019-05-06 Richard Biener <rguenther@suse.de>
28406
28407 PR tree-optimization/90358
28408 * tree-vect-stmts.c (get_group_load_store_type): Properly
28409 detect unused upper half of load.
28410 (vectorizable_load): Likewise.
28411
28412 2019-05-06 Richard Biener <rguenther@suse.de>
28413
28414 PR tree-optimization/88828
28415 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28416 (simplify_vector_constructor): ...here. Handle constants in
28417 the constructor.
28418
28419 2019-05-06 Richard Biener <rguenther@suse.de>
28420
28421 PR tree-optimization/90328
28422 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28423 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28424 is valid in the loop nest before using it.
28425 (initialize_data_dependence_relation): Adjust.
28426 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28427 loop as loop-nest to dr_may_alias_p.
28428
28429 2019-05-06 Richard Biener <rguenther@suse.de>
28430
28431 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28432
28433 2019-05-06 Richard Biener <rguenther@suse.de>
28434
28435 PR tree-optimization/90316
28436 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28437 compute target on demand.
28438 (get_continuation_for_phi): Remove code walking stmts to
28439 get to a target virtual operand which could end up being
28440 quadratic.
28441
28442 2019-05-06 Martin Liska <mliska@suse.cz>
28443
28444 PR sanitizer/90312
28445 * config/i386/i386-options.c (ix86_option_override_internal): Error only
28446 when -mabi is selected to a non-default version.
28447
28448 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28449 Martin Liska <mliska@suse.cz>
28450
28451 * Makefile.in: Add lto-dump.texi.
28452 * cgraph.h: Add new functions get_visibility_string and
28453 get_symtab_type_string.
28454 * doc/gcc.texi: Include lto-dump section.
28455 * doc/lto-dump.texi: New file.
28456 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28457 (parse_dump_option): Factor out this function.
28458 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28459 (parse_dump_option): Export the function.
28460 * symtab.c (symtab_node::get_visibility_string): New function.
28461 (symtab_node::get_symtab_type_string): Likewise.
28462
28463 2019-05-06 Martin Liska <mliska@suse.cz>
28464
28465 * config/i386/i386-builtins.c: New file.
28466 * config/i386/i386-builtins.h: New file.
28467 * config/i386/i386-expand.c: New file.
28468 * config/i386/i386-expand.h: New file.
28469 * config/i386/i386-features.c: New file.
28470 * config/i386/i386-features.h: New file.
28471 * config/i386/i386-options.c: New file.
28472 * config/i386/i386-options.h: New file.
28473 * config.gcc: Add new files into extra_objs and
28474 target_gtfiles.
28475 * config/i386/i386.c: Split content of the file
28476 into newly introduced files.
28477 * config/i386/i386.h: Declare common variables
28478 and macros.
28479 * config/i386/t-i386: Define dependencies for new files.
28480
28481 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28482
28483 PR target/89400
28484 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28485 Restrict 'all' variant to 32-bit configurations.
28486 (unaligned_loadhiu): Likewise.
28487 (unaligned_storehi): Likewise.
28488 (unaligned_storesi): Likewise.
28489 (unaligned_loadhis): Disable when compiling for thumb1.
28490
28491 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28492
28493 PR tree-optimization/90269
28494 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28495 Ignore clobbers.
28496
28497 2019-05-03 Martin Liska <mliska@suse.cz>
28498
28499 * hash-map.h: Add is_empty function.
28500 * hash-set.h: Likewise.
28501 * hash-table.h: Likewise.
28502 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28503 elements () == 0 (and similar usages).
28504 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28505 * gimplify.c (gimplify_bind_expr): Likewise.
28506 (gimplify_switch_expr): Likewise.
28507 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28508 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28509 * postreload-gcse.c (dump_hash_table): Likewise.
28510 (gcse_after_reload_main): Likewise.
28511 * predict.c (combine_predictions_for_bb): Likewise.
28512 * tree-parloops.c (reduction_phi): Likewise.
28513 (separate_decls_in_region): Likewise.
28514 (transform_to_exit_first_loop): Likewise.
28515 (gen_parallel_loop): Likewise.
28516 (gather_scalar_reductions): Likewise.
28517 (try_create_reduction_list): Likewise.
28518 * var-tracking.c (dump_vars): Likewise.
28519 (emit_notes_for_changes): Likewise.
28520 (vt_emit_notes): Likewise.
28521
28522 2019-05-03 Richard Biener <rguenther@suse.de>
28523
28524 PR tree-optimization/90316
28525 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28526 before running VN.
28527
28528 2019-05-03 Richard Biener <rguenther@suse.de>
28529
28530 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28531 peeling for gaps by loading only lower halves of vectors
28532 if possible.
28533 (vectorizable_load): Likewise.
28534
28535 2019-05-03 Richard Biener <rguenther@suse.de>
28536
28537 PR middle-end/89518
28538 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28539
28540 2019-05-03 Richard Biener <rguenther@suse.de>
28541
28542 PR middle-end/87314
28543 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28544 Handle STRING_CST vs DECL or STRING_CST.
28545
28546 2019-05-03 Richard Biener <rguenther@suse.de>
28547
28548 PR tree-optimization/88963
28549 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28550 vector loads feeding only BIT_FIELD_REFs to component
28551 loads. Rewrite stores fed by CONSTRUCTORs to component
28552 stores.
28553
28554 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28555
28556 * opts.h (finish_options): Remove lang_mask argument.
28557 (print_help, help_option_argument): Declare.
28558 * opts.c (print_help): Remove forward declaration, no longer static.
28559 (finish_options): Remove lang_mask argument, don't call print_help
28560 here.
28561 * opts-global.c (decode_options): Adjust finish_option caller, call
28562 print_help here.
28563
28564 PR tree-optimization/90303
28565 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28566 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28567
28568 2019-05-03 Richard Biener <rguenther@suse.de>
28569
28570 PR tree-optimization/89698
28571 * gimple-fold.c (canonicalize_constructor_val): Early out
28572 for constants, handle unfolded INTEGER_CSTs as they appear in
28573 C++ virtual table ctors.
28574
28575 2019-05-03 Richard Biener <rguenther@suse.de>
28576
28577 * passes.c (execute_function_todo): Remove dead code.
28578
28579 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28580
28581 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28582 the internal register number, for any "real" register.
28583
28584 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28585
28586 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28587 correct numbers for TFHAR, TFIAR, TEXASR.
28588
28589 2019-05-02 Richard Biener <rguenther@suse.de>
28590
28591 PR tree-optimization/89653
28592 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28593 update-address-taken before the pass.
28594 * passes.def (pass_tree_loop_init): Put comment before it.
28595
28596 2019-05-02 Richard Biener <rguenther@suse.de>
28597
28598 PR tree-optimization/89509
28599 * tree-ssa-structalias.c (compute_dependence_clique): Look
28600 at the first subvar when determining whether it is restrict.
28601
28602 2019-05-02 Richard Biener <rguenther@suse.de>
28603
28604 PR tree-optimization/90273
28605 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28606 useless debug stmts.
28607
28608 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28609
28610 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28611 ACLE branch.
28612 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28613 SVE ACLE branch.
28614 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28615 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28616 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28617 (vectorizable_reduction): Use the functions above to vectorize in a
28618 fully masked loop codes that don't have a conditional internal
28619 function.
28620
28621 2019-05-02 Martin Liska <mliska@suse.cz>
28622
28623 * cgraphclones.c: Call valid_attribute_p with 1 for
28624 target_clone.
28625 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28626 it's for target attribute.
28627 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28628 Add new boolean argument.
28629 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28630 Likewise.
28631 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28632 to ix86_valid_target_attribute_inner_p.
28633 (ix86_valid_target_attribute_p): Pass flags argument to
28634 ix86_valid_target_attribute_inner_p.
28635 (get_builtin_code_for_version): Use 0 as it's target attribute.
28636
28637 2019-05-02 Martin Liska <mliska@suse.cz>
28638
28639 * gcc.c (process_command): Add dummy file only
28640 if n_infiles == 0.
28641 * opts-global.c (decode_options): Pass lang_mask.
28642 * opts.c (print_help): New function.
28643 (finish_options): Print --help if help_option_argument
28644 is set.
28645 (common_handle_option): Factor out content of OPT__help_
28646 into print_help.
28647 * opts.h (finish_options): Add new argument.
28648
28649 2019-05-02 Martin Liska <mliska@suse.cz>
28650
28651 PR target/88809
28652 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28653 With -minline-all-stringops use inline expansion using 4B loop.
28654 * doc/invoke.texi: Document the change of
28655 -minline-all-stringops.
28656
28657 2019-05-01 Jeff Law <law@redhat.com>
28658
28659 PR tree-optimization/88797
28660 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28661 PHI feeds a conditional on the RHS of an assignment.
28662
28663 2019-04-30 Andrew Waterman <andrew@sifive.com>
28664 Jim Wilson <jimw@sifive.com>
28665
28666 * config/riscv/constraints.md (L): New.
28667 * config/riscv/predicates.md (lui_operand): New.
28668 (sfb_alu_operand): New.
28669 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28670 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28671 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28672 * config/riscv/risc.md (type): Add sfb_alu.
28673 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28674 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28675 (branch_zero<mode>): Delete.
28676 (mov<mode>cc): New.
28677 (mov<GPR:mode><X:mode>cc): Likewise.
28678 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28679
28680 2019-04-30 Nathan Sidwell <nathan@acm.org>
28681
28682 * tree.h (MARK_TS_EXP): New.
28683
28684 2019-04-30 Martin Liska <mliska@suse.cz>
28685
28686 * opts.c (enable_warning_as_error): Provide hints
28687 for unknown options.
28688
28689 2019-04-30 Martin Liska <mliska@suse.cz>
28690
28691 PR debug/90288
28692 * doc/invoke.texi: Add missing dash for gas-locview-support
28693 and gno-as-locview-support.
28694
28695 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28696
28697 PR target/89093
28698 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28699 whitespace at the start of target attribute string.
28700
28701 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28702
28703 PR target/86538
28704 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28705 Define __ARM_FEATURE_ATOMICS.
28706
28707 2019-04-30 Martin Liska <mliska@suse.cz>
28708
28709 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28710 into built_in_function enum. Remove code for endp == 2 and
28711 use BUILT_IN_* constants.
28712 (gimple_fold_builtin): Call the function with fcode.
28713
28714 2019-04-30 Martin Liska <mliska@suse.cz>
28715
28716 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28717 DECL_FUNCTION_CODE into ix86_builtins enum before
28718 the switch statement.
28719
28720 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28721
28722 PR tree-optimization/89475
28723 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28724 calls.
28725
28726 2019-04-30 Martin Liska <mliska@suse.cz>
28727
28728 PR translation/90274
28729 * opts.c (print_filtered_help): Wrap string in _(...).
28730
28731 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28732
28733 PR tree-optimization/90240
28734 Revert:
28735 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28736
28737 PR tree-optimization/90078
28738 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28739 checks for infinite_cost overflow.
28740
28741 2019-04-29 Jeff Law <law@redhat.com>
28742
28743 * passes.def: Move -Wrestrict pass after copy propagation.
28744
28745 2019-04-29 Maya Rashish <coypu@sdf.org>
28746
28747 * config.gcc (default_gnu_indirect_function): Default to yes
28748 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28749 sparc*-*-netbsd*, x86_64-*-netbsd*.
28750
28751 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28752
28753 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28754 where cond2 is NE_EXPR.
28755 (is_value_included_in): Update comment.
28756
28757 2019-04-29 Richard Biener <rguenther@suse.de>
28758
28759 PR tree-optimization/90278
28760 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28761 EH on comparison simplification.
28762
28763 2019-04-29 Jason Merrill <jason@redhat.com>
28764
28765 PR c++/82081 - tail call optimization breaks noexcept
28766 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28767 nothrow function to a might-throw function into a tail call.
28768
28769 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28770
28771 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28772 (DDR_INNER_LOOP): Likewise.
28773 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28774 (initialize_data_dependence_relation): Likewise.
28775 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28776
28777 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28778
28779 PR rtl-optimization/90257
28780 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28781 return value.
28782
28783 Revert the revert:
28784 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28785
28786 PR target/90178
28787 Revert:
28788 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28789
28790 Revert the revert:
28791 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28792
28793 Revert:
28794 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28795
28796 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28797
28798 2019-04-29 Richard Biener <rguenther@suse.de>
28799
28800 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28801 rhs issue a reset.
28802
28803 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28804
28805 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28806 varasm.h, and netbsd-protos.h.
28807
28808 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28809
28810 PR target/89261
28811 * config/i386/i386-protos.h (ix86_data_alignment): Change
28812 the second argument type to unsigned int.
28813 * config/i386/i386.c (ix86_data_alignment): Change "align"
28814 argument type to unsigned int.
28815
28816 2019-04-27 Martin Liska <mliska@suse.cz>
28817
28818 PR middle-end/90258
28819 * opt-suggestions.c (option_proposer::build_option_suggestions):
28820 When get_valid_option_values returns empty values, add the
28821 misspelling candidate.
28822
28823 2019-04-26 Jim Wilson <jimw@sifive.com>
28824
28825 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28826 parameter.
28827 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28828 Pass orig_mode to riscv_build_integer.
28829 (riscv_split_integer): Pass mode to riscv_move_integer.
28830 (riscv_legitimize_const_move): Likewise.
28831 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28832 promoted_mode. Replace force_reg call with code to load constant into
28833 promoted reg and then subreg it for the store.
28834 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28835 riscv_move_integer.
28836
28837 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28838
28839 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28840 corrupt codes.
28841
28842 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28843
28844 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28845 commentary about the encoding of precision.
28846
28847 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28848
28849 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28850 * config/i386/t-freebsd64: New file.
28851 * config.gcc: Add the t-freebsd64 for multilib support.
28852
28853 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28854
28855 * doc/extend.texi (vector_size): Add missing comma after @xref.
28856
28857 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28858
28859 * BASE-VER: Set to 10.0.0.
28860
28861 2019-04-25 Richard Biener <rguenther@suse.de>
28862
28863 PR middle-end/89765
28864 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28865 VIEW_CONVERT_EXPR into one operating on an rvalue.
28866
28867 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28868
28869 PR target/89929
28870 * config/i386/i386.c (feature_priority): Moved to file scope.
28871 (processor_features): Likewise.
28872 (processor_model): Likewise.
28873 (_arch_names_table): Likewise.
28874 (arch_names_table): Likewise.
28875 (_feature_list): Removed.
28876 (feature_list): Likewise.
28877 (_isa_names_table): Moved to file scope. Add priority.
28878 (isa_names_table): Likewise.
28879 (get_builtin_code_for_version): Replace feature_list with
28880 isa_names_table. Update error message for P_ZERO priority.
28881
28882 2019-04-25 Richard Biener <rguenther@suse.de>
28883
28884 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28885 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28886
28887 2019-04-24 Jeff Law <law@redhat.com>
28888
28889 PR tree-optimization/90037
28890 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28891 * passes.def: Replace all instance of phi-only cprop with the
28892 lattice propagator. Move propagation pass from after erroneous
28893 path isolation to before erroneous path isolation.
28894 * tree-ssa-phionlycprop.c: Remove.
28895
28896 2019-04-24 Richard Biener <rguenther@suse.de>
28897
28898 PR middle-end/90213
28899 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28900 by size and BITS_PER_UNIT on poly-wide-ints.
28901
28902 2019-04-25 Richard Biener <rguenther@suse.de>
28903
28904 PR middle-end/90194
28905 * match.pd: Add pattern to simplify view-conversion of an
28906 empty constructor.
28907
28908 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28909
28910 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28911 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28912 for Go on 32 bit AIX.
28913 * config/rs6000/aix72.h: Likewise.
28914
28915 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28916
28917 PR target/90193
28918 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28919 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28920
28921 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28922
28923 PR target/89952
28924 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28925 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28926 for restored hard frame pointer.
28927 (s390_sched_dependencies_evaluation): Implement new target hook.
28928 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28929
28930 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28931
28932 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28933 * config/arc/arc.c (arc_init): Cleanup warning message.
28934 (arc_override_options): Likewise.
28935
28936 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28937
28938 PR target/90187
28939 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28940 a register if both if_true and if_false are MEMs.
28941
28942 PR tree-optimization/90208
28943 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28944 after labels of new_bb, not before them.
28945
28946 PR tree-optimization/90211
28947 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28948 which are not SSA_NAMEs.
28949
28950 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28951
28952 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28953 AArch64.
28954 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28955
28956 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28957
28958 PR rtl-optimization/87979
28959 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28960 not equal zero.
28961
28962 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28963
28964 PR rtl-optimization/84032
28965 * modulo-sched.c (ps_insn_find_column): Change condition so that
28966 branch will always be the last insn in a row inside partial
28967 schedule.
28968
28969 2019-04-23 Richard Biener <rguenther@suse.de>
28970
28971 PR debug/90131
28972 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28973 dest_single_pred_p argument.
28974 (remove_forwarder_block): Adjust.
28975 (remove_forwarder_block_with_phi): Likewise.
28976
28977 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28978 Bernd Edlinger <bernd.edlinger@hotmail.de>
28979 Jakub Jelinek <jakub@redhat.com>
28980
28981 PR target/89093
28982 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28983 if used with general-regs-only.
28984 (arm_conditional_register_usage): Don't add non-general regs if
28985 general-regs-only.
28986 (arm_valid_target_attribute_rec): Handle general-regs-only.
28987 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28988 general-regs-only.
28989 (TARGET_HARD_FLOAT_SUB): Define.
28990 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28991 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28992 (TARGET_REALLY_IWMMXT2): Likewise.
28993 * config/arm/arm.opt: Add -mgeneral-regs-only.
28994 * doc/extend.texi: Document ARM general-regs-only target.
28995 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28996
28997 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28998
28999 PR tree-optimization/90078
29000 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
29001 checks for infinite_cost overflow.
29002
29003 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29004
29005 PR tree-optimization/90021
29006 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
29007 and check univariate against it.
29008 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
29009 * tree-data-ref.c (add_other_self_distances): Pass new argument.
29010
29011 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
29012
29013 PR target/90178
29014 Revert:
29015 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
29016
29017 Revert the revert:
29018 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
29019
29020 Revert:
29021 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
29022
29023 * lra-spills.c (lra_final_code_change): Remove useless move insns.
29024
29025 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
29026
29027 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
29028 names using operand format, rather than hard-wired.
29029 (speculation_barrier): Likewise.
29030
29031 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
29032
29033 PR tree-optimization/88055
29034 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
29035 (gen_one_condition): Use it if !HONOR_NANS.
29036
29037 2019-04-19 Jakub Jelinek <jakub@redhat.com>
29038
29039 PR middle-end/90139
29040 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
29041 assign_temp instead of gen_reg_rtx.
29042
29043 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
29044
29045 PR translation/90118
29046 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29047 Add missing space before %<.
29048
29049 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
29050
29051 PR rtl-optimization/87871
29052 * ira-lives.c (make_object_dead): Don't add conflicts to
29053 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
29054
29055 2019-04-18 Martin Sebor <msebor@redhat.com>
29056
29057 PR middle-end/89797
29058 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
29059 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
29060 assuming type size fits in SHWI.
29061
29062 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
29063
29064 PR ipa/85051
29065 * ipa-inline.c (flatten_function): New parameter UPDATE.
29066 (ipa_inline, early_inliner): Use it.
29067
29068 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29069
29070 * fold-const.c (int_const_binop): Return early on failure.
29071
29072 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29073
29074 PR middle-end/85164
29075 * combine.c (force_int_to_mode): Cast the argument rather than
29076 the result of known_alignment.
29077 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
29078
29079 2019-04-18 Richard Biener <rguenther@suse.de>
29080
29081 PR debug/90131
29082 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
29083 out from ...
29084 (remove_forwarder_block): ... here.
29085 (remove_forwarder_block_with_phi): Also move debug stmts here.
29086
29087 2019-04-18 Jakub Jelinek <jakub@redhat.com>
29088
29089 PR translation/79183
29090 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
29091 inform where appropriate.
29092
29093 2019-04-18 Richard Biener <rguenther@suse.de>
29094
29095 * tree.c (get_qualified_type): Put found type variants at the
29096 head of the variant list.
29097
29098 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29099
29100 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
29101
29102 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
29103
29104 PR target/90125
29105 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
29106 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
29107 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
29108 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
29109 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
29110
29111 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
29112
29113 * ira-conflicts.c (print_allocno_conflicts): Always print something,
29114 even for allocno's with no conflicts.
29115 (print_conflicts): Print an extra newline.
29116
29117 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29118
29119 * auto-inc-dec.c (attempt_change): Set the alignment of the
29120 temporary memory to that of the original.
29121
29122 2019-04-17 Joao Moreira <jmoreira@suse.de>
29123
29124 * targhooks.c (default_print_patchable_function_entry): Emit
29125 __patchable_function_entries section with writable flags to allow
29126 relocation resolution.
29127
29128 2019-04-17 Jonny Grant <jg@jguk.org>
29129
29130 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
29131
29132 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29133
29134 PR middle-end/90095
29135 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
29136 on lowpart SUBREGs.
29137
29138 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
29139
29140 * config/arc/arc.c (arc_init): Format diagnostic string.
29141 (arc_override_options): Likewise.
29142 (check_if_valid_regno_const): Likewise.
29143 (arc_reorg): Likewise.
29144
29145 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29146
29147 PR target/17108
29148 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
29149 name.
29150 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
29151 name.
29152 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
29153 (*movdi_update1): Use Pmode.
29154 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
29155 (movdi_<mode>_update_stack): Rename to ...
29156 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
29157 use Pmode.
29158 (*movsi_update1): Use Pmode.
29159 (*movsi_update2): Use Pmode.
29160 (movsi_update): Rename to ...
29161 (movsi_<mode>_update): ... this. Use Pmode.
29162 (movsi_update_stack): Fix condition.
29163 (*movhi_update1): Use Pmode. Fix argument to
29164 avoiding_indexed_address_p.
29165 (*movhi_update2): Ditto.
29166 (*movhi_update3): Ditto.
29167 (*movhi_update4): Ditto.
29168 (*movqi_update1): Ditto.
29169 (*movqi_update2): Ditto.
29170 (*movqi_update3): Ditto.
29171 (*movsf_update1, *movdf_update1): Merge, rename to...
29172 (*mov<mode>_update1): This. Use Pmode. Fix argument to
29173 avoiding_indexed_address_p. Add "size" attribute.
29174 (*movsf_update2, *movdf_update2): Merge, rename to...
29175 (*mov<mode>_update2): This. Ditto.
29176 (*movsf_update3): Use Pmode. Fix argument to
29177 avoiding_indexed_address_p.
29178 (*movsf_update4): Ditto.
29179 (allocate_stack): Simplify condition. Adjust pattern names.
29180
29181 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29182
29183 PR target/89093
29184 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
29185 whitespace at the start of target attribute string.
29186
29187 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
29188
29189 PR target/84369
29190 * config/rs6000/power9.md: Add store forwarding bypass.
29191
29192 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
29193
29194 PR debug/89528
29195 * valtrack.c (dead_debug_insert_temp): Reset debug references
29196 to the return value of a call being removed.
29197
29198 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29199
29200 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
29201 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
29202 implement target hook.
29203 (arc_memory_move_cost): New function.
29204 (TARGET_REGISTER_MOVE_COST): Define.
29205 (TARGET_MEMORY_MOVE_COST): Likewise.
29206 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
29207 (MEMORY_MOVE_COST): Likewise.
29208
29209 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29210
29211 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
29212 (sibcall_value_insn): Likewise.
29213 * config/arc/constraints.md (Rs5): Remove.
29214
29215 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29216
29217 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
29218 for last two fake registers.
29219 (arc_conditional_register_usage): Make sure fake frame and arg
29220 pointer regs are in general regs class.
29221 (FRAME_POINTER_MASK): Remove.
29222 (RETURN_ADDR_MASK): Remove.
29223 (arc_must_save_register): Use hard frame regnum.
29224 (frame_restore_reg): Use hard_frame_pointer_rtx.
29225 (arc_save_callee_saves): Likewise.
29226 (arc_restore_callee_saves): Likewise.
29227 (arc_save_callee_enter): Likewise.
29228 (arc_restore_callee_leave): Likewise.
29229 (arc_save_callee_milli): Likewise.
29230 (arc_eh_return_address_location): Likewise.
29231 (arc_check_multi): Use hard frame regnum.
29232 (arc_can_eliminate): Likewise.
29233 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
29234 for register allocator.
29235 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
29236 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
29237 (FRAME_POINTER_REGNUM): Change it to a fake register.
29238 (HARD_FRAME_POINTER_REGNUM): Defined.
29239 (ARG_POINTER_REGNUM): Change it to a new fake register.
29240 (ELIMINABLE_REGS): Update.
29241 (REGISTER_NAMES): Update names.
29242 * config/arc/arc.md (LP_START): Remove.
29243 (LP_END): Likewise.
29244 (shift_si3_loop): Update pattern.
29245
29246 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29247
29248 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
29249 to avoid delay slot scheduling.
29250 (arc_must_save_register): Don't save SP.
29251 * config/arc/arc.md (stack_tie): Remove.
29252 (UNSPEC_ARC_STKTIE): Likewise.
29253
29254 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
29255 Shiva Chen <shiva0217@gmail.com>
29256
29257 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
29258 code gen with large shift amount.
29259
29260 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
29261
29262 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
29263 subreg.
29264
29265 2019-04-16 Jakub Jelinek <jakub@redhat.com>
29266
29267 PR target/90096
29268 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
29269 print -m64/-mx32/-m32 if it is true.
29270 (ix86_debug_options, ix86_function_specific_print): Pass true as
29271 ADD_ABI_P to ix86_target_string.
29272 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
29273 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
29274 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
29275
29276 PR rtl-optimization/90082
29277 * dce.c (can_delete_call): New function.
29278 (deletable_insn_p, mark_insn): Use it.
29279
29280 PR tree-optimization/90090
29281 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
29282 throw internally.
29283 (is_division_by_square): Likewise. Formatting fix.
29284
29285 2019-04-16 Richard Biener <rguenther@suse.de>
29286
29287 PR tree-optimization/56049
29288 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
29289 equality check if alias-set zero will prevail.
29290
29291 2019-04-15 Jeff Law <law@redhat.com>
29292
29293 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
29294 size and alignment as unsigned.
29295
29296 2019-04-15 Richard Biener <rguenther@suse.de>
29297
29298 PR debug/90074
29299 * tree-loop-distribution.c (destroy_loop): Preserve correct
29300 debug info.
29301
29302 2019-04-15 Richard Biener <rguenther@suse.de>
29303
29304 PR tree-optimization/90071
29305 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
29306 abnormal operands from def stmts.
29307
29308 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
29309
29310 PR rtl-optimization/89794
29311 * combine.c (count_auto_inc): New function.
29312 (try_combine): Count how many auto_inc expressions there were in the
29313 original instructions. Ensure we have the same number in the new
29314 instructions. Remove the code that tried to ensure auto_inc side
29315 effects on i1 and i0 are not lost.
29316
29317 2019-04-15 Richard Biener <rguenther@suse.de>
29318
29319 PR ipa/88936
29320 * tree.h (auto_var_p): Declare.
29321 * tree.c (auto_var_p): New function, split out from ...
29322 (auto_var_in_fn_p): ... here.
29323 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
29324 member.
29325 (new_var_info): Initialize it.
29326 (set_uids_in_ptset): Also set the shadow variable uid if required.
29327 (ipa_pta_execute): Postprocess points-to solutions assigning
29328 shadow variable uids for locals that may reach their containing
29329 function recursively.
29330 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
29331 assert but instead check whether the points-to solution is
29332 a singleton.
29333
29334 2019-04-15 Martin Jambor <mjambor@suse.cz>
29335
29336 PR ipa/pr89693
29337 * cgraph.c (clone_of_p): Loop over clone chain for each step in
29338 the thunk chain.
29339
29340 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29341
29342 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
29343
29344 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29345 Kito Cheng <kito.cheng@gmail.com>
29346 Shiva Chen <shiva0217@gmail.com>
29347
29348 * config/nds32/nds32-md-auxiliary.c
29349 (nds32_legitimize_pic_address): Use new PIC pattern.
29350 (nds32_legitimize_tls_address): Use new TLS pattern.
29351 (nds32_output_symrel): New.
29352 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
29353 (nds32_alloc_relax_group_id): Ditto.
29354 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
29355 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
29356 relax_group_id.
29357 (nds32_group_tls_insn): Ditto.
29358 (nds32_group_float_insns): Ditto.
29359 * config/nds32/nds32.md (tls_le): New.
29360 (sym_got): Ditto.
29361
29362 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
29363
29364 * configure: Add nds32 target for dwarf2 debug_line checking.
29365 * configure.ac: Regenerated.
29366
29367 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
29368
29369 PR lto/89358
29370 * ipa-devirt.c (skip_in_fields_list_p): New.
29371 (odr_types_equivalent_p): Use it.
29372
29373 2019-04-13 Jakub Jelinek <jakub@redhat.com>
29374
29375 PR target/89093
29376 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29377 instead of strncmp when checking for thumb and arm. Formatting fixes.
29378
29379 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
29380
29381 * doc/install.texi: Document --with-target-system-zlib.
29382
29383 2019-04-12 Martin Sebor <msebor@redhat.com>
29384
29385 PR c/88383
29386 PR c/89288
29387 PR c/89798
29388 PR c/89797
29389 * targhooks.c (default_vector_alignment): Avoid assuming
29390 argument fits in SHWI.
29391 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29392 a shift expression.
29393 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29394
29395 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29396
29397 PR rtl-optimization/89965
29398 * dce.c: Include rtl-iter.h.
29399 (struct check_argument_load_data): New type.
29400 (check_argument_load): New function.
29401 (find_call_stack_args): Check for loads from stack slots still tracked
29402 in sp_bytes and punt if any is found.
29403
29404 * config/mips/loongson-mmiintrin.h: Fix up #error message.
29405
29406 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
29407
29408 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29409 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29410
29411 2019-04-12 Martin Liska <mliska@suse.cz>
29412
29413 PR middle-end/89970
29414 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29415 in error message.
29416 (separate_attrs): Handle multiple 'default's.
29417 (expand_target_clones): Rework error handling code.
29418
29419 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
29420
29421 PR target/87532
29422 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29423 mode of vector rather than mode of destination for move instruction.
29424 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29425 Use QI inner mode with V16QI vector mode.
29426
29427 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29428
29429 PR target/52726
29430 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29431 "invalid %%t operand" in output_operand_lossage message.
29432
29433 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
29434
29435 * config/s390/predicates.md (permute_pattern_operand): New
29436 predicate.
29437 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29438 operand for the permute pattern.
29439 ("*vec_perm<mode>"): New insn definition.
29440 ("bswap<mode>"): Generate the permute pattern operand in the
29441 expander and perform the operand reloads for pre arch13 level
29442 already.
29443 ("*bswap<mode>_emu"): Rename to ...
29444 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29445 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29446 Add the USE operand for the permute pattern.
29447 ("*vec_set_bswap_vec<mode>"): Likewise.
29448
29449 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29450
29451 PR c/89946
29452 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29453 and gcc_unreachable if it fails, just call tree_to_uhwi which
29454 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29455 Start warning message with a lower-case letter. Formatting fixes.
29456
29457 PR rtl-optimization/90026
29458 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29459 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29460 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29461 in cfglayout mode, use emit_barrier_after_bb.
29462
29463 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29464
29465 PR rtl-optimization/87763
29466 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29467 New Instruction.
29468
29469 2019-04-11 Tom de Vries <tdevries@suse.de>
29470
29471 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29472 max macro using statement expression.
29473
29474 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29475
29476 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29477 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29478 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29479 read_only_private_data_section using xcoff_private_rodata_section_name.
29480 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29481
29482 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29483
29484 PR target/90016
29485 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29486
29487 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29488
29489 PR rtl-optimization/89965
29490 * dce.c (sp_based_mem_offset): New function.
29491 (find_call_stack_args): Use sp_based_mem_offset.
29492
29493 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29494
29495 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29496
29497 2019-04-11 Richard Biener <rguenther@suse.de>
29498
29499 PR tree-optimization/90020
29500 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29501 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29502 * tree-ssa-pre.c (compute_avail): Use it to not put
29503 possibly trapping references after a call that might not
29504 return into EXP_GEN.
29505 * gcse.c (compute_hash_table_work): Do not elide
29506 marking a block containing a call if the call might not
29507 return.
29508
29509 2019-04-11 Richard Biener <rguenther@suse.de>
29510
29511 PR tree-optimization/90018
29512 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29513 Test both SLP and interleaving variants.
29514
29515 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29516
29517 * config/s390/8561.md: New file.
29518 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29519 Add arch13 cpu model.
29520 * config/s390/s390-opts.h (enum processor_type): Likewise.
29521 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29522 (s390_get_unit_mask): Likewise.
29523 (s390_is_fpd): Likewise.
29524 (s390_is_fxd): Likewise.
29525 * config/s390/s390.h (s390_tune_attr): Likewise.
29526 * config/s390/s390.md: Include arch13 pipeline description.
29527 * config/s390/s390.opt: Add arch13.
29528
29529 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29530
29531 PR rtl-optimization/87763
29532 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29533 New prototype.
29534 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29535 New function.
29536 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29537 New instruction.
29538 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29539 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29540 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29541 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29542
29543 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29544
29545 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29546 "Although" in -fipa-icf documentation.
29547
29548 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29549 of using multiple -g options.
29550
29551 2019-04-10 Martin Liska <mliska@suse.cz>
29552
29553 PR gcov-profile/89959
29554 * doc/gcov.texi: Make documentation of -x option
29555 more precise.
29556
29557 2019-04-10 Richard Biener <rguenther@suse.de>
29558
29559 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29560 member.
29561 (DR_GROUP_SAME_DR_STMT): Remove.
29562 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29563 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29564 replace with assert.
29565 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29566 (vect_record_grouped_load_vectors): Remove unreachable code.
29567
29568 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29569
29570 PR target/90016
29571 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29572 obsolete reference to N.
29573
29574 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29575
29576 PR middle-end/90025
29577 * expr.c (store_expr): Set properly size on the MEM passed to
29578 clear_storage.
29579
29580 PR c++/90010
29581 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29582 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29583 translation is needed, and when translation is needed, only append
29584 ... if the string length is hostsz or more bytes long. Avoid using
29585 strncpy or strcat.
29586
29587 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29588
29589 PR target/90024
29590 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29591 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29592 into three.
29593 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29594 differences directly.
29595 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29596
29597 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29598
29599 PR translation/90011
29600 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29601 from diagnostics.
29602 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29603 diagnostics.
29604 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29605 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29606 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29607 trailing space from -gsplit-dwarf diagnostics.
29608
29609 PR tree-optimization/89998
29610 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29611 instead of integer_type_node if possible, don't add ranges if return
29612 type is not compatible with int.
29613 * gimple-fold.c (gimple_fold_builtin_sprintf,
29614 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29615 integer_type_node.
29616
29617 2019-04-09 Martin Liska <mliska@suse.cz>
29618
29619 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29620 * doc/install.texi: Document the new config.
29621
29622 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29623
29624 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29625 use gimple_expr_type for load and store calls. Skip over the
29626 condition argument in a conditional internal function.
29627 Protect use of TREE_INT_CST_LOW.
29628
29629 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29630
29631 PR target/90015
29632 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29633 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29634 trailing period from it too.
29635
29636 2019-04-08 wu yuan <wuyuan5@huawei.com>
29637
29638 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29639 * config/aarch64/aarch64.md: Add "tsv110.md".
29640 * config/aarch64/tsv110.md: New file.
29641
29642 2019-04-08 Richard Biener <rguenther@suse.de>
29643
29644 PR tree-optimization/90006
29645 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29646 calls like lrint.
29647
29648 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29649
29650 PR target/83033
29651 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29652 construction.
29653 (fma_root_node): Likewise.
29654 (func_fma_steering): Likewise.
29655
29656 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29657
29658 PR rtl-optimization/89865
29659 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29660
29661 PR rtl-optimization/89865
29662 * config/i386/i386.md
29663 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29664 numbers not to clash with the additional operands[4].
29665 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29666 with extra register copy in the middle.
29667
29668 2019-04-08 Martin Liska <mliska@suse.cz>
29669
29670 PR gcov-profile/89961
29671 * doc/gcov.texi: Document data_file.
29672 * gcov.c (generate_results): Add data_info into JSON output.
29673
29674 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29675
29676 PR tree-optimization/89725
29677 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29678 loop's chrec as invariant symbol.
29679 * tree-chrec.h (chrec_contains_symbols): New parameter.
29680 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29681 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29682 function of loops not in DDR's loop_nest.
29683 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29684
29685 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29686
29687 PR target/89623
29688 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29689 Mask.
29690
29691 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29692
29693 PR target/89945
29694 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29695 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29696
29697 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29698
29699 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29700 targetm.fixed_condition_code_regs.
29701
29702 2019-04-05 Richard Biener <rguenther@suse.de>
29703
29704 PR debug/89892
29705 PR debug/89905
29706 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29707 debug bind stmts but reset them if they are not valid at the
29708 destination.
29709
29710 2019-04-05 Martin Liska <mliska@suse.cz>
29711
29712 PR translation/89936
29713 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29714 order to wrap keywords or arguments.
29715 * collect2.c (main): Likewise.
29716 (scan_prog_file): Likewise.
29717 (scan_libraries): Likewise.
29718 * common/config/riscv/riscv-common.c
29719 (riscv_subset_list::parsing_subset_version): Likewise.
29720 (riscv_subset_list::parse_std_ext): Likewise.
29721 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29722 Likewise.
29723 * config/arm/arm.c (arm_option_override): Likewise.
29724 * config/cris/cris.c (cris_print_operand): Likewise.
29725 * config/darwin-c.c (darwin_pragma_options): Likewise.
29726 (darwin_pragma_unused): Likewise.
29727 (darwin_pragma_ms_struct): Likewise.
29728 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29729 * config/i386/i386.c (print_reg): Likewise.
29730 (ix86_print_operand): Likewise.
29731 * config/i386/xm-djgpp.h: Likewise.
29732 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29733 * config/m32c/m32c.c (m32c_option_override): Likewise.
29734 * config/msp430/msp430.c (msp430_option_override): Likewise.
29735 * config/nds32/nds32.c (nds32_option_override): Likewise.
29736 * config/nvptx/mkoffload.c (main): Likewise.
29737 * config/rx/rx.c (rx_print_operand): Likewise.
29738 (valid_psw_flag): Likewise.
29739 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29740 (vms_pragma_nomember_alignment): Likewise.
29741 (vms_pragma_extern_model): Likewise.
29742 * lto-wrapper.c (compile_offload_image): Likewise.
29743 * omp-offload.c (oacc_parse_default_dims): Likewise.
29744 * symtab.c (symtab_node::verify_base): Likewise.
29745 * tlink.c (recompile_files): Likewise.
29746 (start_tweaking): Likewise.
29747 * tree-profile.c (parse_profile_filter): Likewise.
29748
29749 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29750
29751 PR tree-optimization/89956
29752 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29753 multiple negates of the same value.
29754
29755 2019-04-04 Martin Sebor <msebor@redhat.com>
29756
29757 PR middle-end/89957
29758 PR middle-end/89911
29759 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29760 have the same precision since the function crashes otherwise.
29761 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29762 has non-zero arguments.
29763
29764 2019-04-04 Martin Sebor <msebor@redhat.com>
29765
29766 PR middle-end/89934
29767 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29768 out if the number of arguments is less than expected.
29769
29770 2019-04-04 Jeff Law <law@redhat.com>
29771
29772 PR rtl-optimization/89399
29773 * ree.c (combine_set_extension): Use single_set rather than
29774 digging into PATTERN for items on the candidate list.
29775 (combine_reaching_defs): Likewise.
29776
29777 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29778
29779 PR rtl-optimization/46590
29780 * loop-invariant.c (find_defs): Move df_remove_problem and
29781 df_process_deferred_rescans to move_invariants.
29782 Move df_live_add_problem and df_live_set_all_dirty calls
29783 to move_invariants.
29784 (move_invariants): Likewise.
29785 (move_loop_invariants): Likewise, making the df_live calls
29786 conditional on -O. Remove the problem again if we added it
29787 locally.
29788
29789 2019-04-03 qing zhao <qing.zhao@oracle.com>
29790
29791 PR tree-optimization/89730
29792 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29793 -flive-patching=inline-only-static.
29794 (can_inline_edge_by_limits_p): Add the checking for
29795 -flive-patching=inline-only-static and grant always_inline
29796 even when -flive-patching=inline-only-static is specified.
29797
29798 2019-04-03 Jeff Law <law@redhat.com>
29799
29800 PR rtl-optimization/81025
29801 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29802
29803 2019-04-03 Richard Biener <rguenther@suse.de>
29804
29805 PR tree-optimization/84101
29806 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29807 regs.h for hard_regno_nregs.
29808 (cfun_returns): New helper.
29809 (vect_model_store_cost): When vectorizing a store to a decl
29810 we return and the function ABI returns in a multi-reg location
29811 account for the possible spilling that will happen.
29812
29813 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29814
29815 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29816 displacement addresses for vector mode operands.
29817
29818 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29819
29820 * config/arc/arc.c (GMASK_LEN): Define.
29821 (arc_restore_callee_saves): Restore first blink when
29822 !optimize_size.
29823
29824 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29825
29826 * doc/extend.texi: Add deprecated comment on sign-return-address
29827 function attribute and add mbranch-protection.
29828 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29829
29830 2019-04-03 Richard Biener <rguenther@suse.de>
29831
29832 PR lto/89896
29833 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29834 the all target phony.
29835
29836 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29837
29838 PR target/89902
29839 PR target/89903
29840 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29841 Return false for variable DImode shifts.
29842 (dimode_scalar_chain::compute_convert_gain): Do not handle
29843 register count operand in variable DImode shifts.
29844 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29845 count argument of a variable shift instruction to a vector register.
29846 (dimode_scalar_chain::convert_reg): Remove support to convert
29847 count argument of a variable shift instruction.
29848
29849 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29850
29851 PR rtl-optimization/84206
29852 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29853 iterating over loop headers.
29854
29855 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29856
29857 PR rtl-optimization/85876
29858 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29859 beyond the original fence.
29860
29861 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29862
29863 * config.gcc: Mark spu* targets as deprecated/obsolete.
29864
29865 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29866
29867 * config/s390/s390-builtin-types.def: New builtin function type
29868 definitions. Remove unused types.
29869 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29870 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29871 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29872 overloaded builtins.
29873 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29874 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29875 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29876 (vec_double, vec_signed, vec_unsigned): Define to use the new
29877 overloaded builtins.
29878 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29879 Remove expanders.
29880
29881 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29882
29883 * config/s390/s390-builtin-types.def: New builtin function type
29884 definitions.
29885 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29886 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29887 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29888 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29889 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29890 constant definitions.
29891 * config/s390/vecintrin.h (vec_search_string_cc)
29892 (vec_search_string_until_zero_cc): New builtin name definitions.
29893 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29894 expanders.
29895 ("vec_vstrs<mode>"): New insn definition.
29896
29897 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29898
29899 * config/s390/s390-builtin-types.def: Add new builtin function
29900 types.
29901 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29902 New overloaded builtins.
29903 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29904 s390_vsrd.
29905 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29906 (UNSPEC_VEC_SLDBYTE): ... this.
29907 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29908 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29909 definitions.
29910 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29911 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29912 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29913
29914 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29915
29916 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29917 New insn definition.
29918 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29919 * config/s390/vector.md (V_HW_HSD): ... here.
29920
29921 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29922
29923 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29924 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29925 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29926 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29927 New insn definitions.
29928
29929 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29930
29931 * config/s390/s390-builtin-types.def: Add new builtin function type.
29932 * config/s390/s390-builtins.def: Add overloaded builtin
29933 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29934 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29935 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29936 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29937 ("eltswap<mode>"): New expander.
29938 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29939 insn definitions.
29940
29941 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29942
29943 * config/s390/s390-builtin-types.def: Add new builtin function types.
29944 * config/s390/s390-builtins.def: Add overloaded builtin
29945 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29946 instructions.
29947 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29948 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29949 ("bswap<mode>"): New expander.
29950 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29951
29952 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29953
29954 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29955 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29956 vector builtin version number in __VEC__.
29957
29958 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29959
29960 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29961 iterators.
29962 (SFSI): New mode attribute.
29963 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29964 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29965 rename to ...
29966 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29967 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29968 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29969 ("floatsi<mode>2"): Add wcefb instruction.
29970
29971 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29972
29973 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29974 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29975 mode iterators.
29976 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29977 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29978 support 32 bit fp-int conversions. Rename to ...
29979 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29980 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29981 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29982 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29983 ... to these.
29984
29985 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29986
29987 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29988 if-then-else constructs if we can use the select instruction.
29989 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29990
29991 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29992
29993 * config/s390/s390.md ("*popcountdi_arch13_cc")
29994 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29995 definition.
29996 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29997 Append _z196 to make it ...
29998 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29999 ("popcounthi2_z196"): ... this.
30000 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
30001 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
30002
30003 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30004
30005 * config/s390/s390.c (s390_canonicalize_comparison): Convert
30006 certain compares for arch13 in order to make use of the condition
30007 code result produced by the new instructions.
30008 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
30009 nxrk, and nxgrk instruction patterns.
30010 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
30011 (inv_no): Add new code iterator together with some attributes.
30012 ("*andc_split_<mode>"): Disable splitter for arch13.
30013 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
30014 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
30015 ("*<ANDOR:bitops_name>c<GPR:mode>")
30016 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
30017 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
30018 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
30019 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
30020
30021 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30022
30023 * common/config/s390/s390-common.c (processor_flags_table): New
30024 entry for arch13.
30025 * config.gcc: Support arch13 with the --with-arch= configure flag.
30026 * config/s390/driver-native.c (s390_host_detect_local_cpu):
30027 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
30028 * config/s390/s390.c (s390_get_sched_attrmask)
30029 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
30030 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
30031 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
30032 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
30033 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
30034 definitions.
30035 * config/s390/s390.opt: Support arch13 as processor type in
30036 command line options.
30037
30038 2019-04-02 Martin Liska <mliska@suse.cz>
30039
30040 PR translation/89912
30041 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
30042 Fix param description of graphite-max-arrays-per-scop.
30043
30044 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
30045
30046 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
30047 (ASAN_CC1_SPEC): Use it in 64-bit mode.
30048 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
30049
30050 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30051
30052 PR rtl-optimization/85412
30053 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
30054 sel_sched_region_1, not after.
30055
30056 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30057
30058 PR rtl-optimization/86928
30059 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
30060 compute_live if necessary.
30061 (sel_redirect_edge_and_branch): Likewise.
30062
30063 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
30064
30065 PR rtl-optimization/89865
30066 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
30067 register if it is a part of small class.
30068
30069 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30070
30071 PR rtl-optimization/87273
30072 * sel-sched-ir.c (merge_fences): Remove assert.
30073
30074 2019-04-01 Richard Biener <rguenther@suse.de>
30075
30076 PR tree-optimization/46590
30077 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
30078 (dom_walker::m_reachability): Add in place of...
30079 (dom_walker::m_skip_unreachable_blocks): ...this.
30080 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
30081 Move complex initialization ...
30082 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
30083 lazily and initialize edge flags on each invocation.
30084 (dom_walker::bb_reachable): Use m_reachability.
30085
30086 2019-04-01 Martin Liska <mliska@suse.cz>
30087
30088 PR driver/89861
30089 * opt-suggestions.c (option_proposer::build_option_suggestions):
30090 Add variant without any argument in order to provide better
30091 hints.
30092
30093 2019-04-01 Richard Biener <rguenther@suse.de>
30094
30095 PR c/71598
30096 * gimple.c: Include langhooks.h.
30097 (gimple_get_alias_set): Treat enumeral types as the underlying
30098 integer type.
30099
30100 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
30101 Eric Botcazou <ebotcazou@adacore.com>
30102
30103 PR rtl-optimization/89862
30104 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
30105 that operates on the full registers for WORD_REGISTER_OPERATIONS
30106 architectures.
30107
30108 2019-03-29 Jim Wilson <jimw@sifive.com>
30109
30110 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
30111 Clear MASK_RVC and then set if C subset supported.
30112
30113 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30114
30115 PR c/89872
30116 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
30117 non-addressable complit into its initializer if it is volatile.
30118
30119 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
30120
30121 * opts-common.c (integral_argument): Set errno properly in one case.
30122
30123 2019-03-29 Martin Liska <mliska@suse.cz>
30124
30125 * doc/invoke.texi: Remove -Wchkp from documentation.
30126
30127 2019-03-29 Martin Liska <mliska@suse.cz>
30128
30129 * dbgcnt.c (print_limit_reach): New function.
30130 (dbg_cnt): Use it.
30131
30132 2019-03-29 Martin Liska <mliska@suse.cz>
30133
30134 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
30135 (dbg_cnt_process_opt): Parse first tokens aas
30136 dbg_cnt_process_single_pair is also using strtok.
30137
30138 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30139
30140 PR rtl-optimization/87485
30141 * function.c (expand_function_end): Move stack_protect_epilogue
30142 before loading of return value into hard register(s).
30143
30144 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30145
30146 PR middle-end/89621
30147 * tree-inline.h (struct copy_body_data): Add
30148 dont_remap_vla_if_no_change flag.
30149 * tree-inline.c (remap_type_3, remap_type_2): New functions.
30150 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
30151 and remap_type_2 returns false.
30152 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
30153 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
30154 only from where it is copied to nested contexts.
30155
30156 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30157
30158 PR target/89865
30159 * config/i386/i386.md (RMW operation with LEA peephole):
30160 Use LEAMODE mode attribute instead of SWI mode iterator for
30161 LEA pattern.
30162
30163 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30164
30165 PR target/89848
30166 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
30167 Also process XEXP (src, 0) of a shift insn.
30168
30169 2019-03-28 David Malcolm <dmalcolm@redhat.com>
30170
30171 PR middle-end/89725
30172 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
30173 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
30174
30175 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30176
30177 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
30178 test.
30179 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
30180 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
30181 immediately after first one with df_analyze in between, but rather
30182 process all bbs, queueing ones that need second pass in a worklist,
30183 df_analyze, process queued debug insn changes and if second pass is
30184 needed, process bbs from worklist, df_analyze, process queued debug
30185 insns again.
30186
30187 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
30188 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
30189 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
30190
30191 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
30192
30193 PR c/79022
30194 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
30195 definition.
30196
30197 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
30198
30199 PR target/85667
30200 * config/i386/i386.c (ix86_function_value_1): Call the newly added
30201 function for 32-bit MS_ABI.
30202 (function_value_ms_32): New function.
30203
30204 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
30205
30206 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
30207 (movdi): Call gen_movdi_symbol_save_scc.
30208 (gen_movdi_symbol_save_scc): New insn and split.
30209
30210 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
30211
30212 PR rtl-optimization/89313
30213 * function.c (matching_constraint_num): New static function.
30214 (match_asm_constraints_1): Use it. Fixup white space and comment.
30215 Don't replace inputs with non-matching constraints which conflict
30216 with early clobber outputs.
30217
30218 2019-03-27 Jeff Law <law@redhat.com>
30219
30220 PR rtl-optimization/87761
30221 PR rtl-optimization/89826
30222 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
30223 slightly later.
30224 (pass_cprop_hardreg::execute): Call df_analyze after adding the
30225 note problem to get REG_DEAD/REG_UNUSED notes updated.
30226
30227 2019-03-27 Richard Biener <rguenther@suse.de>
30228
30229 PR tree-optimization/89463
30230 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
30231 queue edges to remove.
30232 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
30233 dead stmts. Delay edge removal until PHIs are removed to
30234 make debug-stmt creation not confused by seemingly degenerate
30235 PHIs.
30236
30237 2019-03-27 Alan Modra <amodra@gmail.com>
30238
30239 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
30240 throughout file.
30241 * config/rs6000/darwin.h: Likewise.
30242 * config/rs6000/rs6000.c: Likewise.
30243
30244 2019-03-27 Alan Modra <amodra@gmail.com>
30245
30246 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
30247 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
30248
30249 2019-03-26 Andrew Waterman <andrew@sifive.com>
30250 Jim Wilson <jimw@sifive.com>
30251
30252 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
30253 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
30254 (generic_idivdi, generic_fmul_single, generic_fmul_double)
30255 (generic_fdiv, generic_fsqrt): Add check for generic tune.
30256 (generic_alu): Add auipc to type list.
30257 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
30258 (riscv_microarchitecture): Declare.
30259 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
30260 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
30261 field.
30262 (riscv_microarchitecture): New.
30263 (sifive_7_tune_info): New.
30264 (riscv_cpu_info_table): Add microarchitecture value for rocket and
30265 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
30266 entries.
30267 (riscv_store_data_bypass_p): New.
30268 (riscv_option_override): Set riscv_microarchitecture from
30269 cpu->microarchitecture.
30270 * config/riscv/riscv.md: Include sifive-7.md.
30271 (type): Add auipc.
30272 (tune): New.
30273 (auipc<mode>): Change type to auipc.
30274 (restore_stack_nonlocal): New.
30275 * config/riscv/sifive-7.md: New.
30276 * doc/invoke.texi (RISC-V Options): Update mtune docs.
30277
30278 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
30279
30280 PR target/89827
30281 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
30282 Also process XEXP (src, 0) of a shift insn.
30283
30284 2019-03-26 Richard Biener <rguenther@suse.de>
30285
30286 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
30287 (copy_debug_stmt): Likewise.
30288 (expand_call_inline): Likewise.
30289 (copy_bb): Avoid redundant lookup & set of gimple_block.
30290 * gimple-low.c (lower_gimple_return): Likewise.
30291 (lower_builtin_setjmp): Likewise.
30292
30293 2019-03-26 Jakub Jelinek <jakub@redhat.com>
30294
30295 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
30296 is constant 0, turn into static const data member initialized to false.
30297 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
30298 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
30299
30300 2019-03-26 Jason Merrill <jason@redhat.com>
30301 Jakub Jelinek <jakub@redhat.com>
30302
30303 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
30304 method.
30305 (mem_alloc_description::release_object_overhead): Fix comment typos.
30306 * hash-table.h (hash_table::~hash_table): Call
30307 release_instance_overhead only if m_entries is non-NULL, otherwise
30308 call unregister_descriptor.
30309
30310 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
30311
30312 PR tree-optimization/81740
30313 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30314 In case of outer loop vectorization, check for backward dependence
30315 at the inner loop if outer loop dependence is reversed.
30316
30317 2019-03-26 Alan Modra <amodra@gmail.com>
30318
30319 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
30320 rs6000_vector_mem init. Correct wI and wJ comment.
30321
30322 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
30323
30324 PR rtl-optimization/88347
30325 PR rtl-optimization/88423
30326 * sched-deps.c (sched_analyze_insn): Take into account that for
30327 tablejumps the barrier appears after a label and a jump_table_data.
30328
30329 2019-03-25 Martin Sebor <msebor@redhat.com>
30330
30331 PR c/89812
30332 * c-common.c (check_user_alignment): Rename local. Correct maximum
30333 alignment in diagnostic. Avoid assuming argument fits in SHWI,
30334 convert it to UHWI when it fits.
30335
30336 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
30337
30338 PR debug/86964
30339 * dwarf2out.c (premark_used_variables): New function.
30340 (prune_unused_types_walk): Do not mark not premarked external
30341 variables.
30342 (prune_unused_types): Call premark_used_variables.
30343
30344 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
30345
30346 PR rtl-optimization/89676
30347 * lra-constraints.c (curr_insn_transform): Do match reload for
30348 early clobbers when the match was successful only for different
30349 registers.
30350
30351 2019-03-25 Martin Sebor <msebor@redhat.com>
30352
30353 * doc/extend.texi (Common Type Attributes): Document vector_size.
30354 (Common Variable Attributes): Mention size constraint. Correct
30355 quoting and typos.
30356 (Vector Extensions): Use @dfn when defining bas type. Clarify
30357 base type and size constraints.
30358
30359 2019-03-25 Richard Biener <rguenther@suse.de>
30360
30361 PR tree-optimization/89789
30362 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
30363 changes from non-undefined back to undefined.
30364
30365 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
30366
30367 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
30368 heap string and a gc string, but since this variable is unknown to
30369 ggc the gc string might get reused and corrupted. Fixed by always
30370 using a heap string.
30371
30372 2019-03-25 Richard Biener <rguenther@suse.de>
30373
30374 PR tree-optimization/89779
30375 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30376 to remove IV defs, delay actual removal.
30377 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
30378 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30379 very end, properly also reset loop control IV information.
30380
30381 2019-03-25 Richard Biener <rguenther@suse.de>
30382
30383 PR tree-optimization/89802
30384 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30385 move EH data to folded stmt.
30386
30387 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30388
30389 * config/s390/s390-builtin-types.def: Remove few unused types and
30390 fix sort order for others.
30391
30392 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30393
30394 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30395 expected and found types with -mdebug during builtin matching.
30396
30397 2019-03-25 Richard Biener <rguenther@suse.de>
30398
30399 PR middle-end/89790
30400 * fold-const.c (operand_equal_p): Revert last change with
30401 updated comment.
30402
30403 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
30404
30405 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30406 notes for the result of the __tls_get_addr calls.
30407 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30408
30409 2019-03-24 Jeff Law <law@redhat.com>
30410
30411 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30412
30413 PR rtl-optimization/87761
30414 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30415 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
30416 as needed.
30417 (pass_cprop_hardreg::execute): Add df note problem and defer insn
30418 rescans. Reprocess blocks as needed, calling df_analyze before
30419 reprocessing. Always call df_analyze before fixing up debug bind
30420 insns.
30421
30422 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
30423
30424 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30425 big endian.
30426
30427 2019-03-22 Andrew Pinski <apinski@marvell.com>
30428
30429 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30430 attrribute for uxtw.
30431
30432 2019-03-26 Jeff Law <law@redhat.com>
30433
30434 PR rtl-optimization/87761
30435 * config/mips/mips-protos.h (mips_split_move): Add new argument.
30436 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30437 (mips_split_move): Accept new INSN argument. Try to forward SRC
30438 into the next instruction.
30439 (mips_split_move_insn): Pass INSN through to mips_split_move.
30440
30441 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
30442
30443 PR rtl-optimization/89676
30444 * lra-constraints.c (curr_insn_transform): Do match reload for
30445 early clobbers even if the match was successful.
30446
30447 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30448
30449 PR c++/87481
30450 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30451
30452 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30453
30454 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30455
30456 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30457
30458 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30459 <avx512>_fmsub_<mode>_mask3<round_name>,
30460 <avx512>_fnmadd_<mode>_mask3<round_name>,
30461 <avx512>_fnmsub_<mode>_mask3<round_name>,
30462 avx512f_vmfmadd_<mode>_mask3<round_name>,
30463 avx512f_vmfmsub_<mode>_mask3<round_name>,
30464 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30465 instead of register_operand and %v instead of v for match_operand 1.
30466 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30467 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30468 <round_nimm_predicate> instead of register_operand and %v instead of v
30469 for match_operand 1.
30470
30471 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30472 <avx512>_fmadd_<mode>_mask3<round_name>,
30473 <avx512>_fmsub_<mode>_mask<round_name>,
30474 <avx512>_fmsub_<mode>_mask3<round_name>,
30475 <avx512>_fnmadd_<mode>_mask<round_name>,
30476 <avx512>_fnmadd_<mode>_mask3<round_name>,
30477 <avx512>_fnmsub_<mode>_mask<round_name>,
30478 <avx512>_fnmsub_<mode>_mask3<round_name>,
30479 <avx512>_fmaddsub_<mode>_mask<round_name>,
30480 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30481 <avx512>_fmsubadd_<mode>_mask<round_name>,
30482 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30483 <round_nimm_predicate> instead of nonimmediate_operand.
30484 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30485 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30486 Use register_operand instead of <round_nimm_predicate> for the
30487 operand that needs to match output.
30488 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30489 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30490 Likewise. Formatting fixes.
30491
30492 PR target/89784
30493 * config/i386/i386.c (enum ix86_builtins): Remove
30494 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30495 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30496 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30497 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30498 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30499 __builtin_ia32_vfmsubss3_mask3): New builtins.
30500 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30501 avx512f_vmfmadd_<mode>_mask3<round_name>,
30502 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30503 *avx512f_vmfmsub_<mode>_mask<round_name>,
30504 avx512f_vmfmsub_<mode>_mask3<round_name>,
30505 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30506 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30507 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30508 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30509 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30510 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30511 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30512 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30513 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30514 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30515 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30516 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30517 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30518 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30519 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30520 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30521 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30522 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30523 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30524 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30525 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30526 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30527 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30528 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30529 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30530 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30531 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30532 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30533
30534 2019-03-21 Martin Sebor <msebor@redhat.com>
30535
30536 PR tree-optimization/89350
30537 * builtins.c (compute_objsize): Also ignore offsets whose upper
30538 bound is negative.
30539 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30540 (builtin_memref::builtin_memref): Initialize new member.
30541 Allow EXPR to be null.
30542 (builtin_memref::extend_offset_range): Replace local with a member.
30543 Avoid assuming pointer offsets are unsigned.
30544 (builtin_memref::set_base_and_offset): Determine base object
30545 before computing offset range.
30546 (builtin_access::builtin_access): Handle memset.
30547 (builtin_access::generic_overlap): Replace local with a member.
30548 (builtin_access::strcat_overlap): Same.
30549 (builtin_access::overlap): Same.
30550 (maybe_diag_overlap): Same.
30551 (maybe_diag_access_bounds): Same.
30552 (wrestrict_dom_walker::check_call): Handle memset.
30553 (check_bounds_or_overlap): Same.
30554
30555 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30556 Jakub Jelinek <jakub@redhat.com>
30557
30558 PR lto/89692
30559 * tree.c (fld_type_variant, fld_incomplete_type_of,
30560 fld_process_array_type): Call fld->pset.add and don't call
30561 add_tree_to_fld_list if it returns true.
30562 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30563 non-marked types from TYPE_NEXT_VARIANT list.
30564 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30565
30566 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30567
30568 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30569 to false, if true, don't alloc_entries during construction, but defer
30570 it to the first method that needs m_entries allocated.
30571 (hash_table::hash_table, hash_table::~hash_table,
30572 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30573 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30574 hash_table::clear_slot, hash_table::traverse_noresize,
30575 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30576 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30577 false.
30578 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30579 NO_INSERT instead of find_with_hash.
30580 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30581 hash_set::m_table): Add Lazy to template params of hash_table.
30582 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30583 * attribs.c (test_attribute_exclusions): Likewise.
30584 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30585 hash_set. Add tests for hash_set with Lazy = true.
30586
30587 2019-03-21 Richard Biener <rguenther@suse.de>
30588
30589 PR tree-optimization/89779
30590 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30591 checks with respect to released SSA names now having error_mark_node
30592 type.
30593 * fold-const.c (operand_equal_p): Likewise.
30594
30595 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30596
30597 PR target/89775
30598 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30599 available to ...
30600 (s390_optimize_register_info): Use global_not_special_regno_p to
30601 check for global regs.
30602
30603 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30604
30605 PR target/89752
30606 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30607 update this_alternative nor this_alternative_set.
30608
30609 2019-03-19 Jim Wilson <jimw@sifive.com>
30610
30611 PR target/89411
30612 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30613 align, size, offset. Use them to handle a BLKmode reference. Update
30614 comment.
30615 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30616
30617 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30618
30619 PR rtl-optimization/89768
30620 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30621 instead of GEN_INT.
30622 (unroll_loop_runtime_iterations): Likewise.
30623
30624 2019-03-19 Martin Sebor <msebor@redhat.com>
30625
30626 PR tree-optimization/89644
30627 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30628 rather than endptr as an indicator of nul-termination.
30629
30630 PR tree-optimization/89644
30631 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30632 arrays in determining sequence sizes in strncpy and stpncpy.
30633
30634 2019-03-19 Martin Liska <mliska@suse.cz>
30635
30636 PR middle-end/89737
30637 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30638 unlikely_edges if there's an edge that belongs to both these sets.
30639
30640 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30641
30642 PR target/89746
30643 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30644 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30645 go via a stack temporary.
30646
30647 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30648
30649 PR target/89378
30650 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30651 instead of gen_rtx_SUBREG.
30652 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30653
30654 2019-03-19 Richard Biener <rguenther@suse.de>
30655
30656 PR debug/88389
30657 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30658
30659 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30660
30661 PR lto/87809
30662 PR lto/89335
30663 * tree.c (free_lang_data_in_decl): Do not free context of C++
30664 destrutors.
30665
30666 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30667
30668 PR target/89506
30669 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30670 subs for the first alternative except when operands[3] is 1.
30671
30672 PR target/89752
30673 * gimplify.c (gimplify_asm_expr): For output argument with
30674 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30675 diagnose error.
30676
30677 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30678
30679 PR rtl-optimization/89753
30680 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30681 explicit unrolling factor even more robust.
30682
30683 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30684
30685 PR target/89726
30686 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30687 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30688 signed zeros, do another copysign after the compensation.
30689
30690 2019-03-18 Martin Sebor <msebor@redhat.com>
30691
30692 PR tree-optimization/89720
30693 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30694 more conservatively, the same as anti-range.
30695
30696 2019-03-18 Richard Biener <rguenther@suse.de>
30697
30698 PR middle-end/88945
30699 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30700 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30701 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30702 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30703
30704 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30705
30706 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30707 Extend queue to 1024 entries.
30708 Add "consumed" field.
30709 (gomp_print_output): Remove print_index parameter.
30710 Add final parameter.
30711 Change limit to unsigned.
30712 Use consumed field to implement circular buffer.
30713 Detect interrupted print in final pass.
30714 Flush output at the end.
30715 (run): Update gomp_print_output usage.
30716 (main): Initialize kernargs->output_data.consumed.
30717
30718 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30719
30720 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30721 calculation of the minimum number of scalar iterations for
30722 fully-predicated loops.
30723
30724 2019-03-18 Martin Jambor <mjambor@suse.cz>
30725
30726 PR tree-optimization/89546
30727 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30728 any propagation to its children took place.
30729
30730 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30731
30732 PR target/89627
30733 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30734 parameter, and make use of it.
30735 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30736
30737 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30738
30739 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30740 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30741 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30742 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30743 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30744 match what the ops is doing.
30745 (push_multi_fp_blink): Likewise.
30746 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30747 compiling for size and elf target.
30748 (arc_save_callee_enter): Adjust note to match what enter/leave
30749 operation does.
30750
30751 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30752
30753 * config/arc/arc.md (tst_movb): Fix constraint.
30754
30755 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30756
30757 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30758
30759 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30760
30761 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30762 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30763 reg_alloc_order references.
30764 (size_alloc_order): Define.
30765 (arc_adjust_reg_alloc_order): New function.
30766 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30767 order.
30768 (ADJUST_REG_ALLOC_ORDER): Define.
30769 (HONOR_REG_ALLOC_ORDER): Likewise.
30770
30771 2019-03-18 Richard Biener <rguenther@suse.de>
30772
30773 PR target/87561
30774 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30775 loads and stores a bit more.
30776
30777 2019-03-18 Richard Biener <rguenther@suse.de>
30778
30779 PR target/87561
30780 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30781 load pessimization to stores as well.
30782
30783 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30784
30785 PR middle-end/86979
30786 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30787 successor, use NULL as its av set.
30788
30789 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30790
30791 PR rtl-optimization/89721
30792 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30793
30794 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30795
30796 PR target/87532
30797 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30798 When handling vec_extract, use modular arithmetic to allow
30799 constant selectors greater than vector length.
30800 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30801 V1TImode vectors to have constant selector values greater than 0.
30802 Use modular arithmetic to compute vector index.
30803 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30804 index for in-memory vectors. Correct code generation for
30805 in-register vectors.
30806 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30807 compute index.
30808
30809 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30810
30811 PR c++/88534
30812 PR c++/88537
30813 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30814 VAR_DECL args.
30815
30816 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30817
30818 PR c++/89709
30819 * tree.c (inchash::add_expr): Strip any location wrappers.
30820 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30821 after hash verification.
30822
30823 PR debug/89704
30824 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30825 SIGN_EXTEND and ZERO_EXTEND.
30826
30827 2019-03-14 Jason Merrill <jason@redhat.com>
30828 Jakub Jelinek <jakub@redhat.com>
30829
30830 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30831 than if is_empty (*slot).
30832 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30833 existing elt and for elt removal.
30834 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30835 of already removed elt.
30836
30837 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30838
30839 PR target/89650
30840 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30841 REG_EH_REGION note.
30842
30843 2019-03-14 Martin Liska <mliska@suse.cz>
30844
30845 PR other/89712
30846 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30847
30848 2019-03-14 Richard Biener <rguenther@suse.de>
30849
30850 PR target/89711
30851 * config/i386/i386.c (make_resolver_func): Properly set
30852 DECL_CONTEXT on the RESULT_DECL.
30853 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30854
30855 2019-03-14 Richard Biener <rguenther@suse.de>
30856
30857 * gimple-pretty-print.c: Include cfgloop.h.
30858 (dump_gimple_phi): Adjust.
30859 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30860 (pp_cfg_jump): Adjust.
30861 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30862 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30863 (lower_phi_internal_fn): Remove.
30864 (verify_gimple_call): Remove IFN_PHI special-casing.
30865 (dump_function_to_file): Dump IL state.
30866 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30867 done to deal with PHI nodes being present in non-SSA state.
30868
30869 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30870
30871 PR ipa/89684
30872 * multiple_target.c (create_dispatcher_calls): Change
30873 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30874 In the node->iterate_referring loop, push *ref rather than ref, call
30875 ref->remove_reference () and always pass 0 to iterate_referring.
30876
30877 PR rtl-optimization/89679
30878 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30879 would contain a paradoxical SUBREG.
30880
30881 2019-03-14 Richard Biener <rguenther@suse.de>
30882
30883 PR tree-optimization/89710
30884 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30885 safe_dyn_cast.
30886
30887 2019-03-14 Martin Liska <mliska@suse.cz>
30888
30889 * coverage.c (coverage_begin_function): Stream also
30890 end_column.
30891 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30892 documentation about function declaration location.
30893 * gcov-dump.c (tag_function): Print whole range
30894 of function declaration.
30895 * gcov.c (struct function_info): Add end_column field.
30896 (function_info::function_info): Initialize it.
30897 (output_json_intermediate_file): Output {start,end}_column
30898 fields.
30899 (read_graph_file): Read end_column.
30900
30901 2019-03-14 Richard Biener <rguenther@suse.de>
30902
30903 PR middle-end/89698
30904 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30905 that the access types are similar.
30906
30907 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30908
30909 PR tree-optimization/89703
30910 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30911 aren't compatible also with builtin_decl_explicit. Check pure
30912 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30913 and BUILT_IN_STPNCPY{,_CHK}.
30914
30915 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30916
30917 PR target/89523
30918 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30919 addr32 prefix to VSIB address for X32.
30920 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30921 "%M2" to opcode.
30922 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30923 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30924 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30925 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30926 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30927 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30928 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30929 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30930 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30931 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30932 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30933 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30934 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30935 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30936 (*avx512f_scatterdi<mode>): Likewise.
30937
30938 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30939
30940 PR target/85860
30941 * lra-constraints.c (inherit_in_ebb): Update
30942 potential_reload_hard_regs along with live_hard_regs.
30943
30944 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30945
30946 PR debug/89498
30947 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30948 DWARF_OFFSET_SIZE.
30949 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30950
30951 2019-03-13 Martin Sebor <msebor@redhat.com>
30952
30953 PR tree-optimization/89662
30954 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30955 has a size.
30956
30957 2019-03-13 Richard Biener <rguenther@suse.de>
30958
30959 PR middle-end/89677
30960 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30961 throw FP expressions at tree-affine.
30962
30963 2019-03-14 Richard Biener <rguenther@suse.de>
30964
30965 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30966 dump negative integer constants using _Literal (type) -num.
30967
30968 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30969
30970 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30971 nonlocal_value member.
30972
30973 PR middle-end/88588
30974 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30975 (ipa_simd_modify_function_body): Handle PHIs.
30976
30977 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30978
30979 * config/s390/s390.c (s390_option_override_internal): Use more
30980 aggressive inlining parameters.
30981
30982 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30983
30984 * config/s390/3906.md: New file.
30985 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30986 (LONGRUNNING_THRESHOLD): Remove.
30987 (MAX_SCHED_MIX_SCORE): Decrease.
30988 (MAX_SCHED_MIX_DISTANCE): Decrease.
30989 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30990 (struct s390_sched_state): New struct to hold scheduling state.
30991 (S390_SCHED_STATE_NORMAL): Remove.
30992 (S390_SCHED_STATE_CRACKED): Remove.
30993 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30994 (s390_get_sched_attrmask): Use new attribute.
30995 (s390_get_unit_mask): Use new units.
30996 (s390_is_fpd): New function.
30997 (s390_is_fxd): New function.
30998 (s390_is_longrunning): New function.
30999 (s390_sched_score): Use new functions.
31000 (s390_sched_reorder): Likewise.
31001 (s390_sched_variable_issue): Rework and use new functions.
31002 (s390_sched_init): Use new functions.
31003 * config/s390/s390.h (s390_tune_attr): Add z14.
31004 * config/s390/s390.md: Add z14.
31005
31006 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31007
31008 * config/s390/2964.md: Update pipeline description.
31009 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31010 (LONGRUNNING_THRESHOLD): Remove.
31011 (LATENCY_FACTOR): Remove.
31012 (s390_get_unit_mask): Add unit.
31013 (s390_sched_score): Use fxd/fpd.
31014 (s390_sched_variable_issue): Use fxd/fpd.
31015
31016 2019-03-12 Martin Liska <mliska@suse.cz>
31017
31018 * config/i386/i386.c: Reword an error message.
31019
31020 2019-03-12 Martin Jambor <mjambor@suse.cz>
31021
31022 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
31023 terminate with newline.
31024
31025 2019-03-12 Jakub Jelinek <jakub@redhat.com>
31026
31027 PR target/52726
31028 * config/s390/s390.md (tabort): Use %wd instead of
31029 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
31030 letters and periods.
31031 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
31032 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
31033 's with %< and %>.
31034
31035 PR middle-end/89663
31036 * builtins.c (expand_builtin_int_roundingfn,
31037 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
31038 gcc_unreachable if validate_arglist fails.
31039
31040 2019-03-12 Richard Biener <rguenther@suse.de>
31041
31042 PR tree-optimization/89664
31043 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
31044 free the occurance tree after the early out.
31045
31046 2019-03-11 Jakub Jelinek <jakub@redhat.com>
31047
31048 PR middle-end/89655
31049 PR bootstrap/89656
31050 * vr-values.c (vr_values::update_value_range): If
31051 old_vr->varying_p (), don't update it, make new_vr also VARYING
31052 and return false.
31053
31054 2019-03-11 Martin Liska <mliska@suse.cz>
31055
31056 * config/aarch64/aarch64.c (aarch64_override_options_internal):
31057 Fix double string quoting.
31058
31059 2019-03-11 Martin Liska <mliska@suse.cz>
31060
31061 * collect-utils.c (collect_wait): Wrap apostrophes
31062 in gcc internal format with %'.
31063 * collect2.c (main): Likewise.
31064 (scan_prog_file): Likewise.
31065 (scan_libraries): Likewise.
31066 * config/i386/i386.c (ix86_expand_call): Likewise.
31067 (ix86_handle_interrupt_attribute): Likewise.
31068 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
31069 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
31070 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
31071 * lto-wrapper.c (find_crtoffloadtable): Likewise.
31072 * symtab.c (symtab_node::verify_base): Likewise.
31073 * tree-cfg.c (verify_gimple_label): Likewise.
31074 * tree.c (verify_type_variant): Likewise.
31075
31076 2019-03-11 Martin Liska <mliska@suse.cz>
31077
31078 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
31079 in a string format message and fix GNU coding style.
31080 (expand_builtin_set_thread_pointer): Likewise.
31081 * common/config/aarch64/aarch64-common.c
31082 (aarch64_rewrite_selected_cpu): Likewise.
31083 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
31084 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
31085 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
31086 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
31087 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
31088 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
31089 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
31090 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
31091 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
31092 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
31093 Likewise.
31094 * common/config/riscv/riscv-common.c
31095 (riscv_subset_list::parsing_subset_version): Likewise.
31096 (riscv_subset_list::parse_std_ext): Likewise.
31097 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31098 (riscv_subset_list::parse): Likewise.
31099 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
31100 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
31101 (aarch64_override_options_internal): Likewise.
31102 (aarch64_validate_mcpu): Likewise.
31103 (aarch64_validate_march): Likewise.
31104 (aarch64_validate_mtune): Likewise.
31105 (aarch64_override_options): Likewise.
31106 * config/alpha/alpha.c (alpha_option_override): Likewise.
31107 * config/arc/arc.c (arc_init): Likewise.
31108 (parse_mrgf_banked_regs_option): Likewise.
31109 (arc_override_options): Likewise.
31110 (arc_expand_builtin_aligned): Likewise.
31111 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
31112 (arm_expand_builtin): Likewise.
31113 * config/arm/arm.c (arm_option_check_internal): Likewise.
31114 (arm_configure_build_target): Likewise.
31115 (arm_option_override): Likewise.
31116 (arm_options_perform_arch_sanity_checks): Likewise.
31117 (arm_handle_cmse_nonsecure_entry): Likewise.
31118 (arm_handle_cmse_nonsecure_call): Likewise.
31119 (arm_tls_referenced_p): Likewise.
31120 (thumb1_expand_prologue): Likewise.
31121 * config/avr/avr.c (avr_option_override): Likewise.
31122 * config/bfin/bfin.c (bfin_option_override): Likewise.
31123 * config/c6x/c6x.c (c6x_option_override): Likewise.
31124 * config/cr16/cr16.c (cr16_override_options): Likewise.
31125 * config/cris/cris.c (cris_option_override): Likewise.
31126 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
31127 * config/darwin-c.c (macosx_version_as_macro): Likewise.
31128 * config/darwin.c (darwin_override_options): Likewise.
31129 * config/frv/frv.c (frv_expand_builtin): Likewise.
31130 * config/h8300/h8300.c (h8300_option_override): Likewise.
31131 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
31132 (ix86_option_override_internal): Likewise.
31133 (warn_once_call_ms2sysv_xlogues): Likewise.
31134 (ix86_expand_prologue): Likewise.
31135 (split_stack_prologue_scratch_regno): Likewise.
31136 (ix86_warn_parameter_passing_abi): Likewise.
31137 * config/ia64/ia64.c (fix_range): Likewise.
31138 * config/m68k/m68k.c (m68k_option_override): Likewise.
31139 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
31140 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
31141 (mips_set_compression_mode): Likewise.
31142 * config/mmix/mmix.c (mmix_option_override): Likewise.
31143 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
31144 * config/msp430/msp430.c (msp430_option_override): Likewise.
31145 * config/nds32/nds32.c (nds32_option_override): Likewise.
31146 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
31147 (nios2_option_override): Likewise.
31148 (nios2_expand_custom_builtin): Likewise.
31149 * config/nvptx/mkoffload.c (main): Likewise.
31150 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
31151 * config/pa/pa.c (fix_range): Likewise.
31152 (pa_option_override): Likewise.
31153 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
31154 (riscv_option_override): Likewise.
31155 * config/rl78/rl78.c (rl78_option_override): Likewise.
31156 * config/rs6000/aix61.h: Likewise.
31157 * config/rs6000/aix71.h: Likewise.
31158 * config/rs6000/aix72.h: Likewise.
31159 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
31160 * config/rs6000/freebsd64.h: Likewise.
31161 * config/rs6000/linux64.h: Likewise.
31162 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
31163 (rs6000_expand_zeroop_builtin): Likewise.
31164 (rs6000_expand_mtfsb_builtin): Likewise.
31165 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
31166 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
31167 (rs6000_invalid_builtin): Likewise.
31168 (rs6000_expand_split_stack_prologue): Likewise.
31169 * config/rs6000/rtems.h: Likewise.
31170 * config/rx/rx.c (valid_psw_flag): Likewise.
31171 (rx_expand_builtin): Likewise.
31172 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
31173 * config/s390/s390.c (s390_expand_builtin): Likewise.
31174 (s390_function_profiler): Likewise.
31175 (s390_option_override_internal): Likewise.
31176 (s390_option_override): Likewise.
31177 * config/sh/sh.c (sh_option_override): Likewise.
31178 (sh_builtin_saveregs): Likewise.
31179 (sh_fix_range): Likewise.
31180 * config/sh/vxworks.h: Likewise.
31181 * config/sparc/sparc.c (sparc_option_override): Likewise.
31182 * config/spu/spu.c (spu_option_override): Likewise.
31183 (fix_range): Likewise.
31184 * config/visium/visium.c (visium_option_override): Likewise.
31185 (visium_handle_interrupt_attr): Likewise.
31186 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
31187 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
31188 (dbg_cnt_process_opt): Likewise.
31189 * dwarf2out.c (output_dwarf_version): Likewise.
31190 * except.c (expand_eh_return): Likewise.
31191 * gcc.c (defined): Likewise.
31192 (driver_handle_option): Likewise.
31193 (process_command): Likewise.
31194 (compare_files): Likewise.
31195 (driver::prepare_infiles): Likewise.
31196 (driver::do_spec_on_infiles): Likewise.
31197 (driver::maybe_run_linker): Likewise.
31198 * omp-offload.c (oacc_parse_default_dims): Likewise.
31199 * opts-global.c (handle_common_deferred_options): Likewise.
31200 * opts.c (parse_sanitizer_options): Likewise.
31201 (common_handle_option): Likewise.
31202 (enable_warning_as_error): Likewise.
31203 * passes.c (enable_disable_pass): Likewise.
31204 * plugin.c (parse_plugin_arg_opt): Likewise.
31205 (default_plugin_dir_name): Likewise.
31206 * targhooks.c (default_expand_builtin_saveregs): Likewise.
31207 (default_pch_valid_p): Likewise.
31208 * toplev.c (init_asm_output): Likewise.
31209 (process_options): Likewise.
31210 (toplev::run_self_tests): Likewise.
31211 * tree-cfg.c (verify_gimple_call): Likewise.
31212 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
31213 (tree_inlinable_function_p): Likewise.
31214 * var-tracking.c (vt_find_locations): Likewise.
31215
31216 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
31217
31218 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
31219 only on the else branch.
31220
31221 2019-03-11 Martin Liska <mliska@suse.cz>
31222
31223 * gcov.c (output_intermediate_json_line): Print function
31224 name of each line.
31225 (output_json_intermediate_file): Add new argument.
31226 * doc/gcov.texi: Document the change.
31227
31228 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
31229
31230 PR rtl-optimization/89588
31231 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31232 explicit unrolling factor more robust.
31233
31234 2019-03-11 Richard Biener <rguenther@suse.de>
31235
31236 PR tree-optimization/89649
31237 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
31238 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
31239 on the prolog and epilog loops.
31240 (vect_loop_versioning): Return copy of loop.
31241 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
31242 on the non-vectorized version of the loop.
31243
31244 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
31245
31246 PR target/68924
31247 * config/i386/sse.md (*vec_extractv2di_0_sse):
31248 Add (=r,x) alternative and corresponding splitter.
31249
31250 2019-03-10 Martin Jambor <mjambor@suse.cz>
31251
31252 PR tree-optimization/85762
31253 PR tree-optimization/87008
31254 PR tree-optimization/85459
31255 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
31256 it points to if there is a type changing MEM_REF. Adjust all callers.
31257 (build_accesses_from_assign): Disable total scalarization if
31258 contains_vce_or_bfcref_p returns true through the new parameter, for
31259 both rhs and lhs.
31260
31261 2019-03-09 Jakub Jelinek <jakub@redhat.com>
31262
31263 PR c/88568
31264 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
31265 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
31266
31267 PR target/79645
31268 * common.opt (fdiagnostics-show-labels,
31269 fdiagnostics-show-line-numbers, fdiagnostics-format=,
31270 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
31271 gas-locview-support, ginline-points, ginternal-reset-location-views):
31272 Terminate description text with a dot.
31273 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
31274 * config/mcore/mcore.opt (m210, m340): Likewise.
31275 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
31276 mnops=): Start description text with a capital letter.
31277 * config/arc/arc.opt (msize-level=): Likewise.
31278 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
31279 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
31280 mnewlib): Likewise.
31281 * config/ft32/ft32.opt (msim): Likewise.
31282 (mft32b, mcompress): Likewise. Terminate description text with a dot.
31283 (mnodiv, mnopm): Terminate description text with a dot.
31284 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
31285 a colon.
31286 * config/i386/i386.opt (prefer_vector_width, instrument_return):
31287 Likewise.
31288 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
31289 text.
31290
31291 PR rtl-optimization/89634
31292 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
31293 are modified in BB_END (e->src) instruction.
31294
31295 2019-03-08 David Malcolm <dmalcolm@redhat.com>
31296
31297 PR target/79926
31298 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
31299 messages more amenable to translation, and improve wording.
31300
31301 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
31302
31303 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
31304 ud- and du-chains between phases.
31305
31306 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
31307
31308 PR debug/89631
31309 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
31310 instead of POLY_INT_CST.
31311
31312 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
31313
31314 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
31315 requirement.
31316
31317 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
31318
31319 PR target/68924
31320 PR target/78782
31321 PR target/87558
31322 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
31323 (_mm_storeu_si64): Ditto.
31324
31325 2019-03-08 Martin Liska <mliska@suse.cz>
31326
31327 PR target/86952
31328 * config/i386/i386.c (ix86_option_override_internal): Disable
31329 jump tables when retpolines are used.
31330
31331 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
31332
31333 PR go/63560
31334 * ipa-split.c (execute_split_functions): Do not split
31335 'noinline' or 'section' function.
31336
31337 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31338
31339 PR target/79846
31340 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
31341 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
31342 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
31343
31344 PR ipa/80000
31345 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
31346 from diagnostics. Formatting fixes.
31347
31348 PR target/85665
31349 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
31350 warn_odr diagnostics.
31351
31352 PR other/80058
31353 * lra-constraints.c (process_alt_operands): Avoid one space before
31354 " at the end of line and another after " on another line in a string
31355 literal.
31356 * attribs.c (handle_dll_attribute): Likewise.
31357 * config/avr/avr-devices.c (avr_texinfo): Likewise.
31358
31359 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
31360 warning_at or inform messages in G_() if there is no ?:.
31361
31362 PR tree-optimization/89550
31363 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
31364 returned true. Formatting fixes.
31365 (expand_builtin_strnlen): Formatting fixes.
31366 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
31367 if warning_at returned true.
31368 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
31369
31370 2019-03-08 Richard Biener <rguenther@suse.de>
31371
31372 PR middle-end/89578
31373 * cfgloop.h (struct loop): Add owned_clique field.
31374 * cfgloopmanip.c (copy_loop_info): Copy it.
31375 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31376 cliques.
31377 * tree-inline.c (copy_loops): Remap owned_clique.
31378 * lto-streamer-in.c (input_cfg): Stream owned_clique.
31379 * lto-streamer-out.c (output_cfg): Likewise.
31380
31381 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31382
31383 PR target/80190
31384 * config/darwin.c: Include intl.h.
31385 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31386 composing the message out of two separate parts.
31387
31388 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31389
31390 PR target/80003
31391 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31392 doesn't start with a capital letter and doesn't end with a dot.
31393 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31394 with a capital letter.
31395 (ix86_mangle_function_version_assembler_name): Likewise.
31396 (ix86_generate_version_dispatcher_body): Likewise.
31397 (fold_builtin_cpu): Likewise.
31398 (get_builtin_code_for_version): Likewise. Remove extraneous space.
31399 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31400 translators, wrap full type name in %qs.
31401
31402 PR translation/79999
31403 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31404 depend clause with source (or sink) modifier.
31405 * omp-expand.c (expand_omp_ordered_sink): Likewise.
31406
31407 PR target/89602
31408 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31409 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31410 (avx512f_load<mode>_mask): New define_expand.
31411 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31412 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31413 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31414 __builtin_ia32_movess_mask): New builtins.
31415 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31416 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31417 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31418 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31419
31420 2019-03-07 Martin Jambor <mjambor@suse.cz>
31421
31422 PR lto/87525
31423 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31424 for extern inline functions.
31425
31426 2019-03-07 Martin Jambor <mjambor@suse.cz>
31427
31428 PR ipa/88235
31429 * cgraph.h (cgraph_node): New inline method former_thunk_p.
31430 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31431 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31432 have multiple callees. At the end check if declarations match as
31433 opposed to cgraph_nodes.
31434
31435 2019-03-07 Martin Liska <mliska@suse.cz>
31436
31437 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31438 which is equivalent to searching for this in clones chain.
31439 * symtab.c (symtab_node::verify_base): Similarly compare ASM
31440 names with a neighbour and special case first node in a chain.
31441
31442 2019-01-25 Jason Merrill <jason@redhat.com>
31443
31444 PR c++/80916 - spurious "static but not defined" warning.
31445 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31446 for an internal symbol with DECL_EXTERNAL.
31447
31448 2019-04-07 Richard Biener <rguenther@suse.de>
31449
31450 PR middle-end/89618
31451 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31452 * tree-inline.c (copy_loops): Simplify.
31453
31454 2019-03-07 Martin Liska <mliska@suse.cz>
31455
31456 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31457
31458 2019-03-07 Richard Biener <rguenther@suse.de>
31459
31460 PR tree-optimization/89595
31461 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31462 stmt iterator as reference, take boolean output parameter to
31463 indicate whether the stmt was removed and thus the iterator
31464 already advanced.
31465 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31466 stmts created by folding.
31467
31468 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31469
31470 PR c++/89585
31471 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31472 at toplevel.
31473
31474 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31475
31476 PR rtl-optimization/88845
31477 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31478 LRA.
31479 * lra.c (remove_scratches_1): New function.
31480 (remove_scratches): Use it.
31481 (lra_emit_move): Likewise.
31482
31483 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31484
31485 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31486 unaligned_access variable.
31487 * config/arc/arc.c (arc_override_options): Set unaligned access
31488 default on for HS CPUs.
31489 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31490
31491 2019-03-06 Martin Liska <mliska@suse.cz>
31492
31493 PR gcov-profile/89577
31494 * doc/gcov.texi: Prefer to use --coverage.
31495 * doc/sourcebuild.texi: Likewise.
31496
31497 2019-03-02 Jason Merrill <jason@redhat.com>
31498
31499 PR c++/86485 - -Wmaybe-unused with empty class ?:
31500 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31501
31502 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31503
31504 PR target/89587
31505 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31506 if_multiarch.
31507
31508 PR middle-end/89590
31509 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31510 exactly one argument.
31511
31512 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31513 Richard Sandiford <richard.sandiford@arm.com>
31514
31515 PR tree-optimization/89570
31516 * match.pd (vec_cond into cond_op simplification): Don't use
31517 get_conditional_internal_fn, use as_internal_fn (cond_op).
31518
31519 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31520
31521 PR target/89222
31522 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31523 to decide when to split off a non-zero offset from a symbol.
31524 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31525 in function symbols.
31526
31527 2019-03-05 Richard Biener <rguenther@suse.de>
31528
31529 PR tree-optimization/89594
31530 * tree-if-conv.c (pass_if_conversion::execute): Handle
31531 case where .LOOP_VECTORIZED_FUNCTION was removed.
31532
31533 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31534
31535 PR bootstrap/89560
31536 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31537 instead alloca it only when needed with the needed size.
31538
31539 PR tree-optimization/89570
31540 * match.pd (vec_cond into cond_op simplification): Guard with
31541 vectorized_internal_fn_supported_p test and #if GIMPLE.
31542
31543 PR tree-optimization/89566
31544 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31545 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31546 Punt if get_user_idx_format succeeds, but idx_format argument is
31547 not provided or doesn't have pointer type, or if idx_args is above
31548 number of provided arguments.
31549
31550 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31551
31552 PR tree-optimization/89437
31553 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31554
31555 2019-03-04 Richard Biener <rguenther@suse.de>
31556
31557 PR middle-end/89572
31558 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31559 safe_dyn_cast.
31560
31561 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31562
31563 PR tree-optimization/89487
31564 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31565 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31566 (distribute_loop): Don't do runtime alias check if there is non-
31567 addressable data reference.
31568 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31569 is a register variable.
31570
31571 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31572
31573 PR target/89506
31574 * config/arm/arm.md (cmpsi2_addneg): Use
31575 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31576 If operands[2] is 0 or INT_MIN, force use of subs.
31577 (*compare_scc splitter): Use gen_int_mode.
31578 (*negscc): Likewise.
31579 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31580
31581 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31582 Monk Chiang <sh.chiang04@gmail.com>
31583
31584 * common/config/riscv/riscv-common.c: Include sstream.
31585 (riscv_subset_list::to_string): New.
31586 (riscv_arch_str): Likewise.
31587 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31588 * config.in: Regen.
31589 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31590 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31591 (riscv_emit_attribute): New.
31592 (riscv_file_start): Emit attribute if needed.
31593 (riscv_option_override): Init riscv_emit_attribute_p.
31594 * config/riscv/riscv.opt (mriscv-attribute): New option.
31595 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31596 * configure: Regen.
31597 * doc/install.texi: Document --with-riscv-attribute.
31598 * doc/invoke.texi: Document -mriscv-attribute.
31599
31600 * common/config/riscv/riscv-common.c:
31601 Include config/riscv/riscv-protos.h.
31602 (INCLUDE_STRING): Defined.
31603 (RISCV_DONT_CARE_VERSION): Defined.
31604 (riscv_subset_t): Declare.
31605 (riscv_subset_t::riscv_subset_t): New.
31606 (riscv_subset_list): Declare.
31607 (riscv_subset_list::riscv_subset_list): New.
31608 (riscv_subset_list::~riscv_subset_list): Likewise.
31609 (riscv_subset_list::parsing_subset_version): Likewise.
31610 (riscv_subset_list::parse_std_ext): Likewise.
31611 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31612 (riscv_subset_list::add): Likewise.
31613 (riscv_subset_list::lookup): Likewise.
31614 (riscv_subset_list::xlen): Likewise.
31615 (riscv_subset_list::parse): Likewise.
31616 (riscv_supported_std_ext): Likewise.
31617 (current_subset_list): Likewise.
31618 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31619 parse.
31620
31621 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31622
31623 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31624 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31625 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31626
31627 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31628
31629 PR rtl-optimization/85899
31630 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31631 fallthru edges leading to the exit block.
31632
31633 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31634
31635 PR target/89517
31636 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31637 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31638
31639 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31640
31641 PR tree-optimization/89535
31642 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31643 for each operand. Calculate the fallback choice for mask operands
31644 and pass it to vect_get_vec_def_for_operand.
31645
31646 2019-03-01 Richard Biener <rguenther@suse.de>
31647
31648 PR middle-end/89541
31649 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31650 get virtual operands.
31651 (get_expr_operands): Handle CONST_DECL like other decls.
31652
31653 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31654
31655 PR middle-end/89503
31656 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31657 on DECL_P and EXPR_P.
31658
31659 2019-03-01 Richard Biener <rguenther@suse.de>
31660
31661 PR middle-end/89497
31662 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31663 argument, defaulted to zero.
31664 * passes.c (execute_function_todo): Pass down SSA update flags
31665 to cleanup_tree_cfg.
31666 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31667 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31668 form if requested.
31669 (cleanup_tree_cfg): Get and pass down SSA update flags.
31670
31671 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31672
31673 PR bootstrap/89539
31674 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31675 early_lto_debug argument.
31676
31677 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31678
31679 PR tree-optimization/89536
31680 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31681 only whether bit #0 of the value is 0 instead of the entire value.
31682
31683 2019-02-28 Marek Polacek <polacek@redhat.com>
31684
31685 PR c++/87068 - missing diagnostic with fallthrough statement.
31686 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31687 at the end of a seq, save its location to walk_stmt_info.
31688 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31689 a switch.
31690
31691 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31692
31693 PR lto/88585
31694 * tree.c (find_atomic_core_type): Move ahead in file.
31695 (check_base_type): Correctly compare alignments of atomic types.
31696
31697 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31698
31699 PR target/89455
31700 * config/i386/i386.c (get_builtin_code_for_version): Identify
31701 Westmere from PCLMUL, instead of AES.
31702
31703 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31704
31705 PR target/89434
31706 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31707 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31708 -UINTVAL (...).
31709
31710 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31711
31712 PR target/88530
31713 * config/aarch64/aarch64-option-extensions.def: Document it.
31714 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31715 if empty hwcaps.
31716
31717 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31718
31719 PR c/89520
31720 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31721 builtins if they don't have a single scalar floating point argument.
31722 Formatting fixes.
31723
31724 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31725
31726 PR rtl-optimization/89490
31727 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31728 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31729 block section is not mergeable.
31730
31731 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31732
31733 PR target/70341
31734 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31735 old define_insn to ...
31736 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31737 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31738 Rename old define_insn to ...
31739 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31740 (thumb2_casesi_internal_pic): New define_expand. Rename old
31741 define_insn to ...
31742 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31743 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31744 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31745
31746 2019-02-27 Richard Biener <rguenther@suse.de>
31747
31748 PR debug/88878
31749 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31750
31751 2019-02-27 Richard Biener <rguenther@suse.de>
31752
31753 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31754 building.
31755
31756 2019-02-27 Richard Biener <rguenther@suse.de>
31757
31758 PR debug/88878
31759 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31760 parameter, prefix section name with .gnu.debuglto_ if true.
31761 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31762 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31763
31764 2019-02-27 Richard Biener <rguenther@suse.de>
31765
31766 PR debug/89514
31767 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31768 rather than on use_debug_types, doing what output_die does.
31769 (value_format): Likewise.
31770
31771 2019-02-27 Martin Jambor <mjambor@suse.cz>
31772 Martin Sebor <msebor@redhat.com>
31773
31774 * doc/invoke.texi (Warning Options): Reword description of
31775 -Wno-absolute-value.
31776
31777 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31778
31779 PR tree-optimization/89280
31780 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31781 builtin_setjmp_setup_bb): New functions.
31782 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31783 When visiting __builtin_setjmp_setup block, queue in special
31784 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31785 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31786 from visited after the loop if they don't have any visited successor
31787 blocks.
31788
31789 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31790
31791 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31792 New function.
31793 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31794
31795 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31796
31797 PR c++/89507
31798 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31799 with types other than sizetype/ssizetype.
31800
31801 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31802
31803 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31804 (enum sparc_processor_type): ...this.
31805 (enum sparc_code_model_type): New enumeration type.
31806 (enum sparc_memory_model_type): Tweak comments.
31807 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31808 (mtune): Likewise.
31809 (mcmodel): Use sparc_code_model enumeration and variable.
31810 (sparc_code_model): New enumeration.
31811 (mdebug): Add Undocumented marker.
31812 * config/sparc/sparc.h (enum cmodel): Delete.
31813 (sparc_cmodel): Likewise.
31814 (TARGET_CM_MEDLOW): Adjust to above renaming.
31815 (TARGET_CM_MEDMID): Likewise.
31816 (TARGET_CM_MEDANY): Likewise.
31817 (TARGET_CM_EMBMEDANY): Likewise.
31818 * config/sparc/sparc.c (sparc_cmodel): Delete.
31819 (sparc_option_override): Remove string/value mapping support for the
31820 code model. Move code and memory model support to after the handling
31821 of target flags. Do private machine setup last.
31822 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31823 (sparc_legitimize_reload_address): Likewise.
31824 (sparc_output_mi_thunk): Likewise.
31825 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31826
31827 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31828
31829 PR tree-optimization/89500
31830 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31831 (handle_builtin_strlen): Remove noncst_bound variable. Always
31832 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31833 cst if the first cst bytes starting at x are known to be non-zero,
31834 even if the string is not zero terminated. Don't try to modify
31835 *si for strnlen. Update strlen_to_stridx only for strlen or if
31836 we can prove strnlen returns the same value as strlen would.
31837
31838 2019-02-26 Martin Liska <mliska@suse.cz>
31839
31840 * alloc-pool.h (struct pool_usage): Remove extra
31841 print_dash_line.
31842 * bitmap.h (struct bitmap_usage): Likewise.
31843 * ggc-common.c (struct ggc_usage): Likewise.
31844 * mem-stats.h (struct mem_usage): Likewise.
31845 (mem_alloc_description::dump): Print dash lines
31846 here and repeat header at the end of a table report.
31847 It's then more readable.
31848 * tree-phinodes.c (phinodes_print_statistics): Make
31849 horizontal alignment.
31850 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31851 * vec.c (struct vec_usage): Remove extra print_dash_line.
31852 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31853
31854 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31855
31856 * doc/extend.texi (__builtin_object_size):
31857 Use @pxref instead of @xref inside parenthesis.
31858 (__builtin_has_attribute): Add missing comma after @xref.
31859 (__builtin_object_size): Ditto.
31860 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31861
31862 2019-02-26 Jeff Law <law@redhat.com>
31863
31864 PR rtl-optimization/87761
31865 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31866 detect obviously dead insns and delete them.
31867
31868 2019-02-26 Richard Biener <rguenther@suse.de>
31869
31870 PR tree-optimization/89505
31871 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31872 to handle restrict pointed-to vars with multiple subvars
31873 correctly.
31874
31875 2019-02-26 Richard Biener <rguenther@suse.de>
31876
31877 PR tree-optimization/89489
31878 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31879
31880 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31881
31882 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31883 and move around comment.
31884 <BIT_AND_EXPR>: Likewise.
31885 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31886
31887 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31888
31889 PR target/89474
31890 * config/i386/i386.c (remove_partial_avx_dependency): Call
31891 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31892 after changing possibly many instructions to use that pseudo. Fix up
31893 insertion of v4sf_const0 setter at the start of bb.
31894
31895 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31896
31897 PR c/80409
31898 * doc/extend.texi (Variadic Pointer Args): New section.
31899
31900 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31901 Martin Sebor <msebor@gmail.com>
31902
31903 * common.opt (Wattribute-alias): Likewise.
31904 * doc/invoke.texi (Option Summary): List general form of
31905 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31906 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31907 Add cross-references.
31908 (-Wattribute-alias): Rewrite and correct default. Mention
31909 considered attributes (same as for -Wmissing-attributes).
31910
31911 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31912
31913 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31914 (_mm_cvtpd_ps): Likewise.
31915 (_mm_cvttpd_epi32): Likewise.
31916
31917 PR target/89338
31918 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31919 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31920
31921 PR target/89339
31922 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31923
31924 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31925
31926 PR target/88530
31927 * common/config/aarch64/aarch64-common.c
31928 (struct aarch64_option_extension): Add is_synthetic.
31929 (all_extensions): Use it.
31930 (TARGET_OPTION_INIT_STRUCT): Define hook.
31931 (struct gcc_targetm_common): Moved to end.
31932 (all_extensions_by_on): New.
31933 (opt_ext_cmp, typedef opt_ext): New.
31934 (aarch64_option_init_struct): New.
31935 (aarch64_contains_opt): New.
31936 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31937 * config/aarch64/aarch64-option-extensions.def
31938 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31939 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31940 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31941 Set is_synthetic to false.
31942 (crypto): Set is_synthetic to true.
31943 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31944 SYNTHETIC.
31945
31946 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31947
31948 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31949 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31950 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31951 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31952 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31953 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31954 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31955 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31956 Rename ...
31957 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31958 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31959 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31960 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31961 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31962 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31963 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31964 vfmlsl_laneq_high_f16): ... To this.
31965 * config/arm/neon.md: Update comments.
31966
31967 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31968
31969 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31970 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31971 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31972 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31973 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31974 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31975 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31976 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31977 Rename ...
31978 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31979 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31980 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31981 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31982 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31983 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31984 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31985 vfmlslq_laneq_high_f16): ... To this.
31986
31987 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31988
31989 PR rtl-optimization/86096
31990 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31991 comparing mw_order values.
31992
31993 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31994
31995 PR target/89434
31996 * config/arm/arm.md (*subsi3_carryin_const): Use
31997 arm_neg_immediate_operand predicate instead of
31998 arm_not_immediate_operand, "L" constraint instead of "K" and
31999 print it using %n2 instead of %B2.
32000 (*subsi3_carryin_const0): New define_insn.
32001 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
32002 instead of arm_not_operand and "I" constraint instead of "K" and
32003 print it using %n3 instead of %B2. Instead of using match_dup 2 add
32004 another match_operand and in the condition check that it is negation
32005 of operands[2].
32006 (*subsi3_carryin_compare_const0): New define_ins.
32007 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
32008 *subsi3_carryin_const.
32009 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
32010 split into *subsi3_carryin_compare_const0 if the highpart is zero.
32011
32012 PR target/89438
32013 * config/arm.vfp.md (*negdf2_vfp): Use
32014 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
32015 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
32016
32017 2019-02-24 Jakub Jelinek <jakub@redhat.com>
32018
32019 PR rtl-optimization/89445
32020 * simplify-rtx.c (simplify_ternary_operation): Don't use
32021 simplify_merge_mask on operands that may trap.
32022 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
32023 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
32024 second operand is CONST_VECTOR, check if any element could be zero.
32025 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
32026 their operands can trap.
32027
32028 2019-02-23 Martin Sebor <msebor@redhat.com>
32029
32030 * gimple-ssa-sprintf.c (target_strtol): Rename...
32031 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
32032 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
32033 check for range error.
32034
32035 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
32036
32037 PR driver/69471
32038 * opts-common.c (prune_options): Also prune joined switches
32039 with Negative and RejectNegative.
32040 * config/i386/i386.opt (march=): Add Negative(march=).
32041 (mtune=): Add Negative(mtune=).
32042 * doc/options.texi: Document Negative used together with Joined
32043 and RejectNegative.
32044
32045 2019-02-22 Martin Sebor <msebor@redhat.com>
32046
32047 * doc/extend.texi (Other Builtins): Add
32048 __builtin_is_constant_evaluated.
32049
32050 2019-02-22 Richard Biener <rguenther@suse.de>
32051
32052 PR tree-optimization/87609
32053 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
32054
32055 2019-02-22 Jeff Law <law@redhat.com>
32056
32057 PR rtl-optimization/87761
32058 * config/mips/mips.md: Add new combiner pattern to recognize
32059 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
32060
32061 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
32062
32063 PR target/89324
32064 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
32065 destination register in peepholes generating patterns for ADDS/SUBS.
32066 (add<mode>3_compare0,
32067 *addsi3_compare0_uxtw, add<mode>3_compareC,
32068 add<mode>3_compareV_imm, add<mode>3_compareV,
32069 *adds_<optab><ALLX:mode>_<GPI:mode>,
32070 *subs_<optab><ALLX:mode>_<GPI:mode>,
32071 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
32072 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
32073 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
32074 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
32075 sub<mode>3_compare1): Allow stack pointer for source register.
32076 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
32077
32078 2019-02-22 Martin Sebor <msebor@redhat.com>
32079
32080 PR tree-optimization/88993
32081 PR tree-optimization/88853
32082 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
32083 New helper.
32084 (sprintf_dom_walker::call_info::is_string_func): New helper.
32085 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
32086 for formatted string functions.
32087 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
32088
32089 2019-02-22 Martin Sebor <msebor@redhat.com>
32090
32091 PR c/89425
32092 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
32093 unreachable subexpressions.
32094
32095 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
32096 Hongtao Liu <hongtao.liu@intel.com>
32097 Sunil K Pandey <sunil.k.pandey@intel.com>
32098
32099 PR target/87007
32100 * config/i386/i386-passes.def: Add
32101 pass_remove_partial_avx_dependency.
32102 * config/i386/i386-protos.h
32103 (make_pass_remove_partial_avx_dependency): New.
32104 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
32105 New function.
32106 (pass_data_remove_partial_avx_dependency): New.
32107 (pass_remove_partial_avx_dependency): Likewise.
32108 (make_pass_remove_partial_avx_dependency): Likewise.
32109 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
32110 (*extendsfdf2): Add avx_partial_xmm_update.
32111 (truncdfsf2): Likewise.
32112 (*float<SWI48:mode><MODEF:mode>2): Likewise.
32113 (SF/DF conversion splitters): Disabled for TARGET_AVX.
32114
32115 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
32116
32117 PR middle-end/85598
32118 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
32119 analysis for pass.
32120
32121 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
32122
32123 PR target/89444
32124 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
32125 (PTA_SKYLAKE): Add PTA_AES.
32126 (PTA_GOLDMONT): Likewise.
32127
32128 2019-02-22 Sudakshina Das <sudi.das@arm.com>
32129
32130 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
32131 instruction if enabled.
32132 (aarch64_override_options): Remove reference to return address key.
32133
32134 2019-02-22 Richard Biener <rguenther@suse.de>
32135
32136 PR tree-optimization/89440
32137 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
32138 not necessary assert.
32139
32140 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
32141
32142 PR fortran/72741
32143 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
32144 (oacc_replace_fn_attrib_attr): ... this new function.
32145 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
32146 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
32147
32148 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32149
32150 * config/arm/arm-cpus.in (ares): Rename to...
32151 (neoverse-n1): ... This. Add ares as alias.
32152 * config/arm/arm-tables.opt: Regenerate.
32153 * config/arm/arm-tune.md: Likewise.
32154 * doc/invoke.txt (ARM Options): Document neoverse-n1.
32155
32156 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32157
32158 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
32159 * config/aarch64/aarch64-tune.md: Regenerate.
32160 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
32161
32162 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32163
32164 * config/aarch64/aarch64.c (ares_tunings): Rename to...
32165 (neoversen1_tunings): ... This.
32166 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
32167 (neoverse-n1): New CPU.
32168 * config/aarch64/aarch64-tune.md: Regenerate.
32169 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
32170
32171 2019-02-22 Richard Biener <rguenther@suse.de>
32172
32173 PR middle-end/87609
32174 * cfghooks.h (dependence_hash): New typedef.
32175 (struct copy_bb_data): New type.
32176 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
32177 (duplicate_block): Likewise.
32178 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
32179 (copy_bbs): Create and pass down copy_bb_data.
32180 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
32181 (rtl_duplicate_bb): Likewise.
32182 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
32183 remap dependence info.
32184
32185 2019-02-22 Richard Biener <rguenther@suse.de>
32186
32187 PR tree-optimization/87609
32188 * tree-core.h (tree_base): Document special clique values.
32189 * tree-inline.c (remap_dependence_clique): Do not use the
32190 special clique value of one.
32191 (maybe_set_dependence_info): Use clique one.
32192 (clear_dependence_clique): New callback.
32193 (compute_dependence_clique): Clear clique one from all refs
32194 before assigning it (again).
32195
32196 2019-02-21 Martin Sebor <msebor@redhat.com>
32197
32198 * doc/extend.texi (__clear_cache): Correct signature.
32199
32200 2019-02-21 Ian Lance Taylor <iant@golang.org>
32201
32202 PR go/89170
32203 * varasm.c (decode_addr_const): Call lookup_constant_def rather
32204 than output_constant_def.
32205 (add_constant_to_table): New static function.
32206 (output_constant_def): Call add_constant_to_table.
32207 (tree_output_constant_def): Likewise.
32208
32209 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32210
32211 PR c++/89285
32212 * builtins.c (fold_builtin_arith_overflow): If first two args are
32213 INTEGER_CSTs, set intres and ovfres to constants rather than calls
32214 to ifn.
32215
32216 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
32217
32218 PR target/87412
32219 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
32220 error for -mindirect-branch/-mfunction-return with incompatible
32221 -fcf-protection.
32222
32223 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32224
32225 PR bootstrap/88714
32226 * constraints.md (q): Remove.
32227 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
32228 instead of q.
32229
32230 2019-02-21 Martin Jambor <mjambor@suse.cz>
32231
32232 PR hsa/89302
32233 * omp-general.c (omp_extract_for_data): Removed a duplicate call
32234 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
32235 (omp_adjust_for_condition): ...here. Added necessary parameters.
32236 * omp-general.h (omp_adjust_for_condition): Updated declaration.
32237 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
32238 proper values to new parameters of omp_adjust_for_condition.
32239
32240 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32241
32242 PR middle-end/89412
32243 * expr.c (expand_assignment): If result is a MEM, use change_address
32244 instead of simplify_gen_subreg.
32245
32246 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32247 David Malcolm <dmalcolm@redhat.com>
32248
32249 PR middle-end/89091
32250 * fold-const.c (decode_field_reference): Return NULL_TREE if
32251 lang_hooks.types.type_for_size returns NULL. Check it before
32252 overwriting *exp_. Use return NULL_TREE instead of return 0.
32253
32254 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32255
32256 PR middle-end/88074
32257 PR middle-end/89415
32258 * toplev.c (do_compile): Double the emin/emax exponents to workaround
32259 buggy mpc_norm.
32260
32261 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
32262
32263 PR target/89397
32264 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
32265 TARGET_SSE in addition to TARGET_SSE_MATH.
32266
32267 (ix86_excess_precision): Ditto.
32268 (ix86_float_exceptions_rounding_supported_p): Ditto.
32269 (use_rsqrt_p): Ditto.
32270 * config/i386/sse.md (rsqrt<mode>2): Ditto.
32271
32272 2019-02-20 David Malcolm <dmalcolm@redhat.com>
32273
32274 PR c/89410
32275 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
32276 linenum_arith_t when determining if two adjacent line spans are
32277 close enough to merge.
32278 (diagnostic_show_locus): Use linenum_arith_t when iterating over
32279 lines within each line_span.
32280
32281 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
32282
32283 PR target/86487
32284 * lra-constraints.c(uses_hard_regs_p): Fix handling of
32285 paradoxical SUBREGS.
32286
32287 2019-02-20 Li Jia He <helijia@linux.ibm.com>
32288
32289 PR target/88100
32290 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
32291 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
32292 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
32293 range checking it.
32294
32295 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
32296
32297 * config/gcn/gcn.c (print_operand): Fix typo.
32298
32299 2019-02-19 Richard Biener <rguenther@suse.de>
32300
32301 PR middle-end/88074
32302 * toplev.c (do_compile): Initialize mpfr's exponent range
32303 based on available float modes.
32304
32305 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
32306
32307 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
32308 as long as the epilogue isn't completed.
32309
32310 2019-02-18 Martin Sebor <msebor@redhat.com>
32311
32312 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
32313 __has_cpp_attribute, and __has_include.
32314
32315 2019-02-18 Martin Sebor <msebor@redhat.com>
32316
32317 * doc/invoke.texi (-Wreturn-type): Correct and expand.
32318
32319 2019-02-18 Martin Sebor <msebor@redhat.com>
32320
32321 PR middle-end/89294
32322 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
32323 expression.
32324 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
32325
32326 2019-02-18 Richard Biener <rguenther@suse.de>
32327
32328 PR tree-optimization/89296
32329 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
32330 of no-warning flag to cases that might emit the bogus warning.
32331
32332 2019-02-18 Jakub Jelinek <jakub@redhat.com>
32333
32334 PR bootstrap/88714
32335 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
32336 "q" constraint.
32337 * config/arm/vfp.md (*movdi_vfp): Likewise.
32338 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
32339 "q" constraint for operands[0].
32340
32341 PR target/89369
32342 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
32343 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
32344 pattern in a temporary buffer.
32345 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
32346 than 64-operands[2].
32347
32348 PR target/89361
32349 * config/s390/s390.c (s390_indirect_branch_attrvalue,
32350 s390_indirect_branch_settings): Define unconditionally.
32351 (s390_set_current_function): Likewise, but guard the whole body except
32352 the s390_indirect_branch_settings call with
32353 #if S390_USE_TARGET_ATTRIBUTE.
32354 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
32355
32356 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
32357 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
32358 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
32359 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
32360 HOST_WIDE_INT_1U instead of 1ULL.
32361 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
32362 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
32363 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
32364 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
32365 instead of 1UL.
32366 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
32367 instead of 1ul.
32368
32369 2019-02-18 Martin Jambor <mjambor@suse.cz>
32370
32371 PR tree-optimization/89209
32372 * tree-sra.c (create_access_replacement): New optional parameter
32373 reg_tree. Use it as a type if non-NULL and access type is not of
32374 a register type.
32375 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32376 to create_access_replacement.
32377 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32378 Check lacc is non-NULL before attempting to re-create it on the RHS.
32379
32380 2019-02-18 Martin Liska <mliska@suse.cz>
32381
32382 PR ipa/89306
32383 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32384 by default.
32385 (symbol_table::free_edge): Recycle m_summary_id.
32386 * cgraph.h (get_summary_id): New.
32387 (symbol_table::release_symbol): Set m_summary_id to -1
32388 by default.
32389 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32390 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32391 function_summary to fast_function_summary.
32392 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32393 * ipa-pure-const.c (class funct_state_summary_t):
32394 Switch from function_summary to fast_function_summary.
32395 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32396 (class ipa_ref_opt_summary_t): Switch from function_summary
32397 to fast_function_summary.
32398 * symbol-summary.h (class function_summary_base): New class
32399 that is created from base of former function_summary.
32400 (function_summary_base::unregister_hooks): New.
32401 (class function_summary): Inherit from function_summary_base.
32402 (class call_summary_base): New class
32403 that is created from base of former call_summary.
32404 (class call_summary): Inherit from call_summary_base.
32405 (struct is_same): New.
32406 (class fast_function_summary): New summary class.
32407 (class fast_call_summary): New summary class.
32408 * vec.h (vec_safe_grow_cleared): New function.
32409
32410 2019-02-18 Martin Liska <mliska@suse.cz>
32411
32412 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32413 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32414 * doc/tm.texi: Document new target hook.
32415 * doc/tm.texi.in: Likewise.
32416 * target.def: Add new target macro.
32417 * gcc.c (find_fortran_preinclude_file): Do not search multilib
32418 suffixes.
32419
32420 2019-02-17 Alan Modra <amodra@gmail.com>
32421
32422 PR target/89271
32423 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32424 output reg on add insn.
32425 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
32426
32427 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32428
32429 PR target/89372
32430 * config/i386/sse.md (ssedoublemode): Remove V4HI.
32431 (PMULHRSW): Likewise.
32432 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32433 TARGET_AVX2.
32434 (ssse3_pmulhrswv4hi3): New expander.
32435
32436 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32437
32438 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32439 MMX. Add isa attribute.
32440
32441 2019-02-16 Jakub Jelinek <jakub@redhat.com>
32442
32443 PR rtl-optimization/66152
32444 * builtins.h (c_readstr): Declare.
32445 * builtins.c (c_readstr): Remove forward declaration. Add
32446 null_terminated_p argument, if false, read all bytes from the
32447 string instead of stopping after '\0'.
32448 * expr.c (string_cst_read_str): New function.
32449 (store_expr): Use string_cst_read_str instead of
32450 builtin_strncpy_read_str. Try to store by pieces the whole
32451 exp_len first, and only if that fails, split it up into
32452 store by pieces followed by clear_storage. Formatting fix.
32453
32454 * config/i386/i386.md (*movqi_internal): Remove static from
32455 buf variable. Use output_asm_insn (buf, operands); return "";
32456 instead of return buf;.
32457 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32458 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32459 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32460
32461 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32462
32463 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32464 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32465 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32466 (CC1_SPEC): Likewise.
32467 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32468
32469 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32470
32471 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32472 the base address on 64-bit strict-alignment platforms.
32473
32474 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32475
32476 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32477
32478 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32479
32480 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32481
32482 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32483
32484 PR rtl-optimization/88308
32485 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32486 on copied instruction.
32487
32488 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32489
32490 * final.c (insn_current_reference_address): Replace test on JUMP_P
32491 with test on jump_to_label_p.
32492 * config/visium/visium-passes.def: New file.
32493 * config/visium/t-visium (PASSES_EXTRA): Define.
32494 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32495 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32496 (TRAMPOLINE_ALIGNMENT): Define.
32497 * config/visium/visium.c (visium_option_override): Do not register
32498 the machine-specific reorg pass here.
32499 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32500 for the GR6.
32501 (output_branch): Adjust threshold for long branch instruction.
32502 * config/visium/visium.md (cpu): Move around.
32503 (length): Adjust for the GR6.
32504
32505 2019-02-15 Richard Biener <rguenther@suse.de>
32506 Jakub Jelinek <jakub@redhat.com>
32507
32508 PR tree-optimization/89278
32509 * tree-loop-distribution.c: Include tree-eh.h.
32510 (generate_memset_builtin, generate_memcpy_builtin): Call
32511 rewrite_to_non_trapping_overflow on builtin->size before passing it
32512 to force_gimple_operand_gsi.
32513
32514 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32515
32516 PR other/89342
32517 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32518 optimize_debug.
32519 * opth-gen.awk: Likewise.
32520
32521 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32522
32523 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32524 Enable MMX, SSE and SSE2 by default.
32525 * config/i386/i386.c (ix86_option_override_internal): Do not
32526 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32527
32528 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32529
32530 PR rtl-optimization/89354
32531 * combine.c (make_extraction): Punt if extraction_mode is narrower
32532 than len bits.
32533
32534 2019-02-14 Maya Rashish <coypu@sdf.org>
32535
32536 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32537 * config/netbsd-d.c: New file.
32538 * config/t-netbsd: Add netbsd-d.o
32539
32540 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32541
32542 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32543 affects_type_identity to true for aarch64_vector_pcs.
32544 (aarch64_comp_type_attributes): New function.
32545 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32546
32547 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32548
32549 PR target/88850
32550 * config/arm/iterators.md (ANY64): Add V4HF.
32551
32552 2019-02-14 Martin Liska <mliska@suse.cz>
32553
32554 PR rtl-optimization/89242
32555 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32556 process a transformation.
32557
32558 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32559
32560 PR tree-optimization/89314
32561 * fold-const.c (fold_binary_loc): Cast strlen argument to
32562 const char * before dereferencing it. Formatting fixes.
32563
32564 PR middle-end/89284
32565 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32566
32567 2019-02-13 Ian Lance Taylor <iant@golang.org>
32568
32569 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32570 and set current index for other optimizations.
32571
32572 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32573
32574 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32575 nonimmediate_operand as operand 2 predicate.
32576 (vec_set<VF2_512_256:mode>_0): Ditto.
32577 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32578 (*vec_concatv2si): Remove alternative 2.
32579 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32580 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32581 (vec_concatv2di): Split alternatives 4,5,6 to ...
32582 (*vec_concatv2di_0) ... new pattern.
32583
32584 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32585
32586 PR target/89190
32587 * config/arm/arm.c (ldm_stm_operation_p) Set
32588 addr_reg_in_reglist correctly for first register.
32589 (load_multiple_sequence): Remove dead base check.
32590 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32591
32592 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32593
32594 PR target/88847
32595 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32596 Expose as @aarch64_pred_mov.
32597 * config/aarch64/aarch64.c (aarch64_classify_address):
32598 Use expand_insn which legitimizes operands.
32599
32600 2019-02-13 Martin Liska <mliska@suse.cz>
32601
32602 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32603 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32604 and pointer_offset fields.
32605 (initialize_argument_information): Remove usage of dead
32606 fields.
32607 * cgraph.h (struct cgraph_thunk_info): Remove
32608 add_pointer_bounds_args.
32609 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32610 fields.
32611 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32612 fields.
32613 * config/i386/i386.c (ix86_function_arg_advance): Remove
32614 unrelated comment.
32615 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32616 (def_builtin): Remove usage of dead fields.
32617 (ix86_add_new_builtins): Likewise.
32618 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32619 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32620 (sem_function::init): Likewise.
32621 (sem_variable::merge): Likewise.
32622 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32623 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32624 * lto-cgraph.c (lto_output_node): Likewise.
32625 (lto_output_varpool_node): Likewise.
32626 (input_node): Likewise.
32627 (input_varpool_node): Likewise.
32628 * lto-streamer-out.c (lto_output): Likewise.
32629 * tree-inline.c (expand_call_inline): Remove usage of
32630 assign_stmts.
32631 * tree-inline.h (struct copy_body_data): Likewise.
32632 * varpool.c (varpool_node::dump): Likewise.
32633
32634 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32635
32636 PR middle-end/89303
32637 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32638 into pt->vars_contains_escaped_heap instead of setting
32639 pt->vars_contains_escaped_heap to it.
32640
32641 PR middle-end/89281
32642 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32643 INTVAL (size), compare it to GET_MODE_MASK instead of
32644 1 << GET_MODE_BITSIZE.
32645
32646 PR target/89290
32647 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32648 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32649 -mcmodel=large.
32650
32651 2019-02-13 Martin Liska <mliska@suse.cz>
32652
32653 PR lto/88858
32654 * cfgrtl.c (remove_barriers_from_footer): New function.
32655 (try_redirect_by_replacing_jump): Use it.
32656 (cfg_layout_redirect_edge_and_branch): Likewise.
32657
32658 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32659
32660 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32661 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32662 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32663 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32664 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32665 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32666 New BU_CRYPTO_2.
32667 * config/rs6000/rs6000.c (builtin_function_type)
32668 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32669 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32670 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32671 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32672 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32673
32674 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32675
32676 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32677 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32678
32679 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32680
32681 PR target/89229
32682 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32683 268678 and revision 268657.
32684 (*movti_internal): Likewise.
32685
32686 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32687
32688 PR target/89233
32689 * config/s390/s390.c (s390_decompose_address): Update comment.
32690 (s390_check_qrst_address): Reject invalid address forms after
32691 LRA.
32692
32693 2019-02-12 Martin Liska <mliska@suse.cz>
32694
32695 PR lto/88876
32696 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32697 we need default values of funct_state for a function that
32698 is not optimized.
32699
32700 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32701
32702 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32703 the object to pick the size of stores on strict-alignment platforms.
32704
32705 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32706 (*movdi_insn_sp32): Likewise.
32707 (*movdi_insn_sp64): Likewise.
32708
32709 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32710
32711 PR lto/88677
32712 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32713 types that needs constructiong.
32714 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32715
32716 2019-02-12 Richard Biener <rguenther@suse.de>
32717
32718 PR tree-optimization/89253
32719 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32720 duplicate the loop.
32721
32722 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32723
32724 PR lto/88147
32725 * input.c (selftest::test_line_offset_overflow): New selftest.
32726 (selftest::input_c_tests): Call it.
32727
32728 2019-02-11 Martin Sebor <msebor@redhat.com>
32729
32730 PR tree-optimization/88771
32731 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32732 when -Wstringop-overflow is set.
32733 (builtin_memref::builtin_memref): Adjust excessive upper bound
32734 only when lower bound is not excessive.
32735 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32736 -Wstringop-ovefflow.
32737 (maybe_diag_offset_bounds): Rename...
32738 (maybe_diag_access_bounds): ...to this.
32739 (check_bounds_or_overlap): Adjust for name change above.
32740
32741 2019-02-11 Martin Sebor <msebor@redhat.com>
32742
32743 PR c++/87996
32744 * builtins.c (max_object_size): Move from here...
32745 * builtins.h (max_object_size): ...and here...
32746 * tree.c (max_object_size): ...to here...
32747 * tree.h (max_object_size): ...and here.
32748
32749 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32750
32751 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32752 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32753 for correct semantics.
32754
32755 2019-02-11 Alan Modra <amodra@gmail.com>
32756
32757 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32758 -mlongcall and -mpltseq.
32759 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32760 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32761 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32762 * config/rs6000/sysv4.opt (mpltseq): New option.
32763 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32764 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32765 support is lacking. Don't allow -mpltseq with -mbss-plt.
32766 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32767 -mpltseq given for ELFv1.
32768 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32769 Only use UNSPEC_PLTSEQ for inline PLT calls.
32770 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32771 use UNSPEC_PLTSEQ for inline PLT calls.
32772 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32773 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32774 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32775 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32776 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32777 (pltseq_mtctr_<mode>): Likewise.
32778
32779 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32780
32781 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32782 Solaris ld.
32783 * configure: Regenerate.
32784
32785 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32786
32787 PR bootstrap/88714
32788 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32789 instead of r.
32790
32791 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32792
32793 * function.c (assign_parm_setup_block): Use the stored
32794 size, not the passed size, when allocating stack-space,
32795 also for a parameter with alignment larger than
32796 MAX_SUPPORTED_STACK_ALIGNMENT.
32797
32798 2019-02-11 Martin Liska <mliska@suse.cz>
32799
32800 PR ipa/89009
32801 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32802 * ipa-inline.c (inline_small_functions): Likewise.
32803 * ipa-pure-const.c (propagate_pure_const): Likewise.
32804 (propagate_nothrow): Likewise.
32805 * ipa-reference.c (propagate): Likewise.
32806 * ipa-utils.c (struct searchc_env): Remove unused field.
32807 (searchc): Always search across AVAIL_INTERPOSABLE.
32808 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32809 the only called IPA pure const can properly not propagate
32810 across interposable boundary.
32811 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32812
32813 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32814
32815 * config/nds32/nds32.md (call_internal, call_value_internal,
32816 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32817
32818 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32819
32820 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32821 typo.
32822
32823 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32824
32825 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32826 in comments
32827
32828 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32829
32830 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32831
32832 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32833
32834 PR tree-optimization/89268
32835 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32836 if preds is non-NULL.
32837
32838 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32839
32840 PR lto/89272
32841 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32842 polymorphic types.
32843
32844 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32845
32846 * config/nds32/nds32.md (trap): New pattern.
32847
32848 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32849
32850 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32851 dwarf span.
32852
32853 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32854
32855 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32856 to split POST_INC.
32857
32858 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32859
32860 * ipa-visibility.c (localize_node): Also do not localize
32861 LDPR_PREVAILING_DEF_IRONLY_EXP.
32862
32863 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32864
32865 PR lto/87957
32866 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32867 instead of type_with_linkage.
32868
32869 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32870
32871 PR ipa/88755
32872 * params.def (uninlined-function-insns, uninlined-function-time,
32873 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32874 bound so we don't get overflows.
32875
32876 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32877
32878 * config/rs6000/rs6000-string.c (expand_compare_loop,
32879 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32880 memcmp/strncmp.
32881
32882 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32883
32884 PR middle-end/89246
32885 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32886 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32887 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32888
32889 2019-02-09 Alan Modra <amodra@gmail.com>
32890
32891 PR target/88343
32892 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32893 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32894 setup.
32895
32896 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32897
32898 PR middle-end/88560
32899 * lra-constraints.c (process_alt_operands): Don't increase reject
32900 for memory when offset memory is required.
32901
32902 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32903
32904 * config/s390/vector.md: Implement vector copysign.
32905
32906 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32907
32908 * expr.c (expand_constructor): Correct indentations.
32909
32910 2019-02-08 Richard Biener <rguenther@suse.de>
32911
32912 PR tree-optimization/89247
32913 * tree-if-conv.c: Include tree-cfgcleanup.h.
32914 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32915 (tree_if_conversion): Pass through predicate vector.
32916 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32917 inline, see if any if-converted loops we refrece in
32918 LOOP_VECTORIZED calls vanished and fixup.
32919 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32920
32921 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32922
32923 * config/s390/constraints.md (jdd): New constraint.
32924
32925 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32926
32927 PR target/89229
32928 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32929 upper 16 vector registers without TARGET_AVX512VL.
32930 (*movti_internal): Likewise.
32931
32932 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32933
32934 PR rtl-optimization/89234
32935 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32936 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32937 (copy_reg_eh_region_note_backward): Likewise.
32938
32939 2019-02-08 Richard Biener <rguenther@suse.de>
32940
32941 PR middle-end/89223
32942 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32943 doesn't fit in HWI.
32944 (analyze_subscript_affine_affine): Handle failure from
32945 initialize_matrix_A.
32946
32947 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32948
32949 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32950 cfun everywhere.
32951
32952 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32953
32954 PR tree-optimization/86637
32955 PR tree-optimization/89235
32956 * tree-vect-loop.c (optimize_mask_stores): Add an
32957 auto_purge_vect_location sentinel to ensure that vect_location is
32958 purged on exit.
32959 * tree-vectorizer.c
32960 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32961 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32962 to ensure that vect_location is purged on exit.
32963 (pass_slp_vectorize::execute): Likewise, replacing the manual
32964 reset.
32965 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32966
32967 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32968
32969 * config/aarch64/iterators.md (max_opp): New code_attr.
32970 (USMAX): New code iterator.
32971 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32972 (aarch64_smax): Likewise.
32973 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32974 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32975 MINUS (MAX MIN).
32976
32977 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32978
32979 PR target/89229
32980 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32981 for TARGET_AVX512VL.
32982 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32983
32984 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32985
32986 * config/s390/s390-builtin-types.def: Add new types.
32987 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32988 (s390_vec_xlw4): Make the memory operand into a const pointer.
32989 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32990 float.
32991 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32992 a new vector type with the alignment of the scalar memory operand.
32993
32994 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32995 Jakub Jelinek <jakub@redhat.com>
32996
32997 PR bootstrap/88714
32998 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32999 arm_count_ldrdstrd_insns): New declarations.
33000 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
33001 MINUS.
33002 (valid_operands_ldrd_strd): New function.
33003 (arm_count_ldrdstrd_insns): New function.
33004 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
33005 sets instead of single DImode set and define new insns to match this.
33006
33007 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33008
33009 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
33010 Make it a C initializer.
33011
33012 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33013
33014 PR/target 88850
33015 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
33016
33017 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33018
33019 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
33020 Use neon_dot<q> for type.
33021 (neon_<sup>dot_lane<vsi2qi>): Likewise.
33022
33023 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33024
33025 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
33026 Use neon_dot<q> for type.
33027 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
33028 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
33029
33030 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
33031
33032 PR rtl-optimization/89225
33033 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
33034 sizes check.
33035
33036 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
33037
33038 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
33039 after restoring registers saved to allocate the frame on Windows.
33040
33041 2019-02-06 Richard Biener <rguenther@suse.de>
33042
33043 PR tree-optimization/89182
33044 * graphite.h (cached_scalar_evolution_in_region): Declare.
33045 * graphite.c (struct seir_cache_key): New.
33046 (struct sese_scev_hash): Likewise.
33047 (seir_cache): New global.
33048 (cached_scalar_evolution_in_region): New function.
33049 (graphite_transform_loops): Allocate and release seir_cache.
33050 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
33051 cached_scalar_evolution_in_region.
33052 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33053 Simplify.
33054 (scop_detection::graphite_can_represent_expr: Use
33055 cached_scalar_evolution_in_region.
33056 (scop_detection::stmt_simple_for_scop_p): Likewise.
33057 (find_params_in_bb): Likewise.
33058 (gather_bbs::before_dom_children): Likewise.
33059 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
33060 (add_loop_constraints): Likewise.
33061
33062 2019-02-06 Jakub Jelinek <jakub@redhat.com>
33063
33064 PR middle-end/89210
33065 * fold-const-call.c (fold_const_vec_convert): Pass true as last
33066 operand to new_unary_operation only if both element types are integral
33067 and it isn't a widening conversion. Return NULL_TREE if
33068 new_unary_operation failed.
33069
33070 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
33071
33072 PR target/88856
33073 * config/s390/s390.md: Remove load and test FP splitter.
33074
33075 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33076
33077 PR target/89112
33078 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
33079 expand_compare_loop, expand_block_compare_gpr,
33080 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
33081 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
33082 #include "profile-count.h" and "predict.h" for types and functions
33083 needed to work with REG_BR_PROB notes.
33084
33085 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33086
33087 PR target/89112
33088 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
33089 for the long branch case.
33090
33091 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33092
33093 PR target/89188
33094 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
33095 can throw, non-call exceptions are enabled and we can't delete
33096 dead exceptions or alter cfg. Set must_clean if
33097 delete_insn_and_edges returns true, don't set it blindly for calls.
33098 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
33099
33100 PR rtl-optimization/89195
33101 * combine.c (make_extraction): For MEMs, don't extract bytes outside
33102 of the original MEM.
33103
33104 2019-02-05 Martin Liska <mliska@suse.cz>
33105
33106 PR gcov-profile/89000
33107 * gcov.c (function_summary): Remove argument.
33108 (file_summary): New function.
33109 (print_usage): Replace tabs with spaces.
33110 (generate_results): Use new function file_summary.
33111
33112 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33113
33114 PR target/89186
33115 * optabs.c (prepare_cmp_insn): Pass x and y to
33116 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
33117
33118 2019-02-05 Richard Biener <rguenther@suse.de>
33119
33120 PR middle-end/89150
33121 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
33122 (struct bitmap_element): Drop chain_prev so we properly recurse on
33123 the prev member, supporting tree views.
33124 (struct bitmap_head): GTY skip the obstack member.
33125
33126 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
33127
33128 PR c/88698
33129 * doc/extend.texi (Vector Extensions): Add an example of using vector
33130 types together with x86 intrinsics.
33131
33132 2019-02-04 Alan Modra <amodra@gmail.com>
33133
33134 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
33135 str[] size to 160, and comment.
33136
33137 2019-02-04 Alan Modra <amodra@gmail.com>
33138
33139 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
33140 (rs6000_pltseq_template): Guard output of TLS markers with
33141 TARGET_TLS_MARKERS.
33142 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
33143 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
33144 to use inline PLT sequences.
33145 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33146 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33147 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
33148
33149 2019-02-04 Martin Liska <mliska@suse.cz>
33150
33151 PR ipa/88985
33152 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
33153 out when ipa_fn_summaries does not contain entry for callee.
33154
33155 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
33156
33157 * config/sparc/sparc.h: Remove superfluous blank lines.
33158 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
33159 (got_register_rtx): ...this.
33160 (sparc_got): Adjust to above renaming.
33161 (sparc_tls_got): Likewise.
33162 (sparc_delegitimize_address): Likewise.
33163 (sparc_output_mi_thunk): Likewise.
33164 (sparc_init_pic_reg): Likewise.
33165 (save_local_or_in_reg_p): Fix test on the GOT register.
33166 (USE_HIDDEN_LINKONCE): Move around.
33167 (get_pc_thunk_name): Likewise.
33168 (gen_load_pcrel_sym): Likewise.
33169 (load_got_register): Likewise.
33170
33171 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
33172
33173 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
33174 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
33175
33176 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33177
33178 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
33179 into consideration.
33180
33181 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33182
33183 * config.gcc (with_nds32_lib, glibc):
33184 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
33185 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
33186 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
33187
33188 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
33189
33190 PR target/89071
33191 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
33192 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
33193 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
33194 (*rcpsf2_sse): Ditto.
33195 (*rsqrtsf2_sse): Ditto.
33196 (sse4_1_round<mode<2): Ditto.
33197
33198 2019-02-03 Richard Biener <rguenther@suse.de>
33199
33200 PR debug/87295
33201 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
33202 orig.
33203
33204 2019-02-02 Jakub Jelinek <jakub@redhat.com>
33205
33206 PR middle-end/87887
33207 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33208 Punt with warning on aggregate return or argument types. Ignore
33209 type/mode checking for uniform arguments.
33210
33211 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
33212
33213 * combine.c (try_combine): Do not print "Can't combine" messages unless
33214 printing failed combination attempts.
33215
33216 2019-02-01 Martin Jambor <mjambor@suse.cz>
33217
33218 PR hsa/87863
33219 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
33220 segment and global segment variables before making them static.
33221
33222 2019-02-01 Martin Jambor <mjambor@suse.cz>
33223
33224 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
33225 missed optimization dump with dump_enabled_p.
33226
33227 2019-02-01 Richard Biener <rguenther@suse.de>
33228
33229 PR middle-end/88597
33230 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
33231 the instantiate cache.
33232 (instantiate_scev_binary): Elide second operand procesing
33233 if equal to the first.
33234 * tree-chrec.c (chrec_contains_symbols): Add visited set.
33235 (chrec_contains_undetermined): Likewise.
33236 (tree_contains_chrecs): Likewise.
33237
33238 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
33239
33240 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
33241
33242 2019-02-01 Jakub Jelinek <jakub@redhat.com>
33243
33244 PR tree-optimization/89143
33245 * wide-int-range.h (wide_int_range_absu): Declare.
33246 * wide-int-range.cc (wide_int_range_absu): New function.
33247 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
33248
33249 PR tree-optimization/88107
33250 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
33251 instead of assertion that eh_region_outermost is non-NULL, if it
33252 is NULL, set *ALL to true and return NULL.
33253 (move_sese_region_to_fn): Adjust caller, if all is set, call
33254 duplicate_eh_regions with NULL region.
33255
33256 2019-02-01 Richard Biener <rguenth@suse.de>
33257
33258 PR rtl-optimization/88593
33259 * mode-switching.c (optimize_mode_switching): Free dominators before
33260 calling cleanup_cfg.
33261
33262 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
33263
33264 PR tree-optimization/88932
33265 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
33266
33267 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33268
33269 PR middle-end/89137
33270 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
33271 bogus clang warning.
33272
33273 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
33274
33275 PR target/89071
33276 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
33277 alternative to avoid partial SSE register stall for TARGET_AVX.
33278 (truncdfsf2): Ditto.
33279 (sse4_1_round<mode>2): Ditto.
33280
33281 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
33282
33283 PR tree-optimization/89008
33284 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
33285 process anything of the form X * 0.
33286
33287 2019-01-31 Richard Biener <rguenther@suse.de>
33288
33289 PR tree-optimization/89135
33290 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
33291 with abnormal preds.
33292
33293 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33294
33295 PR sanitizer/89124
33296 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
33297 always_inline callees into no_sanitize_address callers.
33298
33299 2019-01-31 Richard Biener <rguenther@suse.de>
33300
33301 PR rtl-optimization/89115
33302 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
33303
33304 2019-01-30 Martin Sebor <msebor@redhat.com>
33305
33306 PR other/89106
33307 * doc/extend.texi (cast to a union): Correct and expand.
33308
33309 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
33310
33311 PR rtl-optimization/87246
33312 * lra-constraints.c (simplify_operand_subreg): Reload memory
33313 in subreg if the address became invalid.
33314
33315 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
33316
33317 PR target/87064
33318 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
33319 Disable for little-endian.
33320
33321 2019-01-30 Richard Biener <rguenther@suse.de>
33322
33323 PR rtl-optimization/89115
33324 * opts.c (default_options_optimization): Reduce
33325 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
33326 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
33327 to the default.
33328
33329 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
33330
33331 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
33332 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
33333 type of vector element when vec_extract is implemented by direct
33334 move.
33335
33336 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
33337
33338 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
33339
33340 2019-01-30 Richard Biener <rguenther@suse.de>
33341
33342 PR tree-optimization/89111
33343 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
33344 canonicalization to appropriately sized access types.
33345
33346 2019-01-30 Jakub Jelinek <jakub@redhat.com>
33347
33348 PR c++/89105
33349 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
33350 for arguments to functions that are TU-local and shouldn't be
33351 referenced by assembly.
33352
33353 2019-01-30 Ulrich Drepper <drepper@redhat.com>
33354
33355 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
33356 after '='.
33357
33358 2019-01-29 Martin Sebor <msebor@redhat.com>
33359
33360 PR c/88956
33361 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
33362
33363 2019-01-29 Jakub Jelinek <jakub@redhat.com>
33364
33365 PR c++/66676
33366 PR ipa/89104
33367 * omp-simd-clone.c (simd_clone_clauses_extract)
33368 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
33369 OMP_CLAUSE_ALIGNED_ALIGNMENT.
33370
33371 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
33372
33373 * config.gcc: Force .init_array for ARC.
33374
33375 2019-01-29 Richard Biener <rguenther@suse.de>
33376
33377 PR debug/87295
33378 * dwarf2out.c (collect_skeleton_dies): New helper.
33379 (copy_decls_for_unworthy_types): Call it.
33380 (build_abbrev_table): Assert we do not try to replace
33381 DW_AT_signature refs with local refs.
33382
33383 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33384
33385 PR middle-end/89002
33386 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33387 for lastprivate/linear IV, push gimplify context around gimplify_assign
33388 and, if it needed any temporaries, pop it into a gimple bind around the
33389 sequence.
33390
33391 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33392
33393 * common.opt (-Wattribute-alias): Remove "no-" from name.
33394 Make -Wattribute-alias command line option and
33395 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33396
33397 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33398
33399 PR target/89073
33400 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33401 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33402 x86 ISA options.
33403 (bmi2): Add missing @opindex.
33404 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33405 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
33406 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33407 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33408 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33409 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33410 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33411 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33412 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33413 xsavec, xsaveopt and xsaves options.
33414
33415 2019-01-28 Richard Biener <rguenther@suse.de>
33416
33417 PR debug/89076
33418 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33419 support removal.
33420
33421 2019-01-28 Richard Biener <rguenther@suse.de>
33422
33423 PR tree-optimization/88739
33424 * tree-cfg.c (verify_types_in_gimple_reference): Verify
33425 BIT_FIELD_REFs only are applied to mode-precision operands
33426 when they are integral.
33427 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33428 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33429 BIT_FIELD_REFs of non-mode-precision integral operands.
33430
33431 2019-01-27 Jakub Jelinek <jakub@redhat.com>
33432
33433 PR target/87214
33434 * config/i386/sse.md
33435 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33436 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33437 first constants in pairs are multiples of 2. Formatting fixes.
33438 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33439 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33440 first constants in each quadruple are multiples of 4. Formatting fixes.
33441
33442 2019-01-26 Martin Jambor <mjambor@suse.cz>
33443
33444 PR ipa/88933
33445 * tree-inline.c: Include tree-cfgcleanup.h.
33446 (delete_unreachable_blocks_update_callgraph): Move...
33447 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33448 ...here, make externally visible, make second argument bool, adjust
33449 all callers.
33450 * tree-cfgcleanup.c: Include cgraph.h.
33451 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33452 Declare.
33453 * ipa-prop.c: Include tree-cfgcleanup.h.
33454 (ipcp_transform_function): Call
33455 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33456
33457 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33458
33459 PR rtl-optimization/88846
33460 * ira.c (process_set_for_memref_referenced_p): New.
33461 (memref_referenced_p): Add new param. Use
33462 process_set_for_memref_referenced_p. Add new switch cases.
33463 (memref_used_between_p): Pass new arg to memref_referenced_p.
33464
33465 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33466
33467 PR target/88469
33468 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33469 argument ABI_BREAK. Set to true if the calculated alignment has
33470 changed in gcc-9. Check bit-fields for their base type alignment.
33471 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33472 (aarch64_function_arg_boundary): Likewise.
33473 (aarch64_gimplify_va_arg_expr): Likewise.
33474
33475 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33476
33477 PR middle-end/89037
33478 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33479 instead of accessing TREE_INT_CST_ELT directly.
33480
33481 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33482
33483 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33484 fenv_exceptions description.
33485
33486 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33487
33488 PR rtl-optimization/87763
33489 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33490 Allow SUBREG when matching CC_NZmode compare.
33491
33492 2019-01-25 Richard Biener <rguenther@suse.de>
33493
33494 PR tree-optimization/89049
33495 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33496 Look at the pattern stmt to determine if the stmt is vectorized.
33497
33498 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33499
33500 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33501 (pred_mov<mode>): Handle all-register forms using both a new
33502 alternative and a split.
33503
33504 2019-01-25 Richard Biener <rguenther@suse.de>
33505
33506 PR tree-optimization/86865
33507 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33508 Reject non-do-while loops.
33509
33510 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33511
33512 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33513 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33514 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33515 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33516 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33517 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33518 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33519 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33520 vlogical_operand, gpc_reg_operand, int_reg_operand,
33521 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33522 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33523 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33524 (save_world_operation, restore_world_operation, lmw_operation,
33525 stmw_operation): Use MEM_P and REG_P.
33526 (tie_operand): Use MEM_P.
33527 (vrsave_operation, crsave_operation): Use REG_P.
33528 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33529 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33530 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33531 (call_operand): Use HARD_REGISTER_P.
33532 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33533 Use CONST_INT_P.
33534 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33535 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33536 quad_aligned_load_p, replace_swapped_aligned_store,
33537 recombine_lvx_pattern, replace_swapped_aligned_load,
33538 recombine_stvx_pattern): Use MEM_P.
33539 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33540 Use MEM_P and SYMBOL_REF_P.
33541 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33542 (insn_is_swappable_p): Use REG_P and MEM_P.
33543 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33544 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33545 Use CONST_INT_P.
33546 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33547 Use CONST_DOUBLE_P.
33548 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33549 CONST_WIDE_INT_P.
33550 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33551 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33552 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33553 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33554 reg_or_subregno:
33555 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33556 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33557 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33558 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33559 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33560 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33561 rs6000_split_logical_di): Use CONST_INT_P.
33562 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33563 REG_P and SYMBOL_REF_P.
33564 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33565 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33566 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33567 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33568 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33569 (small_data_operand, print_operand_address): Use CONST_INT_P and
33570 SYMBOL_REF_P.
33571 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33572 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33573 Use HARD_REGISTER_NUM_P.
33574 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33575 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33576 SUBREG_P and SYMBOL_REF_P.
33577 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33578 and HARD_REGISTER_NUM_P.
33579 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33580 reg_or_subregno.
33581 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33582 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33583 MEM_P and REG_P.
33584 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33585 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33586 find_addr_reg): Use REG_P.
33587 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33588 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33589 (offsettable_ok_by_alignment, constant_pool_expr_p,
33590 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33591 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33592 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33593 rs6000_assemble_integer, create_TOC_reference,
33594 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33595 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33596 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33597 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33598 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33599 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33600 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33601 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33602 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33603 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33604 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33605 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33606 and cbranch<mode>4): Use CONST_INT_P.
33607 (multiple define_splits): Use REG_P and SUBREG_P.
33608 (define_expands call, call_value): Use MEM_P.
33609 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33610 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33611 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33612 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33613 and HARD_REGISTER_NUM_P.
33614 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33615
33616 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33617
33618 PR rtl-optimization/88948
33619 * rtl.h (prepare_copy_insn): New prototype.
33620 * gcse.c (prepare_copy_insn): New function, split out from
33621 process_insert_insn.
33622 (process_insert_insn): Use prepare_copy_insn.
33623 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33624 instead of gen_move_insn.
33625
33626 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33627
33628 PR debug/89006
33629 * config/i386/i386.c (ix86_pic_register_p): Return true for
33630 UNSPEC_SET_GOT too.
33631
33632 PR tree-optimization/88964
33633 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33634 punt if HONOR_SNANS (chrec).
33635
33636 PR middle-end/89015
33637 * tree-nested.c (convert_nonlocal_reference_stmt,
33638 convert_local_reference_stmt, convert_tramp_reference_stmt,
33639 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33640 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33641 or GIMPLE_OMP_TASK.
33642
33643 PR tree-optimization/89027
33644 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33645 for "omp simd array" variables.
33646
33647 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33648
33649 PR target/88469
33650 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33651 force the alignment of m_val.
33652
33653 2019-01-24 Richard Biener <rguenther@suse.de>
33654
33655 PR lto/87187
33656 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33657 When in "legacy" debug mode make sure to reset self-origins.
33658
33659 2019-01-24 Martin Liska <mliska@suse.cz>
33660
33661 PR gcov-profile/88994
33662 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33663 result will be always smaller or equal to the original.
33664 * gcov.c (mangle_name): Fix else branch where we should
33665 also copy to PTR and shift the pointer.
33666
33667 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33668
33669 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33670 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33671
33672 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33673
33674 * common/config/i386/i386-common.c
33675 (OPTION_MASK_ISA_ENQCMD_SET,
33676 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33677 (ix86_handle_option): Handle -menqcmd.
33678 * config.gcc (enqcmdintrin.h): New header file.
33679 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33680 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33681 -menqcmd.
33682 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33683 function type.
33684 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33685 __builtin_ia32_enqcmds): New builtins.
33686 * config/i386/i386-c.c (__ENQCMD__): New macro.
33687 * config/i386/i386-option.c (ix86_target_string): Add
33688 -menqcmd.
33689 (ix86_valid_target_attribute_inner_p): Likewise.
33690 * config/i386/i386-expand.c
33691 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33692 IX86_BUILTIN_ENQCMDS.
33693 * config/i386/i386.h (TARGET_ENQCMD): New.
33694 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33695 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33696 (movdir64b_<mode>): Parameterize to enable share expansion code
33697 with ENQCMD in function ix86_expand_builtin.
33698 * config/i386/i386.opt: Add -menqcmd.
33699 * config/i386/immintrin.h: Include enqcmdintrin.h.
33700 * config/i386/enqcmdintrin.h: New intrinsic file.
33701 * doc/invoke.texi: Add -menqcmd.
33702
33703 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33704 Steve Ellcey <sellcey@marvell.com>
33705
33706 PR target/85711
33707 * recog.c (address_operand): Return false on wrong mode for address.
33708 (constrain_operands): Check for mode with 'p' constraint.
33709
33710 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33711
33712 PR target/88998
33713 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33714 Disparage MMX alternative.
33715 (sse2_cvtpd2pi): Ditto.
33716 (sse2_cvttpd2pi): Ditto.
33717
33718 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33719
33720 PR driver/89014
33721 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33722 use-after-free of the result of
33723 aarch64_get_extension_string_for_isa_flags.
33724
33725 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33726
33727 PR c/44715
33728 * doc/extend.texi: Document break and continue behavior in
33729 statement expressions.
33730
33731 2019-01-23 Richard Biener <rguenther@suse.de>
33732
33733 PR tree-optimization/89008
33734 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33735 not leave another stray operand.
33736
33737 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33738
33739 * BASE-VER: Bump to 9.0.1.
33740
33741 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33742
33743 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33744 thunk that returns by reference, use the type of the return object
33745 of the thunk instead of that of the alias to build the dereference.
33746
33747 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33748
33749 * config/arc/atomic.md: Add operand to DMB instruction.
33750
33751 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33752
33753 PR tree-optimization/88964
33754 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33755 build_zero_cst instead of build_int_cst. Return false for loop
33756 invariants which honor signed zeros.
33757
33758 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33759
33760 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33761
33762 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33763
33764 PR target/88965
33765 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33766 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33767 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33768
33769 PR middle-end/88968
33770 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33771 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33772
33773 PR target/87064
33774 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33775 Disable for little endian.
33776
33777 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33778
33779 PR target/88469
33780 * config/arm/arm.c (arm_needs_double_word_align): Check
33781 DECL_BIT_FIELD_TYPE.
33782
33783 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33784 H.J. Lu <hongjiu.lu@intel.com>
33785
33786 PR target/88909
33787 * config/i386/i386-builtin.def: Add mask2 to all builtin
33788 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33789 SPECIAL_ARGS.
33790 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33791 (BDESC_FIRST): Likewise.
33792 (define_builtin): Add an argument for mask2. Updated to handle
33793 both ix86_isa_flags and ix86_isa_flags2.
33794 (define_builtin_const): Likewise.
33795 (define_builtin_pure): Likewise.
33796 (define_builtin2): Deleted.
33797 (define_builtin_const2): Likewise.
33798 (builtin_description): Add a member, mask2.
33799 (bdesc_*): Add mask2 to builtin initializations.
33800 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33801 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33802 support.
33803 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33804
33805 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33806
33807 PR target/88954
33808 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33809 noplt attribute.
33810
33811 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33812
33813 PR target/88469
33814 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33815 alignment is dominated by a bitfield with 64-bit aligned base type.
33816 (arm_function_arg): Emit a warning if the alignment has changed since
33817 earlier GCC releases.
33818 (arm_function_arg_boundary): Likewise.
33819 (arm_setup_incoming_varargs): Likewise.
33820
33821 2019-01-22 Richard Biener <rguenther@suse.de>
33822
33823 PR tree-optimization/88862
33824 * graphite-scop-detection.c
33825 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33826
33827 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33828
33829 * doc/extend.tex (AMD GCN Function Attributes): New section.
33830 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33831 * doc/invoke.texi (AMD GCN Options): New section.
33832 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33833
33834 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33835
33836 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33837 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33838
33839 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33840
33841 PR tree-optimization/88044
33842 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33843 is false in the first iteration, but !every_iteration, return false
33844 instead of true with niter->niter zero.
33845
33846 PR rtl-optimization/88904
33847 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33848 any nonequal registers before processing BB_END (b).
33849
33850 PR target/88905
33851 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33852 GET_MODE (op0).
33853 (expand_binop_directly, expand_doubleword_clz,
33854 expand_doubleword_popcount, expand_ctz, expand_ffs,
33855 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33856
33857 PR rtl-optimization/49429
33858 PR target/49454
33859 PR rtl-optimization/86334
33860 PR target/88906
33861 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33862 addressable from here...
33863 (emit_block_op_via_libcall): ... to here.
33864
33865 2019-01-22 Richard Biener <rguenther@suse.de>
33866
33867 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33868 auto_vec for cost vector to fix memleak.
33869 (vectorize_fold_left_reduction): Properly gather SLP defs.
33870 (vectorizable_comparison): Do not swap operands to properly
33871 gather SLP defs.
33872
33873 2019-01-22 Alan Modra <amodra@gmail.com>
33874
33875 PR target/88614
33876 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33877 stays a reg. Allow a const_int.
33878 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33879 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33880 (IS_NOMARK_TLSGETADDR): Define.
33881 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33882 (rs6000_output_tlsargs): New function.
33883 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33884 __tls_get_addr call takes an arg.
33885 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33886 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33887 delete split..
33888 (call_value_nonlocal_sysv): ..or here, delete split.
33889 (tls_gdld_nomark): Delete.
33890 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33891 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33892 (call_value_nonlocal_sysv): Likewise.
33893 (call_value_nonlocal_sysv_secure): Likewise.
33894 (call_value_nonlocal_aix): Likewise.
33895 (call_value_indirect_aix): Likewise.
33896 (call_value_indirect_elfv2): Likewise.
33897 (call_value_local32, call_value_local64): Disable for no-mark tls.
33898 (call_value_local_aix): Likewise.
33899
33900 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33901
33902 PR target/88938
33903 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33904 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33905
33906 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33907
33908 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33909 string contents as hash_map keys.
33910
33911 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33912
33913 PR c/88928
33914 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33915 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33916 instead of TYPE_ALIGN.
33917 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33918 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33919 pointer from TYPE_STUB_DECL.
33920
33921 2019-01-21 Richard Biener <rguenther@suse.de>
33922
33923 PR tree-optimization/88934
33924 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33925 at the possibly non-constant operand.
33926 (vect_get_constant_vectors): Adjust.
33927
33928 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33929
33930 PR target/71659
33931 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33932 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33933 instead of _X86INTRIN_H_INCLUDED.
33934 * onfig/i386/clwbintrin.h: Likewise.
33935 * config/i386/pkuintrin.h: Likewise.
33936 * config/i386/prfchwintrin.h: Likewise.
33937 * config/i386/rdseedintrin.h: Likewise.
33938 * config/i386/wbnoinvdintrin.h: Likewise.
33939 * config/i386/xsavecintrin.h: Likewise.
33940 * config/i386/xsavesintrin.h: Likewise.
33941 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33942 * config/i386/xsaveintrin.h: Likewise.
33943 * config/i386/xsaveoptintrin.h: Likewise.
33944 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33945 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33946 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33947 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33948 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33949 * config/i386/immintrin.h: Here.
33950
33951 2019-01-20 Martin Jambor <mjambor@suse.cz>
33952
33953 PR ipa/87615
33954 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33955 with aa_walk_budget.
33956 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33957 aa_walk_budget_p parameter.
33958 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33959 walk. Updated all callers.
33960 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33961 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33962 unmodified_parm.
33963 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33964 parameter info. Extract info from fbi. Pass fbi to recursive calls
33965 and to unmodified_parm.
33966 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33967 info, updated call to will_be_nonconstant_expr_predicate.
33968 (param_change_prob): New parameter fbi, limit AA walking.
33969 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33970 calls to various above functions.
33971 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33972 parameter. Use it to limit AA walking.
33973 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33974 fbi, limit AA walk.
33975 (detect_type_change): New parameter fbi, pass it on to
33976 detect_type_change_from_memory_writes.
33977 (detect_type_change_ssa): Likewise.
33978 (aa_overwalked): Removed.
33979 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33980 accordingly, adjust to the neew AA limiting scheme.
33981 (parm_ref_data_preserved_p): Likewise.
33982 (ipa_compute_jump_functions_for_edge): Adjust call to
33983 get_dynamic_type.
33984 (ipa_analyze_call_uses): Likewise.
33985 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33986 (ipa_analyze_node): Initialize aa_walk_budget.
33987 (ipcp_transform_function): Likewise.
33988 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33989 to get_dynamic_type.
33990
33991 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33992
33993 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33994 outside of #if CHECKING_P code.
33995
33996 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33997
33998 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33999 New function, split out from...
34000 (loop_versioning::analyze_stride): ...here.
34001 (loop_versioning::find_per_loop_multiplication): Use gassign.
34002 (loop_versioning::analyze_term_using_scevs): Return a success code.
34003 (loop_versioning::analyze_arbitrary_term): New function.
34004 (loop_versioning::analyze_address_fragment): Use
34005 analyze_arbitrary_term if all else fails.
34006
34007 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
34008
34009 PR target/88892
34010 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
34011 operands.
34012
34013 2019-01-18 Richard Biener <rguenther@suse.de>
34014
34015 PR tree-optimization/88903
34016 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
34017 scalar stmts a SLP shift amount is composed of when detecting
34018 shifts by scalars.
34019
34020 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
34021
34022 PR target/88799
34023 * config/arm/arm-cpus.in (mp): New feature.
34024 (sec): New feature.
34025 (fgroup ARMv7ve): Add mp and sec features.
34026 (arch armv7-a): Add options to allow mp and sec extensions.
34027 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
34028 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
34029 extenstions to the base architecture.
34030 (cpu cortex-a8): Add sec extension to the base architecture.
34031 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
34032 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
34033 variants down to the base v7-a varaint.
34034 * config/arm/t-multilib (v7_a_arch_variants): New variable.
34035 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
34036 of permitted extensions for -march=armv7-a and for
34037 -mcpu=generic-armv7-a.
34038
34039 2019-01-18 Martin Liska <mliska@suse.cz>
34040
34041 * params.def: Fix comment.
34042 * tree-profile.c (gimple_init_gcov_profiler): Bump function
34043 name.
34044 (gimple_gen_ic_func_profiler): Likewise.
34045
34046 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34047
34048 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
34049 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
34050 and put in error checks for stack protector guard options.
34051 (aarch64_stack_protect_guard): New.
34052 (TARGET_STACK_PROTECT_GUARD): Define.
34053 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
34054 (reg_stack_protect_address<mode>): New.
34055 (stack_protect_set): Adjust for SSP_GLOBAL.
34056 (stack_protect_test): Likewise.
34057 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
34058 (-mstack-protector-guard): Likewise.
34059 (-mstack-protector-guard-offset): Likewise.
34060
34061 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34062
34063 PR tree-optimization/86214
34064 * tree-inline.h (struct copy_body_data): Add
34065 add_clobbers_to_eh_landing_pads member.
34066 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
34067 (copy_edges_for_bb): Call it if EH edge destination is <
34068 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
34069 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
34070 if flag_stack_reuse != SR_NONE and clear it afterwards.
34071
34072 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
34073
34074 PR target/85596
34075 * doc/install.texi (with-multilib-list): Document for aarch64.
34076
34077 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34078
34079 PR target/88734
34080 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
34081 (("..."))) with ("...").
34082
34083 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
34084
34085 * doc/extend.texi (Built-in Functions for Memory Model Aware
34086 Atomic Operations): Document atomic fetch and nand.
34087
34088 2019-01-18 Martin Liska <mliska@suse.cz>
34089 Richard Biener <rguenther@suse.de>
34090
34091 PR middle-end/88587
34092 * cgraph.h (create_version_clone_with_body): Add new argument
34093 with attributes.
34094 * cgraphclones.c (cgraph_node::create_version_clone): Add
34095 DECL_ATTRIBUTES to a newly created decl. And call
34096 valid_attribute_p so that proper cl_target_optimization_node
34097 is set for the newly created declaration.
34098 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
34099 for declaration.
34100 (expand_target_clones): Do not call valid_attribute_p, it must
34101 be already done.
34102 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
34103 vector types.
34104
34105 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34106
34107 PR target/88734
34108 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
34109 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
34110 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
34111
34112 2019-01-17 Martin Sebor <msebor@redhat.com>
34113
34114 PR middle-end/88273
34115 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
34116 Handle anti-ranges the same as no range at all.
34117
34118 2018-01-17 Steve Ellcey <sellcey@cavium.com>
34119
34120 * config/aarch64/aarch64.c (cgraph.h): New include.
34121 (intl.h): New include.
34122 (supported_simd_type): New function.
34123 (currently_supported_simd_type): Ditto.
34124 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
34125 (aarch64_simd_clone_adjust): Ditto.
34126 (aarch64_simd_clone_usable): Ditto.
34127 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
34128 (TARGET_SIMD_CLONE_ADJUST): Ditto.
34129 (TARGET_SIMD_CLONE_USABLE): Ditto.
34130 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
34131 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
34132 call.
34133
34134 2019-01-17 Martin Sebor <msebor@redhat.com>
34135
34136 PR tree-optimization/88800
34137 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
34138 NO_WARNING bit here. Avoid folding out-of-bounds calls.
34139 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
34140 redundant argument. Add new argument and issue diagnostics under
34141 its control. Detect out-of-bounds access even with warnings
34142 disabled.
34143 (check_bounds_or_overlap): Change return type. Add argument.
34144 (wrestrict_dom_walker::check_call): Adjust.
34145 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
34146 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
34147 check_bounds_or_overlap's return value.
34148 (handle_builtin_stxncpy): Same.
34149 (handle_builtin_strcat): Same.
34150
34151 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34152 Kwok Cheung Yeung <kcy@codesourcery.com>
34153 Julian Brown <julian@codesourcery.com>
34154 Tom de Vries <tom@codesourcery.com>
34155
34156 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
34157
34158 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34159
34160 * doc/sourcebuild.texi: Document dg-require-effective-target
34161 llvm_binutils and offload_gcn.
34162
34163 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34164 Kwok Cheung Yeung <kcy@codesourcery.com>
34165 Julian Brown <julian@codesourcery.com>
34166 Tom de Vries <tom@codesourcery.com>
34167
34168 * doc/sourcebuild.texi: Document dg-required-effective-target
34169 exceptions.
34170
34171 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34172 Kwok Cheung Yeung <kcy@codesourcery.com>
34173 Julian Brown <julian@codesourcery.com>
34174 Tom de Vries <tom@codesourcery.com>
34175 Jan Hubicka <hubicka@ucw.cz>
34176 Martin Jambor <mjambor@suse.cz>
34177
34178 * config.gcc: Add amdgcn*-*-amdhsa configuration.
34179 * configure.ac: Check for dlopen.
34180 * configure: Regenerate.
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 * common/config/gcn/gcn-common.c: New file.
34190 * config/gcn/driver-gcn.c: New file.
34191 * config/gcn/gcn-builtins.def: New file.
34192 * config/gcn/gcn-hsa.h: New file.
34193 * config/gcn/gcn-modes.def: New file.
34194 * config/gcn/gcn-opts.h: New file.
34195 * config/gcn/gcn-passes.def: New file.
34196 * config/gcn/gcn-protos.h: New file.
34197 * config/gcn/gcn-run.c: New file.
34198 * config/gcn/gcn-tree.c: New file.
34199 * config/gcn/gcn.c: New file.
34200 * config/gcn/gcn.h: New file.
34201 * config/gcn/gcn.opt: New file.
34202 * config/gcn/t-gcn-hsa: New file.
34203
34204 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34205 Kwok Cheung Yeung <kcy@codesourcery.com>
34206 Julian Brown <julian@codesourcery.com>
34207 Tom de Vries <tom@codesourcery.com>
34208 Jan Hubicka <hubicka@ucw.cz>
34209 Martin Jambor <mjambor@suse.cz>
34210
34211 * config/gcn/constraints.md: New file.
34212 * config/gcn/gcn-valu.md: New file.
34213 * config/gcn/gcn.md: New file.
34214 * config/gcn/predicates.md: New file.
34215
34216 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
34217
34218 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
34219 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
34220 (stmt_uses_0_or_null_in_undefined_way): Likewise.
34221 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
34222
34223 2019-01-17 Tamar Christina <tamar.christina@arm.com>
34224
34225 PR target/88851
34226 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
34227 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
34228 it and document registers.
34229
34230 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34231
34232 * config/aarch64/aarch64.c (ares_tunings): Define.
34233 * config/aarch64/aarch64-cores.def (ares): Use the above.
34234
34235 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34236
34237 PR target/88794
34238 Revert:
34239 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
34240
34241 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
34242 (_mm512_fixupimm_round_pd): Update parameters and builtin.
34243 (_mm512_maskz_fixupimm_round_pd): Ditto.
34244 (_mm512_fixupimm_round_ps): Ditto.
34245 (_mm512_maskz_fixupimm_round_ps): Ditto.
34246 (_mm_fixupimm_round_sd): Ditto.
34247 (_mm_maskz_fixupimm_round_sd): Ditto.
34248 (_mm_fixupimm_round_ss): Ditto.
34249 (_mm_maskz_fixupimm_round_ss): Ditto.
34250 (_mm512_fixupimm_pd): Ditto.
34251 (_mm512_maskz_fixupimm_pd): Ditto.
34252 (_mm512_fixupimm_ps): Ditto.
34253 (_mm512_maskz_fixupimm_ps): Ditto.
34254 (_mm_fixupimm_sd): Ditto.
34255 (_mm_maskz_fixupimm_sd): Ditto.
34256 (_mm_fixupimm_ss): Ditto.
34257 (_mm_maskz_fixupimm_ss): Ditto.
34258 (_mm512_mask_fixupimm_round_pd): Update builtin.
34259 (_mm512_mask_fixupimm_round_ps): Ditto.
34260 (_mm_mask_fixupimm_round_sd): Ditto.
34261 (_mm_mask_fixupimm_round_ss): Ditto.
34262 (_mm512_mask_fixupimm_pd): Ditto.
34263 (_mm512_mask_fixupimm_ps): Ditto.
34264 (_mm_mask_fixupimm_sd): Ditto.
34265 (_mm_mask_fixupimm_ss): Ditto.
34266 * config/i386/avx512vlintrin.h:
34267 (_mm256_fixupimm_pd): Update parameters and builtin.
34268 (_mm256_maskz_fixupimm_pd): Ditto.
34269 (_mm256_fixupimm_ps): Ditto.
34270 (_mm256_maskz_fixupimm_ps): Ditto.
34271 (_mm_fixupimm_pd): Ditto.
34272 (_mm_maskz_fixupimm_pd): Ditto.
34273 (_mm_fixupimm_ps): Ditto.
34274 (_mm_maskz_fixupimm_ps): Ditto.
34275 (_mm256_mask_fixupimm_pd): Update builtin.
34276 (_mm256_mask_fixupimm_ps): Ditto.
34277 (_mm_mask_fixupimm_pd): Ditto.
34278 (_mm_mask_fixupimm_ps): Ditto.
34279 * config/i386/i386-builtin-types.def: Add new types and remove
34280 useless ones.
34281 * config/i386/i386-builtin.def: Update builtin definitions.
34282 * config/i386/i386.c: Handle new builtin types and remove useless ones.
34283 * config/i386/sse.md: Update VFIXUPIMM* patterns.
34284 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34285 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34286 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
34287 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34288 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34289 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
34290 * config/i386/subst.md:
34291 (round_saeonly_sd_mask_operand4): Add new subst_attr.
34292 (round_saeonly_sd_mask_op4): Ditto.
34293 (round_saeonly_expand_operand5): Ditto.
34294 (round_saeonly_expand): Update.
34295
34296 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34297
34298 PR target/88794
34299 Revert:
34300 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
34301
34302 * config/i386/sse.md: Combine VFIXUPIMM* patterns
34303 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34304 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34305 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
34306 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34307 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34308 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
34309
34310 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34311
34312 PR target/88794
34313 Revert:
34314 2018-12-15 Jakub Jelinek <jakub@redhat.com>
34315
34316 PR target/88489
34317 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
34318 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
34319 instead of UNSPEC_FIXUPIMM.
34320
34321 2019-01-17 Richard Biener <rguenther@suse.de>
34322
34323 PR lto/86736
34324 * dwarf2out.c (want_pubnames): Never generate pubnames sections
34325 and friends for the LTO part of debug info.
34326
34327 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34328
34329 PR tree-optimization/86214
34330 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
34331 if x == y.
34332
34333 PR rtl-optimization/88870
34334 * dce.c (deletable_insn_p): Never delete const/pure calls that can
34335 throw if we can't alter the cfg or delete dead exceptions.
34336 (mark_insn): Don't call find_call_stack_args for such calls.
34337
34338 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
34339
34340 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
34341 prototypes for vec_st.
34342 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
34343 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
34344 mainly on signed/unsigned long long and double.
34345
34346 2019-01-16 David Malcolm <dmalcolm@redhat.com>
34347
34348 PR target/88861
34349 * combine.c (delete_noop_moves): Convert to "bool" return,
34350 returning true if any edges are eliminated.
34351 (combine_instructions): Also return true if delete_noop_moves
34352 returns true.
34353
34354 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34355
34356 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
34357 correct max nunits for endian swap.
34358 (aarch64_expand_fcmla_builtin): Correct subreg code.
34359 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34360 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
34361 lane endianness.
34362
34363 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
34364
34365 * config/alpha/alpha.c (alpha_gimplify_va_arg):
34366 Handle split indirect COMPLEX_TYPE arguments.
34367
34368 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
34369
34370 PR target/86891
34371 * config/aarch64/aarch64-modes.def: Add comment about how the carry
34372 bit is set by add and compare.
34373 (CC_ADC): New CC_MODE.
34374 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34375 to cache the code and mode of X. Adjust the shape of a CC_Cmode
34376 comparison. Add detection for CC_ADCmode.
34377 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
34378 CC_ADCmode.
34379 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34380 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34381 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
34382 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
34383 to eliminate the need for zero-extending the operands.
34384 (add<mode>3_compareC_imm): Delete. Merge into ...
34385 (add<mode>3_compareC): ... this. Restructure the comparison to
34386 eliminate the need for zero-extending the operands.
34387 (add<mode>3_carryin): Use LTU for the overflow detection.
34388 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34389 Reexpress comparison for overflow.
34390 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34391 (add<mode>3_carryinC): Likewise.
34392 (add<mode>3_carryinV): Use LTU for carry between partials.
34393 * config/aarch64/predicates.md (aarch64_carry_operation): Update
34394 handling of CC_Cmode and add CC_ADCmode.
34395 (aarch64_borrow_operation): Likewise.
34396
34397 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34398
34399 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34400 Remove patternmode.
34401 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34402 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34403 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34404 Remove endianness conversion.
34405
34406 2019-01-16 Martin Liska <mliska@suse.cz>
34407
34408 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34409 for GCC driver.
34410 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34411 a new argument.
34412 * gcc.c (add_sysrooted_hdrs_prefix): New function.
34413 (path_prefix_reset): Move up in the source file.
34414 (find_fortran_preinclude_file): Make complex search for the
34415 fortran header files.
34416
34417 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
34418
34419 * godump.c (go_output_typedef): When outputting a typedef, refer
34420 to the underlying type by its name and not its structure.
34421
34422 2019-01-15 David Malcolm <dmalcolm@redhat.com>
34423
34424 PR c++/88795
34425 * tree.c (build_function_type): Assert that arg_types is not
34426 error_mark_node.
34427
34428 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
34429
34430 PR inline-asm/52813
34431 * doc/extend.texi: Document that listing the stack pointer in the
34432 clobber list of an asm is a deprecated feature.
34433 * common.opt (Wdeprecated): Moved from c-family/c.opt.
34434 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34435 warning instead of an error for clobbers of the stack pointer.
34436 Add a note explaining why.
34437
34438 2019-01-15 Richard Biener <rguenther@suse.de>
34439
34440 PR debug/88046
34441 * dwarf2out.c (gen_member_die): Do not generate inheritance
34442 DIEs late.
34443
34444 2019-01-15 Richard Biener <rguenther@suse.de>
34445
34446 PR tree-optimization/88855
34447 * tree-if-conv.c (combine_blocks): Collect
34448 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34449
34450 2019-01-15 Tom de Vries <tdevries@suse.de>
34451
34452 PR target/80547
34453 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34454 lhs == NULL_TREE for gang-level reduction.
34455
34456 2019-01-15 Richard Biener <rguenther@suse.de>
34457 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34458
34459 PR ipa/88788
34460 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34461 return true if SSA_NAME is already marked in visited bitmap.
34462 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34463
34464 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34465
34466 PR tree-optimization/88775
34467 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34468 equal == 0 equality pointer comparisons some more if compared in
34469 integral types and either one points to an automatic var and the
34470 other to a global, or we can prove at least one points to the middle
34471 or both point to start or both point to end.
34472
34473 2019-01-14 Andi Kleen <ak@linux.intel.com>
34474
34475 * Makefile.in: Lower autofdo sampling rate by 10x.
34476 * Makefile.tpl: Dito.
34477
34478 2019-01-14 Tom Honermann <tom@honermann.net>
34479
34480 * defaults.h: Define CHAR8_TYPE.
34481
34482 2019-01-14 Martin Sebor <msebor@redhat.com>
34483
34484 PR target/88638
34485 * doc/extend.texi (Darwin Format Checks): Clarify.
34486
34487 2019-01-14 Richard Biener <rguenther@suse.de>
34488
34489 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34490 whether we are in (simplify ...) or (match ...) context.
34491
34492 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34493
34494 PR rtl-optimization/88796
34495 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34496 * cfgexpand.c (stack_protect_prologue): Initialize
34497 crtl->stack_protect_guard_decl.
34498 * function.c (stack_protect_epilogue): Use it instead of calling
34499 targetm.stack_protect_guard again.
34500 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34501 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34502 crtl->stack_protect_guard_decl.
34503 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34504 on the returned MEM_EXPR.
34505
34506 2019-01-12 Tom de Vries <tdevries@suse.de>
34507
34508 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34509 vector length using -fopenacc-dim.
34510
34511 2019-01-12 Tom de Vries <tdevries@suse.de>
34512
34513 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34514 lengths into account.
34515
34516 2019-01-12 Svante Signell <svante.signell@gmail.com>
34517
34518 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34519 (TARGET_CAN_SPLIT_STACK): Define.
34520 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34521
34522 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34523
34524 * params.def (inline-unit-growth): Set to 40.
34525
34526 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34527
34528 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34529
34530 2019-01-12 Tom de Vries <tdevries@suse.de>
34531
34532 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34533 region calling vector-partitionable routine, set default_vector_length
34534 to WARP_SIZE.
34535
34536 2019-01-12 Tom de Vries <tdevries@suse.de>
34537
34538 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34539 variable default_vector_length.
34540
34541 2019-01-12 Tom de Vries <tdevries@suse.de>
34542
34543 PR middle-end/88703
34544 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34545 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34546 dimensions limits.
34547
34548 2019-01-12 Tom de Vries <tdevries@suse.de>
34549
34550 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34551 (nvptx_goacc_validate_dims): Add used parameter.
34552 * doc/tm.texi: Regenerate.
34553 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34554 argument to call to targetm.goacc.validate_dims.
34555 (default_goacc_validate_dims): Add used
34556 parameter.
34557 * target.def (validate_dims): Add used parameter in DEFHOOK.
34558 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34559
34560 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34561
34562 PR middle-end/85956
34563 PR lto/88733
34564 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34565 field.
34566 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34567 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34568 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34569 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34570
34571 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34572
34573 PR rtl-optimization/87305
34574 * lra-assigns.c
34575 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34576 for little endian pseudos used as paradoxical subreg.
34577
34578 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34579
34580 PR tree-optimization/88693
34581 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34582 for STRING_CSTs that don't contain any NUL characters in the first
34583 TREE_STRING_LENGTH bytes.
34584
34585 2019-01-11 Alan Modra <amodra@gmail.com>
34586
34587 PR 88777
34588 PR 88614
34589 * genattrtab.c (min_fn): Don't translate values.
34590 (min_attr_value): Return INT_MAX when the value can't be calculated.
34591 Return minimum among any values that can be calculated.
34592 (max_attr_value): Adjust.
34593
34594 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34595
34596 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34597
34598 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34599
34600 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34601 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34602 (aarch64_return_call_with_max_clobbers): New function.
34603 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34604 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34605 argument.
34606 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34607 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34608 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34609 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34610 * cselib.c (cselib_process_insn): Add argument to
34611 targetm.hard_regno_call_part_clobbered call.
34612 * ira-conflicts.c (ira_build_conflicts): Ditto.
34613 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34614 * lra-constraints.c (inherit_reload_reg): Ditto.
34615 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34616 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34617 argument. Call targetm.return_call_with_max_clobbers.
34618 Add argument to targetm.hard_regno_call_part_clobbered call.
34619 (calls_have_same_clobbers_p): New function.
34620 (process_bb_lives): Add call_insn and last_call_insn variables.
34621 Pass call_insn to check_pseudos_live_through_calls.
34622 Modify if stmt to check targetm.return_call_with_max_clobbers.
34623 Update setting of flush variable.
34624 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34625 to false.
34626 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34627 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34628 targetm.hard_regno_call_part_clobbered call.
34629 * reginfo.c (choose_hard_reg_mode): Ditto.
34630 * regrename.c (check_new_reg_p): Ditto.
34631 * reload.c (find_equiv_reg): Ditto.
34632 * reload1.c (emit_reload_insns): Ditto.
34633 * sched-deps.c (deps_analyze_insn): Ditto.
34634 * sel-sched.c (init_regs_for_mode): Ditto.
34635 (mark_unavailable_hard_regs): Ditto.
34636 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34637 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34638 (return_call_with_max_clobbers): New target function.
34639 * doc/tm.texi: Regenerate.
34640 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34641 * hooks.c (hook_bool_uint_mode_false): Change to
34642 hook_bool_insn_uint_mode_false.
34643 * hooks.h (hook_bool_uint_mode_false): Ditto.
34644
34645 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34646
34647 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34648 (aarch64_remove_extra_call_preserved_regs): New function.
34649 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34650 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34651 * doc/tm.texi: Regenerate.
34652 * final.c (get_call_reg_set_usage): Call new hook.
34653 * target.def (remove_extra_call_preserved_regs): New hook.
34654 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34655 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34656
34657 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34658
34659 PR bootstrap/88714
34660 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34661 inside of pass_combine_1 dump rather than pass_profile_1.
34662
34663 2019-01-11 Tom de Vries <tdevries@suse.de>
34664
34665 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34666 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34667 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34668 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34669 num_workers 16.
34670
34671 2019-01-11 Tom de Vries <tdevries@suse.de>
34672
34673 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34674
34675 2019-01-11 Jan Beulich <jbeulich@suse.com>
34676
34677 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34678 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34679 sse2_cvtsi2sd): Add {l}.
34680 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34681 syntax.
34682
34683 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34684
34685 PR target/88785
34686 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34687 define_expand.
34688 (*float<floatunssuffix>v2div2sf2): New define_insn.
34689 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34690 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34691 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34692 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34693 match_operands with "const0_operand" "C".
34694
34695 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34696
34697 * config/aarch64/aarch64-builtins.c
34698 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34699 (aarch64_init_simd_builtins): ...Here
34700
34701 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34702
34703 PR rtl-optimization/87305
34704 * lra-assigns.c
34705 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34706 allocation for big endian pseudos used as paradoxical subregs and
34707 spill them if it is wrong.
34708 * lra-constraints.c (lra_constraints): Add a comment.
34709
34710 2019-01-10 Richard Biener <rguenther@suse.de>
34711
34712 PR tree-optimization/88792
34713 * tree-ssa-pre.c (get_representative_for): Do not return a
34714 value-number here.
34715
34716 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34717
34718 PR middle-end/84877
34719 PR bootstrap/88450
34720 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34721 (assign_parm_setup_block): Do the argument slot realignment here
34722 instead.
34723
34724 2019-01-10 Stefan Agner <stefan@agner.ch>
34725
34726 PR target/88648
34727 * config/arm/arm.c (arm_option_override_internal): Force
34728 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34729
34730 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34731
34732 PR c/88568
34733 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34734 DECL_EXTERNAL.
34735
34736 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34737
34738 * config/arm/arm-builtins.c
34739 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34740 (MAC_LANE_PAIR_QUALIFIERS): New.
34741 (arm_expand_builtin_args): Use it.
34742 (arm_expand_builtin_1): Likewise.
34743 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34744 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34745 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34746 * config/arm/arm_neon.h:
34747 (vcadd_rot90_f16): New.
34748 (vcaddq_rot90_f16): New.
34749 (vcadd_rot270_f16): New.
34750 (vcaddq_rot270_f16): New.
34751 (vcmla_f16): New.
34752 (vcmlaq_f16): New.
34753 (vcmla_lane_f16): New.
34754 (vcmla_laneq_f16): New.
34755 (vcmlaq_lane_f16): New.
34756 (vcmlaq_laneq_f16): New.
34757 (vcmla_rot90_f16): New.
34758 (vcmlaq_rot90_f16): New.
34759 (vcmla_rot90_lane_f16): New.
34760 (vcmla_rot90_laneq_f16): New.
34761 (vcmlaq_rot90_lane_f16): New.
34762 (vcmlaq_rot90_laneq_f16): New.
34763 (vcmla_rot180_f16): New.
34764 (vcmlaq_rot180_f16): New.
34765 (vcmla_rot180_lane_f16): New.
34766 (vcmla_rot180_laneq_f16): New.
34767 (vcmlaq_rot180_lane_f16): New.
34768 (vcmlaq_rot180_laneq_f16): New.
34769 (vcmla_rot270_f16): New.
34770 (vcmlaq_rot270_f16): New.
34771 (vcmla_rot270_lane_f16): New.
34772 (vcmla_rot270_laneq_f16): New.
34773 (vcmlaq_rot270_lane_f16): New.
34774 (vcmlaq_rot270_laneq_f16): New.
34775 (vcadd_rot90_f32): New.
34776 (vcaddq_rot90_f32): New.
34777 (vcadd_rot270_f32): New.
34778 (vcaddq_rot270_f32): New.
34779 (vcmla_f32): New.
34780 (vcmlaq_f32): New.
34781 (vcmla_lane_f32): New.
34782 (vcmla_laneq_f32): New.
34783 (vcmlaq_lane_f32): New.
34784 (vcmlaq_laneq_f32): New.
34785 (vcmla_rot90_f32): New.
34786 (vcmlaq_rot90_f32): New.
34787 (vcmla_rot90_lane_f32): New.
34788 (vcmla_rot90_laneq_f32): New.
34789 (vcmlaq_rot90_lane_f32): New.
34790 (vcmlaq_rot90_laneq_f32): New.
34791 (vcmla_rot180_f32): New.
34792 (vcmlaq_rot180_f32): New.
34793 (vcmla_rot180_lane_f32): New.
34794 (vcmla_rot180_laneq_f32): New.
34795 (vcmlaq_rot180_lane_f32): New.
34796 (vcmlaq_rot180_laneq_f32): New.
34797 (vcmla_rot270_f32): New.
34798 (vcmlaq_rot270_f32): New.
34799 (vcmla_rot270_lane_f32): New.
34800 (vcmla_rot270_laneq_f32): New.
34801 (vcmlaq_rot270_lane_f32): New.
34802 (vcmlaq_rot270_laneq_f32): New.
34803 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34804 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34805 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34806 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34807 vcmlaq_lane270): New.
34808 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34809 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34810 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34811 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34812 (arm_option_reconfigure_globals): Use them.
34813 * config/arm/iterators.md (VDF, VQ_HSF): New.
34814 (VCADD, VCMLA): New.
34815 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34816 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34817 New.
34818 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34819 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34820
34821 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34822
34823 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34824 Add qualifier_lane_pair_index.
34825 (emit-rtl.h): Include.
34826 (TYPES_QUADOP_LANE_PAIR): New.
34827 (aarch64_simd_expand_args): Use it.
34828 (aarch64_simd_expand_builtin): Likewise.
34829 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34830 New.
34831 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34832 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34833 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34834 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34835 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34836 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34837 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34838 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34839 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34840 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34841 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34842 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34843 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34844 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34845 Add __ARM_FEATURE_COMPLEX.
34846 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34847 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34848 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34849 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34850 fcmlaq_lane270): New.
34851 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34852 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34853 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34854 * config/aarch64/arm_neon.h:
34855 (vcadd_rot90_f16): New.
34856 (vcaddq_rot90_f16): New.
34857 (vcadd_rot270_f16): New.
34858 (vcaddq_rot270_f16): New.
34859 (vcmla_f16): New.
34860 (vcmlaq_f16): New.
34861 (vcmla_lane_f16): New.
34862 (vcmla_laneq_f16): New.
34863 (vcmlaq_lane_f16): New.
34864 (vcmlaq_rot90_lane_f16): New.
34865 (vcmla_rot90_laneq_f16): New.
34866 (vcmla_rot90_lane_f16): New.
34867 (vcmlaq_rot90_f16): New.
34868 (vcmla_rot90_f16): New.
34869 (vcmlaq_laneq_f16): New.
34870 (vcmla_rot180_laneq_f16): New.
34871 (vcmla_rot180_lane_f16): New.
34872 (vcmlaq_rot180_f16): New.
34873 (vcmla_rot180_f16): New.
34874 (vcmlaq_rot90_laneq_f16): New.
34875 (vcmlaq_rot270_laneq_f16): New.
34876 (vcmlaq_rot270_lane_f16): New.
34877 (vcmla_rot270_laneq_f16): New.
34878 (vcmlaq_rot270_f16): New.
34879 (vcmla_rot270_f16): New.
34880 (vcmlaq_rot180_laneq_f16): New.
34881 (vcmlaq_rot180_lane_f16): New.
34882 (vcmla_rot270_lane_f16): New.
34883 (vcadd_rot90_f32): New.
34884 (vcaddq_rot90_f32): New.
34885 (vcaddq_rot90_f64): New.
34886 (vcadd_rot270_f32): New.
34887 (vcaddq_rot270_f32): New.
34888 (vcaddq_rot270_f64): New.
34889 (vcmla_f32): New.
34890 (vcmlaq_f32): New.
34891 (vcmlaq_f64): New.
34892 (vcmla_lane_f32): New.
34893 (vcmla_laneq_f32): New.
34894 (vcmlaq_lane_f32): New.
34895 (vcmlaq_laneq_f32): New.
34896 (vcmla_rot90_f32): New.
34897 (vcmlaq_rot90_f32): New.
34898 (vcmlaq_rot90_f64): New.
34899 (vcmla_rot90_lane_f32): New.
34900 (vcmla_rot90_laneq_f32): New.
34901 (vcmlaq_rot90_lane_f32): New.
34902 (vcmlaq_rot90_laneq_f32): New.
34903 (vcmla_rot180_f32): New.
34904 (vcmlaq_rot180_f32): New.
34905 (vcmlaq_rot180_f64): New.
34906 (vcmla_rot180_lane_f32): New.
34907 (vcmla_rot180_laneq_f32): New.
34908 (vcmlaq_rot180_lane_f32): New.
34909 (vcmlaq_rot180_laneq_f32): New.
34910 (vcmla_rot270_f32): New.
34911 (vcmlaq_rot270_f32): New.
34912 (vcmlaq_rot270_f64): New.
34913 (vcmla_rot270_lane_f32): New.
34914 (vcmla_rot270_laneq_f32): New.
34915 (vcmlaq_rot270_lane_f32): New.
34916 (vcmlaq_rot270_laneq_f32): New.
34917 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34918 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34919 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34920 (FCADD, FCMLA): New.
34921 (rot): New.
34922 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34923
34924 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34925
34926 PR other/16615
34927
34928 * config/pa/pa.c: Change "can not" to "cannot".
34929 * gimple-ssa-evrp-analyze.c: Likewise.
34930 * ipa-icf.c: Likewise.
34931 * ipa-polymorphic-call.c: Likewise.
34932 * ipa-pure-const.c: Likewise.
34933 * lra-constraints.c: Likewise.
34934 * lra-remat.c: Likewise.
34935 * reload1.c: Likewise.
34936 * reorg.c: Likewise.
34937 * tree-ssa-uninit.c: Likewise.
34938
34939 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34940
34941 PR other/16615
34942
34943 * Makefile.in: Mechanically replace "can not" with "cannot".
34944 * alias.c: Likewise.
34945 * builtins.c: Likewise.
34946 * calls.c: Likewise.
34947 * cgraph.c: Likewise.
34948 * cgraph.h: Likewise.
34949 * cgraphclones.c: Likewise.
34950 * cgraphunit.c: Likewise.
34951 * combine-stack-adj.c: Likewise.
34952 * combine.c: Likewise.
34953 * common/config/i386/i386-common.c: Likewise.
34954 * config/aarch64/aarch64.c: Likewise.
34955 * config/alpha/sync.md: Likewise.
34956 * config/arc/arc.c: Likewise.
34957 * config/arc/predicates.md: Likewise.
34958 * config/arm/arm-c.c: Likewise.
34959 * config/arm/arm.c: Likewise.
34960 * config/arm/arm.h: Likewise.
34961 * config/arm/arm.md: Likewise.
34962 * config/arm/cortex-r4f.md: Likewise.
34963 * config/csky/csky.c: Likewise.
34964 * config/csky/csky.h: Likewise.
34965 * config/darwin-f.c: Likewise.
34966 * config/epiphany/epiphany.md: Likewise.
34967 * config/i386/i386.c: Likewise.
34968 * config/i386/sol2.h: Likewise.
34969 * config/m68k/m68k.c: Likewise.
34970 * config/mcore/mcore.h: Likewise.
34971 * config/microblaze/microblaze.md: Likewise.
34972 * config/mips/20kc.md: Likewise.
34973 * config/mips/sb1.md: Likewise.
34974 * config/nds32/nds32.c: Likewise.
34975 * config/nds32/predicates.md: Likewise.
34976 * config/pa/pa.c: Likewise.
34977 * config/rs6000/e300c2c3.md: Likewise.
34978 * config/rs6000/rs6000.c: Likewise.
34979 * config/s390/s390.h: Likewise.
34980 * config/sh/sh.c: Likewise.
34981 * config/sh/sh.md: Likewise.
34982 * config/spu/vmx2spu.h: Likewise.
34983 * cprop.c: Likewise.
34984 * dbxout.c: Likewise.
34985 * df-scan.c: Likewise.
34986 * doc/cfg.texi: Likewise.
34987 * doc/extend.texi: Likewise.
34988 * doc/fragments.texi: Likewise.
34989 * doc/gty.texi: Likewise.
34990 * doc/invoke.texi: Likewise.
34991 * doc/lto.texi: Likewise.
34992 * doc/md.texi: Likewise.
34993 * doc/objc.texi: Likewise.
34994 * doc/rtl.texi: Likewise.
34995 * doc/tm.texi: Likewise.
34996 * dse.c: Likewise.
34997 * emit-rtl.c: Likewise.
34998 * emit-rtl.h: Likewise.
34999 * except.c: Likewise.
35000 * expmed.c: Likewise.
35001 * expr.c: Likewise.
35002 * fold-const.c: Likewise.
35003 * genautomata.c: Likewise.
35004 * gimple-fold.c: Likewise.
35005 * hard-reg-set.h: Likewise.
35006 * ifcvt.c: Likewise.
35007 * ipa-comdats.c: Likewise.
35008 * ipa-cp.c: Likewise.
35009 * ipa-devirt.c: Likewise.
35010 * ipa-fnsummary.c: Likewise.
35011 * ipa-icf.c: Likewise.
35012 * ipa-inline-transform.c: Likewise.
35013 * ipa-inline.c: Likewise.
35014 * ipa-polymorphic-call.c: Likewise.
35015 * ipa-profile.c: Likewise.
35016 * ipa-prop.c: Likewise.
35017 * ipa-pure-const.c: Likewise.
35018 * ipa-reference.c: Likewise.
35019 * ipa-split.c: Likewise.
35020 * ipa-visibility.c: Likewise.
35021 * ipa.c: Likewise.
35022 * ira-build.c: Likewise.
35023 * ira-color.c: Likewise.
35024 * ira-conflicts.c: Likewise.
35025 * ira-costs.c: Likewise.
35026 * ira-int.h: Likewise.
35027 * ira-lives.c: Likewise.
35028 * ira.c: Likewise.
35029 * ira.h: Likewise.
35030 * loop-invariant.c: Likewise.
35031 * loop-unroll.c: Likewise.
35032 * lower-subreg.c: Likewise.
35033 * lra-assigns.c: Likewise.
35034 * lra-constraints.c: Likewise.
35035 * lra-eliminations.c: Likewise.
35036 * lra-lives.c: Likewise.
35037 * lra-remat.c: Likewise.
35038 * lra-spills.c: Likewise.
35039 * lra.c: Likewise.
35040 * lto-cgraph.c: Likewise.
35041 * lto-streamer-out.c: Likewise.
35042 * postreload-gcse.c: Likewise.
35043 * predict.c: Likewise.
35044 * profile-count.h: Likewise.
35045 * profile.c: Likewise.
35046 * recog.c: Likewise.
35047 * ree.c: Likewise.
35048 * reload.c: Likewise.
35049 * reload1.c: Likewise.
35050 * reorg.c: Likewise.
35051 * resource.c: Likewise.
35052 * rtl.def: Likewise.
35053 * rtl.h: Likewise.
35054 * rtlanal.c: Likewise.
35055 * sched-deps.c: Likewise.
35056 * sched-ebb.c: Likewise.
35057 * sched-rgn.c: Likewise.
35058 * sel-sched-ir.c: Likewise.
35059 * sel-sched.c: Likewise.
35060 * shrink-wrap.c: Likewise.
35061 * simplify-rtx.c: Likewise.
35062 * symtab.c: Likewise.
35063 * target.def: Likewise.
35064 * toplev.c: Likewise.
35065 * tree-call-cdce.c: Likewise.
35066 * tree-cfg.c: Likewise.
35067 * tree-complex.c: Likewise.
35068 * tree-core.h: Likewise.
35069 * tree-eh.c: Likewise.
35070 * tree-inline.c: Likewise.
35071 * tree-loop-distribution.c: Likewise.
35072 * tree-nrv.c: Likewise.
35073 * tree-profile.c: Likewise.
35074 * tree-sra.c: Likewise.
35075 * tree-ssa-alias.c: Likewise.
35076 * tree-ssa-dce.c: Likewise.
35077 * tree-ssa-dom.c: Likewise.
35078 * tree-ssa-forwprop.c: Likewise.
35079 * tree-ssa-loop-im.c: Likewise.
35080 * tree-ssa-loop-ivcanon.c: Likewise.
35081 * tree-ssa-loop-ivopts.c: Likewise.
35082 * tree-ssa-loop-niter.c: Likewise.
35083 * tree-ssa-phionlycprop.c: Likewise.
35084 * tree-ssa-phiopt.c: Likewise.
35085 * tree-ssa-propagate.c: Likewise.
35086 * tree-ssa-threadedge.c: Likewise.
35087 * tree-ssa-threadupdate.c: Likewise.
35088 * tree-ssa-uninit.c: Likewise.
35089 * tree-ssanames.c: Likewise.
35090 * tree-streamer-out.c: Likewise.
35091 * tree.c: Likewise.
35092 * tree.h: Likewise.
35093 * vr-values.c: Likewise.
35094
35095 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
35096
35097 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
35098 (ix86_split_xorsign): Ditto.
35099 * config/i386/i386.c (ix86_expand_xorsign): New function.
35100 (ix86_split_xorsign): Ditto.
35101 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
35102 (xorsign<mode>3): New expander.
35103 (xorsign<mode>3_1): New insn_and_split pattern.
35104 * config/i386/sse.md (xorsign<mode>3): New expander.
35105
35106 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35107
35108 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
35109 (*tablejump_sp64): Likewise.
35110 (*tablejump<P:mode>): ...this.
35111 (*call_address_sp32): Merge into...
35112 (*call_address_sp64): Likewise.
35113 (*call_address<P:mode>): ...this.
35114 (*call_symbolic_sp32): Merge into...
35115 (*call_symbolic_sp64): Likewise.
35116 (*call_symbolic<P:mode>): ...this.
35117 (call_value): Remove constraint and add predicate.
35118 (*call_value_address_sp32): Merge into...
35119 (*call_value_address_sp64): Likewise.
35120 (*call_value_address<P:mode>): ...this.
35121 (*call_value_symbolic_sp32): Merge into...
35122 (*call_value_symbolic_sp64): Likewise.
35123 (*call_value_symbolic<P:mode>): ...this.
35124 (*sibcall_symbolic_sp32): Merge into...
35125 (*sibcall_symbolic_sp64): Likewise.
35126 (*sibcall_symbolic<P:mode>): ...this.
35127 (sibcall_value): Remove constraint and add predicate.
35128 (*sibcall_value_symbolic_sp32): Merge into...
35129 (*sibcall_value_symbolic_sp64): Likewise.
35130 (*sibcall_value_symbolic<P:mode>): ...this.
35131 (window_save): Minor tweak.
35132 (*branch_sp32): Merge into...
35133 (*branch_sp64): Likewise.
35134 (*branch<P:mode>): ...this.
35135
35136 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35137 James Clarke <jrtc27@jrtc27.com>
35138
35139 PR target/84010
35140 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
35141 consistently in TLS address generation and adjust code to the renaming
35142 of patterns. Mark calls to __tls_get_addr as const.
35143 * config/sparc/sparc.md (tgd_hi22): Turn into...
35144 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
35145 (tgd_lo10): Turn into...
35146 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
35147 (tgd_add32): Merge into...
35148 (tgd_add64): Likewise.
35149 (tgd_add<P:mode>): ...this and use Pmode throughout.
35150 (tldm_hi22): Turn into...
35151 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
35152 (tldm_lo10): Turn into...
35153 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
35154 (tldm_add32): Merge into...
35155 (tldm_add64): Likewise.
35156 (tldm_add<P:mode>): ...this and use Pmode throughout.
35157 (tldm_call32): Merge into...
35158 (tldm_call64): Likewise.
35159 (tldm_call<P:mode>): ...this and use Pmode throughout.
35160 (tldo_hix22): Turn into...
35161 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
35162 (tldo_lox10): Turn into...
35163 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
35164 (tldo_add32): Merge into...
35165 (tldo_add64): Likewise.
35166 (tldo_add<P:mode>): ...this and use Pmode throughout.
35167 (tie_hi22): Turn into...
35168 (tie_hi22<P:mode>): ...this and use Pmode throughout.
35169 (tie_lo10): Turn into...
35170 (tie_lo10<P:mode>): ...this and use Pmode throughout.
35171 (tie_ld64): Use DImode throughout.
35172 (tie_add32): Merge into...
35173 (tie_add64): Likewise.
35174 (tie_add<P:mode>): ...this and use Pmode throughout.
35175 (tle_hix22_sp32): Merge into...
35176 (tle_hix22_sp64): Likewise.
35177 (tle_hix22<P:mode>): ...this and use Pmode throughout.
35178 (tle_lox22_sp32): Merge into...
35179 (tle_lox22_sp64): Likewise.
35180 (tle_lox22<P:mode>): ...this and use Pmode throughout.
35181 (*tldo_ldub_sp32): Merge into...
35182 (*tldo_ldub_sp64): Likewise.
35183 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
35184 (*tldo_ldub1_sp32): Merge into...
35185 (*tldo_ldub1_sp64): Likewise.
35186 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
35187 (*tldo_ldub2_sp32): Merge into...
35188 (*tldo_ldub2_sp64): Likewise.
35189 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
35190 (*tldo_ldsb1_sp32): Merge into...
35191 (*tldo_ldsb1_sp64): Likewise.
35192 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
35193 (*tldo_ldsb2_sp32): Merge into...
35194 (*tldo_ldsb2_sp64): Likewise.
35195 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
35196 (*tldo_ldub3_sp64): Use DImode throughout.
35197 (*tldo_ldsb3_sp64): Likewise.
35198 (*tldo_lduh_sp32): Merge into...
35199 (*tldo_lduh_sp64): Likewise.
35200 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
35201 (*tldo_lduh1_sp32): Merge into...
35202 (*tldo_lduh1_sp64): Likewise.
35203 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
35204 (*tldo_ldsh1_sp32): Merge into...
35205 (*tldo_ldsh1_sp64): Likewise.
35206 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
35207 (*tldo_lduh2_sp64): Use DImode throughout.
35208 (*tldo_ldsh2_sp64): Likewise.
35209 (*tldo_lduw_sp32): Merge into...
35210 (*tldo_lduw_sp64): Likewise.
35211 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
35212 (*tldo_lduw1_sp64): Use DImode throughout.
35213 (*tldo_ldsw1_sp64): Likewise.
35214 (*tldo_ldx_sp64): Likewise.
35215 (*tldo_stb_sp32): Merge into...
35216 (*tldo_stb_sp64): Likewise.
35217 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
35218 (*tldo_sth_sp32): Merge into...
35219 (*tldo_sth_sp64): Likewise.
35220 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
35221 (*tldo_stw_sp32): Merge into...
35222 (*tldo_stw_sp64): Likewise.
35223 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
35224 (*tldo_stx_sp64): Use DImode throughout.
35225
35226 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35227
35228 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
35229 check configure option to set BTI and Return Address Signing.
35230 * configure.ac: Add --enable-standard-branch-protection and
35231 --disable-standard-branch-protection.
35232 * configure: Regenerated.
35233 * doc/install.texi: Document the same.
35234
35235 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35236 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35237
35238 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
35239 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
35240 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
35241 if bti is enabled.
35242 * config/aarch64/aarch64-bti-insert.c: New file.
35243 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
35244 pass.
35245 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
35246 new bti pass.
35247 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
35248 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
35249 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
35250 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
35251
35252 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35253
35254 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
35255 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
35256 Disable bti for -mbranch-protection=none.
35257 (aarch64_handle_standard_branch_protection): Enable bti for
35258 -mbranch-protection=standard.
35259 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
35260 -mbranch-protection.
35261 (aarch64_bti_enabled): Check if bti is enabled.
35262 * config/aarch64/aarch64.opt: Declare target variable.
35263 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
35264
35265 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35266
35267 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
35268 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
35269 (aarch64_expand_epilogue): Likewise.
35270 (aarch64_output_mi_thunk): Likewise.
35271 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
35272 TAILCALL_ADDR_REGS to x16 and x17.
35273 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
35274
35275 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35276
35277 * config/aarch64/aarch64-option-extensions.def: Define
35278 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
35279 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
35280 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
35281 (AARCH64_FL_PREDRES): New.
35282 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
35283 AARCH64_FL_PREDRES by default.
35284 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
35285
35286 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35287
35288 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
35289 ARMv8.5-A.
35290 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
35291 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
35292 * doc/invoke.texi: Document ARMv8.5-A.
35293
35294 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
35295
35296 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
35297 (xorsign<mode>3): Likewise.
35298
35299 2019-01-09 Jelinek <jakub@redhat.com>
35300
35301 PR middle-end/88758
35302 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
35303 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
35304
35305 PR rtl-optimization/88331
35306 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
35307 not currently_expanding_to_rtl.
35308
35309 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35310
35311 * doc/invoke.texi (-Os): Remove trailing spaces.
35312 (-finline-functions): Remove reference to -O2.
35313
35314 2019-01-08 Jakub Jelinek <jakub@redhat.com>
35315
35316 PR rtl-optimization/79593
35317 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
35318
35319 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
35320 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
35321
35322 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
35323
35324 PR bootstrap/88721
35325 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
35326 to -1 on entry.
35327
35328 PR debug/88723
35329 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
35330 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
35331
35332 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
35333
35334 PR target/88717
35335 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
35336 ix86_avx_u128_mode_entry.
35337
35338 2019-01-08 Martin Liska <mliska@suse.cz>
35339
35340 PR tree-optimization/88753
35341 * tree-switch-conversion.c (switch_conversion::build_one_array):
35342 Come up with local variable constructor. Convert first to
35343 type of constructor values.
35344
35345 2019-01-08 Richard Biener <rguenther@suse.de>
35346
35347 PR tree-optimization/86554
35348 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
35349 rpo_avail): Move earlier.
35350 (visit_nary_op): When value-numbering to expressions
35351 with different overflow behavior make sure there's an
35352 available expression on the path.
35353
35354 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
35355
35356 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
35357 aarch64_parse_branch_protection,
35358 struct aarch64_branch_protect_type,
35359 aarch64_handle_no_branch_protection,
35360 aarch64_handle_standard_branch_protection,
35361 aarch64_validate_mbranch_protection,
35362 aarch64_handle_pac_ret_protection,
35363 aarch64_handle_attr_branch_protection,
35364 accepted_branch_protection_string,
35365 aarch64_pac_ret_subtypes,
35366 aarch64_branch_protect_types,
35367 aarch64_handle_pac_ret_leaf): Define.
35368 (aarch64_override_options_after_change_1, aarch64_override_options):
35369 Add check for accepted_branch_protection_string.
35370 (aarch64_option_save): Save accepted_branch_protection_string.
35371 (aarch64_option_restore): Save accepted_branch_protection_string.
35372 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35373 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35374 msign-return-address.
35375 * doc/invoke.texi: Add mbranch-protection.
35376
35377 2019-01-08 Alan Modra <amodra@gmail.com>
35378
35379 PR target/88614
35380 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35381 Delete "unknownp" parameter. Adjust callers. Handle
35382 CONST_INT, PLUS, MINUS, and MULT.
35383 (attr_value_aligned): Renamed from or_attr_value.
35384 (min_attr_value): Return INT_MIN for unhandled rtl case..
35385 (min_fn): ..and translate to INT_MAX here.
35386 (write_length_unit_log): Modify to cope without "unknown".
35387 (write_attr_value): Handle IF_THEN_ELSE.
35388
35389 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35390
35391 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35392 optimization for masked stores.
35393
35394 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35395
35396 PR middle-end/88567
35397 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35398 output vector directly to duplicate_and_interleave instead of
35399 going through a temporary. Postpone insertion of ctor_seq to
35400 the end of the loop.
35401
35402 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
35403
35404 PR target/86891
35405 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35406 unsigned_p. Handle signed and unsigned overflow correction as
35407 required.
35408 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35409 prototype.
35410 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35411 for operand 2.
35412 (add<mode>3_compareV_imm): Make this callable for expanding.
35413 (subv<GPI:mode>4): Use register_operand for operand 1. Use
35414 aarch64_plus_operand for operand 2.
35415 (subv<GPI:mode>_insn): New insn pattern.
35416 (subv<GPI:mode>_imm): Likewise.
35417 (negv<GPI:mode>3): New expand pattern.
35418 (negv<GPI:mode>_insn): New insn pattern.
35419 (negv<GPI:mode>_cmp_only): Likewise.
35420 (cmpv<GPI:mode>_insn): Likewise.
35421 (subvti4): Use register_operand for operand 1. Update call to
35422 aarch64_expand_subvti.
35423 (usubvti4): Likewise.
35424 (negvti3): New expand pattern.
35425 (negdi_carryout): New insn pattern.
35426 (negvdi_carryinV): New insn pattern.
35427 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35428 version the named version.
35429 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35430 operands.
35431 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35432 patterns.
35433 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35434 patterns.
35435 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35436 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35437 (sub<mode>3_carryinCV): Delete.
35438 (sub<GPI:mode>3_carryinV): New expand pattern.
35439 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35440
35441 2019-01-07 Richard Biener <rguenther@suse.de>
35442
35443 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35444 of tree_operand_hash.
35445
35446 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35447
35448 PR tree-optimization/88598
35449 * tree.h (single_nonzero_element): Declare.
35450 * tree.c (single_nonzero_element): New function.
35451 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35452 if I is the only nonzero element of CST.
35453
35454 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35455
35456 PR tree-optimization/88598
35457 * tree.h (initializer_each_zero_or_onep): Declare.
35458 * tree.c (initializer_each_zero_or_onep): New function.
35459 (signed_or_unsigned_type_for): Handle float types too.
35460 (unsigned_type_for, signed_type_for): Update comments accordingly.
35461 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35462 x & { 0 or -1, 0 or -1, ... }.
35463
35464 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35465
35466 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35467 with x86_64-pc-linux-gnu.
35468
35469 2019-01-07 Tom de Vries <tdevries@suse.de>
35470
35471 PR target/85486
35472 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35473 function.
35474 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35475 routines.
35476
35477 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35478
35479 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35480 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35481 TARGET_AVX512F as condition.
35482
35483 PR debug/88723
35484 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35485 const_not_ok_for_debug_p target hook.
35486 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35487 on UNSPEC and subexpressions thereof if all subexpressions of the
35488 UNSPEC are CONSTANT_P.
35489
35490 PR tree-optimization/88676
35491 * tree-ssa-phiopt.c (two_value_replacement): New function.
35492 (tree_ssa_phiopt_worker): Call it.
35493
35494 PR sanitizer/88619
35495 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35496 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35497
35498 PR c++/85052
35499 * tree-vect-generic.c: Include insn-config.h and recog.h.
35500 (expand_vector_piecewise): Add defaulted ret_type argument,
35501 if non-NULL, use that in preference to type for the result type.
35502 (expand_vector_parallel): Formatting fix.
35503 (do_vec_conversion, do_vec_narrowing_conversion,
35504 expand_vector_conversion): New functions.
35505 (expand_vector_operations_1): Call expand_vector_conversion
35506 for VEC_CONVERT ifn calls.
35507 * internal-fn.def (VEC_CONVERT): New internal function.
35508 * internal-fn.c (expand_VEC_CONVERT): New function.
35509 * fold-const-call.c (fold_const_vec_convert): New function.
35510 (fold_const_call): Use it for CFN_VEC_CONVERT.
35511 * doc/extend.texi (__builtin_convertvector): Document.
35512
35513 2019-01-07 Tom de Vries <tdevries@suse.de>
35514
35515 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35516 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35517 vector_red_partition, vector_red_sym): New global variables.
35518 (nvptx_option_override): Initialize vector_red_sym.
35519 (nvptx_declare_function_name): Restore red_partition register.
35520 (nvptx_file_end): Emit code to declare the vector reduction variables.
35521 (nvptx_output_red_partition): New function.
35522 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35523 large vector reductions.
35524 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35525 (nvptx_init_builtins): Add VECTOR_ADDR.
35526 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35527 Handle nvptx_expand_shared_addr.
35528 (nvptx_get_shared_red_addr): Add vector argument and handle large
35529 vectors.
35530 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35531 large vectors.
35532 (nvptx_goacc_reduction_init): Likewise.
35533 (nvptx_goacc_reduction_fini): Likewise.
35534 (nvptx_goacc_reduction_teardown): Likewise.
35535 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35536 init,fini,teardown}.
35537 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35538 (nvptx_set_current_function): Init vector_red_partition.
35539 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35540 (nvptx_red_partition): New insn.
35541 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35542
35543 2019-01-07 Tom de Vries <tdevries@suse.de>
35544
35545 PR target/85381
35546 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35547 empty loops.
35548
35549 2019-01-07 Tom de Vries <tdevries@suse.de>
35550
35551 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35552 (nvptx_option_override): Init oacc_bcast_partition.
35553 (nvptx_init_oacc_workers): New function.
35554 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35555 (nvptx_needs_shared_bcast): New function.
35556 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35557 to propagate state.
35558 (nvptx_shared_propagate): Initialize vector bcast partition and
35559 synchronization state.
35560 (nvptx_single): Generalize to enable vectors to use shared-memory
35561 to propagate state.
35562 (nvptx_process_pars): Likewise.
35563 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35564 * config/nvptx/nvptx.h (struct machine_function): Add
35565 bcast_partition and sync_bar members.
35566
35567 2019-01-07 Tom de Vries <tdevries@suse.de>
35568
35569 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35570 (nvptx_apply_dim_limits): New function.
35571 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35572 PTX_WARP_SIZE.
35573
35574 2019-01-07 Tom de Vries <tdevries@suse.de>
35575
35576 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35577 as late as possible.
35578
35579 2019-01-07 Tom de Vries <tdevries@suse.de>
35580
35581 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35582 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35583 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35584 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35585 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35586
35587 2019-01-07 Tom de Vries <tdevries@suse.de>
35588
35589 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35590
35591 2019-01-07 Tom de Vries <tdevries@suse.de>
35592
35593 * omp-offload.c (oacc_get_min_dim): New function.
35594 * omp-offload.h (oacc_get_min_dim): Declare.
35595
35596 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35597
35598 PR target/88521
35599 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35600 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35601
35602 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35603
35604 PR tree-opt/86020
35605 Revert:
35606 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35607
35608 * ipa-inline.c (edge_badness): Use inlined_time instead of
35609 inline_summaries->get.
35610
35611 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35612
35613 * opts.c (enable_fdo_optimizations): Enable
35614 version-loops-for-strides, loop-interchange, unrol-and-jam
35615 and tree-loop-distribution.
35616 * invoke.texi: Document newly enabled options.
35617
35618 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35619
35620 * doc/invoke.texi (max-inline-insns-small): New parameters.
35621 * ipa-inline.c (want_early_inline_function_p): simplify.
35622 (want_inline_small_function_p): Fix pasto from previous patch;
35623 use max-inline-insns-small bound.
35624 * params.def (max-inline-insns-small): New param.
35625 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35626 variables correctly.
35627
35628 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35629
35630 * doc/invoke.texi: Document max-inline-insns-size,
35631 uninlined-function-insns, uninlined-function-time,
35632 uninlined-thunk-insns and uninlined-thunk-time.
35633 * params.def: Add max-inline-insns-size,
35634 uninlined-function-insns, uninlined-function-time,
35635 uninlined-thunk-insns and uninlined-thunk-time.
35636 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35637 new parameters.
35638 * ipa-inline.c (can_inline_edge_by_limits_p,
35639 want_inline_small_function_p): Use new parameters.
35640
35641 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35642
35643 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35644
35645 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35646
35647 PR middle-end/82564
35648 PR target/88620
35649 * expr.c (expand_assignment): For calls returning VLA structures
35650 if to_rtx is not a MEM, force it into a stack temporary.
35651
35652 PR debug/88635
35653 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35654 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35655 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35656 subexpressions of both operands.
35657 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35658 subrtxes are CONSTANT_P.
35659 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35660 2018-11-09 changes.
35661
35662 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35663
35664 * params.def (hot-bb-count-ws-permille): Set to 990.
35665
35666 2019-01-04 Martin Sebor <msebor@redhat.com>
35667
35668 PR c/88546
35669 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35670 leaf.
35671
35672 2019-01-04 Martin Sebor <msebor@redhat.com>
35673
35674 PR c/88363
35675 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35676
35677 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35678
35679 * gdbinit.in: Turn off pagination for the skip commands, restore
35680 it to previous state afterwards.
35681
35682 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35683
35684 PR target/88594
35685 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35686 of GET_MODE (opN) as modes of the libcall arguments.
35687
35688 2019-01-04 Jan Beulich <jbeulich@suse.com>
35689
35690 * config/i386/sse.md
35691 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35692 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35693 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35694 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35695 avx512f_vmcmp<mode>3<round_saeonly_name>,
35696 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35697 avx512f_maskcmp<mode>3,
35698 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35699 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35700 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35701 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35702 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35703 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35704 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35705 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35706 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35707 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35708 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35709 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35710 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35711 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35712 avx512cd_maskb_vec_dup<mode>,
35713 avx512cd_maskw_vec_dup<mode>,
35714 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35715 avx512dq_vmfpclass<mode>,
35716 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35717 instead of =Yk.
35718
35719 2019-01-03 Martin Sebor <msebor@redhat.com>
35720
35721 PR tree-optimization/88659
35722 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35723
35724 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35725
35726 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35727 unaligned vsx and avoid lxvd2x/stxvd2x.
35728 (gen_lvx_v4si_move): New function.
35729
35730 2019-01-03 Tom de Vries <tdevries@suse.de>
35731
35732 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35733 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35734 function.
35735 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35736
35737 2019-01-03 Tom de Vries <tdevries@suse.de>
35738
35739 * config/nvptx/nvptx.c (struct offload_attrs): New.
35740 (populate_offload_attrs): New function. Factor mask extraction out of
35741 nvptx_reorg. Add extraction of dimensions.
35742 (nvptx_reorg): Use populate_offload_attrs.
35743
35744 2019-01-03 Tom de Vries <tdevries@suse.de>
35745
35746 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35747 cases for oacc_min_dims_p and routine_p. Add asserts for
35748 oacc_default_dims_p and offload_region_p.
35749
35750 2019-01-03 Tom de Vries <tdevries@suse.de>
35751
35752 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35753 factored out of ...
35754 (nvptx_goacc_validate_dims): ... here.
35755
35756 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35757
35758 PR tree-optimization/85574
35759 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35760 structure.
35761 (struct ssa_equip_hash_traits): Declare.
35762 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35763
35764 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35765
35766 PR debug/88644
35767 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35768 change it to qualified_type.
35769
35770 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35771
35772 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35773 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35774
35775 2019-01-02 Martin Sebor <msebor@redhat.com>
35776 Jeff Law <law@redhat.com>
35777
35778 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35779 (get_range_strlen_tree): Update appropriately.
35780 (get_range_strlen)
35781 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35782
35783 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35784 rather than set_range_info.
35785 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35786 maybe_set_strlen_range. Handle potentially boundary crossing
35787 cases more conservatively.
35788 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35789 Call set_strlen_range.
35790 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35791
35792 PR middle-end/88663
35793 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35794 need the flexp argument.
35795 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35796 from calls to get_range_strlen. Update comments. Just update
35797 VAL for an unterminated const char array and let the reset of the
35798 code handle it normally. No longer try to set *flexp. Adjust
35799 return value.
35800 (get_range_strlen): Update for the new get_range_strlen API.
35801 (get_maxval_strlen): Similarly.
35802 (gimple_fold_builtin_strlen): Handle update meaning of return value
35803 from get_range_strlen.
35804 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35805 get_range_strlen API.
35806
35807 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35808
35809 PR lto/88130
35810 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35811 false at WPA time when body was removed.
35812
35813 2019-01-02 Martin Liska <mliska@suse.cz>
35814
35815 PR tree-optimization/88650
35816 * predict.c (set_even_probabilities): Calculate probability
35817 remainer only when really used.
35818
35819 2019-01-02 Richard Biener <rguenther@suse.de>
35820
35821 PR middle-end/88651
35822 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35823 widest_ints when mangling max_stmt_execution results.
35824
35825 2019-01-02 Richard Biener <rguenther@suse.de>
35826
35827 PR tree-optimization/88621
35828 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35829 bitfields when canoncalizing.
35830
35831 2019-01-02 Richard Biener <rguenther@suse.de>
35832
35833 PR target/87545
35834 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35835 cost of cheap SSE instruction.
35836
35837 2019-01-02 Richard Biener <rguenther@suse.de>
35838
35839 PR ipa/85574
35840 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35841 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35842 function.
35843 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35844 set after UIDs before splitting them.
35845
35846 2019-01-01 Martin Sebor <msebor@redhat.com>
35847 Jeff Law <law@redhat.com>
35848
35849 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35850 length is optimistic. If it is, then arrange to compute the
35851 conservative length as well.
35852
35853 * gimple-fold.h (get_range_strlen): Update prototype.
35854 * builtins.c (check_access): Update call to get_range_strlen to use
35855 c_strlen_data pointer. Change various variable accesses to instead
35856 pull data from the c_strlen_data structure.
35857 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35858 * calls.c (maybe_warn_nonstring_arg): Likewise.
35859 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35860 minimum length if maximum lengh is unknown.
35861 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35862 that used c_strlen, it's no longer needed. Restructure slightly.
35863 (format_string): Set unlikely range appropriately.
35864 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35865 formatting issues.
35866 (get_range_strlen): Accept c_strlen_data pointer for external
35867 call sites as well. Pass through to call to internal get_range_strlen.
35868 Adjust minlen, maxlen and maxbound as needed.
35869 (get_maxval_strlen): Update comments.
35870 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35871 to use c_strlen_data pointer. Change variable accesses to instead
35872 use c_strlen_data data members.
35873
35874 * gimple-fold.c (get_range_strlen): Update prototype.
35875 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35876 local variables. Use pdata to return information to caller.
35877 Update calls to get_range_strlen. Update pdata->maxbound.
35878 (get_range_strlen -- static version): Similarly.
35879 (get_range_strlen -- extern version): Update for internal
35880 get_range_strlen API change. Convert to external data format.
35881 (get_maxval_strlen): Similarly.
35882
35883 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35884
35885 * coverage.c (get_coverage_counts): Use current_function_decl.
35886 * profile.c (read_thunk_profile): New function.
35887 (branch_prob): Add THUNK parameter.
35888 * tree-profile.c (tree_profiling): Handle thunks.
35889 * value-prof.c (init_node_map): Handle thunks.
35890 * value-prof.h (branch_prob): Upate prototype.
35891 (read_thunk_profile): Declare.
35892
35893 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35894
35895 Update copyright years.
35896
35897 * gcc.c (process_command): Update copyright notice dates.
35898 * gcov-dump.c (print_version): Ditto.
35899 * gcov.c (print_version): Ditto.
35900 * gcov-tool.c (print_version): Ditto.
35901 * gengtype.c (create_file): Ditto.
35902 * doc/cpp.texi: Bump @copying's copyright year.
35903 * doc/cppinternals.texi: Ditto.
35904 * doc/gcc.texi: Ditto.
35905 * doc/gccint.texi: Ditto.
35906 * doc/gcov.texi: Ditto.
35907 * doc/install.texi: Ditto.
35908 * doc/invoke.texi: Ditto.
35909 \f
35910 Copyright (C) 2019 Free Software Foundation, Inc.
35911
35912 Copying and distribution of this file, with or without modification,
35913 are permitted in any medium without royalty provided the copyright
35914 notice and this notice are preserved.