re PR rtl-optimization/92796 (ICE in lra_assign, at lra-assigns.c:1646 on powerpc64le...
[gcc.git] / gcc / ChangeLog
1 2019-12-10 Vladimir Makarov <vmakarov@redhat.com>
2
3 PR rtl-optimization/92796
4 * lra-int.h (lra_risky_transformations_p): Rename to
5 check_and_force_assignment_correctness_p.
6 * lra-assigns.c: Ditto.
7 (lra_assign): Reset check_and_force_assignment_correctness_p.
8 * lra-constraints.c (lra_risky_transformations_p): Rename to
9 check_and_force_assignment_correctness_p.
10 (lra_constraints): Set up check_and_force_assignment_correctness_p
11 only for the 1st sub-pass.
12 * lra-eliminations.c (process_insn_for_elimination): Set up
13 check_and_force_assignment_correctness_p if the insn chnaged its
14 code.
15
16 2019-12-10 Jakub Jelinek <jakub@redhat.com>
17
18 PR rtl-optimization/92882
19 * regstat.c (regstat_bb_compute_calls_crossed): Don't check
20 INSN_UID against DF_INSN_SIZE or use DF_INSN_INFO_GET unless
21 NONDEBUG_INSN_P.
22
23 PR ipa/92883
24 * ipa-cp.c (propagate_vr_across_jump_function): Pass jvr rather
25 than *jfunc->m_vr to intersect. Formatting fix.
26
27 PR middle-end/92825
28 * cfgexpand.c (add_stack_protection_conflicts): Change return type
29 from void to bool, return true if at least one stack_vars[i].decl
30 is addressable.
31 (record_or_union_type_has_array_p, stack_protect_decl_p): Remove.
32 (expand_used_vars): Don't call stack_protect_decl_p, instead for
33 -fstack-protector-strong set gen_stack_protect_signal to true
34 if add_stack_protection_conflicts returned true. Formatting fixes.
35 * doc/invoke.texi (-fstack-protector-strong): Clarify that optimized
36 out variables or variables not living on the stack don't count.
37 (-fstack-protector): Likewise. Clarify it affects >= 8 byte arrays
38 rather than > 8 byte.
39
40 * ipa-param-manipulation.c
41 (ipa_param_body_adjustments::register_replacement): Fix comment typo
42 - accross -> across.
43 * ipa-sra.c (propagate_used_across_scc_edge, ipa_sra_analysis):
44 Likewise.
45 (param_splitting_across_edge): Fix typo in dump message - accross
46 -> across.
47
48 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
49
50 * cgraph.c (cgraph_node::verify_node): Verify tp_first_run.
51 * cgraph.h (cgrpah_node): Turn tp_first_run back to int.
52 * cgraphunit.c (tp_first_run_node_cmp): Do not watch for overflows.
53 (expand_all_functions): First expand ordered section and then
54 unordered.
55 * profile.c (compute_value_histograms): Error on out of range
56 tp_first_runs.
57
58 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
59
60 * predict.c (compute_function_frequency): Check for presence of IPA
61 profile.
62
63 2019-12-10 Jan Hubicka <hubicka@ucw.cz>
64
65 * varasm.c (default_function_section): Fix confused tests for
66 tp_first_run reordering.
67
68 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
69
70 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Don't
71 allow SVE modes in GPRs.
72
73 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
74
75 * config/aarch64/iterators.md (vccore): New iterator.
76 * config/aarch64/aarch64-sve.md (vec_series<mode>): Use it instead
77 of vwcore.
78 (*vec_series<mode>_plus): Likewise.
79
80 2019-12-10 Frederik Harwath <frederik@codesourcery.com>
81
82 * omp-low.c (scan_omp_for): Use clause location in warning.
83
84 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
85
86 * dwarf2out.c (loc_descriptor): Punt for MODE_VECTOR_BOOL.
87 (add_const_value_attribute): Likewise.
88
89 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
90
91 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
92 handling direct_slp_reduc, allow the PHI arguments to have
93 a different type from the vector elements.
94
95 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
96
97 * tree-vect-stmts.c (vectorizable_condition): Record the loop
98 masks required for extract-last reductions.
99
100 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
101
102 * tree-vect-stmts.c (vect_finish_replace_stmt): Always use the
103 original scalar statement rather than a pattern statement.
104 (vectorizable_condition): Likewise, in the handling of extract-last
105 reductions.
106
107 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
108
109 * tree-vect-loop.c (vectorizable_reduction): Don't use
110 EXTRACT_LAST_REDUCTION for chained reductions.
111
112 2019-12-10 Richard Sandiford <richard.sandiford@arm.com>
113
114 * ipa-utils.h (get_odr_name_for_type): Check for a TYPE_DECL.
115 * ipa-devirt.c (warn_types_mismatch): Don't call xstrdup for the
116 second demangled name.
117
118 2019-12-10 Jakub Jelinek <jakub@redhat.com>
119
120 * config/i386/i386.c (IX86_LEA_PRIORITY): Fix comment typos.
121
122 2019-12-10 Martin Liska <mliska@suse.cz>
123
124 PR tree-optimization/92862
125 * predict.c (predict_paths_leading_to_edge): Fix typo from e to e2.
126 * tree-ssa-loop-niter.c (loop_only_exit_p): Return false
127 instead of true;
128
129 2019-12-09 David Malcolm <dmalcolm@redhat.com>
130
131 * gcc-rich-location.c
132 (maybe_range_label_for_tree_type_mismatch::get_text): Replace
133 label_text ctor call with label_text::borrow.
134 * gcc-rich-location.h (text_range_label::get_text): Replace
135 label_text ctor called with false with label_text::borrow.
136
137 2019-12-09 David Malcolm <dmalcolm@redhat.com>
138
139 * diagnostic-show-locus.c (diagnostic_show_locus): Remove initial
140 newline.
141 (selftest::test_diagnostic_show_locus_unknown_location): Remove
142 initial newline from expected outputs.
143 (selftest::test_one_liner_simple_caret): Likewise.
144 (selftest::test_one_liner_caret_and_range): Likewise.
145 (selftest::test_one_liner_multiple_carets_and_ranges): Likewise.
146 (selftest::test_one_liner_fixit_insert_before): Likewise.
147 (selftest::test_one_liner_fixit_insert_after): Likewise.
148 (selftest::test_one_liner_fixit_remove): Likewise.
149 (selftest::test_one_liner_fixit_replace): Likewise.
150 (selftest::test_one_liner_fixit_replace_non_equal_range):
151 Likewise.
152 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
153 Likewise.
154 (selftest::test_one_liner_fixit_validation_adhoc_locations):
155 Likewise.
156 (selftest::test_one_liner_many_fixits_1): Likewise.
157 (selftest::test_one_liner_many_fixits_2): Likewise.
158 (selftest::test_one_liner_labels): Likewise.
159 (selftest::test_one_liner_simple_caret_utf8): Likewise.
160 (selftest::test_one_liner_caret_and_range_utf8): Likewise.
161 (selftest::test_one_liner_multiple_carets_and_ranges_utf8):
162 Likewise.
163 (selftest::test_one_liner_fixit_insert_before_utf8): Likewise.
164 (selftest::test_one_liner_fixit_insert_after_utf8): Likewise.
165 (selftest::test_one_liner_fixit_remove_utf8): Likewise.
166 (selftest::test_one_liner_fixit_replace_utf8): Likewise.
167 (selftest::test_one_liner_fixit_replace_non_equal_range_utf8):
168 Likewise.
169 (selftest::test_one_liner_fixit_replace_equal_secondary_range_utf8):
170 Likewise.
171 (selftest::test_one_liner_fixit_validation_adhoc_locations_utf8):
172 Likewise.
173 (selftest::test_one_liner_many_fixits_1_utf8): Likewise.
174 (selftest::test_one_liner_many_fixits_2_utf8): Likewise.
175 (selftest::test_one_liner_labels_utf8): Likewise.
176 (selftest::test_add_location_if_nearby): Likewise.
177 (selftest::test_diagnostic_show_locus_fixit_lines): Likewise.
178 (selftest::test_overlapped_fixit_printing): Likewise.
179 (selftest::test_overlapped_fixit_printing_utf8): Likewise.
180 (selftest::test_overlapped_fixit_printing_2): Likewise.
181 (selftest::test_fixit_insert_containing_newline): Likewise.
182 (selftest::test_fixit_insert_containing_newline_2): Likewise.
183 (selftest::test_fixit_replace_containing_newline): Likewise.
184 (selftest::test_fixit_deletion_affecting_newline): Likewise.
185 (selftest::test_line_numbers_multiline_range): Likewise.
186 * diagnostic.c (default_diagnostic_finalizer): Add pp_newline call
187 before call to diagnostic_show_locus.
188 (diagnostic_append_note): Likewise.
189
190 2019-12-09 Martin Sebor <msebor@redhat.com>
191
192 PR middle-end/92761
193 PR middle-end/92762
194 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Tighten
195 up tests.
196 * hash-table.h (hash_table::expand): Use placement new to copy
197 construct objects in uninitialized storage.
198 (hash_table::empty_slow): Avoid invoking copy assignment on
199 uninitialized objects.
200
201 2019-12-09 Lewis Hyatt <lhyatt@gmail.com>
202
203 PR preprocessor/49973
204 * input.c (location_compute_display_column): New function to help with
205 multibyte awareness in diagnostics.
206 (test_cpp_utf8): New self-test.
207 (input_c_tests): Call the new test.
208 * input.h (location_compute_display_column): Declare.
209 * diagnostic-show-locus.c: Pervasive changes to add multibyte awareness
210 to all classes and functions.
211 (enum column_unit): New enum.
212 (class exploc_with_display_col): New class.
213 (class layout_point): Convert m_column member to array m_columns[2].
214 (layout_range::contains_point): Add col_unit argument.
215 (test_layout_range_for_single_point): Pass new argument.
216 (test_layout_range_for_single_line): Likewise.
217 (test_layout_range_for_multiple_lines): Likewise.
218 (line_bounds::convert_to_display_cols): New function.
219 (layout::get_state_at_point): Add col_unit argument.
220 (make_range): Use empty filename rather than dummy filename.
221 (get_line_width_without_trailing_whitespace): Rename to...
222 (get_line_bytes_without_trailing_whitespace): ...this.
223 (test_get_line_width_without_trailing_whitespace): Rename to...
224 (test_get_line_bytes_without_trailing_whitespace): ...this.
225 (class layout): m_exploc changed to exploc_with_display_col from
226 plain expanded_location.
227 (layout::get_linenum_width): New accessor member function.
228 (layout::get_x_offset_display): Likewise.
229 (layout::calculate_linenum_width): New subroutine for the constuctor.
230 (layout::calculate_x_offset_display): Likewise.
231 (layout::layout): Use the new subroutines. Add multibyte awareness.
232 (layout::print_source_line): Add multibyte awareness.
233 (layout::print_line): Likewise.
234 (layout::print_annotation_line): Likewise.
235 (line_label::line_label): Likewise.
236 (layout::print_any_labels): Likewise.
237 (layout::annotation_line_showed_range_p): Likewise.
238 (get_printed_columns): Likewise.
239 (class line_label): Rename m_length to m_display_width.
240 (get_affected_columns): Rename to...
241 (get_affected_range): ...this; add col_unit argument and multibyte
242 awareness.
243 (class correction): Add m_affected_bytes and m_display_cols
244 members. Rename m_len to m_byte_length for clarity. Add multibyte
245 awareness throughout.
246 (correction::insertion_p): Add multibyte awareness.
247 (correction::compute_display_cols): New function.
248 (correction::ensure_terminated): Use new member name m_byte_length.
249 (line_corrections::add_hint): Add multibyte awareness.
250 (layout::print_trailing_fixits): Likewise.
251 (layout::get_x_bound_for_row): Likewise.
252 (test_one_liner_simple_caret_utf8): New self-test analogous to the one
253 with _utf8 suffix removed, testing multibyte awareness.
254 (test_one_liner_caret_and_range_utf8): Likewise.
255 (test_one_liner_multiple_carets_and_ranges_utf8): Likewise.
256 (test_one_liner_fixit_insert_before_utf8): Likewise.
257 (test_one_liner_fixit_insert_after_utf8): Likewise.
258 (test_one_liner_fixit_remove_utf8): Likewise.
259 (test_one_liner_fixit_replace_utf8): Likewise.
260 (test_one_liner_fixit_replace_non_equal_range_utf8): Likewise.
261 (test_one_liner_fixit_replace_equal_secondary_range_utf8): Likewise.
262 (test_one_liner_fixit_validation_adhoc_locations_utf8): Likewise.
263 (test_one_liner_many_fixits_1_utf8): Likewise.
264 (test_one_liner_many_fixits_2_utf8): Likewise.
265 (test_one_liner_labels_utf8): Likewise.
266 (test_diagnostic_show_locus_one_liner_utf8): Likewise.
267 (test_overlapped_fixit_printing_utf8): Likewise.
268 (test_overlapped_fixit_printing): Adapt for changes to
269 get_affected_columns, get_printed_columns and class corrections.
270 (test_overlapped_fixit_printing_2): Likewise.
271 (test_linenum_sep): New constant.
272 (test_left_margin): Likewise.
273 (test_offset_impl): Helper function for new test.
274 (test_layout_x_offset_display_utf8): New test.
275 (diagnostic_show_locus_c_tests): Call new tests.
276
277 2019-12-09 Eric Botcazou <ebotcazou@adacore.com>
278
279 * tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute
280 TYPE_CANONICAL from the element type only if it is true. Remove a few
281 obsolete lines and adjust recursive call.
282 (fld_process_array_type): Adjust call to build_array_type_1.
283 (build_array_type): Likewise.
284 (build_nonshared_array_type): Likewise.
285
286 2019-12-09 Andrew Stubbs <ams@codesourcery.com>
287
288 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Change
289 %s to %o in asm output.
290 (gather<mode>_insn_2offsets<exec>): Likewise.
291
292 2019-12-09 Richard Earnshaw <rearnsha@arm.com>
293
294 * config/arm/t-multilib: Use arm->thumb multilib reuse rules
295 on a-profile.
296
297 2019-12-09 Segher Boessenkool <segher@kernel.crashing.org>
298
299 * config/rs6000/rs6000.md (unnamed mfcr define_insn): Name this
300 set<mode>_cc.
301 (unnamed define_insn_and_split): Delete.
302 (unnamed define_insn): Delete.
303 (unnamed define_insn): Delete.
304 (unnamed define_split): Delete.
305
306 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
307
308 * regstat.c (regstat_bb_compute_calls_crossed): Add a cast to
309 avoid a warning.
310
311 2019-12-09 Matthew Malcomson <matthew.malcomson@arm.com>
312
313 PR middle-end/92410
314 * bb-reorder.c (pass_reorder_blocks::execute): Recompute
315 dataflow luids once basic blocks have been reordered.
316 * haifa-sched.c (reemit_notes): Create df insn record for each
317 new note.
318 * regstat.c (regstat_bb_compute_calls_crossed): Assert every
319 insn has an insn record before trying to use it.
320
321 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
322
323 * common/config/i386/i386-common.c
324 (OPTION_MASK_ISA_AVX5124FMAPS_SET): Rename to
325 OPTION_MASK_ISA2_AVX5124FMAPS_SET.
326 (OPTION_MASK_ISA_AVX5124VNNIW_SET, OPTION_MASK_ISA_AVX512BF16_SET,
327 OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
328 OPTION_MASK_ISA_PCONFIG_SET, OPTION_MASK_ISA_WBNOINVD_SET,
329 OPTION_MASK_ISA_SGX_SET, OPTION_MASK_ISA_CX16_SET,
330 OPTION_MASK_ISA_MOVBE_SET, OPTION_MASK_ISA_PTWRITE_SET,
331 OPTION_MASK_ISA_MWAITX_SET, OPTION_MASK_ISA_CLZERO_SET,
332 OPTION_MASK_ISA_RDPID_SET, OPTION_MASK_ISA_VAES_SET,
333 OPTION_MASK_ISA_MOVDIR64B_SET, OPTION_MASK_ISA_WAITPKG_SET,
334 OPTION_MASK_ISA_CLDEMOTE_SET, OPTION_MASK_ISA_ENQCMD_SET,
335 OPTION_MASK_ISA_AVX5124FMAPS_UNSET,
336 OPTION_MASK_ISA_AVX5124VNNIW_UNSET,
337 OPTION_MASK_ISA_AVX512BF16_UNSET,
338 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET,
339 OPTION_MASK_ISA_PCONFIG_UNSET, OPTION_MASK_ISA_WBNOINVD_UNSET,
340 OPTION_MASK_ISA_SGX_UNSET, OPTION_MASK_ISA_CX16_UNSET,
341 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_PTWRITE_UNSET,
342 OPTION_MASK_ISA_MWAITX_UNSET, OPTION_MASK_ISA_CLZERO_UNSET,
343 OPTION_MASK_ISA_RDPID_UNSET, OPTION_MASK_ISA_VAES_UNSET,
344 OPTION_MASK_ISA_MOVDIR64B_UNSET, OPTION_MASK_ISA_WAITPKG_UNSET,
345 OPTION_MASK_ISA_CLDEMOTE_UNSET, OPTION_MASK_ISA_ENQCMD_UNSET,
346 OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
347 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
348 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
349 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
350 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
351 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
352 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
353 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
354 OPTION_MASK_ISA_ENQCMD): Ditto.
355 * config/i386/i386-builtin.def
356 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
357 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
358 OPTION_MASK_ISA_WBNOINVD, OPTION_MASK_ISA_PTWRITE,
359 OPTION_MASK_ISA_RDPID, OPTION_MASK_ISA_VAES,
360 OPTION_MASK_ISA_MOVDIR64B, OPTION_MASK_ISA_ENQCMD): Ditto.
361 * config/i386/i386-builtins.c (OPTION_MASK_ISA_MWAITX,
362 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_WAITPKG,
363 OPTION_MASK_ISA_CLDEMOTE, OPTION_MASK_ISA_WBNOINVD): Ditto.
364 * config/i386/i386-c.c
365 (OPTION_MASK_ISA_AVX5124FMAPS, OPTION_MASK_ISA_AVX5124VNNIW,
366 OPTION_MASK_ISA_AVX512BF16, OPTION_MASK_ISA_AVX512VP2INTERSECT,
367 OPTION_MASK_ISA_PCONFIG, OPTION_MASK_ISA_WBNOINVD,
368 OPTION_MASK_ISA_SGX, OPTION_MASK_ISA_CX16, OPTION_MASK_ISA_MOVBE,
369 OPTION_MASK_ISA_PTWRITE, OPTION_MASK_ISA_MWAITX,
370 OPTION_MASK_ISA_CLZERO, OPTION_MASK_ISA_RDPID,
371 OPTION_MASK_ISA_VAES, OPTION_MASK_ISA_MOVDIR64B,
372 OPTION_MASK_ISA_WAITPKG, OPTION_MASK_ISA_CLDEMOTE,
373 OPTION_MASK_ISA_ENQCMD): Ditto.
374 * config/i386/i386-option.c: Ditto
375 * config/i386/i386.opt: Ditto..
376 * config/i386/i386.h: (TARGET_ISA_AVX5124FMAPS,
377 TARGET_ISA_AVX5124VNNIW, TARGET_ISA_AVX512BF16,
378 TARGET_ISA_AVX512VP2INTERSECT, TARGET_ISA_PCONFIG,
379 TARGET_ISA_WBNOINVD, TARGET_ISA_SGX, TARGET_ISA_CX16,
380 TARGET_ISA_MOVBE, TARGET_ISA_PTWRITE, TARGET_ISA_MWAITX,
381 TARGET_ISA_CLZERO, TARGET_ISA_RDPID, TARGET_ISA_VAES,
382 TARGET_ISA_MOVDIR64B, TARGET_ISA_WAITPKG, TARGET_ISA_CLDEMOTE)
383 TARGET_ISA_ENQCMD): Ditto.
384
385 2019-12-09 Sudakshina Das <sudi.das@arm.com>
386 Richard Sandiford <richard.sandiford@arm.com>
387
388 * tree-vect-stmt.c (vectorizable_shift): Condition ndts for
389 vect_model_simple_cost call on scalar_shift_arg.
390
391 2019-12-09 Jakub Jelinek <jakub@redhat.com>
392
393 PR tree-optimization/92834
394 * match.pd (A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
395 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): New simplifications.
396
397 2019-12-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
398
399 PR tree-optimization/89007
400 * tree-vect-patterns.c (vect_recog_average_pattern): If there is no
401 target support available, generate code to distribute rshift over plus
402 and add a carry.
403
404 2019-12-09 Martin Liska <mliska@suse.cz>
405
406 PR ipa/92737
407 * cgraph.c (symbol_table_test::symbol_table_test): Fix
408 coding style.
409 * cgraph.h (symtab_node::symtab_node): New constructor.
410 (cgraph_node::cgraph_node): Likewise.
411 (varpool_node::varpool_node): Likewise.
412 (symbol_table::allocate_cgraph_symbol): Use newly
413 created constructor.
414 (symbol_table::allocate_cgraph_symbol): Remove.
415 * cgraphunit.c (symtab_terminator): Likewise.
416 * varpool.c (varpool_node::create_empty): Use newly
417 created constructor.
418
419 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
420
421 PR target/92686
422 * config/i386/sse.md
423 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
424 *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
425 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
426 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
427 * config/i386/i386.c (ix86_print_operand): New operand substitution.
428 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
429 New function.
430 (ix86_expand_sse_cmp): Relax condition for integer mask from
431 512-bit vector to all 128/256/512-bit vector. Delete code gen
432 for avx512f compare patterns since we have generic pattern now.
433 (ix86_expand_sse_movcc): Adjust condition and codegen for
434 maskcmp.
435 (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
436 when corresponding vector compare is available.
437
438 2019-12-08 Sandra Loosemore <sandra@codesourcery.com>
439
440 Revert:
441 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
442
443 * config/nios2/linux.h (LINK_EH_SPEC): Define.
444
445 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
446
447 * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
448 * cgraph.h (cgrpah_node): Likewise.
449 (tp_first_run_node_cmp): Deeclare.
450 * cgraphunit.c (node_cmp): Rename to ...
451 (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
452 clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
453 (expand_all_functions): Collect tp_first_run and normal functions to
454 two vectors so the other functions remain sorted. Do not check for
455 flag_profile_reorder_functions it is function local flag.
456 * profile.c (compute_value_histograms): Update tp_first_run printing.
457
458 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
459
460 * opts.c (common_handle_option): Do not clear ipa_reference for
461 -fprofile-use.
462
463 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
464
465 * ipa-split.c (split_function): Preserve 0 tp_first_run.
466
467 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
468
469 * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
470 sanity check.
471
472 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
473
474 PR tree-optimization/92860
475 * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
476 Optimization flag.
477
478 2019-12-07 Marek Polacek <polacek@redhat.com>
479
480 PR c++/91678 - wrong error with decltype and location wrapper.
481 * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
482
483 2019-12-07 Eric Botcazou <ebotcazou@adacore.com>
484
485 PR middle-end/90840
486 * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
487 sure to pass a valid inner mode in calls to simplify_gen_subreg.
488
489 2019-12-07 Tobias Burnus <tobias@codesourcery.com>
490 David Malcolm <dmalcolm@redhat.com>
491 Jakub Jelinek <jakub@redhat.com>
492
493 PR c/87488
494 * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
495 instead of ST sequence to terminate OSC 8 strings.
496
497 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com>
498 Vladimir Makarov <vmakarov@redhat.com>
499
500 PR rtl-optimization/92176
501 * lra.c (simplify_subreg_regno): Don't permit unconditional
502 changing mode for LRA too.
503
504 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
505
506 * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
507 (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
508 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
509 Handle them.
510
511 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
512
513 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
514 in the asm output.
515
516 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
517
518 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
519 (VEC_1REG_ALT): Likewise.
520 (VEC_ALL1REG_MODE): New mode iterator.
521 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
522 (VEC_1REG_INT_ALT): Likewise.
523 (VEC_ALL1REG_INT_MODE): New mode interator.
524 (VEC_ALL1REG_INT_ALT): Likewise.
525 (VEC_REG_MODE): Remove V64QI and V64HI.
526 (VEC_ALLREG_MODE): New mode interator.
527 (vec_merge): Change to VEC_ALLREG_MODE.
528 (vec_merge_with_clobber): Likewise.
529 (vec_merge_with_vcc): Likewise.
530 (mov<mode>): Likewise.
531 (mov<mode>_unspec): Likewise.
532 (*mov<mode>): Change to VEC_ALL1REG_MODE.
533 (mov<mode>_exec): Likewise.
534 (*mov<mode>_exec_match): Likewise.
535 (mov<mode>_sgprbase): Likewise.
536 (reload_in<mode>): Change to VEC_ALLREG_MODE.
537 (reload_out<mode>): Likewise.
538 (scalar address splits): Likewise.
539 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
540 (vec_set<mode>): Change to VEC_ALLREG_MODE.
541 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
542 (vec_duplicate<mode><exec>): Likewise.
543 (vec_extract<mode><scalar_mode>): Likewise.
544 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
545 (gather_load<mode>): Likewise.
546 (gather<mode>_exec): Likewise.
547 (gather<mode>_expr<exec>): Likewise.
548 (gather<mode>_insn_1offset<exec>): Likewise.
549 (gather<mode>_insn_1offset_ds<exec>): Likewise.
550 (gather<mode>_insn_2offsets<exec>): Likewise.
551 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
552 (VEC_INT_MODE): Remove V64QI and V64HI.
553 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
554 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
555 VEC_ALL1REG_MODE.
556 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
557 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
558 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
559 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
560 (maskstore<mode>di): Likewise.
561 (mask_gather_load<mode>): Likewise.
562 (mov_from_lane63_<mode>): Likewise.
563 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
564 and V64HImode vectorization.
565 (gcn_related_vector_mode): New function.
566 (TARGET_VECTORIZE_RELATED_MODE): New define.
567
568 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
569 Kwok Cheung Yeung <kcy@codesourcery.com>
570
571 * omp-low.c (lower_omp_target): For optional arguments, deref once
572 more to obtain the type.
573
574 2019-12-06 Richard Biener <rguenther@suse.de>
575
576 * match.pd (nop_convert): Remove empty match. Use nop_convert?
577 everywhere.
578
579 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
580
581 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
582 for empty vectors. Avoid using ordered_remove and instead
583 shuffle the vector as we go.
584
585 2019-12-06 Richard Biener <rguenther@suse.de>
586
587 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
588 VIEW_CONVERT{0,1,2}.
589 (expr::opt_grp): Add and initialize.
590 (lower_opt_convert): Rename to ...
591 (lower_opt): ... and work on opt_grp, simply switching operations
592 from being optional to being present or not.
593 (has_opt_convert): Rename to ...
594 (has_opt): ... and adjust.
595 (parser::parse_operation): Return the optional opt_grp,
596 remove special-casing of conditional operations and more generally
597 parse [digit]'?'.
598 (parser::parse_expr): Stick on the parsed opt_grp and perform
599 rough verification.
600 (parser::parse_for): Remove now unnecessary code.
601 (main): Likewise.
602 * doc/match-and-simplify.texi: Mention ? now works on all
603 unary operations and also match predicates.
604
605 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
606
607 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
608 functions, not inline clones.
609
610 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
611
612 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
613
614 2019-12-06 Richard Biener <rguenther@suse.de>
615
616 * genmatch.c (c_expr::gen_transform): Emit newlines from line
617 number changes rather than after every semicolon.
618
619 2019-12-06 Richard Biener <rguenther@suse.de>
620
621 PR tree-optimization/92819
622 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
623 into the last lane. For two-element vectors try inserting
624 into the last lane when inserting into the first fails.
625
626 2019-12-06 Jakub Jelinek <jakub@redhat.com>
627
628 * common.opt (fprofile-partial-training): Terminate description with
629 full stop.
630
631 2019-12-05 Martin Sebor <msebor@redhat.com>
632
633 PR middle-end/92622
634 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
635 left uninitialized by get_addr_base_and_unit_offset on failure.
636
637 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
638
639 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
640 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
641 (detect_type_change): Likewise.
642 (detect_type_change_ssa): Likewise.
643 (ipa_analyze_virtual_call_uses): Update.
644
645 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
646
647 * config/nios2/linux.h (LINK_EH_SPEC): Define.
648
649 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
650
651 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
652
653 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
654
655 * cgraphclones.c (localize_profile): New function.
656 (cgraph_node::create_clone): Use it for partial profiles.
657 * common.opt (fprofile-partial-training): New flag.
658 * doc/invoke.texi (-fprofile-partial-training): Document.
659 * ipa-cp.c (update_profiling_info): For partial profiles do not
660 set function profile to zero.
661 * profile.c (compute_branch_probabilities): With partial profile
662 watch if edge count is zero and turn all probabilities to guessed.
663 (compute_branch_probabilities): For partial profiles do not apply
664 profile when entry count is zero.
665 * tree-profile.c (tree_profiling): Only do value_profile_transformations
666 when profile is read.
667
668 2019-12-05 Sudakshina Das <sudi.das@arm.com>
669
670 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
671 check from if condition.
672
673 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
674
675 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
676 and Fortran's optional arguments, unconditionally add the is-present
677 condition before the libgomp call.
678
679 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
680
681 PR middle-end/92768
682 * tree-core.h (OEP_BITWISE): New flag.
683 * fold-const.c (operand_compare::operand_equal_p): Handle it.
684 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
685
686 2019-12-05 Richard Biener <rguenther@suse.de>
687
688 PR middle-end/92818
689 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
690 heuristics on what don't care element to choose.
691 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
692
693 2019-12-05 Martin Liska <mliska@suse.cz>
694
695 PR gcov-profile/92817
696 * coverage.c (build_gcov_exit_decl): Remove superfluous
697 void_type_node.
698
699 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
700
701 * config/msp430/msp430.md (cbranch<mode>4): Use
702 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
703 dest operand of CMP instruction.
704 (cbranchpsi4_real): Likewise.
705 (cbranchqi4_real): Likewise.
706 (cbranchhi4_real): Likewise.
707 (cbranchpsi4_reversed): Likewise.
708 (cbranchqi4_reversed): Likewise.
709 (cbranchhi4_reversed): Likewise.
710
711 2019-12-05 Richard Biener <rguenther@suse.de>
712
713 PR tree-optimization/92803
714 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
715 invariant vector construction.
716
717 2019-12-05 Martin Liska <mliska@suse.cz>
718
719 PR gcov-profile/91971
720 * coverage.c (coverage_init): Mangle full path
721 only when -fprofile-dir is used.
722
723 2019-12-05 Jakub Jelinek <jakub@redhat.com>
724
725 PR target/92791
726 * config/i386/i386.md (movstrict<mode>): Move test for
727 TARGET_PARTIAL_REG_STALL and not optimizing for size from
728 expander's condition to the body - FAIL; in that case.
729
730 2019-12-03 Martin Sebor <msebor@redhat.com>
731
732 PR middle-end/91582
733 * builtins.c (gimple_call_alloc_size): New function.
734 (compute_objsize): Add argument. Call gimple_call_alloc_size.
735 Handle variable offsets and indices.
736 * builtins.h (gimple_call_alloc_size): Declare.
737 (compute_objsize): Add argument.
738 * gimple-ssa-warn-restrict.c: Remove assertions.
739 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
740
741 2019-12-04 Julian Brown <julian@codesourcery.com>
742
743 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
744
745 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
746
747 PR bootstrap/92661
748 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
749 rs6000.h.
750 (altivec_overloaded_builtins): Move to rs6000-call.c.
751 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
752 rs6000-c.c.
753 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
754 (altivec_overloaded_builtins): Moved from rs6000-c.c.
755 (rs6000_common_init_builtins): Do no define builtins that overload
756 builtins that have been disabled.
757
758 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
759
760 * config/arm/arm.c (arm_option_override_internal):
761 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
762
763 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
764
765 * config/aarch64/aarch64.c
766 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
767 (thunderx_tunings): Likewise.
768 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
769 (thunderx2t99_tunings): Likewise.
770 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
771 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
772
773 2019-12-04 Richard Biener <rguenther@suse.de>
774
775 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
776 empty CTOR and memset partial-def registering. Take advantage
777 of fancy offset analysis in memset handling.
778
779 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
780
781 * fold-const.c (native_encode_vector_part): Handle
782 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
783 (native_decode_vector_tree): Delete, moving the bulk of the code to...
784 (native_interpret_vector_part): ...this new function. Use a pointer
785 and length instead of a vec<> and start index.
786 (native_interpret_vector): Use native_interpret_vector_part.
787 (fold_view_convert_vector_encoding): Likewise.
788
789 2019-12-04 Richard Biener <rguenther@suse.de>
790
791 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
792 non-constant defs in the most trivial way.
793 (vn_reference_lookup_3): Also push down SSA partial defs.
794
795 2019-12-04 Martin Liska <mliska@suse.cz>
796
797 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
798 Initialize count of newly created BB.
799
800 2019-12-04 Jakub Jelinek <jakub@redhat.com>
801
802 PR tree-optimization/92734
803 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
804 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
805
806 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
807
808 PR target/92760
809 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
810 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
811
812 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
813
814 * ipa-fnsummary.c: Include tree-into-ssa.h.
815 (compute_fn_summary): Call update_ssa.
816
817 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
818
819 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
820 is set only for symbol in comdat group.
821 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
822
823 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
824
825 * cgraph.c: Include tree-into-ssa.h
826 (cgraph_node::get_body): Call update_ssa.
827 * cgraphunit.c (cgraph_node::expand): Likewise.
828 * lto-streamer-in.c (input_function): Do not call update_ssa.
829
830 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
831
832 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
833 an array element size if array_element_size is already an invariant.
834 Similarly don't gimplify and install a field offset if
835 component_ref_field_offset is already an invariant.
836
837 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
838
839 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
840 with POLY_INT_CST size is made to a fixed-size object, force the
841 object to live in memory.
842
843 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
844
845 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
846 for the data mode.
847
848 2019-12-03 Richard Biener <rguenther@suse.de>
849
850 PR tree-optimization/92758
851 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
852 operation on uniform vectors.
853
854 2019-12-03 Richard Biener <rguenther@suse.de>
855
856 PR tree-optimization/92645
857 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
858 from or to a properly aligned register variable.
859
860 2019-12-03 Matthias Klose <doko@ubuntu.com>
861
862 * Makefile.in (SOURCES): Add doc/lto-dump.1.
863 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
864 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
865
866 2019-12-03 Richard Biener <rguenther@suse.de>
867
868 PR tree-optimization/92751
869 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
870 when a clobber ends up in the partial-def vector.
871 (vn_reference_lookup_3): Let clobbers be handled by the
872 assignment from CTOR handling.
873
874 2019-12-03 Jakub Jelinek <jakub@redhat.com>
875
876 PR tree-optimization/92734
877 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
878 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
879 inner subtraction.
880
881 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
882 Jakub Jelinek <jakub@redhat.com>
883
884 PR target/92744
885 * config/i386/i386.md (peephole2 for *swap<mode>): Use
886 general_reg_operand predicates instead of register_operand.
887
888 2019-12-03 Richard Biener <rguenther@suse.de>
889
890 PR tree-optimization/92645
891 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
892 a full def of a vector via a BIT_INSERT_EXPR.
893
894 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
895
896 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
897 static.
898 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
899 decl.
900
901 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
902
903 PR middle-end/92741
904 * fold-const.c (fold_convertible_p): Check vector types more
905 thoroughly.
906
907 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
908
909 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
910 (aarch64_expand_mov_immediate): Use it when attempting to measure
911 the length of an SVE vector.
912 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
913 SVE is enabled.
914
915 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
916
917 * config/aarch64/aarch64-sve-builtins.h
918 (gimple_folder::force_vector): Declare.
919 * config/aarch64/aarch64-sve-builtins.cc
920 (gimple_folder::force_vector): New function.
921 * config/aarch64/aarch64-sve-builtins-base.cc
922 (svcmp_impl::fold): Likewise.
923 (svdup_impl::fold): Handle svdup_z too.
924
925 2019-12-02 Martin Liska <mliska@suse.cz>
926
927 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
928 function.
929 (debug_tree_odr_name): New.
930 * ipa-utils.h (get_odr_name_for_type): New.
931
932 2019-12-02 Richard Biener <rguenther@suse.de>
933
934 PR tree-optimization/92742
935 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
936 touch the def-type but verify it is consistent with the
937 original stmts.
938
939 2019-12-02 Jakub Jelinek <jakub@redhat.com>
940
941 PR tree-optimization/92712
942 * match.pd ((A * B) +- A -> (B +- 1) * A,
943 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
944 even when we don't know anything about range of A, but do know
945 something about range of B and the simplification won't introduce
946 new UB.
947
948 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
949
950 PR ipa/92133
951 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
952 (ipa-cp-min-recursive-probability): Likewise.
953 * params.opt (ipa-cp-max-recursive-depth): New.
954 (ipa-cp-min-recursive-probability): Likewise.
955 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
956 val_p and unlimited.
957 (self_recursively_generated_p): New function.
958 (get_val_across_arith_op): Likewise.
959 (propagate_vals_across_arith_jfunc): Add constant propagation for
960 self-recursive function.
961 (incorporate_penalties): Do not penalize pure self-recursive function.
962 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
963 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
964 (get_info_about_necessary_edges): Relax hotness check for edge to
965 self-recursive function.
966 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
967
968 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
969
970 PR target/92499
971
972 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
973 objects of flexible types to be small if they have internal linkage
974 or are declared extern.
975 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
976 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
977 instead of the size of the object initializer.
978 * tree.c (flexible_array_type_p): Move from C front end, and
979 generalize to handle fields in non-C structures.
980 * tree.h (flexible_array_type_p): Declare.
981
982 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
983
984 * profile-count.h (profile_count::operator<): Use IPA value for
985 comparsion.
986 (profile_count::operator>): Likewise.
987 (profile_count::operator<=): Likewise.
988 (profile_count::operator>=): Likewise.
989 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
990
991 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
992
993 * ipa-inline.c (compute_max_insns): Return int64_t.
994 (inline_small_functions): Simplify.
995
996 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
997
998 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
999 scaling happen.
1000
1001 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1002
1003 * cgraph.h (symtab_node): Add symver flag.
1004 * cgraphunit.c (process_symver_attribute): New.
1005 (process_common_attributes): Use process_symver_attribute.
1006 * lto-cgraph.c (lto_output_node): Stream symver.
1007 (lto_output_varpool_node): Stream symver.
1008 (input_overwrite_node): Stream symver.
1009 (input_varpool_node): Stream symver.
1010 * output.h (do_assemble_symver): Decalre.
1011 * symtab.c (symtab_node::dump_base): Dump symver.
1012 (symtab_node::verify_base): Verify symver.
1013 (symtab_node::resolve_alias): Handle symver.
1014 * varasm.c (do_assemble_symver): New function.
1015 * varpool.c (varpool_node::assemble_aliases): Use it.
1016 * doc/extend.texi: (symver attribute): Document.
1017 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
1018
1019 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
1020
1021 * target.h (type_context_kind): New enum.
1022 (verify_type_context): Declare.
1023 * target.def (verify_type_context): New target hook.
1024 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
1025 * doc/tm.texi: Regenerate.
1026 * tree.c (verify_type_context): New function.
1027 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
1028 Declare.
1029 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
1030 New function.
1031 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
1032 (TARGET_VERIFY_TYPE_CONTEXT): Define.
1033
1034 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
1035
1036 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
1037 * cgraph.h (cgraph_node): Add unit_id and
1038 merged_extern_inline.
1039 (symbol_table): Add max_unit.
1040 (symbol_table::symbol_table): Initialize it.
1041 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
1042 merged_comdat, merged_extern_inline.
1043 (cgraph_node::create_clone): Likewise.
1044 (cgraph_node::create_version_clone): Likewise.
1045 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
1046 calls.
1047 * ipa-fnsummary.h (cross_module_call_p): New inline function.
1048 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
1049 * ipa-inline.c (inline_small_functions): Likewise.
1050 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
1051 copy merged_comdat and merged_extern_inline.
1052 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
1053 merged_extern_inline and unit_id.
1054 (input_overwrite_node): Stream in these.
1055 (input_cgraph_1): Set unit_base.
1056 * lto-streamer.h (lto_file_decl_data): Add unit_base.
1057 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
1058
1059 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
1060
1061 * gcc.c (process_command): Only warn about an ineffective `-x'
1062 option if any input files have actually been supplied.
1063
1064 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
1065
1066 * doc/install.texi (Options specification): Remove the list of
1067 target library subdirectories supporting
1068 `--enable-version-specific-runtime-libs'. Document defaults for
1069 the option.
1070
1071 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
1072
1073 PR rtl-optimization/92283
1074 * lra.c (lra): Update reg notes after inheritance sub-pass and
1075 before constraint sub-pass.
1076
1077 2019-11-29 Richard Biener <rguenther@suse.de>
1078
1079 PR tree-optimization/91003
1080 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
1081 operand number, avoid handling the non-condition operands of
1082 COND_EXPRs as comparisons.
1083 (vect_get_constant_vectors): Pass down the operand number.
1084 (vect_get_slp_defs): Likewise.
1085
1086 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
1087
1088 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
1089 generic_expr_could_trap_p to check if the condition of COND_EXPR or
1090 VEC_COND_EXPR can trap.
1091
1092 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1093
1094 PR tree-optimization/92677
1095 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
1096 to zero when dissolving a group of strided accesses.
1097
1098 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1099
1100 PR tree-optimization/92596
1101 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
1102 operations.
1103 (vectorizable_operation): Likewise, instead of relying on
1104 vect_get_mask_type_for_stmt to do this.
1105 (vect_get_vector_types_for_stmt): Always return a vector type
1106 immediately, rather than deferring the choice for boolean results.
1107 Use a vector mask type instead of a normal vector if
1108 vect_use_mask_type_p.
1109 (vect_get_mask_type_for_stmt): Delete.
1110 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
1111 mask_producers argument and special boolean_type_node handling.
1112 (vect_determine_vf_for_stmt): Remove mask_producers argument and
1113 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
1114 (vect_determine_vectorization_factor): Update call accordingly.
1115 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
1116 boolean_type_node handling.
1117 (vect_slp_analyze_node_operations_1): Likewise.
1118
1119 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1120
1121 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
1122 (vect_use_mask_type_p): New function.
1123 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
1124 mask precision to the pattern statement.
1125 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
1126 and use it to initialize the new stmt's mask precision.
1127 (search_type_for_mask_1): Delete.
1128 (search_type_for_mask): Replace with...
1129 (integer_type_for_mask): ...this new function. Use the information
1130 cached in the stmt_vec_info.
1131 (vect_recog_bool_pattern): Update accordingly.
1132 (build_mask_conversion): Pass the scalar type associated with the
1133 mask type to append_pattern_def_seq.
1134 (vect_recog_mask_conversion_pattern): Likewise. Call
1135 integer_type_for_mask instead of search_type_for_mask.
1136 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
1137 of search_type_for_mask.
1138 (possible_vector_mask_operation_p): New function.
1139 (vect_determine_mask_precision): Likewise.
1140 (vect_determine_stmt_precisions): Call it.
1141
1142 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1143
1144 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
1145 the slp_tree parameter with a group size parameter.
1146 (vect_get_mask_type_for_stmt): Likewise.
1147 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
1148 (vect_get_mask_type_for_stmt): Likewise.
1149 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
1150 call accordingly.
1151
1152 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1153
1154 * tree-vect-stmts.c (vectorizable_operation): Punt early
1155 on codes that are handled elsewhere.
1156
1157 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1158
1159 * doc/sourcebuild.texi (vect_bool_cmp): Document.
1160 * tree-vect-patterns.c (search_type_for_mask_1): If neither
1161 operand to a boolean comparison is a natural vector mask,
1162 handle both operands like normal integers instead.
1163
1164 2019-11-29 Richard Biener <rguenther@suse.de>
1165
1166 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
1167 out early for too large objects.
1168
1169 2019-11-29 Martin Jambor <mjambor@suse.cz>
1170
1171 PR ipa/92476
1172 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
1173 the summary only if the summary exists.
1174 (find_more_scalar_values_for_callers_subset): Check node_dead in
1175 the summary only if the summary exists.
1176 (ipcp_store_bits_results): Ignore nodes without lattices.
1177 (ipcp_store_vr_results): Likewise.
1178 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
1179 header files required by them.
1180 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
1181
1182 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
1183
1184 PR tree-optimization/92710
1185 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
1186 vector mask arguments.
1187
1188 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
1189
1190 * profile-count.c (profile_count::to_cgraph_frequency,
1191 profile_count::to_sreal_scale): Check for compaibility of counts.
1192 * profile-count.h (compatible_p): Make public; add checking for
1193 global0 versus global types.
1194 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
1195
1196 2019-11-29 Richard Biener <rguenther@suse.de>
1197
1198 PR tree-optimization/92715
1199 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
1200 out for uniform vectors and source vectors with less elements
1201 than the destination.
1202
1203 2019-11-29 Martin Liska <mliska@suse.cz>
1204
1205 PR lto/91574
1206 * ipa-devirt.c (types_same_for_odr): Check for existence
1207 of TYPE_NAMEs first.
1208
1209 2019-11-29 Richard Biener <rguenther@suse.de>
1210
1211 PR tree-optimization/92704
1212 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
1213 in loops performing only loads.
1214
1215 2019-11-29 Julian Brown <julian@codesourcery.com>
1216
1217 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
1218 BT_DFLOAT128_PTR) Remove.
1219 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
1220 TI_DFLOAT128_PTR_TYPE): Remove.
1221 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
1222 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
1223 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
1224 dfloat128_ptr_type_node): Remove macros.
1225
1226 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1227
1228 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
1229 formatting.
1230 (*movdi_internal64): Ditto.
1231
1232 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1233
1234 PR target/92602
1235 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
1236 indexed_or_indirect_operand to be memory_operand.
1237 (bswap<mode>2_store for HSI): Ditto.
1238 (bswapdi2_load): Ditto.
1239 (bswapdi2_store): Ditto.
1240
1241 2019-11-28 Martin Liska <mliska@suse.cz>
1242
1243 PR debug/46558
1244 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
1245 headers for translation.
1246
1247 2019-11-28 Martin Liska <mliska@suse.cz>
1248
1249 PR lto/92609
1250 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
1251 consistently.
1252
1253 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1254
1255 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
1256 checks.
1257
1258 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1259
1260 * profile-count.c (profile_count::combine_with_ipa_count): Return
1261 uninitialized count if called on ininitialized count.
1262
1263 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1264
1265 * ipa-inline-transform.c (inline_transform): Scale profile before
1266 redirecting.
1267
1268 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1269
1270 * profile-count.h (profile_count::max): Work on profiles of different
1271 type.
1272 (profile_count::apply_scale): Be sure that ret is not local or global0
1273 type if num is global.
1274
1275 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1276
1277 * profile-count.h (profile_count::max): Work on profiles of different
1278 type.
1279 (profile_count::apply_scale): Be sure that ret is not local or global0
1280 type if num is global.
1281
1282 2019-11-28 Martin Jambor <mjambor@suse.cz>
1283
1284 PR ipa/92697
1285 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
1286 ifunc_resolvers.
1287 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
1288 Removed trailig whitespace.
1289
1290 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1291
1292 * profile-count.h (profile_count::combine_with_ipa_count_within):
1293 Declare.
1294 * profile-count.c (profile_count::combine_with_ipa_count_within):
1295 New.
1296 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
1297 it.
1298
1299 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1300
1301 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
1302 of counters are done same way.
1303
1304 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1305
1306 * ipa-cp.c (update_profiling_info): Fix scaling.
1307
1308 2019-11-28 Richard Biener <rguenther@suse.de>
1309
1310 PR tree-optimization/92645
1311 * tree-inline.c (remap_gimple_stmt): When the return value
1312 is not wanted, elide GIMPLE_RETURN.
1313
1314 2019-11-28 Richard Biener <rguenther@suse.de>
1315
1316 PR tree-optimization/92645
1317 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
1318 conversions inside a mode class. Remove restriction on
1319 preserving the element size.
1320 (simplify_vector_constructor): Deal with the above and for
1321 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
1322 and VEC_PACK_TRUNC_EXPR.
1323
1324 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
1325
1326 Must use push insn to pass varargs arguments of DFmode because
1327 otherwise the middle-end generates wrong code.
1328
1329 PR target/92055
1330 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
1331
1332 2019-11-28 Jakub Jelinek <jakub@redhat.com>
1333
1334 PR tree-optimization/92691
1335 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
1336 in function comment.
1337 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
1338 calls, return !handle_printf_call rather than always returning true.
1339 (check_and_optimize_stmt): Describe return value meaning in function
1340 comment. Formatting fix.
1341
1342 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
1343
1344 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
1345 combination of globa0 and global counters..
1346
1347 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
1348
1349 PR target/92566
1350 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
1351 by VECTOR_UNIT_NONE_P instead.
1352
1353 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
1354
1355 * config/i386/sse.md (avx512f_maskcmp<mode>3):
1356 Refine VF to VF_AVX512VL.
1357
1358 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
1359
1360 * config/rs6000/rs6000.md (movsi_internal): Reformat.
1361 (movdi_internal64): Reformat.
1362
1363 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
1364
1365 PR bootstrap/92661
1366 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
1367 builtin if we don't have an actual type.
1368 (builtin_function_type): If the builtin function uses a DFP type
1369 and decimal float has been disabled, then return NULL_TREE.
1370
1371 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1372
1373 PR rtl-optimization/92510
1374 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
1375 of comparison into a comparison with different mode if both imode and
1376 omode are scalar integral modes.
1377
1378 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
1379
1380 PR rtl-optimization/90007
1381 * recog.c (constrain_operands): Permit hard registers too for
1382 memory when LRA is used.
1383
1384 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1385
1386 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
1387 between Coldfire and regular m68k.
1388 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
1389
1390 2019-11-27 Richard Biener <rguenther@suse.de>
1391
1392 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1393 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
1394 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
1395 * optabs-tree.c (supportable_convert_operation): Do not call
1396 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
1397 * optabs-tree.h (supportable_convert_operation): Adjust.
1398 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
1399 * doc/tm.texi: Regenerate.
1400 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
1401 * tree-vect-generic.c (expand_vector_conversion): Likewise.
1402 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
1403 unused decl parameter and adjust.
1404 (vect_create_vectorized_promotion_stmts): Likewise.
1405 (vectorizable_conversion): Adjust.
1406
1407 2019-11-27 Richard Biener <rguenther@suse.de>
1408
1409 PR tree-optimization/92690
1410 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
1411 converting elements not originally converted.
1412
1413 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
1414
1415 PR middle-end/92463
1416 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
1417 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
1418 mpfr_rnd_t instead of mp_rnd_t.
1419 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
1420 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
1421 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
1422 Use mpfr_exp_t instead of mp_exp_t.
1423 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
1424 MPFR_RNDx instead of GMP_RNDx.
1425 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
1426 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
1427 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
1428 of mp_rnd_t and remove MPFR_RNDx poisoning.
1429 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
1430
1431 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
1432
1433 PR tree-optimization/91790
1434 * tree-vect-stmts.c (vectorizable_load): Use the adjusted
1435 DR for vect_setup_realignment when first_stmt_info is different
1436 from first_stmt_info_for_drptr.
1437
1438 2019-11-27 Richard Biener <rguenther@suse.de>
1439
1440 PR tree-optimization/92645
1441 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1442 CTORs with just a subset of the original vectors.
1443
1444 2019-11-27 Richard Biener <rguenther@suse.de>
1445
1446 PR middle-end/92674
1447 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
1448 edges and instead record blocks in bitmap.
1449 (gimple_expand_calls_inline): Adjust.
1450 (fold_marked_statements): Delay EH cleanup until all folding is
1451 done.
1452 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
1453 inlining finished.
1454
1455 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1456
1457 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
1458 LRA is enabled.
1459 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
1460 disabled.
1461
1462 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1463
1464 PR debug/92664
1465 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
1466
1467 2019-11-26 Martin Sebor <msebor@redhat.com>
1468
1469 PR tree-optimization/92683
1470 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
1471 inadvertently removed in a previous change. Rename local variable
1472 for clarity.
1473
1474 2019-11-26 Richard Biener <rguenther@suse.de>
1475
1476 PR middle-end/92669
1477 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
1478 NULL pre_order.
1479
1480 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
1481
1482 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
1483
1484 2019-11-26 Jakub Jelinek <jakub@redhat.com>
1485
1486 PR tree-optimization/92644
1487 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1488 next to INTEGER_CST checks.
1489
1490 2019-11-26 Richard Biener <rguenther@suse.de>
1491
1492 PR tree-optimization/92645
1493 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1494 do not build the operation from scalars if the operand is.
1495
1496 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1497
1498 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1499 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1500 definitions.
1501
1502 2019-11-25 Martin Liska <mliska@suse.cz>
1503
1504 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1505 up used dump message.
1506
1507 2019-11-25 Martin Liska <mliska@suse.cz>
1508
1509 PR bootstrap/92653
1510 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1511 too strict checking assert.
1512
1513 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1514
1515 PR c/91985
1516 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1517 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1518 error_mark_node if corresponding global tree node is NULL.
1519 * tree.c (build_common_tree_nodes): Do not initialize
1520 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1521 decimal floating-point not supported.
1522
1523 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1524
1525 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1526 types.
1527
1528 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
1529
1530 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1531 Replace code for non-CONST_INT constants with gcc_unreachable.
1532 * config/m68k/m68k.md (cbranchdi): Don't generate individual
1533 compare and test.
1534 (CMPMODE): New mode_iterator.
1535 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1536 cbranch<mode>4.
1537 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1538 cstore<mode>4.
1539 (cmp<mode>_68881): Remove 'F' constraint from first comparison
1540 operand.
1541 (bit test insns patterns): Use nonimmediate_operand, not
1542 register_operand, for source operands that allow memory in
1543 their constraints.
1544 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1545 Use register_operand, not nonimmediate_operand, for the
1546 destinations.
1547 (DBCC): New mode_iterator.
1548 (dbcc peepholes): Use it to reduce duplication.
1549 (trap): Use const_true_rtx, not const1_rtx.
1550 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1551 from m68k_subword_comparison_operand and changed to handle
1552 SImode.
1553
1554 PR target/91851
1555 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1556 declaration.
1557 (m68k_init_cc): New declaration.
1558 (m68k_output_compare_di, m68k_output_compare_si)
1559 (m68k_output_compare_hi, m68k_output_compare_qi)
1560 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1561 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1562 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1563 m68k_output_branch_float, m68k_output_branch_float_rev):
1564 Likewise.
1565 (valid_dbcc_comparison_p_2, flags_in_68881)
1566 (output_btst): Remove declaration.
1567 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1568 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1569 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1570 (flags_compare_op0, flags_compare_op1, flags_operand1,
1571 flags_operand2, flags_valid): New static variables.
1572 (m68k_find_flags_value, m68k_init_cc): New functions.
1573 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1574 remember_compare_flags): New static functions.
1575 (output_dbcc_and_branch): New argument CODE. Use it, and add
1576 PLUS and MINUS to the possible codes. All callers changed.
1577 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1578 and INSN arguments, add CODE arg. Return the comparison code
1579 to use. All callers changed. Use CODE instead of
1580 next_insn_tests_no_inequality, and replace cc_status management
1581 with changing the return code.
1582 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1583 RTX_COMPARE or RTX_COMM_COMPARE.
1584 (output_move_simode, output_move_qimode): Call
1585 handle_flags_for_move.
1586 (notice_update_cc): Delete function.
1587 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1588 m68k_output_compare_hi, m68k_output_compare_qi,
1589 m68k_output_compare_fp, m68k_output_branch_integer,
1590 m68k_output_branch_integer_rev, m68k_output_scc,
1591 m68k_output_branch_float, m68k_output_branch_float_rev,
1592 m68k_output_scc_float): New functions.
1593 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1594 once at the start, and set flags_valid and flags_operand1 if the
1595 flags are usable.
1596 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1597 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1598 definitions.
1599 (CC_STATUS_INIT): Define.
1600 * config/m68k/m68k.md (flags_valid): New define_attr.
1601 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1602 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1603 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1604 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1605 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1606 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1607 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1608 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1609 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1610 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1611 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1612 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1613 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1614 ctrapqi4, conditional_trap): Delete patterns.
1615 (cbranchdi4_insn): New pattern.
1616 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1617 test high part only. When testing EQ or NE, generate beq0_di
1618 and bne0_di patterns directly.
1619 (cstoredi4): When testing LT or GE, test high part only.
1620 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1621 patterns.
1622 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1623 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1624 cmp2_cf_predicate): New define_mode_attrs.
1625 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1626 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1627 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1628 New patterns.
1629 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1630 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1631 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1632 New patterns.
1633 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1634 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1635 Likewise.
1636 (BTST): New define_mode_iterator.
1637 (btst_predicate, btst_constraint, btst_range): New
1638 define_mode_attrs.
1639 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1640 patterns.
1641 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1642 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1643 patterns): Set attr "flags_valid".
1644 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1645 management. Set attr "flags_valid".
1646 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1647 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1648 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1649 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1650 manual CC_STATUS management.
1651 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1652 unnamed strict_lowpart subhi and subqi patterns): Set attr
1653 "flags_valid".
1654 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1655 Remove code to operate on address regs and assert the case
1656 does not occur.
1657 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1658 manual CC_STATUS_INIT.
1659 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1660 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1661 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1662 one_cmplqi2, unnamed strict_lowpart patterns
1663 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1664 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1665 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1666 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1667 CC_STATUS_INIT.
1668 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1669 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1670 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1671 unnamed strict_low_part patterns for HI and
1672 QI versions): Set attr "flags_valid".
1673 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1674 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1675 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1676 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1677 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1678 (various unnamed peepholes): Adjust compare/branch sequences
1679 for new cbranch patterns.
1680 (dbcc peepholes): Likewise, and output the comparison here
1681 as well.
1682 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1683 (fp_src_operand): Allow constant zero.
1684 (address_reg_operand): New predicate.
1685
1686 * rtl.h (inequality_comparisons_p): Remove declaration.
1687 * recog.h (next_insn_tests_no_inequality): Likewise.
1688 * rtlanal.c (inequality_comparisons_p): Delete function.
1689 * recog.c (next_insn_tests_no_inequality): Likewise.
1690
1691 2019-11-25 Richard Biener <rguenther@suse.de>
1692
1693 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1694 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1695 properly re-building the visited hash-map for each lane.
1696
1697 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1698
1699 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1700 gcn_md_reorg): Remove unused variables.
1701 (gcn_emutls_var_init): Add missing (but unreachable) return
1702 to silence warning.
1703 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1704 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1705 an uninitialized variable.
1706
1707 2019-11-25 Martin Jambor <mjambor@suse.cz>
1708
1709 PR ipa/92109
1710 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1711 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1712 (cgraph_materialize_clone): Move removel from clone tree to the
1713 the new method and use it instead.
1714 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1715 bodies of clones, also remove it from the clone tree.
1716
1717 2019-11-25 Martin Jambor <mjambor@suse.cz>
1718
1719 PR ipa/91956
1720 * ipa-sra.c (process_isra_node_results): Put the new node to the
1721 same comdat group as the original node.
1722
1723 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1724
1725 Build double32 / long-double32 multilibs if needed.
1726
1727 PR target/92055
1728 * config/avr/t-avr:
1729 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1730 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1731 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1732 tm_defines and pass to genmultilib.awk.
1733 * config/avr/genmultilib.awk: Use these variables to add double32
1734 and / or long-double32 multilib(s) as needed.
1735 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1736
1737 2019-11-25 Richard Biener <rguenther@suse.de>
1738
1739 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1740 loop body, defaulted to NULL.
1741 (single_likely_exit): Add exit vector argument
1742 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1743 (number_of_iterations_exit): Likewise.
1744 (number_of_iterations_exit_assumptions): Likewise.
1745 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1746 if not NULL.
1747 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1748 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1749 Compute exit vector around call to single_likely_exit.
1750 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1751 loop body to loop_only_exit_p.
1752 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1753 caller.
1754 (number_of_iterations_exit_assumptions): Get loop body from caller
1755 if not NULL.
1756 (number_of_iterations_exit): Pass through new loop body arg.
1757 (infer_loop_bounds_from_undefined): Get loop body from caller.
1758 (estimate_numbers_of_iterations): Compute loop body once.
1759
1760 2019-11-25 Richard Biener <rguenther@suse.de>
1761
1762 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1763 auto_bb_flag instead of an sbitmap for visited handling.
1764
1765 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1766
1767 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1768 iterator.
1769 (vector_fp_comparison_complex): Likewise.
1770 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1771 define_and_split.
1772 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1773 Likewise.
1774 (vector_lt<mode> for VEC_F): Refactor with
1775 vector_fp_comparison_simple.
1776 (vector_le<mode> for VEC_F): Likewise.
1777 (vector_unge<mode> for VEC_F): Likewise.
1778 (vector_unle<mode> for VEC_F): Likewise.
1779 (vector_ne<mode> for VEC_F): Likewise.
1780 (vector_ungt<mode> for VEC_F): Likewise.
1781 (vector_unlt<mode> for VEC_F): Likewise.
1782 (vector_ltgt<mode> for VEC_F): Refactor with
1783 vector_fp_comparison_complex.
1784 (vector_ordered<mode> for VEC_F): Likewise.
1785 (vector_uneq<mode> for VEC_F): Likewise.
1786 (vector_unordered<mode> for VEC_F): Likewise.
1787
1788 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1789
1790 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1791 COMPARE, representing an overflow detection.
1792
1793 * combine.c (combine_instructions): Record costs for jumps.
1794
1795 * combine.c (can_combine_p): Allow autoinc in jumps.
1796
1797 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1798
1799 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1800 * doc/invoke.texi (max-inline-insns-single-O2,
1801 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1802 early-inlining-insns-O2): Remove documentation.
1803 * ipa-fnsummary.c (analyze_function_body,
1804 compute_fn_summary): Use opt_for_fn when accessing parameters.
1805 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1806 inline_insns_auto, can_inline_edge_by_limits_p,
1807 want_early_inline_function_p, big_speedup_p,
1808 want_inline_small_function_p, want_inline_self_recursive_call_p,
1809 recursive_inlining, compute_max_insns, inline_small_functions):
1810 Likewise.
1811 * opts.c (default_options): Add -O3 defaults for
1812 OPT__param_early_inlining_insns_,
1813 OPT__param_inline_heuristics_hint_percent_,
1814 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1815 * params.opt (-param=early-inlining-insns-O2=,
1816 -param=inline-heuristics-hint-percent-O2=,
1817 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1818 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1819 -param=inline-min-speedup=, -param=inline-unit-growth=,
1820 -param=large-function-growth=, -param=large-stack-frame=,
1821 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1822 -param=max-inline-insns-recursive=,
1823 -param=max-inline-insns-recursive-auto=,
1824 -param=max-inline-insns-single=,
1825 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1826 -param=max-inline-recursive-depth=,
1827 -param=max-inline-recursive-depth-auto=,
1828 -param=min-inline-recursive-probability=,
1829 -param=partial-inlining-entry-probability=,
1830 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1831 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1832 Optimization.
1833
1834 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1835
1836 * ipa-fnsummary.c: Fix comment typos.
1837 * ipa-ref.h: Likewise.
1838 * ipa-predicate.h: Likewise.
1839 * ipa-split.c: Likewise.
1840 * ipa-inline-analysis.c: Likewise.
1841 * ipa-predicate.c: Likewise.
1842 * ipa-devirt.c: Likewise.
1843 * ipa-icf.h: Likewise.
1844 * profile-count.c: Likewise.
1845 * ipa-icf.c: Likewise.
1846 (sem_function::equals_wpa): Fix typos in dump messages.
1847 * ipa-icf-gimple.h: Fix comment typos.
1848 * ipa-inline-transform.c: Likewise.
1849 * ipa-polymorphic-call.c: Likewise.
1850 * ipa-fnsummary.h: Likewise.
1851 * ipa-inline.c: Likewise.
1852 (dump_inline_stats): Fix typo in debug dump message.
1853 * profile-count.h: Fix comment typos.
1854
1855 PR target/92615
1856 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1857 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1858 register_operand, force x into register before storing it into dest.
1859 Formatting fix.
1860
1861 PR middle-end/83859
1862 * doc/extend.texi (attribute access): Fix a typo.
1863
1864 PR rtl-optimization/92610
1865 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1866 cse_cfg_altered is set, even when tem is 0.
1867 (rest_of_handle_cse_after_global_opts): Likewise.
1868
1869 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1870
1871 PR c++/92458
1872 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1873 tree_hash): Move to ...
1874 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1875 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1876 types.
1877 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1878
1879 PR tree-optimization/92618
1880 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1881 containing the auto_vec and a tree.
1882 (undistribute_bitref_for_vector): Handle the case when element type
1883 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1884 fixes.
1885
1886 2019-11-22 Martin Sebor <msebor@redhat.com>
1887
1888 PR middle-end/83859
1889 * attribs.h (struct attr_access): New.
1890 * attribs.c (decl_attributes): Add an informational note.
1891 * builtins.c (check_access): Make extern. Consistently set no-warning
1892 after issuing a warning. Handle calls through function pointers. Set
1893 no-warning.
1894 * builtins.h (check_access): Declare.
1895 * calls.c (rdwr_access_hash): New type.
1896 (rdwr_map): Same.
1897 (init_attr_rdwr_indices): New function.
1898 (maybe_warn_rdwr_sizes): Same.
1899 (initialize_argument_information): Call init_attr_rdwr_indices.
1900 Call maybe_warn_rdwr_sizes.
1901 (get_size_range): Avoid null argument.
1902 * doc/extend.texi (attribute access): Document new attribute.
1903
1904 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1905
1906 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1907 (ACC_LDS_SIZE): Define.
1908 (OTHER_LDS_SIZE): Define.
1909 (LDS_SIZE): Redefine using above.
1910 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1911
1912 2019-11-22 Martin Sebor <msebor@redhat.com>
1913
1914 PR middle-end/88226
1915 * builtins.c (check_nul_terminated_array): New function.
1916 (fold_builtin_0): Remove declaration.
1917 (fold_builtin_1): Same.
1918 (fold_builtin_2): Same.
1919 (fold_builtin_3): Same.
1920 (fold_builtin_strpbrk): Add argument.
1921 (fold_builtin_strspn): Same.
1922 (fold_builtin_strcspn): Same.
1923 (expand_builtin_strcat): Call it. Remove unused argument.
1924 (expand_builtin_stpncpy): Same.
1925 (expand_builtin_strncat): Same.
1926 (expand_builtin_strncpy): Same. Adjust indentation.
1927 (expand_builtin_strcmp): Same.
1928 (expand_builtin_strncmp): Same.
1929 (expand_builtin_fork_or_exec): Same.
1930 (expand_builtin): Handle more built-ins.
1931 (fold_builtin_2): Add argument.
1932 (fold_builtin_n): Make static. Add argument.
1933 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1934 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1935 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1936 (fold_call_stmt): Pass new argument to fold_builtin_n.
1937 * builtins.h: Correct a comment.
1938 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1939 check_nul_terminated_array.
1940 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1941 check_nul_terminated_array.
1942 (handle_builtin_strchr): Same.
1943 (handle_builtin_string_cmp): Same.
1944
1945 2019-11-22 Martin Sebor <msebor@redhat.com>
1946
1947 PR tree-optimization/92501
1948 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1949 handle unterminated arrays. Rename local variables for clarity.
1950
1951 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1952
1953 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1954 granulated_sgprs according to architecture.
1955
1956 2019-11-22 Jan Hubicka <jh@suse.cz>
1957
1958 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1959 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1960 (memory_block_pool::reduce_free_list): ... this one.
1961 (memory_block_pool::trim): New static function.
1962 * memory-block.h (memory_block_pool::freelist_size): New constant
1963 (memory_block_pool::clear_free_list): Rename to ...
1964 (memory_block_pool::reduce_free_list): ... this one.
1965 (memory_block_pool::trim): Declare.
1966
1967 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1968
1969 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1970 vect_cost_for_stmt.
1971 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1972 here rather than...
1973 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1974
1975 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1976
1977 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1978 (bic_cmp0_noout): New pattern.
1979 (bic_cmp0): Likewise.
1980 (neg_scc_insn): Remove pattern.
1981 (not_scc_insn): Likewise.
1982
1983 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1984
1985 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1986
1987 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1988
1989 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1990 pedwarn instead of warning_at for fallthrough not preceding a case
1991 or default label.
1992
1993 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1994
1995 PR tree-optimization/92608
1996 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1997 of dyn_cast.
1998
1999 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
2000
2001 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
2002 New predicate.
2003 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
2004 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
2005 special for FP comparisons that need a cror instruction eventually.
2006 (rs6000_emit_fp_cror): New function.
2007 (rs6000_emit_sCOND): Expand all floating point comparisons to one
2008 instruction, for normal FP modes, with HONOR_NANS.
2009 (rs6000_emit_cbranch): Reformat.
2010 * config/rs6000/rs6000.md (fp_rev): New iterator.
2011 (fp_two): New iterator.
2012 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
2013 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
2014 *cbranch_2insn: New define_insn_and_split.
2015
2016 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
2017
2018 PR tree-optimization/92526
2019 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
2020 versioning for alignment if the accesses do not have a consistent
2021 mask, rather than asserting that the masks are consistent.
2022
2023 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
2024
2025 PR tree-optimization/92595
2026 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
2027 check.
2028 (vectorizable_store, vectorizable_load): Likewise.
2029
2030 2019-11-21 Jan Hubicka <jh@suse.cz>
2031
2032 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
2033 (resolve_noninline_speculation, inline_small_functions): Avoid
2034 redundant updates.
2035
2036 2019-11-21 Richard Biener <rguenther@suse.de>
2037
2038 * lra.c (lra_insn_recog_data_pool): New.
2039 (free_insn_recog_data): Adjust.
2040 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
2041 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
2042
2043 2019-11-21 Richard Biener <rguenther@suse.de>
2044
2045 PR tree-optimization/92596
2046 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
2047
2048 2019-11-21 Jan Hubicka <jh@suse.cz>
2049
2050 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
2051 ready for some vectors to not be allocated.
2052 (evaluate_properties_for_edge): Document better; make
2053 known_vals and known_aggs caller allocated; avoid determining
2054 values of parameters which are not used.
2055 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
2056 known_aggs.
2057 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
2058 (do_estimate_edge_size): Likewise.
2059 (do_estimate_edge_hints): Likewise.
2060 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
2061 values are not known.
2062 (ipa_release_agg_values): Add option to not release vector itself.
2063 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
2064
2065 2019-11-21 Richard Biener <rguenther@suse.de>
2066
2067 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
2068 (loop_iterator::to_visit): Use an auto_vec with internal storage.
2069 (loop_iterator::loop_iterator): Adjust.
2070 * cfganal.c (compute_dominance_frontiers_1): Fold into...
2071 (compute_dominance_frontiers): ... this. Hoist invariant
2072 get_immediate_dominator call.
2073 (compute_idf): Use a work-set instead of a work-list for more
2074 optimal iteration order and duplicate avoidance.
2075 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
2076 the vector all the time, instead pre-allocate the vector only
2077 once.
2078 (delete_update_ssa): Simplify.
2079 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
2080
2081 2019-11-21 Jakub Jelinek <jakub@redhat.com>
2082
2083 PR tree-optimization/91355
2084 * tree-ssa-sink.c (select_best_block): Use >= rather than >
2085 for early_bb scaled count with best_bb count comparison.
2086
2087 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
2088 preffer -> prefer.
2089 * ipa-inline.c (edge_badness): Likewise.
2090 * lto-streamer.h (class lto_location_cache): Likewise.
2091 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
2092 gratutious -> gratuitous.
2093
2094 2019-11-21 Richard Biener <rguenther@suse.de>
2095
2096 Revert
2097 2019-09-17 Richard Biener <rguenther@suse.de>
2098
2099 PR tree-optimization/91790
2100 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2101 use the correct DR for setting up realignment.
2102
2103 2019-11-21 Richard Biener <rguenther@suse.de>
2104
2105 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
2106 (equiv_class_obstack): New.
2107 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
2108 (perform_var_substitution): Initialize equiv_class_obstack.
2109 (free_var_substitution_info): Free equiv_class_obstack.
2110
2111 2019-11-20 Jan Hubicka <jh@suse.cz>
2112
2113 * ipa-inline.c (want_early_inline_function_p): Do not estimate
2114 edge growth when callee function is very large.
2115 * ipa-inline.h (estimate_min_edge_growth): New.
2116
2117 2019-11-20 Jan Hubicka <jh@suse.cz>
2118
2119 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
2120 negative time in calls summary; correct roundoff errors
2121 leading to negative times.
2122 (ipa_merge_fn_summary_after_inlining): Update calls size time table
2123 if present.
2124 (ipa_update_overall_fn_summary): Add RESET parameter.
2125 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
2126 * ipa-inline-transform.c (inline_call): Enable incremental updates.
2127
2128 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2129
2130 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
2131 def types for two-operation SLP.
2132
2133 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
2134
2135 PR testsuite/92366
2136 * doc/sourcebuild.texi (vect_char_add): Document.
2137
2138 2019-11-20 Alexandre Oliva <oliva@adacore.com>
2139
2140 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
2141 * function.c (record_final_call): Record even calls that might
2142 have been in the cgraph.
2143 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
2144 callees.
2145
2146 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
2147
2148 * configure.ac: Use https for gcc.gnu.org
2149 * configure: Regenerated.
2150 * doc/install.texi: Use https for gcc.gnu.org.
2151 * doc/sourcebuild.texi: Likewise.
2152
2153 2019-11-20 Julian Brown <julian@codesourcery.com>
2154
2155 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
2156
2157 2019-11-20 Jan Hubicka <jh@suse.cz>
2158
2159 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
2160 parameter and update call_size_time_table.
2161 (ipa_fn_summary::max_size_time_table_size): New constant.
2162 (estimate_calls_size_and_time_1): Break out from ...
2163 (estimate_calls_size_and_time): ... here; implement summary production.
2164 (summarize_calls_size_and_time): New function.
2165 (ipa_call_context::estimate_size_and_time): Bypass
2166 estimate_calls_size_and_time for leaf functions.
2167 (ipa_update_overall_fn_summary): Likewise.
2168 * ipa-fnsummary.h (call_size_time_table): New.
2169 (ipa_fn_summary::account_size_time): Update prototype.
2170
2171 2019-11-20 Joseph Myers <joseph@codesourcery.com>
2172
2173 * doc/invoke.texi (-Wc11-c2x-compat): Document.
2174
2175 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
2176
2177 PR85678
2178 * common.opt (fcommon): Change init to 1.
2179 * doc/invoke.texi (-fcommon): Update documentation.
2180
2181 2019-11-20 Jan Hubicka <jh@suse.cz>
2182
2183 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
2184 to ordinary array.
2185
2186 2019-11-20 Jan Hubicka <jh@suse.cz>
2187
2188 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
2189 Add allocator parameter.
2190 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
2191 (fibonacci_heap<K,V>::m_allocator): New.
2192 (fibonacci_heap<K,V>::m_own_allocator): New.
2193 (fibonacci_heap<K,V>::insert): Use allocator.
2194 (fibonacci_heap<K,V>::extract_min): Likewise.
2195 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
2196 allocator.
2197 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
2198 on stack.
2199 * fibonacci_heap.c: Include alloc-pool
2200 (test_empty_heap): Initialize allocator.
2201 (test_union): Likewise.
2202 * bb-reorder.c: Include alloc-pool.h.
2203 * tracer.c: Inlclude alloc-pool.h.
2204
2205 2019-11-20 Jan Hubicka <jh@suse.cz>
2206
2207 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
2208 Preallocate for 32 entries.
2209 (DFS::worklist): Likewise.
2210 (DFS::DFS): Do not initialize sccstack and worklist.
2211 (DFS::~DFS): Do not release sccstack.
2212
2213 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
2214
2215 PR target/92573
2216 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
2217 Handle UNORDERED if !HONOR_NANS.
2218
2219 2019-11-20 Jan Hubicka <jh@suse.cz>
2220
2221 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
2222 (edge_badness): ... here.
2223 (inline_small_functions): Use monotonicity of badness calculation
2224 to avoid redundant updates.
2225
2226 2019-11-20 Richard Biener <rguenther@suse.de>
2227
2228 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
2229 constructors we are actually analyzing.
2230 (vect_slp_check_for_constructors): Do not vectorize uniform
2231 constuctors, do not dump here.
2232
2233 2019-11-20 Richard Biener <rguenther@suse.de>
2234
2235 PR tree-optimization/92537
2236 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
2237 vectorization validity check...
2238 (vect_slp_analyze_operations): ... here.
2239
2240 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
2241
2242 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
2243 (make_pass_arc_predicate_delay_insns): Likewise.
2244 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
2245 method, remove clone.
2246 (class pass_arc_predicate_delay_insns): Likewise.
2247 (arc_init): Remove registering of ARC specific passes.
2248 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
2249 * config/arc/arc-passes.def: New file.
2250
2251 2019-11-20 Jakub Jelinek <jakub@redhat.com>
2252
2253 PR middle-end/90840
2254 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
2255 and has a mode that doesn't have corresponding integral type.
2256
2257 PR target/90867
2258 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
2259 clear opts->x_ix86_isa_flags{,2} here...
2260 (ix86_valid_target_attribute_inner_p): ... but here when seeing
2261 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
2262
2263 PR c/90898
2264 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
2265 assertion.
2266 (insert_clobbers_for_var): Fix a typo in function comment.
2267
2268 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
2269 Jakub Jelinek <jakub@redhat.com>
2270
2271 PR middle-end/91195
2272 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
2273 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
2274 load.
2275
2276 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
2277
2278 Make 0-series device specs work with older versions of avr-gcc.
2279
2280 PR target/92545
2281 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
2282 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2283 <*link_pm_base_address>: Don't write spec.
2284 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
2285
2286 2019-11-20 Richard Biener <rguenther@suse.de>
2287
2288 PR c/92088
2289 * builtins.c (compute_objsize): Deal with VLAs.
2290
2291 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
2292
2293 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
2294 from common code.
2295 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
2296 call new function.
2297 (power9_sched_reorder2): Call new function.
2298 (rs6000_sched_reorder2): Likewise.
2299
2300 2019-11-18 Jan Hubicka <jh@suse.cz>
2301
2302 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
2303 (estimate_calls_size_and_time): Update.
2304
2305 2019-11-18 Jan Hubicka <jh@suse.cz>
2306
2307 * ipa-inline.c (inlining_speedup): New function.
2308 (edge_badness): Use it.
2309
2310 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
2311 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2312
2313 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
2314 Mark as not having "likely" version.
2315 * config/mips/mips.md (insn_count): The simd_div instruction with
2316 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
2317 (can_delay): Exclude simd_branch.
2318 (defile_delay *): Add simd_branch instructions.
2319 They have one regular delay slot.
2320
2321 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
2322
2323 Revert:
2324 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2325
2326 * cse.c (cse_insn): Delete no-op register moves too.
2327 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2328 Take a second comparison to control the value for NE.
2329 (mask_to_comparison): Handle unsigned comparisons.
2330 (simplify_logical_relational_operation): Likewise. Update call
2331 to comparison_to_mask. Handle AND if !HONOR_NANs.
2332 (simplify_binary_operation_1): Call the above for AND too.
2333
2334 2019-11-19 Martin Liska <mliska@suse.cz>
2335
2336 * toplev.c (general_init): Move the call...
2337 (toplev::main): ... here as we need init_options_struct
2338 being called.
2339
2340 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2341
2342 PR target/79262
2343 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
2344 vec_to_scalar_cost.
2345
2346 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2347
2348 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
2349 (armv7-a): Likewise.
2350 (armv7ve): Likewise.
2351
2352 2019-11-19 Richard Biener <rguenther@suse.de>
2353
2354 PR tree-optimization/92581
2355 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
2356 condition reduction chains gather all conditions involved
2357 for computing the index reduction vector.
2358
2359 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
2360
2361 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2362 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
2363 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
2364 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
2365 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
2366 (aarch64_init_memtag_builtins): New.
2367 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
2368 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
2369 (aarch64_expand_builtin_memtag): New.
2370 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
2371 (AARCH64_BUILTIN_SUBCODE): New macro.
2372 (aarch64_resolve_overloaded_memtag): New.
2373 (aarch64_resolve_overloaded_builtin_general): New. Call
2374 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
2375 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2376 __ARM_FEATURE_MEMORY_TAGGING when enabled.
2377 (aarch64_resolve_overloaded_builtin): Call
2378 aarch64_resolve_overloaded_builtin_general.
2379 * config/aarch64/aarch64-protos.h
2380 (aarch64_resolve_overloaded_builtin_general): New declaration.
2381 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
2382 (TARGET_MEMTAG): Likewise.
2383 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
2384 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
2385 (irg, gmi, subp, addg, ldg, stg): New instructions.
2386 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
2387 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
2388 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
2389 (__arm_mte_get_tag): Likewise.
2390 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
2391 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
2392 * config/arm/types.md (memtag): New.
2393 * doc/invoke.texi (-memtag): Update description.
2394
2395 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
2396
2397 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
2398 to define __GCC_ASM_FLAG_OUTPUTS__.
2399 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
2400 (arm_option_params_internal): Swap out targetm.md_asm_adjust
2401 depending on TARGET_THUMB1.
2402 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
2403
2404 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2405
2406 PR target/92549
2407 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
2408
2409 PR middle-end/91450
2410 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
2411 operand is negative and one non-negative, compare the non-negative
2412 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
2413 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
2414 and s2 == 0, unless one of them is known to be negative. Remove
2415 tem2 variable, use tem where tem2 has been used before.
2416
2417 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
2418
2419 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
2420
2421 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2422
2423 PR tree-optimization/92557
2424 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
2425 vmode rather than asserting it always is.
2426
2427 2019-11-19 Richard Biener <rguenther@suse.de>
2428
2429 PR tree-optimization/92554
2430 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
2431 for the actual condition stmt and deal with sign-changes.
2432
2433 2019-11-19 Richard Biener <rguenther@suse.de>
2434
2435 PR tree-optimization/92555
2436 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
2437 for non-SLP stmts.
2438
2439 2019-11-19 Martin Liska <mliska@suse.cz>
2440
2441 PR bootstrap/92540
2442 * config/riscv/riscv.c (riscv_address_insns): Initialize
2443 addr in order to remove boostrap -Wmaybe-uninitialized
2444 error.
2445
2446 2019-11-18 Martin Sebor <msebor@redhat.com>
2447
2448 PR tree-optimization/92493
2449 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
2450 assignment.
2451
2452 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
2453
2454 * cfgloop.c (get_loop_body_in_custom_order): New.
2455 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
2456 * tree-loop-distribution.c (class loop_distribution): New.
2457 (bb_top_order_cmp): Remove.
2458 (bb_top_order_cmp_r): New.
2459 (create_rdg_vertices): Move into class loop_distribution.
2460 (stmts_from_loop): Same as above.
2461 (update_for_merge): Same as above.
2462 (partition_merge_into): Same as above.
2463 (get_data_dependence): Same as above.
2464 (data_dep_in_cycle_p): Same as above.
2465 (update_type_for_merge): Same as above.
2466 (build_rdg_partition_for-vertex): Same as above.
2467 (classify_builtin_ldst): Same as above.
2468 (classify_partition): Same as above.
2469 (share_memory_accesses): Same as above.
2470 (rdg_build_partitions): Same as above.
2471 (pg_add_dependence_edges): Same as above.
2472 (build_partition_graph): Same as above.
2473 (merge_dep_scc_partitions): Same as above.
2474 (break_alias_scc_partitions): Same as above.
2475 (finalize_partitions): Same as above.
2476 (distribute_loop): Same as above.
2477 (bb_top_order_init): New method
2478 (bb_top_order_destroy): New method.
2479 (get_bb_top_order_index_size): New method.
2480 (get_bb_top_order_index_index): New method.
2481 (get_bb_top_order_index_index): New method.
2482 (loop_distribution::execute): New method.
2483 (pass_loop_distribution::execute): Instantiate loop_distribution.
2484
2485 2019-11-18 Jan Hubicka <jh@suse.cz>
2486
2487 PR ipa/92508
2488 * ipa-inline.c (inline_small_functions): Add new edges after reseting
2489 caches.
2490 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2491
2492 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2493
2494 * doc/sourcebuild.texi (vect_check_ptrs): Document.
2495 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2496 * doc/md.texi: Document them.
2497 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2498 internal functions.
2499 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2500 * internal-fn.c (check_ptrs_direct): New macro.
2501 (expand_check_ptrs_optab_fn): Likewise.
2502 (direct_check_ptrs_optab_supported_p): Likewise.
2503 (internal_check_ptrs_fn_supported_p): New fuction.
2504 * tree-data-ref.c: Include internal-fn.h.
2505 (create_ifn_alias_checks): New function.
2506 (create_intersect_range_checks): Use it.
2507 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2508 (optab, cmp_op): Handle it.
2509 (raw_war, unspec): New int attributes.
2510 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2511 constants.
2512 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2513 New predicate.
2514 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2515 expander.
2516 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2517 pattern.
2518
2519 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2520
2521 * tree.c (build_vector_from_ctor): Directly return a zero vector for
2522 empty constructors.
2523
2524 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2525
2526 * cse.c (cse_insn): Delete no-op register moves too.
2527 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2528 Take a second comparison to control the value for NE.
2529 (mask_to_comparison): Handle unsigned comparisons.
2530 (simplify_logical_relational_operation): Likewise. Update call
2531 to comparison_to_mask. Handle AND if !HONOR_NANs.
2532 (simplify_binary_operation_1): Call the above for AND too.
2533
2534 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2535
2536 * fold-const.c (native_encode_vector): Turn into a wrapper function,
2537 splitting the main code out into...
2538 (native_encode_vector_part): ...this new function.
2539 (native_decode_vector_tree): New function.
2540 (fold_view_convert_vector_encoding): Likewise.
2541 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2542 to VECTOR_TYPEs.
2543
2544 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2545
2546 * tree-data-ref.c (create_intersect_range_checks_index): If the
2547 alias pair describes simple WAW and WAR dependencies, just check
2548 whether the first B access overlaps later A accesses.
2549 (create_waw_or_war_checks): New function that performs the same
2550 optimization on addresses.
2551 (create_intersect_range_checks): Call it.
2552
2553 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2554
2555 * lra-constraints.c (valid_address_p): Take the operand and a
2556 constraint as argument. If the operand is a MEM and the constraint
2557 is a memory constraint, check whether the eliminated form of the
2558 MEM already satisfies the constraint.
2559 (process_address_1): Update calls accordingly.
2560
2561 2019-11-18 Tom Tromey <tromey@adacore.com>
2562
2563 * doc/tm.texi: Rebuild.
2564 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2565 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2566
2567 2019-11-18 Richard Biener <rguenther@suse.de>
2568
2569 PR tree-optimization/92516
2570 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2571 argument, hoist bst_map creation/destruction to ...
2572 (vect_analyze_slp): ... here, forming a true graph with
2573 SLP instances being the entries.
2574 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2575 (vect_detect_hybrid_slp): Use one visited set for all
2576 graph entries.
2577 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2578 to hash-sets of slp_tree.
2579 (vect_slp_analyze_operations): Likewise.
2580 (vect_bb_slp_scalar_cost): Remove wrapper.
2581 (vect_bb_vectorization_profitable_p): Use one visited set for
2582 all graph entries.
2583 (vect_schedule_slp_instance): Elide bst_map use.
2584 (vect_schedule_slp): Likewise.
2585
2586 2019-11-18 Richard Biener <rguenther@suse.de>
2587
2588 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2589 was vectorized with just external refs fail.
2590
2591 2019-11-18 Martin Liska <mliska@suse.cz>
2592
2593 PR ipa/92525
2594 * ipa-icf.c (sem_function::init): Unset m_checker
2595 at the end of the function.
2596
2597 2019-11-18 Richard Biener <rguenther@suse.de>
2598
2599 PR tree-optimization/92558
2600 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2601 reducting the width of a reduction vector def update new_phis.
2602
2603 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2604
2605 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2606 and s390*-*-linux-musl* targets.
2607 * configure: Regenerate.
2608
2609 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2610
2611 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2612 (MUSL_DYNAMIC_LINKER64): Define.
2613
2614 2019-11-18 Martin Liska <mliska@suse.cz>
2615
2616 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2617 message for an unknown counter.
2618 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2619 (dbg_cnt_process_opt): Remove unreachable code.
2620
2621 2019-11-18 Martin Liska <mliska@suse.cz>
2622
2623 PR ipa/92529
2624 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2625 Compare LHS types of NOP_EXPR.
2626
2627 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2628
2629 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2630 "initial_pass_name" argument -- by running "*clean_state" pass.
2631 Also free the "initial_pass_name" when done.
2632
2633 2019-11-18 Richard Biener <rguenther@suse.de>
2634
2635 PR rtl-optimization/92462
2636 * alias.c (find_base_term): Restrict the look through ANDs.
2637 (find_base_value): Likewise.
2638
2639 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2640
2641 Add support for AVR devices from the 0-series.
2642
2643 PR target/92545
2644 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2645 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2646 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2647 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2648 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2649 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2650 for spec definitions.
2651 * doc/avr-mmcu.texi: Regenerate.
2652
2653 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2654
2655 PR target/92448
2656 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2657 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2658 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2659 (ix86_reassociation_width): Ditto.
2660 * config/i386/i386-options.c (ix86_option_override_internal):
2661 Replace TARGET_AVX128_OPTIAML with
2662 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2663 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2664 (TARGET_AVX128_OPTIMAL): Deleted.
2665 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2666 DEF_TUNE.
2667
2668 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2669
2670 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2671 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2672 just SI.
2673 (cceq_rev_compare): Rename to...
2674 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2675 just SI.
2676 (define_split for <bd>tf_<mode>): Add SImode first argument to
2677 gen_cceq_ior_compare.
2678
2679 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2680
2681 * common/config/powerpcspe: Delete.
2682
2683 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2684
2685 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2686 output in UNSPEC_WRFFR.
2687
2688 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2689
2690 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2691 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2692
2693 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2694
2695 * tree-data-ref.c (create_intersect_range_checks_index)
2696 (create_intersect_range_checks): Print dump messages.
2697
2698 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2699
2700 * tree-data-ref.c (dump_alias_pair): New function.
2701 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2702
2703 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2704
2705 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2706 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2707 merging data references with different steps.
2708 (create_intersect_range_checks_index): Take a
2709 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2710 Bail out if DR_ALIAS_MIXED_STEPS is set.
2711 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2712 instead of two dr_with_seg_lens. Update call to
2713 create_intersect_range_checks_index.
2714 (create_runtime_alias_checks): Update call accordingly.
2715
2716 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2717
2718 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2719 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2720 (dr_with_seg_len_pair_t::sequencing): New enum.
2721 (dr_with_seg_len_pair_t::flags): New member variable.
2722 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2723 parameter and initialize the flags member variable.
2724 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2725 call accordingly.
2726 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2727 Ensure the two data references in an alias pair are in statement
2728 order, if there is a defined order.
2729 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2730 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2731 swapped the references in a dr_with_seg_len_pair_t. OR together
2732 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2733 try to restore the original dr_with_seg_len order, updating the
2734 flags if that fails.
2735
2736 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2737
2738 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2739 swapping the dr_as based on init values until we've decided
2740 whether to merge them.
2741
2742 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2743
2744 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2745 two accesses in each dr_with_seg_len_pair_t before trying to
2746 combine separate dr_with_seg_len_pair_ts.
2747 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2748 that here.
2749 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2750
2751 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2752
2753 * config/aarch64/aarch64-sve.md
2754 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2755 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2756 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2757 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2758 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2759 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2760 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2761 pattern.
2762 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2763 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2764 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2765 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2766
2767 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2768
2769 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2770 (SVE_4HSI): New mode iterators.
2771 (ANY_EXTEND2): New code iterator.
2772 * config/aarch64/aarch64-sve.md
2773 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2774 Extend to...
2775 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2776 ...this, handling extension to partial modes as well as full modes.
2777 Describe the extension as a predicated rather than unpredicated
2778 extension.
2779 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2780 Likewise extend to...
2781 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2782 ...this, making the same adjustments.
2783 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2784 Likewise extend to...
2785 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2786 ...this, making the same adjustments.
2787 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2788 Likewise extend to...
2789 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2790 ...this, making the same adjustments.
2791 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2792 New pattern.
2793 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2794 extension predicate.
2795 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2796 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2797 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2798 Describe the extension as a predicated rather than unpredicated
2799 extension.
2800 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2801 Likewise. Canonicalize to a constant extension predicate.
2802 * config/aarch64/aarch64-sve-builtins-base.cc
2803 (svld1_gather_extend_impl::expand): Add an extra predicate for
2804 the extension.
2805 (svldff1_gather_extend_impl::expand): Likewise.
2806
2807 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2808
2809 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2810 iterators.
2811 * config/aarch64/aarch64-sve.md
2812 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2813 (gather_load<SVE_24:mode><v_int_container>): ...this.
2814 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2815 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2816 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2817 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2818 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2819 New pattern.
2820 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2821 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2822 Allow the nominal extension predicate to be different from the
2823 load predicate.
2824 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2825 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2826
2827 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2828
2829 * config/aarch64/aarch64-sve.md
2830 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2831 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2832 function.
2833 (aarch64_sve_adjust_stmt_cost): Call it.
2834
2835 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2836
2837 * config/aarch64/aarch64-sve.md
2838 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2839 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2840 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2841 Combine into...
2842 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2843 ...this new pattern, handling extension to partial modes as well
2844 as full modes. Describe the extension as a predicated rather than
2845 unpredicated extension.
2846 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2847 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2848 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2849 Combine into...
2850 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2851 ...this new pattern, handling extension to partial modes as well
2852 as full modes. Describe the extension as a predicated rather than
2853 unpredicated extension.
2854 * config/aarch64/aarch64-sve-builtins.cc
2855 (function_expander::use_contiguous_load_insn): Add an extra
2856 predicate for extending loads.
2857 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2858 (aarch64_sve_adjust_stmt_cost): Likewise.
2859 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2860 the cost of SVE vector stmts.
2861
2862 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2863
2864 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2865 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2866 * config/aarch64/aarch64-sve.md
2867 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2868 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2869 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2870 comment. Avoid new narrower_mask ambiguity.
2871 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2872 (*cond_uxt<mode>_2): Update comment.
2873 (*cond_uxt<mode>_any): Likewise.
2874
2875 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2876
2877 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2878 float modes.
2879 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2880 function.
2881 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2882 new vector float modes.
2883 (aarch64_sve_container_bits): New function.
2884 (aarch64_sve_pred_mode): Likewise.
2885 (aarch64_get_mask_mode): Use it.
2886 (aarch64_sve_element_int_mode): Handle structure modes and partial
2887 modes.
2888 (aarch64_sve_container_int_mode): New function.
2889 (aarch64_vectorize_related_mode): Return SVE modes when given
2890 SVE modes. Handle partial modes, taking the preferred number
2891 of units from the size of the given mode.
2892 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2893 in registers.
2894 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2895 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2896 (aarch64_split_sve_subreg_move): Use the mode form of
2897 aarch64_sve_pred_mode.
2898 (aarch64_secondary_reload): Handle partial modes in the same way
2899 as full big-endian vectors.
2900 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2901 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2902 merging with the Advanced SIMD modes. If two modes have the
2903 same size, try the Advanced SIMD mode first.
2904 (aarch64_simd_valid_immediate): Use the container rather than
2905 the element mode for INDEX constants.
2906 (aarch64_simd_vector_alignment): Make the alignment of partial
2907 SVE vector modes the same as their minimum size.
2908 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2909 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2910 (mov<SVE_ALL:mode>): ...this.
2911 (movmisalign<SVE_FULL:mode>): Extend to...
2912 (movmisalign<SVE_ALL:mode>): ...this.
2913 (*aarch64_sve_mov<mode>_le): Rename to...
2914 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2915 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2916 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2917 partial modes regardless of endianness.
2918 (aarch64_sve_reload_be): Rename to...
2919 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2920 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2921 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2922 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2923 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2924 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2925 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2926 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2927 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2928 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2929 (maskload<SVE_FULL:mode><vpred>): Extend to...
2930 (maskload<SVE_ALL:mode><vpred>): ...this.
2931 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2932 (maskstore<SVE_ALL:mode><vpred>): ...this.
2933 (vec_duplicate<SVE_FULL:mode>): Extend to...
2934 (vec_duplicate<SVE_ALL:mode>): ...this.
2935 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2936 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2937 (sve_ld1r<SVE_FULL:mode>): Extend to...
2938 (sve_ld1r<SVE_ALL:mode>): ...this.
2939 (vec_series<SVE_FULL_I:mode>): Extend to...
2940 (vec_series<SVE_I:mode>): ...this.
2941 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2942 (*vec_series<SVE_I:mode>_plus): ...this.
2943 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2944 new VPRED ambiguity.
2945 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2946 (add<SVE_FULL_I:mode>3): Extend to...
2947 (add<SVE_I:mode>3): ...this.
2948 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2949 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2950 (VPRED, vpred): Likewise.
2951 (Vctype): New iterator.
2952 (vw): Remove SVE modes.
2953
2954 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2955
2956 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2957 (SVE_PARTIAL_I): ...this.
2958 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2959
2960 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2961
2962 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2963 (SVE_FULL): ...this.
2964 (SVE_I): Rename to...
2965 (SVE_FULL_I): ...this.
2966 (SVE_F): Rename to...
2967 (SVE_FULL_F): ...this.
2968 (SVE_BHSI): Rename to...
2969 (SVE_FULL_BHSI): ...this.
2970 (SVE_HSD): Rename to...
2971 (SVE_FULL_HSD): ...this.
2972 (SVE_HSDI): Rename to...
2973 (SVE_FULL_HSDI): ...this.
2974 (SVE_HSF): Rename to...
2975 (SVE_FULL_HSF): ...this.
2976 (SVE_SD): Rename to...
2977 (SVE_FULL_SD): ...this.
2978 (SVE_SDI): Rename to...
2979 (SVE_FULL_SDI): ...this.
2980 (SVE_SDF): Rename to...
2981 (SVE_FULL_SDF): ...this.
2982 (SVE_S): Rename to...
2983 (SVE_FULL_S): ...this.
2984 (SVE_D): Rename to...
2985 (SVE_FULL_D): ...this.
2986 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2987 * config/aarch64/aarch64-sve2.md: Likewise.
2988
2989 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2990
2991 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2992 New option.
2993 * doc/invoke.texi: Document it.
2994 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2995 By default, return VECT_COMPARE_COSTS for SVE.
2996
2997 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2998
2999 * target.h (VECT_COMPARE_COSTS): New constant.
3000 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
3001 * doc/tm.texi: Regenerate.
3002 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
3003 * targhooks.c (default_autovectorize_vector_modes): Likewise.
3004 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
3005 Likewise.
3006 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
3007 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
3008 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
3009 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
3010 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
3011 (_loop_vec_info::vec_inside_cost): New member variables.
3012 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
3013 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
3014 (vect_analyze_loop): When autovectorize_vector_modes returns
3015 VECT_COMPARE_COSTS, try vectorizing the loop with each available
3016 vector mode and picking the one with the lowest cost.
3017 (vect_estimate_min_profitable_iters): Record the computed costs
3018 in the loop_vec_info.
3019
3020 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3021
3022 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
3023 element type rather than an element mode.
3024 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3025 Use get_vectype_for_scalar_type to query the natural types
3026 for a given element type rather than basing everything on
3027 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
3028 query to MAX_FIXED_MODE_SIZE.
3029 (duplicate_and_interleave): Update call accordingly.
3030 * tree-vect-loop.c (vectorizable_reduction): Likewise.
3031
3032 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
3033
3034 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
3035 optional maximum nunits.
3036 (get_vectype_for_scalar_type): Likewise. Also declare a form that
3037 takes an slp_tree.
3038 (get_mask_type_for_scalar_type): Take an optional slp_tree.
3039 (vect_get_mask_type_for_stmt): Likewise.
3040 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
3041 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
3042 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
3043 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
3044 to get an assumed vector type for data references.
3045 * tree-vect-slp.c (vect_update_shared_vectype): New function.
3046 (vect_update_all_shared_vectypes): Likewise.
3047 (vect_build_slp_tree_1): Pass the group size to
3048 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
3049 for BB vectorization.
3050 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
3051 before building the vectof from scalars.
3052 (vect_analyze_slp_instance): Pass the group size to
3053 get_vectype_for_scalar_type.
3054 (vect_slp_analyze_node_operations_1): Don't recompute the vector
3055 types for BB vectorization here; just handle the case in which
3056 we deferred the choice for booleans.
3057 (vect_get_constant_vectors): Pass the slp_tree to
3058 get_vectype_for_scalar_type.
3059 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
3060 (vectorizable_call): Likewise.
3061 (vectorizable_simd_clone_call): Likewise.
3062 (vectorizable_conversion): Likewise.
3063 (vectorizable_shift): Likewise.
3064 (vectorizable_operation): Likewise.
3065 (vectorizable_comparison): Likewise.
3066 (vect_is_simple_cond): Take the slp_tree as argument and
3067 pass it to get_vectype_for_scalar_type.
3068 (vectorizable_condition): Update call accordingly.
3069 (get_vectype_for_scalar_type): Take a group_size argument.
3070 For BB vectorization, limit the the vector to that number
3071 of elements. Also define an overload that takes an slp_tree.
3072 (get_mask_type_for_scalar_type): Add an slp_tree argument and
3073 pass it to get_vectype_for_scalar_type.
3074 (vect_get_vector_types_for_stmt): Add a group_size argument
3075 and pass it to get_vectype_for_scalar_type. Don't use the
3076 cached vector type for BB vectorization if a group size is given.
3077 Handle data references in that case.
3078 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
3079 pass it to get_mask_type_for_scalar_type.
3080
3081 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
3082
3083 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
3084 parameter.
3085 (estimate_edge_time): Use it.
3086 * ipa-inline-analysis.c (do_estimate_edge_time): Add
3087 ret_nonspec_time parameter.
3088
3089 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
3090
3091 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
3092
3093 2019-11-15 Nick Clifton <nickc@redhat.com>
3094 Szabolcs Nagy <szabolcs.nagy@arm.com>
3095
3096 PR target/65649
3097 * config/microblaze/microblaze.c (print_operand): Print value as long.
3098
3099 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
3100
3101 * ipa-inline.c (edge_badness, inline_small_functions): Revert
3102 accidental commit.
3103
3104 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3105
3106 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
3107 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
3108
3109 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3110
3111 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
3112 (gcn_conditional_register_usage): Use constants in place of hard-coded
3113 values.
3114 (gcn_hsa_declare_function_name): Set lower bound for number of
3115 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
3116 MAX_NORMAL_VGPR_COUNT.
3117
3118 2019-11-15 Martin Jambor <mjambor@suse.cz>
3119
3120 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
3121 declaration.
3122
3123 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3124
3125 * config/gcn/gcn.c (default_requested_args): New.
3126 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
3127 set with default_requested_args.
3128 (gcn_conditional_register_usage): Limit register usage of non-kernel
3129 functions. Reassign fixed registers if a non-standard set of args is
3130 requested.
3131 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
3132
3133 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
3134
3135 PR ipa/92528
3136 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
3137 aggregate jump function when inlined-to caller has no edge summary.
3138
3139 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3140
3141 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
3142
3143 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3144
3145 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
3146 prologue use of v0.
3147 (print_operand_address): Use v1 for zero vector offset.
3148
3149 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3150
3151 PR tree-optimization/92515
3152 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
3153 types when converting a vector/scalar shift into a vector/vector one,
3154 using tree_nop_conversion_p instead of useless_type_conversion_p.
3155 Move the conversion code to the transform block.
3156
3157 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3158
3159 * read-rtl-function.c
3160 (function_reader::add_fixup_source_location): Take additional
3161 parameter of a column.
3162 (function_reader::maybe_read_location): Optionally parse column
3163 information and pass to add_fixup_source_location.
3164
3165 2019-11-15 Richard Biener <rguenther@suse.de>
3166
3167 PR tree-optimization/92512
3168 * tree-vect-loop.c (check_reduction_path): Fix operand index
3169 computability check. Add check for second use in COND_EXPRs.
3170
3171 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
3172
3173 PR target/92515
3174 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
3175 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
3176
3177 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
3178
3179 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
3180 register class for VCC_LO and VCC_HI.
3181 (gcn_spill_class): Use SGPR_REGS to spill registers in
3182 VCC_CONDITIONAL_REG.
3183
3184 2019-11-15 Richard Biener <rguenther@suse.de>
3185
3186 PR tree-optimization/92324
3187 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3188 singedness of SLP reduction epilouge operations. Also reduce
3189 the vector width for SLP reductions before doing elementwise
3190 operations if possible.
3191
3192 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3193
3194 * passes.c (skip_pass): Set epilogue_completed if skipping the
3195 pro_and_epilogue pass.
3196
3197 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
3198
3199 * passes.c (should_skip_pass_p): Always run "dfinish".
3200
3201 2019-11-15 Richard Biener <rguenther@suse.de>
3202
3203 * ipa-inline.c (inline_small_functions): Move assignment
3204 to next before call destroying edge.
3205
3206 2019-11-15 Richard Biener <rguenther@suse.de>
3207
3208 PR tree-optimization/92039
3209 PR tree-optimization/91975
3210 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
3211 previous change, treat invariants consistently as non-constant.
3212 (tree_estimate_loop_size): Ternary ops with just the first op
3213 constant are not optimized away.
3214
3215 2019-11-15 Jakub Jelinek <jakub@redhat.com>
3216
3217 * gimplify.c (gimplify_call_expr): Don't call
3218 omp_resolve_declare_variant after gimplification.
3219 * omp-general.c (omp_context_selector_matches): For isa that might
3220 match in some other function, defer if in declare simd function.
3221 (omp_context_compute_score): Don't look for " score" in construct
3222 trait set. Set *score to -1 if it can't ever match.
3223 (omp_resolve_declare_variant): If any variants need to be deferred,
3224 don't punt immediately, but compute scores of all variants and if
3225 ther eis a score winner that doesn't need to be deferred, return that.
3226
3227 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
3228
3229 * ipa-comdats.c: Fix comments typo.
3230 * ipa-profile.c: Fix comments typo.
3231 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
3232 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
3233 (gimple_gen_ic_func_profiler): Likewise.
3234 (pass_ipa_tree_profile::gate): Fix comments typo.
3235
3236 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
3237
3238 * ipa-inline.c (inline_small_functions): Update iterator of next.
3239
3240 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
3241
3242 * lra-spills.c (assign_spill_hard_regs): Check that the spill
3243 register is suitable for the mode.
3244
3245 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3246
3247 * range-op.h (range_operator::fold_range): Return a bool.
3248 * range-op.cc (range_operator::wi_fold): Assert supported type.
3249 (range_operator::fold_range): Assert supported type and return true.
3250 (operator_equal::fold_range): Return true.
3251 (operator_not_equal::fold_range): Same.
3252 (operator_lt::fold_range): Same.
3253 (operator_le::fold_range): Same.
3254 (operator_gt::fold_range): Same.
3255 (operator_ge::fold_range): Same.
3256 (operator_plus::op1_range): Adjust call to fold_range.
3257 (operator_plus::op2_range): Same.
3258 (operator_minus::op1_range): Same.
3259 (operator_minus::op2_range): Same.
3260 (operator_exact_divide::op1_range): Same.
3261 (operator_lshift::fold_range): Return true and adjust fold_range call.
3262 (operator_rshift::fold_range): Same.
3263 (operator_cast::fold_range): Return true.
3264 (operator_logical_and::fold_range): Same.
3265 (operator_logical_or::fold_range): Same.
3266 (operator_logical_not::fold_range): Same.
3267 (operator_bitwise_not::fold_range): Adjust call to fold_range.
3268 (operator_bitwise_not::op1_range): Same.
3269 (operator_cst::fold_range): Return true.
3270 (operator_identity::fold_range): Return true.
3271 (operator_negate::fold_range): Return true and adjust fold_range call.
3272 (operator_addr_expr::fold_range): Return true.
3273 (operator_addr_expr::op1_range): Adjust call to fold_range.
3274 (range_cast): Same.
3275 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
3276 (range_fold_unary_symbolics_p): Same.
3277
3278 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
3279
3280 PR tree-optimization/92506
3281 * range-op.cc (range_operator::fold_range): Start with range undefined.
3282 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
3283 overflow is varying.
3284
3285 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3286
3287 * range-op.cc (*operator*::*range): Remove calls to
3288 range_intersect, range_invert, and range_union in favor of calling
3289 the in-place API methods.
3290 (range_tests): Same.
3291 * range.cc (range_intersect): Remove.
3292 (range_union): Remove.
3293 (range_invert): Remove.
3294 * range.h (range_intersect): Remove.
3295 (range_union): Remove.
3296 (range_intersect): Remove.
3297
3298 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
3299
3300 PR rtl-optimization/92430
3301 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
3302 (pass_jump_after_combine::execute): Perform jump threading
3303 unconditionally.
3304
3305 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3306 Doug Rupp <rupp@adacore.com>
3307 Olivier Hainque <hainque@adacore.com>
3308
3309 * config.gcc: Collapse the arm-vxworks entries into
3310 a single arm-wrs-vxworks7* one, bpabi based. Update
3311 the default cpu from arm8 to armv7-a
3312 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
3313 we always use ARM_UNWIND_INFO.
3314 (DWARF2_UNWIND_INFO): Remove redefinition.
3315 (ARM_TARGET2_DWARF_FORMAT): Likewise.
3316 (VXWORKS_PERSONALITY): Define, to "llvm".
3317 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
3318
3319 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
3320
3321 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
3322 _VX_CPU instead of CPU and handle arm_arch8.
3323
3324 2019-11-14 Doug Rupp <rupp@adacore.com>
3325 Olivier Hainque <hainque@adacore.com>
3326 Jerome Lambourg <lambourg@adacore.com>
3327
3328 * config.gcc: Handle aarch64*-wrs-vxworks7*.
3329 * config/aarch64/aarch64-vxworks.h: New file.
3330 * config/aarch64/t-aarch64-vxworks: New file.
3331
3332 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
3333 Olivier Hainque <hainque@adacore.com>
3334
3335 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
3336 definition, pointless with a VxWorks specific version
3337 of crtstuff.
3338 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
3339 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
3340 New local macros, controlling the addition of vxworks specific
3341 crtstuff objects depending on the EH mechanism and kind of
3342 module being linked.
3343 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
3344
3345 2019-11-06 Pat Bernardi <bernardi@adacore.com>
3346 Jerome Lambourg <lambourg@adacore.com>
3347 Olivier Hainque <hainque@adacore.com>
3348
3349 * config.gcc: Add comment to introduce the TARGET_VXWORKS
3350 common macro definitions, conveying VXWORKS7 or 64bit general
3351 variations. Add a block to set gcc_cv_initfini_array
3352 unconditionally to "yes" for VxWorks7.
3353 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
3354 by default. Update some comments.
3355 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
3356 default, to be added the end of VXWORKS_LIBS_RTP.
3357 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
3358 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
3359 redefine.
3360 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
3361 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
3362 to account for the now available TLS abilities.
3363 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
3364 (VXWORKS_HAVE_TLS): Likewise.
3365
3366 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3367
3368 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
3369 (vect_slp_convert_to_external): Likewise.
3370 (vect_slp_analyze_node_operations): If analysis fails, try building
3371 the node from scalars instead.
3372
3373 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3374
3375 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
3376 between vector types.
3377 * tree-vect-stmts.c (vectorizable_conversion): Extend the
3378 non-widening and non-narrowing path to handle standard
3379 conversion codes, if the target supports them.
3380 * expr.c (convert_move): Try using the extend and truncate optabs
3381 for vectors.
3382 * optabs-tree.c (supportable_convert_operation): Likewise.
3383 * config/aarch64/iterators.md (Vnarroqw): New iterator.
3384 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
3385 (trunc<mode><Vnarrowq>2): New patterns.
3386
3387 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3388
3389 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
3390 require vectype and nunits_vectype to have the same size;
3391 instead assert that nunits_vectype has at least as many
3392 elements as vectype. Don't compute a separate nunits_vectype
3393 if the scalar type is obviously the same as vectype's.
3394 Tweak dump messages.
3395
3396 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3397
3398 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
3399 function.
3400 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
3401 (TARGET_VECTORIZE_RELATED_MODE): Define.
3402
3403 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3404
3405 * tree-vectorizer.h (vec_info::mode_set): New typedef.
3406 (vec_info::used_vector_mode): New member variable.
3407 (vect_chooses_same_modes_p): Declare.
3408 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
3409 chosen vector mode in vec_info::used_vector_mode.
3410 (vect_chooses_same_modes_p): New function.
3411 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
3412 the same vector statements multiple times.
3413 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3414
3415 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3416
3417 * machmode.h (opt_machine_mode::operator==): New function.
3418 (opt_machine_mode::operator!=): Likewise.
3419 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
3420 (get_related_vectype_for_scalar_type): Delete.
3421 (get_vectype_for_scalar_type_and_size): Declare.
3422 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
3423 whether analysis passed or failed, and with what vector modes.
3424 Use related_vector_mode to check whether trying a particular
3425 vector mode would be redundant with the autodetected mode,
3426 and print a dump message if we decide to skip it.
3427 * tree-vect-loop.c (vect_analyze_loop): Likewise.
3428 (vect_create_epilog_for_reduction): Use
3429 get_related_vectype_for_scalar_type instead of
3430 get_vectype_for_scalar_type_and_size.
3431 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
3432 with...
3433 (get_related_vectype_for_scalar_type): ...this new function.
3434 Take a starting/"prevailing" vector mode rather than a vector size.
3435 Take an optional nunits argument, with the same meaning as for
3436 related_vector_mode. Use related_vector_mode when not
3437 auto-detecting a mode, falling back to mode_for_vector if no
3438 target mode exists.
3439 (get_vectype_for_scalar_type): Update accordingly.
3440 (get_same_sized_vectype): Likewise.
3441 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
3442
3443 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3444
3445 * tree-vect-stmts.c (vectorizable_call): Require the types
3446 to have the same size.
3447
3448 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3449
3450 * tree-vect-stmts.c (vectorizable_call): If an operand is
3451 constant or external, use get_vectype_for_scalar_type
3452 rather than get_same_sized_vectype to get its vector type.
3453 (vectorizable_conversion, vectorizable_shift): Likewise.
3454 (vectorizable_operation): Likewise.
3455
3456 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3457
3458 * tree-vectorizer.h (vec_info::vector_size): Replace with...
3459 (vec_info::vector_mode): ...this new field.
3460 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
3461 (vect_analyze_loop, vect_transform_loop): Likewise.
3462 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
3463 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3464 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3465 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3466 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3467
3468 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3469
3470 * target.h (vector_sizes, auto_vector_sizes): Delete.
3471 (vector_modes, auto_vector_modes): New typedefs.
3472 * target.def (autovectorize_vector_sizes): Replace with...
3473 (autovectorize_vector_modes): ...this new hook.
3474 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3475 Replace with...
3476 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
3477 * doc/tm.texi: Regenerate.
3478 * targhooks.h (default_autovectorize_vector_sizes): Delete.
3479 (default_autovectorize_vector_modes): New function.
3480 * targhooks.c (default_autovectorize_vector_sizes): Delete.
3481 (default_autovectorize_vector_modes): New function.
3482 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
3483 of autovectorize_vector_sizes. Use the number of units in the mode
3484 to calculate the maximum VF.
3485 * omp-low.c (omp_clause_aligned_alignment): Use
3486 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3487 Use a loop based on related_mode to iterate through all supported
3488 vector modes for a given scalar mode.
3489 * optabs-query.c (can_vec_mask_load_store_p): Use
3490 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3491 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3492 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3493 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3494 Replace with...
3495 (aarch64_autovectorize_vector_modes): ...this new function.
3496 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3497 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3498 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3499 (arc_autovectorize_vector_modes): ...this new function.
3500 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3501 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3502 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3503 (arm_autovectorize_vector_modes): ...this new function.
3504 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3505 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3506 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3507 (ix86_autovectorize_vector_modes): ...this new function.
3508 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3509 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3510 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3511 (mips_autovectorize_vector_modes): ...this new function.
3512 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3513 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3514
3515 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3516
3517 * tree-vect-stmts.c (vectorizable_shift): Check the number
3518 of vector elements as well as the type mode when deciding
3519 whether an op1_vectype is compatible. Reuse the result of
3520 this check when generating vector statements.
3521
3522 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3523
3524 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3525 targetm.vectorize.preferred_simd_mode returns an integer mode,
3526 use mode_for_vector to decide what the vector type's mode
3527 should actually be. Use build_vector_type_for_mode instead
3528 of build_vector_type.
3529
3530 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3531
3532 * target.def (get_mask_mode): Take a vector mode itself as argument,
3533 instead of properties about the vector mode.
3534 * doc/tm.texi: Regenerate.
3535 * targhooks.h (default_get_mask_mode): Update to reflect new
3536 get_mode_mask interface.
3537 * targhooks.c (default_get_mask_mode): Likewise. Use
3538 related_int_vector_mode.
3539 * optabs-query.c (can_vec_mask_load_store_p): Update call
3540 to get_mask_mode.
3541 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3542 first that the original mode really is a vector.
3543 * tree.c (build_truth_vector_type_for): Likewise.
3544 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3545 get_mode_mask interface.
3546 (aarch64_expand_sve_vcond): Update call accordingly.
3547 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3548 get_mode_mask interface.
3549 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3550
3551 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3552
3553 * tree.h (build_truth_vector_type): Delete.
3554 (build_same_sized_truth_vector_type): Likewise.
3555 * tree.c (build_truth_vector_type): Rename to...
3556 (build_truth_vector_type_for): ...this. Make static and take
3557 a vector type as argument.
3558 (truth_type_for): Update accordingly.
3559 (build_same_sized_truth_vector_type): Delete.
3560 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3561 instead of build_same_sized_truth_vector_type.
3562 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3563 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3564 * tree-vect-patterns.c (build_mask_conversion): Likeise.
3565 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3566 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3567 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3568 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3569 (vectorizable_store, vectorizable_condition): Likewise.
3570 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3571 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3572 build_truth_vector_type.
3573 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3574 Use truth_type_for instead of build_same_sized_truth_vector_type.
3575 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3576
3577 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3578
3579 * tree.h (build_truth_vector_type_for_mode): Declare.
3580 * tree.c (build_truth_vector_type_for_mode): New function,
3581 split out from...
3582 (build_truth_vector_type): ...here.
3583 (build_opaque_vector_type): Fix head comment.
3584 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3585 vec_info parameter.
3586 (vect_halve_mask_nunits): Replace vec_info parameter with the
3587 mode of the new vector.
3588 (vect_double_mask_nunits): Likewise.
3589 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3590 (vect_double_mask_nunits): Likewise.
3591 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3592 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3593 to vect_halve_mask_nunits, getting the required mode from the unpack
3594 patterns.
3595 (vect_set_loop_condition_masked): Update call accordingly.
3596 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3597 parameter and update call to vect_double_mask_nunits.
3598 (vectorizable_conversion): Update call accordingly.
3599 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3600 (vectorizable_call): Update call accordingly.
3601 (supportable_widening_operation): Update call to
3602 vect_halve_mask_nunits.
3603 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3604 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3605
3606 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3607
3608 * machmode.h (mode_for_int_vector): Delete.
3609 (related_int_vector_mode): Declare.
3610 * stor-layout.c (mode_for_int_vector): Delete.
3611 (related_int_vector_mode): New function.
3612 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3613 instead of mode_for_int_vector.
3614 (expand_vec_perm_const): Likewise.
3615 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3616 (aarch64_evpc_sve_tbl): Likewise.
3617 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3618 (s390_expand_vcond): Likewise.
3619
3620 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3621
3622 * target.def (related_mode): New hook.
3623 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3624 * doc/tm.texi: Regenerate.
3625 * targhooks.h (default_vectorize_related_mode): Declare.
3626 * targhooks.c (default_vectorize_related_mode): New function.
3627 * machmode.h (related_vector_mode): Declare.
3628 * stor-layout.c (related_vector_mode): New function.
3629 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3630 * optabs-query.c (qimode_for_vec_perm): Likewise.
3631 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3632 (vectorizable_store, vectorizable_load): Likewise
3633
3634 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3635
3636 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3637 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3638 * config/arm/arm-c.c (arm_cpu_builtins): Define
3639 __GCC_ASM_FLAG_OUTPUTS__.
3640 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3641 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3642 Define __GCC_ASM_FLAG_OUTPUTS__.
3643 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3644 * doc/extend.texi (FlagOutputOperands): Add documentation
3645 for ARM and AArch64.
3646
3647 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3648 * config/arm/predicates.md (nz_comparison_operator): Rename
3649 from noov_comparison_operator.
3650 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3651 (arm_gen_dicompare_reg): Likewise.
3652 (maybe_get_arm_condition_code): Likewise.
3653 (thumb1_final_prescan_insn): Likewise.
3654 (arm_emit_coreregs_64bit_shift): Likewise.
3655 * config/arm/arm.md (addsi3_compare0): Likewise.
3656 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3657 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3658 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3659 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3660 (*mulsi3addsi_compare0_scratch): Likewise.
3661 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3662 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3663 (*zeroextractsi_compare0_scratch): Likewise.
3664 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3665 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3666 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3667 (andsi_not_shiftsi_si_scc): Likewise.
3668 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3669 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3670 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3671 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3672 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3673 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3674 (return_addr_mask, *check_arch2): Likewise.
3675 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3676 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3677 (compare_scc splitters): Likewise.
3678 (movcond_addsi): Likewise.
3679 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3680 (*thumb2_addsi3_compare0_scratch): Likewise.
3681 (*thumb2_mulsi_short_compare0): Likewise.
3682 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3683 (compare peephole2s): Likewise.
3684 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3685 nz_comparison_operator names.
3686 (cbranchsi4_insn): Likewise.
3687
3688 * config/arm/constraints.md (c): Use cc_register predicate.
3689
3690 * config/aarch64/constraints.md (c): New constraint.
3691
3692 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3693
3694 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3695 ipa_merge_fn_summary_after_inlining): Micro optimize.
3696
3697 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3698
3699 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3700
3701 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3702
3703 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3704 (ipa_value_range_from_jfunc): New function.
3705 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3706 known_value_ranges parameter; use it to evalulate conditions.
3707 (evaluate_properties_for_edge): Compute known value ranges.
3708 (ipa_fn_summary_t::duplicate): Update use of
3709 evaluate_conditions_for_known_args.
3710 (estimate_ipcp_clone_size_and_time): Likewise.
3711 (ipa_merge_fn_summary_after_inlining): Likewise.
3712 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3713
3714 2019-11-14 Martin Liska <mliska@suse.cz>
3715
3716 * ipa-inline.c (want_inline_small_function_p): Use
3717 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3718 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3719
3720 2019-11-14 Martin Liska <mliska@suse.cz>
3721
3722 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3723 of a callee to get value of the param.
3724 * ipa-inline.c (inline_insns_auto): Use proper
3725 opt_for_fn.
3726 * opts.c (maybe_default_option): Do not overwrite param
3727 value if optimization level does not match. Note that
3728 params usually have default value set via Init() keyword.
3729 * params.opt: Remove -param=max-inline-insns-auto-O2.
3730 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3731 * doc/invoke.texi: Remove documentation of
3732 max-inline-insns-auto-O2.
3733
3734 2019-11-14 Martin Liska <mliska@suse.cz>
3735
3736 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3737 Do not initialize m_other_count.
3738 (switch_conversion::collect): Do not count m_default_count and
3739 m_other_count as we use frequencies for edges.
3740 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3741
3742 2019-11-14 Martin Liska <mliska@suse.cz>
3743
3744 PR other/92329
3745 * doc/invoke.texi: Document -fallocation-dce.
3746
3747 2019-11-14 Martin Liska <mliska@suse.cz>
3748
3749 PR target/92389
3750 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3751 PTA_ICELAKE_CLIENT which is later interited by
3752 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3753
3754 2019-11-14 Martin Liska <mliska@suse.cz>
3755
3756 * ipa-icf.c (sem_item_optimizer::execute): Save
3757 loaded_symbols.
3758 (sem_item_optimizer::parse_nonsingleton_classes):
3759 Return number of loaded symbols.
3760 (sem_item_optimizer::merge_classes): Print
3761 statistics about totally needed symbols.
3762 * ipa-icf.h (parse_nonsingleton_classes): Change return
3763 type.
3764 (merge_classes): Add one argument.
3765
3766 2019-11-14 Martin Liska <mliska@suse.cz>
3767
3768 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3769 func_checker::hash_operand by handling of FIELD_DECLs.
3770
3771 2019-11-14 Martin Liska <mliska@suse.cz>
3772
3773 * ipa-icf-gimple.h (func_checker::func_checker): Add
3774 default constructor.
3775 * ipa-icf.c (sem_function::init): Make operand_equal_p
3776 and hash_operand public.
3777 (sem_item::add_expr): Remove.
3778 (sem_item::add_type): Remove.
3779 (sem_function::hash_stmt): Use m_checker for hashing
3780 of GIMPLE statements.
3781 (sem_function::parse): Init with checker.
3782 (sem_variable::parse): Pass NULL as checker.
3783 (sem_item_optimizer::parse_funcs_and_vars):
3784 Pass checker to ::parse function.
3785 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3786 (sem_variable::parse): New function.
3787 (sem_variable::get_hash): Only return computed hash value.
3788 (sem_variable::init): Initialize hash of a variable.
3789 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3790 to couple of functions as a new argument.
3791
3792 2019-11-14 Martin Liska <mliska@suse.cz>
3793
3794 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3795 bail out reason.
3796 (func_checker::compare_gimple_assign): Likewise.
3797
3798 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3799
3800 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3801 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3802 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3803
3804 * omp-general.c (omp_context_name_list_prop): New function.
3805 (omp_context_selector_matches): Use it. Return 0 if it returns
3806 NULL.
3807 (omp_context_selector_props_compare): Allow equivalency of an
3808 identifier and a string literal containing no embedded zeros.
3809
3810 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3811
3812 * range-op.cc (RANGE3): Remove.
3813 (range_tests): Remove all selftest that check for multi-ranges.
3814 Put tests in namespace selftest.
3815 * selftest.h: Move range_tests into namespace selftest.
3816 * value-range.h (class value_range): Unfriend range_tests.
3817
3818 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3819
3820 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3821 normalize_symbolics and normalize_addresses working in place.
3822 (range_fold_unary_symbolics_p): Same.
3823 (range_fold_unary_symbolics_p): Same.
3824 * value-range.cc (num_pairs): Same.
3825 (lower_bound): Same.
3826 (upper_bound): Same.
3827 (contains_p): Same.
3828 (normalize_addresses): Same.
3829 (normalize_symbolics): Same.
3830 * value-range.h (normalize_symbolics): Same.
3831 (normalize_addresses): Same.
3832
3833 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3834
3835 PR ipa/91682
3836 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3837 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3838 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3839 (ipa_agg_jump_function): Remove member function equal_to.
3840 (ipa_agg_jump_function_p): Remove typedef.
3841 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3842 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3843 information for aggregate jump function.
3844 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3845 record last definition statement.
3846 (load_from_unmodified_param_or_agg): New function.
3847 (ipa_known_agg_contents_list): Add new field type and value, remove
3848 field constant.
3849 (build_agg_jump_func_from_list): Rename parameter const_count to
3850 value_count, build aggregate jump function from ipa_load_agg_data.
3851 (analyze_agg_content_value): New function.
3852 (extract_mem_content): Analyze memory store assignment to prepare
3853 information for aggregate jump function generation.
3854 (determine_known_aggregate_parts): Add new parameter fbi, remove
3855 parameter aa_walk_budeget_p.
3856 (update_jump_functions_after_inlining): Update aggregate jump function.
3857 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3858 (try_make_edge_direct_simple_call): Add new parameter new_root.
3859 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3860 new_root_info.
3861 (update_indirect_edges_after_inlining): Pass new argument to
3862 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3863 (ipa_write_jump_function): Write aggregate jump function to file.
3864 (ipa_read_jump_function): Read aggregate jump function from file.
3865 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3866 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3867 (ipa_agg_value_from_node): Likewise.
3868 (ipa_agg_value_set_from_jfunc): Likewise.
3869 (propagate_vals_across_arith_jfunc): Likewise.
3870 (propagate_aggregate_lattice): Likewise.
3871 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3872 (propagate_vals_across_pass_through): Call
3873 propagate_vals_across_arith_jfunc.
3874 (get_clone_agg_value): Move forward.
3875 (propagate_aggs_across_jump_function): Handle value propagation for
3876 aggregate jump function.
3877 (agg_jmp_p_vec_for_t_vec): Remove.
3878 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3879 with vec<ipa_agg_value>.
3880 (copy_plats_to_inter, intersect_with_plats): Likewise.
3881 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3882 (intersect_aggregate_with_edge): Likewise.
3883 (find_aggregate_values_for_callers_subset): Likewise.
3884 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3885 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3886 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3887 (gather_context_independent_values): Likewise.
3888 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3889 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3890 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3891 (evaluate_properties_for_edge): Likewise.
3892 (estimate_edge_devirt_benefit): Likewise.
3893 (estimate_edge_size_and_time): Likewise.
3894 (estimate_calls_size_and_time): Likewise.
3895 (ipa_call_context::ipa_call_context): Likewise.
3896 (estimate_ipcp_clone_size_and_time): Likewise.
3897 * ipa-fnsummary.h (ipa_call_context): Replace
3898 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3899 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3900 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3901 (do_estimate_edge_size): Likewise.
3902 (do_estimate_edge_hints): Likewise.
3903
3904 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3905
3906 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3907 binary operations.
3908
3909 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3910
3911 * ipa-profile.c (check_argument_count): Check properly that e_info
3912 is non-NULL; do not check descriptors.
3913
3914 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3915
3916 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3917 check for ipa profiles.
3918
3919 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3920
3921 PR c++/92421
3922 * ipa-prop.c (update_indirect_edges_after_inlining):
3923 Mark parameter as used.
3924 * ipa-inline.c (recursive_inlining): Reset node cache
3925 after inlining.
3926 (inline_small_functions): Remove checking ifdef.
3927 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3928 cache consistency.
3929
3930 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3931
3932 PR ipa/92498
3933 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3934 is NULL.
3935 (ipa_profile): Fix reversed test.
3936
3937 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3938
3939 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3940 (propagate_constants_topo): Fix typo.
3941
3942 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3943
3944 * Makefile.in (OBJS): Add value-range.o.
3945 (GTFILES): Add value-range.h.
3946 * gengtype.c (open_base_files): Add value-range.h to list of
3947 header files.
3948 * tree-vrp.c: Move the following value_range related functions:
3949 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3950 constant_p, set_undefined, set_varying, may_contain_p,
3951 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3952 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3953 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3954 value_inside_range, ranges_from_anti_range, union_ranges,
3955 intersect_ranges, intersect_helper, union_helper, union_,
3956 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3957 upper_bound, contains_p, invert, intersect...
3958 * value-range.cc: ...to here.
3959 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3960 associated inline methods from here...
3961 * value-range.h: ...to here.
3962
3963 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3964
3965 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3966 instead of asserting its value.
3967
3968 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3969
3970 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3971 constructors and set methods so value_range_kind is the last
3972 argument and defaults to VR_RANGE.
3973 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3974 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3975 * ipa-prop.c (ipa_get_value_range): Same.
3976 (ipa_compute_jump_functions_for_edge): Same.
3977 * range-op.cc (value_range_from_overflowed_bounds): Same.
3978 (operator_cast::op1_range): Same.
3979 (range_tests): Same.
3980 * range.cc (range_nonzero): Same.
3981 * tree-ssanames.c (get_range_info): Same.
3982 * tree-vrp.c (value_range_equiv::set): Same.
3983 (value_range::value_range): Same.
3984 (value_range_equiv::value_range_equiv): Same.
3985 (value_range_equiv::update): Same.
3986 (value_range_equiv::deep_copy): Same.
3987 (value_range_equiv::move): Same.
3988 (value_range_equiv::set_undefined): Same.
3989 (value_range::set): Same.
3990 (value_range::set_nonzero): Same.
3991 (ranges_from_anti_range): Same.
3992 (extract_range_from_plus_minus_expr): Same.
3993 (value_range::intersect_helper): Same.
3994 (value_range_equiv::intersect): Same.
3995 (value_range::union_helper): Same.
3996 (value_range_equiv::union_): Same.
3997 (value_range::normalize_symbolics): Same.
3998 (value_range::invert): Same.
3999 (determine_value_range_1): Same.
4000 * tree-vrp.h (class value_range): Same.
4001 (class value_range_equiv): Same.
4002 * vr-values.c (set_value_range_to_nonnegative): Same.
4003 (set_value_range_to_truthvalue): Same.
4004 (vr_values::update_value_range): Same.
4005 (vr_values::extract_range_for_var_from_comparison_expr): Same.
4006 (vr_values::extract_range_from_binary_expr): Same.
4007 (vr_values::extract_range_from_comparison): Same.
4008 (vr_values::extract_range_basic): Same.
4009 (vr_values::adjust_range_with_scev): Same.
4010 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
4011 (vr_values::extract_range_from_phi_node): Same.
4012
4013 2019-11-13 Ulrich Drepper <drepper@redhat.com>
4014
4015 * tree-dump.c (dequeue_and_dump): Print first tree operand
4016 for VIEW_CONVERT_EXPR.
4017
4018 2019-11-13 Joseph Myers <joseph@codesourcery.com>
4019
4020 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
4021 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
4022 * real.c (get_max_float): Add norm_max argument.
4023 * real.h (get_max_float): Update prototype.
4024 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
4025 get_max_float.
4026
4027 2019-11-13 Martin Liska <mliska@suse.cz>
4028
4029 * dbgcnt.c (test_sorted_dbg_counters): New.
4030 (dbgcnt_c_tests): Likewise.
4031 * selftest-run-tests.c (selftest::run_tests): Likewise.
4032 * selftest.h (dbgcnt_c_tests): Likewise.
4033
4034 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4035 Martin Jambor <mjambor@suse.cz>
4036
4037 PR ipa/92454
4038 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
4039 (identify_dead_nodes): Likewise.
4040
4041 2019-11-13 Martin Liska <mliska@suse.cz>
4042
4043 * ipa-icf.c (sem_function::equals_private): Do not overuse
4044 push/pop_cfun functions.
4045
4046 2019-11-13 Martin Liska <mliska@suse.cz>
4047
4048 * common.opt: Document change of -fdbg-cnt option.
4049 * dbgcnt.c (DEBUG_COUNTER): Remove.
4050 (dbg_cnt_is_enabled): Remove.
4051 (dbg_cnt): Work with new intervals.
4052 (dbg_cnt_set_limit_by_index): Set to new
4053 list of intervals.
4054 (dbg_cnt_set_limit_by_name): Likewise.
4055 (dbg_cnt_process_single_pair): Process new format.
4056 (dbg_cnt_process_opt): Likewise.
4057 (dbg_cnt_list_all_counters): Likewise.
4058 * doc/invoke.texi: Document change of -fdbg-cnt option.
4059 (cmp_tuples): New.
4060
4061 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4062
4063 * ipa-inline.c (ipa_inline): Check that function is defined before
4064 flattening.
4065
4066 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4067 Julian Brown <julian@codesourcery.com>
4068
4069 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
4070 flag_worker_partitioning is not set.
4071 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
4072 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
4073
4074 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
4075
4076 * config/gcn/gcn-run.c (heap_region): New global variable.
4077 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
4078 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
4079 (get_kernarg_region): Move contents to ....
4080 (get_memory_region): .... here.
4081 (get_heap_region): New function.
4082 (init_device): Initialize the heap_region.
4083 (device_malloc): Add region parameter.
4084 (struct kernargs): Move heap ....
4085 (heap): ... to global scope.
4086 (main): Allocate heap separate to kernargs.
4087
4088 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4089
4090 * ipa-prop.c (ipa_print_node_jump_functions,
4091 ipa_print_node_params): Print info about missing summaries.
4092
4093 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4094
4095 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
4096 the cost of generating loop masks.
4097
4098 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4099
4100 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
4101 New function.
4102 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
4103 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4104 (vect_transform_loop): Likewise.
4105 (vect_analyze_loop_costing): Don't take the cost of versioning
4106 into account for the static profitability threshold if it turns
4107 out that no versioning is needed.
4108
4109 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
4110
4111 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
4112 and target_option_default_node to get -fprofile-generate ctors working
4113 right with LTO.
4114
4115 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4116
4117 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
4118 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
4119 (vectorizable_assignment): Don't add a cost for nop conversions.
4120 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
4121 Likewise.
4122 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
4123
4124 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4125
4126 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
4127 number of ncopies as an additional argument.
4128 (vectorizable_conversion): Update call accordingly. Use "modifier"
4129 to check whether a conversion is between vectors with the same
4130 numbers of units.
4131
4132 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
4133
4134 * config/aarch64/aarch64-sve-builtins-functions.h
4135 (unary_count::expand): Use aarch64_sve_int_mode instead of
4136 mode_for_int_vector.
4137
4138 2019-11-13 Martin Liska <mliska@suse.cz>
4139
4140 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
4141
4142 2019-11-13 Martin Liska <mliska@suse.cz>
4143
4144 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4145 Remove call to finalize_options_struct.
4146
4147 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
4148
4149 PR target/92055
4150 * config/avr/t-avr (avr-mcus): Do not depend on
4151 $(srcdir)/config/avr/t-multilib.
4152
4153 2019-11-13 Richard Biener <rguenther@suse.de>
4154
4155 PR tree-optimization/92473
4156 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
4157 direct optab reduction in the correct type.
4158
4159 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4160
4161 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
4162 hexadecimal literal.
4163
4164 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4165
4166 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
4167 UNORDERED if !HONOR_NANS (DFmode).
4168 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
4169 if !HONOR_NANS (<MODE>mode).
4170
4171 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4172
4173 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
4174 (ipcp_verify_propagated_values): Likewise.
4175 (propagate_constants_across_call): Likewise.
4176 (propagate_constants_topo): Likewise.
4177 (ipcp_propagate_stage): Likewise.
4178
4179 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
4180
4181 PR ipa/92471
4182 * ipa-profile.c (check_argument_count): Break out from ...;
4183 watch for missing summaries.
4184 (ipa_profile): Here.
4185
4186 2019-11-12 Martin Sebor <msebor@redhat.com>
4187
4188 PR tree-optimization/92412
4189 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
4190 extern variables.
4191
4192 2019-11-12 Martin Sebor <msebor@redhat.com>
4193
4194 PR middle-end/83688
4195 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
4196 (directive::argno): New member.
4197 (format_result::aliases, format_result::alias_count): New data members.
4198 (format_result::append_alias): New member function.
4199 (fmtresult::dst_offset): New data member.
4200 (pass_sprintf_length::call_info::dst_origin): New data member.
4201 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
4202 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
4203 (get_origin_and_offset): Same.
4204 (format_string): Call it.
4205 (format_directive): Call append_alias and set directive argument
4206 number.
4207 (maybe_warn_overlap): New function.
4208 (pass_sprintf_length::compute_format_length): Call it.
4209 (pass_sprintf_length::handle_gimple_call): Initialize new members.
4210 * tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
4211
4212 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
4213
4214 PR rtl-optimization/92430
4215 * cfgcleanup.c (pass_jump_after_combine::execute): Free
4216 dominance info at the beginning.
4217
4218 2019-11-12 Richard Biener <rguenther@suse.de>
4219
4220 PR tree-optimization/92460
4221 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
4222 expression before gimplifying.
4223
4224 2019-11-12 Richard Biener <rguenther@suse.de>
4225
4226 PR tree-optimization/92461
4227 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
4228 stmt after propagation.
4229
4230 2019-11-12 Martin Liska <mliska@suse.cz>
4231
4232 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
4233 Use SET_OPTION_IF_UNSET.
4234 (ix86_option_override_internal): Likewise.
4235 * opts.c (default_options_optimization): Likewise.
4236 (finish_options): Likewise.
4237 (enable_fdo_optimizations): Likewise.
4238 (common_handle_option): Likewise.
4239
4240 2019-11-12 Martin Liska <mliska@suse.cz>
4241
4242 * common/common-target.def: Remove option_validate_param and
4243 option_default_params.
4244 * common/common-targhooks.c (default_option_validate_param):
4245 Remove.
4246 * common/common-targhooks.h (default_option_validate_param):
4247 Remove.
4248 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
4249 Remove usage of this.
4250 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
4251 (aarch64_option_validate_param): Likewise.
4252 (aarch64_option_default_params): Likewise
4253 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
4254 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4255 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4256 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4257 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4258 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4259 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4260 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4261 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4262 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
4263 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
4264 guard_size here.
4265 * doc/tm.texi: Remove option_default_params and option_validate_param.
4266 * doc/tm.texi.in: Likewise.
4267
4268 2019-11-12 Martin Liska <mliska@suse.cz>
4269
4270 * common/common-target.def:
4271 Do not mention set_default_param_value
4272 and set_param_value.
4273 * doc/tm.texi: Likewise.
4274
4275 2019-11-12 Martin Liska <mliska@suse.cz>
4276
4277 * common.opt: Remove param_values.
4278 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
4279 Remove finalize_options_struct.
4280 * gcc.c (driver::decode_argv): Do not call global_init_params
4281 and finish_params.
4282 (driver::finalize): Do not call params_c_finalize
4283 and finalize_options_struct.
4284 * opt-suggestions.c (option_proposer::get_completions): Remove
4285 special casing of params.
4286 (option_proposer::find_param_completions): Remove.
4287 (test_completion_partial_match): Update expected output.
4288 * opt-suggestions.h: Remove find_param_completions.
4289 * opts-common.c (add_misspelling_candidates): Add
4290 --param with a space.
4291 * opts.c (handle_param): Remove.
4292 (init_options_struct):. Remove init_options_struct and
4293 similar calls.
4294 (finalize_options_struct): Remove.
4295 (common_handle_option): Use SET_OPTION_IF_UNSET.
4296 * opts.h (finalize_options_struct): Remove.
4297 * toplev.c (general_init): Do not call global_init_params.
4298 (toplev::finalize): Do not call params_c_finalize and
4299 finalize_options_struct.
4300
4301 2019-11-12 Martin Liska <mliska@suse.cz>
4302
4303 * Makefile.in: Remove PARAMS_H and params.list
4304 and params.options.
4305 * params-enum.h: Remove.
4306 * params-list.h: Remove.
4307 * params-options.h: Remove.
4308 * params.c: Remove.
4309 * params.def: Remove.
4310 * params.h: Remove.
4311 * asan.c: Do not include params.h.
4312 * auto-profile.c: Likewise.
4313 * bb-reorder.c: Likewise.
4314 * builtins.c: Likewise.
4315 * cfgcleanup.c: Likewise.
4316 * cfgexpand.c: Likewise.
4317 * cfgloopanal.c: Likewise.
4318 * cgraph.c: Likewise.
4319 * combine.c: Likewise.
4320 * common/config/aarch64/aarch64-common.c: Likewise.
4321 * common/config/gcn/gcn-common.c: Likewise.
4322 * common/config/ia64/ia64-common.c: Likewise.
4323 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
4324 * common/config/rs6000/rs6000-common.c: Likewise.
4325 * common/config/sh/sh-common.c: Likewise.
4326 * config/aarch64/aarch64.c: Likewise.
4327 * config/alpha/alpha.c: Likewise.
4328 * config/arm/arm.c: Likewise.
4329 * config/avr/avr.c: Likewise.
4330 * config/csky/csky.c: Likewise.
4331 * config/i386/i386-builtins.c: Likewise.
4332 * config/i386/i386-expand.c: Likewise.
4333 * config/i386/i386-features.c: Likewise.
4334 * config/i386/i386-options.c: Likewise.
4335 * config/i386/i386.c: Likewise.
4336 * config/ia64/ia64.c: Likewise.
4337 * config/rs6000/rs6000-logue.c: Likewise.
4338 * config/rs6000/rs6000.c: Likewise.
4339 * config/s390/s390.c: Likewise.
4340 * config/sparc/sparc.c: Likewise.
4341 * config/visium/visium.c: Likewise.
4342 * coverage.c: Likewise.
4343 * cprop.c: Likewise.
4344 * cse.c: Likewise.
4345 * cselib.c: Likewise.
4346 * dse.c: Likewise.
4347 * emit-rtl.c: Likewise.
4348 * explow.c: Likewise.
4349 * final.c: Likewise.
4350 * fold-const.c: Likewise.
4351 * gcc.c: Likewise.
4352 * gcse.c: Likewise.
4353 * ggc-common.c: Likewise.
4354 * ggc-page.c: Likewise.
4355 * gimple-loop-interchange.cc: Likewise.
4356 * gimple-loop-jam.c: Likewise.
4357 * gimple-loop-versioning.cc: Likewise.
4358 * gimple-ssa-split-paths.c: Likewise.
4359 * gimple-ssa-sprintf.c: Likewise.
4360 * gimple-ssa-store-merging.c: Likewise.
4361 * gimple-ssa-strength-reduction.c: Likewise.
4362 * gimple-ssa-warn-alloca.c: Likewise.
4363 * gimple-ssa-warn-restrict.c: Likewise.
4364 * graphite-isl-ast-to-gimple.c: Likewise.
4365 * graphite-optimize-isl.c: Likewise.
4366 * graphite-scop-detection.c: Likewise.
4367 * graphite-sese-to-poly.c: Likewise.
4368 * graphite.c: Likewise.
4369 * haifa-sched.c: Likewise.
4370 * hsa-gen.c: Likewise.
4371 * ifcvt.c: Likewise.
4372 * ipa-cp.c: Likewise.
4373 * ipa-fnsummary.c: Likewise.
4374 * ipa-inline-analysis.c: Likewise.
4375 * ipa-inline.c: Likewise.
4376 * ipa-polymorphic-call.c: Likewise.
4377 * ipa-profile.c: Likewise.
4378 * ipa-prop.c: Likewise.
4379 * ipa-split.c: Likewise.
4380 * ipa-sra.c: Likewise.
4381 * ira-build.c: Likewise.
4382 * ira-conflicts.c: Likewise.
4383 * loop-doloop.c: Likewise.
4384 * loop-invariant.c: Likewise.
4385 * loop-unroll.c: Likewise.
4386 * lra-assigns.c: Likewise.
4387 * lra-constraints.c: Likewise.
4388 * modulo-sched.c: Likewise.
4389 * opt-suggestions.c: Likewise.
4390 * opts.c: Likewise.
4391 * postreload-gcse.c: Likewise.
4392 * predict.c: Likewise.
4393 * reload.c: Likewise.
4394 * reorg.c: Likewise.
4395 * resource.c: Likewise.
4396 * sanopt.c: Likewise.
4397 * sched-deps.c: Likewise.
4398 * sched-ebb.c: Likewise.
4399 * sched-rgn.c: Likewise.
4400 * sel-sched-ir.c: Likewise.
4401 * sel-sched.c: Likewise.
4402 * shrink-wrap.c: Likewise.
4403 * stmt.c: Likewise.
4404 * targhooks.c: Likewise.
4405 * toplev.c: Likewise.
4406 * tracer.c: Likewise.
4407 * trans-mem.c: Likewise.
4408 * tree-chrec.c: Likewise.
4409 * tree-data-ref.c: Likewise.
4410 * tree-if-conv.c: Likewise.
4411 * tree-inline.c: Likewise.
4412 * tree-loop-distribution.c: Likewise.
4413 * tree-parloops.c: Likewise.
4414 * tree-predcom.c: Likewise.
4415 * tree-profile.c: Likewise.
4416 * tree-scalar-evolution.c: Likewise.
4417 * tree-sra.c: Likewise.
4418 * tree-ssa-ccp.c: Likewise.
4419 * tree-ssa-dom.c: Likewise.
4420 * tree-ssa-dse.c: Likewise.
4421 * tree-ssa-ifcombine.c: Likewise.
4422 * tree-ssa-loop-ch.c: Likewise.
4423 * tree-ssa-loop-im.c: Likewise.
4424 * tree-ssa-loop-ivcanon.c: Likewise.
4425 * tree-ssa-loop-ivopts.c: Likewise.
4426 * tree-ssa-loop-manip.c: Likewise.
4427 * tree-ssa-loop-niter.c: Likewise.
4428 * tree-ssa-loop-prefetch.c: Likewise.
4429 * tree-ssa-loop-unswitch.c: Likewise.
4430 * tree-ssa-math-opts.c: Likewise.
4431 * tree-ssa-phiopt.c: Likewise.
4432 * tree-ssa-pre.c: Likewise.
4433 * tree-ssa-reassoc.c: Likewise.
4434 * tree-ssa-sccvn.c: Likewise.
4435 * tree-ssa-scopedtables.c: Likewise.
4436 * tree-ssa-sink.c: Likewise.
4437 * tree-ssa-strlen.c: Likewise.
4438 * tree-ssa-structalias.c: Likewise.
4439 * tree-ssa-tail-merge.c: Likewise.
4440 * tree-ssa-threadbackward.c: Likewise.
4441 * tree-ssa-threadedge.c: Likewise.
4442 * tree-ssa-uninit.c: Likewise.
4443 * tree-switch-conversion.c: Likewise.
4444 * tree-vect-data-refs.c: Likewise.
4445 * tree-vect-loop.c: Likewise.
4446 * tree-vect-slp.c: Likewise.
4447 * tree-vrp.c: Likewise.
4448 * tree.c: Likewise.
4449 * value-prof.c: Likewise.
4450 * var-tracking.c: Likewise.
4451
4452 2019-11-12 Martin Liska <mliska@suse.cz>
4453
4454 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
4455 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
4456 macro.
4457 (asan_sanitize_allocas_p): Likewise.
4458 (asan_emit_stack_protection): Likewise.
4459 (asan_protect_global): Likewise.
4460 (instrument_derefs): Likewise.
4461 (instrument_builtin_call): Likewise.
4462 (asan_expand_mark_ifn): Likewise.
4463 * auto-profile.c (auto_profile): Likewise.
4464 * bb-reorder.c (copy_bb_p): Likewise.
4465 (duplicate_computed_gotos): Likewise.
4466 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
4467 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
4468 (try_crossjump_bb): Likewise.
4469 * cfgexpand.c (defer_stack_allocation): Likewise.
4470 (stack_protect_classify_type): Likewise.
4471 (pass_expand::execute): Likewise.
4472 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4473 (estimate_reg_pressure_cost): Likewise.
4474 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
4475 * combine.c (combine_instructions): Likewise.
4476 (record_value_for_reg): Likewise.
4477 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
4478 (aarch64_option_default_params): Likewise.
4479 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4480 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4481 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4482 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4483 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
4484 (aarch64_allocate_and_probe_stack_space): Likewise.
4485 (aarch64_expand_epilogue): Likewise.
4486 (aarch64_override_options_internal): Likewise.
4487 * config/alpha/alpha.c (alpha_option_override): Likewise.
4488 * config/arm/arm.c (arm_option_override): Likewise.
4489 (arm_valid_target_attribute_p): Likewise.
4490 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4491 * config/i386/i386.c (get_probe_interval): Likewise.
4492 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4493 (ix86_max_noce_ifcvt_seq_cost): Likewise.
4494 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4495 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4496 (get_stack_clash_protection_guard_size): Likewise.
4497 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4498 * config/s390/s390.c (allocate_stack_space): Likewise.
4499 (s390_emit_prologue): Likewise.
4500 (s390_option_override_internal): Likewise.
4501 * config/sparc/sparc.c (sparc_option_override): Likewise.
4502 * config/visium/visium.c (visium_option_override): Likewise.
4503 * coverage.c (get_coverage_counts): Likewise.
4504 (coverage_compute_profile_id): Likewise.
4505 (coverage_begin_function): Likewise.
4506 (coverage_end_function): Likewise.
4507 * cse.c (cse_find_path): Likewise.
4508 (cse_extended_basic_block): Likewise.
4509 (cse_main): Likewise.
4510 * cselib.c (cselib_invalidate_mem): Likewise.
4511 * dse.c (dse_step1): Likewise.
4512 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4513 (get_max_insn_count): Likewise.
4514 (make_debug_insn_raw): Likewise.
4515 (init_emit): Likewise.
4516 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4517 * final.c (compute_alignments): Likewise.
4518 * fold-const.c (fold_range_test): Likewise.
4519 (fold_truth_andor): Likewise.
4520 (tree_single_nonnegative_warnv_p): Likewise.
4521 (integer_valued_real_single_p): Likewise.
4522 * gcse.c (want_to_gcse_p): Likewise.
4523 (prune_insertions_deletions): Likewise.
4524 (hoist_code): Likewise.
4525 (gcse_or_cprop_is_too_expensive): Likewise.
4526 * ggc-common.c: Likewise.
4527 * ggc-page.c (ggc_collect): Likewise.
4528 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4529 (MAX_DATAREFS): Likewise.
4530 (OUTER_STRIDE_RATIO): Likewise.
4531 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4532 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4533 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4534 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4535 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4536 (imm_store_chain_info::output_merged_store): Likewise.
4537 (pass_store_merging::process_store): Likewise.
4538 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4539 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4540 (scop_to_isl_ast): Likewise.
4541 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4542 (optimize_isl): Likewise.
4543 * graphite-scop-detection.c (build_scops): Likewise.
4544 * haifa-sched.c (set_modulo_params): Likewise.
4545 (rank_for_schedule): Likewise.
4546 (model_add_to_worklist): Likewise.
4547 (model_promote_insn): Likewise.
4548 (model_choose_insn): Likewise.
4549 (queue_to_ready): Likewise.
4550 (autopref_multipass_dfa_lookahead_guard): Likewise.
4551 (schedule_block): Likewise.
4552 (sched_init): Likewise.
4553 * hsa-gen.c (init_prologue): Likewise.
4554 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4555 (cond_move_process_if_block): Likewise.
4556 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4557 (merge_agg_lats_step): Likewise.
4558 (devirtualization_time_bonus): Likewise.
4559 (hint_time_bonus): Likewise.
4560 (incorporate_penalties): Likewise.
4561 (good_cloning_opportunity_p): Likewise.
4562 (ipcp_propagate_stage): Likewise.
4563 * ipa-fnsummary.c (decompose_param_expr): Likewise.
4564 (set_switch_stmt_execution_predicate): Likewise.
4565 (analyze_function_body): Likewise.
4566 (compute_fn_summary): Likewise.
4567 * ipa-inline-analysis.c (estimate_growth): Likewise.
4568 * ipa-inline.c (caller_growth_limits): Likewise.
4569 (inline_insns_single): Likewise.
4570 (inline_insns_auto): Likewise.
4571 (can_inline_edge_by_limits_p): Likewise.
4572 (want_early_inline_function_p): Likewise.
4573 (big_speedup_p): Likewise.
4574 (want_inline_small_function_p): Likewise.
4575 (want_inline_self_recursive_call_p): Likewise.
4576 (edge_badness): Likewise.
4577 (recursive_inlining): Likewise.
4578 (compute_max_insns): Likewise.
4579 (early_inliner): Likewise.
4580 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4581 * ipa-profile.c (ipa_profile): Likewise.
4582 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4583 (ipa_analyze_node): Likewise.
4584 (ipcp_transform_function): Likewise.
4585 * ipa-split.c (consider_split): Likewise.
4586 * ipa-sra.c (allocate_access): Likewise.
4587 (process_scan_results): Likewise.
4588 (ipa_sra_summarize_function): Likewise.
4589 (pull_accesses_from_callee): Likewise.
4590 * ira-build.c (loop_compare_func): Likewise.
4591 (mark_loops_for_removal): Likewise.
4592 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4593 * loop-doloop.c (doloop_optimize): Likewise.
4594 * loop-invariant.c (gain_for_invariant): Likewise.
4595 (move_loop_invariants): Likewise.
4596 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4597 (decide_unroll_runtime_iterations): Likewise.
4598 (decide_unroll_stupid): Likewise.
4599 (expand_var_during_unrolling): Likewise.
4600 * lra-assigns.c (spill_for): Likewise.
4601 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4602 * modulo-sched.c (sms_schedule): Likewise.
4603 (DFA_HISTORY): Likewise.
4604 * opts.c (default_options_optimization): Likewise.
4605 (finish_options): Likewise.
4606 (common_handle_option): Likewise.
4607 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4608 (if): Likewise.
4609 * predict.c (get_hot_bb_threshold): Likewise.
4610 (maybe_hot_count_p): Likewise.
4611 (probably_never_executed): Likewise.
4612 (predictable_edge_p): Likewise.
4613 (predict_loops): Likewise.
4614 (expr_expected_value_1): Likewise.
4615 (tree_predict_by_opcode): Likewise.
4616 (handle_missing_profiles): Likewise.
4617 * reload.c (find_equiv_reg): Likewise.
4618 * reorg.c (redundant_insn): Likewise.
4619 * resource.c (mark_target_live_regs): Likewise.
4620 (incr_ticks_for_insn): Likewise.
4621 * sanopt.c (pass_sanopt::execute): Likewise.
4622 * sched-deps.c (sched_analyze_1): Likewise.
4623 (sched_analyze_2): Likewise.
4624 (sched_analyze_insn): Likewise.
4625 (deps_analyze_insn): Likewise.
4626 * sched-ebb.c (schedule_ebbs): Likewise.
4627 * sched-rgn.c (find_single_block_region): Likewise.
4628 (too_large): Likewise.
4629 (haifa_find_rgns): Likewise.
4630 (extend_rgns): Likewise.
4631 (new_ready): Likewise.
4632 (schedule_region): Likewise.
4633 (sched_rgn_init): Likewise.
4634 * sel-sched-ir.c (make_region_from_loop): Likewise.
4635 * sel-sched-ir.h (MAX_WS): Likewise.
4636 * sel-sched.c (process_pipelined_exprs): Likewise.
4637 (sel_setup_region_sched_flags): Likewise.
4638 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4639 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4640 * toplev.c (print_version): Likewise.
4641 (process_options): Likewise.
4642 * tracer.c (tail_duplicate): Likewise.
4643 * trans-mem.c (tm_log_add): Likewise.
4644 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4645 * tree-data-ref.c (split_constant_offset): Likewise.
4646 (compute_all_dependences): Likewise.
4647 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4648 * tree-inline.c (remap_gimple_stmt): Likewise.
4649 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4650 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4651 (create_parallel_loop): Likewise.
4652 * tree-predcom.c (determine_unroll_factor): Likewise.
4653 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4654 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4655 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4656 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4657 (dse_optimize_redundant_stores): Likewise.
4658 (dse_classify_store): Likewise.
4659 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4660 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4661 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4662 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4663 (try_peel_loop): Likewise.
4664 (tree_unroll_loops_completely): Likewise.
4665 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4666 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4667 (MAX_CONSIDERED_GROUPS): Likewise.
4668 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4669 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4670 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4671 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4672 (L1_CACHE_SIZE_BYTES): Likewise.
4673 (L2_CACHE_SIZE_BYTES): Likewise.
4674 (should_issue_prefetch_p): Likewise.
4675 (schedule_prefetches): Likewise.
4676 (determine_unroll_factor): Likewise.
4677 (volume_of_references): Likewise.
4678 (add_subscript_strides): Likewise.
4679 (self_reuse_distance): Likewise.
4680 (mem_ref_count_reasonable_p): Likewise.
4681 (insn_to_prefetch_ratio_too_small_p): Likewise.
4682 (loop_prefetch_arrays): Likewise.
4683 (tree_ssa_prefetch_arrays): Likewise.
4684 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4685 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4686 (convert_mult_to_fma): Likewise.
4687 (math_opts_dom_walker::after_dom_children): Likewise.
4688 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4689 (hoist_adjacent_loads): Likewise.
4690 (gate_hoist_loads): Likewise.
4691 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4692 (compute_partial_antic_aux): Likewise.
4693 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4694 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4695 (vn_reference_lookup): Likewise.
4696 (do_rpo_vn): Likewise.
4697 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4698 * tree-ssa-sink.c (select_best_block): Likewise.
4699 * tree-ssa-strlen.c (new_stridx): Likewise.
4700 (new_addr_stridx): Likewise.
4701 (get_range_strlen_dynamic): Likewise.
4702 (class ssa_name_limit_t): Likewise.
4703 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4704 (create_variable_info_for_1): Likewise.
4705 (init_alias_vars): Likewise.
4706 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4707 (tail_merge_optimize): Likewise.
4708 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4709 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4710 (thread_jumps::find_jump_threads_backwards): Likewise.
4711 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4712 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4713 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4714 (jump_table_cluster::can_be_handled): Likewise.
4715 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4716 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4717 (param_switch_conversion_branch_ratio): Likewise.
4718 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4719 (vect_enhance_data_refs_alignment): Likewise.
4720 (vect_prune_runtime_alias_test_list): Likewise.
4721 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4722 (vect_get_datarefs_in_loop): Likewise.
4723 (vect_analyze_loop): Likewise.
4724 * tree-vect-slp.c (vect_slp_bb): Likewise.
4725 * tree-vectorizer.h: Likewise.
4726 * tree-vrp.c (find_switch_asserts): Likewise.
4727 (vrp_prop::check_mem_ref): Likewise.
4728 * tree.c (wide_int_to_tree_1): Likewise.
4729 (cache_integer_cst): Likewise.
4730 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4731 (reverse_op): Likewise.
4732 (vt_find_locations): Likewise.
4733
4734 2019-11-12 Martin Liska <mliska@suse.cz>
4735
4736 * Makefile.in: Include params.opt.
4737 * flag-types.h (enum parloops_schedule_type): Add
4738 parloops_schedule_type used in params.opt.
4739 * params.opt: New file.
4740
4741 2019-11-12 Martin Liska <mliska@suse.cz>
4742
4743 * common.opt: Remove --param and --param= options.
4744 * opt-functions.awk: Mark CL_PARAMS for options
4745 that have Param keyword.
4746 * opts-common.c (decode_cmdline_options_to_array):
4747 Replace --param key=value with --param=key=value.
4748 * opts.c (print_filtered_help): Remove special
4749 printing of params.
4750 (print_specific_help): Update title for params.
4751 (common_handle_option): Do not handle OPT__param.
4752 opts.h (SET_OPTION_IF_UNSET): New macro.
4753 * doc/options.texi: Document Param keyword.
4754
4755 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4756 Frederik Harwath <frederik@codesourcery.com>
4757 Thomas Schwinge <thomas@codesourcery.com>
4758
4759 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4760 enumeration constant.
4761 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4762 (is_gimple_omp_offloaded): Likewise.
4763 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4764 constant. Adjust the value of ORT_NONE accordingly.
4765 (is_gimple_stmt): Handle OACC_SERIAL.
4766 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4767 (gomp_needs_data_present): Likewise.
4768 (gimplify_adjust_omp_clauses): Likewise.
4769 (gimplify_omp_workshare): Handle OACC_SERIAL.
4770 (gimplify_expr): Likewise.
4771 * omp-expand.c (expand_omp_target):
4772 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4773 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4774 * omp-low.c (is_oacc_parallel): Rename function to...
4775 (is_oacc_parallel_or_serial): ... this.
4776 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4777 (scan_sharing_clauses): Adjust accordingly.
4778 (scan_omp_for): Likewise.
4779 (lower_oacc_head_mark): Likewise.
4780 (convert_from_firstprivate_int): Likewise.
4781 (lower_omp_target): Likewise.
4782 (check_omp_nesting_restrictions): Handle
4783 GF_OMP_TARGET_KIND_OACC_SERIAL.
4784 (lower_oacc_reductions): Likewise.
4785 (lower_omp_target): Likewise.
4786 * tree.def (OACC_SERIAL): New tree code.
4787 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4788
4789 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4790
4791 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4792
4793 PR target/92449
4794 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4795 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4796
4797 PR tree-optimization/92452
4798 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4799 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4800 MINUS_EXPR on it.
4801
4802 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4803
4804 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4805 safelen with 0.
4806
4807 2019-11-12 Alan Modra <amodra@gmail.com>
4808
4809 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4810 element of unspec vec.
4811 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4812 PC-relative TLS.
4813 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4814 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4815 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4816 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4817
4818 2019-11-12 Alan Modra <amodra@gmail.com>
4819
4820 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4821 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4822 (IS_NOMARK_TLSGETADDR): Likewise.
4823 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4824 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4825 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4826 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4827 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4828 (rs6000_indirect_call_template_1): Likewise.
4829 (rs6000_pltseq_template): Likewise.
4830 (rs6000_opt_vars): Remove "tls-markers" entry.
4831 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4832 with TARGET_ELF.
4833 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4834 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4835 (pltseq_plt_pcrel<mode>): Likewise.
4836 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4837 (call_value_local64): Likewise.
4838 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4839 output and length attribute sub-expression.
4840 (call_value_nonlocal_sysv<mode>),
4841 (call_value_nonlocal_sysv_secure<mode>),
4842 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4843 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4844 (call_value_indirect_pcrel<mode>): Likewise.
4845 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4846 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4847 * configure: Regenerate.
4848 * config.in: Regenerate.
4849
4850 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4851
4852 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4853 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4854 address being a prefixed load/store.
4855 (stack_protect_testdi): Deal with either address being a prefixed
4856 load.
4857
4858 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4859
4860 PR bootstrap/92433
4861 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4862 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4863 std::swap.
4864
4865 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4866
4867 PR tree-optimization/92420
4868 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4869 up file.
4870 (get_group_load_store_type): Use it for reversed SLP accesses.
4871
4872 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4873
4874 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4875 summary.
4876 (ipcp_transformation_t::duplicate): Break out from ...
4877 (ipa_node_params_t::duplicate): ... here; add copying of agg
4878 replacements.
4879 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4880 (ipcp_transformation_t): Add duplicate.
4881
4882 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4883
4884 PR fortran/91828
4885 * doc/install.texi: Document that the minimum MPFR version is
4886 3.1.0.
4887
4888 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4889
4890 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4891 use new register constraint letters.
4892
4893 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4894
4895 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4896 as well, if interesting recover the symbol and re-legitimize the
4897 pic address.
4898
4899 2019-11-11 Martin Liska <mliska@suse.cz>
4900
4901 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4902 alphabetically.
4903
4904 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4905
4906 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4907 account when checking if there are enough iterations to vectorize
4908 epilogue.
4909
4910 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4911 Kwok Cheung Yeung <kcy@codesourcery.com>
4912
4913 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4914 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4915 (LANG_HOOKS_DECLS): Rename also here.
4916 * langhooks.h (lang_hooks_for_decls): Rename
4917 omp_is_optional_argument to omp_check_optional_argument; take
4918 additional bool argument.
4919 * omp-general.h (omp_check_optional_argument): Likewise.
4920 * omp-general.h (omp_check_optional_argument): Likewise.
4921 * omp-low.c (lower_omp_target): Update calls; handle absent
4922 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4923
4924 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4925
4926 PR target/87833
4927 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4928 -fPIC and -shared the last to create offload image.
4929
4930 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4931
4932 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4933 of 'offset'.
4934
4935 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4936 (config.status): Use/depend on it.
4937 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4938 * configure: Regenerate.
4939
4940 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4941
4942 PR tree-optimization/88760
4943 * config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4944 * common/config/rs6000/rs6000-common.c
4945 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4946 Turn on -funroll-loops and -munroll-only-small-loops.
4947 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4948 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4949 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4950 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4951 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4952 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4953
4954 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4955
4956 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4957 Make scalar_load, vector_load, unaligned_load and
4958 vector_gather_load cost more to conform hardware latency and
4959 insn cost settings.
4960
4961 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4962
4963 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4964 (MACHO_SYMBOL_LINKER_VIS_P): New.
4965
4966 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4967
4968 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4969 registers in eliminable_regset.
4970
4971 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4972
4973 * ipa-inline.c (compute_uninlined_call_time,
4974 compute_inlined_call_time): Take edge frequency as
4975 parameter rather than computing it by itself.
4976 (big_speedup_p, edge_badness): Manually CSE sreal
4977 frequency calculations.
4978
4979 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4980
4981 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4982 case where profiles are same.
4983
4984 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4985
4986 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4987
4988 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4989
4990 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4991 args summaries of inlined edge unless it holds info about
4992 described reference.
4993
4994 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4995
4996 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4997 (*movcc_internal1): Rename to...
4998 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4999
5000 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5001
5002 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
5003 (cgraph_node::create_virtual_clone): Copy it.
5004 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
5005 summaries.
5006 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
5007 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
5008 is disabled.
5009 (propagate_constants_across_call): If callee is not analyzed, give up.
5010 (propagate_constants_topo): Lower to bottom latties of all callees of
5011 functions with ipa-cp disabled.
5012 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
5013 (cgraph_edge_brings_value_p): Check for availability first.
5014 (create_specialized_node): Set ipcp_clone.
5015 (ipcp_store_bits_results): Check that info is present.
5016 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
5017 thunks.
5018 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
5019 conservative when callee summary is missing.
5020 (remap_edge_summaries): Lookup call summary only when needed.
5021 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
5022 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
5023 Use get_create.
5024 (ipa_analyze_node): Use get_create.
5025 (propagate_controlled_uses): Do not propagate when function is not
5026 analyzed.
5027 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
5028 (ipa_read_node_info): Use get_create.
5029 * ipa-prop.h (IPA_NODE_REF): Use get.
5030 (IPA_NODE_REF_GET_CREATE): New.
5031
5032 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5033
5034 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
5035 on function symbol.
5036
5037 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5038
5039 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
5040 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5041 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
5042 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
5043
5044 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5045
5046 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
5047 capping the growth cumulated.
5048 (offline_size): Break out from ...
5049 (estimate_growth): ... here.
5050 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
5051 parameters.
5052 (growth_likely_positive): Turn to ...
5053 (growth_positive_p): Re-implement.
5054 * ipa-inline.h (growth_likely_positive): Remove.
5055 (growth_positive_p): Declare.
5056 * ipa-inline.c (want_inline_small_function_p): Use
5057 growth_positive_p.
5058 (want_inline_function_to_all_callers_p): Likewise.
5059
5060 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5061
5062 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
5063 calculation of min_size.
5064 (ipa_update_overall_fn_summary): Likewise.
5065
5066 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
5067
5068 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
5069 estimate_edge_devirt_benefit when not computing hints;
5070 do not compute time when not asked for.
5071 (estimate_calls_size_and_time): Pass NULL hints and time when
5072 these are not computed; do not evaluate hint predicates when these are
5073 not computed.
5074 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
5075 frequency.
5076
5077 2019-11-09 Jakub Jelinek <jakub@redhat.com>
5078
5079 PR tree-optimization/92401
5080 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
5081 if res_op->code is an expression with code length 1.
5082 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
5083 if res_op->code is an expression with code length 2.
5084 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
5085 if res_op->code is an expression with code length 3.
5086
5087 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
5088
5089 * config/darwin.c (machopic_mcount_stub_name): Validate the
5090 symbol stub name when it is created.
5091 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
5092 stub validation.
5093
5094 2019-11-09 Jakub Jelinek <jakub@redhat.com>
5095
5096 * symtab.c: Fix comment typos.
5097 * cgraphunit.c: Likewise.
5098 * cgraph.h: Likewise.
5099 * cgraphclones.c: Likewise.
5100 * cgraph.c: Likewise.
5101 * varpool.c: Likewise.
5102 * tree-ssa-strlen.c: Likewise.
5103 * ipa-sra.c: Likewise.
5104 (scan_expr_access, check_all_callers_for_issues): Fix typo
5105 in a dump message.
5106
5107 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
5108
5109 * config/darwin-protos.h: Add include quard.
5110
5111 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
5112
5113 * range-op.h (range_operator::fold_range): Return result in a
5114 reference parameter instead of by value.
5115 (range_operator::wi_fold): Same.
5116 * range-op.cc (range_operator::wi_fold): Return result in a reference
5117 parameter instead of by value.
5118 (range_operator::fold_range): Same.
5119 (value_range_from_overflowed_bounds): Same.
5120 (value_range_with_overflow): Same
5121 (create_possibly_reversed_range): Same.
5122 (operator_equal::fold_range): Same.
5123 (operator_not_equal::fold_range): Same.
5124 (operator_lt::fold_range): Same.
5125 (operator_le::fold_range): Same.
5126 (operator_gt::fold_range): Same.
5127 (operator_ge::fold_range): Same.
5128 (operator_plus::wi_fold): Same.
5129 (operator_plus::op1_range): Change call to fold_range.
5130 (operator_plus::op2_range): Change call to fold_range.
5131 (operator_minus::wi_fold): Return result via reference parameter.
5132 (operator_minus::op1_range): Change call to fold_range.
5133 (operator_minus::op2_range): Change call to fold_range.
5134 (operator_min::wi_fold): Return result via reference parameter.
5135 (operator_max::wi_fold): Same.
5136 (cross_product_operator::wi_cross_product): Same.
5137 (operator_mult::wi_fold): Same.
5138 (operator_div::wi_fold): Same.
5139 (operator_div op_floor_div): Fix whitespace.
5140 (operator_exact_divide::op1_range): Change call to fold_range.
5141 (operator_lshift::fold_range): Return result via reference parameter.
5142 (operator_lshift::wi_fold): Same.
5143 (operator_rshift::fold_range): Same.
5144 (operator_rshift::wi_fold): Same.
5145 (operator_cast::fold_range): Same.
5146 (operator_cast::op1_range): Change calls to fold_range.
5147 (operator_logical_and::fold_range): Return result via reference.
5148 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
5149 (operator_bitwise_and::wi_fold): Return result via reference.
5150 (operator_logical_or::fold_range): Same.
5151 (operator_bitwise_or::wi_fold): Same.
5152 (operator_bitwise_xor::wi_fold): Same.
5153 (operator_trunc_mod::wi_fold): Same.
5154 (operator_logical_not::fold_range): Same.
5155 (operator_bitwise_not::fold_range): Same.
5156 (operator_bitwise_not::op1_range): Change call to fold_range.
5157 (operator_cst::fold_range): Return result via reference.
5158 (operator_identity::fold_range): Same.
5159 (operator_abs::wi_fold): Same.
5160 (operator_absu::wi_fold): Same.
5161 (operator_negate::fold_range): Same.
5162 (operator_negate::op1_range): Change call to fold_range.
5163 (operator_addr_expr::fold_range): Return result via reference.
5164 (operator_addr_expr::op1_range): Change call to fold_range.
5165 (operator_pointer_plus::wi_fold): Return result via reference.
5166 (operator_pointer_min_max::wi_fold): Same.
5167 (operator_pointer_and::wi_fold): Same.
5168 (operator_pointer_or::wi_fold): Same.
5169 (range_op_handler): Change call to fold_range.
5170 (range_cast): Same.
5171 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
5172 fold_range.
5173 (range_fold_unary_symbolics_p): Same.
5174 (range_fold_binary_expr): Same.
5175 (range_fold_unary_expr): Same.
5176
5177 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5178
5179 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
5180 vector type as an argument rather than reading it from the
5181 stmt_vec_info.
5182 (vect_create_epilog_for_reduction): Update accordingly.
5183 (vectorizable_reduction): Likewise.
5184 (vect_transform_cycle_phi): Likewise.
5185
5186 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
5187
5188 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
5189 the comparison codes that make sense for the mode used, and only the
5190 codes that can be done with a single branch instruction.
5191
5192 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5193
5194 PR tree-optimization/92351
5195 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
5196 peeling the main loop for alignment, make sure to set the misalignment
5197 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
5198
5199 2019-11-08 Richard Biener <rguenther@suse.de>
5200
5201 * dbgcnt.def (ivopts_loop): Add.
5202 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
5203 ivopts_loop before optimizing a loop.
5204
5205 2019-11-08 Richard Biener <rguenther@suse.de>
5206
5207 PR ipa/92409
5208 * tree-inline.c (declare_return_variable): Properly handle
5209 type mismatches for the return slot.
5210
5211 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
5212
5213 PR target/92095
5214 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
5215 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
5216 change.
5217 (got_helper_needed): New static variable.
5218 (output_load_pcrel_sym): New function.
5219 (get_pc_thunk_name): Remove after inlining...
5220 (load_got_register): ...here. Rework the initialization of the GOT
5221 register and of the GOT helper.
5222 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
5223 (sparc_file_end): Test got_helper_needed to decide whether the GOT
5224 helper must be emitted. Use output_asm_insn instead of fprintf.
5225 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
5226 if optimization is enabled.
5227 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
5228 by calling output_load_pcrel_sym.
5229
5230 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5231
5232 * tree-sra.c (create_access): Delay disqualifying the base
5233 for poly_int values until we know we have a base.
5234
5235 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5236
5237 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
5238 for loops with SIMDUID set. Enable epilogue vectorization for loops
5239 with SIMDLEN set after finding a main loop with a VF that matches it.
5240
5241 2019-11-08 Jakub Jelinek <jakub@redhat.com>
5242
5243 PR target/92038
5244 * gimple-ssa-store-merging.c (find_constituent_stores): For return
5245 value only, return non-NULL if there is a single non-clobber
5246 constituent store even if there are constituent clobbers and return
5247 one of clobber constituent stores if all constituent stores are
5248 clobbers.
5249 (split_group): Handle clobbers.
5250 (imm_store_chain_info::output_merged_store): When computing
5251 bzero_first, look after all clobbers at the start. Don't count
5252 clobber stmts in orig_num_stmts, except if the first orig store is
5253 a clobber covering the whole area and split_stores cover the whole
5254 area, consider equal number of stmts ok. Punt if split_stores
5255 contains only ->orig stores and their number plus number of original
5256 clobbers is equal to original number of stmts. For ->orig, look past
5257 clobbers in the constituent stores.
5258 (imm_store_chain_info::output_merged_stores): Don't remove clobber
5259 stmts.
5260 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
5261 rhs.
5262 (store_valid_for_store_merging_p): Allow clobber stmts.
5263 (verify_clear_bit_region_be): Fix up a thinko in function comment.
5264
5265 PR c++/92384
5266 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
5267 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
5268 slot.
5269 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
5270 force creation of a unique data.stack_parm slot.
5271
5272 2019-11-08 Richard Biener <rguenther@suse.de>
5273
5274 * genmatch.c (expr::gen_transform): Use the resimplify
5275 member function instead of hard-coding the gimple_resimplifyN variant.
5276 (dt_simplify::gen_1): Likewise.
5277
5278 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5279
5280 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5281 POLY_INT_CST.
5282
5283 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5284
5285 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
5286 instead of INTEGER_CST.
5287
5288 2019-11-08 Richard Biener <rguenther@suse.de>
5289
5290 PR tree-optimization/92324
5291 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5292 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
5293 sign-conversions as necessary.
5294 (vectorizable_reduction): Reject conversions in the chain
5295 that are not sign-conversions, base analysis on a non-converting
5296 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
5297 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
5298 for debug stmts.
5299 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
5300 (STMT_VINFO_REDUC_VECTYPE): Likewise.
5301
5302 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
5303
5304 PR target/92055
5305 * config/avr/avr.opt (-mdouble=, -mlong-double=):
5306 Fix a missing '-' when displaying these options in the
5307 help screen.
5308
5309 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5310
5311 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
5312
5313 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5314
5315 * config/aarch64/aarch64-builtins.c
5316 (aarch64_builtin_vectorized_function): Remove bswap handling.
5317
5318 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5319
5320 * tree-core.h (tree_type_common::indivisible_p): New member variable.
5321 * tree.h (TYPE_INDIVISIBLE_P): New macro.
5322 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5323 Treat the vector types as indivisible.
5324
5325 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
5326
5327 * optabs.def (gather_load_optab, mask_gather_load_optab)
5328 (scatter_store_optab, mask_scatter_store_optab): Turn into
5329 conversion optabs, with the offset mode given explicitly.
5330 * doc/md.texi: Update accordingly.
5331 * config/aarch64/aarch64-sve-builtins-base.cc
5332 (svld1_gather_impl::expand): Likewise.
5333 (svst1_scatter_impl::expand): Likewise.
5334 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
5335 (expand_scatter_store_optab_fn): Likewise.
5336 (direct_gather_load_optab_supported_p): Likewise.
5337 (direct_scatter_store_optab_supported_p): Likewise.
5338 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
5339 to be argument 4.
5340 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
5341 (internal_gather_scatter_fn_supported_p): Replace the offset sign
5342 argument with the offset vector type. Require the two vector
5343 types to have the same number of elements but allow their element
5344 sizes to be different. Treat the optabs as conversion optabs.
5345 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
5346 prototype accordingly.
5347 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
5348 (supports_vec_convert_optab_p): ...this new function.
5349 (supports_vec_gather_load_p): Update accordingly.
5350 (supports_vec_scatter_store_p): Likewise.
5351 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
5352 Replace the offset sign and bits parameters with a scalar type tree.
5353 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
5354 Pass back the offset vector type instead of the scalar element type.
5355 Allow the offset to be wider than the memory elements. Search for
5356 an offset type that the target supports, stopping once we've
5357 reached the maximum of the element size and pointer size.
5358 Update call to internal_gather_scatter_fn_supported_p.
5359 (vect_check_gather_scatter): Update calls accordingly.
5360 When testing a new scale before knowing the final offset type,
5361 check whether the scale is supported for any signed or unsigned
5362 offset type. Check whether the target supports the source and
5363 target types of a conversion before deciding whether to look
5364 through the conversion. Record the chosen offset_vectype.
5365 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
5366 (vect_recog_gather_scatter_pattern): Get the scalar offset type
5367 directly from the gs_info's offset_vectype instead. Pass a zero
5368 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
5369 * tree-vect-stmts.c (check_load_store_masking): Update call to
5370 internal_gather_scatter_fn_supported_p, passing the offset vector
5371 type recorded in the gs_info.
5372 (vect_truncate_gather_scatter_offset): Update call to
5373 vect_check_gather_scatter, leaving it to search for a valid
5374 offset vector type.
5375 (vect_use_strided_gather_scatters_p): Convert the offset to the
5376 element type of the gs_info's offset_vectype.
5377 (vect_get_gather_scatter_ops): Get the offset vector type directly
5378 from the gs_info.
5379 (vect_get_strided_load_store_ops): Likewise.
5380 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
5381 and IFN_MASK_GATHER_LOAD.
5382 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
5383 (gather_load<mode><v_int_equiv>): ...this.
5384 (mask_gather_load<mode>): Rename to...
5385 (mask_gather_load<mode><v_int_equiv>): ...this.
5386 (scatter_store<mode>): Rename to...
5387 (scatter_store<mode><v_int_equiv>): ...this.
5388 (mask_scatter_store<mode>): Rename to...
5389 (mask_scatter_store<mode><v_int_equiv>): ...this.
5390
5391 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
5392
5393 PR target/92132
5394 * config/rs6000/predicates.md
5395 (signed_or_equality_comparison_operator): New predicate.
5396 (unsigned_or_equality_comparison_operator): Likewise.
5397 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
5398 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
5399 * config/rs6000/vector.md
5400 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
5401 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
5402 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
5403 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
5404 vector modes and same-size integer vector modes.
5405 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
5406 (vector_lt<mode> for VEC_F): New expand.
5407 (vector_le<mode> for VEC_F): Likewise.
5408 (vector_ne<mode> for VEC_F): Likewise.
5409 (vector_unge<mode> for VEC_F): Likewise.
5410 (vector_ungt<mode> for VEC_F): Likewise.
5411 (vector_unle<mode> for VEC_F): Likewise.
5412 (vector_unlt<mode> for VEC_F): Likewise.
5413 (vector_uneq<mode>): Expose name.
5414 (vector_ltgt<mode>): Likewise.
5415 (vector_unordered<mode>): Likewise.
5416 (vector_ordered<mode>): Likewise.
5417
5418 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
5419
5420 PR target/92295
5421 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
5422 Enhance ix86_expand_vector_init_concat.
5423
5424 2019-11-08 Joseph Myers <joseph@codesourcery.com>
5425
5426 * doc/invoke.texi (-Wold-style-definition): Document () not being
5427 considered an old-style definition for C2x.
5428
5429 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
5430
5431 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
5432 Enhance comment.
5433 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
5434 insn patterns using ldcw instruction.
5435 (memory_barrier): Remove insn pattern using sync instruction.
5436 * config/pa/pa.opt (coherent-ldcw): New option.
5437 (ordered): New option.
5438
5439 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5440
5441 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
5442 valid conditions.
5443
5444 2019-11-07 Jakub Jelinek <jakub@redhat.com>
5445
5446 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
5447 typo - mistmatch -> mismatch.
5448 * ipa-profile.c (ipa_profile): Likewise.
5449 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
5450 - mistmatch -> mismatch.
5451
5452 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5453
5454 * simplify-rtx.c (comparison_to_mask): New function.
5455 (mask_to_comparison): New function.
5456 (simplify_logical_relational_operation): New function.
5457 (simplify_binary_operation_1): Call
5458 simplify_logical_relational_operation.
5459
5460 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
5461
5462 PR other/92090
5463 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
5464 modes for integer constants.
5465
5466 2019-11-07 Jan Hubicka <jh@suse.cz>
5467
5468 PR ipa/92406
5469 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
5470 summary.
5471
5472 2019-11-07 Jan Hubicka <jh@suse.cz>
5473
5474 * optc-save-gen.awk: Generate cl_target_option_free
5475 and cl_optimization_option_free.
5476 * opth-en.awk: Declare cl_target_option_free
5477 and cl_optimization_option_free.
5478 * tree.c (free_node): Use it.
5479
5480 2019-11-06 Jan Hubicka <jh@suse.cz>
5481
5482 * lto-streamer-in.c: Include alloc-pool.h.
5483 (freeing_string_slot_hasher): Remove.
5484 (string_slot_allocator): New object allocator.
5485 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
5486 (file_name_obstack): New obstack.
5487 (canon_file_name): Allocate in obstack and allocator.
5488 (lto_reader_init): Initialize obstack and allocator.
5489 (lto_free_file_name_hash): New function.
5490 * lto-streamer.h (lto_free_file_name_hash): New.
5491
5492 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
5493
5494 PR tree-optimization/89134
5495 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5496 * params.def: Add min-loop-cond-split-prob.
5497 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5498 outside checks on loop into the function.
5499 (split_info): New class.
5500 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5501 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5502 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5503 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5504 (stmt_semi_invariant_p, branch_removable_p): Likewise.
5505 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5506 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5507 (split_loop_on_cond): Likewise.
5508 (tree_ssa_split_loops): Add loop split on conditional statement.
5509
5510 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
5511
5512 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5513 pattern.
5514
5515 2019-11-07 Richard Biener <rguenther@suse.de>
5516
5517 PR tree-optimization/92405
5518 * tree-vect-loop.c (vectorizable_reduction): Appropriately
5519 restrict lane-reducing ops to single stmt chains.
5520
5521 2019-11-07 Martin Jambor <mjambor@suse.cz>
5522
5523 PR lto/70929
5524 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5525 * cgraph.h (gimple_check_call_matching_types): Remove
5526 * cgraph.c (gimple_check_call_args): Likewise.
5527 (gimple_check_call_matching_types): Likewise.
5528 (symbol_table::create_edge): Do not call
5529 gimple_check_call_matching_types.
5530 (cgraph_edge::make_direct): Likewise.
5531 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5532 * value-prof.h (check_ic_target): Remove.
5533 * value-prof.c (check_ic_target): Remove.
5534 (gimple_ic_transform): Do nat call check_ic_target.
5535 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5536 (afdo_indirect_call): Likewise.
5537 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5538 gimple_check_call_matching_types.
5539 * ipa-inline.c (early_inliner): Likewise.
5540
5541 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5542
5543 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5544 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5545 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5546 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5547 * config/arm/iterators.md (USSAT16): New int_iterator.
5548 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5549 (sup): Likewise.
5550 * config/arm/predicates.md (ssat16_imm): New predicate.
5551 (usat16_imm): Likewise.
5552 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5553
5554 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5555
5556 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5557 New define_insns.
5558 (arm_<simd32_op>): New define_expands.
5559 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5560 __smuad, __smuadx): Define.
5561 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5562 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5563 (SIMD32_BINOP_Q): Likewise.
5564 (simd32_op): Handle the above.
5565 * config/arm/unspecs.md: Define unspecs for the above.
5566
5567 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5568
5569 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5570 * config/arm/arm.md (APSRGE_REGNUM): Define.
5571 (arm_<simd32_op>): New define_insn.
5572 (arm_sel): Likewise.
5573 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5574 (CALL_USED_REGISTERS): Likewise.
5575 (REG_ALLOC_ORDER): Likewise.
5576 (FIRST_PSEUDO_REGISTER): Update value.
5577 (ARM_GE_BITS_READ): Define.
5578 * config/arm/arm.c (arm_conditional_register_usage): Clear
5579 APSRGE_REGNUM from operand_reg_set.
5580 (arm_ge_bits_access): Define.
5581 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5582 ARM_BUIILTIN_sel.
5583 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5584 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5585 FAIL if ARM_GE_BITS_READ.
5586 (*arm_add<mode>3): New define_insn.
5587 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5588 (*arm_sub<mode>3): New define_insn.
5589 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5590 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5591 __usub16): Define.
5592 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5593 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5594 (simd32_op): Handle the above.
5595 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5596 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5597 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5598 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5599
5600 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5601
5602 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5603 (arm_smlabb): New define_expand.
5604 (*maddhisi4tb): Rename to...
5605 (maddhisi4tb): ... This.
5606 (*maddhisi4tt): Rename to...
5607 (maddhisi4tt): ... This.
5608 (arm_smlatb_setq): New define_insn.
5609 (arm_smlatb): New define_expand.
5610 (arm_smlatt_setq): New define_insn.
5611 (arm_smlatt): New define_expand.
5612 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5613 (arm_<smlaw_op>): New define_expand.
5614 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5615 __smlawb, __smlawt): Define.
5616 * config/arm_acle_builtins.def: Define builtins for the above.
5617 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5618 (slaw_op): New int_attribute.
5619 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5620
5621 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5622
5623 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5624 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5625 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5626 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5627 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5628 (ss_op): New code_attr.
5629
5630 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5631
5632 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5633 * config/arm/arm.md (APSRQ_REGNUM): Define.
5634 (add_setq): New define_subst.
5635 (add_clobber_q_name): New define_subst_attr.
5636 (add_clobber_q_pred): Likewise.
5637 (maddhisi4): Change to define_expand. Split into mult and add if
5638 ARM_Q_BIT_READ.
5639 (arm_maddhisi4): New define_insn.
5640 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5641 (*maddhisi4tt): Likewise.
5642 (arm_ssat): New define_expand.
5643 (arm_usat): Likewise.
5644 (arm_get_apsr): New define_insn.
5645 (arm_set_apsr): Likewise.
5646 (arm_saturation_occurred): New define_expand.
5647 (arm_set_saturation): Likewise.
5648 (*satsi_<SAT:code>): Rename to...
5649 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5650 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5651 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5652 (CALL_USED_REGISTERS): Mark apsrq.
5653 (FIRST_PSEUDO_REGISTER): Update value.
5654 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5655 (machine_function): Add q_bit_access.
5656 (ARM_Q_BIT_READ): Define.
5657 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5658 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5659 operand_reg_set.
5660 (arm_q_bit_access): Define.
5661 * config/arm/arm-builtins.c: Include stringpool.h.
5662 (arm_sat_binop_imm_qualifiers,
5663 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5664 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5665 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5666 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5667 SET_SAT_QUALIFIERS): Likewise.
5668 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5669 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5670 Handle 0 argument expander.
5671 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5672 (arm_check_builtin_call): Define.
5673 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5674 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5675 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5676 (arm_q_bit_access): Likewise.
5677 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5678 __saturation_occurred, __set_saturation_occurred): Define.
5679 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5680 saturation_occurred, set_saturation_occurred.
5681 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5682 (UNSPEC_APSR_READ): Likewise.
5683 (VUNSPEC_APSR_WRITE): Likewise.
5684 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5685 (*arm_ssadd<mode>3): New define_insn.
5686 (sssub<mode>3): Convert to define_expand.
5687 (*arm_sssub<mode>3): New define_insn.
5688 (ssmulsa3): Convert to define_expand.
5689 (*arm_ssmulsa3): New define_insn.
5690 (usmulusa3): Convert to define_expand.
5691 (*arm_usmulusa3): New define_insn.
5692 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5693 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5694 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5695
5696 2019-11-07 Martin Liska <mliska@suse.cz>
5697
5698 PR c++/92354
5699 * cgraph.c (delete_function_version): Clear global
5700 variable version_info_node if equal to deleted
5701 function.
5702
5703 2019-11-07 Martin Liska <mliska@suse.cz>
5704
5705 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5706 of CONSTRUCTOR_NO_CLEARING.
5707 (operand_compare::hash_operand): Likewise.
5708
5709 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5710
5711 Support 64-bit double and 64-bit long double configurations.
5712
5713 PR target/92055
5714 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5715 --with-long-double=.
5716 * config/avr/t-multilib: Remove.
5717 * config/avr/t-avr: Output of genmultilib.awk is now fully
5718 dynamically generated and no more part of the repo.
5719 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5720 Pass them down to...
5721 * config/avr/genmultilib.awk: ...here and handle them.
5722 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5723 (-mlong-double=, avr_long_double). New option and var.
5724 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5725 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5726 Set default as requested by --with-double=
5727 (TARGET_HANDLE_OPTION): Define to this...
5728 (avr_handle_option): ...new hook worker.
5729 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5730 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5731 (avr_double_lib): New proto for spec function.
5732 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5733 (DRIVER_SELF_SPECS): Call %:double-lib.
5734 * config/avr/avr.c (avr_option_override): Assert
5735 sizeof(long double) >= sizeof(double) for the target.
5736 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5737 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5738 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5739 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5740 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5741 New built-in define depending on --with-double=, --with-long-double=.
5742 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5743 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5744 * doc/install.texi (Cross-Compiler-Specific Options)
5745 <--with-double=, --with-long-double=>: Doc.
5746
5747 2019-11-07 Richard Biener <rguenther@suse.de>
5748
5749 * dbgcnt.def (gimple_unroll): New.
5750 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5751 gimple_unroll debug counter before applying transform.
5752 (try_peel_loop): Likewise.
5753
5754 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5755
5756 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5757 frame pointer in multiple registers.
5758 (ira_setup_eliminable_regset): Setup eliminable_regset,
5759 ira_no_alloc_regs and regs_ever_live for frame pointer in
5760 multiple registers.
5761
5762 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5763
5764 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5765 V2DI modes.
5766
5767 2019-11-06 Jan Hubicka <jh@suse.cz>
5768
5769 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5770 allocations.
5771 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5772 Do not silently ignore summary corruptions.
5773
5774 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5775
5776 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5777 the epilogue if there are peeled iterations for it to handle.
5778
5779 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5780
5781 * config/arc/arc.c (arc_split_ior): Add asserts.
5782 (arc_split_mov_const): Likewise.
5783 (arc_check_ior_const): Do not match known short immediate values.
5784 * config/arc/arc.md (movsi): Don't split predicated instructions
5785 (iorsi): Likewise.
5786
5787 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5788
5789 * config/arc/arc.opt (mea): Update help string.
5790 * doc/invoke.texi(ARC): Update mea option info.
5791
5792 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5793
5794 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5795 (zero_extendqisi2_ac): Likewise.
5796 (zero_extendhisi2_i): Likewise.
5797 (extendqihi2_i): Likewise.
5798 (extendqisi2_ac): Likewise.
5799 (extendhisi2_i): Likewise.
5800
5801 2019-11-06 Richard Biener <rguenther@suse.de>
5802
5803 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5804 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5805 Simplify single_defuse_cycle condition.
5806
5807 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5808
5809 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5810 epilogue loop, make sure that the VF is small enough or that
5811 the epilogue loop can be fully-masked.
5812
5813 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5814
5815 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5816 loop when we've finished, rather than returning directly from
5817 the loop. Use a local variable to track whether we're still
5818 searching for the preferred simdlen. Make vect_epilogues
5819 record whether the next iteration should try to treat the
5820 loop as an epilogue.
5821
5822 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5823
5824 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5825 __arc_hard_float__, __ARC_HARD_FLOAT__,
5826 __arc_soft_float__, __ARC_SOFT_FLOAT__
5827
5828 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5829
5830 PR tree-optimization/92317
5831 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5832 update phi's with constant phi arguments.
5833
5834 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5835 Alexandre Oliva <oliva@adacore.com>
5836
5837 * common.opt (-fcallgraph-info[=]): New option.
5838 * doc/invoke.texi (Developer options): Document it.
5839 * opts.c (common_handle_option): Handle it.
5840 * builtins.c (expand_builtin_alloca): Record allocation if
5841 -fcallgraph-info=da.
5842 * calls.c (expand_call): If -fcallgraph-info, record the call.
5843 (emit_library_call_value_1): Likewise.
5844 * flag-types.h (enum callgraph_info_type): New type.
5845 * explow.c: Include stringpool.h.
5846 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5847 * function.c (allocate_stack_usage_info): New.
5848 (allocate_struct_function): Call it for -fcallgraph-info.
5849 (prepare_function_start): Call it otherwise.
5850 (record_final_call, record_dynamic_alloc): New.
5851 * function.h (struct callinfo_callee): New.
5852 (CALLEE_FROM_CGRAPH_P): New.
5853 (struct callinfo_dalloc): New.
5854 (struct stack_usage): Add callees and dallocs.
5855 (record_final_call, record_dynamic_alloc): Declare.
5856 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5857 object if -fcallgraph-info=da.
5858 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5859 * print-tree.h (print_decl_identifier): Declare.
5860 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5861 * print-tree.c: Include print-tree.h.
5862 (print_decl_identifier): New function.
5863 * toplev.c: Include print-tree.h.
5864 (callgraph_info_file): New global variable.
5865 (callgraph_info_external_printed): Likewise.
5866 (output_stack_usage): Rename to...
5867 (output_stack_usage_1): ... this. Make it static, add cf
5868 parameter. If -fcallgraph-info=su, print stack usage to cf.
5869 If -fstack-usage, use print_decl_identifier for
5870 pretty-printing.
5871 (INDIRECT_CALL_NAME): New.
5872 (dump_final_node_vcg_start): New.
5873 (dump_final_callee_vcg, dump_final_node_vcg): New.
5874 (output_stack_usage): New.
5875 (lang_dependent_init): Open and start file if
5876 -fcallgraph-info. Allocated callgraph_info_external_printed.
5877 (finalize): If callgraph_info_file is not null, finish it,
5878 close it, and release callgraph_info_external_printed.
5879
5880 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5881 Frederik Harwath <frederik@codesourcery.com>
5882 Thomas Schwinge <thomas@codesourcery.com>
5883
5884 * omp-low.c (struct omp_context): New fields
5885 local_reduction_clauses, outer_reduction_clauses.
5886 (new_omp_context): Initialize these.
5887 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5888 (scan_omp_for): Check reduction clauses for incorrect nesting.
5889
5890 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5891
5892 PR inline-asm/92352
5893 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5894 operands with non-memory constraints.
5895
5896 2019-11-05 Martin Sebor <msebor@redhat.com>
5897
5898 PR tree-optimization/92373
5899 * tree.c (component_ref_size): Only consider initializers of objects
5900 of matching struct types.
5901 Return null for instances of interior zero-length arrays.
5902
5903 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5904
5905 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5906
5907 2019-11-05 Jason Merrill <jason@redhat.com>
5908
5909 PR tree-optimization/91825
5910 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5911
5912 2019-11-05 Jim Wilson <jimw@sifive.com>
5913
5914 PR middle-end/92263
5915 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5916 optimize_insn_for_speed_p is true.
5917
5918 2019-11-05 Martin Sebor <msebor@redhat.com>
5919
5920 PR middle-end/92333
5921 PR middle-end/82608
5922 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5923 size.
5924 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5925 name and location for a temporary variable.
5926
5927 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5928
5929 * tree-vrp.c (value_range::value_range): Fix whitespace.
5930 (defined_ranges_p): Same.
5931 (range_fold_binary_symbolics_p): Same.
5932 (value_range::intersect_helper): Same.
5933 (value_range::union_helper): Same.
5934 * tree-vrp.h (range_fold_binary_expr): Same.
5935
5936 2019-11-04 Martin Sebor <msebor@redhat.com>
5937
5938 PR middle-end/92341
5939 PR middle-end/82612
5940 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5941 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5942 of message printed in a warning for empty arrays.
5943 (vrp_prop::check_mem_ref): Also handle function parameters and
5944 empty arrays.
5945
5946 2019-11-05 Richard Biener <rguenther@suse.de>
5947
5948 PR tree-optimization/92371
5949 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5950 on the original stmt of live stmts in the chain.
5951 (vectorizable_live_operation): Look at the original stmt when
5952 checking STMT_VINFO_REDUC_DEF.
5953
5954 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5955
5956 * gimple-fold.c, gimple-loop-versioning.cc,
5957 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5958 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5959 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5960 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5961 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5962 value_range_equiv, and value_range_base to value_range.
5963
5964 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5965
5966 * expr.c (build_personality_function): Fix generated type to
5967 match actual personality functions.
5968
5969 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5970
5971 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5972 enough bytes for the NULL character.
5973
5974 2019-11-05 Richard Biener <rguenther@suse.de>
5975
5976 PR tree-optimization/92280
5977 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5978 had a single use do not create a new CTOR.
5979 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5980 BIT_FIELD_REF of a CTOR via GENERIC.
5981
5982 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5983
5984 * config/s390/s390.c (s390_vector_alignment): Check if the value
5985 fits into uhwi before using it.
5986
5987 2019-11-05 Martin Liska <mliska@suse.cz>
5988
5989 * symbol-summary.h: Use ggc_delete.
5990
5991 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5992
5993 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5994 Change vec_perm field to 10.
5995
5996 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5997
5998 * doc/install.texi: Further fix syntax for html generation.
5999
6000 2019-11-05 Martin Liska <mliska@suse.cz>
6001
6002 * symbol-summary.h: Rename allocator to m_allocator and
6003 add comment.
6004
6005 2019-11-05 Richard Biener <rguenther@suse.de>
6006
6007 PR tree-optimization/92324
6008 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
6009 all signed or unsigned operations.
6010
6011 2019-11-05 Jan Hubicka <jh@suse.cz>
6012
6013 * hsa-brig.c: Include alloc-pool.h
6014 * hsa-dump.c: Likewise.
6015 * hsa-gen.c: Likewise.
6016 * hse-regalloc.c: Likewise.
6017 * ipa-hsa.c: Likewise.
6018 * ipa-predicate.c: Likewise.
6019 * ipa-reference.c: Likewise.
6020 * ipa-sra.c: Likewise.
6021 * omp-expand.c: Likewise.
6022 * omp-general.c: Likewise.
6023 * omp-low.c: Likewise.
6024 * sumbol-summary.h (function_summary_base): Add allocator.
6025 (function_summary<T *>::function_summary): Update construction.
6026 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
6027 (call_summary_base): Add allcator.
6028 (call_summary<T *>::call_summary): Update construction.
6029 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
6030
6031 2019-11-05 Jakub Jelinek <jakub@redhat.com>
6032
6033 PR tree-optimization/91945
6034 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
6035 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
6036 Formatting fix.
6037
6038 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6039
6040 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
6041 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
6042 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
6043 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
6044 (vrp_set_zero_nonzero_bits): Move to...
6045 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
6046 (vr_values::simplify_bit_ops_using_ranges): Rename
6047 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
6048
6049 2019-11-05 Martin Liska <mliska@suse.cz>
6050
6051 PR c++/92339
6052 * fold-const.c (operand_compare::hash_operand): Remove
6053 FIELD_DECL handling.
6054
6055 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6056
6057 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
6058 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
6059 static.
6060
6061 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
6062
6063 * tree-vrp.c (value_range_base::operator==): Use equal_p to
6064 properly handle symbolics.
6065 (range_compatible_p): Remove.
6066
6067 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
6068
6069 * common.opt (-fabi-version): Document =14.
6070 * doc/invoke.texi (C++ Dialect Options): Likewise.
6071
6072 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6073
6074 * tree-vrp.c (value_range_base::set): Do not special case pointers.
6075
6076 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
6077
6078 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
6079 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6080 gcn_omp_device_kind_arch_isa.
6081 * config/gcn/t-omp-device: New file.
6082 * configure.ac: Support gcn for omp_device_property.
6083 * configure: Regenerate.
6084
6085 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6086
6087 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
6088 (vrp_val_max): Same.
6089 (vrp_val_is_min): Same.
6090 (vrp_val_is_max): Same.
6091 (value_range_base::nonzero_p): Remove last argument to
6092 vrp_val_is_max.
6093 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
6094 (vrp_val_max): Same.
6095 (vrp_val_is_min): Same.
6096 (vrp_val_is_max): Same.
6097 (value_range_base::set_varying): Remove last argument to vrp_val*.
6098 (value_range_base::dump): Same.
6099 (value_range_base::set): Same.
6100 (value_range_base::normalize_symbolics): Same.
6101 (value_range_base::num_pairs): Same.
6102 (value_range_base::lower_bound): Same.
6103 (value_range_base::upper_bound): Same.
6104 (ranges_from_anti_range): Remove handle_pointers argument.
6105 (value_range_base::singleton_p): Remove last argument to
6106 ranges_from_anti_range.
6107
6108 2019-11-04 Jan Hubicka <jh@suse.cz>
6109
6110 * ipa-reference.c (init_function_info): Initialize
6111 info->global.statics_read.
6112
6113 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6114
6115 * tree-vrp.c (value_range_base::invert): Use constructors to build
6116 range.
6117
6118 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6119
6120 * tree-vrp.c (range_int_cst_singleton_p): Remove.
6121 * tree-vrp.h (range_int_cst_singleton_p): Remove.
6122
6123 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6124
6125 * tree-vrp.c (value_range_base::normalize_addresses): Handle
6126 VR_UNDEFINED.
6127
6128 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
6129
6130 * tree-vrp.c (dump_assert_info): New.
6131 (dump_asserts_info): New.
6132
6133 2019-11-04 Jan Hubicka <jh@suse.cz>
6134
6135 * ipa-inline-transform.c: Include ipa-utils.h
6136 (inline_call): Set thunk_expansion flag.
6137 * ipa-utils.h (thunk_expansion): Declare.
6138 * ipa-devirt.c (thunk_expansion): New global var.
6139 (devirt_node_removal_hook): Do not invalidate cache while
6140 doing thunk expansion.
6141
6142 2019-11-04 Tamar Christina <tamar.christina@arm.com>
6143
6144 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
6145
6146 2019-11-04 Martin Sebor <msebor@redhat.com>
6147
6148 PR tree-optimization/92349
6149 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
6150 memebers have constant sizes.
6151
6152 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
6153
6154 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
6155 parameter.
6156 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
6157 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
6158 vect_analyze_loop.
6159
6160 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
6161
6162 * expr.c (store_constructor): Modify to handle single element vectors.
6163 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
6164 constructors.
6165 (vect_slp_check_for_constructors): New function.
6166 (vect_slp_analyze_bb_1): Call new function to check for vector
6167 constructors.
6168 (vectorize_slp_instance_root_stmt): New function.
6169 (vect_schedule_slp): Call new function to vectorize root stmt of vector
6170 constructors.
6171 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
6172
6173 2019-11-04 Richard Biener <rguenther@suse.de>
6174
6175 PR tree-optimization/92345
6176 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
6177 we produced a reduction chain.
6178 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
6179 LOOP_VINFO_REDUCTIONS.
6180
6181 2019-11-04 Jan Hubicka <jh@suse.cz>
6182
6183 * cgraphclones.c (cgraph_node::create_version_clone): Do not
6184 duplicate summaries.
6185 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
6186 first.
6187 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
6188 access call summaries.
6189 (dump_ipa_call_summary): Be ready for missing edge summaries.
6190 (analyze_function_body): Use get instead of get_create to access
6191 edge summary.
6192 (estimate_calls_size_and_time): Do not access summaries of
6193 inlined edges; sanity check they are missing.
6194 (ipa_call_context::estimate_size_and_time): Use get instead
6195 of get_create to access node summary.
6196 (inline_update_callee_summaries): Do not update depth of
6197 inlined edge.
6198 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
6199 growth caches.
6200 (ipa_merge_fn_summary_after_inlining): Use get instead
6201 of get_create.
6202 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
6203 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
6204 fast summary.
6205 (initialize_growth_caches): Update.
6206 (do_estimate_edge_time): Remove redundant copy of context.
6207 (ipa_remove_from_growth_caches): New function.
6208 * ipa-inline.c (flatten_function): Update overall summary
6209 only when optimizing.
6210 (inline_to_all_callers): Update overall summary of function
6211 inlined to.
6212 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
6213 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
6214 to false.
6215
6216 2019-11-04 Richard Biener <rguenther@suse.de>
6217
6218 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
6219 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
6220
6221 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
6222
6223 * ggc-common.c: Include system.h before malloc.h.
6224
6225 2019-11-04 Alexandre Oliva <oliva@adacore.com>
6226
6227 * configure.ac: Pass --enable-obsolete=* and
6228 --enable-option-checking=* down to build configure, and fail
6229 if it fails. AC_SUBST HAVE_AUTO_BUILD.
6230 * configure: Rebuild.
6231 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
6232 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
6233
6234 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6235
6236 * config.in: Regenerate.
6237 * config/msp430/msp430.c (msp430_option_override): Emit an error if
6238 -mtiny-printf is used without GCC being configured with
6239 --enable-newlib-nano-formatted-io.
6240 * config/msp430/msp430.h (LINK_SPEC): Pass
6241 "--wrap puts --wrap printf" when -mtiny-printf is used.
6242 * config/msp430/msp430.opt: Document -mtiny-printf.
6243 * configure: Regenerate.
6244 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
6245 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
6246 --enable-newlib-nano-formatted-io is passed.
6247 * doc/invoke.texi: Document -mtiny-printf.
6248
6249 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6250
6251 * configure: Regenerate.
6252
6253 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6254
6255 * config/msp430/driver-msp430.c
6256 (msp430_get_linker_devices_include_path): New spec function.
6257 * config/msp430/msp430-devices.c (msp430_dirname): New function.
6258 (extract_devices_dir_from_exec_prefix): New function.
6259 (extract_devices_dir_from_collect_gcc): New function.
6260 (msp430_check_env_var_for_devices): New function.
6261 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
6262 (parse_devices_csv): Call msp430_check_env_var_for_devices if
6263 devices.csv was not found using other methods.
6264 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
6265 New prototype.
6266 (msp430_dirname): Likewise.
6267 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
6268 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
6269 msp430_get_linker_devices_include_path.
6270 (TARGET_EXTRA_PRE_INCLUDES): Define.
6271 * doc/invoke.texi: Document new ways of searching for support files.
6272
6273 2019-11-04 Richard Biener <rguenther@suse.de>
6274
6275 PR tree-optimization/92301
6276 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
6277 as required by epilogue generation
6278
6279 2019-11-04 Martin Liska <mliska@suse.cz>
6280
6281 PR ipa/92304
6282 * fold-const.c (operand_compare::hash_operand): Fix field
6283 hashing of CONSTRUCTOR.
6284
6285 2019-11-04 Martin Liska <mliska@suse.cz>
6286
6287 * ggc.h (ggc_delete): New function.
6288 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
6289 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
6290 (ipa_free_all_node_params): Likewise.
6291 * ipa-sra.c (ipa_sra_analysis): Likewise.
6292
6293 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6294
6295 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
6296 set_switch_stmt_execution_predicate, compute_bb_predicates,
6297 will_be_nonconstant_expr_predicate,
6298 phi_result_unknown_predicate,
6299 analyze_function_body): Pass arround params summary.
6300 (ipa_call_context::duplicate_from): New comment;
6301 only duplicate useful values.
6302 (ipa_call_context::equal_to): Only compare useful values.
6303 (remap_edge_summaries): Pass params_summary.
6304 (remap_hint_predicate): Likewise.
6305 (ipa_merge_fn_summary_after_inlining): Likewise.
6306 (inline_read_section): Initialize params summary used flags.
6307 * ipa-predicate.c (predicate::remap_after_inlining): Pass
6308 around param_summary.
6309 (add_condition): Initialized used params summary flags.
6310 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
6311 (inline_param_summary::useless_p): New predicate.
6312 (remap_after_inlining, add_condition): Update prototype
6313 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
6314 move_cost.
6315 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
6316 summaries.
6317 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
6318 (ipa_analyze_virtual_call_uses): Likewise.
6319 (update_indirect_edges_after_inlining): Update param summaries.
6320 (ipa_print_node_params): Print used flags.
6321 (ipa_read_indirect_edge_info): Update param summareis.
6322 * ipa-prop.h (ipa_param_descriptor): Add
6323 used_by_ipa_predicates, used_by_indirect_call
6324 and used_by_polymorphic_call.
6325 (ipa_set_param_used_by_ipa_predicates,
6326 ipa_set_param_used_by_indirect_call,
6327 ipa_set_param_used_by_polymorphic_call,
6328 ipa_is_param_used_by_ipa_predicates,
6329 ipa_is_param_used_by_indirect_call,
6330 ipa_is_param_used_by_polymorphic_call): New inline functions.
6331
6332 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6333
6334 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
6335 member function.
6336 (ipa_call_context::release): Add ALL parameter.
6337 (ipa_call_context::equal_to): New member function.
6338 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
6339 duplicate_form, release, equal_to and exists_p member functoins.
6340 * ipa-inline-analysis.c (node_context_cache_entry): New
6341 class.
6342 (node_context_summary): Likewise.
6343 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
6344 node_context_clear): New static vars.
6345 (initialize_growth_caches): New function.
6346 (free_growth_caches): Also delete node_context_cache; output stats.
6347 (do_estimate_edge_time): Cache contexts.
6348 (reset_node_cache): New function.
6349 * ipa-inline.c (reset_edge_caches): Reset also node cache.
6350 (inline_small_functions): Initialize growth caches.
6351 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
6352 Declare.
6353 * ipa-predicate.h (inline_param_summary::equal_to): New.
6354 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
6355 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
6356 (ipa_agg_jump_function): Implement equal_to member function.
6357
6358 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6359
6360 * ipa-fnsummary.c (inline_read_section): Set vector size
6361 ahead of time.
6362
6363 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6364
6365 * ipa-fnsummary.c (ipa_call_context): New constructor.
6366 (estimate_node_size_and_time): Turn to ...
6367 (ipa_call_context::estimate_size_and_time): ... this one.
6368 (ipa_call_context::release): New.
6369 * ipa-fnsummary.h (ipa_call_context): New class.
6370 (estimate_node_size_and_time): Remove.
6371 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
6372 do_estimate_edge_hints): Update.
6373
6374 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
6375
6376 * config.in: Regenerate.
6377 * configure: Regenerate.
6378 * configure.ac: Check for mallinfo.
6379 * ggc-common.c: Include malloc.h if available;
6380 include options.h
6381 (report_heap_memory_use): New functoin.
6382 * ggc-page.c (ggc_grow): Do not print "start".
6383 * ggc.h (report_heap_memory_use): Declare.
6384 * pases.c (execute_one_pass): Report memory after IPA passes.
6385 (ipa_read_summaries_1): Likewise.
6386 (ipa_read_optimization_summaries_1): Likewise.
6387
6388 2019-11-02 Jakub Jelinek <jakub@redhat.com>
6389
6390 * gimplify.h (omp_construct_selector_matches): Change return
6391 type to int, add a new SCORES argument.
6392 * gimplify.c (omp_construct_selector_matches): Likewise. If
6393 SCORES is non-NULL, compute scores of each construct.
6394 * omp-general.h (omp_get_context_selector): Declare.
6395 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
6396 Adjust omp_construct_selector_matches callers.
6397 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
6398 (omp_context_compute_score): New function.
6399 (omp_resolve_declare_variant): Compute scores and decide based on
6400 that.
6401
6402 PR bootstrap/92314
6403 * configure.ac: Don't look for omp-device-properties files from
6404 installed offloading compilers. Instead add tmake_file snippets
6405 for configured offloading targets and use files they generate.
6406 * Makefile.in (install): Don't depend on
6407 install-omp-device-properties.
6408 (install-omp-device-properties): Remove goal.
6409 * config/i386/t-omp-device: New file.
6410 * config/i386/t-intelmic (omp-device-properties): Remove goal.
6411 * config/nvptx/t-omp-device: New file.
6412 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
6413 * configure: Regenerated.
6414
6415 * omp-general.h (omp_context_selector_set_compare): Declare.
6416 * omp-general.c (omp_construct_simd_compare,
6417 omp_context_selector_props_compare, omp_context_selector_set_compare,
6418 omp_context_selector_compare): New functions.
6419 (omp_resolve_declare_variant): Prune variants that are strict subset
6420 of another variant.
6421
6422 2019-11-01 Martin Sebor <msebor@redhat.com>
6423
6424 PR middle-end/91679
6425 PR middle-end/91647
6426 PR middle-end/91463
6427 PR middle-end/92312
6428 * doc/invoke.texi (-Wzero-length-bounds): Document.
6429 * gimple-match-head.c (try_conditional_simplification): Use memcpy
6430 instead of a hand-rolled loop to avoid PR 92323.
6431 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
6432 with initializers.
6433 (vrp_prop::check_mem_ref): Handle declared struct objects.
6434 * tree.c (last_field): New function.
6435 (array_at_struct_end_p): Handle MEM_REF.
6436 (get_initializer_for): New helper.
6437 (component_ref_size): Add argument. Rename locals. Call
6438 get_initializer_for instead of fold_ctor_reference. Correct handling
6439 of flexible array members.
6440 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
6441
6442 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6443
6444 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
6445 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
6446 UNSPEC_VSX_CVSPUXDS): Remove.
6447 (vsx_xvcvspdp): New define_expand, old define_insn split to...
6448 (vsx_xvcvspdp_be): ... this. New. And...
6449 (vsx_xvcvspdp_le): ... this. New.
6450 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
6451 (vsx_xvcv<su>xwdp_be): ... this. New. And...
6452 (vsx_xvcv<su>xwdp_le): ... this. New.
6453 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
6454 (vsx_xvcvsp<su>xds_be): ... this. New. And...
6455 (vsx_xvcvsp<su>xds_le): ... this. New.
6456
6457 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6458
6459 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
6460 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
6461 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
6462 UNSPEC_VSX_XVCVSPSXWS): Remove.
6463 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
6464 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
6465
6466 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6467
6468 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
6469 (UNSPEC_VSX_XVCDPSP): Remove.
6470 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
6471 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
6472
6473 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6474
6475 * hooks.c (hook_tree_tree_bool_null): New.
6476 * hooks.h (hook_tree_tree_bool_null): Declare.
6477 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
6478 (LANG_HOOKS_DECLS): Add it.
6479 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
6480 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
6481 (lower_omp_target): Handle Fortran array with descriptor in
6482 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
6483
6484 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
6485
6486 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6487 Assert that the type we store in abi_vector_types is its own
6488 main variant.
6489 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6490
6491 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6492
6493 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6494 from a CONST_INT address when TARGET_THUMB2.
6495
6496 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6497
6498 * config/arm/arm.md (add_not_cin): New insn.
6499 (add_not_shift_cin): Likewise.
6500
6501 2019-10-31 Martin Liska <mliska@suse.cz>
6502
6503 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6504 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6505 and compare_memory_operand.
6506
6507 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6508
6509 * configure.ac: Compute and substitute omp_device_properties and
6510 omp_device_property_deps.
6511 * Makefile.in (generated_files): Add omp-device-properties.h.
6512 (omp-general.o): Depend on omp-device-properties.h.
6513 (omp_device_properties): New make variable.
6514 (omp-device-properties.h, s-omp-device-properties-h,
6515 install-omp-device-properties): New goals.
6516 (install): Depend on install-omp-device-properties for accelerators.
6517 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6518 * target.h (enum omp_device_kind_arch_isa): New enum.
6519 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6520 documentation.
6521 * omp-general.c: Include omp-device-properties.h.
6522 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6523 colon instead of comma.
6524 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6525 functions.
6526 (omp_context_selector_matches): Implement device set arch/isa
6527 selectors, improve device set kind selector handling.
6528 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6529 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6530 TARGET_SIMD_CLONE_USABLE): Formatting fix.
6531 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6532 ix86_omp_device_kind_arch_isa.
6533 * config/i386/i386-options.c (struct ix86_target_opts): Move type
6534 definition from ix86_target_string to file scope.
6535 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6536 to file scope.
6537 (ix86_omp_device_kind_arch_isa): New function.
6538 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6539 isa_opts definitions to file scope.
6540 * config/i386/t-intelmic (omp-device-properties): New goal.
6541 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6542 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6543 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6544 nvptx_omp_device_kind_arch_isa.
6545 * configure: Regenerate.
6546 * doc/tm.texi: Regenerate.
6547
6548 PR middle-end/92231
6549 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6550 DECL_BUILT_IN in comment. Remove redundant ()s around return
6551 argument.
6552 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6553 before calling fndecl_built_in_p.
6554 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6555 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6556 fndecl_built_in_p on it.
6557
6558 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6559
6560 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6561
6562 2019-10-31 Martin Liska <mliska@suse.cz>
6563
6564 * config/arm/arm.c (arm_get_pcs_model): Remove usage
6565 of cgraph_local_info and use local_info_node instead.
6566 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6567 (bfin_function_ok_for_sibcall): Likewise.
6568 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6569 (must_reload_pic_reg_p): Likewise.
6570
6571 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6572
6573 PR c++/90947
6574 * tree.h (type_initializer_zero_p): Remove.
6575 * tree.c (type_initializer_zero_p): Remove.
6576
6577 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6578
6579 * doc/invoke.texi (-Wshadow, -Wshadow=global
6580 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6581
6582 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6583
6584 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6585 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6586 and 'target exit data'.
6587
6588 2019-10-30 Martin Jambor <mjambor@suse.cz>
6589
6590 ipa/92278
6591 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6592 availability comparison.
6593
6594 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6595
6596 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6597 calls to __mspabi_mpy* functions.
6598 * config/msp430/msp430.md (mulhisi3): New define_expand.
6599 (umulhisi3): New define_expand.
6600 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6601 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6602
6603 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6604
6605 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6606 (msp430_check_plus_not_high_mem): New.
6607 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6608 might be in low memory.
6609 Indicate that a 16-bit absolute address is in lower memory.
6610
6611 2019-10-30 Martin Jambor <mjambor@suse.cz>
6612
6613 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6614 ultimate_alias_target.
6615
6616 2019-10-30 Richard Biener <rguenther@suse.de>
6617
6618 PR tree-optimization/92275
6619 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6620 Copy all loop-closed PHIs.
6621
6622 2019-10-30 Martin Liska <mliska@suse.cz>
6623
6624 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6625 const_tree as function argument.
6626 (func_checker::compare_decl): Likewise.
6627 (func_checker::operand_equal_p): Likewise.
6628 (func_checker::compare_variable_decl): Likewise.
6629 (func_checker::parse_labels): Likewise.
6630 * ipa-icf-gimple.h: Likewise.
6631
6632 2019-10-30 Martin Liska <mliska@suse.cz>
6633
6634 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6635 Do not compare alias sets. It's handled by operand_equal_p.
6636
6637 2019-10-30 Martin Liska <mliska@suse.cz>
6638
6639 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6640 initialize m_compare_polymorphic.
6641 (func_checker::compare_decl): Do not compare polymorphic types.
6642 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6643 * ipa-icf.c (sem_function::equals_private): Do not call
6644 compare_polymorphic_p.
6645
6646 2019-10-30 Martin Liska <mliska@suse.cz>
6647
6648 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6649 compare_operand.
6650 (func_checker::compare_memory_operand): Remove.
6651 (func_checker::compare_cst_or_decl): Remove.
6652 (func_checker::operand_equal_valueize): Do not handle
6653 FIELD_DECL.
6654 (func_checker::compare_gimple_call): Call compare_operand.
6655 (func_checker::compare_gimple_assign): Likewise.
6656 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6657 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6658 * ipa-icf.h (icf_handled_component_p): Remove.
6659
6660 2019-10-30 Martin Liska <mliska@suse.cz>
6661
6662 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6663 (func_checker::compare_cst_or_decl): Remove handling
6664 of FIELD_DECL.
6665 (func_checker::compare_operand): Transform to ...
6666 (func_checker::operand_equal_p): ... this.
6667 * ipa-icf-gimple.h (class func_checker): Add
6668 operand_equal_p and hash_operand.
6669 * ipa-icf.c (sem_function::equals_private): Fix
6670 pushing and popping of cfun.
6671
6672 2019-10-30 Martin Liska <mliska@suse.cz>
6673
6674 * fold-const.c (operand_equal_p): Move to ...
6675 (operand_compare::operand_equal_p): ... here.
6676 (operand_compare::verify_hash_value): New.
6677 (add_expr): Move to ...
6678 (operand_compare::hash_operand): ... here.
6679 * fold-const.h (operand_equal_p): Move to the class.
6680 (class operand_compare): New.
6681 * tree.c (add_expr): Remove.
6682
6683 2019-10-30 Martin Liska <mliska@suse.cz>
6684
6685 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6686 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6687
6688 2019-10-30 Martin Liska <mliska@suse.cz>
6689
6690 PR lto/91393
6691 PR lto/88220
6692 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6693 from a first_clone in order to get proper LTO section
6694 in LTO stream.
6695 (cgraph_node::get_untransformed_body):
6696 Use lto_get_section_data where symtab_node::order
6697 must be provided.
6698 * cgraphclones.c (cgraph_node::find_replacement):
6699 Update also symbol order.
6700 * ipa-fnsummary.c (ipa_fn_summary_read):
6701 Use new function lto_get_summary_section_data.
6702 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6703 * ipa-icf.c (sem_item_optimizer::read_summary):
6704 Likewise.
6705 * ipa-prop.c (ipa_prop_read_jump_functions):
6706 Likewise.
6707 (ipcp_read_transformation_summaries): Likewise.
6708 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6709 * lto-cgraph.c (input_node): Add also order_base.
6710 (input_varpool_node): Likewise.
6711 (input_cgraph_1): Assign the order_base.
6712 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6713 * lto-opts.c (lto_write_options): Pass new argument.
6714 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6715 (lto_get_summary_section_data): New.
6716 (lto_get_raw_section_data): Add order argument.
6717 (lto_create_simple_input_block): Likewise.
6718 * lto-section-out.c (lto_destroy_simple_output_block):
6719 Likewise.
6720 * lto-streamer-in.c (lto_input_toplevel_asms):
6721 Use lto_get_summary_section_data.
6722 (lto_input_mode_table): Likewise.
6723 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6724 (lto_output_toplevel_asms): Pass new argument.
6725 (copy_function_or_variable): Likewise.
6726 (produce_lto_section):Likewise.
6727 (produce_symtab): Likewise.
6728 (lto_write_mode_table): Likewise.
6729 (produce_asm_for_decls): Likewise.
6730 * lto-streamer.c (lto_get_section_name): Concat symbol name
6731 and symbol order.
6732 * lto-streamer.h (lto_get_section_data): Add order argument.
6733 (lto_get_summary_section_data): New.
6734 (lto_get_raw_section_data): Add order argument.
6735 (lto_get_section_name): Likewise.
6736 * varpool.c (varpool_node::get_constructor): Pass order argument.
6737
6738 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6739
6740 PR tree-optimization/92262
6741 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6742 ubase or cbase here.
6743 (remove_unused_ivs): Unshare comp before using it.
6744
6745 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6746
6747 * ipa-prop.c (update_jump_functions_after_inlining):
6748 Watch for missing summaries.
6749
6750 2019-10-30 Richard Biener <rguenther@suse.de>
6751
6752 PR tree-optimization/65930
6753 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6754 chains also allow a leading and trailing conversion.
6755 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6756 intermediate reduction chains.
6757 (vect_analyze_slp_instance): Likewise. Build a SLP
6758 node for a trailing conversion manually.
6759
6760 2019-10-30 Martin Liska <mliska@suse.cz>
6761
6762 * cgraph.c (cgraph_node::local_info): Transform to ...
6763 (cgraph_node::local_info_node): ... this.
6764 (cgraph_node::dump): Remove cgraph_local_info and
6765 put its fields directly into cgraph_node.
6766 (cgraph_node::get_availability): Likewise.
6767 (cgraph_node::make_local): Likewise.
6768 (cgraph_node::verify_node): Likewise.
6769 * cgraph.h (struct GTY): Likewise.
6770 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6771 (duplicate_thunk_for_node): Likewise.
6772 (cgraph_node::create_clone): Likewise.
6773 (cgraph_node::create_virtual_clone): Likewise.
6774 (cgraph_node::create_version_clone): Likewise.
6775 * cgraphunit.c (cgraph_node::reset): Likewise.
6776 (cgraph_node::finalize_function): Likewise.
6777 (cgraph_node::add_new_function): Likewise.
6778 (analyze_functions): Likewise.
6779 * combine.c (setup_incoming_promotions): Likewise.
6780 * config/i386/i386.c (ix86_function_regparm): Likewise.
6781 (ix86_function_sseregparm): Likewise.
6782 (init_cumulative_args): Likewise.
6783 * ipa-cp.c (determine_versionability): Likewise.
6784 (count_callers): Likewise.
6785 (set_single_call_flag): Likewise.
6786 (initialize_node_lattices): Likewise.
6787 (estimate_local_effects): Likewise.
6788 (create_specialized_node): Likewise.
6789 (identify_dead_nodes): Likewise.
6790 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6791 (ipa_fn_summary_generate): Likewise.
6792 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6793 (process_hsa_functions): Likewise.
6794 * ipa-icf.c (set_local): Likewise.
6795 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6796 * ipa-inline.c (speculation_useful_p): Likewise.
6797 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6798 (ipa_profile): Likewise.
6799 * ipa-split.c (split_function): Likewise.
6800 (execute_split_functions): Likewise.
6801 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6802 (ipa_sra_ipa_function_checks): Likewise.
6803 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6804 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6805 * lto-cgraph.c (lto_output_node): Likewise.
6806 (input_overwrite_node): Likewise.
6807 * multiple_target.c (expand_target_clones): Likewise.
6808 * omp-simd-clone.c (simd_clone_create): Likewise.
6809 * trans-mem.c (expand_call_tm): Likewise.
6810 (ipa_tm_mayenterirr_function): Likewise.
6811 (ipa_tm_diagnose_tm_safe): Likewise.
6812 (ipa_tm_diagnose_transaction): Likewise.
6813 (ipa_tm_create_version): Likewise.
6814 (ipa_tm_transform_calls_redirect): Likewise.
6815 (ipa_tm_execute): Likewise.
6816 * tree-inline.c (expand_call_inline): Likewise.
6817
6818 2019-10-29 Martin Liska <mliska@suse.cz>
6819
6820 * symbol-summary.h (function_summary): Pass memory location
6821 to underlaying hash_map (or vec).
6822 (V>::fast_function_summary): Likewise.
6823
6824 2019-10-29 Martin Liska <mliska@suse.cz>
6825
6826 * ggc.h (ggc_alloc_no_dtor): New function.
6827 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6828 destructor and ggc_free.
6829 (ipa_free_size_summary): Call delete instead
6830 of release.
6831 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6832 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6833 (ipa_free_all_edge_args): Call destructor and ggc_free.
6834 (ipa_free_all_node_params): Likewise.
6835 (ipcp_free_transformation_sum): Likewise.
6836 * ipa-prop.h (ipa_check_create_node_params):
6837 Call new ggc_alloc_no_dtor.
6838 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6839 (ipa_sra_analysis): Call destructor and ggc_free.
6840 Replace release with delete operator.
6841 * symbol-summary.h (release): Remove ..
6842 (V>::~fast_function_summary): and move logic here.
6843 Likewise for other classes.
6844
6845 2019-10-29 Richard Biener <rguenther@suse.de>
6846
6847 PR tree-optimization/92260
6848 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6849 lane-reducing ops.
6850
6851 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6852
6853 PR tree-optimization/88915
6854 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6855 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6856 and make the valueize function pointer also take a void pointer.
6857 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6858 around vn_valueize, to call it without a context.
6859 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6860 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6861 (~_loop_vec_info): Release epilogue_vinfos.
6862 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6863 number of iterations of epilogue.
6864 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6865 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6866 versioning threshold needed for main loop.
6867 (vect_analyze_loop): Likewise.
6868 (find_in_mapping): New helper function.
6869 (update_epilogue_loop_vinfo): New function.
6870 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6871 on main loop and call update_epilogue_loop_vinfo to update it.
6872 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6873 stmts on loop preheader edge.
6874 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6875 we decided to vectorize epilogues. Update epilogues NITERS and
6876 construct ADVANCE to update epilogues data references where needed.
6877 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6878 (vect_do_peeling, vect_update_inits_of_drs,
6879 determine_peel_for_niter, vect_analyze_loop): Add or update
6880 declarations.
6881 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6882 created loop_vec_info's for epilogues when available. Otherwise analyse
6883 epilogue separately.
6884
6885 2019-10-29 Richard Biener <rguenther@suse.de>
6886
6887 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6888 example.
6889
6890 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6891
6892 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6893 index for the COND_EXPR from stmt_info rather than reduc_info.
6894
6895 2019-10-29 Richard Biener <rguenther@suse.de>
6896
6897 PR tree-optimization/65930
6898 * tree-vect-loop.c (check_reduction_path): Relax single-use
6899 check allowing out-of-loop uses.
6900 (vect_is_simple_reduction): SLP reduction chains cannot have
6901 intermediate stmts used outside of the loop.
6902 (vect_create_epilog_for_reduction): The adjustment might need
6903 to be converted.
6904 (vectorizable_reduction): Annotate live stmts of the reduction
6905 chain with STMT_VINFO_REDUC_DEF.
6906 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6907
6908 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6909
6910 * calls.c (pass_by_reference): Leave the target to decide whether
6911 POLY_INT_CST-sized arguments should be passed by value or reference,
6912 rather than forcing them to be passed by reference.
6913 (must_pass_in_stack_var_size): Likewise.
6914 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6915 V31_REGNUM to P15_REGNUM.
6916 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6917 Take an extra "silent_p" parameter, defaulting to false.
6918 (aarch64_sve::svbool_type_p): Declare.
6919 (aarch64_sve::nvectors_if_data_type): Likewise.
6920 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6921 (aarch64_frame::reg_offset): Turn into poly_int64s.
6922 (aarch64_frame::save_regs_size): Likewise.
6923 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6924 (aarch64_frame::sve_callee_adjust): Likewise.
6925 (aarch64_frame::spare_reg_reg): Likewise.
6926 (ARM_PCS_SVE): New arm_pcs value.
6927 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6928 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6929 (CUMULATIVE_ARGS::silent_p): Likewise.
6930 (BITS_PER_SVE_PRED): New macro.
6931 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6932 function. Reject aarch64_vector_pcs attributes on SVE functions.
6933 (aarch64_attribute_table): Use the above handler.
6934 (aarch64_sve_abi): New function.
6935 (aarch64_sve_argument_p): Likewise.
6936 (aarch64_returns_value_in_sve_regs_p): Likewise.
6937 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6938 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6939 descriptor for them.
6940 (aarch64_simd_decl_p): Delete.
6941 (aarch64_emit_cfi_for_reg_p): New function.
6942 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6943 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6944 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6945 as partly clobbered for the SVE PCS.
6946 (aarch64_function_ok_for_sibcall): Check whether the two functions
6947 use the same ABI, rather than checking specifically for whether
6948 they're aarch64_vector_pcs functions.
6949 (aarch64_pass_by_reference): Raise an error for attempts to pass
6950 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6951 if there are not enough free registers left, or if the argument is
6952 variadic.
6953 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6954 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6955 tuples in memory.
6956 (aarch64_layout_arg): Take a function_arg_info rather than
6957 individual properties. Handle SVE predicates, vectors and tuples.
6958 Raise an error if they are passed to unprototyped functions.
6959 (aarch64_function_arg): If the silent_p flag is set, suppress the
6960 usual error about using float registers without TARGET_FLOAT.
6961 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6962 it in the cumulative_args structure. Initialize aapcs_nprn and
6963 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6964 error about using float registers without TARGET_FLOAT.
6965 If the silent_p flag is not set, also raise an error about
6966 using SVE functions when SVE is disabled.
6967 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6968 and call it for SVE functions too. Update aapcs_nprn similarly
6969 to the other register counts.
6970 (aarch64_layout_frame): If a big-endian function needs to save
6971 and restore Z8-Z15, search for a spare predicate that it can use.
6972 Store SVE predicates at the bottom of the register save area,
6973 followed by SVE vectors, then followed by the normal slots.
6974 Keep pointing the hard frame pointer at the base of the normal slots,
6975 above the SVE vectors. Update the various frame creation and
6976 tear-down strategies for the new layout, initializing the new
6977 sve_callee_adjust field. Add an additional layout for frames
6978 whose saved registers are all SVE registers.
6979 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6980 (aarch64_return_address_signing_enabled): Likewise.
6981 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6982 aarch64_reg_save_mode.
6983 (aarch64_adjust_sve_callee_save_base): New function.
6984 (aarch64_add_cfa_expression): Move earlier in file. Take the
6985 saved register as an rtx rather than a register number and use
6986 its mode for the MEM slot.
6987 (aarch64_save_callee_saves): Remove the mode argument and instead
6988 use aarch64_reg_save_mode to get the mode of each save slot.
6989 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6990 offsets. Allow GP offsets to be saved at a VL-based offset from
6991 the stack, handling this case using the frame pointer if available
6992 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6993 big-endian SVE functions; use normal moves for other SVE saves.
6994 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6995 returns true. Add explicit CFA notes when not storing via the
6996 stack pointer. Do not try to pair SVE saves.
6997 (aarch64_restore_callee_saves): Cope with poly_int64 register
6998 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6999 use normal moves for other SVE restores. Only add CFA restore notes
7000 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
7001 SVE restores.
7002 (aarch64_get_separate_components): Always keep the first SVE save
7003 in the prologue if we need to use it as a stack probe. Don't allow
7004 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
7005 Likewise the spare predicate register that they need. Update the
7006 offset calculation to account for the SVE save area. Use the
7007 appropriate range check for SVE LDR and STR instructions.
7008 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
7009 (aarch64_process_components): Likewise. Update the offset
7010 calculation to account for the SVE save area. Only mark the
7011 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
7012 Do not try to pair SVE saves.
7013 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
7014 reg_offsets. When handling the final allocation, expect the
7015 first SVE register save to be part of the initial allocation
7016 and for it to act as a probe at SP. Account for the SVE callee
7017 save area in the dump information.
7018 (aarch64_expand_prologue): Update the frame diagram. Fold the
7019 SVE callee allocation into the initial allocation if stack clash
7020 protection is enabled. Use new variables to track the offset
7021 of the frame chain (and hard frame pointer) from the current
7022 stack pointer, and likewise the offset of the bottom of the
7023 register save area. Update calls to aarch64_save_callee_saves
7024 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
7025 saving the FP&SIMD registers. Save the predicate registers.
7026 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
7027 into account when setting the stack pointer from the frame pointer,
7028 and when deciding whether we can inherit the initial adjustment
7029 amount from the prologue. Restore the predicate registers after
7030 the vector registers, then apply sve_callee_adjust, then restore
7031 the general registers.
7032 (aarch64_secondary_reload): Don't use secondary SVE reloads
7033 for VNx16BImode.
7034 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
7035 (aarch64_short_vector_p): Return false for SVE types.
7036 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
7037 at the start of the function. Return false for SVE types.
7038 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
7039 functions too.
7040 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
7041 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
7042 to big-endian targets for bytewise moves.
7043 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
7044
7045 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7046 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7047 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7048
7049 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
7050 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
7051 aarch64-sve-builtins-base.o to extra_objs. Add
7052 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
7053 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
7054 (aarch64-sve-builtins-shapes.o): Likewise.
7055 (aarch64-sve-builtins-base.o): New rules.
7056 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
7057 (aarch64_resolve_overloaded_builtin): Likewise.
7058 (aarch64_check_builtin_call): Likewise.
7059 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
7060 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
7061 pragma.
7062 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
7063 (aarch64_svprfop): New enum.
7064 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
7065 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
7066 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
7067 (aarch64_output_sve_cnt_pat_immediate): Likewise.
7068 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
7069 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
7070 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
7071 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
7072 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
7073 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
7074 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
7075 (aarch64_sve::mangle_builtin_type): Likewise.
7076 (aarch64_sve::resolve_overloaded_builtin): Likewise.
7077 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
7078 (aarch64_sve::expand_builtin): Likewise.
7079 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
7080 (aarch64_sve_int_mode): Likewise.
7081 (aarch64_ptrue_all_mode): New function.
7082 (aarch64_convert_sve_data_to_pred): Make public.
7083 (svprfop_token): New function.
7084 (aarch64_output_sve_prefetch): Likewise.
7085 (aarch64_fold_sve_cnt_pat): Likewise.
7086 (aarch64_output_sve_cnt_pat_immediate): Likewise.
7087 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
7088 instead of gen_while_ult.
7089 (aarch64_replace_reg_mode): Make public.
7090 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
7091 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
7092 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
7093 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
7094 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
7095 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
7096 (aarch64_sve_ptrue_svpattern_p): Likewise.
7097 (aarch64_sve_pred_valid_immediate): Check
7098 aarch64_sve_ptrue_svpattern_p.
7099 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
7100 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
7101 functions.
7102 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
7103 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
7104 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
7105 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
7106 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
7107 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
7108 New unspecs.
7109 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
7110 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
7111 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
7112 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
7113 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
7114 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
7115 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
7116 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
7117 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
7118 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
7119 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
7120 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
7121 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
7122 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
7123 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
7124 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
7125 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
7126 (Vesize): Handle partial vector modes.
7127 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
7128 mode attributes.
7129 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
7130 iterators.
7131 (s, paired_extend, inc_dec): New code attributes.
7132 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
7133 (SVE_INT_UNARY): Add UNSPEC_RBIT.
7134 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
7135 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
7136 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
7137 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7138 UNSPEC_COND_FMULX.
7139 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
7140 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
7141 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7142 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
7143 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
7144 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
7145 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
7146 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
7147 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
7148 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
7149 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
7150 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
7151 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
7152 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
7153 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
7154 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
7155 UNSPEC_COND_FSCALE.
7156 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
7157 (binqops_op, binqops_op_rev, last_op): New int attributes.
7158 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
7159 (fn, ab): New int attributes.
7160 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
7161 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
7162 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
7163 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
7164 UNSPEC_RBIT.
7165 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
7166 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
7167 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
7168 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
7169 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
7170 UNSPEC_COND_FMULX.
7171 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
7172 (brk_reg_con, brk_reg_opno): New int attributes.
7173 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
7174 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
7175 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
7176 UNSPEC_COND_FMIN.
7177 (max_elem_bits): New int attribute.
7178 (min_elem_bits): Handle UNSPEC_RBIT.
7179 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
7180 TRUNCATE as well as SUBREG.
7181 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
7182 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
7183 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
7184 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
7185 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
7186 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
7187 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
7188 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
7189 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
7190 (aarch64_gather_scale_operand_h): New predicates.
7191 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
7192 (vgd, vgh, vgw, vsQ, vsS): New constraints.
7193 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
7194 (*aarch64_sve_reinterpret<mode>): Allow any source register
7195 instead of requiring an exact match.
7196 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
7197 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
7198 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
7199 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
7200 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
7201 (aarch64_update_ffrt): New patterns.
7202 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7203 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7204 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7205 (@aarch64_ld<fn>f1<mode>): New patterns.
7206 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
7207 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7208 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7209 (@aarch64_ldnt1<mode>): New patterns.
7210 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7211 the scalar part of the address.
7212 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
7213 scalar part of the addresse and add an alternative for handling
7214 nonzero offsets.
7215 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7216 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
7217 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7218 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7219 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7220 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7221 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
7222 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
7223 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
7224 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
7225 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
7226 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
7227 (@aarch64_sve_prefetch<mode>): New patterns.
7228 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
7229 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
7230 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
7231 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
7232 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
7233 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7234 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7235 (@aarch64_stnt1<mode>): New patterns.
7236 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
7237 the scalar part of the address.
7238 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
7239 the scalar part of the addresse and add an alternative for handling
7240 nonzero offsets.
7241 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
7242 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
7243 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
7244 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
7245 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
7246 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
7247 New patterns.
7248 (vec_duplicate<mode>): Use QI as the mode of the input operand.
7249 (extract_last_<mode>): Generalize to...
7250 (@extract_<LAST:last_op>_<mode>): ...this.
7251 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
7252 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
7253 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
7254 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
7255 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
7256 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
7257 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
7258 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
7259 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
7260 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
7261 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
7262 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
7263 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
7264 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
7265 (*aarch64_adr_uxtw_unspec): Likewise.
7266 (*aarch64_adr_uxtw): Rename to...
7267 (*aarch64_adr_uxtw_and): ...this.
7268 (@aarch64_adr<mode>_shift): New expander.
7269 (*aarch64_adr_shift_sxtw): New pattern.
7270 (aarch64_<su>abd<mode>_3): Rename to...
7271 (@aarch64_pred_<su>abd<mode>): ...this.
7272 (<su>abd<mode>_3): Update accordingly.
7273 (@aarch64_cond_<su>abd<mode>): New expander.
7274 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
7275 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
7276 (*<su>mul<mode>3_highpart): Rename to...
7277 (@aarch64_pred_<optab><mode>): ...this.
7278 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
7279 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
7280 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
7281 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
7282 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
7283 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
7284 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
7285 (*v<ASHIFT:optab><mode>3): Rename to...
7286 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
7287 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
7288 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
7289 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
7290 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
7291 (@cond_asrd<mode>): New expander.
7292 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
7293 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
7294 (*sdiv_pow2<mode>3): Delete.
7295 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
7296 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
7297 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
7298 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
7299 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
7300 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
7301 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
7302 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
7303 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
7304 (*add<SVE_F:mode>3): Rename to...
7305 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
7306 for SVE_STRICT_GP.
7307 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
7308 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
7309 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
7310 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
7311 (*sub<SVE_F:mode>3): Rename to...
7312 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
7313 for SVE_STRICT_GP.
7314 (@aarch64_pred_abd<SVE_F:mode>): New expander.
7315 (*fabd<SVE_F:mode>3): Rename to...
7316 (*aarch64_pred_abd<SVE_F:mode>): ...this.
7317 (@aarch64_cond_abd<SVE_F:mode>): New expander.
7318 (*mul<SVE_F:mode>3): Rename to...
7319 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
7320 for SVE_STRICT_GP.
7321 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
7322 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
7323 to...
7324 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
7325 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
7326 (*<nlogical><PRED_ALL:mode>3): Rename to...
7327 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
7328 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
7329 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
7330 (*<logical_nn><PRED_ALL:mode>3): Rename to...
7331 (aarch64_pred_<logical_nn><mode>_z): ...this.
7332 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
7333 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
7334 (*fma<SVE_I:mode>4): Rename to...
7335 (@aarch64_pred_fma<SVE_I:mode>): ...this.
7336 (*fnma<SVE_I:mode>4): Rename to...
7337 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
7338 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
7339 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
7340 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
7341 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
7342 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
7343 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
7344 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
7345 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
7346 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
7347 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
7348 (@aarch64_sve_tmad<mode>): Likewise.
7349 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
7350 (*aarch64_sel_dup<mode>): Rename to...
7351 (@aarch64_sel_dup<mode>): ...this.
7352 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
7353 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
7354 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
7355 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
7356 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
7357 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
7358 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
7359 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
7360 (*fcm<cmp_op><mode>): Rename to...
7361 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
7362 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7363 (*fcmuo<mode>): Rename to...
7364 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
7365 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
7366 (@aarch64_pred_fac<cmp_op><mode>): New expander.
7367 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
7368 (fold_extract_last_<mode>): Generalize to...
7369 (@fold_extract_<last_op>_<mode>): ...this.
7370 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
7371 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
7372 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
7373 DImode result explicit.
7374 (reduc_plus_scal_<mode>): Update accordingly.
7375 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
7376 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
7377 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
7378 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
7379 (*aarch64_sve_tbl<mode>): Rename to...
7380 (@aarch64_sve_tbl<mode>): ...this.
7381 (@aarch64_sve_compact<mode>): New pattern.
7382 (*aarch64_sve_dup_lane<mode>): Rename to...
7383 (@aarch64_sve_dup_lane<mode>): ...this.
7384 (@aarch64_sve_dupq_lane<mode>): New pattern.
7385 (@aarch64_sve_splice<mode>): Likewise.
7386 (aarch64_sve_<perm_insn><mode>): Rename to...
7387 (@aarch64_sve_<perm_insn><mode>): ...this.
7388 (*aarch64_sve_ext<mode>): Rename to...
7389 (@aarch64_sve_ext<mode>): ...this.
7390 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
7391 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
7392 to...
7393 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
7394 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7395 Rename to...
7396 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7397 ...this.
7398 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
7399 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
7400 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
7401 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
7402 to...
7403 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
7404 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
7405 a "@" marker.
7406 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
7407 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
7408 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
7409 pattern.
7410 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
7411 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
7412 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
7413 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
7414 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
7415 "@" marker.
7416 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
7417 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
7418 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
7419 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
7420 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
7421 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
7422 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
7423 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
7424 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
7425 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
7426 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
7427 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
7428 (aarch64_sve_cnt_pat): Likewise.
7429 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7430 (*aarch64_sve_incsi_pat): Likewise.
7431 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7432 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7433 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7434 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7435 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7436 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7437 (*aarch64_sve_decsi_pat): Likewise.
7438 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7439 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7440 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7441 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7442 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7443 (@aarch64_pred_cntp<mode>): Likewise.
7444 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7445 New expander.
7446 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7447 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7448 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7449 New expander.
7450 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7451 New pattern.
7452 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
7453 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7454 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
7455 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7456 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
7457 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7458 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7459 New expander.
7460 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7461 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7462 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7463 New expander.
7464 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7465 New pattern.
7466 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
7467 expander.
7468 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7469 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
7470 expander.
7471 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7472 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
7473 expander.
7474 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7475 * config/aarch64/arm_sve.h: New file.
7476 * config/aarch64/aarch64-sve-builtins.h: Likewise.
7477 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
7478 * config/aarch64/aarch64-sve-builtins.def: Likewise.
7479 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
7480 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
7481 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
7482 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
7483 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
7484 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
7485
7486 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7487
7488 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7489 New pattern.
7490 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7491 SVE modes.
7492
7493 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7494
7495 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7496 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7497 FFRT_REGNUM + 1.
7498 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7499 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7500 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7501 (aarch64_hard_regno_nregs): Handle the new register classes.
7502 (aarch64_hard_regno_mode_ok): Likewise.
7503 (aarch64_regno_regclass): Likewise.
7504 (aarch64_class_max_nregs): Likewise.
7505 (aarch64_register_move_cost): Likewise.
7506 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7507 as general register_operands.
7508
7509 2019-10-29 Martin Liska <mliska@suse.cz>
7510
7511 * ggc-common.c: One can't subtract unsigned types
7512 in compare function.
7513
7514 2019-10-29 Martin Liska <mliska@suse.cz>
7515
7516 * cgraphunit.c (symbol_table::compile): Pass
7517 title as dump_memory_report argument.
7518 * toplev.c (dump_memory_report): New argument.
7519 (finalize): Pass new argument.
7520 * toplev.h (dump_memory_report): Add argument.
7521
7522 2019-10-29 Martin Liska <mliska@suse.cz>
7523
7524 * ggc-common.c: Move Leak to the first column.
7525
7526 2019-10-29 Martin Liska <mliska@suse.cz>
7527
7528 * cgraphunit.c (symbol_table::compile): Remove argument
7529 for dump_memory_report.
7530 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7531 (compare_final): Remove in order to make report
7532 better readable.
7533 * ggc.h (dump_ggc_loc_statistics): Remove argument.
7534 * mem-stats.h (mem_alloc_description::get_list):
7535 Do not pass cmp.
7536 (mem_alloc_description::dump): Likewise here.
7537 * toplev.c (dump_memory_report): Remove final
7538 argument.
7539 (finalize): Likewise.
7540 * toplev.h (dump_memory_report): Remove argument.
7541
7542 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7543
7544 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7545 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7546 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7547 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7548 accept "const".
7549
7550 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7551
7552 * coretypes.h (string_int_pair): New typedef.
7553 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7554 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7555 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7556
7557 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7558
7559 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7560 (simulate_builtin_function_decl): Declare.
7561 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7562 (LANG_HOOKS_INITIALIZER): Include it.
7563 * langhooks.c (add_builtin_function_common): Rename to...
7564 (build_builtin_function): ...this. Add a location parameter and use
7565 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7566 the decl instead.
7567 (add_builtin_function): Update accordingly, passing the returned
7568 decl to the lang hook.
7569 (add_builtin_function_ext_scope): Likewise
7570 (simulate_builtin_function_decl): New function.
7571
7572 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7573
7574 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7575 example, use actual names of supported offload targets.
7576
7577 PR target/92258
7578 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7579
7580 2019-10-28 Martin Sebor <msebor@redhat.com>
7581
7582 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7583 (handle_store): Pass argument to get_addr_stridx.
7584
7585 2019-10-28 Martin Sebor <msebor@redhat.com>
7586
7587 PR tree-optimization/92226
7588 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7589 the offset is in the open range outlined by SI's length.
7590
7591 2019-10-28 Martin Sebor <msebor@redhat.com>
7592
7593 PR c/66970
7594 * doc/cpp.texi (__has_builtin): Document.
7595 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7596
7597 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7598
7599 PR target/82981
7600 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7601 doubleword and low doubleword result of multiplication on
7602 MIPS64R6.
7603
7604 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7605 pure qualifier to the built-in.
7606 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7607 built-ins.
7608 (struct mips_builtin_description): Add is_pure flag.
7609 (mips_init_builtins): Mark built-in as pure if the flag in the
7610 corresponding mips_builtin_description struct is set.
7611
7612 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7613 alternative which covers the floating-point input value. Also
7614 forbid the split of insert.d pattern for floating-point values.
7615
7616 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7617
7618 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7619 * config/riscv/riscv-sr.c: New file.
7620 * config/riscv/riscv.c (riscv_reorg): New function.
7621 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7622 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7623 (riscv_remove_unneeded_save_restore_calls): Declare.
7624 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7625
7626 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7627
7628 PR tree-optimization/92163
7629 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7630 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7631 before calling bitmap_set_bit.
7632 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7633 delete_dead_or_redundant_assignment.
7634 (dse_dom_walker::dse_optimize_stmt): Likewise.
7635 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7636
7637 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7638
7639 PR middle-end/91272
7640 * tree-vect-stmts.c (vectorizable_condition): Support
7641 EXTRACT_LAST_REDUCTION with fully-masked loops.
7642
7643 2019-10-28 Richard Biener <rguenther@suse.de>
7644
7645 PR tree-optimization/92252
7646 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7647 STMT_VINFO_REDUC_IDX when swapping operands.
7648
7649 2019-10-28 Richard Biener <rguenther@suse.de>
7650
7651 PR tree-optimization/92241
7652 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7653 we failed to update the reduction index do not use the pattern
7654 stmts for the reduction chain.
7655 (vectorizable_reduction): When the reduction chain is corrupt,
7656 fail.
7657 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7658 fail to update the reduction chain.
7659
7660 2019-10-28 Richard Biener <rguenther@suse.de>
7661
7662 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7663 STMT_VINFO_REDUC_IDX from the actual stmt.
7664 (vect_transform_reduction): Likewise.
7665 (vectorizable_reduction): Compute the reduction chain length,
7666 do not recompute the reduction operand index. Remove no longer
7667 necessary restriction for condition reduction chains.
7668
7669 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7670
7671 PR target/92225
7672 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7673 condition for V2DImode.
7674
7675 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7676
7677 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7678 Remove %k operand modifier.
7679 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7680
7681 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7682
7683 PR rtl-optimization/92007
7684 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7685 call it after reload if hot/cold partitioning has been done.
7686 (class pass_postreload_jump): Rename to
7687 pass_jump_after_combine.
7688 (make_pass_postreload_jump): Rename to
7689 make_pass_jump_after_combine.
7690 * passes.def(pass_postreload_jump): Move before reload, rename
7691 to pass_jump_after_combine.
7692 * tree-pass.h (make_pass_postreload_jump): Rename to
7693 make_pass_jump_after_combine.
7694
7695 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7696
7697 PR ipa/92242
7698 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7699 for missing EDGE_REF
7700 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7701
7702 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7703
7704 PR tree-optimization/88760
7705 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7706 Enable -funroll-loops for -O2 and above.
7707 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7708 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7709 do not turn on web and rngreg implicitly, if the unroller is not
7710 explicitly enabled.
7711
7712 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7713
7714 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7715 jump functions.
7716
7717 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7718
7719 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7720 * cgraph.h (cgraph_node::rtl_info): Likewise.
7721
7722 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7723
7724 * ipa-cp.c (propagate_constants_across_call): If args are not available
7725 just drop everything to varying.
7726 (find_aggregate_values_for_callers_subset): Watch for missing
7727 edge summary.
7728 (find_more_scalar_values_for_callers_subs): Likewise.
7729 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7730 update_jump_functions_after_inlining, propagate_controlled_uses):
7731 Watch for missing summaries.
7732 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7733 is finished.
7734 (ipa_write_node_info): Watch for missing summaries.
7735 (ipa_read_edge_info): Create new ref.
7736 (ipa_edge_args_sum_t): Add remove.
7737 (IPA_EDGE_REF_GET_CREATE): New macro.
7738 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7739 edge summary.
7740 (remap_edge_change_prob): Likewise.
7741
7742 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7743
7744 * ipa-inline-transform.c (inline_call): update function summaries
7745 after expanidng thunk.
7746
7747 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7748
7749 * ipa-icf.c (sem_function::merge): Update function summaries.
7750 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7751
7752 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7753
7754 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7755 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7756 operand already has scalar mode.
7757 (iptr): Remove SF/DF.
7758
7759 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7760
7761 PR target/91289
7762 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7763 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7764 this.
7765
7766 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7767
7768 * config/i386/sse.md
7769 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7770 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7771 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7772 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7773 <sse>_vmmaskcmp<mode>3):
7774 Change predicates from vector_operand to nonimmediate_operand,
7775 constraints xBm to xm, since scalar operations don't need
7776 memory address alignment.
7777 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7778 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7779 round_saeonly_nimm_predicate with
7780 round_saeonly_nimm_scalar_predicate.
7781 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7782 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7783 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7784 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7785 avx512f_vmfmadd_<mode>_mask3<round_name>,
7786 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7787 *avx512f_vmfmsub_<mode>_mask<round_name>,
7788 avx512f_vmfmsub_<mode>_mask3<round_name>,
7789 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7790 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7791 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7792 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7793 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7794 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7795 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7796 cvtusi2<ssescalarmodesuffix>32<round_name>,
7797 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7798 round_nimm_predicate with round_nimm_scalr_predicate.
7799 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7800 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7801 avx512er_vmrcp28<mode><round_saeonly_name>,
7802 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7803 ): Replace round_saeonly_nimm_predicate with
7804 round_saeonly_nimm_scalar_predicate.
7805 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7806 vector_operand with nonimmediate_operand.
7807 * config/i386/subst.md (round_scalar_nimm_predicate,
7808 round_saeonly_scalar_nimm_predicate): Replace
7809 vector_operand with nonimmediate_operand.
7810
7811 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7812
7813 PR target/89071
7814 * config/i386/i386.md (*rcpsf2_sse): Add
7815 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7816 (*rsqrtsf2_sse): Ditto.
7817 (*sqrt<mode>2_sse): Ditto.
7818 (sse4_1_round<mode>2): separate constraint vm, add
7819 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7820 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7821 by pass rpad.
7822 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7823 Ditto.
7824 (*sse_vmrsqrtv4sf2): Ditto.
7825 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7826 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7827 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7828 <iptr> pointer size modifier since vround support memory operand.
7829
7830 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7831
7832 PR target/85969
7833 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7834 static function.
7835
7836 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7837 Tobias Burnus <tobias@codesourcery.com>
7838
7839 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7840 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7841 common block decls.
7842
7843 2019-10-25 Richard Biener <rguenther@suse.de>
7844
7845 PR tree-optimization/92222
7846 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7847 (_slp_oprnd_info::second_pattern): Likewise.
7848 (_slp_oprnd_info::any_pattern): New.
7849 (vect_create_oprnd_info): Adjust.
7850 (vect_get_and_check_slp_defs): Compute whether any stmt is
7851 in a pattern.
7852 (vect_build_slp_tree_2): Avoid building up a node from scalars
7853 if any of the operand defs, not just the first, is in a pattern.
7854
7855 2019-10-25 Richard Biener <rguenther@suse.de>
7856
7857 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7858 swapping if we actually have to modify the IL on a shared stmt.
7859 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7860 because we no longer modify the IL.
7861
7862 2019-10-25 Martin Liska <mliska@suse.cz>
7863
7864 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7865
7866 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7867
7868 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7869 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7870 handled by vect_transform_reduction. Allow fully-masked loops
7871 to be used with reduction chains.
7872 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7873 operations in fully-masked loops.
7874 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7875 operations in fully-masked loops.
7876
7877 2019-10-25 Richard Biener <rguenther@suse.de>
7878
7879 * tree-vect-loop.c (vectorizable_reduction): Verify
7880 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7881 correctly.
7882 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7883 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7884 stmts.
7885
7886 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7887
7888 * gimplify.h (omp_construct_selector_matches): Declare.
7889 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7890 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7891 called function if needed for flag_openmp.
7892 (gimplify_scan_omp_clauses): Set ctx->code.
7893 (omp_construct_selector_matches): New function.
7894 * omp-general.h (omp_constructor_traits_to_codes,
7895 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7896 * omp-general.c (omp_constructor_traits_to_codes,
7897 omp_context_selector_matches, omp_resolve_declare_variant): New
7898 functions.
7899
7900 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7901 literal.
7902 * config/rx/rx.c (rx_print_operand): Likewise.
7903 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7904 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7905 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7906 Likewise.
7907 * genemit.c (emit_c_code): Likewise.
7908 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7909
7910 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7911
7912 * symbols-summary.h (fast_function_summary<T *, V>::release,
7913 fast_call_summary<T *, V>::release): Free m_vector.
7914
7915 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7916
7917 * cgraphunit.c (symbol_table::process_new_functions): Call
7918 ipa_free_size_summary.
7919 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7920 (devirtualization_time_bonus): Update.
7921 (ipcp_propagate_stage): Update.
7922 * ipa-fnsummary.c (ipa_size_summaries): New.
7923 (ipa_fn_summary_alloc): Alloc size summary.
7924 (dump_ipa_call_summary): Update.
7925 (ipa_dump_fn_summary): Update.
7926 (analyze_function_body): Update.
7927 (compute_fn_summary): Likewise.
7928 (ipa_get_stack_frame_offset): New function.
7929 (inline_update_callee_summaries): Do not update frame offsets.
7930 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7931 remove call and function summary.
7932 (ipa_update_overall_fn_summary): Update.
7933 (inline_read_section): Update.
7934 (ipa_fn_summary_write): Update.
7935 (ipa_free_fn_summary): Do not remove summaries.
7936 (ipa_free_size_summary): New.
7937 (release summary pass): Also run at WPA.
7938 * ipa-fnsummary.h (ipa_size_summary): Declare.
7939 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7940 estimated_self_stack_size.
7941 (ipa_size_summary_t): New type.
7942 (ipa_size_summaries): Declare.
7943 (ipa_free_size_summary): Declare.
7944 (ipa_get_stack_frame_offset): Declare.
7945 * ipa-icf.c (sem_function::merge): Update.
7946 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7947 (estimate_growth): Update.
7948 (growth_likely_positive): Update.
7949 (clone_inlined_nodes): Update.
7950 (inline_call): Update.
7951 * ipa-inline.c (caller_growth_limits): Update.
7952 (edge_badness): Update.
7953 (recursive_inlining): Update.
7954 (inline_small_functions): Update.
7955 (inline_to_all_callers_1): Update.
7956 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7957
7958 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7959
7960 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7961 (uavg<mode>3_ceil): ... This.
7962 (altivec_vavgs<VI_char>): Rename to...
7963 (avg<mode>3_ceil): ... This.
7964 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7965 VAVGUW, VAVGSW): Adjust.
7966
7967 2019-10-24 Nathan Sidwell <nathan@acm.org>
7968
7969 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7970
7971 2019-10-24 Martin Liska <mliska@suse.cz>
7972
7973 * symbol-summary.h (gt_pch_nx): Mark all functions
7974 with gcc_unreachable as we do not expect to be called.
7975
7976 2019-10-24 Richard Biener <rguenther@suse.de>
7977
7978 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7979 chains try harder with operand swapping and instead of
7980 putting a shifted chain into the reduction operands put
7981 a repetition of the final reduction op there as if we'd
7982 reassociate the expression.
7983
7984 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7985
7986 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7987 statics_not_read and statics_not_written to statics_read and
7988 statics_written respectively.
7989 (no_module_statics): New static var.
7990 (ipa_reference_get_not_read_global): Rename to ...
7991 (ipa_reference_get_read_global): ... this.
7992 (ipa_reference_get_not_written_global): Rename to ...
7993 (ipa_reference_get_written_global): ... this.
7994 (dump_static_vars_set_to_file): Dump no_module_statics.
7995 (copy_static_var_set): Add for propagation parameter.
7996 (ipa_init): Initialize no_module_statics.
7997 (ipa_ref_opt_summary_t::duplicate): Update.
7998 (ipa_ref_opt_summary_t::remove): Update.
7999 (propagate): Update.
8000 (write_node_summary_p): Look correctly for bitmap differences.
8001 (ipa_reference_write_optimization_summary): Update.
8002 (ipa_reference_read_optimization_summary): Update.
8003 * ipa-reference.h
8004 (ipa_reference_get_not_read_global): Rename to ...
8005 (ipa_reference_get_read_global): ... this.
8006 (ipa_reference_get_not_written_global): Rename to ...
8007 (ipa_reference_get_written_global): ... this.
8008 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
8009 (call_may_clobber_ref_p_1): Update.
8010
8011 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8012
8013 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
8014 and add comment.
8015 (msp430_hard_regno_nregs_with_padding): Remove.
8016
8017 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8018
8019 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
8020 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
8021 shift amount is between 1 and 4.
8022 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
8023 is between 1 and 4.
8024
8025 2019-10-24 Richard Biener <rguenther@suse.de>
8026
8027 PR tree-optimization/92205
8028 * tree-vect-loop.c (vectorizable_reduction): Restrict
8029 search for alternate vectype_in to lane-reducing patterns
8030 we support.
8031
8032 2019-10-24 Richard Biener <rguenther@suse.de>
8033
8034 PR tree-optimization/92203
8035 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
8036 Skip eliminating conversion stmts inserted by insertion.
8037
8038 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
8039
8040 * config/s390/s390.c (s390_get_thread_pointer): Use
8041 gen_get_thread_pointer.
8042 (s390_expand_split_stack_prologue): Likewise.
8043 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
8044 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
8045 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
8046 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
8047 parameterized name.
8048
8049 2019-10-24 Richard Biener <rguenther@suse.de>
8050
8051 * tree-vect-slp.c (vect_analyze_slp): When reduction group
8052 SLP discovery fails try to handle the reduction as part
8053 of SLP reduction discovery.
8054
8055 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
8056
8057 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
8058 declaration.
8059 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
8060 attribute if it exists, rather than the insn size. If we use the
8061 insn size, adjust the size to remove the extra size that prefixed
8062 instructions take.
8063 (rs6000_adjust_insn_length): New function.
8064 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
8065 update the instruction sized if prefixed instructions are used.
8066 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
8067 (non_prefixed_length attribute): Delete.
8068 (num_insns attribute): New insn attribute to return the number of
8069 instructions.
8070 (max_prefixed_insns attribute): New insn attribute to return the
8071 maximum number of prefixed instructions in an insn.
8072 (length attribute): Do not adjust for prefix instructions here,
8073 punt to ADJUST_INSN_LENGTH.
8074 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
8075 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
8076 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
8077 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
8078 max_prefixed_insns and num_insns.
8079
8080 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
8081 (movtd_64bit_nodm): Reformat.
8082 (mov<mode>_32bit): Reformat.
8083 (mov<mode>_softfloat): Reformat.
8084 (FMOVE128_GPR splitter): Reformat.
8085 (DIFD splitter): Reformat.
8086 (TI2 splitter): Reformat.
8087 * config/rs6000/predicates.md (lwa_operand): If the bottom two
8088 bits of the offset for the memory address are non-zero, use PLWA
8089 if prefixed instructions are available.
8090
8091 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8092
8093 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
8094
8095 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8096
8097 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
8098 previous patch.
8099
8100 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8101
8102 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
8103 (cmp_symbol_files): New.
8104 (lto_output): Copy sections in file order.
8105 * lto-streamer.h (lto_file_decl_data): Add field order.
8106
8107 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8108
8109 * ipa-reference.h (ipa_reference_var_uid): Move offline.
8110 * ipa-reference.c (reference_vars_map_t): new type.
8111 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
8112 (ipa_reference_var_uid): Implement.
8113 (varpool_node_hooks): New static var.
8114 (varpool_removal_hook): New function.
8115 (is_improper): Do not check bitmap for id==-1
8116 (get_static_name): Update.
8117 (ipa_init): Initialize new datastructures.
8118 (analyze_function): Do not recompute ids.
8119 (propagate): Free reference_vars_to_consider.
8120 (stream_out_bitmap): Update.
8121 (ipa_reference_read_optimization_summary): Update.
8122
8123 2019-10-23 qing zhao <qing.zhao@oracle.com>
8124
8125 PR gcov-profile/91971
8126 * coverage.c (coverage_init): Mangle the full path of filename when
8127 filename is a absolute path.
8128
8129 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8130
8131 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
8132 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
8133 (msp430_has_hwmult): New.
8134 (msp430_output_labelref):
8135 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
8136 * config/msp430/msp430.md (mulhisi3): Likewise.
8137 (umulhisi3): Likewise.
8138 (mulsidi3): Likewise.
8139 (umulsidi3): Likewise.
8140
8141 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
8142
8143 PR ipa/92074
8144 * params.def (inline-heuristics-hint-percent): Set to 600.
8145
8146 2019-10-23 Richard Biener <rguenther@suse.de>
8147
8148 PR tree-optimization/65930
8149 * tree-vect-loop.c (check_reduction_path): Allow conversions
8150 that only change the sign.
8151 (vectorizable_reduction): Relax latch def stmts we handle further.
8152
8153 2019-10-23 Jakub Jelinek <jakub@redhat.com>
8154
8155 PR debug/90231
8156 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
8157 (remove_unused_ivs): Use it instead of get_computation_at. When
8158 choosing best candidate, only consider candidates where
8159 get_debug_computation_at actually returns non-NULL.
8160
8161 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
8162
8163 PR tree-optimization/92131
8164 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
8165 range would be symbolic, drop to varying for any explicit overflow
8166 in the constant part or if neither range is a singleton.
8167
8168 2019-10-23 Martin Liska <mliska@suse.cz>
8169
8170 PR middle-end/81669
8171 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
8172 Initialize m_data.
8173
8174 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
8175
8176 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
8177 int_mode_for_mode rather than mode_for_int_vector for scalars.
8178
8179 2019-10-23 Richard Biener <rguenther@suse.de>
8180
8181 PR tree-optimization/92179
8182 * tree-vect-stmts.c (vectorizable_shift): For shift args
8183 that are all the same remove type restriction in the SLP case.
8184 Adjust SLP code to handle converting of the shift arg to
8185 only apply in case the modes are different.
8186
8187 2019-10-23 Martin Liska <mliska@suse.cz>
8188
8189 PR ipa/91969
8190 * ipa-inline.c (recursive_inlining): Do not print
8191 when curr->count is not initialized.
8192
8193 2019-10-23 Richard Biener <rguenther@suse.de>
8194
8195 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
8196 op from scalars in case there's a constant operand in its
8197 definition.
8198
8199 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
8200
8201 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
8202 against out of range max skip or log values.
8203
8204 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
8205
8206 * cgraph.c (dump_graphviz): Change name to dump_name
8207
8208 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8209
8210 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
8211 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8212 subtraction from a carry operation.
8213
8214 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
8215
8216 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
8217
8218 2019-10-22 Richard Biener <rguenther@suse.de>
8219
8220 PR tree-optimization/92173
8221 * tree-vect-loop.c (vectorizable_reduction): If
8222 vect_transform_reduction cannot handle code-generation try without
8223 the single-def-use-cycle optimization. Pass optab_vector to
8224 optab_for_tree_code to get vector shifts as that's what we'd
8225 generate.
8226
8227 2019-10-22 Michael Matz <matz@suse.de>
8228
8229 PR middle-end/90796
8230 * gimple-loop-jam.c (any_access_function_variant_p): New function.
8231 (adjust_unroll_factor): Use it to constrain safety, new parameter.
8232 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
8233
8234 2019-10-22 Richard Biener <rguenther@suse.de>
8235
8236 PR tree-optimization/92173
8237 * tree-vect-loop.c (vectorizable_reduction): If
8238 vect_transform_reduction cannot handle code-generation try without
8239 the single-def-use-cycle optimization. Pass optab_vector to
8240 optab_for_tree_code to get vector shifts as that's what we'd
8241 generate.
8242
8243 2019-10-22 Martin Liska <mliska@suse.cz>
8244
8245 * diagnostic-format-json.cc (json_from_expanded_location):
8246 Use json::integer_number.
8247 * gcov.c (output_intermediate_json_line): Use new
8248 json::integer_number.
8249 (output_json_intermediate_file): Likewise.
8250 * json.cc (number::print): Move to ...
8251 (float_number::print): ... this.
8252 (integer_number::print): New.
8253 (test_writing_numbers): Move to ...
8254 (test_writing_float_numbers): ... this.
8255 (test_writing_integer_numbers): New.
8256 (json_cc_tests): Register test_writing_integer_numbers.
8257 * json.h (class value): Add forward declaration
8258 for float_number and integer_number.
8259 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
8260 (class number): Move to ...
8261 (class float_number): ... this.
8262 (class integer_number): New.
8263 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
8264 Use json::integer_number.
8265 (optrecord_json_writer::location_to_json): Likewise.
8266 (optrecord_json_writer::profile_count_to_json): Likewise.
8267 (optrecord_json_writer::pass_to_json): Likewise.
8268
8269 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
8270
8271 * tree-vect-slp.c (vect_slp_bb_region): Check whether
8272 autodetected_vector_size rather than vector_size is zero.
8273 * tree-vect-loop.c (vect_analyze_loop): Likewise.
8274 Set autodetected_vector_size immediately after calling
8275 vect_analyze_loop_2. Check for a fatal error before advancing
8276 next_size.
8277
8278 2019-10-21 Jason Merrill <jason@redhat.com>
8279
8280 * lock-and-run.sh: Check for process existence rather than timeout.
8281
8282 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8283
8284 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
8285 widening multiplication.
8286
8287 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
8288
8289 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
8290 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
8291 type attribute.
8292 (subsi3_carryin_shift): Separate into register and constant controlled
8293 alternatives. Use shift_amount_operand for operand 4. Set shift
8294 attribute and simplify type attribute.
8295 (subsi3_carryin_shift_alt): Likewise.
8296 (rsbsi3_carryin_shift): Likewise.
8297 (rsbsi3_carryin_shift_alt): Likewise.
8298 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
8299 and register controlled shifts into distinct alternatives.
8300 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
8301 (andsi_not_shiftsi_si_scc): Likewise.
8302 (arm_cmpsi_negshiftsi_si): Likewise.
8303 (not_shiftsi): Remove redundant M constraint from alternative 1.
8304 (not_shiftsi_compare0): Likewise.
8305 (arm_cmpsi_insn): Remove redundant alternative 2.
8306 (cmpsi_shift_swp): Likewise.
8307 (sub_shiftsi): Likewise.
8308 (sub_shiftsi_compare0_scratch): Likewise.
8309 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
8310 (thumb2_cmpsi_neg_shiftsi): Likewise.
8311
8312 2019-10-21 Richard Biener <rguenther@suse.de>
8313
8314 PR tree-optimization/92162
8315 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
8316 STMT_VINFO_REDUC_IDX in reduc_info.
8317 * tree-vect-stmts.c (vectorizable_condition): Likewise.
8318
8319 2019-10-21 Richard Biener <rguenther@suse.de>
8320
8321 * tree-vectorizer.h (_slp_tree::ops): New member.
8322 (SLP_TREE_SCALAR_OPS): New.
8323 (vect_get_slp_defs): Adjust prototype.
8324 * tree-vect-slp.c (vect_free_slp_tree): Release
8325 SLP_TREE_SCALAR_OPS.
8326 (vect_create_new_slp_node): Initialize it. New overload for
8327 initializing by an operands array.
8328 (_slp_oprnd_info::ops): New member.
8329 (vect_create_oprnd_info): Initialize it.
8330 (vect_free_oprnd_info): Release it.
8331 (vect_get_and_check_slp_defs): Populate the operands array.
8332 Do not swap operands in the IL when not necessary.
8333 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
8334 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
8335 swap operands in the operands array. Do not swap operands in
8336 the IL.
8337 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
8338 (vect_gather_slp_loads): Fix.
8339 (vect_detect_hybrid_slp_stmts): Likewise.
8340 (vect_slp_analyze_node_operations_1): Search for a internal
8341 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
8342 (vect_slp_analyze_node_operations): Skip ops-only stmts for
8343 the def-type push/pop dance.
8344 (vect_get_constant_vectors): Compute number_of_vectors here.
8345 Use SLP_TREE_SCALAR_OPS and simplify greatly.
8346 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
8347 (vect_get_slp_defs): Simplify greatly.
8348 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
8349 (vect_transform_reduction): Likewise.
8350 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
8351 (vectorizable_call): Likewise.
8352 (vectorizable_operation): Likewise.
8353 (vectorizable_load): Likewise.
8354 (vectorizable_condition): Likewise.
8355 (vectorizable_comparison): Likewise.
8356
8357 2019-10-21 Richard Biener <rguenther@suse.de>
8358
8359 PR tree-optimization/92161
8360 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
8361 for reductions.
8362
8363 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8364
8365 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
8366 (aarch64_rndr): New define_insn.
8367 (aarch64_rndrrs): Likewise.
8368 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
8369 (TARGET_RNG): Likewise.
8370 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
8371 argument.
8372 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
8373 Add fourth argument in prototype.
8374 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
8375 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
8376 (aarch64_init_rng_builtins): Define.
8377 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
8378 (aarch64_expand_rng_builtin): Define.
8379 (aarch64_general_expand_builtin): Use IGNORE argument, handle
8380 RNG builtins.
8381 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8382 __ARM_FEATURE_RNG when TARGET_RNG.
8383 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
8384
8385 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
8386
8387 * tree-vect-stmts (ensure_base_align): Only change alignment if new
8388 alignment is more restrictive.
8389
8390 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8391
8392 * tree-vectorizer.h (vec_info::vector_size): New member variable.
8393 (vect_update_max_nunits): Update comment.
8394 (current_vector_size): Delete.
8395 * tree-vect-stmts.c (current_vector_size): Likewise.
8396 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
8397 of current_vector_size.
8398 (get_mask_type_for_scalar_type): Likewise.
8399 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
8400 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
8401 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
8402 (vect_double_mask_nunits, vect_transform_loop): Likewise.
8403 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8404 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
8405
8406 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8407
8408 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
8409 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
8410 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
8411 accordingly.
8412
8413 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8414
8415 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
8416 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
8417 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
8418 call accordingly.
8419 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8420
8421 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8422
8423 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
8424 a loop_vec_info.
8425 (vect_set_loop_condition_masked): Update call accordingly.
8426
8427 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8428
8429 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
8430 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
8431 (simple_integer_narrowing): Update call accordingly.
8432 (vectorizable_conversion): Likewise.
8433
8434 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8435
8436 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
8437 (vectorizable_call): Update call accordingly.
8438
8439 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8440
8441 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
8442 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8443 (duplicate_and_interleave): Update call accordingly.
8444 * tree-vect-loop.c (vectorizable_reduction): Likewise.
8445
8446 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8447
8448 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
8449 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
8450 (vect_get_constant_vectors): Update call accordingly.
8451 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
8452
8453 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8454
8455 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
8456 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
8457 (vect_prologue_cost_for_slp_op): Update call accordingly.
8458 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
8459 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
8460 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
8461 (get_mask_type_for_scalar_type): Likewise.
8462 (vect_get_vector_types_for_stmt): Likewise.
8463 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8464 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8465 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
8466 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
8467 (vect_split_statement, vect_convert_input): Likewise.
8468 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
8469 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
8470 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
8471 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
8472 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
8473 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
8474 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
8475 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
8476 (vect_recog_mask_conversion_pattern): Likewise.
8477 (vect_add_conversion_to_pattern): Likewise.
8478 (vect_recog_gather_scatter_pattern): Likewise.
8479 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
8480 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
8481
8482 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8483
8484 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
8485 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
8486 (vect_check_load_store_mask): Update call accordingly.
8487 (vect_get_mask_type_for_stmt): Likewise.
8488 * tree-vect-patterns.c (check_bool_pattern): Likewise.
8489 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8490 (vect_convert_mask_for_vectype): Likewise.
8491
8492 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8493
8494 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8495 a vec_info.
8496 (vect_recog_dot_prod_pattern): Update call accordingly.
8497 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8498 (vect_recog_widen_sum_pattern): Likewise.
8499
8500 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8501
8502 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8503 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8504 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8505 accordingly.
8506
8507 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8508
8509 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8510 get_vectype_for_scalar_type_and_size instead of
8511 get_vectype_for_scalar_type.
8512
8513 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8514
8515 * common.opt (-fcommon): Fix description.
8516
8517 2019-10-20 Jakub Jelinek <jakub@redhat.com>
8518
8519 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8520 * config/i386/i386.c (ix86_pre_reload_split): New function.
8521 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8522 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8523 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8524 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8525 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8526 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8527 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8528 *<shift_insn><dwi>3_doubleword_mask,
8529 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8530 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8531 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8532 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8533 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8534 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8535 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8536 *avx2_<code>v8qiv8si2<mask_name>_2,
8537 *sse4_1_<code>v4qiv4si2<mask_name>_2,
8538 *sse4_1_<code>v4hiv4si2<mask_name>_2,
8539 *avx512f_<code>v8qiv8di2<mask_name>_2,
8540 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8541 *sse4_1_<code>v2hiv2di2<mask_name>_2,
8542 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8543 sse4_2_pcmpistr): Likewise.
8544
8545 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
8546
8547 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8548 now defaults to https.
8549
8550 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
8551
8552 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8553 skip non-zero array accesses.
8554
8555 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8556
8557 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8558 and return a boolean success value. Move the allocation and
8559 initialization of the bb_vec_info to...
8560 (vect_slp_bb_region): ...here. Update call accordingly.
8561 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8562 than in vect_slp_analyze_bb_1.
8563
8564 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8565
8566 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8567 when processing the given datarefs for the first time and
8568 check_datarefs subsequently.
8569 (vect_slp_bb_region): New function, split out of...
8570 (vect_slp_bb): ...here. Don't recompute the region bounds and
8571 dataref sets when retrying with a different vector size.
8572
8573 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8574 Uroš Bizjak <ubizjak@gmail.com>
8575
8576 PR target/92140
8577 * config/i386/predicates.md (int_nonimmediate_operand): New special
8578 predicate.
8579 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8580 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8581 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8582 define_insn_and_split patterns.
8583
8584 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8585
8586 * config/rs6000/rs6000.md: Delete out--of-date comment about
8587 special-casing integer loads.
8588
8589 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8590
8591 * escaped_string.h (escaped_string): New header.
8592 * tree.c (escaped_string): Remove escaped_string class.
8593
8594 2019-10-18 Martin Sebor <msebor@redhat.com>
8595
8596 PR tree-optimization/92157
8597 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8598 compute_string_length to return a negative result.
8599
8600 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8601
8602 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8603 (negvsi3, negvdi3): Delete.
8604 (negdi2_compare): Delete.
8605
8606 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8607
8608 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8609 operations.
8610 (subdi3_compare1): Delete pattern.
8611 (subvsi3_borrow): New insn pattern.
8612 (subvsi3_borrow_imm): Likewise.
8613
8614 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8615
8616 * config/arm/arm.md (subv<mode>4): Delete.
8617 (subvdi4): New expander pattern.
8618 (subvsi4): Likewise. Handle some immediate values.
8619 (subvsi3_intmin): New insn pattern.
8620 (subvsi3): Likewise.
8621 (subvsi3_imm1): Likewise.
8622 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8623 idioms.
8624
8625 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8626
8627 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8628 incoming operands. Early split the calculation into SImode
8629 operations.
8630 (usubvsi3_borrow): New insn pattern.
8631 (usubvsi3_borrow_imm): Likewise.
8632
8633 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8634
8635 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8636 (usubvsi4): New pattern. Allow some immediate values for inputs.
8637 (usubvdi4): New pattern.
8638
8639 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8640
8641 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8642 or second operand of the PLUS inside a DImode equality test to be
8643 sign-extend when selecting CC_Vmode.
8644 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8645 instructions.
8646 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8647 expand patterns.
8648 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8649 (addsi3_cin_vout_0): Likewise.
8650 (adddi3_compareV): Delete.
8651
8652 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8653
8654 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8655 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8656 to transform this back into the summation version when that leads
8657 to smaller code.
8658
8659 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8660
8661 * config/arm/arm.md (addv<mode>4): Delete.
8662 (addvsi4): New pattern. Handle immediate values that the architecture
8663 supports.
8664 (addvdi4): New pattern.
8665 (addsi3_compareV): Rename to ...
8666 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8667 and use COMPARE rather than NE.
8668 (addsi3_compareV_imm): New pattern.
8669 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8670 a signed-overflow check.
8671
8672 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8673
8674 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8675 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8676 CC_ADCmode.
8677 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8678 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8679 with overflow.
8680 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8681 expand patterns.
8682 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8683 (addsi3_cin_cout_imm_insn): Likewise.
8684 (adddi3_compareC): Delete insn.
8685 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8686
8687 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8688
8689 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8690 * (uaddv<mode>4): Delete expansion pattern.
8691 (uaddvsi4): New pattern.
8692 (uaddvdi4): Likewise.
8693 (addsi3_compareC): Delete pattern, change callers to use
8694 addsi3_compare_op1.
8695 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8696 reduce the number of alternatives and re-work type attribute handling.
8697 (addsi3_compare_op2): Clean up constraints to reduce the number of
8698 alternatives and re-work type attribute handling.
8699 (compare_addsi2_op0): Likewise.
8700 (compare_addsi2_op1): Likewise.
8701
8702 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8703
8704 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8705 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8706 for DImode operands.
8707 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8708 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8709 CC_NCVmode.
8710 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8711 (arm_cmpdi_unsigned): Delete.
8712
8713 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8714
8715 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8716 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8717 unchanged only if that will be cheaper.
8718 (arm_select_cc_mode): Recognize a swapped comparison that will
8719 be regenerated using RSBS or RSCS. Relax restriction on selecting
8720 CC_RSBmode.
8721 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8722 a constant.
8723 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8724 is CC_RSBmode.
8725 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8726 as CCmode.
8727 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8728 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8729
8730 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8731
8732 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8733 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8734 need these modes.
8735 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8736 of EQ, NE, LT, GE, LTU and GEU.
8737 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8738 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8739 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8740 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8741 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8742
8743 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8744
8745 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8746 operand 2.
8747 (cstoredi4): Similarly, but for operand 3.
8748 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8749 canonicalization of unsigned compares with a constant on Arm.
8750 Prefer using const+1 and adjusting the comparison over swapping the
8751 operands whenever the original constant was not valid.
8752 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8753 register here.
8754 (arm_validize_comparison): Do not force invalid DImode operands to
8755 registers here.
8756
8757 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8758
8759 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8760 return CC_Zmode if comparing against a constant where one word is
8761 zero.
8762 (arm_gen_compare_reg): Split DImode handling to ...
8763 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8764 against simple constants.
8765 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8766
8767 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8768
8769 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8770 (rsbsi3_carryin_shift_alt): Likewise.
8771
8772 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8773
8774 * config/arm/arm.md (negscc_borrow): New pattern.
8775 (mov_negscc): Don't split if the insn would match negscc_borrow.
8776 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8777 (thumb2_mov_negscc_strict_it): Likewise.
8778
8779 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8780
8781 * config/arm/arm.c (arm_insn_cost): New function.
8782 (TARGET_INSN_COST): Override default definition.
8783
8784 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8785
8786 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8787 borrow operations.
8788
8789 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8790
8791 * config/arm/arm.c (strip_carry_operation): New function.
8792 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8793 for SImode.
8794
8795 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8796
8797 * config/arm/predicates.md (arm_carry_operation): New special
8798 predicate.
8799 * config/arm/iterators.md (LTUGEU): Delete iterator.
8800 (cnb): Delete code attribute.
8801 (optab): Delete ltu and geu elements.
8802 * config/arm/arm.md (addsi3_carryin): Renamed from
8803 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8804 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8805 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8806 (addsi3_carryin_clobercc): Similarly.
8807 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8808 Thumb2 state.
8809
8810 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8811
8812 * config/arm/arm.md (arm_subdi3): Delete insn.
8813 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8814
8815 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8816
8817 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8818 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8819 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8820 return CC_RSBmode.
8821 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8822 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8823 expand.
8824 (subdi3): Rewrite to early-expand the sub-operations.
8825 (rsb_im_compare): New pattern.
8826 (negdi2): Delete.
8827 (negdi2_insn): Delete.
8828 (arm_negsi2): Correct type attribute to alu_imm.
8829 (negsi2_0compare): New insn pattern.
8830 (negsi2_carryin): New insn pattern.
8831
8832 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8833
8834 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8835 operand 2.
8836
8837 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8838
8839 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8840 to match canonical form.
8841
8842 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8843
8844 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8845 (extend<mode>di2): Likewise.
8846
8847 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8848
8849 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8850 * config/arm/arm.c (arm_decompose_di_binop): New function.
8851 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8852 If not generating Thumb-1 code, decompose the operation into 32-bit
8853 pieces.
8854 * add0si_carryin_<optab>: New pattern.
8855
8856 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8857
8858 * arm.md (adddi3): Only accept register operands.
8859 (arm_adddi3): Convert to simple insn with no split. Do not accept
8860 constants.
8861 (adddi_sesidi_di): Delete patern.
8862 (adddi_zesidi_di): Likewise.
8863 (uaddv<mode>4): Use LTU as condition for branch.
8864 (adddi3_compareV): Convert to simple insn with no split.
8865 (addsi3_compareV_upper): Delete pattern.
8866 (adddi3_compareC): Convert to simple insn with no split. Correct
8867 flags setting expression.
8868 (addsi3_compareC_upper): Delete pattern.
8869 (addsi3_compareC): Correct flags setting expression.
8870 (subdi3_compare1): Convert to simple insn with no split.
8871 (subsi3_carryin_compare): Delete pattern.
8872 (arm_subdi3): Convert to simple insn with no split.
8873 (subdi_zesidi): Delete pattern.
8874 (subdi_di_sesidi): Delete pattern.
8875 (subdi_zesidi_di): Delete pattern.
8876 (subdi_sesidi_di): Delete pattern.
8877 (subdi_zesidi_zesidi): Delete pattern.
8878 (negvdi3): Use s_register_operand.
8879 (negdi2_compare): Convert to simple insn with no split.
8880 (negdi2_insn): Likewise.
8881 (negsi2_carryin_compare): Delete pattern.
8882 (negdi_zero_extendsidi): Delete pattern.
8883 (arm_cmpdi_insn): Convert to simple insn with no split.
8884 (negdi2): Don't call gen_negdi2_neon.
8885 * config/arm/neon.md (adddi3_neon): Delete pattern.
8886 (subdi3_neon): Delete pattern.
8887 (negdi2_neon): Delete pattern.
8888 (splits for negdi2_neon): Delete splits.
8889
8890 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8891
8892 PR middle-end/92153
8893 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8894 than after it.
8895
8896 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8897
8898 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8899 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8900 new multilib variants and new mappings.
8901
8902 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8903
8904 PR target/86040
8905 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8906
8907 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8908 Richard Sandiford <richard.sandiford@arm.com>
8909
8910 PR target/86753
8911 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8912 and define hashmap traits for it.
8913 (loop_vec_info::scalar_cond_masked_set): New member.
8914 (vect_record_loop_mask): Adjust prototype.
8915 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8916 Implement method.
8917 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8918 vect_record_loop_mask.
8919 (vectorizable_live_operation): Likewise.
8920 (vect_record_loop_mask): New param scalar_mask. Add entry
8921 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8922 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8923 Pass it as last arg to vect_record_loop_mask.
8924 (vectorizable_call): Pass scalar_mask as last arg to
8925 vect_record_loop_mask.
8926 (vectorizable_store): Likewise.
8927 (vectorizable_load): Likewise.
8928 (vectorizable_condition): Check if another part of vectorized code
8929 applies loop_mask to condition or to it's inverse, and if yes,
8930 apply loop_mask to result of vector comparison.
8931
8932 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8933
8934 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8935
8936 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8937
8938 PR tree-optimization/92056
8939 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8940 before calling compute_builtin_object_size.
8941
8942 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8943
8944 PR target/65342
8945 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8946 (movdi_low_st): Delete.
8947 * config/rs6000/rs6000.c
8948 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8949 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8950 * config/rs6000/rs6000.md (movsi_low): Delete.
8951
8952 2019-10-17 Jason Merrill <jason@redhat.com>
8953
8954 * gimplify.h (get_initialized_tmp_var): Add default argument to
8955 post_p.
8956 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8957 NULL post_p argument.
8958 * targhooks (std_gimplify_va_arg_expr): Likewise.
8959
8960 2019-10-17 Richard Biener <rguenther@suse.de>
8961
8962 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8963 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8964 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8965 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8966 * tree-vect-loop.c (vect_is_simple_reduction): Set
8967 STMT_VINFO_REDUC_CODE.
8968 (vectorizable_reduction): Remove dead and redundant code, use
8969 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8970
8971 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8972
8973 Fix breakage introduced by r276985.
8974
8975 * config/avr/avr.c (avr_option_override): Remove set of
8976 PARAM_ALLOW_STORE_DATA_RACES.
8977 * common/config/avr/avr-common.c (avr_option_optimization_table)
8978 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8979
8980 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8981
8982 * config/i386/i386.h (processor_costs): Add clear_ratio.
8983 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8984 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8985 of 6 and move_ratio in all cost models.
8986
8987 2019-10-17 Richard Biener <rguenther@suse.de>
8988
8989 * tree-vect-loop.c (check_reduction_path): Compute reduction
8990 operation here.
8991 (vect_is_simple_reduction): Remove special-case of single-stmt
8992 reduction path detection.
8993
8994 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8995
8996 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8997
8998 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8999
9000 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
9001 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
9002 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
9003 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
9004 New combine patterns.
9005 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
9006 above.
9007 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
9008
9009 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
9010
9011 * tree-vrp.c (value_range_base::dump): Display +INF for both
9012 pointers and integers when appropriate.
9013
9014 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9015
9016 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
9017 when to use versioning threshold.
9018
9019 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9020
9021 * tree-vect-loop.c (determine_peel_for_niter): New function contained
9022 outlined code from ...
9023 (vect_analyze_loop_2): ... here.
9024
9025 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
9026
9027 * tree-vect-loop.c (vect_transform_loop): Move code from here...
9028 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
9029 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
9030
9031 2019-10-17 Richard Biener <rguenther@suse.de>
9032
9033 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
9034 (vect_is_simple_reduction): Move all validity checks ...
9035 (vectorizable_reduction): ... here. Compute whether we
9036 need a fold-left reduction here.
9037 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
9038 both overloads, check needs_fold_left_reduction_p directly.
9039 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
9040
9041 2019-10-17 Richard Biener <rguenther@suse.de>
9042
9043 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
9044 TARGET_MEM_REF creation.
9045
9046 2019-10-17 Richard Biener <rguenther@suse.de>
9047
9048 PR tree-optimization/92129
9049 * tree-vect-loop.c (vectorizable_reduction): Also fail
9050 on GIMPLE_SINGLE_RHS.
9051
9052 2019-10-17 Jakub Jelinek <jakub@redhat.com>
9053
9054 PR tree-optimization/92056
9055 * tree-object-size.c (cond_expr_object_size): Return early if then_
9056 processing resulted in unknown size.
9057
9058 PR tree-optimization/92115
9059 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
9060 temporary if it could trap.
9061
9062 2019-10-17 Richard Biener <rguenther@suse.de>
9063
9064 PR debug/91887
9065 * dwarf2out.c (gen_formal_parameter_die): Also try to match
9066 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
9067
9068 2019-10-16 Jakub Jelinek <jakub@redhat.com>
9069
9070 * tree-ssa-strlen.c (maybe_invalidate): Use
9071 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
9072
9073 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
9074 Jim Wilson <jimw@sifive.com>
9075
9076 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
9077 regs to SIBCALL_REGS.
9078 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
9079 passing regs to SIBCALL_REGS.
9080
9081 2019-10-16 Martin Sebor <msebor@redhat.com>
9082
9083 PR tree-optimization/83821
9084 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
9085 the length of a string when available.
9086 (handle_builtin_memset) Add argument.
9087 (handle_store, strlen_check_and_optimize_call): Same.
9088 (check_and_optimize_stmt): Same. Pass it to callees.
9089
9090 2019-10-16 Martin Sebor <msebor@redhat.com>
9091
9092 PR tree-optimization/91996
9093 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
9094 information.
9095 (compare_nonzero_chars): Add an overload.
9096 (count_nonzero_bytes): Add an argument. Call overload above.
9097 Handle non-constant lengths in some range.
9098 (handle_store): Add an argument.
9099 (check_and_optimize_stmt): Pass an argument to handle_store.
9100
9101 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
9102
9103 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
9104
9105 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9106
9107 * config/mips/mips.c (mips_expand_builtin_insn): Force the
9108 operands which correspond to the same input-output register to
9109 have the same pseudo assigned to them.
9110
9111 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
9112
9113 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
9114
9115 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
9116
9117 * config/aarch64/aarch64.c (aarch64_classify_symbol):
9118 Apply reasonable limit to symbol offsets.
9119
9120 2019-10-16 Richard Biener <rguenther@suse.de>
9121
9122 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
9123 (vect_is_simple_reduction): Delay checking to
9124 vectorizable_reduction and relax the checking.
9125 (vectorizable_reduction): Check we have a simple use. Check
9126 for bogus condition reductions.
9127 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
9128 are looking at the last stmt in a pattern sequence when
9129 filling in backedge PHI values.
9130
9131 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
9132 Jiufu Guo <guojiufu@linux.ibm.com>
9133
9134 PR target/70010
9135 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
9136 the callee explicitly disables some isa_flags the caller is using.
9137
9138 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9139
9140 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
9141
9142 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9143
9144 * genmodes.c (mode_data::order): New field.
9145 (blank_mode): Update accordingly.
9146 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
9147 (make_vector_modes): Likewise.
9148 (VECTOR_MODES): Update use accordingly.
9149 (cmp_modes): Sort by the new order field ahead of sorting by size.
9150 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
9151 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
9152 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
9153 (aarch64_classify_vector_mode): Handle the new partial modes.
9154 (aarch64_vl_bytes): New function.
9155 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
9156 when counting the number of registers in an SVE mode.
9157 (aarch64_class_max_nregs): Likewise.
9158 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
9159 in registers yet.
9160 (aarch64_classify_address): Treat partial vectors analogously
9161 to full vectors.
9162 (aarch64_print_address_internal): Consolidate the printing of
9163 MUL VL addresses, using aarch64_vl_bytes as the number of
9164 bytes represented by "VL".
9165 (aarch64_vector_mode_supported_p): Reject partial vector modes.
9166
9167 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9168
9169 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
9170 rather than known_lt when choosing frame layouts.
9171
9172 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9173
9174 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
9175 that all the adjustments add up to the full frame size.
9176 Use crtl->outgoing_args_size directly as the final adjustment
9177 where appropriate.
9178
9179 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9180
9181 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
9182 "frame" reference instead of always referring directly to
9183 "cfun->machine->frame".
9184
9185 2019-10-16 Richard Biener <rguenther@suse.de>
9186
9187 PR tree-optimization/92119
9188 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
9189 against missing bswap lhs.
9190
9191 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
9192
9193 PR middle-end/92033
9194 * poly-int.h (constant_lower_bound_with_limit): New function.
9195 (constant_upper_bound_with_limit): Likewise.
9196 * doc/poly-int.texi: Document them.
9197 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
9198 into the worst-case INTEGER_CST bounds.
9199
9200 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
9201
9202 PR ipa/91088
9203 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
9204 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
9205 * ipa-predicat.h (struct expr_eval_op): New struct.
9206 (expr_eval_ops): New typedef.
9207 (struct condition): Add type and param_ops fields, remove size field.
9208 (add_condition): Replace size parameter with type parameter, add
9209 param_ops parameter.
9210 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
9211 (predicate::add_clause): Add comparisons on type and param_ops.
9212 (dump_condition): Add debug dump for param_ops.
9213 (remap_after_inlining): Adjust call arguments to add_condition.
9214 (add_condition): Replace size parameter with type parameter, add
9215 param_ops parameter. Unshare constant value used in conditions.
9216 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
9217 parameter expressions using param_ops.
9218 (decompose_param_expr): New function.
9219 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
9220 to replace call to unmodified_parm_or_parm_agg_item.
9221 (set_switch_stmt_execution_predicate): Likewise.
9222 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
9223 with type.
9224 (inline_read_section): Read param_ops from summary stream.
9225 (ipa_fn_summary_write): Write param_ops to summary stream.
9226
9227 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9228
9229 PR rtl-optimization/92107
9230 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
9231 expression written.
9232
9233 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9234
9235 * config/darwin.c: Update description of fix and continue.
9236
9237 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
9238
9239 * config/darwin.c (darwin_binds_local_p): Update to call
9240 default_binds_local_p_3 () directly. amend comments.
9241
9242 2019-10-15 Richard Biener <rguenther@suse.de>
9243
9244 * lto-streamer-out.c (lto_variably_modified_type_p): New.
9245 (tree_is_indexable): Use it.
9246 * tree-streamer-out.c (pack_ts_type_common_value_fields):
9247 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
9248 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
9249
9250 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9251
9252 * config/msp430/msp430.md (zero_extendqipsi2): New.
9253 (zero_extendqisi2): Optimize case where src register and base dst
9254 register are the same.
9255 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
9256 (zero_extendpsisi2): Optimize r->m case.
9257 Add unnamed insn patterns to catch insns combine searches for when
9258 optimizing pointer manipulation.
9259
9260 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9261
9262 * config/msp430/msp430.md: Group zero_extend* insns together.
9263
9264 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9265
9266 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
9267 constraint.
9268 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
9269 POST_INC.
9270 (msp430_subreg): Likewise.
9271 (msp430_split_addsi): Likewise.
9272 (msp430_print_operand_addr): Likewise.
9273 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
9274 (USE_STORE_POST_INCREMENT): Define.
9275 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
9276 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
9277 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
9278 (msp430_general_dst_operand): New.
9279 (msp430_general_dst_nonv_operand): New.
9280 (msp430_nonsubreg_operand): Remove.
9281 (msp430_nonsubreg_dst_operand): New.
9282 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
9283 of defunct msp430_nonsubreg_operand.
9284 (msp430_nonsubregnonpostinc_or_imm_operand): New.
9285
9286 2019-10-15 Richard Biener <rguenther@suse.de>
9287
9288 PR tree-optimization/91929
9289 * tree-ssa-pre.c (pre_expr_d::loc): New member.
9290 (get_or_alloc_expr_for_name): Initialize it.
9291 (get_or_alloc_expr_for_constant): Likewise.
9292 (phi_translate_1): Copy it.
9293 (create_expression_by_pieces): Use the original location
9294 of the expression for the inserted stmt.
9295 (compute_avail): Record the location of the stmt for the
9296 expressions created.
9297
9298 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
9299
9300 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
9301 before using tree_to_uhwi.
9302
9303 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
9304
9305 * config/s390/s390.md: Run %a0:DI splitters only after reload.
9306
9307 2019-10-15 Richard Biener <rguenther@suse.de>
9308
9309 PR tree-optimization/92094
9310 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
9311 do not adjust the reduction definition def type.
9312 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
9313 defines the latch argument of the PHI.
9314
9315 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
9316
9317 PR target/92035
9318 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
9319 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
9320 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
9321 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
9322 _mm_maskz_roundscale_round_sd): New intrinsics.
9323 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
9324 __builtin_ia32_rndscales?_mask_round builtins instead of
9325 __builtin_ia32_rndscales?_round.
9326 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
9327 __builtin_ia32_rndscalesd_round): Remove.
9328 (__builtin_ia32_rndscaless_mask_round,
9329 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
9330 * config/i386/sse.md
9331 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
9332 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
9333 ... this, adjust and add subst atrributes to make it maskable.
9334
9335 2019-10-15 Richard Biener <rguenther@suse.de>
9336
9337 PR middle-end/92046
9338 * common.opt (fallow-store-data-races): New.
9339 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
9340 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
9341 * doc/invoke.texi (fallow-store-data-races): Document.
9342 (--param allow-store-data-races): Remove docs.
9343 * opts.c (default_options_table): Enable -fallow-store-data-races
9344 at -Ofast.
9345 (default_options_optimization): Do not enable --param
9346 allow-store-data-races at -Ofast.
9347 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
9348 instead of PARAM_ALLOW_STORE_DATA_RACES.
9349 * tree-ssa-loop-im.c (execute_sm): Likewise.
9350
9351 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9352
9353 PR tree-optimization/92085
9354 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
9355 instead of calling it unconditionally after
9356 delete_dead_or_redundant_assignment and fix indentation.
9357
9358 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9359
9360 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
9361 TARGET_VFP_DOUBLE.
9362 (*fmsub<SDF:mode>4): Likewise.
9363 *fnmsub<SDF:mode>4): Likewise.
9364 (*fnmadd<SDF:mode>4): Likewise.
9365
9366 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
9367
9368 * doc/tree-ssa.texi: Update renamed macro name.
9369
9370 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
9371
9372 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
9373 vector constants.
9374
9375 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
9376
9377 * config/darwin.c: Use unsigned ints for the picbase label
9378 counters, initialise the vars explicitly.
9379 (update_pic_label_number_if_needed): Move a variable declaration
9380 to where it's needed.
9381 (machopic_output_function_base_name): Use a more strict checking
9382 assert, and and unsigned int for the picbase label counter.
9383 (machopic_get_function_picbase): Likewise.
9384
9385 2019-10-14 Richard Biener <rguenther@suse.de>
9386
9387 PR middle-end/92046
9388 * dse.c (scan_insn): Use param max_active_local_stores.
9389 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
9390 based on optimization level.
9391 * loop-invariant.c (move_loop_invariants): Adjust
9392 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
9393 * opts.c (default_options_optimization): Do not adjust
9394 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
9395 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
9396
9397 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9398
9399 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
9400
9401 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
9402
9403 * config/arm/arm.c (arm_option_override): Don't override sched
9404 pressure algorithm.
9405
9406 2019-10-14 Richard Biener <rguenther@suse.de>
9407
9408 PR tree-optimization/92069
9409 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
9410 cycles do not set vect_nested_cycle on the latch definition.
9411
9412 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
9413
9414 * function-abi.h (expr_callee_abi): Declare.
9415 * function-abi.cc (expr_callee_abi): New function.
9416
9417 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
9418
9419 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
9420 into [1,MAX].
9421 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
9422 non-zero being represented as [1,MAX].
9423
9424 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
9425
9426 * tree-sra.c (dump_access): Add missing braces.
9427
9428 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9429
9430 * config/darwin.c (machopic_indirection_name): Rework the
9431 function to emit linker-visible symbols only for indirections
9432 in the data section. Clean up the code and update comments.
9433
9434 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9435
9436 * config/darwin.c (machopic_indirect_data_reference): Remove
9437 redundant code.
9438
9439 2019-10-13 Nathan Sidwell <nathan@acm.org>
9440
9441 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
9442
9443 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9444
9445 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
9446 c99_runtime.
9447
9448 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
9449
9450 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
9451 so non-virutal are before virutals.
9452 (output_function): Avoid body modifications.
9453
9454 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9455
9456 * config/pa/pa.c (pa_output_call): Load descriptor address to register
9457 %r22. Load function address before global pointer.
9458 (pa_attr_length_indirect_call): Adjust length of inline versions of
9459 $$dyncall.
9460 (pa_output_indirect_call): Remove fast inline version of $$dyncall
9461 before normal cases. Update inline $$dyncall sequences to preserve
9462 function descriptor address in register %r22.
9463 (TRAMPOLINE_CODE_SIZE): Adjust.
9464 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
9465 register %r22 contains trampoline address.
9466 (pa_trampoline_init): Adjust offsets.
9467 (pa_trampoline_adjust_address): Likewise.
9468 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
9469
9470 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9471
9472 PR target/67183
9473 * config/darwin.c (machopic_indirection): New field to flag
9474 non-lazy-symbol-pointers in the data section.
9475 (machopic_indirection_name): Compute if an indirection should
9476 appear in the data section.
9477 (machopic_output_data_section_indirection): New callback split
9478 from machopic_output_indirection.
9479 (machopic_output_stub_indirection): Likewise.
9480 (machopic_output_indirection): Retain the code for non-lazy
9481 symbol pointers in their regular section.
9482 (machopic_finish): Use the new callbacks to order the indirection
9483 output.
9484
9485 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9486
9487 * config/darwin-protos.h (machopic_finish): Delete.
9488 * config/darwin.c (machopic_finish): Make static.
9489
9490 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9491
9492 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9493 sections when building kernel extension code.
9494
9495 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
9496
9497 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9498 later standard."
9499
9500 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9501
9502 * config/pa/pa.c (pa_option_override): Remove trailing comma
9503 from warning.
9504
9505 2019-10-12 Jakub Jelinek <jakub@redhat.com>
9506
9507 PR middle-end/92063
9508 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9509 <case VEC_COND_EXPR>: Return false with *handled = false.
9510 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9511 recursing on the first operand.
9512 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9513 instead of tree_could_trap_p.
9514 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9515
9516 2019-10-11 Jim Wilson <jimw@sifive.com>
9517
9518 PR rtl-optimization/91860
9519 * combine.c (subst): If new_rtx is a constant, also check for
9520 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9521
9522 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
9523
9524 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9525 INTVAL when calling store_bit_field.
9526
9527 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
9528
9529 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9530 size.
9531
9532 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9533
9534 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9535 vectorizable_live_operation.
9536 (vectorizable_live_operation): Adjust parameters.
9537 * tree-vect-stmts.c (vect_init_vector,
9538 vect_gen_widened_results_half): Fix typo in function comment.
9539 (can_vectorize_live_stmts): Adjust function comment.
9540 Adjust parameters. Adjust call to vectorizable_live_operation.
9541 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9542 (vect_transform_stmt): Adjust function comment. Adjust call to
9543 can_vectorize_live_stmts.
9544 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9545
9546 2019-10-11 Richard Biener <rguenther@suse.de>
9547
9548 PR tree-optimization/90883
9549 PR tree-optimization/91091
9550 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9551 alias-sets both for recording VN table entries and continuing
9552 walking after translating through copies. Handle same-sized
9553 reads from SSA names by returning the plain SSA name.
9554 (eliminate_dom_walker::eliminate_stmt): Properly handle
9555 non-size precision stores in redundant store elimination.
9556
9557 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9558
9559 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9560 (ggc_collect): Dump later to not interfere with release_page dump.
9561 (ggc_trim): New function.
9562 * ggc-none.c (ggc_trim): New.
9563 * ggc.h (ggc_trim): Declare.
9564
9565 2019-10-11 Richard Biener <rguenther@suse.de>
9566
9567 PR tree-optimization/92066
9568 PR tree-optimization/92046
9569 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9570 Fix bogus cost model check.
9571
9572 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9573
9574 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9575 (LANG_HOOKS_DECLS): Add it.
9576 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9577 update comment for omp_is_optional_argument.
9578 * omp-general.c (omp_is_allocatable_or_ptr): New.
9579 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9580 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9581 Fortran's optional arguments and allocatable/pointer scalars
9582 with use_device_addr.
9583
9584 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9585
9586 PR target/77918
9587 * config/s390/2827.md: Add new opcodes.
9588 * config/s390/2964.md: Likewise.
9589 * config/s390/3906.md: Likewise.
9590 * config/s390/8561.md: Likewise.
9591 * config/s390/s390-builtins.def (s390_vfchesb): Use
9592 the new vec_cmpgev4sf_quiet_nocc.
9593 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9594 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9595 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9596 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9597 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9598 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9599 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9600 * config/s390/s390-modes.def (CCSFPS): New mode.
9601 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9602 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9603 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9604 (s390_expand_vec_compare): Use non-signaling patterns where
9605 necessary.
9606 (s390_reverse_condition): Support CCSFPS.
9607 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9608 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9609 (asm_fcmp_op): Likewise.
9610 (*smaxv2df3_vx): Use pattern for quiet comparison.
9611 (*sminv2df3_vx): Likewise.
9612 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9613 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9614 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9615 (vec_cmplt<mode>_quiet_nocc): New expander.
9616 (vec_cmpge<mode>_quiet_nocc): New pattern.
9617 (vec_cmple<mode>_quiet_nocc): New expander.
9618 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9619 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9620 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9621 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9622 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9623 (vec_cmpungt<mode>): New expander.
9624 (vec_cmpunge<mode>): Likewise.
9625 (vec_cmpuneq<mode>): Use quiet patterns.
9626 (vec_cmpltgt<mode>): Allow only on z14+.
9627 (vec_cmpordered<mode>): Use quiet patterns.
9628 (vec_cmpunordered<mode>): Likewise.
9629 (VEC_CMP_EXPAND): Add ungt and unge.
9630
9631 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9632
9633 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9634 parameter.
9635 * lto-streamer-out.c: Include tree-dfa.h.
9636 (output_cfg): Do not use cfun.
9637 (lto_prepare_function_for_streaming): New.
9638 (output_function): Do not push cfun; do not initialize loop optimizer.
9639 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9640 * passes.c (ipa_write_summaries): Use it.
9641 (ipa_write_optimization_summaries): Do not modify bodies.
9642 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9643 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9644 * tree-ssa-dse.c (pass_dse::execute): Update use of
9645 renumber_gimple_stmt_uids.
9646 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9647
9648 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9649
9650 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9651 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9652
9653 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9654
9655 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9656 macros.
9657 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9658 Also define DFP macros for these conditions.
9659 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9660 DEC128_SUBNORMAL_MIN): Do not define.
9661 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9662 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9663
9664 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9665 Sandra Loosemore <sandra@codesourcery.com>
9666
9667 PR middle-end/26241
9668 * doc/lto.texi (IPA): Reference to the IPA passes.
9669 * doc/passes.texi (Pass manager): Add node IPA passes and
9670 description for each IPA pass.
9671
9672 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9673
9674 * ipa-reference.c: Do not include splay-tree.h
9675 (reference_vars_to_consider): Turn to hash map.
9676 (get_static_name, ipa_init, analyze_function, propagate,
9677 stream_out_bitmap, ipa_reference_write_optimization_summary,
9678 ipa_reference_write_optimization_summary): Update.
9679
9680 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9681
9682 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9683
9684 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9685
9686 * config/darwin.c: Lookup Objective C metadata and force indirection
9687 for IVAR refs.
9688
9689 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9690
9691 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9692 addresses.
9693 (mem_operand_gpr): Add check for prefixed addresses.
9694 (mem_operand_ds_form): Add check for prefixed addresses.
9695 (rs6000_legitimate_offset_address_p): If we support prefixed
9696 addresses, check for a 34-bit offset instead of 16-bit.
9697 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9698 Do not allow load/store with update if the address is prefixed.
9699 (rs6000_mode_dependent_address): If we support prefixed
9700 addresses, check for a 34-bit offset instead of 16-bit.
9701
9702 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9703
9704 PR target/77918
9705 * config/s390/vector.md (vcond_comparison_operator): New
9706 predicate.
9707 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9708
9709 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9710
9711 PR 87488
9712 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9713 -D.
9714 * configure.ac (--with-documentation-root-url): New option.
9715 * configure: Regenerate.
9716 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9717 option URL, add it as a new string field of the diagnostic option.
9718 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9719 (print_option_information): If get_option_url is non-NULL, call
9720 it, and if the result is non-NULL, potentially emit an escape
9721 sequence to markup the option text with the resulting URL.
9722 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9723 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9724 example of JSON output.
9725 * opts-diagnostic.h (get_option_url): New decl.
9726 * opts.c (get_option_url): New function.
9727 * toplev.c (general_init): Initialize the get_option_url callback.
9728
9729 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9730
9731 PR 87488
9732 * common.opt (fdiagnostics-urls=): New option.
9733 (diagnostic-url.h): Add SourceInclude.
9734 (diagnostic_url_rule): New enum.
9735 * diagnostic-color.c: Include "diagnostic-url.h".
9736 (diagnostic_urls_enabled_p): New function.
9737 * diagnostic-url.h: New file.
9738 * diagnostic.c: Include "diagnostic-url.h".
9739 (diagnostic_urls_init): New function.
9740 * diagnostic.h (diagnostic_urls_init): New decl.
9741 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9742 -fdiagnostics-urls to the list.
9743 (-fdiagnostics-urls): New option.
9744 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9745 (driver::global_initializations): Call diagnostic_urls_init.
9746 * opts-global.c (init_options_once): Likewise.
9747 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9748 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9749 show_urls.
9750 (pp_begin_url): New function.
9751 (pp_end_url): New function.
9752 (selftest::test_urls): New selftest.
9753 (selftest::pretty_print_c_tests): Call it.
9754 * pretty-print.h (pretty_printer::show_urls): New field.
9755 (pp_begin_url): New decl.
9756 (pp_end_url): New decl.
9757
9758 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9759
9760 PR target/92022
9761 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9762
9763 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9764
9765 PR target/88630
9766 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9767 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9768 also for TARGET_FPU_SH4_300.
9769 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9770 TARGET_SH4_300.
9771 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9772 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9773 (*negsf2_i): Split into ...
9774 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9775 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9776 (**abssf2_i): Split into ...
9777 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9778 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9779 (*negdf2_i): Split into ...
9780 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9781 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9782 (**abssf2_i): Split into ...
9783 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9784
9785 2019-10-10 Richard Biener <rguenther@suse.de>
9786
9787 PR middle-end/92046
9788 * opts.c (finish_options): Do not influence global --params
9789 from options that are adjustable per function.
9790 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9791 Apply --param adjustment based on active cost-model.
9792 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9793 further store-sinking when vectorization or if-conversion
9794 are not enabled.
9795
9796 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9797
9798 PR middle-end/92037
9799 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9800 rather than ggc_alloc_cleared to alloc symbol table.
9801 * toplev.c (general_init): Likewise.
9802 * cgraph.h (symbol_table): Explicitly construct every field.
9803
9804 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9805
9806 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9807 (PF_Z15): ... this.
9808 * config.gcc: Add z15 as option for --with-arch and --with-tune
9809 configure switches.
9810 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9811 error reporting for unsupported builtins.
9812 * config/s390/s390-opts.h (enum processor_type): Rename
9813 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9814 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9815 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9816 Likewise.
9817 * config/s390/s390-builtins.def: Likewise.
9818 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9819 (s390_expand_builtin): Add missing check for unsupported builtins.
9820 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9821 (s390_rtx_costs): Likewise.
9822 (s390_get_sched_attrmask): Rename arch13 to z15.
9823 (s390_get_unit_mask): Likewise.
9824 (s390_is_fpd): Likewise.
9825 (s390_is_fxd): Likewise.
9826 * config/s390/s390.h (enum processor_flags): Likewise.
9827 * config/s390/s390.md: Likewise.
9828 * config/s390/vector.md: Likewise.
9829 * config/s390/vx-builtins.md: Likewise.
9830 * config/s390/s390.opt: Add z15 to processor_type value.
9831
9832 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9833
9834 PR target/91035
9835 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9836 prototype.
9837 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9838 ("split_stack_data", "split_stack_call")
9839 ("split_stack_call_<mode>", "split_stack_cond_call")
9840 ("split_stack_cond_call_<mode>"): Remove.
9841 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9842 insn definition.
9843 * config/s390/s390.c (s390_output_split_stack_data): New function.
9844 (s390_expand_split_stack_prologue): Use the merged expander.
9845
9846 2019-10-09 Martin Sebor <msebor@redhat.com>
9847
9848 PR tree-optimization/90879
9849 * builtins.c (check_access): Avoid using maxbound when null.
9850 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9851 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9852 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9853 conditional.
9854 (get_range_strlen): Overwrite initial maxbound when non-null.
9855 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9856 changes.
9857 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9858 (used_only_for_zero_equality): New function.
9859 (handle_builtin_memcmp): Call it.
9860 (determine_min_objsize): Return an integer instead of tree.
9861 (get_len_or_size, strxcmp_eqz_result): New functions.
9862 (maybe_warn_pointless_strcmp): New function.
9863 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9864 between a longer string and a smaller array.
9865 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9866
9867 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9868
9869 * config/darwin.c (darwin_override_options): Make the check for
9870 Objective-C ABI version more specific for 64bit code.
9871
9872 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9873
9874 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9875 indicate that the new symbol is an indirection.
9876 (machopic_indirect_call_target): Likewise.
9877 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9878 (MACHO_SYMBOL_INDIRECTION_P): New.
9879 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9880
9881 2019-10-08 Jason Merrill <jason@redhat.com>
9882
9883 * doc/invoke.texi: Document -fconcepts-ts.
9884
9885 2019-10-09 Richard Biener <rguenther@suse.de>
9886
9887 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9888 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9889
9890 2019-10-08 Richard Biener <rguenther@suse.de>
9891
9892 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9893 (_stmt_vec_info::force_single_cycle): Likewise.
9894 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9895 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9896 * tree-vect-loop.c (vectorizable_reduction): Set
9897 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9898 (vect_transform_reduction): Use them to remove redundant code.
9899 (vect_transform_cycle_phi): Likewise.
9900
9901 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9902
9903 PR tree-optimization/90836
9904 * match.pd (popcount): New pattern.
9905
9906 2019-10-08 Martin Sebor <msebor@redhat.com>
9907
9908 PR middle-end/92026
9909 PR middle-end/92014
9910 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9911 again once nbytes has been set. Set the access size when not yet set.
9912
9913 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9914
9915 * config/darwin.c (machopic_select_section): Remove dead code for
9916 old Objective-C section selection method, replace with unreachable.
9917
9918 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9919
9920 * config/darwin.c (machopic_indirect_data_reference): Check for
9921 required indirections before making direct access to defined
9922 values.
9923 (machopic_output_indirection): Place the indirected pointes for
9924 required indirections into the non-lazy symbol pointers section.
9925 (darwin_encode_section_info):
9926 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9927 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9928
9929 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9930
9931 PR target/91994
9932 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9933 instead of ALL_SSE_REG to check if function call preserves some
9934 256-bit SSE registers.
9935
9936 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9937
9938 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9939 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9940 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9941
9942 2019-10-08 Richard Biener <rguenther@suse.de>
9943
9944 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9945 (_stmt_vec_info::is_reduc_info): Add.
9946 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9947 (vectorizable_condition): Remove.
9948 (vectorizable_shift): Likewise.
9949 (vectorizable_reduction): Adjust.
9950 (info_for_reduction): New.
9951 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9952 (vect_analyze_scalar_cycles_1): ... here.
9953 (vect_analyze_loop_operations): Adjust.
9954 (needs_fold_left_reduction_p): Simplify for single caller.
9955 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9956 for nested cycles not part of double reductions.
9957 (vect_model_reduction_cost): Pass in the reduction type.
9958 (info_for_reduction): New function.
9959 (vect_create_epilog_for_reduction): Use it, access reduction
9960 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9961 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9962 (vectorize_fold_left_reduction): Remove pointless assert.
9963 (vectorizable_reduction): Analyze the full reduction when
9964 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9965 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9966 stmt code-generation to vectorizable_* in most cases. Verify
9967 code-generation only for cases handled by
9968 vect_transform_reductuon.
9969 (vect_transform_reduction): Use info_for_reduction to get at
9970 reduction meta. Simplify.
9971 (vect_transform_cycle_phi): Likewise.
9972 (vectorizable_live_operation): Likewise.
9973 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9974 at the PHI node for STMT_VINFO_REDUC_TYPE.
9975 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9976 longer necessary code.
9977 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9978 (vectorizable_condition): Likewise. Get at reduction related
9979 info via info_for_reduction.
9980 (vect_analyze_stmt): Adjust.
9981 (vect_transform_stmt): Likewise.
9982 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9983 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9984
9985 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9986
9987 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9988 -fno-fp-int-builtin-inexact default for C2X.
9989
9990 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9991 Richard Biener <rguenther@suse.de>
9992
9993 PR tree-optimization/91532
9994 * tree-if-conv.c: Include tree-ssa-dse.h.
9995 (ifcvt_local_dce): Change param from bb to loop,
9996 and call dse_classify_store.
9997 (tree_if_conversion): Pass loop instead of loop->header as arg
9998 to ifcvt_local_dce.
9999 * tree-ssa-dse.c: Include tree-ssa-dse.h.
10000 (delete_dead_or_redundant_assignment): Remove static qualifier from
10001 declaration, and add prototype in tree-ssa-dse.h.
10002 (dse_store_status): Move to tree-ssa-dse.h.
10003 (dse_classify_store): Remove static qualifier and add new tree param
10004 stop_at_vuse, and add prototype in tree-ssa-dse.h.
10005 * tree-ssa-dse.h: New header.
10006
10007 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
10008
10009 * config/darwin.c (machopic_output_indirection): Don't put
10010 hidden symbol indirections into the .data section, use the
10011 non-lazy symbol pointers section as normal.
10012 (darwin_encode_section_info): Record if a symbol is hidden.
10013 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
10014 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
10015
10016 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
10017
10018 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
10019 predicates instead of accessing bits directly.
10020 (machopic_indirect_call_target): Likewise.
10021 (machopic_output_indirection): Likewise.
10022 (darwin_encode_section_info): Improve description. Use renamed
10023 symbol flags. Use predicate macros for variables and functions.
10024 * config/darwin.h:
10025 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
10026 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
10027 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
10028 (MACHO_SYMBOL_VARIABLE_P): New.
10029 (MACHO_SYMBOL_DEFINED_P):New.
10030 (MACHO_SYMBOL_STATIC_P): New.
10031 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
10032 (SYMBOL_FLAG_SUBT_DEP): New.
10033 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
10034
10035 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10036
10037 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
10038 (msp430_expand_epilogue): Likewise.
10039 * config/msp430/predicates.md: Likewise.
10040 * config/msp430/msp430.md: Likewise.
10041 Replace blocks of 8 spaces with tabs.
10042
10043 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10044
10045 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
10046 * config/msp430/msp430.c (msp430_split_addsi): New.
10047 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
10048 a block of C code for splitting addsi.
10049
10050 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
10051
10052 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
10053 ix86_expand_rounddf_32): Reorder functions.
10054 * config/i386/i386-protos.h: Update.
10055
10056 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10057
10058 * config.in: Regenerate.
10059 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
10060 Add new "Yx" constraint.
10061 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
10062 function.
10063 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
10064 prototype.
10065 * config/msp430/msp430.c (msp430_option_override): Allow the lower
10066 code/data region to be selected in the small memory model.
10067 (msp430_section_attr): Don't warn if the "section" and "lower"
10068 attributes are used together.
10069 (msp430_handle_generic_attribute): Likewise.
10070 (msp430_var_in_low_mem): New function.
10071 (TARGET_ENCODE_SECTION_INFO): Define.
10072 (msp430_encode_section_info): New function.
10073 (gen_prefix): Return early in the small memory model.
10074 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
10075 ".lower" prefix if -m{code,data}-region=lower have been passed.
10076 (msp430_output_aligned_decl_common): Emit common symbols when
10077 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
10078 set.
10079 (TARGET_ASM_FILE_END): Define.
10080 (msp430_file_end): New function.
10081 (msp430_do_not_relax_short_jumps): Allow relaxation when
10082 function will be in the lower region.
10083 (msp430_op_not_in_high_mem): New function.
10084 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
10085 the 'X' operand selector.
10086 Clarify comment for 'x' operand selector.
10087 * config/msp430/msp430.h (LINK_SPEC): Propagate
10088 -m{code,data}-region to the linker via spec function
10089 msp430_propagate_region_opt.
10090 (msp430_propagate_region_opt): New prototype.
10091 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
10092 (SYMBOL_FLAG_LOW_MEM): Define.
10093 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
10094 selector.
10095 (zero_extendqihi2): Fix operand number used by "%X" selector.
10096 (zero_extendqisi2): Likewise.
10097 (zero_extendhisi2): Likewise.
10098 (movqi): Use "Yx" constraint in place of "%X" operand selector.
10099 (movhi): Likewise.
10100 (addqi3): Likewise.
10101 (addhi3): Likewise.
10102 (addsi3): Likewise.
10103 (addhi3_cy): Likewise.
10104 (addchi4_cy): Likewise.
10105 (subqi3): Likewise.
10106 (subhi3): Likewise.
10107 (subsi3): Likewise.
10108 (bic<mode>3): Likewise.
10109 (and<mode>3): Likewise.
10110 (ior<mode>3): Likewise.
10111 (xor<mode>3): Likewise.
10112 (slli_1): Add missing "%X" operand selector.
10113 (slll_1): Likewise.
10114 (slll_2): Likewise.
10115 (srai_1): Likewise.
10116 (sral_1): Likewise.
10117 (sral_2): Likewise.
10118 (srli_1): Likewise.
10119 (srll_1): Likewise.
10120 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
10121 selector.
10122 (cbranchhi4_real): Likewise.
10123 (cbranchqi4_reversed): Likewise.
10124 (cbranchhi4_reversed): Likewise.
10125 (*bitbranch<mode>4): Likewise.
10126 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
10127 * config/msp430/msp430.opt (mcode-region=): Set default to
10128 MSP430_REGION_LOWER. Improve docstring.
10129 (mdata-region=): Likewise.
10130 (muse-lower-region-prefix): New option.
10131 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
10132 mdata-region=none multilib.
10133 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
10134 mdata-region=none multilib.
10135 MULTILIB_EXCEPTIONS: Remove.
10136 MULTILIB_REQUIRED: Define.
10137 * configure: Regenerate.
10138 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
10139 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
10140 * doc/extend.texi: Clarify comment for {upper,lower,either}
10141 function attributes.
10142 Add separate description for "lower" variable attribute.
10143
10144 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10145
10146 PR target/77918
10147 * optabs-tree.c (vcond_icode_p): New function.
10148 (vcond_eq_icode_p): Likewise.
10149 (expand_vec_cond_expr_p): Use vcond_icode_p and
10150 vcond_eq_icode_p.
10151 * optabs.c (can_vcond_compare_p): New function.
10152 * optabs.h (can_vcond_compare_p): Likewise.
10153
10154 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
10155
10156 PR target/77918
10157 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
10158 caller passes a non-trapping condition.
10159 (is_gimple_condexpr): Allow trapping conditions.
10160 (is_gimple_condexpr_1): New helper function.
10161 (is_gimple_condexpr_for_cond): New function, acts like old
10162 is_gimple_condexpr.
10163 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
10164 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
10165 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
10166 * gimplify.c (gimplify_cond_expr): Use
10167 is_gimple_condexpr_for_cond.
10168 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
10169 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
10170 VEC_COND_EXPR.
10171 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
10172 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
10173 is_gimple_condexpr_for_cond, remove pointless tmp check
10174 (forward_propagate_into_cond): Remove pointless tmp check.
10175
10176 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10177
10178 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
10179 match that of other gsi_next_* functions. Adjust the comment.
10180 (gsi_start_nonvirtual_phis): New function.
10181 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
10182 gsi_next_nonvirtual_phi accordingly. (No functional change.)
10183
10184 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
10185
10186 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
10187 setjmp situation here. Fix a verb's ending: "the exact variables or
10188 elements for which there are warnings depends" -> "... depend".
10189
10190 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10191
10192 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
10193
10194 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10195
10196 * ipa-prop.c (ipa_vr::nonzero_p): New.
10197 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
10198 non-zero range.
10199 * ipa-prop.h (class ipa_vr): Add nonzero_p.
10200 * tree-vrp.c (range_has_numeric_bounds_p): New.
10201 (range_int_cst_p): Use range_has_numeric_bounds_p.
10202 (get_range_op_handler): New.
10203 (supported_types_p): New.
10204 (defined_ranges_p): New.
10205 (drop_undefines_to_varying): New.
10206 (range_fold_binary_symbolics_p): New.
10207 (range_fold_unary_symbolics_p): New.
10208 (range_fold_unary_expr): Extract out into above functions.
10209 (range_fold_binary_expr): Same.
10210 (value_range_base::normalize_addresses): New.
10211 (value_range_base::normalize_symbolics): Normalize addresses.
10212 * tree-vrp.h (class value_range_base): Add normalize_addresses.
10213
10214 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
10215
10216 * tree-vrp.c (value_range_base::singleton_p): Use
10217 value_range_base::num_pairs instead of vrp_val_is* to check
10218 if a range has one sub-range.
10219
10220 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10221
10222 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
10223 DEF is not a true earlyclobber but is tied to a specific input
10224 operand, and so is effectively earlyclobber wrt inputs that have
10225 different values.
10226 (make_early_clobber_and_input_conflicts): Pass this case to the above.
10227
10228 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10229
10230 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
10231 (pod_mode): Mark operators likewise.
10232 (scalar_int_mode): Mark non-default constructors and
10233 operators with CONSTEXPR.
10234 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
10235 (fixed_size_mode): Likewise.
10236
10237 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
10238
10239 PR target/91994
10240 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
10241 and wrap the unspec_volatile in a parallel.
10242 (*avx_vzeroupper): New define_insn. Use a match_parallel around
10243 the unspec_volatile.
10244 * config/i386/predicates.md (vzeroupper_pattern): Expect the
10245 unspec_volatile to be wrapped in a parallel.
10246 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
10247 (ix86_add_reg_usage_to_vzerouppers): New functions.
10248 (rest_of_handle_insert_vzeroupper): Use them to add register
10249 usage information to the vzeroupper instructions.
10250
10251 2019-10-07 Richard Biener <rguenther@suse.de>
10252
10253 PR tree-optimization/91975
10254 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
10255 handle invariants.
10256
10257 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
10258
10259 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
10260 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
10261
10262 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
10263
10264 * config/darwin.c (darwin_override_options): Adjust objective-c
10265 ABI version error messages to avoid punctuation and contracted
10266 negations.
10267
10268 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
10269
10270 * ipa-inline.c: Fix type; compute size rather than self_size
10271 for size of caller function.
10272
10273 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
10274
10275 PR target/59888
10276 * config/darwin.c (darwin_rodata_section): Add relocation flag,
10277 choose const_data section for constants with relocations.
10278 (machopic_select_section): Pass relocation flag to
10279 darwin_rodata_section ().
10280
10281 2019-10-05 Jakub Jelinek <jakub@redhat.com>
10282
10283 PR tree-optimization/91734
10284 * generic-match-head.c: Include fold-const-call.h.
10285 * match.pd (sqrt(x) cmp c): Check the boundary value and
10286 in case inexact computation of c*c affects comparison of the boundary,
10287 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
10288 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
10289 for -frounding-math. For c2, try the next smaller or larger floating
10290 point constant depending on comparison code and if it has the same
10291 sqrt as c2, use it instead of c2.
10292
10293 2019-10-04 Martin Sebor <msebor@redhat.com>
10294
10295 PR middle-end/91977
10296 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
10297 MEM_REF right operand. Avoid failing for MEM_REF assignments from
10298 uninitialized objects.
10299
10300 2019-10-04 Martin Sebor <msebor@redhat.com>
10301
10302 * builtins.c (compute_objsize): Add an argument.
10303 * tree-object-size.c (addr_object_size): Same.
10304 (compute_builtin_object_size): Same.
10305 * tree-object-size.h (compute_builtin_object): Same.
10306
10307 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
10308
10309 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
10310
10311 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
10312
10313 * match.pd (sinh (x) / cosh (x)): New simplification rule.
10314
10315 2019-10-04 Martin Jambor <mjambor@suse.cz>
10316
10317 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
10318 fntype when switching to calling memcpy instead of memset.
10319
10320 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10321
10322 * hash-table.h (hash_table::empty_slow): Don't assign
10323 size_t values to int variables.
10324
10325 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10326
10327 * expr.c (convert_mode_scalar): Remove shadowing local var.
10328 (emit_block_move): Rename local vars.
10329 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
10330 (emit_push_insn): Rename local vars.
10331 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
10332 shadowing local vars.
10333 (store_constructor): Remove shadowing local vars. Rename local var.
10334 (store_field, expand_cond_expr_using_cmove,
10335 expand_expr_real_2): Remove shadowing local vars.
10336 (expand_expr_real_1,
10337 do_store_flag): Remove shadowing local vars. Rename local vars.
10338
10339 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10340
10341 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
10342
10343 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10344
10345 * genmatch.c (commutate): Rename local var.
10346 (lower_cond): Reuse local var.
10347 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
10348 dt_operand::gen, dt_operand::gen_gimple_expr,
10349 dt_simplify::gen): Add a param. Rename generated vars.
10350 (decision_tree::insert_operand,
10351 (capture_info::walk_match, capture_info::walk_result,
10352 capture_info::walk_c_expr): Rename local vars.
10353 (expr::gen_transform): Rename generated vars.
10354 Use snprintf. Rename local vars.
10355 (capture::gen_transform, dt_operand::get_name,
10356 dt_operand::gen_opname): Rename generated vars.
10357 (write_predicate): Adjust call to gen_kids.
10358 (parser::get_internal_capture_id): Rename generated vars.
10359 (parser::parse_expr): Rename local vars.
10360 (parser::parse_if): Remove local var.
10361 (parser::parse_pattern, add_operator): Rename local vars.
10362
10363 2019-10-04 Joseph Myers <joseph@codesourcery.com>
10364
10365 * builtins.def (DEF_C2X_BUILTIN): New macro.
10366 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
10367 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
10368 (strndup): Use DEF_C2X_BUILTIN.
10369 * coretypes.h (enum function_class): Add function_c2x_misc.
10370
10371 2019-10-04 Maya Rashish <coypu@sdf.org>
10372
10373 * ira-color.c (update_costs_from_allocno): Call
10374 ira_init_register_move_cost_if_necessary.
10375
10376 2019-10-04 Jeff Law <law@redhat.com>
10377
10378 * config/h8300/h8300.md (cpymemsi): Disable.
10379 (movmd, movmd_internal_<mode>, movstr, movsd):
10380 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
10381 (movmd splitter, movsd splitter): Likewise.
10382
10383 * range-op.cc (range_tests): Avoid two tests when ints and
10384 shorts are the same size.
10385
10386 2019-10-04 Richard Biener <rguenther@suse.de>
10387
10388 PR lto/91968
10389 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
10390 BLOCK_VARS.
10391
10392 2019-10-04 Richard Biener <rguenther@suse.de>
10393
10394 PR tree-optimization/91982
10395 * tree-vect-loop.c (vectorizable_live_operation): Also guard
10396 against EXTRACT_LAST_REDUCTION.
10397 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
10398
10399 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
10400
10401 * range-op.o (value_range_from_overflowed_bounds): Rename from
10402 adjust_overflow_bound.
10403 (value_range_with_overflow): Rename from
10404 create_range_with_overflow.
10405 (create_possibly_reversed_range): Adjusted for above renames.
10406 (operator_*::wi_fold): Same.
10407 (cross_product_operator::wi_cross_productor): Same.
10408
10409 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10410
10411 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
10412 -Wshadow=compatible-local): Fix description.
10413 Add an example where -Wshadow=compatible-local does not
10414 warn.
10415
10416 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
10417
10418 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
10419
10420 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
10421 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
10422
10423 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10424
10425 * expr.c (emit_block_move_hints): Slightly cleaner fix to
10426 can_move_by_pieces issue.
10427
10428 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
10429
10430 PR target/87243
10431 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
10432 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
10433 is available and the user has not set one on the command line.
10434
10435 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10436
10437 PR target/91769
10438 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
10439 instead of REGNO equality check on addr.reg.
10440
10441 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
10442
10443 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
10444 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
10445 * doc/invoke.texi (inline-heuristics-hint-percent,
10446 inline-heuristics-hint-percent-O2): Document.
10447 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
10448 hint attribute.
10449 (can_inline_edge_by_limits_p): Use it.
10450
10451 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
10452
10453 * config/arm/arm.c (arm_print_value): Use real_to_decimal
10454 to print CONST_DOUBLEs.
10455
10456 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
10457
10458 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
10459 * ipa-prop.c (ipcp_free_transformation_sum): New function.
10460 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
10461
10462 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
10463
10464 * Makefile.in (OBJS): Add range.o and range-op.o.
10465 Remove wide-int-range.o.
10466 * function-tests.c (test_ranges): New.
10467 (function_tests_c_tests): Call test_ranges.
10468 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
10469 range_fold_unary_expr instead of extract_range_from_unary_expr.
10470 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10471 * range-op.cc: New file.
10472 * range-op.h: New file.
10473 * range.cc: New file.
10474 * range.h: New file.
10475 * selftest.h (range_tests): New prototype.
10476 * ssa.h: Include range.h.
10477 * tree-vrp.c (value_range_base::value_range_base): New
10478 constructors.
10479 (value_range_base::singleton_p): Do not call
10480 ranges_from_anti_range until sure we will need to.
10481 (value_range_base::type): Rename gcc_assert to
10482 gcc_checking_assert.
10483 (vrp_val_is_max): New argument.
10484 (vrp_val_is_min): Same.
10485 (wide_int_range_set_zero_nonzero_bits): Move from
10486 wide-int-range.cc.
10487 (extract_range_into_wide_ints): Remove.
10488 (extract_range_from_multiplicative_op): Remove.
10489 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10490 from extract_range_from_binary_expr.
10491 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10492 from extract_range_from_binary_expr.
10493 (extract_range_from_binary_expr): Remove.
10494 (normalize_for_range_ops): New.
10495 (range_fold_binary_expr): New.
10496 (range_fold_unary_expr): New.
10497 (value_range_base::num_pairs): New.
10498 (value_range_base::lower_bound): New.
10499 (value_range_base::upper_bound): New.
10500 (value_range_base::upper_bound): New.
10501 (value_range_base::contains_p): New.
10502 (value_range_base::invert): New.
10503 (value_range_base::union_): New.
10504 (value_range_base::intersect): New.
10505 (range_compatible_p): New.
10506 (value_range_base::operator==): New.
10507 (determine_value_range_1): Call range_fold_*expr instead of
10508 extract_range_from_*expr.
10509 * tree-vrp.h (class value_range_base): Add new constructors.
10510 Add methods for union_, intersect, operator==, contains_p,
10511 num_pairs, lower_bound, upper_bound, invert.
10512 (vrp_val_is_min): Add handle_pointers argument.
10513 (vrp_val_is_max): Same.
10514 (extract_range_from_unary_expr): Remove.
10515 (extract_range_from_binary_expr): Remove.
10516 (range_fold_unary_expr): New.
10517 (range_fold_binary_expr): New.
10518 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10519 range_fold_binary_expr instead of extract_range_from_binary_expr.
10520 (vr_values::extract_range_basic): Same.
10521 (vr_values::extract_range_from_unary_expr): Call
10522 range_fold_unary_expr instead of extract_range_from_unary_expr.
10523 * wide-int-range.cc: Remove.
10524 * wide-int-range.h: Remove.
10525
10526 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
10527
10528 * config/rs6000/rs6000.c (mem_operand_gpr): Use
10529 SIGNED_16BIT_OFFSET_EXTRA_P macro.
10530 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10531 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10532 macro.
10533
10534 2019-10-02 Joseph Myers <joseph@codesourcery.com>
10535
10536 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10537 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10538 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10539 * glimits.h: Likewise.
10540
10541 2019-10-03 Jakub Jelinek <jakub@redhat.com>
10542
10543 PR rtl-optimization/91976
10544 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10545 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
10546 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
10547
10548 2019-10-02 Martin Sebor <msebor@redhat.com>
10549
10550 PR tree-optimization/80936
10551 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10552
10553 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10554
10555 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10556 instead of reg_class_contents[ALL_REGS].
10557
10558 2019-09-30 Jason Merrill <jason@redhat.com>
10559
10560 Add some hash_map_safe_* functions like vec_safe_*.
10561 * hash-map.h (default_hash_map_size): New variable.
10562 (create_ggc): Use it as default argument.
10563 (hash_map_maybe_create, hash_map_safe_get)
10564 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10565
10566 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10567
10568 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10569 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10570 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10571 (can_inline_edge_by_limits_p): Use it.
10572 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10573 (want_inline_small_function_p): Use O2 bounds.
10574 (edge_badness): LIkewise.
10575 * opts.c (default_options): Add OPT_finline_functions.
10576 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10577 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10578 New parameters.
10579 * doc/invoke.texi (-finline-functions): Update documentation.
10580 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10581 inline-min-speedup-O2): Document.
10582 (early-inlining-insns-O2): Simplify docs.
10583
10584 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10585
10586 PR rtl-optimization/87047
10587 * ifcvt.c (average_cost): New static function. Use it...
10588 (noce_process_if_block): ... here.
10589
10590 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10591
10592 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10593 * config/rs6000/rs6000-string.c (expand_block_move): Add
10594 might_overlap parm.
10595 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10596 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10597
10598 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10599
10600 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10601 (expand_builtin_memcpy): Use might_overlap parm.
10602 (expand_builtin_mempcpy_args): Use might_overlap parm.
10603 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10604 (expand_builtin_memory_copy_args): Add might_overlap parm.
10605 * expr.c (emit_block_move_via_cpymem): Rename to
10606 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10607 or movmem optab as appropriate.
10608 (emit_block_move_hints): Add might_overlap parm, do the right
10609 thing for might_overlap==true.
10610 * expr.h (emit_block_move_hints): Update prototype.
10611
10612 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10613
10614 * tree-eh.h (unsplit_eh_edges): Declare.
10615 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10616 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10617 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10618 (struct store_immediate_info): Add lp_nr field.
10619 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10620 initialize lp_nr with it.
10621 (struct merged_store_group): Add lp_nr and only_constants fields.
10622 (merged_store_group::merged_store_group): Initialize them.
10623 (merged_store_group::can_be_merged_into): Deal with them.
10624 (pass_store_merging): Rename terminate_and_release_chain into
10625 terminate_and_process_chain.
10626 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10627 renaming and remove useless assertions.
10628 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10629 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10630 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10631 instead of always recomputing it and compare lp_nr.
10632 (imm_store_chain_info::output_merged_store): If the group is in an
10633 active EH region, register new stores if they can throw. Moreover,
10634 if the insertion has created new basic blocks, adjust the PHI nodes
10635 of the post landing pad.
10636 (imm_store_chain_info::output_merged_stores): If the original stores
10637 are in an active EH region, deregister them.
10638 (lhs_valid_for_store_merging_p): Prettify.
10639 (adjust_bit_pos): New function extracted from...
10640 (mem_valid_for_store_merging): ...here. Use it for the base address
10641 and also for the offset if it is the addition of a constant.
10642 (lp_nr_for_store): New function.
10643 (pass_store_merging::process_store): Change return type to bool.
10644 Call lp_nr_for_store to initialize the store info. Propagate the
10645 return status of various called functions to the return value.
10646 (store_valid_for_store_merging_p): New predicate.
10647 (enum basic_block_status): New enumeration.
10648 (get_status_for_store_merging): New function.
10649 (pass_store_merging::execute): If the function can throw and catch
10650 non-call exceptions, unsplit the EH edges on entry and clean up the
10651 CFG on exit if something changed. Call get_status_for_store_merging
10652 for every basic block and keep the chains open across basic blocks
10653 when possible. Terminate and process open chains at the end, if any.
10654
10655 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10656
10657 * reginfo.c (globalize_reg): Fix shadowed variable in
10658 function_abis walk.
10659
10660 2019-10-02 Martin Jambor <mjambor@suse.cz>
10661
10662 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10663 do not compute some stuff when set.
10664 (cgraph_node::create_edge): Likewise.
10665 (cgraph_node::create_indirect_edge): Renamed last parameter to
10666 coning_p and flipped its meaning, don't even calculate
10667 inline_failed when set.
10668 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10669 (symbol_table::::create_edge): Likewise.
10670 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10671 the default value.
10672 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10673 call graph edge creating functions.
10674
10675 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10676
10677 PR c++/91222
10678 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10679 namespace types.
10680
10681 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10682
10683 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10684
10685 2019-10-02 Richard Biener <rguenther@suse.de>
10686
10687 * tree-vectorizer.h (vect_transform_reduction): Declare.
10688 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10689 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10690 stmt transform to ...
10691 (vect_transform_reduction): ... this.
10692
10693 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10694
10695 * omp-low.c (lower_omp_target): Dereference optional argument
10696 to work with the right pointer.
10697
10698 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10699
10700 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10701 false.
10702 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10703 * langhooks.h (omp_is_optional_argument): New hook.
10704 * omp-general.c (omp_is_optional_argument): New.
10705 * omp-general.h (omp_is_optional_argument): New declaration.
10706 * omp-low.c (lower_omp_target): Create temporary for received value
10707 and take the address for new_var if the original variable was a
10708 DECL_BY_REFERENCE. Use size of referenced object when a
10709 pass-by-reference optional argument used as argument to firstprivate.
10710
10711 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10712
10713 PR tree-optimization/91940
10714 * tree-vect-patterns.c: Include tree-vector-builder.h and
10715 vec-perm-indices.h.
10716 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10717 unpromoting the argument back to uint16_t, or by converting into a
10718 rotate, or into shifts plus ior.
10719
10720 2019-10-02 Richard Biener <rguenther@suse.de>
10721
10722 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10723 New.
10724 (vect_transform_cycle_phi): Declare.
10725 * tree-vect-stmts.c (vect_transform_stmt): Call
10726 vect_transform_cycle_phi.
10727 * tree-vect-loop.c (vectorizable_reduction): Split out
10728 PHI transformation stage to ...
10729 (vect_transform_cycle_phi): ... here.
10730
10731 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10732
10733 PR middle-end/91957
10734 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10735 eliminable registers.
10736 (make_hard_regno_live): Likewise, and don't make them live.
10737
10738 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10739
10740 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10741 Call pp_emit_prefix.
10742 (layout::print_source_line): Likewise.
10743 (layout::start_annotation_line): Likewise.
10744 (diagnostic_show_locus): Remove call to temporarily clear the
10745 prefix.
10746 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10747 interaction of pp_set_prefix with rulers and fix-it hints.
10748 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10749 prefix when calling diagnostic_show_locus, rather than destroying
10750 it afterwards.
10751 (print_parseable_fixits): Temporarily clear prefix.
10752 * pretty-print.c (pp_format): Save and restore line_length, rather
10753 than assuming it is zero.
10754 (pp_output_formatted_text): Remove assertion that line_length is
10755 zero.
10756
10757 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10758
10759 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10760 Rename to ...
10761 (nonoverlapping_refs_since_match_p): ... this; handle also
10762 ARRAY_REFs.
10763 (alias_stats): Update stats.
10764 (dump_alias_stats): Likewise.
10765 (cheap_array_ref_low_bound): New function.
10766 (aliasing_matching_component_refs_p): Add partial_overlap
10767 argument;
10768 pass it to nonoverlapping_refs_since_match_p.
10769 (aliasing_component_refs_walk): Update call of
10770 aliasing_matching_component_refs_p
10771 (nonoverlapping_array_refs_p): New function.
10772 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10773 indirect_refs_may_alias_p): Update calls of
10774 nonoverlapping_refs_since_match_p.
10775
10776 2019-10-01 Maya Rashish <coypu@sdf.org>
10777
10778 PR target/85401
10779 * ira-color.c (allocno_copy_cost_saving): Call
10780 ira_init_register_move_cost_if_necessary.
10781
10782 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10783
10784 * Makefile.in (gnat_install_lib): New variable.
10785 * configure.ac: Substitute it.
10786 * configure: Regenerate.
10787
10788 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10789
10790 PR lto/91222
10791 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10792 is matched with non-C++ type
10793
10794 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10795
10796 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10797 after local CSE.
10798
10799 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10800
10801 * doc/invoke.texi (early-inlining-insns-O2): Document.
10802 (early-inlining-insns): Update.
10803 * params.def (early-inlining-insns-O2): New bound.
10804 (early-inlining-insns): Update docs.
10805 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10806
10807 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10808
10809 PR target/88562
10810 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10811 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10812 a memory access insn.
10813
10814 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10815
10816 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10817 vpmsumd.
10818
10819 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10820
10821 PR target/77918
10822 * config/s390/s390.c (s390_expand_vec_compare): Use
10823 gen_vec_cmpordered and gen_vec_cmpunordered.
10824 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10825 vec_unordered): Delete.
10826 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10827 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10828 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10829 (vec_cmp<code>): Generic dispatcher.
10830
10831 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10832
10833 PR target/77918
10834 * config/s390/vector.md (V_HW): Add V1TI in order to make
10835 vcond$a$b generate vcondv1tiv1tf.
10836
10837 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10838
10839 PR rtl-optimization/91948
10840 * ira-build.c (ira_create_allocno): Initialize
10841 ALLOCNO_CROSSED_CALLS_ABIS.
10842 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10843 than regno to ira_need_caller_save_p.
10844
10845 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10846
10847 * config/i386/i386-options.c
10848 (ix86_recompute_optlev_based_flags): New, moved out of...
10849 (ix86_option_override_internal): ... this. Call it.
10850 (ix86_override_options_after_change): Call it here too.
10851
10852 PR debug/91507
10853 * dwarf2out.c (override_type_for_decl_p): New.
10854 (gen_variable_die): Use it.
10855
10856 2019-10-01 Richard Biener <rguenther@suse.de>
10857
10858 * tree-vect-loop.c (vectorizable_reduction): Move variables
10859 to where they are used.
10860
10861 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10862
10863 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10864 (build_def_use): Use PC instead of CC0 in a comment.
10865
10866 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10867
10868 * rtl.def (CLOBBER_HIGH): Delete.
10869 * doc/rtl.texi (clobber_high): Remove documentation.
10870 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10871 (reg_is_clobbered_by_clobber_high): Delete.
10872 (gen_hard_reg_clobber_high): Likewise.
10873 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10874 * cfgexpand.c (expand_gimple_stmt): Likewise.
10875 * combine-stack-adj.c (single_set_for_csa): Likewise.
10876 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10877 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10878 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10879 * cse.c (invalidate_reg): Remove clobber_high parameter.
10880 (invalidate): Update call accordingly.
10881 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10882 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10883 (count_reg_usage, insn_live_p): Likewise.
10884 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10885 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10886 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10887 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10888 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10889 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10890 (mark_nonreg_stores_2): Likewise.
10891 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10892 (df_get_call_refs): Likewise.
10893 * dwarf2out.c (mem_loc_descriptor): Likewise.
10894 * emit-rtl.c (verify_rtx_sharing): Likewise.
10895 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10896 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10897 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10898 * genemit.c (gen_exp, gen_insn): Likewise.
10899 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10900 * haifa-sched.c (haifa_classify_rtx): Likewise.
10901 * ira-build.c (create_insn_allocnos): Likewise.
10902 * ira-costs.c (scan_one_insn): Likewise.
10903 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10904 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10905 * jump.c (mark_jump_label_1): Likewise.
10906 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10907 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10908 handling.
10909 (mark_not_eliminable): Likewise.
10910 * lra-lives.c (process_bb_lives): Likewise.
10911 * lra.c (new_insn_reg): Remove clobber_high parameter.
10912 (collect_non_operand_hard_regs): Likewise. Update call to new
10913 insn_reg. Remove CLOBBER_HIGH handling.
10914 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10915 to collect_non_operand_hard_regs.
10916 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10917 Update call to new_insn_reg.
10918 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10919 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10920 (move2add_note_store): Likewise.
10921 * print-rtl.c (print_pattern): Likewise.
10922 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10923 (if_test_bypass_p): Likewise.
10924 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10925 * reginfo.c (reg_scan_mark_refs): Likewise.
10926 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10927 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10928 (forget_old_reloads_1): Likewise.
10929 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10930 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10931 (dbr_schedule): Likewise.
10932 * resource.c (update_live_status, mark_referenced_resources)
10933 (mark_set_resources): Likewise.
10934 * rtl.c (copy_rtx): Likewise.
10935 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10936 (note_pattern_stores): Likewise.
10937 (reg_is_clobbered_by_clobber_high): Delete.
10938 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10939 CLOBBER_HIGH handling.
10940
10941 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10942
10943 PR target/91452
10944 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10945 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10946 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10947 Handle ARM_PCS_TLSDESC.
10948 (aarch64_tlsdesc_abi_id): New function.
10949 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10950 rtx instead of a list of clobbers and clobber_highs.
10951 (tlsdesc_small_<mode>): Update accordingly.
10952
10953 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10954
10955 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10956 extra callee_abi argument.
10957 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10958 Insert a CALLEE_ABI unspec into the call pattern as the second
10959 element in the PARALLEL.
10960 (aarch64_simd_call_p): Delete.
10961 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10962 the new CALLEE_ABI element of the PARALLEL.
10963 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10964 from the function type, if given.
10965 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10966 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10967 when passed the function_arg_info end marker.
10968 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10969 final argument of gen_sibcall.
10970 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10971 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10972 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10973 pattern.
10974 (call_value): Likewise operand 3.
10975 (sibcall): Likewise operand 2. Place the unspec before rather than
10976 after the return.
10977 (sibcall_value): Likewise operand 3.
10978 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10979 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10980 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10981 constraint strings.
10982 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10983
10984 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10985
10986 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10987 choose_hard_reg_mode.
10988 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10989
10990 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10991
10992 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10993 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10994 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10995
10996 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10997
10998 * diagnostic-show-locus.c (line_label::line_label): Initialize
10999 m_has_vbar.
11000 (line_label::comparator): Reverse the sort order by m_state_idx,
11001 so that when the list is walked backwards the labels appear in
11002 order of insertion into the rich_location.
11003 (line_label::m_has_vbar): New field.
11004 (layout::print_any_labels): When dealing with multiple labels at
11005 the same line and column, only print vertical bars for the one
11006 with the highest label_line.
11007 (selftest::test_one_liner_labels): Update test for multiple labels
11008 to expect the labels to be in the order of insertion into the
11009 rich_location. Add a test for many such labels, where the column
11010 numbers are out-of-order relative to the insertion order.
11011
11012 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11013
11014 * config/i386/i386.h (ix86_frame::expensive_p): New field.
11015 (ix86_frame::expensive_count): Likewise.
11016 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
11017 of use_fast_prologue_epilogue robust against incidental changes
11018 in function size.
11019
11020 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11021
11022 PR target/77918
11023 * config/s390/vector.md (vec_unordered<mode>): Call
11024 gen_vec_ordered<mode>.
11025
11026 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
11027
11028 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
11029 New pattern for ASRD.
11030 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
11031 * internal-fn.def (IFN_DIV_POW2): New internal function.
11032 * optabs.def (sdiv_pow2_optab): New optab.
11033 * tree-vect-patterns.c (vect_recog_divmod_pattern):
11034 Modify pattern to support new operation.
11035 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
11036 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
11037 Document new target selector.
11038
11039 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11040
11041 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
11042 to test whether we're compiling a vector PCS function and to test
11043 whether the function needs to save a particular register.
11044 Remove the vector PCS handling of df_set_regs_ever_live.
11045 (aarch64_components_for_bb): Use crtl->abi to test whether
11046 the function needs to save a particular register.
11047 (aarch64_process_components): Use crtl->abi to test whether
11048 we're compiling a vector PCS function.
11049 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
11050 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
11051
11052 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11053
11054 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
11055 Delete.
11056 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
11057 whether the block calls a function that clobbers more registers
11058 than the current function is allowed to.
11059 (aarch64_use_simple_return_insn_p): Delete.
11060 * config/aarch64/aarch64.md (simple_return): Remove condition.
11061
11062 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11063
11064 * function-abi.h (function_abi_aggregator): New class.
11065 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
11066 function.
11067 * ira.c (update_equiv_regs_prescan): New function. Call
11068 set_paradoxical_subreg here rather than...
11069 (update_equiv_regs): ...here.
11070 (ira): Call update_equiv_regs_prescan.
11071
11072 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11073
11074 * hard-reg-set.h (regs_invalidated_by_call): Only define if
11075 IN_TARGET_CODE.
11076 (call_used_or_fixed_regs): Likewise.
11077 (call_used_or_fixed_reg_p): Likewise.
11078 * reginfo.c (regs_invalidated_by_call): New macro.
11079
11080 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11081
11082 * shrink-wrap.c: Include function-abi.h.
11083 (requires_stack_frame_p): Use crtl->abi to test whether the
11084 current function can use a register without saving it first.
11085
11086 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11087
11088 * sel-sched-ir.h (_def::crosses_call): Replace with...
11089 (_def::crossed_call_abis): ..this new field.
11090 (def_list_add): Take a mask of ABIs instead of a crosses_call
11091 boolean.
11092 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
11093 of _def accordingly.
11094 * sel-sched.c: Include function-abi.h.
11095 (hard_regs_data::regs_for_call_clobbered): Delete.
11096 (reg_rename::crosses_call): Replace with...
11097 (reg_rename::crossed_call_abis): ...this new field.
11098 (fur_static_params::crosses_call): Replace with...
11099 (fur_static_params::crossed_call_abis): ...this new field.
11100 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
11101 (init_hard_regs_data): Use crtl->abi to test which registers the
11102 current function would need to save before it uses them.
11103 (mark_unavailable_hard_regs): Update handling of call-clobbered
11104 registers, using call_clobbers_in_region to find out which registers
11105 might be call-clobbered (but without taking -fipa-ra into account
11106 for now). Remove separate handling of partially call-clobbered
11107 registers.
11108 (verify_target_availability): Use crossed_call_abis instead of
11109 crosses_call.
11110 (get_spec_check_type_for_insn, find_used_regs): Likewise.
11111 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
11112
11113 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11114
11115 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
11116 function to test whether a register is fully or partly clobbered.
11117
11118 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11119
11120 * rtlanal.c: Include function-abi.h.
11121 (reg_set_p): Use insn_callee_abi to get the ABI of the called
11122 function and clobbers_reg_p to test whether the register
11123 is call-clobbered.
11124 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
11125 to get the ABI of the called function and full_reg_clobbers to
11126 get the set of fully call-clobbered registers. Warn about the
11127 pitfalls of using this mode.
11128
11129 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11130
11131 * reload.c: Include function-abi.h.
11132 (find_equiv_reg): Use clobbers_reg_p to test whether either
11133 of the equivalent registers is clobbered by a call.
11134 * reload1.c: Include function-abi.h.
11135 (reg_reloaded_call_part_clobbered): Delete.
11136 (reload): Use crtl->abi to test which registers would need
11137 saving in the prologue before use.
11138 (find_reg): Likewise.
11139 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
11140 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
11141 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
11142
11143 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11144
11145 * regrename.h (du_head::call_clobber_mask): New field.
11146 (du_head::need_caller_save_reg): Replace with...
11147 (du_head::call_abis): ...this new field.
11148 * regrename.c: Include function-abi.h.
11149 (call_clobbered_in_chain_p): New function.
11150 (check_new_reg_p): Use crtl->abi when deciding whether a register
11151 is free for use after RA. Use call_clobbered_in_chain_p to test
11152 whether a candidate register would be clobbered by a call.
11153 (find_rename_reg): Don't add call-clobber conflicts here.
11154 (rename_chains): Check call_abis instead of need_caller_save_reg.
11155 (merge_chains): Update for changes to du_head.
11156 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
11157 target. Record the ABI identifier in call_abis and the set of
11158 fully or partially clobbered registers in call_clobber_mask.
11159 Add fully-clobbered registers to hard_conflicts here rather
11160 than in find_rename_reg.
11161 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
11162 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
11163 * config/aarch64/falkor-tag-collision-avoidance.c: Include
11164 function-abi.h.
11165 * config/c6x/c6x.c: Likewise.
11166
11167 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11168
11169 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
11170 mode of the register when deciding whether it is no longer
11171 available after a call.
11172
11173 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11174
11175 * recog.c: Include function-abi.h.
11176 (peep2_find_free_register): Use crtl->abi when deciding whether
11177 a register is free for use after RA.
11178
11179 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11180
11181 * postreload-gcse.c: Include regs.h and function-abi.h.
11182 (record_opr_changes): Use insn_callee_abi to get the ABI of the
11183 call insn target. Conservatively assume that partially-clobbered
11184 registers are altered.
11185
11186 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11187
11188 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
11189 when deciding whether a register is free for use after RA.
11190 (reload_combine): Remove unnecessary use of fixed_reg_set.
11191 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
11192 call insn target. Use reg_mode when testing whether a register
11193 is no longer available.
11194
11195 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11196
11197 * target.def (return_call_with_max_clobbers): Delete.
11198 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11199 * doc/tm.texi: Regenerate.
11200 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
11201 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
11202 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
11203 (lra_reg::call_insn): Delete.
11204 * lra.c: Include function-abi.h.
11205 (initialize_lra_reg_info_element): Don't initialize the fields above.
11206 (lra): Use crtl->abi to test whether the current function needs to
11207 save a register in the prologue. Remove special pre-inheritance
11208 lra_create_live_ranges pass for flag_ipa_ra.
11209 * lra-assigns.c: Include function-abi.h
11210 (find_hard_regno_for_1): Use crtl->abi to test whether the current
11211 function needs to save a register in the prologue.
11212 (lra_assign): Assert that registers aren't allocated to a
11213 conflicting register, rather than checking only for overlaps
11214 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
11215 and for registers that are not live across a call.
11216 * lra-constraints.c (last_call_for_abi): New variable.
11217 (full_and_partial_call_clobbers): Likewise.
11218 (setup_next_usage_insn): Remove the register from
11219 full_and_partial_call_clobbers.
11220 (need_for_call_save_p): Use call_clobbered_in_region_p to test
11221 whether the register needs a caller save.
11222 (need_for_split_p): Use full_and_partial_reg_clobbers instead
11223 of call_used_or_fixed_regs.
11224 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
11225 full_and_partial_call_clobbers.
11226 * lra-lives.c (check_pseudos_live_through_calls): Replace
11227 last_call_used_reg_set and call_insn arguments with an abi argument.
11228 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
11229 as the set of conflicting registers.
11230 (calls_have_same_clobbers_p): Delete.
11231 (process_bb_lives): Track the ABI of the last call instead of an
11232 insn/HARD_REG_SET pair. Update calls to
11233 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
11234 the set of registers that could be clobbered by an EH edge.
11235 Include partially-clobbered as well as fully-clobbered registers.
11236 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
11237 * lra-remat.c: Include function-abi.h.
11238 (call_used_regs_arr_len, call_used_regs_arr): Delete.
11239 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
11240 registers and bitmap_view to combine them into dead_regs.
11241 (call_used_input_regno_present_p): Take a function_abi argument
11242 and use it to test whether a register is call-clobbered.
11243 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
11244 call insn target. Update tje call to call_used_input_regno_present_p.
11245 (do_remat): Likewise.
11246 (lra_remat): Remove the initialization of call_used_regs_arr_len
11247 and call_used_regs_arr.
11248
11249 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11250
11251 * loop-iv.c: Include regs.h and function-abi.h.
11252 (simplify_using_initial_values): Use insn_callee_abi to get the
11253 ABI of the call insn target. Conservatively assume that
11254 partially-clobbered registers are altered.
11255
11256 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11257
11258 * function-abi.h (call_clobbers_in_region): Declare.
11259 (call_clobbered_in_region_p): New function.
11260 * function-abi.cc (call_clobbers_in_region): Likewise.
11261 * ira-int.h: Include function-abi.h.
11262 (ira_allocno::crossed_calls_abis): New field.
11263 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
11264 (ira_need_caller_save_regs): New function.
11265 (ira_need_caller_save_p): Likewise.
11266 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
11267 of call_used_or_fixed_regs.
11268 (do_reload): Use crtl->abi to test whether the current function
11269 needs to save a register in the prologue. Count registers that
11270 need to be saved rather than registers that don't.
11271 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
11272 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11273 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
11274 (propagate_some_info_from_allocno): Likewise.
11275 (copy_info_to_removed_store_destinations): Likewise.
11276 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
11277 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
11278 (ira_build): Use ira_need_caller_save_regs instead of
11279 call_used_or_fixed_regs.
11280 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
11281 whether the current function would need to save a register
11282 before using it.
11283 (calculate_spill_cost): Likewise.
11284 (allocno_reload_assign): Use ira_need_caller_save_regs and
11285 ira_need_caller_save_p instead of call_used_or_fixed_regs.
11286 * ira-conflicts.c (ira_build_conflicts): Use
11287 ira_need_caller_save_regs rather than call_used_or_fixed_regs
11288 as the set of call-clobbered registers. Remove the
11289 call_used_or_fixed_regs mask from the calculation of
11290 temp_hard_reg_set and mask its use instead. Remove special
11291 handling of partially-clobbered registers.
11292 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
11293 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
11294 calculate the set of conflicting registers for calls that
11295 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
11296 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
11297 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11298 Use eh_edge_abi to calculate the set of registers that could
11299 be clobbered by an EH edge. Include partially-clobbered as
11300 well as fully-clobbered registers.
11301
11302 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11303
11304 * haifa-sched.c: Include function-abi.h.
11305 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
11306 the function would need to save a register before using it.
11307
11308 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11309
11310 * gcse.c: Include function-abi.h.
11311 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
11312 the call insn target. Invalidate partially call-clobbered
11313 registers as well as fully call-clobbered ones.
11314
11315 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11316
11317 * function.c (aggregate_value_p): Work out which ABI the
11318 function is using before testing which registers are at least
11319 partly preserved by a call.
11320
11321 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11322
11323 * early-remat.c: Include regs.h and function-abi.h.
11324 (early_remat::maybe_add_candidate): Don't check for call-clobbered
11325 registers here.
11326 (early_remat::restrict_remat_for_unavail_regs): New function.
11327 (early_remat::restrict_remat_for_call): Likewise.
11328 (early_remat::process_block): Before calling emit_remat_insns
11329 for a previous call in the block, invalidate any candidates
11330 that would clobber call-preserved registers.
11331 (early_remat::emit_remat_insns_for_block): Likewise for the
11332 final call in a block. Do the same thing for live-in registers
11333 when calling emit_remat_insns at the head of a block.
11334
11335 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11336
11337 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
11338 whether the current function needs to save at least part of a
11339 register before using it.
11340 (df_get_exit_block_use_set): Likewise for epilogue restores.
11341
11342 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11343
11344 * df-problems.c: Include regs.h and function-abi.h.
11345 (df_rd_problem_data): Rename sparse_invalidated_by_call to
11346 sparse_invalidated_by_eh and dense_invalidated_by_call to
11347 dense_invalidated_by_eh.
11348 (df_print_bb_index): Update accordingly.
11349 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
11350 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
11351 that are clobbered by an EH edge. Clobber partially-clobbered
11352 registers as well as fully-clobbered ones.
11353 (df_md_confluence_n): Likewise.
11354 (df_rd_local_compute): Likewise. Update for changes to
11355 df_rd_problem_data.
11356 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
11357 of registers that are clobbered by an EH edge. Includde partially-
11358 clobbered registers as well as fully-clobbered ones.
11359
11360 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11361
11362 * cselib.c (cselib_process_insn): If we know what mode a
11363 register was set in, check whether it is clobbered in that
11364 mode by a call. Only fall back to reg_raw_mode if that fails.
11365
11366 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11367
11368 * cse.c: Include regs.h and function-abi.h.
11369 (invalidate_for_call): Take the call insn as an argument.
11370 Use insn_callee_abi to get the ABI of the call and invalidate
11371 partially clobbered registers as well as fully clobbered ones.
11372 (cse_insn): Update call accordingly.
11373
11374 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11375
11376 * combine.c: Include function-abi.h.
11377 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
11378 of the target of call insns. Invalidate partially-clobbered
11379 registers as well as fully-clobbered ones.
11380
11381 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11382
11383 * cfgloopanal.c: Include regs.h and function-abi.h.
11384 (init_set_costs): Use default_function_abi to test whether
11385 a general register is call-clobbered.
11386
11387 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11388
11389 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
11390 instead of the call-clobbered sets.
11391
11392 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11393
11394 * caller-save.c (setup_save_areas): Remove redundant |s of
11395 fixed_reg_set.
11396 (save_call_clobbered_regs): Likewise. Use the call ABI rather
11397 than call_used_or_fixed_regs to decide whether a REG_RETURNED
11398 value is useful.
11399
11400 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11401
11402 * rtl.h (predefined_function_abi): Declare.
11403 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11404 instead of a boolean call_save flag.
11405 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
11406 accordingly.
11407 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11408 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11409 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
11410 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11411 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11412 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
11413 * reginfo.c (init_reg_modes_target): Likewise.
11414 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
11415 instead of a boolean call_save flag.
11416 * targhooks.c: Include function-abi.h.
11417 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
11418 using eh_edge_abi to choose the mode.
11419
11420 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11421
11422 * target.def (hard_regno_call_part_clobbered): Take an ABI
11423 identifier instead of an rtx_insn.
11424 * doc/tm.texi: Regenerate.
11425 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
11426 (hook_bool_uint_uint_mode_false): New function.
11427 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
11428 (hook_bool_uint_uint_mode_false): New function.
11429 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11430 Take an ABI identifier instead of an rtx_insn.
11431 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
11432 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
11433 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
11434 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
11435 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
11436 Likewise.
11437 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
11438 * cselib.c: Include function-abi.h.
11439 (cselib_process_insn): Update call to
11440 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11441 to get the appropriate ABI identifier.
11442 * function-abi.cc (predefined_function_abi::initialize): Update call
11443 to targetm.hard_regno_call_part_clobbered.
11444 * ira-conflicts.c (ira_build_conflicts): Likewise.
11445 * ira-costs.c (ira_tune_allocno_costs): Likewise.
11446 * lra-constraints.c: Include function-abi.h.
11447 (need_for_call_save_p): Update call to
11448 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11449 to get the appropriate ABI identifier.
11450 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
11451 * regcprop.c (copyprop_hardreg_forward_1): Update call
11452 to targetm.hard_regno_call_part_clobbered.
11453 * reginfo.c (choose_hard_reg_mode): Likewise.
11454 * regrename.c (check_new_reg_p): Likewise.
11455 * reload.c (find_equiv_reg): Likewise.
11456 * reload1.c (emit_reload_insns): Likewise.
11457 * sched-deps.c: Include function-abi.h.
11458 (deps_analyze_insn): Update call to
11459 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11460 to get the appropriate ABI identifier.
11461 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
11462 call to targetm.hard_regno_call_part_clobbered.
11463 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
11464
11465 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11466
11467 * config/i386/i386.c: Include function-abi.h.
11468 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
11469 if they preserve some 256-bit or 512-bit SSE registers.
11470
11471 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11472
11473 * target.def (insn_callee_abi): New hook.
11474 (remove_extra_call_preserved_regs): Delete.
11475 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
11476 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11477 * doc/tm.texi: Regenerate.
11478 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
11479 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
11480 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
11481 insn argument.
11482 (aarch64_remove_extra_call_preserved_regs): Delete.
11483 (aarch64_insn_callee_abi): New function.
11484 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11485 (TARGET_INSN_CALLEE_ABI): New macro.
11486 * rtl.h (get_call_fndecl): Declare.
11487 (cgraph_rtl_info): Fix formatting. Tweak comment for
11488 function_used_regs. Remove function_used_regs_valid.
11489 * rtlanal.c (get_call_fndecl): Moved from final.c
11490 * function-abi.h (insn_callee_abi): Declare.
11491 (target_function_abi_info): Mention insn_callee_abi.
11492 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11493 way to get_call_reg_set_usage did.
11494 (insn_callee_abi): New function.
11495 * regs.h (get_call_reg_set_usage): Delete.
11496 * final.c: Include function-abi.h.
11497 (collect_fn_hard_reg_usage): Add fixed and stack registers to
11498 function_used_regs before the main loop rather than afterwards.
11499 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
11500 if function_used_regs ends up not being useful.
11501 (get_call_fndecl): Move to rtlanal.c
11502 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11503 * caller-save.c: Include function-abi.h.
11504 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11505 instead of get_call_reg_set_usage.
11506 * cfgcleanup.c: Include function-abi.h.
11507 (old_insns_match_p): Use insn_callee_abi instead of
11508 get_call_reg_set_usage.
11509 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11510 a tree.
11511 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
11512 function_used_regs.
11513 * df-scan.c: Include function-abi.h.
11514 (df_get_call_refs): Use insn_callee_abi instead of
11515 get_call_reg_set_usage.
11516 * ira-lives.c: Include function-abi.h.
11517 (process_bb_node_lives): Use insn_callee_abi instead of
11518 get_call_reg_set_usage.
11519 * lra-lives.c: Include function-abi.h.
11520 (process_bb_lives): Use insn_callee_abi instead of
11521 get_call_reg_set_usage.
11522 * postreload.c: Include function-abi.h.
11523 (reload_combine): Use insn_callee_abi instead of
11524 get_call_reg_set_usage.
11525 * regcprop.c: Include function-abi.h.
11526 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11527 get_call_reg_set_usage.
11528 * resource.c: Include function-abi.h.
11529 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11530 instead of get_call_reg_set_usage.
11531 * var-tracking.c: Include function-abi.h.
11532 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11533 get_call_reg_set_usage.
11534
11535 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11536
11537 * target.def (fntype_abi): New target hook.
11538 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11539 * doc/tm.texi: Regenerate.
11540 * target.h (predefined_function_abi): Declare.
11541 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11542 if defined.
11543 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11544 * config/aarch64/aarch64.c: Include function-abi.h.
11545 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11546 (TARGET_FNTYPE_ABI): Define.
11547
11548 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11549
11550 * Makefile.in (OBJS): Add function-abi.o.
11551 (GTFILES): Add function-abi.h.
11552 * function-abi.cc: New file.
11553 * function-abi.h: Likewise.
11554 * emit-rtl.h (rtl_data::abi): New field.
11555 * function.c: Include function-abi.h.
11556 (prepare_function_start): Initialize crtl->abi.
11557 * read-rtl-function.c: Include regs.h and function-abi.h.
11558 (read_rtl_function_body): Initialize crtl->abi.
11559 (read_rtl_function_body_from_file_range): Likewise.
11560 * reginfo.c: Include function-abi.h.
11561 (init_reg_sets_1): Initialize default_function_abi.
11562 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11563 when making a register global.
11564 * target-globals.h (this_target_function_abi_info): Declare.
11565 (target_globals::function_abi_info): New field.
11566 (restore_target_globals): Copy it.
11567 * target-globals.c: Include function-abi.h.
11568 (default_target_globals): Initialize the function_abi_info field.
11569 (target_globals): Allocate it.
11570 (save_target_globals): Free it.
11571
11572 2019-09-30 Nick Clifton <nickc@redhat.com>
11573
11574 PR target/85978
11575 * config/frv/frv.c (frv_register_move_cost): Add break statements
11576 to avoid falling through to the wrong cases. Tidy code.
11577
11578 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11579
11580 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11581 For multi-registers modes, test how big each register part is.
11582
11583 2019-09-30 Nick Clifton <nickc@redhat.com>
11584
11585 PR target/59205
11586 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11587 (TARGET_ASM_SELECT_SECTION): Remove definition.
11588 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11589
11590 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11591
11592 * emit-rtl.c (init_raw_REG): New function.
11593 (gen_raw_REG): Use init_raw_REG.
11594 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11595 macros.
11596 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11597 * rtl.h (rtx_init): New function.
11598 (rtx_alloca): New function.
11599 (init_raw_REG): New function.
11600 (alloca_raw_REG): New macro.
11601
11602 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11603
11604 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11605 (pcrel_local_address): Replace pcrel_address predicate, use the
11606 new function address_to_insn_form.
11607 (pcrel_external_address): Replace with new implementation using
11608 address_to_insn_form..
11609 (prefixed_mem_operand): Delete predicate which is now unused.
11610 (pcrel_external_mem_operand): Delete predicate which is now
11611 unused.
11612 * config/rs6000/rs6000-protos.h (enum insn_form): New
11613 enumeration.
11614 (enum non_prefixed_form): New enumeration.
11615 (address_to_insn_form): New declaration.
11616 (prefixed_load_p): New declaration.
11617 (prefixed_store_p): New declaration.
11618 (prefixed_paddi_p): New declaration.
11619 (rs6000_asm_output_opcode): New declaration.
11620 (rs6000_final_prescan_insn): Move declaration and update calling
11621 signature.
11622 (address_is_prefixed): New helper inline function.
11623 * config/rs6000/rs6000.c(print_operand_address): Check for either
11624 PC-relative local symbols or PC-relative external symbols.
11625 (rs6000_emit_move): Support loading PC-relative addresses.
11626 (mode_supports_prefixed_address_p): Delete, no longer used.
11627 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11628 (address_to_insn_form): New function to decode an address format.
11629 (reg_to_non_prefixed): New function to identify what the
11630 non-prefixed memory instruction format is for a register.
11631 (prefixed_load_p): New function to identify prefixed loads.
11632 (prefixed_store_p): New function to identify prefixed stores.
11633 (prefixed_paddi_p): New function to identify prefixed load
11634 immediates.
11635 (next_insn_prefixed_p): New static state variable.
11636 (rs6000_final_prescan_insn): New function to determine if an insn
11637 uses a prefixed instruction.
11638 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11639 prefixed instruction.
11640 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11641 (ASM_OUTPUT_OPCODE): New target hook.
11642 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11643 prefixed instructions.
11644 (prefixed_length): New insn attribute for the size of prefixed
11645 instructions.
11646 (non_prefixed_length): New insn attribute for the size of
11647 non-prefixed instructions.
11648 (pcrel_local_addr): New insn to load up a local PC-relative
11649 address.
11650 (pcrel_extern_addr): New insn to load up an external PC-relative
11651 address.
11652 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11653 GPR and loading a 128-bit floating point type to a GPR.
11654
11655 2019-09-30 Richard Biener <rguenther@suse.de>
11656
11657 * gimple.c (gimple_get_lhs): For PHIs return the result.
11658 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11659 SLP instance as argument.
11660 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11661 double-reduction PHIs with vectorizable_lc_phi.
11662 (vect_analyze_loop_operations): Adjust.
11663 (vect_create_epilog_for_reduction): Remove all code not dealing
11664 with reduction LC PHI or epilogue generation.
11665 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11666 for live stmts of reductions.
11667 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11668 do not handle defs that are not vect_internal_def.
11669 (can_vectorize_live_stmts): Adjust.
11670 (vect_analyze_stmt): When the vectorized stmt defined a value
11671 used on backedges adjust the backedge uses of vectorized PHIs.
11672
11673 2019-09-30 Martin Jambor <mjambor@suse.cz>
11674
11675 PR ipa/91853
11676 * tree-inline.c (force_value_to_type): New function.
11677 (setup_one_parameter): Use force_value_to_type to convert type.
11678 * tree-inline.c (force_value_to_type): Declare.
11679 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11680 with register type mismatches.
11681
11682 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11683
11684 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11685 32-bit PowerPC.
11686 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11687 * config/rs6000/t-freebsd64: Make use of the above define and build
11688 the 32-bit libraries with secure-plt.
11689
11690 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11691
11692 PR target/91931
11693 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11694 gen_int_mode instead of GEN_INT.
11695
11696 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11697
11698 * config/darwin.c (gen_macho_low): Amend to include the mode
11699 argument.
11700 (machopic_indirect_data_reference): Amend gen_macho_low call
11701 to include mode argument
11702 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11703 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11704 the macho_high expander and two define_insn entries.
11705
11706 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11707
11708 PR bootstrap/90543
11709 * optc-save-gen.awk: Fix up printing string option differences.
11710
11711 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11712
11713 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11714 vec_perm cost to 1 for non-Power7 VSX architectures.
11715
11716 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11717
11718 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11719 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11720 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11721
11722 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11723
11724 * config/darwin.c (gen_macho_high): Amend to include the mode
11725 argument.
11726 (machopic_indirect_data_reference): Amend gen_macho_high call
11727 to include mode argument.
11728 (machopic_legitimize_pic_address): Likewise.
11729 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11730 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11731 the macho_high expander and two define_insn entries.
11732
11733 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11734
11735 PR target/86805
11736 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11737
11738 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11739
11740 PR target/80672
11741 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11742 std::string::compare instead of std::string::find.
11743
11744 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11745
11746 * configure: Regenerate.
11747
11748 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11749
11750 PR middle-end/91920
11751 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11752 variables as shared.
11753
11754 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11755
11756 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11757 replaces the expander and two define_insn entries.
11758 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11759 call.
11760 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11761
11762 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11763
11764 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11765 (fibonacci_heap::nodes): Likewise.
11766 (fibonacci_heap::min_key): Likewise.
11767 (fibonacci_heap::min): Likewise.
11768
11769 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11770
11771 * cgraph.c (cgraph_node::get_fun): Make const.
11772 * cgraph.h (cgraph_node::get_fun): Likewise.
11773
11774 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11775
11776 PR target/91919
11777 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11778 of SImode MULT.
11779
11780 2019-09-27 Richard Biener <rguenther@suse.de>
11781
11782 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11783 (STMT_VINFO_REDUC_FN): Likewise.
11784 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11785 STMT_VINFO_REDUC_FN.
11786 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11787 for condition reductions.
11788 (vect_create_epilog_for_reduction): Compute all required state
11789 from the stmt to be vectorized.
11790 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11791 invocation and remove then dead code. For single def-use chains
11792 record only a single vector stmt.
11793
11794 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11795
11796 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11797 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11798 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11799 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11800 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11801 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11802 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11803 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11804 (aarch64_general_builtin_rsqrt): Declare.
11805 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11806 New function.
11807 (aarch64_mangle_builtin_type): Rename to...
11808 (aarch64_general_mangle_builtin_type): ...this.
11809 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11810 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11811 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11812 aarch64_general_add_builtin instead of add_builtin_function.
11813 (aarch64_init_builtins): Rename to...
11814 (aarch64_general_init_builtins): ...this. Use
11815 aarch64_general_add_builtin instead of add_builtin_function.
11816 (aarch64_builtin_decl): Rename to...
11817 (aarch64_general_builtin_decl): ...this and remove the unused
11818 arguments.
11819 (aarch64_expand_builtin): Rename to...
11820 (aarch64_general_expand_builtin): ...this and remove the unused
11821 arguments.
11822 (aarch64_builtin_rsqrt): Rename to...
11823 (aarch64_general_builtin_rsqrt): ...this.
11824 (aarch64_fold_builtin): Rename to...
11825 (aarch64_general_fold_builtin): ...this. Take the function subcode
11826 and return type as arguments. Remove the "ignored" argument.
11827 (aarch64_gimple_fold_builtin): Rename to...
11828 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11829 subcode and gcall as arguments, and return the new function call.
11830 * config/aarch64/aarch64.c (aarch64_init_builtins)
11831 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11832 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11833 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11834 instead of aarch64_builtin_rsqrt.
11835 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11836 instead of aarch64_mangle_builtin_type.
11837
11838 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11839
11840 * target.def (check_builtin_call): New target hook.
11841 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11842 * doc/tm.texi: Regenerate.
11843
11844 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11845
11846 PR tree-optimization/91909
11847 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11848 reduc_index parameter. When handling COND_REDUCTION, make sure
11849 that the reduction phi operand is in the correct arm of the
11850 VEC_COND_EXPR.
11851 (vectorizable_reduction): Pass reduc_index to the above.
11852
11853 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11854
11855 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11856 New combine pattern.
11857
11858 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11859
11860 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11861 loop instruction into new basic block before the loop when basic
11862 block that precedes the loop is empty.
11863
11864 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11865
11866 * function.c (gimplify_parameters): Use build_clobber function.
11867 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11868 * tree-inline.c (expand_call_inline): Likewise.
11869 * tree-sra.c (clobber_subtree): Likewise.
11870 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11871 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11872 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11873 lower_omp_target): Likewise.
11874 * omp-expand.c (expand_omp_for_generic): Likewise.
11875 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11876
11877 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11878
11879 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11880 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11881 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11882 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11883 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11884 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11885 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11886 LD_ELEMREV_V16QI): Use the PURE attribute.
11887
11888 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11889
11890 * config/rs6000/darwin.md: Replace the expanders for
11891 load_macho_picbase and reload_macho_picbase with use of '@'
11892 and <mode> in their respective define_insns.
11893 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11894 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11895 Pmode to gen_load_macho_picbase.
11896 * config/rs6000/rs6000.md: Likewise.
11897
11898 2019-09-25 Richard Biener <rguenther@suse.de>
11899
11900 PR tree-optimization/91896
11901 * tree-vect-loop.c (vectorizable_reduction): The single
11902 def-use cycle optimization cannot apply when there's more
11903 than one pattern stmt involved.
11904
11905 2019-09-26 Richard Biener <rguenther@suse.de>
11906
11907 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11908 loop-closed PHIs that are vect_internal_def.
11909 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11910 Simplify.
11911 (vectorizable_lc_phi): New.
11912 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11913 (vect_transform_stmt): Likewise.
11914 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11915 (vectorizable_lc_phi): Declare.
11916
11917 2019-09-26 Richard Biener <rguenther@suse.de>
11918
11919 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11920 vectorizable_reduction for vect_double_reduction_def.
11921 (vect_transform_loop): Likewise.
11922 (vect_create_epilog_for_reduction): Move double-reduction
11923 PHI creation and preheader argument setting of PHIs ...
11924 (vectorizable_reduction): ... here. Also process
11925 vect_double_reduction_def PHIs, creating the vectorized
11926 PHI nodes, remembering the scalar adjustment computed for
11927 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11928 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11929 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11930 Initialize STMT_VINFO_REDUC_CODE.
11931 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11932 (_stmt_vec_info::reduc_code): Likewise.
11933 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11934 (STMT_VINFO_REDUC_CODE): Likewise.
11935
11936 2019-09-26 Matt Turner <mattst88@gmail.com>
11937
11938 PR driver/69471
11939 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11940 (mtune=): Add Negative(mtune=).
11941 (mcpu=): Add Negative(mcpu=).
11942 * config/arm/arm.opt: Likewise.
11943
11944 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11945
11946 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11947 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11948 Define.
11949 * config/arm/arm_acle.h: Define builtins for the above.
11950 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11951 (simd32_op): Handle the above.
11952 * config/arm/unspecs.md: Define unspecs for the above.
11953
11954 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11955
11956 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11957 (arm_<sup>xtb16): Likewise.
11958 (arm_usada8): Likewise.
11959 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11960 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11961 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11962 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11963 __sxtb16, __uxtab16, __uxtb16): Define.
11964 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11965 * config/arm/unspecs.md: Define unspecs for the above.
11966 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11967 (USXTB16): Likewise.
11968 (simd32_op): New int_attribute.
11969 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11970 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11971
11972 2019-09-26 Martin Jambor <mjambor@suse.cz>
11973
11974 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11975 internal_error.
11976
11977 2019-09-26 Martin Jambor <mjambor@suse.cz>
11978
11979 * ipa-sra.c (process_scan_results): Fix continue condition.
11980
11981 2019-09-26 Martin Liska <mliska@suse.cz>
11982
11983 PR tree-optimization/91885
11984 * tree-vectorizer.c (try_vectorize_loop_1): Add
11985 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11986
11987 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11988
11989 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11990 aarch64_plus_immediate rather than aarch64_uimm12_shift
11991 to test for valid PLUS immediates.
11992
11993 2019-09-25 Martin Jambor <mjambor@suse.cz>
11994
11995 * tree-sra.c (no_accesses_p): Remove.
11996 (no_accesses_representant): Likewise.
11997
11998 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11999
12000 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
12001 consistenly.
12002 (vaba_s16): Likewise.
12003 (vaba_s32): Likewise.
12004 (vaba_u8): Likewise.
12005 (vaba_u16): Likewise.
12006 (vaba_u32): Likewise.
12007 (vabal_high_s8): Likewise.
12008 (vabal_high_s16): Likewise.
12009 (vabal_high_s32): Likewise.
12010 (vabal_high_u8): Likewise.
12011 (vabal_high_u16): Likewise.
12012 (vabal_high_u32): Likewise.
12013 (vabal_s8): Likewise.
12014 (vabal_s16): Likewise.
12015 (vabal_s32): Likewise.
12016 (vabal_u8): Likewise.
12017 (vabal_u16): Likewise.
12018 (vabal_u32): Likewise.
12019 (vabaq_s8): Likewise.
12020 (vabaq_s16): Likewise.
12021 (vabaq_s32): Likewise.
12022 (vabaq_u8): Likewise.
12023 (vabaq_u16): Likewise.
12024 (vabaq_u32): Likewise.
12025 (vabd_s8): Likewise.
12026 (vabd_s16): Likewise.
12027 (vabd_s32): Likewise.
12028 (vabd_u8): Likewise.
12029 (vabd_u16): Likewise.
12030 (vabd_u32): Likewise.
12031 (vabdl_high_s8): Likewise.
12032 (vabdl_high_s16): Likewise.
12033 (vabdl_high_s32): Likewise.
12034 (vabdl_high_u8): Likewise.
12035 (vabdl_high_u16): Likewise.
12036 (vabdl_high_u32): Likewise.
12037 (vabdl_s8): Likewise.
12038 (vabdl_s16): Likewise.
12039 (vabdl_s32): Likewise.
12040 (vabdl_u8): Likewise.
12041 (vabdl_u16): Likewise.
12042 (vabdl_u32): Likewise.
12043 (vabdq_s8): Likewise.
12044 (vabdq_s16): Likewise.
12045 (vabdq_s32): Likewise.
12046 (vabdq_u8): Likewise.
12047 (vabdq_u16): Likewise.
12048 (vabdq_u32): Likewise.
12049 (vaddlv_s8): Likewise.
12050 (vaddlv_s16): Likewise.
12051 (vaddlv_u8): Likewise.
12052 (vaddlv_u16): Likewise.
12053 (vaddlvq_s8): Likewise.
12054 (vaddlvq_s16): Likewise.
12055 (vaddlvq_s32): Likewise.
12056 (vaddlvq_u8): Likewise.
12057 (vaddlvq_u16): Likewise.
12058 (vaddlvq_u32): Likewise.
12059 (vcvtx_f32_f64): Likewise.
12060 (vcvtx_high_f32_f64): Likewise.
12061 (vcvtxd_f32_f64): Likewise.
12062 (vmla_n_f32): Likewise.
12063 (vmla_n_s16): Likewise.
12064 (vmla_n_s32): Likewise.
12065 (vmla_n_u16): Likewise.
12066 (vmla_n_u32): Likewise.
12067 (vmla_s8): Likewise.
12068 (vmla_s16): Likewise.
12069 (vmla_s32): Likewise.
12070 (vmla_u8): Likewise.
12071 (vmla_u16): Likewise.
12072 (vmla_u32): Likewise.
12073 (vmlal_high_n_s16): Likewise.
12074 (vmlal_high_n_s32): Likewise.
12075 (vmlal_high_n_u16): Likewise.
12076 (vmlal_high_n_u32): Likewise.
12077 (vmlal_high_s8): Likewise.
12078 (vmlal_high_s16): Likewise.
12079 (vmlal_high_s32): Likewise.
12080 (vmlal_high_u8): Likewise.
12081 (vmlal_high_u16): Likewise.
12082 (vmlal_high_u32): Likewise.
12083 (vmlal_n_s16): Likewise.
12084 (vmlal_n_s32): Likewise.
12085 (vmlal_n_u16): Likewise.
12086 (vmlal_n_u32): Likewise.
12087 (vmlal_s8): Likewise.
12088 (vmlal_s16): Likewise.
12089 (vmlal_s32): Likewise.
12090 (vmlal_u8): Likewise.
12091 (vmlal_u16): Likewise.
12092 (vmlal_u32): Likewise.
12093 (vmlaq_n_f32): Likewise.
12094 (vmlaq_n_s16): Likewise.
12095 (vmlaq_n_s32): Likewise.
12096 (vmlaq_n_u16): Likewise.
12097 (vmlaq_n_u32): Likewise.
12098 (vmlaq_s8): Likewise.
12099 (vmlaq_s16): Likewise.
12100 (vmlaq_s32): Likewise.
12101 (vmlaq_u8): Likewise.
12102 (vmlaq_u16): Likewise.
12103 (vmlaq_u32): Likewise.
12104 (vmls_n_f32): Likewise.
12105 (vmls_n_s16): Likewise.
12106 (vmls_n_s32): Likewise.
12107 (vmls_n_u16): Likewise.
12108 (vmls_n_u32): Likewise.
12109 (vmls_s8): Likewise.
12110 (vmls_s16): Likewise.
12111 (vmls_s32): Likewise.
12112 (vmls_u8): Likewise.
12113 (vmls_u16): Likewise.
12114 (vmls_u32): Likewise.
12115 (vmlsl_high_n_s16): Likewise.
12116 (vmlsl_high_n_s32): Likewise.
12117 (vmlsl_high_n_u16): Likewise.
12118 (vmlsl_high_n_u32): Likewise.
12119 (vmlsl_high_s8): Likewise.
12120 (vmlsl_high_s16): Likewise.
12121 (vmlsl_high_s32): Likewise.
12122 (vmlsl_high_u8): Likewise.
12123 (vmlsl_high_u16): Likewise.
12124 (vmlsl_high_u32): Likewise.
12125 (vmlsl_n_s16): Likewise.
12126 (vmlsl_n_s32): Likewise.
12127 (vmlsl_n_u16): Likewise.
12128 (vmlsl_n_u32): Likewise.
12129 (vmlsl_s8): Likewise.
12130 (vmlsl_s16): Likewise.
12131 (vmlsl_s32): Likewise.
12132 (vmlsl_u8): Likewise.
12133 (vmlsl_u16): Likewise.
12134 (vmlsl_u32): Likewise.
12135 (vmlsq_n_f32): Likewise.
12136 (vmlsq_n_s16): Likewise.
12137 (vmlsq_n_s32): Likewise.
12138 (vmlsq_n_u16): Likewise.
12139 (vmlsq_n_u32): Likewise.
12140 (vmlsq_s8): Likewise.
12141 (vmlsq_s16): Likewise.
12142 (vmlsq_s32): Likewise.
12143 (vmlsq_u8): Likewise.
12144 (vmlsq_u16): Likewise.
12145 (vmlsq_u32): Likewise.
12146 (vmovl_high_s8): Likewise.
12147 (vmovl_high_s16): Likewise.
12148 (vmovl_high_s32): Likewise.
12149 (vmovl_high_u8): Likewise.
12150 (vmovl_high_u16): Likewise.
12151 (vmovl_high_u32): Likewise.
12152 (vmovl_s8): Likewise.
12153 (vmovl_s16): Likewise.
12154 (vmovl_s32): Likewise.
12155 (vmovl_u8): Likewise.
12156 (vmovl_u16): Likewise.
12157 (vmovl_u32): Likewise.
12158 (vmovn_high_s16): Likewise.
12159 (vmovn_high_s32): Likewise.
12160 (vmovn_high_s64): Likewise.
12161 (vmovn_high_u16): Likewise.
12162 (vmovn_high_u32): Likewise.
12163 (vmovn_high_u64): Likewise.
12164 (vmovn_s16): Likewise.
12165 (vmovn_s32): Likewise.
12166 (vmovn_s64): Likewise.
12167 (vmovn_u16): Likewise.
12168 (vmovn_u32): Likewise.
12169 (vmovn_u64): Likewise.
12170 (vmull_high_n_s16): Likewise.
12171 (vmull_high_n_s32): Likewise.
12172 (vmull_high_n_u16): Likewise.
12173 (vmull_high_n_u32): Likewise.
12174 (vmull_high_p8): Likewise.
12175 (vmull_high_s8): Likewise.
12176 (vmull_high_s16): Likewise.
12177 (vmull_high_s32): Likewise.
12178 (vmull_high_u8): Likewise.
12179 (vmull_high_u16): Likewise.
12180 (vmull_high_u32): Likewise.
12181 (vmull_n_s16): Likewise.
12182 (vmull_n_s32): Likewise.
12183 (vmull_n_u16): Likewise.
12184 (vmull_n_u32): Likewise.
12185 (vmull_p8): Likewise.
12186 (vmull_s8): Likewise.
12187 (vmull_s16): Likewise.
12188 (vmull_s32): Likewise.
12189 (vmull_u8): Likewise.
12190 (vmull_u16): Likewise.
12191 (vmull_u32): Likewise.
12192 (vpadal_s8): Likewise.
12193 (vpadal_s16): Likewise.
12194 (vpadal_s32): Likewise.
12195 (vpadal_u8): Likewise.
12196 (vpadal_u16): Likewise.
12197 (vpadal_u32): Likewise.
12198 (vpadalq_s8): Likewise.
12199 (vpadalq_s16): Likewise.
12200 (vpadalq_s32): Likewise.
12201 (vpadalq_u8): Likewise.
12202 (vpadalq_u16): Likewise.
12203 (vpadalq_u32): Likewise.
12204 (vpaddl_s8): Likewise.
12205 (vpaddl_s16): Likewise.
12206 (vpaddl_s32): Likewise.
12207 (vpaddl_u8): Likewise.
12208 (vpaddl_u16): Likewise.
12209 (vpaddl_u32): Likewise.
12210 (vpaddlq_s8): Likewise.
12211 (vpaddlq_s16): Likewise.
12212 (vpaddlq_s32): Likewise.
12213 (vpaddlq_u8): Likewise.
12214 (vpaddlq_u16): Likewise.
12215 (vpaddlq_u32): Likewise.
12216 (vpaddq_s8): Likewise.
12217 (vpaddq_s16): Likewise.
12218 (vpaddq_s32): Likewise.
12219 (vpaddq_s64): Likewise.
12220 (vpaddq_u8): Likewise.
12221 (vpaddq_u16): Likewise.
12222 (vpaddq_u32): Likewise.
12223 (vpaddq_u64): Likewise.
12224 (vqdmulh_n_s16): Likewise.
12225 (vqdmulh_n_s32): Likewise.
12226 (vqdmulhq_n_s16): Likewise.
12227 (vqdmulhq_n_s32): Likewise.
12228 (vqmovn_high_s16): Likewise.
12229 (vqmovn_high_s32): Likewise.
12230 (vqmovn_high_s64): Likewise.
12231 (vqmovn_high_u16): Likewise.
12232 (vqmovn_high_u32): Likewise.
12233 (vqmovn_high_u64): Likewise.
12234 (vqmovun_high_s16): Likewise.
12235 (vqmovun_high_s32): Likewise.
12236 (vqmovun_high_s64): Likewise.
12237 (vqrdmulh_n_s16): Likewise.
12238 (vqrdmulh_n_s32): Likewise.
12239 (vqrdmulhq_n_s16): Likewise.
12240 (vqrdmulhq_n_s32): Likewise.
12241 (vrsqrte_u32): Likewise.
12242 (vrsqrteq_u32): Likewise.
12243 (vtst_p8): Likewise.
12244 (vtst_p16): Likewise.
12245 (vtst_p64): Likewise.
12246 (vtstq_p8): Likewise.
12247 (vtstq_p16): Likewise.
12248 (vtstq_p64): Likewise.
12249 (vaddlv_s32): Likewise.
12250 (vaddlv_u32): Likewise.
12251 (vqtbl1_p8): Likewise.
12252 (vqtbl1_s8): Likewise.
12253 (vqtbl1_u8): Likewise.
12254 (vqtbl1q_p8): Likewise.
12255 (vqtbl1q_s8): Likewise.
12256 (vqtbl1q_u8): Likewise.
12257 (vqtbx1_s8): Likewise.
12258 (vqtbx1_u8): Likewise.
12259 (vqtbx1_p8): Likewise.
12260 (vqtbx1q_s8): Likewise.
12261 (vqtbx1q_u8): Likewise.
12262 (vqtbx1q_p8): Likewise.
12263 (vtbl1_s8): Likewise.
12264 (vtbl1_u8): Likewise.
12265 (vtbl1_p8): Likewise.
12266 (vtbl2_s8): Likewise.
12267 (vtbl2_u8): Likewise.
12268 (vtbl2_p8): Likewise.
12269 (vtbl3_s8): Likewise.
12270 (vtbl3_u8): Likewise.
12271 (vtbl3_p8): Likewise.
12272 (vtbl4_s8): Likewise.
12273 (vtbl4_u8): Likewise.
12274 (vtbl4_p8): Likewise.
12275 (vtbx2_s8): Likewise.
12276 (vtbx2_u8): Likewise.
12277 (vtbx2_p8): Likewise.
12278 (vld1_f32): Likewise.
12279 (vld1_f64): Likewise.
12280 (vld1_p8): Likewise.
12281 (vld1_p16): Likewise.
12282 (vld1_p64): Likewise.
12283 (vld1_s8): Likewise.
12284 (vld1_s16): Likewise.
12285 (vld1_s32): Likewise.
12286 (vld1_s64): Likewise.
12287 (vld1_u8): Likewise.
12288 (vld1_u16): Likewise.
12289 (vld1_u32): Likewise.
12290 (vld1_u64): Likewise.
12291 (vld1q_f32): Likewise.
12292 (vld1q_f64): Likewise.
12293 (vld1q_p8): Likewise.
12294 (vld1q_p16): Likewise.
12295 (vld1q_p64): Likewise.
12296 (vld1q_s8): Likewise.
12297 (vld1q_s16): Likewise.
12298 (vld1q_s32): Likewise.
12299 (vld1q_s64): Likewise.
12300 (vld1q_u8): Likewise.
12301 (vld1q_u16): Likewise.
12302 (vld1q_u32): Likewise.
12303 (vld1q_u64): Likewise.
12304 (vpmax_s8): Likewise.
12305 (vpmax_s16): Likewise.
12306 (vpmax_s32): Likewise.
12307 (vpmax_u8): Likewise.
12308 (vpmax_u16): Likewise.
12309 (vpmax_u32): Likewise.
12310 (vpmaxq_s8): Likewise.
12311 (vpmaxq_s16): Likewise.
12312 (vpmaxq_s32): Likewise.
12313 (vpmaxq_u8): Likewise.
12314 (vpmaxq_u16): Likewise.
12315 (vpmaxq_u32): Likewise.
12316 (vpmax_f32): Likewise.
12317 (vpmaxq_f32): Likewise.
12318 (vpmaxq_f64): Likewise.
12319 (vpmaxqd_f64): Likewise.
12320 (vpmaxs_f32): Likewise.
12321 (vpmaxnm_f32): Likewise.
12322 (vpmaxnmq_f32): Likewise.
12323 (vpmaxnmq_f64): Likewise.
12324 (vpmaxnmqd_f64): Likewise.
12325 (vpmaxnms_f32): Likewise.
12326 (vpmin_s8): Likewise.
12327 (vpmin_s16): Likewise.
12328 (vpmin_s32): Likewise.
12329 (vpmin_u8): Likewise.
12330 (vpmin_u16): Likewise.
12331 (vpmin_u32): Likewise.
12332 (vpminq_s8): Likewise.
12333 (vpminq_s16): Likewise.
12334 (vpminq_s32): Likewise.
12335 (vpminq_u8): Likewise.
12336 (vpminq_u16): Likewise.
12337 (vpminq_u32): Likewise.
12338 (vpmin_f32): Likewise.
12339 (vpminq_f32): Likewise.
12340 (vpminq_f64): Likewise.
12341 (vpminqd_f64): Likewise.
12342 (vpmins_f32): Likewise.
12343 (vpminnm_f32): Likewise.
12344 (vpminnmq_f32): Likewise.
12345 (vpminnmq_f64): Likewise.
12346 (vpminnmqd_f64): Likewise.
12347 (vpminnms_f32): Likewise.
12348 (vmla_f32): Likewise.
12349 (vmlaq_f32): Likewise.
12350 (vmlaq_f64): Likewise.
12351 (vmls_f32): Likewise.
12352 (vmlsq_f32): Likewise.
12353 (vmlsq_f64): Likewise.
12354 (vqtbl2_s8): Likewise.
12355 (vqtbl2_u8): Likewise.
12356 (vqtbl2_p8): Likewise.
12357 (vqtbl2q_s8): Likewise.
12358 (vqtbl2q_u8): Likewise.
12359 (vqtbl2q_p8): Likewise.
12360 (vqtbl3_s8): Likewise.
12361 (vqtbl3_u8): Likewise.
12362 (vqtbl3_p8): Likewise.
12363 (vqtbl3q_s8): Likewise.
12364 (vqtbl3q_u8): Likewise.
12365 (vqtbl3q_p8): Likewise.
12366 (vqtbl4_s8): Likewise.
12367 (vqtbl4_u8): Likewise.
12368 (vqtbl4_p8): Likewise.
12369 (vqtbl4q_s8): Likewise.
12370 (vqtbl4q_u8): Likewise.
12371 (vqtbl4q_p8): Likewise.
12372 (vqtbx2_s8): Likewise.
12373 (vqtbx2_u8): Likewise.
12374 (vqtbx2_p8): Likewise.
12375 (vqtbx2q_s8): Likewise.
12376 (vqtbx2q_u8): Likewise.
12377 (vqtbx2q_p8): Likewise.
12378 (vqtbx3_s8): Likewise.
12379 (vqtbx3_u8): Likewise.
12380 (vqtbx3_p8): Likewise.
12381 (vqtbx3q_s8): Likewise.
12382 (vqtbx3q_u8): Likewise.
12383 (vqtbx3q_p8): Likewise.
12384 (vqtbx4_s8): Likewise.
12385 (vqtbx4_u8): Likewise.
12386 (vqtbx4_p8): Likewise.
12387 (vqtbx4q_s8): Likewise.
12388 (vqtbx4q_u8): Likewise.
12389 (vqtbx4q_p8): Likewise.
12390 (vrev16_p8): Likewise.
12391 (vrev16_s8): Likewise.
12392 (vrev16_u8): Likewise.
12393 (vrev16q_p8): Likewise.
12394 (vrev16q_s8): Likewise.
12395 (vrev16q_u8): Likewise.
12396 (vrev32_p8): Likewise.
12397 (vrev32_p16): Likewise.
12398 (vrev32_s8): Likewise.
12399 (vrev32_s16): Likewise.
12400 (vrev32_u8): Likewise.
12401 (vrev32_u16): Likewise.
12402 (vrev32q_p8): Likewise.
12403 (vrev32q_p16): Likewise.
12404 (vrev32q_s8): Likewise.
12405 (vrev32q_s16): Likewise.
12406 (vrev32q_u8): Likewise.
12407 (vrev32q_u16): Likewise.
12408 (vrev64_f32): Likewise.
12409 (vrev64_p8): Likewise.
12410 (vrev64_p16): Likewise.
12411 (vrev64_s8): Likewise.
12412 (vrev64_s16): Likewise.
12413 (vrev64_s32): Likewise.
12414 (vrev64_u8): Likewise.
12415 (vrev64_u16): Likewise.
12416 (vrev64_u32): Likewise.
12417 (vrev64q_f32): Likewise.
12418 (vrev64q_p8): Likewise.
12419 (vrev64q_p16): Likewise.
12420 (vrev64q_s8): Likewise.
12421 (vrev64q_s16): Likewise.
12422 (vrev64q_s32): Likewise.
12423 (vrev64q_u8): Likewise.
12424 (vrev64q_u16): Likewise.
12425 (vrev64q_u32): Likewise.
12426 (vsha1cq_u32): Likewise.
12427 (vsha1mq_u32): Likewise.
12428 (vsha1pq_u32): Likewise.
12429 (vsha1h_u32): Likewise.
12430 (vsha1su0q_u32): Likewise.
12431 (vsha1su1q_u32): Likewise.
12432 (vsha256hq_u32): Likewise.
12433 (vsha256h2q_u32): Likewise.
12434 (vsha256su0q_u32): Likewise.
12435 (vsha256su1q_u32): Likewise.
12436 (vmull_p64): Likewise.
12437 (vmull_high_p64): Likewise.
12438 (vsqrt_f32): Likewise.
12439 (vsqrtq_f32): Likewise.
12440 (vsqrt_f64): Likewise.
12441 (vsqrtq_f64): Likewise.
12442 (vst1_f32): Likewise.
12443 (vst1_f64): Likewise.
12444 (vst1_p8): Likewise.
12445 (vst1_p16): Likewise.
12446 (vst1_p64): Likewise.
12447 (vst1_s8): Likewise.
12448 (vst1_s16): Likewise.
12449 (vst1_s32): Likewise.
12450 (vst1_s64): Likewise.
12451 (vst1_u8): Likewise.
12452 (vst1_u16): Likewise.
12453 (vst1_u32): Likewise.
12454 (vst1_u64): Likewise.
12455 (vst1q_f32): Likewise.
12456 (vst1q_f64): Likewise.
12457 (vst1q_p8): Likewise.
12458 (vst1q_p16): Likewise.
12459 (vst1q_p64): Likewise.
12460 (vst1q_s8): Likewise.
12461 (vst1q_s16): Likewise.
12462 (vst1q_s32): Likewise.
12463 (vst1q_s64): Likewise.
12464 (vst1q_u8): Likewise.
12465 (vst1q_u16): Likewise.
12466 (vst1q_u32): Likewise.
12467 (vst1q_u64): Likewise.
12468 (vst1_s64_x2): Likewise.
12469 (vst1_u64_x2): Likewise.
12470 (vst1_f64_x2): Likewise.
12471 (vst1_s8_x2): Likewise.
12472 (vst1_p8_x2): Likewise.
12473 (vst1_s16_x2): Likewise.
12474 (vst1_p16_x2): Likewise.
12475 (vst1_s32_x2): Likewise.
12476 (vst1_u8_x2): Likewise.
12477 (vst1_u16_x2): Likewise.
12478 (vst1_u32_x2): Likewise.
12479 (vst1_f16_x2): Likewise.
12480 (vst1_f32_x2): Likewise.
12481 (vst1_p64_x2): Likewise.
12482 (vst1q_s8_x2): Likewise.
12483 (vst1q_p8_x2): Likewise.
12484 (vst1q_s16_x2): Likewise.
12485 (vst1q_p16_x2): Likewise.
12486 (vst1q_s32_x2): Likewise.
12487 (vst1q_s64_x2): Likewise.
12488 (vst1q_u8_x2): Likewise.
12489 (vst1q_u16_x2): Likewise.
12490 (vst1q_u32_x2): Likewise.
12491 (vst1q_u64_x2): Likewise.
12492 (vst1q_f16_x2): Likewise.
12493 (vst1q_f32_x2): Likewise.
12494 (vst1q_f64_x2): Likewise.
12495 (vst1q_p64_x2): Likewise.
12496 (vst1_s64_x3): Likewise.
12497 (vst1_u64_x3): Likewise.
12498 (vst1_f64_x3): Likewise.
12499 (vst1_s8_x3): Likewise.
12500 (vst1_p8_x3): Likewise.
12501 (vst1_s16_x3): Likewise.
12502 (vst1_p16_x3): Likewise.
12503 (vst1_s32_x3): Likewise.
12504 (vst1_u8_x3): Likewise.
12505 (vst1_u16_x3): Likewise.
12506 (vst1_u32_x3): Likewise.
12507 (vst1_f16_x3): Likewise.
12508 (vst1_f32_x3): Likewise.
12509 (vst1_p64_x3): Likewise.
12510 (vst1q_s8_x3): Likewise.
12511 (vst1q_p8_x3): Likewise.
12512 (vst1q_s16_x3): Likewise.
12513 (vst1q_p16_x3): Likewise.
12514 (vst1q_s32_x3): Likewise.
12515 (vst1q_s64_x3): Likewise.
12516 (vst1q_u8_x3): Likewise.
12517 (vst1q_u16_x3): Likewise.
12518 (vst1q_u32_x3): Likewise.
12519 (vst1q_u64_x3): Likewise.
12520 (vst1q_f16_x3): Likewise.
12521 (vst1q_f32_x3): Likewise.
12522 (vst1q_f64_x3): Likewise.
12523 (vst1q_p64_x3): Likewise.
12524 (vst2_s64): Likewise.
12525 (vst2_u64): Likewise.
12526 (vst2_f64): Likewise.
12527 (vst2_s8): Likewise.
12528 (vst2_p8): Likewise.
12529 (vst2_s16): Likewise.
12530 (vst2_p16): Likewise.
12531 (vst2_s32): Likewise.
12532 (vst2_u8): Likewise.
12533 (vst2_u16): Likewise.
12534 (vst2_u32): Likewise.
12535 (vst2_f16): Likewise.
12536 (vst2_f32): Likewise.
12537 (vst2_p64): Likewise.
12538 (vst2q_s8): Likewise.
12539 (vst2q_p8): Likewise.
12540 (vst2q_s16): Likewise.
12541 (vst2q_p16): Likewise.
12542 (vst2q_s32): Likewise.
12543 (vst2q_s64): Likewise.
12544 (vst2q_u8): Likewise.
12545 (vst2q_u16): Likewise.
12546 (vst2q_u32): Likewise.
12547 (vst2q_u64): Likewise.
12548 (vst2q_f16): Likewise.
12549 (vst2q_f32): Likewise.
12550 (vst2q_f64): Likewise.
12551 (vst2q_p64): Likewise.
12552 (vst3_s64): Likewise.
12553 (vst3_u64): Likewise.
12554 (vst3_f64): Likewise.
12555 (vst3_s8): Likewise.
12556 (vst3_p8): Likewise.
12557 (vst3_s16): Likewise.
12558 (vst3_p16): Likewise.
12559 (vst3_s32): Likewise.
12560 (vst3_u8): Likewise.
12561 (vst3_u16): Likewise.
12562 (vst3_u32): Likewise.
12563 (vst3_f16): Likewise.
12564 (vst3_f32): Likewise.
12565 (vst3_p64): Likewise.
12566 (vst3q_s8): Likewise.
12567 (vst3q_p8): Likewise.
12568 (vst3q_s16): Likewise.
12569 (vst3q_p16): Likewise.
12570 (vst3q_s32): Likewise.
12571 (vst3q_s64): Likewise.
12572 (vst3q_u8): Likewise.
12573 (vst3q_u16): Likewise.
12574 (vst3q_u32): Likewise.
12575 (vst3q_u64): Likewise.
12576 (vst3q_f16): Likewise.
12577 (vst3q_f32): Likewise.
12578 (vst3q_f64): Likewise.
12579 (vst3q_p64): Likewise.
12580 (vst4_s64): Likewise.
12581 (vst4_u64): Likewise.
12582 (vst4_f64): Likewise.
12583 (vst4_s8): Likewise.
12584 (vst4_p8): Likewise.
12585 (vst4_s16): Likewise.
12586 (vst4_p16): Likewise.
12587 (vst4_s32): Likewise.
12588 (vst4_u8): Likewise.
12589 (vst4_u16): Likewise.
12590 (vst4_u32): Likewise.
12591 (vst4_f16): Likewise.
12592 (vst4_f32): Likewise.
12593 (vst4_p64): Likewise.
12594 (vst4q_s8): Likewise.
12595 (vst4q_p8): Likewise.
12596 (vst4q_s16): Likewise.
12597 (vst4q_p16): Likewise.
12598 (vst4q_s32): Likewise.
12599 (vst4q_s64): Likewise.
12600 (vst4q_u8): Likewise.
12601 (vst4q_u16): Likewise.
12602 (vst4q_u32): Likewise.
12603 (vst4q_u64): Likewise.
12604 (vst4q_f16): Likewise.
12605 (vst4q_f32): Likewise.
12606 (vst4q_f64): Likewise.
12607 (vst4q_p64): Likewise.
12608 (vtbx4_s8): Likewise.
12609 (vtbx4_u8): Likewise.
12610 (vtbx4_p8): Likewise.
12611 (vtrn_f32): Likewise.
12612 (vtrn_p8): Likewise.
12613 (vtrn_p16): Likewise.
12614 (vtrn_s8): Likewise.
12615 (vtrn_s16): Likewise.
12616 (vtrn_s32): Likewise.
12617 (vtrn_u8): Likewise.
12618 (vtrn_u16): Likewise.
12619 (vtrn_u32): Likewise.
12620 (vtrnq_f32): Likewise.
12621 (vtrnq_p8): Likewise.
12622 (vtrnq_p16): Likewise.
12623 (vtrnq_s8): Likewise.
12624 (vtrnq_s16): Likewise.
12625 (vtrnq_s32): Likewise.
12626 (vtrnq_u8): Likewise.
12627 (vtrnq_u16): Likewise.
12628 (vtrnq_u32): Likewise.
12629 (vrsqrte_f16): Likewise.
12630 (vrsqrteq_f16): Likewise.
12631 (vsqrt_f16): Likewise.
12632 (vsqrtq_f16): Likewise.
12633 (vabd_f16): Likewise.
12634 (vabdq_f16): Likewise.
12635 (vpadd_f16): Likewise.
12636 (vpaddq_f16): Likewise.
12637 (vpmax_f16): Likewise.
12638 (vpmaxq_f16): Likewise.
12639 (vpmaxnm_f16): Likewise.
12640 (vpmaxnmq_f16): Likewise.
12641 (vpmin_f16): Likewise.
12642 (vpminq_f16): Likewise.
12643 (vpminnm_f16): Likewise.
12644 (vpminnmq_f16): Likewise.
12645 (vrsqrts_f16): Likewise.
12646 (vrsqrtsq_f16): Likewise.
12647
12648 2019-09-25 Richard Biener <rguenther@suse.de>
12649
12650 PR tree-optimization/91896
12651 * tree-vect-loop.c (vectorizable_reduction): The single
12652 def-use cycle optimization cannot apply when there's more
12653 than one pattern stmt involved.
12654
12655 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12656
12657 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12658 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12659 (reload_macho_picbase_<mode>): Likewise.
12660
12661 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12662
12663 * config/rs6000/rs6000.md: Move darwin.md include until
12664 after the definition of the mode iterators.
12665
12666 2019-09-23 Martin Sebor <msebor@redhat.com>
12667
12668 PR tree-optimization/91570
12669 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12670 non-constant minlen, maxlen and maxbound.
12671
12672 2019-09-24 Richard Biener <rguenther@suse.de>
12673
12674 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12675 Rename to...
12676 (_stmt_vec_info::cond_reduc_code): ... this.
12677 (_stmt_vec_info::induc_cond_initial_val): Add.
12678 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12679 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12680 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12681 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12682 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12683 the reduction code.
12684 (vect_create_epilog_for_reduction): Drop special
12685 induction condition reduction params, pass in reduction code
12686 and simplify.
12687 (vectorizable_reduction): Perform condition reduction kind
12688 selection only at analysis time. Adjust passing on state.
12689
12690 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12691
12692 * config/aarch64/aarch64.md (mov<mode>): Don't call
12693 aarch64_split_dimode_const_store on volatile MEM.
12694
12695 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12696
12697 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12698 Update hwcap string for fp16fml.
12699
12700 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12701
12702 PR middle-end/91866
12703 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12704 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12705
12706 2019-09-24 Martin Liska <mliska@suse.cz>
12707
12708 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12709 instead of if-elseif-elseif-...
12710 * gimple-expr.c (extract_ops_from_tree): Likewise.
12711 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12712 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12713
12714 2019-09-24 Martin Jambor <mjambor@suse.cz>
12715
12716 PR ipa/91831
12717 * ipa-param-manipulation.c (carry_over_param): Make a method of
12718 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12719 in case of a context mismatch.
12720 (ipa_param_body_adjustments::common_initialization): Adjust call to
12721 carry_over_param.
12722 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12723 private method carry_over_param.
12724
12725 2019-09-24 Martin Jambor <mjambor@suse.cz>
12726
12727 PR ipa/91832
12728 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12729
12730 2019-09-24 Richard Biener <rguenther@suse.de>
12731
12732 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12733 base.
12734
12735 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12736
12737 * config/arm/t-arm (arm-builtins.o): Add dependency on
12738 arm_acle_builtins.def.
12739
12740 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12741
12742 PR target/91823
12743 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12744 canonical CONST_INTs. Use gen_rtvec.
12745
12746 2019-09-23 Richard Biener <rguenther@suse.de>
12747
12748 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12749 avoid adjusting by + 0 or * 1.
12750 (vect_create_epilog_for_reduction): Get reduction code only
12751 when necessary. Deal with adjustment_def only when necessary.
12752
12753 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12754
12755 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12756 memmodel index.
12757
12758 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12759
12760 PR ipa/91835
12761 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12762 "ipa-sra".
12763
12764 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12765
12766 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12767 code. Merge code blocks with common conditionals. Use declared
12768 macro instead of a magic number for PIC level.
12769
12770 2019-09-21 Martin Sebor <msebor@redhat.com>
12771
12772 PR middle-end/91830
12773 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12774 Simplify computation of the offset of the referenced subobject.
12775
12776 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12777
12778 * config/darwin.c (machopic_legitimize_pic_address): Check
12779 for lra not reload.
12780
12781 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12782
12783 * ira-conflicts.c (can_use_same_reg_p): New function.
12784 (process_reg_shuffles): Take an insn parameter. Ignore cases
12785 in which input operand op_num could seemingly never be allocated
12786 to the same register as the destination.
12787 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12788
12789 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12790
12791 * simplify-rtx.c (neg_const_int): Replace with...
12792 (neg_poly_int_rtx): ...this new function.
12793 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12794 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12795 (simplify_plus_minus): Likewise for constant terms here.
12796
12797 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12798
12799 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12800 HOST_WIDE_PRINT_UNSIGNED.
12801
12802 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12803
12804 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12805 character.
12806
12807 2019-09-20 Maya Rashish <coypu@sdf.org>
12808
12809 PR target/86811
12810 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12811 Define to speculation_safe_value_not_needed.
12812
12813 2019-09-20 Richard Biener <rguenther@suse.de>
12814 Uros Bizjak <ubizjak@gmail.com>
12815
12816 PR target/91814
12817 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12818 previous change.
12819 (general_scalar_chain::convert_op): Force not suitable memory
12820 operands to a register.
12821
12822 2019-09-20 Richard Biener <rguenther@suse.de>
12823
12824 PR tree-optimization/91821
12825 * tree-vect-loop.c (check_reduction_path): Check we can compute
12826 reduc_idx.
12827 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12828 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12829 operands in canonical order.
12830 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12831 STMT_VINFO_REDUC_IDX.
12832 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12833 (STMT_VINFO_REDUC_IDX): Likewise.
12834
12835 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12836
12837 PR target/91269
12838 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12839
12840 2019-09-20 Richard Biener <rguenther@suse.de>
12841
12842 PR tree-optimization/91822
12843 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12844 parameter.
12845 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12846 for reduc_index in nested cycles, adjust vectorizable_condition
12847 calls.
12848 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12849 parameter.
12850 (vect_analyze_stmt): Adjust.
12851 (vect_transform_stmt): Likewise.
12852
12853 2019-09-20 Richard Biener <rguenther@suse.de>
12854
12855 PR target/91767
12856 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12857 Ensure there's a sequence point between allocating the new register
12858 and passing a reference to a reg via regno_reg_rtx.
12859
12860 2019-09-20 Martin Jambor <mjambor@suse.cz>
12861
12862 * coretypes.h (cgraph_edge): Declare.
12863 * ipa-param-manipulation.c: Rewrite.
12864 * ipa-param-manipulation.h: Likewise.
12865 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12866 (OBJS): Added ipa-sra.o.
12867 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12868 and ref_p, added fields param_adjustments and performed_splits.
12869 (struct cgraph_clone_info): Remove ags_to_skip and
12870 combined_args_to_skip, new field param_adjustments.
12871 (cgraph_node::create_clone): Changed parameters to use
12872 ipa_param_adjustments.
12873 (cgraph_node::create_virtual_clone): Likewise.
12874 (cgraph_node::create_virtual_clone_with_body): Likewise.
12875 (tree_function_versioning): Likewise.
12876 (cgraph_build_function_type_skip_args): Removed.
12877 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12878 using ipa_param_adjustments.
12879 (clone_of_p): Likewise.
12880 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12881 (build_function_decl_skip_args): Likewise.
12882 (duplicate_thunk_for_node): Adjust parameters using
12883 ipa_param_body_adjustments, copy param_adjustments instead of
12884 args_to_skip.
12885 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12886 (cgraph_node::create_virtual_clone): Likewise.
12887 (cgraph_node::create_version_clone_with_body): Likewise.
12888 (cgraph_materialize_clone): Likewise.
12889 (symbol_table::materialize_all_clones): Likewise.
12890 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12891 ipa_replace_map check.
12892 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12893 (initialize_node_lattices): Make aware that some parameters might have
12894 already been removed.
12895 (want_remove_some_param_p): New function.
12896 (create_specialized_node): Convert to using ipa_param_adjustments and
12897 deal with possibly pre-existing adjustments.
12898 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12899 (output_node_opt_summary): Do not stream removed fields. Stream
12900 parameter adjustments instead of argumetns to skip.
12901 (input_node_opt_summary): Likewise.
12902 (input_node_opt_summary): Likewise.
12903 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12904 * lto-streamer.h (lto_section_type): Likewise.
12905 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12906 param_body_adjs.
12907 (copy_decl_to_var): Declare.
12908 * tree-inline.c (update_clone_info): Do not remap old_tree.
12909 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12910 statements, walk all extra generated statements and remap their
12911 operands.
12912 (redirect_all_calls): Add killed SSA names to a hash set.
12913 (remap_ssa_name): Do not remap killed SSA names.
12914 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12915 half of functionality moved to ipa_param_body_adjustments.
12916 (copy_decl_to_var): Make exported.
12917 (copy_body): Destroy killed_new_ssa_names hash set.
12918 (expand_call_inline): Remap performed splits.
12919 (update_clone_info): Likewise.
12920 (tree_function_versioning): Simplify tree_map processing. Updated to
12921 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12922 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12923 for the new interface.
12924 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12925 (simd_clone_compute_base_data_type): Likewise.
12926 (simd_clone_init_simd_arrays): Adjust for the new interface.
12927 (simd_clone_adjust_argument_types): Likewise.
12928 (struct modify_stmt_info): Likewise.
12929 (ipa_simd_modify_stmt_ops): Likewise.
12930 (ipa_simd_modify_function_body): Likewise.
12931 (simd_clone_adjust): Likewise.
12932 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12933 (type_internals_preclude_sra_p): Make public.
12934 * tree-sra.h: New file.
12935 * ipa-inline-transform.c (save_inline_function_body): Update to
12936 refelct new tree_function_versioning signature.
12937 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12938 ipa_param_adjustments to get current parameter indices.
12939 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12940 (ipcp_update_bits): Likewise.
12941 (ipcp_update_vr): Likewise.
12942 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12943 * ipa-sra.c: New file.
12944 * multiple_target.c (create_target_clone): Update to reflet new type
12945 of create_version_clone_with_body.
12946 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12947 tree_function_versioning.
12948 (modify_function): Update to reflect new type of
12949 tree_function_versioning.
12950 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12951 * passes.def: Remove old IPA-SRA and add new one.
12952 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12953 (make_pass_ipa_sra): Declare.
12954 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12955 ipa_sra_retvalues.
12956 * doc/invoke.texi (ipa-sra-max-replacements): New.
12957
12958 2019-09-19 Martin Sebor <msebor@redhat.com>
12959
12960 PR middle-end/91631
12961 * builtins.c (component_size): Correct trailing array computation,
12962 rename to component_ref_size and move...
12963 (compute_objsize): Adjust.
12964 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12965 (builtin_access::strict): Do not consider memmove.
12966 (builtin_access::write_off): New function.
12967 (builtin_memref::builtin_memref): Initialize refsize.
12968 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12969 refsize.
12970 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12971 Handle refsize.
12972 (builtin_access::builtin_access): Initialize dstoff to destination
12973 refeence offset here instead of in maybe_diag_overlap. Adjust
12974 referencess even to unrelated objects. Adjust sizrange of bounded
12975 string functions to reflect bound. For strcat, adjust destination
12976 sizrange by that of source.
12977 (builtin_access::strcat_overlap): Adjust offsets and sizes
12978 to reflect the increase in destination sizrange above.
12979 (builtin_access::overlap): Do not set dstoff here but instead
12980 in builtin_access::builtin_access.
12981 (check_bounds_or_overlap): Use builtin_access::write_off.
12982 (maybe_diag_access_bounds): Add argument. Add informational notes.
12983 (dump_builtin_memref, dump_builtin_access): New functions.
12984 * tree.c (component_ref_size): ...to here.
12985 * tree.h (component_ref_size): Declare.
12986 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12987 nul in the size of the source string.
12988
12989 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12990
12991 PR c/67224
12992 * doc/cpp.texi: Document support for extended characters in
12993 identifiers.
12994 * doc/cppopts.texi: Likewise.
12995
12996 2019-09-19 Richard Biener <rguenther@suse.de>
12997
12998 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12999 (check_reduction_path): New overload having the path as result.
13000 (vect_is_simple_reduction): From the detected reduction
13001 path build a SLP reduction chain if possible.
13002
13003 2019-09-19 Richard Biener <rguenther@suse.de>
13004
13005 PR target/91814
13006 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
13007 Force operand to a register if it isn't nonimmediate_operand.
13008
13009 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
13010
13011 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
13012 * config/arm/iterators.md (optab): Add and, ior, xor entries.
13013 (logical_op): Remove code attribute.
13014 (logical_OP): Likewise.
13015
13016 2019-09-19 Martin Liska <mliska@suse.cz>
13017
13018 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
13019 Use proper casting.
13020
13021 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
13022
13023 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
13024 registers with %R.
13025
13026 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
13027 for NE comparison of TImode values.
13028 (aarch64_emit_load_exclusive): Add support for TImode.
13029 (aarch64_emit_store_exclusive): Likewise.
13030 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
13031 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
13032 Change iterator from ALLI to ALLI_TI.
13033 (@atomic_compare_and_swap<JUST_TI>): New.
13034 (@atomic_compare_and_swap<JUST_TI>_lse): New.
13035 (aarch64_load_exclusive_pair): New.
13036 (aarch64_store_exclusive_pair): New.
13037 * config/aarch64/iterators.md (JUST_TI): New.
13038
13039 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
13040 strong_zero_p for aarch64_track_speculation; unify some code paths;
13041 use aarch64_gen_compare_reg instead of open-coding.
13042
13043 * config/aarch64/aarch64.opt (-moutline-atomics): New.
13044 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
13045 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
13046 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
13047 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
13048 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
13049 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
13050 (atomic_<atomic_op><ALLI>): Likewise.
13051 (atomic_fetch_<atomic_op><ALLI>): Likewise.
13052 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
13053 * doc/invoke.texi: Document -moutline-atomics.
13054
13055 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
13056
13057 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
13058 trivial predicate for condition branch.
13059 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
13060 for switch case.
13061 (compute_bb_predicates): Update predicate based on post-dominating
13062 relationship.
13063 (analyze_function_body): Calculate post-dominating information.
13064
13065 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
13066
13067 * tree-vectorizer.h (vectorizable_condition): Take an int
13068 reduction index instead of a boolean flag.
13069 * tree-vect-stmts.c (vectorizable_condition): Likewise.
13070 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
13071 reductions if the reduction accumulator is the "then" rather
13072 than the "else" value.
13073 (vect_analyze_stmt): Update call accordingly.
13074 (vect_transform_stmt): Likewise.
13075 * tree-vect-loop.c (vectorizable_reduction): Likewise,
13076 asserting that the index is > 0.
13077
13078 2019-09-19 Martin Liska <mliska@suse.cz>
13079
13080 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
13081 (sort_congruence_classes_by_decl_uid): Likewise.
13082 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
13083 easier sorting.
13084 (sem_item_optimizer::merge_classes): Likewise.
13085
13086 2019-09-19 Richard Biener <rguenther@suse.de>
13087
13088 PR tree-optimization/91812
13089 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
13090 volatile loads.
13091
13092 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
13093
13094 * defaults.h (TARGET_UNIT): New macro.
13095 (target_unit): New type.
13096 * rtl.h (native_encode_rtx, native_decode_rtx)
13097 (native_decode_vector_rtx, subreg_size_lsb): Declare.
13098 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
13099 * rtlanal.c (subreg_lsb_1): Delete.
13100 (subreg_size_lsb): New function.
13101 * simplify-rtx.c: Include rtx-vector-builder.h
13102 (simplify_immed_subreg): Delete.
13103 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
13104 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
13105 functions.
13106 (simplify_subreg): Use them.
13107 (test_vector_subregs_modes, test_vector_subregs_repeating)
13108 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
13109 (test_vector_subregs): New functions.
13110 (test_vector_ops): Call test_vector_subregs for integer vector
13111 modes with at least 2 elements.
13112
13113 2019-09-19 Richard Biener <rguenther@suse.de>
13114
13115 * tree-parloops.c (parloops_is_slp_reduction): Do not set
13116 LOOP_VINFO_OPERANDS_SWAPPED.
13117 (parloops_is_simple_reduction): Likewise.
13118 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
13119 initialize operands_swapped.
13120 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
13121 (vect_is_slp_reduction): Do not swap operands.
13122 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
13123 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
13124
13125 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
13126
13127 PR target/87007
13128 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
13129 Add avx_partial_xmm_update.
13130
13131 2019-09-18 Jim Wilson <jimw@sifive.com>
13132
13133 PR target/91683
13134 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
13135 (riscv_move_integer): Likewise.
13136 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
13137 riscv_move_integer arg.
13138 (riscv_legitimize_move): Likewise.
13139 (riscv_force_temporary): New parameter in_splitter. Don't call
13140 force_reg if true.
13141 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
13142 arg.
13143 (riscv_add_offset): Likewise.
13144 (riscv_split_symbol): New parameter in_splitter. Pass to
13145 riscv_force_temporary.
13146 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
13147 arg.
13148 (riscv_move_integer): New parameter in_splitter. New local
13149 can_create_psuedo. Don't call riscv_split_integer or force_reg when
13150 in_splitter TRUE.
13151 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
13152 riscv_split_symbol, and riscv_force_temporary args.
13153 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
13154 riscv_move_integer arg.
13155 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
13156
13157 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13158
13159 PR target/90878
13160 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
13161 hard register store cost to 6.
13162
13163 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
13164
13165 PR target/91446
13166 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
13167 pseudo register store cost from 3 to 6 to make it the same as
13168 QImode and HImode.
13169
13170 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13171
13172 PR target/91738
13173 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
13174 (one_cmpldi2): Likewise.
13175 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
13176 of the constant parts is simple.
13177 * config/arm/iterators.md (LOGICAL): Add new code iterator.
13178 (logical_op): Add new code attribute.
13179 (logical_OP): Likewise.
13180 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
13181 (arm_iordi_operand): Add predicate.
13182 (arm_xordi_operand): Add predicate.
13183
13184 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13185
13186 * config/arm/arm.md (maddsidi4): Remove expander.
13187 (mulsidi3adddi): Remove pattern.
13188 (mulsidi3adddi_v6): Likewise.
13189 (mulsidi3_nov6): Likewise.
13190 (mulsidi3_v6): Likewise.
13191 (umulsidi3): Remove expander.
13192 (umulsidi3_nov6): Remove pattern.
13193 (umulsidi3_v6): Likewise.
13194 (umulsidi3adddi): Likewise.
13195 (umulsidi3adddi_v6): Likewise.
13196 (<Us>mulsidi3): Add combined expander.
13197 (<Us>maddsidi4): Likewise.
13198 (<US>mull): Add combined umull and smull pattern.
13199 (<US>mlal): Likewise.
13200 * config/arm/iterators.md (Us): Add new iterator.
13201
13202 2019-09-18 Richard Biener <rguenther@suse.de>
13203
13204 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
13205 swapping.
13206 (vectorize_fold_left_reduction): Remove assert.
13207 (vectorizable_reduction): Also expect COND_EXPR non-reduction
13208 operand in position 2. Remove assert.
13209
13210 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13211
13212 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
13213 (smulsi3_highpart_nov6): Remove pattern.
13214 (smulsi3_highpart_v6): Likewise.
13215 (umulsi3_highpart): Likewise.
13216 (umulsi3_highpart_nov6): Likewise.
13217 (umulsi3_highpart_v6): Likewise.
13218 (<US>mull_high): Add new combined multiply pattern.
13219
13220 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
13221
13222 * config/arm/arm.md (arm_mulsi3): Remove pattern.
13223 (arm_mulsi3_v6): Likewise.
13224 (mulsi3addsi_v6): Likewise.
13225 (mulsi3subsi): Likewise.
13226 (mul): Add new multiply pattern.
13227 (mla): Likewise.
13228 (mls): Likewise.
13229
13230 2019-09-18 Richard Biener <rguenther@suse.de>
13231
13232 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
13233 (parloops_valid_reduction_input_p): Copy from
13234 valid_reduction_input_p.
13235 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
13236 (parloops_needs_fold_left_reduction_p): Copy from
13237 needs_fold_left_reduction_p.
13238 (parloops_is_simple_reduction): Copy from
13239 vect_is_simple_reduction.
13240 (parloops_force_simple_reduction): Copy from
13241 vect_force_simple_reduction.
13242 (gather_scalar_reductions): Adjust.
13243 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
13244 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
13245
13246 2019-09-18 Richard Biener <rguenther@suse.de>
13247
13248 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
13249 * tree-vect-loop.c (get_initial_def_for_reduction): Make
13250 static.
13251 (vect_create_epilog_for_reduction): Remove dead code.
13252
13253 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13254
13255 * varasm.c (assemble_real): Generate canonical const_ints.
13256
13257 2019-09-18 Richard Biener <rguenther@suse.de>
13258
13259 PR lto/91763
13260 * lto-streamer-in.c (input_eh_regions): Move EH init to
13261 lto_materialize_function.
13262 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
13263 Likewise.
13264
13265 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13266
13267 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
13268 are INTEGER_CSTs.
13269
13270 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13271
13272 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
13273 of checking specifically for INTEGER_CST.
13274
13275 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13276
13277 * stor-layout.c (compute_record_mode): Operate on poly_uint64
13278 sizes instead of uhwi sizes.
13279
13280 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
13281
13282 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
13283 (add_const_value_attribute): Handle CONST_POLY_INT.
13284
13285 2019-09-18 Martin Liska <mliska@suse.cz>
13286
13287 * dbgcnt.def (store_merging): New counter.
13288 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
13289 Use it in store merging.
13290
13291 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13292
13293 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
13294 function.
13295 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13296 * config/arm/arm.c (arm_sched_variable_issue): New function.
13297 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
13298
13299 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13300
13301 * config/arm/types.md (no_reservation): New reservation.
13302 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
13303 no_insn here.
13304 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
13305 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
13306 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
13307 * config/arm/arm1020e.md (1020alu_op): Likewise.
13308 * config/arm/arm1026ejs.md (alu_op): Likewise.
13309 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13310 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13311 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13312 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
13313 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13314 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13315 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
13316 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
13317 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13318 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13319 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13320 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
13321 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
13322 * config/arm/fa526.md (526_alu_op): Likewise.
13323 * config/arm/fa606te.md (606te_alu_op): Likewise.
13324 * config/arm/fa626te.md (626te_alu_op): Likewise.
13325 * config/arm/fa726te.md (726te_alu_op): Likewise.
13326 * config/arm/xgene1.md (xgene1_nop): Likewise.
13327
13328 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13329
13330 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
13331 "no_insn" to "branch".
13332
13333 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
13334
13335 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
13336
13337 2019-09-17 Richard Biener <rguenther@suse.de>
13338
13339 PR debug/91772
13340 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
13341 was missing generate locations only once.
13342
13343 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
13344
13345 PR ipa/91089
13346 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
13347 option.
13348 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
13349 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
13350 for switch default case using range analysis information.
13351
13352 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
13353
13354 PR target/91749
13355 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
13356 mode attributed is supported by FDPIC.
13357
13358 2019-09-17 Richard Biener <rguenther@suse.de>
13359
13360 PR tree-optimization/91790
13361 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
13362 use the correct DR for setting up realignment.
13363
13364 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
13365
13366 PR target/91719
13367 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
13368 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
13369 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
13370 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
13371
13372 2019-09-16 Jason Merrill <jason@redhat.com>
13373
13374 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
13375
13376 2019-09-16 Martin Liska <mliska@suse.cz>
13377
13378 * gimple-fold.c (or_comparisons_1): Remove rules moved
13379 to ...
13380 * match.pd: ... here.
13381
13382 2019-09-16 Martin Liska <mliska@suse.cz>
13383
13384 * gimple-fold.c (or_comparisons_1): Remove rules
13385 moved to ...
13386 * match.pd: ... here.
13387
13388 2019-09-16 Martin Liska <mliska@suse.cz>
13389
13390 * genmatch.c (dt_node::append_simplify): Do not print
13391 warning when we have duplicate patterns belonging
13392 to a same simplify rule.
13393 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
13394 (maybe_fold_comparisons_from_match_pd): Handle
13395 tcc_comparison as a results.
13396 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
13397
13398 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13399 Qi Feng <ffengqi@linux.ibm.com>
13400
13401 PR middle-end/88784
13402 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
13403 (x > y && x == XXX_MIN): Optimize into 'false'.
13404 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
13405 (x < y && x != XXX_MAX): Optimize into 'x < y'.
13406 (x < y && x == XXX_MAX): Optimize into 'false'.
13407 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
13408 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
13409 (x <= y || x != XXX_MIN): Optimize into 'true'.
13410 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
13411 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
13412 (x >= y || x != XXX_MAX): Optimize into 'true'.
13413 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
13414
13415 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13416 Martin Liska <mliska@suse.cz>
13417
13418 * gimple-fold.c (and_comparisons_1): Add type as first
13419 argument.
13420 (and_var_with_comparison): Likewise.
13421 (and_var_with_comparison_1): Likewise.
13422 (or_comparisons_1): Likewise.
13423 (or_var_with_comparison): Likewise.
13424 (or_var_with_comparison_1): Likewise.
13425 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
13426 (maybe_fold_or_comparisons): Likewise.
13427 (maybe_fold_comparisons_from_match_pd): New.
13428 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
13429 (maybe_fold_or_comparisons): Likewise.
13430 * gimple.c (gimple_size): Make it public and add num_ops argument.
13431 (gimple_init): New function.
13432 (gimple_alloc): Call gimple_init.
13433 * gimple.h (gimple_size): New.
13434 (gimple_init): Likewise.
13435 * tree-if-conv.c (fold_or_predicates): Pass type.
13436 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13437 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
13438 (optimize_vec_cond_expr): Likewise.
13439 (ovce_extract_ops): Return type of conditional expression.
13440 * tree-ssanames.c (init_ssa_name_imm_use): New.
13441 (make_ssa_name_fn): Use init_ssa_name_imm_use.
13442 * tree-ssanames.h (init_ssa_name_imm_use): New.
13443
13444 2019-09-16 Richard Biener <rguenther@suse.de>
13445
13446 PR tree-optimization/91756
13447 PR tree-optimization/87132
13448 * tree-ssa-alias.h (enum translate_flags): New.
13449 (get_continuation_for_phi): Use it instead of simple bool flag.
13450 (walk_non_aliased_vuses): Likewise.
13451 * tree-ssa-alias.c (maybe_skip_until): Adjust.
13452 (get_continuation_for_phi): When looking across backedges only
13453 disallow valueization.
13454 (walk_non_aliased_vuses): Adjust.
13455 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
13456 if requested.
13457
13458 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
13459
13460 PR middle-end/80791
13461 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
13462 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13463 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13464 * target.def (have_count_reg_decr_p): New hook.
13465 (doloop_cost_for_generic): Likewise.
13466 (doloop_cost_for_address): Likewise.
13467 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
13468 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13469 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13470 * doc/tm.texi: Regenerate.
13471 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
13472 addend.
13473 (record_group): Init doloop_p.
13474 (add_candidate_1): Add optional argument doloop, change the handlings
13475 accordingly.
13476 (add_candidate): Likewise.
13477 (generic_predict_doloop_p): Update attribute.
13478 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
13479 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
13480 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
13481 MIN_EXPR.
13482 (get_computation_cost): Update for doloop IV cand extra cost.
13483 (determine_group_iv_cost_cond): Update for doloop IV cand.
13484 (determine_iv_cost): Likewise.
13485 (ivopts_estimate_reg_pressure): Likewise.
13486 (may_eliminate_iv): Update handlings for doloop IV cand.
13487 (add_iv_candidate_for_doloop): New function.
13488 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13489 (iv_ca_set_no_cp): Update for doloop IV cand.
13490 (iv_ca_set_cp): Likewise.
13491 (iv_ca_dump): Dump register cost.
13492 (find_doloop_use): New function.
13493 (analyze_and_mark_doloop_use): Likewise.
13494 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13495
13496 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13497
13498 PR middle-end/91708
13499 * cse.c (cse_insn): Do not replace anything with a
13500 MEM.
13501
13502 2019-09-13 Ian Lance Taylor <iant@golang.org>
13503
13504 * doc/invoke.texi (Optimize Options): Fix typo.
13505
13506 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
13507
13508 PR tree-optimization/89386
13509 * config/i386/sse.md (smulhrs<mode>3): New expander.
13510 (smulhrsv4hi3): Ditto.
13511
13512 2019-09-12 Richard Biener <rguenther@suse.de>
13513
13514 PR tree-optimization/91750
13515 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13516 in the type of the evolution.
13517
13518 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
13519
13520 PR tree-optimization/89386
13521 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13522 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13523 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13524 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13525 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13526 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13527 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13528 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13529 (su, r): Handle the unspecs above.
13530 (bt): New int attribute.
13531 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13532 * internal-fn.c (first_commutative_argument): Commutativity info for
13533 above.
13534 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13535 (umulhrs_optab): New optabs.
13536 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13537 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13538 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13539 function.
13540 (vect_vect_recog_func_ptrs): Add it.
13541
13542 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
13543
13544 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13545 code.
13546
13547 2019-09-11 Nathan Sidwell <nathan@acm.org>
13548
13549 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13550 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13551
13552 2019-09-11 Richard Biener <rguenther@suse.de>
13553
13554 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13555 * lto-wrapper.c (merge_and_complain): Pick up -g.
13556 (append_compiler_options): Likewise.
13557 (run_gcc): Re-instantiate handling -g0 at link-time.
13558 * doc/invoke.texi (flto): Document debug info generation.
13559
13560 2019-09-11 Richard Biener <rguenther@suse.de>
13561
13562 PR tree-optimization/90387
13563 * vr-values.c (vr_values::extract_range_basic): After inlining
13564 simplify non-constant __builtin_constant_p to false.
13565
13566 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13567
13568 PR rtl-optimization/89795
13569 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13570 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13571
13572 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13573
13574 PR tree-optimization/91723
13575 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13576 instead of pointer equality when checking if argument vectypes are
13577 the same.
13578
13579 PR middle-end/91725
13580 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13581 of get_nonzero_bits, only call it for integral types.
13582
13583 2019-09-11 Richard Biener <rguenther@suse.de>
13584
13585 Revert
13586 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13587
13588 * match.pd: Add flag_unsafe_math_optimizations check
13589 before deciding on the widest type in a binary math operation.
13590
13591 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13592
13593 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13594 and CALL_REALLY_USED_REGISTERS must be defined, and that
13595 CALL_REALLY_USED_REGISTERS is preferred.
13596 * doc/tm.texi: Regenerate.
13597 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13598 (call_really_used_regs): Likewise.
13599 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13600 CALL_REALLY_USED_REGISTERS are defined.
13601 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13602 initial value if defined.
13603 (initial_call_really_used_regs): Delete.
13604 (saved_call_really_used_regs): Likewise.
13605 (CALL_REALLY_USED_REGNO_P): Likewise.
13606 (init_reg_sets): Remove handling of call_really_used_regs.
13607 (save_register_info, restore_register_info, globalize_reg): Likewise.
13608 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13609 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13610 outside operand_reg_set.
13611 (fix_register): Don't change call_used_regs if
13612 CALL_REALLY_USED_REGISTERS is defined.
13613 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13614 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13615 instead of call_really_used_regs.
13616 (csky_conditional_register_usage): Remove the old handling of
13617 call_used_regs and change the handling of call_really_used_regs
13618 to use call_used_regs instead.
13619 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13620 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13621 making a register fixed.
13622 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13623 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13624 instead of call_really_used_regs.
13625 (m32r_conditional_register_usage): Don't set call_used_regs when
13626 making a register fixed.
13627 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13628 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13629 instead of call_really_used_regs.
13630 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13631 (mips_cfun_call_saved_reg_p): Likewise.
13632 (mips_swap_registers): Remove the old handling of call_used_regs
13633 and change the handling of call_really_used_regs to use call_used_regs
13634 instead.
13635 (mips_conditional_register_usage): Likewise.
13636 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13637 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13638 instead of call_really_used_regs.
13639 (mn10300_get_live_callee_saved_regs): Likewise.
13640 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13641 (mn10300_conditional_register_usage): Don't set call_used_regs when
13642 making a register fixed.
13643 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13644 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13645 Remove the old handling of call_used_regs and change the handling
13646 of call_really_used_regs to use call_used_regs instead.
13647 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13648 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13649 instead of call_really_used_regs.
13650 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13651 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13652 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13653 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13654 (s390_conditional_register_usage): Remove the old handling of
13655 call_used_regs and change the handling of call_really_used_regs
13656 to use call_used_regs instead.
13657 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13658 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13659 (sh_fix_range, reg_unused_after): Likewise.
13660 (sh_conditional_register_usage): Remove the old handling of
13661 call_used_regs and change the handling of call_really_used_regs
13662 to use call_used_regs instead.
13663 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13664 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13665 call_used_regs when making a register fixed.
13666 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13667 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13668 call_used_regs when making a register fixed.
13669 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13670 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13671 set call_used_regs when making a register fixed.
13672 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13673 * config/visium/visium.c (visium_conditional_register_usage): Remove
13674 the old handling of call_used_regs and change the handling of
13675 call_really_used_regs to use call_used_regs instead.
13676
13677 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13678
13679 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13680 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13681 * reginfo.c (call_used_regs): New macro.
13682
13683 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13684
13685 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13686 fixed_regs test.
13687 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13688 (bpf_expand_epilogue): Likewise.
13689 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13690 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13691 (ft32_expand_epilogue): Likewise.
13692 * config/i386/i386.c (ix86_save_reg): Likewise.
13693 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13694 (moxie_expand_epilogue): Likewise.
13695 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13696 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13697 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13698
13699 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13700
13701 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13702 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13703 instead of testing call_used_regs directly.
13704 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13705 (aarch64_components_for_bb): Likewise.
13706 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13707 * config/arc/arc.c (arc_must_save_register): Likewise.
13708 (arc_epilogue_uses): Likewise.
13709 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13710 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13711 (arm_compute_save_reg0_reg12_mask): Likewise.
13712 (arm_compute_save_core_reg_mask): Likewise.
13713 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13714 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13715 (cmse_nonsecure_entry_clear_before_return): Likewise.
13716 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13717 (arm_expand_epilogue): Likewise.
13718 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13719 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13720 (_reg_unused_after): Likewise.
13721 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13722 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13723 (add_to_reg, hwloop_optimize): Likewise.
13724 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13725 (bpf_expand_epilogue): Likewise.
13726 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13727 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13728 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13729 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13730 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13731 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13732 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13733 * config/frv/frv.c (frv_stack_info): Likewise.
13734 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13735 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13736 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13737 (move_callee_saved_registers): Likewise.
13738 * config/h8300/h8300.c (byte_reg): Likewise.
13739 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13740 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13741 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13742 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13743 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13744 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13745 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13746 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13747 * config/m32c/m32c.c (need_to_save): Likewise.
13748 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13749 * config/mcore/mcore.c (calc_live_regs): Likewise.
13750 * config/microblaze/microblaze.c (microblaze_must_save_register):
13751 Likewise.
13752 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13753 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13754 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13755 (mmix_expand_epilogue): Likewise.
13756 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13757 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13758 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13759 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13760 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13761 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13762 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13763 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13764 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13765 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13766 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13767 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13768 * config/rl78/rl78.c (need_to_save): Likewise.
13769 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13770 (rs6000_stack_info, generate_set_vrsave): Likewise.
13771 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13772 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13773 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13774 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13775 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13776 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13777 (save_local_or_in_reg_p): Likewise.
13778 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13779 (xstormy16_epilogue_uses): Likewise.
13780 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13781 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13782 * config/v850/v850.c (compute_register_save_size): Likewise.
13783 * config/vax/vax.c (vax_expand_prologue): Likewise.
13784 * config/visium/visium.c (visium_save_reg_p): Likewise.
13785 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13786 * cselib.c (cselib_process_insn): Likewise.
13787 * df-scan.c (df_get_entry_block_def_set): Likewise.
13788 * function.c (aggregate_value_p): Likewise.
13789 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13790 * ira-lives.c (process_bb_node_lives): Likewise.
13791 * ira.c (do_reload): Likewise.
13792 * lra-lives.c (process_bb_lives): Likewise.
13793 * lra-remat.c (lra_remat): Likewise.
13794 * lra.c (lra): Likewise.
13795 * postreload.c (reload_combine_recognize_pattern): Likewise.
13796 (reload_cse_move2add): Likewise.
13797 * recog.c (peep2_find_free_register): Likewise.
13798 * regrename.c (check_new_reg_p): Likewise.
13799 * reload.c (find_equiv_reg): Likewise.
13800 * reload1.c (reload, find_reg): Likewise.
13801 * sel-sched.c (init_hard_regs_data): Likewise.
13802
13803 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13804
13805 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13806 regs_invalidated_by_call & ~fixed_reg_set instead of
13807 call_used_or_fixed_regs & ~fixed_reg_set.
13808 * config/sh/sh.c (output_stack_adjust): Likewise.
13809
13810 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13811
13812 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13813 (call_used_reg_set): Delete.
13814 (call_used_or_fixed_regs): New macro.
13815 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13816 of call_used_reg_set.
13817 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13818 instead of call_used_regs.
13819 (save_call_clobbered_regs): Likewise.
13820 * cfgcleanup.c (old_insns_match_p): Likewise.
13821 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13822 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13823 Likewise.
13824 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13825 * config/sh/sh.c (output_stack_adjust): Likewise.
13826 * final.c (collect_fn_hard_reg_usage): Likewise.
13827 * ira-build.c (ira_build): Likewise.
13828 * ira-color.c (calculate_saved_nregs): Likewise.
13829 (allocno_reload_assign, calculate_spill_cost): Likewise.
13830 * ira-conflicts.c (ira_build_conflicts): Likewise.
13831 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13832 * ira-lives.c (process_bb_node_lives): Likewise.
13833 * ira.c (setup_reg_renumber): Likewise.
13834 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13835 * lra-constraints.c (need_for_call_save_p): Likewise.
13836 (need_for_split_p, inherit_in_ebb): Likewise.
13837 * lra-lives.c (process_bb_lives): Likewise.
13838 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13839 * postreload.c (reload_combine): Likewise.
13840 * regrename.c (find_rename_reg): Likewise.
13841 * reload1.c (reload_as_needed): Likewise.
13842 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13843 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13844 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13845
13846 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13847
13848 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13849 (no_caller_save_reg_set): Delete.
13850 * caller-save.c (init_caller_save): Don't initialize it.
13851 * ira-conflicts.c (ira_build_conflicts): Calculate
13852 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13853
13854 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13855
13856 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13857 (target_hard_regs::x_savable_regs): New field.
13858 (call_fixed_reg_set): Delete.
13859 (savable_regs): New macro,
13860 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13861 (init_reg_sets_1): Likewise. Initialize savable_regs.
13862 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13863 for all registers. Set savable_regs instead of call_fixed_reg_set.
13864 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13865 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13866 * config/sh/sh.c (output_stack_adjust): Likewise.
13867
13868 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13869
13870 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13871 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13872 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13873
13874 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13875
13876 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13877 * rtlanal.c (get_call_rtx_from): Likewise.
13878 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13879 than the pattern to get_call_rtx_from.
13880 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13881 an rtx_insn * instead of an rtx.
13882 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13883
13884 2019-09-10 Martin Liska <mliska@suse.cz>
13885
13886 * common.opt: Use newly added WarnRemoved.
13887 * config/aarch64/aarch64.opt: Likewise.
13888 * config/arm/arm.opt: Likewise.
13889 * config/i386/i386.opt: Likewise.
13890 * config/ia64/ia64.opt: Likewise.
13891 * config/rs6000/rs6000.opt: Likewise.
13892 * doc/options.texi: Document WarnRemoved properly.
13893 * dwarf2out.c (gen_producer_string): Handle renamed
13894 OPT_SPECIAL_warn_removed.
13895 * lto-opts.c (lto_write_options): Likewise.
13896 * lto-wrapper.c (merge_and_complain): Likewise.
13897 * opts-common.c (decode_cmdline_option): Likewise.
13898 (prune_options): Likewise.
13899 (read_cmdline_option): Likewise.
13900 (control_warning_option): Likewise.
13901 * opts.c (print_filtered_help): Likewise.
13902 * optc-gen.awk: Parse for WarnRemoved and make usage
13903 of Deprecated an error.
13904 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13905
13906 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13907
13908 * doc/install.texi: Fix syntax for html generation.
13909
13910 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13911
13912 PR middle-end/91680
13913 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13914 the shift type to type.
13915
13916 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13917
13918 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13919 FDPIC mode.
13920 (stack_protect_combined_test_insn): Likewise.
13921
13922 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13923 Mickaël Guêné <mickael.guene@st.com>
13924
13925 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13926 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13927 (load_tp_soft_fdpic): New pattern.
13928 (load_tp_soft): Disable in FDPIC mode.
13929
13930 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13931 Mickaël Guêné <mickael.guene@st.com>
13932
13933 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13934 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13935 (arm_call_tls_get_addr): Add FDPIC support.
13936 (legitimize_tls_address): Likewise.
13937 (arm_emit_tls_decoration): Likewise.
13938
13939 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13940 Mickaël Guêné <mickael.guene@st.com>
13941
13942 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13943 support.
13944 (arm_trampoline_init): Likewise.
13945 (arm_trampoline_adjust_address): Likewise.
13946 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13947
13948 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13949 Mickaël Guêné <mickael.guene@st.com>
13950
13951 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13952 (legitimize_pic_address): Enforce binding rules on function
13953 pointers in FDPIC mode.
13954 (arm_assemble_integer): Likewise.
13955
13956 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13957 Mickaël Guêné <mickael.guene@st.com>
13958
13959 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13960 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13961 FDPIC.
13962
13963 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13964 Mickaël Guêné <mickael.guene@st.com>
13965
13966 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13967 field.
13968
13969 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13970 Mickaël Guêné <mickael.guene@st.com>
13971
13972 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13973 in FDPIC mode.
13974 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13975 new function.
13976 * config/arm/arm.c (arm_option_override): Define pic register to
13977 FDPIC_REGNUM.
13978 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13979 have no decl or go through PLT.
13980 (calculate_pic_address_constant): New function.
13981 (legitimize_pic_address): Call calculate_pic_address_constant.
13982 (arm_load_pic_register): Handle TARGET_FDPIC.
13983 (arm_is_segment_info_known): New function.
13984 (arm_pic_static_addr): Add support for FDPIC.
13985 (arm_load_function_descriptor): New function.
13986 (arm_emit_call_insn): Add support for FDPIC.
13987 (arm_assemble_integer): Add support for FDPIC.
13988 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13989 Define. (FDPIC_REGNUM): New define.
13990 * config/arm/arm.md (call): Add support for FDPIC.
13991 (call_value): Likewise.
13992 (restore_pic_register_after_call): New pattern.
13993 (untyped_call): Disable if FDPIC.
13994 (untyped_return): Likewise.
13995 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13996
13997 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13998 Mickaël Guêné <mickael.guene@st.com>
13999
14000 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
14001 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
14002 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
14003 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
14004 (CC1_SPEC): Use FDPIC_CC1_SPEC.
14005 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
14006 * config/arm/uclinuxfdpiceabi.h: New file.
14007
14008 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14009
14010 * config.gcc: Handle *-*-uclinuxfdpiceabi.
14011
14012 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
14013 Mickaël Guêné <mickael.guene@st.com>
14014
14015 * config/arm/arm.opt: Add -mfdpic option.
14016 * doc/invoke.texi: Add documentation for -mfdpic.
14017
14018 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
14019
14020 * expmed.c (extract_bit_field): Update function comment
14021 regarding alt_rtl.
14022 * expr.c (expand_expr_real): Update function comment
14023 regarding alt_rtl.
14024 (expand_misaligned_mem_ref): New helper function.
14025 (expand_expr_real_2): Use expand_misaligned_mem_ref.
14026 Remove duplicate assignment to "base" at case MEM_REF.
14027 Remove a shadowed variable "unsignedp" at case VCE.
14028
14029 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14030
14031 * regset.h (regs_invalidated_by_call_regset): Delete.
14032 (fixed_reg_set_regset): Likewise.
14033 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
14034 (fixed_reg_set_regset, persistent_obstack): Likewise.
14035 (init_reg_sets_1, globalize_reg): Update accordingly.
14036 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
14037 instead of a bitmap.
14038 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
14039 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
14040 instead of regs_invalidated_by_call_regset.
14041 (df_lr_confluence_n, df_md_confluence_n): Likewise.
14042 * df-scan.c (df_scan_start_dump): Likewise.
14043 * dse.c (copy_fixed_regs): Likewise.
14044 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
14045
14046 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14047
14048 * array-traits.h: New file.
14049 * coretypes.h (array_traits, bitmap_view): New types.
14050 * bitmap.h: Include "array-traits.h"
14051 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14052 (base_bitmap_view, bitmap_view): New classes.
14053 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
14054 * hard-reg-set.h: Include array-traits.h.
14055 (array_traits<HARD_REG_SET>): New struct.
14056 * regset.h (IOR_REG_SET_HRS): New macro.
14057 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
14058 rather than iterating over each hard register.
14059 * sched-deps.c (sched_analyze_insn): Likewise.
14060 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
14061
14062 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14063
14064 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
14065 instead of a HARD_REG_SET *.
14066 * ira-build.c (ior_hard_reg_conflicts): Likewise.
14067 (ira_build): Update call accordingly.
14068 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
14069
14070 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14071
14072 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
14073 (HARD_REG_SET::operator!=): Likewise.
14074 (hard_reg_set_equal_p): Delete.
14075 * cfgcleanup.c (old_insns_match_p): Use == instead of
14076 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
14077 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
14078 (add_allocno_hard_regs_to_forest): Likewise.
14079 (setup_allocno_available_regs_num): Likewise.
14080 * ira.c (setup_pressure_classes): Likewise.
14081 (setup_allocno_and_important_classes): Likewise.
14082 (setup_reg_class_relations): Likewise.
14083 * lra-lives.c (process_bb_lives): Likewise.
14084 * reg-stack.c (change_stack, convert_regs_1): Likewise.
14085
14086 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14087
14088 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
14089 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
14090 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
14091 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
14092 Likewise.
14093 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
14094 * ira.c (setup_reg_renumber): Likewise.
14095 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14096 * regrename.c (regrename_find_superclass): Likewise.
14097 * reload1.c (find_reg): Likewise.
14098
14099 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14100
14101 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
14102 * caller-save.c (setup_save_areas): Use "&~" instead of
14103 AND_COMPL_HARD_REG_SET.
14104 (save_call_clobbered_regs): Likewise.
14105 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
14106 Likewise.
14107 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14108 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14109 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
14110 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14111 (mips_conditional_register_usage): Likewise.
14112 * config/sh/sh.c (output_stack_adjust): Likewise.
14113 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
14114 (setup_profitable_hard_regs): Likewise.
14115 (get_conflict_and_start_profitable_regs): Likewise.
14116 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14117 (ira_build_conflicts): Likewise.
14118 * ira-costs.c (restrict_cost_classes): Likewise.
14119 (setup_regno_cost_classes_by_aclass): Likewise.
14120 * ira-lives.c (process_bb_node_lives): Likewise.
14121 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
14122 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
14123 (setup_allocno_and_important_classes, setup_class_translate_array)
14124 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
14125 Likewise.
14126 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14127 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14128 (process_alt_operands, inherit_in_ebb): Likewise.
14129 * lra-eliminations.c (update_reg_eliminate): Likewise.
14130 * lra-lives.c (process_bb_lives): Likewise.
14131 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
14132 * resource.c (find_dead_or_set_registers): Likewise.
14133 (mark_target_live_regs): Likewise.
14134 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
14135 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14136 (implicit_clobber_conflict_p): Likewise.
14137 * shrink-wrap.c (requires_stack_frame_p): Likewise.
14138 (try_shrink_wrapping): Likewise.
14139
14140 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14141
14142 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
14143 (HARD_REG_SET::operator|=): Likewise.
14144 (IOR_HARD_REG_SET): Delete.
14145 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
14146 IOR_HARD_REG_SET.
14147 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14148 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
14149 * final.c (collect_fn_hard_reg_usage): Likewise.
14150 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
14151 * ira-build.c (merge_hard_reg_conflicts): Likewise.
14152 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
14153 (propagate_some_info_from_allocno): Likewise.
14154 (copy_info_to_removed_store_destinations): Likewise.
14155 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
14156 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
14157 (fast_allocation): Likewise.
14158 * ira-conflicts.c (ira_build_conflicts): Likewise.
14159 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
14160 (process_bb_node_lives): Likewise.
14161 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
14162 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14163 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14164 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
14165 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
14166 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
14167 (process_bb_lives): Likewise.
14168 * lra-spills.c (assign_spill_hard_regs): Likewise.
14169 * postreload.c (reload_combine): Likewise.
14170 * reginfo.c (init_reg_sets_1): Likewise.
14171 * regrename.c (merge_overlapping_regs, find_rename_reg)
14172 (merge_chains): Likewise.
14173 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
14174 (find_reload_regs, finish_spills, choose_reload_regs_init)
14175 (emit_reload_insns): Likewise.
14176 * reorg.c (redundant_insn): Likewise.
14177 * resource.c (find_dead_or_set_registers, mark_set_resources)
14178 (mark_target_live_regs): Likewise.
14179 * rtlanal.c (find_all_hard_reg_sets): Likewise.
14180 * sched-deps.c (sched_analyze_insn): Likewise.
14181 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14182 (find_best_reg_for_expr): Likewise.
14183 * shrink-wrap.c (try_shrink_wrapping): Likewise.
14184
14185 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14186
14187 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
14188 (HARD_REG_SET::operator&): Likewise.
14189 (AND_HARD_REG_SET): Delete.
14190 * caller-save.c (setup_save_areas): Use "&" instead of
14191 AND_HARD_REG_SET.
14192 (save_call_clobbered_regs): Likewise.
14193 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14194 * config/m32c/m32c.c (reduce_class): Likewise.
14195 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14196 * final.c (get_call_reg_set_usage): Likewise.
14197 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
14198 (setup_left_conflict_sizes_p): Likewise.
14199 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14200 (ira_build_conflicts): Likewise.
14201 * ira-costs.c (restrict_cost_classes): Likewise.
14202 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
14203 (setup_reg_class_relations): Likewise.
14204 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
14205 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
14206 * resource.c (find_dead_or_set_registers): Likewise.
14207 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14208
14209 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14210
14211 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
14212 (COMPL_HARD_REG_SET): Delete.
14213 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
14214 of COMPL_HARD_REG_SET.
14215 (try_rename_operands): Likewise.
14216 * config/sh/sh.c (push_regs): Likewise.
14217 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14218 * lra-constraints.c (contains_reg_p): Likewise.
14219 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
14220
14221 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14222
14223 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
14224 * caller-save.c (save_call_clobbered_regs): Use assignment instead
14225 of COPY_HARD_REG_SET.
14226 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
14227 (epiphany_conditional_register_usage): Likewise.
14228 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
14229 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14230 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14231 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
14232 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
14233 * config/mips/mips.c (mips_class_max_nregs): Likewise.
14234 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
14235 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
14236 * config/sh/sh.c (output_stack_adjust): Likewise.
14237 * final.c (collect_fn_hard_reg_usage): Likewise.
14238 (get_call_reg_set_usage): Likewise.
14239 * ira-build.c (ira_create_object, remove_low_level_allocnos)
14240 (ira_flattening): Likewise.
14241 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
14242 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
14243 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
14244 (ira_reassign_pseudos): Likewise.
14245 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14246 (ira_build_conflicts): Likewise.
14247 * ira-costs.c (restrict_cost_classes): Likewise.
14248 (setup_regno_cost_classes_by_aclass): Likewise.
14249 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
14250 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
14251 (setup_stack_reg_pressure_class, setup_pressure_classes)
14252 (setup_allocno_and_important_classes, setup_class_translate_array)
14253 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
14254 (ira_setup_eliminable_regset): Likewise.
14255 * lra-assigns.c (find_hard_regno_for_1): Likewise.
14256 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
14257 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
14258 (process_alt_operands, inherit_in_ebb): Likewise.
14259 * lra-lives.c (process_bb_lives): Likewise.
14260 * lra-spills.c (assign_spill_hard_regs): Likewise.
14261 * lra.c (lra): Likewise.
14262 * mode-switching.c (new_seginfo): Likewise.
14263 * postreload.c (reload_combine): Likewise.
14264 * reg-stack.c (straighten_stack): Likewise.
14265 * reginfo.c (save_register_info, restore_register_info): Likewise.
14266 (init_reg_sets_1, record_subregs_of_mode): Likewise
14267 * regrename.c (create_new_chain, rename_chains): Likewise.
14268 * reload1.c (order_regs_for_reload, find_reg): Likewise.
14269 (find_reload_regs): Likewise.
14270 * resource.c (find_dead_or_set_registers): Likewise.
14271 (mark_target_live_regs): Likewise.
14272 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14273
14274 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14275
14276 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
14277 (note_pattern_stores): Declare.
14278 (note_stores): Take an rtx_insn *.
14279 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
14280 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
14281 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
14282 (note_stores): Take an rtx_insn * as argument and process
14283 CALL_INSN_FUNCTION_USAGE. Rename old function to...
14284 (note_pattern_stores): ...this.
14285 (find_first_parameter_load): Pass the insn rather than
14286 its pattern to note_stores.
14287 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
14288 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
14289 (insert_one_insn): Likewise.
14290 * combine.c (combine_instructions): Likewise.
14291 (likely_spilled_retval_p): Likewise.
14292 (try_combine): Use note_pattern_stores instead of note_stores.
14293 (record_dead_and_set_regs): Pass the insn rather than its pattern
14294 to note_stores.
14295 (reg_dead_at_p): Likewise.
14296 * config/bfin/bfin.c (workaround_speculation): Likewise.
14297 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
14298 rather than an rtx.
14299 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
14300 instead of note_stores.
14301 (frv_optimize_membar_local): Pass the insn rather than its pattern
14302 to note_stores.
14303 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
14304 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
14305 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
14306 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
14307 (mips_reorg_process_insns): Likewise.
14308 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
14309 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
14310 rather than rtxes.
14311 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
14312 its pattern to note_stores.
14313 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
14314 of note_stores.
14315 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
14316 the insn to note_stores.
14317 (prescan_insns_for_dce): Update call accordingly.
14318 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
14319 to note_stores.
14320 * df-problems.c (can_move_insns_across): Likewise.
14321 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
14322 * function.c (assign_parm_setup_reg): Likewise.
14323 * gcse-common.c (record_last_mem_set_info_common): Likewise.
14324 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
14325 (single_set_gcse): Likewise.
14326 * ira.c (validate_equiv_mem): Likewise.
14327 (update_equiv_regs): Use note_pattern_stores rather than note_stores
14328 for no_equiv.
14329 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
14330 pattern to note_stores.
14331 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
14332 * loop-iv.c (simplify_using_initial_values): Likewise.
14333 * mode-switching.c (optimize_mode_switching): Likewise.
14334 * optabs.c (emit_libcall_block_1): Likewise.
14335 (expand_atomic_compare_and_swap): Likewise.
14336 * postreload-gcse.c (load_killed_in_block_p): Likewise.
14337 (record_opr_changes): Likewise. Remove explicit handling of
14338 CALL_INSN_FUNCTION_USAGE.
14339 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
14340 * regcprop.c (kill_clobbered_values): Likewise.
14341 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
14342 to note_stores.
14343 * regrename.c (build_def_use): Likewise.
14344 * reload1.c (reload): Use note_pattern_stores instead of note_stores
14345 for mark_not_eliminable.
14346 (reload_as_needed): Pass the insn rather than its pattern
14347 to note_stores.
14348 (emit_output_reload_insns): Likewise.
14349 * resource.c (mark_target_live_regs): Likewise.
14350 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
14351 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
14352 instead of note_stores.
14353 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
14354 its pattern to note_stores.
14355 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
14356 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
14357
14358 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14359
14360 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
14361 than a #define. Use a structure rather than an array as the
14362 fallback definition. Remove special cases for low array sizes.
14363 (const_hard_reg_set): New typedef.
14364 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
14365 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
14366 (hard_reg_set_empty_p): Likewise.
14367 (SET_HARD_REG_BIT): Use a function rather than a macro to
14368 handle the case in which HARD_REG_SET is a structure.
14369 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
14370 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
14371 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
14372 (IOR_COMPL_HARD_REG_SET): Likewise.
14373 (hard_reg_set_iterator::pset): Constify the pointer target.
14374 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
14375 of a "const HARD_REG_SET". Update the handling of non-integer
14376 HARD_REG_SETs.
14377 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
14378 * reload.h: Likewise.
14379 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
14380 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
14381 of a "const HARD_REG_SET".
14382 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
14383 (range_in_hard_reg_set_p): Likewise.
14384 * ira-costs.c (restrict_cost_classes): Likewise.
14385 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
14386 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14387 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
14388 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
14389 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
14390 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
14391 take an unsigned int and open-code the HARD_REG_SET operations.
14392
14393 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
14394
14395 * Makefile.in (OBJS): Remove bt-load.o.
14396 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
14397 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14398 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
14399 document that the option no longer does anything.
14400 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
14401 * target.def (branch_target_register_class): Delete.
14402 (branch_target_register_callee_saved): Likewise.
14403 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
14404 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
14405 * doc/tm.texi: Regenerate.
14406 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
14407 (make_pass_branch_target_load_optimize2): Likewise.
14408 * passes.def (pass_branch_target_load_optimize1): Likewise.
14409 (pass_branch_target_load_optimize2): Likewise.
14410 * targhooks.h (default_branch_target_register_class): Likewise.
14411 * targhooks.c (default_branch_target_register_class): Likewise.
14412 * opt-suggestions.c (test_completion_valid_options): Remove
14413 -fbtr-bb-exclusive from the list of test options.
14414 * bt-load.c: Remove.
14415
14416 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
14417
14418 * match.pd: Add flag_unsafe_math_optimizations check
14419 before deciding on the widest type in a binary math operation.
14420
14421 2019-09-09 Martin Liska <mliska@suse.cz>
14422
14423 * config/i386/i386.opt: Update comment of removed
14424 options that are preserved only for backward
14425 compatibility.
14426
14427 2019-09-09 Jakub Jelinek <jakub@redhat.com>
14428
14429 PR target/87853
14430 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
14431 instead of __v16qs.
14432
14433 PR target/91704
14434 * config/i386/avxintrin.h (__v32qs): New typedef.
14435 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
14436 instead of __v32qi.
14437
14438 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14439
14440 * doc/invoke.texi (Option Summary): Cover eBPF.
14441 (eBPF Options): New section.
14442 * doc/extend.texi (BPF Built-in Functions): Likewise.
14443 (BPF Kernel Helpers): Likewise.
14444
14445 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14446
14447 * config.gcc: Support for bpf-*-* targets.
14448 * common/config/bpf/bpf-common.c: New file.
14449 * config/bpf/t-bpf: Likewise.
14450 * config/bpf/predicates.md: Likewise.
14451 * config/bpf/constraints.md: Likewise.
14452 * config/bpf/bpf.opt: Likewise.
14453 * config/bpf/bpf.md: Likewise.
14454 * config/bpf/bpf.h: Likewise.
14455 * config/bpf/bpf.c: Likewise.
14456 * config/bpf/bpf-protos.h: Likewise.
14457 * config/bpf/bpf-opts.h: Likewise.
14458 * config/bpf/bpf-helpers.h: Likewise.
14459 * config/bpf/bpf-helpers.def: Likewise.
14460
14461 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14462
14463 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14464 indirect_calls.
14465
14466 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14467
14468 * opt-functions.awk (integer_range_info): Make sure values are in
14469 numeric context before operating with them.
14470
14471 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
14472
14473 * genemit.c (gen_split): Print the filename and line number where the
14474 splitter (or peephole2) was defined, to the dump file.
14475
14476 2019-09-07 Jakub Jelinek <jakub@redhat.com>
14477
14478 PR tree-optimization/91665
14479 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
14480 incompatible with the type of PHI result.
14481
14482 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14483
14484 PR target/91684
14485 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
14486 gen_unaligned_storedi for 4-byte aligned addresses.
14487
14488 2019-09-06 Jim Wilson <jimw@sifive.com>
14489
14490 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14491 change.
14492
14493 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14494
14495 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14496
14497 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14498
14499 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14500 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14501
14502 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
14503
14504 PR target/91654
14505 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14506 cost of SSE->integer and integer->SSE moves from 2 to 6.
14507 (core_cost): Ditto.
14508
14509 2019-09-06 Jakub Jelinek <jakub@redhat.com>
14510
14511 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14512 before testing TYPE_TRANSPARENT_AGGR.
14513 * calls.c (initialize_argument_information, load_register_parameters):
14514 Likewise.
14515
14516 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
14517
14518 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14519 high regs.
14520 (cmp_ior): Likewise.
14521
14522 2019-09-06 Martin Liska <mliska@suse.cz>
14523
14524 * doc/match-and-simplify.texi: Separate tuples with ;.
14525
14526 2019-09-06 Martin Liska <mliska@suse.cz>
14527
14528 PR c++/91125
14529 * Makefile.in: Remove tlink.o.
14530 * collect2.c (do_link): New function isolated
14531 from do_tlink.
14532 (main): Use.
14533 * collect2.h (do_tlink): Remove declaration of do_tlink.
14534 * doc/extend.texi: Remove documentation of -frepo.
14535 * doc/invoke.texi: Likewise.
14536 * doc/sourcebuild.texi: Remove cleanup-repo-files.
14537 * tlink.c: Remove.
14538
14539 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14540 Jim Wilson <jimw@sifive.com>
14541
14542 PR target/91635
14543 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14544 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14545 paradoxical_subreg_p (operands[0]).
14546 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14547 use as intermediate value.
14548
14549 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
14550
14551 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14552 (sync_compare_and_swap<mode>_insn): Likewise.
14553
14554 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14555
14556 PR middle-end/91615
14557 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14558 without movmisalign optab.
14559
14560 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14561
14562 PR middle-end/91001
14563 PR middle-end/91105
14564 PR middle-end/91106
14565 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14566 types, use type of their first field instead of type of
14567 args[i].tree_value.
14568
14569 2019-09-05 Richard Biener <rguenther@suse.de>
14570
14571 PR rtl-optimization/91656
14572 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14573 of early out.
14574
14575 2019-09-05 Richard Biener <rguenther@suse.de>
14576
14577 PR middle-end/90501
14578 * tree-inline.c (declare_return_variable): Mark the return
14579 slot as addressable after building an address of it.
14580
14581 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14582
14583 * doc/install.texi: Update and clarify requirements to build GNAT.
14584
14585 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14586
14587 PR middle-end/91577
14588 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14589 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14590 call to be in memory.
14591 (pass_expand::execute): Call discover_nonconstant_array_refs before
14592 setting currently_expanding_to_rtl.
14593
14594 2019-09-04 Caroline Tice <cmtice@google.com>
14595
14596 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14597 specified together.
14598
14599 2019-09-04 Marek Polacek <polacek@redhat.com>
14600
14601 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14602
14603 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14604
14605 PR target/32413
14606 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14607 for QI and HImode moves between SSE and general registers.
14608
14609 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14610
14611 PR c/78736
14612 * doc/invoke.texi: Document -Wenum-conversion.
14613
14614 2019-09-04 Richard Biener <rguenther@suse.de>
14615
14616 PR rtl-optimization/36262
14617 * postreload-gcse.c: Include intl.h and gcse.h.
14618 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14619 to avoid linear list walk.
14620 (record_last_mem_set_info): Gate off if not computing transparentness.
14621 (get_bb_avail_insn): If transparentness isn't computed give up
14622 early.
14623 (gcse_after_reload_main): Skip compute_transp and extended PRE
14624 if gcse_or_cprop_is_too_expensive says so.
14625
14626 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14627
14628 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14629 noinit section.
14630 (msp430_select_section): Handle decls with the "noinit" attribute with
14631 default_elf_select_section.
14632 Handle SECCAT_RODATA_MERGE_* section types with
14633 default_elf_select_section.
14634 Add comments about handling of unsupported section types.
14635 (msp430_section_type_flags): Remove handling of the noinit section.
14636
14637 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14638
14639 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14640 conflicting msp430-specific attributes.
14641 (msp430_section_attr): Likewise.
14642 Add warnings about conflicts with generic "noinit" and "section"
14643 attributes.
14644 Fix grammar in -mlarge error message.
14645 (msp430_data_attr): Rename to msp430_persist_attr.
14646 Add warnings about conflicts with generic "noinit" and "section"
14647 attributes.
14648 Add warning for when variable is not initialized.
14649 Chain conditionals which prevent the attribute being added.
14650 (ATTR_EXCL): New helper.
14651 (attr_reent_exclusions): New exclusion table.
14652 (attr_naked_exclusions): Likewise.
14653 (attr_crit_exclusions): Likewise.
14654 (attr_lower_exclusions): Likewise.
14655 (attr_upper_exclusions): Likewise.
14656 (attr_either_exclusions): Likewise.
14657 (attr_persist_exclusions): Likewise.
14658 (msp430_attribute_table): Update with exclusion rules.
14659 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14660 has a section.
14661
14662 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14663
14664 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14665 (msp430_handle_generic_attribute): New function.
14666 * doc/tm.texi: Regenerate.
14667 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14668 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14669 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14670 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14671
14672 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14673
14674 PR tree-optimization/91504
14675 * match.pd: Add ((~a & b) ^a) --> (a | b).
14676
14677 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14678
14679 PR target/91604
14680 * config/i386/i386-expand.c (split_double_mode): If there is more than
14681 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14682 already split matching MEM operand instead of calling adjust_address
14683 again.
14684
14685 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14686
14687 * config.gcc: Obsolete spu target. Remove references to spu.
14688 * configure.ac: Remove references to spu.
14689 * configure: Regenerate.
14690 * config/spu/: Remove directory.
14691 * common/config/spu/: Remove directory.
14692
14693 * doc/extend.texi: Remove references to spu.
14694 * doc/invoke.texi: Likewise.
14695 * doc/md.texi: Likewise.
14696 * doc/sourcebuild.texi: Likewise.
14697
14698 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14699
14700 PR middle-end/91603
14701 PR middle-end/91612
14702 PR middle-end/91613
14703 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14704 and SSA_NAME referring to CONSTANT_P correctly.
14705
14706 2019-09-03 Richard Biener <rguenther@suse.de>
14707
14708 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14709 (vn_nary_op_insert): Likewise.
14710 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14711 (vn_nary_op_lookup): Likewise.
14712 (vn_nary_op_insert): Likewise.
14713
14714 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14715
14716 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14717 (*op0, 1) instead of XEXP (*op1, 0).
14718
14719 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14720
14721 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14722 (aarch64_fjcvtzs): New define_insn.
14723 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14724 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14725 Add AARCH64_JSCVT.
14726 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14727 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14728 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14729 __ARM_FEATURE_JCVT where appropriate.
14730 * config/aarch64/arm_acle.h (__jcvt): Define.
14731
14732 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14733
14734 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14735 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14736 (aarch64_<frintnzs_op><mode>): New define_insn.
14737 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14738 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14739 __ARM_FEATURE_FRINT when appropriate.
14740 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14741 frint32x, frint64z, frint64x.
14742 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14743 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14744 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14745 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14746 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14747 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14748 * config/aarch64/iterators.md (VSFDF): Define.
14749 (FRINTNZX): Likewise.
14750 (frintnzs_op): Likewise.
14751
14752 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14753
14754 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14755 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14756 Cortex-A34.
14757 * config/aarch64/aarch64-tune.md: Regenerated.
14758 * doc/invoke.texi: Document the new processors.
14759
14760 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14761
14762 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14763 string.
14764 (ssbs): Likewise.
14765 (sve2): Likewise.
14766 (sve2-sm4): Likewise.
14767 (sveaes): Likewise.
14768 (svesha3): Likewise.
14769 (svebitperm): Likewise.
14770
14771 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14772 Richard Biener <rguenther@suse.de>
14773
14774 PR tree-optimization/91597
14775 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14776 BIT_AND_EXPR optimization for pointers, even if both operand
14777 ranges don't include NULL, the result can be NULL.
14778
14779 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14780
14781 PR middle-end/91605
14782 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14783 (non_mem_decl_p): ...this.
14784 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14785 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14786 unconditionally as before.
14787
14788 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14789
14790 PR target/91323
14791 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14792 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14793 * tree.def (LTGT_EXPR): Likewise.
14794 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14795
14796 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14797
14798 PR go/91617
14799 * fold-const.c (range_check_type): For enumeral and boolean
14800 type, pass 1 to type_for_size langhook instead of
14801 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14802 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14803 (build_range_check): Don't call unsigned_type_for for pointer types.
14804 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14805 range_check_type result.
14806
14807 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14808
14809 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14810 (replace_ref): Do not replace a chain of only two candidates which are
14811 valid memory references.
14812
14813 2019-09-02 Martin Liska <mliska@suse.cz>
14814
14815 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14816 Bail out when we'll end up with the same number of clusters as
14817 at the beginning.
14818 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14819 (jump_table_cluster::can_be_handled): Remove the guard
14820 as it's already handled in ::is_enabled. Allocate output
14821 after early bail out.
14822
14823 2019-09-02 Martin Liska <mliska@suse.cz>
14824
14825 PR gcov-profile/91601
14826 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14827 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14828 also negative edges.
14829 (circuit): Handle also negative edges as they can happen
14830 in some situations.
14831
14832 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14833
14834 PR target/91472
14835 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14836 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14837 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14838
14839 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14840
14841 PR middle-end/91623
14842 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14843 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14844 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14845 zero vector.
14846
14847 PR lto/91572
14848 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14849 GIMPLE_ASM TREE_LIST operands.
14850
14851 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14852
14853 * doc/generic.texi (Unary and Binary Expressions): Mark up
14854 an instance of TYPE_MIN.
14855
14856 2019-08-31 Stafford Horne <shorne@gmail.com>
14857
14858 * config/or1k/constraints.md (t): New constraint.
14859 * config/or1k/or1k.h (GOT_REGS): New register class.
14860 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14861
14862 2019-08-30 Jim Wilson <jimw@sifive.com>
14863
14864 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14865 and -fpic and -mplt then disable -msave-restore and warn.
14866
14867 2019-08-30 Martin Sebor <msebor@redhat.com>
14868
14869 PR middle-end/91599
14870 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14871 the statement doesn't have one.
14872 * gimple-pretty-print.c (percent_G_format): Same.
14873
14874 PR middle-end/91584
14875 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14876 before using them to validate MEM_REF offset.
14877
14878 2019-08-30 Marek Polacek <polacek@redhat.com>
14879
14880 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14881
14882 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14883
14884 * config/arm/arm.md (unaligned_loaddi,
14885 unaligned_storedi): New unspec insn patterns.
14886 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14887 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14888 and unaligned_storedi for 4-byte aligned memory.
14889 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14890 4-byte aligned memory.
14891
14892 2019-08-30 Martin Jambor <mjambor@suse.cz>
14893
14894 tree-optimization/91579
14895 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14896 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14897 appropriate.
14898 (arg_needs_copy_p): Removed.
14899 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14900 arg_needs_copy_p.
14901 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14902
14903 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14904
14905 * config/i386/i386-features.c
14906 (general_scalar_chain::compute_convert_gain):
14907 Correct cost for double-word shifts.
14908 (general_scalar_to_vector_candidate_p): Reject count operands
14909 greater or equal to mode bitsize.
14910
14911 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14912
14913 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14914 for moves between SSE and non-general registers and between
14915 mask and non-general registers.
14916 (ix86_register_move_cost): Remove stalled comment.
14917
14918 2019-08-29 Richard Biener <rguenther@suse.de>
14919
14920 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14921 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14922
14923 2019-08-29 Richard Biener <rguenther@suse.de>
14924
14925 PR bootstrap/91580
14926 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14927 Do not emit scalar copies for debug-insns, instead replace
14928 their uses with the reg copy used in the chain or reset them
14929 if there is a reaching definition outside of the chain as well.
14930
14931 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14932
14933 PR target/91560
14934 * config/i386/i386-expand.c (expand_vec_perm_movs,
14935 expand_vec_perm_blend, expand_vec_perm_vpermil,
14936 expand_vec_perm_pshufb, expand_vec_perm_1,
14937 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14938 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14939 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14940 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14941 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14942 comments - replace ix86_expand_vec_perm_builtin_1 with
14943 ix86_expand_vec_perm_const_1.
14944 (expand_vec_perm2_vperm2f128_vblend): New function.
14945 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14946 expand_vec_perm2_vperm2f128_vblend as last resort.
14947 (canonicalize_perm): Formatting fix.
14948
14949 PR tree-optimization/91351
14950 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14951 unsigned_type_for.
14952 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14953 range_check_type returns NULL.
14954 * tree-switch-conversion.c (switch_conversion::build_one_array):
14955 Use range_check_type instead of unsigned_type_for, don't perform
14956 linear opt if it returns NULL.
14957 (bit_test_cluster::find_bit_tests): Formatting fix.
14958 (bit_test_cluster::emit): Use range_check_type instead of
14959 unsigned_type_for.
14960 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14961 returns NULL.
14962
14963 2019-08-29 Richard Biener <rguenther@suse.de>
14964
14965 PR tree-optimization/91568
14966 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14967 (vect_update_max_nunits): Add overload for poly_uint64.
14968 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14969 (vect_build_slp_tree): Record max_nunits into the subtree
14970 and merge it upwards.
14971 (vect_print_slp_tree): Print max_nunits.
14972
14973 2019-08-28 Marek Polacek <polacek@redhat.com>
14974
14975 Implement P1152R4: Deprecating some uses of volatile.
14976 PR c++/91361
14977 * doc/invoke.texi: Document -Wvolatile.
14978
14979 2019-08-28 Marek Polacek <polacek@redhat.com>
14980
14981 PR c++/91360 - Implement C++20 P1143R2: constinit.
14982 * doc/invoke.texi: Document -Wc++20-compat.
14983
14984 2019-08-28 Martin Sebor <msebor@redhat.com>
14985
14986 PR tree-optimization/91457
14987 * builtins.c (component_size): New function.
14988 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14989 * builtins.h (compute_objsize): Add argument.
14990 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14991 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14992 (vrp_prop::check_mem_ref): Same.
14993 (vrp_prop::search_for_addr_array): Set no-warning bit.
14994 (check_array_bounds): Same.
14995
14996 2019-08-28 Martin Sebor <msebor@redhat.com>
14997
14998 PR driver/80545
14999 * opts-common.c (option_enabled): Correct checking for language
15000 options.
15001
15002 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
15003
15004 * config/i386/i386.c (ix86_register_move_cost): Do not
15005 limit the cost of moves to/from XMM register to minimum 8.
15006
15007 2019-08-28 Martin Jambor <mjambor@suse.cz>
15008
15009 PR ipa/91468
15010 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
15011 checking assert a normal assert to test it really is redundant.
15012 * ipa-prop.c (compute_complex_assign_jump_func): Removed
15013 redundant test.
15014 (update_jump_functions_after_inlining): Removed combining unary
15015 arithmetic operations with an ancestor jump function.
15016 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
15017 instead of t.
15018
15019 2019-08-28 Richard Biener <rguenther@suse.de>
15020
15021 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
15022 add the MD problem.
15023
15024 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
15025 Richard Biener <rguenther@suse.de>
15026
15027 * expr.c (expand_assignment): Handle misaligned DECLs.
15028 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
15029 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
15030 too.
15031 (assign_parm_setup_stack): Allocate properly aligned stack slots.
15032 * varasm.c (build_constant_desc): Align constants of misaligned types.
15033 * config/arm/predicates.md (aligned_operand): New predicate.
15034 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
15035 aligned_operand to check restrictions on memory addresses.
15036 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
15037 * config/arm/vec-common.md (mov<VALL>): Likewise.
15038
15039 2019-08-28 Jakub Jelinek <jakub@redhat.com>
15040
15041 PR libgomp/91530
15042 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
15043 V_128 iterator instead of VI_128.
15044
15045 2019-08-28 Martin Liska <mliska@suse.cz>
15046
15047 PR tree-optimization/90970
15048 * builtins.c (check_access): Remove assignment to maxread
15049 as it hasn't been used since when it was introduced in r255755.
15050
15051 2019-08-27 Martin Sebor <msebor@redhat.com>
15052
15053 PR tree-optimization/91567
15054 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
15055 of unknown strings.
15056 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
15057 to PTRDIFF_MAX - 2.
15058
15059 2019-08-27 Jeff Law <law@redhat.com>
15060
15061 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
15062 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
15063
15064 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
15065
15066 PR target/91528
15067 * config/i386/i386-features.c (convert_scalars_to_vector):
15068 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
15069 crtl->stack_realign_processed. Update crtl->drap_reg by calling
15070 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
15071 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
15072
15073 2019-08-27 Richard Biener <rguenther@suse.de>
15074
15075 * config/i386/i386-features.h
15076 (general_scalar_chain::~general_scalar_chain): Add.
15077 (general_scalar_chain::insns_conv): New bitmap.
15078 (general_scalar_chain::n_sse_to_integer): New.
15079 (general_scalar_chain::n_integer_to_sse): Likewise.
15080 (general_scalar_chain::make_vector_copies): Adjust signature.
15081 * config/i386/i386-features.c
15082 (general_scalar_chain::general_scalar_chain): Outline,
15083 initialize new members.
15084 (general_scalar_chain::~general_scalar_chain): New.
15085 (general_scalar_chain::mark_dual_mode_def): Record insns
15086 we need to insert conversions at and count them.
15087 (general_scalar_chain::compute_convert_gain): Account
15088 for conversion instructions at chain boundary.
15089 (general_scalar_chain::make_vector_copies): Generate a single
15090 copy for a def by a specific insn.
15091 (general_scalar_chain::convert_registers): First populate
15092 defs_map, then make copies at out-of chain insns.
15093
15094 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
15095
15096 * config/arm/arm.md (stack_protect_set_insn): Add security-related
15097 comment.
15098 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
15099
15100 2019-08-27 Martin Liska <mliska@suse.cz>
15101
15102 * cgraph.c (cgraph_node::remove): Remove dead assignment before
15103 loop.
15104 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
15105 Enclose in anonymous namespace.
15106 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
15107 hard_register initialization in braces.
15108 * tree-vrp.h (value_range_base::supports_type_p): Return false
15109 for function with boolean return type.
15110
15111 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
15112
15113 * config/i386/i386.c (emit_i387_cw_initialization)
15114 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
15115
15116 2019-08-26 Martin Sebor <msebor@redhat.com>
15117
15118 PR c++/83431
15119 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
15120 (sprintf_dom_walker): Remove class.
15121 (get_int_range): Make argument const.
15122 (directive::fmtfunc, directive::set_precision): Same.
15123 (format_none): Same.
15124 (build_intmax_type_nodes): Same.
15125 (adjust_range_for_overflow): Same.
15126 (format_floating): Same.
15127 (format_character): Same.
15128 (format_string): Same.
15129 (format_plain): Same.
15130 (get_int_range): Cast away constness.
15131 (format_integer): Same.
15132 (get_string_length): Call get_range_strlen_dynamic. Handle
15133 null lendata.maxbound.
15134 (should_warn_p): Adjust argument scope qualifier.
15135 (maybe_warn): Same.
15136 (format_directive): Same.
15137 (parse_directive): Same.
15138 (is_call_safe): Same.
15139 (try_substitute_return_value): Same.
15140 (sprintf_dom_walker::handle_printf_call): Rename...
15141 (handle_printf_call): ...to this. Initialize target to host charmap
15142 here instead of in pass_sprintf_length::execute.
15143 (struct call_info): Make global.
15144 (sprintf_dom_walker::compute_format_length): Make global.
15145 (sprintf_dom_walker::handle_gimple_call): Same.
15146 * passes.def (pass_sprintf_length): Replace with pass_strlen.
15147 * print-rtl.c (print_pattern): Reduce the number of spaces to
15148 avoid -Wformat-truncation.
15149 * tree-pass.h (make_pass_warn_printf): New function.
15150 * tree-ssa-strlen.c (strlen_optimize): New variable.
15151 (get_string_length): Add comments.
15152 (get_range_strlen_dynamic): New function.
15153 (check_and_optimize_call): New function.
15154 (handle_integral_assign): New function.
15155 (strlen_check_and_optimize_stmt): Factor code out into
15156 strlen_check_and_optimize_call and handle_integral_assign.
15157 (strlen_dom_walker::evrp): New member.
15158 (strlen_dom_walker::before_dom_children): Use evrp member.
15159 (strlen_dom_walker::after_dom_children): Use evrp member.
15160 (printf_strlen_execute): New function.
15161 (pass_strlen::gate): Update to handle printf calls.
15162 (dump_strlen_info): New function.
15163 (pass_data_warn_printf): New variable.
15164 (pass_warn_printf): New class.
15165 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
15166 (handle_printf_call): Same.
15167 * tree-vrp.c (value_range_base::type): Adjust assertion.
15168 * vr-values.c (vr_values::update_value_range): Use type of the first
15169 argument rather than the second.
15170
15171 2019-08-26 Richard Biener <rguenther@suse.de>
15172
15173 * config/i386/i386-features.c (general_remove_non_convertible_regs):
15174 Remove.
15175 (convert_scalars_to_vector): Do not call it.
15176
15177 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15178 Uros Bizjak <ubizjak@gmail.com>
15179
15180 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
15181 CASE_MATHFN_FLOATN for roundeven.
15182 * config/i386/i386.c (ix86_i387_mode_needed): Add case
15183 I387_ROUNDEVEN.
15184 (ix86_mode_needed): Likewise.
15185 (ix86_mode_after): Likewise.
15186 (ix86_mode_entry): Likewise.
15187 (ix86_mode_exit): Likewise.
15188 (ix86_emit_mode_set): Likewise.
15189 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
15190 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
15191 (ix86_entity): Add I387_ROUNDEVEN.
15192 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
15193 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
15194 (define_int_iterator): Likewise.
15195 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
15196 (define_constant): Define ROUND_ROUNDEVEN mode.
15197 (define_attr): Add roundeven mode for i387_cw.
15198 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
15199 * internal-fn.def (ROUNDEVEN): New builtin function.
15200 * optabs.def (roundeven_optab): New optab.
15201
15202 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
15203
15204 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
15205 for ROUNDEVEN.
15206 * builtins.def: Added function definitions for roundeven function
15207 variants.
15208 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
15209 function call. Adjust condition for floor, ceil, trunc and round.
15210 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
15211 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
15212 (integer_valued_real_call_p): Added case for roundeven function.
15213 * real.c (is_even): New function. Returns true if real number is even,
15214 otherwise returns false.
15215 (is_halfway_below): New function. Returns true if real number is
15216 halfway between two integers, else return false.
15217 (real_roundeven): New function. Round real number to nearest integer,
15218 rounding halfway cases towards even.
15219 * real.h (real_value): Added descriptive comments. Added function
15220 declaration for roundeven function.
15221 * doc/extend.texi (Other Builtins): List roundeven variants among
15222 functions which can be handled as builtins.
15223
15224 2019-08-26 Richard Biener <rguenther@suse.de>
15225
15226 PR target/91522
15227 PR target/91527
15228 * config/i386/i386-features.h (general_scalar_chain::defs_map):
15229 New member.
15230 (general_scalar_chain::replace_with_subreg): Remove.
15231 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15232 (general_scalar_chain::convert_reg): Adjust signature.
15233 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
15234 iterate over all defs of a reg.
15235 (general_scalar_chain::replace_with_subreg): Remove.
15236 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
15237 (general_scalar_chain::make_vector_copies): Populate defs_map,
15238 place copy only after defs that are used as vectors in the chain.
15239 (general_scalar_chain::convert_reg): Emit a copy for a specific
15240 def in a specific instruction.
15241 (general_scalar_chain::convert_op): All reg uses are converted here.
15242 (general_scalar_chain::convert_insn): Emit copies for scalar
15243 uses of defs here. Replace uses with the copies we created.
15244 Replace and convert the def. Adjust REG_DEAD notes, remove
15245 REG_EQUIV/EQUAL notes.
15246 (general_scalar_chain::convert_registers): Only handle copies
15247 into the chain here.
15248
15249 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15250
15251 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
15252
15253 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
15254
15255 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
15256 Add nop_convert case.
15257 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
15258 Fold all statements if requested.
15259 * tree-ssa-propagate.h (class substitute_and_fold_engine):
15260 Allow to fold all statements.
15261 * tree-vrp.c (class vrp_folder):
15262 Let substitute_and_fold_engine fold all statements.
15263
15264 2019-08-26 Richard Biener <rguenther@suse.de>
15265
15266 PR tree-optimization/91526
15267 * passes.def: Note that after late FRE we do TODO_update_address_taken.
15268 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
15269 TODO_update_address_taken.
15270
15271 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
15272
15273 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
15274 __STDC_HOSTED__.
15275
15276 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
15277
15278 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
15279 machine mode for unspec_volatile operand.
15280
15281 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
15282
15283 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
15284 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
15285 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
15286 (prefer_neon_for_64bits): Remove.
15287 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
15288 (tune_params): Remove PREF_NEON_64_FALSE uses.
15289 (arm_option_override): Remove prefer_neon selection code.
15290 (arm_print_tune_info): Remove prefer_neon_for_64bits.
15291 * config/arm/arm-protos.h (tune_params): Remove
15292 prefer_neon_for_64bits.
15293 (prefer_neon_for_64bits): Remove.
15294
15295 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
15296
15297 PR pch/61250
15298 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
15299 and issue any diagnostics needed before collecting the pre-PCH
15300 state.
15301
15302 2019-08-23 Jakub Jelinek <jakub@redhat.com>
15303
15304 PR middle-end/91283
15305 * common.opt (fexcess-precision=): Add Optimization flag. Use
15306 flag_excess_precision variable instead of
15307 flag_excess_precision_cmdline.
15308 * flags.h (class target_flag_state): Remove x_flag_excess_precision
15309 member.
15310 (flag_excess_precision): Don't define.
15311 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
15312 flag_excess_precision_cmdline. Remove comment.
15313 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
15314 and x_flag_excess_precision instead of
15315 frontend_set_flag_excess_precision_cmdline and
15316 x_flag_excess_precision_cmdline.
15317 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
15318 x_flag_excess_precision_cmdline.
15319 * toplev.c (init_excess_precision): Remove.
15320 (lang_dependent_init_target): Don't call it.
15321
15322 2019-08-23 Martin Liska <mliska@suse.cz>
15323
15324 * lto-wrapper.c (run_gcc): When setting jobserver
15325 set also parallel to 1. This was done so before r273908.
15326
15327 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
15328
15329 * config/arm/arm-cpus.in (cortex-m35p): New entry.
15330 (cortex-a76ae): Likewise.
15331 (cortex-a77): Likewise
15332 * config/arm/arm-tables.opt: Regenerate.
15333 * config/arm/arm-tune.md: Likewise.
15334 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
15335 cortex-a77 CPU options.
15336
15337 2019-08-23 Martin Liska <mliska@suse.cz>
15338
15339 * profile.c (instrument_values): Do not set
15340 0 as last argument.
15341 * tree-profile.c (gimple_gen_interval_profiler): Remove
15342 last argument.
15343 (gimple_gen_pow2_profiler): Likewise.
15344 (gimple_gen_topn_values_profiler): Likewise.
15345 (gimple_gen_ic_profiler): Likewise.
15346 (gimple_gen_time_profiler): Likewise.
15347 (gimple_gen_average_profiler): Likewise.
15348 (gimple_gen_ior_profiler): Likewise.
15349 * value-prof.c (dump_histogram_value): Use default
15350 in switch statement instead of HIST_TYPE_MAX.
15351 (stream_in_histogram_value): Likewise.
15352 (gimple_duplicate_stmt_histograms): Do not
15353 use NULL for implicitly set arguments.
15354 (gimple_divmod_values_to_profile): Do not use
15355 reserve+quick_push.
15356 (gimple_indirect_call_to_profile): Likewise.
15357 (gimple_find_values_to_profile): Use implicit
15358 function call arguments.
15359 * value-prof.h (gimple_alloc_histogram_value):
15360 Set default values.
15361 (gimple_gen_interval_profiler): Remove last argument.
15362 (gimple_gen_pow2_profiler): Likewise.
15363 (gimple_gen_topn_values_profiler): Likewise.
15364 (gimple_gen_ic_profiler): Likewise.
15365 (gimple_gen_time_profiler): Likewise.
15366 (gimple_gen_average_profiler): Likewise.
15367 (gimple_gen_ior_profiler): Likewise.
15368
15369 2019-08-22 Martin Sebor <msebor@redhat.com>
15370
15371 PR middle-end/91490
15372 * builtins.c (c_strlen): Rename argument and introduce new local.
15373 Set no-warning bit on original argument.
15374 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
15375 Fold empty and zero constructors into empty strings.
15376 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
15377 for missing initializers.
15378 * tree.c (build_string_literal): Handle optional argument.
15379 * tree.h (build_string_literal): Add defaulted argument.
15380 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
15381 no-warning bit on original expression.
15382
15383 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15384
15385 PR target/91481
15386 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15387 and UNSPEC_DARN_RAW.
15388 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
15389 UNSPECV_DARN_RAW.
15390 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
15391 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
15392 (darn): Use an unspec_volatile, and UNSPECV_DARN.
15393
15394 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
15395
15396 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
15397 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
15398 * config/rs6000/rs6000.md (unspec): ... here.
15399 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
15400 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15401 cmpeqb, *cmpeqb_internal): Delete, move to...
15402 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
15403 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
15404 cmpeqb, *cmpeqb_internal): ... here.
15405
15406 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15407
15408 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
15409 intrinsics if __ARM_FP.
15410 Use __ARM_FEATURE_CRC32 ifdef guard.
15411
15412 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15413
15414 * config/arm/arm.md (neon_for_64bits): Remove.
15415 (avoid_neon_for_64bits): Remove.
15416 (arm_adddi3): Always split early.
15417 (arm_subdi3): Always split early.
15418 (negdi2): Remove Neon expansion.
15419 (split zero_extend): Split before reload.
15420 (split sign_extend): Split before reload.
15421
15422 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15423
15424 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
15425 (qhs_extenddi_cstr): Likewise.
15426 * config/arm/arm.md (ashldi3): Always expand early.
15427 (ashlsi3): Likewise.
15428 (ashrsi3): Likewise.
15429 (zero_extend<mode>di2): Remove Neon variants.
15430 (extend<mode>di2): Likewise.
15431 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
15432 (signed_shift_di3_neon): Likewise.
15433 (unsigned_shift_di3_neon): Likewise.
15434 (ashrdi3_neon_imm_noclobber): Likewise.
15435 (lshrdi3_neon_imm_noclobber): Likewise.
15436 (<shift>di3_neon): Likewise.
15437 (split extend): Remove DI extend split patterns.
15438
15439 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15440
15441 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
15442 (split not): Add DImode not splitter.
15443 (anddi3): Remove pattern.
15444 (anddi3_insn): Likewise.
15445 (anddi_zesidi_di): Likewise.
15446 (anddi_sesdi_di): Likewise.
15447 (anddi_notdi_di): Likewise.
15448 (anddi_notzesidi_di): Likewise.
15449 (anddi_notsesidi_di): Likewise.
15450 (iordi3): Likewise.
15451 (iordi3_insn): Likewise.
15452 (iordi_zesidi_di): Likewise.
15453 (iordi_sesidi_di): Likewise.
15454 (xordi3): Likewise.
15455 (xordi3_insn): Likewise.
15456 (xordi_sesidi_di): Likewise.
15457 (xordi_zesidi_di): Likewise.
15458 (one_cmpldi2): Likewise.
15459 (one_cmpldi2_insn): Likewise.
15460 * config/arm/constraints.md: Remove De, Df, Dg constraints.
15461 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
15462 alternative.
15463 (iwmmxt_xordi3): Likewise.
15464 (iwmmxt_anddi3): Likewise.
15465 * config/arm/neon.md (orndi3_neon): Remove pattern.
15466 (anddi_notdi_di): Likewise.
15467 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
15468 (arm_iordi_operand_neon): Likewise.
15469 (arm_xordi_operand_neon): Likewise.
15470 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
15471 (iordi_notzesidi_di): Likewise.
15472 (iordi_notdi_zesidi): Likewise.
15473 (iordi_notsesidi_di): Likewise.
15474
15475 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
15476
15477 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
15478 insn.
15479 (iorsi3_compare0_scratch): Likewise.
15480
15481 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
15482
15483 * config/aarch64/aarch64-simd-builtins.def:
15484 (ld1x4): New.
15485 (st1x4): Likewise.
15486 * config/aarch64/aarch64-simd.md:
15487 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15488 (aarch64_st1x4<VALLDIF:mode>): Likewise.
15489 (aarch64_ld1_x4_<mode>): Likewise.
15490 (aarch64_st1_x4_<mode>): Likewise.
15491 * config/aarch64/arm_neon.h:
15492 (vld1_s8_x4): New function.
15493 (vld1q_s8_x4): Likewise.
15494 (vld1_s16_x4): Likewise.
15495 (vld1q_s16_x4): Likewise.
15496 (vld1_s32_x4): Likewise.
15497 (vld1q_s32_x4): Likewise.
15498 (vld1_u8_x4): Likewise.
15499 (vld1q_u8_x4): Likewise.
15500 (vld1_u16_x4): Likewise.
15501 (vld1q_u16_x4): Likewise.
15502 (vld1_u32_x4): Likewise.
15503 (vld1q_u32_x4): Likewise.
15504 (vld1_f16_x4): Likewise.
15505 (vld1q_f16_x4): Likewise.
15506 (vld1_f32_x4): Likewise.
15507 (vld1q_f32_x4): Likewise.
15508 (vld1_p8_x4): Likewise.
15509 (vld1q_p8_x4): Likewise.
15510 (vld1_p16_x4): Likewise.
15511 (vld1q_p16_x4): Likewise.
15512 (vld1_s64_x4): Likewise.
15513 (vld1_u64_x4): Likewise.
15514 (vld1_p64_x4): Likewise.
15515 (vld1q_s64_x4): Likewise.
15516 (vld1q_u64_x4): Likewise.
15517 (vld1q_p64_x4): Likewise.
15518 (vld1_f64_x4): Likewise.
15519 (vld1q_f64_x4): Likewise.
15520 (vst1_s8_x4): Likewise.
15521 (vst1q_s8_x4): Likewise.
15522 (vst1_s16_x4): Likewise.
15523 (vst1q_s16_x4): Likewise.
15524 (vst1_s32_x4): Likewise.
15525 (vst1q_s32_x4): Likewise.
15526 (vst1_u8_x4): Likewise.
15527 (vst1q_u8_x4): Likewise.
15528 (vst1_u16_x4): Likewise.
15529 (vst1q_u16_x4): Likewise.
15530 (vst1_u32_x4): Likewise.
15531 (vst1q_u32_x4): Likewise.
15532 (vst1_f16_x4): Likewise.
15533 (vst1q_f16_x4): Likewise.
15534 (vst1_f32_x4): Likewise.
15535 (vst1q_f32_x4): Likewise.
15536 (vst1_p8_x4): Likewise.
15537 (vst1q_p8_x4): Likewise.
15538 (vst1_p16_x4): Likewise.
15539 (vst1q_p16_x4): Likewise.
15540 (vst1_s64_x4): Likewise.
15541 (vst1_u64_x4): Likewise.
15542 (vst1_p64_x4): Likewise.
15543 (vst1q_s64_x4): Likewise.
15544 (vst1q_u64_x4): Likewise.
15545 (vst1q_p64_x4): Likewise.
15546 (vst1_f64_x4): Likewise.
15547 (vst1q_f64_x4): Likewise.
15548
15549 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15550
15551 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15552
15553 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15554 Richard Sandiford <richard.sandiford@arm.com>
15555
15556 PR target/88839
15557 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15558 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15559
15560 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15561
15562 PR target/90724
15563 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15564 in reg if it fails aarch64_plus_operand predicate.
15565
15566 2019-08-21 Richard Biener <rguenther@suse.de>
15567
15568 PR tree-optimization/91482
15569 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15570 BUILT_IN_ASSUME_ALIGNED calls.
15571
15572 2019-08-21 Richard Biener <rguenther@suse.de>
15573
15574 PR target/91498
15575 PR target/91503
15576 * config/i386/i386-features.c
15577 (general_scalar_chain::make_vector_copies): Copy stack temporary
15578 rtx when using it multiple times.
15579 (general_scalar_chain::convert_reg): Likewise.
15580
15581 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15582
15583 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15584
15585 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15586
15587 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15588 catch more redundant zero initialization cases.
15589 (dse_dom_walker::dse_optimize_stmt): Likewise.
15590
15591 2019-08-20 Richard Biener <rguenther@suse.de>
15592
15593 PR lto/91307
15594 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15595 by collect2 when targetm.have_ctors_dtors which avoids dragging
15596 in temporary filenames from LTO input objects.
15597
15598 2019-08-20 Richard Biener <rguenther@suse.de>
15599
15600 PR tree-optimization/37242
15601 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15602 to (T)a + (T)b if we know that a + b does not overflow.
15603
15604 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15605
15606 PR rtl-optimization/91347
15607 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15608 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15609
15610 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15611
15612 * calls.h (function_arg_info): Add a pass_by_reference field,
15613 defaulting to false.
15614 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15615 when applying pass-by-reference semantics.
15616 (initialize_argument_information): Likewise.
15617 (emit_library_call_value_1): Likewise.
15618 * function.c (assign_parm_data_one): Remove passed_pointer field.
15619 (assign_parm_find_data_types): Don't set it.
15620 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15621 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15622 arg.pass_by_reference instead of passed_pointer.
15623
15624 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15625
15626 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15627 into a single function_arg_info, updating its fields when we
15628 apply pass-by-reference and promotion semantics. Use the
15629 function_arg_info to track the mode rather than keeping it in
15630 a separate local variable.
15631 (initialize_argument_information): Likewise. Base the final
15632 arg_to_skip on this new function_arg_info rather than creating
15633 a new one from scratch.
15634
15635 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15636
15637 * function.c (assign_parm_data_one): Replace passed_type,
15638 promoted_mode and named_arg with a function_arg_info field.
15639 (assign_parm_find_data_types): Remove local variables and
15640 assign directly to "data". Make data->passed_mode shadow
15641 data->arg.mode until promotion, then assign the promoted
15642 mode to data->arg.mode.
15643 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15644 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15645 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15646 (assign_parm_setup_block, assign_parm_setup_reg)
15647 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15648 arg.mode instead of promoted_mode, arg.type instead of passed_type
15649 and arg.named instead of named_arg. Use data->arg for
15650 function_arg_info structures that had the field values passed_type,
15651 promoted_mode and named_arg. Base other function_arg_infos on
15652 data->arg, changing the necessary properties.
15653
15654 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15655
15656 * calls.h (apply_pass_by_reference_rules): Declare.
15657 * calls.c (apply_pass_by_reference_rules): New function.
15658 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15659 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15660 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15661 * function.c (assign_parm_find_data_types): Likewise.
15662 * var-tracking.c (prepare_call_arguments): Likewise.
15663
15664 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15665
15666 * target.def (must_pass_in_stack): Take a function_arg_info instead
15667 of a mode and a type.
15668 * doc/tm.texi: Regenerate.
15669 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15670 instead of a mode and a type.
15671 (must_pass_in_stack_var_size_or_pad): Likewise.
15672 * calls.c (must_pass_in_stack_var_size): Likewise.
15673 (must_pass_in_stack_var_size_or_pad): Likewise.
15674 (initialize_argument_information): Update call to
15675 targetm.calls.must_pass_in_stack.
15676 (must_pass_va_arg_on_stack): Likewise.
15677 * function.c (assign_parm_find_entry_rtl): Likewise.
15678 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15679 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15680 (alpha_function_arg_advance): Likewise.
15681 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15682 (cr16_function_arg_advance): Likewise.
15683 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15684 (cris_arg_partial_bytes): Likewise.
15685 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15686 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15687 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15688 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15689 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15690 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15691 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15692 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15693 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15694 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15695 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15696 instead of a mode and a type.
15697 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15698 (fr30_num_arg_regs): Likewise.
15699 (fr30_setup_incoming_varargs): Update calls accordingly.
15700 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15701 (fr30_function_arg_advance): Likewise.
15702 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15703 instead of a mode and a type.
15704 * config/gcn/gcn.c (num_arg_regs): Likewise.
15705 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15706 num_arg_regs and targetm.calls.must_pass_in_stack.
15707 (gcn_arg_partial_bytes): Likewise.
15708 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15709 function_arg_info instead of a mode and a type.
15710 (classify_argument): Update call accordingly.
15711 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15712 function_arg_info instead of a mode and a type.
15713 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15714 Likewise.
15715 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15716 (rs6000_parm_needs_stack): Update call accordingly.
15717 (setup_incoming_varargs): Likewise.
15718
15719 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15720
15721 * target.def (callee_copies): Take a function_arg_info instead
15722 of a mode, type and named flag.
15723 * doc/tm.texi: Regenerate.
15724 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15725 instead of a mode, type and named flag.
15726 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15727 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15728 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15729 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15730 instead of a mode, type and named flag.
15731 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15732 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15733 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15734 * calls.h (reference_callee_copied): Take a function_arg_info
15735 instead of a mode, type and named flag.
15736 * calls.c (reference_callee_copied): Likewise.
15737 (initialize_argument_information): Update call accordingly.
15738 (emit_library_call_value_1): Likewise.
15739 * function.c (gimplify_parameters): Likewise.
15740 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15741 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15742 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15743 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15744 (TARGET_CALLEE_COPIES): Define to
15745 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15746 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15747 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15748 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15749 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15750 instead of a mode, type and named flag.
15751 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15752 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15753 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15754 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15755 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15756 (TARGET_CALLEE_COPIES): Define to
15757 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15758 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15759 instead of a mode, type and named flag.
15760 * config/sh/sh.c (sh_callee_copies): Likewise.
15761 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15762 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15763 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15764
15765 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15766
15767 * target.def (function_arg_advance): Take a function_arg_info instead
15768 of a mode, type and named flag.
15769 * doc/tm.texi: Regenerate.
15770 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15771 instead of a mode, type and named flag.
15772 * targhooks.c (default_function_arg_advance): Likewise.
15773 * calls.c (initialize_argument_information): Update call to
15774 targetm.calls.function_arg_advance.
15775 (emit_library_call_value_1): Likewise.
15776 * dse.c (get_call_args): Likewise.
15777 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15778 * function.c (assign_parms, gimplify_parameters): Likewise.
15779 * var-tracking.c (prepare_call_arguments): Likewise.
15780 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15781 function_arg_info instead of a mode, type and named flag.
15782 (aarch64_setup_incoming_varargs): Update call accordingly.
15783 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15784 function_arg_info instead of a mode, type and named flag.
15785 (alpha_setup_incoming_varargs): Update call accordingly.
15786 * config/arc/arc.c (arc_function_arg_advance): Take a
15787 function_arg_info instead of a mode, type and named flag.
15788 (arc_setup_incoming_varargs): Update call accordingly.
15789 * config/arm/arm.c (arm_function_arg_advance): Take a
15790 function_arg_info instead of a mode, type and named flag.
15791 (cmse_func_args_or_return_in_stack): Update call accordingly.
15792 (arm_function_ok_for_sibcall): Likewise.
15793 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15794 * config/avr/avr.c (avr_function_arg_advance): Take a
15795 function_arg_info instead of a mode, type and named flag.
15796 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15797 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15798 (c6x_call_saved_register_used): Update call accordingly.
15799 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15800 function_arg_info instead of a mode, type and named flag.
15801 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15802 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15803 (csky_setup_incoming_varargs): Update call accordingly.
15804 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15805 function_arg_info instead of a mode, type and named flag.
15806 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15807 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15808 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15809 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15810 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15811 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15812 (ix86_setup_incoming_varargs): Update call accordingly.
15813 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15814 function_arg_info instead of a mode, type and named flag.
15815 (ia64_setup_incoming_varargs): Update call accordingly.
15816 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15817 function_arg_info instead of a mode, type and named flag.
15818 (iq2000_expand_prologue): Update call accordingly.
15819 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15820 function_arg_info instead of a mode, type and named flag.
15821 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15822 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15823 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15824 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15825 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15826 Likewise.
15827 (microblaze_expand_prologue): Update call accordingly.
15828 * config/mips/mips.c (mips_function_arg_advance): Take a
15829 function_arg_info instead of a mode, type and named flag.
15830 (mips_setup_incoming_varargs): Update call accordingly.
15831 (mips_output_args_xfer): Likewise.
15832 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15833 function_arg_info instead of a mode, type and named flag.
15834 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15835 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15836 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15837 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15838 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15839 (nios2_setup_incoming_varargs): Update call accordingly.
15840 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15841 function_arg_info instead of a mode, type and named flag.
15842 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15843 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15844 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15845 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15846 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15847 (riscv_setup_incoming_varargs): Update call accordingly.
15848 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15849 function_arg_info instead of a mode, type and named flag.
15850 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15851 Likewise.
15852 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15853 (rs6000_parm_needs_stack): Update call accordingly.
15854 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15855 instead of a mode, type and named flag.
15856 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15857 (s390_call_saved_register_used): Update call accordingly.
15858 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15859 instead of a mode, type and named flag.
15860 (sh_output_mi_thunk): Update call accordingly.
15861 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15862 function_arg_info instead of a mode, type and named flag.
15863 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15864 (spu_setup_incoming_varargs): Update call accordingly.
15865 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15866 function_arg_info instead of a mode, type and named flag.
15867 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15868 (tilegx_setup_incoming_varargs): Update call accordingly.
15869 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15870 function_arg_info instead of a mode, type and named flag.
15871 (tilegx_setup_incoming_varargs): Update call accordingly.
15872 * config/v850/v850.c (v850_function_arg_advance): Take a
15873 function_arg_info instead of a mode, type and named flag.
15874 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15875 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15876 (visium_setup_incoming_varargs): Update call accordingly.
15877 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15878 function_arg_info instead of a mode, type and named flag.
15879
15880 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15881
15882 * target.def (function_arg, function_incoming_arg): Take a
15883 function_arg_info instead of a mode, tree and named flag.
15884 * doc/tm.texi: Regenerate.
15885 * targhooks.h (default_function_arg): Take a function_arg_info
15886 instead of a mode, tree and named flag.
15887 (default_function_incoming_arg): Likewise.
15888 * targhooks.c (default_function_arg): Likewise.
15889 (default_function_incoming_arg): Likewise.
15890 * calls.h (function_arg_info::end_marker_p): New function.
15891 (function_arg_info::end_marker): Likewise.
15892 * calls.c (prepare_call_address, initialize_argument_information)
15893 (expand_call, emit_library_call_value_1): Update calls to
15894 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15895 * dse.c: Include calls.h.
15896 (get_call_args): Update call to targetm.calls.function_arg.
15897 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15898 * var-tracking.c (prepare_call_arguments): Likewise.
15899 * function.c (assign_parm_find_entry_rtl): Update call to
15900 targetm.calls.function_incoming_arg.
15901 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15902 function_arg_info instead of a mode, tree and named flag.
15903 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15904 * config/arc/arc.c (arc_function_arg): Likewise.
15905 * config/arm/arm.c (arm_function_arg): Likewise.
15906 (cmse_func_args_or_return_in_stack): Update call accordingly.
15907 (arm_function_ok_for_sibcall): Likewise.
15908 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15909 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15910 instead of a mode, tree and named flag.
15911 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15912 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15913 (c6x_call_saved_register_used): Update call accordingly.
15914 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15915 instead of a mode, tree and named flag.
15916 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15917 (cris_function_arg_1): Likewise.
15918 * config/csky/csky.c (csky_function_arg): Likewise.
15919 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15920 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15921 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15922 (frv_function_arg_1): Likewise.
15923 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15924 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15925 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15926 * config/i386/i386.c (ix86_function_arg): Likewise.
15927 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15928 (ia64_function_arg_1): Likewise.
15929 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15930 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15931 accordingly.
15932 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15933 instead of a mode, tree and named flag.
15934 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15935 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15936 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15937 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15938 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15939 (microblaze_expand_prologue): Update call accordingly.
15940 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15941 instead of a mode, tree and named flag.
15942 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15943 (mmix_function_arg_1): Likewise.
15944 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15945 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15946 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15947 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15948 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15949 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15950 (nvptx_function_incoming_arg): Likewise.
15951 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15952 * config/pa/pa.c (pa_function_arg): Likewise.
15953 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15954 * config/pru/pru.c (pru_function_arg): Likewise.
15955 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15956 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15957 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15958 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15959 (rs6000_parm_needs_stack): Update call accordingly.
15960 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15961 instead of a mode, tree and named flag.
15962 * config/s390/s390.c (s390_function_arg): Likewise.
15963 (s390_call_saved_register_used): Update call accordingly.
15964 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15965 instead of a mode, tree and named flag.
15966 (sh_output_mi_thunk): Update call accordingly.
15967 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15968 (sparc_function_incoming_arg): Take a function_arg_info instead of
15969 a mode, tree and named flag.
15970 * config/spu/spu.c (spu_function_arg): Likewise.
15971 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15972 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15973 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15974 * config/v850/v850.c (v850_function_arg): Likewise.
15975 * config/vax/vax.c (vax_function_arg): Likewise.
15976 * config/visium/visium.c (visium_function_arg): Likewise.
15977 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15978 (xtensa_function_incoming_arg): Likewise.
15979
15980 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15981
15982 * target.def (setup_incoming_varargs): Take a function_arg_info
15983 instead of a mode and tree.
15984 * doc/tm.texi: Regenerate.
15985 * targhooks.h (default_setup_incoming_varargs): Take a
15986 function_arg_info instead of a mode and tree.
15987 * targhooks.c (default_setup_incoming_varargs): Likewise.
15988 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15989 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15990 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15991 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15992 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15993 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15994 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15995 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15996 Likewise.
15997 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15998 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15999 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
16000 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
16001 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
16002 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
16003 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
16004 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
16005 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
16006 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
16007 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
16008 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
16009 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
16010 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
16011 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
16012 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
16013 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
16014 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
16015 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
16016 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
16017 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
16018 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
16019 * function.c (assign_parms_setup_varargs): Update call to
16020 targetm.calls.setup_incoming_varargs.
16021
16022 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16023
16024 * target.def (pass_by_reference): Take a function_arg_info instead
16025 of a mode, type and named flag.
16026 * doc/tm.texi: Regenerate.
16027 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
16028 accordingly.
16029 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
16030 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
16031 function_arg_info instead of a mode, type and named flag.
16032 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
16033 * calls.h (pass_by_reference): Take a function_arg_info instead of a
16034 mode, type and named flag.
16035 * calls.c (pass_by_reference): Likewise.
16036 (pass_va_arg_by_reference): Update call accordingly.
16037 (initialize_argument_information): Likewise.
16038 (emit_library_call_value_1): Likewise.
16039 * function.c (assign_parm_find_data_types): Likewise.
16040 * var-tracking.c (prepare_call_arguments): Likewise.
16041 * stor-layout.c: Include calls.h.
16042 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
16043 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
16044 function_arg_info instead of a mode, type and named flag.
16045 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
16046 * config/arc/arc.c (arc_pass_by_reference): Likewise.
16047 * config/arm/arm.c (arm_pass_by_reference): Likewise.
16048 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
16049 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
16050 (c6x_call_saved_register_used): Update call to pass_by_reference.
16051 * config/cris/cris.c (cris_pass_by_reference): Take a
16052 function_arg_info instead of a mode, type and named flag.
16053 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
16054 function_arg_info instead of a mode, type and named flag.
16055 (epiphany_arg_partial_bytes): Update call accordingly.
16056 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
16057 function_arg_info instead of a mode, type and named flag.
16058 (ft32_arg_partial_bytes): Update call accordingly.
16059 * config/i386/i386.c (ix86_pass_by_reference): Take a
16060 function_arg_info instead of a mode, type and named flag.
16061 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
16062 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
16063 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
16064 (m32r_return_in_memory): Update call accordingly.
16065 * config/mips/mips.c (mips_pass_by_reference): Take a
16066 function_arg_info instead of a mode, type and named flag.
16067 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
16068 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
16069 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
16070 (moxie_arg_partial_bytes): Update call accordingly.
16071 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
16072 function_arg_info instead of a mode, type and named flag.
16073 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
16074 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
16075 * config/pa/pa.c (pa_pass_by_reference): Likewise.
16076 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
16077 (riscv_return_in_memory): Update call accordingly.
16078 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
16079 function_arg_info instead of a mode, type and named flag.
16080 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
16081 (rs6000_parm_needs_stack): Update call to pass_by_reference.
16082 * config/s390/s390.c (s390_pass_by_reference): Take a
16083 function_arg_info instead of a mode, type and named flag.
16084 (s390_call_saved_register_used): Update call accordingly.
16085 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
16086 instead of a mode, type and named flag.
16087 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
16088 * config/spu/spu.c (spu_pass_by_reference): Likewise.
16089 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
16090 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
16091 * config/v850/v850.c (v850_pass_by_reference): Likewise.
16092 * config/visium/visium.c (visium_pass_by_reference): Likewise.
16093
16094 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16095
16096 * target.def (arg_partial_bytes): Take a function_arg_info instead
16097 of a mode, type and named flag.
16098 * doc/tm.texi: Regenerate.
16099 * target.h (function_arg_info): Declare.
16100 * calls.h (function_arg_info): New class.
16101 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16102 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
16103 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
16104 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
16105 * calls.c (initialize_argument_information): Update call to
16106 targetm.calls.partial_bytes.
16107 (emit_library_call_value_1): Likewise.
16108 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
16109 * function.c (assign_parm_find_entry_rtl): Likewise.
16110 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
16111 function_arg_info instead of a mode, type and named flag.
16112 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
16113 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
16114 (cmse_func_args_or_return_in_stack): Update accordingly.
16115 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
16116 function_arg_info instead of a mode, type and named flag.
16117 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
16118 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
16119 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
16120 * config/fr30/fr30.c: Include calls.h.
16121 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
16122 type and named flag.
16123 * config/frv/frv.c: Include calls.h.
16124 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
16125 type and named flag.
16126 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
16127 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
16128 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
16129 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
16130 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
16131 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
16132 * config/microblaze/microblaze.c (function_arg_partial_bytes):
16133 Likewise.
16134 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
16135 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
16136 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
16137 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
16138 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
16139 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
16140 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
16141 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
16142 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
16143 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
16144 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
16145 (rs6000_parm_needs_stack): Update call accordingly.
16146 * config/sh/sh.c (sh_arg_partial_bytes): Take a
16147 function_arg_info instead of a mode, type and named flag.
16148 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
16149 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
16150
16151 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16152
16153 * calls.h (must_pass_va_arg_in_stack): Declare.
16154 * calls.c (must_pass_va_arg_in_stack): New function.
16155 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
16156 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
16157 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
16158 Likewise.
16159 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16160
16161 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
16162
16163 * calls.h (pass_va_arg_by_reference): Declare.
16164 * calls.c (pass_va_arg_by_reference): New function.
16165 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
16166 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
16167 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
16168 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
16169 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
16170 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
16171 (mips_gimplify_va_arg_expr): Likewise.
16172 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
16173 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
16174 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
16175 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
16176 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
16177 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
16178 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
16179 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
16180 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
16181 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
16182 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
16183
16184 2019-08-20 Richard Biener <rguenther@suse.de>
16185
16186 PR target/91498
16187 * config/i386/i386-features.c (general_scalar_chain::convert_op):
16188 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
16189 (convert_scalars_to_vector): Add timode_p parameter and use it
16190 to guard TImode-only operation.
16191 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
16192 (pass_stv::execute): Pass down timode_p.
16193
16194 2019-08-20 Lili Cui <lili.cui@intel.com>
16195
16196 * common/config/i386/i386-common.c
16197 (processor_names): Add tigerlake and cooperlake.
16198 (processor_alias_table): Add tigerlake and cooperlake.
16199 * config.gcc: Add -march=tigerlake and cooperlake.
16200 * config/i386/driver-i386.c
16201 (host_detect_local_cpu): Detect tigerlake and cooperlake.
16202 Add "has_avx" to classify processor.
16203 * config/i386/i386-builtins.c (processor_model) :
16204 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
16205 (arch_names_table): Add tigerlake and cooperlake.
16206 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
16207 and PROCESSOR_COOPERLAKE.
16208 * config/i386/i386-c.c
16209 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
16210 * config/i386/i386-options.c
16211 (m_TIGERLAKE): Define.
16212 (m_COOPERLAKE): Ditto.
16213 (m_CORE_AVX512): Ditto.
16214 (processor_cost_table): Add cascadelake.
16215 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
16216 * config/i386/i386.h
16217 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
16218 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16219 (PTA_MOVDIRI): Ditto.
16220 (PTA_MOVDIR64B): Ditto.
16221 (PTA_COOPERLAKE): Ditto.
16222 (PTA_TIGERLAKE): Ditto.
16223 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
16224 * doc/extend.texi: Add tigerlake and cooperlake.
16225 * doc/invoke.texi: Add tigerlake and cooperlake.
16226
16227 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
16228
16229 * doc/install.texi (Specific, alpha): Remove note to use
16230 binutils 2.11.2 or later.
16231
16232 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
16233
16234 PR middle-end/89544
16235 * function.c (assign_parm_find_stack_rtl): Use larger alignment
16236 when possible.
16237
16238 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
16239
16240 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
16241 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
16242 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
16243 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
16244 * config/aarch64/constraints.md (Dt): New constraint
16245 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
16246
16247 2019-08-19 Richard Biener <rguenther@suse.de>
16248
16249 PR tree-optimization/91403
16250 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
16251 cases we can handle with tail-recursion...
16252 (follow_ssa_edge_expr): ... here. Do so.
16253
16254 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
16255
16256 PR target/91441
16257 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
16258 implemented for -fsanitize=kernel-address, and merge check logic
16259 with -fsanitize=address.
16260
16261 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
16262
16263 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
16264 for cpu and machine. Factor 64/32b builtins.
16265
16266 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
16267
16268 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
16269 gone, point to sourceforge.net.
16270
16271 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16272
16273 * doc/ux.texi (User Experience Guidelines): Update reference.
16274
16275 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
16276
16277 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
16278 not LGPL".
16279
16280 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
16281
16282 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
16283 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
16284
16285 2019-08-16 Martin Sebor <msebor@redhat.com>
16286
16287 * tree.def (TYPE_SIZE): Clarify.
16288 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
16289
16290 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
16291
16292 PR tree-optimization/91109
16293 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
16294 * lra.c (lra): Use lra_need_for_scratch_reg_p.
16295 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
16296
16297 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
16298
16299 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
16300 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
16301 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
16302 (uavg<mode>3_ceil): New expander.
16303 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
16304 mode iterator when creating CONST1_RTX.
16305 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
16306 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
16307 mode iterator for const1_operand predicate.
16308
16309 2019-08-16 Richard Biener <rguenther@suse.de>
16310
16311 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
16312 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
16313 follow_ssa_edge.
16314 (follow_ssa_edge_in_condition_phi_branch): Likewise.
16315 (analyze_evolution_in_loop): Likewise.
16316 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
16317 (follow_ssa_edge_expr): ... here. Refactor code.
16318
16319 2019-08-16 Richard Biener <rguenther@suse.de>
16320
16321 PR target/91469
16322 * config/i386/i386-features.c
16323 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
16324
16325 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16326
16327 PR other/91255
16328 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
16329 only if subst_name matches curr_attr string.
16330
16331 2019-08-16 Richard Biener <rguenther@suse.de>
16332
16333 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
16334 stmt at gsi_p, instead replace it with a NOP removed later.
16335 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
16336 that became dead because of that.
16337
16338 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
16339
16340 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
16341 for which we can't represent a range.
16342 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
16343 set_varying.
16344 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
16345 Set VR_UNDEFINED if type is not supported.
16346 * tree-ssanames.c (get_range_info): Pass type to set_varying.
16347 * tree-vrp.c (value_range_base::check): Assert that a varying has
16348 min/max set.
16349 (value_range_base::equal_p): Early bail for undefines.
16350 (value_range_base::set_varying): Accept a type.
16351 (value_range::set_varying): Same.
16352 (value_range_base::type): VARYING can have a type, while UNDEFINE
16353 is typeless.
16354 (value_range_base::dump): Print type for VARYING nodes.
16355 (value_range_base::set): Add type to VARYING.
16356 (extract_range_from_multiplicative_op): Pass type to set_varying.
16357 (extract_range_from_binary_expr): Same.
16358 (value_range_base::intersect_helper): Same.
16359 (value_range_base::union_helper): Same.
16360 (value_range_base::normalize_symbolics): Same.
16361 (determine_value_range_1): Same.
16362 * tree-vrp.h (class value_range_base): Add type to set_varying.
16363 Add prototype for dump(void).
16364 Add prototype for supports_type_p.
16365 (class value_range): Add type to set_varying.
16366 Add prototype for dump(void).
16367 * vr-values.c (set_value_range_to_truthvalue): Pass type to
16368 set_varying.
16369 (vr_values::get_lattice_entry): Set varying even if propagation
16370 finished.
16371 Pass type to set_varying.
16372 (vr_values::get_value_range): Remove vr_const_varying.
16373 Reallocate the lattice if needed.
16374 (vr_values::update_value_range): Pass type to set_varying.
16375 (vr_values::extract_range_for_var_from_comparison_expr): Same.
16376 (vr_values::extract_range_from_binary_expr): Same.
16377 (vr_values::extract_range_from_unary_expr): Same.
16378 (vr_values::extract_range_from_cond_expr): Same.
16379 (vr_values::check_for_binary_op_overflow): Same.
16380 (vr_values::extract_range_basic): Same.
16381 (vr_values::extract_range_from_assignment): Same.
16382 (vr_values::vr_values): Increase size of num_vr_values.
16383 (vr_values::extract_range_from_phi_node): Pass type to
16384 set_varying.
16385
16386 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
16387
16388 PR target/90878
16389 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
16390 for costs of hard register moves.
16391 (ix86_register_move_cost): Likewise.
16392 * config/i386/i386.h (processor_costs): Move costs of hard
16393 register moves to hard_register. Add int_load, int_store,
16394 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16395 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
16396 for costs of RTL expressions.
16397 * config/i386/x86-tune-costs.h: Move costs of hard register
16398 moves to hard_register. Duplicate int_load, int_store,
16399 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
16400 sse_load, sse_store for costs of RTL expressions.
16401
16402 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16403
16404 * target.def (setup_incoming_vararg_bounds): Remove.
16405 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
16406 * doc/tm.texi: Regenerate.
16407 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
16408 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
16409 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
16410 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
16411
16412 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16413
16414 MSP430: Fix lines over 80 characters long in
16415 config/msp430/*.{c,h} files
16416
16417 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
16418 specifier in string.
16419 (msp430_select_hwmult_lib): Split line more than 80 characters long.
16420 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
16421 redundant old comment.
16422 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16423 Split line more than 80 characters long.
16424 * config/msp430/msp430.c (msp430_option_override): Likewise.
16425 (msp430_return_in_memory): Likewise.
16426 (msp430_gimplify_va_arg_expr): Likewise.
16427 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
16428 (msp430_legitimate_constant): Likewise.
16429 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
16430 (msp430_attr): Likewise.
16431 (msp430_data_attr): Likewise.
16432 (msp430_start_function): Likewise.
16433 (gen_prefix): Likewise.
16434 (msp430_init_sections): Likewise.
16435 (msp430_select_section): Likewise.
16436 (msp430_function_section): Likewise.
16437 (msp430_unique_section): Likewise.
16438 (msp430_output_aligned_decl_common): Likewise.
16439 (msp430_do_not_relax_short_jumps): Likewise.
16440 (msp430_init_builtins): Likewise.
16441 (msp430_expand_delay_cycles): Likewise.
16442 (msp430_expand_prologue): Likewise.
16443 (msp430_expand_epilogue): Likewise.
16444 (msp430_expand_helper): Likewise.
16445 (msp430_split_movsi): Likewise.
16446 (msp430_print_operand): Likewise.
16447 (msp430_return_addr_rtx): Likewise.
16448 (msp430x_extendhisi): Likewise.
16449 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
16450 (ASM_SPEC): Likewise.
16451 Remove very obvious comments.
16452 (LIB_SPEC): Split line more than 80 characters long.
16453 (EH_RETURN_HANDLER_RTX): Likewise.
16454 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16455
16456 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16457
16458 MSP430: Fix whitespace errors and incorrect indentation in
16459 config/msp430/*.{c,h} files
16460
16461 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
16462 (msp430_select_hwmult_lib): Likewise.
16463 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
16464 (msp430_extract_mcu_data): Likewise.
16465 (struct t_msp430_mcu_data): Likewise.
16466 * config/msp430/msp430.c (struct machine_function): Remove whitespace
16467 before left square bracket.
16468 (msp430_option_override): Fix indentation.
16469 (msp430_hard_regno_nregs_with_padding): Likewise.
16470 (msp430_initial_elimination_offset): Likewise.
16471 (msp430_special_register_convention_p): Remove whitespace before left
16472 square bracket and after exclamation mark.
16473 (msp430_evaluate_arg): Likewise.
16474 (msp430_callee_copies): Fix indentation.
16475 (msp430_gimplify_va_arg_expr): Likewise.
16476 (msp430_function_arg_advance): Remove whitespace before left square
16477 bracket.
16478 (reg_ok_for_addr): Likewise.
16479 (msp430_preserve_reg_p): Likewise.
16480 (msp430_compute_frame_info): Likewise.
16481 (msp430_asm_output_addr_const_extra): Add space between function name
16482 and open parenthesis.
16483 (has_section_name): Fix indentation.
16484 (msp430_attr): Remove trailing whitespace.
16485 (msp430_section_attr): Likewise.
16486 (msp430_data_attr): Likewise.
16487 (struct msp430_attribute_table): Fix comment and whitespace.
16488 (msp430_start_function): Remove whitespace before left square bracket.
16489 Add space between function name and open parenthesis.
16490 (msp430_select_section): Remove trailing whitespace.
16491 (msp430_section_type_flags): Remove trailing whitespace.
16492 (msp430_unique_section): Remove space before closing parenthesis.
16493 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16494 (msp430_builtins): Remove whitespace before left square bracket.
16495 (msp430_init_builtins): Fix indentation.
16496 (msp430_expand_prologue): Remove whitespace before left square bracket.
16497 Remove space before closing parenthesis.
16498 (msp430_expand_epilogue): Remove whitespace before left square bracket.
16499 (msp430_split_movsi): Remove space before closing parenthesis.
16500 (helper_function_name_mappings): Fix indentation.
16501 (msp430_use_f5_series_hwmult): Fix whitespace.
16502 (use_32bit_hwmult): Likewise.
16503 (msp430_no_hwmult): Likewise.
16504 (msp430_output_labelref): Remove whitespace before left square bracket.
16505 (msp430_print_operand_raw): Likewise.
16506 (msp430_print_operand_addr): Likewise.
16507 (msp430_print_operand): Add two spaces after '.' in comment.
16508 Fix trailing whitespace.
16509 (msp430x_extendhisi): Fix indentation.
16510 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16511 tab.
16512 (PC_REGNUM): Likewise.
16513 (STACK_POINTER_REGNUM): Likewise.
16514 (CC_REGNUM): Likewise.
16515
16516 2019-08-15 Richard Biener <rguenther@suse.de>
16517
16518 PR target/91454
16519 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16520 helper.
16521 (general_scalar_chain::make_vector_copies): Use it.
16522
16523 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16524
16525 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16526
16527 2019-08-15 Martin Liska <mliska@suse.cz>
16528
16529 * tree-ssa-dce.c (propagate_necessity): We can't reach now
16530 operators with no arguments.
16531 (eliminate_unnecessary_stmts): Likewise here.
16532
16533 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
16534
16535 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16536 <case COMPARE>: Revert 2019-08-14 change.
16537 (convertible_comparison_p): Revert 2019-08-14 change. Return false
16538 for (TARGET_64BIT || mode != DImode).
16539
16540 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
16541
16542 * tree-vrp.c (value_range_base::set): Merge in code from
16543 value_range_base::set_and_canonicalize.
16544 Enforce canonicalization at set time.
16545 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16546 (value_range_base::set_undefined): Inline call to set().
16547 (value_range_base::set_varying): Same.
16548 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16549 (vrp_val_max): New argument handle_pointers.
16550 (vrp_val_min): Same.
16551 (ranges_from_anti_range): Same.
16552 (extract_range_into_wide_ints): Use tree argument instead of sign
16553 and precision.
16554 (extract_range_from_multiplicative_op): Take in tree type instead
16555 of precision and sign. Adapt function for canonicalized ranges.
16556 (extract_range_from_binary_expr): Pass type to
16557 extract_range_from_multiplicative_op.
16558 Adapt for canonicalized ranges.
16559 (extract_range_from_unary_expr): Same.
16560 (value_range_base::intersect_helper): Adjust for canonicalized
16561 ranges.
16562 (value_range_base::union_helper): Same.
16563 (value_range_base::normalize_symbolics): New.
16564 * tree-vrp.h (class value_range_base): Remove
16565 set_and_canonicalize.
16566 New prototype for normalize_symbolics.
16567 (class value_range): Remove set_and_canonicalize.
16568 (vrp_val_min): Adjust prototype.
16569 (vrp_val_max): Same.
16570 * vr-values.c
16571 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16572 instead of set_and_canonicalize.
16573
16574 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16575
16576 PR middle-end/91444
16577 * tree-vect-stmts.c (vectorizable_call): Check that the function
16578 is a BUILT_IN_MD function before passing it to
16579 targetm.vectorize.builtin_md_vectorized_function.
16580
16581 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16582
16583 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16584 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16585 (aarch64_select_early_remat_modes): Use it.
16586
16587 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16588
16589 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16590 16 for SVE predicates even if they are fixed-length.
16591
16592 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16593
16594 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16595 operand order match the MOV /Z alias.
16596
16597 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16598
16599 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16600 the vector pattern as an aarch64_svpattern argument. Update the
16601 overloaded caller accordingly.
16602 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16603 (aarch64_output_sve_vector_inc_dec): Likewise.
16604
16605 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16606
16607 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16608 multiplication case, try to compute VG * (lowest set bit) directly
16609 rather than always basing the multiplication on VG. Use
16610 expand_mult for the multiplication if we can.
16611
16612 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16613
16614 * config/aarch64/aarch64-protos.h
16615 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16616 (aarch64_sve_inc_dec_immediate_p): Rename to...
16617 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16618 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16619 (aarch64_output_sve_scalar_inc_dec): Declare.
16620 (aarch64_output_sve_inc_dec_immediate): Rename to...
16621 (aarch64_output_sve_vector_inc_dec): ...this.
16622 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16623 (aarch64_output_sve_scalar_inc_dec): New functions.
16624 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16625 arguments. Only handle true ADDVL and ADDPL instructions;
16626 don't emit an INC or DEC.
16627 (aarch64_sve_inc_dec_immediate_p): Rename to...
16628 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16629 (aarch64_output_sve_inc_dec_immediate): Rename to...
16630 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16631 aarch64_sve_vector_inc_dec_immediate_p.
16632 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16633 (aarch64_sve_plus_immediate): New predicates.
16634 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16635 rather than aarch64_sve_addvl_addpl_immediate.
16636 (aarch64_sve_inc_dec_immediate): Rename to...
16637 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16638 aarch64_sve_vector_inc_dec_immediate_p.
16639 (aarch64_sve_add_operand): Update accordingly.
16640 * config/aarch64/constraints.md (Uai): New constraint.
16641 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16642 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16643 operand into a register if it satisfies aarch64_sve_plus_immediate.
16644 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16645 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16646 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16647 aarch64_output_sve_vector_inc_dec instead of
16648 aarch64_output_sve_inc_dec_immediate.
16649
16650 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16651
16652 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16653 (UNSPEC_REVW): New constants.
16654 (elem_bits): New mode attribute.
16655 (SVE_INT_UNARY): New int iterator.
16656 (optab): Handle UNSPEC_REV[BHW].
16657 (sve_int_op): New int attribute.
16658 (min_elem_bits): Handle VNx16QI and the predicate modes.
16659 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16660 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16661 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16662 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16663 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16664 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16665 unspecs based on the total width of the reversed data.
16666 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16667 reinterpret followed by a subreg on big-endian targets.
16668
16669 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16670 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16671
16672 * config/aarch64/aarch64-sve.md
16673 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16674 alternatives in which one of the inputs is in the same register
16675 as the output.
16676
16677 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16678
16679 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16680 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16681
16682 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16683
16684 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16685 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16686
16687 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16688 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16689
16690 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16691 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16692 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16693
16694 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16695 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16696
16697 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16698 Add an alternative that uses reversed shifts.
16699
16700 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16701
16702 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16703 struct.
16704
16705 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16706
16707 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16708 a commutativity marker.
16709
16710 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16711 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16712
16713 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16714 (aarch64_prepare_sve_cond_int_fma): Declare.
16715 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16716 (aarch64_prepare_sve_int_fma): New functions.
16717 (aarch64_prepare_sve_cond_int_fma): Likewise.
16718 * config/aarch64/aarch64-sve.md
16719 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16720 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16721 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16722 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16723 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16724 (*madd<mode>): Rename to...
16725 (*fma<mode>4): ...this.
16726 (*msub<mode>): Rename to...
16727 (*fnma<mode>4): ...this.
16728
16729 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16730 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16731
16732 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16733 Print 2.0 naturally.
16734 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16735 * config/aarch64/predicates.md
16736 (aarch64_sve_float_negated_arith_immediate): New predicate,
16737 renamed from aarch64_sve_float_arith_with_sub_immediate.
16738 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16739 positive and negative constants.
16740 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16741 or an aarch64_sve_float_arith_with_sub_immediate.
16742 * config/aarch64/constraints.md (vsN): Use
16743 aarch64_sve_float_negated_arith_immediate.
16744 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16745 iterator.
16746 (sve_pred_fp_rhs2_immediate): New int attribute.
16747 * config/aarch64/aarch64-sve.md
16748 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16749 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16750 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16751 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16752 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16753 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16754
16755 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16756 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16757
16758 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16759 (*aarch64_cond_abd<SVE_F:mode>_3)
16760 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16761
16762 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16763 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16764
16765 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16766 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16767
16768 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16769 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16770
16771 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16772 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16773 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16774 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16775 optabs.
16776 * optabs.h (create_convert_operand_from): Expand comment.
16777 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16778 when mapping scalar rtxes to vector operands.
16779 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16780 ashiftrt and lshiftrt.
16781 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16782 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16783 (*cond_<optab><mode>_any_const): New patterns.
16784
16785 2019-08-15 Martin Liska <mliska@suse.cz>
16786
16787 PR ipa/91438
16788 * cgraph.c (cgraph_node::remove): When setting
16789 n->origin = NULL for all nested functions, reset
16790 also next_nested.
16791
16792 2019-08-15 Martin Liska <mliska@suse.cz>
16793
16794 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16795 and next_nested.
16796
16797 2019-08-15 Martin Liska <mliska@suse.cz>
16798
16799 PR ipa/91404
16800 * passes.c (order): Remove.
16801 (uid_hash_t): Likewise).
16802 (remove_cgraph_node_from_order): Remove from set
16803 of pointers (cgraph_node *).
16804 (insert_cgraph_node_to_order): New.
16805 (duplicate_cgraph_node_to_order): New.
16806 (do_per_function_toporder): Register all 3 cgraph hooks.
16807 Skip removed_nodes now as we know about all of them.
16808
16809 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16810
16811 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16812 <case E_V8QImode>: Use vector_set path for
16813 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16814 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16815 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16816
16817 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16818
16819 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16820
16821 2019-08-14 Martin Sebor <msebor@redhat.com>
16822
16823 PR tree-optimization/91294
16824 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16825 source length as exact.
16826
16827 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16828
16829 * doc/extend.texi: Add "noinit" attribute documentation.
16830 * doc/sourcebuild.texi: Add noinit effective target documentation.
16831 * varasm.c (default_section_type_flags): Add support for "noinit"
16832 section.
16833 (default_elf_select_section): Add support for "noinit" attribute.
16834 * config/msp430/msp430.c (msp430_attribute_table): Remove
16835 "noinit" entry.
16836
16837 2019-08-14 Richard Biener <rguenther@suse.de>
16838 Uroš Bizjak <ubizjak@gmail.com>
16839
16840 PR target/91154
16841 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16842 mode arguments.
16843 (scalar_chain::smode): New member.
16844 (scalar_chain::vmode): Likewise.
16845 (dimode_scalar_chain): Rename to...
16846 (general_scalar_chain): ... this.
16847 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16848 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16849 base with TImode and V1TImode.
16850 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16851 (general_scalar_chain::vector_const_cost): Adjust for SImode
16852 chains.
16853 (general_scalar_chain::compute_convert_gain): Likewise. Add
16854 {S,U}{MIN,MAX} support.
16855 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16856 (general_scalar_chain::make_vector_copies): Likewise. Handle
16857 non-DImode chains appropriately.
16858 (general_scalar_chain::convert_reg): Likewise.
16859 (general_scalar_chain::convert_op): Likewise.
16860 (general_scalar_chain::convert_insn): Likewise. Add
16861 fatal_insn_not_found if the result is not recognized.
16862 (convertible_comparison_p): Pass in the scalar mode and use that.
16863 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16864 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16865 (scalar_to_vector_candidate_p): Remove by inlining into single
16866 caller.
16867 (general_remove_non_convertible_regs): Rename from
16868 dimode_remove_non_convertible_regs.
16869 (remove_non_convertible_regs): Remove by inlining into single caller.
16870 (convert_scalars_to_vector): Handle SImode and DImode chains
16871 in addition to TImode chains.
16872 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16873 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16874 (*<maxmin>di3_doubleword): Likewise.
16875
16876 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16877 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16878
16879 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16880 (*cond_bic<mode>_any): New patterns.
16881
16882 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16883
16884 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16885 take the equivalent mask, as well as a bit count.
16886 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16887 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16888 (aarch64_sve_pred_and_operand): New predicates.
16889 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16890 code attribute.
16891 * config/aarch64/aarch64-sve.md
16892 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16893 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16894
16895 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16896
16897 * config/aarch64/aarch64-sve.md
16898 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16899 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16900 New patterns.
16901
16902 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16903 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16904
16905 * config/aarch64/aarch64-sve.md
16906 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16907 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16908
16909 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16910 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16911
16912 * config/aarch64/aarch64-sve.md
16913 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16914 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16915
16916 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16917
16918 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16919 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16920 New pattern.
16921
16922 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16923 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16924
16925 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16926
16927 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16928 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16929
16930 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16931 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16932 (aarch64_print_operand): Add support for %I.
16933 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16934 Bitcast floating-point constants to the corresponding integer constant.
16935 (aarch64_float_const_representable_p): Handle vectors as well
16936 as scalars.
16937 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16938 for the new vcond_mask_<mode><vpred> expander.
16939 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16940 test aarch64_float_const_representable_p.
16941 (aarch64_sve_reg_or_dup_imm): New predicate.
16942 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16943 gen_vcond_mask_<mode><vpred> instead of
16944 gen_aarch64_sve_dup<mode>_const.
16945 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16946 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16947 for operands 1 and 2 respectively. Force operand 2 into a
16948 register if operand 1 is a register. Fold old define_insn...
16949 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16950 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16951 floating-point constants that can be moved as integers. Add
16952 alternatives for MOV /M and FMOV /M.
16953 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16954 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16955 1 and 2 respectively.
16956 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16957 as scalars.
16958 (vss): New constraint.
16959
16960 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16961
16962 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16963 (aarch64_sve_float_maxmin_operand): New predicates.
16964 * config/aarch64/constraints.md (vsB): New constraint.
16965 (vsM): Fix typo.
16966 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16967 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16968 UNSPEC_COND_FMINNM.
16969 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16970 Use aarch64_sve_float_maxmin_operand for operand 2.
16971 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16972 Add alternatives for the constant forms.
16973
16974 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16975
16976 * config/aarch64/constraints.md (vsb): New constraint.
16977 (vsm): Generalize description.
16978 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16979 iterator.
16980 (sve_imm_con): Handle smax, smin, umax and umin.
16981 (sve_imm_prefix): New code attribute.
16982 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16983 (aarch64_sve_vsb_operand): New predicates.
16984 (aarch64_sve_mul_immediate): Rename to...
16985 (aarch64_sve_vsm_immediate): ...this.
16986 (aarch64_sve_mul_operand): Rename to...
16987 (aarch64_sve_vsm_operand): ...this.
16988 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16989 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16990 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16991 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16992 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16993 add movprfx support for the immediate alternatives.
16994 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16995 of the above.
16996 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16997 for operand 3.
16998
16999 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17000
17001 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
17002 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
17003 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
17004
17005 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17006
17007 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
17008 (optab, sve_int_op): Handle them.
17009 * config/aarch64/aarch64-sve.md: Expand comment.
17010
17011 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17012
17013 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
17014 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
17015 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
17016
17017 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17018
17019 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
17020 (aarch64_expand_sve_const_pred_trn): New functions.
17021 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
17022 use the above functions when the parameter is true.
17023 (aarch64_expand_sve_const_pred): Update call accordingly.
17024 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
17025 Rename to...
17026 (@aarch64_sve_<perm_insn><mode>): ...this.
17027
17028 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17029
17030 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
17031 Declare.
17032 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
17033 (aarch64_sve_emit_int_cmp): New functions.
17034 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
17035 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
17036 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
17037 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
17038 (UNSPEC_PRED_Z): New unspec.
17039 (set_clobber_cc_nzc): Delete.
17040 * config/aarch64/aarch64-sve.md: Add a block comment about
17041 UNSPEC_PRED_Z.
17042 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
17043 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
17044 the old pattern with that name. Use UNSPEC_PRED_Z instead of
17045 UNSPEC_MERGE_PTRUE.
17046 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
17047 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
17048 check for compatible predicates.
17049 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
17050 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
17051 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
17052 comparisons above.
17053
17054 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17055
17056 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
17057 * config/aarch64/aarch64-sve.md: Add a section describing it.
17058 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
17059 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
17060 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
17061 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
17062 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
17063 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
17064 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
17065 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
17066 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
17067 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
17068 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
17069 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
17070 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
17071 (aarch64_evpc_rev_local): Update accordingly.
17072
17073 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17074
17075 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
17076 iterators.
17077 (SVE_BHSI, SVE_SDI): Tweak comment.
17078 (SVE_HSDI): Likewise. Fix definition.
17079 (SVE_SDF): New mode iterator.
17080 (elem_bits): New mode attribute.
17081 (SVE_COND_FCVT): New int iterator.
17082 * config/aarch64/aarch64-sve.md
17083 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
17084 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
17085 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
17086 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
17087 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
17088 ...these new patterns.
17089 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
17090 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
17091 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
17092 Merge into...
17093 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
17094 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
17095 ...these new patterns.
17096 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
17097 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
17098 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
17099 ...this new pattern.
17100 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
17101 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
17102 ...this new pattern.
17103 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
17104
17105 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17106
17107 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
17108 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
17109 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
17110 unspecs.
17111 (optab, su): Handle them.
17112 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
17113 * config/aarch64/aarch64-sve.md
17114 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
17115 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
17116 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
17117 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
17118 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
17119 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
17120 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
17121 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
17122 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
17123 FIXUORS.
17124 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
17125 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
17126 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
17127 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
17128 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
17129 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
17130 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
17131 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
17132 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
17133 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
17134 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
17135 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
17136 of UNSPEC_FLOAT_CONVERT.
17137 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
17138 aarch64_sve_extend<mode><Vwide>2.
17139
17140 2019-08-14 Richard Biener <rguenther@suse.de>
17141
17142 PR target/91154
17143 * config/i386/i386-features.c
17144 (dimode_scalar_chain::compute_convert_gain): Compute and dump
17145 individual instruction gain. Fix reg-reg copy GRP cost. Use
17146 ix86_cost->sse_op for vector instruction costs.
17147
17148 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17149
17150 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
17151 (cmp_op): Handle it.
17152 (SVE_COND_FP_CMP): Rename to...
17153 (SVE_COND_FP_CMP_I0): ...this.
17154 (SVE_FP_CMP): Remove.
17155 * config/aarch64/aarch64-sve.md
17156 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
17157 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
17158 using unspecs to represent the comparison.
17159 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
17160 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
17161 accordingly.
17162 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
17163 (aarch64_unspec_cond_code): Move after integer code. Handle
17164 UNORDERED.
17165 (aarch64_emit_sve_predicated_cond): Replace with...
17166 (aarch64_emit_sve_fp_cond): ...this new function.
17167 (aarch64_emit_sve_or_conds): Replace with...
17168 (aarch64_emit_sve_or_fp_conds): ...this new function.
17169 (aarch64_emit_sve_inverted_cond): Replace with...
17170 (aarch64_emit_sve_invert_fp_cond): ...this new function.
17171 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
17172
17173 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17174
17175 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
17176 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
17177 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
17178 SVE_HSD instead of SVE_SD.
17179
17180 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17181 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17182
17183 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
17184 iterator.
17185 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
17186 attributes.
17187 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
17188 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
17189 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
17190 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
17191 (*div<SVE_F:mode>3): Generalize to...
17192 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
17193
17194 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17195 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17196
17197 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
17198 constants.
17199 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
17200 predicate.
17201 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
17202 Declare.
17203 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
17204 function.
17205 * config/aarch64/aarch64-sve.md: Add a block comment about the
17206 handling of predicated FP operations.
17207 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
17208 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
17209 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17210 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
17211 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
17212 operand.
17213 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
17214 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
17215 operand.
17216 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
17217 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
17218 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
17219 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
17220 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
17221 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
17222 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17223 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
17224 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
17225 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
17226 strictness operands. Use aarch64_sve_pred_dominates_p to check
17227 whether the predicate on the conditional operation is suitable
17228 for merging. Split patterns into the canonical equal-predicate form.
17229 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
17230 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
17231
17232 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17233 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17234
17235 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
17236 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
17237 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
17238 rtx codes.
17239 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
17240 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
17241 unspecs.
17242
17243 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17244 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
17245
17246 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
17247 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
17248 actually has, rather than relying on REG_EQUAL notes.
17249 Make the insn operand order match the SVE operand order.
17250 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
17251 the SVE operand order.
17252
17253 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17254
17255 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
17256 (aarch64_emit_set_immediate): Likewise.
17257 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
17258 (aarch64_pfalse_reg): Likewise.
17259 (aarch64_convert_sve_data_to_pred): New function.
17260 (aarch64_sve_move_pred_via_while): Take an optional target register
17261 and the required register mode.
17262 (aarch64_expand_sve_const_pred_1): New function.
17263 (aarch64_expand_sve_const_pred): Likewise.
17264 (aarch64_expand_mov_immediate): Build an all-true predicate
17265 if the significant bits of the immediate are all true. Use
17266 aarch64_expand_sve_const_pred for all compile-time predicate constants.
17267 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
17268 before register allocation.
17269 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
17270 a VNx16BI PTRUE when splitting the memory alternative.
17271 (vec_duplicate<mode>): Update accordingly.
17272 (*pred_cmp<cmp_op><mode>): Rename to...
17273 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
17274
17275 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
17276
17277 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
17278 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
17279 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
17280 (UNSPEC_PTEST): New unspec.
17281 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
17282 * config/aarch64/iterators.md (data_bytes): New mode attribute.
17283 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
17284 * config/aarch64/aarch64-sve.md: Add a new section describing the
17285 handling of UNSPEC_PTEST.
17286 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
17287 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
17288 (ptest_ptrue<mode>): Replace with...
17289 (aarch64_ptest<mode>): ...this new pattern.
17290 (cbranch<mode>4): Update after above changes.
17291 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
17292 UNSPEC_PTEST_PTRUE.
17293 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
17294 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
17295 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
17296
17297 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
17298
17299 PR lto/91287
17300 * builtins.c (builtin_with_linkage_p): New function.
17301 * builtins.h (builtin_with_linkage_p): New function.
17302 * symtab.c (write_symbol): Remove redundant assert.
17303 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
17304 Remove FIXME and use builtin_with_linkage_p.
17305
17306 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17307
17308 PR middle-end/91421
17309 * tree-core.h (function_decl::function_code): Change type to
17310 unsigned int.
17311 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
17312 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
17313 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
17314 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
17315 is BUILT_IN_NORMAL.
17316 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
17317 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
17318 (fndecl_built_in_p): Change the type of the "name" argument to
17319 unsigned int.
17320 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
17321 after check for DECL_BUILT_IN_CLASS.
17322 * cgraphclones.c (build_function_decl_skip_args): Use
17323 set_decl_built_in_function.
17324 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
17325 * ipa-split.c (split_function): Likewise.
17326 * langhooks.c (add_builtin_function_common): Likewise.
17327 * omp-simd-clone.c (simd_clone_create): Likewise.
17328 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
17329 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
17330 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
17331 DECL_FUNCTION_CODE.
17332 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
17333 instead of DECL_FUNCTION_CODE.
17334 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
17335 instead of DECL_FUNCTION_CODE.
17336 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
17337 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
17338 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
17339 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
17340 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
17341 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
17342 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
17343 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
17344 (alpha_gimple_fold_builtin): Likewise.
17345 * config/arc/arc.c (arc_expand_builtin): Likewise.
17346 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
17347 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
17348 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
17349 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
17350 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
17351 * config/frv/frv.c (frv_expand_builtin): Likewise.
17352 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
17353 (gcn_expand_builtin): Likewise.
17354 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
17355 (fold_builtin_cpu): Likewise.
17356 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
17357 * config/i386/i386.c (ix86_fold_builtin): Likewise.
17358 (ix86_gimple_fold_builtin): Likewise.
17359 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
17360 (ia64_expand_builtin): Likewise.
17361 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
17362 * config/mips/mips.c (mips_expand_builtin): Likewise.
17363 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
17364 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
17365 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
17366 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
17367 * config/pa/pa.c (pa_expand_builtin): Likewise.
17368 * config/pru/pru.c (pru_expand_builtin): Likewise.
17369 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
17370 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17371 Likewise.
17372 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
17373 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
17374 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
17375 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
17376 (rs6000_builtin_reciprocal): Likewise.
17377 * config/rx/rx.c (rx_expand_builtin): Likewise.
17378 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
17379 * config/s390/s390.c (s390_expand_builtin): Likewise.
17380 * config/sh/sh.c (sh_expand_builtin): Likewise.
17381 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
17382 (sparc_fold_builtin): Likewise.
17383 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
17384 * config/spu/spu.c (spu_expand_builtin): Likewise.
17385 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
17386 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
17387 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
17388 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
17389 (xtensa_expand_builtin): Likewise.
17390
17391 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17392
17393 PR middle-end/91421
17394 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
17395 before the DECL_FUNCTION_CODE.
17396 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
17397 to check for a BUILT_IN_ALLOCA call.
17398 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
17399 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
17400 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
17401 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17402 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
17403 for BUILT_IN_NORMAL functions.
17404 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
17405 test for BUILT_IN_TM_ABORT.
17406 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
17407 to check for a BUILT_IN_STACK_RESTORE call.
17408 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
17409 * tree-ssa-threadedge.c
17410 (record_temporary_equivalences_from_stmts_at_dest): Check for a
17411 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
17412 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
17413 test for a BUILT_IN_NORMAL call instead of a negative test for
17414 an internal function call.
17415
17416 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17417
17418 * tree.h (build_vector_a_then_b): Declare.
17419 * tree.c (build_vector_a_then_b): New function.
17420 * fold-const-call.c (fold_while_ult): Likewise.
17421 (fold_const_call): Use it to handle IFN_WHILE_ULT.
17422 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
17423 (aarch64_svpattern): New enum.
17424 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
17425 constants through aarch64_expand_mov_immediate.
17426 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
17427 than general_operand as the predicate for operand 1.
17428 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
17429 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
17430 insn_type.
17431 (simd_immediate_info::simd_immediate_info): New overload that
17432 takes a scalar_int_mode and an svpattern.
17433 (simd_immediate_info::u): Add a "pattern" field.
17434 (svpattern_token): New function.
17435 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
17436 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
17437 (aarch64_sve_move_pred_via_while): New functions.
17438 (aarch64_expand_mov_immediate): Try using
17439 aarch64_sve_move_pred_via_while for predicates that contain N ones
17440 followed by M zeros but that do not correspond to a VLnnn pattern.
17441 (aarch64_sve_pred_valid_immediate): New function.
17442 (aarch64_simd_valid_immediate): Use it instead of dealing directly
17443 with PTRUE and PFALSE.
17444 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
17445 forms.
17446
17447 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
17448
17449 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
17450 flag.
17451 (darwin_override_options): Likewise.
17452 * config/darwin.h: Likewise.
17453 * config/darwin.opt: Likewise.
17454 * config/i386/i386.c (output_pic_addr_const): Likewise.
17455 * config/rs6000/darwin.h: Likewise.
17456 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
17457 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
17458 ... this TARGET_MACHO_SYMBOL_STUBS.
17459 (FUNCTION_PROFILER):Likewise.
17460 * config/i386/i386.h: Likewise.
17461
17462 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17463
17464 * config/i386/i386-expand.c (ix86_expand_vector_extract)
17465 <case E_V2SImode>: Use vec_extr path for
17466 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17467 <case E_V8QImode>: Ditto.
17468 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
17469 Use SWI48 mode iterator. Use %k to output operand 0.
17470 (*mmx_pextrw): New insn pattern.
17471 (*mmx_pextrb): Ditto.
17472 (*mmx_pextrb_zext): Ditto.
17473
17474 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
17475
17476 * target.def (libc_has_function, libc_has_fast_function): Improve
17477 documentation strings.
17478 * doc/tm.texi: Regenerate.
17479
17480 2019-08-13 Caroline Tice <cmtice@google.com>
17481
17482 PR other/91396
17483 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
17484 vtv_end.o or vtv_end_preinit.o files if !static.
17485
17486 2019-08-13 Olivier Hainque <hainque@adacore.com>
17487
17488 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17489
17490 2019-08-13 Olivier Hainque <hainque@adacore.com>
17491
17492 * rtlanal.c (tablejump_casesi_pattern): New function, to
17493 determine if a tablejump insn is a casesi dispatcher. Extracted
17494 from patch_jump_insn.
17495 * rtl.h (tablejump_casesi_pattern): Declare.
17496 * cfgrtl.c (patch_jump_insn): Use it.
17497 * dwarf2cfi.c (create_trace_edges): Use it.
17498
17499 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17500
17501 PR target/81800
17502 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17503 operand is larger than a long int.
17504
17505 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17506
17507 * machmode.h (opt_mode::else_mode): New function.
17508 (opt_mode::else_blk): Use it.
17509 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17510 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17511 (aarch64_gen_stepped_int_parallel): Likewise.
17512 (aarch64_stepped_int_parallel_p): Likewise.
17513 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17514 argument.
17515 * config/aarch64/aarch64.c
17516 (aarch64_expand_sve_widened_duplicate): Delete.
17517 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17518 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17519 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17520 argument. Use early returns in the !CONST_INT_P handling.
17521 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17522 than handling some inline.
17523 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17524 from...
17525 (aarch64_simd_container_mode): ...here.
17526 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17527 (aarch64_sve_ld1rq_operand_p): New functions.
17528 * config/aarch64/predicates.md (descending_int_parallel)
17529 (aarch64_sve_ld1rq_operand): New predicates.
17530 * config/aarch64/constraints.md (UtQ): New constraint.
17531 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17532 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17533 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17534 (@aarch64_sve_reinterpret<mode>): New expander.
17535 (*aarch64_sve_reinterpret<mode>): New pattern.
17536 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17537 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17538 (*sve_ld1rq<Vesize>): Replace with...
17539 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17540
17541 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17542
17543 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17544 16:12.
17545
17546 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17547
17548 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17549 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17550 (msp430_check_path_for_devices): New.
17551 (parse_devices_csv_1): New.
17552 (parse_devices_csv): New.
17553 (msp430_extract_mcu_data): Try to find devices.csv and search for the
17554 MCU data in devices.csv before using the hard-coded data.
17555 Warn if devices.csv isn't found and the MCU wasn't found in the
17556 hard-coded data either.
17557 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17558 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17559 Search for devices.csv on -I and -L paths.
17560 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17561 msp430_set_driver_var.
17562 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17563 -mdevices-csv-loc=.
17564 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17565 searched for devices.csv.
17566 (mwarn-devices-csv): Document option.
17567
17568 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17569
17570 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17571 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17572 Use a single Dn alternative instead of separate Dz and Dm
17573 alternatives. Use aarch64_output_sve_move_immediate.
17574 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17575 function.
17576 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17577 for predicates too.
17578 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17579 (aarch64_output_ptrue): Delete.
17580
17581 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17582
17583 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17584 INDEX.
17585 (simd_immediate_info::value, simd_immediate_info::step)
17586 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17587 with...
17588 (simd_immediate_info::u): ...this new union.
17589 (simd_immediate_info::simd_immediate_info): Update accordingly.
17590 (aarch64_output_simd_mov_immediate): Likewise.
17591 (aarch64_output_sve_mov_immediate): Likewise.
17592
17593 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17594
17595 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17596 extra_gcc_objs.
17597 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17598 (msp430_select_cpu): New spec function.
17599 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17600 MCU data.
17601 * config/msp430/msp430-devices.c: New file.
17602 * config/msp430/msp430-devices.h: New file.
17603 * config/msp430/msp430.c: Remove msp430_mcu_data.
17604 (msp430_option_override): Use msp430_extract_mcu_data to extract
17605 MCU data.
17606 (msp430_use_f5_series_hwmult): Likewise.
17607 (use_32bit_hwmult): Likewise.
17608 (msp430_no_hwmult): Likewise.
17609 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17610 assembler.
17611 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17612 and -mcpu option.
17613 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17614 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17615 Remove hard-coded MCU multilib data.
17616
17617 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17618
17619 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17620 based on the mode instead of testing properties of it.
17621
17622 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17623
17624 * doc/md.texi: Document the x and y constraints for AArch64.
17625 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17626 (FP_LO8_REGS): New reg_class.
17627 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17628 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17629 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17630 * config/aarch64/predicates.md (aarch64_simd_register): Use
17631 FP_REGNUM_P instead of checking the classes manually.
17632 * config/aarch64/constraints.md (y): New constraint.
17633
17634 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17635
17636 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17637 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17638 * config/aarch64/aarch64-simd.md
17639 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17640 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17641 from the asm template.
17642 * config/aarch64/aarch64-sve.md
17643 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17644 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17645 from the asm template.
17646 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17647 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17648 from the asm template.
17649 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17650
17651 2019-08-13 Martin Liska <mliska@suse.cz>
17652
17653 * value-prof.c (gimple_ic_transform): Add new line.
17654 Print details with MSG_NOTE.
17655
17656 2019-08-13 Martin Liska <mliska@suse.cz>
17657
17658 * doc/invoke.texi: Document automatic detection of jobserver.
17659 * lto-wrapper.c (run_gcc): Detect jobserver always.
17660
17661 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17662
17663 * config/i386/i386-expand.c (ix86_expand_vector_set)
17664 <case E_V2SImode>: Use vec_merge path for
17665 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17666 <case E_V8QImode>: Ditto.
17667 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17668 (*mmx_pinsrb): Ditto.
17669
17670 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17671
17672 PR target/83250
17673 PR target/91340
17674 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17675 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17676 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17677 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17678 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17679
17680 2019-08-12 Richard Biener <rguenther@suse.de>
17681
17682 PR lto/91375
17683 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17684 flag_devirtualize.
17685
17686 2019-08-12 Richard Biener <rguenther@suse.de>
17687
17688 PR driver/91130
17689 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17690 lang_mask option, always use CL_DRIVER.
17691 (get_options_from_collect_gcc_options): Adjust.
17692 (find_and_merge_options): Likewise.
17693 (run_gcc): Likewise.
17694
17695 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17696
17697 * ipa-predicate.c (add_condition): Restore inverted test.
17698
17699 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17700
17701 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17702 (enum omp_clause_device_type_kind): New enum.
17703 (struct tree_omp_clause): Add subcode.device_type_kind.
17704 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17705 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17706 for device_type clause.
17707 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17708 * tree-pretty-print.c (dump_omp_clause): Likewise.
17709
17710 PR target/91408
17711 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17712 vector_operand.
17713
17714 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17715
17716 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17717 handling spilled pseudos.
17718
17719 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17720
17721 PR target/91386
17722 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17723 to preserve the contents of the original insns.
17724
17725 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17726
17727 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17728 (addsi3_compare_op2): Likewise.
17729
17730 2019-08-09 Martin Liska <mliska@suse.cz>
17731
17732 * alias.c (alias_ptr_types_compatible_p): Strengten
17733 type comparison in LTO mode.
17734
17735 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17736
17737 PR middle-end/90313
17738 * tree-tailcall.c (find_tail_calls): Reject calls that might
17739 read from an escaped RESULT_DECL.
17740
17741 2019-08-09 Martin Liska <mliska@suse.cz>
17742
17743 * doc/invoke.texi: Document the option value.
17744 * lto-wrapper.c (run_gcc): Set auto_parallel
17745 only with -flto=auto.
17746
17747 2019-08-09 Martin Liska <mliska@suse.cz>
17748
17749 * opts.c (common_handle_option): Error for an invalid argument
17750 to -flto=.
17751
17752 2019-08-09 Martin Liska <mliska@suse.cz>
17753
17754 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17755 use dump_printf to report optimization.
17756 (sem_variable::merge): Likwise.
17757 (sem_item_optimizer::merge_classes): Use dump_printf to report
17758 ICF hits.
17759
17760 2019-08-09 Martin Liska <mliska@suse.cz>
17761
17762 * value-prof.c (gimple_divmod_fixed_value_transform):
17763 Use dump_printf_loc.
17764 (gimple_mod_pow2_value_transform): Likewise.
17765 (gimple_mod_subtract_transform): Likewise.
17766 (init_node_map): Likewise.
17767 (gimple_ic_transform): Likewise.
17768 (gimple_stringops_transform): Likewise.
17769
17770 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17771
17772 * doc/extend.texi: Add const qualifier to ld intrinsics.
17773
17774 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17775
17776 * config/rs6000/dfp.md (D64_D128): Rename to ...
17777 (DDTD): ... this, throughout.
17778 (dfp_suffix): Rename to ...
17779 (q): ... this, throughout.
17780
17781 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17782
17783 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17784 (dfp_suffix): Ditto.
17785 (adddd3, addtd3): Merge to ...
17786 (add<mode>3 for D64_D128): ... this.
17787 (subdd3, subtd3): Merge to ...
17788 (sub<mode>3 for D64_D128): ... this.
17789 (muldd3, multd3): Merge to ...
17790 (mul<mode>3 for D64_D128): ... this.
17791 (divdd3, divtd3): Merge to ...
17792 (div<mode>3 for D64_D128): ... this.
17793 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17794 (*cmp<mode>_internal1 for D64_D128): ... this.
17795 (ftruncdd2, ftrunctd2): Merge to ...
17796 (ftrunc<mode>2 for D64_D128): ... this.
17797 (fixdddi2, fixtddi2): Merge to ...
17798 (fix<mode>di2 for D64_D128): ... this.
17799
17800 2019-08-08 Jim Wilson <jimw@sifive.com>
17801
17802 PR target/91229
17803 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17804 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17805 Pass into recursive call.
17806 (riscv_flatten_aggregate_argument): New arg. Pass to
17807 riscv_flatten_aggregate_field.
17808 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17809 riscv_flatten_aggregate_argument twice, with false and true as last
17810 arg. Process result twice. Compare results and warn if different.
17811 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17812
17813 2019-08-08 Martin Liska <mliska@suse.cz>
17814
17815 PR bootstrap/91352
17816 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17817 * lto-wrapper.c (jobserver_active_p): Likewise.
17818
17819 2019-08-08 Martin Liska <mliska@suse.cz>
17820
17821 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17822 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17823 (create_version_clone_with_body): Likewise.
17824
17825 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17826
17827 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17828 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17829 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17830 GOVD_EXPLICIT flags.
17831 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17832 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17833 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17834 call install_var_field with mask 11 instead of 3.
17835 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17836 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17837
17838 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17839
17840 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17841 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17842
17843 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17844
17845 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17846 MOVPRFX alternatives. Make the GPR alternatives more expensive
17847 than the FPR ones.
17848
17849 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17850
17851 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17852 Disparage the GPR alternative relative to the FPR one.
17853 Fix handling of 8-bit and 16-bit FPR values.
17854
17855 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17856
17857 * config/aarch64/iterators.md (BITWISEV): Delete.
17858 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17859 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17860 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17861 UNSPEC_FMINNMV, UNSPEC_FMINV.
17862 (bit_reduc_op): Delete.
17863 (sve_int_op): New int attribute.
17864 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17865 UNSPEC_FMINNMV, UNSPEC_FMINV.
17866 * config/aarch64/aarch64-sve.md
17867 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17868 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17869 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17870 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17871 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17872 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17873 new patterns.
17874 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17875 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17876 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17877 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17878 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17879 new patterns.
17880
17881 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17882
17883 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17884 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17885 (fms<mode>4, *fms<mode>4): Replace with...
17886 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17887 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17888 Use unspecs instead of rtx codes.
17889 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17890 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17891
17892 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17893
17894 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17895 int iterator.
17896 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17897 * config/aarch64/aarch64-sve.md
17898 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17899 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17900 use a single unspec for the rhs.
17901 (*<su><maxmin><mode>3): Delete.
17902 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17903
17904 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17905
17906 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17907 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17908 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17909 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17910 (optab, sve_fp_op): Handle them.
17911 (SVE_FP_UNARY): Delete.
17912 (optab): Remove sqrt entry.
17913 (sve_fp_op): Remove neg, abs and sqrt entries.
17914 (SVE_COND_FP_UNARY): New int iterator.
17915 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17916 (*<frint_pattern><mode>2): Delete.
17917 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17918 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17919 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17920 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17921
17922 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17923
17924 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17925
17926 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17927
17928 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17929 (UNSPEC_COND_FADD): ...this.
17930 (UNSPEC_COND_SUB): Rename to...
17931 (UNSPEC_COND_FSUB): ...this.
17932 (UNSPEC_COND_MUL): Rename to...
17933 (UNSPEC_COND_FMUL): ...this.
17934 (UNSPEC_COND_DIV): Rename to...
17935 (UNSPEC_COND_FDIV): ...this.
17936 (UNSPEC_COND_MAX): Rename to...
17937 (UNSPEC_COND_FMAXNM): ...this.
17938 (UNSPEC_COND_MIN): Rename to...
17939 (UNSPEC_COND_FMINNM): ...this.
17940 (UNSPEC_COND_LT): Rename to...
17941 (UNSPEC_COND_FCMLT): ...this.
17942 (UNSPEC_COND_LE): Rename to...
17943 (UNSPEC_COND_FCMLE): ...this.
17944 (UNSPEC_COND_EQ): Rename to...
17945 (UNSPEC_COND_FCMEQ): ...this.
17946 (UNSPEC_COND_NE): Rename to...
17947 (UNSPEC_COND_FCMNE): ...this.
17948 (UNSPEC_COND_GE): Rename to...
17949 (UNSPEC_COND_FCMGE): ...this.
17950 (UNSPEC_COND_GT): Rename to...
17951 (UNSPEC_COND_FCMGT): ...this.
17952 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17953 (sve_fp_op_rev): Update accordingly.
17954 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17955
17956 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17957
17958 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17959 banner comments.
17960 * config/aarch64/check-sve-md.awk: New file.
17961 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17962 (insn-conditions.md): Depend on it.
17963
17964 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17965
17966 PR target/91385
17967 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17968 (*negsi2_cmpz_zext): Ditto.
17969
17970 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17971
17972 * config/aarch64/iterators.md (commutative): Remove.
17973
17974 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17975
17976 PR driver/91130
17977 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17978 processing COLLECT_GCC_OPTIONS.
17979 (run_gcc): Likewise.
17980
17981 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17982
17983 PR tree-optimization/91109
17984 * lra-remat.c (update_scratch_ops): Remove assignment of the
17985 hard register.
17986
17987 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17988
17989 * data-streamer.h (streamer_write_poly_uint64): Declare.
17990 (streamer_read_poly_uint64): Likewise.
17991 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17992 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17993 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17994 (add_condition): Take a poly_int64 size.
17995 * ipa-predicate.c (add_condition): Likewise.
17996 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17997 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17998 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17999 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
18000 condition::size as a poly_int64.
18001 (unmodified_parm_1): Take a poly_int64 size pointer.
18002 (unmodified_parm): Likewise.
18003 (unmodified_parm_or_parm_agg_item): Likewise.
18004 (set_cond_stmt_execution_predicate): Update accordingly.
18005 (set_switch_stmt_execution_predicate): Likewise.
18006 (will_be_nonconstant_expr_predicate): Likewise.
18007 (will_be_nonconstant_predicate): Likewise.
18008 (inline_read_section): Stream condition::size as a poly_int.
18009 (ipa_fn_summary_write): Likewise.
18010
18011 2019-08-07 Martin Liska <mliska@suse.cz>
18012
18013 * fold-const.c (twoval_comparison_p): Replace int
18014 with bool as a return type.
18015 (simple_operand_p): Likewise.
18016 (operand_equal_p): Replace int with bool as a return type.
18017 * fold-const.h (operand_equal_p): Likewise.
18018
18019 2019-08-07 Jakub Jelinek <jakub@redhat.com>
18020
18021 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
18022 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
18023 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
18024 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
18025 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
18026 * tree-pretty-print.c (dump_omp_clause): Likewise.
18027 * tree-nested.c (convert_nonlocal_omp_clauses,
18028 convert_local_omp_clauses): Likewise.
18029 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
18030 Likewise.
18031 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
18032 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
18033 clause with array or reference to array types, no matter what type
18034 except for reference it has.
18035
18036 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
18037
18038 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
18039
18040 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
18041
18042 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
18043 (arch_canonicalize): Support rv32g and rv64g and fix error
18044 handling.
18045
18046 2019-08-06 Martin Liska <mliska@suse.cz>
18047
18048 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
18049 and DECL_IS_OPERATOR_DELETE_P.
18050
18051 2019-08-06 Jakub Jelinek <jakub@redhat.com>
18052
18053 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
18054 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
18055 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
18056 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
18057 (gimplify_omp_for): Don't do C++ random access iterator clause
18058 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
18059 don't predetermine the artificial iterator in case of C++ random
18060 access iterators as lastprivate, but private. For OMP_LOOP, force
18061 bind expr around simd body and force for_pre_body before the
18062 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
18063 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
18064 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
18065 diff var of C++ random access iterators. Handle
18066 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
18067 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
18068 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
18069 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
18070 * omp-low.c (lower_rec_input_clauses): For
18071 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
18072 variables instead of default constructing them.
18073 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
18074 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
18075 is_taskloop_ctx check from the assert to the guarding condition.
18076
18077 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
18078
18079 * config/riscv/multilib-generator: (canonical_order): New.
18080 (arch_canonicalize): Dito.
18081 Apply arch_canonicalize for alts.
18082
18083 2019-08-05 Martin Sebor <msebor@redhat.com>
18084
18085 * doc/extend.texi (Common Variable Attributes): Document alias
18086 attribute.
18087
18088 2019-08-05 Marek Polacek <polacek@redhat.com>
18089
18090 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
18091 * doc/invoke.texi: Document -Wcomma-subscript.
18092
18093 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18094
18095 * tree-core.h (tree_function_decl): Make function_code an
18096 independent field. Group the remaining bitfields into bytes
18097 and move decl_type so that it contines to be at a byte boundary.
18098 Leave 12 bits for future expansion.
18099
18100 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18101
18102 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
18103 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
18104 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
18105 IFN_MASK_STORE.
18106
18107 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
18108
18109 * gimple.h (gimple_move_vops): Declare.
18110 * gimple.c (gimple_move_vops): New function
18111 * gimple-fold.c (replace_call_with_call_and_fold)
18112 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
18113 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
18114 (gimple_fold_call): Use it.
18115 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
18116 * tree-call-cdce.c (use_internal_fn): Likewise.
18117 * tree-if-conv.c (predicate_load_or_store): Likewise.
18118 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
18119 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
18120 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
18121 (update_call_from_tree): Likewise.
18122 * tree-vect-stmts.c (vectorizable_load): Likewise.
18123 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
18124
18125 2019-08-05 Martin Liska <mliska@suse.cz>
18126
18127 PR c++/91334
18128 * tree-ssa-dce.c (propagate_necessity): Handle new operators
18129 with not arguments.
18130 (eliminate_unnecessary_stmts): Likewise.
18131
18132 2019-08-05 Richard Biener <rguenther@suse.de>
18133
18134 PR middle-end/91169
18135 * fold-const.c (get_array_ctor_element_at_index): Create
18136 offset_ints according to the sign of the index type and treat
18137 that as signed if it is obviously so.
18138
18139 2019-08-05 Jakub Jelinek <jakub@redhat.com>
18140
18141 PR target/91341
18142 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
18143 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
18144 _mm256_storeu2_m128i): New function.
18145
18146 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
18147
18148 * config/riscv/riscv.c (riscv_promote_function_mode): New.
18149 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
18150
18151 2019-08-05 Alan Modra <amodra@gmail.com>
18152
18153 PR target/91349
18154 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
18155 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
18156
18157 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
18158
18159 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
18160 bug that was fixed in Tcl 8.6.1.
18161
18162 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
18163
18164 * config/rs6000/future.md: New file.
18165 * config/rs6000/rs6000.md: Include future.md.
18166 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
18167
18168 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
18169
18170 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
18171 check to use targetm.slow_unaligned_access instead.
18172
18173 * function.c (assign_param_data_one): Remove unused data members.
18174
18175 2019-08-02 Steve Ellcey <sellcey@marvell.com>
18176
18177 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
18178 build_distinct_type_copy.
18179 (simd_clone_adjust_argument_types): Ditto.
18180 (simd_clone_adjust): Call build_distinct_type_copy here.
18181 (expand_simd_clones): Ditto.
18182
18183 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18184
18185 PR target/91201
18186 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
18187
18188 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
18189
18190 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
18191 from 'const void *'.
18192 (sort_locs_in_loop_postorder_cmp): Likewise.
18193
18194 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
18195
18196 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
18197 (hot-bb-count-ws-permille): Likewise.
18198 (hot-bb-frequency-fraction): Likewise.
18199 (unlikely-bb-count-fraction): Likewise.
18200 * params.def (hot-bb-count-fraction): Rework description.
18201 (hot-bb-count-ws-permille): Likewise.
18202 (hot-bb-frequency-fraction): Likewise.
18203 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
18204 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
18205
18206 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
18207
18208 PR target/91323
18209 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
18210 Return false.
18211
18212 2019-08-02 Richard Biener <rguenther@suse.de>
18213
18214 * vec.h (vec::sort): Add gcc_qsort_r support.
18215 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
18216 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
18217 to gcc_qsort_r style callback.
18218 (sort_locs_in_loop_postorder_cmp): Likewise.
18219 (analyze_memory_references): Use gcc_sort_r interfaces.
18220 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
18221
18222 2019-08-02 Martin Liska <mliska@suse.cz>
18223
18224 PR lto/91313
18225 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
18226 to detect working job server.
18227 (driver::detect_jobserver): Test whether jobserver
18228 is active from GCC driver. That will prevent situation where
18229 GCC is invoked from a LD plugin and the linker already uses
18230 file descriptors suggested by make. That leads to a wrong
18231 detection.
18232 * gcc.h (driver): Add detect_jobserver.
18233 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
18234 not scanning for --jobserver-auth prefix.
18235
18236 2019-08-02 Jakub Jelinek <jakub@redhat.com>
18237
18238 PR tree-optimization/91201
18239 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
18240 V16QImode extraction without sse4.1 try to use V4SImode lowpart
18241 extraction.
18242
18243 2019-08-01 Martin Sebor <msebor@redhat.com>
18244
18245 PR c++/90947
18246 * tree.c (type_initializer_zero_p): Define.
18247 * tree.h (type_initializer_zero_p): New function.
18248
18249 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18250
18251 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
18252
18253 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
18254
18255 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
18256 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
18257 * predict.c (maybe_hot_count_p): Likewise.
18258 (maybe_hot_bb_p): Tweak comment.
18259 (maybe_hot_edge_p): Likewise.
18260 (probably_never_executed): Likewise. Minor tweak.
18261 (probably_never_executed_bb_p): Likewise.
18262 (unlikely_executed_edge_p): Likewise.
18263 (probably_never_executed_edge_p): Likewise.
18264 (optimize_function_for_size_p): Likewise.
18265 (optimize_function_for_speed_p): Likewise.
18266 (function_optimization_type): Likewise.
18267 (optimize_bb_for_size_p): Likewise.
18268 (optimize_bb_for_speed_p): Likewise.
18269 (bb_optimization_type): Likewise.
18270 (optimize_edge_for_size_p): Likewise.
18271 (optimize_edge_for_speed_p): Likewise.
18272 (optimize_insn_for_size_p): Likewise.
18273 (optimize_insn_for_speed_p): Likewise.
18274 (optimize_loop_for_size_p): Likewise.
18275 (optimize_loop_for_speed_p): Likewise.
18276 (optimize_loop_nest_for_speed_p): Likewise.
18277 (optimize_loop_nest_for_size_p): Likewise.
18278 (predictable_edge_p): Likewise.
18279 (handle_missing_profiles): Minor tweak.
18280
18281 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
18282
18283 * config/rs6000/predicates.md (pcrel_external_address): Update
18284 comment.
18285
18286 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18287
18288 PR target/85693
18289 * config/i386/mmx.md (usadv8qi): New expander.
18290
18291 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
18292
18293 PR c++/90590
18294 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
18295 with reserved names that are in a system header.
18296
18297 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
18298
18299 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
18300 (*vec_extractv2si_0_zext_sse4): New insn pattern.
18301 (*vec_extractv2si_0_zext): Ditto.
18302 (*vec_extractv2si_1): Add (rm,x) alternative.
18303 (*vec_extractv2si_1_zext): New insn pattern.
18304 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
18305 insn constraint.
18306
18307 2019-08-01 Richard Biener <rguenther@suse.de>
18308
18309 * domwalk.c (bb_postorder): Remove static variable.
18310 (cmp_bb_postorder): Adjust.
18311 (sort_bbs_postorder): Adjust and use gcc_sort_r.
18312 (dom_walker::walk): Adjust.
18313
18314 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
18315
18316 * sort.cc (sort_r_ctx): New struct.
18317 (reorder23): Make templated on context type.
18318 (reorder45): Ditto.
18319 (cmp1): Ditto. Adjust signature.
18320 (netsort): Ditto.
18321 (mergesort): Ditto.
18322 [CHECKING_P] (cmp2to3): New static function. Use it...
18323 (gcc_qsort) [CHECKING_P]: ...here.
18324 (gcc_sort_r): New function.
18325 * system.h (sort_r_cmp_fn): New function typedef.
18326 (qsort_chk): Adjust signature.
18327 (gcc_sort_r): Declare.
18328 * vec.c (qsort_chk_error): Adjust.
18329 (qsort_chk): Adjust.
18330
18331 2019-08-01 Richard Biener <rguenther@suse.de>
18332
18333 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
18334 (compute_antic): Localize it here.
18335
18336 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
18337
18338 * common/config/riscv/riscv-common.c: Check -march string ends
18339 with null.
18340
18341 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
18342
18343 * ipa-devirt.c (type_warning_cmp): Make static.
18344 (decl_warning_cmp): Ditto.
18345
18346 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
18347
18348 PR target/91050
18349 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
18350 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
18351 use of deleted rs6000_dejagnu_cpu_index variable.
18352 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
18353 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18354 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
18355 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
18356 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
18357 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
18358
18359 2019-07-31 Richard Biener <rguenther@suse.de>
18360
18361 PR tree-optimization/91280
18362 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18363 Decompose MEM_REF manually for offset handling.
18364
18365 2019-07-31 Richard Biener <rguenther@suse.de>
18366
18367 PR tree-optimization/91293
18368 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
18369 of reduction stmts.
18370
18371 2019-07-31 Matt Thomas <matt@3am-software.com>
18372 Nick Hudson <nick@nthcliff.demon.co.uk>
18373 Matthew Green <mrg@eterna.com.au>
18374 Maya Rashish <coypu@sdf.org>
18375
18376 * config.gcc (hppa*-*-netbsd*): New target.
18377 * config/pa/pa-netbsd.h: New file.
18378 * config/pa/pa32-netbsd.h: New file.
18379
18380 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18381
18382 PR tree-optimization/91201
18383 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
18384
18385 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
18386
18387 * config/gcn/gcn-valu.md
18388 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
18389 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
18390 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
18391 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
18392 struct ilist. Add nops for delayeduse insns.
18393 * config/gcn/gcn.md (delayeduse): New attribute.
18394 (*movbi): Remove s_waitcnt from stores.
18395 (*mov<mode>_insn): Likewise.
18396 (*movti_insn): Likewise. Add delayeduse attribute.
18397 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
18398 (atomic_store<mode>): Remove or adjust s_waitcnt.
18399
18400 2019-07-31 Richard Biener <rguenther@suse.de>
18401
18402 * vr-values.h (vr_values::swap_vr_value): New.
18403 (vr_values::free_value_range): likewise.
18404 * vr-values.c (vr_values::swap_vr_value): Implement.
18405 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
18406 Do not return a range or take a var.
18407 (evrp_range_analyzer::stack): Change back to recording a non-const
18408 value_range *.
18409 * gimple-ssa-evrp-analyze.c
18410 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
18411 value-range.
18412 (evrp_range_analyzer::pop_to_marker): Adjust.
18413 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
18414 (evrp_range_analyzer::pop_value_range): Likewise. Free the
18415 no longer needed value-range.
18416
18417 2019-07-31 Martin Liska <mliska@suse.cz>
18418
18419 * tree-ssa-dce.c (propagate_necessity): Delete operator can
18420 have size and (or) alignment as 2nd and later arguments.
18421 Mark all of them as necessary.
18422
18423 2019-07-31 Richard Biener <rguenther@suse.de>
18424
18425 PR tree-optimization/91178
18426 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18427 Use tail-recursion.
18428
18429 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18430
18431 PR tree-optimization/91201
18432 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
18433 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
18434 TARGET_AVX512F.
18435 (reduc_plus_scal_<mode>): Improve formatting by introducing
18436 a temporary.
18437
18438 2019-07-31 Sudakshina Das <sudi.das@arm.com>
18439
18440 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
18441 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
18442 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
18443 (aarch64_init_tme_builtins): New.
18444 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
18445 (aarch64_expand_builtin_tme): New.
18446 (aarch64_expand_builtin): Handle TME builtins.
18447 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
18448 __ARM_FEATURE_TME when enabled.
18449 * config/aarch64/aarch64-option-extensions.def: Add "tme".
18450 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
18451 (TARGET_TME): New.
18452 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
18453 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
18454 UNSPECV_TCANCEL.
18455 (tstart, ttest, tcommit, tcancel): New instructions.
18456 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
18457 (__tcancel, __ttest): New.
18458 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
18459 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
18460 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
18461 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
18462 * config/arm/types.md: Add new tme type attr.
18463 * doc/invoke.texi: Document "tme".
18464
18465 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
18466
18467 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
18468 warn_unused_result attribute.
18469 (cmse_check_address_range): Add warn_unused_result attribute.
18470
18471 2019-07-31 Richard Biener <rguenther@suse.de>
18472
18473 PR tree-optimization/91257
18474 * tree-vrp.c (union_ranges): Unify equality and less tests
18475 by using compare_values. Re-order cheap tests first.
18476
18477 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18478
18479 PR middle-end/91301
18480 * gimplify.c (gimplify_omp_for): If for class iterator on
18481 distribute parallel for there is no data sharing clause
18482 on inner_for_stmt, look for private clause on combined
18483 parallel too and if found, move it to inner_for_stmt.
18484
18485 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
18486
18487 * lra-int.h (lra_operand_data): Remove early_clobber field.
18488 (lra_insn_reg): Likewise.
18489 * lra.c (debug_operand_data): Update accordingly.
18490 (setup_operand_alternative): Likewise.
18491 (new_insn_reg): Likewise. Remove early_clobber parameter.
18492 (collect_non_operand_hard_regs): Update call accordingly.
18493 Don't assign to lra_insn_reg::early_clobber.
18494 (add_regs_to_insn_regno_info): Remove early_clobber parameter
18495 and update calls to new_insn_reg.
18496 (lra_update_insn_regno_info): Update calls accordingly.
18497 * lra-constraints.c (update_and_check_small_class_inputs): Take the
18498 alternative number as a parameter and test whether the operand
18499 is earlyclobbered in that particular alternative.
18500 (process_alt_operands): Update call accordingly. Use per-alternative
18501 checks for earyclobber here too.
18502 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18503 against zero for IRA_UNKNOWN_ALT.
18504
18505 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18506
18507 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18508
18509 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
18510
18511 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18512 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18513
18514 2019-07-30 Martin Liska <mliska@suse.cz>
18515
18516 PR ipa/89330
18517 * cgraph.c (cgraph_edge::make_direct): Use
18518 edge->indirect_unknown_callee as edge->resolve_speculation can
18519 deallocate edge which is this pointer.
18520
18521 2019-07-30 Richard Biener <rguenther@suse.de>
18522
18523 PR tree-optimization/91257
18524 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18525
18526 2019-07-30 Martin Liska <mliska@suse.cz>
18527
18528 * doc/invoke.texi: Document new behavior.
18529 * lto-wrapper.c (cpuset_popcount): New function
18530 is a copy of libgomp/config/linux/proc.c.
18531 (init_num_threads): Likewise.
18532 (run_gcc): Automatically detect core count for -flto.
18533 (jobserver_active_p): New function.
18534
18535 2019-07-30 Richard Biener <rguenther@suse.de>
18536
18537 PR tree-optimization/91257
18538 * bitmap.h (bitmap_ior_into_and_free): Declare.
18539 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18540 whether to add the unliked element to the freelist.
18541 (bitmap_list_insert_element_after): Add defaulted param for
18542 an already allocated element.
18543 (bitmap_ior_into_and_free): New function.
18544 * tree-ssa-structalias.c (condense_visit): Reduce the
18545 ponts-to and edge bitmaps of the SCC members in a
18546 logarithmic fashion rather than all to one.
18547
18548 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
18549
18550 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18551 parameter. When nonnull, make sure that the addition or subtraction
18552 has the same condition.
18553 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18554 for CFN_COND_MUL too.
18555
18556 2019-07-30 Richard Biener <rguenther@suse.de>
18557
18558 PR tree-optimization/91291
18559 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18560 constant values.
18561
18562 2019-07-30 Jakub Jelinek <jakub@redhat.com>
18563
18564 PR middle-end/91216
18565 * omp-low.c (global_nonaddressable_vars): New variable.
18566 (use_pointer_for_field): For global decls, if they are non-addressable,
18567 remember it in the global_nonaddressable_vars bitmap, if they are
18568 addressable and in the global_nonaddressable_vars bitmap, ignore their
18569 TREE_ADDRESSABLE bit.
18570 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18571 vars in global_nonaddressable_vars bitmap.
18572 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18573
18574 PR target/91150
18575 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18576 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18577 comparison to unsigned HOST_WIDE_INT before shifting it left.
18578
18579 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18580
18581 * config/i386/i386.md (movstrict<mode>): Use register_operand
18582 predicate for operand 0. Add expander condition. Assert that
18583 operand 0 is a SUBREG RTX.
18584 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18585 Update operand constraints and insn condition.
18586 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18587 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18588 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18589 Update operand 0 constraints.
18590 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18591
18592 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18593
18594 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18595 when -m{code,data}-region are used without -mlarge.
18596 * config/msp430/msp430.c (msp430_option_override): Error when a
18597 non-default code or data region is used without -mlarge.
18598 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18599 attributes when they are used without -mlarge.
18600
18601 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18602
18603 PR target/70320
18604 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18605
18606 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18607
18608 PR middle-end/91242
18609 * wide-int.h (generic_wide_int::sext_elt): New function.
18610 * inchash.h (hash::add_wide_int): Use it instead of elt.
18611
18612 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18613
18614 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18615 CODE_FOR_arm_##.
18616 * config/arm/arm.md (<crc_variant>): Rename to...
18617 (arm_<crc_variant>): ... This.
18618 (<cdp>): Rename to...
18619 (arm_<cdp>): ... This.
18620 (<ldc>): Rename to...
18621 (arm_<ldc>): ... This.
18622 (<stc>): Rename to...
18623 (arm_<stc>): ... This.
18624 (<mcr>): Rename to...
18625 (arm_<mcr>): ... This.
18626 (<mrc>): Rename to...
18627 (arm_<mrc>): ... This.
18628 (<mcrr>): Rename to...
18629 (arm_<mcrr>): ... This.
18630 (<mrrc>): Rename to...
18631 (arm_<mrrc>): ... This.
18632
18633 2019-07-29 Richard Biener <rguenther@suse.de>
18634
18635 PR tree-optimization/91257
18636 * tree-ssa-sccvn.h (struct vn_avail): New.
18637 (struct vn_ssa_aux): Add avail member.
18638 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18639 member, add m_avail_freelist one.
18640 (rpo_elim::~rpo_elim): Remove.
18641 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18642 data structure.
18643 (rpo_elim::eliminate_push_avail): Likewise.
18644 (do_unwind): Likewise.
18645 (do_rpo_vn): Likewise.
18646
18647 2019-07-29 Richard Biener <rguenther@suse.de>
18648
18649 PR tree-optimization/91257
18650 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18651 most cases, instead call compare_values which handles the
18652 symbolic ranges we handle specially.
18653 (compare_values_warnv): Do not call operand_less_p but open-code
18654 the effective fold calls. Avoid converting so much.
18655
18656 2019-07-29 Martin Liska <mliska@suse.cz>
18657
18658 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18659 remove LHS of operator new call. It's handled latter.
18660
18661 2019-07-29 Richard Biener <rguenther@suse.de>
18662
18663 PR tree-optimization/91267
18664 * vr-values.c (vr_values::update_value_range): Add early return
18665 for effectively VARYING lattice entry.
18666
18667 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18668
18669 PR debug/86638
18670 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18671 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18672 necessary if keep_all_vdefs_p is true.
18673 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18674 that keep_all_vdefs_p is false.
18675 (mark_all_reaching_defs_necessary): Likewise.
18676 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18677
18678 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18679
18680 * common.opt (Og): Change the initial value of flag_dse to 0.
18681 * opts.c (default_options_table): Move OPT_ftree_dse from
18682 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18683 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18684 entry before the OPT_ftree_sra entry.
18685 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18686 of flags disabled by Og.
18687
18688 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18689
18690 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18691 variables for -Og.
18692
18693 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18694
18695 * doc/sourcebuild.texi (check-function-bodies): Document.
18696
18697 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18698
18699 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18700 VEC_DUPLICATE of a fixed-length vector even if the result
18701 is variable-length. Likewise fold a duplicate of a
18702 variable-length vector if the variable-length vector is
18703 itself a duplicate of a fixed-length sequence.
18704 (test_vector_ops_duplicate): Test more cases.
18705
18706 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18707
18708 * vector-builder.h (vector_builder): Add a shape template parameter.
18709 (vector_builder::new_unary_operation): New function, generalizing
18710 the old tree_vector_builder function.
18711 (vector_builder::new_binary_operation): Likewise.
18712 (vector_builder::binary_encoded_nelts): Likewise.
18713 * int-vector-builder.h (int_vector_builder): Update template
18714 parameters to vector_builder.
18715 (int_vector_builder::shape_nelts): New function.
18716 * rtx-vector-builder.h (rtx_vector_builder): Update template
18717 parameters to vector_builder.
18718 (rtx_vector_builder::shape_nelts): New function.
18719 (rtx_vector_builder::nelts_of): Likewise.
18720 (rtx_vector_builder::npatterns_of): Likewise.
18721 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18722 * tree-vector-builder.h (tree_vector_builder): Update template
18723 parameters to vector_builder.
18724 (tree_vector_builder::shape_nelts): New function.
18725 (tree_vector_builder::nelts_of): Likewise.
18726 (tree_vector_builder::npatterns_of): Likewise.
18727 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18728 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18729 (tree_vector_builder::new_binary_operation): Delete.
18730 (tree_vector_builder::binary_encoded_nelts): Likewise.
18731 * simplify-rtx.c: Include rtx-vector-builder.h.
18732 (distributes_over_addition_p): New function.
18733 (simplify_const_unary_operation)
18734 (simplify_const_binary_operation): Generalize handling of vector
18735 constants to include variable-length vectors.
18736 (test_vector_ops_series): Add more tests.
18737
18738 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18739
18740 PR lto/91222
18741 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18742 than INDENTIFIER_POINTER.
18743
18744 2019-07-28 Martin Liska <mliska@suse.cz>
18745
18746 PR ipa/89330
18747 * cgraph.c (symbol_table::create_edge): Always allocate
18748 a cgraph_edge.
18749 (symbol_table::free_edge): Store summary_id to
18750 edge_released_summary_ids if != -1;
18751 * cgraph.h (NEXT_FREE_NODE): Remove.
18752 (SET_NEXT_FREE_NODE): Likewise.
18753 (NEXT_FREE_EDGE): Likewise.
18754 (symbol_table::release_symbol): Store summary_id to
18755 cgraph_released_summary_ids if != -1;
18756 (symbol_table::allocate_cgraph_symbol): Always allocate
18757 a cgraph_node.
18758
18759 2019-07-28 Alan Modra <amodra@gmail.com>
18760
18761 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18762 gen_sibcall.
18763
18764 2019-07-28 Alan Modra <amodra@gmail.com>
18765
18766 PR target/91135
18767 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18768 define.
18769 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18770 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18771 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18772
18773 2019-07-28 Alan Modra <amodra@gmail.com>
18774
18775 PR target/91050
18776 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18777 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18778 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18779 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18780 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18781 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18782 in asm_default spec.
18783 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18784 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18785
18786 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18787
18788 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18789
18790 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18791
18792 PR target/89517
18793 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18794 * config/aarch64/aarch64-option-extensions.def: Add new comments
18795 and restore easier to read options.
18796
18797 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18798
18799 * convert.c (convert_to_real_1): Move part of conversion code...
18800 * match.pd: ...To here.
18801
18802 2019-07-26 Martin Jambor <mjambor@suse.cz>
18803
18804 PR ipa/89330
18805 * ipa-inline-transform.c (check_speculations_1): New function.
18806 (push_all_edges_in_set_to_vec): Likewise.
18807 (check_speculations): Use check_speculations_1, new parameter
18808 new_edges.
18809 (inline_call): Pass new_edges to check_speculations.
18810 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18811 NULL.
18812 (speculation_useful_p): Early return true if edge is inlined, remove
18813 later checks for inline_failed.
18814
18815 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18816
18817 PR rtl-optimization/91223
18818 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18819 matching with INOUT operand.
18820
18821 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18822
18823 * stmt.c (expand_case): Try to narrow the index type if it's larger
18824 than a word. Tidy up.
18825
18826 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18827
18828 * cif-code.def (NEVER_CALL): New code.
18829 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18830 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18831
18832 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18833
18834 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18835 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18836
18837 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18838
18839 * ipa-devirt.c (add_type_duplicate): Fix return value.
18840
18841 2019-07-25 Richard Biener <rguenther@suse.de>
18842
18843 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18844 type parameter and use it instead of guessing expression
18845 type from the first operand.
18846 (extract_range_from_binary_expr): Pass expr_type down.
18847
18848 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18849
18850 * config/arm/arm.md (SATrev): Change to code attribute.
18851 (*satsi_<SAT:code>): Adjust for the above.
18852 (*satsi_<SAT:code>_shift): Likewise.
18853
18854 2019-07-25 Richard Biener <rguenther@suse.de>
18855
18856 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18857 Make value_range * temporary const.
18858 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18859 Likewise.
18860 (evrp_range_analyzer::record_ranges_from_): Likewise.
18861 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18862 deal with having recorded a const one.
18863 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18864 Return a const value_range *.
18865 (evrp_range_analyzer::pop_value_range): Likewise.
18866 (evrp_range_analyzer::stack): Record const value_range *s.
18867 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18868 Adjust.
18869 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18870 (format_integer): Likewise.
18871 (sprintf_dom_walker::handle_gimple_call): Likewise.
18872 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18873 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18874 (vrp_prop::get_value_range): Adjust.
18875 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18876 modifying the lattice in-place.
18877 (vrp_prop::visit_stmt): Likewise.
18878 * vr-values.c (vr_values::get_lattice_entry): New private method.
18879 (vr_values::get_value_range): Wrap it and return a const
18880 value_range *.
18881 (vr_values::set_def_to_varying): New.
18882 (vr_values::set_defs_to_varying): Use it.
18883 (vr_values::update_value_range): Likewise.
18884 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18885 (values::op_with_constant_singleton_va): Likewise.
18886 (vr_values::extract_range_for_var_from_co): Likewise.
18887 (vr_values::extract_range_from_ssa_name): Likewise.
18888 (vr_values::extract_range_from_cond_expr): Likewise.
18889 (vr_values::extract_range_basic): Likewise.
18890 (compare_ranges): Take const value_range *, adjust.
18891 (compare_range_with_value): Likewise.
18892 (vrp_valueize): Adjust.
18893 (vrp_valueize_1): Likewise.
18894 (vr_values::get_vr_for_comparison): Return a const value_range *.
18895 (vr_values::compare_name_with_value): Adjust.
18896 (vr_values::compare_names): Likewise.
18897 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18898 Likewise.
18899 (vr_values::vrp_evaluate_conditional): Likewise.
18900 (find_case_label_ranges): Take a const value_range *.
18901 (vr_values::vrp_visit_switch_stmt): Adjust.
18902 (vr_values::extract_range_from_phi_node): Likewise.
18903 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18904 (vr_values::simplify_abs_using_ranges): Likewise.
18905 (test_for_singularity): Take a const value_range *.
18906 (range_fits_type_p): Likewise.
18907 (vr_values::simplify_cond_using_ranges_1): Adjust.
18908 (vr_values::simplify_cond_using_ranges_2): Likewise.
18909 (vr_values::simplify_switch_using_ranges): Likewise.
18910 (vr_values::simplify_float_conversion_usi): Likewise.
18911 (vr_values::two_valued_val_range_p): Likewise.
18912 * vr-values.h (vr_values::get_value_range): Return a const
18913 value_range *.
18914 (vr_values::set_def_to_varying): New.
18915 (vr_values::get_lattice_entry): New private method.
18916 (vr_values::get_vr_for_comparison): Return a const value_range *.
18917
18918 2019-07-25 Martin Liska <mliska@suse.cz>
18919 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18920
18921 PR c++/23383
18922 * common.opt: Add -fallocation-dce
18923 * gimple.c (gimple_call_operator_delete_p): New.
18924 * gimple.h (gimple_call_operator_delete_p): Likewise.
18925 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18926 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18927 DECL_IS_OPERATOR_DELETE_P.
18928 (mark_all_reaching_defs_necessary_1): Likewise.
18929 (propagate_necessity): Likewise.
18930 (eliminate_unnecessary_stmts): Handle
18931 gimple_call_operator_delete_p.
18932 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18933 Add packing of OPERATOR_DELETE.
18934 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18935 Similarly here.
18936 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18937 (DECL_SET_IS_OPERATOR_DELETE): New.
18938 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18939
18940 2019-07-25 Martin Liska <mliska@suse.cz>
18941
18942 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18943 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18944 * coverage.c (coverage_begin_function): Likewise.
18945 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18946 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18947 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18948 (sem_item::hash_referenced_symbol_properties): Likewise.
18949 * lto-streamer-out.c (hash_tree): Likewise.
18950 * predict.c (expr_expected_value_1): Likewise.
18951 * tree-inline.c (expand_call_inline): Likewise.
18952 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18953 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18954 * tree-core.h (enum function_decl_type): New enum.
18955 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18956 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18957 (set_function_decl_type): Likewise.
18958 (DECL_IS_OPERATOR_NEW_P): New.
18959 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18960 (DECL_LAMBDA_FUNCTION): Likewise.
18961 (DECL_LAMBDA_FUNCTION_P): Likewise.
18962 (DECL_IS_OPERATOR_NEW): Remove.
18963 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18964
18965 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18966
18967 * ipa-profile.c (get_most_common_single_value): Use
18968 get_nth_most_common_value.
18969 * profile.c (sort_hist_value): New function.
18970 (compute_value_histograms): Call sort_hist_value to sort the
18971 values after loading from disk.
18972 * value-prof.c (get_most_common_single_value): Rename to ...
18973 get_nth_most_common_value. Add input params n, return
18974 the n_th value and count.
18975 (gimple_divmod_fixed_value_transform): Use
18976 get_nth_most_common_value.
18977 (gimple_ic_transform): Likewise.
18978 (gimple_stringops_transform): Likewise.
18979 * value-prof.h (get_most_common_single_value): Add input params
18980 n, default to 0.
18981
18982 2019-07-25 Richard Biener <rguenther@suse.de>
18983
18984 PR tree-optimization/91236
18985 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18986 size of CONSTRUCTOR write. Fix buffer size we pass to
18987 native_encode_expr.
18988
18989 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18990
18991 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18992 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18993 r273773.
18994
18995 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18996
18997 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18998 explicitly disabled with --disable-initfini-array.
18999
19000 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19001
19002 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
19003 if-exists.
19004
19005 2019-07-24 Martin Sebor <msebor@redhat.com>
19006
19007 PR tree-optimization/91183
19008 PR tree-optimization/86688
19009 * builtins.c (compute_objsize): Handle MEM_REF.
19010 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
19011 (get_min_string_length): Remove.
19012 (count_nonzero_bytes): New function.
19013 (handle_char_store): Rename...
19014 (handle_store): to this. Handle multibyte stores via integer types.
19015 (strlen_check_and_optimize_stmt): Adjust conditional and the called
19016 function name.
19017
19018 2019-07-24 Martin Sebor <msebor@redhat.com>
19019
19020 PR driver/80545
19021 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
19022 (diagnostic_report_diagnostic): Same.
19023 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
19024 (diagnostic_context::lang_mask): New data member.
19025 * ipa-pure-const.c (suggest_attribute): Use
19026 lang_hooks.option_lang_mask ().
19027 * opts-common.c (option_enabled): Handle new argument.
19028 (get_option_state): Pass an additional argument.
19029 * opts.c (print_filtered_help): Print supported languages for
19030 unsupported options. Adjust printing of current state.
19031 * opts.h (option_enabled): Add argument.
19032 * toplev.c (print_switch_values): Use lang_mask.
19033 (general_init): Set global_dc->lang_mask.
19034
19035 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19036
19037 PR bootstrap/87030
19038 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
19039
19040 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
19041
19042 * cgraphunit.c (symbol_table::compile): Start and stop
19043 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
19044 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
19045
19046 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
19047
19048 * gimplify.c (flag_instrument_functions_exclude_p): Include
19049 namespace/class information in the printable name.
19050 * opts.c (add_comma_separated_to_vector): Add NUL terminator
19051 to tokens entered into the vector.
19052
19053 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
19054
19055 * tree-nested.c (build_simple_mem_ref_notrap): New function.
19056 (get_static_chain): Call it instead of build_simple_mem_ref.
19057 (get_frame_field): Likewise.
19058 (get_nonlocal_debug_decl): Likewise.
19059 (convert_nonlocal_reference_op): Likewise.
19060
19061 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
19062
19063 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
19064 declaration.
19065 (arc_compute_frame_size): Millicode is disabled when compiling
19066 ISR.
19067 (arc_return_address_register): Likewise.
19068 (arc_compute_function_type): Likewise.
19069 (arc_compute_frame_size): Likewise.
19070 (secondary_reload_info): Likewise.
19071 (arc_get_unalign): Likewise.
19072 (arc_can_use_return_insn): Declare.
19073 * config/arc/arc.c (AUX_LP_START): Define
19074 (AUX_LP_END): Likewise.
19075 (arc_frame_info): Update gmask member to 64-bit datum.
19076 (GMASK_LEN): Update.
19077 (arc_compute_function_type): Make it static, move it forward.
19078 (arc_must_save_register): Update, consider the extra regs.
19079 (arc_compute_millicode_save_restore_regs): Update to use the 64
19080 bit gmask.
19081 (arc_compute_frame_size): Likewise.
19082 (arc_enter_leave_p): Likewise.
19083 (arc_save_callee_saves): Likewise.
19084 (arc_restore_callee_saves): Likewise.
19085 (arc_save_callee_enter): Likewise.
19086 (arc_restore_callee_leave): Likewise.
19087 (arc_save_callee_milli): Likewise.
19088 (arc_restore_callee_milli): Likewise.
19089 (arc_expand_prologue): Add new interrupt handling.
19090 (arc_return_address_register): Make it static, move it forward.
19091 (arc_expand_epilogue): Add new interrupt handling.
19092 (arc_get_unalign): Delete.
19093 (arc_epilogue_uses): Make sure we do not remove the extra
19094 saved/restored registers when interrupt.
19095 (arc_can_use_return_insn): New function.
19096 (push_reg): Likewise.
19097 (pop_reg): Likewise.
19098 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
19099 procedures.
19100 (arc_restore_callee_saves): Likewise, but restoring.
19101 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
19102 (R33_REG): Likewise.
19103 (R34_REG): Likewise.
19104 (R35_REG): Likewise.
19105 (R36_REG): Likewise.
19106 (R37_REG): Likewise.
19107 (R38_REG): Likewise.
19108 (R39_REG): Likewise.
19109 (R45_REG): Likewise.
19110 (R46_REG): Likewise.
19111 (R47_REG): Likewise.
19112 (R48_REG): Likewise.
19113 (R49_REG): Likewise.
19114 (R50_REG): Likewise.
19115 (R51_REG): Likewise.
19116 (R52_REG): Likewise.
19117 (R53_REG): Likewise.
19118 (R54_REG): Likewise.
19119 (R55_REG): Likewise.
19120 (R56_REG): Likewise.
19121 (R58_REG): Likewise.
19122 (type): Add rtie attribute.
19123 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
19124 (movsi_insn): Accept moves to lp_count.
19125 (rtie): Update pattern.
19126 (simple_return): Simplify it, don't use this pattern as a return
19127 from an interrupt.
19128 (arc600_rtie): New pattern.
19129 (p_return_i): Clean up.
19130 (return): Likewise.
19131 * config/arc/builtins.def (rtie): Only available for non ARC6xx
19132 family CPUs.
19133 * config/arc/predicates.md (move_src_operand): Consider lp_count
19134 as a register.
19135
19136 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
19137
19138 * config/s390/predicates.md (addv_const_operand): New predicate.
19139 * config/s390/s390-modes.def (CCO): New condition code mode.
19140 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
19141 (s390_branch_condition_mask): Likewise.
19142 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
19143 ("mulv<mode>4"): New expanders.
19144 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
19145 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
19146 pattern definitions.
19147
19148 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19149
19150 PR middle-end/91166
19151 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
19152 (define_predicates): Add entry for uniform_vector_p.
19153 (vec_same_elem_p): New match pattern.
19154
19155 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
19156
19157 PR bootstrap/87030
19158 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
19159 * config/i386/darwin32-biarch.h .. to here.
19160 * config/i386/darwin64-biarch.h: Adjust comments.
19161 * config/rs6000/darwin32-biarch.h: Likewise.
19162 * config/rs6000/darwin64-biarch.h: Likewise.
19163 * config.gcc: Missed commit from r273746
19164 (*-*-darwin*): Don't include CPU t-darwin here.
19165 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19166 an error message if i686-darwin configuration is attempted for
19167 Darwin >= 18.
19168
19169 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
19170
19171 PR bootstrap/87030
19172 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
19173 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
19174 an error message if i686-darwin configuration is attempted for
19175 Darwin >= 18.
19176 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
19177 (powerpc-*-darwin*): Use biarch files where needed.
19178 (powerpc64-*-darwin*): Likewise.
19179 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
19180 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19181 arch case.
19182 * config/i386/darwin32-biarch.h: New.
19183 * config/i386/darwin64.h: Rename.
19184 * config/i386/darwin64-biarch.h: To this.
19185 * config/i386/t-darwin: Rename.
19186 * config/i386/t-darwin32-biarch: To this.
19187 * config/i386/t-darwin64: Rename.
19188 * config/i386/t-darwin64-biarch: To this.
19189 * config/rs6000/darwin32-biarch.h: New.
19190 * config/rs6000/darwin64.h: Rename.
19191 * config/rs6000/darwin64-biarch.h: To this.
19192 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
19193 arch case.
19194 * config/rs6000/t-darwin8: Rename.
19195 * config/rs6000/t-darwin32-biarch: To this.
19196 * config/rs6000/t-darwin64 Rename.
19197 * config/rs6000/t-darwin64-biarch: To this.
19198
19199 2019-07-23 Martin Sebor <msebor@redhat.com>
19200
19201 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
19202
19203 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19204
19205 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
19206 (rh): New alias for it.
19207
19208 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
19209
19210 * gdbhooks.py: Pass replace=True to
19211 gdb.printing.register_pretty_printer.
19212
19213 2019-07-23 Richard Biener <rguenther@suse.de>
19214
19215 PR debug/91231
19216 * lto-streamer-in.c (input_function): Drop inline-entry markers
19217 that ended up with an unknown location block.
19218
19219 2019-07-23 Richard Biener <rguenther@suse.de>
19220
19221 PR tree-optimization/83518
19222 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
19223 init from a constant even when partial defs are already recorded.
19224
19225 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19226
19227 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
19228 * config/i386/znver1.md: Enable patterns for znver2 and add store
19229 variants which use extra AGU unit.
19230
19231 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19232
19233 * config/i386/i386-options.c (ix86_option_override_internal): Default
19234 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
19235 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
19236 for ZNVER2.
19237
19238 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
19239
19240 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
19241 (znver2_costs): Update 256 bit SSE costs and multiplication.
19242
19243 2019-07-23 Jan Beulich <jbeulich@suse.com>
19244
19245 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
19246 Require only AVX512F.
19247 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
19248 alternative expanding to vpternlog.
19249
19250 2019-07-23 Martin Liska <mliska@suse.cz>
19251
19252 * dwarf2out.c (gen_producer_string): Canonize -flto=N
19253 to -flto in dwarf producer string.
19254
19255 2019-07-23 Richard Biener <rguenther@suse.de>
19256
19257 * tree-cfg.c (label_for_bb): Remove global var.
19258 (main_block_label): Take label_for_bb as argument.
19259 (cleanup_dead_labels_eh): Likewise, adjust.
19260 (cleanup_dead_labels): Adjust.
19261
19262 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19263
19264 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
19265 Configurations): Add documentation for __builtin_mtfsf.
19266
19267 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
19268
19269 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
19270 * config/riscv/riscv.c (riscv_constant_alignment): Use
19271 riscv_align_data_type.
19272 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
19273 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19274 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
19275 * config/riscv/riscv.opt (malign-data): New.
19276 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
19277
19278 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
19279
19280 * cgraph.c (dump_graphviz): New function.
19281 * cgraph.h (dump_graphviz): New function.
19282 * symtab.c (dump_graphviz): New function.
19283
19284 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
19285
19286 * config/aarch64/aarch64-simd.md
19287 (*aarch64_simd_sra<mode>): New.
19288 * config/aarch64/iterators.md
19289 (SHIFTRT): New iterator.
19290 (sra_op): New attribute.
19291
19292 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19293
19294 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
19295 callee-saved regs R4->R10 in an interrupt function that calls another
19296 function.
19297
19298 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
19299
19300 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
19301 (_mm_blendv_epi8): New.
19302
19303 2019-07-22 Richard Biener <rguenther@suse.de>
19304
19305 PR tree-optimization/91221
19306 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
19307 restrict partial-def handling of empty constructors and
19308 memset to refs with known offset.
19309
19310 2019-07-22 Jan Beulich <jbeulich@suse.com>
19311
19312 * config/i386/sse.md (ternlogsuffix): New.
19313 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
19314 AVX512F is in use.
19315 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
19316
19317 2019-07-22 Martin Liska <mliska@suse.cz>
19318
19319 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
19320 comment.
19321 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
19322
19323 2019-07-22 Martin Liska <mliska@suse.cz>
19324
19325 * lto-section-in.c (lto_get_section_data):
19326 Use new function get_compression.
19327 * lto-streamer-out.c (produce_lto_section): Use
19328 set_compression to encode compression algorithm.
19329 * lto-streamer.h (struct lto_section): Do not
19330 use bitfields in the format.
19331
19332 2019-07-22 Martin Liska <mliska@suse.cz>
19333
19334 PR driver/91172
19335 * opts-common.c (decode_cmdline_option): Decode
19336 argument of -Werror and check it for a wrong language.
19337 * opts-global.c (complain_wrong_lang): Remove such case.
19338
19339 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
19340
19341 * config/arc/arc.c (prepare_move_operands): Always use an
19342 intermediate register when storing a TLS symbols.
19343
19344 2019-07-22 Stafford Horne <shorne@gmail.com>
19345
19346 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
19347 force_reg.
19348
19349 2019-07-22 Stafford Horne <shorne@gmail.com>
19350
19351 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
19352 and munordered-float validations.
19353 * config/or1k/constraints.md (d): New register constraint.
19354 * config/or1k/predicates.md (fp_comparison_operator): New.
19355 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
19356 operands.
19357 (or1k_expand_compare): Normalize unordered comparisons.
19358 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
19359 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
19360 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
19361 * config/or1k/or1k.md (type): Add fpu.
19362 (fpu): New instruction reservation.
19363 (F, f, fr, fi, FI, FOP, fop): New.
19364 (<fop><F:mode>3): New ALU instruction definition.
19365 (float<fi><F:mode>2): New conversion instruction definition.
19366 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
19367 (fpcmpcc): New code iterator.
19368 (*sf_fp_insn): New instruction definition.
19369 (cstore<F:mode>4): New expand definition.
19370 (cbranch<F:mode>4): New expand definition.
19371 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
19372 munordered-float): New options.
19373 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
19374 munordered-float.
19375
19376 2019-07-22 Stafford Horne <shorne@gmail.com>
19377
19378 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
19379 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
19380 documenation to be more clear.
19381 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
19382 more clear.
19383 * config/or1k/or1k.opt (mrori): New option.
19384 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
19385 msfimm, mshftimm): Rewrite documentation to be more clear.
19386 * config/or1k/or1k.md (insn_support): Add ror and rori.
19387 (enabled): Add conditions for ror and rori.
19388 (rotrsi3): Replace condition for shftimm with ror and rori.
19389
19390 2019-07-22 Stafford Horne <shorne@gmail.com>
19391
19392 PR target/90363
19393 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
19394 (extend<mode>si2): Update predicate.
19395 * config/or1k/predicates.md (volatile_mem_operand): New.
19396 (reg_or_mem_operand): New.
19397
19398 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
19399
19400 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
19401 * config/rs6000/rs6000-call.c: ... to here.
19402
19403 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19404
19405 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
19406 memory.
19407
19408 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19409
19410 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
19411
19412 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19413
19414 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
19415
19416 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19417
19418 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
19419 (any_memory_operand): New predicate.
19420 (reg_or_mem_operand): Use it.
19421
19422 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19423
19424 PR target/91204
19425 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
19426
19427 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
19428
19429 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
19430 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
19431
19432 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19433
19434 * tree.def (OMP_LOOP): New tree code.
19435 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
19436 (enum omp_clause_bind_kind): New enum.
19437 (struct tree_omp_clause): Add subcode.bind_kind.
19438 * tree.h (OMP_LOOP_CHECK): Rename to ...
19439 (OMP_LOOPING_CHECK): ... this.
19440 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
19441 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
19442 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
19443 (OMP_CLAUSE_BIND_KIND): Define.
19444 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19445 bind clause entries.
19446 (walk_tree_1): Handle OMP_CLAUSE_BIND.
19447 * tree-pretty-print.c (dump_omp_clause): Likewise.
19448 (dump_generic_node): Handle OMP_LOOP.
19449 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
19450 (in_omp_construct): New variable.
19451 (is_gimple_stmt): Handle OMP_LOOP.
19452 (gimplify_scan_omp_clauses): For lastprivate don't set
19453 check_non_private if code == OMP_LOOP. For reduction clause
19454 on OMP_LOOP combined with parallel or teams propagate as shared
19455 on the combined construct. Handle OMP_CLAUSE_BIND.
19456 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
19457 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
19458 for constructs from a loop construct to gimplify_scan_omp_clauses.
19459 Don't predetermine iterator linear on OMP_SIMD from loop construct.
19460 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
19461 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
19462 to match the implicit ORT_TARGET construct around whole body.
19463 Temporarily clear in_omp_construct when processing body.
19464 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
19465 etc. temporarily set in_omp_construct when processing body.
19466 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
19467 * omp-low.c (struct omp_context): Add loop_p.
19468 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
19469 in that the original var might be private.
19470 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
19471 (check_omp_nesting_restrictions): Adjust nesting restrictions for
19472 addition of loop construct.
19473 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
19474
19475 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
19476 lastprivate non-addressable iterator of a collapse(1) simd.
19477
19478 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
19479
19480 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
19481 as in rs6000.c.
19482
19483 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
19484
19485 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
19486 refer to default conditions. Warn for the 'y' spec which is ignored
19487 by current linkers.
19488
19489 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
19490
19491 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19492 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19493 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19494 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19495 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19496 init_cumulative_args, rs6000_promote_function_mode,
19497 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19498 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19499 rs6000_function_arg_boundary, rs6000_parm_offset,
19500 rs6000_parm_start, rs6000_arg_size,
19501 rs6000_darwin64_record_arg_advance_flush,
19502 rs6000_darwin64_record_arg_advance_recurse,
19503 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19504 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19505 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19506 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19507 rs6000_finish_function_arg, rs6000_function_arg,
19508 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19509 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19510 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19511 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19512 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19513 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19514 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19515 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19516 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19517 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19518 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19519 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19520 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19521 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19522 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19523 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19524 get_element_number, altivec_expand_vec_set_builtin,
19525 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19526 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19527 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19528 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19529 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19530 rs6000_expand_builtin, rs6000_vector_type,
19531 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19532 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19533 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19534 to rs6000-call.c.
19535 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19536 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19537 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19538 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19539 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19540 init_cumulative_args, rs6000_promote_function_mode,
19541 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19542 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19543 rs6000_function_arg_boundary, rs6000_parm_offset,
19544 rs6000_parm_start, rs6000_arg_size,
19545 rs6000_darwin64_record_arg_advance_flush,
19546 rs6000_darwin64_record_arg_advance_recurse,
19547 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19548 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19549 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19550 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19551 rs6000_finish_function_arg, rs6000_function_arg,
19552 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19553 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19554 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19555 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19556 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19557 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19558 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19559 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19560 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19561 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19562 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19563 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19564 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19565 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19566 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19567 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19568 get_element_number, altivec_expand_vec_set_builtin,
19569 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19570 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19571 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19572 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19573 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19574 rs6000_expand_builtin, rs6000_vector_type,
19575 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19576 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19577 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19578 to here from rs6000.c.
19579 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19580 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19581 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19582 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19583 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19584 rs6000_return_in_memory, rs6000_return_in_msb,
19585 rs6000_pass_by_reference, setup_incoming_varargs,
19586 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19587 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19588 rs6000_function_arg_padding, rs6000_function_arg,
19589 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19590 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19591 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19592 rs6000_passes_long_double, rs6000_passes_vector,
19593 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19594 altivec_builtin_mask_for_load) Add declarations.
19595 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19596 * config/config.gcc: Add new source file rs6000-call.c to garbage
19597 collector and extra_objs.
19598
19599 2019-07-19 Jeff Law <law@redhat.com>
19600
19601 PR tree-optimization/86061
19602 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19603 strncpy. Drop some trivial dead code.
19604 (maybe_trim_memstar_call): Handle strncpy.
19605
19606 2019-07-19 Richard Biener <rguenther@suse.de>
19607
19608 PR tree-optimization/91211
19609 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19610 memset encoding size.
19611
19612 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19613
19614 PR target/91204
19615 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19616
19617 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19618
19619 PR ipa/91194
19620 * ipa-inline.c (recursive_inlining): Fix limits check.
19621
19622 2019-07-19 Richard Biener <rguenther@suse.de>
19623
19624 PR tree-optimization/91200
19625 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19626 no PHI nodes in middle-bb.
19627
19628 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19629
19630 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19631 to +sve-bitperm.
19632 * config/aarch64/aarch64-option-extensions.def: Likewise.
19633
19634 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19635
19636 PR middle-end/91190
19637 * function.c (insert_temp_slot_address): Store into the hash table
19638 a copy of address to avoid RTL sharing issues.
19639
19640 2019-07-19 Richard Biener <rguenther@suse.de>
19641
19642 PR tree-optimization/91207
19643 Revert
19644 2019-07-17 Richard Biener <rguenther@suse.de>
19645
19646 PR tree-optimization/91178
19647 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19648 loads with a gap larger than the vector size always use
19649 VMAT_STRIDED_SLP.
19650 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19651 avoid loading vectors that are only contained in the gap
19652 and thus are not needed.
19653
19654 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19655
19656 * config/i386/i386.md (*addqi_2_slp): Remove.
19657 (*<code>qi_2_slp): Ditto.
19658
19659 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19660
19661 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19662 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19663 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19664 Rename function from rs6000_prefixed_address.
19665 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19666 TARGET_HAS_TOC.
19667 (TARGET_TOC): Likewise.
19668 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19669 rs6000.h.
19670 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19671 TARGET_HAS_TOC.
19672 (TARGET_TOC): Likewise.
19673 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19674 rs6000.h.
19675 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19676 TARGET_HAS_TOC.
19677 (TARGET_TOC): Likewise.
19678 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19679 check to require -mcmodel=medium for pc-relative addressing.
19680 (create_TOC_reference): Add assertion for TARGET_TOC.
19681 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19682 TARGET_NO_TOC.
19683 (rs6000_emit_move): Likewise.
19684 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19685 to 'TOC_alias_set'.
19686 (get_TOC_alias_set): Likewise.
19687 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19688 TARGET_NO_TOC.
19689 (rs6000_can_eliminate): Likewise.
19690 (rs6000_prefixed_address_mode_p): Rename function from
19691 rs6000_prefixed_address.
19692 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19693 TARGET_HAS_TOC and not pc-relative.
19694 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19695 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19696 TARGET_HAS_TOC.
19697 (TARGET_TOC): Likewise.
19698 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19699 rs6000.h.
19700
19701 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19702
19703 PR target/91188
19704 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19705 for operand 0. Do not use (match_dup) to match operand 1 with
19706 operand 0. Add check in insn constraint that either input operand
19707 matches operand 0. Use SWI12 mode iterator to also handle
19708 HImode operands.
19709 (*and<mode>_1_slp): Ditto.
19710 (*<code>qi_1_slp): Ditto.
19711 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19712 Do not use (match_dup) to match operand 1 with operand 0. Add
19713 check in insn constraint that operand 1 matches operand 0.
19714 Use SWI12 mode iterator to also handle HImode operands.
19715 (*ashl<mode>3_1_slp): Ditto.
19716 (*<shift_insn><mode>3_1_slp): Ditto.
19717 (*<rotate_insn><mode>3_1_slp): Ditto.
19718
19719 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19720
19721 * config/arm/arm-builtins.c
19722 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19723 (arm_expand_unop_builtin): Likewise.
19724 * config/arm/crypto.md
19725 (crypto_sha1h): Convert from define_insn to define_expand.
19726 (crypto_<crypto_pattern>): Likewise.
19727 (crypto_sha1h_lb): New define_insn.
19728 (crypto_<crypto_pattern>_lb): Likewise.
19729
19730 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19731
19732 PR target/90317
19733 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19734 (vsha1cq_u32): Likewise.
19735 (vsha1pq_u32): Likewise.
19736 (vsha1mq_u32): Likewise.
19737 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19738 vec select.
19739 (crypto_sha1c): Correct vec select.
19740 (crypto_sha1m): Likewise.
19741 (crypto_sha1p): Likewise.
19742
19743 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19744
19745 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19746 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19747 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19748 (subdi_zesidi_zesidi): Likewise.
19749 (negdi2_compare, negdi2_insn): Likewise.
19750 (negdi_extensidi): Likewise.
19751 (negdi_zero_extendsidi): Likewise.
19752 (arm_cmpdi_insn): Likewise.
19753 (subsi3_carryin): Use arm_borrow_operation.
19754 (subsi3_carryin_const): Likewise.
19755 (subsi3_carryin_const0): Likewise.
19756 (subsi3_carryin_compare): Likewise.
19757 (subsi3_carryin_compare_const): Likewise.
19758 (subsi3_carryin_compare_const0): Likewise.
19759 (subsi3_carryin_shift): Likewise.
19760 (rsbsi3_carryin_shift): Likewise.
19761 (negsi2_carryin_compare): Likewise.
19762
19763 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19764
19765 PR tree-optimization/91137
19766 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19767 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19768 Init, use and fini the above new field.
19769 (determine_base_object_1): New function.
19770 (determine_base_object): Reimplement using walk_tree.
19771
19772 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19773
19774 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19775 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19776 CLEANUP_FORCE_FAST_DCE is set.
19777 * ifcvt.c (rest_of_handle_if_conversion): Pass
19778 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19779 if-conversion succeeded.
19780
19781 2019-07-18 Richard Biener <rguenther@suse.de>
19782
19783 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19784 branches to make code less indented.
19785
19786 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19787
19788 PR middle-end/81824
19789 * attribs.c (decls_mismatched_attributes): Simplify the logic
19790 that avoids duplicates and false positives.
19791
19792 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19793
19794 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19795 data into data section when generating PIC code.
19796 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19797 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19798 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19799 return 2 for SOM and 0 for other targets.
19800
19801 2019-07-17 Jeff Law <law@redhat.com>
19802
19803 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19804 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19805 avoid unexpected switch statement fallthru.
19806
19807 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19808
19809 * config/i386/i386.md (*add<dwi>3_doubleword):
19810 Remove redundant constraints.
19811 (*add<mode>_1): Ditto.
19812 (*addhi_1): Ditto.
19813 (*addqi_1): Ditto.
19814 (*addqi_1_slp): Ditto.
19815 (*add<mode>_2): Ditto.
19816 (*addv<mode>4): Ditto.
19817 (*sub<dwi>3_doubleword): Ditto.
19818 (*sub<mode>_1): Ditto.
19819 (*subqi_1_slp): Ditto.
19820 (*sub<mode>_2): Ditto.
19821 (*subv<mode>4): Ditto.
19822 (*sub<mode>_3): Ditto.
19823 (@add<mode>3_carry): Ditto.
19824 (@sub<mode>3_carry): Ditto.
19825 (*add<mode>3_cc_overflow_1): Ditto.
19826 (*add<mode>3_zext_cc_overflow_2): Ditto.
19827 (*anddi_1): Ditto.
19828 (*and<mode>_1): Ditto.
19829 (*andqi_1): Ditto.
19830 (*andqi_1_slp): Ditto.
19831 (*anddi_2): Ditto.
19832 (*andqi_2_maybe_si): Ditto.
19833 (*and<mode>_2): Ditto.
19834 (*andqi_2_slp): Ditto.
19835 (*<code><mode>_1): Ditto.
19836 (*<code>qi_1): Ditto.
19837 (*<code>qi_1_slp): Ditto.
19838 (*<code><mode>_2): Ditto.
19839 (*<code>qi_2_slp): Ditto.
19840
19841 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19842
19843 * alias.c (record_component_aliases): Do not simplify pointed-to
19844 types of ODR types.
19845
19846 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19847
19848 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19849 partial reg stall on alternative 2.
19850
19851 2019-07-17 Richard Biener <rguenther@suse.de>
19852
19853 PR tree-optimization/91178
19854 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19855 lower SSA names to avoid quadratic behavior in the common case.
19856 * tree-data-ref.c (split_constant_offset): Add limit argument
19857 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19858 (split_constant_offset_1): Add limit argument and use it to
19859 limit SSA def walking. Optimize the common plus/minus case.
19860
19861 2019-07-17 Richard Biener <rguenther@suse.de>
19862
19863 PR tree-optimization/91178
19864 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19865 loads with a gap larger than the vector size always use
19866 VMAT_STRIDED_SLP.
19867 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19868 avoid loading vectors that are only contained in the gap
19869 and thus are not needed.
19870
19871 2019-07-17 Richard Biener <rguenther@suse.de>
19872
19873 PR tree-optimization/91180
19874 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19875 computation for memset partial defs.
19876
19877 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19878
19879 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19880 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19881 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19882 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19883 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19884 * omp-grid.c (grid_process_grid_body,
19885 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19886 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19887 == GF_OMP_FOR_KIND_SIMD.
19888 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19889 check_omp_nesting_restrictions, scan_omp_1_stmt,
19890 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19891 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19892 omp_find_scan): Likewise.
19893 * omp-expand.c (expand_omp_for): Likewise.
19894 * omp-general.c (omp_extract_for_data): Likewise.
19895
19896 PR tree-optimization/91157
19897 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19898 a vector boolean with scalar mode.
19899 (expand_vector_condition): Handle first operand being a vector boolean
19900 with scalar mode.
19901 (expand_vector_operations_1): For comparisons, don't bail out early
19902 if the return type is vector boolean with scalar mode, but comparison
19903 operand type is not.
19904
19905 2019-07-17 Richard Biener <rguenther@suse.de>
19906
19907 PR tree-optimization/91181
19908 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19909 IFN_LOADs as calls.
19910
19911 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19912
19913 * config/i386/i386.md (*testdi_1): Match CCZmode for
19914 constants that might have the SImode sign bit set.
19915 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19916 Use correct constraints for pentium pairing.
19917 (*test<mode>_1): Ditto.
19918
19919 2019-07-16 Jeff Law <law@redhat.com>
19920
19921 PR rtl-optimization/91173
19922 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19923 SSA_NAME with a constant value, fold its value into the offset
19924 and clear the base before calling gen_addr_rtx.
19925
19926 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19927
19928 PR rtl-optimization/91164
19929 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19930 invalidate dominance info.
19931
19932 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19933
19934 * read-md.h (md_reader::record_potential_iterator_use): Add a
19935 file_location parameter.
19936 * read-rtl.c (attribute_use::loc): New field.
19937 (map_attr_string): Take a file_location parameter. Report cases
19938 in which attributes map to multiple distinct values.
19939 (apply_attribute_uses): Update call accordingly.
19940 (md_reader::handle_overloaded_name): Likewise.
19941 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19942 nonnull strings.
19943 (record_attribute_use): Take a file_location parameter.
19944 Initialize attribute_use::loc.
19945 (md_reader::record_potential_iterator_use): Take a file_location
19946 parameter. Update call to record_attribute_use.
19947 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19948 (rtx_reader::read_rtx_code): Likewise.
19949 (rtx_reader::read_rtx_operand): Likewise. Record a location
19950 for implicitly-expanded empty strings.
19951
19952 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19953
19954 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19955 Use file_location instead of separate fields.
19956 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19957 separate filename and line number.
19958 * read-md.c (ptr_loc): As above.
19959 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19960 (md_reader::fprint_md_ptr_loc): Likewise.
19961 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19962 instead of a separate filename and line number.
19963 (md_reader::read_string): Update call accordingly.
19964
19965 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19966
19967 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19968 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19969 leaving the choice between SFDF and P implicit.
19970 (*mov<mode>_update2): Likewise.
19971 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19972 rather than leaving the choice betweem IBM128 and GPR implicit.
19973 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19974 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19975 QHSI implicit.
19976 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19977 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19978 * config/rs6000/vsx.md
19979 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19980 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19981 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19982 and VSX_EXTRACT_I implicit.
19983
19984 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19985
19986 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19987 Explicitly use <MOVEP1:MODE> for the mode attribute.
19988
19989 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19990
19991 PR bootstrap/91176
19992 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19993
19994 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19995
19996 PR target/91050
19997 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19998 .machine directive.
19999
20000 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
20001
20002 * config/i386/i386.md (@test<mode>_ccno_1):
20003 Rename from test<mode>_ccno_1.
20004 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
20005 (*testqi_1_maybe_si): Remove modrm attribute.
20006 (*test<mode>_1): Ditto.
20007 * config/i386/i386-expand.c (ix86_split_idivmod): Use
20008 gen_test_ccno_1 and gen_extend_insn.
20009
20010 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
20011
20012 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
20013 to 0.
20014
20015 2019-07-15 Richard Biener <rguenther@suse.de>
20016
20017 PR middle-end/91162
20018 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
20019 node make sure to replace all uses with something valid.
20020
20021 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
20022
20023 PR tree-optimization/88497
20024 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
20025 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
20026 function undistribute_bitref_for_vector.
20027 (undistribute_bitref_for_vector): New function.
20028 (cleanup_vinfo_map): Likewise.
20029 (sort_by_mach_mode): Likewise.
20030
20031 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
20032
20033 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
20034 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
20035 and testdi_ccno_1 using SWI48 mode attribute.
20036 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
20037 x86_64_szext_general_operand.
20038 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
20039 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
20040 instead of genera_operand mode attribute.
20041
20042 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
20043
20044 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
20045 fopen and fclose to their respective types.
20046 (DotFn.invoke): Ditto.
20047
20048 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
20049
20050 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
20051 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
20052 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
20053 (array_index_predicate): Remove.
20054 (analyze_function_body): Account cost for variable ofsetted array
20055 indexing.
20056 (estimate_node_size_and_time): Do not compute array index hint.
20057 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
20058 (inline_read_section): Do not read array index hint.
20059 (ipa_fn_summary_write): Do not write array index hint.
20060 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
20061 * ipa-cp.c (hint_time_bonus): Remove.
20062 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
20063 (ipa_fnsummary): Remove array_index.
20064 * ipa-inline.c (want_inline_small_function_p): Do not use
20065 array_index.
20066 (edge_badness): Likewise.
20067 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
20068
20069 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
20070
20071 PR target/91148
20072 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
20073 superfluous "builtin function" phrasing.
20074
20075 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
20076
20077 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
20078 Break out from ...
20079 (aliasing_component_refs_walk): Break out from ...
20080 (aliasing_component_refs_p): ... here.
20081
20082 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
20083
20084 PR target/91148
20085 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
20086 "builtin function" phrasing.
20087
20088 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20089
20090 PR target/90723
20091 * recog.h (temporary_volatile_ok): New class.
20092 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
20093 volatile_ok temporarily to true using temporary_volatile_ok.
20094 * expr.c (emit_block_move_via_cpymem): Likewise.
20095 * optabs.c (maybe_legitimize_operand): Likewise.
20096
20097 2019-07-13 Jakub Jelinek <jakub@redhat.com>
20098
20099 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
20100 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
20101 uses inside of order(concurrent) constructs.
20102 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
20103 OMP_CLAUSE_ORDER is seen.
20104 * omp-low.c (struct omp_context): Add order_concurrent member.
20105 (scan_sharing_clauses): Set ctx->order_concurrent if
20106 OMP_CLAUSE_ORDER is seen.
20107 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
20108 of simd order(concurrent). Diagnose constructs not allowed inside of
20109 for order(concurrent).
20110 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
20111 complaining about static double setjmp (double); or class static
20112 methods or non-global namespace setjmps.
20113 (omp_runtime_api_call): New function.
20114 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
20115 order(concurrent) loops.
20116
20117 2019-07-12 Martin Sebor <msebor@redhat.com>
20118
20119 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
20120 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
20121 * tree-vrp.c (vrp_prop::check_mem_ref): Use
20122 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
20123
20124 2019-07-12 Jan Hubicka <jh@suse.cz>
20125
20126 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
20127 (indirect_refs_may_alias_p): ... here.
20128 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
20129 mem refs in the access paths.
20130
20131 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
20132
20133 PR tree-optimization/89430
20134 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
20135 store elimination for local variable without address escape.
20136
20137 2019-07-12 Jeff Law <law@redhat.com>
20138
20139 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
20140 for the ".far" section.
20141
20142 2019-07-12 Richard Biener <rguenther@suse.de>
20143
20144 PR tree-optimization/91145
20145 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
20146 chain check.
20147
20148 2019-07-12 Alexandre Oliva <oliva@adacore.com>
20149
20150 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
20151 rather than this_state as the lowering context for the ELSE
20152 seq in a GIMPLE_EH_ELSE.
20153
20154 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20155
20156 * vector-builder.h (vector_builder::elt): Allow already-supplied
20157 elements to be read back before building is complete.
20158
20159 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20160
20161 PR rtl-optimization/91136
20162 * df-core.c (ACCESSING REFS): Fix typos in comment.
20163 * resource.c (mark_target_live_reg): Add artificial defs that occur at
20164 the beginning of the block to the initial set of live registers.
20165
20166 2019-07-12 Richard Biener <rguenther@suse.de>
20167
20168 * fold-const.h (get_array_ctor_element_at_index): Adjust.
20169 * fold-const.c (get_array_ctor_element_at_index): Add
20170 ctor_idx output parameter informing the caller where in
20171 the constructor the element was (not) found. Add early exit
20172 for when the ctor is sorted.
20173 * gimple-fold.c (fold_array_ctor_reference): Support constant
20174 folding across multiple array elements.
20175
20176 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
20177
20178 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
20179 doesn't have location, set the current location to the function's end.
20180
20181 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20182
20183 * config/aarch64/aarch64.md (*compare_condjump<mode>)
20184 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
20185 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
20186 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
20187 * config/aarch64/aarch64-simd.md
20188 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
20189 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
20190 * config/aarch64/aarch64-sve.md
20191 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
20192 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
20193
20194 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
20195
20196 * doc/md.texi: Document that @ patterns can have different
20197 numbers of operands.
20198 * genemit.c (handle_overloaded_gen): Handle this case.
20199 * genopinit.c (handle_overloaded_gen): Likewise.
20200 * gensupport.c (replace_operands_with_dups): Iterate over
20201 the new rtx's format rather than the old one's.
20202
20203 2019-07-12 Jakub Jelinek <jakub@redhat.com>
20204
20205 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
20206 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
20207 order clause entries.
20208 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
20209 * tree-pretty-print.c (dump_omp_clause): Likewise.
20210 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
20211 Likewise.
20212 * omp-low.c (scan_sharing_clauses): Likewise.
20213 * tree-nested.c (convert_nonlocal_omp_clauses,
20214 convert_local_omp_clauses): Likewise.
20215
20216 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
20217
20218 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
20219 fallthrough target of current basic block isn't the placed
20220 right next.
20221
20222 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
20223
20224 PR target/90980
20225 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
20226 (_mm512_storeu_epi64): Likewise.
20227 (_mm512_loadu_epi32): Likewise.
20228 (_mm512_storeu_epi32): Likewise.
20229 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
20230 (_mm_storeu_epi64): Likewise.
20231 (_mm256_storeu_epi32): Likewise.
20232 (_mm_storeu_epi32): Likewise.
20233
20234 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20235
20236 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
20237
20238 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
20239
20240 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
20241 Handle Modula-2.
20242
20243 2019-07-11 Jakub Jelinek <jakub@redhat.com>
20244
20245 PR target/91124
20246 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
20247 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20248 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
20249 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
20250 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
20251 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
20252 define_insns.
20253 (ufix_truncv2dfv2si2<mask_name>): Change into ...
20254 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
20255 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
20256 define_insns.
20257 (sse2_cvttpd2dq<mask_name>): Change into ...
20258 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
20259 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
20260 (*sse2_cvtpd2dq<mask_name>): Change into ...
20261 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
20262 Add "C" constraint to const0_operand.
20263 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
20264 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
20265 changes.
20266
20267 PR target/91124
20268 * config/i386/i386-builtin-types.def
20269 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
20270 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
20271 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
20272 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
20273 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
20274 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
20275 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
20276 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
20277 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
20278 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
20279 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
20280 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
20281 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
20282 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
20283 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
20284 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
20285 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
20286 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
20287 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
20288 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
20289 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
20290 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
20291 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
20292 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
20293 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
20294 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
20295 __builtin_ia32_vpdpbusd_v4si_maskz,
20296 __builtin_ia32_vpdpbusds_v16si_mask,
20297 __builtin_ia32_vpdpbusds_v16si_maskz,
20298 __builtin_ia32_vpdpbusds_v8si_mask,
20299 __builtin_ia32_vpdpbusds_v8si_maskz,
20300 __builtin_ia32_vpdpbusds_v4si_mask,
20301 __builtin_ia32_vpdpbusds_v4si_maskz,
20302 __builtin_ia32_vpdpwssd_v16si_mask,
20303 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
20304 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
20305 __builtin_ia32_vpdpwssd_v4si_maskz,
20306 __builtin_ia32_vpdpwssds_v16si_mask,
20307 __builtin_ia32_vpdpwssds_v16si_maskz,
20308 __builtin_ia32_vpdpwssds_v8si_mask,
20309 __builtin_ia32_vpdpwssds_v8si_maskz,
20310 __builtin_ia32_vpdpwssds_v4si_mask,
20311 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
20312 suffixed types rather than *_INT.
20313 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
20314 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
20315 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
20316 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
20317 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
20318 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
20319
20320 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
20321
20322 * tree-vrp.c (intersect_ranges): If we know the intersection is
20323 empty, there is no need to conservatively add anything else to
20324 the set.
20325
20326 2019-07-11 Richard Biener <rguenther@suse.de>
20327
20328 PR middle-end/91131
20329 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
20330 when the object is volatile and we have not cleared it even though
20331 there are no nonzero elements.
20332
20333 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
20334
20335 * config/rs6000/predicates.md (cint34_operand): Update
20336 SIGNED_34BIT_OFFSET_P call.
20337 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
20338 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
20339 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
20340 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
20341 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
20342 argument.
20343 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
20344 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
20345 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
20346 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
20347 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
20348
20349 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
20350
20351 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
20352 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
20353 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
20354 (DEF_MIN_OSX_VERSION): New.
20355
20356 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20357
20358 * fold-const.c (fold_relational_const): Fix folding of
20359 vector-to-scalar NE_EXPRs.
20360 (test_vector_folding): Add more tests.
20361
20362 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
20363
20364 PR target/91060
20365 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
20366 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
20367 (vec_setv2di_internal): Reexpress as...
20368 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
20369 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
20370 rather than gen_neon_vset_lane<mode>.
20371
20372 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
20373
20374 PR target/91102
20375 * lra-constraints.c (process_alt_operands): Don't match user
20376 defined regs only if they are early clobbers.
20377
20378 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
20379
20380 * wide-int.h (wi::lshift): Reject negative values for the fast path.
20381
20382 2019-07-10 Richard Biener <rguenther@suse.de>
20383
20384 PR tree-optimization/91126
20385 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
20386 native encoding offset for BYTES_BIG_ENDIAN.
20387 (vn_reference_lookup_3): Likewise.
20388
20389 2019-07-10 Richard Biener <rguenther@suse.de>
20390
20391 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
20392 LHS whenever possible.
20393
20394 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
20395
20396 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
20397 from ...; work also on duplicated types.
20398 (nonoverlapping_component_refs_since_match): ... here
20399 (ncr_type_uid): Break out from ...
20400 (ncr_compar): ... here; look for TYPE_UID of canonical type if
20401 available.
20402 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
20403 the types and nonoverlapping_component_refs_p_1 to disambiguate.
20404
20405 2019-07-09 Martin Sebor <msebor@redhat.com>
20406
20407 PR tree-optimization/90989
20408 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
20409 optimization to just single character stores.
20410
20411 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
20412
20413 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
20414 Swap operands only once.
20415
20416 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
20417
20418 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
20419 for both call instructions.
20420
20421 2019-07-09 John Darrington <john@darrington.wattle.id.au>
20422
20423 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
20424 rather than GET_MODE_BITSIZE to better handle partial integer modes.
20425
20426 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
20427
20428 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
20429 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
20430 function from rs6000-logue.c back to rs6000.c.
20431 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
20432
20433 2019-07-09 Martin Sebor <msebor@redhat.com>
20434
20435 PR c++/61339
20436 * auto-profile.c: Change class-key of PODs to struct and others
20437 to class.
20438 * basic-block.h: Same.
20439 * bitmap.c (bitmap_alloc): Same.
20440 * bitmap.h: Same.
20441 * builtins.c (expand_builtin_prefetch): Same.
20442 (expand_builtin_interclass_mathfn): Same.
20443 (expand_builtin_strlen): Same.
20444 (expand_builtin_mempcpy_args): Same.
20445 (expand_cmpstr): Same.
20446 (expand_builtin___clear_cache): Same.
20447 (expand_ifn_atomic_bit_test_and): Same.
20448 (expand_builtin_thread_pointer): Same.
20449 (expand_builtin_set_thread_pointer): Same.
20450 * caller-save.c (setup_save_areas): Same.
20451 (replace_reg_with_saved_mem): Same.
20452 (insert_restore): Same.
20453 (insert_save): Same.
20454 (add_used_regs): Same.
20455 * cfg.c (get_bb_copy): Same.
20456 (set_loop_copy): Same.
20457 * cfg.h: Same.
20458 * cfganal.h: Same.
20459 * cfgexpand.c (alloc_stack_frame_space): Same.
20460 (add_stack_var): Same.
20461 (add_stack_var_conflict): Same.
20462 (add_scope_conflicts_1): Same.
20463 (update_alias_info_with_stack_vars): Same.
20464 (expand_used_vars): Same.
20465 * cfghooks.c (redirect_edge_and_branch_force): Same.
20466 (delete_basic_block): Same.
20467 (split_edge): Same.
20468 (make_forwarder_block): Same.
20469 (force_nonfallthru): Same.
20470 (duplicate_block): Same.
20471 (lv_flush_pending_stmts): Same.
20472 * cfghooks.h: Same.
20473 * cfgloop.c (flow_loops_cfg_dump): Same.
20474 (flow_loop_nested_p): Same.
20475 (superloop_at_depth): Same.
20476 (get_loop_latch_edges): Same.
20477 (flow_loop_dump): Same.
20478 (flow_loops_dump): Same.
20479 (flow_loops_free): Same.
20480 (flow_loop_nodes_find): Same.
20481 (establish_preds): Same.
20482 (flow_loop_tree_node_add): Same.
20483 (flow_loop_tree_node_remove): Same.
20484 (flow_loops_find): Same.
20485 (find_subloop_latch_edge_by_profile): Same.
20486 (find_subloop_latch_edge_by_ivs): Same.
20487 (mfb_redirect_edges_in_set): Same.
20488 (form_subloop): Same.
20489 (merge_latch_edges): Same.
20490 (disambiguate_multiple_latches): Same.
20491 (disambiguate_loops_with_multiple_latches): Same.
20492 (flow_bb_inside_loop_p): Same.
20493 (glb_enum_p): Same.
20494 (get_loop_body_with_size): Same.
20495 (get_loop_body): Same.
20496 (fill_sons_in_loop): Same.
20497 (get_loop_body_in_dom_order): Same.
20498 (get_loop_body_in_custom_order): Same.
20499 (release_recorded_exits): Same.
20500 (get_loop_exit_edges): Same.
20501 (num_loop_branches): Same.
20502 (remove_bb_from_loops): Same.
20503 (find_common_loop): Same.
20504 (delete_loop): Same.
20505 (cancel_loop): Same.
20506 (verify_loop_structure): Same.
20507 (loop_preheader_edge): Same.
20508 (loop_exit_edge_p): Same.
20509 (single_exit): Same.
20510 (loop_exits_to_bb_p): Same.
20511 (loop_exits_from_bb_p): Same.
20512 (get_loop_location): Same.
20513 (record_niter_bound): Same.
20514 (get_estimated_loop_iterations_int): Same.
20515 (max_stmt_executions_int): Same.
20516 (likely_max_stmt_executions_int): Same.
20517 (get_estimated_loop_iterations): Same.
20518 (get_max_loop_iterations): Same.
20519 (get_max_loop_iterations_int): Same.
20520 (get_likely_max_loop_iterations): Same.
20521 * cfgloop.h (simple_loop_desc): Same.
20522 (get_loop): Same.
20523 (loop_depth): Same.
20524 (loop_outer): Same.
20525 (loop_iterator::next): Same.
20526 (loop_outermost): Same.
20527 * cfgloopanal.c (mark_irreducible_loops): Same.
20528 (num_loop_insns): Same.
20529 (average_num_loop_insns): Same.
20530 (expected_loop_iterations_unbounded): Same.
20531 (expected_loop_iterations): Same.
20532 (mark_loop_exit_edges): Same.
20533 (single_likely_exit): Same.
20534 * cfgloopmanip.c (fix_bb_placement): Same.
20535 (fix_bb_placements): Same.
20536 (remove_path): Same.
20537 (place_new_loop): Same.
20538 (add_loop): Same.
20539 (scale_loop_frequencies): Same.
20540 (scale_loop_profile): Same.
20541 (create_empty_if_region_on_edge): Same.
20542 (create_empty_loop_on_edge): Same.
20543 (loopify): Same.
20544 (unloop): Same.
20545 (fix_loop_placements): Same.
20546 (copy_loop_info): Same.
20547 (duplicate_loop): Same.
20548 (duplicate_subloops): Same.
20549 (loop_redirect_edge): Same.
20550 (can_duplicate_loop_p): Same.
20551 (duplicate_loop_to_header_edge): Same.
20552 (mfb_keep_just): Same.
20553 (has_preds_from_loop): Same.
20554 (create_preheader): Same.
20555 (create_preheaders): Same.
20556 (lv_adjust_loop_entry_edge): Same.
20557 (loop_version): Same.
20558 * cfgloopmanip.h: Same.
20559 * cgraph.h: Same.
20560 * cgraphbuild.c: Same.
20561 * combine.c (make_extraction): Same.
20562 * config/i386/i386-features.c: Same.
20563 * config/i386/i386-features.h: Same.
20564 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20565 (ix86_emit_outlined_ms2sysv_restore): Same.
20566 (ix86_noce_conversion_profitable_p): Same.
20567 (ix86_init_cost): Same.
20568 (ix86_simd_clone_usable): Same.
20569 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20570 Wstruct-not-pod.
20571 * coretypes.h: Same.
20572 * data-streamer-in.c (string_for_index): Change class-key of PODs
20573 to struct and others to class.
20574 (streamer_read_indexed_string): Same.
20575 (streamer_read_string): Same.
20576 (bp_unpack_indexed_string): Same.
20577 (bp_unpack_string): Same.
20578 (streamer_read_uhwi): Same.
20579 (streamer_read_hwi): Same.
20580 (streamer_read_gcov_count): Same.
20581 (streamer_read_wide_int): Same.
20582 * data-streamer.h (streamer_write_bitpack): Same.
20583 (bp_unpack_value): Same.
20584 (streamer_write_char_stream): Same.
20585 (streamer_write_hwi_in_range): Same.
20586 (streamer_write_record_start): Same.
20587 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20588 (add_cross_iteration_register_deps): Same.
20589 (build_intra_loop_deps): Same.
20590 * df-core.c (df_analyze): Same.
20591 (loop_post_order_compute): Same.
20592 (loop_inverted_post_order_compute): Same.
20593 * df-problems.c (df_rd_alloc): Same.
20594 (df_rd_simulate_one_insn): Same.
20595 (df_rd_local_compute): Same.
20596 (df_rd_init_solution): Same.
20597 (df_rd_confluence_n): Same.
20598 (df_rd_transfer_function): Same.
20599 (df_rd_free): Same.
20600 (df_rd_dump_defs_set): Same.
20601 (df_rd_top_dump): Same.
20602 (df_lr_alloc): Same.
20603 (df_lr_reset): Same.
20604 (df_lr_local_compute): Same.
20605 (df_lr_init): Same.
20606 (df_lr_confluence_n): Same.
20607 (df_lr_free): Same.
20608 (df_lr_top_dump): Same.
20609 (df_lr_verify_transfer_functions): Same.
20610 (df_live_alloc): Same.
20611 (df_live_reset): Same.
20612 (df_live_init): Same.
20613 (df_live_confluence_n): Same.
20614 (df_live_finalize): Same.
20615 (df_live_free): Same.
20616 (df_live_top_dump): Same.
20617 (df_live_verify_transfer_functions): Same.
20618 (df_mir_alloc): Same.
20619 (df_mir_reset): Same.
20620 (df_mir_init): Same.
20621 (df_mir_confluence_n): Same.
20622 (df_mir_free): Same.
20623 (df_mir_top_dump): Same.
20624 (df_word_lr_alloc): Same.
20625 (df_word_lr_reset): Same.
20626 (df_word_lr_init): Same.
20627 (df_word_lr_confluence_n): Same.
20628 (df_word_lr_free): Same.
20629 (df_word_lr_top_dump): Same.
20630 (df_md_alloc): Same.
20631 (df_md_simulate_one_insn): Same.
20632 (df_md_reset): Same.
20633 (df_md_init): Same.
20634 (df_md_free): Same.
20635 (df_md_top_dump): Same.
20636 * df-scan.c (df_insn_delete): Same.
20637 (df_insn_rescan): Same.
20638 (df_notes_rescan): Same.
20639 (df_sort_and_compress_mws): Same.
20640 (df_install_mws): Same.
20641 (df_refs_add_to_chains): Same.
20642 (df_ref_create_structure): Same.
20643 (df_ref_record): Same.
20644 (df_def_record_1): Same.
20645 (df_find_hard_reg_defs): Same.
20646 (df_uses_record): Same.
20647 (df_get_conditional_uses): Same.
20648 (df_get_call_refs): Same.
20649 (df_recompute_luids): Same.
20650 (df_get_entry_block_def_set): Same.
20651 (df_entry_block_defs_collect): Same.
20652 (df_get_exit_block_use_set): Same.
20653 (df_exit_block_uses_collect): Same.
20654 (df_mws_verify): Same.
20655 (df_bb_verify): Same.
20656 * df.h (df_scan_get_bb_info): Same.
20657 * doc/tm.texi: Same.
20658 * dse.c (record_store): Same.
20659 * dumpfile.h: Same.
20660 * emit-rtl.c (const_fixed_hasher::equal): Same.
20661 (set_mem_attributes_minus_bitpos): Same.
20662 (change_address): Same.
20663 (adjust_address_1): Same.
20664 (offset_address): Same.
20665 * emit-rtl.h: Same.
20666 * except.c (dw2_build_landing_pads): Same.
20667 (sjlj_emit_dispatch_table): Same.
20668 * explow.c (allocate_dynamic_stack_space): Same.
20669 (emit_stack_probe): Same.
20670 (probe_stack_range): Same.
20671 * expmed.c (store_bit_field_using_insv): Same.
20672 (store_bit_field_1): Same.
20673 (store_integral_bit_field): Same.
20674 (extract_bit_field_using_extv): Same.
20675 (extract_bit_field_1): Same.
20676 (emit_cstore): Same.
20677 * expr.c (emit_block_move_via_cpymem): Same.
20678 (expand_cmpstrn_or_cmpmem): Same.
20679 (set_storage_via_setmem): Same.
20680 (emit_single_push_insn_1): Same.
20681 (expand_assignment): Same.
20682 (store_constructor): Same.
20683 (expand_expr_real_2): Same.
20684 (expand_expr_real_1): Same.
20685 (try_casesi): Same.
20686 * flags.h: Same.
20687 * function.c (try_fit_stack_local): Same.
20688 (assign_stack_local_1): Same.
20689 (assign_stack_local): Same.
20690 (cut_slot_from_list): Same.
20691 (insert_slot_to_list): Same.
20692 (max_slot_level): Same.
20693 (move_slot_to_level): Same.
20694 (temp_address_hasher::equal): Same.
20695 (remove_unused_temp_slot_addresses): Same.
20696 (assign_temp): Same.
20697 (combine_temp_slots): Same.
20698 (update_temp_slot_address): Same.
20699 (preserve_temp_slots): Same.
20700 * function.h: Same.
20701 * fwprop.c: Same.
20702 * gcc-rich-location.h: Same.
20703 * gcov.c: Same.
20704 * genattrtab.c (check_attr_test): Same.
20705 (check_attr_value): Same.
20706 (convert_set_attr_alternative): Same.
20707 (convert_set_attr): Same.
20708 (check_defs): Same.
20709 (copy_boolean): Same.
20710 (get_attr_value): Same.
20711 (expand_delays): Same.
20712 (make_length_attrs): Same.
20713 (min_fn): Same.
20714 (make_alternative_compare): Same.
20715 (simplify_test_exp): Same.
20716 (tests_attr_p): Same.
20717 (get_attr_order): Same.
20718 (clear_struct_flag): Same.
20719 (gen_attr): Same.
20720 (compares_alternatives_p): Same.
20721 (gen_insn): Same.
20722 (gen_delay): Same.
20723 (find_attrs_to_cache): Same.
20724 (write_test_expr): Same.
20725 (walk_attr_value): Same.
20726 (write_attr_get): Same.
20727 (eliminate_known_true): Same.
20728 (write_insn_cases): Same.
20729 (write_attr_case): Same.
20730 (write_attr_valueq): Same.
20731 (write_attr_value): Same.
20732 (write_dummy_eligible_delay): Same.
20733 (next_comma_elt): Same.
20734 (find_attr): Same.
20735 (make_internal_attr): Same.
20736 (copy_rtx_unchanging): Same.
20737 (gen_insn_reserv): Same.
20738 (check_tune_attr): Same.
20739 (make_automaton_attrs): Same.
20740 (handle_arg): Same.
20741 * genextract.c (gen_insn): Same.
20742 (VEC_char_to_string): Same.
20743 * genmatch.c (print_operand): Same.
20744 (lower): Same.
20745 (parser::parse_operation): Same.
20746 (parser::parse_capture): Same.
20747 (parser::parse_c_expr): Same.
20748 (parser::parse_simplify): Same.
20749 (main): Same.
20750 * genoutput.c (output_operand_data): Same.
20751 (output_get_insn_name): Same.
20752 (compare_operands): Same.
20753 (place_operands): Same.
20754 (process_template): Same.
20755 (validate_insn_alternatives): Same.
20756 (validate_insn_operands): Same.
20757 (gen_expand): Same.
20758 (note_constraint): Same.
20759 * genpreds.c (write_one_predicate_function): Same.
20760 (add_constraint): Same.
20761 (process_define_register_constraint): Same.
20762 (write_lookup_constraint_1): Same.
20763 (write_lookup_constraint_array): Same.
20764 (write_insn_constraint_len): Same.
20765 (write_reg_class_for_constraint_1): Same.
20766 (write_constraint_satisfied_p_array): Same.
20767 * genrecog.c (optimize_subroutine_group): Same.
20768 * gensupport.c (process_define_predicate): Same.
20769 (queue_pattern): Same.
20770 (remove_from_queue): Same.
20771 (process_rtx): Same.
20772 (is_predicable): Same.
20773 (change_subst_attribute): Same.
20774 (subst_pattern_match): Same.
20775 (alter_constraints): Same.
20776 (alter_attrs_for_insn): Same.
20777 (shift_output_template): Same.
20778 (alter_output_for_subst_insn): Same.
20779 (process_one_cond_exec): Same.
20780 (subst_dup): Same.
20781 (process_define_cond_exec): Same.
20782 (mnemonic_htab_callback): Same.
20783 (gen_mnemonic_attr): Same.
20784 (read_md_rtx): Same.
20785 * ggc-page.c: Same.
20786 * gimple-loop-interchange.cc (dump_reduction): Same.
20787 (dump_induction): Same.
20788 (loop_cand::~loop_cand): Same.
20789 (free_data_refs_with_aux): Same.
20790 (tree_loop_interchange::interchange_loops): Same.
20791 (tree_loop_interchange::map_inductions_to_loop): Same.
20792 (tree_loop_interchange::move_code_to_inner_loop): Same.
20793 (compute_access_stride): Same.
20794 (compute_access_strides): Same.
20795 (proper_loop_form_for_interchange): Same.
20796 (tree_loop_interchange_compute_ddrs): Same.
20797 (prune_datarefs_not_in_loop): Same.
20798 (prepare_data_references): Same.
20799 (pass_linterchange::execute): Same.
20800 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20801 (unroll_jam_possible_p): Same.
20802 (fuse_loops): Same.
20803 (adjust_unroll_factor): Same.
20804 (tree_loop_unroll_and_jam): Same.
20805 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20806 (loop_versioning::expensive_stmt_p): Same.
20807 (loop_versioning::version_for_unity): Same.
20808 (loop_versioning::dump_inner_likelihood): Same.
20809 (loop_versioning::find_per_loop_multiplication): Same.
20810 (loop_versioning::analyze_term_using_scevs): Same.
20811 (loop_versioning::record_address_fragment): Same.
20812 (loop_versioning::analyze_expr): Same.
20813 (loop_versioning::analyze_blocks): Same.
20814 (loop_versioning::prune_conditions): Same.
20815 (loop_versioning::merge_loop_info): Same.
20816 (loop_versioning::add_loop_to_queue): Same.
20817 (loop_versioning::decide_whether_loop_is_versionable): Same.
20818 (loop_versioning::make_versioning_decisions): Same.
20819 (loop_versioning::implement_versioning_decisions): Same.
20820 * gimple-ssa-evrp-analyze.c
20821 (evrp_range_analyzer::record_ranges_from_phis): Same.
20822 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20823 (count_multiple_uses): Same.
20824 (split_group): Same.
20825 (imm_store_chain_info::output_merged_store): Same.
20826 (pass_store_merging::process_store): Same.
20827 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20828 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20829 (is_max): Same.
20830 (alloca_call_type): Same.
20831 (pass_walloca::execute): Same.
20832 * gimple-streamer-in.c (input_phi): Same.
20833 (input_gimple_stmt): Same.
20834 * gimple-streamer.h: Same.
20835 * godump.c (go_force_record_alignment): Same.
20836 (go_format_type): Same.
20837 (go_output_type): Same.
20838 (go_output_fndecl): Same.
20839 (go_output_typedef): Same.
20840 (keyword_hash_init): Same.
20841 (find_dummy_types): Same.
20842 * graph.c (draw_cfg_nodes_no_loops): Same.
20843 (draw_cfg_nodes_for_loop): Same.
20844 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20845 * hsa-brig.c: Same.
20846 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20847 * hsa-dump.c (dump_hsa_cfun): Same.
20848 * hsa-gen.c (gen_function_def_parameters): Same.
20849 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20850 * input.c (dump_line_table_statistics): Same.
20851 (test_lexer): Same.
20852 * input.h: Same.
20853 * internal-fn.c (get_multi_vector_move): Same.
20854 (expand_load_lanes_optab_fn): Same.
20855 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20856 (expand_GOMP_SIMT_EXIT): Same.
20857 (expand_GOMP_SIMT_LAST_LANE): Same.
20858 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20859 (expand_GOMP_SIMT_VOTE_ANY): Same.
20860 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20861 (expand_GOMP_SIMT_XCHG_IDX): Same.
20862 (expand_addsub_overflow): Same.
20863 (expand_neg_overflow): Same.
20864 (expand_mul_overflow): Same.
20865 (expand_call_mem_ref): Same.
20866 (expand_mask_load_optab_fn): Same.
20867 (expand_scatter_store_optab_fn): Same.
20868 (expand_gather_load_optab_fn): Same.
20869 * ipa-cp.c (ipa_get_parm_lattices): Same.
20870 (print_all_lattices): Same.
20871 (ignore_edge_p): Same.
20872 (build_toporder_info): Same.
20873 (free_toporder_info): Same.
20874 (push_node_to_stack): Same.
20875 (ipcp_lattice<valtype>::set_contains_variable): Same.
20876 (set_agg_lats_to_bottom): Same.
20877 (ipcp_bits_lattice::meet_with): Same.
20878 (set_single_call_flag): Same.
20879 (initialize_node_lattices): Same.
20880 (ipa_get_jf_ancestor_result): Same.
20881 (ipcp_verify_propagated_values): Same.
20882 (propagate_scalar_across_jump_function): Same.
20883 (propagate_context_across_jump_function): Same.
20884 (propagate_bits_across_jump_function): Same.
20885 (ipa_vr_operation_and_type_effects): Same.
20886 (propagate_vr_across_jump_function): Same.
20887 (set_check_aggs_by_ref): Same.
20888 (set_chain_of_aglats_contains_variable): Same.
20889 (merge_aggregate_lattices): Same.
20890 (agg_pass_through_permissible_p): Same.
20891 (propagate_aggs_across_jump_function): Same.
20892 (call_passes_through_thunk_p): Same.
20893 (propagate_constants_across_call): Same.
20894 (devirtualization_time_bonus): Same.
20895 (good_cloning_opportunity_p): Same.
20896 (context_independent_aggregate_values): Same.
20897 (gather_context_independent_values): Same.
20898 (perform_estimation_of_a_value): Same.
20899 (estimate_local_effects): Same.
20900 (value_topo_info<valtype>::add_val): Same.
20901 (add_all_node_vals_to_toposort): Same.
20902 (value_topo_info<valtype>::propagate_effects): Same.
20903 (ipcp_propagate_stage): Same.
20904 (ipcp_discover_new_direct_edges): Same.
20905 (same_node_or_its_all_contexts_clone_p): Same.
20906 (cgraph_edge_brings_value_p): Same.
20907 (gather_edges_for_value): Same.
20908 (create_specialized_node): Same.
20909 (find_more_scalar_values_for_callers_subset): Same.
20910 (find_more_contexts_for_caller_subset): Same.
20911 (copy_plats_to_inter): Same.
20912 (intersect_aggregates_with_edge): Same.
20913 (find_aggregate_values_for_callers_subset): Same.
20914 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20915 (decide_about_value): Same.
20916 (decide_whether_version_node): Same.
20917 (spread_undeadness): Same.
20918 (identify_dead_nodes): Same.
20919 (ipcp_store_vr_results): Same.
20920 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20921 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20922 (redirect_to_unreachable): Same.
20923 (edge_set_predicate): Same.
20924 (evaluate_conditions_for_known_args): Same.
20925 (evaluate_properties_for_edge): Same.
20926 (ipa_fn_summary_t::duplicate): Same.
20927 (ipa_call_summary_t::duplicate): Same.
20928 (dump_ipa_call_summary): Same.
20929 (ipa_dump_fn_summary): Same.
20930 (eliminated_by_inlining_prob): Same.
20931 (set_cond_stmt_execution_predicate): Same.
20932 (set_switch_stmt_execution_predicate): Same.
20933 (compute_bb_predicates): Same.
20934 (will_be_nonconstant_expr_predicate): Same.
20935 (phi_result_unknown_predicate): Same.
20936 (analyze_function_body): Same.
20937 (compute_fn_summary): Same.
20938 (estimate_edge_devirt_benefit): Same.
20939 (estimate_edge_size_and_time): Same.
20940 (estimate_calls_size_and_time): Same.
20941 (estimate_node_size_and_time): Same.
20942 (remap_edge_change_prob): Same.
20943 (remap_edge_summaries): Same.
20944 (ipa_merge_fn_summary_after_inlining): Same.
20945 (ipa_fn_summary_generate): Same.
20946 (inline_read_section): Same.
20947 (ipa_fn_summary_read): Same.
20948 (ipa_fn_summary_write): Same.
20949 * ipa-fnsummary.h: Same.
20950 * ipa-hsa.c (ipa_hsa_read_section): Same.
20951 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20952 * ipa-icf.c (sem_function::param_used_p): Same.
20953 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20954 * ipa-inline.c (edge_badness): Same.
20955 (inline_small_functions): Same.
20956 * ipa-polymorphic-call.c
20957 (ipa_polymorphic_call_context::stream_out): Same.
20958 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20959 (predicate::remap_after_inlining): Same.
20960 (predicate::stream_out): Same.
20961 * ipa-predicate.h: Same.
20962 * ipa-profile.c (ipa_profile_read_summary): Same.
20963 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20964 (count_formal_params): Same.
20965 (ipa_dump_param): Same.
20966 (ipa_alloc_node_params): Same.
20967 (ipa_print_node_jump_functions_for_edge): Same.
20968 (ipa_print_node_jump_functions): Same.
20969 (ipa_load_from_parm_agg): Same.
20970 (get_ancestor_addr_info): Same.
20971 (ipa_compute_jump_functions_for_edge): Same.
20972 (ipa_analyze_virtual_call_uses): Same.
20973 (ipa_analyze_stmt_uses): Same.
20974 (ipa_analyze_params_uses_in_bb): Same.
20975 (update_jump_functions_after_inlining): Same.
20976 (try_decrement_rdesc_refcount): Same.
20977 (ipa_impossible_devirt_target): Same.
20978 (update_indirect_edges_after_inlining): Same.
20979 (combine_controlled_uses_counters): Same.
20980 (ipa_edge_args_sum_t::duplicate): Same.
20981 (ipa_write_jump_function): Same.
20982 (ipa_write_indirect_edge_info): Same.
20983 (ipa_write_node_info): Same.
20984 (ipa_read_edge_info): Same.
20985 (ipa_prop_read_section): Same.
20986 (read_replacements_section): Same.
20987 * ipa-prop.h (ipa_get_param_count): Same.
20988 (ipa_get_param): Same.
20989 (ipa_get_type): Same.
20990 (ipa_get_param_move_cost): Same.
20991 (ipa_set_param_used): Same.
20992 (ipa_get_controlled_uses): Same.
20993 (ipa_set_controlled_uses): Same.
20994 (ipa_get_cs_argument_count): Same.
20995 * ipa-pure-const.c (analyze_function): Same.
20996 (pure_const_read_summary): Same.
20997 * ipa-ref.h: Same.
20998 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20999 * ipa-split.c (test_nonssa_use): Same.
21000 (dump_split_point): Same.
21001 (dominated_by_forbidden): Same.
21002 (split_part_set_ssa_name_p): Same.
21003 (find_split_points): Same.
21004 * ira-build.c (finish_loop_tree_nodes): Same.
21005 (low_pressure_loop_node_p): Same.
21006 * ira-color.c (ira_reuse_stack_slot): Same.
21007 * ira-int.h: Same.
21008 * ira.c (setup_reg_equiv): Same.
21009 (print_insn_chain): Same.
21010 (ira): Same.
21011 * loop-doloop.c (doloop_condition_get): Same.
21012 (add_test): Same.
21013 (record_reg_sets): Same.
21014 (doloop_optimize): Same.
21015 * loop-init.c (loop_optimizer_init): Same.
21016 (fix_loop_structure): Same.
21017 * loop-invariant.c (merge_identical_invariants): Same.
21018 (compute_always_reached): Same.
21019 (find_exits): Same.
21020 (may_assign_reg_p): Same.
21021 (find_invariants_bb): Same.
21022 (find_invariants_body): Same.
21023 (replace_uses): Same.
21024 (can_move_invariant_reg): Same.
21025 (free_inv_motion_data): Same.
21026 (move_single_loop_invariants): Same.
21027 (change_pressure): Same.
21028 (mark_ref_regs): Same.
21029 (calculate_loop_reg_pressure): Same.
21030 * loop-iv.c (biv_entry_hasher::equal): Same.
21031 (iv_extend_to_rtx_code): Same.
21032 (check_iv_ref_table_size): Same.
21033 (clear_iv_info): Same.
21034 (latch_dominating_def): Same.
21035 (iv_get_reaching_def): Same.
21036 (iv_constant): Same.
21037 (iv_subreg): Same.
21038 (iv_extend): Same.
21039 (iv_neg): Same.
21040 (iv_add): Same.
21041 (iv_mult): Same.
21042 (get_biv_step): Same.
21043 (record_iv): Same.
21044 (analyzed_for_bivness_p): Same.
21045 (record_biv): Same.
21046 (iv_analyze_biv): Same.
21047 (iv_analyze_expr): Same.
21048 (iv_analyze_def): Same.
21049 (iv_analyze_op): Same.
21050 (iv_analyze): Same.
21051 (iv_analyze_result): Same.
21052 (biv_p): Same.
21053 (eliminate_implied_conditions): Same.
21054 (simplify_using_initial_values): Same.
21055 (shorten_into_mode): Same.
21056 (canonicalize_iv_subregs): Same.
21057 (determine_max_iter): Same.
21058 (check_simple_exit): Same.
21059 (find_simple_exit): Same.
21060 (get_simple_loop_desc): Same.
21061 * loop-unroll.c (report_unroll): Same.
21062 (decide_unrolling): Same.
21063 (unroll_loops): Same.
21064 (loop_exit_at_end_p): Same.
21065 (decide_unroll_constant_iterations): Same.
21066 (unroll_loop_constant_iterations): Same.
21067 (compare_and_jump_seq): Same.
21068 (unroll_loop_runtime_iterations): Same.
21069 (decide_unroll_stupid): Same.
21070 (unroll_loop_stupid): Same.
21071 (referenced_in_one_insn_in_loop_p): Same.
21072 (reset_debug_uses_in_loop): Same.
21073 (analyze_iv_to_split_insn): Same.
21074 * lra-eliminations.c (lra_debug_elim_table): Same.
21075 (setup_can_eliminate): Same.
21076 (form_sum): Same.
21077 (lra_get_elimination_hard_regno): Same.
21078 (lra_eliminate_regs_1): Same.
21079 (eliminate_regs_in_insn): Same.
21080 (update_reg_eliminate): Same.
21081 (init_elimination): Same.
21082 (lra_eliminate): Same.
21083 * lra-int.h: Same.
21084 * lra-lives.c (initiate_live_solver): Same.
21085 * lra-remat.c (create_remat_bb_data): Same.
21086 * lra-spills.c (lra_spill): Same.
21087 * lra.c (lra_set_insn_recog_data): Same.
21088 (lra_set_used_insn_alternative_by_uid): Same.
21089 (init_reg_info): Same.
21090 (expand_reg_info): Same.
21091 * lto-cgraph.c (output_symtab): Same.
21092 (read_identifier): Same.
21093 (get_alias_symbol): Same.
21094 (input_node): Same.
21095 (input_varpool_node): Same.
21096 (input_ref): Same.
21097 (input_edge): Same.
21098 (input_cgraph_1): Same.
21099 (input_refs): Same.
21100 (input_symtab): Same.
21101 (input_offload_tables): Same.
21102 (output_cgraph_opt_summary): Same.
21103 (input_edge_opt_summary): Same.
21104 (input_cgraph_opt_section): Same.
21105 * lto-section-in.c (lto_free_raw_section_data): Same.
21106 (lto_create_simple_input_block): Same.
21107 (lto_free_function_in_decl_state_for_node): Same.
21108 * lto-streamer-in.c (lto_tag_check_set): Same.
21109 (lto_location_cache::revert_location_cache): Same.
21110 (lto_location_cache::input_location): Same.
21111 (lto_input_location): Same.
21112 (stream_input_location_now): Same.
21113 (lto_input_tree_ref): Same.
21114 (lto_input_eh_catch_list): Same.
21115 (input_eh_region): Same.
21116 (lto_init_eh): Same.
21117 (make_new_block): Same.
21118 (input_cfg): Same.
21119 (fixup_call_stmt_edges): Same.
21120 (input_struct_function_base): Same.
21121 (input_function): Same.
21122 (lto_read_body_or_constructor): Same.
21123 (lto_read_tree_1): Same.
21124 (lto_read_tree): Same.
21125 (lto_input_scc): Same.
21126 (lto_input_tree_1): Same.
21127 (lto_input_toplevel_asms): Same.
21128 (lto_input_mode_table): Same.
21129 (lto_reader_init): Same.
21130 (lto_data_in_create): Same.
21131 * lto-streamer-out.c (output_cfg): Same.
21132 * lto-streamer.h: Same.
21133 * modulo-sched.c (duplicate_insns_of_cycles): Same.
21134 (generate_prolog_epilog): Same.
21135 (mark_loop_unsched): Same.
21136 (dump_insn_location): Same.
21137 (loop_canon_p): Same.
21138 (sms_schedule): Same.
21139 * omp-expand.c (expand_omp_for_ordered_loops): Same.
21140 (expand_omp_for_generic): Same.
21141 (expand_omp_for_static_nochunk): Same.
21142 (expand_omp_for_static_chunk): Same.
21143 (expand_omp_simd): Same.
21144 (expand_omp_taskloop_for_inner): Same.
21145 (expand_oacc_for): Same.
21146 (expand_omp_atomic_pipeline): Same.
21147 (mark_loops_in_oacc_kernels_region): Same.
21148 * omp-offload.c (oacc_xform_loop): Same.
21149 * omp-simd-clone.c (simd_clone_adjust): Same.
21150 * optabs-query.c (get_traditional_extraction_insn): Same.
21151 * optabs.c (expand_vector_broadcast): Same.
21152 (expand_binop_directly): Same.
21153 (expand_twoval_unop): Same.
21154 (expand_twoval_binop): Same.
21155 (expand_unop_direct): Same.
21156 (emit_indirect_jump): Same.
21157 (emit_conditional_move): Same.
21158 (emit_conditional_neg_or_complement): Same.
21159 (emit_conditional_add): Same.
21160 (vector_compare_rtx): Same.
21161 (expand_vec_perm_1): Same.
21162 (expand_vec_perm_const): Same.
21163 (expand_vec_cond_expr): Same.
21164 (expand_vec_series_expr): Same.
21165 (maybe_emit_atomic_exchange): Same.
21166 (maybe_emit_sync_lock_test_and_set): Same.
21167 (expand_atomic_compare_and_swap): Same.
21168 (expand_atomic_load): Same.
21169 (expand_atomic_store): Same.
21170 (maybe_emit_op): Same.
21171 (valid_multiword_target_p): Same.
21172 (create_integer_operand): Same.
21173 (maybe_legitimize_operand_same_code): Same.
21174 (maybe_legitimize_operand): Same.
21175 (create_convert_operand_from_type): Same.
21176 (can_reuse_operands_p): Same.
21177 (maybe_legitimize_operands): Same.
21178 (maybe_gen_insn): Same.
21179 (maybe_expand_insn): Same.
21180 (maybe_expand_jump_insn): Same.
21181 (expand_insn): Same.
21182 * optabs.h (create_expand_operand): Same.
21183 (create_fixed_operand): Same.
21184 (create_output_operand): Same.
21185 (create_input_operand): Same.
21186 (create_convert_operand_to): Same.
21187 (create_convert_operand_from): Same.
21188 * optinfo.h: Same.
21189 * poly-int.h: Same.
21190 * predict.c (optimize_insn_for_speed_p): Same.
21191 (optimize_loop_for_size_p): Same.
21192 (optimize_loop_for_speed_p): Same.
21193 (optimize_loop_nest_for_speed_p): Same.
21194 (get_base_value): Same.
21195 (predicted_by_loop_heuristics_p): Same.
21196 (predict_extra_loop_exits): Same.
21197 (predict_loops): Same.
21198 (predict_paths_for_bb): Same.
21199 (predict_paths_leading_to): Same.
21200 (propagate_freq): Same.
21201 (pass_profile::execute): Same.
21202 * predict.h: Same.
21203 * profile-count.c (profile_count::differs_from_p): Same.
21204 (profile_probability::differs_lot_from_p): Same.
21205 * profile-count.h: Same.
21206 * profile.c (branch_prob): Same.
21207 * regrename.c (free_chain_data): Same.
21208 (mark_conflict): Same.
21209 (create_new_chain): Same.
21210 (merge_overlapping_regs): Same.
21211 (init_rename_info): Same.
21212 (merge_chains): Same.
21213 (regrename_analyze): Same.
21214 (regrename_do_replace): Same.
21215 (scan_rtx_reg): Same.
21216 (record_out_operands): Same.
21217 (build_def_use): Same.
21218 * regrename.h: Same.
21219 * reload.h: Same.
21220 * reload1.c (init_reload): Same.
21221 (maybe_fix_stack_asms): Same.
21222 (copy_reloads): Same.
21223 (count_pseudo): Same.
21224 (count_spilled_pseudo): Same.
21225 (find_reg): Same.
21226 (find_reload_regs): Same.
21227 (select_reload_regs): Same.
21228 (spill_hard_reg): Same.
21229 (fixup_eh_region_note): Same.
21230 (set_reload_reg): Same.
21231 (allocate_reload_reg): Same.
21232 (compute_reload_subreg_offset): Same.
21233 (reload_adjust_reg_for_icode): Same.
21234 (emit_input_reload_insns): Same.
21235 (emit_output_reload_insns): Same.
21236 (do_input_reload): Same.
21237 (inherit_piecemeal_p): Same.
21238 * rtl.h: Same.
21239 * sanopt.c (maybe_get_dominating_check): Same.
21240 (maybe_optimize_ubsan_ptr_ifn): Same.
21241 (can_remove_asan_check): Same.
21242 (maybe_optimize_asan_check_ifn): Same.
21243 (sanopt_optimize_walker): Same.
21244 * sched-deps.c (add_dependence_list): Same.
21245 (chain_to_prev_insn): Same.
21246 (add_insn_mem_dependence): Same.
21247 (create_insn_reg_set): Same.
21248 (maybe_extend_reg_info_p): Same.
21249 (sched_analyze_reg): Same.
21250 (sched_analyze_1): Same.
21251 (get_implicit_reg_pending_clobbers): Same.
21252 (chain_to_prev_insn_p): Same.
21253 (deps_analyze_insn): Same.
21254 (deps_start_bb): Same.
21255 (sched_free_deps): Same.
21256 (init_deps): Same.
21257 (init_deps_reg_last): Same.
21258 (free_deps): Same.
21259 * sched-ebb.c: Same.
21260 * sched-int.h: Same.
21261 * sched-rgn.c (add_branch_dependences): Same.
21262 (concat_insn_mem_list): Same.
21263 (deps_join): Same.
21264 (sched_rgn_compute_dependencies): Same.
21265 * sel-sched-ir.c (reset_target_context): Same.
21266 (copy_deps_context): Same.
21267 (init_id_from_df): Same.
21268 (has_dependence_p): Same.
21269 (change_loops_latches): Same.
21270 (bb_top_order_comparator): Same.
21271 (make_region_from_loop_preheader): Same.
21272 (sel_init_pipelining): Same.
21273 (get_loop_nest_for_rgn): Same.
21274 (make_regions_from_the_rest): Same.
21275 (sel_is_loop_preheader_p): Same.
21276 * sel-sched-ir.h (inner_loop_header_p): Same.
21277 (get_all_loop_exits): Same.
21278 * selftest.h: Same.
21279 * sese.c (sese_build_liveouts): Same.
21280 (sese_insert_phis_for_liveouts): Same.
21281 * sese.h (defined_in_sese_p): Same.
21282 * sreal.c (sreal::stream_out): Same.
21283 * sreal.h: Same.
21284 * streamer-hooks.h: Same.
21285 * target-globals.c (save_target_globals): Same.
21286 * target-globals.h: Same.
21287 * target.def: Same.
21288 * target.h: Same.
21289 * targhooks.c (default_has_ifunc_p): Same.
21290 (default_empty_mask_is_expensive): Same.
21291 (default_init_cost): Same.
21292 * targhooks.h: Same.
21293 * toplev.c: Same.
21294 * tree-affine.c (aff_combination_mult): Same.
21295 (aff_combination_expand): Same.
21296 (aff_combination_constant_multiple_p): Same.
21297 * tree-affine.h: Same.
21298 * tree-cfg.c (build_gimple_cfg): Same.
21299 (replace_loop_annotate_in_block): Same.
21300 (replace_uses_by): Same.
21301 (remove_bb): Same.
21302 (dump_cfg_stats): Same.
21303 (gimple_duplicate_sese_region): Same.
21304 (gimple_duplicate_sese_tail): Same.
21305 (move_block_to_fn): Same.
21306 (replace_block_vars_by_duplicates): Same.
21307 (move_sese_region_to_fn): Same.
21308 (print_loops_bb): Same.
21309 (print_loop): Same.
21310 (print_loops): Same.
21311 (debug): Same.
21312 (debug_loops): Same.
21313 * tree-cfg.h: Same.
21314 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
21315 (chrec_fold_multiply_poly_poly): Same.
21316 (chrec_evaluate): Same.
21317 (chrec_component_in_loop_num): Same.
21318 (reset_evolution_in_loop): Same.
21319 (is_multivariate_chrec): Same.
21320 (chrec_contains_symbols): Same.
21321 (nb_vars_in_chrec): Same.
21322 (chrec_convert_1): Same.
21323 (chrec_convert_aggressive): Same.
21324 * tree-chrec.h: Same.
21325 * tree-core.h: Same.
21326 * tree-data-ref.c (dump_data_dependence_relation): Same.
21327 (canonicalize_base_object_address): Same.
21328 (data_ref_compare_tree): Same.
21329 (prune_runtime_alias_test_list): Same.
21330 (get_segment_min_max): Same.
21331 (create_intersect_range_checks): Same.
21332 (conflict_fn_no_dependence): Same.
21333 (object_address_invariant_in_loop_p): Same.
21334 (analyze_ziv_subscript): Same.
21335 (analyze_siv_subscript_cst_affine): Same.
21336 (analyze_miv_subscript): Same.
21337 (analyze_overlapping_iterations): Same.
21338 (build_classic_dist_vector_1): Same.
21339 (add_other_self_distances): Same.
21340 (same_access_functions): Same.
21341 (build_classic_dir_vector): Same.
21342 (subscript_dependence_tester_1): Same.
21343 (subscript_dependence_tester): Same.
21344 (access_functions_are_affine_or_constant_p): Same.
21345 (get_references_in_stmt): Same.
21346 (loop_nest_has_data_refs): Same.
21347 (graphite_find_data_references_in_stmt): Same.
21348 (find_data_references_in_bb): Same.
21349 (get_base_for_alignment): Same.
21350 (find_loop_nest_1): Same.
21351 (find_loop_nest): Same.
21352 * tree-data-ref.h (dr_alignment): Same.
21353 (ddr_dependence_level): Same.
21354 * tree-if-conv.c (fold_build_cond_expr): Same.
21355 (add_to_predicate_list): Same.
21356 (add_to_dst_predicate_list): Same.
21357 (phi_convertible_by_degenerating_args): Same.
21358 (idx_within_array_bound): Same.
21359 (all_preds_critical_p): Same.
21360 (pred_blocks_visited_p): Same.
21361 (predicate_bbs): Same.
21362 (build_region): Same.
21363 (if_convertible_loop_p_1): Same.
21364 (is_cond_scalar_reduction): Same.
21365 (predicate_scalar_phi): Same.
21366 (remove_conditions_and_labels): Same.
21367 (combine_blocks): Same.
21368 (version_loop_for_if_conversion): Same.
21369 (versionable_outer_loop_p): Same.
21370 (ifcvt_local_dce): Same.
21371 (tree_if_conversion): Same.
21372 (pass_if_conversion::gate): Same.
21373 * tree-if-conv.h: Same.
21374 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
21375 * tree-loop-distribution.c (bb_top_order_cmp): Same.
21376 (free_rdg): Same.
21377 (stmt_has_scalar_dependences_outside_loop): Same.
21378 (copy_loop_before): Same.
21379 (create_bb_after_loop): Same.
21380 (const_with_all_bytes_same): Same.
21381 (generate_memset_builtin): Same.
21382 (generate_memcpy_builtin): Same.
21383 (destroy_loop): Same.
21384 (build_rdg_partition_for_vertex): Same.
21385 (compute_access_range): Same.
21386 (data_ref_segment_size): Same.
21387 (latch_dominated_by_data_ref): Same.
21388 (compute_alias_check_pairs): Same.
21389 (fuse_memset_builtins): Same.
21390 (finalize_partitions): Same.
21391 (find_seed_stmts_for_distribution): Same.
21392 (prepare_perfect_loop_nest): Same.
21393 * tree-parloops.c (lambda_transform_legal_p): Same.
21394 (loop_parallel_p): Same.
21395 (reduc_stmt_res): Same.
21396 (add_field_for_name): Same.
21397 (create_call_for_reduction_1): Same.
21398 (replace_uses_in_bb_by): Same.
21399 (transform_to_exit_first_loop_alt): Same.
21400 (try_transform_to_exit_first_loop_alt): Same.
21401 (transform_to_exit_first_loop): Same.
21402 (num_phis): Same.
21403 (gen_parallel_loop): Same.
21404 (gather_scalar_reductions): Same.
21405 (get_omp_data_i_param): Same.
21406 (try_create_reduction_list): Same.
21407 (oacc_entry_exit_single_gang): Same.
21408 (parallelize_loops): Same.
21409 * tree-pass.h: Same.
21410 * tree-predcom.c (determine_offset): Same.
21411 (last_always_executed_block): Same.
21412 (split_data_refs_to_components): Same.
21413 (suitable_component_p): Same.
21414 (valid_initializer_p): Same.
21415 (find_looparound_phi): Same.
21416 (insert_looparound_copy): Same.
21417 (add_looparound_copies): Same.
21418 (determine_roots_comp): Same.
21419 (predcom_tmp_var): Same.
21420 (initialize_root_vars): Same.
21421 (initialize_root_vars_store_elim_1): Same.
21422 (initialize_root_vars_store_elim_2): Same.
21423 (finalize_eliminated_stores): Same.
21424 (initialize_root_vars_lm): Same.
21425 (remove_stmt): Same.
21426 (determine_unroll_factor): Same.
21427 (execute_pred_commoning_cbck): Same.
21428 (base_names_in_chain_on): Same.
21429 (combine_chains): Same.
21430 (pcom_stmt_dominates_stmt_p): Same.
21431 (try_combine_chains): Same.
21432 (prepare_initializers_chain_store_elim): Same.
21433 (prepare_initializers_chain): Same.
21434 (prepare_initializers): Same.
21435 (prepare_finalizers_chain): Same.
21436 (prepare_finalizers): Same.
21437 (insert_init_seqs): Same.
21438 * tree-scalar-evolution.c (loop_phi_node_p): Same.
21439 (compute_overall_effect_of_inner_loop): Same.
21440 (add_to_evolution_1): Same.
21441 (add_to_evolution): Same.
21442 (follow_ssa_edge_binary): Same.
21443 (follow_ssa_edge_expr): Same.
21444 (backedge_phi_arg_p): Same.
21445 (follow_ssa_edge_in_condition_phi_branch): Same.
21446 (follow_ssa_edge_in_condition_phi): Same.
21447 (follow_ssa_edge_inner_loop_phi): Same.
21448 (follow_ssa_edge): Same.
21449 (analyze_evolution_in_loop): Same.
21450 (analyze_initial_condition): Same.
21451 (interpret_loop_phi): Same.
21452 (interpret_condition_phi): Same.
21453 (interpret_rhs_expr): Same.
21454 (interpret_expr): Same.
21455 (interpret_gimple_assign): Same.
21456 (analyze_scalar_evolution_1): Same.
21457 (analyze_scalar_evolution): Same.
21458 (analyze_scalar_evolution_for_address_of): Same.
21459 (get_instantiated_value_entry): Same.
21460 (loop_closed_phi_def): Same.
21461 (instantiate_scev_name): Same.
21462 (instantiate_scev_poly): Same.
21463 (instantiate_scev_binary): Same.
21464 (instantiate_scev_convert): Same.
21465 (instantiate_scev_not): Same.
21466 (instantiate_scev_r): Same.
21467 (instantiate_scev): Same.
21468 (resolve_mixers): Same.
21469 (initialize_scalar_evolutions_analyzer): Same.
21470 (scev_reset_htab): Same.
21471 (scev_reset): Same.
21472 (derive_simple_iv_with_niters): Same.
21473 (simple_iv_with_niters): Same.
21474 (expression_expensive_p): Same.
21475 (final_value_replacement_loop): Same.
21476 * tree-scalar-evolution.h (block_before_loop): Same.
21477 * tree-ssa-address.h: Same.
21478 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
21479 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
21480 (record_edge_info): Same.
21481 * tree-ssa-live.c (var_map_base_fini): Same.
21482 (remove_unused_locals): Same.
21483 * tree-ssa-live.h: Same.
21484 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
21485 (pass_ch_vect::execute): Same.
21486 (pass_ch::process_loop_p): Same.
21487 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21488 (movement_possibility): Same.
21489 (outermost_invariant_loop): Same.
21490 (stmt_cost): Same.
21491 (determine_max_movement): Same.
21492 (invariantness_dom_walker::before_dom_children): Same.
21493 (move_computations): Same.
21494 (may_move_till): Same.
21495 (force_move_till_op): Same.
21496 (force_move_till): Same.
21497 (memref_free): Same.
21498 (record_mem_ref_loc): Same.
21499 (set_ref_stored_in_loop): Same.
21500 (mark_ref_stored): Same.
21501 (sort_bbs_in_loop_postorder_cmp): Same.
21502 (sort_locs_in_loop_postorder_cmp): Same.
21503 (analyze_memory_references): Same.
21504 (mem_refs_may_alias_p): Same.
21505 (find_ref_loc_in_loop_cmp): Same.
21506 (rewrite_mem_ref_loc::operator): Same.
21507 (first_mem_ref_loc_1::operator): Same.
21508 (sm_set_flag_if_changed::operator): Same.
21509 (execute_sm_if_changed_flag_set): Same.
21510 (execute_sm): Same.
21511 (hoist_memory_references): Same.
21512 (ref_always_accessed::operator): Same.
21513 (refs_independent_p): Same.
21514 (record_dep_loop): Same.
21515 (ref_indep_loop_p_1): Same.
21516 (ref_indep_loop_p): Same.
21517 (can_sm_ref_p): Same.
21518 (find_refs_for_sm): Same.
21519 (loop_suitable_for_sm): Same.
21520 (store_motion_loop): Same.
21521 (store_motion): Same.
21522 (fill_always_executed_in): Same.
21523 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21524 (estimated_unrolled_size): Same.
21525 (loop_edge_to_cancel): Same.
21526 (remove_exits_and_undefined_stmts): Same.
21527 (remove_redundant_iv_tests): Same.
21528 (unloop_loops): Same.
21529 (estimated_peeled_sequence_size): Same.
21530 (try_peel_loop): Same.
21531 (canonicalize_loop_induction_variables): Same.
21532 (canonicalize_induction_variables): Same.
21533 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21534 (name_info): Same.
21535 (stmt_after_inc_pos): Same.
21536 (contains_abnormal_ssa_name_p): Same.
21537 (niter_for_exit): Same.
21538 (find_bivs): Same.
21539 (mark_bivs): Same.
21540 (find_givs_in_bb): Same.
21541 (find_induction_variables): Same.
21542 (find_interesting_uses_cond): Same.
21543 (outermost_invariant_loop_for_expr): Same.
21544 (idx_find_step): Same.
21545 (add_candidate_1): Same.
21546 (add_iv_candidate_derived_from_uses): Same.
21547 (alloc_use_cost_map): Same.
21548 (prepare_decl_rtl): Same.
21549 (generic_predict_doloop_p): Same.
21550 (computation_cost): Same.
21551 (determine_common_wider_type): Same.
21552 (get_computation_aff_1): Same.
21553 (get_use_type): Same.
21554 (determine_group_iv_cost_address): Same.
21555 (iv_period): Same.
21556 (difference_cannot_overflow_p): Same.
21557 (may_eliminate_iv): Same.
21558 (determine_set_costs): Same.
21559 (cheaper_cost_pair): Same.
21560 (compare_cost_pair): Same.
21561 (iv_ca_cand_for_group): Same.
21562 (iv_ca_recount_cost): Same.
21563 (iv_ca_set_remove_invs): Same.
21564 (iv_ca_set_no_cp): Same.
21565 (iv_ca_set_add_invs): Same.
21566 (iv_ca_set_cp): Same.
21567 (iv_ca_add_group): Same.
21568 (iv_ca_cost): Same.
21569 (iv_ca_compare_deps): Same.
21570 (iv_ca_delta_reverse): Same.
21571 (iv_ca_delta_commit): Same.
21572 (iv_ca_cand_used_p): Same.
21573 (iv_ca_delta_free): Same.
21574 (iv_ca_new): Same.
21575 (iv_ca_free): Same.
21576 (iv_ca_dump): Same.
21577 (iv_ca_extend): Same.
21578 (iv_ca_narrow): Same.
21579 (iv_ca_prune): Same.
21580 (cheaper_cost_with_cand): Same.
21581 (iv_ca_replace): Same.
21582 (try_add_cand_for): Same.
21583 (get_initial_solution): Same.
21584 (try_improve_iv_set): Same.
21585 (find_optimal_iv_set_1): Same.
21586 (create_new_iv): Same.
21587 (rewrite_use_compare): Same.
21588 (remove_unused_ivs): Same.
21589 (determine_scaling_factor): Same.
21590 * tree-ssa-loop-ivopts.h: Same.
21591 * tree-ssa-loop-manip.c (create_iv): Same.
21592 (compute_live_loop_exits): Same.
21593 (add_exit_phi): Same.
21594 (add_exit_phis): Same.
21595 (find_uses_to_rename_use): Same.
21596 (find_uses_to_rename_def): Same.
21597 (find_uses_to_rename_in_loop): Same.
21598 (rewrite_into_loop_closed_ssa): Same.
21599 (check_loop_closed_ssa_bb): Same.
21600 (split_loop_exit_edge): Same.
21601 (ip_end_pos): Same.
21602 (ip_normal_pos): Same.
21603 (copy_phi_node_args): Same.
21604 (gimple_duplicate_loop_to_header_edge): Same.
21605 (can_unroll_loop_p): Same.
21606 (determine_exit_conditions): Same.
21607 (scale_dominated_blocks_in_loop): Same.
21608 (niter_for_unrolled_loop): Same.
21609 (tree_transform_and_unroll_loop): Same.
21610 (rewrite_all_phi_nodes_with_iv): Same.
21611 * tree-ssa-loop-manip.h: Same.
21612 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21613 (number_of_iterations_ne): Same.
21614 (assert_no_overflow_lt): Same.
21615 (assert_loop_rolls_lt): Same.
21616 (number_of_iterations_lt): Same.
21617 (adjust_cond_for_loop_until_wrap): Same.
21618 (tree_simplify_using_condition): Same.
21619 (simplify_using_initial_conditions): Same.
21620 (simplify_using_outer_evolutions): Same.
21621 (loop_only_exit_p): Same.
21622 (ssa_defined_by_minus_one_stmt_p): Same.
21623 (number_of_iterations_popcount): Same.
21624 (number_of_iterations_exit): Same.
21625 (find_loop_niter): Same.
21626 (finite_loop_p): Same.
21627 (chain_of_csts_start): Same.
21628 (get_val_for): Same.
21629 (loop_niter_by_eval): Same.
21630 (derive_constant_upper_bound_ops): Same.
21631 (do_warn_aggressive_loop_optimizations): Same.
21632 (record_estimate): Same.
21633 (get_cst_init_from_scev): Same.
21634 (record_nonwrapping_iv): Same.
21635 (idx_infer_loop_bounds): Same.
21636 (infer_loop_bounds_from_ref): Same.
21637 (infer_loop_bounds_from_array): Same.
21638 (infer_loop_bounds_from_pointer_arith): Same.
21639 (infer_loop_bounds_from_signedness): Same.
21640 (bound_index): Same.
21641 (discover_iteration_bound_by_body_walk): Same.
21642 (maybe_lower_iteration_bound): Same.
21643 (estimate_numbers_of_iterations): Same.
21644 (estimated_loop_iterations): Same.
21645 (estimated_loop_iterations_int): Same.
21646 (max_loop_iterations): Same.
21647 (max_loop_iterations_int): Same.
21648 (likely_max_loop_iterations): Same.
21649 (likely_max_loop_iterations_int): Same.
21650 (estimated_stmt_executions_int): Same.
21651 (max_stmt_executions): Same.
21652 (likely_max_stmt_executions): Same.
21653 (estimated_stmt_executions): Same.
21654 (stmt_dominates_stmt_p): Same.
21655 (nowrap_type_p): Same.
21656 (loop_exits_before_overflow): Same.
21657 (scev_var_range_cant_overflow): Same.
21658 (scev_probably_wraps_p): Same.
21659 (free_numbers_of_iterations_estimates): Same.
21660 * tree-ssa-loop-niter.h: Same.
21661 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21662 (idx_analyze_ref): Same.
21663 (analyze_ref): Same.
21664 (gather_memory_references_ref): Same.
21665 (mark_nontemporal_store): Same.
21666 (emit_mfence_after_loop): Same.
21667 (may_use_storent_in_loop_p): Same.
21668 (mark_nontemporal_stores): Same.
21669 (should_unroll_loop_p): Same.
21670 (volume_of_dist_vector): Same.
21671 (add_subscript_strides): Same.
21672 (self_reuse_distance): Same.
21673 (insn_to_prefetch_ratio_too_small_p): Same.
21674 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21675 (patch_loop_exit): Same.
21676 (find_or_create_guard_phi): Same.
21677 (easy_exit_values): Same.
21678 (connect_loop_phis): Same.
21679 (connect_loops): Same.
21680 (compute_new_first_bound): Same.
21681 (split_loop): Same.
21682 (tree_ssa_split_loops): Same.
21683 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21684 (is_maybe_undefined): Same.
21685 (tree_may_unswitch_on): Same.
21686 (simplify_using_entry_checks): Same.
21687 (tree_unswitch_single_loop): Same.
21688 (tree_unswitch_loop): Same.
21689 (tree_unswitch_outer_loop): Same.
21690 (empty_bb_without_guard_p): Same.
21691 (used_outside_loop_p): Same.
21692 (get_vop_from_header): Same.
21693 (hoist_guard): Same.
21694 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21695 (get_lsm_tmp_name): Same.
21696 * tree-ssa-loop.h: Same.
21697 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21698 (build_and_add_sum): Same.
21699 (no_side_effect_bb): Same.
21700 (get_ops): Same.
21701 (linearize_expr): Same.
21702 (should_break_up_subtract): Same.
21703 (linearize_expr_tree): Same.
21704 * tree-ssa-scopedtables.c: Same.
21705 * tree-ssa-scopedtables.h: Same.
21706 * tree-ssa-structalias.c (condense_visit): Same.
21707 (label_visit): Same.
21708 (dump_pred_graph): Same.
21709 (perform_var_substitution): Same.
21710 (move_complex_constraints): Same.
21711 (remove_preds_and_fake_succs): Same.
21712 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21713 (determine_bb_domination_status): Same.
21714 (duplicate_thread_path): Same.
21715 (thread_through_all_blocks): Same.
21716 * tree-ssa-threadupdate.h: Same.
21717 * tree-streamer-in.c (streamer_read_string_cst): Same.
21718 (input_identifier): Same.
21719 (unpack_ts_type_common_value_fields): Same.
21720 (unpack_ts_block_value_fields): Same.
21721 (unpack_ts_translation_unit_decl_value_fields): Same.
21722 (unpack_ts_omp_clause_value_fields): Same.
21723 (streamer_read_tree_bitfields): Same.
21724 (streamer_alloc_tree): Same.
21725 (lto_input_ts_common_tree_pointers): Same.
21726 (lto_input_ts_vector_tree_pointers): Same.
21727 (lto_input_ts_poly_tree_pointers): Same.
21728 (lto_input_ts_complex_tree_pointers): Same.
21729 (lto_input_ts_decl_minimal_tree_pointers): Same.
21730 (lto_input_ts_decl_common_tree_pointers): Same.
21731 (lto_input_ts_decl_non_common_tree_pointers): Same.
21732 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21733 (lto_input_ts_field_decl_tree_pointers): Same.
21734 (lto_input_ts_function_decl_tree_pointers): Same.
21735 (lto_input_ts_type_common_tree_pointers): Same.
21736 (lto_input_ts_type_non_common_tree_pointers): Same.
21737 (lto_input_ts_list_tree_pointers): Same.
21738 (lto_input_ts_vec_tree_pointers): Same.
21739 (lto_input_ts_exp_tree_pointers): Same.
21740 (lto_input_ts_block_tree_pointers): Same.
21741 (lto_input_ts_binfo_tree_pointers): Same.
21742 (lto_input_ts_constructor_tree_pointers): Same.
21743 (lto_input_ts_omp_clause_tree_pointers): Same.
21744 (streamer_read_tree_body): Same.
21745 * tree-streamer.h: Same.
21746 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21747 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21748 (vect_analyze_possibly_independent_ddr): Same.
21749 (vect_analyze_data_ref_dependence): Same.
21750 (vect_compute_data_ref_alignment): Same.
21751 (vect_enhance_data_refs_alignment): Same.
21752 (vect_analyze_data_ref_access): Same.
21753 (vect_check_gather_scatter): Same.
21754 (vect_find_stmt_data_reference): Same.
21755 (vect_create_addr_base_for_vector_ref): Same.
21756 (vect_setup_realignment): Same.
21757 (vect_supportable_dr_alignment): Same.
21758 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21759 (adjust_phi_and_debug_stmts): Same.
21760 (vect_set_loop_mask): Same.
21761 (add_preheader_seq): Same.
21762 (vect_maybe_permute_loop_masks): Same.
21763 (vect_set_loop_masks_directly): Same.
21764 (vect_set_loop_condition_masked): Same.
21765 (vect_set_loop_condition_unmasked): Same.
21766 (slpeel_duplicate_current_defs_from_edges): Same.
21767 (slpeel_add_loop_guard): Same.
21768 (slpeel_can_duplicate_loop_p): Same.
21769 (create_lcssa_for_virtual_phi): Same.
21770 (iv_phi_p): Same.
21771 (vect_update_ivs_after_vectorizer): Same.
21772 (vect_gen_vector_loop_niters_mult_vf): Same.
21773 (slpeel_update_phi_nodes_for_loops): Same.
21774 (slpeel_update_phi_nodes_for_guard1): Same.
21775 (find_guard_arg): Same.
21776 (slpeel_update_phi_nodes_for_guard2): Same.
21777 (slpeel_update_phi_nodes_for_lcssa): Same.
21778 (vect_do_peeling): Same.
21779 (vect_create_cond_for_alias_checks): Same.
21780 (vect_loop_versioning): Same.
21781 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21782 (vect_inner_phi_in_double_reduction_p): Same.
21783 (vect_analyze_scalar_cycles_1): Same.
21784 (vect_fixup_scalar_cycles_with_patterns): Same.
21785 (vect_get_loop_niters): Same.
21786 (bb_in_loop_p): Same.
21787 (vect_get_max_nscalars_per_iter): Same.
21788 (vect_verify_full_masking): Same.
21789 (vect_compute_single_scalar_iteration_cost): Same.
21790 (vect_analyze_loop_form_1): Same.
21791 (vect_analyze_loop_form): Same.
21792 (vect_active_double_reduction_p): Same.
21793 (vect_analyze_loop_operations): Same.
21794 (neutral_op_for_slp_reduction): Same.
21795 (vect_is_simple_reduction): Same.
21796 (vect_model_reduction_cost): Same.
21797 (get_initial_def_for_reduction): Same.
21798 (get_initial_defs_for_reduction): Same.
21799 (vect_create_epilog_for_reduction): Same.
21800 (vectorize_fold_left_reduction): Same.
21801 (vectorizable_reduction): Same.
21802 (vectorizable_induction): Same.
21803 (vectorizable_live_operation): Same.
21804 (loop_niters_no_overflow): Same.
21805 (vect_get_loop_mask): Same.
21806 (vect_transform_loop_stmt): Same.
21807 (vect_transform_loop): Same.
21808 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21809 (vect_determine_precisions): Same.
21810 (vect_pattern_recog_1): Same.
21811 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21812 * tree-vect-stmts.c (stmt_vectype): Same.
21813 (process_use): Same.
21814 (vect_init_vector_1): Same.
21815 (vect_truncate_gather_scatter_offset): Same.
21816 (get_group_load_store_type): Same.
21817 (vect_build_gather_load_calls): Same.
21818 (vect_get_strided_load_store_ops): Same.
21819 (vectorizable_simd_clone_call): Same.
21820 (vectorizable_store): Same.
21821 (permute_vec_elements): Same.
21822 (vectorizable_load): Same.
21823 (vect_transform_stmt): Same.
21824 (supportable_widening_operation): Same.
21825 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21826 (vec_info::free_stmt_vec_info): Same.
21827 (vect_free_loop_info_assumptions): Same.
21828 (vect_loop_vectorized_call): Same.
21829 (set_uid_loop_bbs): Same.
21830 (vectorize_loops): Same.
21831 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21832 * tree.c (add_tree_to_fld_list): Same.
21833 (fld_type_variant_equal_p): Same.
21834 (fld_decl_context): Same.
21835 (fld_incomplete_type_of): Same.
21836 (free_lang_data_in_binfo): Same.
21837 (need_assembler_name_p): Same.
21838 (find_decls_types_r): Same.
21839 (get_eh_types_for_runtime): Same.
21840 (find_decls_types_in_eh_region): Same.
21841 (find_decls_types_in_node): Same.
21842 (assign_assembler_name_if_needed): Same.
21843 * value-prof.c (stream_out_histogram_value): Same.
21844 * value-prof.h: Same.
21845 * var-tracking.c (use_narrower_mode): Same.
21846 (prepare_call_arguments): Same.
21847 (vt_expand_loc_callback): Same.
21848 (resolve_expansions_pending_recursion): Same.
21849 (vt_expand_loc): Same.
21850 * varasm.c (const_hash_1): Same.
21851 (compare_constant): Same.
21852 (tree_output_constant_def): Same.
21853 (simplify_subtraction): Same.
21854 (get_pool_constant): Same.
21855 (output_constant_pool_2): Same.
21856 (output_constant_pool_1): Same.
21857 (mark_constants_in_pattern): Same.
21858 (mark_constant_pool): Same.
21859 (get_section_anchor): Same.
21860 * vr-values.c (compare_range_with_value): Same.
21861 (vr_values::extract_range_from_phi_node): Same.
21862 * vr-values.h: Same.
21863 * web.c (unionfind_union): Same.
21864 * wide-int.h: Same.
21865
21866 2019-07-09 Martin Sebor <msebor@redhat.com>
21867
21868 PR c++/61339
21869 * align.h: Change class-key from class to struct and vice versa
21870 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21871 * alloc-pool.h: Same.
21872 * asan.c (shadow_mem_size): Same.
21873 * auto-profile.c: Same.
21874 * basic-block.h: Same.
21875 * bitmap.h: Same.
21876 * cfgexpand.c (set_rtl): Same.
21877 (expand_one_stack_var_at): Same.
21878 * cfghooks.h: Same.
21879 * cfgloop.h: Same.
21880 * cgraph.h: Same.
21881 * config/i386/i386.h: Same.
21882 * df-problems.c (df_print_bb_index): Same.
21883 * df-scan.c: Same.
21884 * df.h (df_single_use): Same.
21885 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21886 (layout::annotation_line_showed_range_p): Same.
21887 (get_printed_columns): Same.
21888 (correction::ensure_terminated): Same.
21889 (line_corrections::~line_corrections): Same.
21890 * dojump.h: Same.
21891 * dse.c: Same.
21892 * dump-context.h: Same.
21893 * dumpfile.h: Same.
21894 * dwarf2out.c: Same.
21895 * edit-context.c: Same.
21896 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21897 * flags.h: Same.
21898 * function.c (assign_stack_local): Same.
21899 * function.h: Same.
21900 * gcc.c: Same.
21901 * gcov.c (block_info::block_info): Same.
21902 * genattrtab.c: Same.
21903 * genextract.c: Same.
21904 * genmatch.c (comparison_code_p): Same.
21905 (id_base::id_base): Same.
21906 (decision_tree::print): Same.
21907 * genoutput.c: Same.
21908 * genpreds.c (write_one_predicate_function): Same.
21909 * genrecog.c (validate_pattern): Same.
21910 (find_operand_positions): Same.
21911 (optimize_subroutine_group): Same.
21912 (merge_pattern_transition::merge_pattern_transition): Same.
21913 (merge_pattern_info::merge_pattern_info): Same.
21914 (merge_state_result::merge_state_result): Same.
21915 (merge_into_state): Same.
21916 * gensupport.c: Same.
21917 * gensupport.h: Same.
21918 * ggc-common.c (init_ggc_heuristics): Same.
21919 * ggc-tests.c (test_union): Same.
21920 * gimple-loop-interchange.cc (dump_induction): Same.
21921 * gimple-loop-versioning.cc: Same.
21922 * gimple-match.h (gimple_match_cond::any_else): Same.
21923 * gimple-ssa-backprop.c: Same.
21924 * gimple-ssa-sprintf.c: Same.
21925 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21926 Same.
21927 (store_immediate_info::store_immediate_info): Same.
21928 (merged_store_group::apply_stores): Same.
21929 (get_location_for_stmts): Same.
21930 * gimple-ssa-strength-reduction.c: Same.
21931 * gimple-ssa-warn-alloca.c: Same.
21932 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21933 * godump.c (go_type_decl): Same.
21934 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21935 * hash-map.h: Same.
21936 * hash-set-tests.c (test_set_of_strings): Same.
21937 * hsa-brig.c: Same.
21938 * hsa-common.h: Same.
21939 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21940 * input.c (assert_loceq): Same.
21941 * input.h: Same.
21942 * ipa-cp.c: Same.
21943 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21944 * ipa-fnsummary.h: Same.
21945 * ipa-inline.h: Same.
21946 * ipa-prop.h: Same.
21947 * ipa-split.c (visit_bb): Same.
21948 * ira-int.h (minmax_set_iter_next): Same.
21949 * loop-invariant.c: Same.
21950 * loop-iv.c: Same.
21951 * lra-eliminations.c: Same.
21952 * lra-int.h: Same.
21953 * lra-lives.c (mark_regno_dead): Same.
21954 * lra-remat.c: Same.
21955 * lra-spills.c: Same.
21956 * lto-streamer.h: Same.
21957 * mem-stats.h: Same.
21958 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21959 * omp-low.c (omp_clause_aligned_alignment): Same.
21960 * optabs-query.h (get_vcond_eq_icode): Same.
21961 * optabs.h: Same.
21962 * opts.c (wrap_help): Same.
21963 * poly-int.h: Same.
21964 * predict.c (predict_paths_leading_to_edge): Same.
21965 * pretty-print.h: Same.
21966 * profile-count.h: Same.
21967 * read-md.h: Same.
21968 * read-rtl-function.c: Same.
21969 * ree.c: Same.
21970 * reginfo.c: Same.
21971 * regrename.c: Same.
21972 * regrename.h: Same.
21973 * reload.h: Same.
21974 * rtl-iter.h: Same.
21975 * rtl.h (costs_add_n_insns): Same.
21976 * sanopt.c: Same.
21977 * sched-int.h: Same.
21978 * sel-sched-ir.h: Same.
21979 * selftest.h: Same.
21980 * sese.h (vec_find): Same.
21981 * stmt.c: Same.
21982 * target-globals.h: Same.
21983 * tree-affine.c (aff_combination_find_elt): Same.
21984 * tree-affine.h: Same.
21985 * tree-data-ref.h: Same.
21986 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21987 * tree-predcom.c: Same.
21988 * tree-scalar-evolution.c (find_var_scev_info): Same.
21989 * tree-ssa-alias.h: Same.
21990 * tree-ssa-ccp.c: Same.
21991 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21992 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21993 (rewrite_mem_refs): Same.
21994 (execute_sm_if_changed): Same.
21995 (hoist_memory_references): Same.
21996 * tree-ssa-loop-ivopts.c (operator<=): Same.
21997 * tree-ssa-loop.h: Same.
21998 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21999 * tree-ssa-structalias.c: Same.
22000 * tree-switch-conversion.h (cluster::cluster): Same.
22001 (simple_cluster::simple_cluster): Same.
22002 * tree-vect-patterns.c (type_conversion_p): Same.
22003 * tree-vectorizer.c (dump_stmt_cost): Same.
22004 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
22005 * tree.c (protected_set_expr_location): Same.
22006 * tree.h (desired_pro_or_demotion_p): Same.
22007 (fndecl_built_in_p): Same.
22008 * unique-ptr-tests.cc: Same.
22009 * var-tracking.c (delete_variable_part): Same.
22010 * varasm.c (assemble_real): Same.
22011 (tree_output_constant_def): Same.
22012 * vec.c: Same.
22013 * wide-int-bitmask.h: Same.
22014 * wide-int.h (decompose): Same.
22015
22016 2019-07-09 Richard Biener <rguenther@suse.de>
22017
22018 PR tree-optimization/91114
22019 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
22020 find a vector type isn't fatal.
22021
22022 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
22023
22024 * config/aarch64/aarch64-simd.md
22025 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
22026 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
22027 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
22028 (*aarch64_crypto_aese_fused,
22029 *aarch64_crypto_aesd_fused): Update to new definition.
22030 * config/aarch64/aarch64.c
22031 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
22032
22033 2019-07-09 Richard Biener <rguenther@suse.de>
22034
22035 * gimple-match.h (gimple_match_op::resimplify): New.
22036 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
22037 gimple_resimplify4, gimple_resimplify5): Remove.
22038 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
22039 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
22040 Make static.
22041 (gimple_match_op::resimplify): New.
22042 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
22043 according to availability. Use gimple_match_op::resimplify.
22044
22045 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
22046
22047 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
22048
22049 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
22050
22051 * config/arm/crypto.md:
22052 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
22053 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
22054 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
22055 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
22056 * config/arm/arm.c
22057 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
22058 * config/arm/aarch-common-protos.h
22059 (aarch_crypto_can_dual_issue): Remove.
22060 * config/arm/aarch-common.c
22061 (aarch_crypto_can_dual_issue): Likewise.
22062 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
22063 * config/arm/cortex-a53.md: Likewise.
22064 * config/arm/cortex-a57.md: Likewise.
22065 * config/arm/iterators.md:
22066 (CRYPTO_BINARY): Redefine.
22067 (CRYPTO_UNARY): Removed.
22068 (CRYPTO_AES, CRYPTO_AESMC): New.
22069
22070 2019-07-09 Richard Biener <rguenther@suse.de>
22071
22072 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
22073 (vn_reference_lookup_3): If the main ref has no access path recorded
22074 but orig_ref has use it to do access-path based disambiguation.
22075 (vn_reference_lookup_pieces): Adjust.
22076 (vn_reference_lookup): Pass down original ref if we valueized.
22077
22078 2019-07-09 Martin Liska <mliska@suse.cz>
22079
22080 * doc/extend.texi: Document influence on loop
22081 optimizers.
22082
22083 2019-07-09 Martin Liska <mliska@suse.cz>
22084
22085 * lto-compress.c (lto_normalized_zstd_level): Do not use
22086 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
22087 of libzstd. One can use 0 as a default compression level.
22088
22089 2019-07-09 Martin Liska <mliska@suse.cz>
22090
22091 * doc/invoke.texi: Add link from -fprofile-dir option.
22092 Use better wording for 'gcno filename'.
22093
22094 2019-07-08 Martin Sebor <msebor@redhat.com>
22095
22096 PR middle-end/71924
22097 PR middle-end/90549
22098 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
22099 comment.
22100 (args_loc_t): New type.
22101 (args_loc_t, locmap_t): same.
22102 (diag_returned_locals): New function.
22103 (is_addr_local): Same.
22104 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
22105 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
22106 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
22107
22108 2019-07-08 Jakub Jelinek <jakub@redhat.com>
22109
22110 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
22111 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
22112 and casts in offset when different, both through gimple stmts
22113 and through trees. Rewritten using loops to minimize code duplication
22114 for each operand.
22115
22116 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
22117
22118 * emit-rtl.c (set_insn_locations): New function moved from...
22119 * function.c (set_insn_locations): ...here.
22120 * ira-emit.c (emit_moves): Propagate location of the first instruction
22121 to the inserted move instructions.
22122 * reg-stack.c (compensate_edge): Set the location if the sequence is
22123 inserted on the edge.
22124 * rtl.h (set_insn_locations): Declare.
22125
22126 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22127
22128 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
22129 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
22130 .machine string.
22131
22132 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
22133
22134 PR rtl-optimization/88233
22135 * common.opt (fsplit-wide-types-early): New option.
22136 * common/config/rs6000/rs6000-common.c
22137 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
22138 OPT_LEVELS_ALL.
22139 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
22140 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
22141 flag_split_wide_types_early.
22142 (pass_data_lower_subreg3): New.
22143 (pass_lower_subreg3): New.
22144 (make_pass_lower_subreg3): New.
22145 * passes.def (pass_lower_subreg2): Move after the loop passes.
22146 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
22147 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
22148 the pass pipeline; its previous place is taken by ...
22149 (make_pass_lower_subreg3): ... this.
22150
22151 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22152
22153 * config/s390/s390.c (s390_shift_truncation_mask): Define.
22154 (TARGET_SHIFT_TRUNCATION_MASK): Define.
22155
22156 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
22157
22158 * config/s390/constraints.md: Add new jsc constraint.
22159 * config/s390/predicates.md: New predicates.
22160 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
22161 * config/s390/s390.c (s390_valid_shift_count): New function.
22162 (print_shift_count_operand): Use s390_valid_shift_count.
22163 (print_operand): Likewise.
22164 * config/s390/s390.md: Use new predicate.
22165 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
22166 * config/s390/vector.md: Use new predicate.
22167
22168 2019-07-08 Andrew Waterman <andrew@sifive.com>
22169 Jim Wilson <jimw@sifive.com>
22170
22171 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
22172 bitsize instead of BITS_PER_WORD.
22173
22174 2019-07-08 Martin Liska <mliska@suse.cz>
22175
22176 * collect2.c (defined): Revert to before r254460.
22177 (scan_prog_file): Revert to before r254460.
22178
22179 2019-07-08 Richard Biener <rguenther@suse.de>
22180
22181 PR tree-optimization/83518
22182 * tree-ssa-sccvn.c: Include splay-tree.h.
22183 (struct pd_range, struct pd_data): New.
22184 (struct vn_walk_cb_data): Add data to track partial definitions.
22185 (vn_walk_cb_data::~vn_walk_cb_data): New.
22186 (vn_walk_cb_data::push_partial_def): New.
22187 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
22188 (vn_reference_lookup_2): When partial defs are registered give up.
22189 (vn_reference_lookup_3): Track partial defs for memset and
22190 constructor zeroing and for defs from constants.
22191
22192 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22193
22194 * doc/install.texi (bootstrap-Og): Document.
22195
22196 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
22197
22198 * config/riscv/pic.md (*local_pic_load_s<mode>)
22199 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
22200 referenced by <mode>, giving...
22201 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
22202 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
22203 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
22204 use <X:MODE> for the mode attribute.
22205
22206 2019-07-07 Jeff Law <law@redhat.com>
22207
22208 PR tree-optimization/91090
22209 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
22210 in handling of ranges to simplify switch statements.
22211
22212 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22213
22214 * config/darwin.c (darwin_override_options): Make a final check on PIC
22215 options.
22216
22217 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
22218
22219 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
22220 on for kernel code.
22221
22222 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22223
22224 PR target/91068
22225 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
22226 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
22227 instead of matching them to "l" output operands.
22228
22229 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
22230
22231 * config/mips/mips.c (mips_split_move): Zero-initialize addr
22232 and check whether addr.reg is nonnull before using it.
22233
22234 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22235
22236 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
22237 ctx->for_simd_scan_phase simd copy the outer var to the privatized
22238 variable(s). For conditional lastprivate look through outer
22239 GIMPLE_OMP_SCAN context.
22240 (lower_omp_1): For conditional lastprivate look through outer
22241 GIMPLE_OMP_SCAN context.
22242
22243 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
22244 member to combined_into_simd_safelen1.
22245 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
22246 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
22247 clauses if ctx->combined_into_simd_safelen1 put statements after the
22248 predicate conditionalized block rather than into it.
22249
22250 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22251
22252 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
22253 operand 1.
22254 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
22255 Make the choice of <mode> explicit, giving...
22256 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
22257
22258 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22259
22260 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
22261 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
22262 of .md attributes.
22263 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
22264 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
22265 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
22266 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
22267 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
22268 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
22269 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
22270 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
22271 (*avx512f_scatterdi<mode>): Likewise.
22272 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
22273
22274 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22275
22276 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
22277 specify the mode iterator referenced by <mode>, giving...
22278 (*push1_h8300hs_<QHI:mode>): ...this.
22279
22280 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22281
22282 * config/gcn/gcn-valu.md
22283 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
22284 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
22285 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
22286 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
22287 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
22288 but using the _exec comparison patterns.
22289 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
22290 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
22291 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
22292 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
22293 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
22294 but using the _exec comparison patterns.
22295
22296 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
22297
22298 * config/arm/sync.md
22299 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
22300 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
22301 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
22302 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
22303 <SIDI:cas_cmp_str>.
22304
22305 2019-07-06 Jakub Jelinek <jakub@redhat.com>
22306
22307 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
22308 (maybe_lookup_ctx): Add forward declaration.
22309 (omp_find_scan): Likewise. Walk into body of simd if composited
22310 with worksharing loop.
22311 (scan_omp_simd_scan): New function.
22312 (scan_omp_1_stmt): Call it.
22313 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
22314 ctx->for_simd_scan_phase.
22315 (lower_rec_input_clauses): Do much less work for inscan reductions
22316 in ctx->for_simd_scan_phase is_simd regions.
22317 (lower_omp_scan): Set is_simd also on simd constructs composited
22318 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
22319 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
22320 emit their body after in simd constructs composited with worksharing
22321 loop.
22322 (lower_omp_for_scan): Handle worksharing loop composited with simd.
22323
22324 * omp-low.c (omp_find_scan): Make static.
22325 (lower_omp_for_scan): Fix order of merge arguments in input phase of
22326 the second loop, var2 represents the first partial sum and so needs
22327 to go before rprivb[ivar].
22328
22329 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
22330
22331 * config/rs6000/rs6000-logue.c: Remove unused code.
22332
22333 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22334
22335 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
22336
22337 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
22338
22339 PR target/90712
22340 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
22341 check with a frame laid out check.
22342
22343 2019-07-05 Richard Biener <rguenther@suse.de>
22344
22345 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
22346 when comparing against a store with possibly the same value.
22347
22348 2019-07-05 Richard Biener <rguenther@suse.de>
22349
22350 PR tree-optimization/91091
22351 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
22352 (walk_non_aliased_vuses): Likewise.
22353 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
22354 (get_continuation_for_phi): New tbaa_p parameter and pass
22355 it down.
22356 (walk_non_aliased_vuses): Likewise.
22357 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
22358 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
22359 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
22360 Likewise.
22361 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
22362 (adjust_offsets_for_equal_base_address): New function.
22363 (vn_reference_lookup_3): Use it to catch more base equivalences.
22364 Handle and pass down tbaa_p flag.
22365 (vn_reference_lookup_pieces): Adjust.
22366 (vn_reference_lookup): Remove alias-set altering, instead pass
22367 down false as tbaa_p.
22368
22369 2019-07-05 Richard Biener <rguenther@suse.de>
22370
22371 PR tree-optimization/91091
22372 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
22373 accesses can happen with -fno-strict-aliasing.
22374
22375 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
22376
22377 * tree-ssa-alias.c (alias_stats): Add
22378 nonoverlapping_component_refs_since_match_p_must_overlap.
22379 (dump_alias_stats): Print it.
22380 (nonoverlapping_component_refs_since_match_p): Add early exit.
22381 (nonoverlapping_component_refs_p): Do not account early exit.
22382
22383 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22384
22385 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
22386 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
22387 (emit_eh_dispatch): Delete.
22388 (lower_catch): Emit the eh_dispatch manually and set the location of
22389 the first catch statement onto it.
22390 (lower_eh_filter): Emit the eh_dispatch manually and set location.
22391 (lower_eh_dispatch): Propagate location.
22392 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
22393 (eliminate_build): Likewise.
22394
22395 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
22396
22397 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
22398 phi nodes if possible.
22399 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
22400 location info on the newly created statement.
22401 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
22402 newly created increment if needed.
22403
22404 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22405
22406 PR middle-end/78884
22407 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
22408 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
22409 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
22410 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
22411 ctx->add_safelen1 is set.
22412
22413 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
22414 GOMP_loop_start at the start of second worksharing loop in a scan.
22415 For nowait, don't emit GOMP_loop_end_nowait at the end of first
22416 worksharing loop in a scan even if there are conditional lastprivates,
22417 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
22418
22419 2019-07-04 Jan Hubicka <jh@suse.cz>
22420
22421 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
22422 Fix check for match in the ref walk.
22423
22424 2019-07-04 Martin Liska <mliska@suse.cz>
22425
22426 * tree-ssa-loop-niter.c
22427 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
22428 (estimate_numbers_of_iterations):
22429 Support __builtin_expect_with_probability for analysis
22430 of # of loop iterations.
22431
22432 2019-07-04 Alexandre Oliva <oliva@adacore.com>
22433
22434 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
22435 * except.c: Likewise.
22436 * expr.c (expand_expr_real_1): Reject it.
22437 * gimplify.c (gimplify_expr): Gimplify it, within
22438 TRY_FINALLY_EXPR.
22439 * tree-dump.c (dequeue_and_dump): Dump it.
22440 * tree-pretty-print.c (dump_generic_node): Likewise.
22441 * tree.c (block_may_fallthru): Handle it.
22442 * tree.def (EH_ELSE_EXPR): Introduce it.
22443 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
22444 with GIMPLE_EH_ELSE as try/finally/else.
22445
22446 2019-07-04 Richard Biener <rguenther@suse.de>
22447
22448 PR ipa/91062
22449 * tree-pass.h (execute_all_ipa_transforms): Add a flag
22450 parameter whether to disable GC collection.
22451 * passes.c (execute_one_ipa_transform_pass): Likewise, and
22452 honor it.
22453 (execute_all_ipa_transforms): Likewise and pass it down.
22454 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
22455 collection from applying IPA transforms.
22456 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
22457 from applying IPA transforms.
22458
22459 2019-07-04 Richard Biener <rguenther@suse.de>
22460
22461 PR tree-optimization/90911
22462 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
22463 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
22464 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22465 scalar_loop_scaling.
22466 (vect_transform_loop): Scale scalar loop profile if needed.
22467 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
22468 the loop copy from if-conversion adjust edge probabilities
22469 and scale the vectorized loop body profile, queue the scalar
22470 profile for updating after peeling.
22471
22472 2019-07-04 Jan Hubicka <jh@suse.cz>
22473
22474 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
22475 parameters; return early for must-alias.
22476 (indirect_ref_may_alias_decl_p): Likewise; when establishing
22477 outer types match, try nonoverlapping_component_refs
22478 if must-alias is not obvious.
22479 (indirect_refs_may_alias_p): Likewise.
22480 (refs_may_alias_p_2): Likewise.
22481
22482 2019-07-04 Richard Biener <rguenther@suse.de>
22483
22484 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
22485 argument.
22486 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22487 globals into...
22488 (struct vn_walk_cb_data): New callback data struct.
22489 (vn_reference_lookup_2): Adjust.
22490 (vn_reference_lookup_3): Likewise.
22491 (vn_reference_lookup_pieces): Likewise.
22492 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22493 (visit_reference_op_load): Adjust.
22494
22495 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22496
22497 PR tree-optimization/91063
22498 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22499 stmt from stmts sequence before calling vect_init_vector_1.
22500 Formatting fix.
22501
22502 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22503
22504 PR target/88833
22505 * fwprop.c (reg_single_def_p): New function.
22506 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22507 (forward_propagate_into): New parameter reg_prop_only
22508 with default value false.
22509 Propagate def's src into loop only if SET_SRC and SET_DEST
22510 of def_set have single definitions.
22511 Likewise if reg_prop_only is set to true.
22512 (fwprop): New param fwprop_addr_p.
22513 Integrate fwprop_addr into fwprop.
22514 (fwprop_addr): Remove.
22515 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22516 to true.
22517 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22518 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22519 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22520
22521 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22522
22523 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22524 in worksharing loop scans.
22525
22526 PR tree-optimization/91074
22527 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22528 temporary.
22529
22530 PR rtl-optimization/90756
22531 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22532 for VECTOR_TYPE_P.
22533
22534 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
22535
22536 * config/aarch64/aarch64.md: Remove redundant constraints from
22537 define_expand but keep some patterns untouched if they are
22538 specially selected by TARGET_SECONDARY_RELOAD hook.
22539 * config/aarch64/aarch64-sve.md: Likewise.
22540 * config/aarch64/atomics.md: Remove redundant constraints from
22541 define_expand.
22542 * config/aarch64/aarch64-simd.md: Likewise.
22543
22544 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22545
22546 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22547 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22548 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22549 clauses.
22550 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22551 DARWIN_NOPIE_SPEC.
22552
22553 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22554
22555 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22556 (STARTFILE_SPEC): Split crt3 into a separate spec.
22557 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22558 (DARWIN_CRT2_SPEC): New.
22559 (DARWIN_CRT3_SPEC): New.
22560 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22561 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22562 (DARWIN_CRT3_SPEC): New.
22563
22564 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22565
22566 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22567 Change the RTL attribute "length" from "4" to "*" to allow the
22568 length attribute to be adjusted automatically for prefixed load,
22569 store, and add immediate instructions.
22570 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22571 Likewise.
22572 (extendsi<mode>2, EXTSI iterator): Likewise.
22573 (movsi_internal1): Likewise.
22574 (movsi_from_sf): Likewise.
22575 (movdi_from_sf_zero_ext): Likewise.
22576 (mov<mode>_internal): Likewise.
22577 (movcc_internal1, QHI iterator): Likewise.
22578 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22579 (movsf_from_si): Likewise.
22580 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22581 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22582 (mov<mode>, FMOVE128 iterator): Likewise.
22583 (movdi_internal64): Likewise.
22584 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22585 Likewise.
22586 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22587 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22588 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22589 (vsx_splat_v4sf): Likewise.
22590
22591 2019-07-03 Mark Wielaard <mark@klomp.org>
22592
22593 PR debug/90981
22594 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22595 DW_AT_addr_base if there is actually a .debug_addr section with
22596 addresses.
22597 (output_addr_table): Add DWARF5 table header generation here after
22598 checking there are actually any addresses from...
22599 (dwarf2out_finish): ...here.
22600
22601 2019-07-03 Richard Biener <rguenther@suse.de>
22602
22603 PR middle-end/91069
22604 * match.pd (vec_perm -> bit_insert): Fix element read from
22605 first vector.
22606
22607 2019-07-03 Martin Liska <mliska@suse.cz>
22608
22609 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22610 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22611 condition.
22612 * generic-match-head.c: Include dbgcnt.h.
22613 * gimple-match-head.c: Likewise.
22614
22615 2019-07-03 Martin Liska <mliska@suse.cz>
22616
22617 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22618 (GCOV_COUNTER_V_TOPN): New.
22619 (GCOV_COUNTER_V_INDIR): Use _topn.
22620 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22621 (GCOV_TOPN_VALUES): New.
22622 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22623 (GCOV_TOPN_VALUES_COUNTERS): New.
22624 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22625 * tree-profile.c:
22626 (gimple_init_gcov_profiler): Rename variables from one_value
22627 to topn_values.
22628 (gimple_gen_one_value_profiler): Remove.
22629 (gimple_gen_topn_values_profiler): New function.
22630 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22631 names instead of SINGLE_VALUE.
22632 (stream_out_histogram_value): Likewise.
22633 (stream_in_histogram_value): Likewise.
22634 (get_most_common_single_value): Likewise.
22635 (gimple_divmod_fixed_value_transform): Likewise.
22636 (gimple_stringops_transform): Likewise.
22637 (gimple_divmod_values_to_profile): Likewise.
22638 (gimple_stringops_values_to_profile): Likewise.
22639 (gimple_find_values_to_profile): Likewise.
22640 * value-prof.h (enum hist_type): Rename to TOPN.
22641 (gimple_gen_one_value_profiler): Remove.
22642 (gimple_gen_topn_values_profiler): New.
22643
22644 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22645
22646 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22647 if it has the DW_AT_data_member_location attribute.
22648
22649 2019-07-03 Richard Biener <rguenther@suse.de>
22650
22651 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22652 dumping.
22653
22654 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22655
22656 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22657 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22658 (tlsdesc_small_sve_<mode>): Likewise.
22659
22660 2019-07-03 Martin Liska <mliska@suse.cz>
22661
22662 * Makefile.in: Define ZSTD_LIB.
22663 * common.opt: Adjust compression level
22664 to support also zstd levels.
22665 * config.in: Regenerate.
22666 * configure: Likewise.
22667 * configure.ac: Add --with-zstd and --with-zstd-include options
22668 and detect ZSTD.
22669 * doc/install.texi: Mention zstd dependency.
22670 * gcc.c: Print supported LTO compression algorithms.
22671 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22672 (lto_compression_zstd): Likewise.
22673 (lto_uncompression_zstd): Likewise.
22674 (lto_end_compression): Dispatch in between zlib and zstd.
22675 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22676 (lto_uncompression_zlib): Make it static.
22677 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22678 * lto-section-in.c (lto_get_section_data): Pass info
22679 about used compression.
22680 * lto-streamer-out.c: By default use zstd when possible.
22681 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22682 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22683
22684 2019-07-03 Martin Liska <mliska@suse.cz>
22685
22686 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22687 * lto-section-out.c (lto_destroy_simple_output_block): Never
22688 compress LTO_section_lto section.
22689 * lto-streamer-out.c (produce_asm): Do not set major_version
22690 and minor_version.
22691 (lto_output_toplevel_asms): Likewise.
22692 (produce_lto_section): New function.
22693 (lto_output): Call produce_lto_section.
22694 (lto_write_mode_table): Do not set major_version and
22695 minor_version.
22696 (produce_asm_for_decls): Likewise.
22697 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22698 type.
22699 (struct lto_header): Remove.
22700 (struct lto_section): New struct.
22701 (struct lto_simple_header): Do not inherit from lto_header.
22702 (struct lto_file_decl_data): Add lto_section_header field.
22703
22704 2019-07-03 Martin Liska <mliska@suse.cz>
22705
22706 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22707 dead assignemts.
22708 * reg-stack.c (check_asm_stack_operands): Likewise.
22709 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22710 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22711 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22712 force_expand_binop.
22713
22714 2019-07-03 Martin Liska <mliska@suse.cz>
22715
22716 PR tree-optimization/90892
22717 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22718 in string constants.
22719
22720 2019-07-03 Martin Liska <mliska@suse.cz>
22721
22722 PR middle-end/90899
22723 * multiple_target.c (create_dispatcher_calls): Add to comdat
22724 group only if set for ifunc.
22725
22726 2019-07-03 Martin Liska <mliska@suse.cz>
22727
22728 PR target/88056
22729 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22730 Define local_object_name in outer scope in order to handle
22731 use-after-scope issue.
22732
22733 2019-07-03 Martin Liska <mliska@suse.cz>
22734
22735 * common.opt: Add fprofile-note.
22736 * coverage.c (coverage_init): Append the option
22737 to bbg_file_name.
22738 * doc/invoke.texi: Document -fprofile-note.
22739
22740 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22741
22742 PR tree-optimization/91033
22743 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22744 vect_analyze_data_refs): Add bool * arguments.
22745 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22746 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22747 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22748 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22749 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22750 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22751 vect_analyze_data_refs caller.
22752
22753 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22754 clause.
22755 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22756 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22757 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22758 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22759 OMP_CLAUSE__SCANTEMP_ entry.
22760 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22761 * tree-pretty-print.c (dump_omp_clause): Likewise.
22762 * tree-nested.c (convert_nonlocal_omp_clauses,
22763 convert_local_omp_clauses): Likewise.
22764 * omp-general.h (struct omp_for_data): Add have_scantemp and
22765 have_nonctrl_scantemp members.
22766 * omp-general.c (omp_extract_for_data): Initialize them.
22767 * omp-low.c (struct omp_context): Add scan_exclusive member.
22768 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22769 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22770 ctx->scan_exclusive.
22771 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22772 of !ctx->scan_inclusive.
22773 (lower_rec_input_clauses): Simplify gimplification of dtors using
22774 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22775 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22776 loops. Don't add barrier for reduction_omp_orig_ref if
22777 ctx->scan_??xclusive.
22778 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22779 (lower_omp_scan): Use ctx->scan_exclusive instead
22780 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22781 reductions. Use new_vard != new_var instead of repeated
22782 omp_is_reference calls.
22783 (omp_find_scan, lower_omp_for_scan): New functions.
22784 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22785 inscan reductions.
22786 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22787 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22788 and fd->have_scantemp.
22789
22790 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22791 on worksharing loop propagate it as shared clause to containing
22792 combined parallel.
22793
22794 * omp-expand.c (expand_omp_for_static_nochunk,
22795 expand_omp_for_static_chunk): For nowait worksharing loop with
22796 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22797 at the end.
22798
22799 2019-07-02 qing zhao <qing.zhao@oracle.com>
22800
22801 PR preprocessor/90581
22802 * doc/cppopts.texi: Add document for -fmax-include-depth.
22803 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22804
22805 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22806
22807 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22808 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22809 (mmx_packssdw): Ditto.
22810 (mmx_punpckhbw): Ditto.
22811 (mmx_punpcklbw): Ditto.
22812 (mmx_punpckhwd): Ditto.
22813 (mmx_punpcklwd): Ditto.
22814 (mmx_punpckhdq): Ditto.
22815 (mmx_punpckldq): Ditto.
22816 (*vec_dupv4hi): Ditto.
22817 (*vec_dupv2si): Ditto.
22818 (mmx_pmovmskb): Ditto.
22819 * config/i386/sse.md (sse_cvtpi2ps): Use
22820 TARGET_SSE2 && SSE_REG_P in split condition.
22821 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22822 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22823 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22824 (ssse3_pshufbv8qi3): Ditto.
22825 (ssse3_palignrdi): Ditto.
22826
22827 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22828
22829 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22830 with inlined save and restore.
22831
22832 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22833
22834 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22835 to be inserted on single successor edge of the entry block. Then call
22836 commit_edge_insertions instead of inserting the instructions manually.
22837 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22838 RTL expansion and rebuild jump labels chain.
22839
22840 2019-07-02 Richard Biener <rguenther@suse.de>
22841
22842 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22843 TI_CHREC_KNOWN.
22844 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22845 Define here.
22846 * tree.c (build_common_tree_nodes): Initialize them.
22847 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22848 Make declarations comments.
22849 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22850 chrec_known): Remove definitions.
22851 (initialize_scalar_evolutions_analyzer): Remove.
22852 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22853 * tree-streamer.c (preload_common_nodes): Do not preload
22854 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22855
22856 2019-07-02 Jan Hubicka <jh@suse.cz>
22857
22858 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22859 sanity check.
22860
22861 2019-07-02 Jan Hubicka <jh@suse.cz>
22862
22863 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22864 to ..
22865 (nonoverlapping_component_refs_since_match_p): ... this one;
22866 handle also non-decl bases; return -1 if search gave up.
22867 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22868 nonoverlapping_component_refs_of_decl_p_no_alias to
22869 nonoverlapping_component_refs_since_match_p_may_alias,
22870 nonoverlapping_component_refs_since_match_p_no_alias.
22871 (dump_alias_stats): Update dumping.
22872 (aliasing_matching_component_refs_p): Break out from ...;
22873 dispatch to nonoverlapping_component_refs_for_decl_p
22874 and nonoverlapping_component_refs_since_match_p.
22875 (aliasing_component_refs_p): ... here; call
22876 nonoverlapping_component_refs_p in scenarios where we can not
22877 precisely determine base match.
22878 (decl_refs_may_alias_p): Use
22879 nonoverlapping_component_refs_since_match_p.
22880 (indirect_ref_may_alias_decl_p): Do not call
22881 nonoverlapping_component_refs_p.
22882 (indirect_refs_may_alias_p): Likewise.
22883
22884 2019-07-02 Jan Hubicka <jh@suse.cz>
22885
22886 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22887 to clobber of return value.
22888
22889 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22890
22891 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22892 for is_neon_type instructions that have not already been categorized.
22893
22894 2019-07-02 Richard Biener <rguenther@suse.de>
22895
22896 PR tree-optimization/58483
22897 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22898 for MEM_REF base hashing.
22899 (equal_mem_array_ref_p): Likewise for base comparison.
22900
22901 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22902
22903 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22904 parameterized name.
22905 (signbit<mode>2): Use that name. Simplify.
22906
22907 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22908
22909 PR middle-end/66726
22910 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22911 Tune heuristic from PR71016 to allow MIN / MAX.
22912
22913 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22914
22915 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22916 parameterized name.
22917 (abs<mode>2): Use that name. Simplify.
22918
22919 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22920
22921 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22922 parameterized name.
22923 (neg<mode>2): Use that name. Simplify.
22924
22925 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22926
22927 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22928 name.
22929 (abs<mode>2): Use that name. Simplify.
22930
22931 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22932
22933 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22934 name.
22935 (neg<mode>2): Use that name. Simplify.
22936
22937 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22938
22939 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22940 ("enabled" attribute): Handle sse_noavx isa attribute.
22941 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22942 Use TARGET_SSE && SSE_REGNO_P in split condition.
22943 (*vec_dupv2sf): Ditto.
22944
22945 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22946
22947 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22948 name.
22949 (floatsi<mode>2): Use that name. Simplify.
22950
22951 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22952
22953 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22954 parameterized name.
22955 (extenddf<mode>2_vsx): Make this a parameterized name.
22956 (extenddf<mode>2): Use those names. Simplify.
22957
22958 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22959
22960 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22961 name.
22962 (eh_return): Use that name. Simplify.
22963
22964 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22965
22966 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22967 (doloop_end): Use that name. Simplify.
22968
22969 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22970
22971 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22972 parameterized name.
22973 (indirect_jump): Use that name. Simplify.
22974
22975 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22976
22977 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22978 parameterized name.
22979 (abs<mode>2): Use that name. Simplify.
22980
22981 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22982
22983 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22984 parameterized name.
22985 (fix_trunc<mode>si2): Use that name. Simplify.
22986
22987 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22988
22989 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22990 (allocate_stack): Use that name. Simplify.
22991
22992 2019-07-01 Martin Sebor <msebor@redhat.com>
22993
22994 PR middle-end/90923
22995 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22996 (hash_map::get_or_insert): Same. Reformat comment.
22997 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22998 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22999 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
23000 * hash-table.h (hash_table::operator=): Prevent copy assignment.
23001 (hash_table::hash_table (const hash_table&)): Use copy ctor
23002 instead of assignment to copy elements.
23003
23004 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
23005 John David Anglin <danglin@gcc.gnu.org>
23006
23007 PR target/90963
23008 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
23009 using saved frame pointer.
23010
23011 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
23012
23013 PR middle-end/64242
23014 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
23015 Add frame clobber and schedule blockage.
23016
23017 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
23018
23019 * doc/invoke.texi (Link Options): Further editorial changes to
23020 -flinker-output docs.
23021
23022 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
23023
23024 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
23025 Load both operands of a PLUS into registers separately.
23026
23027 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
23028
23029 * config/s390/vector.md: Fix shift count operand printing.
23030
23031 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23032
23033 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
23034
23035 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23036
23037 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
23038 Use recog_data to test for an output operand.
23039
23040 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23041
23042 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
23043 exclude any others that are disparaged or that are bound to need
23044 a reload or spill.
23045 (ira_get_dup_out_num): Expand comment.
23046
23047 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23048
23049 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
23050 constraint string for each operand/alternative combo. Only handle
23051 '%' at the start of constraint strings, and look for it outside
23052 the main loop.
23053
23054 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
23055
23056 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
23057 alternative_mask instead of HARD_REG_SET to represent a
23058 bitmask of alternatives.
23059 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
23060 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
23061
23062 2019-07-01 Martin Liska <mliska@suse.cz>
23063
23064 * edit-context.c (test_applying_fixits_unreadable_file): Do not
23065 use () for a constructor call.
23066 (test_applying_fixits_line_out_of_range): Likewise.
23067 * ggc-page.c (alloc_page): Use (void *) for %p printf format
23068 argument.
23069 (free_page): Likewise.
23070
23071 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
23072
23073 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
23074 parameter names to match usage (no functional change).
23075 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
23076
23077 2019-07-01 Richard Biener <rguenther@suse.de>
23078
23079 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
23080 pass parameter.
23081 (pass_fre::execute): Honor it.
23082 * passes.def: Adjust pass_fre invocations to allow iterating,
23083 add non-iterating pass_fre before late threading/dom.
23084
23085 2019-07-01 Richard Biener <rguenther@suse.de>
23086
23087 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
23088 TARGET_MEM_REF handling to also handle address-taken ones.
23089
23090 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
23091
23092 * doc/sourcebuild.texi (Effective-Target Keywords, Other
23093 hardware attributes): Document avx512vp2intersect.
23094
23095 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23096
23097 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
23098 (abs<mode>2): New expander.
23099 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
23100 Use CODE_FOR_ssse3_absv8qi2.
23101 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
23102 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
23103
23104 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23105
23106 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
23107 to sse, sse_noavx and avx. Update all uses.
23108
23109 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
23110
23111 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
23112 (*mmx_<plusminus_insn><mode>3): Ditto.
23113 (*mmx_mulv4hi3"): Ditto.
23114 (*mmx_smulv4hi3_highpart): Ditto.
23115 (*mmx_umulv4hi3_highpart): Ditto.
23116 (*mmx_pmaddwd): Ditto.
23117 (*sse2_umulv1siv1di3): Ditto.
23118 (*mmx_<code>v4hi3): Ditto.
23119 (*mmx_<code>v8qi3): Ditto.
23120 (mmx_ashr<mode>3): Ditto.
23121 ("mmx_<shift_insn><mode>3): Ditto.
23122 (*mmx_eq<mode>3): Ditto.
23123 (mmx_gt<mode>3): Ditto.
23124 (mmx_andnot<mode>3): Ditto.
23125 (*mmx_<code><mode>3): Ditto.
23126 (*mmx_pinsrw): Ditto.
23127 (*mmx_pextrw): Ditto.
23128 (mmx_pshufw_1): Ditto.
23129 (*mmx_uavgv8qi3): Ditto.
23130 (*mmx_uavgv4hi3): Ditto.
23131 ("mmx_psadbw): Ditto.
23132 * config/i386/sse.md (sse_cvtps2pi): Ditto.
23133 (sse_cvttps2pi): Ditto.
23134 (ssse3_pmaddubsw): Ditto.
23135 (*ssse3_pmulhrswv4hi3): Ditto.
23136 (ssse3_psign<mode>3): Ditto.
23137
23138 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
23139
23140 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
23141 adjustment for bit-fields to all aggregate types.
23142
23143 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
23144
23145 * config/rs6000/predicates.md (pcrel_address): Use
23146 SYMBOL_REF_LOCAL_P to determine if a label is local.
23147 (pcrel_external_address): New predicate.
23148 (non_prefixed_mem_operand): Delete, predicate not used.
23149 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
23150 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
23151 addressing.
23152 (SYMBOL_REF_PCREL_P): Likewise.
23153
23154 PR target/91009
23155 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
23156 alternative.
23157 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
23158 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
23159 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
23160
23161 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23162
23163 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
23164 override on extra_headers.
23165
23166 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
23167
23168 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
23169 * config/darwin-driver.c (darwin_default_min_version): Remove newline
23170 from warning.
23171 (darwin_driver_init): Likewise.
23172
23173 2019-06-28 Jan Beulich <jbeulich@suse.com>
23174
23175 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23176 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
23177 Eliminate redundant alternative.
23178
23179 2019-06-28 Jan Beulich <jbeulich@suse.com>
23180
23181 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
23182 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
23183 Use vector_operand.
23184
23185 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
23186
23187 * config/arc/arc.c (arc_rtx_costs): All short instructions are
23188 having a lower cost regardless of the speed option.
23189
23190 2019-06-28 Jan Beulich <jbeulich@suse.com>
23191
23192 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
23193 vector_operand plus, on both alternatives, "Bm" constraint.
23194
23195 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
23196
23197 * config/arm/arm.md: Remove redundant constraints from
23198 define_expand but leave reload_inm and reload_outm patterns
23199 untouched since they need special constraints to work.
23200 * config/arm/arm-fixed.md: Remove redundant constraints from
23201 define_expand.
23202 * config/arm/iwmmxt.md: Likewise.
23203 * config/arm/neon.md: Likewise.
23204 * config/arm/sync.md: Likewise.
23205 * config/arm/thumb1.md: Likewise.
23206 * config/arm/vec-common.md: Likewise.
23207
23208 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
23209
23210 * doc/install.texi: Document --disable-tm-clone-registry.
23211
23212 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23213
23214 PR c++/91024
23215 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
23216 statements.
23217
23218 PR tree-optimization/91010
23219 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
23220 return true. Otherwise, don't call operand_equal_p if offset1 or
23221 offset2 is NULL and just return false.
23222
23223 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23224
23225 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
23226 user-specified float mode choice for kernel mode code.
23227
23228 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23229
23230 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
23231 spec.
23232
23233 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
23234
23235 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
23236 use longcall for 64b code.
23237
23238 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
23239
23240 * builtins.c (get_memory_rtx): Fix comment.
23241 * optabs.def (movmem_optab): Change to cpymem_optab.
23242 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
23243 (emit_block_move_hints): Change movmem to cpymem.
23244 * defaults.h: Change movmem to cpymem.
23245 * targhooks.c (get_move_ratio): Change movmem to cpymem.
23246 (default_use_by_pieces_infrastructure_p): Ditto.
23247 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
23248 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
23249 to cpymem.
23250 * config/aarch64/aarch64.h: Change movmem to cpymem.
23251 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
23252 * config/alpha/alpha.h: Change movmem to cpymem in comment.
23253 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
23254 movmem to cpymem.
23255 * config/arc/arc-protos.h: Change movmem to cpymem.
23256 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
23257 * config/arc/arc.h: Change movmem to cpymem in comment.
23258 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
23259 * config/arm/arm-protos.h: Change movmem to cpymem in names.
23260 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
23261 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
23262 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
23263 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
23264 * config/avr/avr-protos.h: Change movmem to cpymem.
23265 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
23266 avr_out_movmem): Change movmem to cpymem.
23267 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
23268 Change movmem to cpymem.
23269 * config/bfin/bfin-protos.h: Change movmem to cpymem.
23270 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
23271 Change movmem to cpymem.
23272 * config/bfin/bfin.h: Change movmem to cpymem in comment.
23273 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
23274 * config/c6x/c6x-protos.h: Change movmem to cpymem.
23275 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
23276 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
23277 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
23278 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
23279 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
23280 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
23281 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
23282 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
23283 expand_small_cpymem_or_setmem,
23284 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
23285 expand_set_or_cpymem_constant_prologue,
23286 ix86_expand_set_or_cpymem): Change movmem to cpymem.
23287 * config/i386/i386-protos.h: Change movmem to cpymem.
23288 * config/i386/i386.h: Change movmem to cpymem in comment.
23289 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
23290 (setmem<mode>): Change expansion function name.
23291 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
23292 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
23293 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
23294 * config/m32c/m32c-protos.h: Change movmem to cpymem.
23295 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
23296 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
23297 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
23298 to cpymem.
23299 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
23300 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
23301 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
23302 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
23303 Change movmem to cpymem.
23304 * config/mips/mips.h: Change movmem to cpymem.
23305 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
23306 * config/nds32/nds32-memory-manipulation.c
23307 (nds32_expand_movmemsi_loop_unknown_size,
23308 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
23309 nds32_expand_movmemsi_unroll,
23310 nds32_expand_movmemsi): Change movmem to cpymem.
23311 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
23312 * config/nds32/nds32-protos.h: Change movmem to cpymem.
23313 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
23314 (pa_adjust_insn_length): Change call to compute_movmem_length.
23315 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
23316 movmemdi, movmemdi_prereload,
23317 movmemdi_postreload): Change movmem to cpymem.
23318 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
23319 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
23320 * config/riscv/riscv.c: Change movmem to cpymem in comment.
23321 * config/riscv/riscv.h: Change movmem to cpymem.
23322 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
23323 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
23324 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
23325 movmem to cpymem.
23326 * config/s390/s390-protos.h: Change movmem to cpymem.
23327 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
23328 s390_expand_insv): Change movmem to cpymem.
23329 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
23330 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
23331 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
23332 * config/sparc/sparc.h: Change movmem to cpymem in comment.
23333 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
23334 for nonexistent function.
23335 * config/vax/vax.h: Change movmem to cpymem in comment.
23336 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
23337 * config/visium/visium.h: Change movmem to cpymem in comment.
23338 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
23339 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
23340 * doc/md.texi: Change movmem to cpymem and update description to match.
23341 * doc/rtl.texi: Change movmem to cpymem.
23342 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
23343 * doc/tm.texi: Regenerate.
23344
23345 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
23346
23347 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
23348 -fvariable-expansion-in-unroller by default.
23349 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
23350 default for Power.
23351
23352 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
23353
23354 Revert
23355 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23356 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23357
23358 * config.gcc(rs6000-*-*): Define target_gtfiles.
23359
23360 2019-06-27 Jan Hubicka <jh@suse.cz>
23361
23362 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
23363 (add_type_duplicate): When odr hash is not allocated, to nothing.
23364 (odr_based_tbaa_p): New function.
23365 (set_type_canonical_for_odr_type): New function.
23366 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
23367 set_type_canonical_for_odr_type): New.
23368 * tree.c (gimple_canonical_types_compatible_p): ODR types with
23369 ODR based TBAA are not equivalent to non-ODR types.
23370
23371 2019-06-27 Martin Liska <mliska@suse.cz>
23372
23373 PR tree-optimization/90974
23374 PR rtl-optimization/90975
23375 PR rtl-optimization/90976
23376 PR target/91016
23377 PR tree-optimization/91017
23378 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
23379 unused tmp.
23380 * lra.c (lra_set_insn_recog_data): Remove a leftover from
23381 initial commit of IRA.
23382 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
23383 of op0 and op1.
23384 * tree-vect-loop.c (vect_create_epilog_for_reduction):
23385 Remove unused mode1.
23386 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
23387 to new_stmt_info.
23388
23389 2019-06-27 Jakub Jelinek <jakub@redhat.com>
23390
23391 PR target/90991
23392 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
23393 instead of register_operand for operands[1], add m to its constraints
23394 if operands[2] uses "C" constraint. Ensure in condition that if
23395 operands[2] is not 0, then operands[1] is not a MEM. For last two
23396 alternatives, use unaligned loads instead of aligned if operands[1] is
23397 misaligned_operand.
23398
23399 2019-06-27 Martin Liska <mliska@suse.cz>
23400
23401 * asan.c (asan_emit_allocas_unpoison): Remove obviously
23402 dead assignments.
23403 * bt-load.c (move_btr_def): Likewise.
23404 * builtins.c (expand_builtin_apply_args_1): Likewise.
23405 (expand_builtin_apply): Likewise.
23406 * cfgexpand.c (expand_asm_stmt): Likewise.
23407 (construct_init_block): Likewise.
23408 * cfghooks.c (verify_flow_info): Likewise.
23409 * cfgloopmanip.c (remove_path): Likewise.
23410 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
23411 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
23412 * combine.c (simplify_if_then_else): Likewise.
23413 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
23414 (choose_basereg): Likewise.
23415 (ix86_expand_prologue): Likewise.
23416 (ix86_preferred_output_reload_class): Likewise.
23417 * cselib.c (cselib_record_sets): Likewise.
23418 * df-scan.c (df_scan_alloc): Likewise.
23419 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
23420 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
23421 * emit-rtl.c (try_split): Likewise.
23422 * graphite-scop-detection.c (assign_parameter_index_in_region):
23423 Likewise.
23424 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
23425 * ira-color.c (setup_profitable_hard_regs): Likewise.
23426 * ira.c (rtx_moveable_p): Likewise.
23427 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23428 * read-rtl.c (read_subst_mapping): Likewise.
23429 * regrename.c (scan_rtx): Likewise.
23430 * reorg.c (fill_slots_from_thread): Likewise.
23431 * tree-inline.c (tree_function_versioning): Likewise.
23432 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
23433 * tree-ssa-sink.c (statement_sink_location): Likewise.
23434 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
23435 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
23436 (vect_create_epilog_for_reduction): Likewise.
23437 * tree.c (build_nonstandard_integer_type): Likewise.
23438
23439 2019-06-27 Richard Biener <rguenther@suse.de>
23440
23441 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
23442
23443 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
23444
23445 PR tree-optimization/89772
23446 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
23447 out-of-bound accesses checking.
23448
23449 2019-06-27 Martin Liska <mliska@suse.cz>
23450
23451 PR tree-optimization/91014
23452 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
23453 when LHS is NULL_TREE.
23454
23455 2019-06-27 Martin Liska <mliska@suse.cz>
23456
23457 * symbol-summary.h (traverse): Pass
23458 argument a to the call of callback.
23459 (gt_ggc_mx): Mark arguments as unused.
23460 (gt_pch_nx): Likewise.
23461
23462 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
23463
23464 PR target/62147
23465 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
23466 finiteness.
23467
23468 2019-06-26 Jeff Law <law@redhat.com>
23469
23470 PR tree-optimization/90883
23471 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
23472 (delete_dead_or_redundant_assignment): Likewise.
23473
23474 PR tree-optimization/90883
23475 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
23476 * tree-ssa-dse.c: Update various comments to distinguish between
23477 dead and redundant stores.
23478 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
23479 (dse_optimize_redundant_stores): New function.
23480 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
23481 Distinguish between dead and redundant calls in dump output. All
23482 callers updated.
23483 (delete_dead_or_redundant_assignment): Similarly for assignments.
23484 (dse_optimize_stmt): Handle _CHK variants. For statements which
23485 store 0 into multiple memory locations, try to prove a subsequent
23486 store is redundant.
23487
23488 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
23489
23490 PR target/89021
23491 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23492 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23493
23494 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23495
23496 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23497 (branch_islands): New extern.
23498 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23499 * config/rs6000/rs6000.c: .. here.
23500
23501 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23502
23503 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23504 (powerpc*-*-*) ... to here.
23505
23506 2019-06-26 Jeff Law <law@redhat.com>
23507
23508 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23509 memcpy, memmove and memset builtins.
23510 (maybe_trim_memstar_call): Likewise.
23511
23512 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23513
23514 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23515
23516 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23517
23518 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23519
23520 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23521
23522 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23523 declaration.
23524 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23525 "static".
23526 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23527 declaration.
23528
23529 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23530
23531 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23532
23533 2019-06-26 Richard Biener <rguenther@suse.de>
23534
23535 PR ipa/90982
23536 * tree-inline.c (remap_ssa_name): Copy SSA range info.
23537
23538 2019-06-26 Richard Biener <rguenther@suse.de>
23539
23540 * lto-streamer.h (lto_bitmap_alloc): Remove.
23541 (lto_bitmap_free): Likewise.
23542 * lto-streamer.c (lto_bitmap_alloc): Remove.
23543 (lto_bitmap_free): Likewise.
23544 (lto_obstack): Likewise.
23545 (lto_obstack_initialized): Likewise.
23546 * lto-streamer-out.c (lto_output): Use own obstack for local
23547 bitmap, free it consistently.
23548
23549 2019-06-26 Jakub Jelinek <jakub@redhat.com>
23550
23551 PR target/90991
23552 * config/i386/sse.md
23553 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23554 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23555 insns if operands[2] is misaligned_operand.
23556
23557 2019-06-26 Li Jia He <helijia@linux.ibm.com>
23558
23559 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23560 TARGET_POWERPC64.
23561 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23562 to GPR.
23563
23564 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23565
23566 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23567
23568 2019-06-26 Martin Liska <mliska@suse.cz>
23569
23570 PR tree-optimization/90973
23571 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23572 epilogue_cost_vec instead of prologue_cost_vec for
23573 a epilogue cost.
23574
23575 2019-06-26 Martin Liska <mliska@suse.cz>
23576
23577 * bb-reorder.c (connect_better_edge_p): Add missing else
23578 statement in the middle of if-else statements.
23579
23580 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23581 H.J. Lu <hongjiu.lu@intel.com>
23582 Olga Makhotina <olga.makhotina@intel.com>
23583
23584 * common/config/i386/i386-common.c
23585 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23586 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23587 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23588 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23589 (ix86_handle_option): Handle -mavx512vp2intersect.
23590 * config/i386/avx512vp2intersectintrin.h: New.
23591 * config/i386/avx512vp2intersectvlintrin.h: New.
23592 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23593 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23594 AVX512VP2INTERSECT.
23595 * config/i386/i386-builtin-types.def: Add new types.
23596 * config/i386/i386-builtin.def: Add new builtins.
23597 * config/i386/i386-builtins.c: (enum processor_features): Add
23598 F_AVX512VP2INTERSECT.
23599 (static const _isa_names_table isa_names_table): Ditto.
23600 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23601 __AVX512VP2INTERSECT__.
23602 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23603 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23604 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23605 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23606 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23607 * config/i386/i386-options.c (ix86_target_string): Add
23608 -mavx512vp2intersect.
23609 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23610 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23611 P2HImode and P2QImode.
23612 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23613 number for P2QImode and P2HImode.
23614 (ix86_regmode_natural_size): New function.
23615 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23616 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23617 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23618 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23619 * config/i386/i386.opt: Add -mavx512vp2intersect.
23620 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23621 avx512vp2intersectvlintrin.h.
23622 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23623 (define_mode_iterator VI48_AVX512VP2VL): New.
23624 (avx512vp2intersect_2intersect<mode>,
23625 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23626 * config.gcc: Add avx512vp2intersectvlintrin.h and
23627 avx512vp2intersectintrin.h to extra_headers.
23628 * doc/invoke.texi: Document -mavx512vp2intersect.
23629
23630 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23631
23632 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23633
23634 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23635
23636 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23637 savres_routine_syms, savres_routine_name, morestack_ref,
23638 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23639 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23640 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23641 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23642 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23643 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23644 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23645 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23646 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23647 get_stack_clash_protection_probe_interval,
23648 get_stack_clash_protection_guard_size,
23649 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23650 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23651 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23652 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23653 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23654 gen_frame_mem_offset, rs6000_savres_routine_name,
23655 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23656 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23657 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23658 rs6000_global_entry_point_prologue_needed_p,
23659 rs6000_get_separate_components, rs6000_components_for_bb,
23660 rs6000_disqualify_components, rs6000_emit_prologue_components,
23661 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23662 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23663 rs6000_output_savres_externs, rs6000_output_function_prologue,
23664 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23665 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23666 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23667 rs6000_output_function_epilogue, gen_add3_const,
23668 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23669 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23670 to rs6000-logue.c.
23671 (machine_function): Moved to rs6000.h.
23672 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23673 rs6000-internal.h.
23674 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23675 savres_routine_syms, savres_routine_name, morestack_ref,
23676 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23677 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23678 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23679 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23680 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23681 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23682 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23683 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23684 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23685 get_stack_clash_protection_probe_interval,
23686 get_stack_clash_protection_guard_size,
23687 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23688 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23689 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23690 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23691 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23692 gen_frame_mem_offset, rs6000_savres_routine_name,
23693 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23694 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23695 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23696 rs6000_global_entry_point_prologue_needed_p,
23697 rs6000_get_separate_components, rs6000_components_for_bb,
23698 rs6000_disqualify_components, rs6000_emit_prologue_components,
23699 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23700 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23701 rs6000_output_savres_externs, rs6000_output_function_prologue,
23702 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23703 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23704 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23705 rs6000_output_function_epilogue, gen_add3_const,
23706 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23707 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23708 to here from rs6000.c.
23709 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23710 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23711 quad_address_offset_p) Moved to here from rs6000.c.
23712 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23713 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23714 collector.
23715
23716 2019-06-25 Martin Liska <mliska@suse.cz>
23717
23718 * hash-table.c (hashtab_chk_error): Move here from ...
23719 * hash-table.h (hashtab_chk_error): ... here.
23720
23721 2019-06-25 Martin Liska <mliska@suse.cz>
23722
23723 PR tree-optimization/90978
23724 * df-scan.c (df_update_entry_block_defs): Remove dead else
23725 branch.
23726 (df_update_exit_block_uses): Likewise.
23727
23728 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23729 Andrew Stubbs <ams@codesourcery.com>
23730
23731 * config.gcc (thread_file): Set to gcn for AMD GCN.
23732 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23733 (TARGET_EMUTLS_VAR_INIT): New hook.
23734
23735 2019-06-25 Martin Jambor <mjambor@suse.cz>
23736
23737 PR ipa/90939
23738 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23739
23740 2019-06-25 Richard Biener <rguenther@suse.de>
23741
23742 PR tree-optimization/90930
23743 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23744 into parallel form in the last pass instance.
23745
23746 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23747
23748 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23749 (arc_legitimize_pic_address): Simplify and cleanup the function.
23750 (SYMBOLIC_CONST): Remove.
23751 (prepare_pic_move): Likewise.
23752 (prepare_move_operands): Handle complex mov cases here.
23753 (arc_legitimize_address_0): Remove call to
23754 arc_legitimize_pic_address.
23755 (arc_legitimize_address): Remove call to
23756 arc_legitimize_tls_address.
23757 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23758 (movhi_insn): Likewise.
23759
23760 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23761
23762 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23763 PTRDIFF_TYPE.
23764 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23765 format of "__intN" types for UINTMAX_TYPE.
23766 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23767 format of "__intN" types for SIZETYPE.
23768 * tree.c (build_common_tree_nodes): Accept "__intN__"
23769 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23770 * doc/invoke.texi: Document that __intN__ disables pedantic
23771 warnings.
23772
23773 2019-06-25 Jan Hubicka <jh@suse.cz>
23774
23775 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23776 base2_alias_set is non-zero before doing TBAA based disambiguation.
23777
23778 2019-06-25 Martin Liska <mliska@suse.cz>
23779
23780 PR tree-optimization/90973
23781 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23782 of prologue and epilogue.
23783
23784 2019-06-24 Jan Hubicka <jh@suse.cz>
23785
23786 * ipa-utils.h (type_with_linkage_p): Verify that type is
23787 CXX_ODR_P.
23788 (odr_type_p): Remove extra return.
23789 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23790 hash STRING_FLAG only for arrays and integers.
23791 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23792 Update analogously.
23793 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23794 Likewise.
23795 * print-tree.c (print_node): Print cxx-odr-p
23796 and string-flag.
23797 * tree.c (need_assembler_name_p): Also check that type
23798 is CXX_ODR_TYPE_P
23799 (verify_type_variant): Update verification of SRING_FLAG;
23800 also check CXX_ODR_P.
23801 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23802 (TYPE_STRING_FLAG): Use it.
23803 (TYPE_CXX_ODR_P): New macro.
23804 * dwarf2out.c (gen_array_type_die): First check that type
23805 is an array and then test string flag.
23806
23807 2019-06-24 Richard Biener <rguenther@suse.de>
23808
23809 PR tree-optimization/90972
23810 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23811 in common code, dealing with STRING_CST properly.
23812
23813 2019-06-24 Richard Biener <rguenther@suse.de>
23814
23815 PR tree-optimization/90930
23816 PR tree-optimization/90316
23817 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23818 decrement of limit.
23819
23820 2019-06-24 Martin Sebor <msebor@redhat.com>
23821
23822 * tree-pretty-print.h: Remove unnecessary punctuation characters
23823 from a diagnostic.
23824 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23825
23826 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23827
23828 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23829 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23830 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23831
23832 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23833
23834 * config/rs6000/darwin.h: Handle GCC target pragma.
23835
23836 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23837
23838 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23839
23840 2019-06-22 Jeff Law <law@redhat.com>
23841
23842 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23843
23844 2019-06-22 Jan Hubicka <jh@suse.cz>
23845
23846 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23847 give up on bitfields; continue searching for different refs
23848 appearing later.
23849
23850 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23851
23852 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23853 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23854 containing the offset as possible simd lane access. Look through
23855 widening conversion. Move the
23856 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23857
23858 2019-06-21 Richard Biener <rguenther@suse.de>
23859
23860 PR tree-optimization/90930
23861 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23862 flag on new stmts to avoid re-processing them.
23863
23864 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23865
23866 PR c++/90875 - added -Wswitch-outside-range option
23867 * doc/invoke.texi (Wswitch-outside-range): Document.
23868
23869 2019-06-21 Jeff Law <law@redhat.com>
23870
23871 PR tree-optimization/90949
23872 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23873 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23874
23875 2019-06-21 Richard Biener <rguenther@suse.de>
23876
23877 PR debug/90914
23878 * dwarf2out.c (prune_unused_types_walk): Always consider
23879 function-local extern declarations as used.
23880
23881 2019-06-21 Richard Biener <rguenther@suse.de>
23882
23883 PR tree-optimization/90913
23884 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23885 the scalar variant of if-conversion versioning.
23886
23887 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23888
23889 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23890 create another "omp scan inscan exclusive" array if
23891 !ctx->scan_inclusive.
23892 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23893 (lower_omp_scan): Likewise.
23894 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23895 2-bit bitfield for simd_lane_access_p member.
23896 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23897 aux == (void *)-4 as simd lane access.
23898 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23899 comment with permutations to show the canonical permutation order.
23900 (vectorizable_scan_store): Handle exclusive scan.
23901 (vectorizable_store): Call vectorizable_scan_store even for
23902 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23903
23904 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23905 "omp simd array" arrays with one byte elements.
23906
23907 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23908
23909 * config/alpha/alpha.md (@unaligned_store<mode>):
23910 Rename from unaligned_store<mode>.
23911 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23912 * config/alpha/sync.md (@load_locked_<mode>): Rename
23913 from load_locked_<mode>.
23914 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23915 (@atomic_compare_and_swap<mode>_1): Rename
23916 from atomic_compare_and_swap<mode>_1.
23917 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23918 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23919 Use gen_reload_in_aligned and gen_unaligned_store.
23920 (emit_load_locked): Remove.
23921 (emit_store_conditional): Ditto.
23922 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23923 (alpha_split_compare_and_swap): Ditto.
23924 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23925 (alpha_split_compare_and_swap_12): Use gen_load_locked
23926 and gen_store_conditional.
23927 (alpha_split_atomic_exchange): Ditto.
23928 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23929 (alpha_split_atomic_exchange_12): Use gen_load_locked
23930 and gen_store_conditional.
23931
23932 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23933
23934 * config/aarch64/aarch64-errata.h: New file.
23935 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23936 (CA53_ERR_843419_SPEC): Delete.
23937 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23938 * config/aarch64/aarch64-linux.h: Likewise.
23939 * config/aarch64/aarch64-netbsd.h: Likewise.
23940 * config/aarch64/aarch64-freebsd.h: Likewise.
23941
23942 2019-06-20 Marek Polacek <polacek@redhat.com>
23943
23944 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23945
23946 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23947
23948 * config/rs6000/rs6000.md (isa attribute): Add support for
23949 for a future processor.
23950
23951 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23952
23953 PR target/54855
23954 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23955 standard scalar operation pattern for V2DF.
23956 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23957 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23958 (*ieee_<ieee_maxmin><mode>3): Likewise.
23959 (vec_setv2df_0): Likewise.
23960
23961 2019-06-20 Jan Hubicka <jh@suse.cz>
23962
23963 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23964 parameter; it has no use in gimple memory model.
23965 (indirect_ref_may_alias_decl_p): Update.
23966
23967 2019-06-20 Martin Liska <mliska@suse.cz>
23968
23969 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23970 to 10.
23971
23972 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23973
23974 * tree-vect-stmts.c (enum scan_store_kind): New type.
23975 (scan_store_can_perm_p): Change last argument from int * to
23976 vec<enum scan_store_kind> *, record precisely which permutations
23977 need whole vector left shift or that plus VEC_COND_EXPR.
23978 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23979 and additional VEC_COND_EXPR only for those iterations that need it.
23980
23981 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23982
23983 * config.gcc: Fix ARM --with-fpu checking and error message.
23984
23985 2019-06-19 Marek Polacek <polacek@redhat.com>
23986
23987 PR c++/60364 - noreturn after first decl not diagnosed.
23988 * attribs.c (get_attribute_namespace): No longer static.
23989 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23990 attributes.
23991 (attr_noreturn_exclusions): Make it extern.
23992 * attribs.h (get_attribute_namespace): Declare.
23993 * tree-inline.c (function_attribute_inlinable_p): Use
23994 get_attribute_name.
23995
23996 2019-06-19 Martin Sebor <msebor@redhat.com>
23997
23998 PR tree-optimization/90626
23999 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
24000
24001 PR tree-optimization/90626
24002 * tree-ssa-strlen.c (strxcmp_unequal): New function.
24003 (handle_builtin_string_cmp): Call it.
24004
24005 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
24006
24007 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
24008 and DARWIN_NOPIE_SPEC.
24009 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
24010 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
24011 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
24012 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
24013 (DARWIN_EXPORT_DYNAMIC): Delete.
24014 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
24015 and pie options processing to darwin.h.
24016 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
24017
24018 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
24019
24020 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
24021 in computing the number of options to be moved.
24022
24023 2019-06-19 Maya Rashish <coypu@sdf.org>
24024
24025 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
24026 (CLEAR_INSN_CACHE) Use it.
24027
24028 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
24029
24030 * config/i386/i386.md (cmpstrnsi): Remove dead code.
24031
24032 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
24033
24034 PR middle-end/84521
24035 * builtins.c (expand_builtin_setjmp_setup): Save
24036 hard_frame_pointer_rtx.
24037 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
24038 restore fp.
24039 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
24040 non-local goto.
24041 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
24042 elimination code.
24043 (remove_reg_equal_offset_note): Remove unused function.
24044 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
24045 code.
24046 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24047 (arc_builtin_setjmp_frame_value): Remove function.
24048 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24049 (avr_builtin_setjmp_frame_value): Remove function.
24050 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24051 (ix86_builtin_setjmp_frame_value): Remove function.
24052 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
24053 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24054 (sparc_builtin_setjmp_frame_value): Remove function.
24055 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
24056 (vax_builtin_setjmp_frame_value): Remove function.
24057 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
24058 pointer if has_nonlocal_label.
24059
24060 2019-06-19 Jakub Jelinek <jakub@redhat.com>
24061
24062 * doc/md.texi: Document vec_shl_<mode> pattern.
24063 * optabs.def (vec_shl_optab): New optab.
24064 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
24065 argument, if == vec_shl_optab, check for left whole vector shift
24066 pattern rather than right shift.
24067 (expand_vec_perm_const): Add vec_shl_optab support.
24068 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
24069 in the comment.
24070 * tree-vect-generic.c (lower_vec_perm): Support permutations which
24071 can be handled by vec_shl_optab.
24072 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
24073 (check_scan_store): Use it.
24074 (vectorizable_scan_store): If target can't do normal permutations,
24075 try to use whole vector left shifts and if needed a VEC_COND_EXPR
24076 after it.
24077 * config/i386/sse.md (vec_shl_<mode>): New expander.
24078
24079 * omp-low.c (lower_rec_input_clauses): Handle references properly
24080 in inscan clauses.
24081 (lower_omp_scan): Likewise.
24082
24083 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24084
24085 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
24086 mem_mode is BLKmode.
24087
24088 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
24089
24090 PR target/90922
24091 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
24092 pointer adjustment for the case of no callee-saved registers and
24093 stack frame bigger than 128 bytes.
24094
24095 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
24096
24097 PR middle-end/90862
24098 * omp-low.c (check_omp_nesting_restrictions): Handle
24099 GF_OMP_TARGET_KIND_OACC_DECLARE.
24100
24101 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
24102
24103 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
24104 (@add<mode>3_carry): Rename from add<mode>3_carry.
24105 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
24106 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
24107 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
24108 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
24109 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
24110 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
24111 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
24112 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
24113 (cmpstrnsi): Use gen_cmp_1.
24114 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
24115 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
24116 (@umonitor_<mode>): Rename from umonitor_<mode>.
24117 * config/i386/i386-expand.c (ix86_expand_copysign):
24118 Use gen_copysign3_const and gen_copysign3_var.
24119 (ix86_expand_xorsign): Use gen_xorsign3_1.
24120 (ix86_expand_branch): Use gen_sub3_carry_ccc,
24121 gen_sub3_carry_ccgz and gen_cmp1.
24122 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
24123 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
24124 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
24125 (ix86_split_lshr): Ditto.
24126 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
24127
24128 2019-06-18 Jason Merrill <jason@redhat.com>
24129
24130 * tree.c (build_constructor): Add MEM_STAT_DECL.
24131
24132 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24133
24134 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
24135 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
24136 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
24137 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
24138 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
24139 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
24140 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
24141 Use CC_NZC instead of CC.
24142 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
24143 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
24144 (aarch64_print_operand): Handle E_CC_NZCmode.
24145 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
24146 of gen_set_clobber_cc.
24147
24148 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24149
24150 * config/aarch64/aarch64-sve.md: Tabify file.
24151
24152 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24153
24154 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
24155 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
24156 * config/aarch64/aarch64-sve.md: Use it.
24157
24158 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24159
24160 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
24161 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
24162 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
24163 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
24164 (aarch64_expand_sve_vec_cmp_int): Use it.
24165 (aarch64_expand_sve_vec_cmp_float): Likewise.
24166 * config/aarch64/aarch64-sve.md: Likewise throughout.
24167
24168 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24169 Kugan Vivekanandarajah <kuganv@linaro.org>
24170
24171 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
24172 (*cond_<optab><mode>_z): Fold into...
24173 (*cond_<optab><mode>_any): ...here. Also handle cases in which
24174 operand 4 can be tied to operand 0 (either inherently or via RA).
24175
24176 2019-06-18 Richard Biener <rguenther@suse.de>
24177
24178 PR debug/90900
24179 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
24180 as if optimized away.
24181
24182 2019-06-18 Tom de Vries <tdevries@suse.de>
24183
24184 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
24185 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
24186 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
24187 Rename to ...
24188 (define_insn "@set_softstack_<mode>"): ... this.
24189 (define_insn "omp_simt_enter_<mode>"): Rename to ...
24190 (define_insn "@omp_simt_enter_<mode>"): ... this.
24191 (define_insn "omp_simt_exit_<mode>"): Rename to ...
24192 (define_insn "@omp_simt_exit_<mode>"): ... this.
24193
24194 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
24195
24196 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
24197 vf parameter. Restore the previous iv step of nscalars_step,
24198 but give it iv_type rather than compare_type. Tweak code order
24199 to match the comments.
24200 (vect_set_loop_condition_masked): Update accordingly.
24201 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
24202 for iv_precision. Tweak comment formatting.
24203
24204 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24205
24206 * config/darwin.c: Strip trailing whitespace.
24207
24208 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
24209
24210 * config/darwin.c (darwin_emit_unwind_label): New default to false.
24211 (darwin_override_options): Set darwin_emit_unwind_label as needed.
24212
24213 2019-06-18 Martin Jambor <mjambor@suse.cz>
24214
24215 PR ipa/90889
24216 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
24217 caller does not have flag_ipa_cp set.
24218
24219 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24220
24221 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
24222 from "*fold_left_plus_<mode>", updated operands order.
24223 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
24224 * internal-fn.c (mask_fold_left_direct): New define.
24225 (expand_mask_fold_left_optab_fn): Likewise.
24226 (direct_mask_fold_left_optab_supported_p): Likewise.
24227 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
24228 * optabs.def (mask_fold_left_plus_optab): New optab.
24229 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
24230 masked internal_fn for a reduction ifn.
24231 (vectorize_fold_left_reduction): Add support for masking reductions.
24232
24233 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
24234
24235 PR middle-end/80791
24236 * target.def (predict_doloop_p): New hook.
24237 * targhooks.h (default_predict_doloop_p): New declaration.
24238 * targhooks.c (default_predict_doloop_p): New function.
24239 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
24240 * doc/tm.texi: Regenerate.
24241 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
24242 (TARGET_PREDICT_DOLOOP_P): New macro.
24243 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
24244
24245 2019-06-17 Jakub Jelinek <jakub@redhat.com>
24246
24247 * omp-low.c (struct omp_context): Add scan_inclusive field.
24248 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
24249 if inclusive scan.
24250 (struct omplow_simd_context): Add lastlane member.
24251 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
24252 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
24253 1 or 2 argument.
24254 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
24255 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
24256 (lower_omp_scan): New function.
24257 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
24258 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
24259 check 3rd argument if present rather than 2nd.
24260 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
24261 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
24262 2-bit bitfield.
24263 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
24264 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
24265 than 2nd.
24266 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
24267 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
24268 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
24269 init.
24270 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
24271 IFN_GOMP_SIMD_LANE argument.
24272 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
24273 encoded ->aux value.
24274 * tree-vect-stmts.c: Include attribs.h.
24275 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
24276 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
24277 functions.
24278 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
24279 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
24280
24281 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
24282
24283 PR target/62055
24284 * config/i386/i386.md (*nabstf2_1): New insn pattern.
24285 (*nabs<mode>2_1): Ditto.
24286 (nabs sse-reg splitter): New splitter.
24287 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
24288
24289 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24290
24291 PR bootstrap/90873.
24292 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
24293 TMR index check.
24294
24295 2019-06-17 Tom de Vries <tdevries@suse.de>
24296
24297 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
24298 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
24299 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
24300 ...
24301 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
24302 match_operand 0.
24303 (define_insn "omp_simt_enter_insn"): Rename to ...
24304 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
24305 match_operand 0, 1 and 2, as well as the unspec_volatile result.
24306 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
24307 gen_omp_simt_enter_si.
24308 (define_expand "omp_simt_exit"): New.
24309 (define_insn "omp_simt_exit"): Rename to ...
24310 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
24311 match_operand 0.
24312
24313 2019-06-17 Matthew Green <mrg@eterna.com.au>
24314 Maya Rashish <coypu@sdf.org>
24315
24316 * config.gcc (aarch64*-*-netbsd*): New target.
24317 * config/aarch64/aarch64-netbsd.h: New file.
24318 * config/aarch64/t-aarch64-netbsd: Likewise.
24319
24320 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24321
24322 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
24323 the access path from base to first VIEW_CONVERT_EXPR or
24324 BIT_FIELD_REF.
24325
24326 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
24327
24328 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
24329 access path on BIT_FIELD_REFs.
24330
24331 2019-06-17 Martin Liska <mliska@suse.cz>
24332
24333 PR ipa/90874
24334 * ipa-utils.h (odr_type_p): Remove dead code.
24335
24336 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24337
24338 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
24339 alternative Solaris 11.4 format.
24340 * configure: Regenerate.
24341
24342 2019-06-17 Tom de Vries <tdevries@suse.de>
24343
24344 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
24345 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
24346 match_operand 0.
24347 (define_insn "call_value_insn"): Rename to ...
24348 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
24349 match_operand 0.
24350 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
24351 DI.
24352
24353 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
24354
24355 PR middle-end/64242
24356 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
24357 frame clobbers and schedule block.
24358 (builtin_longjmp): Likewise.
24359
24360 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24361
24362 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
24363 describe how to perform MSPABI compliant 64-bit shift.
24364 * config/msp430/msp430.md (ashldi3): New define_expand.
24365 (ashrdi3): New define_expand.
24366 (lshrdi3): New define_expand.
24367
24368 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24369
24370 * doc/sourcebuild.texi: Document new effective target keyword
24371 longlong64.
24372
24373 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24374
24375 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
24376 indirect_refs_may_alias_p): Revert accidental commits.
24377
24378 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
24379 at the end of structures.
24380
24381 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24382
24383 * config/darwin.c (machopic_indirect_call_target): Use renamed
24384 darwin_picsymbol_stubs to decide on output.
24385 (darwin_override_options): Handle darwin_picsymbol_stubs.
24386 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
24387 (LD64_VERSION): Revise default.
24388 * config/darwin.opt: (mpic-symbol-stubs): New option.
24389 (darwin_picsymbol_stubs): New variable.
24390 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
24391 rename to TARGET_MACHO_PICSYM_STUBS.
24392 * config/i386/i386.c (output_pic_addr_const): Likewise.
24393 * config/i386/i386.h Likewise.
24394 * config/rs6000/darwin.h: Likewise.
24395 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
24396 darwin_picsymbol_stubs.
24397
24398 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
24399
24400 * config/darwin.opt (prebind, noprebind, seglinkedit,
24401 noseglinkedit): Add RejectNegative.
24402
24403 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
24404
24405 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
24406 in my previous patch.
24407
24408 2019-06-16 Tom de Vries <tdevries@suse.de>
24409
24410 PR tree-optimization/89376
24411 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
24412
24413 2019-06-15 Maya Rashish <coypu@sdf.org>
24414
24415 * doc/invoke.texi (Spec Files): Update location of the
24416 Fortran spec file.
24417
24418 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
24419
24420 * doc/extend.texi (Common Function Attributes): Clarify
24421 no_sanitize. Fix grammar.
24422
24423 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
24424
24425 * tree-ssa-alias.c (alias_stats): Add
24426 nonoverlapping_component_refs_p_may_alias,
24427 nonoverlapping_component_refs_p_no_alias,
24428 nonoverlapping_component_refs_of_decl_p_may_alias,
24429 nonoverlapping_component_refs_of_decl_p_no_alias.
24430 (dump_alias_stats): Dump them.
24431 (nonoverlapping_component_refs_of_decl_p): Add stats.
24432 (nonoverlapping_component_refs_p): Add stats; do not stop on first
24433 ARRAY_REF.
24434
24435 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
24436
24437 * config/i386/i386.md (and<mode>3): Generate zero-extends for
24438 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
24439 only.
24440 (*anddi3_doubleword): Split before reload. Merge with
24441 anddi->zext pre-reload splitter.
24442 (*andndi3_doubleword): Split before reload.
24443 (*<code>di3_doubleword): Ditto.
24444 (*one_cmpldi2_doubleword): Ditto.
24445
24446 2019-06-15 Jakub Jelinek <jakub@redhat.com>
24447
24448 PR middle-end/90779
24449 * gimplify.c: Include omp-offload.h and context.h.
24450 (gimplify_bind_expr): Add "omp declare target" attributes
24451 to static block scope variables inside of target region or target
24452 functions.
24453
24454 2019-06-15 Tom de Vries <tdevries@suse.de>
24455
24456 PR tree-optimization/90009
24457 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
24458 Return NULL if bb contains IFN_UNIQUE.
24459
24460 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
24461
24462 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
24463 (un): New define_mode_attr.
24464 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
24465 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
24466 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
24467 merge into ...
24468 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
24469
24470 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
24471
24472 * config/darwin.opt: Add RejectNegative where needed, reorder
24473 and add minimal functional descriptions.
24474
24475 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24476
24477 PR rtl-optimization/90765
24478 * calls.c (update_stack_alignment_for_call): New function.
24479 (expand_call): Call update_stack_alignment_for_call when
24480 outgoing parameter is passed in the stack.
24481 (emit_library_call_value_1): Likewise.
24482 * function.c (locate_and_pad_parm): Don't update
24483 stack_alignment_needed and preferred_stack_boundary.
24484
24485 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24486
24487 PR target/90877
24488 * config/i386/i386-features.c
24489 (dimode_scalar_chain::compute_convert_gain): Replace
24490 mmxsse_to_integer with sse_to_integer.
24491 * config/i386/i386.c (ix86_register_move_cost): Verify that
24492 moves between MMX and non-MMX units require secondary memory.
24493 Correct costs of moves between SSE and integer units.
24494 * config/i386/i386.h (processor_costs): Rename cost of moving
24495 SSE register to integer to sse_to_integer. Rename cost of
24496
24497 2019-06-14 Matt Thomas <matt@3am-software.com>
24498 Matthew Green <mrg@eterna.com.au>
24499 Nick Hudson <skrll@netbsd.org>
24500 Maya Rashish <coypu@sdf.org>
24501 Richard Earnshaw <rearnsha@arm.com>
24502
24503 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24504 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24505 * config/arm/netbsd-eabi.h: New file.
24506 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24507 redefining.
24508 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24509 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24510 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24511 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24512
24513 2019-06-14 Richard Biener <rguenther@suse.de>
24514
24515 * tree-loop-distribution.c (classify_partition): Return
24516 whether a reduction appeared in all partitions and do not
24517 stop builtin detection because of this.
24518 (distribute_loop): Sort a non-builtin partition last if
24519 there's a reduction in all partitions and make sure the
24520 partition prevailing as last is not a builtin.
24521
24522 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
24523
24524 PR ipa/90401
24525 * ipa-prop.c (add_to_agg_contents_list): New function.
24526 (clobber_by_agg_contents_list_p): Likewise.
24527 (extract_mem_content): Likewise.
24528 (get_place_in_agg_contents_list): Delete.
24529 (determine_known_aggregate_parts): Renamed from
24530 determine_locally_known_aggregate_parts. New parameter
24531 aa_walk_budget_p.
24532
24533 2019-06-13 Martin Sebor <msebor@redhat.com>
24534
24535 PR tree-optimization/90662
24536 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24537 to the same type.
24538
24539 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24540
24541 PR bootstrap/90873
24542 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24543 dbase is not TARGET_MEM_REF.
24544
24545 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24546
24547 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24548 Update all uses.
24549 (and<mode>3): Use gen_extend_insn instead of indirect functions.
24550 Do not generate DImode extends for 32bit targets.
24551 (and->zext post-reload splitter): Use gen_extend_insn
24552 instead of indirect functions.
24553 (anddi->zext pre-reload splitter): New.
24554 (*zext<mode>_doubleword_and): Remove.
24555 (*zext<mode>_doubleword): Ditto.
24556 (*zextsi_doubleword): Dittto.
24557
24558 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24559
24560 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24561 Use gen_sub3_insn instead of indirect function.
24562 (ix86_expand_ashl_const): Use gen_add2_insn instead of
24563 indirect function.
24564 (ix86_adjust_counter): Ditto.
24565
24566 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24567 Lijia He <helijia@linux.ibm.com>
24568
24569 PR tree-optimization/77820
24570 * tree-ssa-threadedge.c
24571 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24572 function.
24573 (thread_across_edge): Add call to
24574 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24575
24576 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24577
24578 * config/darwin-driver.c (validate_macosx_version_min): New.
24579 (darwin_default_min_version): Cleanup and validate supplied version.
24580 (darwin_driver_init): Likewise and push cleaned version into opts.
24581
24582 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24583
24584 PR tree-optimization/90869
24585 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24586 converts in MEM_REF referencing decl rather than view converts
24587 from decl type to MEM_REF type.
24588
24589 2019-06-13 Richard Biener <rguenther@suse.de>
24590
24591 PR tree-optimization/90856
24592 * tree-sra.c (build_ref_for_model): Only use
24593 build_reconstructed_reference when address-spaces are the same.
24594
24595 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24596
24597 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24598 wrap ei variable name in the declaration in ()s.
24599 (nvptx_single): Actually use mode_label variable. Formatting fix.
24600
24601 2019-06-13 Richard Biener <rguenther@suse.de>
24602
24603 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24604 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24605 also return the condition stmt.
24606 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24607 loop we can version and version that, reusing the loop version
24608 created by if-conversion instead of versioning again.
24609
24610 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24611
24612 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24613 may_contain_p.
24614 * tree-vrp (value_range_base::may_contain_p): Call into
24615 value_inside_range.
24616 (value_inside_range): Make private inside value_range_base class.
24617 Take min/max from *this.
24618 (range_includes_p): Remove.
24619 * tree-vrp.h (value_range_base): Add value_inside_range.
24620 (range_includes_p): Remove.
24621 (range_includes_zero_p): Call may_contain_p.
24622 * vr-values.c (compare_range_with_value): Same.
24623
24624 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24625
24626 * doc/extend.texi (ARC Function Attributes): Update info.
24627
24628 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24629
24630 PR tree-optimization/89713
24631 * doc/invoke.texi (-ffinite-loops): Document new option.
24632 * common.opt (-ffinite-loops): New option.
24633 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24634 IFN_GOACC_LOOP calls as necessary.
24635 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24636 is finite.
24637 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24638 IFN_GOACC_LOOP call is not used.
24639 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24640
24641 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24642
24643 PR target/88838
24644 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24645 compare_type is not with Pmode size, we will create an IV with
24646 Pmode size with truncated use (i.e. converted to the correct type).
24647 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24648 (vect_iv_limit_for_full_masking): New. Factored out of
24649 vect_set_loop_condition_masked.
24650 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24651 (vect_iv_limit_for_full_masking): Declare.
24652
24653 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24654
24655 PR target/88834
24656 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24657 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24658 (get_alias_ptr_type_for_ptr_address): Likewise.
24659 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24660 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24661 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24662 allow_reg_index_p.
24663
24664 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24665
24666 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24667
24668 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24669
24670 * common/config/pru/pru-common.c: New file.
24671 * config.gcc: Add PRU target.
24672 * config/pru/alu-zext.md: New file.
24673 * config/pru/constraints.md: New file.
24674 * config/pru/predicates.md: New file.
24675 * config/pru/pru-opts.h: New file.
24676 * config/pru/pru-passes.c: New file.
24677 * config/pru/pru-pragma.c: New file.
24678 * config/pru/pru-protos.h: New file.
24679 * config/pru/pru.c: New file.
24680 * config/pru/pru.h: New file.
24681 * config/pru/pru.md: New file.
24682 * config/pru/pru.opt: New file.
24683 * config/pru/t-pru: New file.
24684 * doc/extend.texi: Document PRU pragmas.
24685 * doc/invoke.texi: Document PRU-specific options.
24686 * doc/md.texi: Document PRU asm constraints.
24687
24688 2019-06-12 Martin Sebor <msebor@redhat.com>
24689
24690 PR middle-end/90676
24691 * tree-pretty-print.c (dump_mem_ref): New function. Include
24692 MEM_REF type in output when different size than operand.
24693 (dump_generic_node): Move code to dump_mem_ref and call it.
24694
24695 2019-06-12 Martin Sebor <msebor@redhat.com>
24696
24697 PR tree-optimization/90662
24698 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24699 to arrays.
24700
24701 2019-06-12 Tom de Vries <tdevries@suse.de>
24702
24703 PR tree-optimization/90009
24704 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24705
24706 2019-06-12 Martin Liska <mliska@suse.cz>
24707
24708 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24709 the created map.
24710 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24711 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24712 Do not sanitize created maps.
24713
24714 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24715
24716 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24717 value_range::singleton_p.
24718 * tree-vrp.c (value_range_constant_singleton): Remove.
24719 * tree-vrp.h (value_range_constant_singleton): Remove.
24720 * vr-values.c (vr_values::singleton): Use
24721 value_range::singleton_p.
24722
24723 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24724
24725 PR target/90811
24726 * cfgexpand.c (align_local_variable): Add really_expand argument,
24727 don't SET_DECL_ALIGN if it is false.
24728 (add_stack_var): Add really_expand argument, pass it through to
24729 align_local_variable.
24730 (expand_one_stack_var_1): Pass true as really_expand to
24731 align_local_variable.
24732 (expand_one_ssa_partition): Pass true as really_expand to
24733 add_stack_var.
24734 (expand_one_var): Pass really_expand through to add_stack_var.
24735
24736 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24737
24738 * config/arm/iterators.md (VABAL): New int iterator.
24739 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24740 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24741 UNSPEC_VABAL_U values.
24742
24743 2019-06-12 Martin Liska <mliska@suse.cz>
24744
24745 * value-prof.c (stream_out_histogram_value): Only first value
24746 can't be negative.
24747
24748 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24749
24750 PR c/90760
24751 * symtab.c (symtab_node::set_section): Allow being called on aliases
24752 as long as they aren't analyzed yet.
24753
24754 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24755
24756 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24757 to `mips_set_text_contents_type' to indicate whether a
24758 non-debug insn follows.
24759
24760 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24761
24762 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24763 enabling -mpcrel by default.
24764 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24765 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24766 that the test against -mcpu=future is done first. Then test if
24767 -mprefixed-addr is on for -mpcrel.
24768 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24769
24770 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24771
24772 PR target/90811
24773 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24774 instead of and.u%d.
24775
24776 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24777
24778 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24779
24780 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24781
24782 PR c++/90449 - add -Winaccessible-base option.
24783 * doc/invoke.texi (Winaccessible-base): Document.
24784
24785 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24786
24787 PR tree-optimization/62041
24788 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24789
24790 2019-06-11 Jason Merrill <jason@redhat.com>
24791
24792 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24793 * tree.c (get_tree_code_name): Likewise.
24794 * print-tree.c (print_node): Only briefly print a node with an
24795 invalid code.
24796
24797 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24798
24799 PR bootstrap/90819
24800 * trans-mem.c (tm_memopt_compute_available): Add assertion
24801 that blocks is not empty. Formatting fix.
24802
24803 2019-06-11 Martin Liska <mliska@suse.cz>
24804
24805 PR c++/87847
24806 * hash-table.h: Extend create_gcc, add one parameter
24807 that is passed into hash_table::hash_table.
24808
24809 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24810
24811 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24812 New prototype.
24813 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24814 Emit clobber also for non-sse operations.
24815 (ix86_split_fp_absneg_operator): New function.
24816 * config/i386/i386.md (SSEMODEF): New mode iterator.
24817 (ssevecmodef): New mode attribute.
24818 (<code>tf2): Use absneg code iterator.
24819 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24820 Add three-operand AVX alternatives.
24821 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24822 Use absneg code iterator and X87MODEF mode iterator.
24823 (absneg fp_reg non-sse splitter): Call absneg code iterator
24824 and X87MODEF mode iterator.
24825 (absneg general_reg non-sse splitter): Use absneg code iterator
24826 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24827 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24828 code iterator. Add three-operand AVX alternative.
24829 (absneg sse_reg splitter): Use absneg code iterator
24830 and SSEMODEF mode iterator. Handle AVX operands.
24831 (absneg fp_reg splitter): Use absneg code iterator
24832 and MODEF mode iterator.
24833 (absneg general_reg splitter): Merge splitters using MODEF mode
24834 iterator. Use absneg code iterator. Call
24835 ix86_split_fp_absneg_operator.
24836 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24837 Do not enable for non-sse modes before reload.
24838 (CSGNMODE): Remove.
24839 (CSGNVMODE): Ditto.
24840 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24841 ssevecmodef mode attribute instaed of CSGNVMODE.
24842 (copysign<mode>3_const): Ditto.
24843 (copysign<mode>3_var): Ditto.
24844 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24845 Use absneg code iterator. Simplify code using std::swap.
24846 * config/i386/predicates.md (absneg_operator): Remove.
24847
24848 2019-06-10 Martin Sebor <msebor@redhat.com>
24849
24850 * gimple-fold.c (get_range_strlen): Update comment that didn't
24851 make it into r267503 or related commits.
24852
24853 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24854
24855 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24856 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24857
24858 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24859
24860 * tree.def (OMP_SCAN): New tree code.
24861 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24862 OMP_CLAUSE_EXCLUSIVE.
24863 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24864 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24865 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24866 OMP_CLAUSE_{IN,EX}CLUSIVE.
24867 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24868 * tree-nested.c (convert_nonlocal_reference_stmt,
24869 convert_local_reference_stmt, convert_gimple_call): Handle
24870 GIMPLE_OMP_SCAN.
24871 * tree-pretty-print.c (dump_omp_clause): Handle
24872 OMP_CLAUSE_{IN,EX}CLUSIVE.
24873 (dump_generic_node): Handle OMP_SCAN.
24874 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24875 * gimple.h (gomp_scan): New type.
24876 (is_a_helper <gomp_scan *>::test,
24877 is_a_helper <const gomp_scan *>::test): New templates.
24878 (gimple_build_omp_scan): Declare.
24879 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24880 gimple_omp_scan_set_clauses): New inline functions.
24881 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24882 * gimple.c (gimple_build_omp_scan): New function.
24883 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24884 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24885 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24886 GIMPLE_OMP_TASKGROUP.
24887 (dump_gimple_omp_scan): New function.
24888 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24889 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24890 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24891 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24892 (is_gimple_stmt): Handle OMP_SCAN.
24893 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24894 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24895 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24896 mentioned in nested #pragma omp scan. Handle
24897 OMP_CLAUSE_{IN,EX}CLUSIVE.
24898 (gimplify_expr): Handle OMP_SCAN.
24899 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24900 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24901 simd constructs.
24902 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24903 GIMPLE_OMP_SCAN.
24904
24905 2019-06-10 Martin Liska <mliska@suse.cz>
24906
24907 * ipa-cp.c (ignore_edge_p): New function.
24908 (build_toporder_info): Use it.
24909 * ipa-inline.c (ignore_edge_p): New function.
24910 (inline_small_functions): Use it.
24911 * ipa-pure-const.c (ignore_edge_for_nothrow):
24912 Verify opt_for_fn for caller and callee.
24913 (ignore_edge_for_pure_const): Likewise.
24914 * ipa-reference.c (ignore_edge_p): Extend to check
24915 for opt_for_fn.
24916 * ipa-utils.c (searchc): Refactor.
24917 * ipa-utils.h: Fix coding style.
24918
24919 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24920
24921 * config/arc/arc.c (arc_rtx_costs): Update costs.
24922
24923 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24924
24925 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24926 (arc_split_ior): Likewise.
24927 (arc_check_mov_const): Likewise.
24928 (arc_split_mov_const): Likewise.
24929 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24930 (arc_rtx_costs): Replace check Crr with Cax constraint.
24931 (prepare_move_operands): Cleanup, remove unused code.
24932 (arc_split_ior): New function.
24933 (arc_check_ior_const): Likewise.
24934 (arc_split_mov_const): Likewise.
24935 (arc_check_mov_const): Likewise.
24936 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24937 in define_insn_and_split pattern.
24938 (iorsi3): Likewise.
24939 (mulsi3_v2): Add new matching variant.
24940 (andsi3_i): Cleanup pattern.
24941 (rotrsi3_cnt1): Update pattern.
24942 (rotrsi3_cnt8): New pattern.
24943 (ashlsi2_cnt8): Likewise.
24944 (ashlsi2_cnt16): Likewise.
24945 * config/arc/constraints.md (C0p): Update constraint.
24946 (Crr): Remove it.
24947 (C0x): New pattern.
24948 (Cax): New pattern.
24949
24950 2019-06-10 Martin Liska <mliska@suse.cz>
24951
24952 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24953 Update coding style.
24954 (sem_item_optimizer::dump_cong_classes):
24955 Print how many items are in a non-singular class. Improve
24956 coding style.
24957
24958 2019-06-10 Martin Liska <mliska@suse.cz>
24959
24960 * value-prof.c (dump_histogram_value): Change dump format.
24961 (gimple_mod_subtract_transform): Remove legacy comment.
24962
24963 2019-06-10 Martin Liska <mliska@suse.cz>
24964
24965 * value-prof.c (dump_histogram_value): Print histogram values
24966 only if present.
24967
24968 2019-06-10 Martin Liska <mliska@suse.cz>
24969
24970 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24971 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24972 * ipa-profile.c (ipa_profile_generate_summary):
24973 Use get_most_common_single_value.
24974 * tree-profile.c (gimple_init_gcov_profiler):
24975 Instrument with __gcov_one_value_profiler_v2
24976 and __gcov_indirect_call_profiler_v4.
24977 * value-prof.c (dump_histogram_value):
24978 Print all values for HIST_TYPE_SINGLE_VALUE.
24979 (stream_out_histogram_value): Update assert for
24980 N values.
24981 (stream_in_histogram_value): Set number of
24982 counters for HIST_TYPE_SINGLE_VALUE.
24983 (get_most_common_single_value): New.
24984 (gimple_divmod_fixed_value_transform):
24985 Use get_most_common_single_value.
24986 (gimple_ic_transform): Likewise.
24987 (gimple_stringops_transform): Likewise.
24988 (gimple_find_values_to_profile): Set number
24989 of counters for HIST_TYPE_SINGLE_VALUE.
24990 * value-prof.h (get_most_common_single_value): New.
24991
24992 2019-06-10 Martin Liska <mliska@suse.cz>
24993
24994 * hash-map.h: Pass default value to hash_table ctor.
24995 * hash-table.h: Add default value to call of a ctor.
24996
24997 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24998
24999 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
25000 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
25001
25002 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
25003
25004 PR target/90751
25005 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
25006 Call pa_output_function_label.
25007 (TARGET_ASM_FUNCTION_PROLOGUE): define.
25008 * config/pa/pa-protos.h (pa_output_function_label): Declare.
25009 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
25010 to declaration.
25011 (pa_linux_output_function_prologue): Declare.
25012 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
25013 (pa_output_function_label): New.
25014 (pa_output_function_prologue): Revise to use pa_output_function_label.
25015 (pa_linux_output_function_prologue): New.
25016 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
25017
25018 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
25019
25020 * tree-vrp.h (value_range_base::intersect): New.
25021 (value_range::intersect_helper): Move from here...
25022 (value_range_base::intersect_helper): ...to here.
25023 * tree-vrp.c (value_range::intersect_helper): Rename to...
25024 (value_range_base::intersect_helper): ...this, and rewrite to
25025 return a value instead of modifying THIS in place.
25026 Also, move equivalence handling...
25027 (value_range::intersect): ...here, while calling intersect_helper.
25028 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
25029 calling intersect.
25030 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
25031 Same.
25032 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
25033
25034 2019-06-07 Jakub Jelinek <jakub@redhat.com>
25035
25036 * Makefile.in (genprogerr): Add condmd.
25037 (genprog): Remove it here.
25038
25039 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
25040
25041 * doc/invoke.texi (AMD GCN Options): Add gfx906.
25042
25043 2019-06-07 Richard Biener <rguenther@suse.de>
25044
25045 PR debug/90574
25046 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
25047 that appear after user labels.
25048
25049 2019-06-07 Martin Liska <mliska@suse.cz>
25050
25051 * cselib.c (cselib_init): Disable hash table
25052 sanitization.
25053 * hash-set.h: Pass new default argument to m_table.
25054 * hash-table.c: Add global variable with hash table
25055 sanitization limit.
25056 * hash-table.h (Allocator>::hash_table): Add new argument
25057 to ctor.
25058 (hashtab_chk_error): New.
25059 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
25060 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
25061 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
25062
25063 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
25064
25065 * common.opt (flto-odr-type-merging): Ignore.
25066 * invoke.texi (-flto-odr-type-merging): Remove.
25067 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
25068 (can_be_vtable_hashed_p): Remove.
25069 (hash_odr_vtable): Remove.
25070 (odr_vtable_hasher::hash): Remove.
25071 (types_same_for_odr): Remove.
25072 (types_odr_comparable): Remove.
25073 (odr_vtable_hasher::equal): Remove.
25074 (odr_vtable_hash_type, odr_vtable_hash): Remove.
25075 (add_type_duplicate): Do not synchronize vtable and name hashtables.
25076 (get_odr_type): Do not use vtable hash.
25077 (dump_odr_type): Remove commented out code.
25078 (build_type_inheritance_graph): Do not allocate vtable hash.
25079 (rebuild_type_inheritance_graph): Do not delete vtable hash.
25080 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
25081 (odr_type_p): Likewise.
25082 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
25083 test.
25084
25085 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
25086
25087 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
25088 immediately after same_types_for_tbaa_p returns -1 and continue
25089 looking for possible exact match; if matching types are arrays
25090 watch for partial overlaps.
25091 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
25092 (indirect_refs_may_alias_p): Do type based disambiguation first;
25093 update comment.
25094
25095 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
25096
25097 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
25098
25099 2019-06-07 Martin Liska <mliska@suse.cz>
25100
25101 * doc/invoke.texi: Remove param.
25102 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
25103 Remove.
25104 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
25105 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
25106 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
25107 * profile.c (instrument_values): Remove
25108 HIST_TYPE_INDIR_CALL_TOPN.
25109 * tree-profile.c (init_ic_make_global_vars):
25110 Always build __gcov_indirect_call only.
25111 (gimple_init_gcov_profiler): Remove usage
25112 of PARAM_INDIR_CALL_TOPN_PROFILE.
25113 (gimple_gen_ic_profiler): Likewise.
25114 * value-prof.c (dump_histogram_value): Likewise.
25115 (stream_in_histogram_value): Likewise.
25116 (gimple_indirect_call_to_profile): Likewise.
25117 (gimple_find_values_to_profile): Likewise.
25118 * value-prof.h (enum hist_type): Likewise.
25119
25120 2019-06-07 Martin Liska <mliska@suse.cz>
25121
25122 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
25123 function.
25124
25125 2019-06-07 Martin Liska <mliska@suse.cz>
25126
25127 PR tree-optimization/78902
25128 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
25129 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
25130 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25131 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
25132 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
25133 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25134 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
25135 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
25136 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25137 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
25138 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
25139 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
25140 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
25141 New.
25142 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
25143 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
25144 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
25145 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25146 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
25147 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
25148 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25149 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
25150 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
25151 warn_unused_result attribute.
25152 (BUILT_IN_STRDUP): Likewise.
25153 (BUILT_IN_STRNDUP): Likewise.
25154 (BUILT_IN_ALLOCA): Likewise.
25155 (BUILT_IN_CALLOC): Likewise.
25156 (BUILT_IN_MALLOC): Likewise.
25157 (BUILT_IN_REALLOC): Likewise.
25158
25159 2019-06-06 Jim Wilson <jimw@sifive.com>
25160
25161 PR target/89955
25162 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
25163 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
25164 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
25165
25166 2019-06-06 Martin Sebor <msebor@redhat.com>
25167
25168 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
25169 (handle_builtin_malloc): Remove trailing spaces.
25170 (handle_builtin_memset): Same.
25171 (handle_builtin_memcmp): Same.
25172 (compute_string_length): Same.
25173 (determine_min_objsize): Same.
25174 (handle_builtin_string_cmp): Same.
25175 (handle_char_store): Same. Break up excessively long line.
25176
25177 2019-06-06 Martin Jambor <mjambor@suse.cz>
25178
25179 * tree-sra.c (build_reconstructed_reference): Drop the alignment
25180 check.
25181
25182 2019-06-06 Martin Jambor <mjambor@suse.cz>
25183
25184 * tree-sra.c (struct access): New field grp_same_access_path.
25185 (dump_access): Dump it.
25186 (build_reconstructed_reference): New function.
25187 (build_ref_for_model): Use it if possible.
25188 (path_comparable_for_same_access): New function.
25189 (same_access_path_p): Likewise.
25190 (sort_and_splice_var_accesses): Set the new flag.
25191 (analyze_access_subtree): Likewise.
25192 (propagate_subaccesses_across_link): Propagate zero value of the new
25193 flag down the access tree.
25194
25195 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
25196
25197 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
25198 * config/gcn/gcn.opt (gpu_type): Add gfx906.
25199 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
25200 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
25201 Add gfx906.
25202
25203 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25204
25205 PR tree-optimization/90332
25206 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
25207 Handle VALS containing two vectors.
25208 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
25209 to...
25210 (@aarch64_combinez<mode>): ... This.
25211 (*aarch64_combinez_be<mode>): Rename to...
25212 (@aarch64_combinez_be<mode>): ... This.
25213 (vec_init<mode><Vhalf>): New define_expand.
25214 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
25215
25216 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25217
25218 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
25219 library functions only when not optimizing for size.
25220 (ashlsi3): Likewise.
25221 (ashrhi3): Likewise.
25222 (ashrsi3): Likewise.
25223 (lshrhi3): Likewise.
25224 (lshrsi3): Likewise.
25225
25226 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
25227
25228 PR rtl-optimization/88751
25229 * ira.c (ira): Use the number of the actually referenced registers
25230 when calculating the threshold.
25231
25232 2019-06-06 Jakub Jelinek <jakub@redhat.com>
25233
25234 * configure: Regenerate.
25235
25236 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
25237
25238 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
25239 register if it is in memory, so the shift can be emulated with a rotate
25240 instruction.
25241 (ashrhi3): Likewise.
25242 (lshrhi3): Likewise.
25243
25244 2019-06-06 Martin Liska <mliska@suse.cz>
25245
25246 PR tree-optimization/87954
25247 * match.pd: Simplify mult where both arguments are 0 or 1.
25248
25249 2019-06-06 Richard Biener <rguenther@suse.de>
25250
25251 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
25252 put equivalences on UNDEFINED ranges.
25253 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
25254 Make sure to drop defs of stmts added during simplification
25255 to VARYING.
25256
25257 2019-06-06 Richard Biener <rguenther@suse.de>
25258
25259 * tree-ssa-structalias.c: Include tree-cfg.h.
25260 (make_heapvar): Do not make heap vars artificial.
25261 (find_func_aliases_for_builtin_call): Handle stack allocation
25262 functions.
25263 (find_func_aliases): Delay processing of simple enough returns
25264 in non-IPA mode.
25265 (set_uids_in_ptset): Adjust.
25266 (find_what_var_points_to): Likewise.
25267 (solve_constraints): Do not dump points-to sets here.
25268 (compute_points_to_sets): Post-process return statements,
25269 amending the escaped solution. Dump points-to sets afterwards.
25270 (ipa_pta_execute): Dump points-to sets.
25271
25272 2019-06-06 Martin Liska <mliska@suse.cz>
25273
25274 PR web/87933
25275 * doc/install.texi: Fix HTML headers and
25276 titles for 'Installing GCC' pages.
25277
25278 2019-06-06 Martin Liska <mliska@suse.cz>
25279
25280 * ipa-icf-gimple.h (dump_message_1): Remove.
25281 (dump_message): Likewise.
25282 (return_false_with_message_1): Print also file.
25283 (return_false_with_msg): Likewise.
25284 (return_with_result): Likewise.
25285 (return_with_debug): Likewise.
25286 * ipa-icf.c (sem_function::equals_private): Remove call
25287 to dump_message.
25288
25289 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25290
25291 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
25292 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
25293 memory operand for it.
25294 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
25295
25296 2019-06-05 Martin Sebor <msebor@redhat.com>
25297
25298 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
25299 Adjust quoting and hyphenation.
25300 * convert.c (convert_to_real_1): Same.
25301 * gcc.c (driver_wrong_lang_callback): Same.
25302 (driver::handle_unrecognized_options): Same.
25303 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
25304 * opts-common.c (cmdline_handle_error): Same.
25305 (read_cmdline_option): Same.
25306 * opts-global.c (complain_wrong_lang): Same.
25307 (print_ignored_options): Same.
25308 (handle_common_deferred_options): Same.
25309 * pretty-print.h: Same.
25310 * print-rtl.c (debug_bb_n_slim): Same.
25311 * sched-rgn.c (make_pass_sched_fusion): Same.
25312 * tree-cfg.c (verify_gimple_assign_unary): Same.
25313 (verify_gimple_label): Same.
25314 * tree-ssa-operands.c (verify_ssa_operands): Same.
25315 * varasm.c (do_assemble_alias): Same.
25316 (assemble_alias): Same.
25317
25318 2019-06-05 Richard Henderson <rth@twiddle.net>
25319
25320 * config/alpha/alpha.c (direct_return): Move down after
25321 struct machine_function definition; use saved frame_size;
25322 return bool.
25323 (struct machine_function): Add sa_mask, sa_size, frame_size.
25324 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
25325 (alpha_compute_frame_layout): ... new function.
25326 (TARGET_COMPUTE_FRAME_LAYOUT): New.
25327 (alpha_initial_elimination_offset): Use saved sa_size.
25328 (alpha_vms_initial_elimination_offset): Likewise.
25329 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
25330 (alpha_expand_prologue): Use saved frame data. Merge integer
25331 and fp register save loops.
25332 (alpha_expand_epilogue): Likewise.
25333 (alpha_start_function): Use saved frame data.
25334 * config/alpha/alpha-protos.h (direct_return): Update.
25335 (alpha_sa_size): Remove.
25336
25337 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
25338
25339 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
25340 multiplication by a power-of-two value.
25341 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
25342 and turn the modulo operation into a masking operation.
25343
25344 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25345
25346 PR debug/90733
25347 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
25348 with VOIDmode inner operands.
25349
25350 2019-06-05 Richard Biener <rguenther@suse.de>
25351
25352 PR middle-end/90726
25353 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
25354 turn an expression graph into a tree.
25355
25356 2019-06-05 Jakub Jelinek <jakub@redhat.com>
25357
25358 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
25359 member.
25360 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
25361 treat it like explicit monotonic schedule modifier.
25362 (expand_omp_for): Initialize has_lastprivate_conditional.
25363 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
25364 schedule modifier.
25365
25366 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
25367 references, lookup in in hash map MEM_REF operand instead of the
25368 MEM_REF itself.
25369 (lower_omp_1): When looking for lastprivate conditional assignments,
25370 handle MEM_REFs with REFERENCE_TYPE operands.
25371
25372 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
25373 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
25374 and references a VLA. Handle references to non-VLAs if is_simd
25375 all privatization clauses like reductions.
25376 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
25377 If omp_is_reference, use always omp simd arrays and set
25378 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
25379 fails, emit reference initialization.
25380
25381 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
25382
25383 PR target/89803
25384 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
25385 _mm_mask_fpclass_sd_mask): New intrinsics.
25386 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
25387 * config/i386/i386-builtin.def
25388 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
25389 New builtins.
25390 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
25391 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
25392 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
25393 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
25394 case QI_FTYPE_V2SF_INT): Ditto.
25395 * config/i386/sse.md
25396 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
25397 Extended to insnstructions with mask operands.
25398
25399 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25400
25401 * config/rs6000/constraints.md (define_register_constraint "wp"):
25402 Delete.
25403 (define_register_constraint "wq"): Delete.
25404 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25405 (rs6000_init_hard_regno_mode_ok): Adjust.
25406 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25407 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
25408 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
25409 (define_mode_attr VSa): Delete.
25410 (define_mode_attr VSisa): New.
25411 (rest of file): Adjust.
25412 * doc/md.texi (Machine Constraints): Adjust.
25413
25414 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25415
25416 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
25417 (define_attr "enabled"): Handle those new isa values.
25418
25419 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25420
25421 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
25422 (define_mode_attr VSr5): Delete.
25423 (define_mode_attr VStype_sqrt): Delete.
25424 (define_mode_iterator VSX_SPDP): Delete.
25425 (define_mode_attr VS_spdp_res): Delete.
25426 (define_mode_attr VS_spdp_insn): Delete.
25427 (define_mode_attr VS_spdp_type): Delete.
25428 (*vsx_sqrt<mode>2): Adjust.
25429 (vsx_<VS_spdp_insn>): Delete, split to...
25430 (vsx_xscvdpsp): ... this. New. And...
25431 (vsx_xvcvspdp): ... this. New. And...
25432 (vsx_xvcvdpsp): ... this. New.
25433
25434 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25435
25436 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
25437 and V2DF.
25438 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
25439 (rest of file): Adjust.
25440
25441 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25442
25443 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
25444 (vsx_extract_<mode>_var): Ditto.
25445
25446 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25447
25448 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
25449 with just "wa".
25450
25451 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25452
25453 * config/rs6000/constraints.md (define_register_constraint "ww"):
25454 Delete.
25455 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25456 (rs6000_init_hard_regno_mode_ok): Adjust.
25457 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25458 RS6000_CONSTRAINT_ww.
25459 * config/rs6000/rs6000.md: Adjust.
25460 * config/rs6000/vsx.md: Adjust.
25461 * doc/md.texi (Machine Constraints): Adjust.
25462
25463 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25464
25465 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
25466 (define_mode_attr sd): New.
25467 (define_mode_attr s): New.
25468 (define_mode_attr Ftrad): Delete.
25469 (define_mode_attr Fvsx): Delete.
25470 (define_mode_attr Fs): Delete.
25471 (rest of file): Use the new mode attributes.
25472 * config.rs6000/vsx.md: Use the new mode attributes.
25473
25474 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25475
25476 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
25477 with just "wa".
25478
25479 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25480
25481 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
25482 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
25483 used with VSX_B, VSX_D, or VSX_F, with just "wa".
25484
25485 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
25486
25487 PR target/78263
25488 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25489 C++ with strict ANSI requirements.
25490
25491 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
25492
25493 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25494 computations when step is 1.
25495
25496 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25497
25498 * config/rs6000/constraints.md (define_register_constraint "wf"):
25499 Delete.
25500 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25501 (rs6000_init_hard_regno_mode_ok): Adjust.
25502 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25503 RS6000_CONSTRAINT_wf.
25504 * config/rs6000/rs6000.md: Adjust.
25505 * config/rs6000/vsx.md: Adjust.
25506 * doc/md.texi (Machine Constraints): Adjust.
25507
25508 2019-06-04 Andrew Pinski <apinski@marvell.com>
25509
25510 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25511 Fix ILP32 value.
25512
25513 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25514
25515 * config/rs6000/constraints.md (define_register_constraint "wd"):
25516 Delete.
25517 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25518 (rs6000_init_hard_regno_mode_ok): Adjust.
25519 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25520 RS6000_CONSTRAINT_wd.
25521 * config/rs6000/rs6000.md: Adjust.
25522 * config/rs6000/vsx.md: Adjust.
25523 * doc/md.texi (Machine Constraints): Adjust.
25524
25525 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25526
25527 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25528 (rest of file): Adjust.
25529
25530 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25531
25532 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25533 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25534 (vsx_splat_<mode>_reg): Adjust.
25535
25536 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25537
25538 * config/rs6000/constraints.md (define_register_constraint "ws"):
25539 Delete.
25540 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25541 (rs6000_init_hard_regno_mode_ok): Adjust.
25542 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25543 RS6000_CONSTRAINT_ws.
25544 * config/rs6000/rs6000.md: Adjust.
25545 * config/rs6000/vsx.md: Adjust.
25546 * doc/md.texi (Machine Constraints): Adjust.
25547
25548 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25549
25550 * config/rs6000/constraints.md (define_register_constraint "wv"):
25551 Delete.
25552 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25553 (rs6000_init_hard_regno_mode_ok): Adjust.
25554 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25555 RS6000_CONSTRAINT_wv.
25556 * config/rs6000/rs6000.md: Adjust.
25557 * config/rs6000/vsx.md: Adjust.
25558 * doc/md.texi (Machine Constraints): Adjust.
25559
25560 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25561
25562 * config/rs6000/constraints.md (define_register_constraint "wi"):
25563 Delete.
25564 (define_register_constraint "wt"): Delete.
25565 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25566 (rs6000_init_hard_regno_mode_ok): Adjust.
25567 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25568 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25569 * config/rs6000/rs6000.md: Adjust.
25570 * config/rs6000/vsx.md: Adjust.
25571 * doc/md.texi (Machine Constraints): Adjust.
25572
25573 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25574
25575 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25576 const.
25577 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25578 default_elf_asm_output_external.
25579
25580 2019-06-04 Martin Liska <mliska@suse.cz>
25581
25582 * ipa-icf.c (INCLUDE_LIST): Remove.
25583 (sem_item_optimizer::execute): Remove call to init_wpa.
25584 * ipa-icf.h (init_wpa): Remove.
25585
25586 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25587
25588 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25589 conditional on combined for simd.
25590 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25591 member.
25592 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25593 constructs, don't remove lastprivate_conditional_map, but instead set
25594 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25595 to parent construct temporaries.
25596 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25597 like !ctx->lastprivate_conditional_map.
25598 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25599 use up->outer context instead of up.
25600 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25601 gimple_omp_for_combined_p.
25602 (expand_omp_for_static_nochunk): Likewise.
25603 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25604 probably moved over into expand_omp_for_generic rather than being copied
25605 there.
25606
25607 2019-06-04 Martin Liska <mliska@suse.cz>
25608
25609 * value-prof.c (dump_histogram_value): Fix typo.
25610 (gimple_mod_subtract_transform): Likewise.
25611
25612 2019-06-04 Richard Biener <rguenther@suse.de>
25613
25614 PR middle-end/90726
25615 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25616 (tree_contains_chrecs): Likewise.
25617 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25618 exponential behaivor from ...
25619 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25620 ... here.
25621 (expression_expensive_p): Avoid exponential behavior and compute
25622 expanded size, rejecting any expansion.
25623 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25624 (idx_contains_abnormal_ssa_name_p): Likewise.
25625 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25626 (contains_abnormal_ssa_name_p): Simplify and use
25627 walk_tree_without_duplicates.
25628
25629 2019-06-04 Richard Biener <rguenther@suse.de>
25630
25631 PR tree-optimization/90738
25632 Revert
25633 2019-06-03 Richard Biener <rguenther@suse.de>
25634
25635 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25636 full reference tree and record in ref->ref.
25637 (vn_reference_lookup_3): Pass in original ref to
25638 ao_ref_init_from_vn_reference.
25639 (vn_reference_lookup): Likewise.
25640 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25641 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25642 Handle non-decl bases in the original reference.
25643
25644 2019-06-04 Martin Liska <mliska@suse.cz>
25645
25646 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25647 number of references.
25648 (sem_item_optimizer::do_congruence_step):
25649 (sem_item_optimizer::worklist_push): Dump how references
25650 a class has.
25651 (sem_item_optimizer::worklist_pop): Use heap.
25652 (sem_item_optimizer::process_cong_reduction): Likewise.
25653 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25654
25655 2019-06-04 Martin Liska <mliska@suse.cz>
25656
25657 * ipa-icf.h (struct sem_usage_pair_hash): New.
25658 (sem_usage_pair_hash::hash): Likewise.
25659 (sem_usage_pair_hash::equal): Likewise.
25660 (struct sem_usage_hash): Likewise.
25661 * ipa-icf.c (sem_item::sem_item): Initialize
25662 referenced_by_count.
25663 (sem_item::add_reference): Register a reference
25664 in ref_map and not in target->usages.
25665 (sem_item::setup): Remove initialization of
25666 dead vectors.
25667 (sem_item::~sem_item): Remove usage of dead vectors.
25668 (sem_item::dump): Remove dump of references.
25669 (sem_item_optimizer::sem_item_optimizer): Initialize
25670 m_references.
25671 (sem_item_optimizer::read_section): Remove useless
25672 dump.
25673 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25674 (sem_item_optimizer::build_graph): Pass m_references
25675 to ::add_reference.
25676 (sem_item_optimizer::verify_classes): Remove usage of dead
25677 vectors.
25678 (sem_item_optimizer::traverse_congruence_split): Return true
25679 when a class is split.
25680 (sem_item_optimizer::do_congruence_step_for_index): Use
25681 hash_map for look up of (sem_item *, index). That brings
25682 significant speed up.
25683 (sem_item_optimizer::do_congruence_step): Return true
25684 when a split is done.
25685 (congruence_class::is_class_used): Use referenced_by_count.
25686
25687 2019-06-04 Alan Modra <amodra@gmail.com>
25688
25689 PR target/90689
25690 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25691 error.
25692
25693 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25694
25695 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25696 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25697 (rs6000_secondary_reload_simple_move): Adjust.
25698 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25699 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25700 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25701 comment.
25702 (power6x): Adjust.
25703 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25704 (floatunssi<mode>2_lfiwzx): Adjust.
25705 (fix_trunc<mode>si2_stfiwx): Adjust.
25706 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25707 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25708 (mfpgpr): Mark as deprecated.
25709 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25710 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25711 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25712
25713 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25714
25715 * config/rs6000/constraints.md (define_register_constraint "wg"):
25716 Delete.
25717 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25718 RS6000_CONSTRAINT_wg.
25719 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25720 (rs6000_init_hard_regno_mode_ok): Adjust.
25721 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25722 Delete "wg" alternatives.
25723 * doc/md.texi (Machine Constraints): Adjust.
25724
25725 2019-06-03 Alan Modra <amodra@gmail.com>
25726
25727 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25728 (get_uncond_jump_length): Assert length less than INT_MAX and
25729 non-negative.
25730
25731 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25732
25733 PR middle-end/64242
25734 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25735 block.
25736 (expand_builtin_nonlocal_goto): Likewise.
25737
25738 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25739
25740 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25741 (aarch64_asm_output_external): Declare.
25742 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25743 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25744 (aarch64_asm_output_alias): New.
25745 (aarch64_asm_output_external): New.
25746 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25747 (ASM_OUTPUT_EXTERNAL): Define.
25748
25749 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25750 * tree-vrp.h (value_range_base::nonzero_p): New.
25751 (value_range_base::set_nonnull): Rename to...
25752 (value_range_base::set_nonzero): ...this.
25753 (value_range_base::set_null): Rename to...
25754 (value_range_base::set_zero): ...this.
25755 (value_range::set_nonnull): Remove.
25756 (value_range::set_null): Remove.
25757 * tree-vrp.c (range_is_null): Remove.
25758 (range_is_nonnull): Remove.
25759 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25760 instead of range_is_*null.
25761 (extract_range_from_unary_expr): Same.
25762 (value_range_base::set_nonnull): Rename to...
25763 (value_range_base::set_nonzero): ...this.
25764 (value_range::set_nonnull): Remove.
25765 (value_range_base::set_null): Rename to...
25766 (value_range_base::set_zero): ...this.
25767 (value_range::set_null): Remove.
25768 (extract_range_from_binary_expr): Rename set_*null uses to
25769 set_*zero.
25770 (extract_range_from_unary_expr): Same.
25771 (union_helper): Same.
25772 * vr-values.c (get_value_range): Use set_*zero instead of
25773 set_*null.
25774 (vr_values::extract_range_from_binary_expr): Same.
25775 (vr_values::extract_range_basic): Same.
25776
25777 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25778
25779 PR driver/90684
25780 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25781
25782 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25783
25784 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25785 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25786 Rename to...
25787 (aarch64_<su>abd<mode>_3): ... This.
25788 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25789
25790 2019-06-03 Richard Biener <rguenther@suse.de>
25791
25792 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25793 full reference tree and record in ref->ref.
25794 (vn_reference_lookup_3): Pass in original ref to
25795 ao_ref_init_from_vn_reference.
25796 (vn_reference_lookup): Likewise.
25797 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25798 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25799 Handle non-decl bases in the original reference.
25800
25801 2019-06-03 Martin Liska <mliska@suse.cz>
25802
25803 * doc/generic.texi: Remove Java Trees.
25804
25805 2019-06-03 Martin Liska <mliska@suse.cz>
25806
25807 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25808 returns 0 when operands are equal.
25809
25810 2019-06-03 Richard Biener <rguenther@suse.de>
25811
25812 PR tree-optimization/90716
25813 * tree-loop-distribution.c (destroy_loop): Process blocks in
25814 correct order.
25815
25816 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25817
25818 PR target/88837
25819 * vector-builder.h (vector_builder::count_dups): New method.
25820 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25821 Declare prototype.
25822 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25823 (vec_init<mode><Vel>): New pattern.
25824 * config/aarch64/aarch64.c (emit_insr): New function.
25825 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25826 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25827 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25828 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25829
25830 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25831
25832 PR tree-optimization/90681
25833 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25834 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25835 special case for SLP, but fail on non-groupped loads.
25836
25837 2019-06-03 Martin Liska <mliska@suse.cz>
25838
25839 * cfg.c (debug): Use TDF_DETAILS for debug and
25840 print edge info only once.
25841
25842 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25843
25844 PR fortran/90539
25845 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25846
25847 2019-06-01 Martin Sebor <msebor@redhat.com>
25848
25849 PR middle-end/90694
25850 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25851
25852 2019-05-31 Jan Hubicka <jh@suse.cz>
25853
25854 * alias.c: Include ipa-utils.h.
25855 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25856 * ipa-devirt.c (prevailing_odr_type): New.
25857 * ipa-utils.h (previaling_odr_type): Declare.
25858
25859 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25860 Hongtao Liu <hongtao.liu@intel.com>
25861
25862 PR target/89355
25863 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25864 NOTE_INSN_DELETED_LABEL check.
25865
25866 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25867 Robert Suchanek <robert.suchanek@mips.com>
25868
25869 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25870 and 3rd operands of the fmadd/fmsub/maddv builtin.
25871
25872 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25873
25874 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25875 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25876 on OMP_SIMD if not nested inside of worksharing loop that also has
25877 lastprivate conditional clause for the same decl.
25878 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25879 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25880 on simd.
25881 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25882 on simd construct.
25883 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25884 on simd construct.
25885 (lower_lastprivate_clauses): Likewise.
25886 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25887 calling lower_rec_input_clauses.
25888 (lower_omp_for): Likewise.
25889 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25890 clause on simd construct.
25891 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25892 OMP_CLAUSE__CONDTEMP_ clause is present.
25893
25894 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25895 ivar and lvar.
25896
25897 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25898
25899 PR c/43673
25900 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25901 TEX_D32, TEX_D64 or TEX_D128.
25902
25903 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25904
25905 * match.pd (~(vec?cst1:cst2)): New transformation.
25906
25907 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25908
25909 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25910 ((size_t)(A /[ex] B) CMP C): New transformation.
25911
25912 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25913
25914 * doc/md.texi: Document define_insn_and_rewrite.
25915 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25916 * gensupport.c (queue_elem): Update comment.
25917 (replace_operands_with_dups): New function.
25918 (gen_rewrite_sequence): Likewise.
25919 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25920 * read-rtl.c (apply_subst_iterator): Likewise.
25921 (add_condition_to_rtx, named_rtx_p): Likewise.
25922 (rtx_reader::read_rtx_operand): Likewise.
25923 * config/aarch64/aarch64-sve.md
25924 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25925 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25926 define_insn_and_rewrite.
25927 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25928 Remove separate define_split.
25929
25930 2019-05-31 Jan Hubicka <jh@suse.cz>
25931
25932 * tree-ssa-alias.c (type_has_components_p): New function.
25933 (aliasing_component_refs_p): Use it.
25934
25935 2019-05-31 Martin Liska <mliska@suse.cz>
25936
25937 * gdbhooks.py: Add const_tree to TreePrinter.
25938
25939 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25940
25941 PR debug/86964
25942 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25943 * doc/invoke.texi (Debugging Options): Document new default of
25944 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25945
25946 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25947
25948 PR tree-optimization/90671
25949 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25950 template_block used to be empty on the first call, don't use
25951 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25952 seq with bb_seq and set it with set_bb_seq.
25953
25954 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25955
25956 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25957
25958 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25959 Michael Meissner <meissner@linux.ibm.com>
25960
25961 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25962 (prefixed_mem_operand): Likewise.
25963 (non_prefixed_mem_operand): Likewise.
25964 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25965 prototype.
25966 * config/rs6000/rs6000.c (print_operand_address): Handle
25967 PC-relative addresses.
25968 (mode_supports_prefixed_address_p): New function.
25969 (rs6000_prefixed_address): New function.
25970 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25971 (SYMBOL_REF_PCREL_P): Likewise.
25972
25973 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25974
25975 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25976 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25977 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25978 is nested inside of parallel region, add _condtemp_ clause to both.
25979 * tree-nested.c (convert_nonlocal_omp_clauses,
25980 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25981 assertion failure.
25982 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25983 member.
25984 * omp-general.c (omp_extract_for_data): Compute it.
25985 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25986 (lower_rec_input_clauses): Likewise.
25987 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25988 clause is already present, just add one further one after it.
25989 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25990 (lower_send_shared_vars): Clear _condtemp_ vars.
25991 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25992 or section or taskgroup.
25993 * omp-expand.c (determine_parallel_type): Disallow combining only if
25994 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25995 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25996 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25997 expand_omp_for_static_chunk, expand_omp_for): Use
25998 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25999 determine if a special set of API routines are needed and if condtemp
26000 needs to be initialized, while always initialize cond_var if
26001 fd->lastprivate_conditional is non-zero.
26002
26003 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
26004 Michael Meissner <meissner@linux.ibm.com>
26005
26006 * config/rs6000/constraints.md (eI): New constraint.
26007 * config/rs6000/predicates.md (cint34_operand): New predicate.
26008 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
26009 (SIGNED_34BIT_OFFSET_P): Likewise.
26010 * doc/md.texi (eI): Document constraint.
26011
26012 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
26013
26014 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
26015
26016 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
26017 Michael Meissner <meissner@linux.ibm.com>
26018
26019 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
26020 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
26021 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
26022 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
26023 (OTHER_FUTURE_MASKS): Likewise.
26024 (POWERPC_MASKS): Likewise.
26025 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
26026 specified without -mprefixed-addr or -mcpu=future. Error if
26027 -mprefixed-addr is specified without -mcpu=future.
26028 (rs6000_opt_masks): Add entry for prefixed-addr.
26029 * rs6000.opt (mprefixed-addr): New option.
26030
26031 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
26032
26033 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
26034 cfun->is_thunk check.
26035
26036 2019-05-30 Jakub Jelinek <jakub@redhat.com>
26037
26038 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
26039 to length.
26040
26041 2019-05-30 Martin Liska <mliska@suse.cz>
26042
26043 * gdbinit.in: Fix 'ptc' command. Add trt
26044 that prints TREE_TYPE($).
26045
26046 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
26047 Alan Modra <amodra@gmail.com>
26048
26049 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
26050 calls here...
26051 (rs6000_indirect_call_template_1): ...and here.
26052 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
26053 plt16_ha, plt16_lo, mtctr indirect calls. Use
26054 rs6000_pltseq_enum.
26055 (rs6000_decl_ok_for_sibcall): New function.
26056 (rs6000_function_ok_for_sibcall): Refactor.
26057 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
26058 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
26059 when pcrel. Reorganize.
26060 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
26061 * rs6000.h (rs6000_pltseq_enum): New enum.
26062 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
26063 (*pltseq_tocsave): Use rs6000_pltseq_enum.
26064 (*pltseq_plt16_ha): Likewise.
26065 (*pltseq_plt16_lo): Likewise.
26066 (*pltseq_mtctr): Likewise.
26067 (*pltseq_plt_pcrel): New insn.
26068 (*call_local_aix): Handle @notoc calls.
26069 (*call_value_local_aix): Likewise.
26070 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
26071 (*call_value_nonlocal_aix): Likewise.
26072 (*call_indirect_pcrel): New insn.
26073 (*call_value_indirect_pcrel): Likewise.
26074
26075 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
26076
26077 * config/i386/sse.md (*save_multiple<mode>): Rename from
26078 save_multiple<mode>.
26079 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
26080 (*restore_multiple_and_return<mode>): Rename from
26081 restore_multiple_and_return<mode>.
26082 (*restore_multiple_leave_return<mode>): Rename from
26083 restore_multiple_leave_return<mode>.
26084
26085 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
26086
26087 * config.gcc (rx-*-linux*): New target.
26088 * config/rx/elf.opt: New file.
26089 * config/rx/linux.h: Likewise.
26090 * config/rx/t-linux: Likewise.
26091 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
26092 make it zero.
26093 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
26094 (ASM_APP_OFF): Likewise.
26095 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
26096 moved elsewhere.
26097
26098 2019-05-29 Jan Hubicka <jh@suse.cz>
26099
26100 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
26101 variants are pointer equivalent.
26102
26103 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26104
26105 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
26106 * config/aarch64/aarch64-sve2.md: New file.
26107 (<u>avg<mode>3_floor): New pattern.
26108 (<u>avg<mode>3_ceil): Likewise.
26109 (*<sur>h<addsub><mode>): Likewise.
26110 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
26111 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
26112
26113 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26114
26115 PR bootstrap/90543
26116 * optc-save-gen.awk: In cl_optimization_print, use correct condition
26117 for var_opt_string printing. In cl_optimization_print_diff, print
26118 (null) instead of invoking undefined behavior if one of the
26119 var_opt_string pointers is NULL and use && instead of first || in the
26120 guarding condition. For var_target_other options, handle const char *
26121 target variables similarly to const char * optimize node variables.
26122
26123 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
26124
26125 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
26126 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
26127 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
26128 Add autib1716 and pacib1716 initialisation.
26129 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
26130 for autib1716 and pacib1716.
26131 * config/aarch64/aarch64-protos.h (aarch64_key_type,
26132 aarch64_post_cfi_startproc): Define.
26133 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
26134 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
26135 aarch64_handle_pac_ret_protection): Set default sign key to A.
26136 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
26137 aarch64_expand_prologue): Add check for b-key.
26138 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
26139 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
26140 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
26141 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
26142 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
26143 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
26144 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26145 * config/aarch64/aarch64.md (do_return): Add check for b-key.
26146 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
26147 pauth_hint_num_a with pauth_hint_num.
26148 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
26149 pauth_hint_num_a with pauth_hint_num.
26150 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
26151 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
26152 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26153 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
26154 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
26155 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
26156 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
26157 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
26158 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
26159 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
26160 UNSPEC_AUTIA1716 respectively.
26161 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
26162 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
26163 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
26164 * doc/invoke.texi (-mbranch-protection): Add b-key type.
26165 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
26166 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
26167
26168 2019-05-29 Jakub Jelinek <jakub@redhat.com>
26169
26170 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
26171 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
26172 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
26173 explicit clause on combined parallel into implicit shared clause.
26174 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
26175 and firstprivate if the decl has one too from combined parallel to
26176 the worksharing construct.
26177
26178 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
26179 Michael Meissner <meissner@linux.ibm.com>
26180
26181 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
26182
26183 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
26184
26185 * rtl.h (LABEL_REF_P): New #define.
26186
26187 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
26188
26189 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
26190
26191 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26192
26193 * internal-fn.c: Marked mask_load_direct as vectorizable.
26194 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
26195 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
26196 combined even if masks different with allow_slp_p param.
26197 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
26198 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
26199 dissolve SLP-only vectorizable groups when SLP has been discarded.
26200 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
26201 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
26202 masks.
26203 (vect_build_slp_tree_1): Fixed comment typo.
26204 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
26205 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
26206 loads for SLP only.
26207 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
26208 vectorizable.
26209 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
26210
26211 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26212
26213 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
26214 Remove obsolete use_thunk reference.
26215 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26216 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26217 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26218 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26219 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26220 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26221 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26222 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26223 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26224
26225 2019-05-28 Nathan Sidwell <nathan@acm.org>
26226
26227 * tree.h (IDENTIFIER_ANON_P): New.
26228 (anon_aggrname_format, anon_aggname_p): Don't declare.
26229 (make_anon_name): Declare.
26230 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
26231 (hash_tree): Likewise.
26232 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
26233 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
26234 (anon_cnt, make_anon_name): New.
26235
26236 2019-05-28 Martin Liska <mliska@suse.cz>
26237
26238 PR other/90315
26239 * opts-global.c (decode_options): Print help for all
26240 help_option_arguments.
26241 * opts.c (print_help): Add new argument.
26242 (common_handle_option): Remember all values into
26243 help_option_arguments.
26244 * opts.h (print_help): Add new argument.
26245
26246 2019-05-28 Martin Liska <mliska@suse.cz>
26247
26248 PR ipa/90555
26249 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
26250 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
26251 (func_checker::compare_bb): Call compare_loops.
26252
26253 2019-05-27 Jakub Jelinek <jakub@redhat.com>
26254
26255 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
26256 on sections construct.
26257 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
26258 construct.
26259 (lower_omp_sections): Handle lastprivate conditional.
26260 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
26261 lastprivate_conditional_map.
26262 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
26263
26264 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
26265 critical, taskgroup and section regions when looking for a region
26266 with non-NULL lastprivate_conditional_map.
26267
26268 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26269
26270 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
26271 (*ix86_gen_sub3): Ditto.
26272 (*ix86_gen_sub3_carry): Ditto.
26273 (*ix86_gen_one_cmpl2): Ditto.
26274 (*ix86_gen_andsp): Ditto.
26275 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
26276 (gen_and2_insn): New static function.
26277 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
26278 Use gen_add3_insn instead of ix86_gen_add3.
26279 (ix86_expand_split_stack_prologue): Use gen_add2_insn
26280 instead of ix86_gen_add3.
26281 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
26282 Use gen_sub3_insn instead of ix86_gen_sub3.
26283 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
26284 instead of ix86_gen_add3.
26285 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
26286 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
26287 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
26288 * config/i386/i386-options.c (ix86_option_override_internal):
26289 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
26290 ix86_gen_one_cmpl2 and ix86_gen_andsp.
26291
26292 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
26293
26294 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
26295 and DW_OP_GNU_const_index opcodes.
26296
26297 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
26298
26299 * config/i386/i386.h (STACK_SIZE_MODE): Define.
26300
26301 2019-05-27 Richard Biener <rguenther@suse.de>
26302
26303 PR tree-optimization/90637
26304 * tree-ssa-sink.c (statement_sink_location): Honor the
26305 computed sink location for single-uses.
26306
26307 2019-05-27 Richard Biener <rguenther@suse.de>
26308
26309 PR middle-end/90610
26310 * match.pd (vec_perm): Avoid clobbering op0 when not generating
26311 a bit-insert.
26312
26313 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26314
26315 * config/i386/i386.md (@sub<mode>3_carry): Rename
26316 from sub<mode>3_carry.
26317 (@leave_<mode>): New expander.
26318 (*leave): Rename from leave.
26319 (*leave_rex64): Rename from leave_rex64.
26320 (@monitorx_<mode>): Rename from monitorx_<mode>.
26321 (@clzero_<mode>): Rename from clzero_<mode>.
26322 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
26323 from sse3_monitor_<mode>.
26324 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
26325 (*ix86_gen_leave): Ditto.
26326 (*ix86_gen_monitor): Ditto.
26327 (*ix86_gen_monitorx): Ditto.
26328 (*ix86_gen_clzero): Ditto.
26329 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
26330 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
26331 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
26332 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
26333 Use gen_sse3_monitor instead of ix86_gen_monitor.
26334 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
26335 instead of ix86_gen_monitorx.
26336 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
26337 instead of ix86_gen_clzero.
26338 * config/i386/i386-options.c (ix86_option_override_internal):
26339 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
26340 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
26341
26342 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26343
26344 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
26345 Rename from tls_global_dynamic_64_<mode>.
26346 (@tls_local_dynamic_base_64_<mode>): Rename from
26347 tls_local_dynamic_base_64_<mode>.
26348 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
26349 Remove indirect function.
26350 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
26351 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
26352 instead of ix86_gen_tls_global_dynamic_64.
26353 Use gen_tls_local_dynamic_base_64 instead of
26354 ix86_gen_tls_local_dynamic_base_64.
26355 * config/i386/i386-options.c (ix86_option_override_internal):
26356 Do not initialize ix86_gen_tls_global_dynamic_64 and
26357 ix86_gen_tls_local_dynamic_base_64.
26358
26359 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
26360
26361 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
26362 Rename from pro_epilogue_adjust_stack_<mode>_add.
26363 (@pro_epilogue_adjust_stack_sub_<mode>)
26364 Rename from pro_epilogue_adjust_stack_<mode>_sub.
26365 (@allocate_stack_worker_probe_<mode>):
26366 Rename from allocate_stack_worker_probe_<mode>.
26367 (allocate_stack): Use gen_allocate_stack_worker_probe.
26368 (probe_stack): Use gen_probe_stack_1.
26369 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
26370 (@adjust_stack_and_probe_<mode>): Rename from
26371 adjust_stack_and_probe<mode>.
26372 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
26373 (stack_protect_set): Use gen_stack_protect_set_1.
26374 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
26375 (stack_protect_test): Use gen_stack_protect_test_1.
26376 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
26377 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
26378 Remove indirect function.
26379 (*ix86_gen_adjust_stack_and_probe): Ditto.
26380 (*ix86_gen_probe_stack_range): Ditto.
26381 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
26382 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
26383 (ix86_adjust_stack_and_probe_stack_clash): Use
26384 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
26385 (ix86_adjust_stack_and_probe): Ditto.
26386 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
26387 of ix86_gen_probe_stack_range.
26388 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
26389 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
26390 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
26391 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
26392 CODE_FOR_stack_protect_test_{si,di}.
26393 * config/i386/i386-options.c (ix86_option_override_internal):
26394 Do not initialize ix86_gen_allocate_stack_worker,
26395 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
26396
26397 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
26398
26399 * doc/invoke.texi (Link Options): Many editorial changes around
26400 -flinker-output.
26401
26402 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26403
26404 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
26405 pre-Solaris 11 referene and most Studio compiler details.
26406
26407 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
26408
26409 PR target/90530
26410 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
26411 DImode to SImode in floating-point registers on 64-bit target.
26412 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
26413 register_operand in xmpyu patterns.
26414
26415 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26416
26417 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
26418 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
26419 OMP_CLAUSE__REDUCTEMP_.
26420 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
26421 OMP_CLAUSE__CONDTEMP_.
26422 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
26423 * tree-pretty-print.c (dump_omp_clause): Likewise.
26424 * tree-nested.c (convert_nonlocal_omp_clauses,
26425 convert_local_omp_clauses): Likewise.
26426 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
26427 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
26428 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
26429 on OMP_FOR.
26430 (gimplify_omp_for): Warn and disable conditional modifier from
26431 lastprivate on loop iterators.
26432 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
26433 member.
26434 * omp-general.c (omp_extract_for_data): Initialize it.
26435 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
26436 member.
26437 (delete_omp_context): Delete it.
26438 (lower_lastprivate_conditional_clauses): New function.
26439 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
26440 handle lastprivate conditional clauses.
26441 (lower_reduction_clauses): Add CLIST argument, emit it into
26442 the critical section if any.
26443 (lower_omp_sections): Adjust lower_lastprivate_clauses and
26444 lower_reduction_clauses callers.
26445 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
26446 to lower_lastprivate_clauses.
26447 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
26448 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
26449 clist into a critical section if not emitted there already by
26450 lower_reduction_clauses.
26451 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
26452 callers.
26453 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
26454 conditional variables.
26455 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
26456 clause is present.
26457 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26458 expand_omp_for_static_chunk): Handle lastprivate conditional.
26459 (expand_omp_for): Handle fd.lastprivate_conditional like
26460 fd.have_reductemp.
26461
26462 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26463
26464 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
26465 kernel does not exit cleanly.
26466 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
26467
26468 2019-05-24 Jason Merrill <jason@redhat.com>
26469
26470 Revert:
26471 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26472
26473 2019-05-24 Richard Biener <rguenther@suse.de>
26474
26475 PR testsuite/90607
26476 * tree-loop-distribution.c (struct partition): Add location
26477 member.
26478 (partition_alloc): Initialize all fields.
26479 (generate_memset_builtin): Use the location recorded in the
26480 partition for the generated call.
26481 (generate_memcpy_builtin): Likewise.
26482 (classify_partition): Record the location of a single store
26483 as location for the partition.
26484
26485 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26486
26487 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26488 for lo-part.
26489
26490 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
26491
26492 PR target/90588
26493 * common/config/aarch64/aarch64-common.c
26494 (aarch64_rewrite_selected_cpu): Change local temporary variable
26495 type from unsigned long to uint64_t.
26496 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26497 aarch64_get_extension_string_for_isa_flags): Change declaration to
26498 match new definition by replacing unsigned long with uint64_t.
26499
26500 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26501
26502 PR target/90568
26503 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26504 gen_attr_type just once instead of 4-7 times. Formatting fixes.
26505 Handle stack_protect_test_<mode> codegen similarly to corresponding
26506 sub instruction.
26507
26508 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
26509
26510 * config/i386/darwin.h: Reject -mfentry*.
26511 * doc/sourcebuild.texi: Document mfentry target support.
26512
26513 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26514
26515 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26516 Rename to rs6000_global_entry_point_prologue_needed_p. Return
26517 false for PC-relative functions.
26518 (rs6000_output_function_prologue): Change called function name to
26519 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
26520 name,1" for PC-relative functions.
26521 (rs6000_elf_declare_function_name): Change called function name to
26522 rs6000_global_entry_point_prologue_needed_p.
26523
26524 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
26525
26526 PR target/90552
26527 * config/i386/i386.c (gen_rtx_cost):
26528 Use ix86_tune_cost instead of ix86_cost.
26529
26530 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26531 Michael Meissner <meissner@linux.ibm.com>
26532 Segher Boessenkool <segher@kernel.crashing.org>
26533
26534 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26535 OPTION_MASK_PCREL.
26536 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26537 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26538 (rs6000_fndecl_pcrel_p): Likewise.
26539 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26540 error if -mpcrel is requested without -mcpu=future.
26541 (rs6000_opt_masks): Add entry for pcrel.
26542 (rs6000_fndecl_pcrel_p): New function.
26543 (rs6000_pcrel_p): Likewise.
26544 * config/rs6000/rs6000.opt (mpcrel): New option.
26545 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26546
26547 2019-05-23 Jan Hubicka <jh@suse.cz>
26548 Martin Liska <mliska@suse.cz>
26549
26550 PR tree-optimization/90576
26551 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26552 poly_int_tree_p.
26553 (aliasing_component_refs_p): Fix three way size compare conditional;
26554 give up earlier in case we can not decide on equivalence.
26555
26556 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26557 Michael Meissner <meissner@linux.ibm.com>
26558 Segher Boessenkool <segher@kernel.crashing.org>
26559
26560 * config.gcc: Add future cpu.
26561 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26562 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26563 #define.
26564 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26565 (RS6000_CPU): New instantiation for future cpu.
26566 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26567 PROCESSOR_FUTURE.
26568 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26569 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26570 * config/rs6000/rs6000-tables.opt: Regenerate.
26571 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26572 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26573 (rs6000_machine_from_flags): Handle future cpu.
26574 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26575 PROCESSOR_POWER9 for now.
26576 (rs6000_adjust_cost): Likewise.
26577 (rs6000_issue_rate): Likewise.
26578 (rs6000_register_move_cost): Likewise.
26579 (rs6000_opt_masks): Add entry for future.
26580 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26581 (MASK_FUTURE): New #define.
26582 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26583 * config/rs6000/rs6000.opt (mfuture): New target option.
26584 * doc/invoke.texi (mcpu): Add future cpu.
26585
26586 2019-05-23 Martin Liska <mliska@suse.cz>
26587
26588 PR c++/90587
26589 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26590 operation points to a temporary (pointed via tree_to_wide_ref)
26591 that is out of scope after the &.
26592
26593 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26594
26595 PR c++/90592
26596 * doc/extend.texi (Function Names): Add missing word.
26597
26598 2019-05-23 Richard Biener <rguenther@suse.de>
26599
26600 PR tree-optimization/88440
26601 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26602 at -O[2s]+.
26603 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26604 generated call.
26605 (generate_memcpy_builtin): Likewise.
26606 (distribute_loop): Pass in whether to only distribute patterns.
26607 (prepare_perfect_loop_nest): Also allow size optimization.
26608 (pass_loop_distribution::execute): When optimizing a loop
26609 nest for size allow pattern replacement.
26610
26611 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26612
26613 PR target/90568
26614 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26615 of xor.
26616
26617 2019-05-23 Martin Liska <mliska@suse.cz>
26618
26619 PR sanitizer/90570
26620 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26621 expression similarly to gimplify_decl_expr.
26622
26623 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26624
26625 * cse.c (cse_dump_path): s/dump_file/f.
26626
26627 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26628
26629 PR c++/90462
26630 * diagnostic-format-json.cc: Include "selftest.h".
26631 (json_from_expanded_location): Only add "file" key for non-NULL
26632 file strings.
26633 (json_from_location_range): Don't add "start" and "finish"
26634 children if they are UNKNOWN_LOCATION.
26635 (selftest::test_unknown_location): New selftest.
26636 (selftest::test_bad_endpoints): New selftest.
26637 (selftest::diagnostic_format_json_cc_tests): New function.
26638 * json.cc (json::object::get): New function.
26639 (selftest::test_object_get): New selftest.
26640 (selftest::json_cc_tests): Call it.
26641 * json.h (json::object::get): New decl.
26642 * selftest-run-tests.c (selftest::run_tests): Call
26643 selftest::diagnostic_format_json_cc_tests.
26644 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26645 decl.
26646
26647 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26648 Andrew Stubbs <amd@codesourcery.com>
26649
26650 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26651 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26652 (kernel): Rename to...
26653 (main_kernel): ... this.
26654 (load_image): Load _init_array and _fini_array kernels.
26655 (run): Add argument for kernel to run.
26656 (main): Run init_array_kernel before main_kernel, and
26657 fini_array_kernel after.
26658 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26659 amdgpu_hsa_kernel attribute on functions.
26660 (gcn_disable_constructors): Delete.
26661 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26662 * config/gcn/crt0.c (size_t): Define.
26663 (_init_array, _fini_array): New.
26664 (__preinit_array_start, __preinit_array_end,
26665 __init_array_start, __init_array_end,
26666 __fini_array_start, __fini_array_end): Declare weak references.
26667
26668 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26669
26670 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26671
26672 2019-05-22 Jason Merrill <jason@redhat.com>
26673
26674 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26675
26676 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26677
26678 PR target/88483
26679 * config/i386/i386-options.c (ix86_init_machine_status): Set
26680 stack_frame_required to true.
26681 * config/i386/i386.c (ix86_get_frame_size): New function.
26682 (ix86_frame_pointer_required): Replace get_frame_size with
26683 ix86_get_frame_size.
26684 (ix86_compute_frame_layout): Likewise.
26685 (ix86_find_max_used_stack_alignment): Changed to void. Set
26686 stack_frame_required.
26687 (ix86_finalize_stack_frame_flags): Always call
26688 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26689 ix86_get_frame_size.
26690 * config/i386/i386.h (machine_function): Add stack_frame_required.
26691
26692 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26693
26694 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26695
26696 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26697
26698 * common/config/aarch64/aarch64-common.c
26699 (struct aarch64_option_extension, struct processor_name_to_arch,
26700 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26701 aarch64_contains_opt,
26702 aarch64_get_extension_string_for_isa_flags): Change type of
26703 variables storing flags to uint64_t.
26704 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26705 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26706 * config/aarch64/aarch64.c (struct processor,
26707 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26708 aarch64_validate_march, aarch64_override_options,
26709 aarch64_option_print, aarch64_handle_attr_isa_flags,
26710 aarch64_declare_function_name, aarch64_start_file): Make flag
26711 variables uint64_t.
26712 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26713 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26714 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26715 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26716 * config/aarch64/driver-aarch64.c
26717 (struct aarch64_arch_extension, struct aarch64_core_data,
26718 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26719 flag variables uint64_t.
26720 * doc/invoke.texi: Add documentation for new arguments.
26721
26722 2019-05-22 Richard Biener <rguenther@suse.de>
26723
26724 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26725 rewrite ...
26726 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26727
26728 2019-05-22 Martin Liska <mliska@suse.cz>
26729
26730 PR lto/90500
26731 * doc/extend.texi: Document the change.
26732
26733 2019-05-22 Richard Biener <rguenther@suse.de>
26734
26735 PR tree-optimization/90450
26736 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26737 (mem_ref_hasher::equal): Check it.
26738 (mem_ref_alloc): Initialize it.
26739 (gather_mem_refs_stmt): Set it.
26740
26741 2019-05-22 Richard Biener <rguenther@suse.de>
26742
26743 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26744 Add ABS_EXPR.
26745 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26746 as ABSU_EXPR.
26747
26748 2019-05-22 Alan Modra <amodra@gmail.com>
26749
26750 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26751 (ASM_CPU_SPEC): Conditionally add -many.
26752 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26753 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26754 (rs6000_file_start): ..extracted from here, and modified to
26755 test all ISA bits.
26756 (rs6000_output_function_prologue): Emit .machine as necessary.
26757
26758 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26759
26760 PR middle-end/90553
26761 * ira-lives.c (process_bb_node_lives): Consider defs
26762 for a call insn to be die before the call, not after.
26763
26764 * function.c (assign_parm_setup_block): Raise alignment of
26765 stacked parameter only for STRICT_ALIGNMENT targets.
26766
26767 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26768
26769 * config/rs6000/constraints.md (define_register_constraint "wz"):
26770 Delete.
26771 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26772 RS6000_CONSTRAINT_wz.
26773 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26774 (rs6000_init_hard_regno_mode_ok): Adjust.
26775 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26776 * doc/md.texi (Machine Constraints): Adjust.
26777
26778 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26779
26780 * config/rs6000/constraints.md (define_register_constraint "wl"):
26781 Delete.
26782 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26783 RS6000_CONSTRAINT_wl.
26784 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26785 (rs6000_init_hard_regno_mode_ok): Adjust.
26786 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26787 * doc/md.texi (Machine Constraints): Adjust.
26788
26789 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26790
26791 * config/rs6000/constraints.md (define_register_constraint "wm"):
26792 Delete.
26793 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26794 RS6000_CONSTRAINT_wm.
26795 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26796 (rs6000_init_hard_regno_mode_ok): Adjust.
26797 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26798 * doc/md.texi (Machine Constraints): Adjust.
26799
26800 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26801
26802 * config/rs6000/constraints.md (define_register_constraint "wk"):
26803 Delete.
26804 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26805 RS6000_CONSTRAINT_wk.
26806 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26807 (rs6000_init_hard_regno_mode_ok): Adjust.
26808 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26809 * doc/md.texi (Machine Constraints): Adjust.
26810
26811 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26812
26813 * config/rs6000/constraints.md (define_register_constraint "wj"):
26814 Delete.
26815 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26816 RS6000_CONSTRAINT_wj.
26817 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26818 (rs6000_init_hard_regno_mode_ok): Adjust.
26819 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26820 (VS_64dm): Delete.
26821 * config/rs6000/vsx.md: Ditto.
26822 * doc/md.texi (Machine Constraints): Adjust.
26823
26824 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26825
26826 * config/rs6000/constraints.md (define_register_constraint "wh"):
26827 Delete.
26828 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26829 RS6000_CONSTRAINT_wh.
26830 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26831 (rs6000_init_hard_regno_mode_ok): Adjust.
26832 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26833 * doc/md.texi (Machine Constraints): Adjust.
26834
26835 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26836
26837 PR target/90547
26838 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26839 Avoid calling gen_lowpart with CONST operand.
26840
26841 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26842
26843 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26844 field template_last_to_copy.
26845 (ssa_create_duplicates): Set it, and use it. Attempt to
26846 preserve more debug stmts.
26847
26848 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26849
26850 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26851 (signbit<mode>2): New expander
26852
26853 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26854
26855 PR bootstrap/87338
26856 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26857 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26858
26859 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26860
26861 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26862 %ebx and %ecx bafore calling cpuid with leaf 1 or
26863 non-constant leaf argument.
26864
26865 2019-05-21 Alan Modra <amodra@gmail.com>
26866
26867 PR target/90545
26868 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26869 power9 direct move cost.
26870
26871 2019-05-21 Richard Biener <rguenther@suse.de>
26872
26873 PR middle-end/90510
26874 * fold-const.c (fold_read_from_vector): New function.
26875 * fold-const.h (fold_read_from_vector): Declare.
26876 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26877 single-element insert permutations. Canonicalize selector
26878 further and fix issue with last commit.
26879
26880 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26881
26882 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26883 parameter with default value false to declaration.
26884 (split_edges_for_insertion): New inline function. Wrapper for
26885 split_critical_edges with for_edge_insertion_p = true.
26886 * tree-cfg.c (split_critical_edges): Don't split non-critical
26887 edges if for_edge_insertion_p is false. Fix whitespace.
26888 * tree-ssa-pre.c (pass_pre::execute): Call
26889 split_edges_for_insertion instead of split_critical_edges.
26890 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26891 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26892 (pass_data_sink_code): Update function name in the comment.
26893
26894 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26895
26896 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26897 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26898 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26899 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26900 positives.
26901
26902 2019-05-21 Martin Liska <mliska@suse.cz>
26903
26904 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26905 an extra newline.
26906 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26907 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26908 vec_lvsr.
26909 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26910 Quote a C type.
26911 (rs6000_function_arg): Likewise.
26912 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26913 (rs6000_expand_ternop_builtin): Use interval syntax.
26914 (get_element_number): Likewise.
26915 (altivec_expand_builtin): Likewise.
26916 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26917
26918 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26919
26920 PR c++/59813
26921 PR target/90418
26922 * function.h (struct function): Add calls_eh_return member.
26923 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26924 gimplifying __builtin_eh_return call.
26925 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26926 to cfun.
26927 (expand_call_inline): Or in src_cfun->calls_eh_return into
26928 dst_cfun->calls_eh_return.
26929 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26930 cfun->calls_eh_return.
26931 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26932 * lto-streamer-out.c (output_struct_function_base): Write
26933 calls_eh_return.
26934
26935 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26936
26937 PR rtl-optimization/43147
26938 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26939 IX86_BUILTIN_SHUFPD.
26940
26941 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26942
26943 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26944 (refs_may_alias_p_1): ... here; update stats.
26945 (refs_may_alias_p): Do not update stats here.
26946
26947 2019-05-20 Richard Biener <rguenther@suse.de>
26948
26949 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26950 doesn't produce pointers.
26951 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26952 the first operand points to.
26953
26954 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26955
26956 * tree-ssa-alias.c (compare_sizes): New function.
26957 (sompare_type_sizes): New function
26958 (aliasing_component_refs_p): Use it.
26959 (indirect_ref_may_alias_decl_p): Likewise.
26960
26961 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26962
26963 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26964
26965 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26966
26967 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26968 (LIBLSAN_EARLY_SPEC): Likewise.
26969 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26970
26971 2019-05-20 Martin Liska <mliska@suse.cz>
26972
26973 * config/i386/i386.c (ix86_libc_has_fast_function):
26974 Add ATTRIBUTE_UNUSED for the argument.
26975
26976 2019-05-20 Richard Biener <rguenther@suse.de>
26977
26978 * gimple-match-head.c: Include vec-perm-indices.h.
26979 * generic-match-head.c: Likewise.
26980 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26981 is included.
26982 * fold-const.c (fold_vec_perm): Export.
26983 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26984 (match.pd): ...here.
26985
26986 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26987
26988 * cfgloop.h (struct loop): Add simdlen member.
26989 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26990 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26991 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26992 as new argument to autovectorize_vector_sizes target hook. If
26993 loop->simdlen, pick up vector size where the vectorization factor
26994 is equal to loop->simd, and if there is none, fall back to the first
26995 successful one.
26996 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26997 caller.
26998 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26999 * omp-general.c (omp_max_vf): Likewise.
27000 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
27001 * tree-vect-slp.c (vect_slp_bb): Likewise.
27002 * target.def (autovectorize_vector_sizes): Add ALL argument and
27003 document it.
27004 * doc/tm.texi: Adjust documentation.
27005 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
27006 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
27007 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
27008 bool argument.
27009 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
27010 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
27011 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
27012 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
27013 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
27014 preferred vector size is not 512-bit or 256-bit, just put those
27015 unpreferred ones last.
27016
27017 2019-05-20 Martin Liska <mliska@suse.cz>
27018
27019 * targhooks.c (default_libc_has_fast_function): New function.
27020 * targhooks.h (default_libc_has_fast_function): Likewise.
27021
27022 2019-05-20 Martin Liska <mliska@suse.cz>
27023
27024 PR middle-end/90263
27025 * builtins.c (expand_builtin_memory_copy_args): When having a
27026 target with fast mempcpy implementation do now use memcpy.
27027 * config/i386/i386.c (ix86_libc_has_fast_function): New.
27028 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
27029 * doc/tm.texi: Likewise.
27030 * doc/tm.texi.in: Likewise.
27031 * target.def:
27032 * expr.c (emit_block_move_hints): Add 2 new arguments.
27033 * expr.h (emit_block_move_hints): Bail out when libcall
27034 to memcpy would be used.
27035
27036 2019-05-20 Martin Liska <mliska@suse.cz>
27037
27038 * profile-count.c: Add vertical spacing in order
27039 to separate functions.
27040 * profile-count.h: Likewise.
27041
27042 2019-05-20 Martin Liska <mliska@suse.cz>
27043
27044 * profile-count.h: Do not use full qualified
27045 names if possible.
27046 * profile-count.c (profile_count::to_frequency): Likewise.
27047
27048 2019-05-20 Martin Liska <mliska@suse.cz>
27049
27050 * profile-count.h (enum profile_quality): Use capital letters
27051 for enum value names. Use the adjusted names.
27052 * profile-count.c: Use the adjusted names.
27053
27054 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27055
27056 * config/rs6000/constraints.md (define_register_constraint "wH"):
27057 Delete.
27058 (define_register_constraint "wI"): Delete.
27059 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27060 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
27061 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27062 (rs6000_init_hard_regno_mode_ok): Adjust.
27063 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
27064 resp. "d", or with "wa" as appropriate, all with "p8v".
27065 * config/rs6000/vsx.md: Ditto.
27066 * doc/md.texi (Machine Constraints): Adjust.
27067
27068 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27069
27070 * config/rs6000/constraints.md (define_register_constraint "wy"):
27071 Delete.
27072 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27073 RS6000_CONSTRAINT_wy.
27074 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27075 (rs6000_init_hard_regno_mode_ok): Adjust.
27076 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
27077 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
27078 (define_mode_attr Fisa): New.
27079 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
27080 * doc/md.texi (Machine Constraints): Adjust.
27081
27082 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27083
27084 * config/rs6000/constraints.md (define_register_constraint "wu"):
27085 Delete.
27086 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27087 RS6000_CONSTRAINT_wu.
27088 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27089 (rs6000_init_hard_regno_mode_ok): Adjust.
27090 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
27091 both with "p8v".
27092 (define_mode_attr Fa): Delete.
27093 * config/rs6000/vsx.md: Ditto.
27094 * doc/md.texi (Machine Constraints): Adjust.
27095
27096 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27097
27098 * config/rs6000/constraints.md (define_register_constraint "wJ"):
27099 Delete.
27100 (define_register_constraint "wK"): Delete.
27101 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27102 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
27103 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27104 (rs6000_init_hard_regno_mode_ok): Adjust.
27105 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
27106 Replace "wK" constraint by "wH" with "p9v".
27107 * config/rs6000/vsx.md: Ditto.
27108 * doc/md.texi (Machine Constraints): Adjust.
27109
27110 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27111
27112 * config/rs6000/constraints.md (define_register_constraint "wb"):
27113 Delete.
27114 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27115 RS6000_CONSTRAINT_wb.
27116 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27117 (rs6000_init_hard_regno_mode_ok): Adjust.
27118 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
27119 * config/rs6000/vsx.md: Ditto.
27120 * doc/md.texi (Machine Constraints): Adjust.
27121
27122 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
27123
27124 * config/rs6000/constraints.md (define_register_constraint "wo"):
27125 Delete.
27126 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
27127 RS6000_CONSTRAINT_wo.
27128 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
27129 (rs6000_init_hard_regno_mode_ok): Adjust.
27130 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
27131 * config/rs6000/altivec.md: Ditto.
27132 * doc/md.texi (Machine Constraints): Adjust.
27133
27134 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27135
27136 * config/darwin-c.c (darwin_register_objc_includes): Do not
27137 prepend the sysroot when building gnu-runtime header search
27138 paths.
27139
27140 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
27141
27142 * config/darwin.c (darwin_file_end): Use switch_to_section ()
27143 instead of direct output of the asm.
27144
27145 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27146
27147 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
27148 argument to be type bool (was int before).
27149 (rs6000_emit_epilogue): Simplify some code. Declare some variables
27150 at first use. Use type bool for some variables. Fix a theoretical
27151 eh_return bug for svr4.
27152
27153 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
27154
27155 * config/rs6000/rs6000.md (isa): New attribute.
27156 (enabled): New attribute.
27157
27158 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
27159
27160 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
27161 assemble_start_function and assemble_end_function.
27162
27163 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
27164
27165 PR middle-end/89433
27166 * omp-general.c (oacc_verify_routine_clauses): Change formal
27167 parameters. Add checking if already marked with an OpenACC
27168 'routine' directive. Adjust all users.
27169
27170 PR middle-end/89433
27171 * omp-general.c (oacc_build_routine_dims): Move some of its
27172 processing into...
27173 (oacc_verify_routine_clauses): ... this new function.
27174 * omp-general.h (oacc_verify_routine_clauses): New prototype.
27175
27176 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27177
27178 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
27179 formating of picbase labels to match other ports.
27180
27181 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
27182
27183 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
27184 in the generated code.
27185
27186 2019-05-16 Martin Sebor <msebor@redhat.com>
27187
27188 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
27189 identifiers, keywords, operators, and types in diagnostics. Correct
27190 quoting, spelling, and sentence capitalization issues.
27191 (expand_builtin_atomic_is_lock_free): Same.
27192 (fold_builtin_next_arg): Same.
27193 * cfgexpand.c (expand_one_var): Same.
27194 (tree_conflicts_with_clobbers_p): Same.
27195 (expand_asm_stmt): Same.
27196 (verify_loop_structure): Same.
27197 * cgraphunit.c (process_function_and_variable_attributes): Same.
27198 * collect-utils.c (collect_execute): Same.
27199 * collect2.c (maybe_run_lto_and_relink): Same.
27200 (is_lto_object_file): Same.
27201 (scan_prog_file): Same.
27202 * convert.c (convert_to_real_1): Same.
27203 * dwarf2out.c (dwarf2out_begin_prologue): Same.
27204 * except.c (verify_eh_tree): Same.
27205 * gcc.c (execute): Same.
27206 (eval_spec_function): Same.
27207 (run_attempt): Same.
27208 (driver::set_up_specs): Same.
27209 (compare_debug_auxbase_opt_spec_function): Same.
27210 * gcov-tool.c (unlink_gcda_file): Same.
27211 (do_merge): Same.
27212 (do_rewrite): Same.
27213 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
27214 * gimplify.c (gimplify_asm_expr): Same.
27215 (gimplify_adjust_omp_clauses): Same.
27216 * hsa-gen.c (gen_hsa_addr_insns): Same.
27217 (gen_hsa_insns_for_load): Same.
27218 (gen_hsa_cmp_insn_from_gimple): Same.
27219 (gen_hsa_insns_for_operation_assignment): Same.
27220 (gen_get_level): Same.
27221 (gen_hsa_alloca): Same.
27222 (omp_simple_builtin::generate): Same.
27223 (gen_hsa_atomic_for_builtin): Same.
27224 (gen_hsa_insns_for_call): Same.
27225 * input.c (dump_location_info): Same.
27226 * ipa-devirt.c (compare_virtual_tables): Same.
27227 * ira.c (ira_setup_eliminable_regset): Same.
27228 * lra-assigns.c (lra_assign): Same.
27229 * lra-constraints.c (lra_constraints): Same.
27230 * lto-streamer-in.c (lto_input_mode_table): Same.
27231 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
27232 (merge_and_complain): Same.
27233 (compile_offload_image): Same.
27234 (compile_images_for_offload_targets): Same.
27235 (debug_objcopy): Same.
27236 (run_gcc): Same.
27237 (main): Same.
27238 * opts.c (print_specific_help): Same.
27239 (parse_no_sanitize_attribute): Same.
27240 (print_help): Same.
27241 (handle_param): Same.
27242 * plugin.c (add_new_plugin): Same.
27243 (parse_plugin_arg_opt): Same.
27244 (try_init_one_plugin): Same.
27245 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
27246 operators, and types in diagnostics. Correct quoting and spelling
27247 issues.
27248 * read-rtl-function.c (parse_edge_flag_token): Same.
27249 (function_reader::parse_enum_value): Same.
27250 * reg-stack.c (check_asm_stack_operands): Same.
27251 * regcprop.c (validate_value_data): Same.
27252 * sched-rgn.c (make_pass_sched_fusion): Same.
27253 * stmt.c (check_unique_operand_names): Same.
27254 * targhooks.c (default_target_option_pragma_parse): Same.
27255 * tlink.c (recompile_files): Same.
27256 * toplev.c (process_options): Same.
27257 (do_compile): Same.
27258 * trans-mem.c (diagnose_tm_1): Same.
27259 (ipa_tm_scan_irr_block): Same.
27260 (ipa_tm_diagnose_transaction): Same.
27261 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
27262 format a tree code name in a diagnostic.
27263 (verify_types_in_gimple_min_lval): Same.
27264 (verify_types_in_gimple_reference): Same.
27265 (verify_gimple_call): Same.
27266 (verify_gimple_assign_unary): Same.
27267 (verify_gimple_assign_binary): Same.
27268 (verify_gimple_assign_ternary): Same.
27269 (verify_gimple_assign_single): Same.
27270 (verify_gimple_switch): Same.
27271 (verify_gimple_label): Same.
27272 (verify_gimple_phi): Same.
27273 (verify_gimple_in_seq): Same.
27274 (verify_eh_throw_stmt_node): Same.
27275 (collect_subblocks): Same.
27276 (gimple_verify_flow_info): Same.
27277 (do_warn_unused_result): Same.
27278 * tree-inline.c (expand_call_inline): Same.
27279 * tree-into-ssa.c (update_ssa): Same.
27280 * tree.c (tree_int_cst_elt_check_failed): Same.
27281 (tree_vec_elt_check_failed): Same.
27282 (omp_clause_operand_check_failed): Same.
27283 (verify_type_variant): Same.
27284 (verify_type): Same.
27285 * value-prof.c (verify_histograms): Same.
27286 * varasm.c (assemble_start_function): Same.
27287
27288 2019-05-16 Martin Sebor <msebor@redhat.com>
27289
27290 * config/i386/i386-expand.c (get_element_number): Quote keywords
27291 and other internal names in diagnostics. Adjust other diagnostic
27292 formatting issues noted by -Wformat-diag.
27293 * config/i386/i386-features.c
27294 (ix86_mangle_function_version_assembler_name): Same.
27295 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
27296 * config/i386/i386.c (ix86_function_type_abi): Same.
27297 (ix86_function_ms_hook_prologue): Same.
27298 (classify_argument): Same.
27299 (ix86_expand_prologue): Same.
27300 (ix86_md_asm_adjust): Same.
27301 (ix86_memmodel_check): Same.
27302
27303 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
27304
27305 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
27306 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
27307 and fpxx modes.
27308
27309 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
27310
27311 PR target/90497
27312 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
27313 intrinsics without SSE/SSE2/SSSE3.
27314 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
27315 check.
27316 (*mmx_uavgv8qi3): Likewise.
27317
27318 2019-05-17 Richard Biener <rguenther@suse.de>
27319
27320 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
27321 VEC_PERM_EXPR as __VEC_PERM with -gimple.
27322
27323 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
27324
27325 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
27326 vec_sldw insn pattern.
27327
27328 2019-05-17 Richard Biener <rguenther@suse.de>
27329
27330 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
27331
27332 2019-05-17 Martin Liska <mliska@suse.cz>
27333
27334 PR driver/90496
27335 * toplev.c (output_stack_usage): With LTO and sanitizer it
27336 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
27337 has no file location.
27338
27339 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27340
27341 PR c++/90484
27342 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
27343 sz0 is equal to sz1, instead return false in that case.
27344
27345 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
27346 has non-constant expression, force sctx.lane and use two
27347 argument IFN_GOMP_SIMD_LANE instead of single argument.
27348 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
27349 two argument IFN_GOMP_SIMD_LANE without lhs.
27350 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
27351 member.
27352 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
27353 Define.
27354 (LOOP_REQUIRES_VERSIONING): Or in
27355 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
27356 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
27357 simd_if_cond.
27358 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
27359 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
27360 from simd if clause if needed.
27361
27362 2019-05-16 Richard Biener <rguenther@suse.de>
27363
27364 * tree-affine.c (expr_to_aff_combination): New function split
27365 out from...
27366 (tree_to_aff_combination): ... here.
27367 (aff_combination_expand): Avoid building a GENERIC tree.
27368
27369 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
27370
27371 * cgraphunit.c (cgraph_node::expand_thunk): Remove
27372 assemble_start_function and assemble_end_function calls.
27373 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
27374 assemble_start_function and assemble_end_function.
27375 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
27376 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
27377 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
27378 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
27379 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
27380 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
27381 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
27382 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
27383 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
27384 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
27385 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
27386 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
27387 Likewise.
27388 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
27389 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
27390 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
27391 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
27392 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
27393 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
27394 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
27395 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
27396 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
27397 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
27398 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
27399 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
27400 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
27401 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
27402 Likewise.
27403 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
27404 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
27405 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
27406
27407 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
27408
27409 * tree-ssa-alias.c (alias_stats): Add
27410 aliasing_component_refs_p_may_alias and
27411 aliasing_component_refs_p_no_alias.
27412 (dump_alias_stats): Print aliasing_component_refs_p stats.
27413 (aliasing_component_refs_p): Update stats.
27414
27415 2019-05-16 Martin Liska <mliska@suse.cz>
27416
27417 PR lto/90500
27418 * multiple_target.c (expand_target_clones): Do not allow
27419 target_clones being used with a symbol that is an alias.
27420
27421 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
27422
27423 PR tree-optimization/90394
27424 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
27425 positives rather than ICE for cases where (code2 == NE_EXPR
27426 && code1 == BIT_AND_EXPR).
27427
27428 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27429
27430 PR fortran/90329
27431 * tree-core.h (struct tree_decl_common): Document
27432 decl_nonshareable_flag for PARM_DECLs.
27433 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
27434 * calls.c (expand_call): Don't try tail call if caller
27435 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
27436 passed on the stack and callee needs to pass any arguments on the
27437 stack.
27438 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27439 else if instead of series of mutually exclusive ifs. Handle
27440 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
27441 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27442
27443 * lto-streamer.h (LTO_major_version): Bump to 9.
27444
27445 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
27446
27447 PR tree-optimization/90106
27448 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
27449 new parameter as new internal function call, also move it to new
27450 basic block.
27451 (use_internal_fn): Pass internal function call to
27452 shrink_wrap_one_built_in_call_with_conds.
27453
27454 2019-05-15 Jakub Jelinek <jakub@redhat.com>
27455
27456 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
27457 max_vf to 1.
27458 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
27459 safelen_int and set loop->dont_vectorize.
27460
27461 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27462
27463 PR target/89021
27464 * config/i386/i386-builtin.def: Enable MMX intrinsics with
27465 SSE/SSE2/SSSE3.
27466 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27467 Likewise.
27468 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
27469 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
27470 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
27471 is defined.
27472
27473 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27474
27475 PR target/89021
27476 * config/i386/mmx.md (*vec_dupv2sf): Changed to
27477 define_insn_and_split to support SSE emulation.
27478 (*vec_extractv2sf_0): Likewise.
27479 (*vec_extractv2sf_1): Likewise.
27480 (*vec_extractv2si_0): Likewise.
27481 (*vec_extractv2si_1): Likewise.
27482 (*vec_extractv2si_zext_mem): Likewise.
27483 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
27484 (vec_extractv2sf_1 splitter): Likewise.
27485 (vec_extractv2sfsf): Likewise.
27486 (vec_setv2si): Likewise.
27487 (vec_extractv2si_1 splitter): Likewise.
27488 (vec_extractv2sisi): Likewise.
27489 (vec_setv4hi): Likewise.
27490 (vec_extractv4hihi): Likewise.
27491 (vec_setv8qi): Likewise.
27492 (vec_extractv8qiqi): Likewise.
27493 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27494 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27495 (vec_extractv2sisi): Likewise.
27496 (vec_extractv4hihi): Likewise.
27497 (vec_extractv8qiqi): Likewise.
27498 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27499 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27500 (vec_initv2sisi): Likewise.
27501 (vec_initv4hihi): Likewise.
27502 (vec_initv8qiqi): Likewise.
27503 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
27504 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27505 (vec_setv4hi): Likewise.
27506 (vec_setv8qi): Likewise.
27507
27508 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27509
27510 PR target/89021
27511 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27512 TARGET_MMX_WITH_SSE.
27513 (MMXMODE:*mov<mode>_internal): Likewise.
27514 (MMXMODE:movmisalign<mode>): Likewise.
27515
27516 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
27517
27518 PR target/89021
27519 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27520 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27521 (sse2_cvtpd2pi): Ditto.
27522 (sse2_cvttpd2pi): Ditto.
27523 (*vec_concatv2sf_sse4_1): Ditto.
27524 (*vec_concatv2sf_sse): Ditto.
27525 (*vec_concatv2si_sse4_1): Ditto.
27526 (*vec_concatv2si): Ditto.
27527 (*vec_concatv4si_0): Ditto.
27528 (*vec_concatv2di_0): Ditto.
27529
27530 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27531
27532 PR target/89021
27533 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27534
27535 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27536
27537 PR target/89021
27538 * config/i386/sse.md (ssse3_palignrdi): Changed to
27539 define_insn_and_split to support SSE emulation.
27540
27541 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27542
27543 PR target/89021
27544 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27545
27546 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27547
27548 PR target/89021
27549 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27550 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27551 SSE emulation.
27552
27553 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27554
27555 PR target/89021
27556 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27557 or TARGET_MMX_WITH_SSE.
27558 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27559
27560 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27561
27562 PR target/89021
27563 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27564
27565 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27566
27567 PR target/89021
27568 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27569 Changed to define_insn_and_split to support SSE emulation.
27570
27571 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27572
27573 PR target/89021
27574 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27575 Changed to define_insn_and_split to support SSE emulation.
27576
27577 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27578
27579 PR target/89021
27580 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27581 (*mmx_<emms>): This.
27582 (mmx_<emms>): New expander.
27583
27584 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27585
27586 PR target/89021
27587 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27588 support.
27589 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27590
27591 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27592
27593 PR target/89021
27594 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27595
27596 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27597
27598 PR target/89021
27599 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27600
27601 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27602
27603 PR target/89021
27604 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27605 TARGET_MMX_WITH_SSE.
27606 (*mmx_uavgv4hi3): Add SSE emulation.
27607
27608 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27609
27610 PR target/89021
27611 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27612 and TARGET_MMX_WITH_SSE.
27613 (*mmx_uavgv8qi3): Add SSE emulation.
27614
27615 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27616
27617 PR target/89021
27618 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27619 maskmovdqu for __MMX_WITH_SSE__.
27620
27621 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27622
27623 PR target/89021
27624 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27625 TARGET_MMX and TARGET_MMX_WITH_SSE.
27626 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27627
27628 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27629
27630 PR target/89021
27631 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27632 define_insn_and_split to support SSE emulation.
27633
27634 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27635
27636 PR target/89021
27637 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27638 and TARGET_MMX_WITH_SSE.
27639 (mmx_<code>v8qi3): Likewise.
27640 (smaxmin:<code>v4hi3): New.
27641 (umaxmin:<code>v8qi3): Likewise.
27642 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27643 (umaxmin:*mmx_<code>v8qi3): Likewise.
27644
27645 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27646
27647 PR target/89021
27648 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27649 TARGET_MMX_WITH_SSE.
27650 (*mmx_pinsrw): Add SSE emulation.
27651
27652 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27653
27654 PR target/89021
27655 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27656
27657 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27658
27659 PR target/89021
27660 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27661 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27662 SSE emulation.
27663
27664 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27665
27666 PR target/89021
27667 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27668 (sse_cvttps2pi): Likewise.
27669
27670 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27671
27672 PR target/89021
27673 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27674 TARGET_MMX_WITH_SSE.
27675 (mmx_pshufw_1): Add SSE emulation.
27676 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27677 TARGET_MMX_WITH_SSE to support SSE emulation.
27678
27679 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27680
27681 PR target/89021
27682 * config/i386/constraints.md (Yw): New constraint.
27683 * config/i386/mmx.md (*vec_dupv2si): Changed to
27684 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27685 support SSE emulation.
27686
27687 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27688
27689 PR target/89021
27690 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27691 TARGET_MMX_WITH_SSE.
27692 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27693 support.
27694 (mmx_gt<mode>3): Likewise.
27695
27696 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27697
27698 PR target/89021
27699 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27700 TARGET_MMX_WITH_SSE. Add SSE support.
27701
27702 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27703
27704 PR target/89021
27705 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27706 TARGET_MMX_WITH_SSE.
27707 (any_logic:<code><mode>3): New.
27708 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27709 Add SSE support.
27710
27711 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27712
27713 PR target/89021
27714 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27715 TARGET_MMX_WITH_SSE. Add SSE emulation.
27716 (mmx_<shift_insn><mode>3): Likewise.
27717 (ashr<mode>3): New.
27718 (<shift_insn><mode>3): Likewise.
27719
27720 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27721
27722 PR target/89021
27723 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27724 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27725
27726 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27727
27728 PR target/89021
27729 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27730 TARGET_MMX_WITH_SSE.
27731 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27732 SSE support.
27733
27734 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27735
27736 PR target/89021
27737 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27738 TARGET_MMX_WITH_SSE.
27739 (mulv4hi3): New.
27740 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27741 support.
27742
27743 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27744
27745 PR target/89021
27746 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27747 (plusminus:mmx_<plusminus_insn><mode>3): Check
27748 TARGET_MMX_WITH_SSE.
27749 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27750 (<plusminus_insn><mode>3): New.
27751 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27752 (*mmx_<plusminus_insn><mode>3): Likewise.
27753
27754 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27755
27756 PR target/89021
27757 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27758 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27759 prototype.
27760 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27761 define_insn_and_split to support SSE emulation.
27762 (mmx_punpcklbw): Likewise.
27763 (mmx_punpckhwd): Likewise.
27764 (mmx_punpcklwd): Likewise.
27765 (mmx_punpckhdq): Likewise.
27766 (mmx_punpckldq): Likewise.
27767
27768 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27769 Uros Bizjak <ubizjak@gmail.com>
27770
27771 PR target/89021
27772 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27773 New function.
27774 (ix86_split_mmx_pack): Likewise.
27775 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27776 New prototype.
27777 (ix86_split_mmx_pack): Likewise.
27778 * config/i386/i386.md (mmx_isa): New.
27779 (enabled): Also check mmx_isa.
27780 * config/i386/mmx.md (any_s_truncate): New code iterator.
27781 (s_trunsuffix): New code attr.
27782 (mmx_packsswb): Removed.
27783 (mmx_packssdw): Likewise.
27784 (mmx_packuswb): Likewise.
27785 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27786 MMX packsswb/packuswb with SSE2.
27787 (mmx_packssdw): Likewise.
27788 * config/i386/predicates.md (register_mmxmem_operand): New.
27789
27790 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27791
27792 PR target/89021
27793 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27794 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27795 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27796 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27797 (ix86_vector_mode_supported_p): Likewise.
27798 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27799
27800 2019-05-15 Martin Liska <mliska@suse.cz>
27801
27802 PR middle-end/90478
27803 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27804 Check for overflow.
27805
27806 2019-05-15 Richard Biener <rguenther@suse.de>
27807
27808 * tree-into-ssa.c (pass_build_ssa::execute): Run
27809 update_address_taken before going into SSA.
27810
27811 2019-05-15 Richard Biener <rguenther@suse.de>
27812
27813 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27814 as __BIT_FIELD_REF with type with -gimple.
27815
27816 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27817
27818 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27819 semantically equivalent branches (left over after prior refactorings).
27820
27821 2019-05-15 Richard Biener <rguenther@suse.de>
27822
27823 PR tree-optimization/88828
27824 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27825 bogus check.
27826
27827 2019-05-14 Richard Biener <rguenther@suse.de>
27828
27829 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27830 as __VIEW_CONVERT with -gimple.
27831
27832 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27833
27834 PR target/82920
27835 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27836 Darwin.
27837
27838 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27839
27840 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27841 define_split to become a define_insn_and_split.
27842
27843 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27844
27845 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27846 arguments.
27847 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27848 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27849 (sibcall_epilogue): Adjust.
27850 (epilogue): Adjust.
27851
27852 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27853
27854 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27855 to unsupported ones.
27856 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27857 * config.host: Likewise.
27858 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27859 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27860 __svr4__]: Remove "brand" fallback.
27861 [!KSTAT_DATA_STRING]: Remove.
27862 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27863 to *-*-solaris2*.
27864 (comdat_group): Likewise.
27865 (set_have_as_tls): Likewise.
27866 (gcc_cv_target_dl_iterate_phdr): Likewise.
27867 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27868 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27869 * configure: Regenerate.
27870 * doc/install.texi: Simplify Solaris target triplets.
27871 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27872 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27873 Remove Solaris 10 references.
27874 Remove obsolete Solaris bug reference.
27875 (Specific, sparc-sun-solaris2.10): Remove.
27876
27877 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27878
27879 * config/i386/i386.md (any_div): New code iterator.
27880 (paired_mod): New code attribute.
27881 (sgnprefix): Handle DIV and UDIV RTXes.
27882 (u): Ditto.
27883 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27884 and udivmod<mode>4 patterns using any_div code iterator.
27885 (divmod splitters): Macroize splitters using any_div code iterator.
27886 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27887 (*udivmodsi4_pow2_zext_2): Ditto.
27888 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27889 and *udivmod<mode>4_noext patterns using any_div code iterator.
27890 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27891 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27892 patterns using any_div code iterator.
27893 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27894 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27895 patterns using any_div code iterator.
27896 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27897 udivmodhiqi3 patterns using any_extend code iterator.
27898
27899 2019-05-14 Richard Biener <rguenther@suse.de>
27900 H.J. Lu <hongjiu.lu@intel.com>
27901
27902 PR tree-optimization/88828
27903 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27904 permuting in a single non-constant element not extracted
27905 from a vector.
27906
27907 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27908
27909 * internal-fn.def (SIGNBIT): New.
27910 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27911 defined.
27912 (signbitv4sf2): Likewise.
27913
27914 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27915
27916 PR target/90357
27917 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27918 next insn when the SRC reg is dead.
27919
27920 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27921
27922 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27923 (alloc_cand_and_find_basis): Ditto.
27924 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27925 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27926 (create_add_imm_cand, slsr_process_cast): Ditto.
27927 (slsr_process_copy, replace_mult_candidate): Ditto.
27928 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27929 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27930 (pass_strength_reduction::execute): Init the first NULL element.
27931
27932 2019-05-13 Nathan Sidwell <nathan@acm.org>
27933
27934 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27935 (run_attempt): Reformat line break.
27936
27937 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27938
27939 PR target/90418
27940 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27941 data registers in sibcall epilogues.
27942 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27943
27944 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27945
27946 PR target/89221
27947 * configure.ac (--enable-frame-pointer):
27948 Disable by default for cygwin and mingw.
27949 * configure: Regenerate.
27950
27951 2019-05-13 Nathan Sidwell <nathan@acm.org>
27952
27953 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27954 piece of code.
27955 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27956 (gen_member_die): Move abstract origin check earlier. Only VARs
27957 can be static_inline_p. Simplify splicing control flow.
27958
27959 2019-05-13 Richard Biener <rguenther@suse.de>
27960
27961 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27962 VIEW_CONVERT_EXPR.
27963 (vect_build_slp_tree_1): Likewise.
27964
27965 2019-05-13 Richard Biener <rguenther@suse.de>
27966
27967 PR tree-optimization/90402
27968 * tree-if-conv.c (tree_if_conversion): Value number only
27969 the loop body by making the latch an exit of the region
27970 as well.
27971 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27972 processing PHIs.
27973 (do_rpo_vn): Deal with multiple edges into the entry block
27974 that are not backedges inside the region by skipping PHIs
27975 of the entry block.
27976
27977 2019-05-13 Richard Biener <rguenther@suse.de>
27978
27979 PR tree-optimization/90316
27980 * tree-ssa-pre.c (insert_aux): Fold into ...
27981 (insert): ... this function. Use a RPO walk to reduce the
27982 number of required iterations.
27983
27984 2019-05-13 Martin Liska <mliska@suse.cz>
27985
27986 PR tree-optimization/90416
27987 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27988 string instead of passing the second part as va_arg argument.
27989
27990 2019-05-13 Martin Liska <mliska@suse.cz>
27991
27992 PR gcov-profile/90380
27993 * gcov.c (handle_cycle): Do not support zero cycle count,
27994 it should not be possible.
27995 (path_contains_zero_cycle_arc): New function.
27996 (circuit): Ignore zero cycle arc counts.
27997
27998 2019-05-13 Martin Liska <mliska@suse.cz>
27999
28000 PR gcov-profile/90380
28001 * gcov.c (enum loop_type): Remove the enum and
28002 the operator.
28003 (handle_cycle): Assert that we should not reach
28004 a negative count.
28005 (circuit): Use loop_found instead of a tri-state loop_type.
28006 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
28007 happen.
28008
28009 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
28010
28011 PR target/82920
28012 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
28013 (ix86_output_indirect_branch_via_reg): Use output mechanism
28014 accounting for __USER_LABEL_PREFIX__.
28015 (ix86_output_indirect_branch_via_push): Likewise.
28016 (ix86_output_function_return): Likewise.
28017 (ix86_output_indirect_function_return): Likewise.
28018
28019 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
28020
28021 * doc/md.texi: Document use of code attributes in rtx patterns.
28022 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
28023 * read-rtl.c (find_code): Split out search loops into...
28024 (maybe_find_code): ...this new function.
28025 (check_code_iterator): Make the error message more informative.
28026 (check_code_attribute): New function.
28027 (rtx_reader::rtx_alloc_for_name): Likewise.
28028 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
28029 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
28030 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
28031 <max_opp> directly as an rtx code instead of via a match_operator.
28032 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
28033 (<su>abd<mode>_3): Update accordingly.
28034
28035 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
28036
28037 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
28038 is given, print the state of the EH "save world" computation for
28039 Darwin.
28040
28041 2019-05-11 Jakub Jelinek <jakub@redhat.com>
28042
28043 PR c++/59813
28044 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
28045 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
28046
28047 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
28048
28049 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
28050 Use pinsrd for TARGET_SSE4_1.
28051 * config/i386/sse.md (movdi_to_sse): Ditto.
28052
28053 2019-05-10 Richard Biener <rguenther@suse.de>
28054
28055 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
28056 (do_rpo_vn): Initialize next_value_id.
28057
28058 2019-05-10 Martin Liska <mliska@suse.cz>
28059
28060 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28061 Fix plural form.
28062
28063 2019-05-10 Jakub Jelinek <jakub@redhat.com>
28064
28065 PR tree-optimization/90385
28066 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
28067 arguments of the exit phis.
28068
28069 PR c++/90383
28070 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
28071 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
28072 id->do_not_fold.
28073 (copy_tree_body_r): Likewise.
28074 (copy_fn): Set id.do_not_fold to true.
28075
28076 2019-05-10 Martin Liska <mliska@suse.cz>
28077
28078 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
28079 Reapply changes from r269790.
28080
28081 2019-05-10 Martin Liska <mliska@suse.cz>
28082
28083 PR middle-end/90340
28084 * doc/invoke.texi: New params.
28085 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
28086 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
28087 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
28088 Use it.
28089 * tree-switch-conversion.h (struct jump_table_cluster):
28090 Likewise.
28091
28092 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
28093
28094 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
28095
28096 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
28097
28098 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
28099
28100 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
28101
28102 PR rtl-optimization/88879
28103 * sel-sched.c (sel_target_adjust_priority): Remove assert.
28104
28105 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
28106
28107 PR target/90405
28108 * config/arm/arm.c (callee_saved_reg_p): Move before
28109 thumb_find_work_register.
28110 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
28111 thumb_find_work_register. Only call df_get_live_out once.
28112 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
28113 (thumb_find_work_register): Use
28114 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
28115 algorithms to locate a spare call clobbered reg.
28116
28117 2019-05-09 Martin Liska <mliska@suse.cz>
28118
28119 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
28120 and MAX_EXPR in GIMPLE FE format.
28121
28122 2019-05-09 Martin Liska <mliska@suse.cz>
28123
28124 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
28125 * gimple-pretty-print.c (dump_gimple_bb_header):
28126 Dump BB count.
28127 (pp_cfg_jump): Dump edge probability.
28128 * profile-count.c (profile_quality_as_string): Simplify
28129 with a static array.
28130 (parse_profile_quality): New function.
28131 (profile_count::dump): Simplify with a static array.
28132 (profile_count::from_gcov_type): Add new argument.
28133 * profile-count.h (parse_profile_quality): Likewise.
28134 * predict.h (set_hot_bb_threshold): New.
28135 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
28136 New param.
28137 * predict.c (get_hot_bb_threshold): Set from the new param.
28138 (set_hot_bb_threshold): New.
28139
28140 2019-05-09 Richard Biener <rguenther@suse.de>
28141
28142 PR tree-optimization/90395
28143 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
28144 rewrite vector stores that throw internally.
28145
28146 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
28147
28148 * cif-code.def (CHKP): Remove.
28149
28150 PR target/89221
28151 * configure.ac (--enable-frame-pointer): Disable by default for
28152 GNU systems.
28153 * configure: Regenerate.
28154
28155 2019-05-09 Alan Modra <amodra@gmail.com>
28156
28157 PR target/89271
28158 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
28159 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
28160 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
28161 cost for general <-> vsx when direct moves are available.
28162 Cost union classes at minimal cost for any reg in the class.
28163 Correct calculation for moves between vsx, float, and altivec.
28164 Don't return a low cost for moves between special regs. Don't
28165 use hard coded register numbers.
28166 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
28167 (rs6000_ira_change_pseudo_allocno_class): New function.
28168 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
28169 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
28170 alternatives.
28171 (movsi_internal1): Don't disparage vector alternatives.
28172 (mov<mode>_internal): Likewise, excepting alternative that
28173 will be split.
28174 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
28175 we <- b alternative.
28176
28177 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28178
28179 PR c++/59813
28180 PR tree-optimization/89060
28181 * tree-ssa-live.h (live_vars_map): New typedef.
28182 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
28183 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
28184 (struct compute_live_vars_data): New type.
28185 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
28186 live_vars_at_stmt, destroy_live_vars): New functions.
28187 * tree-tailcall.c: Include tree-ssa-live.h.
28188 (live_vars, live_vars_vec): New global variables.
28189 (find_tail_calls): Perform variable life analysis before punting.
28190 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
28191 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
28192 member.
28193 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
28194 Perform variable life analysis to select variables that really need
28195 clobbers added.
28196 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
28197 instead set id->eh_landing_pad_dest and assert it is the same.
28198 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
28199
28200 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
28201 Richard Earnshaw <rearnsha@arm.com>
28202
28203 PR target/88167
28204 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
28205 function.
28206 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
28207 (thumb1_compute_save_core_reg_mask): Don't force a spare work
28208 register if both the epilogue and prologue can use call-clobbered
28209 regs.
28210 (thumb1_unexpanded_epilogue): Use
28211 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
28212 picking temporaries for restoring high regs to match that of the
28213 prologue where possible.
28214 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
28215 the list of work registers. Detect if the return address is still live
28216 at the end of the prologue and avoid using it for a work register if so.
28217 If the return address is not live, add LR to the list of pushable regs
28218 after the first pass.
28219
28220 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28221
28222 PR tree-optimization/90078
28223 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
28224 (INFTY): Increase the value for infinite cost.
28225 (struct comp_cost): Promote type of members to int64_t.
28226 (infinite_cost): Don't set complexity in initialization.
28227 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
28228 overflows to infinite_cost.
28229 (adjust_setup_cost): Promote type of parameter and cost computation
28230 to int64_t.
28231 (struct ainc_cost_data, struct iv_ca): Promote type of member to
28232 int64_t.
28233 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
28234 cost computation to int64_t.
28235 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
28236 int64_t's format specifier in dump.
28237
28238 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
28239
28240 PR tree-optimization/90240
28241 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
28242 with respect to scaling factor pre-computed for each basic block.
28243 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
28244 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
28245 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
28246 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
28247 live range for array of loop's basic blocks. Cleanup aux field of
28248 loop's basic blocks.
28249
28250 2019-05-08 Jakub Jelinek <jakub@redhat.com>
28251
28252 PR tree-optimization/90356
28253 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
28254
28255 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
28256
28257 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
28258 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
28259 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
28260 (ix86_handle_option): Handle -mavx512bf16.
28261 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
28262 to extra_headers.
28263 * config/i386/avx512bf16vlintrin.h: New.
28264 * config/i386/avx512bf16intrin.h: New.
28265 * config/i386/cpuid.h (bit_AVX512BF16): New.
28266 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
28267 * config/i386/i386-builtin-types.def: Add new types.
28268 * config/i386/i386-builtin.def: Add new builtins.
28269 * config/i386/i386-c.c (ix86_target_macros_internal): Define
28270 __AVX512BF16__.
28271 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
28272 (ix86_option_override_internal): Handle BF16.
28273 (ix86_valid_target_attribute_inner_p): Ditto.
28274 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
28275 * config/i386/i386-builtin.c (enum processor_features): Add
28276 F_AVX512BF16.
28277 (static const _isa_names_table isa_names_table): Ditto.
28278 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
28279 (PTA_AVX512BF16): Ditto.
28280 * config/i386/i386.opt: Add -mavx512bf16.
28281 * config/i386/immintrin.h: Include avx512bf16intrin.h
28282 and avx512bf16vlintrin.h.
28283 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
28284 avx512f_cvtneps2bf16_<mode><mask_name>,
28285 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
28286 * config/i386/subst.md (mask_half): Add new subst.
28287 * doc/invoke.texi: Document -mavx512bf16.
28288
28289 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
28290
28291 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
28292 Delete declaration.
28293 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
28294 (rs6000_debug_legitimize_reload_address): Delete.
28295 (rs6000_legitimize_reload_address_ptr): Delete.
28296 (rs6000_option_override_internal): Adjust.
28297 (mem_operand_gpr): Adjust comment.
28298 (legitimate_lo_sum_address_p): Ditto.
28299 (rs6000_legitimize_reload_address): Delete.
28300 (rs6000_debug_legitimize_reload_address): Delete.
28301 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
28302
28303 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
28304
28305 PR target/89765
28306 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28307 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
28308 to compute vector element selector for both constant and variable
28309 operands.
28310
28311 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28312
28313 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
28314 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
28315 ashrdi3_cvt using SWI48 mode iterator.
28316
28317 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28318
28319 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
28320 (aarch64_<su>abd<mode>_3): Likewise.
28321 (*aarch64_<su>abd<mode>_3): New define_insn.
28322 (<sur>sad<vsi2qi>): New define_expand.
28323 * config/aarch64/iterators.md: Added MAX_OPP attribute.
28324 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
28325 (build_vect_cond_expr): Likewise.
28326
28327 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
28328
28329 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
28330 clobbers outside of accessible_reg_set.
28331 * config/i386/i386.c (ix86_conditional_register_usage):
28332 Disable register sets by clearing corresponding bits in
28333 accessible_reg_set. Do not set corresponding bits in fixed_regs,
28334 call_used_regs and don't clear corresponding reg_names array members.
28335
28336 2019-05-07 Richard Biener <rguenther@suse.de>
28337
28338 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
28339 not specified still compute a comp_vectype for invariant
28340 compares.
28341
28342 2019-05-07 Richard Biener <rguenther@suse.de>
28343
28344 PR tree-optimization/90316
28345 * tree-ssa-pre.c (translate_vuse_through_block): When
28346 same_valid is NULL do not bother to search for a virtual
28347 PHI continuation.
28348 (phi_translate_1): When operands changed we cannot keep
28349 the same value-number so do not bother to ask whether
28350 that's possible from translate_vuse_through_block.
28351
28352 2019-05-07 Martin Liska <mliska@suse.cz>
28353
28354 * bitmap.c (bitmap_register): Come up with
28355 alloc_descriptor_max_uid and assign it for
28356 a new bitmap.
28357 (register_overhead): Use get_descriptor as
28358 a descriptor.
28359 (release_overhead): New.
28360 (bitmap_elem_to_freelist): Call it.
28361 (bitmap_elt_clear_from): Likewise.
28362 (bitmap_obstack_free): Likewise.
28363 (bitmap_move): Sensitively release memory.
28364 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
28365 (bitmap_initialize): Initialize alloc_descriptor to zero.
28366 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
28367
28368 2019-05-07 Richard Biener <rguenther@suse.de>
28369
28370 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
28371 we build a SLP node. Remove max_size and limiting.
28372 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
28373
28374 2019-05-07 Richard Biener <rguenther@suse.de>
28375
28376 PR tree-optimization/90316
28377 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
28378 limit by reference.
28379 (walk_non_aliased_vuses): Take walking limit argument.
28380 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
28381 walking if it is reached instead of just counting.
28382 (get_continuation_for_phi): Likewise.
28383 (walk_non_aliased_vuses): Likewise, instead of leaving counter
28384 limiting to the callback.
28385 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
28386 (vn_reference_lookup_3): Likewise.
28387 (vn_reference_lookup_pieces): Likewise.
28388 (vn_reference_lookup): Likewise.
28389 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
28390 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
28391 (avail_exprs_stack::lookup_avail_expr): Likewise.
28392
28393 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
28394
28395 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
28396 for comparaible types in the second direction even if first one
28397 hits incomparable type.
28398
28399 2019-05-07 Richard Biener <rguenther@suse.de>
28400
28401 PR lto/90369
28402 * lto-wrapper.c (debug_objcopy): Use the original filename
28403 including archive offset for the filename used for -save-temps.
28404
28405 2019-05-07 Li Jia He <helijia@linux.ibm.com>
28406
28407 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
28408 detection.
28409
28410 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
28411 Hongtao Liu <hongtao.liu@intel.com>
28412
28413 PR target/89750
28414 PR target/86444
28415 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
28416 Modified, original implementation isn't correct.
28417
28418 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28419
28420 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
28421 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
28422 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
28423 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
28424 (FRAME_POINTER_REGNUM): Change numbering.
28425 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
28426 (alt_reg_names): Adjust.
28427 (rs6000_conditional_register_usage): Don't mark hard register 64 as
28428 fixed.
28429 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28430 (DWARF_FRAME_REGISTERS): Delete.
28431 (DWARF2_FRAME_REG_OUT): Fix whitespace.
28432 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28433 Adjust.
28434 (REG_ALLOC_ORDER): Adjust.
28435 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
28436 (REG_CLASS_CONTENTS): Adjust.
28437 (RETURN_ADDR_RTX): Change comment.
28438 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
28439 instead of 67.
28440 (REGISTER_NAMES): Adjust.
28441 (ADDITIONAL_REGISTER_NAMES): Adjust.
28442 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28443
28444 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28445
28446 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
28447 Delete.
28448 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28449 (DWARF_FRAME_REGISTERS): Adjust.
28450 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28451 Adjust.
28452 (REG_ALLOC_ORDER): Adjust.
28453 (enum reg_class): Delete SPR_REGS.
28454 (REG_CLASS_NAMES): Delete SPR_REGS.
28455 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
28456 (REGISTER_NAMES): Adjust.
28457 (ADDITIONAL_REGISTER_NAMES): Adjust.
28458 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28459 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
28460 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
28461 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
28462 (htm_spr_regno): Delete.
28463 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
28464 argument.
28465 (rs6000_dbx_register_number): Adjust.
28466
28467 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28468
28469 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
28470
28471 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28472
28473 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
28474 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
28475
28476 2019-05-06 Jakub Jelinek <jakub@redhat.com>
28477
28478 PR tree-optimization/88709
28479 PR tree-optimization/90271
28480 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
28481 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
28482 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
28483 variable.
28484 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
28485 of the store merging group is larger than
28486 PARAM_STORE_MERGING_MAX_SIZE parameter.
28487 (split_group): Add bzero_first argument. If set, always emit first
28488 the first store which must be = {} of the whole area and then for the
28489 rest of the stores consider all zero bytes as paddings.
28490 (imm_store_chain_info::output_merged_store): Check if first store
28491 is = {} of the whole area and if yes, determine which setting of
28492 bzero_first for split_group gives smaller number of stores. Adjust
28493 split_group callers.
28494 (lhs_valid_for_store_merging_p): Allow decls.
28495 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28496 no elts.
28497 (pass_store_merging::process_store): Likewise.
28498
28499 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
28500
28501 PR target/89424
28502 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28503 handling of V1TImode.
28504
28505 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
28506
28507 PR target/89221
28508 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28509 and enable_frame_pointer ...
28510 * configure.ac: ... here. Update help strings for
28511 --enable-frame-pointer.
28512 * configure: Regenerate.
28513 * config/i386/i386-options.c (ix86_option_override_internal): Remove
28514 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28515 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28516 (USE_X86_64_FRAME_POINTER): Ditto.
28517
28518 2019-05-06 Martin Liska <mliska@suse.cz>
28519
28520 * config.gcc: Append to target_gtfiles and fix indentation.
28521
28522 2019-05-06 Richard Biener <rguenther@suse.de>
28523
28524 PR tree-optimization/90358
28525 * tree-vect-stmts.c (get_group_load_store_type): Properly
28526 detect unused upper half of load.
28527 (vectorizable_load): Likewise.
28528
28529 2019-05-06 Richard Biener <rguenther@suse.de>
28530
28531 PR tree-optimization/88828
28532 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28533 (simplify_vector_constructor): ...here. Handle constants in
28534 the constructor.
28535
28536 2019-05-06 Richard Biener <rguenther@suse.de>
28537
28538 PR tree-optimization/90328
28539 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28540 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28541 is valid in the loop nest before using it.
28542 (initialize_data_dependence_relation): Adjust.
28543 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28544 loop as loop-nest to dr_may_alias_p.
28545
28546 2019-05-06 Richard Biener <rguenther@suse.de>
28547
28548 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28549
28550 2019-05-06 Richard Biener <rguenther@suse.de>
28551
28552 PR tree-optimization/90316
28553 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28554 compute target on demand.
28555 (get_continuation_for_phi): Remove code walking stmts to
28556 get to a target virtual operand which could end up being
28557 quadratic.
28558
28559 2019-05-06 Martin Liska <mliska@suse.cz>
28560
28561 PR sanitizer/90312
28562 * config/i386/i386-options.c (ix86_option_override_internal): Error only
28563 when -mabi is selected to a non-default version.
28564
28565 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28566 Martin Liska <mliska@suse.cz>
28567
28568 * Makefile.in: Add lto-dump.texi.
28569 * cgraph.h: Add new functions get_visibility_string and
28570 get_symtab_type_string.
28571 * doc/gcc.texi: Include lto-dump section.
28572 * doc/lto-dump.texi: New file.
28573 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28574 (parse_dump_option): Factor out this function.
28575 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28576 (parse_dump_option): Export the function.
28577 * symtab.c (symtab_node::get_visibility_string): New function.
28578 (symtab_node::get_symtab_type_string): Likewise.
28579
28580 2019-05-06 Martin Liska <mliska@suse.cz>
28581
28582 * config/i386/i386-builtins.c: New file.
28583 * config/i386/i386-builtins.h: New file.
28584 * config/i386/i386-expand.c: New file.
28585 * config/i386/i386-expand.h: New file.
28586 * config/i386/i386-features.c: New file.
28587 * config/i386/i386-features.h: New file.
28588 * config/i386/i386-options.c: New file.
28589 * config/i386/i386-options.h: New file.
28590 * config.gcc: Add new files into extra_objs and
28591 target_gtfiles.
28592 * config/i386/i386.c: Split content of the file
28593 into newly introduced files.
28594 * config/i386/i386.h: Declare common variables
28595 and macros.
28596 * config/i386/t-i386: Define dependencies for new files.
28597
28598 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28599
28600 PR target/89400
28601 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28602 Restrict 'all' variant to 32-bit configurations.
28603 (unaligned_loadhiu): Likewise.
28604 (unaligned_storehi): Likewise.
28605 (unaligned_storesi): Likewise.
28606 (unaligned_loadhis): Disable when compiling for thumb1.
28607
28608 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28609
28610 PR tree-optimization/90269
28611 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28612 Ignore clobbers.
28613
28614 2019-05-03 Martin Liska <mliska@suse.cz>
28615
28616 * hash-map.h: Add is_empty function.
28617 * hash-set.h: Likewise.
28618 * hash-table.h: Likewise.
28619 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28620 elements () == 0 (and similar usages).
28621 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28622 * gimplify.c (gimplify_bind_expr): Likewise.
28623 (gimplify_switch_expr): Likewise.
28624 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28625 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28626 * postreload-gcse.c (dump_hash_table): Likewise.
28627 (gcse_after_reload_main): Likewise.
28628 * predict.c (combine_predictions_for_bb): Likewise.
28629 * tree-parloops.c (reduction_phi): Likewise.
28630 (separate_decls_in_region): Likewise.
28631 (transform_to_exit_first_loop): Likewise.
28632 (gen_parallel_loop): Likewise.
28633 (gather_scalar_reductions): Likewise.
28634 (try_create_reduction_list): Likewise.
28635 * var-tracking.c (dump_vars): Likewise.
28636 (emit_notes_for_changes): Likewise.
28637 (vt_emit_notes): Likewise.
28638
28639 2019-05-03 Richard Biener <rguenther@suse.de>
28640
28641 PR tree-optimization/90316
28642 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28643 before running VN.
28644
28645 2019-05-03 Richard Biener <rguenther@suse.de>
28646
28647 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28648 peeling for gaps by loading only lower halves of vectors
28649 if possible.
28650 (vectorizable_load): Likewise.
28651
28652 2019-05-03 Richard Biener <rguenther@suse.de>
28653
28654 PR middle-end/89518
28655 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28656
28657 2019-05-03 Richard Biener <rguenther@suse.de>
28658
28659 PR middle-end/87314
28660 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28661 Handle STRING_CST vs DECL or STRING_CST.
28662
28663 2019-05-03 Richard Biener <rguenther@suse.de>
28664
28665 PR tree-optimization/88963
28666 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28667 vector loads feeding only BIT_FIELD_REFs to component
28668 loads. Rewrite stores fed by CONSTRUCTORs to component
28669 stores.
28670
28671 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28672
28673 * opts.h (finish_options): Remove lang_mask argument.
28674 (print_help, help_option_argument): Declare.
28675 * opts.c (print_help): Remove forward declaration, no longer static.
28676 (finish_options): Remove lang_mask argument, don't call print_help
28677 here.
28678 * opts-global.c (decode_options): Adjust finish_option caller, call
28679 print_help here.
28680
28681 PR tree-optimization/90303
28682 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28683 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28684
28685 2019-05-03 Richard Biener <rguenther@suse.de>
28686
28687 PR tree-optimization/89698
28688 * gimple-fold.c (canonicalize_constructor_val): Early out
28689 for constants, handle unfolded INTEGER_CSTs as they appear in
28690 C++ virtual table ctors.
28691
28692 2019-05-03 Richard Biener <rguenther@suse.de>
28693
28694 * passes.c (execute_function_todo): Remove dead code.
28695
28696 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28697
28698 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28699 the internal register number, for any "real" register.
28700
28701 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28702
28703 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28704 correct numbers for TFHAR, TFIAR, TEXASR.
28705
28706 2019-05-02 Richard Biener <rguenther@suse.de>
28707
28708 PR tree-optimization/89653
28709 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28710 update-address-taken before the pass.
28711 * passes.def (pass_tree_loop_init): Put comment before it.
28712
28713 2019-05-02 Richard Biener <rguenther@suse.de>
28714
28715 PR tree-optimization/89509
28716 * tree-ssa-structalias.c (compute_dependence_clique): Look
28717 at the first subvar when determining whether it is restrict.
28718
28719 2019-05-02 Richard Biener <rguenther@suse.de>
28720
28721 PR tree-optimization/90273
28722 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28723 useless debug stmts.
28724
28725 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28726
28727 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28728 ACLE branch.
28729 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28730 SVE ACLE branch.
28731 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28732 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28733 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28734 (vectorizable_reduction): Use the functions above to vectorize in a
28735 fully masked loop codes that don't have a conditional internal
28736 function.
28737
28738 2019-05-02 Martin Liska <mliska@suse.cz>
28739
28740 * cgraphclones.c: Call valid_attribute_p with 1 for
28741 target_clone.
28742 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28743 it's for target attribute.
28744 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28745 Add new boolean argument.
28746 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28747 Likewise.
28748 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28749 to ix86_valid_target_attribute_inner_p.
28750 (ix86_valid_target_attribute_p): Pass flags argument to
28751 ix86_valid_target_attribute_inner_p.
28752 (get_builtin_code_for_version): Use 0 as it's target attribute.
28753
28754 2019-05-02 Martin Liska <mliska@suse.cz>
28755
28756 * gcc.c (process_command): Add dummy file only
28757 if n_infiles == 0.
28758 * opts-global.c (decode_options): Pass lang_mask.
28759 * opts.c (print_help): New function.
28760 (finish_options): Print --help if help_option_argument
28761 is set.
28762 (common_handle_option): Factor out content of OPT__help_
28763 into print_help.
28764 * opts.h (finish_options): Add new argument.
28765
28766 2019-05-02 Martin Liska <mliska@suse.cz>
28767
28768 PR target/88809
28769 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28770 With -minline-all-stringops use inline expansion using 4B loop.
28771 * doc/invoke.texi: Document the change of
28772 -minline-all-stringops.
28773
28774 2019-05-01 Jeff Law <law@redhat.com>
28775
28776 PR tree-optimization/88797
28777 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28778 PHI feeds a conditional on the RHS of an assignment.
28779
28780 2019-04-30 Andrew Waterman <andrew@sifive.com>
28781 Jim Wilson <jimw@sifive.com>
28782
28783 * config/riscv/constraints.md (L): New.
28784 * config/riscv/predicates.md (lui_operand): New.
28785 (sfb_alu_operand): New.
28786 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28787 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28788 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28789 * config/riscv/risc.md (type): Add sfb_alu.
28790 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28791 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28792 (branch_zero<mode>): Delete.
28793 (mov<mode>cc): New.
28794 (mov<GPR:mode><X:mode>cc): Likewise.
28795 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28796
28797 2019-04-30 Nathan Sidwell <nathan@acm.org>
28798
28799 * tree.h (MARK_TS_EXP): New.
28800
28801 2019-04-30 Martin Liska <mliska@suse.cz>
28802
28803 * opts.c (enable_warning_as_error): Provide hints
28804 for unknown options.
28805
28806 2019-04-30 Martin Liska <mliska@suse.cz>
28807
28808 PR debug/90288
28809 * doc/invoke.texi: Add missing dash for gas-locview-support
28810 and gno-as-locview-support.
28811
28812 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28813
28814 PR target/89093
28815 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28816 whitespace at the start of target attribute string.
28817
28818 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28819
28820 PR target/86538
28821 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28822 Define __ARM_FEATURE_ATOMICS.
28823
28824 2019-04-30 Martin Liska <mliska@suse.cz>
28825
28826 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28827 into built_in_function enum. Remove code for endp == 2 and
28828 use BUILT_IN_* constants.
28829 (gimple_fold_builtin): Call the function with fcode.
28830
28831 2019-04-30 Martin Liska <mliska@suse.cz>
28832
28833 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28834 DECL_FUNCTION_CODE into ix86_builtins enum before
28835 the switch statement.
28836
28837 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28838
28839 PR tree-optimization/89475
28840 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28841 calls.
28842
28843 2019-04-30 Martin Liska <mliska@suse.cz>
28844
28845 PR translation/90274
28846 * opts.c (print_filtered_help): Wrap string in _(...).
28847
28848 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28849
28850 PR tree-optimization/90240
28851 Revert:
28852 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28853
28854 PR tree-optimization/90078
28855 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28856 checks for infinite_cost overflow.
28857
28858 2019-04-29 Jeff Law <law@redhat.com>
28859
28860 * passes.def: Move -Wrestrict pass after copy propagation.
28861
28862 2019-04-29 Maya Rashish <coypu@sdf.org>
28863
28864 * config.gcc (default_gnu_indirect_function): Default to yes
28865 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28866 sparc*-*-netbsd*, x86_64-*-netbsd*.
28867
28868 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28869
28870 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28871 where cond2 is NE_EXPR.
28872 (is_value_included_in): Update comment.
28873
28874 2019-04-29 Richard Biener <rguenther@suse.de>
28875
28876 PR tree-optimization/90278
28877 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28878 EH on comparison simplification.
28879
28880 2019-04-29 Jason Merrill <jason@redhat.com>
28881
28882 PR c++/82081 - tail call optimization breaks noexcept
28883 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28884 nothrow function to a might-throw function into a tail call.
28885
28886 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28887
28888 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28889 (DDR_INNER_LOOP): Likewise.
28890 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28891 (initialize_data_dependence_relation): Likewise.
28892 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28893
28894 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28895
28896 PR rtl-optimization/90257
28897 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28898 return value.
28899
28900 Revert the revert:
28901 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28902
28903 PR target/90178
28904 Revert:
28905 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28906
28907 Revert the revert:
28908 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28909
28910 Revert:
28911 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28912
28913 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28914
28915 2019-04-29 Richard Biener <rguenther@suse.de>
28916
28917 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28918 rhs issue a reset.
28919
28920 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28921
28922 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28923 varasm.h, and netbsd-protos.h.
28924
28925 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28926
28927 PR target/89261
28928 * config/i386/i386-protos.h (ix86_data_alignment): Change
28929 the second argument type to unsigned int.
28930 * config/i386/i386.c (ix86_data_alignment): Change "align"
28931 argument type to unsigned int.
28932
28933 2019-04-27 Martin Liska <mliska@suse.cz>
28934
28935 PR middle-end/90258
28936 * opt-suggestions.c (option_proposer::build_option_suggestions):
28937 When get_valid_option_values returns empty values, add the
28938 misspelling candidate.
28939
28940 2019-04-26 Jim Wilson <jimw@sifive.com>
28941
28942 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28943 parameter.
28944 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28945 Pass orig_mode to riscv_build_integer.
28946 (riscv_split_integer): Pass mode to riscv_move_integer.
28947 (riscv_legitimize_const_move): Likewise.
28948 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28949 promoted_mode. Replace force_reg call with code to load constant into
28950 promoted reg and then subreg it for the store.
28951 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28952 riscv_move_integer.
28953
28954 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28955
28956 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28957 corrupt codes.
28958
28959 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28960
28961 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28962 commentary about the encoding of precision.
28963
28964 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28965
28966 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28967 * config/i386/t-freebsd64: New file.
28968 * config.gcc: Add the t-freebsd64 for multilib support.
28969
28970 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28971
28972 * doc/extend.texi (vector_size): Add missing comma after @xref.
28973
28974 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28975
28976 * BASE-VER: Set to 10.0.0.
28977
28978 2019-04-25 Richard Biener <rguenther@suse.de>
28979
28980 PR middle-end/89765
28981 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28982 VIEW_CONVERT_EXPR into one operating on an rvalue.
28983
28984 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28985
28986 PR target/89929
28987 * config/i386/i386.c (feature_priority): Moved to file scope.
28988 (processor_features): Likewise.
28989 (processor_model): Likewise.
28990 (_arch_names_table): Likewise.
28991 (arch_names_table): Likewise.
28992 (_feature_list): Removed.
28993 (feature_list): Likewise.
28994 (_isa_names_table): Moved to file scope. Add priority.
28995 (isa_names_table): Likewise.
28996 (get_builtin_code_for_version): Replace feature_list with
28997 isa_names_table. Update error message for P_ZERO priority.
28998
28999 2019-04-25 Richard Biener <rguenther@suse.de>
29000
29001 * tree-pass.h (make_pass_phi_only_cprop): Remove.
29002 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
29003
29004 2019-04-24 Jeff Law <law@redhat.com>
29005
29006 PR tree-optimization/90037
29007 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
29008 * passes.def: Replace all instance of phi-only cprop with the
29009 lattice propagator. Move propagation pass from after erroneous
29010 path isolation to before erroneous path isolation.
29011 * tree-ssa-phionlycprop.c: Remove.
29012
29013 2019-04-24 Richard Biener <rguenther@suse.de>
29014
29015 PR middle-end/90213
29016 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
29017 by size and BITS_PER_UNIT on poly-wide-ints.
29018
29019 2019-04-25 Richard Biener <rguenther@suse.de>
29020
29021 PR middle-end/90194
29022 * match.pd: Add pattern to simplify view-conversion of an
29023 empty constructor.
29024
29025 2019-04-24 Clement Chigot <clement.chigot@atos.net>
29026
29027 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
29028 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
29029 for Go on 32 bit AIX.
29030 * config/rs6000/aix72.h: Likewise.
29031
29032 2019-04-24 Jakub Jelinek <jakub@redhat.com>
29033
29034 PR target/90193
29035 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
29036 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
29037
29038 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
29039
29040 PR target/89952
29041 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
29042 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
29043 for restored hard frame pointer.
29044 (s390_sched_dependencies_evaluation): Implement new target hook.
29045 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
29046
29047 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
29048
29049 * config/arc/arc-options.def: Fix typos and spelling mistakes.
29050 * config/arc/arc.c (arc_init): Cleanup warning message.
29051 (arc_override_options): Likewise.
29052
29053 2019-04-24 Jakub Jelinek <jakub@redhat.com>
29054
29055 PR target/90187
29056 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
29057 a register if both if_true and if_false are MEMs.
29058
29059 PR tree-optimization/90208
29060 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
29061 after labels of new_bb, not before them.
29062
29063 PR tree-optimization/90211
29064 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
29065 which are not SSA_NAMEs.
29066
29067 2018-04-23 Sudakshina Das <sudi.das@arm.com>
29068
29069 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
29070 AArch64.
29071 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
29072
29073 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
29074
29075 PR rtl-optimization/87979
29076 * modulo-sched.c (sms_schedule): Start ii value "mii" should
29077 not equal zero.
29078
29079 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
29080
29081 PR rtl-optimization/84032
29082 * modulo-sched.c (ps_insn_find_column): Change condition so that
29083 branch will always be the last insn in a row inside partial
29084 schedule.
29085
29086 2019-04-23 Richard Biener <rguenther@suse.de>
29087
29088 PR debug/90131
29089 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
29090 dest_single_pred_p argument.
29091 (remove_forwarder_block): Adjust.
29092 (remove_forwarder_block_with_phi): Likewise.
29093
29094 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29095 Bernd Edlinger <bernd.edlinger@hotmail.de>
29096 Jakub Jelinek <jakub@redhat.com>
29097
29098 PR target/89093
29099 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
29100 if used with general-regs-only.
29101 (arm_conditional_register_usage): Don't add non-general regs if
29102 general-regs-only.
29103 (arm_valid_target_attribute_rec): Handle general-regs-only.
29104 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
29105 general-regs-only.
29106 (TARGET_HARD_FLOAT_SUB): Define.
29107 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
29108 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
29109 (TARGET_REALLY_IWMMXT2): Likewise.
29110 * config/arm/arm.opt: Add -mgeneral-regs-only.
29111 * doc/extend.texi: Document ARM general-regs-only target.
29112 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
29113
29114 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29115
29116 PR tree-optimization/90078
29117 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
29118 checks for infinite_cost overflow.
29119
29120 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
29121
29122 PR tree-optimization/90021
29123 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
29124 and check univariate against it.
29125 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
29126 * tree-data-ref.c (add_other_self_distances): Pass new argument.
29127
29128 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
29129
29130 PR target/90178
29131 Revert:
29132 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
29133
29134 Revert the revert:
29135 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
29136
29137 Revert:
29138 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
29139
29140 * lra-spills.c (lra_final_code_change): Remove useless move insns.
29141
29142 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
29143
29144 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
29145 names using operand format, rather than hard-wired.
29146 (speculation_barrier): Likewise.
29147
29148 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
29149
29150 PR tree-optimization/88055
29151 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
29152 (gen_one_condition): Use it if !HONOR_NANS.
29153
29154 2019-04-19 Jakub Jelinek <jakub@redhat.com>
29155
29156 PR middle-end/90139
29157 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
29158 assign_temp instead of gen_reg_rtx.
29159
29160 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
29161
29162 PR translation/90118
29163 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29164 Add missing space before %<.
29165
29166 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
29167
29168 PR rtl-optimization/87871
29169 * ira-lives.c (make_object_dead): Don't add conflicts to
29170 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
29171
29172 2019-04-18 Martin Sebor <msebor@redhat.com>
29173
29174 PR middle-end/89797
29175 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
29176 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
29177 assuming type size fits in SHWI.
29178
29179 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
29180
29181 PR ipa/85051
29182 * ipa-inline.c (flatten_function): New parameter UPDATE.
29183 (ipa_inline, early_inliner): Use it.
29184
29185 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29186
29187 * fold-const.c (int_const_binop): Return early on failure.
29188
29189 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
29190
29191 PR middle-end/85164
29192 * combine.c (force_int_to_mode): Cast the argument rather than
29193 the result of known_alignment.
29194 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
29195
29196 2019-04-18 Richard Biener <rguenther@suse.de>
29197
29198 PR debug/90131
29199 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
29200 out from ...
29201 (remove_forwarder_block): ... here.
29202 (remove_forwarder_block_with_phi): Also move debug stmts here.
29203
29204 2019-04-18 Jakub Jelinek <jakub@redhat.com>
29205
29206 PR translation/79183
29207 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
29208 inform where appropriate.
29209
29210 2019-04-18 Richard Biener <rguenther@suse.de>
29211
29212 * tree.c (get_qualified_type): Put found type variants at the
29213 head of the variant list.
29214
29215 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29216
29217 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
29218
29219 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
29220
29221 PR target/90125
29222 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
29223 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
29224 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
29225 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
29226 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
29227
29228 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
29229
29230 * ira-conflicts.c (print_allocno_conflicts): Always print something,
29231 even for allocno's with no conflicts.
29232 (print_conflicts): Print an extra newline.
29233
29234 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29235
29236 * auto-inc-dec.c (attempt_change): Set the alignment of the
29237 temporary memory to that of the original.
29238
29239 2019-04-17 Joao Moreira <jmoreira@suse.de>
29240
29241 * targhooks.c (default_print_patchable_function_entry): Emit
29242 __patchable_function_entries section with writable flags to allow
29243 relocation resolution.
29244
29245 2019-04-17 Jonny Grant <jg@jguk.org>
29246
29247 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
29248
29249 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29250
29251 PR middle-end/90095
29252 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
29253 on lowpart SUBREGs.
29254
29255 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
29256
29257 * config/arc/arc.c (arc_init): Format diagnostic string.
29258 (arc_override_options): Likewise.
29259 (check_if_valid_regno_const): Likewise.
29260 (arc_reorg): Likewise.
29261
29262 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
29263
29264 PR target/17108
29265 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
29266 name.
29267 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
29268 name.
29269 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
29270 (*movdi_update1): Use Pmode.
29271 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
29272 (movdi_<mode>_update_stack): Rename to ...
29273 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
29274 use Pmode.
29275 (*movsi_update1): Use Pmode.
29276 (*movsi_update2): Use Pmode.
29277 (movsi_update): Rename to ...
29278 (movsi_<mode>_update): ... this. Use Pmode.
29279 (movsi_update_stack): Fix condition.
29280 (*movhi_update1): Use Pmode. Fix argument to
29281 avoiding_indexed_address_p.
29282 (*movhi_update2): Ditto.
29283 (*movhi_update3): Ditto.
29284 (*movhi_update4): Ditto.
29285 (*movqi_update1): Ditto.
29286 (*movqi_update2): Ditto.
29287 (*movqi_update3): Ditto.
29288 (*movsf_update1, *movdf_update1): Merge, rename to...
29289 (*mov<mode>_update1): This. Use Pmode. Fix argument to
29290 avoiding_indexed_address_p. Add "size" attribute.
29291 (*movsf_update2, *movdf_update2): Merge, rename to...
29292 (*mov<mode>_update2): This. Ditto.
29293 (*movsf_update3): Use Pmode. Fix argument to
29294 avoiding_indexed_address_p.
29295 (*movsf_update4): Ditto.
29296 (allocate_stack): Simplify condition. Adjust pattern names.
29297
29298 2019-04-17 Jakub Jelinek <jakub@redhat.com>
29299
29300 PR target/89093
29301 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
29302 whitespace at the start of target attribute string.
29303
29304 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
29305
29306 PR target/84369
29307 * config/rs6000/power9.md: Add store forwarding bypass.
29308
29309 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
29310
29311 PR debug/89528
29312 * valtrack.c (dead_debug_insert_temp): Reset debug references
29313 to the return value of a call being removed.
29314
29315 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29316
29317 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
29318 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
29319 implement target hook.
29320 (arc_memory_move_cost): New function.
29321 (TARGET_REGISTER_MOVE_COST): Define.
29322 (TARGET_MEMORY_MOVE_COST): Likewise.
29323 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
29324 (MEMORY_MOVE_COST): Likewise.
29325
29326 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29327
29328 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
29329 (sibcall_value_insn): Likewise.
29330 * config/arc/constraints.md (Rs5): Remove.
29331
29332 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29333
29334 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
29335 for last two fake registers.
29336 (arc_conditional_register_usage): Make sure fake frame and arg
29337 pointer regs are in general regs class.
29338 (FRAME_POINTER_MASK): Remove.
29339 (RETURN_ADDR_MASK): Remove.
29340 (arc_must_save_register): Use hard frame regnum.
29341 (frame_restore_reg): Use hard_frame_pointer_rtx.
29342 (arc_save_callee_saves): Likewise.
29343 (arc_restore_callee_saves): Likewise.
29344 (arc_save_callee_enter): Likewise.
29345 (arc_restore_callee_leave): Likewise.
29346 (arc_save_callee_milli): Likewise.
29347 (arc_eh_return_address_location): Likewise.
29348 (arc_check_multi): Use hard frame regnum.
29349 (arc_can_eliminate): Likewise.
29350 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
29351 for register allocator.
29352 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
29353 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
29354 (FRAME_POINTER_REGNUM): Change it to a fake register.
29355 (HARD_FRAME_POINTER_REGNUM): Defined.
29356 (ARG_POINTER_REGNUM): Change it to a new fake register.
29357 (ELIMINABLE_REGS): Update.
29358 (REGISTER_NAMES): Update names.
29359 * config/arc/arc.md (LP_START): Remove.
29360 (LP_END): Likewise.
29361 (shift_si3_loop): Update pattern.
29362
29363 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
29364
29365 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
29366 to avoid delay slot scheduling.
29367 (arc_must_save_register): Don't save SP.
29368 * config/arc/arc.md (stack_tie): Remove.
29369 (UNSPEC_ARC_STKTIE): Likewise.
29370
29371 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
29372 Shiva Chen <shiva0217@gmail.com>
29373
29374 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
29375 code gen with large shift amount.
29376
29377 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
29378
29379 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
29380 subreg.
29381
29382 2019-04-16 Jakub Jelinek <jakub@redhat.com>
29383
29384 PR target/90096
29385 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
29386 print -m64/-mx32/-m32 if it is true.
29387 (ix86_debug_options, ix86_function_specific_print): Pass true as
29388 ADD_ABI_P to ix86_target_string.
29389 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
29390 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
29391 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
29392
29393 PR rtl-optimization/90082
29394 * dce.c (can_delete_call): New function.
29395 (deletable_insn_p, mark_insn): Use it.
29396
29397 PR tree-optimization/90090
29398 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
29399 throw internally.
29400 (is_division_by_square): Likewise. Formatting fix.
29401
29402 2019-04-16 Richard Biener <rguenther@suse.de>
29403
29404 PR tree-optimization/56049
29405 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
29406 equality check if alias-set zero will prevail.
29407
29408 2019-04-15 Jeff Law <law@redhat.com>
29409
29410 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
29411 size and alignment as unsigned.
29412
29413 2019-04-15 Richard Biener <rguenther@suse.de>
29414
29415 PR debug/90074
29416 * tree-loop-distribution.c (destroy_loop): Preserve correct
29417 debug info.
29418
29419 2019-04-15 Richard Biener <rguenther@suse.de>
29420
29421 PR tree-optimization/90071
29422 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
29423 abnormal operands from def stmts.
29424
29425 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
29426
29427 PR rtl-optimization/89794
29428 * combine.c (count_auto_inc): New function.
29429 (try_combine): Count how many auto_inc expressions there were in the
29430 original instructions. Ensure we have the same number in the new
29431 instructions. Remove the code that tried to ensure auto_inc side
29432 effects on i1 and i0 are not lost.
29433
29434 2019-04-15 Richard Biener <rguenther@suse.de>
29435
29436 PR ipa/88936
29437 * tree.h (auto_var_p): Declare.
29438 * tree.c (auto_var_p): New function, split out from ...
29439 (auto_var_in_fn_p): ... here.
29440 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
29441 member.
29442 (new_var_info): Initialize it.
29443 (set_uids_in_ptset): Also set the shadow variable uid if required.
29444 (ipa_pta_execute): Postprocess points-to solutions assigning
29445 shadow variable uids for locals that may reach their containing
29446 function recursively.
29447 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
29448 assert but instead check whether the points-to solution is
29449 a singleton.
29450
29451 2019-04-15 Martin Jambor <mjambor@suse.cz>
29452
29453 PR ipa/pr89693
29454 * cgraph.c (clone_of_p): Loop over clone chain for each step in
29455 the thunk chain.
29456
29457 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29458
29459 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
29460
29461 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29462 Kito Cheng <kito.cheng@gmail.com>
29463 Shiva Chen <shiva0217@gmail.com>
29464
29465 * config/nds32/nds32-md-auxiliary.c
29466 (nds32_legitimize_pic_address): Use new PIC pattern.
29467 (nds32_legitimize_tls_address): Use new TLS pattern.
29468 (nds32_output_symrel): New.
29469 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
29470 (nds32_alloc_relax_group_id): Ditto.
29471 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
29472 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
29473 relax_group_id.
29474 (nds32_group_tls_insn): Ditto.
29475 (nds32_group_float_insns): Ditto.
29476 * config/nds32/nds32.md (tls_le): New.
29477 (sym_got): Ditto.
29478
29479 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
29480
29481 * configure: Add nds32 target for dwarf2 debug_line checking.
29482 * configure.ac: Regenerated.
29483
29484 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
29485
29486 PR lto/89358
29487 * ipa-devirt.c (skip_in_fields_list_p): New.
29488 (odr_types_equivalent_p): Use it.
29489
29490 2019-04-13 Jakub Jelinek <jakub@redhat.com>
29491
29492 PR target/89093
29493 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29494 instead of strncmp when checking for thumb and arm. Formatting fixes.
29495
29496 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
29497
29498 * doc/install.texi: Document --with-target-system-zlib.
29499
29500 2019-04-12 Martin Sebor <msebor@redhat.com>
29501
29502 PR c/88383
29503 PR c/89288
29504 PR c/89798
29505 PR c/89797
29506 * targhooks.c (default_vector_alignment): Avoid assuming
29507 argument fits in SHWI.
29508 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29509 a shift expression.
29510 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29511
29512 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29513
29514 PR rtl-optimization/89965
29515 * dce.c: Include rtl-iter.h.
29516 (struct check_argument_load_data): New type.
29517 (check_argument_load): New function.
29518 (find_call_stack_args): Check for loads from stack slots still tracked
29519 in sp_bytes and punt if any is found.
29520
29521 * config/mips/loongson-mmiintrin.h: Fix up #error message.
29522
29523 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
29524
29525 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29526 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29527
29528 2019-04-12 Martin Liska <mliska@suse.cz>
29529
29530 PR middle-end/89970
29531 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29532 in error message.
29533 (separate_attrs): Handle multiple 'default's.
29534 (expand_target_clones): Rework error handling code.
29535
29536 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
29537
29538 PR target/87532
29539 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29540 mode of vector rather than mode of destination for move instruction.
29541 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29542 Use QI inner mode with V16QI vector mode.
29543
29544 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29545
29546 PR target/52726
29547 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29548 "invalid %%t operand" in output_operand_lossage message.
29549
29550 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
29551
29552 * config/s390/predicates.md (permute_pattern_operand): New
29553 predicate.
29554 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29555 operand for the permute pattern.
29556 ("*vec_perm<mode>"): New insn definition.
29557 ("bswap<mode>"): Generate the permute pattern operand in the
29558 expander and perform the operand reloads for pre arch13 level
29559 already.
29560 ("*bswap<mode>_emu"): Rename to ...
29561 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29562 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29563 Add the USE operand for the permute pattern.
29564 ("*vec_set_bswap_vec<mode>"): Likewise.
29565
29566 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29567
29568 PR c/89946
29569 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29570 and gcc_unreachable if it fails, just call tree_to_uhwi which
29571 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29572 Start warning message with a lower-case letter. Formatting fixes.
29573
29574 PR rtl-optimization/90026
29575 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29576 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29577 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29578 in cfglayout mode, use emit_barrier_after_bb.
29579
29580 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29581
29582 PR rtl-optimization/87763
29583 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29584 New Instruction.
29585
29586 2019-04-11 Tom de Vries <tdevries@suse.de>
29587
29588 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29589 max macro using statement expression.
29590
29591 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29592
29593 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29594 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29595 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29596 read_only_private_data_section using xcoff_private_rodata_section_name.
29597 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29598
29599 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29600
29601 PR target/90016
29602 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29603
29604 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29605
29606 PR rtl-optimization/89965
29607 * dce.c (sp_based_mem_offset): New function.
29608 (find_call_stack_args): Use sp_based_mem_offset.
29609
29610 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29611
29612 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29613
29614 2019-04-11 Richard Biener <rguenther@suse.de>
29615
29616 PR tree-optimization/90020
29617 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29618 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29619 * tree-ssa-pre.c (compute_avail): Use it to not put
29620 possibly trapping references after a call that might not
29621 return into EXP_GEN.
29622 * gcse.c (compute_hash_table_work): Do not elide
29623 marking a block containing a call if the call might not
29624 return.
29625
29626 2019-04-11 Richard Biener <rguenther@suse.de>
29627
29628 PR tree-optimization/90018
29629 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29630 Test both SLP and interleaving variants.
29631
29632 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29633
29634 * config/s390/8561.md: New file.
29635 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29636 Add arch13 cpu model.
29637 * config/s390/s390-opts.h (enum processor_type): Likewise.
29638 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29639 (s390_get_unit_mask): Likewise.
29640 (s390_is_fpd): Likewise.
29641 (s390_is_fxd): Likewise.
29642 * config/s390/s390.h (s390_tune_attr): Likewise.
29643 * config/s390/s390.md: Include arch13 pipeline description.
29644 * config/s390/s390.opt: Add arch13.
29645
29646 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29647
29648 PR rtl-optimization/87763
29649 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29650 New prototype.
29651 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29652 New function.
29653 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29654 New instruction.
29655 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29656 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29657 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29658 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29659
29660 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29661
29662 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29663 "Although" in -fipa-icf documentation.
29664
29665 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29666 of using multiple -g options.
29667
29668 2019-04-10 Martin Liska <mliska@suse.cz>
29669
29670 PR gcov-profile/89959
29671 * doc/gcov.texi: Make documentation of -x option
29672 more precise.
29673
29674 2019-04-10 Richard Biener <rguenther@suse.de>
29675
29676 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29677 member.
29678 (DR_GROUP_SAME_DR_STMT): Remove.
29679 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29680 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29681 replace with assert.
29682 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29683 (vect_record_grouped_load_vectors): Remove unreachable code.
29684
29685 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29686
29687 PR target/90016
29688 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29689 obsolete reference to N.
29690
29691 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29692
29693 PR middle-end/90025
29694 * expr.c (store_expr): Set properly size on the MEM passed to
29695 clear_storage.
29696
29697 PR c++/90010
29698 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29699 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29700 translation is needed, and when translation is needed, only append
29701 ... if the string length is hostsz or more bytes long. Avoid using
29702 strncpy or strcat.
29703
29704 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29705
29706 PR target/90024
29707 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29708 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29709 into three.
29710 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29711 differences directly.
29712 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29713
29714 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29715
29716 PR translation/90011
29717 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29718 from diagnostics.
29719 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29720 diagnostics.
29721 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29722 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29723 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29724 trailing space from -gsplit-dwarf diagnostics.
29725
29726 PR tree-optimization/89998
29727 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29728 instead of integer_type_node if possible, don't add ranges if return
29729 type is not compatible with int.
29730 * gimple-fold.c (gimple_fold_builtin_sprintf,
29731 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29732 integer_type_node.
29733
29734 2019-04-09 Martin Liska <mliska@suse.cz>
29735
29736 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29737 * doc/install.texi: Document the new config.
29738
29739 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29740
29741 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29742 use gimple_expr_type for load and store calls. Skip over the
29743 condition argument in a conditional internal function.
29744 Protect use of TREE_INT_CST_LOW.
29745
29746 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29747
29748 PR target/90015
29749 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29750 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29751 trailing period from it too.
29752
29753 2019-04-08 wu yuan <wuyuan5@huawei.com>
29754
29755 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29756 * config/aarch64/aarch64.md: Add "tsv110.md".
29757 * config/aarch64/tsv110.md: New file.
29758
29759 2019-04-08 Richard Biener <rguenther@suse.de>
29760
29761 PR tree-optimization/90006
29762 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29763 calls like lrint.
29764
29765 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29766
29767 PR target/83033
29768 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29769 construction.
29770 (fma_root_node): Likewise.
29771 (func_fma_steering): Likewise.
29772
29773 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29774
29775 PR rtl-optimization/89865
29776 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29777
29778 PR rtl-optimization/89865
29779 * config/i386/i386.md
29780 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29781 numbers not to clash with the additional operands[4].
29782 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29783 with extra register copy in the middle.
29784
29785 2019-04-08 Martin Liska <mliska@suse.cz>
29786
29787 PR gcov-profile/89961
29788 * doc/gcov.texi: Document data_file.
29789 * gcov.c (generate_results): Add data_info into JSON output.
29790
29791 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29792
29793 PR tree-optimization/89725
29794 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29795 loop's chrec as invariant symbol.
29796 * tree-chrec.h (chrec_contains_symbols): New parameter.
29797 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29798 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29799 function of loops not in DDR's loop_nest.
29800 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29801
29802 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29803
29804 PR target/89623
29805 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29806 Mask.
29807
29808 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29809
29810 PR target/89945
29811 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29812 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29813
29814 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29815
29816 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29817 targetm.fixed_condition_code_regs.
29818
29819 2019-04-05 Richard Biener <rguenther@suse.de>
29820
29821 PR debug/89892
29822 PR debug/89905
29823 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29824 debug bind stmts but reset them if they are not valid at the
29825 destination.
29826
29827 2019-04-05 Martin Liska <mliska@suse.cz>
29828
29829 PR translation/89936
29830 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29831 order to wrap keywords or arguments.
29832 * collect2.c (main): Likewise.
29833 (scan_prog_file): Likewise.
29834 (scan_libraries): Likewise.
29835 * common/config/riscv/riscv-common.c
29836 (riscv_subset_list::parsing_subset_version): Likewise.
29837 (riscv_subset_list::parse_std_ext): Likewise.
29838 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29839 Likewise.
29840 * config/arm/arm.c (arm_option_override): Likewise.
29841 * config/cris/cris.c (cris_print_operand): Likewise.
29842 * config/darwin-c.c (darwin_pragma_options): Likewise.
29843 (darwin_pragma_unused): Likewise.
29844 (darwin_pragma_ms_struct): Likewise.
29845 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29846 * config/i386/i386.c (print_reg): Likewise.
29847 (ix86_print_operand): Likewise.
29848 * config/i386/xm-djgpp.h: Likewise.
29849 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29850 * config/m32c/m32c.c (m32c_option_override): Likewise.
29851 * config/msp430/msp430.c (msp430_option_override): Likewise.
29852 * config/nds32/nds32.c (nds32_option_override): Likewise.
29853 * config/nvptx/mkoffload.c (main): Likewise.
29854 * config/rx/rx.c (rx_print_operand): Likewise.
29855 (valid_psw_flag): Likewise.
29856 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29857 (vms_pragma_nomember_alignment): Likewise.
29858 (vms_pragma_extern_model): Likewise.
29859 * lto-wrapper.c (compile_offload_image): Likewise.
29860 * omp-offload.c (oacc_parse_default_dims): Likewise.
29861 * symtab.c (symtab_node::verify_base): Likewise.
29862 * tlink.c (recompile_files): Likewise.
29863 (start_tweaking): Likewise.
29864 * tree-profile.c (parse_profile_filter): Likewise.
29865
29866 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29867
29868 PR tree-optimization/89956
29869 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29870 multiple negates of the same value.
29871
29872 2019-04-04 Martin Sebor <msebor@redhat.com>
29873
29874 PR middle-end/89957
29875 PR middle-end/89911
29876 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29877 have the same precision since the function crashes otherwise.
29878 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29879 has non-zero arguments.
29880
29881 2019-04-04 Martin Sebor <msebor@redhat.com>
29882
29883 PR middle-end/89934
29884 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29885 out if the number of arguments is less than expected.
29886
29887 2019-04-04 Jeff Law <law@redhat.com>
29888
29889 PR rtl-optimization/89399
29890 * ree.c (combine_set_extension): Use single_set rather than
29891 digging into PATTERN for items on the candidate list.
29892 (combine_reaching_defs): Likewise.
29893
29894 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29895
29896 PR rtl-optimization/46590
29897 * loop-invariant.c (find_defs): Move df_remove_problem and
29898 df_process_deferred_rescans to move_invariants.
29899 Move df_live_add_problem and df_live_set_all_dirty calls
29900 to move_invariants.
29901 (move_invariants): Likewise.
29902 (move_loop_invariants): Likewise, making the df_live calls
29903 conditional on -O. Remove the problem again if we added it
29904 locally.
29905
29906 2019-04-03 qing zhao <qing.zhao@oracle.com>
29907
29908 PR tree-optimization/89730
29909 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29910 -flive-patching=inline-only-static.
29911 (can_inline_edge_by_limits_p): Add the checking for
29912 -flive-patching=inline-only-static and grant always_inline
29913 even when -flive-patching=inline-only-static is specified.
29914
29915 2019-04-03 Jeff Law <law@redhat.com>
29916
29917 PR rtl-optimization/81025
29918 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29919
29920 2019-04-03 Richard Biener <rguenther@suse.de>
29921
29922 PR tree-optimization/84101
29923 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29924 regs.h for hard_regno_nregs.
29925 (cfun_returns): New helper.
29926 (vect_model_store_cost): When vectorizing a store to a decl
29927 we return and the function ABI returns in a multi-reg location
29928 account for the possible spilling that will happen.
29929
29930 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29931
29932 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29933 displacement addresses for vector mode operands.
29934
29935 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29936
29937 * config/arc/arc.c (GMASK_LEN): Define.
29938 (arc_restore_callee_saves): Restore first blink when
29939 !optimize_size.
29940
29941 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29942
29943 * doc/extend.texi: Add deprecated comment on sign-return-address
29944 function attribute and add mbranch-protection.
29945 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29946
29947 2019-04-03 Richard Biener <rguenther@suse.de>
29948
29949 PR lto/89896
29950 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29951 the all target phony.
29952
29953 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29954
29955 PR target/89902
29956 PR target/89903
29957 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29958 Return false for variable DImode shifts.
29959 (dimode_scalar_chain::compute_convert_gain): Do not handle
29960 register count operand in variable DImode shifts.
29961 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29962 count argument of a variable shift instruction to a vector register.
29963 (dimode_scalar_chain::convert_reg): Remove support to convert
29964 count argument of a variable shift instruction.
29965
29966 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29967
29968 PR rtl-optimization/84206
29969 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29970 iterating over loop headers.
29971
29972 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29973
29974 PR rtl-optimization/85876
29975 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29976 beyond the original fence.
29977
29978 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29979
29980 * config.gcc: Mark spu* targets as deprecated/obsolete.
29981
29982 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29983
29984 * config/s390/s390-builtin-types.def: New builtin function type
29985 definitions. Remove unused types.
29986 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29987 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29988 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29989 overloaded builtins.
29990 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29991 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29992 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29993 (vec_double, vec_signed, vec_unsigned): Define to use the new
29994 overloaded builtins.
29995 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29996 Remove expanders.
29997
29998 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29999
30000 * config/s390/s390-builtin-types.def: New builtin function type
30001 definitions.
30002 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
30003 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
30004 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
30005 (s390_vstrszh, s390_vstrszf): New low-level builtins.
30006 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
30007 constant definitions.
30008 * config/s390/vecintrin.h (vec_search_string_cc)
30009 (vec_search_string_until_zero_cc): New builtin name definitions.
30010 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
30011 expanders.
30012 ("vec_vstrs<mode>"): New insn definition.
30013
30014 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30015
30016 * config/s390/s390-builtin-types.def: Add new builtin function
30017 types.
30018 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
30019 New overloaded builtins.
30020 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
30021 s390_vsrd.
30022 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
30023 (UNSPEC_VEC_SLDBYTE): ... this.
30024 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
30025 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
30026 definitions.
30027 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
30028 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
30029 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
30030
30031 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30032
30033 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
30034 New insn definition.
30035 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
30036 * config/s390/vector.md (V_HW_HSD): ... here.
30037
30038 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30039
30040 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
30041 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
30042 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
30043 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
30044 New insn definitions.
30045
30046 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30047
30048 * config/s390/s390-builtin-types.def: Add new builtin function type.
30049 * config/s390/s390-builtins.def: Add overloaded builtin
30050 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
30051 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
30052 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
30053 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
30054 ("eltswap<mode>"): New expander.
30055 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
30056 insn definitions.
30057
30058 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30059
30060 * config/s390/s390-builtin-types.def: Add new builtin function types.
30061 * config/s390/s390-builtins.def: Add overloaded builtin
30062 s390_vec_revb. Add low-level builtins for vlbr and vstbr
30063 instructions.
30064 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
30065 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
30066 ("bswap<mode>"): New expander.
30067 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
30068
30069 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30070
30071 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
30072 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
30073 vector builtin version number in __VEC__.
30074
30075 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30076
30077 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
30078 iterators.
30079 (SFSI): New mode attribute.
30080 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
30081 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
30082 rename to ...
30083 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
30084 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
30085 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
30086 ("floatsi<mode>2"): Add wcefb instruction.
30087
30088 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30089
30090 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
30091 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
30092 mode iterators.
30093 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
30094 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
30095 support 32 bit fp-int conversions. Rename to ...
30096 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30097 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
30098 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
30099 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
30100 ... to these.
30101
30102 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30103
30104 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
30105 if-then-else constructs if we can use the select instruction.
30106 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
30107
30108 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30109
30110 * config/s390/s390.md ("*popcountdi_arch13_cc")
30111 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
30112 definition.
30113 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
30114 Append _z196 to make it ...
30115 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
30116 ("popcounthi2_z196"): ... this.
30117 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
30118 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
30119
30120 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30121
30122 * config/s390/s390.c (s390_canonicalize_comparison): Convert
30123 certain compares for arch13 in order to make use of the condition
30124 code result produced by the new instructions.
30125 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
30126 nxrk, and nxgrk instruction patterns.
30127 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
30128 (inv_no): Add new code iterator together with some attributes.
30129 ("*andc_split_<mode>"): Disable splitter for arch13.
30130 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
30131 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
30132 ("*<ANDOR:bitops_name>c<GPR:mode>")
30133 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
30134 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
30135 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
30136 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
30137
30138 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
30139
30140 * common/config/s390/s390-common.c (processor_flags_table): New
30141 entry for arch13.
30142 * config.gcc: Support arch13 with the --with-arch= configure flag.
30143 * config/s390/driver-native.c (s390_host_detect_local_cpu):
30144 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
30145 * config/s390/s390.c (s390_get_sched_attrmask)
30146 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
30147 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
30148 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
30149 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
30150 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
30151 definitions.
30152 * config/s390/s390.opt: Support arch13 as processor type in
30153 command line options.
30154
30155 2019-04-02 Martin Liska <mliska@suse.cz>
30156
30157 PR translation/89912
30158 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
30159 Fix param description of graphite-max-arrays-per-scop.
30160
30161 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
30162
30163 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
30164 (ASAN_CC1_SPEC): Use it in 64-bit mode.
30165 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
30166
30167 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30168
30169 PR rtl-optimization/85412
30170 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
30171 sel_sched_region_1, not after.
30172
30173 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30174
30175 PR rtl-optimization/86928
30176 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
30177 compute_live if necessary.
30178 (sel_redirect_edge_and_branch): Likewise.
30179
30180 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
30181
30182 PR rtl-optimization/89865
30183 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
30184 register if it is a part of small class.
30185
30186 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
30187
30188 PR rtl-optimization/87273
30189 * sel-sched-ir.c (merge_fences): Remove assert.
30190
30191 2019-04-01 Richard Biener <rguenther@suse.de>
30192
30193 PR tree-optimization/46590
30194 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
30195 (dom_walker::m_reachability): Add in place of...
30196 (dom_walker::m_skip_unreachable_blocks): ...this.
30197 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
30198 Move complex initialization ...
30199 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
30200 lazily and initialize edge flags on each invocation.
30201 (dom_walker::bb_reachable): Use m_reachability.
30202
30203 2019-04-01 Martin Liska <mliska@suse.cz>
30204
30205 PR driver/89861
30206 * opt-suggestions.c (option_proposer::build_option_suggestions):
30207 Add variant without any argument in order to provide better
30208 hints.
30209
30210 2019-04-01 Richard Biener <rguenther@suse.de>
30211
30212 PR c/71598
30213 * gimple.c: Include langhooks.h.
30214 (gimple_get_alias_set): Treat enumeral types as the underlying
30215 integer type.
30216
30217 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
30218 Eric Botcazou <ebotcazou@adacore.com>
30219
30220 PR rtl-optimization/89862
30221 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
30222 that operates on the full registers for WORD_REGISTER_OPERATIONS
30223 architectures.
30224
30225 2019-03-29 Jim Wilson <jimw@sifive.com>
30226
30227 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
30228 Clear MASK_RVC and then set if C subset supported.
30229
30230 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30231
30232 PR c/89872
30233 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
30234 non-addressable complit into its initializer if it is volatile.
30235
30236 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
30237
30238 * opts-common.c (integral_argument): Set errno properly in one case.
30239
30240 2019-03-29 Martin Liska <mliska@suse.cz>
30241
30242 * doc/invoke.texi: Remove -Wchkp from documentation.
30243
30244 2019-03-29 Martin Liska <mliska@suse.cz>
30245
30246 * dbgcnt.c (print_limit_reach): New function.
30247 (dbg_cnt): Use it.
30248
30249 2019-03-29 Martin Liska <mliska@suse.cz>
30250
30251 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
30252 (dbg_cnt_process_opt): Parse first tokens aas
30253 dbg_cnt_process_single_pair is also using strtok.
30254
30255 2019-03-29 Jakub Jelinek <jakub@redhat.com>
30256
30257 PR rtl-optimization/87485
30258 * function.c (expand_function_end): Move stack_protect_epilogue
30259 before loading of return value into hard register(s).
30260
30261 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30262
30263 PR middle-end/89621
30264 * tree-inline.h (struct copy_body_data): Add
30265 dont_remap_vla_if_no_change flag.
30266 * tree-inline.c (remap_type_3, remap_type_2): New functions.
30267 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
30268 and remap_type_2 returns false.
30269 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
30270 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
30271 only from where it is copied to nested contexts.
30272
30273 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30274
30275 PR target/89865
30276 * config/i386/i386.md (RMW operation with LEA peephole):
30277 Use LEAMODE mode attribute instead of SWI mode iterator for
30278 LEA pattern.
30279
30280 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
30281
30282 PR target/89848
30283 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
30284 Also process XEXP (src, 0) of a shift insn.
30285
30286 2019-03-28 David Malcolm <dmalcolm@redhat.com>
30287
30288 PR middle-end/89725
30289 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
30290 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
30291
30292 2019-03-28 Jakub Jelinek <jakub@redhat.com>
30293
30294 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
30295 test.
30296 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
30297 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
30298 immediately after first one with df_analyze in between, but rather
30299 process all bbs, queueing ones that need second pass in a worklist,
30300 df_analyze, process queued debug insn changes and if second pass is
30301 needed, process bbs from worklist, df_analyze, process queued debug
30302 insns again.
30303
30304 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
30305 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
30306 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
30307
30308 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
30309
30310 PR c/79022
30311 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
30312 definition.
30313
30314 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
30315
30316 PR target/85667
30317 * config/i386/i386.c (ix86_function_value_1): Call the newly added
30318 function for 32-bit MS_ABI.
30319 (function_value_ms_32): New function.
30320
30321 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
30322
30323 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
30324 (movdi): Call gen_movdi_symbol_save_scc.
30325 (gen_movdi_symbol_save_scc): New insn and split.
30326
30327 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
30328
30329 PR rtl-optimization/89313
30330 * function.c (matching_constraint_num): New static function.
30331 (match_asm_constraints_1): Use it. Fixup white space and comment.
30332 Don't replace inputs with non-matching constraints which conflict
30333 with early clobber outputs.
30334
30335 2019-03-27 Jeff Law <law@redhat.com>
30336
30337 PR rtl-optimization/87761
30338 PR rtl-optimization/89826
30339 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
30340 slightly later.
30341 (pass_cprop_hardreg::execute): Call df_analyze after adding the
30342 note problem to get REG_DEAD/REG_UNUSED notes updated.
30343
30344 2019-03-27 Richard Biener <rguenther@suse.de>
30345
30346 PR tree-optimization/89463
30347 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
30348 queue edges to remove.
30349 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
30350 dead stmts. Delay edge removal until PHIs are removed to
30351 make debug-stmt creation not confused by seemingly degenerate
30352 PHIs.
30353
30354 2019-03-27 Alan Modra <amodra@gmail.com>
30355
30356 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
30357 throughout file.
30358 * config/rs6000/darwin.h: Likewise.
30359 * config/rs6000/rs6000.c: Likewise.
30360
30361 2019-03-27 Alan Modra <amodra@gmail.com>
30362
30363 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
30364 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
30365
30366 2019-03-26 Andrew Waterman <andrew@sifive.com>
30367 Jim Wilson <jimw@sifive.com>
30368
30369 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
30370 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
30371 (generic_idivdi, generic_fmul_single, generic_fmul_double)
30372 (generic_fdiv, generic_fsqrt): Add check for generic tune.
30373 (generic_alu): Add auipc to type list.
30374 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
30375 (riscv_microarchitecture): Declare.
30376 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
30377 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
30378 field.
30379 (riscv_microarchitecture): New.
30380 (sifive_7_tune_info): New.
30381 (riscv_cpu_info_table): Add microarchitecture value for rocket and
30382 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
30383 entries.
30384 (riscv_store_data_bypass_p): New.
30385 (riscv_option_override): Set riscv_microarchitecture from
30386 cpu->microarchitecture.
30387 * config/riscv/riscv.md: Include sifive-7.md.
30388 (type): Add auipc.
30389 (tune): New.
30390 (auipc<mode>): Change type to auipc.
30391 (restore_stack_nonlocal): New.
30392 * config/riscv/sifive-7.md: New.
30393 * doc/invoke.texi (RISC-V Options): Update mtune docs.
30394
30395 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
30396
30397 PR target/89827
30398 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
30399 Also process XEXP (src, 0) of a shift insn.
30400
30401 2019-03-26 Richard Biener <rguenther@suse.de>
30402
30403 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
30404 (copy_debug_stmt): Likewise.
30405 (expand_call_inline): Likewise.
30406 (copy_bb): Avoid redundant lookup & set of gimple_block.
30407 * gimple-low.c (lower_gimple_return): Likewise.
30408 (lower_builtin_setjmp): Likewise.
30409
30410 2019-03-26 Jakub Jelinek <jakub@redhat.com>
30411
30412 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
30413 is constant 0, turn into static const data member initialized to false.
30414 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
30415 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
30416
30417 2019-03-26 Jason Merrill <jason@redhat.com>
30418 Jakub Jelinek <jakub@redhat.com>
30419
30420 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
30421 method.
30422 (mem_alloc_description::release_object_overhead): Fix comment typos.
30423 * hash-table.h (hash_table::~hash_table): Call
30424 release_instance_overhead only if m_entries is non-NULL, otherwise
30425 call unregister_descriptor.
30426
30427 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
30428
30429 PR tree-optimization/81740
30430 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30431 In case of outer loop vectorization, check for backward dependence
30432 at the inner loop if outer loop dependence is reversed.
30433
30434 2019-03-26 Alan Modra <amodra@gmail.com>
30435
30436 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
30437 rs6000_vector_mem init. Correct wI and wJ comment.
30438
30439 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
30440
30441 PR rtl-optimization/88347
30442 PR rtl-optimization/88423
30443 * sched-deps.c (sched_analyze_insn): Take into account that for
30444 tablejumps the barrier appears after a label and a jump_table_data.
30445
30446 2019-03-25 Martin Sebor <msebor@redhat.com>
30447
30448 PR c/89812
30449 * c-common.c (check_user_alignment): Rename local. Correct maximum
30450 alignment in diagnostic. Avoid assuming argument fits in SHWI,
30451 convert it to UHWI when it fits.
30452
30453 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
30454
30455 PR debug/86964
30456 * dwarf2out.c (premark_used_variables): New function.
30457 (prune_unused_types_walk): Do not mark not premarked external
30458 variables.
30459 (prune_unused_types): Call premark_used_variables.
30460
30461 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
30462
30463 PR rtl-optimization/89676
30464 * lra-constraints.c (curr_insn_transform): Do match reload for
30465 early clobbers when the match was successful only for different
30466 registers.
30467
30468 2019-03-25 Martin Sebor <msebor@redhat.com>
30469
30470 * doc/extend.texi (Common Type Attributes): Document vector_size.
30471 (Common Variable Attributes): Mention size constraint. Correct
30472 quoting and typos.
30473 (Vector Extensions): Use @dfn when defining bas type. Clarify
30474 base type and size constraints.
30475
30476 2019-03-25 Richard Biener <rguenther@suse.de>
30477
30478 PR tree-optimization/89789
30479 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
30480 changes from non-undefined back to undefined.
30481
30482 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
30483
30484 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
30485 heap string and a gc string, but since this variable is unknown to
30486 ggc the gc string might get reused and corrupted. Fixed by always
30487 using a heap string.
30488
30489 2019-03-25 Richard Biener <rguenther@suse.de>
30490
30491 PR tree-optimization/89779
30492 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30493 to remove IV defs, delay actual removal.
30494 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
30495 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30496 very end, properly also reset loop control IV information.
30497
30498 2019-03-25 Richard Biener <rguenther@suse.de>
30499
30500 PR tree-optimization/89802
30501 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30502 move EH data to folded stmt.
30503
30504 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30505
30506 * config/s390/s390-builtin-types.def: Remove few unused types and
30507 fix sort order for others.
30508
30509 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30510
30511 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30512 expected and found types with -mdebug during builtin matching.
30513
30514 2019-03-25 Richard Biener <rguenther@suse.de>
30515
30516 PR middle-end/89790
30517 * fold-const.c (operand_equal_p): Revert last change with
30518 updated comment.
30519
30520 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
30521
30522 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30523 notes for the result of the __tls_get_addr calls.
30524 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30525
30526 2019-03-24 Jeff Law <law@redhat.com>
30527
30528 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30529
30530 PR rtl-optimization/87761
30531 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30532 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
30533 as needed.
30534 (pass_cprop_hardreg::execute): Add df note problem and defer insn
30535 rescans. Reprocess blocks as needed, calling df_analyze before
30536 reprocessing. Always call df_analyze before fixing up debug bind
30537 insns.
30538
30539 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
30540
30541 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30542 big endian.
30543
30544 2019-03-22 Andrew Pinski <apinski@marvell.com>
30545
30546 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30547 attrribute for uxtw.
30548
30549 2019-03-26 Jeff Law <law@redhat.com>
30550
30551 PR rtl-optimization/87761
30552 * config/mips/mips-protos.h (mips_split_move): Add new argument.
30553 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30554 (mips_split_move): Accept new INSN argument. Try to forward SRC
30555 into the next instruction.
30556 (mips_split_move_insn): Pass INSN through to mips_split_move.
30557
30558 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
30559
30560 PR rtl-optimization/89676
30561 * lra-constraints.c (curr_insn_transform): Do match reload for
30562 early clobbers even if the match was successful.
30563
30564 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30565
30566 PR c++/87481
30567 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30568
30569 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30570
30571 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30572
30573 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30574
30575 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30576 <avx512>_fmsub_<mode>_mask3<round_name>,
30577 <avx512>_fnmadd_<mode>_mask3<round_name>,
30578 <avx512>_fnmsub_<mode>_mask3<round_name>,
30579 avx512f_vmfmadd_<mode>_mask3<round_name>,
30580 avx512f_vmfmsub_<mode>_mask3<round_name>,
30581 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30582 instead of register_operand and %v instead of v for match_operand 1.
30583 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30584 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30585 <round_nimm_predicate> instead of register_operand and %v instead of v
30586 for match_operand 1.
30587
30588 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30589 <avx512>_fmadd_<mode>_mask3<round_name>,
30590 <avx512>_fmsub_<mode>_mask<round_name>,
30591 <avx512>_fmsub_<mode>_mask3<round_name>,
30592 <avx512>_fnmadd_<mode>_mask<round_name>,
30593 <avx512>_fnmadd_<mode>_mask3<round_name>,
30594 <avx512>_fnmsub_<mode>_mask<round_name>,
30595 <avx512>_fnmsub_<mode>_mask3<round_name>,
30596 <avx512>_fmaddsub_<mode>_mask<round_name>,
30597 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30598 <avx512>_fmsubadd_<mode>_mask<round_name>,
30599 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30600 <round_nimm_predicate> instead of nonimmediate_operand.
30601 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30602 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30603 Use register_operand instead of <round_nimm_predicate> for the
30604 operand that needs to match output.
30605 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30606 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30607 Likewise. Formatting fixes.
30608
30609 PR target/89784
30610 * config/i386/i386.c (enum ix86_builtins): Remove
30611 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30612 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30613 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30614 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30615 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30616 __builtin_ia32_vfmsubss3_mask3): New builtins.
30617 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30618 avx512f_vmfmadd_<mode>_mask3<round_name>,
30619 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30620 *avx512f_vmfmsub_<mode>_mask<round_name>,
30621 avx512f_vmfmsub_<mode>_mask3<round_name>,
30622 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30623 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30624 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30625 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30626 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30627 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30628 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30629 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30630 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30631 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30632 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30633 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30634 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30635 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30636 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30637 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30638 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30639 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30640 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30641 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30642 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30643 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30644 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30645 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30646 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30647 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30648 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30649 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30650
30651 2019-03-21 Martin Sebor <msebor@redhat.com>
30652
30653 PR tree-optimization/89350
30654 * builtins.c (compute_objsize): Also ignore offsets whose upper
30655 bound is negative.
30656 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30657 (builtin_memref::builtin_memref): Initialize new member.
30658 Allow EXPR to be null.
30659 (builtin_memref::extend_offset_range): Replace local with a member.
30660 Avoid assuming pointer offsets are unsigned.
30661 (builtin_memref::set_base_and_offset): Determine base object
30662 before computing offset range.
30663 (builtin_access::builtin_access): Handle memset.
30664 (builtin_access::generic_overlap): Replace local with a member.
30665 (builtin_access::strcat_overlap): Same.
30666 (builtin_access::overlap): Same.
30667 (maybe_diag_overlap): Same.
30668 (maybe_diag_access_bounds): Same.
30669 (wrestrict_dom_walker::check_call): Handle memset.
30670 (check_bounds_or_overlap): Same.
30671
30672 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30673 Jakub Jelinek <jakub@redhat.com>
30674
30675 PR lto/89692
30676 * tree.c (fld_type_variant, fld_incomplete_type_of,
30677 fld_process_array_type): Call fld->pset.add and don't call
30678 add_tree_to_fld_list if it returns true.
30679 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30680 non-marked types from TYPE_NEXT_VARIANT list.
30681 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30682
30683 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30684
30685 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30686 to false, if true, don't alloc_entries during construction, but defer
30687 it to the first method that needs m_entries allocated.
30688 (hash_table::hash_table, hash_table::~hash_table,
30689 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30690 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30691 hash_table::clear_slot, hash_table::traverse_noresize,
30692 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30693 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30694 false.
30695 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30696 NO_INSERT instead of find_with_hash.
30697 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30698 hash_set::m_table): Add Lazy to template params of hash_table.
30699 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30700 * attribs.c (test_attribute_exclusions): Likewise.
30701 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30702 hash_set. Add tests for hash_set with Lazy = true.
30703
30704 2019-03-21 Richard Biener <rguenther@suse.de>
30705
30706 PR tree-optimization/89779
30707 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30708 checks with respect to released SSA names now having error_mark_node
30709 type.
30710 * fold-const.c (operand_equal_p): Likewise.
30711
30712 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30713
30714 PR target/89775
30715 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30716 available to ...
30717 (s390_optimize_register_info): Use global_not_special_regno_p to
30718 check for global regs.
30719
30720 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30721
30722 PR target/89752
30723 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30724 update this_alternative nor this_alternative_set.
30725
30726 2019-03-19 Jim Wilson <jimw@sifive.com>
30727
30728 PR target/89411
30729 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30730 align, size, offset. Use them to handle a BLKmode reference. Update
30731 comment.
30732 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30733
30734 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30735
30736 PR rtl-optimization/89768
30737 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30738 instead of GEN_INT.
30739 (unroll_loop_runtime_iterations): Likewise.
30740
30741 2019-03-19 Martin Sebor <msebor@redhat.com>
30742
30743 PR tree-optimization/89644
30744 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30745 rather than endptr as an indicator of nul-termination.
30746
30747 PR tree-optimization/89644
30748 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30749 arrays in determining sequence sizes in strncpy and stpncpy.
30750
30751 2019-03-19 Martin Liska <mliska@suse.cz>
30752
30753 PR middle-end/89737
30754 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30755 unlikely_edges if there's an edge that belongs to both these sets.
30756
30757 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30758
30759 PR target/89746
30760 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30761 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30762 go via a stack temporary.
30763
30764 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30765
30766 PR target/89378
30767 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30768 instead of gen_rtx_SUBREG.
30769 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30770
30771 2019-03-19 Richard Biener <rguenther@suse.de>
30772
30773 PR debug/88389
30774 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30775
30776 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30777
30778 PR lto/87809
30779 PR lto/89335
30780 * tree.c (free_lang_data_in_decl): Do not free context of C++
30781 destrutors.
30782
30783 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30784
30785 PR target/89506
30786 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30787 subs for the first alternative except when operands[3] is 1.
30788
30789 PR target/89752
30790 * gimplify.c (gimplify_asm_expr): For output argument with
30791 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30792 diagnose error.
30793
30794 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30795
30796 PR rtl-optimization/89753
30797 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30798 explicit unrolling factor even more robust.
30799
30800 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30801
30802 PR target/89726
30803 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30804 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30805 signed zeros, do another copysign after the compensation.
30806
30807 2019-03-18 Martin Sebor <msebor@redhat.com>
30808
30809 PR tree-optimization/89720
30810 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30811 more conservatively, the same as anti-range.
30812
30813 2019-03-18 Richard Biener <rguenther@suse.de>
30814
30815 PR middle-end/88945
30816 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30817 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30818 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30819 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30820
30821 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30822
30823 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30824 Extend queue to 1024 entries.
30825 Add "consumed" field.
30826 (gomp_print_output): Remove print_index parameter.
30827 Add final parameter.
30828 Change limit to unsigned.
30829 Use consumed field to implement circular buffer.
30830 Detect interrupted print in final pass.
30831 Flush output at the end.
30832 (run): Update gomp_print_output usage.
30833 (main): Initialize kernargs->output_data.consumed.
30834
30835 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30836
30837 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30838 calculation of the minimum number of scalar iterations for
30839 fully-predicated loops.
30840
30841 2019-03-18 Martin Jambor <mjambor@suse.cz>
30842
30843 PR tree-optimization/89546
30844 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30845 any propagation to its children took place.
30846
30847 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30848
30849 PR target/89627
30850 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30851 parameter, and make use of it.
30852 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30853
30854 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30855
30856 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30857 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30858 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30859 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30860 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30861 match what the ops is doing.
30862 (push_multi_fp_blink): Likewise.
30863 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30864 compiling for size and elf target.
30865 (arc_save_callee_enter): Adjust note to match what enter/leave
30866 operation does.
30867
30868 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30869
30870 * config/arc/arc.md (tst_movb): Fix constraint.
30871
30872 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30873
30874 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30875
30876 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30877
30878 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30879 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30880 reg_alloc_order references.
30881 (size_alloc_order): Define.
30882 (arc_adjust_reg_alloc_order): New function.
30883 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30884 order.
30885 (ADJUST_REG_ALLOC_ORDER): Define.
30886 (HONOR_REG_ALLOC_ORDER): Likewise.
30887
30888 2019-03-18 Richard Biener <rguenther@suse.de>
30889
30890 PR target/87561
30891 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30892 loads and stores a bit more.
30893
30894 2019-03-18 Richard Biener <rguenther@suse.de>
30895
30896 PR target/87561
30897 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30898 load pessimization to stores as well.
30899
30900 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30901
30902 PR middle-end/86979
30903 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30904 successor, use NULL as its av set.
30905
30906 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30907
30908 PR rtl-optimization/89721
30909 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30910
30911 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30912
30913 PR target/87532
30914 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30915 When handling vec_extract, use modular arithmetic to allow
30916 constant selectors greater than vector length.
30917 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30918 V1TImode vectors to have constant selector values greater than 0.
30919 Use modular arithmetic to compute vector index.
30920 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30921 index for in-memory vectors. Correct code generation for
30922 in-register vectors.
30923 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30924 compute index.
30925
30926 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30927
30928 PR c++/88534
30929 PR c++/88537
30930 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30931 VAR_DECL args.
30932
30933 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30934
30935 PR c++/89709
30936 * tree.c (inchash::add_expr): Strip any location wrappers.
30937 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30938 after hash verification.
30939
30940 PR debug/89704
30941 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30942 SIGN_EXTEND and ZERO_EXTEND.
30943
30944 2019-03-14 Jason Merrill <jason@redhat.com>
30945 Jakub Jelinek <jakub@redhat.com>
30946
30947 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30948 than if is_empty (*slot).
30949 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30950 existing elt and for elt removal.
30951 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30952 of already removed elt.
30953
30954 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30955
30956 PR target/89650
30957 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30958 REG_EH_REGION note.
30959
30960 2019-03-14 Martin Liska <mliska@suse.cz>
30961
30962 PR other/89712
30963 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30964
30965 2019-03-14 Richard Biener <rguenther@suse.de>
30966
30967 PR target/89711
30968 * config/i386/i386.c (make_resolver_func): Properly set
30969 DECL_CONTEXT on the RESULT_DECL.
30970 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30971
30972 2019-03-14 Richard Biener <rguenther@suse.de>
30973
30974 * gimple-pretty-print.c: Include cfgloop.h.
30975 (dump_gimple_phi): Adjust.
30976 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30977 (pp_cfg_jump): Adjust.
30978 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30979 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30980 (lower_phi_internal_fn): Remove.
30981 (verify_gimple_call): Remove IFN_PHI special-casing.
30982 (dump_function_to_file): Dump IL state.
30983 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30984 done to deal with PHI nodes being present in non-SSA state.
30985
30986 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30987
30988 PR ipa/89684
30989 * multiple_target.c (create_dispatcher_calls): Change
30990 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30991 In the node->iterate_referring loop, push *ref rather than ref, call
30992 ref->remove_reference () and always pass 0 to iterate_referring.
30993
30994 PR rtl-optimization/89679
30995 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30996 would contain a paradoxical SUBREG.
30997
30998 2019-03-14 Richard Biener <rguenther@suse.de>
30999
31000 PR tree-optimization/89710
31001 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
31002 safe_dyn_cast.
31003
31004 2019-03-14 Martin Liska <mliska@suse.cz>
31005
31006 * coverage.c (coverage_begin_function): Stream also
31007 end_column.
31008 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
31009 documentation about function declaration location.
31010 * gcov-dump.c (tag_function): Print whole range
31011 of function declaration.
31012 * gcov.c (struct function_info): Add end_column field.
31013 (function_info::function_info): Initialize it.
31014 (output_json_intermediate_file): Output {start,end}_column
31015 fields.
31016 (read_graph_file): Read end_column.
31017
31018 2019-03-14 Richard Biener <rguenther@suse.de>
31019
31020 PR middle-end/89698
31021 * fold-const.c (operand_equal_p): For INDIRECT_REF check
31022 that the access types are similar.
31023
31024 2019-03-14 Jakub Jelinek <jakub@redhat.com>
31025
31026 PR tree-optimization/89703
31027 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
31028 aren't compatible also with builtin_decl_explicit. Check pure
31029 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
31030 and BUILT_IN_STPNCPY{,_CHK}.
31031
31032 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
31033
31034 PR target/89523
31035 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
31036 addr32 prefix to VSIB address for X32.
31037 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
31038 "%M2" to opcode.
31039 (*avx512pf_gatherpf<mode>df_mask): Likewise.
31040 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
31041 (*avx512pf_scatterpf<mode>df_mask): Likewise.
31042 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
31043 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
31044 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
31045 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
31046 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
31047 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
31048 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
31049 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
31050 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
31051 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
31052 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
31053 (*avx512f_scatterdi<mode>): Likewise.
31054
31055 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
31056
31057 PR target/85860
31058 * lra-constraints.c (inherit_in_ebb): Update
31059 potential_reload_hard_regs along with live_hard_regs.
31060
31061 2019-03-13 Jakub Jelinek <jakub@redhat.com>
31062
31063 PR debug/89498
31064 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
31065 DWARF_OFFSET_SIZE.
31066 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
31067
31068 2019-03-13 Martin Sebor <msebor@redhat.com>
31069
31070 PR tree-optimization/89662
31071 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
31072 has a size.
31073
31074 2019-03-13 Richard Biener <rguenther@suse.de>
31075
31076 PR middle-end/89677
31077 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
31078 throw FP expressions at tree-affine.
31079
31080 2019-03-14 Richard Biener <rguenther@suse.de>
31081
31082 * tree-pretty-print.c (dump_generic_node): For -gimple properly
31083 dump negative integer constants using _Literal (type) -num.
31084
31085 2019-03-13 Jakub Jelinek <jakub@redhat.com>
31086
31087 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
31088 nonlocal_value member.
31089
31090 PR middle-end/88588
31091 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
31092 (ipa_simd_modify_function_body): Handle PHIs.
31093
31094 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31095
31096 * config/s390/s390.c (s390_option_override_internal): Use more
31097 aggressive inlining parameters.
31098
31099 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31100
31101 * config/s390/3906.md: New file.
31102 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31103 (LONGRUNNING_THRESHOLD): Remove.
31104 (MAX_SCHED_MIX_SCORE): Decrease.
31105 (MAX_SCHED_MIX_DISTANCE): Decrease.
31106 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
31107 (struct s390_sched_state): New struct to hold scheduling state.
31108 (S390_SCHED_STATE_NORMAL): Remove.
31109 (S390_SCHED_STATE_CRACKED): Remove.
31110 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
31111 (s390_get_sched_attrmask): Use new attribute.
31112 (s390_get_unit_mask): Use new units.
31113 (s390_is_fpd): New function.
31114 (s390_is_fxd): New function.
31115 (s390_is_longrunning): New function.
31116 (s390_sched_score): Use new functions.
31117 (s390_sched_reorder): Likewise.
31118 (s390_sched_variable_issue): Rework and use new functions.
31119 (s390_sched_init): Use new functions.
31120 * config/s390/s390.h (s390_tune_attr): Add z14.
31121 * config/s390/s390.md: Add z14.
31122
31123 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
31124
31125 * config/s390/2964.md: Update pipeline description.
31126 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
31127 (LONGRUNNING_THRESHOLD): Remove.
31128 (LATENCY_FACTOR): Remove.
31129 (s390_get_unit_mask): Add unit.
31130 (s390_sched_score): Use fxd/fpd.
31131 (s390_sched_variable_issue): Use fxd/fpd.
31132
31133 2019-03-12 Martin Liska <mliska@suse.cz>
31134
31135 * config/i386/i386.c: Reword an error message.
31136
31137 2019-03-12 Martin Jambor <mjambor@suse.cz>
31138
31139 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
31140 terminate with newline.
31141
31142 2019-03-12 Jakub Jelinek <jakub@redhat.com>
31143
31144 PR target/52726
31145 * config/s390/s390.md (tabort): Use %wd instead of
31146 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
31147 letters and periods.
31148 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
31149 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
31150 's with %< and %>.
31151
31152 PR middle-end/89663
31153 * builtins.c (expand_builtin_int_roundingfn,
31154 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
31155 gcc_unreachable if validate_arglist fails.
31156
31157 2019-03-12 Richard Biener <rguenther@suse.de>
31158
31159 PR tree-optimization/89664
31160 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
31161 free the occurance tree after the early out.
31162
31163 2019-03-11 Jakub Jelinek <jakub@redhat.com>
31164
31165 PR middle-end/89655
31166 PR bootstrap/89656
31167 * vr-values.c (vr_values::update_value_range): If
31168 old_vr->varying_p (), don't update it, make new_vr also VARYING
31169 and return false.
31170
31171 2019-03-11 Martin Liska <mliska@suse.cz>
31172
31173 * config/aarch64/aarch64.c (aarch64_override_options_internal):
31174 Fix double string quoting.
31175
31176 2019-03-11 Martin Liska <mliska@suse.cz>
31177
31178 * collect-utils.c (collect_wait): Wrap apostrophes
31179 in gcc internal format with %'.
31180 * collect2.c (main): Likewise.
31181 (scan_prog_file): Likewise.
31182 (scan_libraries): Likewise.
31183 * config/i386/i386.c (ix86_expand_call): Likewise.
31184 (ix86_handle_interrupt_attribute): Likewise.
31185 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
31186 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
31187 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
31188 * lto-wrapper.c (find_crtoffloadtable): Likewise.
31189 * symtab.c (symtab_node::verify_base): Likewise.
31190 * tree-cfg.c (verify_gimple_label): Likewise.
31191 * tree.c (verify_type_variant): Likewise.
31192
31193 2019-03-11 Martin Liska <mliska@suse.cz>
31194
31195 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
31196 in a string format message and fix GNU coding style.
31197 (expand_builtin_set_thread_pointer): Likewise.
31198 * common/config/aarch64/aarch64-common.c
31199 (aarch64_rewrite_selected_cpu): Likewise.
31200 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
31201 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
31202 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
31203 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
31204 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
31205 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
31206 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
31207 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
31208 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
31209 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
31210 Likewise.
31211 * common/config/riscv/riscv-common.c
31212 (riscv_subset_list::parsing_subset_version): Likewise.
31213 (riscv_subset_list::parse_std_ext): Likewise.
31214 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31215 (riscv_subset_list::parse): Likewise.
31216 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
31217 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
31218 (aarch64_override_options_internal): Likewise.
31219 (aarch64_validate_mcpu): Likewise.
31220 (aarch64_validate_march): Likewise.
31221 (aarch64_validate_mtune): Likewise.
31222 (aarch64_override_options): Likewise.
31223 * config/alpha/alpha.c (alpha_option_override): Likewise.
31224 * config/arc/arc.c (arc_init): Likewise.
31225 (parse_mrgf_banked_regs_option): Likewise.
31226 (arc_override_options): Likewise.
31227 (arc_expand_builtin_aligned): Likewise.
31228 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
31229 (arm_expand_builtin): Likewise.
31230 * config/arm/arm.c (arm_option_check_internal): Likewise.
31231 (arm_configure_build_target): Likewise.
31232 (arm_option_override): Likewise.
31233 (arm_options_perform_arch_sanity_checks): Likewise.
31234 (arm_handle_cmse_nonsecure_entry): Likewise.
31235 (arm_handle_cmse_nonsecure_call): Likewise.
31236 (arm_tls_referenced_p): Likewise.
31237 (thumb1_expand_prologue): Likewise.
31238 * config/avr/avr.c (avr_option_override): Likewise.
31239 * config/bfin/bfin.c (bfin_option_override): Likewise.
31240 * config/c6x/c6x.c (c6x_option_override): Likewise.
31241 * config/cr16/cr16.c (cr16_override_options): Likewise.
31242 * config/cris/cris.c (cris_option_override): Likewise.
31243 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
31244 * config/darwin-c.c (macosx_version_as_macro): Likewise.
31245 * config/darwin.c (darwin_override_options): Likewise.
31246 * config/frv/frv.c (frv_expand_builtin): Likewise.
31247 * config/h8300/h8300.c (h8300_option_override): Likewise.
31248 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
31249 (ix86_option_override_internal): Likewise.
31250 (warn_once_call_ms2sysv_xlogues): Likewise.
31251 (ix86_expand_prologue): Likewise.
31252 (split_stack_prologue_scratch_regno): Likewise.
31253 (ix86_warn_parameter_passing_abi): Likewise.
31254 * config/ia64/ia64.c (fix_range): Likewise.
31255 * config/m68k/m68k.c (m68k_option_override): Likewise.
31256 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
31257 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
31258 (mips_set_compression_mode): Likewise.
31259 * config/mmix/mmix.c (mmix_option_override): Likewise.
31260 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
31261 * config/msp430/msp430.c (msp430_option_override): Likewise.
31262 * config/nds32/nds32.c (nds32_option_override): Likewise.
31263 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
31264 (nios2_option_override): Likewise.
31265 (nios2_expand_custom_builtin): Likewise.
31266 * config/nvptx/mkoffload.c (main): Likewise.
31267 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
31268 * config/pa/pa.c (fix_range): Likewise.
31269 (pa_option_override): Likewise.
31270 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
31271 (riscv_option_override): Likewise.
31272 * config/rl78/rl78.c (rl78_option_override): Likewise.
31273 * config/rs6000/aix61.h: Likewise.
31274 * config/rs6000/aix71.h: Likewise.
31275 * config/rs6000/aix72.h: Likewise.
31276 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
31277 * config/rs6000/freebsd64.h: Likewise.
31278 * config/rs6000/linux64.h: Likewise.
31279 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
31280 (rs6000_expand_zeroop_builtin): Likewise.
31281 (rs6000_expand_mtfsb_builtin): Likewise.
31282 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
31283 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
31284 (rs6000_invalid_builtin): Likewise.
31285 (rs6000_expand_split_stack_prologue): Likewise.
31286 * config/rs6000/rtems.h: Likewise.
31287 * config/rx/rx.c (valid_psw_flag): Likewise.
31288 (rx_expand_builtin): Likewise.
31289 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
31290 * config/s390/s390.c (s390_expand_builtin): Likewise.
31291 (s390_function_profiler): Likewise.
31292 (s390_option_override_internal): Likewise.
31293 (s390_option_override): Likewise.
31294 * config/sh/sh.c (sh_option_override): Likewise.
31295 (sh_builtin_saveregs): Likewise.
31296 (sh_fix_range): Likewise.
31297 * config/sh/vxworks.h: Likewise.
31298 * config/sparc/sparc.c (sparc_option_override): Likewise.
31299 * config/spu/spu.c (spu_option_override): Likewise.
31300 (fix_range): Likewise.
31301 * config/visium/visium.c (visium_option_override): Likewise.
31302 (visium_handle_interrupt_attr): Likewise.
31303 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
31304 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
31305 (dbg_cnt_process_opt): Likewise.
31306 * dwarf2out.c (output_dwarf_version): Likewise.
31307 * except.c (expand_eh_return): Likewise.
31308 * gcc.c (defined): Likewise.
31309 (driver_handle_option): Likewise.
31310 (process_command): Likewise.
31311 (compare_files): Likewise.
31312 (driver::prepare_infiles): Likewise.
31313 (driver::do_spec_on_infiles): Likewise.
31314 (driver::maybe_run_linker): Likewise.
31315 * omp-offload.c (oacc_parse_default_dims): Likewise.
31316 * opts-global.c (handle_common_deferred_options): Likewise.
31317 * opts.c (parse_sanitizer_options): Likewise.
31318 (common_handle_option): Likewise.
31319 (enable_warning_as_error): Likewise.
31320 * passes.c (enable_disable_pass): Likewise.
31321 * plugin.c (parse_plugin_arg_opt): Likewise.
31322 (default_plugin_dir_name): Likewise.
31323 * targhooks.c (default_expand_builtin_saveregs): Likewise.
31324 (default_pch_valid_p): Likewise.
31325 * toplev.c (init_asm_output): Likewise.
31326 (process_options): Likewise.
31327 (toplev::run_self_tests): Likewise.
31328 * tree-cfg.c (verify_gimple_call): Likewise.
31329 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
31330 (tree_inlinable_function_p): Likewise.
31331 * var-tracking.c (vt_find_locations): Likewise.
31332
31333 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
31334
31335 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
31336 only on the else branch.
31337
31338 2019-03-11 Martin Liska <mliska@suse.cz>
31339
31340 * gcov.c (output_intermediate_json_line): Print function
31341 name of each line.
31342 (output_json_intermediate_file): Add new argument.
31343 * doc/gcov.texi: Document the change.
31344
31345 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
31346
31347 PR rtl-optimization/89588
31348 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
31349 explicit unrolling factor more robust.
31350
31351 2019-03-11 Richard Biener <rguenther@suse.de>
31352
31353 PR tree-optimization/89649
31354 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
31355 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
31356 on the prolog and epilog loops.
31357 (vect_loop_versioning): Return copy of loop.
31358 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
31359 on the non-vectorized version of the loop.
31360
31361 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
31362
31363 PR target/68924
31364 * config/i386/sse.md (*vec_extractv2di_0_sse):
31365 Add (=r,x) alternative and corresponding splitter.
31366
31367 2019-03-10 Martin Jambor <mjambor@suse.cz>
31368
31369 PR tree-optimization/85762
31370 PR tree-optimization/87008
31371 PR tree-optimization/85459
31372 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
31373 it points to if there is a type changing MEM_REF. Adjust all callers.
31374 (build_accesses_from_assign): Disable total scalarization if
31375 contains_vce_or_bfcref_p returns true through the new parameter, for
31376 both rhs and lhs.
31377
31378 2019-03-09 Jakub Jelinek <jakub@redhat.com>
31379
31380 PR c/88568
31381 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
31382 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
31383
31384 PR target/79645
31385 * common.opt (fdiagnostics-show-labels,
31386 fdiagnostics-show-line-numbers, fdiagnostics-format=,
31387 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
31388 gas-locview-support, ginline-points, ginternal-reset-location-views):
31389 Terminate description text with a dot.
31390 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
31391 * config/mcore/mcore.opt (m210, m340): Likewise.
31392 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
31393 mnops=): Start description text with a capital letter.
31394 * config/arc/arc.opt (msize-level=): Likewise.
31395 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
31396 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
31397 mnewlib): Likewise.
31398 * config/ft32/ft32.opt (msim): Likewise.
31399 (mft32b, mcompress): Likewise. Terminate description text with a dot.
31400 (mnodiv, mnopm): Terminate description text with a dot.
31401 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
31402 a colon.
31403 * config/i386/i386.opt (prefer_vector_width, instrument_return):
31404 Likewise.
31405 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
31406 text.
31407
31408 PR rtl-optimization/89634
31409 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
31410 are modified in BB_END (e->src) instruction.
31411
31412 2019-03-08 David Malcolm <dmalcolm@redhat.com>
31413
31414 PR target/79926
31415 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
31416 messages more amenable to translation, and improve wording.
31417
31418 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
31419
31420 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
31421 ud- and du-chains between phases.
31422
31423 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
31424
31425 PR debug/89631
31426 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
31427 instead of POLY_INT_CST.
31428
31429 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
31430
31431 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
31432 requirement.
31433
31434 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
31435
31436 PR target/68924
31437 PR target/78782
31438 PR target/87558
31439 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
31440 (_mm_storeu_si64): Ditto.
31441
31442 2019-03-08 Martin Liska <mliska@suse.cz>
31443
31444 PR target/86952
31445 * config/i386/i386.c (ix86_option_override_internal): Disable
31446 jump tables when retpolines are used.
31447
31448 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
31449
31450 PR go/63560
31451 * ipa-split.c (execute_split_functions): Do not split
31452 'noinline' or 'section' function.
31453
31454 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31455
31456 PR target/79846
31457 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
31458 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
31459 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
31460
31461 PR ipa/80000
31462 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
31463 from diagnostics. Formatting fixes.
31464
31465 PR target/85665
31466 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
31467 warn_odr diagnostics.
31468
31469 PR other/80058
31470 * lra-constraints.c (process_alt_operands): Avoid one space before
31471 " at the end of line and another after " on another line in a string
31472 literal.
31473 * attribs.c (handle_dll_attribute): Likewise.
31474 * config/avr/avr-devices.c (avr_texinfo): Likewise.
31475
31476 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
31477 warning_at or inform messages in G_() if there is no ?:.
31478
31479 PR tree-optimization/89550
31480 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
31481 returned true. Formatting fixes.
31482 (expand_builtin_strnlen): Formatting fixes.
31483 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
31484 if warning_at returned true.
31485 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
31486
31487 2019-03-08 Richard Biener <rguenther@suse.de>
31488
31489 PR middle-end/89578
31490 * cfgloop.h (struct loop): Add owned_clique field.
31491 * cfgloopmanip.c (copy_loop_info): Copy it.
31492 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31493 cliques.
31494 * tree-inline.c (copy_loops): Remap owned_clique.
31495 * lto-streamer-in.c (input_cfg): Stream owned_clique.
31496 * lto-streamer-out.c (output_cfg): Likewise.
31497
31498 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31499
31500 PR target/80190
31501 * config/darwin.c: Include intl.h.
31502 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31503 composing the message out of two separate parts.
31504
31505 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31506
31507 PR target/80003
31508 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31509 doesn't start with a capital letter and doesn't end with a dot.
31510 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31511 with a capital letter.
31512 (ix86_mangle_function_version_assembler_name): Likewise.
31513 (ix86_generate_version_dispatcher_body): Likewise.
31514 (fold_builtin_cpu): Likewise.
31515 (get_builtin_code_for_version): Likewise. Remove extraneous space.
31516 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31517 translators, wrap full type name in %qs.
31518
31519 PR translation/79999
31520 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31521 depend clause with source (or sink) modifier.
31522 * omp-expand.c (expand_omp_ordered_sink): Likewise.
31523
31524 PR target/89602
31525 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31526 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31527 (avx512f_load<mode>_mask): New define_expand.
31528 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31529 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31530 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31531 __builtin_ia32_movess_mask): New builtins.
31532 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31533 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31534 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31535 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31536
31537 2019-03-07 Martin Jambor <mjambor@suse.cz>
31538
31539 PR lto/87525
31540 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31541 for extern inline functions.
31542
31543 2019-03-07 Martin Jambor <mjambor@suse.cz>
31544
31545 PR ipa/88235
31546 * cgraph.h (cgraph_node): New inline method former_thunk_p.
31547 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31548 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31549 have multiple callees. At the end check if declarations match as
31550 opposed to cgraph_nodes.
31551
31552 2019-03-07 Martin Liska <mliska@suse.cz>
31553
31554 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31555 which is equivalent to searching for this in clones chain.
31556 * symtab.c (symtab_node::verify_base): Similarly compare ASM
31557 names with a neighbour and special case first node in a chain.
31558
31559 2019-01-25 Jason Merrill <jason@redhat.com>
31560
31561 PR c++/80916 - spurious "static but not defined" warning.
31562 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31563 for an internal symbol with DECL_EXTERNAL.
31564
31565 2019-04-07 Richard Biener <rguenther@suse.de>
31566
31567 PR middle-end/89618
31568 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31569 * tree-inline.c (copy_loops): Simplify.
31570
31571 2019-03-07 Martin Liska <mliska@suse.cz>
31572
31573 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31574
31575 2019-03-07 Richard Biener <rguenther@suse.de>
31576
31577 PR tree-optimization/89595
31578 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31579 stmt iterator as reference, take boolean output parameter to
31580 indicate whether the stmt was removed and thus the iterator
31581 already advanced.
31582 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31583 stmts created by folding.
31584
31585 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31586
31587 PR c++/89585
31588 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31589 at toplevel.
31590
31591 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31592
31593 PR rtl-optimization/88845
31594 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31595 LRA.
31596 * lra.c (remove_scratches_1): New function.
31597 (remove_scratches): Use it.
31598 (lra_emit_move): Likewise.
31599
31600 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31601
31602 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31603 unaligned_access variable.
31604 * config/arc/arc.c (arc_override_options): Set unaligned access
31605 default on for HS CPUs.
31606 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31607
31608 2019-03-06 Martin Liska <mliska@suse.cz>
31609
31610 PR gcov-profile/89577
31611 * doc/gcov.texi: Prefer to use --coverage.
31612 * doc/sourcebuild.texi: Likewise.
31613
31614 2019-03-02 Jason Merrill <jason@redhat.com>
31615
31616 PR c++/86485 - -Wmaybe-unused with empty class ?:
31617 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31618
31619 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31620
31621 PR target/89587
31622 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31623 if_multiarch.
31624
31625 PR middle-end/89590
31626 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31627 exactly one argument.
31628
31629 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31630 Richard Sandiford <richard.sandiford@arm.com>
31631
31632 PR tree-optimization/89570
31633 * match.pd (vec_cond into cond_op simplification): Don't use
31634 get_conditional_internal_fn, use as_internal_fn (cond_op).
31635
31636 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31637
31638 PR target/89222
31639 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31640 to decide when to split off a non-zero offset from a symbol.
31641 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31642 in function symbols.
31643
31644 2019-03-05 Richard Biener <rguenther@suse.de>
31645
31646 PR tree-optimization/89594
31647 * tree-if-conv.c (pass_if_conversion::execute): Handle
31648 case where .LOOP_VECTORIZED_FUNCTION was removed.
31649
31650 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31651
31652 PR bootstrap/89560
31653 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31654 instead alloca it only when needed with the needed size.
31655
31656 PR tree-optimization/89570
31657 * match.pd (vec_cond into cond_op simplification): Guard with
31658 vectorized_internal_fn_supported_p test and #if GIMPLE.
31659
31660 PR tree-optimization/89566
31661 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31662 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31663 Punt if get_user_idx_format succeeds, but idx_format argument is
31664 not provided or doesn't have pointer type, or if idx_args is above
31665 number of provided arguments.
31666
31667 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31668
31669 PR tree-optimization/89437
31670 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31671
31672 2019-03-04 Richard Biener <rguenther@suse.de>
31673
31674 PR middle-end/89572
31675 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31676 safe_dyn_cast.
31677
31678 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31679
31680 PR tree-optimization/89487
31681 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31682 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31683 (distribute_loop): Don't do runtime alias check if there is non-
31684 addressable data reference.
31685 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31686 is a register variable.
31687
31688 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31689
31690 PR target/89506
31691 * config/arm/arm.md (cmpsi2_addneg): Use
31692 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31693 If operands[2] is 0 or INT_MIN, force use of subs.
31694 (*compare_scc splitter): Use gen_int_mode.
31695 (*negscc): Likewise.
31696 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31697
31698 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31699 Monk Chiang <sh.chiang04@gmail.com>
31700
31701 * common/config/riscv/riscv-common.c: Include sstream.
31702 (riscv_subset_list::to_string): New.
31703 (riscv_arch_str): Likewise.
31704 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31705 * config.in: Regen.
31706 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31707 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31708 (riscv_emit_attribute): New.
31709 (riscv_file_start): Emit attribute if needed.
31710 (riscv_option_override): Init riscv_emit_attribute_p.
31711 * config/riscv/riscv.opt (mriscv-attribute): New option.
31712 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31713 * configure: Regen.
31714 * doc/install.texi: Document --with-riscv-attribute.
31715 * doc/invoke.texi: Document -mriscv-attribute.
31716
31717 * common/config/riscv/riscv-common.c:
31718 Include config/riscv/riscv-protos.h.
31719 (INCLUDE_STRING): Defined.
31720 (RISCV_DONT_CARE_VERSION): Defined.
31721 (riscv_subset_t): Declare.
31722 (riscv_subset_t::riscv_subset_t): New.
31723 (riscv_subset_list): Declare.
31724 (riscv_subset_list::riscv_subset_list): New.
31725 (riscv_subset_list::~riscv_subset_list): Likewise.
31726 (riscv_subset_list::parsing_subset_version): Likewise.
31727 (riscv_subset_list::parse_std_ext): Likewise.
31728 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31729 (riscv_subset_list::add): Likewise.
31730 (riscv_subset_list::lookup): Likewise.
31731 (riscv_subset_list::xlen): Likewise.
31732 (riscv_subset_list::parse): Likewise.
31733 (riscv_supported_std_ext): Likewise.
31734 (current_subset_list): Likewise.
31735 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31736 parse.
31737
31738 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31739
31740 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31741 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31742 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31743
31744 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31745
31746 PR rtl-optimization/85899
31747 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31748 fallthru edges leading to the exit block.
31749
31750 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31751
31752 PR target/89517
31753 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31754 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31755
31756 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31757
31758 PR tree-optimization/89535
31759 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31760 for each operand. Calculate the fallback choice for mask operands
31761 and pass it to vect_get_vec_def_for_operand.
31762
31763 2019-03-01 Richard Biener <rguenther@suse.de>
31764
31765 PR middle-end/89541
31766 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31767 get virtual operands.
31768 (get_expr_operands): Handle CONST_DECL like other decls.
31769
31770 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31771
31772 PR middle-end/89503
31773 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31774 on DECL_P and EXPR_P.
31775
31776 2019-03-01 Richard Biener <rguenther@suse.de>
31777
31778 PR middle-end/89497
31779 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31780 argument, defaulted to zero.
31781 * passes.c (execute_function_todo): Pass down SSA update flags
31782 to cleanup_tree_cfg.
31783 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31784 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31785 form if requested.
31786 (cleanup_tree_cfg): Get and pass down SSA update flags.
31787
31788 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31789
31790 PR bootstrap/89539
31791 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31792 early_lto_debug argument.
31793
31794 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31795
31796 PR tree-optimization/89536
31797 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31798 only whether bit #0 of the value is 0 instead of the entire value.
31799
31800 2019-02-28 Marek Polacek <polacek@redhat.com>
31801
31802 PR c++/87068 - missing diagnostic with fallthrough statement.
31803 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31804 at the end of a seq, save its location to walk_stmt_info.
31805 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31806 a switch.
31807
31808 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31809
31810 PR lto/88585
31811 * tree.c (find_atomic_core_type): Move ahead in file.
31812 (check_base_type): Correctly compare alignments of atomic types.
31813
31814 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31815
31816 PR target/89455
31817 * config/i386/i386.c (get_builtin_code_for_version): Identify
31818 Westmere from PCLMUL, instead of AES.
31819
31820 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31821
31822 PR target/89434
31823 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31824 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31825 -UINTVAL (...).
31826
31827 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31828
31829 PR target/88530
31830 * config/aarch64/aarch64-option-extensions.def: Document it.
31831 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31832 if empty hwcaps.
31833
31834 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31835
31836 PR c/89520
31837 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31838 builtins if they don't have a single scalar floating point argument.
31839 Formatting fixes.
31840
31841 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31842
31843 PR rtl-optimization/89490
31844 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31845 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31846 block section is not mergeable.
31847
31848 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31849
31850 PR target/70341
31851 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31852 old define_insn to ...
31853 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31854 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31855 Rename old define_insn to ...
31856 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31857 (thumb2_casesi_internal_pic): New define_expand. Rename old
31858 define_insn to ...
31859 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31860 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31861 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31862
31863 2019-02-27 Richard Biener <rguenther@suse.de>
31864
31865 PR debug/88878
31866 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31867
31868 2019-02-27 Richard Biener <rguenther@suse.de>
31869
31870 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31871 building.
31872
31873 2019-02-27 Richard Biener <rguenther@suse.de>
31874
31875 PR debug/88878
31876 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31877 parameter, prefix section name with .gnu.debuglto_ if true.
31878 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31879 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31880
31881 2019-02-27 Richard Biener <rguenther@suse.de>
31882
31883 PR debug/89514
31884 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31885 rather than on use_debug_types, doing what output_die does.
31886 (value_format): Likewise.
31887
31888 2019-02-27 Martin Jambor <mjambor@suse.cz>
31889 Martin Sebor <msebor@redhat.com>
31890
31891 * doc/invoke.texi (Warning Options): Reword description of
31892 -Wno-absolute-value.
31893
31894 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31895
31896 PR tree-optimization/89280
31897 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31898 builtin_setjmp_setup_bb): New functions.
31899 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31900 When visiting __builtin_setjmp_setup block, queue in special
31901 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31902 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31903 from visited after the loop if they don't have any visited successor
31904 blocks.
31905
31906 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31907
31908 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31909 New function.
31910 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31911
31912 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31913
31914 PR c++/89507
31915 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31916 with types other than sizetype/ssizetype.
31917
31918 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31919
31920 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31921 (enum sparc_processor_type): ...this.
31922 (enum sparc_code_model_type): New enumeration type.
31923 (enum sparc_memory_model_type): Tweak comments.
31924 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31925 (mtune): Likewise.
31926 (mcmodel): Use sparc_code_model enumeration and variable.
31927 (sparc_code_model): New enumeration.
31928 (mdebug): Add Undocumented marker.
31929 * config/sparc/sparc.h (enum cmodel): Delete.
31930 (sparc_cmodel): Likewise.
31931 (TARGET_CM_MEDLOW): Adjust to above renaming.
31932 (TARGET_CM_MEDMID): Likewise.
31933 (TARGET_CM_MEDANY): Likewise.
31934 (TARGET_CM_EMBMEDANY): Likewise.
31935 * config/sparc/sparc.c (sparc_cmodel): Delete.
31936 (sparc_option_override): Remove string/value mapping support for the
31937 code model. Move code and memory model support to after the handling
31938 of target flags. Do private machine setup last.
31939 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31940 (sparc_legitimize_reload_address): Likewise.
31941 (sparc_output_mi_thunk): Likewise.
31942 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31943
31944 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31945
31946 PR tree-optimization/89500
31947 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31948 (handle_builtin_strlen): Remove noncst_bound variable. Always
31949 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31950 cst if the first cst bytes starting at x are known to be non-zero,
31951 even if the string is not zero terminated. Don't try to modify
31952 *si for strnlen. Update strlen_to_stridx only for strlen or if
31953 we can prove strnlen returns the same value as strlen would.
31954
31955 2019-02-26 Martin Liska <mliska@suse.cz>
31956
31957 * alloc-pool.h (struct pool_usage): Remove extra
31958 print_dash_line.
31959 * bitmap.h (struct bitmap_usage): Likewise.
31960 * ggc-common.c (struct ggc_usage): Likewise.
31961 * mem-stats.h (struct mem_usage): Likewise.
31962 (mem_alloc_description::dump): Print dash lines
31963 here and repeat header at the end of a table report.
31964 It's then more readable.
31965 * tree-phinodes.c (phinodes_print_statistics): Make
31966 horizontal alignment.
31967 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31968 * vec.c (struct vec_usage): Remove extra print_dash_line.
31969 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31970
31971 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31972
31973 * doc/extend.texi (__builtin_object_size):
31974 Use @pxref instead of @xref inside parenthesis.
31975 (__builtin_has_attribute): Add missing comma after @xref.
31976 (__builtin_object_size): Ditto.
31977 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31978
31979 2019-02-26 Jeff Law <law@redhat.com>
31980
31981 PR rtl-optimization/87761
31982 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31983 detect obviously dead insns and delete them.
31984
31985 2019-02-26 Richard Biener <rguenther@suse.de>
31986
31987 PR tree-optimization/89505
31988 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31989 to handle restrict pointed-to vars with multiple subvars
31990 correctly.
31991
31992 2019-02-26 Richard Biener <rguenther@suse.de>
31993
31994 PR tree-optimization/89489
31995 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31996
31997 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31998
31999 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
32000 and move around comment.
32001 <BIT_AND_EXPR>: Likewise.
32002 <BIT_NOT_EXPR>: Add specific handling for boolean types.
32003
32004 2019-02-26 Jakub Jelinek <jakub@redhat.com>
32005
32006 PR target/89474
32007 * config/i386/i386.c (remove_partial_avx_dependency): Call
32008 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
32009 after changing possibly many instructions to use that pseudo. Fix up
32010 insertion of v4sf_const0 setter at the start of bb.
32011
32012 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
32013
32014 PR c/80409
32015 * doc/extend.texi (Variadic Pointer Args): New section.
32016
32017 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
32018 Martin Sebor <msebor@gmail.com>
32019
32020 * common.opt (Wattribute-alias): Likewise.
32021 * doc/invoke.texi (Option Summary): List general form of
32022 -Wattribute-alias=. List positive form of -Wmissing-attributes.
32023 (-Wmissing-attributes): Invert entry, rewrite and correct default.
32024 Add cross-references.
32025 (-Wattribute-alias): Rewrite and correct default. Mention
32026 considered attributes (same as for -Wmissing-attributes).
32027
32028 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
32029
32030 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
32031 (_mm_cvtpd_ps): Likewise.
32032 (_mm_cvttpd_epi32): Likewise.
32033
32034 PR target/89338
32035 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
32036 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
32037
32038 PR target/89339
32039 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
32040
32041 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32042
32043 PR target/88530
32044 * common/config/aarch64/aarch64-common.c
32045 (struct aarch64_option_extension): Add is_synthetic.
32046 (all_extensions): Use it.
32047 (TARGET_OPTION_INIT_STRUCT): Define hook.
32048 (struct gcc_targetm_common): Moved to end.
32049 (all_extensions_by_on): New.
32050 (opt_ext_cmp, typedef opt_ext): New.
32051 (aarch64_option_init_struct): New.
32052 (aarch64_contains_opt): New.
32053 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
32054 * config/aarch64/aarch64-option-extensions.def
32055 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
32056 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
32057 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
32058 Set is_synthetic to false.
32059 (crypto): Set is_synthetic to true.
32060 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
32061 SYNTHETIC.
32062
32063 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32064
32065 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32066 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
32067 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32068 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
32069 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
32070 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
32071 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
32072 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
32073 Rename ...
32074 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
32075 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32076 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
32077 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
32078 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
32079 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
32080 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
32081 vfmlsl_laneq_high_f16): ... To this.
32082 * config/arm/neon.md: Update comments.
32083
32084 2019-02-25 Tamar Christina <tamar.christina@arm.com>
32085
32086 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
32087 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
32088 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
32089 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
32090 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
32091 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
32092 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
32093 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
32094 Rename ...
32095 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
32096 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
32097 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
32098 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
32099 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
32100 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
32101 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
32102 vfmlslq_laneq_high_f16): ... To this.
32103
32104 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
32105
32106 PR rtl-optimization/86096
32107 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
32108 comparing mw_order values.
32109
32110 2019-02-25 Jakub Jelinek <jakub@redhat.com>
32111
32112 PR target/89434
32113 * config/arm/arm.md (*subsi3_carryin_const): Use
32114 arm_neg_immediate_operand predicate instead of
32115 arm_not_immediate_operand, "L" constraint instead of "K" and
32116 print it using %n2 instead of %B2.
32117 (*subsi3_carryin_const0): New define_insn.
32118 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
32119 instead of arm_not_operand and "I" constraint instead of "K" and
32120 print it using %n3 instead of %B2. Instead of using match_dup 2 add
32121 another match_operand and in the condition check that it is negation
32122 of operands[2].
32123 (*subsi3_carryin_compare_const0): New define_ins.
32124 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
32125 *subsi3_carryin_const.
32126 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
32127 split into *subsi3_carryin_compare_const0 if the highpart is zero.
32128
32129 PR target/89438
32130 * config/arm.vfp.md (*negdf2_vfp): Use
32131 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
32132 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
32133
32134 2019-02-24 Jakub Jelinek <jakub@redhat.com>
32135
32136 PR rtl-optimization/89445
32137 * simplify-rtx.c (simplify_ternary_operation): Don't use
32138 simplify_merge_mask on operands that may trap.
32139 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
32140 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
32141 second operand is CONST_VECTOR, check if any element could be zero.
32142 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
32143 their operands can trap.
32144
32145 2019-02-23 Martin Sebor <msebor@redhat.com>
32146
32147 * gimple-ssa-sprintf.c (target_strtol): Rename...
32148 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
32149 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
32150 check for range error.
32151
32152 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
32153
32154 PR driver/69471
32155 * opts-common.c (prune_options): Also prune joined switches
32156 with Negative and RejectNegative.
32157 * config/i386/i386.opt (march=): Add Negative(march=).
32158 (mtune=): Add Negative(mtune=).
32159 * doc/options.texi: Document Negative used together with Joined
32160 and RejectNegative.
32161
32162 2019-02-22 Martin Sebor <msebor@redhat.com>
32163
32164 * doc/extend.texi (Other Builtins): Add
32165 __builtin_is_constant_evaluated.
32166
32167 2019-02-22 Richard Biener <rguenther@suse.de>
32168
32169 PR tree-optimization/87609
32170 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
32171
32172 2019-02-22 Jeff Law <law@redhat.com>
32173
32174 PR rtl-optimization/87761
32175 * config/mips/mips.md: Add new combiner pattern to recognize
32176 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
32177
32178 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
32179
32180 PR target/89324
32181 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
32182 destination register in peepholes generating patterns for ADDS/SUBS.
32183 (add<mode>3_compare0,
32184 *addsi3_compare0_uxtw, add<mode>3_compareC,
32185 add<mode>3_compareV_imm, add<mode>3_compareV,
32186 *adds_<optab><ALLX:mode>_<GPI:mode>,
32187 *subs_<optab><ALLX:mode>_<GPI:mode>,
32188 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
32189 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
32190 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
32191 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
32192 sub<mode>3_compare1): Allow stack pointer for source register.
32193 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
32194
32195 2019-02-22 Martin Sebor <msebor@redhat.com>
32196
32197 PR tree-optimization/88993
32198 PR tree-optimization/88853
32199 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
32200 New helper.
32201 (sprintf_dom_walker::call_info::is_string_func): New helper.
32202 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
32203 for formatted string functions.
32204 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
32205
32206 2019-02-22 Martin Sebor <msebor@redhat.com>
32207
32208 PR c/89425
32209 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
32210 unreachable subexpressions.
32211
32212 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
32213 Hongtao Liu <hongtao.liu@intel.com>
32214 Sunil K Pandey <sunil.k.pandey@intel.com>
32215
32216 PR target/87007
32217 * config/i386/i386-passes.def: Add
32218 pass_remove_partial_avx_dependency.
32219 * config/i386/i386-protos.h
32220 (make_pass_remove_partial_avx_dependency): New.
32221 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
32222 New function.
32223 (pass_data_remove_partial_avx_dependency): New.
32224 (pass_remove_partial_avx_dependency): Likewise.
32225 (make_pass_remove_partial_avx_dependency): Likewise.
32226 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
32227 (*extendsfdf2): Add avx_partial_xmm_update.
32228 (truncdfsf2): Likewise.
32229 (*float<SWI48:mode><MODEF:mode>2): Likewise.
32230 (SF/DF conversion splitters): Disabled for TARGET_AVX.
32231
32232 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
32233
32234 PR middle-end/85598
32235 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
32236 analysis for pass.
32237
32238 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
32239
32240 PR target/89444
32241 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
32242 (PTA_SKYLAKE): Add PTA_AES.
32243 (PTA_GOLDMONT): Likewise.
32244
32245 2019-02-22 Sudakshina Das <sudi.das@arm.com>
32246
32247 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
32248 instruction if enabled.
32249 (aarch64_override_options): Remove reference to return address key.
32250
32251 2019-02-22 Richard Biener <rguenther@suse.de>
32252
32253 PR tree-optimization/89440
32254 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
32255 not necessary assert.
32256
32257 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
32258
32259 PR fortran/72741
32260 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
32261 (oacc_replace_fn_attrib_attr): ... this new function.
32262 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
32263 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
32264
32265 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32266
32267 * config/arm/arm-cpus.in (ares): Rename to...
32268 (neoverse-n1): ... This. Add ares as alias.
32269 * config/arm/arm-tables.opt: Regenerate.
32270 * config/arm/arm-tune.md: Likewise.
32271 * doc/invoke.txt (ARM Options): Document neoverse-n1.
32272
32273 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32274
32275 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
32276 * config/aarch64/aarch64-tune.md: Regenerate.
32277 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
32278
32279 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32280
32281 * config/aarch64/aarch64.c (ares_tunings): Rename to...
32282 (neoversen1_tunings): ... This.
32283 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
32284 (neoverse-n1): New CPU.
32285 * config/aarch64/aarch64-tune.md: Regenerate.
32286 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
32287
32288 2019-02-22 Richard Biener <rguenther@suse.de>
32289
32290 PR middle-end/87609
32291 * cfghooks.h (dependence_hash): New typedef.
32292 (struct copy_bb_data): New type.
32293 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
32294 (duplicate_block): Likewise.
32295 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
32296 (copy_bbs): Create and pass down copy_bb_data.
32297 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
32298 (rtl_duplicate_bb): Likewise.
32299 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
32300 remap dependence info.
32301
32302 2019-02-22 Richard Biener <rguenther@suse.de>
32303
32304 PR tree-optimization/87609
32305 * tree-core.h (tree_base): Document special clique values.
32306 * tree-inline.c (remap_dependence_clique): Do not use the
32307 special clique value of one.
32308 (maybe_set_dependence_info): Use clique one.
32309 (clear_dependence_clique): New callback.
32310 (compute_dependence_clique): Clear clique one from all refs
32311 before assigning it (again).
32312
32313 2019-02-21 Martin Sebor <msebor@redhat.com>
32314
32315 * doc/extend.texi (__clear_cache): Correct signature.
32316
32317 2019-02-21 Ian Lance Taylor <iant@golang.org>
32318
32319 PR go/89170
32320 * varasm.c (decode_addr_const): Call lookup_constant_def rather
32321 than output_constant_def.
32322 (add_constant_to_table): New static function.
32323 (output_constant_def): Call add_constant_to_table.
32324 (tree_output_constant_def): Likewise.
32325
32326 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32327
32328 PR c++/89285
32329 * builtins.c (fold_builtin_arith_overflow): If first two args are
32330 INTEGER_CSTs, set intres and ovfres to constants rather than calls
32331 to ifn.
32332
32333 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
32334
32335 PR target/87412
32336 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
32337 error for -mindirect-branch/-mfunction-return with incompatible
32338 -fcf-protection.
32339
32340 2019-02-21 Jakub Jelinek <jakub@redhat.com>
32341
32342 PR bootstrap/88714
32343 * constraints.md (q): Remove.
32344 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
32345 instead of q.
32346
32347 2019-02-21 Martin Jambor <mjambor@suse.cz>
32348
32349 PR hsa/89302
32350 * omp-general.c (omp_extract_for_data): Removed a duplicate call
32351 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
32352 (omp_adjust_for_condition): ...here. Added necessary parameters.
32353 * omp-general.h (omp_adjust_for_condition): Updated declaration.
32354 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
32355 proper values to new parameters of omp_adjust_for_condition.
32356
32357 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32358
32359 PR middle-end/89412
32360 * expr.c (expand_assignment): If result is a MEM, use change_address
32361 instead of simplify_gen_subreg.
32362
32363 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32364 David Malcolm <dmalcolm@redhat.com>
32365
32366 PR middle-end/89091
32367 * fold-const.c (decode_field_reference): Return NULL_TREE if
32368 lang_hooks.types.type_for_size returns NULL. Check it before
32369 overwriting *exp_. Use return NULL_TREE instead of return 0.
32370
32371 2019-02-20 Jakub Jelinek <jakub@redhat.com>
32372
32373 PR middle-end/88074
32374 PR middle-end/89415
32375 * toplev.c (do_compile): Double the emin/emax exponents to workaround
32376 buggy mpc_norm.
32377
32378 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
32379
32380 PR target/89397
32381 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
32382 TARGET_SSE in addition to TARGET_SSE_MATH.
32383
32384 (ix86_excess_precision): Ditto.
32385 (ix86_float_exceptions_rounding_supported_p): Ditto.
32386 (use_rsqrt_p): Ditto.
32387 * config/i386/sse.md (rsqrt<mode>2): Ditto.
32388
32389 2019-02-20 David Malcolm <dmalcolm@redhat.com>
32390
32391 PR c/89410
32392 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
32393 linenum_arith_t when determining if two adjacent line spans are
32394 close enough to merge.
32395 (diagnostic_show_locus): Use linenum_arith_t when iterating over
32396 lines within each line_span.
32397
32398 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
32399
32400 PR target/86487
32401 * lra-constraints.c(uses_hard_regs_p): Fix handling of
32402 paradoxical SUBREGS.
32403
32404 2019-02-20 Li Jia He <helijia@linux.ibm.com>
32405
32406 PR target/88100
32407 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
32408 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
32409 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
32410 range checking it.
32411
32412 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
32413
32414 * config/gcn/gcn.c (print_operand): Fix typo.
32415
32416 2019-02-19 Richard Biener <rguenther@suse.de>
32417
32418 PR middle-end/88074
32419 * toplev.c (do_compile): Initialize mpfr's exponent range
32420 based on available float modes.
32421
32422 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
32423
32424 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
32425 as long as the epilogue isn't completed.
32426
32427 2019-02-18 Martin Sebor <msebor@redhat.com>
32428
32429 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
32430 __has_cpp_attribute, and __has_include.
32431
32432 2019-02-18 Martin Sebor <msebor@redhat.com>
32433
32434 * doc/invoke.texi (-Wreturn-type): Correct and expand.
32435
32436 2019-02-18 Martin Sebor <msebor@redhat.com>
32437
32438 PR middle-end/89294
32439 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
32440 expression.
32441 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
32442
32443 2019-02-18 Richard Biener <rguenther@suse.de>
32444
32445 PR tree-optimization/89296
32446 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
32447 of no-warning flag to cases that might emit the bogus warning.
32448
32449 2019-02-18 Jakub Jelinek <jakub@redhat.com>
32450
32451 PR bootstrap/88714
32452 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
32453 "q" constraint.
32454 * config/arm/vfp.md (*movdi_vfp): Likewise.
32455 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
32456 "q" constraint for operands[0].
32457
32458 PR target/89369
32459 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
32460 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
32461 pattern in a temporary buffer.
32462 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
32463 than 64-operands[2].
32464
32465 PR target/89361
32466 * config/s390/s390.c (s390_indirect_branch_attrvalue,
32467 s390_indirect_branch_settings): Define unconditionally.
32468 (s390_set_current_function): Likewise, but guard the whole body except
32469 the s390_indirect_branch_settings call with
32470 #if S390_USE_TARGET_ATTRIBUTE.
32471 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
32472
32473 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
32474 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
32475 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
32476 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
32477 HOST_WIDE_INT_1U instead of 1ULL.
32478 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
32479 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
32480 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
32481 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
32482 instead of 1UL.
32483 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
32484 instead of 1ul.
32485
32486 2019-02-18 Martin Jambor <mjambor@suse.cz>
32487
32488 PR tree-optimization/89209
32489 * tree-sra.c (create_access_replacement): New optional parameter
32490 reg_tree. Use it as a type if non-NULL and access type is not of
32491 a register type.
32492 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32493 to create_access_replacement.
32494 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32495 Check lacc is non-NULL before attempting to re-create it on the RHS.
32496
32497 2019-02-18 Martin Liska <mliska@suse.cz>
32498
32499 PR ipa/89306
32500 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32501 by default.
32502 (symbol_table::free_edge): Recycle m_summary_id.
32503 * cgraph.h (get_summary_id): New.
32504 (symbol_table::release_symbol): Set m_summary_id to -1
32505 by default.
32506 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32507 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32508 function_summary to fast_function_summary.
32509 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32510 * ipa-pure-const.c (class funct_state_summary_t):
32511 Switch from function_summary to fast_function_summary.
32512 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32513 (class ipa_ref_opt_summary_t): Switch from function_summary
32514 to fast_function_summary.
32515 * symbol-summary.h (class function_summary_base): New class
32516 that is created from base of former function_summary.
32517 (function_summary_base::unregister_hooks): New.
32518 (class function_summary): Inherit from function_summary_base.
32519 (class call_summary_base): New class
32520 that is created from base of former call_summary.
32521 (class call_summary): Inherit from call_summary_base.
32522 (struct is_same): New.
32523 (class fast_function_summary): New summary class.
32524 (class fast_call_summary): New summary class.
32525 * vec.h (vec_safe_grow_cleared): New function.
32526
32527 2019-02-18 Martin Liska <mliska@suse.cz>
32528
32529 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32530 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32531 * doc/tm.texi: Document new target hook.
32532 * doc/tm.texi.in: Likewise.
32533 * target.def: Add new target macro.
32534 * gcc.c (find_fortran_preinclude_file): Do not search multilib
32535 suffixes.
32536
32537 2019-02-17 Alan Modra <amodra@gmail.com>
32538
32539 PR target/89271
32540 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32541 output reg on add insn.
32542 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
32543
32544 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32545
32546 PR target/89372
32547 * config/i386/sse.md (ssedoublemode): Remove V4HI.
32548 (PMULHRSW): Likewise.
32549 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32550 TARGET_AVX2.
32551 (ssse3_pmulhrswv4hi3): New expander.
32552
32553 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32554
32555 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32556 MMX. Add isa attribute.
32557
32558 2019-02-16 Jakub Jelinek <jakub@redhat.com>
32559
32560 PR rtl-optimization/66152
32561 * builtins.h (c_readstr): Declare.
32562 * builtins.c (c_readstr): Remove forward declaration. Add
32563 null_terminated_p argument, if false, read all bytes from the
32564 string instead of stopping after '\0'.
32565 * expr.c (string_cst_read_str): New function.
32566 (store_expr): Use string_cst_read_str instead of
32567 builtin_strncpy_read_str. Try to store by pieces the whole
32568 exp_len first, and only if that fails, split it up into
32569 store by pieces followed by clear_storage. Formatting fix.
32570
32571 * config/i386/i386.md (*movqi_internal): Remove static from
32572 buf variable. Use output_asm_insn (buf, operands); return "";
32573 instead of return buf;.
32574 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32575 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32576 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32577
32578 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32579
32580 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32581 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32582 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32583 (CC1_SPEC): Likewise.
32584 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32585
32586 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32587
32588 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32589 the base address on 64-bit strict-alignment platforms.
32590
32591 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32592
32593 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32594
32595 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32596
32597 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32598
32599 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32600
32601 PR rtl-optimization/88308
32602 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32603 on copied instruction.
32604
32605 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32606
32607 * final.c (insn_current_reference_address): Replace test on JUMP_P
32608 with test on jump_to_label_p.
32609 * config/visium/visium-passes.def: New file.
32610 * config/visium/t-visium (PASSES_EXTRA): Define.
32611 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32612 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32613 (TRAMPOLINE_ALIGNMENT): Define.
32614 * config/visium/visium.c (visium_option_override): Do not register
32615 the machine-specific reorg pass here.
32616 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32617 for the GR6.
32618 (output_branch): Adjust threshold for long branch instruction.
32619 * config/visium/visium.md (cpu): Move around.
32620 (length): Adjust for the GR6.
32621
32622 2019-02-15 Richard Biener <rguenther@suse.de>
32623 Jakub Jelinek <jakub@redhat.com>
32624
32625 PR tree-optimization/89278
32626 * tree-loop-distribution.c: Include tree-eh.h.
32627 (generate_memset_builtin, generate_memcpy_builtin): Call
32628 rewrite_to_non_trapping_overflow on builtin->size before passing it
32629 to force_gimple_operand_gsi.
32630
32631 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32632
32633 PR other/89342
32634 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32635 optimize_debug.
32636 * opth-gen.awk: Likewise.
32637
32638 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32639
32640 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32641 Enable MMX, SSE and SSE2 by default.
32642 * config/i386/i386.c (ix86_option_override_internal): Do not
32643 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32644
32645 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32646
32647 PR rtl-optimization/89354
32648 * combine.c (make_extraction): Punt if extraction_mode is narrower
32649 than len bits.
32650
32651 2019-02-14 Maya Rashish <coypu@sdf.org>
32652
32653 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32654 * config/netbsd-d.c: New file.
32655 * config/t-netbsd: Add netbsd-d.o
32656
32657 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32658
32659 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32660 affects_type_identity to true for aarch64_vector_pcs.
32661 (aarch64_comp_type_attributes): New function.
32662 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32663
32664 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32665
32666 PR target/88850
32667 * config/arm/iterators.md (ANY64): Add V4HF.
32668
32669 2019-02-14 Martin Liska <mliska@suse.cz>
32670
32671 PR rtl-optimization/89242
32672 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32673 process a transformation.
32674
32675 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32676
32677 PR tree-optimization/89314
32678 * fold-const.c (fold_binary_loc): Cast strlen argument to
32679 const char * before dereferencing it. Formatting fixes.
32680
32681 PR middle-end/89284
32682 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32683
32684 2019-02-13 Ian Lance Taylor <iant@golang.org>
32685
32686 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32687 and set current index for other optimizations.
32688
32689 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32690
32691 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32692 nonimmediate_operand as operand 2 predicate.
32693 (vec_set<VF2_512_256:mode>_0): Ditto.
32694 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32695 (*vec_concatv2si): Remove alternative 2.
32696 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32697 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32698 (vec_concatv2di): Split alternatives 4,5,6 to ...
32699 (*vec_concatv2di_0) ... new pattern.
32700
32701 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32702
32703 PR target/89190
32704 * config/arm/arm.c (ldm_stm_operation_p) Set
32705 addr_reg_in_reglist correctly for first register.
32706 (load_multiple_sequence): Remove dead base check.
32707 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32708
32709 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32710
32711 PR target/88847
32712 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32713 Expose as @aarch64_pred_mov.
32714 * config/aarch64/aarch64.c (aarch64_classify_address):
32715 Use expand_insn which legitimizes operands.
32716
32717 2019-02-13 Martin Liska <mliska@suse.cz>
32718
32719 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32720 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32721 and pointer_offset fields.
32722 (initialize_argument_information): Remove usage of dead
32723 fields.
32724 * cgraph.h (struct cgraph_thunk_info): Remove
32725 add_pointer_bounds_args.
32726 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32727 fields.
32728 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32729 fields.
32730 * config/i386/i386.c (ix86_function_arg_advance): Remove
32731 unrelated comment.
32732 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32733 (def_builtin): Remove usage of dead fields.
32734 (ix86_add_new_builtins): Likewise.
32735 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32736 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32737 (sem_function::init): Likewise.
32738 (sem_variable::merge): Likewise.
32739 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32740 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32741 * lto-cgraph.c (lto_output_node): Likewise.
32742 (lto_output_varpool_node): Likewise.
32743 (input_node): Likewise.
32744 (input_varpool_node): Likewise.
32745 * lto-streamer-out.c (lto_output): Likewise.
32746 * tree-inline.c (expand_call_inline): Remove usage of
32747 assign_stmts.
32748 * tree-inline.h (struct copy_body_data): Likewise.
32749 * varpool.c (varpool_node::dump): Likewise.
32750
32751 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32752
32753 PR middle-end/89303
32754 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32755 into pt->vars_contains_escaped_heap instead of setting
32756 pt->vars_contains_escaped_heap to it.
32757
32758 PR middle-end/89281
32759 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32760 INTVAL (size), compare it to GET_MODE_MASK instead of
32761 1 << GET_MODE_BITSIZE.
32762
32763 PR target/89290
32764 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32765 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32766 -mcmodel=large.
32767
32768 2019-02-13 Martin Liska <mliska@suse.cz>
32769
32770 PR lto/88858
32771 * cfgrtl.c (remove_barriers_from_footer): New function.
32772 (try_redirect_by_replacing_jump): Use it.
32773 (cfg_layout_redirect_edge_and_branch): Likewise.
32774
32775 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32776
32777 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32778 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32779 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32780 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32781 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32782 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32783 New BU_CRYPTO_2.
32784 * config/rs6000/rs6000.c (builtin_function_type)
32785 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32786 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32787 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32788 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32789 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32790
32791 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32792
32793 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32794 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32795
32796 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32797
32798 PR target/89229
32799 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32800 268678 and revision 268657.
32801 (*movti_internal): Likewise.
32802
32803 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32804
32805 PR target/89233
32806 * config/s390/s390.c (s390_decompose_address): Update comment.
32807 (s390_check_qrst_address): Reject invalid address forms after
32808 LRA.
32809
32810 2019-02-12 Martin Liska <mliska@suse.cz>
32811
32812 PR lto/88876
32813 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32814 we need default values of funct_state for a function that
32815 is not optimized.
32816
32817 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32818
32819 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32820 the object to pick the size of stores on strict-alignment platforms.
32821
32822 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32823 (*movdi_insn_sp32): Likewise.
32824 (*movdi_insn_sp64): Likewise.
32825
32826 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32827
32828 PR lto/88677
32829 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32830 types that needs constructiong.
32831 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32832
32833 2019-02-12 Richard Biener <rguenther@suse.de>
32834
32835 PR tree-optimization/89253
32836 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32837 duplicate the loop.
32838
32839 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32840
32841 PR lto/88147
32842 * input.c (selftest::test_line_offset_overflow): New selftest.
32843 (selftest::input_c_tests): Call it.
32844
32845 2019-02-11 Martin Sebor <msebor@redhat.com>
32846
32847 PR tree-optimization/88771
32848 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32849 when -Wstringop-overflow is set.
32850 (builtin_memref::builtin_memref): Adjust excessive upper bound
32851 only when lower bound is not excessive.
32852 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32853 -Wstringop-ovefflow.
32854 (maybe_diag_offset_bounds): Rename...
32855 (maybe_diag_access_bounds): ...to this.
32856 (check_bounds_or_overlap): Adjust for name change above.
32857
32858 2019-02-11 Martin Sebor <msebor@redhat.com>
32859
32860 PR c++/87996
32861 * builtins.c (max_object_size): Move from here...
32862 * builtins.h (max_object_size): ...and here...
32863 * tree.c (max_object_size): ...to here...
32864 * tree.h (max_object_size): ...and here.
32865
32866 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32867
32868 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32869 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32870 for correct semantics.
32871
32872 2019-02-11 Alan Modra <amodra@gmail.com>
32873
32874 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32875 -mlongcall and -mpltseq.
32876 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32877 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32878 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32879 * config/rs6000/sysv4.opt (mpltseq): New option.
32880 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32881 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32882 support is lacking. Don't allow -mpltseq with -mbss-plt.
32883 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32884 -mpltseq given for ELFv1.
32885 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32886 Only use UNSPEC_PLTSEQ for inline PLT calls.
32887 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32888 use UNSPEC_PLTSEQ for inline PLT calls.
32889 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32890 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32891 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32892 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32893 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32894 (pltseq_mtctr_<mode>): Likewise.
32895
32896 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32897
32898 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32899 Solaris ld.
32900 * configure: Regenerate.
32901
32902 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32903
32904 PR bootstrap/88714
32905 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32906 instead of r.
32907
32908 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32909
32910 * function.c (assign_parm_setup_block): Use the stored
32911 size, not the passed size, when allocating stack-space,
32912 also for a parameter with alignment larger than
32913 MAX_SUPPORTED_STACK_ALIGNMENT.
32914
32915 2019-02-11 Martin Liska <mliska@suse.cz>
32916
32917 PR ipa/89009
32918 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32919 * ipa-inline.c (inline_small_functions): Likewise.
32920 * ipa-pure-const.c (propagate_pure_const): Likewise.
32921 (propagate_nothrow): Likewise.
32922 * ipa-reference.c (propagate): Likewise.
32923 * ipa-utils.c (struct searchc_env): Remove unused field.
32924 (searchc): Always search across AVAIL_INTERPOSABLE.
32925 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32926 the only called IPA pure const can properly not propagate
32927 across interposable boundary.
32928 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32929
32930 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32931
32932 * config/nds32/nds32.md (call_internal, call_value_internal,
32933 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32934
32935 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32936
32937 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32938 typo.
32939
32940 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32941
32942 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32943 in comments
32944
32945 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32946
32947 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32948
32949 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32950
32951 PR tree-optimization/89268
32952 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32953 if preds is non-NULL.
32954
32955 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32956
32957 PR lto/89272
32958 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32959 polymorphic types.
32960
32961 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32962
32963 * config/nds32/nds32.md (trap): New pattern.
32964
32965 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32966
32967 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32968 dwarf span.
32969
32970 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32971
32972 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32973 to split POST_INC.
32974
32975 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32976
32977 * ipa-visibility.c (localize_node): Also do not localize
32978 LDPR_PREVAILING_DEF_IRONLY_EXP.
32979
32980 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32981
32982 PR lto/87957
32983 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32984 instead of type_with_linkage.
32985
32986 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32987
32988 PR ipa/88755
32989 * params.def (uninlined-function-insns, uninlined-function-time,
32990 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32991 bound so we don't get overflows.
32992
32993 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32994
32995 * config/rs6000/rs6000-string.c (expand_compare_loop,
32996 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32997 memcmp/strncmp.
32998
32999 2019-02-09 Jakub Jelinek <jakub@redhat.com>
33000
33001 PR middle-end/89246
33002 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33003 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
33004 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
33005
33006 2019-02-09 Alan Modra <amodra@gmail.com>
33007
33008 PR target/88343
33009 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
33010 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
33011 setup.
33012
33013 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
33014
33015 PR middle-end/88560
33016 * lra-constraints.c (process_alt_operands): Don't increase reject
33017 for memory when offset memory is required.
33018
33019 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
33020
33021 * config/s390/vector.md: Implement vector copysign.
33022
33023 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
33024
33025 * expr.c (expand_constructor): Correct indentations.
33026
33027 2019-02-08 Richard Biener <rguenther@suse.de>
33028
33029 PR tree-optimization/89247
33030 * tree-if-conv.c: Include tree-cfgcleanup.h.
33031 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
33032 (tree_if_conversion): Pass through predicate vector.
33033 (pass_if_conversion::execute): Do CFG cleanup and SSA update
33034 inline, see if any if-converted loops we refrece in
33035 LOOP_VECTORIZED calls vanished and fixup.
33036 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
33037
33038 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
33039
33040 * config/s390/constraints.md (jdd): New constraint.
33041
33042 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
33043
33044 PR target/89229
33045 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
33046 upper 16 vector registers without TARGET_AVX512VL.
33047 (*movti_internal): Likewise.
33048
33049 2019-02-08 Jakub Jelinek <jakub@redhat.com>
33050
33051 PR rtl-optimization/89234
33052 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
33053 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
33054 (copy_reg_eh_region_note_backward): Likewise.
33055
33056 2019-02-08 Richard Biener <rguenther@suse.de>
33057
33058 PR middle-end/89223
33059 * tree-data-ref.c (initialize_matrix_A): Fail if constant
33060 doesn't fit in HWI.
33061 (analyze_subscript_affine_affine): Handle failure from
33062 initialize_matrix_A.
33063
33064 2019-02-08 Jakub Jelinek <jakub@redhat.com>
33065
33066 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
33067 cfun everywhere.
33068
33069 2019-02-07 David Malcolm <dmalcolm@redhat.com>
33070
33071 PR tree-optimization/86637
33072 PR tree-optimization/89235
33073 * tree-vect-loop.c (optimize_mask_stores): Add an
33074 auto_purge_vect_location sentinel to ensure that vect_location is
33075 purged on exit.
33076 * tree-vectorizer.c
33077 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
33078 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
33079 to ensure that vect_location is purged on exit.
33080 (pass_slp_vectorize::execute): Likewise, replacing the manual
33081 reset.
33082 * tree-vectorizer.h (class auto_purge_vect_location): New class.
33083
33084 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33085
33086 * config/aarch64/iterators.md (max_opp): New code_attr.
33087 (USMAX): New code iterator.
33088 * config/aarch64/predicates.md (aarch64_smin): New predicate.
33089 (aarch64_smax): Likewise.
33090 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
33091 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
33092 MINUS (MAX MIN).
33093
33094 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
33095
33096 PR target/89229
33097 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
33098 for TARGET_AVX512VL.
33099 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
33100
33101 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
33102
33103 * config/s390/s390-builtin-types.def: Add new types.
33104 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
33105 (s390_vec_xlw4): Make the memory operand into a const pointer.
33106 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
33107 float.
33108 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
33109 a new vector type with the alignment of the scalar memory operand.
33110
33111 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
33112 Jakub Jelinek <jakub@redhat.com>
33113
33114 PR bootstrap/88714
33115 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
33116 arm_count_ldrdstrd_insns): New declarations.
33117 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
33118 MINUS.
33119 (valid_operands_ldrd_strd): New function.
33120 (arm_count_ldrdstrd_insns): New function.
33121 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
33122 sets instead of single DImode set and define new insns to match this.
33123
33124 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33125
33126 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
33127 Make it a C initializer.
33128
33129 2019-02-07 Tamar Christina <tamar.christina@arm.com>
33130
33131 PR/target 88850
33132 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
33133
33134 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33135
33136 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
33137 Use neon_dot<q> for type.
33138 (neon_<sup>dot_lane<vsi2qi>): Likewise.
33139
33140 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33141
33142 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
33143 Use neon_dot<q> for type.
33144 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
33145 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
33146
33147 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
33148
33149 PR rtl-optimization/89225
33150 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
33151 sizes check.
33152
33153 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
33154
33155 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
33156 after restoring registers saved to allocate the frame on Windows.
33157
33158 2019-02-06 Richard Biener <rguenther@suse.de>
33159
33160 PR tree-optimization/89182
33161 * graphite.h (cached_scalar_evolution_in_region): Declare.
33162 * graphite.c (struct seir_cache_key): New.
33163 (struct sese_scev_hash): Likewise.
33164 (seir_cache): New global.
33165 (cached_scalar_evolution_in_region): New function.
33166 (graphite_transform_loops): Allocate and release seir_cache.
33167 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
33168 cached_scalar_evolution_in_region.
33169 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33170 Simplify.
33171 (scop_detection::graphite_can_represent_expr: Use
33172 cached_scalar_evolution_in_region.
33173 (scop_detection::stmt_simple_for_scop_p): Likewise.
33174 (find_params_in_bb): Likewise.
33175 (gather_bbs::before_dom_children): Likewise.
33176 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
33177 (add_loop_constraints): Likewise.
33178
33179 2019-02-06 Jakub Jelinek <jakub@redhat.com>
33180
33181 PR middle-end/89210
33182 * fold-const-call.c (fold_const_vec_convert): Pass true as last
33183 operand to new_unary_operation only if both element types are integral
33184 and it isn't a widening conversion. Return NULL_TREE if
33185 new_unary_operation failed.
33186
33187 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
33188
33189 PR target/88856
33190 * config/s390/s390.md: Remove load and test FP splitter.
33191
33192 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33193
33194 PR target/89112
33195 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
33196 expand_compare_loop, expand_block_compare_gpr,
33197 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
33198 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
33199 #include "profile-count.h" and "predict.h" for types and functions
33200 needed to work with REG_BR_PROB notes.
33201
33202 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
33203
33204 PR target/89112
33205 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
33206 for the long branch case.
33207
33208 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33209
33210 PR target/89188
33211 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
33212 can throw, non-call exceptions are enabled and we can't delete
33213 dead exceptions or alter cfg. Set must_clean if
33214 delete_insn_and_edges returns true, don't set it blindly for calls.
33215 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
33216
33217 PR rtl-optimization/89195
33218 * combine.c (make_extraction): For MEMs, don't extract bytes outside
33219 of the original MEM.
33220
33221 2019-02-05 Martin Liska <mliska@suse.cz>
33222
33223 PR gcov-profile/89000
33224 * gcov.c (function_summary): Remove argument.
33225 (file_summary): New function.
33226 (print_usage): Replace tabs with spaces.
33227 (generate_results): Use new function file_summary.
33228
33229 2019-02-05 Jakub Jelinek <jakub@redhat.com>
33230
33231 PR target/89186
33232 * optabs.c (prepare_cmp_insn): Pass x and y to
33233 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
33234
33235 2019-02-05 Richard Biener <rguenther@suse.de>
33236
33237 PR middle-end/89150
33238 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
33239 (struct bitmap_element): Drop chain_prev so we properly recurse on
33240 the prev member, supporting tree views.
33241 (struct bitmap_head): GTY skip the obstack member.
33242
33243 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
33244
33245 PR c/88698
33246 * doc/extend.texi (Vector Extensions): Add an example of using vector
33247 types together with x86 intrinsics.
33248
33249 2019-02-04 Alan Modra <amodra@gmail.com>
33250
33251 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
33252 str[] size to 160, and comment.
33253
33254 2019-02-04 Alan Modra <amodra@gmail.com>
33255
33256 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
33257 (rs6000_pltseq_template): Guard output of TLS markers with
33258 TARGET_TLS_MARKERS.
33259 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
33260 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
33261 to use inline PLT sequences.
33262 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
33263 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
33264 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
33265
33266 2019-02-04 Martin Liska <mliska@suse.cz>
33267
33268 PR ipa/88985
33269 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
33270 out when ipa_fn_summaries does not contain entry for callee.
33271
33272 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
33273
33274 * config/sparc/sparc.h: Remove superfluous blank lines.
33275 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
33276 (got_register_rtx): ...this.
33277 (sparc_got): Adjust to above renaming.
33278 (sparc_tls_got): Likewise.
33279 (sparc_delegitimize_address): Likewise.
33280 (sparc_output_mi_thunk): Likewise.
33281 (sparc_init_pic_reg): Likewise.
33282 (save_local_or_in_reg_p): Fix test on the GOT register.
33283 (USE_HIDDEN_LINKONCE): Move around.
33284 (get_pc_thunk_name): Likewise.
33285 (gen_load_pcrel_sym): Likewise.
33286 (load_got_register): Likewise.
33287
33288 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
33289
33290 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
33291 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
33292
33293 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33294
33295 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
33296 into consideration.
33297
33298 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
33299
33300 * config.gcc (with_nds32_lib, glibc):
33301 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
33302 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
33303 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
33304
33305 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
33306
33307 PR target/89071
33308 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
33309 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
33310 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
33311 (*rcpsf2_sse): Ditto.
33312 (*rsqrtsf2_sse): Ditto.
33313 (sse4_1_round<mode<2): Ditto.
33314
33315 2019-02-03 Richard Biener <rguenther@suse.de>
33316
33317 PR debug/87295
33318 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
33319 orig.
33320
33321 2019-02-02 Jakub Jelinek <jakub@redhat.com>
33322
33323 PR middle-end/87887
33324 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
33325 Punt with warning on aggregate return or argument types. Ignore
33326 type/mode checking for uniform arguments.
33327
33328 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
33329
33330 * combine.c (try_combine): Do not print "Can't combine" messages unless
33331 printing failed combination attempts.
33332
33333 2019-02-01 Martin Jambor <mjambor@suse.cz>
33334
33335 PR hsa/87863
33336 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
33337 segment and global segment variables before making them static.
33338
33339 2019-02-01 Martin Jambor <mjambor@suse.cz>
33340
33341 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
33342 missed optimization dump with dump_enabled_p.
33343
33344 2019-02-01 Richard Biener <rguenther@suse.de>
33345
33346 PR middle-end/88597
33347 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
33348 the instantiate cache.
33349 (instantiate_scev_binary): Elide second operand procesing
33350 if equal to the first.
33351 * tree-chrec.c (chrec_contains_symbols): Add visited set.
33352 (chrec_contains_undetermined): Likewise.
33353 (tree_contains_chrecs): Likewise.
33354
33355 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
33356
33357 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
33358
33359 2019-02-01 Jakub Jelinek <jakub@redhat.com>
33360
33361 PR tree-optimization/89143
33362 * wide-int-range.h (wide_int_range_absu): Declare.
33363 * wide-int-range.cc (wide_int_range_absu): New function.
33364 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
33365
33366 PR tree-optimization/88107
33367 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
33368 instead of assertion that eh_region_outermost is non-NULL, if it
33369 is NULL, set *ALL to true and return NULL.
33370 (move_sese_region_to_fn): Adjust caller, if all is set, call
33371 duplicate_eh_regions with NULL region.
33372
33373 2019-02-01 Richard Biener <rguenth@suse.de>
33374
33375 PR rtl-optimization/88593
33376 * mode-switching.c (optimize_mode_switching): Free dominators before
33377 calling cleanup_cfg.
33378
33379 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
33380
33381 PR tree-optimization/88932
33382 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
33383
33384 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33385
33386 PR middle-end/89137
33387 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
33388 bogus clang warning.
33389
33390 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
33391
33392 PR target/89071
33393 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
33394 alternative to avoid partial SSE register stall for TARGET_AVX.
33395 (truncdfsf2): Ditto.
33396 (sse4_1_round<mode>2): Ditto.
33397
33398 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
33399
33400 PR tree-optimization/89008
33401 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
33402 process anything of the form X * 0.
33403
33404 2019-01-31 Richard Biener <rguenther@suse.de>
33405
33406 PR tree-optimization/89135
33407 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
33408 with abnormal preds.
33409
33410 2019-01-31 Jakub Jelinek <jakub@redhat.com>
33411
33412 PR sanitizer/89124
33413 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
33414 always_inline callees into no_sanitize_address callers.
33415
33416 2019-01-31 Richard Biener <rguenther@suse.de>
33417
33418 PR rtl-optimization/89115
33419 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
33420
33421 2019-01-30 Martin Sebor <msebor@redhat.com>
33422
33423 PR other/89106
33424 * doc/extend.texi (cast to a union): Correct and expand.
33425
33426 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
33427
33428 PR rtl-optimization/87246
33429 * lra-constraints.c (simplify_operand_subreg): Reload memory
33430 in subreg if the address became invalid.
33431
33432 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
33433
33434 PR target/87064
33435 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
33436 Disable for little-endian.
33437
33438 2019-01-30 Richard Biener <rguenther@suse.de>
33439
33440 PR rtl-optimization/89115
33441 * opts.c (default_options_optimization): Reduce
33442 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
33443 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
33444 to the default.
33445
33446 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
33447
33448 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
33449 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
33450 type of vector element when vec_extract is implemented by direct
33451 move.
33452
33453 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
33454
33455 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
33456
33457 2019-01-30 Richard Biener <rguenther@suse.de>
33458
33459 PR tree-optimization/89111
33460 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
33461 canonicalization to appropriately sized access types.
33462
33463 2019-01-30 Jakub Jelinek <jakub@redhat.com>
33464
33465 PR c++/89105
33466 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
33467 for arguments to functions that are TU-local and shouldn't be
33468 referenced by assembly.
33469
33470 2019-01-30 Ulrich Drepper <drepper@redhat.com>
33471
33472 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
33473 after '='.
33474
33475 2019-01-29 Martin Sebor <msebor@redhat.com>
33476
33477 PR c/88956
33478 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
33479
33480 2019-01-29 Jakub Jelinek <jakub@redhat.com>
33481
33482 PR c++/66676
33483 PR ipa/89104
33484 * omp-simd-clone.c (simd_clone_clauses_extract)
33485 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
33486 OMP_CLAUSE_ALIGNED_ALIGNMENT.
33487
33488 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
33489
33490 * config.gcc: Force .init_array for ARC.
33491
33492 2019-01-29 Richard Biener <rguenther@suse.de>
33493
33494 PR debug/87295
33495 * dwarf2out.c (collect_skeleton_dies): New helper.
33496 (copy_decls_for_unworthy_types): Call it.
33497 (build_abbrev_table): Assert we do not try to replace
33498 DW_AT_signature refs with local refs.
33499
33500 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33501
33502 PR middle-end/89002
33503 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33504 for lastprivate/linear IV, push gimplify context around gimplify_assign
33505 and, if it needed any temporaries, pop it into a gimple bind around the
33506 sequence.
33507
33508 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33509
33510 * common.opt (-Wattribute-alias): Remove "no-" from name.
33511 Make -Wattribute-alias command line option and
33512 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33513
33514 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33515
33516 PR target/89073
33517 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33518 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33519 x86 ISA options.
33520 (bmi2): Add missing @opindex.
33521 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33522 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
33523 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33524 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33525 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33526 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33527 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33528 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33529 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33530 xsavec, xsaveopt and xsaves options.
33531
33532 2019-01-28 Richard Biener <rguenther@suse.de>
33533
33534 PR debug/89076
33535 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33536 support removal.
33537
33538 2019-01-28 Richard Biener <rguenther@suse.de>
33539
33540 PR tree-optimization/88739
33541 * tree-cfg.c (verify_types_in_gimple_reference): Verify
33542 BIT_FIELD_REFs only are applied to mode-precision operands
33543 when they are integral.
33544 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33545 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33546 BIT_FIELD_REFs of non-mode-precision integral operands.
33547
33548 2019-01-27 Jakub Jelinek <jakub@redhat.com>
33549
33550 PR target/87214
33551 * config/i386/sse.md
33552 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33553 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33554 first constants in pairs are multiples of 2. Formatting fixes.
33555 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33556 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33557 first constants in each quadruple are multiples of 4. Formatting fixes.
33558
33559 2019-01-26 Martin Jambor <mjambor@suse.cz>
33560
33561 PR ipa/88933
33562 * tree-inline.c: Include tree-cfgcleanup.h.
33563 (delete_unreachable_blocks_update_callgraph): Move...
33564 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33565 ...here, make externally visible, make second argument bool, adjust
33566 all callers.
33567 * tree-cfgcleanup.c: Include cgraph.h.
33568 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33569 Declare.
33570 * ipa-prop.c: Include tree-cfgcleanup.h.
33571 (ipcp_transform_function): Call
33572 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33573
33574 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33575
33576 PR rtl-optimization/88846
33577 * ira.c (process_set_for_memref_referenced_p): New.
33578 (memref_referenced_p): Add new param. Use
33579 process_set_for_memref_referenced_p. Add new switch cases.
33580 (memref_used_between_p): Pass new arg to memref_referenced_p.
33581
33582 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33583
33584 PR target/88469
33585 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33586 argument ABI_BREAK. Set to true if the calculated alignment has
33587 changed in gcc-9. Check bit-fields for their base type alignment.
33588 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33589 (aarch64_function_arg_boundary): Likewise.
33590 (aarch64_gimplify_va_arg_expr): Likewise.
33591
33592 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33593
33594 PR middle-end/89037
33595 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33596 instead of accessing TREE_INT_CST_ELT directly.
33597
33598 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33599
33600 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33601 fenv_exceptions description.
33602
33603 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33604
33605 PR rtl-optimization/87763
33606 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33607 Allow SUBREG when matching CC_NZmode compare.
33608
33609 2019-01-25 Richard Biener <rguenther@suse.de>
33610
33611 PR tree-optimization/89049
33612 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33613 Look at the pattern stmt to determine if the stmt is vectorized.
33614
33615 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33616
33617 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33618 (pred_mov<mode>): Handle all-register forms using both a new
33619 alternative and a split.
33620
33621 2019-01-25 Richard Biener <rguenther@suse.de>
33622
33623 PR tree-optimization/86865
33624 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33625 Reject non-do-while loops.
33626
33627 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33628
33629 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33630 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33631 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33632 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33633 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33634 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33635 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33636 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33637 vlogical_operand, gpc_reg_operand, int_reg_operand,
33638 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33639 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33640 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33641 (save_world_operation, restore_world_operation, lmw_operation,
33642 stmw_operation): Use MEM_P and REG_P.
33643 (tie_operand): Use MEM_P.
33644 (vrsave_operation, crsave_operation): Use REG_P.
33645 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33646 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33647 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33648 (call_operand): Use HARD_REGISTER_P.
33649 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33650 Use CONST_INT_P.
33651 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33652 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33653 quad_aligned_load_p, replace_swapped_aligned_store,
33654 recombine_lvx_pattern, replace_swapped_aligned_load,
33655 recombine_stvx_pattern): Use MEM_P.
33656 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33657 Use MEM_P and SYMBOL_REF_P.
33658 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33659 (insn_is_swappable_p): Use REG_P and MEM_P.
33660 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33661 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33662 Use CONST_INT_P.
33663 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33664 Use CONST_DOUBLE_P.
33665 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33666 CONST_WIDE_INT_P.
33667 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33668 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33669 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33670 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33671 reg_or_subregno:
33672 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33673 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33674 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33675 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33676 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33677 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33678 rs6000_split_logical_di): Use CONST_INT_P.
33679 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33680 REG_P and SYMBOL_REF_P.
33681 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33682 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33683 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33684 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33685 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33686 (small_data_operand, print_operand_address): Use CONST_INT_P and
33687 SYMBOL_REF_P.
33688 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33689 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33690 Use HARD_REGISTER_NUM_P.
33691 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33692 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33693 SUBREG_P and SYMBOL_REF_P.
33694 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33695 and HARD_REGISTER_NUM_P.
33696 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33697 reg_or_subregno.
33698 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33699 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33700 MEM_P and REG_P.
33701 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33702 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33703 find_addr_reg): Use REG_P.
33704 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33705 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33706 (offsettable_ok_by_alignment, constant_pool_expr_p,
33707 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33708 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33709 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33710 rs6000_assemble_integer, create_TOC_reference,
33711 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33712 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33713 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33714 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33715 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33716 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33717 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33718 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33719 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33720 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33721 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33722 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33723 and cbranch<mode>4): Use CONST_INT_P.
33724 (multiple define_splits): Use REG_P and SUBREG_P.
33725 (define_expands call, call_value): Use MEM_P.
33726 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33727 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33728 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33729 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33730 and HARD_REGISTER_NUM_P.
33731 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33732
33733 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33734
33735 PR rtl-optimization/88948
33736 * rtl.h (prepare_copy_insn): New prototype.
33737 * gcse.c (prepare_copy_insn): New function, split out from
33738 process_insert_insn.
33739 (process_insert_insn): Use prepare_copy_insn.
33740 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33741 instead of gen_move_insn.
33742
33743 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33744
33745 PR debug/89006
33746 * config/i386/i386.c (ix86_pic_register_p): Return true for
33747 UNSPEC_SET_GOT too.
33748
33749 PR tree-optimization/88964
33750 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33751 punt if HONOR_SNANS (chrec).
33752
33753 PR middle-end/89015
33754 * tree-nested.c (convert_nonlocal_reference_stmt,
33755 convert_local_reference_stmt, convert_tramp_reference_stmt,
33756 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33757 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33758 or GIMPLE_OMP_TASK.
33759
33760 PR tree-optimization/89027
33761 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33762 for "omp simd array" variables.
33763
33764 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33765
33766 PR target/88469
33767 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33768 force the alignment of m_val.
33769
33770 2019-01-24 Richard Biener <rguenther@suse.de>
33771
33772 PR lto/87187
33773 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33774 When in "legacy" debug mode make sure to reset self-origins.
33775
33776 2019-01-24 Martin Liska <mliska@suse.cz>
33777
33778 PR gcov-profile/88994
33779 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33780 result will be always smaller or equal to the original.
33781 * gcov.c (mangle_name): Fix else branch where we should
33782 also copy to PTR and shift the pointer.
33783
33784 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33785
33786 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33787 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33788
33789 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33790
33791 * common/config/i386/i386-common.c
33792 (OPTION_MASK_ISA_ENQCMD_SET,
33793 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33794 (ix86_handle_option): Handle -menqcmd.
33795 * config.gcc (enqcmdintrin.h): New header file.
33796 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33797 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33798 -menqcmd.
33799 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33800 function type.
33801 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33802 __builtin_ia32_enqcmds): New builtins.
33803 * config/i386/i386-c.c (__ENQCMD__): New macro.
33804 * config/i386/i386-option.c (ix86_target_string): Add
33805 -menqcmd.
33806 (ix86_valid_target_attribute_inner_p): Likewise.
33807 * config/i386/i386-expand.c
33808 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33809 IX86_BUILTIN_ENQCMDS.
33810 * config/i386/i386.h (TARGET_ENQCMD): New.
33811 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33812 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33813 (movdir64b_<mode>): Parameterize to enable share expansion code
33814 with ENQCMD in function ix86_expand_builtin.
33815 * config/i386/i386.opt: Add -menqcmd.
33816 * config/i386/immintrin.h: Include enqcmdintrin.h.
33817 * config/i386/enqcmdintrin.h: New intrinsic file.
33818 * doc/invoke.texi: Add -menqcmd.
33819
33820 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33821 Steve Ellcey <sellcey@marvell.com>
33822
33823 PR target/85711
33824 * recog.c (address_operand): Return false on wrong mode for address.
33825 (constrain_operands): Check for mode with 'p' constraint.
33826
33827 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33828
33829 PR target/88998
33830 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33831 Disparage MMX alternative.
33832 (sse2_cvtpd2pi): Ditto.
33833 (sse2_cvttpd2pi): Ditto.
33834
33835 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33836
33837 PR driver/89014
33838 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33839 use-after-free of the result of
33840 aarch64_get_extension_string_for_isa_flags.
33841
33842 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33843
33844 PR c/44715
33845 * doc/extend.texi: Document break and continue behavior in
33846 statement expressions.
33847
33848 2019-01-23 Richard Biener <rguenther@suse.de>
33849
33850 PR tree-optimization/89008
33851 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33852 not leave another stray operand.
33853
33854 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33855
33856 * BASE-VER: Bump to 9.0.1.
33857
33858 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33859
33860 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33861 thunk that returns by reference, use the type of the return object
33862 of the thunk instead of that of the alias to build the dereference.
33863
33864 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33865
33866 * config/arc/atomic.md: Add operand to DMB instruction.
33867
33868 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33869
33870 PR tree-optimization/88964
33871 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33872 build_zero_cst instead of build_int_cst. Return false for loop
33873 invariants which honor signed zeros.
33874
33875 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33876
33877 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33878
33879 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33880
33881 PR target/88965
33882 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33883 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33884 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33885
33886 PR middle-end/88968
33887 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33888 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33889
33890 PR target/87064
33891 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33892 Disable for little endian.
33893
33894 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33895
33896 PR target/88469
33897 * config/arm/arm.c (arm_needs_double_word_align): Check
33898 DECL_BIT_FIELD_TYPE.
33899
33900 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33901 H.J. Lu <hongjiu.lu@intel.com>
33902
33903 PR target/88909
33904 * config/i386/i386-builtin.def: Add mask2 to all builtin
33905 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33906 SPECIAL_ARGS.
33907 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33908 (BDESC_FIRST): Likewise.
33909 (define_builtin): Add an argument for mask2. Updated to handle
33910 both ix86_isa_flags and ix86_isa_flags2.
33911 (define_builtin_const): Likewise.
33912 (define_builtin_pure): Likewise.
33913 (define_builtin2): Deleted.
33914 (define_builtin_const2): Likewise.
33915 (builtin_description): Add a member, mask2.
33916 (bdesc_*): Add mask2 to builtin initializations.
33917 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33918 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33919 support.
33920 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33921
33922 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33923
33924 PR target/88954
33925 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33926 noplt attribute.
33927
33928 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33929
33930 PR target/88469
33931 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33932 alignment is dominated by a bitfield with 64-bit aligned base type.
33933 (arm_function_arg): Emit a warning if the alignment has changed since
33934 earlier GCC releases.
33935 (arm_function_arg_boundary): Likewise.
33936 (arm_setup_incoming_varargs): Likewise.
33937
33938 2019-01-22 Richard Biener <rguenther@suse.de>
33939
33940 PR tree-optimization/88862
33941 * graphite-scop-detection.c
33942 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33943
33944 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33945
33946 * doc/extend.tex (AMD GCN Function Attributes): New section.
33947 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33948 * doc/invoke.texi (AMD GCN Options): New section.
33949 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33950
33951 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33952
33953 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33954 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33955
33956 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33957
33958 PR tree-optimization/88044
33959 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33960 is false in the first iteration, but !every_iteration, return false
33961 instead of true with niter->niter zero.
33962
33963 PR rtl-optimization/88904
33964 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33965 any nonequal registers before processing BB_END (b).
33966
33967 PR target/88905
33968 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33969 GET_MODE (op0).
33970 (expand_binop_directly, expand_doubleword_clz,
33971 expand_doubleword_popcount, expand_ctz, expand_ffs,
33972 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33973
33974 PR rtl-optimization/49429
33975 PR target/49454
33976 PR rtl-optimization/86334
33977 PR target/88906
33978 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33979 addressable from here...
33980 (emit_block_op_via_libcall): ... to here.
33981
33982 2019-01-22 Richard Biener <rguenther@suse.de>
33983
33984 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33985 auto_vec for cost vector to fix memleak.
33986 (vectorize_fold_left_reduction): Properly gather SLP defs.
33987 (vectorizable_comparison): Do not swap operands to properly
33988 gather SLP defs.
33989
33990 2019-01-22 Alan Modra <amodra@gmail.com>
33991
33992 PR target/88614
33993 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33994 stays a reg. Allow a const_int.
33995 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33996 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33997 (IS_NOMARK_TLSGETADDR): Define.
33998 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33999 (rs6000_output_tlsargs): New function.
34000 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
34001 __tls_get_addr call takes an arg.
34002 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
34003 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
34004 delete split..
34005 (call_value_nonlocal_sysv): ..or here, delete split.
34006 (tls_gdld_nomark): Delete.
34007 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
34008 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
34009 (call_value_nonlocal_sysv): Likewise.
34010 (call_value_nonlocal_sysv_secure): Likewise.
34011 (call_value_nonlocal_aix): Likewise.
34012 (call_value_indirect_aix): Likewise.
34013 (call_value_indirect_elfv2): Likewise.
34014 (call_value_local32, call_value_local64): Disable for no-mark tls.
34015 (call_value_local_aix): Likewise.
34016
34017 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
34018
34019 PR target/88938
34020 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
34021 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
34022
34023 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
34024
34025 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
34026 string contents as hash_map keys.
34027
34028 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
34029
34030 PR c/88928
34031 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
34032 for rvalue context. Handle rvalues correctly. Use min_align_of_type
34033 instead of TYPE_ALIGN.
34034 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
34035 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
34036 pointer from TYPE_STUB_DECL.
34037
34038 2019-01-21 Richard Biener <rguenther@suse.de>
34039
34040 PR tree-optimization/88934
34041 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
34042 at the possibly non-constant operand.
34043 (vect_get_constant_vectors): Adjust.
34044
34045 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
34046
34047 PR target/71659
34048 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
34049 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
34050 instead of _X86INTRIN_H_INCLUDED.
34051 * onfig/i386/clwbintrin.h: Likewise.
34052 * config/i386/pkuintrin.h: Likewise.
34053 * config/i386/prfchwintrin.h: Likewise.
34054 * config/i386/rdseedintrin.h: Likewise.
34055 * config/i386/wbnoinvdintrin.h: Likewise.
34056 * config/i386/xsavecintrin.h: Likewise.
34057 * config/i386/xsavesintrin.h: Likewise.
34058 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
34059 * config/i386/xsaveintrin.h: Likewise.
34060 * config/i386/xsaveoptintrin.h: Likewise.
34061 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
34062 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
34063 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
34064 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
34065 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
34066 * config/i386/immintrin.h: Here.
34067
34068 2019-01-20 Martin Jambor <mjambor@suse.cz>
34069
34070 PR ipa/87615
34071 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
34072 with aa_walk_budget.
34073 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
34074 aa_walk_budget_p parameter.
34075 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
34076 walk. Updated all callers.
34077 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
34078 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
34079 unmodified_parm.
34080 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
34081 parameter info. Extract info from fbi. Pass fbi to recursive calls
34082 and to unmodified_parm.
34083 (phi_result_unknown_predicate): New parameter fbi, removed parameter
34084 info, updated call to will_be_nonconstant_expr_predicate.
34085 (param_change_prob): New parameter fbi, limit AA walking.
34086 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
34087 calls to various above functions.
34088 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
34089 parameter. Use it to limit AA walking.
34090 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
34091 fbi, limit AA walk.
34092 (detect_type_change): New parameter fbi, pass it on to
34093 detect_type_change_from_memory_writes.
34094 (detect_type_change_ssa): Likewise.
34095 (aa_overwalked): Removed.
34096 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
34097 accordingly, adjust to the neew AA limiting scheme.
34098 (parm_ref_data_preserved_p): Likewise.
34099 (ipa_compute_jump_functions_for_edge): Adjust call to
34100 get_dynamic_type.
34101 (ipa_analyze_call_uses): Likewise.
34102 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
34103 (ipa_analyze_node): Initialize aa_walk_budget.
34104 (ipcp_transform_function): Likewise.
34105 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
34106 to get_dynamic_type.
34107
34108 2019-01-19 Jakub Jelinek <jakub@redhat.com>
34109
34110 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
34111 outside of #if CHECKING_P code.
34112
34113 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
34114
34115 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
34116 New function, split out from...
34117 (loop_versioning::analyze_stride): ...here.
34118 (loop_versioning::find_per_loop_multiplication): Use gassign.
34119 (loop_versioning::analyze_term_using_scevs): Return a success code.
34120 (loop_versioning::analyze_arbitrary_term): New function.
34121 (loop_versioning::analyze_address_fragment): Use
34122 analyze_arbitrary_term if all else fails.
34123
34124 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
34125
34126 PR target/88892
34127 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
34128 operands.
34129
34130 2019-01-18 Richard Biener <rguenther@suse.de>
34131
34132 PR tree-optimization/88903
34133 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
34134 scalar stmts a SLP shift amount is composed of when detecting
34135 shifts by scalars.
34136
34137 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
34138
34139 PR target/88799
34140 * config/arm/arm-cpus.in (mp): New feature.
34141 (sec): New feature.
34142 (fgroup ARMv7ve): Add mp and sec features.
34143 (arch armv7-a): Add options to allow mp and sec extensions.
34144 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
34145 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
34146 extenstions to the base architecture.
34147 (cpu cortex-a8): Add sec extension to the base architecture.
34148 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
34149 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
34150 variants down to the base v7-a varaint.
34151 * config/arm/t-multilib (v7_a_arch_variants): New variable.
34152 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
34153 of permitted extensions for -march=armv7-a and for
34154 -mcpu=generic-armv7-a.
34155
34156 2019-01-18 Martin Liska <mliska@suse.cz>
34157
34158 * params.def: Fix comment.
34159 * tree-profile.c (gimple_init_gcov_profiler): Bump function
34160 name.
34161 (gimple_gen_ic_func_profiler): Likewise.
34162
34163 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34164
34165 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
34166 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
34167 and put in error checks for stack protector guard options.
34168 (aarch64_stack_protect_guard): New.
34169 (TARGET_STACK_PROTECT_GUARD): Define.
34170 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
34171 (reg_stack_protect_address<mode>): New.
34172 (stack_protect_set): Adjust for SSP_GLOBAL.
34173 (stack_protect_test): Likewise.
34174 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
34175 (-mstack-protector-guard): Likewise.
34176 (-mstack-protector-guard-offset): Likewise.
34177
34178 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34179
34180 PR tree-optimization/86214
34181 * tree-inline.h (struct copy_body_data): Add
34182 add_clobbers_to_eh_landing_pads member.
34183 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
34184 (copy_edges_for_bb): Call it if EH edge destination is <
34185 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
34186 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
34187 if flag_stack_reuse != SR_NONE and clear it afterwards.
34188
34189 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
34190
34191 PR target/85596
34192 * doc/install.texi (with-multilib-list): Document for aarch64.
34193
34194 2019-01-18 Jakub Jelinek <jakub@redhat.com>
34195
34196 PR target/88734
34197 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
34198 (("..."))) with ("...").
34199
34200 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
34201
34202 * doc/extend.texi (Built-in Functions for Memory Model Aware
34203 Atomic Operations): Document atomic fetch and nand.
34204
34205 2019-01-18 Martin Liska <mliska@suse.cz>
34206 Richard Biener <rguenther@suse.de>
34207
34208 PR middle-end/88587
34209 * cgraph.h (create_version_clone_with_body): Add new argument
34210 with attributes.
34211 * cgraphclones.c (cgraph_node::create_version_clone): Add
34212 DECL_ATTRIBUTES to a newly created decl. And call
34213 valid_attribute_p so that proper cl_target_optimization_node
34214 is set for the newly created declaration.
34215 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
34216 for declaration.
34217 (expand_target_clones): Do not call valid_attribute_p, it must
34218 be already done.
34219 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
34220 vector types.
34221
34222 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34223
34224 PR target/88734
34225 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
34226 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
34227 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
34228
34229 2019-01-17 Martin Sebor <msebor@redhat.com>
34230
34231 PR middle-end/88273
34232 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
34233 Handle anti-ranges the same as no range at all.
34234
34235 2018-01-17 Steve Ellcey <sellcey@cavium.com>
34236
34237 * config/aarch64/aarch64.c (cgraph.h): New include.
34238 (intl.h): New include.
34239 (supported_simd_type): New function.
34240 (currently_supported_simd_type): Ditto.
34241 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
34242 (aarch64_simd_clone_adjust): Ditto.
34243 (aarch64_simd_clone_usable): Ditto.
34244 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
34245 (TARGET_SIMD_CLONE_ADJUST): Ditto.
34246 (TARGET_SIMD_CLONE_USABLE): Ditto.
34247 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
34248 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
34249 call.
34250
34251 2019-01-17 Martin Sebor <msebor@redhat.com>
34252
34253 PR tree-optimization/88800
34254 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
34255 NO_WARNING bit here. Avoid folding out-of-bounds calls.
34256 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
34257 redundant argument. Add new argument and issue diagnostics under
34258 its control. Detect out-of-bounds access even with warnings
34259 disabled.
34260 (check_bounds_or_overlap): Change return type. Add argument.
34261 (wrestrict_dom_walker::check_call): Adjust.
34262 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
34263 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
34264 check_bounds_or_overlap's return value.
34265 (handle_builtin_stxncpy): Same.
34266 (handle_builtin_strcat): Same.
34267
34268 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34269 Kwok Cheung Yeung <kcy@codesourcery.com>
34270 Julian Brown <julian@codesourcery.com>
34271 Tom de Vries <tom@codesourcery.com>
34272
34273 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
34274
34275 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34276
34277 * doc/sourcebuild.texi: Document dg-require-effective-target
34278 llvm_binutils and offload_gcn.
34279
34280 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34281 Kwok Cheung Yeung <kcy@codesourcery.com>
34282 Julian Brown <julian@codesourcery.com>
34283 Tom de Vries <tom@codesourcery.com>
34284
34285 * doc/sourcebuild.texi: Document dg-required-effective-target
34286 exceptions.
34287
34288 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34289 Kwok Cheung Yeung <kcy@codesourcery.com>
34290 Julian Brown <julian@codesourcery.com>
34291 Tom de Vries <tom@codesourcery.com>
34292 Jan Hubicka <hubicka@ucw.cz>
34293 Martin Jambor <mjambor@suse.cz>
34294
34295 * config.gcc: Add amdgcn*-*-amdhsa configuration.
34296 * configure.ac: Check for dlopen.
34297 * configure: Regenerate.
34298
34299 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34300 Kwok Cheung Yeung <kcy@codesourcery.com>
34301 Julian Brown <julian@codesourcery.com>
34302 Tom de Vries <tom@codesourcery.com>
34303 Jan Hubicka <hubicka@ucw.cz>
34304 Martin Jambor <mjambor@suse.cz>
34305
34306 * common/config/gcn/gcn-common.c: New file.
34307 * config/gcn/driver-gcn.c: New file.
34308 * config/gcn/gcn-builtins.def: New file.
34309 * config/gcn/gcn-hsa.h: New file.
34310 * config/gcn/gcn-modes.def: New file.
34311 * config/gcn/gcn-opts.h: New file.
34312 * config/gcn/gcn-passes.def: New file.
34313 * config/gcn/gcn-protos.h: New file.
34314 * config/gcn/gcn-run.c: New file.
34315 * config/gcn/gcn-tree.c: New file.
34316 * config/gcn/gcn.c: New file.
34317 * config/gcn/gcn.h: New file.
34318 * config/gcn/gcn.opt: New file.
34319 * config/gcn/t-gcn-hsa: New file.
34320
34321 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
34322 Kwok Cheung Yeung <kcy@codesourcery.com>
34323 Julian Brown <julian@codesourcery.com>
34324 Tom de Vries <tom@codesourcery.com>
34325 Jan Hubicka <hubicka@ucw.cz>
34326 Martin Jambor <mjambor@suse.cz>
34327
34328 * config/gcn/constraints.md: New file.
34329 * config/gcn/gcn-valu.md: New file.
34330 * config/gcn/gcn.md: New file.
34331 * config/gcn/predicates.md: New file.
34332
34333 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
34334
34335 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
34336 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
34337 (stmt_uses_0_or_null_in_undefined_way): Likewise.
34338 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
34339
34340 2019-01-17 Tamar Christina <tamar.christina@arm.com>
34341
34342 PR target/88851
34343 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
34344 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
34345 it and document registers.
34346
34347 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34348
34349 * config/aarch64/aarch64.c (ares_tunings): Define.
34350 * config/aarch64/aarch64-cores.def (ares): Use the above.
34351
34352 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34353
34354 PR target/88794
34355 Revert:
34356 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
34357
34358 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
34359 (_mm512_fixupimm_round_pd): Update parameters and builtin.
34360 (_mm512_maskz_fixupimm_round_pd): Ditto.
34361 (_mm512_fixupimm_round_ps): Ditto.
34362 (_mm512_maskz_fixupimm_round_ps): Ditto.
34363 (_mm_fixupimm_round_sd): Ditto.
34364 (_mm_maskz_fixupimm_round_sd): Ditto.
34365 (_mm_fixupimm_round_ss): Ditto.
34366 (_mm_maskz_fixupimm_round_ss): Ditto.
34367 (_mm512_fixupimm_pd): Ditto.
34368 (_mm512_maskz_fixupimm_pd): Ditto.
34369 (_mm512_fixupimm_ps): Ditto.
34370 (_mm512_maskz_fixupimm_ps): Ditto.
34371 (_mm_fixupimm_sd): Ditto.
34372 (_mm_maskz_fixupimm_sd): Ditto.
34373 (_mm_fixupimm_ss): Ditto.
34374 (_mm_maskz_fixupimm_ss): Ditto.
34375 (_mm512_mask_fixupimm_round_pd): Update builtin.
34376 (_mm512_mask_fixupimm_round_ps): Ditto.
34377 (_mm_mask_fixupimm_round_sd): Ditto.
34378 (_mm_mask_fixupimm_round_ss): Ditto.
34379 (_mm512_mask_fixupimm_pd): Ditto.
34380 (_mm512_mask_fixupimm_ps): Ditto.
34381 (_mm_mask_fixupimm_sd): Ditto.
34382 (_mm_mask_fixupimm_ss): Ditto.
34383 * config/i386/avx512vlintrin.h:
34384 (_mm256_fixupimm_pd): Update parameters and builtin.
34385 (_mm256_maskz_fixupimm_pd): Ditto.
34386 (_mm256_fixupimm_ps): Ditto.
34387 (_mm256_maskz_fixupimm_ps): Ditto.
34388 (_mm_fixupimm_pd): Ditto.
34389 (_mm_maskz_fixupimm_pd): Ditto.
34390 (_mm_fixupimm_ps): Ditto.
34391 (_mm_maskz_fixupimm_ps): Ditto.
34392 (_mm256_mask_fixupimm_pd): Update builtin.
34393 (_mm256_mask_fixupimm_ps): Ditto.
34394 (_mm_mask_fixupimm_pd): Ditto.
34395 (_mm_mask_fixupimm_ps): Ditto.
34396 * config/i386/i386-builtin-types.def: Add new types and remove
34397 useless ones.
34398 * config/i386/i386-builtin.def: Update builtin definitions.
34399 * config/i386/i386.c: Handle new builtin types and remove useless ones.
34400 * config/i386/sse.md: Update VFIXUPIMM* patterns.
34401 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34402 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34403 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
34404 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34405 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34406 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
34407 * config/i386/subst.md:
34408 (round_saeonly_sd_mask_operand4): Add new subst_attr.
34409 (round_saeonly_sd_mask_op4): Ditto.
34410 (round_saeonly_expand_operand5): Ditto.
34411 (round_saeonly_expand): Update.
34412
34413 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34414
34415 PR target/88794
34416 Revert:
34417 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
34418
34419 * config/i386/sse.md: Combine VFIXUPIMM* patterns
34420 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34421 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34422 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
34423 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34424 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34425 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
34426
34427 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34428
34429 PR target/88794
34430 Revert:
34431 2018-12-15 Jakub Jelinek <jakub@redhat.com>
34432
34433 PR target/88489
34434 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
34435 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
34436 instead of UNSPEC_FIXUPIMM.
34437
34438 2019-01-17 Richard Biener <rguenther@suse.de>
34439
34440 PR lto/86736
34441 * dwarf2out.c (want_pubnames): Never generate pubnames sections
34442 and friends for the LTO part of debug info.
34443
34444 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34445
34446 PR tree-optimization/86214
34447 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
34448 if x == y.
34449
34450 PR rtl-optimization/88870
34451 * dce.c (deletable_insn_p): Never delete const/pure calls that can
34452 throw if we can't alter the cfg or delete dead exceptions.
34453 (mark_insn): Don't call find_call_stack_args for such calls.
34454
34455 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
34456
34457 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
34458 prototypes for vec_st.
34459 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
34460 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
34461 mainly on signed/unsigned long long and double.
34462
34463 2019-01-16 David Malcolm <dmalcolm@redhat.com>
34464
34465 PR target/88861
34466 * combine.c (delete_noop_moves): Convert to "bool" return,
34467 returning true if any edges are eliminated.
34468 (combine_instructions): Also return true if delete_noop_moves
34469 returns true.
34470
34471 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34472
34473 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
34474 correct max nunits for endian swap.
34475 (aarch64_expand_fcmla_builtin): Correct subreg code.
34476 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34477 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
34478 lane endianness.
34479
34480 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
34481
34482 * config/alpha/alpha.c (alpha_gimplify_va_arg):
34483 Handle split indirect COMPLEX_TYPE arguments.
34484
34485 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
34486
34487 PR target/86891
34488 * config/aarch64/aarch64-modes.def: Add comment about how the carry
34489 bit is set by add and compare.
34490 (CC_ADC): New CC_MODE.
34491 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34492 to cache the code and mode of X. Adjust the shape of a CC_Cmode
34493 comparison. Add detection for CC_ADCmode.
34494 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
34495 CC_ADCmode.
34496 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34497 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34498 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
34499 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
34500 to eliminate the need for zero-extending the operands.
34501 (add<mode>3_compareC_imm): Delete. Merge into ...
34502 (add<mode>3_compareC): ... this. Restructure the comparison to
34503 eliminate the need for zero-extending the operands.
34504 (add<mode>3_carryin): Use LTU for the overflow detection.
34505 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34506 Reexpress comparison for overflow.
34507 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34508 (add<mode>3_carryinC): Likewise.
34509 (add<mode>3_carryinV): Use LTU for carry between partials.
34510 * config/aarch64/predicates.md (aarch64_carry_operation): Update
34511 handling of CC_Cmode and add CC_ADCmode.
34512 (aarch64_borrow_operation): Likewise.
34513
34514 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34515
34516 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34517 Remove patternmode.
34518 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34519 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34520 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34521 Remove endianness conversion.
34522
34523 2019-01-16 Martin Liska <mliska@suse.cz>
34524
34525 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34526 for GCC driver.
34527 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34528 a new argument.
34529 * gcc.c (add_sysrooted_hdrs_prefix): New function.
34530 (path_prefix_reset): Move up in the source file.
34531 (find_fortran_preinclude_file): Make complex search for the
34532 fortran header files.
34533
34534 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
34535
34536 * godump.c (go_output_typedef): When outputting a typedef, refer
34537 to the underlying type by its name and not its structure.
34538
34539 2019-01-15 David Malcolm <dmalcolm@redhat.com>
34540
34541 PR c++/88795
34542 * tree.c (build_function_type): Assert that arg_types is not
34543 error_mark_node.
34544
34545 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
34546
34547 PR inline-asm/52813
34548 * doc/extend.texi: Document that listing the stack pointer in the
34549 clobber list of an asm is a deprecated feature.
34550 * common.opt (Wdeprecated): Moved from c-family/c.opt.
34551 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34552 warning instead of an error for clobbers of the stack pointer.
34553 Add a note explaining why.
34554
34555 2019-01-15 Richard Biener <rguenther@suse.de>
34556
34557 PR debug/88046
34558 * dwarf2out.c (gen_member_die): Do not generate inheritance
34559 DIEs late.
34560
34561 2019-01-15 Richard Biener <rguenther@suse.de>
34562
34563 PR tree-optimization/88855
34564 * tree-if-conv.c (combine_blocks): Collect
34565 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34566
34567 2019-01-15 Tom de Vries <tdevries@suse.de>
34568
34569 PR target/80547
34570 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34571 lhs == NULL_TREE for gang-level reduction.
34572
34573 2019-01-15 Richard Biener <rguenther@suse.de>
34574 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34575
34576 PR ipa/88788
34577 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34578 return true if SSA_NAME is already marked in visited bitmap.
34579 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34580
34581 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34582
34583 PR tree-optimization/88775
34584 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34585 equal == 0 equality pointer comparisons some more if compared in
34586 integral types and either one points to an automatic var and the
34587 other to a global, or we can prove at least one points to the middle
34588 or both point to start or both point to end.
34589
34590 2019-01-14 Andi Kleen <ak@linux.intel.com>
34591
34592 * Makefile.in: Lower autofdo sampling rate by 10x.
34593 * Makefile.tpl: Dito.
34594
34595 2019-01-14 Tom Honermann <tom@honermann.net>
34596
34597 * defaults.h: Define CHAR8_TYPE.
34598
34599 2019-01-14 Martin Sebor <msebor@redhat.com>
34600
34601 PR target/88638
34602 * doc/extend.texi (Darwin Format Checks): Clarify.
34603
34604 2019-01-14 Richard Biener <rguenther@suse.de>
34605
34606 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34607 whether we are in (simplify ...) or (match ...) context.
34608
34609 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34610
34611 PR rtl-optimization/88796
34612 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34613 * cfgexpand.c (stack_protect_prologue): Initialize
34614 crtl->stack_protect_guard_decl.
34615 * function.c (stack_protect_epilogue): Use it instead of calling
34616 targetm.stack_protect_guard again.
34617 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34618 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34619 crtl->stack_protect_guard_decl.
34620 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34621 on the returned MEM_EXPR.
34622
34623 2019-01-12 Tom de Vries <tdevries@suse.de>
34624
34625 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34626 vector length using -fopenacc-dim.
34627
34628 2019-01-12 Tom de Vries <tdevries@suse.de>
34629
34630 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34631 lengths into account.
34632
34633 2019-01-12 Svante Signell <svante.signell@gmail.com>
34634
34635 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34636 (TARGET_CAN_SPLIT_STACK): Define.
34637 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34638
34639 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34640
34641 * params.def (inline-unit-growth): Set to 40.
34642
34643 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34644
34645 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34646
34647 2019-01-12 Tom de Vries <tdevries@suse.de>
34648
34649 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34650 region calling vector-partitionable routine, set default_vector_length
34651 to WARP_SIZE.
34652
34653 2019-01-12 Tom de Vries <tdevries@suse.de>
34654
34655 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34656 variable default_vector_length.
34657
34658 2019-01-12 Tom de Vries <tdevries@suse.de>
34659
34660 PR middle-end/88703
34661 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34662 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34663 dimensions limits.
34664
34665 2019-01-12 Tom de Vries <tdevries@suse.de>
34666
34667 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34668 (nvptx_goacc_validate_dims): Add used parameter.
34669 * doc/tm.texi: Regenerate.
34670 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34671 argument to call to targetm.goacc.validate_dims.
34672 (default_goacc_validate_dims): Add used
34673 parameter.
34674 * target.def (validate_dims): Add used parameter in DEFHOOK.
34675 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34676
34677 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34678
34679 PR middle-end/85956
34680 PR lto/88733
34681 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34682 field.
34683 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34684 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34685 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34686 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34687
34688 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34689
34690 PR rtl-optimization/87305
34691 * lra-assigns.c
34692 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34693 for little endian pseudos used as paradoxical subreg.
34694
34695 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34696
34697 PR tree-optimization/88693
34698 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34699 for STRING_CSTs that don't contain any NUL characters in the first
34700 TREE_STRING_LENGTH bytes.
34701
34702 2019-01-11 Alan Modra <amodra@gmail.com>
34703
34704 PR 88777
34705 PR 88614
34706 * genattrtab.c (min_fn): Don't translate values.
34707 (min_attr_value): Return INT_MAX when the value can't be calculated.
34708 Return minimum among any values that can be calculated.
34709 (max_attr_value): Adjust.
34710
34711 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34712
34713 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34714
34715 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34716
34717 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34718 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34719 (aarch64_return_call_with_max_clobbers): New function.
34720 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34721 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34722 argument.
34723 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34724 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34725 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34726 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34727 * cselib.c (cselib_process_insn): Add argument to
34728 targetm.hard_regno_call_part_clobbered call.
34729 * ira-conflicts.c (ira_build_conflicts): Ditto.
34730 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34731 * lra-constraints.c (inherit_reload_reg): Ditto.
34732 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34733 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34734 argument. Call targetm.return_call_with_max_clobbers.
34735 Add argument to targetm.hard_regno_call_part_clobbered call.
34736 (calls_have_same_clobbers_p): New function.
34737 (process_bb_lives): Add call_insn and last_call_insn variables.
34738 Pass call_insn to check_pseudos_live_through_calls.
34739 Modify if stmt to check targetm.return_call_with_max_clobbers.
34740 Update setting of flush variable.
34741 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34742 to false.
34743 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34744 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34745 targetm.hard_regno_call_part_clobbered call.
34746 * reginfo.c (choose_hard_reg_mode): Ditto.
34747 * regrename.c (check_new_reg_p): Ditto.
34748 * reload.c (find_equiv_reg): Ditto.
34749 * reload1.c (emit_reload_insns): Ditto.
34750 * sched-deps.c (deps_analyze_insn): Ditto.
34751 * sel-sched.c (init_regs_for_mode): Ditto.
34752 (mark_unavailable_hard_regs): Ditto.
34753 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34754 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34755 (return_call_with_max_clobbers): New target function.
34756 * doc/tm.texi: Regenerate.
34757 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34758 * hooks.c (hook_bool_uint_mode_false): Change to
34759 hook_bool_insn_uint_mode_false.
34760 * hooks.h (hook_bool_uint_mode_false): Ditto.
34761
34762 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34763
34764 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34765 (aarch64_remove_extra_call_preserved_regs): New function.
34766 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34767 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34768 * doc/tm.texi: Regenerate.
34769 * final.c (get_call_reg_set_usage): Call new hook.
34770 * target.def (remove_extra_call_preserved_regs): New hook.
34771 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34772 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34773
34774 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34775
34776 PR bootstrap/88714
34777 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34778 inside of pass_combine_1 dump rather than pass_profile_1.
34779
34780 2019-01-11 Tom de Vries <tdevries@suse.de>
34781
34782 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34783 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34784 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34785 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34786 num_workers 16.
34787
34788 2019-01-11 Tom de Vries <tdevries@suse.de>
34789
34790 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34791
34792 2019-01-11 Jan Beulich <jbeulich@suse.com>
34793
34794 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34795 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34796 sse2_cvtsi2sd): Add {l}.
34797 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34798 syntax.
34799
34800 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34801
34802 PR target/88785
34803 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34804 define_expand.
34805 (*float<floatunssuffix>v2div2sf2): New define_insn.
34806 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34807 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34808 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34809 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34810 match_operands with "const0_operand" "C".
34811
34812 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34813
34814 * config/aarch64/aarch64-builtins.c
34815 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34816 (aarch64_init_simd_builtins): ...Here
34817
34818 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34819
34820 PR rtl-optimization/87305
34821 * lra-assigns.c
34822 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34823 allocation for big endian pseudos used as paradoxical subregs and
34824 spill them if it is wrong.
34825 * lra-constraints.c (lra_constraints): Add a comment.
34826
34827 2019-01-10 Richard Biener <rguenther@suse.de>
34828
34829 PR tree-optimization/88792
34830 * tree-ssa-pre.c (get_representative_for): Do not return a
34831 value-number here.
34832
34833 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34834
34835 PR middle-end/84877
34836 PR bootstrap/88450
34837 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34838 (assign_parm_setup_block): Do the argument slot realignment here
34839 instead.
34840
34841 2019-01-10 Stefan Agner <stefan@agner.ch>
34842
34843 PR target/88648
34844 * config/arm/arm.c (arm_option_override_internal): Force
34845 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34846
34847 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34848
34849 PR c/88568
34850 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34851 DECL_EXTERNAL.
34852
34853 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34854
34855 * config/arm/arm-builtins.c
34856 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34857 (MAC_LANE_PAIR_QUALIFIERS): New.
34858 (arm_expand_builtin_args): Use it.
34859 (arm_expand_builtin_1): Likewise.
34860 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34861 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34862 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34863 * config/arm/arm_neon.h:
34864 (vcadd_rot90_f16): New.
34865 (vcaddq_rot90_f16): New.
34866 (vcadd_rot270_f16): New.
34867 (vcaddq_rot270_f16): New.
34868 (vcmla_f16): New.
34869 (vcmlaq_f16): New.
34870 (vcmla_lane_f16): New.
34871 (vcmla_laneq_f16): New.
34872 (vcmlaq_lane_f16): New.
34873 (vcmlaq_laneq_f16): New.
34874 (vcmla_rot90_f16): New.
34875 (vcmlaq_rot90_f16): New.
34876 (vcmla_rot90_lane_f16): New.
34877 (vcmla_rot90_laneq_f16): New.
34878 (vcmlaq_rot90_lane_f16): New.
34879 (vcmlaq_rot90_laneq_f16): New.
34880 (vcmla_rot180_f16): New.
34881 (vcmlaq_rot180_f16): New.
34882 (vcmla_rot180_lane_f16): New.
34883 (vcmla_rot180_laneq_f16): New.
34884 (vcmlaq_rot180_lane_f16): New.
34885 (vcmlaq_rot180_laneq_f16): New.
34886 (vcmla_rot270_f16): New.
34887 (vcmlaq_rot270_f16): New.
34888 (vcmla_rot270_lane_f16): New.
34889 (vcmla_rot270_laneq_f16): New.
34890 (vcmlaq_rot270_lane_f16): New.
34891 (vcmlaq_rot270_laneq_f16): New.
34892 (vcadd_rot90_f32): New.
34893 (vcaddq_rot90_f32): New.
34894 (vcadd_rot270_f32): New.
34895 (vcaddq_rot270_f32): New.
34896 (vcmla_f32): New.
34897 (vcmlaq_f32): New.
34898 (vcmla_lane_f32): New.
34899 (vcmla_laneq_f32): New.
34900 (vcmlaq_lane_f32): New.
34901 (vcmlaq_laneq_f32): New.
34902 (vcmla_rot90_f32): New.
34903 (vcmlaq_rot90_f32): New.
34904 (vcmla_rot90_lane_f32): New.
34905 (vcmla_rot90_laneq_f32): New.
34906 (vcmlaq_rot90_lane_f32): New.
34907 (vcmlaq_rot90_laneq_f32): New.
34908 (vcmla_rot180_f32): New.
34909 (vcmlaq_rot180_f32): New.
34910 (vcmla_rot180_lane_f32): New.
34911 (vcmla_rot180_laneq_f32): New.
34912 (vcmlaq_rot180_lane_f32): New.
34913 (vcmlaq_rot180_laneq_f32): New.
34914 (vcmla_rot270_f32): New.
34915 (vcmlaq_rot270_f32): New.
34916 (vcmla_rot270_lane_f32): New.
34917 (vcmla_rot270_laneq_f32): New.
34918 (vcmlaq_rot270_lane_f32): New.
34919 (vcmlaq_rot270_laneq_f32): New.
34920 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34921 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34922 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34923 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34924 vcmlaq_lane270): New.
34925 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34926 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34927 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34928 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34929 (arm_option_reconfigure_globals): Use them.
34930 * config/arm/iterators.md (VDF, VQ_HSF): New.
34931 (VCADD, VCMLA): New.
34932 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34933 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34934 New.
34935 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34936 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34937
34938 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34939
34940 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34941 Add qualifier_lane_pair_index.
34942 (emit-rtl.h): Include.
34943 (TYPES_QUADOP_LANE_PAIR): New.
34944 (aarch64_simd_expand_args): Use it.
34945 (aarch64_simd_expand_builtin): Likewise.
34946 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34947 New.
34948 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34949 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34950 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34951 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34952 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34953 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34954 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34955 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34956 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34957 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34958 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34959 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34960 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34961 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34962 Add __ARM_FEATURE_COMPLEX.
34963 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34964 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34965 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34966 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34967 fcmlaq_lane270): New.
34968 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34969 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34970 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34971 * config/aarch64/arm_neon.h:
34972 (vcadd_rot90_f16): New.
34973 (vcaddq_rot90_f16): New.
34974 (vcadd_rot270_f16): New.
34975 (vcaddq_rot270_f16): New.
34976 (vcmla_f16): New.
34977 (vcmlaq_f16): New.
34978 (vcmla_lane_f16): New.
34979 (vcmla_laneq_f16): New.
34980 (vcmlaq_lane_f16): New.
34981 (vcmlaq_rot90_lane_f16): New.
34982 (vcmla_rot90_laneq_f16): New.
34983 (vcmla_rot90_lane_f16): New.
34984 (vcmlaq_rot90_f16): New.
34985 (vcmla_rot90_f16): New.
34986 (vcmlaq_laneq_f16): New.
34987 (vcmla_rot180_laneq_f16): New.
34988 (vcmla_rot180_lane_f16): New.
34989 (vcmlaq_rot180_f16): New.
34990 (vcmla_rot180_f16): New.
34991 (vcmlaq_rot90_laneq_f16): New.
34992 (vcmlaq_rot270_laneq_f16): New.
34993 (vcmlaq_rot270_lane_f16): New.
34994 (vcmla_rot270_laneq_f16): New.
34995 (vcmlaq_rot270_f16): New.
34996 (vcmla_rot270_f16): New.
34997 (vcmlaq_rot180_laneq_f16): New.
34998 (vcmlaq_rot180_lane_f16): New.
34999 (vcmla_rot270_lane_f16): New.
35000 (vcadd_rot90_f32): New.
35001 (vcaddq_rot90_f32): New.
35002 (vcaddq_rot90_f64): New.
35003 (vcadd_rot270_f32): New.
35004 (vcaddq_rot270_f32): New.
35005 (vcaddq_rot270_f64): New.
35006 (vcmla_f32): New.
35007 (vcmlaq_f32): New.
35008 (vcmlaq_f64): New.
35009 (vcmla_lane_f32): New.
35010 (vcmla_laneq_f32): New.
35011 (vcmlaq_lane_f32): New.
35012 (vcmlaq_laneq_f32): New.
35013 (vcmla_rot90_f32): New.
35014 (vcmlaq_rot90_f32): New.
35015 (vcmlaq_rot90_f64): New.
35016 (vcmla_rot90_lane_f32): New.
35017 (vcmla_rot90_laneq_f32): New.
35018 (vcmlaq_rot90_lane_f32): New.
35019 (vcmlaq_rot90_laneq_f32): New.
35020 (vcmla_rot180_f32): New.
35021 (vcmlaq_rot180_f32): New.
35022 (vcmlaq_rot180_f64): New.
35023 (vcmla_rot180_lane_f32): New.
35024 (vcmla_rot180_laneq_f32): New.
35025 (vcmlaq_rot180_lane_f32): New.
35026 (vcmlaq_rot180_laneq_f32): New.
35027 (vcmla_rot270_f32): New.
35028 (vcmlaq_rot270_f32): New.
35029 (vcmlaq_rot270_f64): New.
35030 (vcmla_rot270_lane_f32): New.
35031 (vcmla_rot270_laneq_f32): New.
35032 (vcmlaq_rot270_lane_f32): New.
35033 (vcmlaq_rot270_laneq_f32): New.
35034 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
35035 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
35036 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
35037 (FCADD, FCMLA): New.
35038 (rot): New.
35039 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
35040
35041 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
35042
35043 PR other/16615
35044
35045 * config/pa/pa.c: Change "can not" to "cannot".
35046 * gimple-ssa-evrp-analyze.c: Likewise.
35047 * ipa-icf.c: Likewise.
35048 * ipa-polymorphic-call.c: Likewise.
35049 * ipa-pure-const.c: Likewise.
35050 * lra-constraints.c: Likewise.
35051 * lra-remat.c: Likewise.
35052 * reload1.c: Likewise.
35053 * reorg.c: Likewise.
35054 * tree-ssa-uninit.c: Likewise.
35055
35056 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
35057
35058 PR other/16615
35059
35060 * Makefile.in: Mechanically replace "can not" with "cannot".
35061 * alias.c: Likewise.
35062 * builtins.c: Likewise.
35063 * calls.c: Likewise.
35064 * cgraph.c: Likewise.
35065 * cgraph.h: Likewise.
35066 * cgraphclones.c: Likewise.
35067 * cgraphunit.c: Likewise.
35068 * combine-stack-adj.c: Likewise.
35069 * combine.c: Likewise.
35070 * common/config/i386/i386-common.c: Likewise.
35071 * config/aarch64/aarch64.c: Likewise.
35072 * config/alpha/sync.md: Likewise.
35073 * config/arc/arc.c: Likewise.
35074 * config/arc/predicates.md: Likewise.
35075 * config/arm/arm-c.c: Likewise.
35076 * config/arm/arm.c: Likewise.
35077 * config/arm/arm.h: Likewise.
35078 * config/arm/arm.md: Likewise.
35079 * config/arm/cortex-r4f.md: Likewise.
35080 * config/csky/csky.c: Likewise.
35081 * config/csky/csky.h: Likewise.
35082 * config/darwin-f.c: Likewise.
35083 * config/epiphany/epiphany.md: Likewise.
35084 * config/i386/i386.c: Likewise.
35085 * config/i386/sol2.h: Likewise.
35086 * config/m68k/m68k.c: Likewise.
35087 * config/mcore/mcore.h: Likewise.
35088 * config/microblaze/microblaze.md: Likewise.
35089 * config/mips/20kc.md: Likewise.
35090 * config/mips/sb1.md: Likewise.
35091 * config/nds32/nds32.c: Likewise.
35092 * config/nds32/predicates.md: Likewise.
35093 * config/pa/pa.c: Likewise.
35094 * config/rs6000/e300c2c3.md: Likewise.
35095 * config/rs6000/rs6000.c: Likewise.
35096 * config/s390/s390.h: Likewise.
35097 * config/sh/sh.c: Likewise.
35098 * config/sh/sh.md: Likewise.
35099 * config/spu/vmx2spu.h: Likewise.
35100 * cprop.c: Likewise.
35101 * dbxout.c: Likewise.
35102 * df-scan.c: Likewise.
35103 * doc/cfg.texi: Likewise.
35104 * doc/extend.texi: Likewise.
35105 * doc/fragments.texi: Likewise.
35106 * doc/gty.texi: Likewise.
35107 * doc/invoke.texi: Likewise.
35108 * doc/lto.texi: Likewise.
35109 * doc/md.texi: Likewise.
35110 * doc/objc.texi: Likewise.
35111 * doc/rtl.texi: Likewise.
35112 * doc/tm.texi: Likewise.
35113 * dse.c: Likewise.
35114 * emit-rtl.c: Likewise.
35115 * emit-rtl.h: Likewise.
35116 * except.c: Likewise.
35117 * expmed.c: Likewise.
35118 * expr.c: Likewise.
35119 * fold-const.c: Likewise.
35120 * genautomata.c: Likewise.
35121 * gimple-fold.c: Likewise.
35122 * hard-reg-set.h: Likewise.
35123 * ifcvt.c: Likewise.
35124 * ipa-comdats.c: Likewise.
35125 * ipa-cp.c: Likewise.
35126 * ipa-devirt.c: Likewise.
35127 * ipa-fnsummary.c: Likewise.
35128 * ipa-icf.c: Likewise.
35129 * ipa-inline-transform.c: Likewise.
35130 * ipa-inline.c: Likewise.
35131 * ipa-polymorphic-call.c: Likewise.
35132 * ipa-profile.c: Likewise.
35133 * ipa-prop.c: Likewise.
35134 * ipa-pure-const.c: Likewise.
35135 * ipa-reference.c: Likewise.
35136 * ipa-split.c: Likewise.
35137 * ipa-visibility.c: Likewise.
35138 * ipa.c: Likewise.
35139 * ira-build.c: Likewise.
35140 * ira-color.c: Likewise.
35141 * ira-conflicts.c: Likewise.
35142 * ira-costs.c: Likewise.
35143 * ira-int.h: Likewise.
35144 * ira-lives.c: Likewise.
35145 * ira.c: Likewise.
35146 * ira.h: Likewise.
35147 * loop-invariant.c: Likewise.
35148 * loop-unroll.c: Likewise.
35149 * lower-subreg.c: Likewise.
35150 * lra-assigns.c: Likewise.
35151 * lra-constraints.c: Likewise.
35152 * lra-eliminations.c: Likewise.
35153 * lra-lives.c: Likewise.
35154 * lra-remat.c: Likewise.
35155 * lra-spills.c: Likewise.
35156 * lra.c: Likewise.
35157 * lto-cgraph.c: Likewise.
35158 * lto-streamer-out.c: Likewise.
35159 * postreload-gcse.c: Likewise.
35160 * predict.c: Likewise.
35161 * profile-count.h: Likewise.
35162 * profile.c: Likewise.
35163 * recog.c: Likewise.
35164 * ree.c: Likewise.
35165 * reload.c: Likewise.
35166 * reload1.c: Likewise.
35167 * reorg.c: Likewise.
35168 * resource.c: Likewise.
35169 * rtl.def: Likewise.
35170 * rtl.h: Likewise.
35171 * rtlanal.c: Likewise.
35172 * sched-deps.c: Likewise.
35173 * sched-ebb.c: Likewise.
35174 * sched-rgn.c: Likewise.
35175 * sel-sched-ir.c: Likewise.
35176 * sel-sched.c: Likewise.
35177 * shrink-wrap.c: Likewise.
35178 * simplify-rtx.c: Likewise.
35179 * symtab.c: Likewise.
35180 * target.def: Likewise.
35181 * toplev.c: Likewise.
35182 * tree-call-cdce.c: Likewise.
35183 * tree-cfg.c: Likewise.
35184 * tree-complex.c: Likewise.
35185 * tree-core.h: Likewise.
35186 * tree-eh.c: Likewise.
35187 * tree-inline.c: Likewise.
35188 * tree-loop-distribution.c: Likewise.
35189 * tree-nrv.c: Likewise.
35190 * tree-profile.c: Likewise.
35191 * tree-sra.c: Likewise.
35192 * tree-ssa-alias.c: Likewise.
35193 * tree-ssa-dce.c: Likewise.
35194 * tree-ssa-dom.c: Likewise.
35195 * tree-ssa-forwprop.c: Likewise.
35196 * tree-ssa-loop-im.c: Likewise.
35197 * tree-ssa-loop-ivcanon.c: Likewise.
35198 * tree-ssa-loop-ivopts.c: Likewise.
35199 * tree-ssa-loop-niter.c: Likewise.
35200 * tree-ssa-phionlycprop.c: Likewise.
35201 * tree-ssa-phiopt.c: Likewise.
35202 * tree-ssa-propagate.c: Likewise.
35203 * tree-ssa-threadedge.c: Likewise.
35204 * tree-ssa-threadupdate.c: Likewise.
35205 * tree-ssa-uninit.c: Likewise.
35206 * tree-ssanames.c: Likewise.
35207 * tree-streamer-out.c: Likewise.
35208 * tree.c: Likewise.
35209 * tree.h: Likewise.
35210 * vr-values.c: Likewise.
35211
35212 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
35213
35214 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
35215 (ix86_split_xorsign): Ditto.
35216 * config/i386/i386.c (ix86_expand_xorsign): New function.
35217 (ix86_split_xorsign): Ditto.
35218 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
35219 (xorsign<mode>3): New expander.
35220 (xorsign<mode>3_1): New insn_and_split pattern.
35221 * config/i386/sse.md (xorsign<mode>3): New expander.
35222
35223 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35224
35225 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
35226 (*tablejump_sp64): Likewise.
35227 (*tablejump<P:mode>): ...this.
35228 (*call_address_sp32): Merge into...
35229 (*call_address_sp64): Likewise.
35230 (*call_address<P:mode>): ...this.
35231 (*call_symbolic_sp32): Merge into...
35232 (*call_symbolic_sp64): Likewise.
35233 (*call_symbolic<P:mode>): ...this.
35234 (call_value): Remove constraint and add predicate.
35235 (*call_value_address_sp32): Merge into...
35236 (*call_value_address_sp64): Likewise.
35237 (*call_value_address<P:mode>): ...this.
35238 (*call_value_symbolic_sp32): Merge into...
35239 (*call_value_symbolic_sp64): Likewise.
35240 (*call_value_symbolic<P:mode>): ...this.
35241 (*sibcall_symbolic_sp32): Merge into...
35242 (*sibcall_symbolic_sp64): Likewise.
35243 (*sibcall_symbolic<P:mode>): ...this.
35244 (sibcall_value): Remove constraint and add predicate.
35245 (*sibcall_value_symbolic_sp32): Merge into...
35246 (*sibcall_value_symbolic_sp64): Likewise.
35247 (*sibcall_value_symbolic<P:mode>): ...this.
35248 (window_save): Minor tweak.
35249 (*branch_sp32): Merge into...
35250 (*branch_sp64): Likewise.
35251 (*branch<P:mode>): ...this.
35252
35253 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35254 James Clarke <jrtc27@jrtc27.com>
35255
35256 PR target/84010
35257 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
35258 consistently in TLS address generation and adjust code to the renaming
35259 of patterns. Mark calls to __tls_get_addr as const.
35260 * config/sparc/sparc.md (tgd_hi22): Turn into...
35261 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
35262 (tgd_lo10): Turn into...
35263 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
35264 (tgd_add32): Merge into...
35265 (tgd_add64): Likewise.
35266 (tgd_add<P:mode>): ...this and use Pmode throughout.
35267 (tldm_hi22): Turn into...
35268 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
35269 (tldm_lo10): Turn into...
35270 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
35271 (tldm_add32): Merge into...
35272 (tldm_add64): Likewise.
35273 (tldm_add<P:mode>): ...this and use Pmode throughout.
35274 (tldm_call32): Merge into...
35275 (tldm_call64): Likewise.
35276 (tldm_call<P:mode>): ...this and use Pmode throughout.
35277 (tldo_hix22): Turn into...
35278 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
35279 (tldo_lox10): Turn into...
35280 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
35281 (tldo_add32): Merge into...
35282 (tldo_add64): Likewise.
35283 (tldo_add<P:mode>): ...this and use Pmode throughout.
35284 (tie_hi22): Turn into...
35285 (tie_hi22<P:mode>): ...this and use Pmode throughout.
35286 (tie_lo10): Turn into...
35287 (tie_lo10<P:mode>): ...this and use Pmode throughout.
35288 (tie_ld64): Use DImode throughout.
35289 (tie_add32): Merge into...
35290 (tie_add64): Likewise.
35291 (tie_add<P:mode>): ...this and use Pmode throughout.
35292 (tle_hix22_sp32): Merge into...
35293 (tle_hix22_sp64): Likewise.
35294 (tle_hix22<P:mode>): ...this and use Pmode throughout.
35295 (tle_lox22_sp32): Merge into...
35296 (tle_lox22_sp64): Likewise.
35297 (tle_lox22<P:mode>): ...this and use Pmode throughout.
35298 (*tldo_ldub_sp32): Merge into...
35299 (*tldo_ldub_sp64): Likewise.
35300 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
35301 (*tldo_ldub1_sp32): Merge into...
35302 (*tldo_ldub1_sp64): Likewise.
35303 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
35304 (*tldo_ldub2_sp32): Merge into...
35305 (*tldo_ldub2_sp64): Likewise.
35306 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
35307 (*tldo_ldsb1_sp32): Merge into...
35308 (*tldo_ldsb1_sp64): Likewise.
35309 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
35310 (*tldo_ldsb2_sp32): Merge into...
35311 (*tldo_ldsb2_sp64): Likewise.
35312 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
35313 (*tldo_ldub3_sp64): Use DImode throughout.
35314 (*tldo_ldsb3_sp64): Likewise.
35315 (*tldo_lduh_sp32): Merge into...
35316 (*tldo_lduh_sp64): Likewise.
35317 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
35318 (*tldo_lduh1_sp32): Merge into...
35319 (*tldo_lduh1_sp64): Likewise.
35320 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
35321 (*tldo_ldsh1_sp32): Merge into...
35322 (*tldo_ldsh1_sp64): Likewise.
35323 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
35324 (*tldo_lduh2_sp64): Use DImode throughout.
35325 (*tldo_ldsh2_sp64): Likewise.
35326 (*tldo_lduw_sp32): Merge into...
35327 (*tldo_lduw_sp64): Likewise.
35328 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
35329 (*tldo_lduw1_sp64): Use DImode throughout.
35330 (*tldo_ldsw1_sp64): Likewise.
35331 (*tldo_ldx_sp64): Likewise.
35332 (*tldo_stb_sp32): Merge into...
35333 (*tldo_stb_sp64): Likewise.
35334 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
35335 (*tldo_sth_sp32): Merge into...
35336 (*tldo_sth_sp64): Likewise.
35337 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
35338 (*tldo_stw_sp32): Merge into...
35339 (*tldo_stw_sp64): Likewise.
35340 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
35341 (*tldo_stx_sp64): Use DImode throughout.
35342
35343 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35344
35345 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
35346 check configure option to set BTI and Return Address Signing.
35347 * configure.ac: Add --enable-standard-branch-protection and
35348 --disable-standard-branch-protection.
35349 * configure: Regenerated.
35350 * doc/install.texi: Document the same.
35351
35352 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35353 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35354
35355 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
35356 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
35357 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
35358 if bti is enabled.
35359 * config/aarch64/aarch64-bti-insert.c: New file.
35360 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
35361 pass.
35362 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
35363 new bti pass.
35364 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
35365 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
35366 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
35367 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
35368
35369 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35370
35371 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
35372 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
35373 Disable bti for -mbranch-protection=none.
35374 (aarch64_handle_standard_branch_protection): Enable bti for
35375 -mbranch-protection=standard.
35376 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
35377 -mbranch-protection.
35378 (aarch64_bti_enabled): Check if bti is enabled.
35379 * config/aarch64/aarch64.opt: Declare target variable.
35380 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
35381
35382 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35383
35384 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
35385 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
35386 (aarch64_expand_epilogue): Likewise.
35387 (aarch64_output_mi_thunk): Likewise.
35388 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
35389 TAILCALL_ADDR_REGS to x16 and x17.
35390 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
35391
35392 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35393
35394 * config/aarch64/aarch64-option-extensions.def: Define
35395 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
35396 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
35397 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
35398 (AARCH64_FL_PREDRES): New.
35399 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
35400 AARCH64_FL_PREDRES by default.
35401 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
35402
35403 2018-01-09 Sudakshina Das <sudi.das@arm.com>
35404
35405 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
35406 ARMv8.5-A.
35407 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
35408 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
35409 * doc/invoke.texi: Document ARMv8.5-A.
35410
35411 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
35412
35413 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
35414 (xorsign<mode>3): Likewise.
35415
35416 2019-01-09 Jelinek <jakub@redhat.com>
35417
35418 PR middle-end/88758
35419 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
35420 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
35421
35422 PR rtl-optimization/88331
35423 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
35424 not currently_expanding_to_rtl.
35425
35426 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35427
35428 * doc/invoke.texi (-Os): Remove trailing spaces.
35429 (-finline-functions): Remove reference to -O2.
35430
35431 2019-01-08 Jakub Jelinek <jakub@redhat.com>
35432
35433 PR rtl-optimization/79593
35434 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
35435
35436 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
35437 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
35438
35439 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
35440
35441 PR bootstrap/88721
35442 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
35443 to -1 on entry.
35444
35445 PR debug/88723
35446 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
35447 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
35448
35449 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
35450
35451 PR target/88717
35452 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
35453 ix86_avx_u128_mode_entry.
35454
35455 2019-01-08 Martin Liska <mliska@suse.cz>
35456
35457 PR tree-optimization/88753
35458 * tree-switch-conversion.c (switch_conversion::build_one_array):
35459 Come up with local variable constructor. Convert first to
35460 type of constructor values.
35461
35462 2019-01-08 Richard Biener <rguenther@suse.de>
35463
35464 PR tree-optimization/86554
35465 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
35466 rpo_avail): Move earlier.
35467 (visit_nary_op): When value-numbering to expressions
35468 with different overflow behavior make sure there's an
35469 available expression on the path.
35470
35471 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
35472
35473 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
35474 aarch64_parse_branch_protection,
35475 struct aarch64_branch_protect_type,
35476 aarch64_handle_no_branch_protection,
35477 aarch64_handle_standard_branch_protection,
35478 aarch64_validate_mbranch_protection,
35479 aarch64_handle_pac_ret_protection,
35480 aarch64_handle_attr_branch_protection,
35481 accepted_branch_protection_string,
35482 aarch64_pac_ret_subtypes,
35483 aarch64_branch_protect_types,
35484 aarch64_handle_pac_ret_leaf): Define.
35485 (aarch64_override_options_after_change_1, aarch64_override_options):
35486 Add check for accepted_branch_protection_string.
35487 (aarch64_option_save): Save accepted_branch_protection_string.
35488 (aarch64_option_restore): Save accepted_branch_protection_string.
35489 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35490 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35491 msign-return-address.
35492 * doc/invoke.texi: Add mbranch-protection.
35493
35494 2019-01-08 Alan Modra <amodra@gmail.com>
35495
35496 PR target/88614
35497 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35498 Delete "unknownp" parameter. Adjust callers. Handle
35499 CONST_INT, PLUS, MINUS, and MULT.
35500 (attr_value_aligned): Renamed from or_attr_value.
35501 (min_attr_value): Return INT_MIN for unhandled rtl case..
35502 (min_fn): ..and translate to INT_MAX here.
35503 (write_length_unit_log): Modify to cope without "unknown".
35504 (write_attr_value): Handle IF_THEN_ELSE.
35505
35506 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35507
35508 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35509 optimization for masked stores.
35510
35511 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35512
35513 PR middle-end/88567
35514 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35515 output vector directly to duplicate_and_interleave instead of
35516 going through a temporary. Postpone insertion of ctor_seq to
35517 the end of the loop.
35518
35519 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
35520
35521 PR target/86891
35522 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35523 unsigned_p. Handle signed and unsigned overflow correction as
35524 required.
35525 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35526 prototype.
35527 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35528 for operand 2.
35529 (add<mode>3_compareV_imm): Make this callable for expanding.
35530 (subv<GPI:mode>4): Use register_operand for operand 1. Use
35531 aarch64_plus_operand for operand 2.
35532 (subv<GPI:mode>_insn): New insn pattern.
35533 (subv<GPI:mode>_imm): Likewise.
35534 (negv<GPI:mode>3): New expand pattern.
35535 (negv<GPI:mode>_insn): New insn pattern.
35536 (negv<GPI:mode>_cmp_only): Likewise.
35537 (cmpv<GPI:mode>_insn): Likewise.
35538 (subvti4): Use register_operand for operand 1. Update call to
35539 aarch64_expand_subvti.
35540 (usubvti4): Likewise.
35541 (negvti3): New expand pattern.
35542 (negdi_carryout): New insn pattern.
35543 (negvdi_carryinV): New insn pattern.
35544 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35545 version the named version.
35546 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35547 operands.
35548 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35549 patterns.
35550 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35551 patterns.
35552 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35553 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35554 (sub<mode>3_carryinCV): Delete.
35555 (sub<GPI:mode>3_carryinV): New expand pattern.
35556 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35557
35558 2019-01-07 Richard Biener <rguenther@suse.de>
35559
35560 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35561 of tree_operand_hash.
35562
35563 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35564
35565 PR tree-optimization/88598
35566 * tree.h (single_nonzero_element): Declare.
35567 * tree.c (single_nonzero_element): New function.
35568 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35569 if I is the only nonzero element of CST.
35570
35571 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35572
35573 PR tree-optimization/88598
35574 * tree.h (initializer_each_zero_or_onep): Declare.
35575 * tree.c (initializer_each_zero_or_onep): New function.
35576 (signed_or_unsigned_type_for): Handle float types too.
35577 (unsigned_type_for, signed_type_for): Update comments accordingly.
35578 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35579 x & { 0 or -1, 0 or -1, ... }.
35580
35581 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35582
35583 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35584 with x86_64-pc-linux-gnu.
35585
35586 2019-01-07 Tom de Vries <tdevries@suse.de>
35587
35588 PR target/85486
35589 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35590 function.
35591 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35592 routines.
35593
35594 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35595
35596 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35597 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35598 TARGET_AVX512F as condition.
35599
35600 PR debug/88723
35601 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35602 const_not_ok_for_debug_p target hook.
35603 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35604 on UNSPEC and subexpressions thereof if all subexpressions of the
35605 UNSPEC are CONSTANT_P.
35606
35607 PR tree-optimization/88676
35608 * tree-ssa-phiopt.c (two_value_replacement): New function.
35609 (tree_ssa_phiopt_worker): Call it.
35610
35611 PR sanitizer/88619
35612 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35613 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35614
35615 PR c++/85052
35616 * tree-vect-generic.c: Include insn-config.h and recog.h.
35617 (expand_vector_piecewise): Add defaulted ret_type argument,
35618 if non-NULL, use that in preference to type for the result type.
35619 (expand_vector_parallel): Formatting fix.
35620 (do_vec_conversion, do_vec_narrowing_conversion,
35621 expand_vector_conversion): New functions.
35622 (expand_vector_operations_1): Call expand_vector_conversion
35623 for VEC_CONVERT ifn calls.
35624 * internal-fn.def (VEC_CONVERT): New internal function.
35625 * internal-fn.c (expand_VEC_CONVERT): New function.
35626 * fold-const-call.c (fold_const_vec_convert): New function.
35627 (fold_const_call): Use it for CFN_VEC_CONVERT.
35628 * doc/extend.texi (__builtin_convertvector): Document.
35629
35630 2019-01-07 Tom de Vries <tdevries@suse.de>
35631
35632 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35633 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35634 vector_red_partition, vector_red_sym): New global variables.
35635 (nvptx_option_override): Initialize vector_red_sym.
35636 (nvptx_declare_function_name): Restore red_partition register.
35637 (nvptx_file_end): Emit code to declare the vector reduction variables.
35638 (nvptx_output_red_partition): New function.
35639 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35640 large vector reductions.
35641 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35642 (nvptx_init_builtins): Add VECTOR_ADDR.
35643 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35644 Handle nvptx_expand_shared_addr.
35645 (nvptx_get_shared_red_addr): Add vector argument and handle large
35646 vectors.
35647 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35648 large vectors.
35649 (nvptx_goacc_reduction_init): Likewise.
35650 (nvptx_goacc_reduction_fini): Likewise.
35651 (nvptx_goacc_reduction_teardown): Likewise.
35652 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35653 init,fini,teardown}.
35654 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35655 (nvptx_set_current_function): Init vector_red_partition.
35656 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35657 (nvptx_red_partition): New insn.
35658 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35659
35660 2019-01-07 Tom de Vries <tdevries@suse.de>
35661
35662 PR target/85381
35663 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35664 empty loops.
35665
35666 2019-01-07 Tom de Vries <tdevries@suse.de>
35667
35668 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35669 (nvptx_option_override): Init oacc_bcast_partition.
35670 (nvptx_init_oacc_workers): New function.
35671 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35672 (nvptx_needs_shared_bcast): New function.
35673 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35674 to propagate state.
35675 (nvptx_shared_propagate): Initialize vector bcast partition and
35676 synchronization state.
35677 (nvptx_single): Generalize to enable vectors to use shared-memory
35678 to propagate state.
35679 (nvptx_process_pars): Likewise.
35680 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35681 * config/nvptx/nvptx.h (struct machine_function): Add
35682 bcast_partition and sync_bar members.
35683
35684 2019-01-07 Tom de Vries <tdevries@suse.de>
35685
35686 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35687 (nvptx_apply_dim_limits): New function.
35688 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35689 PTX_WARP_SIZE.
35690
35691 2019-01-07 Tom de Vries <tdevries@suse.de>
35692
35693 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35694 as late as possible.
35695
35696 2019-01-07 Tom de Vries <tdevries@suse.de>
35697
35698 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35699 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35700 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35701 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35702 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35703
35704 2019-01-07 Tom de Vries <tdevries@suse.de>
35705
35706 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35707
35708 2019-01-07 Tom de Vries <tdevries@suse.de>
35709
35710 * omp-offload.c (oacc_get_min_dim): New function.
35711 * omp-offload.h (oacc_get_min_dim): Declare.
35712
35713 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35714
35715 PR target/88521
35716 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35717 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35718
35719 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35720
35721 PR tree-opt/86020
35722 Revert:
35723 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35724
35725 * ipa-inline.c (edge_badness): Use inlined_time instead of
35726 inline_summaries->get.
35727
35728 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35729
35730 * opts.c (enable_fdo_optimizations): Enable
35731 version-loops-for-strides, loop-interchange, unrol-and-jam
35732 and tree-loop-distribution.
35733 * invoke.texi: Document newly enabled options.
35734
35735 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35736
35737 * doc/invoke.texi (max-inline-insns-small): New parameters.
35738 * ipa-inline.c (want_early_inline_function_p): simplify.
35739 (want_inline_small_function_p): Fix pasto from previous patch;
35740 use max-inline-insns-small bound.
35741 * params.def (max-inline-insns-small): New param.
35742 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35743 variables correctly.
35744
35745 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35746
35747 * doc/invoke.texi: Document max-inline-insns-size,
35748 uninlined-function-insns, uninlined-function-time,
35749 uninlined-thunk-insns and uninlined-thunk-time.
35750 * params.def: Add max-inline-insns-size,
35751 uninlined-function-insns, uninlined-function-time,
35752 uninlined-thunk-insns and uninlined-thunk-time.
35753 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35754 new parameters.
35755 * ipa-inline.c (can_inline_edge_by_limits_p,
35756 want_inline_small_function_p): Use new parameters.
35757
35758 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35759
35760 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35761
35762 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35763
35764 PR middle-end/82564
35765 PR target/88620
35766 * expr.c (expand_assignment): For calls returning VLA structures
35767 if to_rtx is not a MEM, force it into a stack temporary.
35768
35769 PR debug/88635
35770 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35771 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35772 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35773 subexpressions of both operands.
35774 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35775 subrtxes are CONSTANT_P.
35776 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35777 2018-11-09 changes.
35778
35779 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35780
35781 * params.def (hot-bb-count-ws-permille): Set to 990.
35782
35783 2019-01-04 Martin Sebor <msebor@redhat.com>
35784
35785 PR c/88546
35786 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35787 leaf.
35788
35789 2019-01-04 Martin Sebor <msebor@redhat.com>
35790
35791 PR c/88363
35792 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35793
35794 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35795
35796 * gdbinit.in: Turn off pagination for the skip commands, restore
35797 it to previous state afterwards.
35798
35799 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35800
35801 PR target/88594
35802 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35803 of GET_MODE (opN) as modes of the libcall arguments.
35804
35805 2019-01-04 Jan Beulich <jbeulich@suse.com>
35806
35807 * config/i386/sse.md
35808 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35809 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35810 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35811 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35812 avx512f_vmcmp<mode>3<round_saeonly_name>,
35813 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35814 avx512f_maskcmp<mode>3,
35815 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35816 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35817 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35818 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35819 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35820 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35821 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35822 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35823 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35824 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35825 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35826 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35827 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35828 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35829 avx512cd_maskb_vec_dup<mode>,
35830 avx512cd_maskw_vec_dup<mode>,
35831 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35832 avx512dq_vmfpclass<mode>,
35833 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35834 instead of =Yk.
35835
35836 2019-01-03 Martin Sebor <msebor@redhat.com>
35837
35838 PR tree-optimization/88659
35839 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35840
35841 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35842
35843 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35844 unaligned vsx and avoid lxvd2x/stxvd2x.
35845 (gen_lvx_v4si_move): New function.
35846
35847 2019-01-03 Tom de Vries <tdevries@suse.de>
35848
35849 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35850 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35851 function.
35852 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35853
35854 2019-01-03 Tom de Vries <tdevries@suse.de>
35855
35856 * config/nvptx/nvptx.c (struct offload_attrs): New.
35857 (populate_offload_attrs): New function. Factor mask extraction out of
35858 nvptx_reorg. Add extraction of dimensions.
35859 (nvptx_reorg): Use populate_offload_attrs.
35860
35861 2019-01-03 Tom de Vries <tdevries@suse.de>
35862
35863 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35864 cases for oacc_min_dims_p and routine_p. Add asserts for
35865 oacc_default_dims_p and offload_region_p.
35866
35867 2019-01-03 Tom de Vries <tdevries@suse.de>
35868
35869 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35870 factored out of ...
35871 (nvptx_goacc_validate_dims): ... here.
35872
35873 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35874
35875 PR tree-optimization/85574
35876 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35877 structure.
35878 (struct ssa_equip_hash_traits): Declare.
35879 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35880
35881 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35882
35883 PR debug/88644
35884 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35885 change it to qualified_type.
35886
35887 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35888
35889 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35890 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35891
35892 2019-01-02 Martin Sebor <msebor@redhat.com>
35893 Jeff Law <law@redhat.com>
35894
35895 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35896 (get_range_strlen_tree): Update appropriately.
35897 (get_range_strlen)
35898 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35899
35900 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35901 rather than set_range_info.
35902 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35903 maybe_set_strlen_range. Handle potentially boundary crossing
35904 cases more conservatively.
35905 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35906 Call set_strlen_range.
35907 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35908
35909 PR middle-end/88663
35910 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35911 need the flexp argument.
35912 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35913 from calls to get_range_strlen. Update comments. Just update
35914 VAL for an unterminated const char array and let the reset of the
35915 code handle it normally. No longer try to set *flexp. Adjust
35916 return value.
35917 (get_range_strlen): Update for the new get_range_strlen API.
35918 (get_maxval_strlen): Similarly.
35919 (gimple_fold_builtin_strlen): Handle update meaning of return value
35920 from get_range_strlen.
35921 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35922 get_range_strlen API.
35923
35924 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35925
35926 PR lto/88130
35927 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35928 false at WPA time when body was removed.
35929
35930 2019-01-02 Martin Liska <mliska@suse.cz>
35931
35932 PR tree-optimization/88650
35933 * predict.c (set_even_probabilities): Calculate probability
35934 remainer only when really used.
35935
35936 2019-01-02 Richard Biener <rguenther@suse.de>
35937
35938 PR middle-end/88651
35939 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35940 widest_ints when mangling max_stmt_execution results.
35941
35942 2019-01-02 Richard Biener <rguenther@suse.de>
35943
35944 PR tree-optimization/88621
35945 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35946 bitfields when canoncalizing.
35947
35948 2019-01-02 Richard Biener <rguenther@suse.de>
35949
35950 PR target/87545
35951 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35952 cost of cheap SSE instruction.
35953
35954 2019-01-02 Richard Biener <rguenther@suse.de>
35955
35956 PR ipa/85574
35957 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35958 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35959 function.
35960 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35961 set after UIDs before splitting them.
35962
35963 2019-01-01 Martin Sebor <msebor@redhat.com>
35964 Jeff Law <law@redhat.com>
35965
35966 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35967 length is optimistic. If it is, then arrange to compute the
35968 conservative length as well.
35969
35970 * gimple-fold.h (get_range_strlen): Update prototype.
35971 * builtins.c (check_access): Update call to get_range_strlen to use
35972 c_strlen_data pointer. Change various variable accesses to instead
35973 pull data from the c_strlen_data structure.
35974 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35975 * calls.c (maybe_warn_nonstring_arg): Likewise.
35976 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35977 minimum length if maximum lengh is unknown.
35978 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35979 that used c_strlen, it's no longer needed. Restructure slightly.
35980 (format_string): Set unlikely range appropriately.
35981 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35982 formatting issues.
35983 (get_range_strlen): Accept c_strlen_data pointer for external
35984 call sites as well. Pass through to call to internal get_range_strlen.
35985 Adjust minlen, maxlen and maxbound as needed.
35986 (get_maxval_strlen): Update comments.
35987 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35988 to use c_strlen_data pointer. Change variable accesses to instead
35989 use c_strlen_data data members.
35990
35991 * gimple-fold.c (get_range_strlen): Update prototype.
35992 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35993 local variables. Use pdata to return information to caller.
35994 Update calls to get_range_strlen. Update pdata->maxbound.
35995 (get_range_strlen -- static version): Similarly.
35996 (get_range_strlen -- extern version): Update for internal
35997 get_range_strlen API change. Convert to external data format.
35998 (get_maxval_strlen): Similarly.
35999
36000 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
36001
36002 * coverage.c (get_coverage_counts): Use current_function_decl.
36003 * profile.c (read_thunk_profile): New function.
36004 (branch_prob): Add THUNK parameter.
36005 * tree-profile.c (tree_profiling): Handle thunks.
36006 * value-prof.c (init_node_map): Handle thunks.
36007 * value-prof.h (branch_prob): Upate prototype.
36008 (read_thunk_profile): Declare.
36009
36010 2019-01-01 Jakub Jelinek <jakub@redhat.com>
36011
36012 Update copyright years.
36013
36014 * gcc.c (process_command): Update copyright notice dates.
36015 * gcov-dump.c (print_version): Ditto.
36016 * gcov.c (print_version): Ditto.
36017 * gcov-tool.c (print_version): Ditto.
36018 * gengtype.c (create_file): Ditto.
36019 * doc/cpp.texi: Bump @copying's copyright year.
36020 * doc/cppinternals.texi: Ditto.
36021 * doc/gcc.texi: Ditto.
36022 * doc/gccint.texi: Ditto.
36023 * doc/gcov.texi: Ditto.
36024 * doc/install.texi: Ditto.
36025 * doc/invoke.texi: Ditto.
36026 \f
36027 Copyright (C) 2019 Free Software Foundation, Inc.
36028
36029 Copying and distribution of this file, with or without modification,
36030 are permitted in any medium without royalty provided the copyright
36031 notice and this notice are preserved.